Merge from trunk:
[official-gcc.git] / gcc-4_6-mobile-vtable-security / libgfortran / configure
blob016ecfea449587368dccbbd164d7e0ca2217d764
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_c_werror_flag=
601 ac_subst_vars='am__EXEEXT_FALSE
602 am__EXEEXT_TRUE
603 LTLIBOBJS
604 LIBOBJS
605 IEEE_FLAGS
606 FPU_HOST_HEADER
607 LIBGFOR_BUILD_QUAD_FALSE
608 LIBGFOR_BUILD_QUAD_TRUE
609 LIBQUADINCLUDE
610 LIBQUADLIB_DEP
611 LIBQUADLIB
612 LIBQUADSPEC
613 extra_ldflags_libgfortran
614 ac_ct_FC
615 FCFLAGS
617 enable_static
618 enable_shared
619 lt_host_flags
620 OTOOL64
621 OTOOL
622 LIPO
623 NMEDIT
624 DSYMUTIL
625 OBJDUMP
626 LN_S
628 ac_ct_DUMPBIN
629 DUMPBIN
631 FGREP
633 LIBTOOL
634 RANLIB
637 SECTION_FLAGS
638 LIBGFOR_USE_SYMVER_SUN_FALSE
639 LIBGFOR_USE_SYMVER_SUN_TRUE
640 LIBGFOR_USE_SYMVER_GNU_FALSE
641 LIBGFOR_USE_SYMVER_GNU_TRUE
642 LIBGFOR_USE_SYMVER_FALSE
643 LIBGFOR_USE_SYMVER_TRUE
644 AM_CFLAGS
645 AM_FCFLAGS
646 toolexeclibdir
647 toolexecdir
648 EGREP
649 GREP
651 am__fastdepCC_FALSE
652 am__fastdepCC_TRUE
653 CCDEPMODE
654 AMDEPBACKSLASH
655 AMDEP_FALSE
656 AMDEP_TRUE
657 am__quote
658 am__include
659 DEPDIR
660 OBJEXT
661 EXEEXT
662 ac_ct_CC
663 CPPFLAGS
664 LDFLAGS
665 CFLAGS
667 multi_basedir
668 MAINT
669 MAINTAINER_MODE_FALSE
670 MAINTAINER_MODE_TRUE
671 am__untar
672 am__tar
673 AMTAR
674 am__leading_dot
675 SET_MAKE
677 mkdir_p
678 MKDIR_P
679 INSTALL_STRIP_PROGRAM
680 STRIP
681 install_sh
682 MAKEINFO
683 AUTOHEADER
684 AUTOMAKE
685 AUTOCONF
686 ACLOCAL
687 VERSION
688 PACKAGE
689 CYGPATH_W
690 am__isrc
691 INSTALL_DATA
692 INSTALL_SCRIPT
693 INSTALL_PROGRAM
694 target_os
695 target_vendor
696 target_cpu
697 target
698 host_os
699 host_vendor
700 host_cpu
701 host
702 onestep
703 onestep_FALSE
704 onestep_TRUE
705 target_subdir
706 host_subdir
707 build_subdir
708 build_libsubdir
709 build_os
710 build_vendor
711 build_cpu
712 build
713 target_alias
714 host_alias
715 build_alias
716 LIBS
717 ECHO_T
718 ECHO_N
719 ECHO_C
720 DEFS
721 mandir
722 localedir
723 libdir
724 psdir
725 pdfdir
726 dvidir
727 htmldir
728 infodir
729 docdir
730 oldincludedir
731 includedir
732 localstatedir
733 sharedstatedir
734 sysconfdir
735 datadir
736 datarootdir
737 libexecdir
738 sbindir
739 bindir
740 program_transform_name
741 prefix
742 exec_prefix
743 PACKAGE_URL
744 PACKAGE_BUGREPORT
745 PACKAGE_STRING
746 PACKAGE_VERSION
747 PACKAGE_TARNAME
748 PACKAGE_NAME
749 PATH_SEPARATOR
750 SHELL'
751 ac_subst_files=''
752 ac_user_opts='
753 enable_option_checking
754 with_build_libsubdir
755 enable_version_specific_runtime_libs
756 enable_intermodule
757 enable_maintainer_mode
758 enable_multilib
759 enable_dependency_tracking
760 enable_symvers
761 enable_shared
762 enable_static
763 with_pic
764 enable_fast_install
765 with_gnu_ld
766 enable_libtool_lock
767 enable_largefile
768 enable_libquadmath_support
770 ac_precious_vars='build_alias
771 host_alias
772 target_alias
774 CFLAGS
775 LDFLAGS
776 LIBS
777 CPPFLAGS
780 FCFLAGS'
783 # Initialize some variables set by options.
784 ac_init_help=
785 ac_init_version=false
786 ac_unrecognized_opts=
787 ac_unrecognized_sep=
788 # The variables have the same names as the options, with
789 # dashes changed to underlines.
790 cache_file=/dev/null
791 exec_prefix=NONE
792 no_create=
793 no_recursion=
794 prefix=NONE
795 program_prefix=NONE
796 program_suffix=NONE
797 program_transform_name=s,x,x,
798 silent=
799 site=
800 srcdir=
801 verbose=
802 x_includes=NONE
803 x_libraries=NONE
805 # Installation directory options.
806 # These are left unexpanded so users can "make install exec_prefix=/foo"
807 # and all the variables that are supposed to be based on exec_prefix
808 # by default will actually change.
809 # Use braces instead of parens because sh, perl, etc. also accept them.
810 # (The list follows the same order as the GNU Coding Standards.)
811 bindir='${exec_prefix}/bin'
812 sbindir='${exec_prefix}/sbin'
813 libexecdir='${exec_prefix}/libexec'
814 datarootdir='${prefix}/share'
815 datadir='${datarootdir}'
816 sysconfdir='${prefix}/etc'
817 sharedstatedir='${prefix}/com'
818 localstatedir='${prefix}/var'
819 includedir='${prefix}/include'
820 oldincludedir='/usr/include'
821 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
822 infodir='${datarootdir}/info'
823 htmldir='${docdir}'
824 dvidir='${docdir}'
825 pdfdir='${docdir}'
826 psdir='${docdir}'
827 libdir='${exec_prefix}/lib'
828 localedir='${datarootdir}/locale'
829 mandir='${datarootdir}/man'
831 ac_prev=
832 ac_dashdash=
833 for ac_option
835 # If the previous option needs an argument, assign it.
836 if test -n "$ac_prev"; then
837 eval $ac_prev=\$ac_option
838 ac_prev=
839 continue
842 case $ac_option in
843 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
844 *) ac_optarg=yes ;;
845 esac
847 # Accept the important Cygnus configure options, so we can diagnose typos.
849 case $ac_dashdash$ac_option in
851 ac_dashdash=yes ;;
853 -bindir | --bindir | --bindi | --bind | --bin | --bi)
854 ac_prev=bindir ;;
855 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
856 bindir=$ac_optarg ;;
858 -build | --build | --buil | --bui | --bu)
859 ac_prev=build_alias ;;
860 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
861 build_alias=$ac_optarg ;;
863 -cache-file | --cache-file | --cache-fil | --cache-fi \
864 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
865 ac_prev=cache_file ;;
866 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
867 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
868 cache_file=$ac_optarg ;;
870 --config-cache | -C)
871 cache_file=config.cache ;;
873 -datadir | --datadir | --datadi | --datad)
874 ac_prev=datadir ;;
875 -datadir=* | --datadir=* | --datadi=* | --datad=*)
876 datadir=$ac_optarg ;;
878 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
879 | --dataroo | --dataro | --datar)
880 ac_prev=datarootdir ;;
881 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
882 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
883 datarootdir=$ac_optarg ;;
885 -disable-* | --disable-*)
886 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
887 # Reject names that are not valid shell variable names.
888 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
889 as_fn_error "invalid feature name: $ac_useropt"
890 ac_useropt_orig=$ac_useropt
891 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
892 case $ac_user_opts in
894 "enable_$ac_useropt"
895 "*) ;;
896 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
897 ac_unrecognized_sep=', ';;
898 esac
899 eval enable_$ac_useropt=no ;;
901 -docdir | --docdir | --docdi | --doc | --do)
902 ac_prev=docdir ;;
903 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
904 docdir=$ac_optarg ;;
906 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
907 ac_prev=dvidir ;;
908 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
909 dvidir=$ac_optarg ;;
911 -enable-* | --enable-*)
912 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
913 # Reject names that are not valid shell variable names.
914 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
915 as_fn_error "invalid feature name: $ac_useropt"
916 ac_useropt_orig=$ac_useropt
917 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
918 case $ac_user_opts in
920 "enable_$ac_useropt"
921 "*) ;;
922 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
923 ac_unrecognized_sep=', ';;
924 esac
925 eval enable_$ac_useropt=\$ac_optarg ;;
927 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
928 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
929 | --exec | --exe | --ex)
930 ac_prev=exec_prefix ;;
931 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
932 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
933 | --exec=* | --exe=* | --ex=*)
934 exec_prefix=$ac_optarg ;;
936 -gas | --gas | --ga | --g)
937 # Obsolete; use --with-gas.
938 with_gas=yes ;;
940 -help | --help | --hel | --he | -h)
941 ac_init_help=long ;;
942 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
943 ac_init_help=recursive ;;
944 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
945 ac_init_help=short ;;
947 -host | --host | --hos | --ho)
948 ac_prev=host_alias ;;
949 -host=* | --host=* | --hos=* | --ho=*)
950 host_alias=$ac_optarg ;;
952 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
953 ac_prev=htmldir ;;
954 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
955 | --ht=*)
956 htmldir=$ac_optarg ;;
958 -includedir | --includedir | --includedi | --included | --include \
959 | --includ | --inclu | --incl | --inc)
960 ac_prev=includedir ;;
961 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
962 | --includ=* | --inclu=* | --incl=* | --inc=*)
963 includedir=$ac_optarg ;;
965 -infodir | --infodir | --infodi | --infod | --info | --inf)
966 ac_prev=infodir ;;
967 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
968 infodir=$ac_optarg ;;
970 -libdir | --libdir | --libdi | --libd)
971 ac_prev=libdir ;;
972 -libdir=* | --libdir=* | --libdi=* | --libd=*)
973 libdir=$ac_optarg ;;
975 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
976 | --libexe | --libex | --libe)
977 ac_prev=libexecdir ;;
978 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
979 | --libexe=* | --libex=* | --libe=*)
980 libexecdir=$ac_optarg ;;
982 -localedir | --localedir | --localedi | --localed | --locale)
983 ac_prev=localedir ;;
984 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
985 localedir=$ac_optarg ;;
987 -localstatedir | --localstatedir | --localstatedi | --localstated \
988 | --localstate | --localstat | --localsta | --localst | --locals)
989 ac_prev=localstatedir ;;
990 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
991 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
992 localstatedir=$ac_optarg ;;
994 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
995 ac_prev=mandir ;;
996 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
997 mandir=$ac_optarg ;;
999 -nfp | --nfp | --nf)
1000 # Obsolete; use --without-fp.
1001 with_fp=no ;;
1003 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1004 | --no-cr | --no-c | -n)
1005 no_create=yes ;;
1007 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1008 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1009 no_recursion=yes ;;
1011 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1012 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1013 | --oldin | --oldi | --old | --ol | --o)
1014 ac_prev=oldincludedir ;;
1015 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1016 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1017 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1018 oldincludedir=$ac_optarg ;;
1020 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1021 ac_prev=prefix ;;
1022 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1023 prefix=$ac_optarg ;;
1025 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1026 | --program-pre | --program-pr | --program-p)
1027 ac_prev=program_prefix ;;
1028 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1029 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1030 program_prefix=$ac_optarg ;;
1032 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1033 | --program-suf | --program-su | --program-s)
1034 ac_prev=program_suffix ;;
1035 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1036 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1037 program_suffix=$ac_optarg ;;
1039 -program-transform-name | --program-transform-name \
1040 | --program-transform-nam | --program-transform-na \
1041 | --program-transform-n | --program-transform- \
1042 | --program-transform | --program-transfor \
1043 | --program-transfo | --program-transf \
1044 | --program-trans | --program-tran \
1045 | --progr-tra | --program-tr | --program-t)
1046 ac_prev=program_transform_name ;;
1047 -program-transform-name=* | --program-transform-name=* \
1048 | --program-transform-nam=* | --program-transform-na=* \
1049 | --program-transform-n=* | --program-transform-=* \
1050 | --program-transform=* | --program-transfor=* \
1051 | --program-transfo=* | --program-transf=* \
1052 | --program-trans=* | --program-tran=* \
1053 | --progr-tra=* | --program-tr=* | --program-t=*)
1054 program_transform_name=$ac_optarg ;;
1056 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1057 ac_prev=pdfdir ;;
1058 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1059 pdfdir=$ac_optarg ;;
1061 -psdir | --psdir | --psdi | --psd | --ps)
1062 ac_prev=psdir ;;
1063 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1064 psdir=$ac_optarg ;;
1066 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1067 | -silent | --silent | --silen | --sile | --sil)
1068 silent=yes ;;
1070 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1071 ac_prev=sbindir ;;
1072 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1073 | --sbi=* | --sb=*)
1074 sbindir=$ac_optarg ;;
1076 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1077 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1078 | --sharedst | --shareds | --shared | --share | --shar \
1079 | --sha | --sh)
1080 ac_prev=sharedstatedir ;;
1081 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1082 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1083 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1084 | --sha=* | --sh=*)
1085 sharedstatedir=$ac_optarg ;;
1087 -site | --site | --sit)
1088 ac_prev=site ;;
1089 -site=* | --site=* | --sit=*)
1090 site=$ac_optarg ;;
1092 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1093 ac_prev=srcdir ;;
1094 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1095 srcdir=$ac_optarg ;;
1097 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1098 | --syscon | --sysco | --sysc | --sys | --sy)
1099 ac_prev=sysconfdir ;;
1100 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1101 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1102 sysconfdir=$ac_optarg ;;
1104 -target | --target | --targe | --targ | --tar | --ta | --t)
1105 ac_prev=target_alias ;;
1106 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1107 target_alias=$ac_optarg ;;
1109 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1110 verbose=yes ;;
1112 -version | --version | --versio | --versi | --vers | -V)
1113 ac_init_version=: ;;
1115 -with-* | --with-*)
1116 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1117 # Reject names that are not valid shell variable names.
1118 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1119 as_fn_error "invalid package name: $ac_useropt"
1120 ac_useropt_orig=$ac_useropt
1121 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1122 case $ac_user_opts in
1124 "with_$ac_useropt"
1125 "*) ;;
1126 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1127 ac_unrecognized_sep=', ';;
1128 esac
1129 eval with_$ac_useropt=\$ac_optarg ;;
1131 -without-* | --without-*)
1132 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1133 # Reject names that are not valid shell variable names.
1134 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1135 as_fn_error "invalid package name: $ac_useropt"
1136 ac_useropt_orig=$ac_useropt
1137 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1138 case $ac_user_opts in
1140 "with_$ac_useropt"
1141 "*) ;;
1142 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1143 ac_unrecognized_sep=', ';;
1144 esac
1145 eval with_$ac_useropt=no ;;
1147 --x)
1148 # Obsolete; use --with-x.
1149 with_x=yes ;;
1151 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1152 | --x-incl | --x-inc | --x-in | --x-i)
1153 ac_prev=x_includes ;;
1154 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1155 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1156 x_includes=$ac_optarg ;;
1158 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1159 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1160 ac_prev=x_libraries ;;
1161 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1162 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1163 x_libraries=$ac_optarg ;;
1165 -*) as_fn_error "unrecognized option: \`$ac_option'
1166 Try \`$0 --help' for more information."
1169 *=*)
1170 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1171 # Reject names that are not valid shell variable names.
1172 case $ac_envvar in #(
1173 '' | [0-9]* | *[!_$as_cr_alnum]* )
1174 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1175 esac
1176 eval $ac_envvar=\$ac_optarg
1177 export $ac_envvar ;;
1180 # FIXME: should be removed in autoconf 3.0.
1181 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1182 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1183 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1184 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1187 esac
1188 done
1190 if test -n "$ac_prev"; then
1191 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1192 as_fn_error "missing argument to $ac_option"
1195 if test -n "$ac_unrecognized_opts"; then
1196 case $enable_option_checking in
1197 no) ;;
1198 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1199 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1200 esac
1203 # Check all directory arguments for consistency.
1204 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1205 datadir sysconfdir sharedstatedir localstatedir includedir \
1206 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1207 libdir localedir mandir
1209 eval ac_val=\$$ac_var
1210 # Remove trailing slashes.
1211 case $ac_val in
1212 */ )
1213 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1214 eval $ac_var=\$ac_val;;
1215 esac
1216 # Be sure to have absolute directory names.
1217 case $ac_val in
1218 [\\/$]* | ?:[\\/]* ) continue;;
1219 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1220 esac
1221 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1222 done
1224 # There might be people who depend on the old broken behavior: `$host'
1225 # used to hold the argument of --host etc.
1226 # FIXME: To remove some day.
1227 build=$build_alias
1228 host=$host_alias
1229 target=$target_alias
1231 # FIXME: To remove some day.
1232 if test "x$host_alias" != x; then
1233 if test "x$build_alias" = x; then
1234 cross_compiling=maybe
1235 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1236 If a cross compiler is detected then cross compile mode will be used." >&2
1237 elif test "x$build_alias" != "x$host_alias"; then
1238 cross_compiling=yes
1242 ac_tool_prefix=
1243 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1245 test "$silent" = yes && exec 6>/dev/null
1248 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1249 ac_ls_di=`ls -di .` &&
1250 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1251 as_fn_error "working directory cannot be determined"
1252 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1253 as_fn_error "pwd does not report name of working directory"
1256 # Find the source files, if location was not specified.
1257 if test -z "$srcdir"; then
1258 ac_srcdir_defaulted=yes
1259 # Try the directory containing this script, then the parent directory.
1260 ac_confdir=`$as_dirname -- "$as_myself" ||
1261 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1262 X"$as_myself" : 'X\(//\)[^/]' \| \
1263 X"$as_myself" : 'X\(//\)$' \| \
1264 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1265 $as_echo X"$as_myself" |
1266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1267 s//\1/
1270 /^X\(\/\/\)[^/].*/{
1271 s//\1/
1274 /^X\(\/\/\)$/{
1275 s//\1/
1278 /^X\(\/\).*/{
1279 s//\1/
1282 s/.*/./; q'`
1283 srcdir=$ac_confdir
1284 if test ! -r "$srcdir/$ac_unique_file"; then
1285 srcdir=..
1287 else
1288 ac_srcdir_defaulted=no
1290 if test ! -r "$srcdir/$ac_unique_file"; then
1291 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1292 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1294 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1295 ac_abs_confdir=`(
1296 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1297 pwd)`
1298 # When building in place, set srcdir=.
1299 if test "$ac_abs_confdir" = "$ac_pwd"; then
1300 srcdir=.
1302 # Remove unnecessary trailing slashes from srcdir.
1303 # Double slashes in file names in object file debugging info
1304 # mess up M-x gdb in Emacs.
1305 case $srcdir in
1306 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1307 esac
1308 for ac_var in $ac_precious_vars; do
1309 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1310 eval ac_env_${ac_var}_value=\$${ac_var}
1311 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1312 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1313 done
1316 # Report the --help message.
1318 if test "$ac_init_help" = "long"; then
1319 # Omit some internal or obsolete options to make the list less imposing.
1320 # This message is too long to be a string in the A/UX 3.1 sh.
1321 cat <<_ACEOF
1322 \`configure' configures GNU Fortran Runtime Library 0.3 to adapt to many kinds of systems.
1324 Usage: $0 [OPTION]... [VAR=VALUE]...
1326 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1327 VAR=VALUE. See below for descriptions of some of the useful variables.
1329 Defaults for the options are specified in brackets.
1331 Configuration:
1332 -h, --help display this help and exit
1333 --help=short display options specific to this package
1334 --help=recursive display the short help of all the included packages
1335 -V, --version display version information and exit
1336 -q, --quiet, --silent do not print \`checking...' messages
1337 --cache-file=FILE cache test results in FILE [disabled]
1338 -C, --config-cache alias for \`--cache-file=config.cache'
1339 -n, --no-create do not create output files
1340 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1342 Installation directories:
1343 --prefix=PREFIX install architecture-independent files in PREFIX
1344 [$ac_default_prefix]
1345 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1346 [PREFIX]
1348 By default, \`make install' will install all the files in
1349 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1350 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1351 for instance \`--prefix=\$HOME'.
1353 For better control, use the options below.
1355 Fine tuning of the installation directories:
1356 --bindir=DIR user executables [EPREFIX/bin]
1357 --sbindir=DIR system admin executables [EPREFIX/sbin]
1358 --libexecdir=DIR program executables [EPREFIX/libexec]
1359 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1360 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1361 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1362 --libdir=DIR object code libraries [EPREFIX/lib]
1363 --includedir=DIR C header files [PREFIX/include]
1364 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1365 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1366 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1367 --infodir=DIR info documentation [DATAROOTDIR/info]
1368 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1369 --mandir=DIR man documentation [DATAROOTDIR/man]
1370 --docdir=DIR documentation root [DATAROOTDIR/doc/libgfortran]
1371 --htmldir=DIR html documentation [DOCDIR]
1372 --dvidir=DIR dvi documentation [DOCDIR]
1373 --pdfdir=DIR pdf documentation [DOCDIR]
1374 --psdir=DIR ps documentation [DOCDIR]
1375 _ACEOF
1377 cat <<\_ACEOF
1379 Program names:
1380 --program-prefix=PREFIX prepend PREFIX to installed program names
1381 --program-suffix=SUFFIX append SUFFIX to installed program names
1382 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1384 System types:
1385 --build=BUILD configure for building on BUILD [guessed]
1386 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1387 --target=TARGET configure for building compilers for TARGET [HOST]
1388 _ACEOF
1391 if test -n "$ac_init_help"; then
1392 case $ac_init_help in
1393 short | recursive ) echo "Configuration of GNU Fortran Runtime Library 0.3:";;
1394 esac
1395 cat <<\_ACEOF
1397 Optional Features:
1398 --disable-option-checking ignore unrecognized --enable/--with options
1399 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1400 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1401 --enable-version-specific-runtime-libs
1402 specify that runtime libraries should be installed
1403 in a compiler-specific directory
1404 --enable-intermodule build the library in one step
1405 --enable-maintainer-mode enable make rules and dependencies not useful
1406 (and sometimes confusing) to the casual installer
1407 --enable-multilib build many library versions (default)
1408 --disable-dependency-tracking speeds up one-time build
1409 --enable-dependency-tracking do not reject slow dependency extractors
1410 --disable-symvers disable symbol versioning for libgfortran
1411 --enable-shared[=PKGS] build shared libraries [default=yes]
1412 --enable-static[=PKGS] build static libraries [default=yes]
1413 --enable-fast-install[=PKGS]
1414 optimize for fast installation [default=yes]
1415 --disable-libtool-lock avoid locking (might break parallel builds)
1416 --disable-largefile omit support for large files
1417 --disable-libquadmath-support
1418 disable libquadmath support for Fortran
1420 Optional Packages:
1421 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1422 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1423 --with-build-libsubdir=DIR Directory where to find libraries for build system
1424 --with-pic try to use only PIC/non-PIC objects [default=use
1425 both]
1426 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1428 Some influential environment variables:
1429 CC C compiler command
1430 CFLAGS C compiler flags
1431 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1432 nonstandard directory <lib dir>
1433 LIBS libraries to pass to the linker, e.g. -l<library>
1434 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1435 you have headers in a nonstandard directory <include dir>
1436 CPP C preprocessor
1437 FC Fortran compiler command
1438 FCFLAGS Fortran compiler flags
1440 Use these variables to override the choices made by `configure' or to help
1441 it to find libraries and programs with nonstandard names/locations.
1443 Report bugs to the package provider.
1444 GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
1445 General help using GNU software: <http://www.gnu.org/gethelp/>.
1446 _ACEOF
1447 ac_status=$?
1450 if test "$ac_init_help" = "recursive"; then
1451 # If there are subdirs, report their specific --help.
1452 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1453 test -d "$ac_dir" ||
1454 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1455 continue
1456 ac_builddir=.
1458 case "$ac_dir" in
1459 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1461 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1462 # A ".." for each directory in $ac_dir_suffix.
1463 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1464 case $ac_top_builddir_sub in
1465 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1466 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1467 esac ;;
1468 esac
1469 ac_abs_top_builddir=$ac_pwd
1470 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1471 # for backward compatibility:
1472 ac_top_builddir=$ac_top_build_prefix
1474 case $srcdir in
1475 .) # We are building in place.
1476 ac_srcdir=.
1477 ac_top_srcdir=$ac_top_builddir_sub
1478 ac_abs_top_srcdir=$ac_pwd ;;
1479 [\\/]* | ?:[\\/]* ) # Absolute name.
1480 ac_srcdir=$srcdir$ac_dir_suffix;
1481 ac_top_srcdir=$srcdir
1482 ac_abs_top_srcdir=$srcdir ;;
1483 *) # Relative name.
1484 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1485 ac_top_srcdir=$ac_top_build_prefix$srcdir
1486 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1487 esac
1488 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1490 cd "$ac_dir" || { ac_status=$?; continue; }
1491 # Check for guested configure.
1492 if test -f "$ac_srcdir/configure.gnu"; then
1493 echo &&
1494 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1495 elif test -f "$ac_srcdir/configure"; then
1496 echo &&
1497 $SHELL "$ac_srcdir/configure" --help=recursive
1498 else
1499 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1500 fi || ac_status=$?
1501 cd "$ac_pwd" || { ac_status=$?; break; }
1502 done
1505 test -n "$ac_init_help" && exit $ac_status
1506 if $ac_init_version; then
1507 cat <<\_ACEOF
1508 GNU Fortran Runtime Library configure 0.3
1509 generated by GNU Autoconf 2.64
1511 Copyright (C) 2009 Free Software Foundation, Inc.
1512 This configure script is free software; the Free Software Foundation
1513 gives unlimited permission to copy, distribute and modify it.
1514 _ACEOF
1515 exit
1518 ## ------------------------ ##
1519 ## Autoconf initialization. ##
1520 ## ------------------------ ##
1522 # ac_fn_c_try_compile LINENO
1523 # --------------------------
1524 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1525 ac_fn_c_try_compile ()
1527 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1528 rm -f conftest.$ac_objext
1529 if { { ac_try="$ac_compile"
1530 case "(($ac_try" in
1531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1532 *) ac_try_echo=$ac_try;;
1533 esac
1534 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1535 $as_echo "$ac_try_echo"; } >&5
1536 (eval "$ac_compile") 2>conftest.err
1537 ac_status=$?
1538 if test -s conftest.err; then
1539 grep -v '^ *+' conftest.err >conftest.er1
1540 cat conftest.er1 >&5
1541 mv -f conftest.er1 conftest.err
1543 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1544 test $ac_status = 0; } && {
1545 test -z "$ac_c_werror_flag" ||
1546 test ! -s conftest.err
1547 } && test -s conftest.$ac_objext; then :
1548 ac_retval=0
1549 else
1550 $as_echo "$as_me: failed program was:" >&5
1551 sed 's/^/| /' conftest.$ac_ext >&5
1553 ac_retval=1
1555 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1556 return $ac_retval
1558 } # ac_fn_c_try_compile
1560 # ac_fn_c_try_cpp LINENO
1561 # ----------------------
1562 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1563 ac_fn_c_try_cpp ()
1565 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1566 if { { ac_try="$ac_cpp conftest.$ac_ext"
1567 case "(($ac_try" in
1568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1569 *) ac_try_echo=$ac_try;;
1570 esac
1571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1572 $as_echo "$ac_try_echo"; } >&5
1573 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1574 ac_status=$?
1575 if test -s conftest.err; then
1576 grep -v '^ *+' conftest.err >conftest.er1
1577 cat conftest.er1 >&5
1578 mv -f conftest.er1 conftest.err
1580 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1581 test $ac_status = 0; } >/dev/null && {
1582 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1583 test ! -s conftest.err
1584 }; then :
1585 ac_retval=0
1586 else
1587 $as_echo "$as_me: failed program was:" >&5
1588 sed 's/^/| /' conftest.$ac_ext >&5
1590 ac_retval=1
1592 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1593 return $ac_retval
1595 } # ac_fn_c_try_cpp
1597 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1598 # -------------------------------------------------------
1599 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1600 # the include files in INCLUDES and setting the cache variable VAR
1601 # accordingly.
1602 ac_fn_c_check_header_mongrel ()
1604 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1605 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1607 $as_echo_n "checking for $2... " >&6; }
1608 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1609 $as_echo_n "(cached) " >&6
1611 eval ac_res=\$$3
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1613 $as_echo "$ac_res" >&6; }
1614 else
1615 # Is the header compilable?
1616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1617 $as_echo_n "checking $2 usability... " >&6; }
1618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1619 /* end confdefs.h. */
1621 #include <$2>
1622 _ACEOF
1623 if ac_fn_c_try_compile "$LINENO"; then :
1624 ac_header_compiler=yes
1625 else
1626 ac_header_compiler=no
1628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1630 $as_echo "$ac_header_compiler" >&6; }
1632 # Is the header present?
1633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1634 $as_echo_n "checking $2 presence... " >&6; }
1635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1636 /* end confdefs.h. */
1637 #include <$2>
1638 _ACEOF
1639 if ac_fn_c_try_cpp "$LINENO"; then :
1640 ac_header_preproc=yes
1641 else
1642 ac_header_preproc=no
1644 rm -f conftest.err conftest.$ac_ext
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1646 $as_echo "$ac_header_preproc" >&6; }
1648 # So? What about this header?
1649 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1650 yes:no: )
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1652 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1654 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1656 no:yes:* )
1657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1658 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1660 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1662 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1664 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1666 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1668 esac
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1670 $as_echo_n "checking for $2... " >&6; }
1671 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1672 $as_echo_n "(cached) " >&6
1673 else
1674 eval "$3=\$ac_header_compiler"
1676 eval ac_res=\$$3
1677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1678 $as_echo "$ac_res" >&6; }
1680 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1682 } # ac_fn_c_check_header_mongrel
1684 # ac_fn_c_try_run LINENO
1685 # ----------------------
1686 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1687 # that executables *can* be run.
1688 ac_fn_c_try_run ()
1690 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1691 if { { ac_try="$ac_link"
1692 case "(($ac_try" in
1693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1694 *) ac_try_echo=$ac_try;;
1695 esac
1696 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1697 $as_echo "$ac_try_echo"; } >&5
1698 (eval "$ac_link") 2>&5
1699 ac_status=$?
1700 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1701 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1702 { { case "(($ac_try" in
1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704 *) ac_try_echo=$ac_try;;
1705 esac
1706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707 $as_echo "$ac_try_echo"; } >&5
1708 (eval "$ac_try") 2>&5
1709 ac_status=$?
1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711 test $ac_status = 0; }; }; then :
1712 ac_retval=0
1713 else
1714 $as_echo "$as_me: program exited with status $ac_status" >&5
1715 $as_echo "$as_me: failed program was:" >&5
1716 sed 's/^/| /' conftest.$ac_ext >&5
1718 ac_retval=$ac_status
1720 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1721 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1722 return $ac_retval
1724 } # ac_fn_c_try_run
1726 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1727 # -------------------------------------------------------
1728 # Tests whether HEADER exists and can be compiled using the include files in
1729 # INCLUDES, setting the cache variable VAR accordingly.
1730 ac_fn_c_check_header_compile ()
1732 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1734 $as_echo_n "checking for $2... " >&6; }
1735 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1736 $as_echo_n "(cached) " >&6
1737 else
1738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1739 /* end confdefs.h. */
1741 #include <$2>
1742 _ACEOF
1743 if ac_fn_c_try_compile "$LINENO"; then :
1744 eval "$3=yes"
1745 else
1746 eval "$3=no"
1748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1750 eval ac_res=\$$3
1751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1752 $as_echo "$ac_res" >&6; }
1753 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1755 } # ac_fn_c_check_header_compile
1757 # ac_fn_c_try_link LINENO
1758 # -----------------------
1759 # Try to link conftest.$ac_ext, and return whether this succeeded.
1760 ac_fn_c_try_link ()
1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1763 rm -f conftest.$ac_objext conftest$ac_exeext
1764 if { { ac_try="$ac_link"
1765 case "(($ac_try" in
1766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1767 *) ac_try_echo=$ac_try;;
1768 esac
1769 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1770 $as_echo "$ac_try_echo"; } >&5
1771 (eval "$ac_link") 2>conftest.err
1772 ac_status=$?
1773 if test -s conftest.err; then
1774 grep -v '^ *+' conftest.err >conftest.er1
1775 cat conftest.er1 >&5
1776 mv -f conftest.er1 conftest.err
1778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1779 test $ac_status = 0; } && {
1780 test -z "$ac_c_werror_flag" ||
1781 test ! -s conftest.err
1782 } && test -s conftest$ac_exeext && {
1783 test "$cross_compiling" = yes ||
1784 $as_test_x conftest$ac_exeext
1785 }; then :
1786 ac_retval=0
1787 else
1788 $as_echo "$as_me: failed program was:" >&5
1789 sed 's/^/| /' conftest.$ac_ext >&5
1791 ac_retval=1
1793 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1794 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1795 # interfere with the next link command; also delete a directory that is
1796 # left behind by Apple's compiler. We do this before executing the actions.
1797 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1798 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1799 return $ac_retval
1801 } # ac_fn_c_try_link
1803 # ac_fn_c_check_func LINENO FUNC VAR
1804 # ----------------------------------
1805 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1806 ac_fn_c_check_func ()
1808 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1810 $as_echo_n "checking for $2... " >&6; }
1811 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1812 $as_echo_n "(cached) " >&6
1813 else
1814 if test x$gcc_no_link = xyes; then
1815 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1818 /* end confdefs.h. */
1819 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1820 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1821 #define $2 innocuous_$2
1823 /* System header to define __stub macros and hopefully few prototypes,
1824 which can conflict with char $2 (); below.
1825 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1826 <limits.h> exists even on freestanding compilers. */
1828 #ifdef __STDC__
1829 # include <limits.h>
1830 #else
1831 # include <assert.h>
1832 #endif
1834 #undef $2
1836 /* Override any GCC internal prototype to avoid an error.
1837 Use char because int might match the return type of a GCC
1838 builtin and then its argument prototype would still apply. */
1839 #ifdef __cplusplus
1840 extern "C"
1841 #endif
1842 char $2 ();
1843 /* The GNU C library defines this for functions which it implements
1844 to always fail with ENOSYS. Some functions are actually named
1845 something starting with __ and the normal name is an alias. */
1846 #if defined __stub_$2 || defined __stub___$2
1847 choke me
1848 #endif
1851 main ()
1853 return $2 ();
1855 return 0;
1857 _ACEOF
1858 if ac_fn_c_try_link "$LINENO"; then :
1859 eval "$3=yes"
1860 else
1861 eval "$3=no"
1863 rm -f core conftest.err conftest.$ac_objext \
1864 conftest$ac_exeext conftest.$ac_ext
1866 eval ac_res=\$$3
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1868 $as_echo "$ac_res" >&6; }
1869 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1871 } # ac_fn_c_check_func
1873 # ac_fn_fc_try_compile LINENO
1874 # ---------------------------
1875 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1876 ac_fn_fc_try_compile ()
1878 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1879 rm -f conftest.$ac_objext
1880 if { { ac_try="$ac_compile"
1881 case "(($ac_try" in
1882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1883 *) ac_try_echo=$ac_try;;
1884 esac
1885 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1886 $as_echo "$ac_try_echo"; } >&5
1887 (eval "$ac_compile") 2>conftest.err
1888 ac_status=$?
1889 if test -s conftest.err; then
1890 grep -v '^ *+' conftest.err >conftest.er1
1891 cat conftest.er1 >&5
1892 mv -f conftest.er1 conftest.err
1894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1895 test $ac_status = 0; } && {
1896 test -z "$ac_fc_werror_flag" ||
1897 test ! -s conftest.err
1898 } && test -s conftest.$ac_objext; then :
1899 ac_retval=0
1900 else
1901 $as_echo "$as_me: failed program was:" >&5
1902 sed 's/^/| /' conftest.$ac_ext >&5
1904 ac_retval=1
1906 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1907 return $ac_retval
1909 } # ac_fn_fc_try_compile
1911 # ac_fn_fc_try_link LINENO
1912 # ------------------------
1913 # Try to link conftest.$ac_ext, and return whether this succeeded.
1914 ac_fn_fc_try_link ()
1916 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1917 rm -f conftest.$ac_objext conftest$ac_exeext
1918 if { { ac_try="$ac_link"
1919 case "(($ac_try" in
1920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1921 *) ac_try_echo=$ac_try;;
1922 esac
1923 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1924 $as_echo "$ac_try_echo"; } >&5
1925 (eval "$ac_link") 2>conftest.err
1926 ac_status=$?
1927 if test -s conftest.err; then
1928 grep -v '^ *+' conftest.err >conftest.er1
1929 cat conftest.er1 >&5
1930 mv -f conftest.er1 conftest.err
1932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1933 test $ac_status = 0; } && {
1934 test -z "$ac_fc_werror_flag" ||
1935 test ! -s conftest.err
1936 } && test -s conftest$ac_exeext && {
1937 test "$cross_compiling" = yes ||
1938 $as_test_x conftest$ac_exeext
1939 }; then :
1940 ac_retval=0
1941 else
1942 $as_echo "$as_me: failed program was:" >&5
1943 sed 's/^/| /' conftest.$ac_ext >&5
1945 ac_retval=1
1947 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1948 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1949 # interfere with the next link command; also delete a directory that is
1950 # left behind by Apple's compiler. We do this before executing the actions.
1951 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1952 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1953 return $ac_retval
1955 } # ac_fn_fc_try_link
1957 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1958 # -------------------------------------------
1959 # Tests whether TYPE exists after having included INCLUDES, setting cache
1960 # variable VAR accordingly.
1961 ac_fn_c_check_type ()
1963 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1965 $as_echo_n "checking for $2... " >&6; }
1966 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1967 $as_echo_n "(cached) " >&6
1968 else
1969 eval "$3=no"
1970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1971 /* end confdefs.h. */
1974 main ()
1976 if (sizeof ($2))
1977 return 0;
1979 return 0;
1981 _ACEOF
1982 if ac_fn_c_try_compile "$LINENO"; then :
1983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1984 /* end confdefs.h. */
1987 main ()
1989 if (sizeof (($2)))
1990 return 0;
1992 return 0;
1994 _ACEOF
1995 if ac_fn_c_try_compile "$LINENO"; then :
1997 else
1998 eval "$3=yes"
2000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2004 eval ac_res=\$$3
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2006 $as_echo "$ac_res" >&6; }
2007 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2009 } # ac_fn_c_check_type
2011 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2012 # --------------------------------------------
2013 # Tries to find the compile-time value of EXPR in a program that includes
2014 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2015 # computed
2016 ac_fn_c_compute_int ()
2018 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2019 if test "$cross_compiling" = yes; then
2020 # Depending upon the size, compute the lo and hi bounds.
2021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2022 /* end confdefs.h. */
2025 main ()
2027 static int test_array [1 - 2 * !(($2) >= 0)];
2028 test_array [0] = 0
2031 return 0;
2033 _ACEOF
2034 if ac_fn_c_try_compile "$LINENO"; then :
2035 ac_lo=0 ac_mid=0
2036 while :; do
2037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2038 /* end confdefs.h. */
2041 main ()
2043 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2044 test_array [0] = 0
2047 return 0;
2049 _ACEOF
2050 if ac_fn_c_try_compile "$LINENO"; then :
2051 ac_hi=$ac_mid; break
2052 else
2053 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2054 if test $ac_lo -le $ac_mid; then
2055 ac_lo= ac_hi=
2056 break
2058 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2061 done
2062 else
2063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2064 /* end confdefs.h. */
2067 main ()
2069 static int test_array [1 - 2 * !(($2) < 0)];
2070 test_array [0] = 0
2073 return 0;
2075 _ACEOF
2076 if ac_fn_c_try_compile "$LINENO"; then :
2077 ac_hi=-1 ac_mid=-1
2078 while :; do
2079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2080 /* end confdefs.h. */
2083 main ()
2085 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2086 test_array [0] = 0
2089 return 0;
2091 _ACEOF
2092 if ac_fn_c_try_compile "$LINENO"; then :
2093 ac_lo=$ac_mid; break
2094 else
2095 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2096 if test $ac_mid -le $ac_hi; then
2097 ac_lo= ac_hi=
2098 break
2100 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2103 done
2104 else
2105 ac_lo= ac_hi=
2107 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2110 # Binary search between lo and hi bounds.
2111 while test "x$ac_lo" != "x$ac_hi"; do
2112 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2114 /* end confdefs.h. */
2117 main ()
2119 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2120 test_array [0] = 0
2123 return 0;
2125 _ACEOF
2126 if ac_fn_c_try_compile "$LINENO"; then :
2127 ac_hi=$ac_mid
2128 else
2129 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2132 done
2133 case $ac_lo in #((
2134 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2135 '') ac_retval=1 ;;
2136 esac
2137 else
2138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2139 /* end confdefs.h. */
2141 static long int longval () { return $2; }
2142 static unsigned long int ulongval () { return $2; }
2143 #include <stdio.h>
2144 #include <stdlib.h>
2146 main ()
2149 FILE *f = fopen ("conftest.val", "w");
2150 if (! f)
2151 return 1;
2152 if (($2) < 0)
2154 long int i = longval ();
2155 if (i != ($2))
2156 return 1;
2157 fprintf (f, "%ld", i);
2159 else
2161 unsigned long int i = ulongval ();
2162 if (i != ($2))
2163 return 1;
2164 fprintf (f, "%lu", i);
2166 /* Do not output a trailing newline, as this causes \r\n confusion
2167 on some platforms. */
2168 return ferror (f) || fclose (f) != 0;
2171 return 0;
2173 _ACEOF
2174 if ac_fn_c_try_run "$LINENO"; then :
2175 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2176 else
2177 ac_retval=1
2179 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2180 conftest.$ac_objext conftest.beam conftest.$ac_ext
2181 rm -f conftest.val
2184 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2185 return $ac_retval
2187 } # ac_fn_c_compute_int
2189 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2190 # ----------------------------------------------------
2191 # Tries to find if the field MEMBER exists in type AGGR, after including
2192 # INCLUDES, setting cache variable VAR accordingly.
2193 ac_fn_c_check_member ()
2195 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2197 $as_echo_n "checking for $2.$3... " >&6; }
2198 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2199 $as_echo_n "(cached) " >&6
2200 else
2201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2202 /* end confdefs.h. */
2205 main ()
2207 static $2 ac_aggr;
2208 if (ac_aggr.$3)
2209 return 0;
2211 return 0;
2213 _ACEOF
2214 if ac_fn_c_try_compile "$LINENO"; then :
2215 eval "$4=yes"
2216 else
2217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2218 /* end confdefs.h. */
2221 main ()
2223 static $2 ac_aggr;
2224 if (sizeof ac_aggr.$3)
2225 return 0;
2227 return 0;
2229 _ACEOF
2230 if ac_fn_c_try_compile "$LINENO"; then :
2231 eval "$4=yes"
2232 else
2233 eval "$4=no"
2235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2239 eval ac_res=\$$4
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2241 $as_echo "$ac_res" >&6; }
2242 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2244 } # ac_fn_c_check_member
2245 cat >config.log <<_ACEOF
2246 This file contains any messages produced by compilers while
2247 running configure, to aid debugging if configure makes a mistake.
2249 It was created by GNU Fortran Runtime Library $as_me 0.3, which was
2250 generated by GNU Autoconf 2.64. Invocation command line was
2252 $ $0 $@
2254 _ACEOF
2255 exec 5>>config.log
2257 cat <<_ASUNAME
2258 ## --------- ##
2259 ## Platform. ##
2260 ## --------- ##
2262 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2263 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2264 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2265 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2266 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2268 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2269 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2271 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2272 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2273 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2274 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2275 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2276 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2277 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2279 _ASUNAME
2281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2282 for as_dir in $PATH
2284 IFS=$as_save_IFS
2285 test -z "$as_dir" && as_dir=.
2286 $as_echo "PATH: $as_dir"
2287 done
2288 IFS=$as_save_IFS
2290 } >&5
2292 cat >&5 <<_ACEOF
2295 ## ----------- ##
2296 ## Core tests. ##
2297 ## ----------- ##
2299 _ACEOF
2302 # Keep a trace of the command line.
2303 # Strip out --no-create and --no-recursion so they do not pile up.
2304 # Strip out --silent because we don't want to record it for future runs.
2305 # Also quote any args containing shell meta-characters.
2306 # Make two passes to allow for proper duplicate-argument suppression.
2307 ac_configure_args=
2308 ac_configure_args0=
2309 ac_configure_args1=
2310 ac_must_keep_next=false
2311 for ac_pass in 1 2
2313 for ac_arg
2315 case $ac_arg in
2316 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2317 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2318 | -silent | --silent | --silen | --sile | --sil)
2319 continue ;;
2320 *\'*)
2321 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2322 esac
2323 case $ac_pass in
2324 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2326 as_fn_append ac_configure_args1 " '$ac_arg'"
2327 if test $ac_must_keep_next = true; then
2328 ac_must_keep_next=false # Got value, back to normal.
2329 else
2330 case $ac_arg in
2331 *=* | --config-cache | -C | -disable-* | --disable-* \
2332 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2333 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2334 | -with-* | --with-* | -without-* | --without-* | --x)
2335 case "$ac_configure_args0 " in
2336 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2337 esac
2339 -* ) ac_must_keep_next=true ;;
2340 esac
2342 as_fn_append ac_configure_args " '$ac_arg'"
2344 esac
2345 done
2346 done
2347 { ac_configure_args0=; unset ac_configure_args0;}
2348 { ac_configure_args1=; unset ac_configure_args1;}
2350 # When interrupted or exit'd, cleanup temporary files, and complete
2351 # config.log. We remove comments because anyway the quotes in there
2352 # would cause problems or look ugly.
2353 # WARNING: Use '\'' to represent an apostrophe within the trap.
2354 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2355 trap 'exit_status=$?
2356 # Save into config.log some information that might help in debugging.
2358 echo
2360 cat <<\_ASBOX
2361 ## ---------------- ##
2362 ## Cache variables. ##
2363 ## ---------------- ##
2364 _ASBOX
2365 echo
2366 # The following way of writing the cache mishandles newlines in values,
2368 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2369 eval ac_val=\$$ac_var
2370 case $ac_val in #(
2371 *${as_nl}*)
2372 case $ac_var in #(
2373 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2374 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2375 esac
2376 case $ac_var in #(
2377 _ | IFS | as_nl) ;; #(
2378 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2379 *) { eval $ac_var=; unset $ac_var;} ;;
2380 esac ;;
2381 esac
2382 done
2383 (set) 2>&1 |
2384 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2385 *${as_nl}ac_space=\ *)
2386 sed -n \
2387 "s/'\''/'\''\\\\'\'''\''/g;
2388 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2389 ;; #(
2391 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2393 esac |
2394 sort
2396 echo
2398 cat <<\_ASBOX
2399 ## ----------------- ##
2400 ## Output variables. ##
2401 ## ----------------- ##
2402 _ASBOX
2403 echo
2404 for ac_var in $ac_subst_vars
2406 eval ac_val=\$$ac_var
2407 case $ac_val in
2408 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2409 esac
2410 $as_echo "$ac_var='\''$ac_val'\''"
2411 done | sort
2412 echo
2414 if test -n "$ac_subst_files"; then
2415 cat <<\_ASBOX
2416 ## ------------------- ##
2417 ## File substitutions. ##
2418 ## ------------------- ##
2419 _ASBOX
2420 echo
2421 for ac_var in $ac_subst_files
2423 eval ac_val=\$$ac_var
2424 case $ac_val in
2425 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2426 esac
2427 $as_echo "$ac_var='\''$ac_val'\''"
2428 done | sort
2429 echo
2432 if test -s confdefs.h; then
2433 cat <<\_ASBOX
2434 ## ----------- ##
2435 ## confdefs.h. ##
2436 ## ----------- ##
2437 _ASBOX
2438 echo
2439 cat confdefs.h
2440 echo
2442 test "$ac_signal" != 0 &&
2443 $as_echo "$as_me: caught signal $ac_signal"
2444 $as_echo "$as_me: exit $exit_status"
2445 } >&5
2446 rm -f core *.core core.conftest.* &&
2447 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2448 exit $exit_status
2450 for ac_signal in 1 2 13 15; do
2451 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2452 done
2453 ac_signal=0
2455 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2456 rm -f -r conftest* confdefs.h
2458 $as_echo "/* confdefs.h */" > confdefs.h
2460 # Predefined preprocessor variables.
2462 cat >>confdefs.h <<_ACEOF
2463 #define PACKAGE_NAME "$PACKAGE_NAME"
2464 _ACEOF
2466 cat >>confdefs.h <<_ACEOF
2467 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2468 _ACEOF
2470 cat >>confdefs.h <<_ACEOF
2471 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2472 _ACEOF
2474 cat >>confdefs.h <<_ACEOF
2475 #define PACKAGE_STRING "$PACKAGE_STRING"
2476 _ACEOF
2478 cat >>confdefs.h <<_ACEOF
2479 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2480 _ACEOF
2482 cat >>confdefs.h <<_ACEOF
2483 #define PACKAGE_URL "$PACKAGE_URL"
2484 _ACEOF
2487 # Let the site file select an alternate cache file if it wants to.
2488 # Prefer an explicitly selected file to automatically selected ones.
2489 ac_site_file1=NONE
2490 ac_site_file2=NONE
2491 if test -n "$CONFIG_SITE"; then
2492 ac_site_file1=$CONFIG_SITE
2493 elif test "x$prefix" != xNONE; then
2494 ac_site_file1=$prefix/share/config.site
2495 ac_site_file2=$prefix/etc/config.site
2496 else
2497 ac_site_file1=$ac_default_prefix/share/config.site
2498 ac_site_file2=$ac_default_prefix/etc/config.site
2500 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2502 test "x$ac_site_file" = xNONE && continue
2503 if test -r "$ac_site_file"; then
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2505 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2506 sed 's/^/| /' "$ac_site_file" >&5
2507 . "$ac_site_file"
2509 done
2511 if test -r "$cache_file"; then
2512 # Some versions of bash will fail to source /dev/null (special
2513 # files actually), so we avoid doing that.
2514 if test -f "$cache_file"; then
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2516 $as_echo "$as_me: loading cache $cache_file" >&6;}
2517 case $cache_file in
2518 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2519 *) . "./$cache_file";;
2520 esac
2522 else
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2524 $as_echo "$as_me: creating cache $cache_file" >&6;}
2525 >$cache_file
2528 # Check that the precious variables saved in the cache have kept the same
2529 # value.
2530 ac_cache_corrupted=false
2531 for ac_var in $ac_precious_vars; do
2532 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2533 eval ac_new_set=\$ac_env_${ac_var}_set
2534 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2535 eval ac_new_val=\$ac_env_${ac_var}_value
2536 case $ac_old_set,$ac_new_set in
2537 set,)
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2539 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2540 ac_cache_corrupted=: ;;
2541 ,set)
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2543 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2544 ac_cache_corrupted=: ;;
2545 ,);;
2547 if test "x$ac_old_val" != "x$ac_new_val"; then
2548 # differences in whitespace do not lead to failure.
2549 ac_old_val_w=`echo x $ac_old_val`
2550 ac_new_val_w=`echo x $ac_new_val`
2551 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2552 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2553 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2554 ac_cache_corrupted=:
2555 else
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2557 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2558 eval $ac_var=\$ac_old_val
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2561 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2563 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2564 fi;;
2565 esac
2566 # Pass precious variables to config.status.
2567 if test "$ac_new_set" = set; then
2568 case $ac_new_val in
2569 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2570 *) ac_arg=$ac_var=$ac_new_val ;;
2571 esac
2572 case " $ac_configure_args " in
2573 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2574 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2575 esac
2577 done
2578 if $ac_cache_corrupted; then
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2580 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2581 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2582 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2583 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2585 ## -------------------- ##
2586 ## Main body of script. ##
2587 ## -------------------- ##
2589 ac_ext=c
2590 ac_cpp='$CPP $CPPFLAGS'
2591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2599 ac_config_headers="$ac_config_headers config.h"
2601 ac_aux_dir=
2602 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2603 for ac_t in install-sh install.sh shtool; do
2604 if test -f "$ac_dir/$ac_t"; then
2605 ac_aux_dir=$ac_dir
2606 ac_install_sh="$ac_aux_dir/$ac_t -c"
2607 break 2
2609 done
2610 done
2611 if test -z "$ac_aux_dir"; then
2612 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2615 # These three variables are undocumented and unsupported,
2616 # and are intended to be withdrawn in a future Autoconf release.
2617 # They can cause serious problems if a builder's source tree is in a directory
2618 # whose full name contains unusual characters.
2619 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2620 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2621 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2624 # Make sure we can run config.sub.
2625 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2626 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2629 $as_echo_n "checking build system type... " >&6; }
2630 if test "${ac_cv_build+set}" = set; then :
2631 $as_echo_n "(cached) " >&6
2632 else
2633 ac_build_alias=$build_alias
2634 test "x$ac_build_alias" = x &&
2635 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2636 test "x$ac_build_alias" = x &&
2637 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2638 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2639 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2643 $as_echo "$ac_cv_build" >&6; }
2644 case $ac_cv_build in
2645 *-*-*) ;;
2646 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2647 esac
2648 build=$ac_cv_build
2649 ac_save_IFS=$IFS; IFS='-'
2650 set x $ac_cv_build
2651 shift
2652 build_cpu=$1
2653 build_vendor=$2
2654 shift; shift
2655 # Remember, the first character of IFS is used to create $*,
2656 # except with old shells:
2657 build_os=$*
2658 IFS=$ac_save_IFS
2659 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2662 case ${build_alias} in
2663 "") build_noncanonical=${build} ;;
2664 *) build_noncanonical=${build_alias} ;;
2665 esac
2667 case ${host_alias} in
2668 "") host_noncanonical=${build_noncanonical} ;;
2669 *) host_noncanonical=${host_alias} ;;
2670 esac
2672 case ${target_alias} in
2673 "") target_noncanonical=${host_noncanonical} ;;
2674 *) target_noncanonical=${target_alias} ;;
2675 esac
2678 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2679 # have matching libraries, they should use host libraries: Makefile.tpl
2680 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2681 # However, they still use the build modules, because the corresponding
2682 # host modules (e.g. bison) are only built for the host when bootstrap
2683 # finishes. So:
2684 # - build_subdir is where we find build modules, and never changes.
2685 # - build_libsubdir is where we find build libraries, and can be overridden.
2687 # Prefix 'build-' so this never conflicts with target_subdir.
2688 build_subdir="build-${build_noncanonical}"
2690 # Check whether --with-build-libsubdir was given.
2691 if test "${with_build_libsubdir+set}" = set; then :
2692 withval=$with_build_libsubdir; build_libsubdir="$withval"
2693 else
2694 build_libsubdir="$build_subdir"
2697 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2698 if ( test $srcdir = . && test -d gcc ) \
2699 || test -d $srcdir/../host-${host_noncanonical}; then
2700 host_subdir="host-${host_noncanonical}"
2701 else
2702 host_subdir=.
2704 # No prefix.
2705 target_subdir=${target_noncanonical}
2708 # -------
2709 # Options
2710 # -------
2712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2713 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2714 # Check whether --enable-version-specific-runtime-libs was given.
2715 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2716 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2717 yes) version_specific_libs=yes ;;
2718 no) version_specific_libs=no ;;
2719 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2720 esac
2721 else
2722 version_specific_libs=no
2725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2726 $as_echo "$version_specific_libs" >&6; }
2728 # Build with intermodule optimisations
2729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-intermodule" >&5
2730 $as_echo_n "checking for --enable-intermodule... " >&6; }
2731 # Check whether --enable-intermodule was given.
2732 if test "${enable_intermodule+set}" = set; then :
2733 enableval=$enable_intermodule; case "$enable_intermodule" in
2734 yes) onestep="-onestep";;
2735 *) onestep="";;
2736 esac
2737 else
2738 onestep=""
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_intermodule" >&5
2742 $as_echo "$enable_intermodule" >&6; }
2743 if test x$onestep = x-onestep; then
2744 onestep_TRUE=
2745 onestep_FALSE='#'
2746 else
2747 onestep_TRUE='#'
2748 onestep_FALSE=
2753 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2755 # You will slowly go insane if you do not grok the following fact: when
2756 # building this library, the top-level /target/ becomes the library's /host/.
2758 # configure then causes --target to default to --host, exactly like any
2759 # other package using autoconf. Therefore, 'target' and 'host' will
2760 # always be the same. This makes sense both for native and cross compilers
2761 # just think about it for a little while. :-)
2763 # Also, if this library is being configured as part of a cross compiler, the
2764 # top-level configure script will pass the "real" host as $with_cross_host.
2766 # Do not delete or change the following two lines. For why, see
2767 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2769 $as_echo_n "checking host system type... " >&6; }
2770 if test "${ac_cv_host+set}" = set; then :
2771 $as_echo_n "(cached) " >&6
2772 else
2773 if test "x$host_alias" = x; then
2774 ac_cv_host=$ac_cv_build
2775 else
2776 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2777 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2782 $as_echo "$ac_cv_host" >&6; }
2783 case $ac_cv_host in
2784 *-*-*) ;;
2785 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2786 esac
2787 host=$ac_cv_host
2788 ac_save_IFS=$IFS; IFS='-'
2789 set x $ac_cv_host
2790 shift
2791 host_cpu=$1
2792 host_vendor=$2
2793 shift; shift
2794 # Remember, the first character of IFS is used to create $*,
2795 # except with old shells:
2796 host_os=$*
2797 IFS=$ac_save_IFS
2798 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2802 $as_echo_n "checking target system type... " >&6; }
2803 if test "${ac_cv_target+set}" = set; then :
2804 $as_echo_n "(cached) " >&6
2805 else
2806 if test "x$target_alias" = x; then
2807 ac_cv_target=$ac_cv_host
2808 else
2809 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2810 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2815 $as_echo "$ac_cv_target" >&6; }
2816 case $ac_cv_target in
2817 *-*-*) ;;
2818 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2819 esac
2820 target=$ac_cv_target
2821 ac_save_IFS=$IFS; IFS='-'
2822 set x $ac_cv_target
2823 shift
2824 target_cpu=$1
2825 target_vendor=$2
2826 shift; shift
2827 # Remember, the first character of IFS is used to create $*,
2828 # except with old shells:
2829 target_os=$*
2830 IFS=$ac_save_IFS
2831 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2834 # The aliases save the names the user supplied, while $host etc.
2835 # will get canonicalized.
2836 test -n "$target_alias" &&
2837 test "$program_prefix$program_suffix$program_transform_name" = \
2838 NONENONEs,x,x, &&
2839 program_prefix=${target_alias}-
2841 target_alias=${target_alias-$host_alias}
2843 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2844 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2845 # 1.9.6: minimum required version
2846 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2847 # of other PACKAGE_* variables will, however, and there's nothing
2848 # we can do about that; they come from AC_INIT).
2849 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2850 # file in the top srcdir, etc, etc), so stop complaining.
2851 # no-dist: we don't want 'dist' and related rules.
2852 # -Wall: turns on all automake warnings...
2853 # -Wno-portability: ...except this one, since GNU make is required.
2854 am__api_version='1.11'
2856 # Find a good install program. We prefer a C program (faster),
2857 # so one script is as good as another. But avoid the broken or
2858 # incompatible versions:
2859 # SysV /etc/install, /usr/sbin/install
2860 # SunOS /usr/etc/install
2861 # IRIX /sbin/install
2862 # AIX /bin/install
2863 # AmigaOS /C/install, which installs bootblocks on floppy discs
2864 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2865 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2866 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2867 # OS/2's system install, which has a completely different semantic
2868 # ./install, which can be erroneously created by make from ./install.sh.
2869 # Reject install programs that cannot install multiple files.
2870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2871 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2872 if test -z "$INSTALL"; then
2873 if test "${ac_cv_path_install+set}" = set; then :
2874 $as_echo_n "(cached) " >&6
2875 else
2876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877 for as_dir in $PATH
2879 IFS=$as_save_IFS
2880 test -z "$as_dir" && as_dir=.
2881 # Account for people who put trailing slashes in PATH elements.
2882 case $as_dir/ in #((
2883 ./ | .// | /[cC]/* | \
2884 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2885 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2886 /usr/ucb/* ) ;;
2888 # OSF1 and SCO ODT 3.0 have their own names for install.
2889 # Don't use installbsd from OSF since it installs stuff as root
2890 # by default.
2891 for ac_prog in ginstall scoinst install; do
2892 for ac_exec_ext in '' $ac_executable_extensions; do
2893 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2894 if test $ac_prog = install &&
2895 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2896 # AIX install. It has an incompatible calling convention.
2898 elif test $ac_prog = install &&
2899 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2900 # program-specific install script used by HP pwplus--don't use.
2902 else
2903 rm -rf conftest.one conftest.two conftest.dir
2904 echo one > conftest.one
2905 echo two > conftest.two
2906 mkdir conftest.dir
2907 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2908 test -s conftest.one && test -s conftest.two &&
2909 test -s conftest.dir/conftest.one &&
2910 test -s conftest.dir/conftest.two
2911 then
2912 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2913 break 3
2917 done
2918 done
2920 esac
2922 done
2923 IFS=$as_save_IFS
2925 rm -rf conftest.one conftest.two conftest.dir
2928 if test "${ac_cv_path_install+set}" = set; then
2929 INSTALL=$ac_cv_path_install
2930 else
2931 # As a last resort, use the slow shell script. Don't cache a
2932 # value for INSTALL within a source directory, because that will
2933 # break other packages using the cache if that directory is
2934 # removed, or if the value is a relative name.
2935 INSTALL=$ac_install_sh
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2939 $as_echo "$INSTALL" >&6; }
2941 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2942 # It thinks the first close brace ends the variable substitution.
2943 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2945 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2947 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2950 $as_echo_n "checking whether build environment is sane... " >&6; }
2951 # Just in case
2952 sleep 1
2953 echo timestamp > conftest.file
2954 # Reject unsafe characters in $srcdir or the absolute working directory
2955 # name. Accept space and tab only in the latter.
2956 am_lf='
2958 case `pwd` in
2959 *[\\\"\#\$\&\'\`$am_lf]*)
2960 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2961 esac
2962 case $srcdir in
2963 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2964 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2965 esac
2967 # Do `set' in a subshell so we don't clobber the current shell's
2968 # arguments. Must try -L first in case configure is actually a
2969 # symlink; some systems play weird games with the mod time of symlinks
2970 # (eg FreeBSD returns the mod time of the symlink's containing
2971 # directory).
2972 if (
2973 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2974 if test "$*" = "X"; then
2975 # -L didn't work.
2976 set X `ls -t "$srcdir/configure" conftest.file`
2978 rm -f conftest.file
2979 if test "$*" != "X $srcdir/configure conftest.file" \
2980 && test "$*" != "X conftest.file $srcdir/configure"; then
2982 # If neither matched, then we have a broken ls. This can happen
2983 # if, for instance, CONFIG_SHELL is bash and it inherits a
2984 # broken ls alias from the environment. This has actually
2985 # happened. Such a system could not be considered "sane".
2986 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2987 alias in your environment" "$LINENO" 5
2990 test "$2" = conftest.file
2992 then
2993 # Ok.
2995 else
2996 as_fn_error "newly created file is older than distributed files!
2997 Check your system clock" "$LINENO" 5
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3000 $as_echo "yes" >&6; }
3001 test "$program_prefix" != NONE &&
3002 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3003 # Use a double $ so make ignores it.
3004 test "$program_suffix" != NONE &&
3005 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3006 # Double any \ or $.
3007 # By default was `s,x,x', remove it if useless.
3008 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3009 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3011 # expand $ac_aux_dir to an absolute path
3012 am_aux_dir=`cd $ac_aux_dir && pwd`
3014 if test x"${MISSING+set}" != xset; then
3015 case $am_aux_dir in
3016 *\ * | *\ *)
3017 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3019 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3020 esac
3022 # Use eval to expand $SHELL
3023 if eval "$MISSING --run true"; then
3024 am_missing_run="$MISSING --run "
3025 else
3026 am_missing_run=
3027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3028 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3031 if test x"${install_sh}" != xset; then
3032 case $am_aux_dir in
3033 *\ * | *\ *)
3034 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3036 install_sh="\${SHELL} $am_aux_dir/install-sh"
3037 esac
3040 # Installed binaries are usually stripped using `strip' when the user
3041 # run `make install-strip'. However `strip' might not be the right
3042 # tool to use in cross-compilation environments, therefore Automake
3043 # will honor the `STRIP' environment variable to overrule this program.
3044 if test "$cross_compiling" != no; then
3045 if test -n "$ac_tool_prefix"; then
3046 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3047 set dummy ${ac_tool_prefix}strip; ac_word=$2
3048 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3049 $as_echo_n "checking for $ac_word... " >&6; }
3050 if test "${ac_cv_prog_STRIP+set}" = set; then :
3051 $as_echo_n "(cached) " >&6
3052 else
3053 if test -n "$STRIP"; then
3054 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3055 else
3056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3057 for as_dir in $PATH
3059 IFS=$as_save_IFS
3060 test -z "$as_dir" && as_dir=.
3061 for ac_exec_ext in '' $ac_executable_extensions; do
3062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3063 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3065 break 2
3067 done
3068 done
3069 IFS=$as_save_IFS
3073 STRIP=$ac_cv_prog_STRIP
3074 if test -n "$STRIP"; then
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3076 $as_echo "$STRIP" >&6; }
3077 else
3078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3079 $as_echo "no" >&6; }
3084 if test -z "$ac_cv_prog_STRIP"; then
3085 ac_ct_STRIP=$STRIP
3086 # Extract the first word of "strip", so it can be a program name with args.
3087 set dummy strip; ac_word=$2
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3089 $as_echo_n "checking for $ac_word... " >&6; }
3090 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3091 $as_echo_n "(cached) " >&6
3092 else
3093 if test -n "$ac_ct_STRIP"; then
3094 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3095 else
3096 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3097 for as_dir in $PATH
3099 IFS=$as_save_IFS
3100 test -z "$as_dir" && as_dir=.
3101 for ac_exec_ext in '' $ac_executable_extensions; do
3102 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3103 ac_cv_prog_ac_ct_STRIP="strip"
3104 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3105 break 2
3107 done
3108 done
3109 IFS=$as_save_IFS
3113 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3114 if test -n "$ac_ct_STRIP"; then
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3116 $as_echo "$ac_ct_STRIP" >&6; }
3117 else
3118 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3119 $as_echo "no" >&6; }
3122 if test "x$ac_ct_STRIP" = x; then
3123 STRIP=":"
3124 else
3125 case $cross_compiling:$ac_tool_warned in
3126 yes:)
3127 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3128 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3129 ac_tool_warned=yes ;;
3130 esac
3131 STRIP=$ac_ct_STRIP
3133 else
3134 STRIP="$ac_cv_prog_STRIP"
3138 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3141 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3142 if test -z "$MKDIR_P"; then
3143 if test "${ac_cv_path_mkdir+set}" = set; then :
3144 $as_echo_n "(cached) " >&6
3145 else
3146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3147 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3149 IFS=$as_save_IFS
3150 test -z "$as_dir" && as_dir=.
3151 for ac_prog in mkdir gmkdir; do
3152 for ac_exec_ext in '' $ac_executable_extensions; do
3153 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3154 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3155 'mkdir (GNU coreutils) '* | \
3156 'mkdir (coreutils) '* | \
3157 'mkdir (fileutils) '4.1*)
3158 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3159 break 3;;
3160 esac
3161 done
3162 done
3163 done
3164 IFS=$as_save_IFS
3168 if test "${ac_cv_path_mkdir+set}" = set; then
3169 MKDIR_P="$ac_cv_path_mkdir -p"
3170 else
3171 # As a last resort, use the slow shell script. Don't cache a
3172 # value for MKDIR_P within a source directory, because that will
3173 # break other packages using the cache if that directory is
3174 # removed, or if the value is a relative name.
3175 test -d ./--version && rmdir ./--version
3176 MKDIR_P="$ac_install_sh -d"
3179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3180 $as_echo "$MKDIR_P" >&6; }
3182 mkdir_p="$MKDIR_P"
3183 case $mkdir_p in
3184 [\\/$]* | ?:[\\/]*) ;;
3185 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3186 esac
3188 for ac_prog in gawk mawk nawk awk
3190 # Extract the first word of "$ac_prog", so it can be a program name with args.
3191 set dummy $ac_prog; ac_word=$2
3192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3193 $as_echo_n "checking for $ac_word... " >&6; }
3194 if test "${ac_cv_prog_AWK+set}" = set; then :
3195 $as_echo_n "(cached) " >&6
3196 else
3197 if test -n "$AWK"; then
3198 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3199 else
3200 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3201 for as_dir in $PATH
3203 IFS=$as_save_IFS
3204 test -z "$as_dir" && as_dir=.
3205 for ac_exec_ext in '' $ac_executable_extensions; do
3206 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3207 ac_cv_prog_AWK="$ac_prog"
3208 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3209 break 2
3211 done
3212 done
3213 IFS=$as_save_IFS
3217 AWK=$ac_cv_prog_AWK
3218 if test -n "$AWK"; then
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3220 $as_echo "$AWK" >&6; }
3221 else
3222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3223 $as_echo "no" >&6; }
3227 test -n "$AWK" && break
3228 done
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3231 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3232 set x ${MAKE-make}
3233 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3234 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3235 $as_echo_n "(cached) " >&6
3236 else
3237 cat >conftest.make <<\_ACEOF
3238 SHELL = /bin/sh
3239 all:
3240 @echo '@@@%%%=$(MAKE)=@@@%%%'
3241 _ACEOF
3242 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3243 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3244 *@@@%%%=?*=@@@%%%*)
3245 eval ac_cv_prog_make_${ac_make}_set=yes;;
3247 eval ac_cv_prog_make_${ac_make}_set=no;;
3248 esac
3249 rm -f conftest.make
3251 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3253 $as_echo "yes" >&6; }
3254 SET_MAKE=
3255 else
3256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3257 $as_echo "no" >&6; }
3258 SET_MAKE="MAKE=${MAKE-make}"
3261 rm -rf .tst 2>/dev/null
3262 mkdir .tst 2>/dev/null
3263 if test -d .tst; then
3264 am__leading_dot=.
3265 else
3266 am__leading_dot=_
3268 rmdir .tst 2>/dev/null
3270 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3271 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3272 # is not polluted with repeated "-I."
3273 am__isrc=' -I$(srcdir)'
3274 # test to see if srcdir already configured
3275 if test -f $srcdir/config.status; then
3276 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3280 # test whether we have cygpath
3281 if test -z "$CYGPATH_W"; then
3282 if (cygpath --version) >/dev/null 2>/dev/null; then
3283 CYGPATH_W='cygpath -w'
3284 else
3285 CYGPATH_W=echo
3290 # Define the identity of the package.
3291 PACKAGE='libgfortran'
3292 VERSION='0.3'
3295 # Some tools Automake needs.
3297 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3300 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3303 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3306 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3309 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3311 # We need awk for the "check" target. The system "awk" is bad on
3312 # some platforms.
3313 # Always define AMTAR for backward compatibility.
3315 AMTAR=${AMTAR-"${am_missing_run}tar"}
3317 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3326 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3327 # Check whether --enable-maintainer-mode was given.
3328 if test "${enable_maintainer_mode+set}" = set; then :
3329 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3330 else
3331 USE_MAINTAINER_MODE=no
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3335 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3336 if test $USE_MAINTAINER_MODE = yes; then
3337 MAINTAINER_MODE_TRUE=
3338 MAINTAINER_MODE_FALSE='#'
3339 else
3340 MAINTAINER_MODE_TRUE='#'
3341 MAINTAINER_MODE_FALSE=
3344 MAINT=$MAINTAINER_MODE_TRUE
3347 # Default to --enable-multilib
3348 # Check whether --enable-multilib was given.
3349 if test "${enable_multilib+set}" = set; then :
3350 enableval=$enable_multilib; case "$enableval" in
3351 yes) multilib=yes ;;
3352 no) multilib=no ;;
3353 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3354 esac
3355 else
3356 multilib=yes
3360 # We may get other options which we leave undocumented:
3361 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3362 # See config-ml.in if you want the gory details.
3364 if test "$srcdir" = "."; then
3365 if test "$with_target_subdir" != "."; then
3366 multi_basedir="$srcdir/$with_multisrctop../.."
3367 else
3368 multi_basedir="$srcdir/$with_multisrctop.."
3370 else
3371 multi_basedir="$srcdir/.."
3375 # Even if the default multilib is not a cross compilation,
3376 # it may be that some of the other multilibs are.
3377 if test $cross_compiling = no && test $multilib = yes \
3378 && test "x${with_multisubdir}" != x ; then
3379 cross_compiling=maybe
3382 ac_config_commands="$ac_config_commands default-1"
3385 # Handy for debugging:
3386 #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
3388 # Are we being configured with some form of cross compiler?
3389 # NB: We don't actually need to know this just now, but when, say, a test
3390 # suite is included, we'll have to know.
3391 if test "$build" != "$host"; then
3392 LIBGFOR_IS_NATIVE=false
3394 else
3395 LIBGFOR_IS_NATIVE=true
3398 DEPDIR="${am__leading_dot}deps"
3400 ac_config_commands="$ac_config_commands depfiles"
3403 am_make=${MAKE-make}
3404 cat > confinc << 'END'
3405 am__doit:
3406 @echo this is the am__doit target
3407 .PHONY: am__doit
3409 # If we don't find an include directive, just comment out the code.
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3411 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3412 am__include="#"
3413 am__quote=
3414 _am_result=none
3415 # First try GNU make style include.
3416 echo "include confinc" > confmf
3417 # Ignore all kinds of additional output from `make'.
3418 case `$am_make -s -f confmf 2> /dev/null` in #(
3419 *the\ am__doit\ target*)
3420 am__include=include
3421 am__quote=
3422 _am_result=GNU
3424 esac
3425 # Now try BSD make style include.
3426 if test "$am__include" = "#"; then
3427 echo '.include "confinc"' > confmf
3428 case `$am_make -s -f confmf 2> /dev/null` in #(
3429 *the\ am__doit\ target*)
3430 am__include=.include
3431 am__quote="\""
3432 _am_result=BSD
3434 esac
3438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3439 $as_echo "$_am_result" >&6; }
3440 rm -f confinc confmf
3442 # Check whether --enable-dependency-tracking was given.
3443 if test "${enable_dependency_tracking+set}" = set; then :
3444 enableval=$enable_dependency_tracking;
3447 if test "x$enable_dependency_tracking" != xno; then
3448 am_depcomp="$ac_aux_dir/depcomp"
3449 AMDEPBACKSLASH='\'
3451 if test "x$enable_dependency_tracking" != xno; then
3452 AMDEP_TRUE=
3453 AMDEP_FALSE='#'
3454 else
3455 AMDEP_TRUE='#'
3456 AMDEP_FALSE=
3460 ac_ext=c
3461 ac_cpp='$CPP $CPPFLAGS'
3462 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3463 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3464 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3465 if test -n "$ac_tool_prefix"; then
3466 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3467 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3469 $as_echo_n "checking for $ac_word... " >&6; }
3470 if test "${ac_cv_prog_CC+set}" = set; then :
3471 $as_echo_n "(cached) " >&6
3472 else
3473 if test -n "$CC"; then
3474 ac_cv_prog_CC="$CC" # Let the user override the test.
3475 else
3476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3477 for as_dir in $PATH
3479 IFS=$as_save_IFS
3480 test -z "$as_dir" && as_dir=.
3481 for ac_exec_ext in '' $ac_executable_extensions; do
3482 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3483 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3484 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3485 break 2
3487 done
3488 done
3489 IFS=$as_save_IFS
3493 CC=$ac_cv_prog_CC
3494 if test -n "$CC"; then
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3496 $as_echo "$CC" >&6; }
3497 else
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3499 $as_echo "no" >&6; }
3504 if test -z "$ac_cv_prog_CC"; then
3505 ac_ct_CC=$CC
3506 # Extract the first word of "gcc", so it can be a program name with args.
3507 set dummy gcc; ac_word=$2
3508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3509 $as_echo_n "checking for $ac_word... " >&6; }
3510 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3511 $as_echo_n "(cached) " >&6
3512 else
3513 if test -n "$ac_ct_CC"; then
3514 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3515 else
3516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3517 for as_dir in $PATH
3519 IFS=$as_save_IFS
3520 test -z "$as_dir" && as_dir=.
3521 for ac_exec_ext in '' $ac_executable_extensions; do
3522 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3523 ac_cv_prog_ac_ct_CC="gcc"
3524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3525 break 2
3527 done
3528 done
3529 IFS=$as_save_IFS
3533 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3534 if test -n "$ac_ct_CC"; then
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3536 $as_echo "$ac_ct_CC" >&6; }
3537 else
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3539 $as_echo "no" >&6; }
3542 if test "x$ac_ct_CC" = x; then
3543 CC=""
3544 else
3545 case $cross_compiling:$ac_tool_warned in
3546 yes:)
3547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3548 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3549 ac_tool_warned=yes ;;
3550 esac
3551 CC=$ac_ct_CC
3553 else
3554 CC="$ac_cv_prog_CC"
3557 if test -z "$CC"; then
3558 if test -n "$ac_tool_prefix"; then
3559 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3560 set dummy ${ac_tool_prefix}cc; ac_word=$2
3561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3562 $as_echo_n "checking for $ac_word... " >&6; }
3563 if test "${ac_cv_prog_CC+set}" = set; then :
3564 $as_echo_n "(cached) " >&6
3565 else
3566 if test -n "$CC"; then
3567 ac_cv_prog_CC="$CC" # Let the user override the test.
3568 else
3569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3570 for as_dir in $PATH
3572 IFS=$as_save_IFS
3573 test -z "$as_dir" && as_dir=.
3574 for ac_exec_ext in '' $ac_executable_extensions; do
3575 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3576 ac_cv_prog_CC="${ac_tool_prefix}cc"
3577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3578 break 2
3580 done
3581 done
3582 IFS=$as_save_IFS
3586 CC=$ac_cv_prog_CC
3587 if test -n "$CC"; then
3588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3589 $as_echo "$CC" >&6; }
3590 else
3591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3592 $as_echo "no" >&6; }
3598 if test -z "$CC"; then
3599 # Extract the first word of "cc", so it can be a program name with args.
3600 set dummy cc; ac_word=$2
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3602 $as_echo_n "checking for $ac_word... " >&6; }
3603 if test "${ac_cv_prog_CC+set}" = set; then :
3604 $as_echo_n "(cached) " >&6
3605 else
3606 if test -n "$CC"; then
3607 ac_cv_prog_CC="$CC" # Let the user override the test.
3608 else
3609 ac_prog_rejected=no
3610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3611 for as_dir in $PATH
3613 IFS=$as_save_IFS
3614 test -z "$as_dir" && as_dir=.
3615 for ac_exec_ext in '' $ac_executable_extensions; do
3616 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3617 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3618 ac_prog_rejected=yes
3619 continue
3621 ac_cv_prog_CC="cc"
3622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3623 break 2
3625 done
3626 done
3627 IFS=$as_save_IFS
3629 if test $ac_prog_rejected = yes; then
3630 # We found a bogon in the path, so make sure we never use it.
3631 set dummy $ac_cv_prog_CC
3632 shift
3633 if test $# != 0; then
3634 # We chose a different compiler from the bogus one.
3635 # However, it has the same basename, so the bogon will be chosen
3636 # first if we set CC to just the basename; use the full file name.
3637 shift
3638 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3643 CC=$ac_cv_prog_CC
3644 if test -n "$CC"; then
3645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3646 $as_echo "$CC" >&6; }
3647 else
3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3649 $as_echo "no" >&6; }
3654 if test -z "$CC"; then
3655 if test -n "$ac_tool_prefix"; then
3656 for ac_prog in cl.exe
3658 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3659 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3661 $as_echo_n "checking for $ac_word... " >&6; }
3662 if test "${ac_cv_prog_CC+set}" = set; then :
3663 $as_echo_n "(cached) " >&6
3664 else
3665 if test -n "$CC"; then
3666 ac_cv_prog_CC="$CC" # Let the user override the test.
3667 else
3668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3669 for as_dir in $PATH
3671 IFS=$as_save_IFS
3672 test -z "$as_dir" && as_dir=.
3673 for ac_exec_ext in '' $ac_executable_extensions; do
3674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3675 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3677 break 2
3679 done
3680 done
3681 IFS=$as_save_IFS
3685 CC=$ac_cv_prog_CC
3686 if test -n "$CC"; then
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3688 $as_echo "$CC" >&6; }
3689 else
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3691 $as_echo "no" >&6; }
3695 test -n "$CC" && break
3696 done
3698 if test -z "$CC"; then
3699 ac_ct_CC=$CC
3700 for ac_prog in cl.exe
3702 # Extract the first word of "$ac_prog", so it can be a program name with args.
3703 set dummy $ac_prog; ac_word=$2
3704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3705 $as_echo_n "checking for $ac_word... " >&6; }
3706 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3707 $as_echo_n "(cached) " >&6
3708 else
3709 if test -n "$ac_ct_CC"; then
3710 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3711 else
3712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3713 for as_dir in $PATH
3715 IFS=$as_save_IFS
3716 test -z "$as_dir" && as_dir=.
3717 for ac_exec_ext in '' $ac_executable_extensions; do
3718 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3719 ac_cv_prog_ac_ct_CC="$ac_prog"
3720 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3721 break 2
3723 done
3724 done
3725 IFS=$as_save_IFS
3729 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3730 if test -n "$ac_ct_CC"; then
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3732 $as_echo "$ac_ct_CC" >&6; }
3733 else
3734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3735 $as_echo "no" >&6; }
3739 test -n "$ac_ct_CC" && break
3740 done
3742 if test "x$ac_ct_CC" = x; then
3743 CC=""
3744 else
3745 case $cross_compiling:$ac_tool_warned in
3746 yes:)
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3748 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3749 ac_tool_warned=yes ;;
3750 esac
3751 CC=$ac_ct_CC
3758 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3759 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3760 as_fn_error "no acceptable C compiler found in \$PATH
3761 See \`config.log' for more details." "$LINENO" 5; }
3763 # Provide some information about the compiler.
3764 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3765 set X $ac_compile
3766 ac_compiler=$2
3767 for ac_option in --version -v -V -qversion; do
3768 { { ac_try="$ac_compiler $ac_option >&5"
3769 case "(($ac_try" in
3770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3771 *) ac_try_echo=$ac_try;;
3772 esac
3773 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3774 $as_echo "$ac_try_echo"; } >&5
3775 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3776 ac_status=$?
3777 if test -s conftest.err; then
3778 sed '10a\
3779 ... rest of stderr output deleted ...
3780 10q' conftest.err >conftest.er1
3781 cat conftest.er1 >&5
3782 rm -f conftest.er1 conftest.err
3784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3785 test $ac_status = 0; }
3786 done
3788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3789 /* end confdefs.h. */
3792 main ()
3796 return 0;
3798 _ACEOF
3799 # FIXME: Cleanup?
3800 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3801 (eval $ac_link) 2>&5
3802 ac_status=$?
3803 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3804 test $ac_status = 0; }; then :
3805 gcc_no_link=no
3806 else
3807 gcc_no_link=yes
3809 if test x$gcc_no_link = xyes; then
3810 # Setting cross_compile will disable run tests; it will
3811 # also disable AC_CHECK_FILE but that's generally
3812 # correct if we can't link.
3813 cross_compiling=yes
3814 EXEEXT=
3815 else
3816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3817 /* end confdefs.h. */
3820 main ()
3824 return 0;
3826 _ACEOF
3827 ac_clean_files_save=$ac_clean_files
3828 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3829 # Try to create an executable without -o first, disregard a.out.
3830 # It will help us diagnose broken compilers, and finding out an intuition
3831 # of exeext.
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3833 $as_echo_n "checking for C compiler default output file name... " >&6; }
3834 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3836 # The possible output files:
3837 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3839 ac_rmfiles=
3840 for ac_file in $ac_files
3842 case $ac_file in
3843 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3844 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3845 esac
3846 done
3847 rm -f $ac_rmfiles
3849 if { { ac_try="$ac_link_default"
3850 case "(($ac_try" in
3851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3852 *) ac_try_echo=$ac_try;;
3853 esac
3854 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3855 $as_echo "$ac_try_echo"; } >&5
3856 (eval "$ac_link_default") 2>&5
3857 ac_status=$?
3858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3859 test $ac_status = 0; }; then :
3860 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3861 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3862 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3863 # so that the user can short-circuit this test for compilers unknown to
3864 # Autoconf.
3865 for ac_file in $ac_files ''
3867 test -f "$ac_file" || continue
3868 case $ac_file in
3869 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3871 [ab].out )
3872 # We found the default executable, but exeext='' is most
3873 # certainly right.
3874 break;;
3875 *.* )
3876 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3877 then :; else
3878 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3880 # We set ac_cv_exeext here because the later test for it is not
3881 # safe: cross compilers may not add the suffix if given an `-o'
3882 # argument, so we may need to know it at that point already.
3883 # Even if this section looks crufty: it has the advantage of
3884 # actually working.
3885 break;;
3887 break;;
3888 esac
3889 done
3890 test "$ac_cv_exeext" = no && ac_cv_exeext=
3892 else
3893 ac_file=''
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3896 $as_echo "$ac_file" >&6; }
3897 if test -z "$ac_file"; then :
3898 $as_echo "$as_me: failed program was:" >&5
3899 sed 's/^/| /' conftest.$ac_ext >&5
3901 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3902 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3903 { as_fn_set_status 77
3904 as_fn_error "C compiler cannot create executables
3905 See \`config.log' for more details." "$LINENO" 5; }; }
3907 ac_exeext=$ac_cv_exeext
3909 # Check that the compiler produces executables we can run. If not, either
3910 # the compiler is broken, or we cross compile.
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3912 $as_echo_n "checking whether the C compiler works... " >&6; }
3913 # If not cross compiling, check that we can run a simple program.
3914 if test "$cross_compiling" != yes; then
3915 if { ac_try='./$ac_file'
3916 { { case "(($ac_try" in
3917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3918 *) ac_try_echo=$ac_try;;
3919 esac
3920 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3921 $as_echo "$ac_try_echo"; } >&5
3922 (eval "$ac_try") 2>&5
3923 ac_status=$?
3924 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3925 test $ac_status = 0; }; }; then
3926 cross_compiling=no
3927 else
3928 if test "$cross_compiling" = maybe; then
3929 cross_compiling=yes
3930 else
3931 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3932 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3933 as_fn_error "cannot run C compiled programs.
3934 If you meant to cross compile, use \`--host'.
3935 See \`config.log' for more details." "$LINENO" 5; }
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3940 $as_echo "yes" >&6; }
3942 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
3943 ac_clean_files=$ac_clean_files_save
3944 # Check that the compiler produces executables we can run. If not, either
3945 # the compiler is broken, or we cross compile.
3946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3947 $as_echo_n "checking whether we are cross compiling... " >&6; }
3948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3949 $as_echo "$cross_compiling" >&6; }
3951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3952 $as_echo_n "checking for suffix of executables... " >&6; }
3953 if { { ac_try="$ac_link"
3954 case "(($ac_try" in
3955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3956 *) ac_try_echo=$ac_try;;
3957 esac
3958 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3959 $as_echo "$ac_try_echo"; } >&5
3960 (eval "$ac_link") 2>&5
3961 ac_status=$?
3962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3963 test $ac_status = 0; }; then :
3964 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3965 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3966 # work properly (i.e., refer to `conftest.exe'), while it won't with
3967 # `rm'.
3968 for ac_file in conftest.exe conftest conftest.*; do
3969 test -f "$ac_file" || continue
3970 case $ac_file in
3971 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3972 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3973 break;;
3974 * ) break;;
3975 esac
3976 done
3977 else
3978 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3979 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3980 as_fn_error "cannot compute suffix of executables: cannot compile and link
3981 See \`config.log' for more details." "$LINENO" 5; }
3983 rm -f conftest$ac_cv_exeext
3984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3985 $as_echo "$ac_cv_exeext" >&6; }
3987 rm -f conftest.$ac_ext
3988 EXEEXT=$ac_cv_exeext
3989 ac_exeext=$EXEEXT
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3992 $as_echo_n "checking for suffix of object files... " >&6; }
3993 if test "${ac_cv_objext+set}" = set; then :
3994 $as_echo_n "(cached) " >&6
3995 else
3996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3997 /* end confdefs.h. */
4000 main ()
4004 return 0;
4006 _ACEOF
4007 rm -f conftest.o conftest.obj
4008 if { { ac_try="$ac_compile"
4009 case "(($ac_try" in
4010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4011 *) ac_try_echo=$ac_try;;
4012 esac
4013 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4014 $as_echo "$ac_try_echo"; } >&5
4015 (eval "$ac_compile") 2>&5
4016 ac_status=$?
4017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4018 test $ac_status = 0; }; then :
4019 for ac_file in conftest.o conftest.obj conftest.*; do
4020 test -f "$ac_file" || continue;
4021 case $ac_file in
4022 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4023 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4024 break;;
4025 esac
4026 done
4027 else
4028 $as_echo "$as_me: failed program was:" >&5
4029 sed 's/^/| /' conftest.$ac_ext >&5
4031 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4032 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4033 as_fn_error "cannot compute suffix of object files: cannot compile
4034 See \`config.log' for more details." "$LINENO" 5; }
4036 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4039 $as_echo "$ac_cv_objext" >&6; }
4040 OBJEXT=$ac_cv_objext
4041 ac_objext=$OBJEXT
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4043 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4044 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4045 $as_echo_n "(cached) " >&6
4046 else
4047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4048 /* end confdefs.h. */
4051 main ()
4053 #ifndef __GNUC__
4054 choke me
4055 #endif
4058 return 0;
4060 _ACEOF
4061 if ac_fn_c_try_compile "$LINENO"; then :
4062 ac_compiler_gnu=yes
4063 else
4064 ac_compiler_gnu=no
4066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4067 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4071 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4072 if test $ac_compiler_gnu = yes; then
4073 GCC=yes
4074 else
4075 GCC=
4077 ac_test_CFLAGS=${CFLAGS+set}
4078 ac_save_CFLAGS=$CFLAGS
4079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4080 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4081 if test "${ac_cv_prog_cc_g+set}" = set; then :
4082 $as_echo_n "(cached) " >&6
4083 else
4084 ac_save_c_werror_flag=$ac_c_werror_flag
4085 ac_c_werror_flag=yes
4086 ac_cv_prog_cc_g=no
4087 CFLAGS="-g"
4088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4089 /* end confdefs.h. */
4092 main ()
4096 return 0;
4098 _ACEOF
4099 if ac_fn_c_try_compile "$LINENO"; then :
4100 ac_cv_prog_cc_g=yes
4101 else
4102 CFLAGS=""
4103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4104 /* end confdefs.h. */
4107 main ()
4111 return 0;
4113 _ACEOF
4114 if ac_fn_c_try_compile "$LINENO"; then :
4116 else
4117 ac_c_werror_flag=$ac_save_c_werror_flag
4118 CFLAGS="-g"
4119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4120 /* end confdefs.h. */
4123 main ()
4127 return 0;
4129 _ACEOF
4130 if ac_fn_c_try_compile "$LINENO"; then :
4131 ac_cv_prog_cc_g=yes
4133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4138 ac_c_werror_flag=$ac_save_c_werror_flag
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4141 $as_echo "$ac_cv_prog_cc_g" >&6; }
4142 if test "$ac_test_CFLAGS" = set; then
4143 CFLAGS=$ac_save_CFLAGS
4144 elif test $ac_cv_prog_cc_g = yes; then
4145 if test "$GCC" = yes; then
4146 CFLAGS="-g -O2"
4147 else
4148 CFLAGS="-g"
4150 else
4151 if test "$GCC" = yes; then
4152 CFLAGS="-O2"
4153 else
4154 CFLAGS=
4157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4158 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4159 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4160 $as_echo_n "(cached) " >&6
4161 else
4162 ac_cv_prog_cc_c89=no
4163 ac_save_CC=$CC
4164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4165 /* end confdefs.h. */
4166 #include <stdarg.h>
4167 #include <stdio.h>
4168 #include <sys/types.h>
4169 #include <sys/stat.h>
4170 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4171 struct buf { int x; };
4172 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4173 static char *e (p, i)
4174 char **p;
4175 int i;
4177 return p[i];
4179 static char *f (char * (*g) (char **, int), char **p, ...)
4181 char *s;
4182 va_list v;
4183 va_start (v,p);
4184 s = g (p, va_arg (v,int));
4185 va_end (v);
4186 return s;
4189 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4190 function prototypes and stuff, but not '\xHH' hex character constants.
4191 These don't provoke an error unfortunately, instead are silently treated
4192 as 'x'. The following induces an error, until -std is added to get
4193 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4194 array size at least. It's necessary to write '\x00'==0 to get something
4195 that's true only with -std. */
4196 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4198 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4199 inside strings and character constants. */
4200 #define FOO(x) 'x'
4201 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4203 int test (int i, double x);
4204 struct s1 {int (*f) (int a);};
4205 struct s2 {int (*f) (double a);};
4206 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4207 int argc;
4208 char **argv;
4210 main ()
4212 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4214 return 0;
4216 _ACEOF
4217 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4218 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4220 CC="$ac_save_CC $ac_arg"
4221 if ac_fn_c_try_compile "$LINENO"; then :
4222 ac_cv_prog_cc_c89=$ac_arg
4224 rm -f core conftest.err conftest.$ac_objext
4225 test "x$ac_cv_prog_cc_c89" != "xno" && break
4226 done
4227 rm -f conftest.$ac_ext
4228 CC=$ac_save_CC
4231 # AC_CACHE_VAL
4232 case "x$ac_cv_prog_cc_c89" in
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4235 $as_echo "none needed" >&6; } ;;
4236 xno)
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4238 $as_echo "unsupported" >&6; } ;;
4240 CC="$CC $ac_cv_prog_cc_c89"
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4242 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4243 esac
4244 if test "x$ac_cv_prog_cc_c89" != xno; then :
4248 ac_ext=c
4249 ac_cpp='$CPP $CPPFLAGS'
4250 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4251 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4252 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4254 depcc="$CC" am_compiler_list=
4256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4257 $as_echo_n "checking dependency style of $depcc... " >&6; }
4258 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4259 $as_echo_n "(cached) " >&6
4260 else
4261 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4262 # We make a subdir and do the tests there. Otherwise we can end up
4263 # making bogus files that we don't know about and never remove. For
4264 # instance it was reported that on HP-UX the gcc test will end up
4265 # making a dummy file named `D' -- because `-MD' means `put the output
4266 # in D'.
4267 mkdir conftest.dir
4268 # Copy depcomp to subdir because otherwise we won't find it if we're
4269 # using a relative directory.
4270 cp "$am_depcomp" conftest.dir
4271 cd conftest.dir
4272 # We will build objects and dependencies in a subdirectory because
4273 # it helps to detect inapplicable dependency modes. For instance
4274 # both Tru64's cc and ICC support -MD to output dependencies as a
4275 # side effect of compilation, but ICC will put the dependencies in
4276 # the current directory while Tru64 will put them in the object
4277 # directory.
4278 mkdir sub
4280 am_cv_CC_dependencies_compiler_type=none
4281 if test "$am_compiler_list" = ""; then
4282 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4284 am__universal=false
4285 case " $depcc " in #(
4286 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4287 esac
4289 for depmode in $am_compiler_list; do
4290 # Setup a source with many dependencies, because some compilers
4291 # like to wrap large dependency lists on column 80 (with \), and
4292 # we should not choose a depcomp mode which is confused by this.
4294 # We need to recreate these files for each test, as the compiler may
4295 # overwrite some of them when testing with obscure command lines.
4296 # This happens at least with the AIX C compiler.
4297 : > sub/conftest.c
4298 for i in 1 2 3 4 5 6; do
4299 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4300 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4301 # Solaris 8's {/usr,}/bin/sh.
4302 touch sub/conftst$i.h
4303 done
4304 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4306 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4307 # mode. It turns out that the SunPro C++ compiler does not properly
4308 # handle `-M -o', and we need to detect this. Also, some Intel
4309 # versions had trouble with output in subdirs
4310 am__obj=sub/conftest.${OBJEXT-o}
4311 am__minus_obj="-o $am__obj"
4312 case $depmode in
4313 gcc)
4314 # This depmode causes a compiler race in universal mode.
4315 test "$am__universal" = false || continue
4317 nosideeffect)
4318 # after this tag, mechanisms are not by side-effect, so they'll
4319 # only be used when explicitly requested
4320 if test "x$enable_dependency_tracking" = xyes; then
4321 continue
4322 else
4323 break
4326 msvisualcpp | msvcmsys)
4327 # This compiler won't grok `-c -o', but also, the minuso test has
4328 # not run yet. These depmodes are late enough in the game, and
4329 # so weak that their functioning should not be impacted.
4330 am__obj=conftest.${OBJEXT-o}
4331 am__minus_obj=
4333 none) break ;;
4334 esac
4335 if depmode=$depmode \
4336 source=sub/conftest.c object=$am__obj \
4337 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4338 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4339 >/dev/null 2>conftest.err &&
4340 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4341 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4342 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4343 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4344 # icc doesn't choke on unknown options, it will just issue warnings
4345 # or remarks (even with -Werror). So we grep stderr for any message
4346 # that says an option was ignored or not supported.
4347 # When given -MP, icc 7.0 and 7.1 complain thusly:
4348 # icc: Command line warning: ignoring option '-M'; no argument required
4349 # The diagnosis changed in icc 8.0:
4350 # icc: Command line remark: option '-MP' not supported
4351 if (grep 'ignoring option' conftest.err ||
4352 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4353 am_cv_CC_dependencies_compiler_type=$depmode
4354 break
4357 done
4359 cd ..
4360 rm -rf conftest.dir
4361 else
4362 am_cv_CC_dependencies_compiler_type=none
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4367 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4368 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4371 test "x$enable_dependency_tracking" != xno \
4372 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4373 am__fastdepCC_TRUE=
4374 am__fastdepCC_FALSE='#'
4375 else
4376 am__fastdepCC_TRUE='#'
4377 am__fastdepCC_FALSE=
4382 ac_ext=c
4383 ac_cpp='$CPP $CPPFLAGS'
4384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4388 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4389 # On Suns, sometimes $CPP names a directory.
4390 if test -n "$CPP" && test -d "$CPP"; then
4391 CPP=
4393 if test -z "$CPP"; then
4394 if test "${ac_cv_prog_CPP+set}" = set; then :
4395 $as_echo_n "(cached) " >&6
4396 else
4397 # Double quotes because CPP needs to be expanded
4398 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4400 ac_preproc_ok=false
4401 for ac_c_preproc_warn_flag in '' yes
4403 # Use a header file that comes with gcc, so configuring glibc
4404 # with a fresh cross-compiler works.
4405 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4406 # <limits.h> exists even on freestanding compilers.
4407 # On the NeXT, cc -E runs the code through the compiler's parser,
4408 # not just through cpp. "Syntax error" is here to catch this case.
4409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4410 /* end confdefs.h. */
4411 #ifdef __STDC__
4412 # include <limits.h>
4413 #else
4414 # include <assert.h>
4415 #endif
4416 Syntax error
4417 _ACEOF
4418 if ac_fn_c_try_cpp "$LINENO"; then :
4420 else
4421 # Broken: fails on valid input.
4422 continue
4424 rm -f conftest.err conftest.$ac_ext
4426 # OK, works on sane cases. Now check whether nonexistent headers
4427 # can be detected and how.
4428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4429 /* end confdefs.h. */
4430 #include <ac_nonexistent.h>
4431 _ACEOF
4432 if ac_fn_c_try_cpp "$LINENO"; then :
4433 # Broken: success on invalid input.
4434 continue
4435 else
4436 # Passes both tests.
4437 ac_preproc_ok=:
4438 break
4440 rm -f conftest.err conftest.$ac_ext
4442 done
4443 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4444 rm -f conftest.err conftest.$ac_ext
4445 if $ac_preproc_ok; then :
4446 break
4449 done
4450 ac_cv_prog_CPP=$CPP
4453 CPP=$ac_cv_prog_CPP
4454 else
4455 ac_cv_prog_CPP=$CPP
4457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4458 $as_echo "$CPP" >&6; }
4459 ac_preproc_ok=false
4460 for ac_c_preproc_warn_flag in '' yes
4462 # Use a header file that comes with gcc, so configuring glibc
4463 # with a fresh cross-compiler works.
4464 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4465 # <limits.h> exists even on freestanding compilers.
4466 # On the NeXT, cc -E runs the code through the compiler's parser,
4467 # not just through cpp. "Syntax error" is here to catch this case.
4468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4469 /* end confdefs.h. */
4470 #ifdef __STDC__
4471 # include <limits.h>
4472 #else
4473 # include <assert.h>
4474 #endif
4475 Syntax error
4476 _ACEOF
4477 if ac_fn_c_try_cpp "$LINENO"; then :
4479 else
4480 # Broken: fails on valid input.
4481 continue
4483 rm -f conftest.err conftest.$ac_ext
4485 # OK, works on sane cases. Now check whether nonexistent headers
4486 # can be detected and how.
4487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4488 /* end confdefs.h. */
4489 #include <ac_nonexistent.h>
4490 _ACEOF
4491 if ac_fn_c_try_cpp "$LINENO"; then :
4492 # Broken: success on invalid input.
4493 continue
4494 else
4495 # Passes both tests.
4496 ac_preproc_ok=:
4497 break
4499 rm -f conftest.err conftest.$ac_ext
4501 done
4502 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4503 rm -f conftest.err conftest.$ac_ext
4504 if $ac_preproc_ok; then :
4506 else
4507 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4508 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4509 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4510 See \`config.log' for more details." "$LINENO" 5; }
4513 ac_ext=c
4514 ac_cpp='$CPP $CPPFLAGS'
4515 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4516 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4517 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4521 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4522 if test "${ac_cv_path_GREP+set}" = set; then :
4523 $as_echo_n "(cached) " >&6
4524 else
4525 if test -z "$GREP"; then
4526 ac_path_GREP_found=false
4527 # Loop through the user's path and test for each of PROGNAME-LIST
4528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4529 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4531 IFS=$as_save_IFS
4532 test -z "$as_dir" && as_dir=.
4533 for ac_prog in grep ggrep; do
4534 for ac_exec_ext in '' $ac_executable_extensions; do
4535 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4536 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4537 # Check for GNU ac_path_GREP and select it if it is found.
4538 # Check for GNU $ac_path_GREP
4539 case `"$ac_path_GREP" --version 2>&1` in
4540 *GNU*)
4541 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4543 ac_count=0
4544 $as_echo_n 0123456789 >"conftest.in"
4545 while :
4547 cat "conftest.in" "conftest.in" >"conftest.tmp"
4548 mv "conftest.tmp" "conftest.in"
4549 cp "conftest.in" "conftest.nl"
4550 $as_echo 'GREP' >> "conftest.nl"
4551 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4552 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4553 as_fn_arith $ac_count + 1 && ac_count=$as_val
4554 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4555 # Best one so far, save it but keep looking for a better one
4556 ac_cv_path_GREP="$ac_path_GREP"
4557 ac_path_GREP_max=$ac_count
4559 # 10*(2^10) chars as input seems more than enough
4560 test $ac_count -gt 10 && break
4561 done
4562 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4563 esac
4565 $ac_path_GREP_found && break 3
4566 done
4567 done
4568 done
4569 IFS=$as_save_IFS
4570 if test -z "$ac_cv_path_GREP"; then
4571 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4573 else
4574 ac_cv_path_GREP=$GREP
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4579 $as_echo "$ac_cv_path_GREP" >&6; }
4580 GREP="$ac_cv_path_GREP"
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4584 $as_echo_n "checking for egrep... " >&6; }
4585 if test "${ac_cv_path_EGREP+set}" = set; then :
4586 $as_echo_n "(cached) " >&6
4587 else
4588 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4589 then ac_cv_path_EGREP="$GREP -E"
4590 else
4591 if test -z "$EGREP"; then
4592 ac_path_EGREP_found=false
4593 # Loop through the user's path and test for each of PROGNAME-LIST
4594 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4595 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4597 IFS=$as_save_IFS
4598 test -z "$as_dir" && as_dir=.
4599 for ac_prog in egrep; do
4600 for ac_exec_ext in '' $ac_executable_extensions; do
4601 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4602 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4603 # Check for GNU ac_path_EGREP and select it if it is found.
4604 # Check for GNU $ac_path_EGREP
4605 case `"$ac_path_EGREP" --version 2>&1` in
4606 *GNU*)
4607 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4609 ac_count=0
4610 $as_echo_n 0123456789 >"conftest.in"
4611 while :
4613 cat "conftest.in" "conftest.in" >"conftest.tmp"
4614 mv "conftest.tmp" "conftest.in"
4615 cp "conftest.in" "conftest.nl"
4616 $as_echo 'EGREP' >> "conftest.nl"
4617 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4618 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4619 as_fn_arith $ac_count + 1 && ac_count=$as_val
4620 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4621 # Best one so far, save it but keep looking for a better one
4622 ac_cv_path_EGREP="$ac_path_EGREP"
4623 ac_path_EGREP_max=$ac_count
4625 # 10*(2^10) chars as input seems more than enough
4626 test $ac_count -gt 10 && break
4627 done
4628 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4629 esac
4631 $ac_path_EGREP_found && break 3
4632 done
4633 done
4634 done
4635 IFS=$as_save_IFS
4636 if test -z "$ac_cv_path_EGREP"; then
4637 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4639 else
4640 ac_cv_path_EGREP=$EGREP
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4646 $as_echo "$ac_cv_path_EGREP" >&6; }
4647 EGREP="$ac_cv_path_EGREP"
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4651 $as_echo_n "checking for ANSI C header files... " >&6; }
4652 if test "${ac_cv_header_stdc+set}" = set; then :
4653 $as_echo_n "(cached) " >&6
4654 else
4655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4656 /* end confdefs.h. */
4657 #include <stdlib.h>
4658 #include <stdarg.h>
4659 #include <string.h>
4660 #include <float.h>
4663 main ()
4667 return 0;
4669 _ACEOF
4670 if ac_fn_c_try_compile "$LINENO"; then :
4671 ac_cv_header_stdc=yes
4672 else
4673 ac_cv_header_stdc=no
4675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4677 if test $ac_cv_header_stdc = yes; then
4678 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4680 /* end confdefs.h. */
4681 #include <string.h>
4683 _ACEOF
4684 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4685 $EGREP "memchr" >/dev/null 2>&1; then :
4687 else
4688 ac_cv_header_stdc=no
4690 rm -f conftest*
4694 if test $ac_cv_header_stdc = yes; then
4695 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4697 /* end confdefs.h. */
4698 #include <stdlib.h>
4700 _ACEOF
4701 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4702 $EGREP "free" >/dev/null 2>&1; then :
4704 else
4705 ac_cv_header_stdc=no
4707 rm -f conftest*
4711 if test $ac_cv_header_stdc = yes; then
4712 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4713 if test "$cross_compiling" = yes; then :
4715 else
4716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4717 /* end confdefs.h. */
4718 #include <ctype.h>
4719 #include <stdlib.h>
4720 #if ((' ' & 0x0FF) == 0x020)
4721 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4722 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4723 #else
4724 # define ISLOWER(c) \
4725 (('a' <= (c) && (c) <= 'i') \
4726 || ('j' <= (c) && (c) <= 'r') \
4727 || ('s' <= (c) && (c) <= 'z'))
4728 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4729 #endif
4731 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4733 main ()
4735 int i;
4736 for (i = 0; i < 256; i++)
4737 if (XOR (islower (i), ISLOWER (i))
4738 || toupper (i) != TOUPPER (i))
4739 return 2;
4740 return 0;
4742 _ACEOF
4743 if ac_fn_c_try_run "$LINENO"; then :
4745 else
4746 ac_cv_header_stdc=no
4748 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4749 conftest.$ac_objext conftest.beam conftest.$ac_ext
4754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4755 $as_echo "$ac_cv_header_stdc" >&6; }
4756 if test $ac_cv_header_stdc = yes; then
4758 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4762 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4763 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4764 inttypes.h stdint.h unistd.h
4765 do :
4766 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4767 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4769 eval as_val=\$$as_ac_Header
4770 if test "x$as_val" = x""yes; then :
4771 cat >>confdefs.h <<_ACEOF
4772 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4773 _ACEOF
4777 done
4781 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4782 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4783 MINIX=yes
4784 else
4785 MINIX=
4789 if test "$MINIX" = yes; then
4791 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4794 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4797 $as_echo "#define _MINIX 1" >>confdefs.h
4802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4803 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4804 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4805 $as_echo_n "(cached) " >&6
4806 else
4807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4808 /* end confdefs.h. */
4810 # define __EXTENSIONS__ 1
4811 $ac_includes_default
4813 main ()
4817 return 0;
4819 _ACEOF
4820 if ac_fn_c_try_compile "$LINENO"; then :
4821 ac_cv_safe_to_define___extensions__=yes
4822 else
4823 ac_cv_safe_to_define___extensions__=no
4825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4828 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4829 test $ac_cv_safe_to_define___extensions__ = yes &&
4830 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4832 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4834 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4836 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4838 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4842 # Calculate toolexeclibdir
4843 # Also toolexecdir, though it's only used in toolexeclibdir
4844 case ${version_specific_libs} in
4845 yes)
4846 # Need the gcc compiler version to know where to install libraries
4847 # and header files if --enable-version-specific-runtime-libs option
4848 # is selected.
4849 toolexecdir='$(libdir)/gcc/$(target_alias)'
4850 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
4853 if test -n "$with_cross_host" &&
4854 test x"$with_cross_host" != x"no"; then
4855 # Install a library built with a cross compiler in tooldir, not libdir.
4856 toolexecdir='$(exec_prefix)/$(target_alias)'
4857 toolexeclibdir='$(toolexecdir)/lib'
4858 else
4859 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
4860 toolexeclibdir='$(libdir)'
4862 multi_os_directory=`$CC -print-multi-os-directory`
4863 case $multi_os_directory in
4864 .) ;; # Avoid trailing /.
4865 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
4866 esac
4868 esac
4872 # Create a spec file, so that compile/link tests don't fail
4873 test -f libgfortran.spec || touch libgfortran.spec
4875 # Check the compiler.
4876 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
4877 # We must force CC to /not/ be precious variables; otherwise
4878 # the wrong, non-multilib-adjusted value will be used in multilibs.
4879 # As a side effect, we have to subst CFLAGS ourselves.
4883 ac_ext=c
4884 ac_cpp='$CPP $CPPFLAGS'
4885 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4886 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4887 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4888 if test -n "$ac_tool_prefix"; then
4889 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4890 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4892 $as_echo_n "checking for $ac_word... " >&6; }
4893 if test "${ac_cv_prog_CC+set}" = set; then :
4894 $as_echo_n "(cached) " >&6
4895 else
4896 if test -n "$CC"; then
4897 ac_cv_prog_CC="$CC" # Let the user override the test.
4898 else
4899 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4900 for as_dir in $PATH
4902 IFS=$as_save_IFS
4903 test -z "$as_dir" && as_dir=.
4904 for ac_exec_ext in '' $ac_executable_extensions; do
4905 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4906 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4907 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4908 break 2
4910 done
4911 done
4912 IFS=$as_save_IFS
4916 CC=$ac_cv_prog_CC
4917 if test -n "$CC"; then
4918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4919 $as_echo "$CC" >&6; }
4920 else
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4922 $as_echo "no" >&6; }
4927 if test -z "$ac_cv_prog_CC"; then
4928 ac_ct_CC=$CC
4929 # Extract the first word of "gcc", so it can be a program name with args.
4930 set dummy gcc; ac_word=$2
4931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4932 $as_echo_n "checking for $ac_word... " >&6; }
4933 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4934 $as_echo_n "(cached) " >&6
4935 else
4936 if test -n "$ac_ct_CC"; then
4937 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4938 else
4939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4940 for as_dir in $PATH
4942 IFS=$as_save_IFS
4943 test -z "$as_dir" && as_dir=.
4944 for ac_exec_ext in '' $ac_executable_extensions; do
4945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4946 ac_cv_prog_ac_ct_CC="gcc"
4947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4948 break 2
4950 done
4951 done
4952 IFS=$as_save_IFS
4956 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4957 if test -n "$ac_ct_CC"; then
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4959 $as_echo "$ac_ct_CC" >&6; }
4960 else
4961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4962 $as_echo "no" >&6; }
4965 if test "x$ac_ct_CC" = x; then
4966 CC=""
4967 else
4968 case $cross_compiling:$ac_tool_warned in
4969 yes:)
4970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4971 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4972 ac_tool_warned=yes ;;
4973 esac
4974 CC=$ac_ct_CC
4976 else
4977 CC="$ac_cv_prog_CC"
4980 if test -z "$CC"; then
4981 if test -n "$ac_tool_prefix"; then
4982 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
4983 set dummy ${ac_tool_prefix}cc; ac_word=$2
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4985 $as_echo_n "checking for $ac_word... " >&6; }
4986 if test "${ac_cv_prog_CC+set}" = set; then :
4987 $as_echo_n "(cached) " >&6
4988 else
4989 if test -n "$CC"; then
4990 ac_cv_prog_CC="$CC" # Let the user override the test.
4991 else
4992 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4993 for as_dir in $PATH
4995 IFS=$as_save_IFS
4996 test -z "$as_dir" && as_dir=.
4997 for ac_exec_ext in '' $ac_executable_extensions; do
4998 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4999 ac_cv_prog_CC="${ac_tool_prefix}cc"
5000 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5001 break 2
5003 done
5004 done
5005 IFS=$as_save_IFS
5009 CC=$ac_cv_prog_CC
5010 if test -n "$CC"; then
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5012 $as_echo "$CC" >&6; }
5013 else
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5015 $as_echo "no" >&6; }
5021 if test -z "$CC"; then
5022 # Extract the first word of "cc", so it can be a program name with args.
5023 set dummy cc; ac_word=$2
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5025 $as_echo_n "checking for $ac_word... " >&6; }
5026 if test "${ac_cv_prog_CC+set}" = set; then :
5027 $as_echo_n "(cached) " >&6
5028 else
5029 if test -n "$CC"; then
5030 ac_cv_prog_CC="$CC" # Let the user override the test.
5031 else
5032 ac_prog_rejected=no
5033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5034 for as_dir in $PATH
5036 IFS=$as_save_IFS
5037 test -z "$as_dir" && as_dir=.
5038 for ac_exec_ext in '' $ac_executable_extensions; do
5039 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5040 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5041 ac_prog_rejected=yes
5042 continue
5044 ac_cv_prog_CC="cc"
5045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5046 break 2
5048 done
5049 done
5050 IFS=$as_save_IFS
5052 if test $ac_prog_rejected = yes; then
5053 # We found a bogon in the path, so make sure we never use it.
5054 set dummy $ac_cv_prog_CC
5055 shift
5056 if test $# != 0; then
5057 # We chose a different compiler from the bogus one.
5058 # However, it has the same basename, so the bogon will be chosen
5059 # first if we set CC to just the basename; use the full file name.
5060 shift
5061 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5066 CC=$ac_cv_prog_CC
5067 if test -n "$CC"; then
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5069 $as_echo "$CC" >&6; }
5070 else
5071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5072 $as_echo "no" >&6; }
5077 if test -z "$CC"; then
5078 if test -n "$ac_tool_prefix"; then
5079 for ac_prog in cl.exe
5081 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5082 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5084 $as_echo_n "checking for $ac_word... " >&6; }
5085 if test "${ac_cv_prog_CC+set}" = set; then :
5086 $as_echo_n "(cached) " >&6
5087 else
5088 if test -n "$CC"; then
5089 ac_cv_prog_CC="$CC" # Let the user override the test.
5090 else
5091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5092 for as_dir in $PATH
5094 IFS=$as_save_IFS
5095 test -z "$as_dir" && as_dir=.
5096 for ac_exec_ext in '' $ac_executable_extensions; do
5097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5098 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5100 break 2
5102 done
5103 done
5104 IFS=$as_save_IFS
5108 CC=$ac_cv_prog_CC
5109 if test -n "$CC"; then
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5111 $as_echo "$CC" >&6; }
5112 else
5113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5114 $as_echo "no" >&6; }
5118 test -n "$CC" && break
5119 done
5121 if test -z "$CC"; then
5122 ac_ct_CC=$CC
5123 for ac_prog in cl.exe
5125 # Extract the first word of "$ac_prog", so it can be a program name with args.
5126 set dummy $ac_prog; ac_word=$2
5127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5128 $as_echo_n "checking for $ac_word... " >&6; }
5129 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5130 $as_echo_n "(cached) " >&6
5131 else
5132 if test -n "$ac_ct_CC"; then
5133 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5134 else
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 ac_cv_prog_ac_ct_CC="$ac_prog"
5143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5144 break 2
5146 done
5147 done
5148 IFS=$as_save_IFS
5152 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5153 if test -n "$ac_ct_CC"; then
5154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5155 $as_echo "$ac_ct_CC" >&6; }
5156 else
5157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5158 $as_echo "no" >&6; }
5162 test -n "$ac_ct_CC" && break
5163 done
5165 if test "x$ac_ct_CC" = x; then
5166 CC=""
5167 else
5168 case $cross_compiling:$ac_tool_warned in
5169 yes:)
5170 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5171 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5172 ac_tool_warned=yes ;;
5173 esac
5174 CC=$ac_ct_CC
5181 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5182 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5183 as_fn_error "no acceptable C compiler found in \$PATH
5184 See \`config.log' for more details." "$LINENO" 5; }
5186 # Provide some information about the compiler.
5187 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5188 set X $ac_compile
5189 ac_compiler=$2
5190 for ac_option in --version -v -V -qversion; do
5191 { { ac_try="$ac_compiler $ac_option >&5"
5192 case "(($ac_try" in
5193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5194 *) ac_try_echo=$ac_try;;
5195 esac
5196 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5197 $as_echo "$ac_try_echo"; } >&5
5198 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5199 ac_status=$?
5200 if test -s conftest.err; then
5201 sed '10a\
5202 ... rest of stderr output deleted ...
5203 10q' conftest.err >conftest.er1
5204 cat conftest.er1 >&5
5205 rm -f conftest.er1 conftest.err
5207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5208 test $ac_status = 0; }
5209 done
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5212 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5213 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5214 $as_echo_n "(cached) " >&6
5215 else
5216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5217 /* end confdefs.h. */
5220 main ()
5222 #ifndef __GNUC__
5223 choke me
5224 #endif
5227 return 0;
5229 _ACEOF
5230 if ac_fn_c_try_compile "$LINENO"; then :
5231 ac_compiler_gnu=yes
5232 else
5233 ac_compiler_gnu=no
5235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5236 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5240 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5241 if test $ac_compiler_gnu = yes; then
5242 GCC=yes
5243 else
5244 GCC=
5246 ac_test_CFLAGS=${CFLAGS+set}
5247 ac_save_CFLAGS=$CFLAGS
5248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5249 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5250 if test "${ac_cv_prog_cc_g+set}" = set; then :
5251 $as_echo_n "(cached) " >&6
5252 else
5253 ac_save_c_werror_flag=$ac_c_werror_flag
5254 ac_c_werror_flag=yes
5255 ac_cv_prog_cc_g=no
5256 CFLAGS="-g"
5257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5258 /* end confdefs.h. */
5261 main ()
5265 return 0;
5267 _ACEOF
5268 if ac_fn_c_try_compile "$LINENO"; then :
5269 ac_cv_prog_cc_g=yes
5270 else
5271 CFLAGS=""
5272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5273 /* end confdefs.h. */
5276 main ()
5280 return 0;
5282 _ACEOF
5283 if ac_fn_c_try_compile "$LINENO"; then :
5285 else
5286 ac_c_werror_flag=$ac_save_c_werror_flag
5287 CFLAGS="-g"
5288 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5289 /* end confdefs.h. */
5292 main ()
5296 return 0;
5298 _ACEOF
5299 if ac_fn_c_try_compile "$LINENO"; then :
5300 ac_cv_prog_cc_g=yes
5302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5307 ac_c_werror_flag=$ac_save_c_werror_flag
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5310 $as_echo "$ac_cv_prog_cc_g" >&6; }
5311 if test "$ac_test_CFLAGS" = set; then
5312 CFLAGS=$ac_save_CFLAGS
5313 elif test $ac_cv_prog_cc_g = yes; then
5314 if test "$GCC" = yes; then
5315 CFLAGS="-g -O2"
5316 else
5317 CFLAGS="-g"
5319 else
5320 if test "$GCC" = yes; then
5321 CFLAGS="-O2"
5322 else
5323 CFLAGS=
5326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5327 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5328 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5329 $as_echo_n "(cached) " >&6
5330 else
5331 ac_cv_prog_cc_c89=no
5332 ac_save_CC=$CC
5333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5334 /* end confdefs.h. */
5335 #include <stdarg.h>
5336 #include <stdio.h>
5337 #include <sys/types.h>
5338 #include <sys/stat.h>
5339 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5340 struct buf { int x; };
5341 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5342 static char *e (p, i)
5343 char **p;
5344 int i;
5346 return p[i];
5348 static char *f (char * (*g) (char **, int), char **p, ...)
5350 char *s;
5351 va_list v;
5352 va_start (v,p);
5353 s = g (p, va_arg (v,int));
5354 va_end (v);
5355 return s;
5358 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5359 function prototypes and stuff, but not '\xHH' hex character constants.
5360 These don't provoke an error unfortunately, instead are silently treated
5361 as 'x'. The following induces an error, until -std is added to get
5362 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5363 array size at least. It's necessary to write '\x00'==0 to get something
5364 that's true only with -std. */
5365 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5367 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5368 inside strings and character constants. */
5369 #define FOO(x) 'x'
5370 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5372 int test (int i, double x);
5373 struct s1 {int (*f) (int a);};
5374 struct s2 {int (*f) (double a);};
5375 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5376 int argc;
5377 char **argv;
5379 main ()
5381 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5383 return 0;
5385 _ACEOF
5386 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5387 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5389 CC="$ac_save_CC $ac_arg"
5390 if ac_fn_c_try_compile "$LINENO"; then :
5391 ac_cv_prog_cc_c89=$ac_arg
5393 rm -f core conftest.err conftest.$ac_objext
5394 test "x$ac_cv_prog_cc_c89" != "xno" && break
5395 done
5396 rm -f conftest.$ac_ext
5397 CC=$ac_save_CC
5400 # AC_CACHE_VAL
5401 case "x$ac_cv_prog_cc_c89" in
5403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5404 $as_echo "none needed" >&6; } ;;
5405 xno)
5406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5407 $as_echo "unsupported" >&6; } ;;
5409 CC="$CC $ac_cv_prog_cc_c89"
5410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5411 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5412 esac
5413 if test "x$ac_cv_prog_cc_c89" != xno; then :
5417 ac_ext=c
5418 ac_cpp='$CPP $CPPFLAGS'
5419 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5420 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5421 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5423 depcc="$CC" am_compiler_list=
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5426 $as_echo_n "checking dependency style of $depcc... " >&6; }
5427 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5428 $as_echo_n "(cached) " >&6
5429 else
5430 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5431 # We make a subdir and do the tests there. Otherwise we can end up
5432 # making bogus files that we don't know about and never remove. For
5433 # instance it was reported that on HP-UX the gcc test will end up
5434 # making a dummy file named `D' -- because `-MD' means `put the output
5435 # in D'.
5436 mkdir conftest.dir
5437 # Copy depcomp to subdir because otherwise we won't find it if we're
5438 # using a relative directory.
5439 cp "$am_depcomp" conftest.dir
5440 cd conftest.dir
5441 # We will build objects and dependencies in a subdirectory because
5442 # it helps to detect inapplicable dependency modes. For instance
5443 # both Tru64's cc and ICC support -MD to output dependencies as a
5444 # side effect of compilation, but ICC will put the dependencies in
5445 # the current directory while Tru64 will put them in the object
5446 # directory.
5447 mkdir sub
5449 am_cv_CC_dependencies_compiler_type=none
5450 if test "$am_compiler_list" = ""; then
5451 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5453 am__universal=false
5454 case " $depcc " in #(
5455 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5456 esac
5458 for depmode in $am_compiler_list; do
5459 # Setup a source with many dependencies, because some compilers
5460 # like to wrap large dependency lists on column 80 (with \), and
5461 # we should not choose a depcomp mode which is confused by this.
5463 # We need to recreate these files for each test, as the compiler may
5464 # overwrite some of them when testing with obscure command lines.
5465 # This happens at least with the AIX C compiler.
5466 : > sub/conftest.c
5467 for i in 1 2 3 4 5 6; do
5468 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5469 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5470 # Solaris 8's {/usr,}/bin/sh.
5471 touch sub/conftst$i.h
5472 done
5473 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5475 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5476 # mode. It turns out that the SunPro C++ compiler does not properly
5477 # handle `-M -o', and we need to detect this. Also, some Intel
5478 # versions had trouble with output in subdirs
5479 am__obj=sub/conftest.${OBJEXT-o}
5480 am__minus_obj="-o $am__obj"
5481 case $depmode in
5482 gcc)
5483 # This depmode causes a compiler race in universal mode.
5484 test "$am__universal" = false || continue
5486 nosideeffect)
5487 # after this tag, mechanisms are not by side-effect, so they'll
5488 # only be used when explicitly requested
5489 if test "x$enable_dependency_tracking" = xyes; then
5490 continue
5491 else
5492 break
5495 msvisualcpp | msvcmsys)
5496 # This compiler won't grok `-c -o', but also, the minuso test has
5497 # not run yet. These depmodes are late enough in the game, and
5498 # so weak that their functioning should not be impacted.
5499 am__obj=conftest.${OBJEXT-o}
5500 am__minus_obj=
5502 none) break ;;
5503 esac
5504 if depmode=$depmode \
5505 source=sub/conftest.c object=$am__obj \
5506 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5507 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5508 >/dev/null 2>conftest.err &&
5509 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5510 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5511 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5512 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5513 # icc doesn't choke on unknown options, it will just issue warnings
5514 # or remarks (even with -Werror). So we grep stderr for any message
5515 # that says an option was ignored or not supported.
5516 # When given -MP, icc 7.0 and 7.1 complain thusly:
5517 # icc: Command line warning: ignoring option '-M'; no argument required
5518 # The diagnosis changed in icc 8.0:
5519 # icc: Command line remark: option '-MP' not supported
5520 if (grep 'ignoring option' conftest.err ||
5521 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5522 am_cv_CC_dependencies_compiler_type=$depmode
5523 break
5526 done
5528 cd ..
5529 rm -rf conftest.dir
5530 else
5531 am_cv_CC_dependencies_compiler_type=none
5535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5536 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5537 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5540 test "x$enable_dependency_tracking" != xno \
5541 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5542 am__fastdepCC_TRUE=
5543 am__fastdepCC_FALSE='#'
5544 else
5545 am__fastdepCC_TRUE='#'
5546 am__fastdepCC_FALSE=
5552 # Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC.
5553 if test "x$GCC" = "xyes"; then
5554 AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring"
5555 ## We like to use C99 routines when available. This makes sure that
5556 ## __STDC_VERSION__ is set such that libc includes make them available.
5557 AM_CFLAGS="-std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings"
5558 ## Compile the following tests with the same system header contents
5559 ## that we'll encounter when compiling our own source files.
5560 CFLAGS="-std=gnu99 $CFLAGS"
5566 # Check for symbol versioning (copied from libssp).
5567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
5568 $as_echo_n "checking whether symbol versioning is supported... " >&6; }
5569 # Check whether --enable-symvers was given.
5570 if test "${enable_symvers+set}" = set; then :
5571 enableval=$enable_symvers; gfortran_use_symver=$enableval
5572 else
5573 gfortran_use_symver=yes
5576 if test "x$gfortran_use_symver" = xyes; then
5577 save_LDFLAGS="$LDFLAGS"
5578 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
5579 cat > conftest.map <<EOF
5580 FOO_1.0 {
5581 global: *foo*; bar; local: *;
5584 if test x$gcc_no_link = xyes; then
5585 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5588 /* end confdefs.h. */
5589 int foo;
5591 main ()
5595 return 0;
5597 _ACEOF
5598 if ac_fn_c_try_link "$LINENO"; then :
5599 gfortran_use_symver=gnu
5600 else
5601 gfortran_use_symver=no
5603 rm -f core conftest.err conftest.$ac_objext \
5604 conftest$ac_exeext conftest.$ac_ext
5605 if test x$gfortran_use_symver = xno; then
5606 case "$target_os" in
5607 solaris2*)
5608 LDFLAGS="$save_LDFLAGS"
5609 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
5610 # Sun ld cannot handle wildcards and treats all entries as undefined.
5611 cat > conftest.map <<EOF
5612 FOO_1.0 {
5613 global: foo; local: *;
5616 if test x$gcc_no_link = xyes; then
5617 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5620 /* end confdefs.h. */
5621 int foo;
5623 main ()
5627 return 0;
5629 _ACEOF
5630 if ac_fn_c_try_link "$LINENO"; then :
5631 gfortran_use_symver=sun
5632 else
5633 gfortran_use_symver=no
5635 rm -f core conftest.err conftest.$ac_objext \
5636 conftest$ac_exeext conftest.$ac_ext
5638 esac
5640 LDFLAGS="$save_LDFLAGS"
5642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gfortran_use_symver" >&5
5643 $as_echo "$gfortran_use_symver" >&6; }
5644 if test "x$gfortran_use_symver" != xno; then
5645 LIBGFOR_USE_SYMVER_TRUE=
5646 LIBGFOR_USE_SYMVER_FALSE='#'
5647 else
5648 LIBGFOR_USE_SYMVER_TRUE='#'
5649 LIBGFOR_USE_SYMVER_FALSE=
5652 if test "x$gfortran_use_symver" = xgnu; then
5653 LIBGFOR_USE_SYMVER_GNU_TRUE=
5654 LIBGFOR_USE_SYMVER_GNU_FALSE='#'
5655 else
5656 LIBGFOR_USE_SYMVER_GNU_TRUE='#'
5657 LIBGFOR_USE_SYMVER_GNU_FALSE=
5660 if test "x$gfortran_use_symver" = xsun; then
5661 LIBGFOR_USE_SYMVER_SUN_TRUE=
5662 LIBGFOR_USE_SYMVER_SUN_FALSE='#'
5663 else
5664 LIBGFOR_USE_SYMVER_SUN_TRUE='#'
5665 LIBGFOR_USE_SYMVER_SUN_FALSE=
5669 # Figure out whether the compiler supports "-ffunction-sections -fdata-sections",
5670 # similarly to how libstdc++ does it
5671 ac_test_CFLAGS="${CFLAGS+set}"
5672 ac_save_CFLAGS="$CFLAGS"
5674 # Check for -ffunction-sections -fdata-sections
5675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc that supports -ffunction-sections -fdata-sections" >&5
5676 $as_echo_n "checking for gcc that supports -ffunction-sections -fdata-sections... " >&6; }
5677 CFLAGS='-Werror -ffunction-sections -fdata-sections'
5678 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5679 /* end confdefs.h. */
5682 main ()
5684 int foo;
5686 return 0;
5688 _ACEOF
5689 if ac_fn_c_try_compile "$LINENO"; then :
5690 ac_fdsections=yes
5691 else
5692 ac_fdsections=no
5694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5695 if test "$ac_test_CFLAGS" = set; then
5696 CFLAGS="$ac_save_CFLAGS"
5697 else
5698 # this is the suspicious part
5699 CFLAGS=""
5701 if test x"$ac_fdsections" = x"yes"; then
5702 SECTION_FLAGS='-ffunction-sections -fdata-sections'
5704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5
5705 $as_echo "$ac_fdsections" >&6; }
5708 # Find other programs we need.
5709 if test -n "$ac_tool_prefix"; then
5710 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5711 set dummy ${ac_tool_prefix}as; ac_word=$2
5712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5713 $as_echo_n "checking for $ac_word... " >&6; }
5714 if test "${ac_cv_prog_AS+set}" = set; then :
5715 $as_echo_n "(cached) " >&6
5716 else
5717 if test -n "$AS"; then
5718 ac_cv_prog_AS="$AS" # Let the user override the test.
5719 else
5720 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5721 for as_dir in $PATH
5723 IFS=$as_save_IFS
5724 test -z "$as_dir" && as_dir=.
5725 for ac_exec_ext in '' $ac_executable_extensions; do
5726 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5727 ac_cv_prog_AS="${ac_tool_prefix}as"
5728 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5729 break 2
5731 done
5732 done
5733 IFS=$as_save_IFS
5737 AS=$ac_cv_prog_AS
5738 if test -n "$AS"; then
5739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5740 $as_echo "$AS" >&6; }
5741 else
5742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5743 $as_echo "no" >&6; }
5748 if test -z "$ac_cv_prog_AS"; then
5749 ac_ct_AS=$AS
5750 # Extract the first word of "as", so it can be a program name with args.
5751 set dummy as; ac_word=$2
5752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5753 $as_echo_n "checking for $ac_word... " >&6; }
5754 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5755 $as_echo_n "(cached) " >&6
5756 else
5757 if test -n "$ac_ct_AS"; then
5758 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5759 else
5760 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5761 for as_dir in $PATH
5763 IFS=$as_save_IFS
5764 test -z "$as_dir" && as_dir=.
5765 for ac_exec_ext in '' $ac_executable_extensions; do
5766 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5767 ac_cv_prog_ac_ct_AS="as"
5768 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5769 break 2
5771 done
5772 done
5773 IFS=$as_save_IFS
5777 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5778 if test -n "$ac_ct_AS"; then
5779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5780 $as_echo "$ac_ct_AS" >&6; }
5781 else
5782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5783 $as_echo "no" >&6; }
5786 if test "x$ac_ct_AS" = x; then
5787 AS=""
5788 else
5789 case $cross_compiling:$ac_tool_warned in
5790 yes:)
5791 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5792 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5793 ac_tool_warned=yes ;;
5794 esac
5795 AS=$ac_ct_AS
5797 else
5798 AS="$ac_cv_prog_AS"
5801 if test -n "$ac_tool_prefix"; then
5802 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
5803 set dummy ${ac_tool_prefix}ar; ac_word=$2
5804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5805 $as_echo_n "checking for $ac_word... " >&6; }
5806 if test "${ac_cv_prog_AR+set}" = set; then :
5807 $as_echo_n "(cached) " >&6
5808 else
5809 if test -n "$AR"; then
5810 ac_cv_prog_AR="$AR" # Let the user override the test.
5811 else
5812 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5813 for as_dir in $PATH
5815 IFS=$as_save_IFS
5816 test -z "$as_dir" && as_dir=.
5817 for ac_exec_ext in '' $ac_executable_extensions; do
5818 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5819 ac_cv_prog_AR="${ac_tool_prefix}ar"
5820 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5821 break 2
5823 done
5824 done
5825 IFS=$as_save_IFS
5829 AR=$ac_cv_prog_AR
5830 if test -n "$AR"; then
5831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5832 $as_echo "$AR" >&6; }
5833 else
5834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5835 $as_echo "no" >&6; }
5840 if test -z "$ac_cv_prog_AR"; then
5841 ac_ct_AR=$AR
5842 # Extract the first word of "ar", so it can be a program name with args.
5843 set dummy ar; ac_word=$2
5844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5845 $as_echo_n "checking for $ac_word... " >&6; }
5846 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
5847 $as_echo_n "(cached) " >&6
5848 else
5849 if test -n "$ac_ct_AR"; then
5850 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5851 else
5852 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5853 for as_dir in $PATH
5855 IFS=$as_save_IFS
5856 test -z "$as_dir" && as_dir=.
5857 for ac_exec_ext in '' $ac_executable_extensions; do
5858 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5859 ac_cv_prog_ac_ct_AR="ar"
5860 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5861 break 2
5863 done
5864 done
5865 IFS=$as_save_IFS
5869 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5870 if test -n "$ac_ct_AR"; then
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5872 $as_echo "$ac_ct_AR" >&6; }
5873 else
5874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5875 $as_echo "no" >&6; }
5878 if test "x$ac_ct_AR" = x; then
5879 AR=""
5880 else
5881 case $cross_compiling:$ac_tool_warned in
5882 yes:)
5883 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5884 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5885 ac_tool_warned=yes ;;
5886 esac
5887 AR=$ac_ct_AR
5889 else
5890 AR="$ac_cv_prog_AR"
5893 if test -n "$ac_tool_prefix"; then
5894 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5895 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5897 $as_echo_n "checking for $ac_word... " >&6; }
5898 if test "${ac_cv_prog_RANLIB+set}" = set; then :
5899 $as_echo_n "(cached) " >&6
5900 else
5901 if test -n "$RANLIB"; then
5902 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5903 else
5904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5905 for as_dir in $PATH
5907 IFS=$as_save_IFS
5908 test -z "$as_dir" && as_dir=.
5909 for ac_exec_ext in '' $ac_executable_extensions; do
5910 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5911 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5913 break 2
5915 done
5916 done
5917 IFS=$as_save_IFS
5921 RANLIB=$ac_cv_prog_RANLIB
5922 if test -n "$RANLIB"; then
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
5924 $as_echo "$RANLIB" >&6; }
5925 else
5926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5927 $as_echo "no" >&6; }
5932 if test -z "$ac_cv_prog_RANLIB"; then
5933 ac_ct_RANLIB=$RANLIB
5934 # Extract the first word of "ranlib", so it can be a program name with args.
5935 set dummy ranlib; ac_word=$2
5936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5937 $as_echo_n "checking for $ac_word... " >&6; }
5938 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
5939 $as_echo_n "(cached) " >&6
5940 else
5941 if test -n "$ac_ct_RANLIB"; then
5942 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5943 else
5944 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5945 for as_dir in $PATH
5947 IFS=$as_save_IFS
5948 test -z "$as_dir" && as_dir=.
5949 for ac_exec_ext in '' $ac_executable_extensions; do
5950 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5951 ac_cv_prog_ac_ct_RANLIB="ranlib"
5952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5953 break 2
5955 done
5956 done
5957 IFS=$as_save_IFS
5961 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5962 if test -n "$ac_ct_RANLIB"; then
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
5964 $as_echo "$ac_ct_RANLIB" >&6; }
5965 else
5966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5967 $as_echo "no" >&6; }
5970 if test "x$ac_ct_RANLIB" = x; then
5971 RANLIB="ranlib-not-found-in-path-error"
5972 else
5973 case $cross_compiling:$ac_tool_warned in
5974 yes:)
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5976 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5977 ac_tool_warned=yes ;;
5978 esac
5979 RANLIB=$ac_ct_RANLIB
5981 else
5982 RANLIB="$ac_cv_prog_RANLIB"
5985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
5986 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
5987 set x ${MAKE-make}
5988 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
5989 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
5990 $as_echo_n "(cached) " >&6
5991 else
5992 cat >conftest.make <<\_ACEOF
5993 SHELL = /bin/sh
5994 all:
5995 @echo '@@@%%%=$(MAKE)=@@@%%%'
5996 _ACEOF
5997 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
5998 case `${MAKE-make} -f conftest.make 2>/dev/null` in
5999 *@@@%%%=?*=@@@%%%*)
6000 eval ac_cv_prog_make_${ac_make}_set=yes;;
6002 eval ac_cv_prog_make_${ac_make}_set=no;;
6003 esac
6004 rm -f conftest.make
6006 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6008 $as_echo "yes" >&6; }
6009 SET_MAKE=
6010 else
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6012 $as_echo "no" >&6; }
6013 SET_MAKE="MAKE=${MAKE-make}"
6018 # Configure libtool
6019 #AC_MSG_NOTICE([====== Starting libtool configuration])
6020 enable_dlopen=yes
6024 case `pwd` in
6025 *\ * | *\ *)
6026 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6027 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6028 esac
6032 macro_version='2.2.7a'
6033 macro_revision='1.3134'
6047 ltmain="$ac_aux_dir/ltmain.sh"
6049 # Backslashify metacharacters that are still active within
6050 # double-quoted strings.
6051 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6053 # Same as above, but do not quote variable references.
6054 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6056 # Sed substitution to delay expansion of an escaped shell variable in a
6057 # double_quote_subst'ed string.
6058 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6060 # Sed substitution to delay expansion of an escaped single quote.
6061 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6063 # Sed substitution to avoid accidental globbing in evaled expressions
6064 no_glob_subst='s/\*/\\\*/g'
6066 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6067 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6068 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6071 $as_echo_n "checking how to print strings... " >&6; }
6072 # Test print first, because it will be a builtin if present.
6073 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6074 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6075 ECHO='print -r --'
6076 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6077 ECHO='printf %s\n'
6078 else
6079 # Use this function as a fallback that always works.
6080 func_fallback_echo ()
6082 eval 'cat <<_LTECHO_EOF
6084 _LTECHO_EOF'
6086 ECHO='func_fallback_echo'
6089 # func_echo_all arg...
6090 # Invoke $ECHO with all args, space-separated.
6091 func_echo_all ()
6093 $ECHO ""
6096 case "$ECHO" in
6097 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6098 $as_echo "printf" >&6; } ;;
6099 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6100 $as_echo "print -r" >&6; } ;;
6101 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6102 $as_echo "cat" >&6; } ;;
6103 esac
6118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6119 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6120 if test "${ac_cv_path_SED+set}" = set; then :
6121 $as_echo_n "(cached) " >&6
6122 else
6123 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6124 for ac_i in 1 2 3 4 5 6 7; do
6125 ac_script="$ac_script$as_nl$ac_script"
6126 done
6127 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6128 { ac_script=; unset ac_script;}
6129 if test -z "$SED"; then
6130 ac_path_SED_found=false
6131 # Loop through the user's path and test for each of PROGNAME-LIST
6132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6133 for as_dir in $PATH
6135 IFS=$as_save_IFS
6136 test -z "$as_dir" && as_dir=.
6137 for ac_prog in sed gsed; do
6138 for ac_exec_ext in '' $ac_executable_extensions; do
6139 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6140 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6141 # Check for GNU ac_path_SED and select it if it is found.
6142 # Check for GNU $ac_path_SED
6143 case `"$ac_path_SED" --version 2>&1` in
6144 *GNU*)
6145 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6147 ac_count=0
6148 $as_echo_n 0123456789 >"conftest.in"
6149 while :
6151 cat "conftest.in" "conftest.in" >"conftest.tmp"
6152 mv "conftest.tmp" "conftest.in"
6153 cp "conftest.in" "conftest.nl"
6154 $as_echo '' >> "conftest.nl"
6155 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6156 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6157 as_fn_arith $ac_count + 1 && ac_count=$as_val
6158 if test $ac_count -gt ${ac_path_SED_max-0}; then
6159 # Best one so far, save it but keep looking for a better one
6160 ac_cv_path_SED="$ac_path_SED"
6161 ac_path_SED_max=$ac_count
6163 # 10*(2^10) chars as input seems more than enough
6164 test $ac_count -gt 10 && break
6165 done
6166 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6167 esac
6169 $ac_path_SED_found && break 3
6170 done
6171 done
6172 done
6173 IFS=$as_save_IFS
6174 if test -z "$ac_cv_path_SED"; then
6175 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6177 else
6178 ac_cv_path_SED=$SED
6182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6183 $as_echo "$ac_cv_path_SED" >&6; }
6184 SED="$ac_cv_path_SED"
6185 rm -f conftest.sed
6187 test -z "$SED" && SED=sed
6188 Xsed="$SED -e 1s/^X//"
6200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6201 $as_echo_n "checking for fgrep... " >&6; }
6202 if test "${ac_cv_path_FGREP+set}" = set; then :
6203 $as_echo_n "(cached) " >&6
6204 else
6205 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6206 then ac_cv_path_FGREP="$GREP -F"
6207 else
6208 if test -z "$FGREP"; then
6209 ac_path_FGREP_found=false
6210 # Loop through the user's path and test for each of PROGNAME-LIST
6211 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6212 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6214 IFS=$as_save_IFS
6215 test -z "$as_dir" && as_dir=.
6216 for ac_prog in fgrep; do
6217 for ac_exec_ext in '' $ac_executable_extensions; do
6218 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6219 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6220 # Check for GNU ac_path_FGREP and select it if it is found.
6221 # Check for GNU $ac_path_FGREP
6222 case `"$ac_path_FGREP" --version 2>&1` in
6223 *GNU*)
6224 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6226 ac_count=0
6227 $as_echo_n 0123456789 >"conftest.in"
6228 while :
6230 cat "conftest.in" "conftest.in" >"conftest.tmp"
6231 mv "conftest.tmp" "conftest.in"
6232 cp "conftest.in" "conftest.nl"
6233 $as_echo 'FGREP' >> "conftest.nl"
6234 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6235 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6236 as_fn_arith $ac_count + 1 && ac_count=$as_val
6237 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6238 # Best one so far, save it but keep looking for a better one
6239 ac_cv_path_FGREP="$ac_path_FGREP"
6240 ac_path_FGREP_max=$ac_count
6242 # 10*(2^10) chars as input seems more than enough
6243 test $ac_count -gt 10 && break
6244 done
6245 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6246 esac
6248 $ac_path_FGREP_found && break 3
6249 done
6250 done
6251 done
6252 IFS=$as_save_IFS
6253 if test -z "$ac_cv_path_FGREP"; then
6254 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6256 else
6257 ac_cv_path_FGREP=$FGREP
6262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6263 $as_echo "$ac_cv_path_FGREP" >&6; }
6264 FGREP="$ac_cv_path_FGREP"
6267 test -z "$GREP" && GREP=grep
6287 # Check whether --with-gnu-ld was given.
6288 if test "${with_gnu_ld+set}" = set; then :
6289 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6290 else
6291 with_gnu_ld=no
6294 ac_prog=ld
6295 if test "$GCC" = yes; then
6296 # Check if gcc -print-prog-name=ld gives a path.
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6298 $as_echo_n "checking for ld used by $CC... " >&6; }
6299 case $host in
6300 *-*-mingw*)
6301 # gcc leaves a trailing carriage return which upsets mingw
6302 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6304 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6305 esac
6306 case $ac_prog in
6307 # Accept absolute paths.
6308 [\\/]* | ?:[\\/]*)
6309 re_direlt='/[^/][^/]*/\.\./'
6310 # Canonicalize the pathname of ld
6311 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6312 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6313 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6314 done
6315 test -z "$LD" && LD="$ac_prog"
6318 # If it fails, then pretend we aren't using GCC.
6319 ac_prog=ld
6322 # If it is relative, then search for the first ld in PATH.
6323 with_gnu_ld=unknown
6325 esac
6326 elif test "$with_gnu_ld" = yes; then
6327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6328 $as_echo_n "checking for GNU ld... " >&6; }
6329 else
6330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6331 $as_echo_n "checking for non-GNU ld... " >&6; }
6333 if test "${lt_cv_path_LD+set}" = set; then :
6334 $as_echo_n "(cached) " >&6
6335 else
6336 if test -z "$LD"; then
6337 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6338 for ac_dir in $PATH; do
6339 IFS="$lt_save_ifs"
6340 test -z "$ac_dir" && ac_dir=.
6341 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6342 lt_cv_path_LD="$ac_dir/$ac_prog"
6343 # Check to see if the program is GNU ld. I'd rather use --version,
6344 # but apparently some variants of GNU ld only accept -v.
6345 # Break only if it was the GNU/non-GNU ld that we prefer.
6346 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6347 *GNU* | *'with BFD'*)
6348 test "$with_gnu_ld" != no && break
6351 test "$with_gnu_ld" != yes && break
6353 esac
6355 done
6356 IFS="$lt_save_ifs"
6357 else
6358 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6362 LD="$lt_cv_path_LD"
6363 if test -n "$LD"; then
6364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6365 $as_echo "$LD" >&6; }
6366 else
6367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6368 $as_echo "no" >&6; }
6370 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6372 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6373 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6374 $as_echo_n "(cached) " >&6
6375 else
6376 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6377 case `$LD -v 2>&1 </dev/null` in
6378 *GNU* | *'with BFD'*)
6379 lt_cv_prog_gnu_ld=yes
6382 lt_cv_prog_gnu_ld=no
6384 esac
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6387 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6388 with_gnu_ld=$lt_cv_prog_gnu_ld
6398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6399 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6400 if test "${lt_cv_path_NM+set}" = set; then :
6401 $as_echo_n "(cached) " >&6
6402 else
6403 if test -n "$NM"; then
6404 # Let the user override the test.
6405 lt_cv_path_NM="$NM"
6406 else
6407 lt_nm_to_check="${ac_tool_prefix}nm"
6408 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6409 lt_nm_to_check="$lt_nm_to_check nm"
6411 for lt_tmp_nm in $lt_nm_to_check; do
6412 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6413 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6414 IFS="$lt_save_ifs"
6415 test -z "$ac_dir" && ac_dir=.
6416 tmp_nm="$ac_dir/$lt_tmp_nm"
6417 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6418 # Check to see if the nm accepts a BSD-compat flag.
6419 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6420 # nm: unknown option "B" ignored
6421 # Tru64's nm complains that /dev/null is an invalid object file
6422 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6423 */dev/null* | *'Invalid file or object type'*)
6424 lt_cv_path_NM="$tmp_nm -B"
6425 break
6428 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6429 */dev/null*)
6430 lt_cv_path_NM="$tmp_nm -p"
6431 break
6434 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6435 continue # so that we can try to find one that supports BSD flags
6437 esac
6439 esac
6441 done
6442 IFS="$lt_save_ifs"
6443 done
6444 : ${lt_cv_path_NM=no}
6447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6448 $as_echo "$lt_cv_path_NM" >&6; }
6449 if test "$lt_cv_path_NM" != "no"; then
6450 NM="$lt_cv_path_NM"
6451 else
6452 # Didn't find any BSD compatible name lister, look for dumpbin.
6453 if test -n "$DUMPBIN"; then :
6454 # Let the user override the test.
6455 else
6456 if test -n "$ac_tool_prefix"; then
6457 for ac_prog in dumpbin "link -dump"
6459 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6460 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6462 $as_echo_n "checking for $ac_word... " >&6; }
6463 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6464 $as_echo_n "(cached) " >&6
6465 else
6466 if test -n "$DUMPBIN"; then
6467 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6468 else
6469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6470 for as_dir in $PATH
6472 IFS=$as_save_IFS
6473 test -z "$as_dir" && as_dir=.
6474 for ac_exec_ext in '' $ac_executable_extensions; do
6475 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6476 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6478 break 2
6480 done
6481 done
6482 IFS=$as_save_IFS
6486 DUMPBIN=$ac_cv_prog_DUMPBIN
6487 if test -n "$DUMPBIN"; then
6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6489 $as_echo "$DUMPBIN" >&6; }
6490 else
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6492 $as_echo "no" >&6; }
6496 test -n "$DUMPBIN" && break
6497 done
6499 if test -z "$DUMPBIN"; then
6500 ac_ct_DUMPBIN=$DUMPBIN
6501 for ac_prog in dumpbin "link -dump"
6503 # Extract the first word of "$ac_prog", so it can be a program name with args.
6504 set dummy $ac_prog; ac_word=$2
6505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6506 $as_echo_n "checking for $ac_word... " >&6; }
6507 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6508 $as_echo_n "(cached) " >&6
6509 else
6510 if test -n "$ac_ct_DUMPBIN"; then
6511 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6512 else
6513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6514 for as_dir in $PATH
6516 IFS=$as_save_IFS
6517 test -z "$as_dir" && as_dir=.
6518 for ac_exec_ext in '' $ac_executable_extensions; do
6519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6520 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6522 break 2
6524 done
6525 done
6526 IFS=$as_save_IFS
6530 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6531 if test -n "$ac_ct_DUMPBIN"; then
6532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6533 $as_echo "$ac_ct_DUMPBIN" >&6; }
6534 else
6535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6536 $as_echo "no" >&6; }
6540 test -n "$ac_ct_DUMPBIN" && break
6541 done
6543 if test "x$ac_ct_DUMPBIN" = x; then
6544 DUMPBIN=":"
6545 else
6546 case $cross_compiling:$ac_tool_warned in
6547 yes:)
6548 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6549 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6550 ac_tool_warned=yes ;;
6551 esac
6552 DUMPBIN=$ac_ct_DUMPBIN
6556 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6557 *COFF*)
6558 DUMPBIN="$DUMPBIN -symbols"
6561 DUMPBIN=:
6563 esac
6566 if test "$DUMPBIN" != ":"; then
6567 NM="$DUMPBIN"
6570 test -z "$NM" && NM=nm
6577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6578 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6579 if test "${lt_cv_nm_interface+set}" = set; then :
6580 $as_echo_n "(cached) " >&6
6581 else
6582 lt_cv_nm_interface="BSD nm"
6583 echo "int some_variable = 0;" > conftest.$ac_ext
6584 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6585 (eval "$ac_compile" 2>conftest.err)
6586 cat conftest.err >&5
6587 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6588 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6589 cat conftest.err >&5
6590 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6591 cat conftest.out >&5
6592 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6593 lt_cv_nm_interface="MS dumpbin"
6595 rm -f conftest*
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6598 $as_echo "$lt_cv_nm_interface" >&6; }
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6601 $as_echo_n "checking whether ln -s works... " >&6; }
6602 LN_S=$as_ln_s
6603 if test "$LN_S" = "ln -s"; then
6604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6605 $as_echo "yes" >&6; }
6606 else
6607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6608 $as_echo "no, using $LN_S" >&6; }
6611 # find the maximum length of command line arguments
6612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6613 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6614 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6615 $as_echo_n "(cached) " >&6
6616 else
6618 teststring="ABCD"
6620 case $build_os in
6621 msdosdjgpp*)
6622 # On DJGPP, this test can blow up pretty badly due to problems in libc
6623 # (any single argument exceeding 2000 bytes causes a buffer overrun
6624 # during glob expansion). Even if it were fixed, the result of this
6625 # check would be larger than it should be.
6626 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6629 gnu*)
6630 # Under GNU Hurd, this test is not required because there is
6631 # no limit to the length of command line arguments.
6632 # Libtool will interpret -1 as no limit whatsoever
6633 lt_cv_sys_max_cmd_len=-1;
6636 cygwin* | mingw* | cegcc*)
6637 # On Win9x/ME, this test blows up -- it succeeds, but takes
6638 # about 5 minutes as the teststring grows exponentially.
6639 # Worse, since 9x/ME are not pre-emptively multitasking,
6640 # you end up with a "frozen" computer, even though with patience
6641 # the test eventually succeeds (with a max line length of 256k).
6642 # Instead, let's just punt: use the minimum linelength reported by
6643 # all of the supported platforms: 8192 (on NT/2K/XP).
6644 lt_cv_sys_max_cmd_len=8192;
6647 mint*)
6648 # On MiNT this can take a long time and run out of memory.
6649 lt_cv_sys_max_cmd_len=8192;
6652 amigaos*)
6653 # On AmigaOS with pdksh, this test takes hours, literally.
6654 # So we just punt and use a minimum line length of 8192.
6655 lt_cv_sys_max_cmd_len=8192;
6658 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6659 # This has been around since 386BSD, at least. Likely further.
6660 if test -x /sbin/sysctl; then
6661 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6662 elif test -x /usr/sbin/sysctl; then
6663 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6664 else
6665 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6667 # And add a safety zone
6668 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6669 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6672 interix*)
6673 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6674 lt_cv_sys_max_cmd_len=196608
6677 osf*)
6678 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6679 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6680 # nice to cause kernel panics so lets avoid the loop below.
6681 # First set a reasonable default.
6682 lt_cv_sys_max_cmd_len=16384
6684 if test -x /sbin/sysconfig; then
6685 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6686 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6687 esac
6690 sco3.2v5*)
6691 lt_cv_sys_max_cmd_len=102400
6693 sysv5* | sco5v6* | sysv4.2uw2*)
6694 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6695 if test -n "$kargmax"; then
6696 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6697 else
6698 lt_cv_sys_max_cmd_len=32768
6702 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6703 if test -n "$lt_cv_sys_max_cmd_len"; then
6704 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6705 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6706 else
6707 # Make teststring a little bigger before we do anything with it.
6708 # a 1K string should be a reasonable start.
6709 for i in 1 2 3 4 5 6 7 8 ; do
6710 teststring=$teststring$teststring
6711 done
6712 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6713 # If test is not a shell built-in, we'll probably end up computing a
6714 # maximum length that is only half of the actual maximum length, but
6715 # we can't tell.
6716 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6717 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6718 test $i != 17 # 1/2 MB should be enough
6720 i=`expr $i + 1`
6721 teststring=$teststring$teststring
6722 done
6723 # Only check the string length outside the loop.
6724 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6725 teststring=
6726 # Add a significant safety factor because C++ compilers can tack on
6727 # massive amounts of additional arguments before passing them to the
6728 # linker. It appears as though 1/2 is a usable value.
6729 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6732 esac
6736 if test -n $lt_cv_sys_max_cmd_len ; then
6737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6738 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6739 else
6740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6741 $as_echo "none" >&6; }
6743 max_cmd_len=$lt_cv_sys_max_cmd_len
6750 : ${CP="cp -f"}
6751 : ${MV="mv -f"}
6752 : ${RM="rm -f"}
6754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6755 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6756 # Try some XSI features
6757 xsi_shell=no
6758 ( _lt_dummy="a/b/c"
6759 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6760 = c,a/b,, \
6761 && eval 'test $(( 1 + 1 )) -eq 2 \
6762 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6763 && xsi_shell=yes
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6765 $as_echo "$xsi_shell" >&6; }
6768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6769 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6770 lt_shell_append=no
6771 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6772 >/dev/null 2>&1 \
6773 && lt_shell_append=yes
6774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6775 $as_echo "$lt_shell_append" >&6; }
6778 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6779 lt_unset=unset
6780 else
6781 lt_unset=false
6788 # test EBCDIC or ASCII
6789 case `echo X|tr X '\101'` in
6790 A) # ASCII based system
6791 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
6792 lt_SP2NL='tr \040 \012'
6793 lt_NL2SP='tr \015\012 \040\040'
6795 *) # EBCDIC based system
6796 lt_SP2NL='tr \100 \n'
6797 lt_NL2SP='tr \r\n \100\100'
6799 esac
6809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
6810 $as_echo_n "checking for $LD option to reload object files... " >&6; }
6811 if test "${lt_cv_ld_reload_flag+set}" = set; then :
6812 $as_echo_n "(cached) " >&6
6813 else
6814 lt_cv_ld_reload_flag='-r'
6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
6817 $as_echo "$lt_cv_ld_reload_flag" >&6; }
6818 reload_flag=$lt_cv_ld_reload_flag
6819 case $reload_flag in
6820 "" | " "*) ;;
6821 *) reload_flag=" $reload_flag" ;;
6822 esac
6823 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6824 case $host_os in
6825 darwin*)
6826 if test "$GCC" = yes; then
6827 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
6828 else
6829 reload_cmds='$LD$reload_flag -o $output$reload_objs'
6832 esac
6842 if test -n "$ac_tool_prefix"; then
6843 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
6844 set dummy ${ac_tool_prefix}objdump; ac_word=$2
6845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6846 $as_echo_n "checking for $ac_word... " >&6; }
6847 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
6848 $as_echo_n "(cached) " >&6
6849 else
6850 if test -n "$OBJDUMP"; then
6851 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
6852 else
6853 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6854 for as_dir in $PATH
6856 IFS=$as_save_IFS
6857 test -z "$as_dir" && as_dir=.
6858 for ac_exec_ext in '' $ac_executable_extensions; do
6859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6860 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
6861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6862 break 2
6864 done
6865 done
6866 IFS=$as_save_IFS
6870 OBJDUMP=$ac_cv_prog_OBJDUMP
6871 if test -n "$OBJDUMP"; then
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
6873 $as_echo "$OBJDUMP" >&6; }
6874 else
6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6876 $as_echo "no" >&6; }
6881 if test -z "$ac_cv_prog_OBJDUMP"; then
6882 ac_ct_OBJDUMP=$OBJDUMP
6883 # Extract the first word of "objdump", so it can be a program name with args.
6884 set dummy objdump; ac_word=$2
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6886 $as_echo_n "checking for $ac_word... " >&6; }
6887 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
6888 $as_echo_n "(cached) " >&6
6889 else
6890 if test -n "$ac_ct_OBJDUMP"; then
6891 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
6892 else
6893 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6894 for as_dir in $PATH
6896 IFS=$as_save_IFS
6897 test -z "$as_dir" && as_dir=.
6898 for ac_exec_ext in '' $ac_executable_extensions; do
6899 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6900 ac_cv_prog_ac_ct_OBJDUMP="objdump"
6901 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6902 break 2
6904 done
6905 done
6906 IFS=$as_save_IFS
6910 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
6911 if test -n "$ac_ct_OBJDUMP"; then
6912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
6913 $as_echo "$ac_ct_OBJDUMP" >&6; }
6914 else
6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6916 $as_echo "no" >&6; }
6919 if test "x$ac_ct_OBJDUMP" = x; then
6920 OBJDUMP="false"
6921 else
6922 case $cross_compiling:$ac_tool_warned in
6923 yes:)
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6925 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6926 ac_tool_warned=yes ;;
6927 esac
6928 OBJDUMP=$ac_ct_OBJDUMP
6930 else
6931 OBJDUMP="$ac_cv_prog_OBJDUMP"
6934 test -z "$OBJDUMP" && OBJDUMP=objdump
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
6945 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
6946 if test "${lt_cv_deplibs_check_method+set}" = set; then :
6947 $as_echo_n "(cached) " >&6
6948 else
6949 lt_cv_file_magic_cmd='$MAGIC_CMD'
6950 lt_cv_file_magic_test_file=
6951 lt_cv_deplibs_check_method='unknown'
6952 # Need to set the preceding variable on all platforms that support
6953 # interlibrary dependencies.
6954 # 'none' -- dependencies not supported.
6955 # `unknown' -- same as none, but documents that we really don't know.
6956 # 'pass_all' -- all dependencies passed with no checks.
6957 # 'test_compile' -- check by making test program.
6958 # 'file_magic [[regex]]' -- check by looking for files in library path
6959 # which responds to the $file_magic_cmd with a given extended regex.
6960 # If you have `file' or equivalent on your system and you're not sure
6961 # whether `pass_all' will *always* work, you probably want this one.
6963 case $host_os in
6964 aix[4-9]*)
6965 lt_cv_deplibs_check_method=pass_all
6968 beos*)
6969 lt_cv_deplibs_check_method=pass_all
6972 bsdi[45]*)
6973 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
6974 lt_cv_file_magic_cmd='/usr/bin/file -L'
6975 lt_cv_file_magic_test_file=/shlib/libc.so
6978 cygwin*)
6979 # func_win32_libid is a shell function defined in ltmain.sh
6980 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6981 lt_cv_file_magic_cmd='func_win32_libid'
6984 mingw* | pw32*)
6985 # Base MSYS/MinGW do not provide the 'file' command needed by
6986 # func_win32_libid shell function, so use a weaker test based on 'objdump',
6987 # unless we find 'file', for example because we are cross-compiling.
6988 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
6989 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
6990 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
6991 lt_cv_file_magic_cmd='func_win32_libid'
6992 else
6993 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
6994 lt_cv_file_magic_cmd='$OBJDUMP -f'
6998 cegcc*)
6999 # use the weaker test based on 'objdump'. See mingw*.
7000 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7001 lt_cv_file_magic_cmd='$OBJDUMP -f'
7004 darwin* | rhapsody*)
7005 lt_cv_deplibs_check_method=pass_all
7008 freebsd* | dragonfly*)
7009 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7010 case $host_cpu in
7011 i*86 )
7012 # Not sure whether the presence of OpenBSD here was a mistake.
7013 # Let's accept both of them until this is cleared up.
7014 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7015 lt_cv_file_magic_cmd=/usr/bin/file
7016 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7018 esac
7019 else
7020 lt_cv_deplibs_check_method=pass_all
7024 gnu*)
7025 lt_cv_deplibs_check_method=pass_all
7028 haiku*)
7029 lt_cv_deplibs_check_method=pass_all
7032 hpux10.20* | hpux11*)
7033 lt_cv_file_magic_cmd=/usr/bin/file
7034 case $host_cpu in
7035 ia64*)
7036 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7037 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7039 hppa*64*)
7040 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]'
7041 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7044 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7045 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7047 esac
7050 interix[3-9]*)
7051 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7052 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7055 irix5* | irix6* | nonstopux*)
7056 case $LD in
7057 *-32|*"-32 ") libmagic=32-bit;;
7058 *-n32|*"-n32 ") libmagic=N32;;
7059 *-64|*"-64 ") libmagic=64-bit;;
7060 *) libmagic=never-match;;
7061 esac
7062 lt_cv_deplibs_check_method=pass_all
7065 # This must be Linux ELF.
7066 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7067 lt_cv_deplibs_check_method=pass_all
7070 netbsd*)
7071 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7072 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7073 else
7074 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7078 newos6*)
7079 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7080 lt_cv_file_magic_cmd=/usr/bin/file
7081 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7084 *nto* | *qnx*)
7085 lt_cv_deplibs_check_method=pass_all
7088 openbsd*)
7089 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7090 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7091 else
7092 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7096 osf3* | osf4* | osf5*)
7097 lt_cv_deplibs_check_method=pass_all
7100 rdos*)
7101 lt_cv_deplibs_check_method=pass_all
7104 solaris*)
7105 lt_cv_deplibs_check_method=pass_all
7108 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7109 lt_cv_deplibs_check_method=pass_all
7112 sysv4 | sysv4.3*)
7113 case $host_vendor in
7114 motorola)
7115 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]'
7116 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7118 ncr)
7119 lt_cv_deplibs_check_method=pass_all
7121 sequent)
7122 lt_cv_file_magic_cmd='/bin/file'
7123 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7125 sni)
7126 lt_cv_file_magic_cmd='/bin/file'
7127 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7128 lt_cv_file_magic_test_file=/lib/libc.so
7130 siemens)
7131 lt_cv_deplibs_check_method=pass_all
7134 lt_cv_deplibs_check_method=pass_all
7136 esac
7139 tpf*)
7140 lt_cv_deplibs_check_method=pass_all
7142 esac
7145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7146 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7147 file_magic_cmd=$lt_cv_file_magic_cmd
7148 deplibs_check_method=$lt_cv_deplibs_check_method
7149 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7162 if test -n "$ac_tool_prefix"; then
7163 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7164 set dummy ${ac_tool_prefix}ar; ac_word=$2
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7166 $as_echo_n "checking for $ac_word... " >&6; }
7167 if test "${ac_cv_prog_AR+set}" = set; then :
7168 $as_echo_n "(cached) " >&6
7169 else
7170 if test -n "$AR"; then
7171 ac_cv_prog_AR="$AR" # Let the user override the test.
7172 else
7173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7174 for as_dir in $PATH
7176 IFS=$as_save_IFS
7177 test -z "$as_dir" && as_dir=.
7178 for ac_exec_ext in '' $ac_executable_extensions; do
7179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7180 ac_cv_prog_AR="${ac_tool_prefix}ar"
7181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7182 break 2
7184 done
7185 done
7186 IFS=$as_save_IFS
7190 AR=$ac_cv_prog_AR
7191 if test -n "$AR"; then
7192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7193 $as_echo "$AR" >&6; }
7194 else
7195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7196 $as_echo "no" >&6; }
7201 if test -z "$ac_cv_prog_AR"; then
7202 ac_ct_AR=$AR
7203 # Extract the first word of "ar", so it can be a program name with args.
7204 set dummy ar; ac_word=$2
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7206 $as_echo_n "checking for $ac_word... " >&6; }
7207 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7208 $as_echo_n "(cached) " >&6
7209 else
7210 if test -n "$ac_ct_AR"; then
7211 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7212 else
7213 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7214 for as_dir in $PATH
7216 IFS=$as_save_IFS
7217 test -z "$as_dir" && as_dir=.
7218 for ac_exec_ext in '' $ac_executable_extensions; do
7219 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7220 ac_cv_prog_ac_ct_AR="ar"
7221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7222 break 2
7224 done
7225 done
7226 IFS=$as_save_IFS
7230 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7231 if test -n "$ac_ct_AR"; then
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7233 $as_echo "$ac_ct_AR" >&6; }
7234 else
7235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7236 $as_echo "no" >&6; }
7239 if test "x$ac_ct_AR" = x; then
7240 AR="false"
7241 else
7242 case $cross_compiling:$ac_tool_warned in
7243 yes:)
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7245 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7246 ac_tool_warned=yes ;;
7247 esac
7248 AR=$ac_ct_AR
7250 else
7251 AR="$ac_cv_prog_AR"
7254 test -z "$AR" && AR=ar
7255 test -z "$AR_FLAGS" && AR_FLAGS=cru
7267 if test -n "$ac_tool_prefix"; then
7268 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7269 set dummy ${ac_tool_prefix}strip; ac_word=$2
7270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7271 $as_echo_n "checking for $ac_word... " >&6; }
7272 if test "${ac_cv_prog_STRIP+set}" = set; then :
7273 $as_echo_n "(cached) " >&6
7274 else
7275 if test -n "$STRIP"; then
7276 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7277 else
7278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7279 for as_dir in $PATH
7281 IFS=$as_save_IFS
7282 test -z "$as_dir" && as_dir=.
7283 for ac_exec_ext in '' $ac_executable_extensions; do
7284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7285 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7287 break 2
7289 done
7290 done
7291 IFS=$as_save_IFS
7295 STRIP=$ac_cv_prog_STRIP
7296 if test -n "$STRIP"; then
7297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7298 $as_echo "$STRIP" >&6; }
7299 else
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7301 $as_echo "no" >&6; }
7306 if test -z "$ac_cv_prog_STRIP"; then
7307 ac_ct_STRIP=$STRIP
7308 # Extract the first word of "strip", so it can be a program name with args.
7309 set dummy strip; ac_word=$2
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7311 $as_echo_n "checking for $ac_word... " >&6; }
7312 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7313 $as_echo_n "(cached) " >&6
7314 else
7315 if test -n "$ac_ct_STRIP"; then
7316 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7317 else
7318 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7319 for as_dir in $PATH
7321 IFS=$as_save_IFS
7322 test -z "$as_dir" && as_dir=.
7323 for ac_exec_ext in '' $ac_executable_extensions; do
7324 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7325 ac_cv_prog_ac_ct_STRIP="strip"
7326 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7327 break 2
7329 done
7330 done
7331 IFS=$as_save_IFS
7335 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7336 if test -n "$ac_ct_STRIP"; then
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7338 $as_echo "$ac_ct_STRIP" >&6; }
7339 else
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7341 $as_echo "no" >&6; }
7344 if test "x$ac_ct_STRIP" = x; then
7345 STRIP=":"
7346 else
7347 case $cross_compiling:$ac_tool_warned in
7348 yes:)
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7350 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7351 ac_tool_warned=yes ;;
7352 esac
7353 STRIP=$ac_ct_STRIP
7355 else
7356 STRIP="$ac_cv_prog_STRIP"
7359 test -z "$STRIP" && STRIP=:
7366 if test -n "$ac_tool_prefix"; then
7367 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7368 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7370 $as_echo_n "checking for $ac_word... " >&6; }
7371 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7372 $as_echo_n "(cached) " >&6
7373 else
7374 if test -n "$RANLIB"; then
7375 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7376 else
7377 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7378 for as_dir in $PATH
7380 IFS=$as_save_IFS
7381 test -z "$as_dir" && as_dir=.
7382 for ac_exec_ext in '' $ac_executable_extensions; do
7383 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7384 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7385 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7386 break 2
7388 done
7389 done
7390 IFS=$as_save_IFS
7394 RANLIB=$ac_cv_prog_RANLIB
7395 if test -n "$RANLIB"; then
7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7397 $as_echo "$RANLIB" >&6; }
7398 else
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7400 $as_echo "no" >&6; }
7405 if test -z "$ac_cv_prog_RANLIB"; then
7406 ac_ct_RANLIB=$RANLIB
7407 # Extract the first word of "ranlib", so it can be a program name with args.
7408 set dummy ranlib; ac_word=$2
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7410 $as_echo_n "checking for $ac_word... " >&6; }
7411 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7412 $as_echo_n "(cached) " >&6
7413 else
7414 if test -n "$ac_ct_RANLIB"; then
7415 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7416 else
7417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7418 for as_dir in $PATH
7420 IFS=$as_save_IFS
7421 test -z "$as_dir" && as_dir=.
7422 for ac_exec_ext in '' $ac_executable_extensions; do
7423 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7424 ac_cv_prog_ac_ct_RANLIB="ranlib"
7425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7426 break 2
7428 done
7429 done
7430 IFS=$as_save_IFS
7434 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7435 if test -n "$ac_ct_RANLIB"; then
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7437 $as_echo "$ac_ct_RANLIB" >&6; }
7438 else
7439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7440 $as_echo "no" >&6; }
7443 if test "x$ac_ct_RANLIB" = x; then
7444 RANLIB=":"
7445 else
7446 case $cross_compiling:$ac_tool_warned in
7447 yes:)
7448 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7449 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7450 ac_tool_warned=yes ;;
7451 esac
7452 RANLIB=$ac_ct_RANLIB
7454 else
7455 RANLIB="$ac_cv_prog_RANLIB"
7458 test -z "$RANLIB" && RANLIB=:
7465 # Determine commands to create old-style static archives.
7466 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7467 old_postinstall_cmds='chmod 644 $oldlib'
7468 old_postuninstall_cmds=
7470 if test -n "$RANLIB"; then
7471 case $host_os in
7472 openbsd*)
7473 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7476 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7478 esac
7479 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7482 case $host_os in
7483 darwin*)
7484 lock_old_archive_extraction=yes ;;
7486 lock_old_archive_extraction=no ;;
7487 esac
7527 # If no C compiler was specified, use CC.
7528 LTCC=${LTCC-"$CC"}
7530 # If no C compiler flags were specified, use CFLAGS.
7531 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7533 # Allow CC to be a program name with arguments.
7534 compiler=$CC
7537 # Check for command to grab the raw symbol name followed by C symbol from nm.
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7539 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7540 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7541 $as_echo_n "(cached) " >&6
7542 else
7544 # These are sane defaults that work on at least a few old systems.
7545 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7547 # Character class describing NM global symbol codes.
7548 symcode='[BCDEGRST]'
7550 # Regexp to match symbols that can be accessed directly from C.
7551 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7553 # Define system-specific variables.
7554 case $host_os in
7555 aix*)
7556 symcode='[BCDT]'
7558 cygwin* | mingw* | pw32* | cegcc*)
7559 symcode='[ABCDGISTW]'
7561 hpux*)
7562 if test "$host_cpu" = ia64; then
7563 symcode='[ABCDEGRST]'
7566 irix* | nonstopux*)
7567 symcode='[BCDEGRST]'
7569 osf*)
7570 symcode='[BCDEGQRST]'
7572 solaris*)
7573 symcode='[BDRT]'
7575 sco3.2v5*)
7576 symcode='[DT]'
7578 sysv4.2uw2*)
7579 symcode='[DT]'
7581 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7582 symcode='[ABDT]'
7584 sysv4)
7585 symcode='[DFNSTU]'
7587 esac
7589 # If we're using GNU nm, then use its standard symbol codes.
7590 case `$NM -V 2>&1` in
7591 *GNU* | *'with BFD'*)
7592 symcode='[ABCDGIRSTW]' ;;
7593 esac
7595 # Transform an extracted symbol line into a proper C declaration.
7596 # Some systems (esp. on ia64) link data and code symbols differently,
7597 # so use this general approach.
7598 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7600 # Transform an extracted symbol line into symbol name and symbol address
7601 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7602 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'"
7604 # Handle CRLF in mingw tool chain
7605 opt_cr=
7606 case $build_os in
7607 mingw*)
7608 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7610 esac
7612 # Try without a prefix underscore, then with it.
7613 for ac_symprfx in "" "_"; do
7615 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7616 symxfrm="\\1 $ac_symprfx\\2 \\2"
7618 # Write the raw and C identifiers.
7619 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7620 # Fake it for dumpbin and say T for any non-static function
7621 # and D for any global variable.
7622 # Also find C++ and __fastcall symbols from MSVC++,
7623 # which start with @ or ?.
7624 lt_cv_sys_global_symbol_pipe="$AWK '"\
7625 " {last_section=section; section=\$ 3};"\
7626 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7627 " \$ 0!~/External *\|/{next};"\
7628 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7629 " {if(hide[section]) next};"\
7630 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7631 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7632 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7633 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7634 " ' prfx=^$ac_symprfx"
7635 else
7636 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7639 # Check to see that the pipe works correctly.
7640 pipe_works=no
7642 rm -f conftest*
7643 cat > conftest.$ac_ext <<_LT_EOF
7644 #ifdef __cplusplus
7645 extern "C" {
7646 #endif
7647 char nm_test_var;
7648 void nm_test_func(void);
7649 void nm_test_func(void){}
7650 #ifdef __cplusplus
7652 #endif
7653 int main(){nm_test_var='a';nm_test_func();return(0);}
7654 _LT_EOF
7656 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7657 (eval $ac_compile) 2>&5
7658 ac_status=$?
7659 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7660 test $ac_status = 0; }; then
7661 # Now try to grab the symbols.
7662 nlist=conftest.nm
7663 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7664 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7665 ac_status=$?
7666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7667 test $ac_status = 0; } && test -s "$nlist"; then
7668 # Try sorting and uniquifying the output.
7669 if sort "$nlist" | uniq > "$nlist"T; then
7670 mv -f "$nlist"T "$nlist"
7671 else
7672 rm -f "$nlist"T
7675 # Make sure that we snagged all the symbols we need.
7676 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7677 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7678 cat <<_LT_EOF > conftest.$ac_ext
7679 #ifdef __cplusplus
7680 extern "C" {
7681 #endif
7683 _LT_EOF
7684 # Now generate the symbol file.
7685 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7687 cat <<_LT_EOF >> conftest.$ac_ext
7689 /* The mapping between symbol names and symbols. */
7690 const struct {
7691 const char *name;
7692 void *address;
7694 lt__PROGRAM__LTX_preloaded_symbols[] =
7696 { "@PROGRAM@", (void *) 0 },
7697 _LT_EOF
7698 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7699 cat <<\_LT_EOF >> conftest.$ac_ext
7700 {0, (void *) 0}
7703 /* This works around a problem in FreeBSD linker */
7704 #ifdef FREEBSD_WORKAROUND
7705 static const void *lt_preloaded_setup() {
7706 return lt__PROGRAM__LTX_preloaded_symbols;
7708 #endif
7710 #ifdef __cplusplus
7712 #endif
7713 _LT_EOF
7714 # Now try linking the two files.
7715 mv conftest.$ac_objext conftstm.$ac_objext
7716 lt_save_LIBS="$LIBS"
7717 lt_save_CFLAGS="$CFLAGS"
7718 LIBS="conftstm.$ac_objext"
7719 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7720 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7721 (eval $ac_link) 2>&5
7722 ac_status=$?
7723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7724 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7725 pipe_works=yes
7727 LIBS="$lt_save_LIBS"
7728 CFLAGS="$lt_save_CFLAGS"
7729 else
7730 echo "cannot find nm_test_func in $nlist" >&5
7732 else
7733 echo "cannot find nm_test_var in $nlist" >&5
7735 else
7736 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7738 else
7739 echo "$progname: failed program was:" >&5
7740 cat conftest.$ac_ext >&5
7742 rm -rf conftest* conftst*
7744 # Do not use the global_symbol_pipe unless it works.
7745 if test "$pipe_works" = yes; then
7746 break
7747 else
7748 lt_cv_sys_global_symbol_pipe=
7750 done
7754 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7755 lt_cv_sys_global_symbol_to_cdecl=
7757 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7759 $as_echo "failed" >&6; }
7760 else
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7762 $as_echo "ok" >&6; }
7786 # Check whether --enable-libtool-lock was given.
7787 if test "${enable_libtool_lock+set}" = set; then :
7788 enableval=$enable_libtool_lock;
7791 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
7793 # Some flags need to be propagated to the compiler or linker for good
7794 # libtool support.
7795 case $host in
7796 ia64-*-hpux*)
7797 # Find out which ABI we are using.
7798 echo 'int i;' > conftest.$ac_ext
7799 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7800 (eval $ac_compile) 2>&5
7801 ac_status=$?
7802 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7803 test $ac_status = 0; }; then
7804 case `/usr/bin/file conftest.$ac_objext` in
7805 *ELF-32*)
7806 HPUX_IA64_MODE="32"
7808 *ELF-64*)
7809 HPUX_IA64_MODE="64"
7811 esac
7813 rm -rf conftest*
7815 *-*-irix6*)
7816 # Find out which ABI we are using.
7817 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
7818 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7819 (eval $ac_compile) 2>&5
7820 ac_status=$?
7821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7822 test $ac_status = 0; }; then
7823 if test "$lt_cv_prog_gnu_ld" = yes; then
7824 case `/usr/bin/file conftest.$ac_objext` in
7825 *32-bit*)
7826 LD="${LD-ld} -melf32bsmip"
7828 *N32*)
7829 LD="${LD-ld} -melf32bmipn32"
7831 *64-bit*)
7832 LD="${LD-ld} -melf64bmip"
7834 esac
7835 else
7836 case `/usr/bin/file conftest.$ac_objext` in
7837 *32-bit*)
7838 LD="${LD-ld} -32"
7840 *N32*)
7841 LD="${LD-ld} -n32"
7843 *64-bit*)
7844 LD="${LD-ld} -64"
7846 esac
7849 rm -rf conftest*
7852 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
7853 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
7854 # Find out which ABI we are using.
7855 echo 'int i;' > conftest.$ac_ext
7856 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7857 (eval $ac_compile) 2>&5
7858 ac_status=$?
7859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7860 test $ac_status = 0; }; then
7861 case `/usr/bin/file conftest.o` in
7862 *32-bit*)
7863 case $host in
7864 x86_64-*kfreebsd*-gnu)
7865 LD="${LD-ld} -m elf_i386_fbsd"
7867 x86_64-*linux*)
7868 LD="${LD-ld} -m elf_i386"
7870 ppc64-*linux*|powerpc64-*linux*)
7871 LD="${LD-ld} -m elf32ppclinux"
7873 s390x-*linux*)
7874 LD="${LD-ld} -m elf_s390"
7876 sparc64-*linux*)
7877 LD="${LD-ld} -m elf32_sparc"
7879 esac
7881 *64-bit*)
7882 case $host in
7883 x86_64-*kfreebsd*-gnu)
7884 LD="${LD-ld} -m elf_x86_64_fbsd"
7886 x86_64-*linux*)
7887 LD="${LD-ld} -m elf_x86_64"
7889 ppc*-*linux*|powerpc*-*linux*)
7890 LD="${LD-ld} -m elf64ppc"
7892 s390*-*linux*|s390*-*tpf*)
7893 LD="${LD-ld} -m elf64_s390"
7895 sparc*-*linux*)
7896 LD="${LD-ld} -m elf64_sparc"
7898 esac
7900 esac
7902 rm -rf conftest*
7905 *-*-sco3.2v5*)
7906 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
7907 SAVE_CFLAGS="$CFLAGS"
7908 CFLAGS="$CFLAGS -belf"
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
7910 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
7911 if test "${lt_cv_cc_needs_belf+set}" = set; then :
7912 $as_echo_n "(cached) " >&6
7913 else
7914 ac_ext=c
7915 ac_cpp='$CPP $CPPFLAGS'
7916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7920 if test x$gcc_no_link = xyes; then
7921 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
7923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7924 /* end confdefs.h. */
7927 main ()
7931 return 0;
7933 _ACEOF
7934 if ac_fn_c_try_link "$LINENO"; then :
7935 lt_cv_cc_needs_belf=yes
7936 else
7937 lt_cv_cc_needs_belf=no
7939 rm -f core conftest.err conftest.$ac_objext \
7940 conftest$ac_exeext conftest.$ac_ext
7941 ac_ext=c
7942 ac_cpp='$CPP $CPPFLAGS'
7943 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7944 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7945 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
7949 $as_echo "$lt_cv_cc_needs_belf" >&6; }
7950 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
7951 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
7952 CFLAGS="$SAVE_CFLAGS"
7955 sparc*-*solaris*)
7956 # Find out which ABI we are using.
7957 echo 'int i;' > conftest.$ac_ext
7958 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7959 (eval $ac_compile) 2>&5
7960 ac_status=$?
7961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7962 test $ac_status = 0; }; then
7963 case `/usr/bin/file conftest.o` in
7964 *64-bit*)
7965 case $lt_cv_prog_gnu_ld in
7966 yes*) LD="${LD-ld} -m elf64_sparc" ;;
7968 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
7969 LD="${LD-ld} -64"
7972 esac
7974 esac
7976 rm -rf conftest*
7978 esac
7980 need_locks="$enable_libtool_lock"
7983 case $host_os in
7984 rhapsody* | darwin*)
7985 if test -n "$ac_tool_prefix"; then
7986 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7987 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7989 $as_echo_n "checking for $ac_word... " >&6; }
7990 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
7991 $as_echo_n "(cached) " >&6
7992 else
7993 if test -n "$DSYMUTIL"; then
7994 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7995 else
7996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7997 for as_dir in $PATH
7999 IFS=$as_save_IFS
8000 test -z "$as_dir" && as_dir=.
8001 for ac_exec_ext in '' $ac_executable_extensions; do
8002 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8003 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8004 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8005 break 2
8007 done
8008 done
8009 IFS=$as_save_IFS
8013 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8014 if test -n "$DSYMUTIL"; then
8015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8016 $as_echo "$DSYMUTIL" >&6; }
8017 else
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8019 $as_echo "no" >&6; }
8024 if test -z "$ac_cv_prog_DSYMUTIL"; then
8025 ac_ct_DSYMUTIL=$DSYMUTIL
8026 # Extract the first word of "dsymutil", so it can be a program name with args.
8027 set dummy dsymutil; ac_word=$2
8028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8029 $as_echo_n "checking for $ac_word... " >&6; }
8030 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8031 $as_echo_n "(cached) " >&6
8032 else
8033 if test -n "$ac_ct_DSYMUTIL"; then
8034 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8035 else
8036 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8037 for as_dir in $PATH
8039 IFS=$as_save_IFS
8040 test -z "$as_dir" && as_dir=.
8041 for ac_exec_ext in '' $ac_executable_extensions; do
8042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8043 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8045 break 2
8047 done
8048 done
8049 IFS=$as_save_IFS
8053 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8054 if test -n "$ac_ct_DSYMUTIL"; then
8055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8056 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8057 else
8058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8059 $as_echo "no" >&6; }
8062 if test "x$ac_ct_DSYMUTIL" = x; then
8063 DSYMUTIL=":"
8064 else
8065 case $cross_compiling:$ac_tool_warned in
8066 yes:)
8067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8068 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8069 ac_tool_warned=yes ;;
8070 esac
8071 DSYMUTIL=$ac_ct_DSYMUTIL
8073 else
8074 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8077 if test -n "$ac_tool_prefix"; then
8078 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8079 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8081 $as_echo_n "checking for $ac_word... " >&6; }
8082 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8083 $as_echo_n "(cached) " >&6
8084 else
8085 if test -n "$NMEDIT"; then
8086 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8087 else
8088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8089 for as_dir in $PATH
8091 IFS=$as_save_IFS
8092 test -z "$as_dir" && as_dir=.
8093 for ac_exec_ext in '' $ac_executable_extensions; do
8094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8095 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8097 break 2
8099 done
8100 done
8101 IFS=$as_save_IFS
8105 NMEDIT=$ac_cv_prog_NMEDIT
8106 if test -n "$NMEDIT"; then
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8108 $as_echo "$NMEDIT" >&6; }
8109 else
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8111 $as_echo "no" >&6; }
8116 if test -z "$ac_cv_prog_NMEDIT"; then
8117 ac_ct_NMEDIT=$NMEDIT
8118 # Extract the first word of "nmedit", so it can be a program name with args.
8119 set dummy nmedit; ac_word=$2
8120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8121 $as_echo_n "checking for $ac_word... " >&6; }
8122 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8123 $as_echo_n "(cached) " >&6
8124 else
8125 if test -n "$ac_ct_NMEDIT"; then
8126 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8127 else
8128 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8129 for as_dir in $PATH
8131 IFS=$as_save_IFS
8132 test -z "$as_dir" && as_dir=.
8133 for ac_exec_ext in '' $ac_executable_extensions; do
8134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8135 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8137 break 2
8139 done
8140 done
8141 IFS=$as_save_IFS
8145 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8146 if test -n "$ac_ct_NMEDIT"; then
8147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8148 $as_echo "$ac_ct_NMEDIT" >&6; }
8149 else
8150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8151 $as_echo "no" >&6; }
8154 if test "x$ac_ct_NMEDIT" = x; then
8155 NMEDIT=":"
8156 else
8157 case $cross_compiling:$ac_tool_warned in
8158 yes:)
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8160 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8161 ac_tool_warned=yes ;;
8162 esac
8163 NMEDIT=$ac_ct_NMEDIT
8165 else
8166 NMEDIT="$ac_cv_prog_NMEDIT"
8169 if test -n "$ac_tool_prefix"; then
8170 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8171 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8173 $as_echo_n "checking for $ac_word... " >&6; }
8174 if test "${ac_cv_prog_LIPO+set}" = set; then :
8175 $as_echo_n "(cached) " >&6
8176 else
8177 if test -n "$LIPO"; then
8178 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8179 else
8180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8181 for as_dir in $PATH
8183 IFS=$as_save_IFS
8184 test -z "$as_dir" && as_dir=.
8185 for ac_exec_ext in '' $ac_executable_extensions; do
8186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8187 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8189 break 2
8191 done
8192 done
8193 IFS=$as_save_IFS
8197 LIPO=$ac_cv_prog_LIPO
8198 if test -n "$LIPO"; then
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8200 $as_echo "$LIPO" >&6; }
8201 else
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8203 $as_echo "no" >&6; }
8208 if test -z "$ac_cv_prog_LIPO"; then
8209 ac_ct_LIPO=$LIPO
8210 # Extract the first word of "lipo", so it can be a program name with args.
8211 set dummy lipo; ac_word=$2
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8213 $as_echo_n "checking for $ac_word... " >&6; }
8214 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8215 $as_echo_n "(cached) " >&6
8216 else
8217 if test -n "$ac_ct_LIPO"; then
8218 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8219 else
8220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8221 for as_dir in $PATH
8223 IFS=$as_save_IFS
8224 test -z "$as_dir" && as_dir=.
8225 for ac_exec_ext in '' $ac_executable_extensions; do
8226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8227 ac_cv_prog_ac_ct_LIPO="lipo"
8228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8229 break 2
8231 done
8232 done
8233 IFS=$as_save_IFS
8237 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8238 if test -n "$ac_ct_LIPO"; then
8239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8240 $as_echo "$ac_ct_LIPO" >&6; }
8241 else
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8243 $as_echo "no" >&6; }
8246 if test "x$ac_ct_LIPO" = x; then
8247 LIPO=":"
8248 else
8249 case $cross_compiling:$ac_tool_warned in
8250 yes:)
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8252 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8253 ac_tool_warned=yes ;;
8254 esac
8255 LIPO=$ac_ct_LIPO
8257 else
8258 LIPO="$ac_cv_prog_LIPO"
8261 if test -n "$ac_tool_prefix"; then
8262 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8263 set dummy ${ac_tool_prefix}otool; ac_word=$2
8264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8265 $as_echo_n "checking for $ac_word... " >&6; }
8266 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8267 $as_echo_n "(cached) " >&6
8268 else
8269 if test -n "$OTOOL"; then
8270 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8271 else
8272 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8273 for as_dir in $PATH
8275 IFS=$as_save_IFS
8276 test -z "$as_dir" && as_dir=.
8277 for ac_exec_ext in '' $ac_executable_extensions; do
8278 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8279 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8281 break 2
8283 done
8284 done
8285 IFS=$as_save_IFS
8289 OTOOL=$ac_cv_prog_OTOOL
8290 if test -n "$OTOOL"; then
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8292 $as_echo "$OTOOL" >&6; }
8293 else
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8295 $as_echo "no" >&6; }
8300 if test -z "$ac_cv_prog_OTOOL"; then
8301 ac_ct_OTOOL=$OTOOL
8302 # Extract the first word of "otool", so it can be a program name with args.
8303 set dummy otool; ac_word=$2
8304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8305 $as_echo_n "checking for $ac_word... " >&6; }
8306 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8307 $as_echo_n "(cached) " >&6
8308 else
8309 if test -n "$ac_ct_OTOOL"; then
8310 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8311 else
8312 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8313 for as_dir in $PATH
8315 IFS=$as_save_IFS
8316 test -z "$as_dir" && as_dir=.
8317 for ac_exec_ext in '' $ac_executable_extensions; do
8318 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8319 ac_cv_prog_ac_ct_OTOOL="otool"
8320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8321 break 2
8323 done
8324 done
8325 IFS=$as_save_IFS
8329 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8330 if test -n "$ac_ct_OTOOL"; then
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8332 $as_echo "$ac_ct_OTOOL" >&6; }
8333 else
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8335 $as_echo "no" >&6; }
8338 if test "x$ac_ct_OTOOL" = x; then
8339 OTOOL=":"
8340 else
8341 case $cross_compiling:$ac_tool_warned in
8342 yes:)
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8344 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8345 ac_tool_warned=yes ;;
8346 esac
8347 OTOOL=$ac_ct_OTOOL
8349 else
8350 OTOOL="$ac_cv_prog_OTOOL"
8353 if test -n "$ac_tool_prefix"; then
8354 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8355 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8357 $as_echo_n "checking for $ac_word... " >&6; }
8358 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8359 $as_echo_n "(cached) " >&6
8360 else
8361 if test -n "$OTOOL64"; then
8362 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8363 else
8364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8365 for as_dir in $PATH
8367 IFS=$as_save_IFS
8368 test -z "$as_dir" && as_dir=.
8369 for ac_exec_ext in '' $ac_executable_extensions; do
8370 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8371 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8373 break 2
8375 done
8376 done
8377 IFS=$as_save_IFS
8381 OTOOL64=$ac_cv_prog_OTOOL64
8382 if test -n "$OTOOL64"; then
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8384 $as_echo "$OTOOL64" >&6; }
8385 else
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8387 $as_echo "no" >&6; }
8392 if test -z "$ac_cv_prog_OTOOL64"; then
8393 ac_ct_OTOOL64=$OTOOL64
8394 # Extract the first word of "otool64", so it can be a program name with args.
8395 set dummy otool64; ac_word=$2
8396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8397 $as_echo_n "checking for $ac_word... " >&6; }
8398 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8399 $as_echo_n "(cached) " >&6
8400 else
8401 if test -n "$ac_ct_OTOOL64"; then
8402 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8403 else
8404 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8405 for as_dir in $PATH
8407 IFS=$as_save_IFS
8408 test -z "$as_dir" && as_dir=.
8409 for ac_exec_ext in '' $ac_executable_extensions; do
8410 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8411 ac_cv_prog_ac_ct_OTOOL64="otool64"
8412 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8413 break 2
8415 done
8416 done
8417 IFS=$as_save_IFS
8421 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8422 if test -n "$ac_ct_OTOOL64"; then
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8424 $as_echo "$ac_ct_OTOOL64" >&6; }
8425 else
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8427 $as_echo "no" >&6; }
8430 if test "x$ac_ct_OTOOL64" = x; then
8431 OTOOL64=":"
8432 else
8433 case $cross_compiling:$ac_tool_warned in
8434 yes:)
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8436 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8437 ac_tool_warned=yes ;;
8438 esac
8439 OTOOL64=$ac_ct_OTOOL64
8441 else
8442 OTOOL64="$ac_cv_prog_OTOOL64"
8471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8472 $as_echo_n "checking for -single_module linker flag... " >&6; }
8473 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8474 $as_echo_n "(cached) " >&6
8475 else
8476 lt_cv_apple_cc_single_mod=no
8477 if test -z "${LT_MULTI_MODULE}"; then
8478 # By default we will add the -single_module flag. You can override
8479 # by either setting the environment variable LT_MULTI_MODULE
8480 # non-empty at configure time, or by adding -multi_module to the
8481 # link flags.
8482 rm -rf libconftest.dylib*
8483 echo "int foo(void){return 1;}" > conftest.c
8484 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8485 -dynamiclib -Wl,-single_module conftest.c" >&5
8486 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8487 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8488 _lt_result=$?
8489 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8490 lt_cv_apple_cc_single_mod=yes
8491 else
8492 cat conftest.err >&5
8494 rm -rf libconftest.dylib*
8495 rm -f conftest.*
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8499 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8501 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8502 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8503 $as_echo_n "(cached) " >&6
8504 else
8505 lt_cv_ld_exported_symbols_list=no
8506 save_LDFLAGS=$LDFLAGS
8507 echo "_main" > conftest.sym
8508 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8509 if test x$gcc_no_link = xyes; then
8510 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8513 /* end confdefs.h. */
8516 main ()
8520 return 0;
8522 _ACEOF
8523 if ac_fn_c_try_link "$LINENO"; then :
8524 lt_cv_ld_exported_symbols_list=yes
8525 else
8526 lt_cv_ld_exported_symbols_list=no
8528 rm -f core conftest.err conftest.$ac_objext \
8529 conftest$ac_exeext conftest.$ac_ext
8530 LDFLAGS="$save_LDFLAGS"
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8534 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8536 $as_echo_n "checking for -force_load linker flag... " >&6; }
8537 if test "${lt_cv_ld_force_load+set}" = set; then :
8538 $as_echo_n "(cached) " >&6
8539 else
8540 lt_cv_ld_force_load=no
8541 cat > conftest.c << _LT_EOF
8542 int forced_loaded() { return 2;}
8543 _LT_EOF
8544 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8545 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8546 echo "$AR cru libconftest.a conftest.o" >&5
8547 $AR cru libconftest.a conftest.o 2>&5
8548 cat > conftest.c << _LT_EOF
8549 int main() { return 0;}
8550 _LT_EOF
8551 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8552 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8553 _lt_result=$?
8554 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8555 lt_cv_ld_force_load=yes
8556 else
8557 cat conftest.err >&5
8559 rm -f conftest.err libconftest.a conftest conftest.c
8560 rm -rf conftest.dSYM
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8564 $as_echo "$lt_cv_ld_force_load" >&6; }
8565 case $host_os in
8566 rhapsody* | darwin1.[012])
8567 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8568 darwin1.*)
8569 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8570 darwin*) # darwin 5.x on
8571 # if running on 10.5 or later, the deployment target defaults
8572 # to the OS version, if on x86, and 10.4, the deployment
8573 # target defaults to 10.4. Don't you love it?
8574 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8575 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8576 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8577 10.[012]*)
8578 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8579 10.*)
8580 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8581 esac
8583 esac
8584 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8585 _lt_dar_single_mod='$single_module'
8587 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8588 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8589 else
8590 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8592 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8593 _lt_dsymutil='~$DSYMUTIL $lib || :'
8594 else
8595 _lt_dsymutil=
8598 esac
8600 for ac_header in dlfcn.h
8601 do :
8602 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8604 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8605 cat >>confdefs.h <<_ACEOF
8606 #define HAVE_DLFCN_H 1
8607 _ACEOF
8611 done
8617 # Set options
8622 enable_win32_dll=no
8625 # Check whether --enable-shared was given.
8626 if test "${enable_shared+set}" = set; then :
8627 enableval=$enable_shared; p=${PACKAGE-default}
8628 case $enableval in
8629 yes) enable_shared=yes ;;
8630 no) enable_shared=no ;;
8632 enable_shared=no
8633 # Look at the argument we got. We use all the common list separators.
8634 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8635 for pkg in $enableval; do
8636 IFS="$lt_save_ifs"
8637 if test "X$pkg" = "X$p"; then
8638 enable_shared=yes
8640 done
8641 IFS="$lt_save_ifs"
8643 esac
8644 else
8645 enable_shared=yes
8656 # Check whether --enable-static was given.
8657 if test "${enable_static+set}" = set; then :
8658 enableval=$enable_static; p=${PACKAGE-default}
8659 case $enableval in
8660 yes) enable_static=yes ;;
8661 no) enable_static=no ;;
8663 enable_static=no
8664 # Look at the argument we got. We use all the common list separators.
8665 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8666 for pkg in $enableval; do
8667 IFS="$lt_save_ifs"
8668 if test "X$pkg" = "X$p"; then
8669 enable_static=yes
8671 done
8672 IFS="$lt_save_ifs"
8674 esac
8675 else
8676 enable_static=yes
8688 # Check whether --with-pic was given.
8689 if test "${with_pic+set}" = set; then :
8690 withval=$with_pic; p=${PACKAGE-default}
8691 case "$withval" in
8692 yes|no) pic_mode="$withval" ;;
8694 pic_mode=default
8695 # Look at the argument we got. We use all the common list separators.
8696 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8697 for pkg in $withval; do
8698 IFS="$lt_save_ifs"
8699 if test "X$pkg" = "X$p"; then
8700 pic_mode=yes
8702 done
8703 IFS="$lt_save_ifs"
8705 esac
8706 else
8707 pic_mode=default
8711 test -z "$pic_mode" && pic_mode=default
8719 # Check whether --enable-fast-install was given.
8720 if test "${enable_fast_install+set}" = set; then :
8721 enableval=$enable_fast_install; p=${PACKAGE-default}
8722 case $enableval in
8723 yes) enable_fast_install=yes ;;
8724 no) enable_fast_install=no ;;
8726 enable_fast_install=no
8727 # Look at the argument we got. We use all the common list separators.
8728 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8729 for pkg in $enableval; do
8730 IFS="$lt_save_ifs"
8731 if test "X$pkg" = "X$p"; then
8732 enable_fast_install=yes
8734 done
8735 IFS="$lt_save_ifs"
8737 esac
8738 else
8739 enable_fast_install=yes
8752 # This can be used to rebuild libtool when needed
8753 LIBTOOL_DEPS="$ltmain"
8755 # Always use our own libtool.
8756 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8783 test -z "$LN_S" && LN_S="ln -s"
8798 if test -n "${ZSH_VERSION+set}" ; then
8799 setopt NO_GLOB_SUBST
8802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8803 $as_echo_n "checking for objdir... " >&6; }
8804 if test "${lt_cv_objdir+set}" = set; then :
8805 $as_echo_n "(cached) " >&6
8806 else
8807 rm -f .libs 2>/dev/null
8808 mkdir .libs 2>/dev/null
8809 if test -d .libs; then
8810 lt_cv_objdir=.libs
8811 else
8812 # MS-DOS does not allow filenames that begin with a dot.
8813 lt_cv_objdir=_libs
8815 rmdir .libs 2>/dev/null
8817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8818 $as_echo "$lt_cv_objdir" >&6; }
8819 objdir=$lt_cv_objdir
8825 cat >>confdefs.h <<_ACEOF
8826 #define LT_OBJDIR "$lt_cv_objdir/"
8827 _ACEOF
8832 case $host_os in
8833 aix3*)
8834 # AIX sometimes has problems with the GCC collect2 program. For some
8835 # reason, if we set the COLLECT_NAMES environment variable, the problems
8836 # vanish in a puff of smoke.
8837 if test "X${COLLECT_NAMES+set}" != Xset; then
8838 COLLECT_NAMES=
8839 export COLLECT_NAMES
8842 esac
8844 # Global variables:
8845 ofile=libtool
8846 can_build_shared=yes
8848 # All known linkers require a `.a' archive for static linking (except MSVC,
8849 # which needs '.lib').
8850 libext=a
8852 with_gnu_ld="$lt_cv_prog_gnu_ld"
8854 old_CC="$CC"
8855 old_CFLAGS="$CFLAGS"
8857 # Set sane defaults for various variables
8858 test -z "$CC" && CC=cc
8859 test -z "$LTCC" && LTCC=$CC
8860 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8861 test -z "$LD" && LD=ld
8862 test -z "$ac_objext" && ac_objext=o
8864 for cc_temp in $compiler""; do
8865 case $cc_temp in
8866 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8867 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8868 \-*) ;;
8869 *) break;;
8870 esac
8871 done
8872 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8875 # Only perform the check for file, if the check method requires it
8876 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8877 case $deplibs_check_method in
8878 file_magic*)
8879 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8881 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8882 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8883 $as_echo_n "(cached) " >&6
8884 else
8885 case $MAGIC_CMD in
8886 [\\/*] | ?:[\\/]*)
8887 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8890 lt_save_MAGIC_CMD="$MAGIC_CMD"
8891 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8892 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8893 for ac_dir in $ac_dummy; do
8894 IFS="$lt_save_ifs"
8895 test -z "$ac_dir" && ac_dir=.
8896 if test -f $ac_dir/${ac_tool_prefix}file; then
8897 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8898 if test -n "$file_magic_test_file"; then
8899 case $deplibs_check_method in
8900 "file_magic "*)
8901 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8902 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8903 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8904 $EGREP "$file_magic_regex" > /dev/null; then
8906 else
8907 cat <<_LT_EOF 1>&2
8909 *** Warning: the command libtool uses to detect shared libraries,
8910 *** $file_magic_cmd, produces output that libtool cannot recognize.
8911 *** The result is that libtool may fail to recognize shared libraries
8912 *** as such. This will affect the creation of libtool libraries that
8913 *** depend on shared libraries, but programs linked with such libtool
8914 *** libraries will work regardless of this problem. Nevertheless, you
8915 *** may want to report the problem to your system manager and/or to
8916 *** bug-libtool@gnu.org
8918 _LT_EOF
8919 fi ;;
8920 esac
8922 break
8924 done
8925 IFS="$lt_save_ifs"
8926 MAGIC_CMD="$lt_save_MAGIC_CMD"
8928 esac
8931 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8932 if test -n "$MAGIC_CMD"; then
8933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8934 $as_echo "$MAGIC_CMD" >&6; }
8935 else
8936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8937 $as_echo "no" >&6; }
8944 if test -z "$lt_cv_path_MAGIC_CMD"; then
8945 if test -n "$ac_tool_prefix"; then
8946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8947 $as_echo_n "checking for file... " >&6; }
8948 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
8949 $as_echo_n "(cached) " >&6
8950 else
8951 case $MAGIC_CMD in
8952 [\\/*] | ?:[\\/]*)
8953 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8956 lt_save_MAGIC_CMD="$MAGIC_CMD"
8957 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8958 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8959 for ac_dir in $ac_dummy; do
8960 IFS="$lt_save_ifs"
8961 test -z "$ac_dir" && ac_dir=.
8962 if test -f $ac_dir/file; then
8963 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8964 if test -n "$file_magic_test_file"; then
8965 case $deplibs_check_method in
8966 "file_magic "*)
8967 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8968 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8969 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8970 $EGREP "$file_magic_regex" > /dev/null; then
8972 else
8973 cat <<_LT_EOF 1>&2
8975 *** Warning: the command libtool uses to detect shared libraries,
8976 *** $file_magic_cmd, produces output that libtool cannot recognize.
8977 *** The result is that libtool may fail to recognize shared libraries
8978 *** as such. This will affect the creation of libtool libraries that
8979 *** depend on shared libraries, but programs linked with such libtool
8980 *** libraries will work regardless of this problem. Nevertheless, you
8981 *** may want to report the problem to your system manager and/or to
8982 *** bug-libtool@gnu.org
8984 _LT_EOF
8985 fi ;;
8986 esac
8988 break
8990 done
8991 IFS="$lt_save_ifs"
8992 MAGIC_CMD="$lt_save_MAGIC_CMD"
8994 esac
8997 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8998 if test -n "$MAGIC_CMD"; then
8999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9000 $as_echo "$MAGIC_CMD" >&6; }
9001 else
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9003 $as_echo "no" >&6; }
9007 else
9008 MAGIC_CMD=:
9014 esac
9016 # Use C for the default configuration in the libtool script
9018 lt_save_CC="$CC"
9019 ac_ext=c
9020 ac_cpp='$CPP $CPPFLAGS'
9021 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9022 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9023 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9026 # Source file extension for C test sources.
9027 ac_ext=c
9029 # Object file extension for compiled C test sources.
9030 objext=o
9031 objext=$objext
9033 # Code to be used in simple compile tests
9034 lt_simple_compile_test_code="int some_variable = 0;"
9036 # Code to be used in simple link tests
9037 lt_simple_link_test_code='int main(){return(0);}'
9045 # If no C compiler was specified, use CC.
9046 LTCC=${LTCC-"$CC"}
9048 # If no C compiler flags were specified, use CFLAGS.
9049 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9051 # Allow CC to be a program name with arguments.
9052 compiler=$CC
9054 # Save the default compiler, since it gets overwritten when the other
9055 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9056 compiler_DEFAULT=$CC
9058 # save warnings/boilerplate of simple test code
9059 ac_outfile=conftest.$ac_objext
9060 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9061 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9062 _lt_compiler_boilerplate=`cat conftest.err`
9063 $RM conftest*
9065 ac_outfile=conftest.$ac_objext
9066 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9067 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9068 _lt_linker_boilerplate=`cat conftest.err`
9069 $RM -r conftest*
9072 ## CAVEAT EMPTOR:
9073 ## There is no encapsulation within the following macros, do not change
9074 ## the running order or otherwise move them around unless you know exactly
9075 ## what you are doing...
9076 if test -n "$compiler"; then
9078 lt_prog_compiler_no_builtin_flag=
9080 if test "$GCC" = yes; then
9081 case $cc_basename in
9082 nvcc*)
9083 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9085 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9086 esac
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9089 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9090 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9091 $as_echo_n "(cached) " >&6
9092 else
9093 lt_cv_prog_compiler_rtti_exceptions=no
9094 ac_outfile=conftest.$ac_objext
9095 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9096 lt_compiler_flag="-fno-rtti -fno-exceptions"
9097 # Insert the option either (1) after the last *FLAGS variable, or
9098 # (2) before a word containing "conftest.", or (3) at the end.
9099 # Note that $ac_compile itself does not contain backslashes and begins
9100 # with a dollar sign (not a hyphen), so the echo should work correctly.
9101 # The option is referenced via a variable to avoid confusing sed.
9102 lt_compile=`echo "$ac_compile" | $SED \
9103 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9104 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9105 -e 's:$: $lt_compiler_flag:'`
9106 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9107 (eval "$lt_compile" 2>conftest.err)
9108 ac_status=$?
9109 cat conftest.err >&5
9110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111 if (exit $ac_status) && test -s "$ac_outfile"; then
9112 # The compiler can only warn and ignore the option if not recognized
9113 # So say no if there are warnings other than the usual output.
9114 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9115 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9116 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9117 lt_cv_prog_compiler_rtti_exceptions=yes
9120 $RM conftest*
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9124 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9126 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9127 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9128 else
9139 lt_prog_compiler_wl=
9140 lt_prog_compiler_pic=
9141 lt_prog_compiler_static=
9143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9144 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9146 if test "$GCC" = yes; then
9147 lt_prog_compiler_wl='-Wl,'
9148 lt_prog_compiler_static='-static'
9150 case $host_os in
9151 aix*)
9152 # All AIX code is PIC.
9153 if test "$host_cpu" = ia64; then
9154 # AIX 5 now supports IA64 processor
9155 lt_prog_compiler_static='-Bstatic'
9159 amigaos*)
9160 case $host_cpu in
9161 powerpc)
9162 # see comment about AmigaOS4 .so support
9163 lt_prog_compiler_pic='-fPIC'
9165 m68k)
9166 # FIXME: we need at least 68020 code to build shared libraries, but
9167 # adding the `-m68020' flag to GCC prevents building anything better,
9168 # like `-m68040'.
9169 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9171 esac
9174 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9175 # PIC is the default for these OSes.
9178 mingw* | cygwin* | pw32* | os2* | cegcc*)
9179 # This hack is so that the source file can tell whether it is being
9180 # built for inclusion in a dll (and should export symbols for example).
9181 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9182 # (--disable-auto-import) libraries
9183 lt_prog_compiler_pic='-DDLL_EXPORT'
9186 darwin* | rhapsody*)
9187 # PIC is the default on this platform
9188 # Common symbols not allowed in MH_DYLIB files
9189 lt_prog_compiler_pic='-fno-common'
9192 haiku*)
9193 # PIC is the default for Haiku.
9194 # The "-static" flag exists, but is broken.
9195 lt_prog_compiler_static=
9198 hpux*)
9199 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9200 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9201 # sets the default TLS model and affects inlining.
9202 case $host_cpu in
9203 hppa*64*)
9204 # +Z the default
9207 lt_prog_compiler_pic='-fPIC'
9209 esac
9212 interix[3-9]*)
9213 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9214 # Instead, we relocate shared libraries at runtime.
9217 msdosdjgpp*)
9218 # Just because we use GCC doesn't mean we suddenly get shared libraries
9219 # on systems that don't support them.
9220 lt_prog_compiler_can_build_shared=no
9221 enable_shared=no
9224 *nto* | *qnx*)
9225 # QNX uses GNU C++, but need to define -shared option too, otherwise
9226 # it will coredump.
9227 lt_prog_compiler_pic='-fPIC -shared'
9230 sysv4*MP*)
9231 if test -d /usr/nec; then
9232 lt_prog_compiler_pic=-Kconform_pic
9237 lt_prog_compiler_pic='-fPIC'
9239 esac
9241 case $cc_basename in
9242 nvcc*) # Cuda Compiler Driver 2.2
9243 lt_prog_compiler_wl='-Xlinker '
9244 lt_prog_compiler_pic='-Xcompiler -fPIC'
9246 esac
9247 else
9248 # PORTME Check for flag to pass linker flags through the system compiler.
9249 case $host_os in
9250 aix*)
9251 lt_prog_compiler_wl='-Wl,'
9252 if test "$host_cpu" = ia64; then
9253 # AIX 5 now supports IA64 processor
9254 lt_prog_compiler_static='-Bstatic'
9255 else
9256 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9260 mingw* | cygwin* | pw32* | os2* | cegcc*)
9261 # This hack is so that the source file can tell whether it is being
9262 # built for inclusion in a dll (and should export symbols for example).
9263 lt_prog_compiler_pic='-DDLL_EXPORT'
9266 hpux9* | hpux10* | hpux11*)
9267 lt_prog_compiler_wl='-Wl,'
9268 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9269 # not for PA HP-UX.
9270 case $host_cpu in
9271 hppa*64*|ia64*)
9272 # +Z the default
9275 lt_prog_compiler_pic='+Z'
9277 esac
9278 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9279 lt_prog_compiler_static='${wl}-a ${wl}archive'
9282 irix5* | irix6* | nonstopux*)
9283 lt_prog_compiler_wl='-Wl,'
9284 # PIC (with -KPIC) is the default.
9285 lt_prog_compiler_static='-non_shared'
9288 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9289 case $cc_basename in
9290 # old Intel for x86_64 which still supported -KPIC.
9291 ecc*)
9292 lt_prog_compiler_wl='-Wl,'
9293 lt_prog_compiler_pic='-KPIC'
9294 lt_prog_compiler_static='-static'
9296 # icc used to be incompatible with GCC.
9297 # ICC 10 doesn't accept -KPIC any more.
9298 icc* | ifort*)
9299 lt_prog_compiler_wl='-Wl,'
9300 lt_prog_compiler_pic='-fPIC'
9301 lt_prog_compiler_static='-static'
9303 # Lahey Fortran 8.1.
9304 lf95*)
9305 lt_prog_compiler_wl='-Wl,'
9306 lt_prog_compiler_pic='--shared'
9307 lt_prog_compiler_static='--static'
9309 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9310 # Portland Group compilers (*not* the Pentium gcc compiler,
9311 # which looks to be a dead project)
9312 lt_prog_compiler_wl='-Wl,'
9313 lt_prog_compiler_pic='-fpic'
9314 lt_prog_compiler_static='-Bstatic'
9316 ccc*)
9317 lt_prog_compiler_wl='-Wl,'
9318 # All Alpha code is PIC.
9319 lt_prog_compiler_static='-non_shared'
9321 xl* | bgxl* | bgf* | mpixl*)
9322 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9323 lt_prog_compiler_wl='-Wl,'
9324 lt_prog_compiler_pic='-qpic'
9325 lt_prog_compiler_static='-qstaticlink'
9328 case `$CC -V 2>&1 | sed 5q` in
9329 *Sun\ F* | *Sun*Fortran*)
9330 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9331 lt_prog_compiler_pic='-KPIC'
9332 lt_prog_compiler_static='-Bstatic'
9333 lt_prog_compiler_wl=''
9335 *Sun\ C*)
9336 # Sun C 5.9
9337 lt_prog_compiler_pic='-KPIC'
9338 lt_prog_compiler_static='-Bstatic'
9339 lt_prog_compiler_wl='-Wl,'
9341 esac
9343 esac
9346 newsos6)
9347 lt_prog_compiler_pic='-KPIC'
9348 lt_prog_compiler_static='-Bstatic'
9351 *nto* | *qnx*)
9352 # QNX uses GNU C++, but need to define -shared option too, otherwise
9353 # it will coredump.
9354 lt_prog_compiler_pic='-fPIC -shared'
9357 osf3* | osf4* | osf5*)
9358 lt_prog_compiler_wl='-Wl,'
9359 # All OSF/1 code is PIC.
9360 lt_prog_compiler_static='-non_shared'
9363 rdos*)
9364 lt_prog_compiler_static='-non_shared'
9367 solaris*)
9368 lt_prog_compiler_pic='-KPIC'
9369 lt_prog_compiler_static='-Bstatic'
9370 case $cc_basename in
9371 f77* | f90* | f95*)
9372 lt_prog_compiler_wl='-Qoption ld ';;
9374 lt_prog_compiler_wl='-Wl,';;
9375 esac
9378 sunos4*)
9379 lt_prog_compiler_wl='-Qoption ld '
9380 lt_prog_compiler_pic='-PIC'
9381 lt_prog_compiler_static='-Bstatic'
9384 sysv4 | sysv4.2uw2* | sysv4.3*)
9385 lt_prog_compiler_wl='-Wl,'
9386 lt_prog_compiler_pic='-KPIC'
9387 lt_prog_compiler_static='-Bstatic'
9390 sysv4*MP*)
9391 if test -d /usr/nec ;then
9392 lt_prog_compiler_pic='-Kconform_pic'
9393 lt_prog_compiler_static='-Bstatic'
9397 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9398 lt_prog_compiler_wl='-Wl,'
9399 lt_prog_compiler_pic='-KPIC'
9400 lt_prog_compiler_static='-Bstatic'
9403 unicos*)
9404 lt_prog_compiler_wl='-Wl,'
9405 lt_prog_compiler_can_build_shared=no
9408 uts4*)
9409 lt_prog_compiler_pic='-pic'
9410 lt_prog_compiler_static='-Bstatic'
9414 lt_prog_compiler_can_build_shared=no
9416 esac
9419 case $host_os in
9420 # For platforms which do not support PIC, -DPIC is meaningless:
9421 *djgpp*)
9422 lt_prog_compiler_pic=
9425 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9427 esac
9428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9429 $as_echo "$lt_prog_compiler_pic" >&6; }
9437 # Check to make sure the PIC flag actually works.
9439 if test -n "$lt_prog_compiler_pic"; then
9440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9441 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9442 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9443 $as_echo_n "(cached) " >&6
9444 else
9445 lt_cv_prog_compiler_pic_works=no
9446 ac_outfile=conftest.$ac_objext
9447 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9448 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9449 # Insert the option either (1) after the last *FLAGS variable, or
9450 # (2) before a word containing "conftest.", or (3) at the end.
9451 # Note that $ac_compile itself does not contain backslashes and begins
9452 # with a dollar sign (not a hyphen), so the echo should work correctly.
9453 # The option is referenced via a variable to avoid confusing sed.
9454 lt_compile=`echo "$ac_compile" | $SED \
9455 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9456 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9457 -e 's:$: $lt_compiler_flag:'`
9458 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9459 (eval "$lt_compile" 2>conftest.err)
9460 ac_status=$?
9461 cat conftest.err >&5
9462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463 if (exit $ac_status) && test -s "$ac_outfile"; then
9464 # The compiler can only warn and ignore the option if not recognized
9465 # So say no if there are warnings other than the usual output.
9466 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9467 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9468 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9469 lt_cv_prog_compiler_pic_works=yes
9472 $RM conftest*
9475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9476 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9478 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9479 case $lt_prog_compiler_pic in
9480 "" | " "*) ;;
9481 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9482 esac
9483 else
9484 lt_prog_compiler_pic=
9485 lt_prog_compiler_can_build_shared=no
9496 # Check to make sure the static flag actually works.
9498 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9500 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9501 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9502 $as_echo_n "(cached) " >&6
9503 else
9504 lt_cv_prog_compiler_static_works=no
9505 save_LDFLAGS="$LDFLAGS"
9506 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9507 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9508 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9509 # The linker can only warn and ignore the option if not recognized
9510 # So say no if there are warnings
9511 if test -s conftest.err; then
9512 # Append any errors to the config.log.
9513 cat conftest.err 1>&5
9514 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9515 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9516 if diff conftest.exp conftest.er2 >/dev/null; then
9517 lt_cv_prog_compiler_static_works=yes
9519 else
9520 lt_cv_prog_compiler_static_works=yes
9523 $RM -r conftest*
9524 LDFLAGS="$save_LDFLAGS"
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9528 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9530 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9532 else
9533 lt_prog_compiler_static=
9542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9543 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9544 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9545 $as_echo_n "(cached) " >&6
9546 else
9547 lt_cv_prog_compiler_c_o=no
9548 $RM -r conftest 2>/dev/null
9549 mkdir conftest
9550 cd conftest
9551 mkdir out
9552 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9554 lt_compiler_flag="-o out/conftest2.$ac_objext"
9555 # Insert the option either (1) after the last *FLAGS variable, or
9556 # (2) before a word containing "conftest.", or (3) at the end.
9557 # Note that $ac_compile itself does not contain backslashes and begins
9558 # with a dollar sign (not a hyphen), so the echo should work correctly.
9559 lt_compile=`echo "$ac_compile" | $SED \
9560 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9561 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9562 -e 's:$: $lt_compiler_flag:'`
9563 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9564 (eval "$lt_compile" 2>out/conftest.err)
9565 ac_status=$?
9566 cat out/conftest.err >&5
9567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9568 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9569 then
9570 # The compiler can only warn and ignore the option if not recognized
9571 # So say no if there are warnings
9572 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9573 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9574 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9575 lt_cv_prog_compiler_c_o=yes
9578 chmod u+w . 2>&5
9579 $RM conftest*
9580 # SGI C++ compiler will create directory out/ii_files/ for
9581 # template instantiation
9582 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9583 $RM out/* && rmdir out
9584 cd ..
9585 $RM -r conftest
9586 $RM conftest*
9589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9590 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9598 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9599 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9600 $as_echo_n "(cached) " >&6
9601 else
9602 lt_cv_prog_compiler_c_o=no
9603 $RM -r conftest 2>/dev/null
9604 mkdir conftest
9605 cd conftest
9606 mkdir out
9607 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9609 lt_compiler_flag="-o out/conftest2.$ac_objext"
9610 # Insert the option either (1) after the last *FLAGS variable, or
9611 # (2) before a word containing "conftest.", or (3) at the end.
9612 # Note that $ac_compile itself does not contain backslashes and begins
9613 # with a dollar sign (not a hyphen), so the echo should work correctly.
9614 lt_compile=`echo "$ac_compile" | $SED \
9615 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9616 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9617 -e 's:$: $lt_compiler_flag:'`
9618 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9619 (eval "$lt_compile" 2>out/conftest.err)
9620 ac_status=$?
9621 cat out/conftest.err >&5
9622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9624 then
9625 # The compiler can only warn and ignore the option if not recognized
9626 # So say no if there are warnings
9627 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9628 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9629 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9630 lt_cv_prog_compiler_c_o=yes
9633 chmod u+w . 2>&5
9634 $RM conftest*
9635 # SGI C++ compiler will create directory out/ii_files/ for
9636 # template instantiation
9637 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9638 $RM out/* && rmdir out
9639 cd ..
9640 $RM -r conftest
9641 $RM conftest*
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9645 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9650 hard_links="nottested"
9651 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9652 # do not overwrite the value of need_locks provided by the user
9653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9654 $as_echo_n "checking if we can lock with hard links... " >&6; }
9655 hard_links=yes
9656 $RM conftest*
9657 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9658 touch conftest.a
9659 ln conftest.a conftest.b 2>&5 || hard_links=no
9660 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9662 $as_echo "$hard_links" >&6; }
9663 if test "$hard_links" = no; then
9664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9665 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9666 need_locks=warn
9668 else
9669 need_locks=no
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9678 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9680 runpath_var=
9681 allow_undefined_flag=
9682 always_export_symbols=no
9683 archive_cmds=
9684 archive_expsym_cmds=
9685 compiler_needs_object=no
9686 enable_shared_with_static_runtimes=no
9687 export_dynamic_flag_spec=
9688 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9689 hardcode_automatic=no
9690 hardcode_direct=no
9691 hardcode_direct_absolute=no
9692 hardcode_libdir_flag_spec=
9693 hardcode_libdir_flag_spec_ld=
9694 hardcode_libdir_separator=
9695 hardcode_minus_L=no
9696 hardcode_shlibpath_var=unsupported
9697 inherit_rpath=no
9698 link_all_deplibs=unknown
9699 module_cmds=
9700 module_expsym_cmds=
9701 old_archive_from_new_cmds=
9702 old_archive_from_expsyms_cmds=
9703 thread_safe_flag_spec=
9704 whole_archive_flag_spec=
9705 # include_expsyms should be a list of space-separated symbols to be *always*
9706 # included in the symbol list
9707 include_expsyms=
9708 # exclude_expsyms can be an extended regexp of symbols to exclude
9709 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9710 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9711 # as well as any symbol that contains `d'.
9712 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9713 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9714 # platforms (ab)use it in PIC code, but their linkers get confused if
9715 # the symbol is explicitly referenced. Since portable code cannot
9716 # rely on this symbol name, it's probably fine to never include it in
9717 # preloaded symbol tables.
9718 # Exclude shared library initialization/finalization symbols.
9719 extract_expsyms_cmds=
9721 case $host_os in
9722 cygwin* | mingw* | pw32* | cegcc*)
9723 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9724 # When not using gcc, we currently assume that we are using
9725 # Microsoft Visual C++.
9726 if test "$GCC" != yes; then
9727 with_gnu_ld=no
9730 interix*)
9731 # we just hope/assume this is gcc and not c89 (= MSVC++)
9732 with_gnu_ld=yes
9734 openbsd*)
9735 with_gnu_ld=no
9737 esac
9739 ld_shlibs=yes
9741 # On some targets, GNU ld is compatible enough with the native linker
9742 # that we're better off using the native interface for both.
9743 lt_use_gnu_ld_interface=no
9744 if test "$with_gnu_ld" = yes; then
9745 case $host_os in
9746 aix*)
9747 # The AIX port of GNU ld has always aspired to compatibility
9748 # with the native linker. However, as the warning in the GNU ld
9749 # block says, versions before 2.19.5* couldn't really create working
9750 # shared libraries, regardless of the interface used.
9751 case `$LD -v 2>&1` in
9752 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9753 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9754 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9756 lt_use_gnu_ld_interface=yes
9758 esac
9761 lt_use_gnu_ld_interface=yes
9763 esac
9766 if test "$lt_use_gnu_ld_interface" = yes; then
9767 # If archive_cmds runs LD, not CC, wlarc should be empty
9768 wlarc='${wl}'
9770 # Set some defaults for GNU ld with shared library support. These
9771 # are reset later if shared libraries are not supported. Putting them
9772 # here allows them to be overridden if necessary.
9773 runpath_var=LD_RUN_PATH
9774 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9775 export_dynamic_flag_spec='${wl}--export-dynamic'
9776 # ancient GNU ld didn't support --whole-archive et. al.
9777 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9778 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9779 else
9780 whole_archive_flag_spec=
9782 supports_anon_versioning=no
9783 case `$LD -v 2>&1` in
9784 *GNU\ gold*) supports_anon_versioning=yes ;;
9785 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9786 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9787 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9788 *\ 2.11.*) ;; # other 2.11 versions
9789 *) supports_anon_versioning=yes ;;
9790 esac
9792 # See if GNU ld supports shared libraries.
9793 case $host_os in
9794 aix[3-9]*)
9795 # On AIX/PPC, the GNU linker is very broken
9796 if test "$host_cpu" != ia64; then
9797 ld_shlibs=no
9798 cat <<_LT_EOF 1>&2
9800 *** Warning: the GNU linker, at least up to release 2.19, is reported
9801 *** to be unable to reliably create shared libraries on AIX.
9802 *** Therefore, libtool is disabling shared libraries support. If you
9803 *** really care for shared libraries, you may want to install binutils
9804 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9805 *** You will then need to restart the configuration process.
9807 _LT_EOF
9811 amigaos*)
9812 case $host_cpu in
9813 powerpc)
9814 # see comment about AmigaOS4 .so support
9815 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9816 archive_expsym_cmds=''
9818 m68k)
9819 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)'
9820 hardcode_libdir_flag_spec='-L$libdir'
9821 hardcode_minus_L=yes
9823 esac
9826 beos*)
9827 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9828 allow_undefined_flag=unsupported
9829 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9830 # support --undefined. This deserves some investigation. FIXME
9831 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9832 else
9833 ld_shlibs=no
9837 cygwin* | mingw* | pw32* | cegcc*)
9838 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9839 # as there is no search path for DLLs.
9840 hardcode_libdir_flag_spec='-L$libdir'
9841 export_dynamic_flag_spec='${wl}--export-all-symbols'
9842 allow_undefined_flag=unsupported
9843 always_export_symbols=no
9844 enable_shared_with_static_runtimes=yes
9845 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9847 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9848 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9849 # If the export-symbols file already is a .def file (1st line
9850 # is EXPORTS), use it as is; otherwise, prepend...
9851 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9852 cp $export_symbols $output_objdir/$soname.def;
9853 else
9854 echo EXPORTS > $output_objdir/$soname.def;
9855 cat $export_symbols >> $output_objdir/$soname.def;
9857 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9858 else
9859 ld_shlibs=no
9863 haiku*)
9864 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9865 link_all_deplibs=yes
9868 interix[3-9]*)
9869 hardcode_direct=no
9870 hardcode_shlibpath_var=no
9871 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9872 export_dynamic_flag_spec='${wl}-E'
9873 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9874 # Instead, shared libraries are loaded at an image base (0x10000000 by
9875 # default) and relocated if they conflict, which is a slow very memory
9876 # consuming and fragmenting process. To avoid this, we pick a random,
9877 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9878 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9879 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9880 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'
9883 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9884 tmp_diet=no
9885 if test "$host_os" = linux-dietlibc; then
9886 case $cc_basename in
9887 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9888 esac
9890 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9891 && test "$tmp_diet" = no
9892 then
9893 tmp_addflag=
9894 tmp_sharedflag='-shared'
9895 case $cc_basename,$host_cpu in
9896 pgcc*) # Portland Group C compiler
9897 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'
9898 tmp_addflag=' $pic_flag'
9900 pgf77* | pgf90* | pgf95* | pgfortran*)
9901 # Portland Group f77 and f90 compilers
9902 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'
9903 tmp_addflag=' $pic_flag -Mnomain' ;;
9904 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9905 tmp_addflag=' -i_dynamic' ;;
9906 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9907 tmp_addflag=' -i_dynamic -nofor_main' ;;
9908 ifc* | ifort*) # Intel Fortran compiler
9909 tmp_addflag=' -nofor_main' ;;
9910 lf95*) # Lahey Fortran 8.1
9911 whole_archive_flag_spec=
9912 tmp_sharedflag='--shared' ;;
9913 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9914 tmp_sharedflag='-qmkshrobj'
9915 tmp_addflag= ;;
9916 nvcc*) # Cuda Compiler Driver 2.2
9917 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'
9918 compiler_needs_object=yes
9920 esac
9921 case `$CC -V 2>&1 | sed 5q` in
9922 *Sun\ C*) # Sun C 5.9
9923 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'
9924 compiler_needs_object=yes
9925 tmp_sharedflag='-G' ;;
9926 *Sun\ F*) # Sun Fortran 8.3
9927 tmp_sharedflag='-G' ;;
9928 esac
9929 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9931 if test "x$supports_anon_versioning" = xyes; then
9932 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9933 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9934 echo "local: *; };" >> $output_objdir/$libname.ver~
9935 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9938 case $cc_basename in
9939 xlf* | bgf* | bgxlf* | mpixlf*)
9940 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9941 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9942 hardcode_libdir_flag_spec=
9943 hardcode_libdir_flag_spec_ld='-rpath $libdir'
9944 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
9945 if test "x$supports_anon_versioning" = xyes; then
9946 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9947 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9948 echo "local: *; };" >> $output_objdir/$libname.ver~
9949 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9952 esac
9953 else
9954 ld_shlibs=no
9958 netbsd*)
9959 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9960 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9961 wlarc=
9962 else
9963 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9964 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9968 solaris*)
9969 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9970 ld_shlibs=no
9971 cat <<_LT_EOF 1>&2
9973 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9974 *** create shared libraries on Solaris systems. Therefore, libtool
9975 *** is disabling shared libraries support. We urge you to upgrade GNU
9976 *** binutils to release 2.9.1 or newer. Another option is to modify
9977 *** your PATH or compiler configuration so that the native linker is
9978 *** used, and then restart.
9980 _LT_EOF
9981 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9982 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9983 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9984 else
9985 ld_shlibs=no
9989 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9990 case `$LD -v 2>&1` in
9991 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9992 ld_shlibs=no
9993 cat <<_LT_EOF 1>&2
9995 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9996 *** reliably create shared libraries on SCO systems. Therefore, libtool
9997 *** is disabling shared libraries support. We urge you to upgrade GNU
9998 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9999 *** your PATH or compiler configuration so that the native linker is
10000 *** used, and then restart.
10002 _LT_EOF
10005 # For security reasons, it is highly recommended that you always
10006 # use absolute paths for naming shared libraries, and exclude the
10007 # DT_RUNPATH tag from executables and libraries. But doing so
10008 # requires that you compile everything twice, which is a pain.
10009 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10010 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10011 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10012 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10013 else
10014 ld_shlibs=no
10017 esac
10020 sunos4*)
10021 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10022 wlarc=
10023 hardcode_direct=yes
10024 hardcode_shlibpath_var=no
10028 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10029 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10030 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10031 else
10032 ld_shlibs=no
10035 esac
10037 if test "$ld_shlibs" = no; then
10038 runpath_var=
10039 hardcode_libdir_flag_spec=
10040 export_dynamic_flag_spec=
10041 whole_archive_flag_spec=
10043 else
10044 # PORTME fill in a description of your system's linker (not GNU ld)
10045 case $host_os in
10046 aix3*)
10047 allow_undefined_flag=unsupported
10048 always_export_symbols=yes
10049 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'
10050 # Note: this linker hardcodes the directories in LIBPATH if there
10051 # are no directories specified by -L.
10052 hardcode_minus_L=yes
10053 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10054 # Neither direct hardcoding nor static linking is supported with a
10055 # broken collect2.
10056 hardcode_direct=unsupported
10060 aix[4-9]*)
10061 if test "$host_cpu" = ia64; then
10062 # On IA64, the linker does run time linking by default, so we don't
10063 # have to do anything special.
10064 aix_use_runtimelinking=no
10065 exp_sym_flag='-Bexport'
10066 no_entry_flag=""
10067 else
10068 # If we're using GNU nm, then we don't want the "-C" option.
10069 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10070 # Also, AIX nm treats weak defined symbols like other global
10071 # defined symbols, whereas GNU nm marks them as "W".
10072 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10073 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'
10074 else
10075 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
10077 aix_use_runtimelinking=no
10079 # Test if we are trying to use run time linking or normal
10080 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10081 # need to do runtime linking.
10082 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10083 for ld_flag in $LDFLAGS; do
10084 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10085 aix_use_runtimelinking=yes
10086 break
10088 done
10090 esac
10092 exp_sym_flag='-bexport'
10093 no_entry_flag='-bnoentry'
10096 # When large executables or shared objects are built, AIX ld can
10097 # have problems creating the table of contents. If linking a library
10098 # or program results in "error TOC overflow" add -mminimal-toc to
10099 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10100 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10102 archive_cmds=''
10103 hardcode_direct=yes
10104 hardcode_direct_absolute=yes
10105 hardcode_libdir_separator=':'
10106 link_all_deplibs=yes
10107 file_list_spec='${wl}-f,'
10109 if test "$GCC" = yes; then
10110 case $host_os in aix4.[012]|aix4.[012].*)
10111 # We only want to do this on AIX 4.2 and lower, the check
10112 # below for broken collect2 doesn't work under 4.3+
10113 collect2name=`${CC} -print-prog-name=collect2`
10114 if test -f "$collect2name" &&
10115 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10116 then
10117 # We have reworked collect2
10119 else
10120 # We have old collect2
10121 hardcode_direct=unsupported
10122 # It fails to find uninstalled libraries when the uninstalled
10123 # path is not listed in the libpath. Setting hardcode_minus_L
10124 # to unsupported forces relinking
10125 hardcode_minus_L=yes
10126 hardcode_libdir_flag_spec='-L$libdir'
10127 hardcode_libdir_separator=
10130 esac
10131 shared_flag='-shared'
10132 if test "$aix_use_runtimelinking" = yes; then
10133 shared_flag="$shared_flag "'${wl}-G'
10135 else
10136 # not using gcc
10137 if test "$host_cpu" = ia64; then
10138 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10139 # chokes on -Wl,-G. The following line is correct:
10140 shared_flag='-G'
10141 else
10142 if test "$aix_use_runtimelinking" = yes; then
10143 shared_flag='${wl}-G'
10144 else
10145 shared_flag='${wl}-bM:SRE'
10150 export_dynamic_flag_spec='${wl}-bexpall'
10151 # It seems that -bexpall does not export symbols beginning with
10152 # underscore (_), so it is better to generate a list of symbols to export.
10153 always_export_symbols=yes
10154 if test "$aix_use_runtimelinking" = yes; then
10155 # Warning - without using the other runtime loading flags (-brtl),
10156 # -berok will link without error, but may produce a broken library.
10157 allow_undefined_flag='-berok'
10158 # Determine the default libpath from the value encoded in an
10159 # empty executable.
10160 if test x$gcc_no_link = xyes; then
10161 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10164 /* end confdefs.h. */
10167 main ()
10171 return 0;
10173 _ACEOF
10174 if ac_fn_c_try_link "$LINENO"; then :
10176 lt_aix_libpath_sed='
10177 /Import File Strings/,/^$/ {
10178 /^0/ {
10179 s/^0 *\(.*\)$/\1/
10183 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10184 # Check for a 64-bit object if we didn't find anything.
10185 if test -z "$aix_libpath"; then
10186 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10189 rm -f core conftest.err conftest.$ac_objext \
10190 conftest$ac_exeext conftest.$ac_ext
10191 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10193 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10194 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"
10195 else
10196 if test "$host_cpu" = ia64; then
10197 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10198 allow_undefined_flag="-z nodefs"
10199 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"
10200 else
10201 # Determine the default libpath from the value encoded in an
10202 # empty executable.
10203 if test x$gcc_no_link = xyes; then
10204 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10207 /* end confdefs.h. */
10210 main ()
10214 return 0;
10216 _ACEOF
10217 if ac_fn_c_try_link "$LINENO"; then :
10219 lt_aix_libpath_sed='
10220 /Import File Strings/,/^$/ {
10221 /^0/ {
10222 s/^0 *\(.*\)$/\1/
10226 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10227 # Check for a 64-bit object if we didn't find anything.
10228 if test -z "$aix_libpath"; then
10229 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10232 rm -f core conftest.err conftest.$ac_objext \
10233 conftest$ac_exeext conftest.$ac_ext
10234 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10236 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10237 # Warning - without using the other run time loading flags,
10238 # -berok will link without error, but may produce a broken library.
10239 no_undefined_flag=' ${wl}-bernotok'
10240 allow_undefined_flag=' ${wl}-berok'
10241 if test "$with_gnu_ld" = yes; then
10242 # We only use this code for GNU lds that support --whole-archive.
10243 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10244 else
10245 # Exported symbols can be pulled into shared objects from archives
10246 whole_archive_flag_spec='$convenience'
10248 archive_cmds_need_lc=yes
10249 # This is similar to how AIX traditionally builds its shared libraries.
10250 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'
10255 amigaos*)
10256 case $host_cpu in
10257 powerpc)
10258 # see comment about AmigaOS4 .so support
10259 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10260 archive_expsym_cmds=''
10262 m68k)
10263 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)'
10264 hardcode_libdir_flag_spec='-L$libdir'
10265 hardcode_minus_L=yes
10267 esac
10270 bsdi[45]*)
10271 export_dynamic_flag_spec=-rdynamic
10274 cygwin* | mingw* | pw32* | cegcc*)
10275 # When not using gcc, we currently assume that we are using
10276 # Microsoft Visual C++.
10277 # hardcode_libdir_flag_spec is actually meaningless, as there is
10278 # no search path for DLLs.
10279 hardcode_libdir_flag_spec=' '
10280 allow_undefined_flag=unsupported
10281 # Tell ltmain to make .lib files, not .a files.
10282 libext=lib
10283 # Tell ltmain to make .dll files, not .so files.
10284 shrext_cmds=".dll"
10285 # FIXME: Setting linknames here is a bad hack.
10286 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10287 # The linker will automatically build a .lib file if we build a DLL.
10288 old_archive_from_new_cmds='true'
10289 # FIXME: Should let the user specify the lib program.
10290 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10291 fix_srcfile_path='`cygpath -w "$srcfile"`'
10292 enable_shared_with_static_runtimes=yes
10295 darwin* | rhapsody*)
10298 archive_cmds_need_lc=no
10299 hardcode_direct=no
10300 hardcode_automatic=yes
10301 hardcode_shlibpath_var=unsupported
10302 if test "$lt_cv_ld_force_load" = "yes"; then
10303 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\"`'
10304 else
10305 whole_archive_flag_spec=''
10307 link_all_deplibs=yes
10308 allow_undefined_flag="$_lt_dar_allow_undefined"
10309 case $cc_basename in
10310 ifort*) _lt_dar_can_shared=yes ;;
10311 *) _lt_dar_can_shared=$GCC ;;
10312 esac
10313 if test "$_lt_dar_can_shared" = "yes"; then
10314 output_verbose_link_cmd=func_echo_all
10315 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10316 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10317 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}"
10318 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}"
10320 else
10321 ld_shlibs=no
10326 dgux*)
10327 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10328 hardcode_libdir_flag_spec='-L$libdir'
10329 hardcode_shlibpath_var=no
10332 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10333 # support. Future versions do this automatically, but an explicit c++rt0.o
10334 # does not break anything, and helps significantly (at the cost of a little
10335 # extra space).
10336 freebsd2.2*)
10337 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10338 hardcode_libdir_flag_spec='-R$libdir'
10339 hardcode_direct=yes
10340 hardcode_shlibpath_var=no
10343 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10344 freebsd2.*)
10345 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10346 hardcode_direct=yes
10347 hardcode_minus_L=yes
10348 hardcode_shlibpath_var=no
10351 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10352 freebsd* | dragonfly*)
10353 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10354 hardcode_libdir_flag_spec='-R$libdir'
10355 hardcode_direct=yes
10356 hardcode_shlibpath_var=no
10359 hpux9*)
10360 if test "$GCC" = yes; then
10361 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'
10362 else
10363 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'
10365 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10366 hardcode_libdir_separator=:
10367 hardcode_direct=yes
10369 # hardcode_minus_L: Not really in the search PATH,
10370 # but as the default location of the library.
10371 hardcode_minus_L=yes
10372 export_dynamic_flag_spec='${wl}-E'
10375 hpux10*)
10376 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10377 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10378 else
10379 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10381 if test "$with_gnu_ld" = no; then
10382 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10383 hardcode_libdir_flag_spec_ld='+b $libdir'
10384 hardcode_libdir_separator=:
10385 hardcode_direct=yes
10386 hardcode_direct_absolute=yes
10387 export_dynamic_flag_spec='${wl}-E'
10388 # hardcode_minus_L: Not really in the search PATH,
10389 # but as the default location of the library.
10390 hardcode_minus_L=yes
10394 hpux11*)
10395 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10396 case $host_cpu in
10397 hppa*64*)
10398 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10400 ia64*)
10401 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10404 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10406 esac
10407 else
10408 case $host_cpu in
10409 hppa*64*)
10410 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10412 ia64*)
10413 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10417 # Older versions of the 11.00 compiler do not understand -b yet
10418 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10420 $as_echo_n "checking if $CC understands -b... " >&6; }
10421 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10422 $as_echo_n "(cached) " >&6
10423 else
10424 lt_cv_prog_compiler__b=no
10425 save_LDFLAGS="$LDFLAGS"
10426 LDFLAGS="$LDFLAGS -b"
10427 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10428 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10429 # The linker can only warn and ignore the option if not recognized
10430 # So say no if there are warnings
10431 if test -s conftest.err; then
10432 # Append any errors to the config.log.
10433 cat conftest.err 1>&5
10434 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10435 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10436 if diff conftest.exp conftest.er2 >/dev/null; then
10437 lt_cv_prog_compiler__b=yes
10439 else
10440 lt_cv_prog_compiler__b=yes
10443 $RM -r conftest*
10444 LDFLAGS="$save_LDFLAGS"
10447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10448 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10450 if test x"$lt_cv_prog_compiler__b" = xyes; then
10451 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10452 else
10453 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10457 esac
10459 if test "$with_gnu_ld" = no; then
10460 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10461 hardcode_libdir_separator=:
10463 case $host_cpu in
10464 hppa*64*|ia64*)
10465 hardcode_direct=no
10466 hardcode_shlibpath_var=no
10469 hardcode_direct=yes
10470 hardcode_direct_absolute=yes
10471 export_dynamic_flag_spec='${wl}-E'
10473 # hardcode_minus_L: Not really in the search PATH,
10474 # but as the default location of the library.
10475 hardcode_minus_L=yes
10477 esac
10481 irix5* | irix6* | nonstopux*)
10482 if test "$GCC" = yes; then
10483 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'
10484 # Try to use the -exported_symbol ld option, if it does not
10485 # work, assume that -exports_file does not work either and
10486 # implicitly export all symbols.
10487 save_LDFLAGS="$LDFLAGS"
10488 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10489 if test x$gcc_no_link = xyes; then
10490 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10493 /* end confdefs.h. */
10494 int foo(void) {}
10495 _ACEOF
10496 if ac_fn_c_try_link "$LINENO"; then :
10497 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'
10500 rm -f core conftest.err conftest.$ac_objext \
10501 conftest$ac_exeext conftest.$ac_ext
10502 LDFLAGS="$save_LDFLAGS"
10503 else
10504 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'
10505 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'
10507 archive_cmds_need_lc='no'
10508 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10509 hardcode_libdir_separator=:
10510 inherit_rpath=yes
10511 link_all_deplibs=yes
10514 netbsd*)
10515 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10516 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10517 else
10518 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10520 hardcode_libdir_flag_spec='-R$libdir'
10521 hardcode_direct=yes
10522 hardcode_shlibpath_var=no
10525 newsos6)
10526 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10527 hardcode_direct=yes
10528 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10529 hardcode_libdir_separator=:
10530 hardcode_shlibpath_var=no
10533 *nto* | *qnx*)
10536 openbsd*)
10537 if test -f /usr/libexec/ld.so; then
10538 hardcode_direct=yes
10539 hardcode_shlibpath_var=no
10540 hardcode_direct_absolute=yes
10541 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10542 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10543 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10544 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10545 export_dynamic_flag_spec='${wl}-E'
10546 else
10547 case $host_os in
10548 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10549 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10550 hardcode_libdir_flag_spec='-R$libdir'
10553 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10554 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10556 esac
10558 else
10559 ld_shlibs=no
10563 os2*)
10564 hardcode_libdir_flag_spec='-L$libdir'
10565 hardcode_minus_L=yes
10566 allow_undefined_flag=unsupported
10567 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'
10568 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10571 osf3*)
10572 if test "$GCC" = yes; then
10573 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10574 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'
10575 else
10576 allow_undefined_flag=' -expect_unresolved \*'
10577 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'
10579 archive_cmds_need_lc='no'
10580 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10581 hardcode_libdir_separator=:
10584 osf4* | osf5*) # as osf3* with the addition of -msym flag
10585 if test "$GCC" = yes; then
10586 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10587 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'
10588 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10589 else
10590 allow_undefined_flag=' -expect_unresolved \*'
10591 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'
10592 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~
10593 $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'
10595 # Both c and cxx compiler support -rpath directly
10596 hardcode_libdir_flag_spec='-rpath $libdir'
10598 archive_cmds_need_lc='no'
10599 hardcode_libdir_separator=:
10602 solaris*)
10603 no_undefined_flag=' -z defs'
10604 if test "$GCC" = yes; then
10605 wlarc='${wl}'
10606 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10607 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10608 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10609 else
10610 case `$CC -V 2>&1` in
10611 *"Compilers 5.0"*)
10612 wlarc=''
10613 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10614 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10615 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10618 wlarc='${wl}'
10619 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10620 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10621 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10623 esac
10625 hardcode_libdir_flag_spec='-R$libdir'
10626 hardcode_shlibpath_var=no
10627 case $host_os in
10628 solaris2.[0-5] | solaris2.[0-5].*) ;;
10630 # The compiler driver will combine and reorder linker options,
10631 # but understands `-z linker_flag'. GCC discards it without `$wl',
10632 # but is careful enough not to reorder.
10633 # Supported since Solaris 2.6 (maybe 2.5.1?)
10634 if test "$GCC" = yes; then
10635 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10636 else
10637 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10640 esac
10641 link_all_deplibs=yes
10644 sunos4*)
10645 if test "x$host_vendor" = xsequent; then
10646 # Use $CC to link under sequent, because it throws in some extra .o
10647 # files that make .init and .fini sections work.
10648 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10649 else
10650 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10652 hardcode_libdir_flag_spec='-L$libdir'
10653 hardcode_direct=yes
10654 hardcode_minus_L=yes
10655 hardcode_shlibpath_var=no
10658 sysv4)
10659 case $host_vendor in
10660 sni)
10661 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10662 hardcode_direct=yes # is this really true???
10664 siemens)
10665 ## LD is ld it makes a PLAMLIB
10666 ## CC just makes a GrossModule.
10667 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10668 reload_cmds='$CC -r -o $output$reload_objs'
10669 hardcode_direct=no
10671 motorola)
10672 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10673 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10675 esac
10676 runpath_var='LD_RUN_PATH'
10677 hardcode_shlibpath_var=no
10680 sysv4.3*)
10681 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10682 hardcode_shlibpath_var=no
10683 export_dynamic_flag_spec='-Bexport'
10686 sysv4*MP*)
10687 if test -d /usr/nec; then
10688 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10689 hardcode_shlibpath_var=no
10690 runpath_var=LD_RUN_PATH
10691 hardcode_runpath_var=yes
10692 ld_shlibs=yes
10696 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10697 no_undefined_flag='${wl}-z,text'
10698 archive_cmds_need_lc=no
10699 hardcode_shlibpath_var=no
10700 runpath_var='LD_RUN_PATH'
10702 if test "$GCC" = yes; then
10703 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10704 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10705 else
10706 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10707 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10711 sysv5* | sco3.2v5* | sco5v6*)
10712 # Note: We can NOT use -z defs as we might desire, because we do not
10713 # link with -lc, and that would cause any symbols used from libc to
10714 # always be unresolved, which means just about no library would
10715 # ever link correctly. If we're not using GNU ld we use -z text
10716 # though, which does catch some bad symbols but isn't as heavy-handed
10717 # as -z defs.
10718 no_undefined_flag='${wl}-z,text'
10719 allow_undefined_flag='${wl}-z,nodefs'
10720 archive_cmds_need_lc=no
10721 hardcode_shlibpath_var=no
10722 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10723 hardcode_libdir_separator=':'
10724 link_all_deplibs=yes
10725 export_dynamic_flag_spec='${wl}-Bexport'
10726 runpath_var='LD_RUN_PATH'
10728 if test "$GCC" = yes; then
10729 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10730 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10731 else
10732 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10733 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10737 uts4*)
10738 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10739 hardcode_libdir_flag_spec='-L$libdir'
10740 hardcode_shlibpath_var=no
10744 ld_shlibs=no
10746 esac
10748 if test x$host_vendor = xsni; then
10749 case $host in
10750 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10751 export_dynamic_flag_spec='${wl}-Blargedynsym'
10753 esac
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10758 $as_echo "$ld_shlibs" >&6; }
10759 test "$ld_shlibs" = no && can_build_shared=no
10761 with_gnu_ld=$with_gnu_ld
10778 # Do we need to explicitly link libc?
10780 case "x$archive_cmds_need_lc" in
10781 x|xyes)
10782 # Assume -lc should be added
10783 archive_cmds_need_lc=yes
10785 if test "$enable_shared" = yes && test "$GCC" = yes; then
10786 case $archive_cmds in
10787 *'~'*)
10788 # FIXME: we may have to deal with multi-command sequences.
10790 '$CC '*)
10791 # Test whether the compiler implicitly links with -lc since on some
10792 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10793 # to ld, don't add -lc before -lgcc.
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10795 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10796 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
10797 $as_echo_n "(cached) " >&6
10798 else
10799 $RM conftest*
10800 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10802 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10803 (eval $ac_compile) 2>&5
10804 ac_status=$?
10805 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10806 test $ac_status = 0; } 2>conftest.err; then
10807 soname=conftest
10808 lib=conftest
10809 libobjs=conftest.$ac_objext
10810 deplibs=
10811 wl=$lt_prog_compiler_wl
10812 pic_flag=$lt_prog_compiler_pic
10813 compiler_flags=-v
10814 linker_flags=-v
10815 verstring=
10816 output_objdir=.
10817 libname=conftest
10818 lt_save_allow_undefined_flag=$allow_undefined_flag
10819 allow_undefined_flag=
10820 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10821 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10822 ac_status=$?
10823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10824 test $ac_status = 0; }
10825 then
10826 lt_cv_archive_cmds_need_lc=no
10827 else
10828 lt_cv_archive_cmds_need_lc=yes
10830 allow_undefined_flag=$lt_save_allow_undefined_flag
10831 else
10832 cat conftest.err 1>&5
10834 $RM conftest*
10837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10838 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10839 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10841 esac
10844 esac
11002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11003 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11005 if test "$GCC" = yes; then
11006 case $host_os in
11007 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11008 *) lt_awk_arg="/^libraries:/" ;;
11009 esac
11010 case $host_os in
11011 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11012 *) lt_sed_strip_eq="s,=/,/,g" ;;
11013 esac
11014 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11015 case $lt_search_path_spec in
11016 *\;*)
11017 # if the path contains ";" then we assume it to be the separator
11018 # otherwise default to the standard path separator (i.e. ":") - it is
11019 # assumed that no part of a normal pathname contains ";" but that should
11020 # okay in the real world where ";" in dirpaths is itself problematic.
11021 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11024 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11026 esac
11027 # Ok, now we have the path, separated by spaces, we can step through it
11028 # and add multilib dir if necessary.
11029 lt_tmp_lt_search_path_spec=
11030 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11031 for lt_sys_path in $lt_search_path_spec; do
11032 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11033 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11034 else
11035 test -d "$lt_sys_path" && \
11036 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11038 done
11039 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11040 BEGIN {RS=" "; FS="/|\n";} {
11041 lt_foo="";
11042 lt_count=0;
11043 for (lt_i = NF; lt_i > 0; lt_i--) {
11044 if ($lt_i != "" && $lt_i != ".") {
11045 if ($lt_i == "..") {
11046 lt_count++;
11047 } else {
11048 if (lt_count == 0) {
11049 lt_foo="/" $lt_i lt_foo;
11050 } else {
11051 lt_count--;
11056 if (lt_foo != "") { lt_freq[lt_foo]++; }
11057 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11059 # AWK program above erroneously prepends '/' to C:/dos/paths
11060 # for these hosts.
11061 case $host_os in
11062 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11063 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11064 esac
11065 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11066 else
11067 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11069 library_names_spec=
11070 libname_spec='lib$name'
11071 soname_spec=
11072 shrext_cmds=".so"
11073 postinstall_cmds=
11074 postuninstall_cmds=
11075 finish_cmds=
11076 finish_eval=
11077 shlibpath_var=
11078 shlibpath_overrides_runpath=unknown
11079 version_type=none
11080 dynamic_linker="$host_os ld.so"
11081 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11082 need_lib_prefix=unknown
11083 hardcode_into_libs=no
11085 # when you set need_version to no, make sure it does not cause -set_version
11086 # flags to be left without arguments
11087 need_version=unknown
11089 case $host_os in
11090 aix3*)
11091 version_type=linux
11092 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11093 shlibpath_var=LIBPATH
11095 # AIX 3 has no versioning support, so we append a major version to the name.
11096 soname_spec='${libname}${release}${shared_ext}$major'
11099 aix[4-9]*)
11100 version_type=linux
11101 need_lib_prefix=no
11102 need_version=no
11103 hardcode_into_libs=yes
11104 if test "$host_cpu" = ia64; then
11105 # AIX 5 supports IA64
11106 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11107 shlibpath_var=LD_LIBRARY_PATH
11108 else
11109 # With GCC up to 2.95.x, collect2 would create an import file
11110 # for dependence libraries. The import file would start with
11111 # the line `#! .'. This would cause the generated library to
11112 # depend on `.', always an invalid library. This was fixed in
11113 # development snapshots of GCC prior to 3.0.
11114 case $host_os in
11115 aix4 | aix4.[01] | aix4.[01].*)
11116 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11117 echo ' yes '
11118 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11120 else
11121 can_build_shared=no
11124 esac
11125 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11126 # soname into executable. Probably we can add versioning support to
11127 # collect2, so additional links can be useful in future.
11128 if test "$aix_use_runtimelinking" = yes; then
11129 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11130 # instead of lib<name>.a to let people know that these are not
11131 # typical AIX shared libraries.
11132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11133 else
11134 # We preserve .a as extension for shared libraries through AIX4.2
11135 # and later when we are not doing run time linking.
11136 library_names_spec='${libname}${release}.a $libname.a'
11137 soname_spec='${libname}${release}${shared_ext}$major'
11139 shlibpath_var=LIBPATH
11143 amigaos*)
11144 case $host_cpu in
11145 powerpc)
11146 # Since July 2007 AmigaOS4 officially supports .so libraries.
11147 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11150 m68k)
11151 library_names_spec='$libname.ixlibrary $libname.a'
11152 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11153 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'
11155 esac
11158 beos*)
11159 library_names_spec='${libname}${shared_ext}'
11160 dynamic_linker="$host_os ld.so"
11161 shlibpath_var=LIBRARY_PATH
11164 bsdi[45]*)
11165 version_type=linux
11166 need_version=no
11167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11168 soname_spec='${libname}${release}${shared_ext}$major'
11169 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11170 shlibpath_var=LD_LIBRARY_PATH
11171 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11172 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11173 # the default ld.so.conf also contains /usr/contrib/lib and
11174 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11175 # libtool to hard-code these into programs
11178 cygwin* | mingw* | pw32* | cegcc*)
11179 version_type=windows
11180 shrext_cmds=".dll"
11181 need_version=no
11182 need_lib_prefix=no
11184 case $GCC,$host_os in
11185 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11186 library_names_spec='$libname.dll.a'
11187 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11188 postinstall_cmds='base_file=`basename \${file}`~
11189 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11190 dldir=$destdir/`dirname \$dlpath`~
11191 test -d \$dldir || mkdir -p \$dldir~
11192 $install_prog $dir/$dlname \$dldir/$dlname~
11193 chmod a+x \$dldir/$dlname~
11194 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11195 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11197 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11198 dlpath=$dir/\$dldll~
11199 $RM \$dlpath'
11200 shlibpath_overrides_runpath=yes
11202 case $host_os in
11203 cygwin*)
11204 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11205 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11207 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11209 mingw* | cegcc*)
11210 # MinGW DLLs use traditional 'lib' prefix
11211 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11213 pw32*)
11214 # pw32 DLLs use 'pw' prefix rather than 'lib'
11215 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11217 esac
11221 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11223 esac
11224 dynamic_linker='Win32 ld.exe'
11225 # FIXME: first we should search . and the directory the executable is in
11226 shlibpath_var=PATH
11229 darwin* | rhapsody*)
11230 dynamic_linker="$host_os dyld"
11231 version_type=darwin
11232 need_lib_prefix=no
11233 need_version=no
11234 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11235 soname_spec='${libname}${release}${major}$shared_ext'
11236 shlibpath_overrides_runpath=yes
11237 shlibpath_var=DYLD_LIBRARY_PATH
11238 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11240 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11241 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11244 dgux*)
11245 version_type=linux
11246 need_lib_prefix=no
11247 need_version=no
11248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11249 soname_spec='${libname}${release}${shared_ext}$major'
11250 shlibpath_var=LD_LIBRARY_PATH
11253 freebsd* | dragonfly*)
11254 # DragonFly does not have aout. When/if they implement a new
11255 # versioning mechanism, adjust this.
11256 if test -x /usr/bin/objformat; then
11257 objformat=`/usr/bin/objformat`
11258 else
11259 case $host_os in
11260 freebsd[23].*) objformat=aout ;;
11261 *) objformat=elf ;;
11262 esac
11264 version_type=freebsd-$objformat
11265 case $version_type in
11266 freebsd-elf*)
11267 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11268 need_version=no
11269 need_lib_prefix=no
11271 freebsd-*)
11272 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11273 need_version=yes
11275 esac
11276 shlibpath_var=LD_LIBRARY_PATH
11277 case $host_os in
11278 freebsd2.*)
11279 shlibpath_overrides_runpath=yes
11281 freebsd3.[01]* | freebsdelf3.[01]*)
11282 shlibpath_overrides_runpath=yes
11283 hardcode_into_libs=yes
11285 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11286 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11287 shlibpath_overrides_runpath=no
11288 hardcode_into_libs=yes
11290 *) # from 4.6 on, and DragonFly
11291 shlibpath_overrides_runpath=yes
11292 hardcode_into_libs=yes
11294 esac
11297 gnu*)
11298 version_type=linux
11299 need_lib_prefix=no
11300 need_version=no
11301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11302 soname_spec='${libname}${release}${shared_ext}$major'
11303 shlibpath_var=LD_LIBRARY_PATH
11304 hardcode_into_libs=yes
11307 haiku*)
11308 version_type=linux
11309 need_lib_prefix=no
11310 need_version=no
11311 dynamic_linker="$host_os runtime_loader"
11312 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11313 soname_spec='${libname}${release}${shared_ext}$major'
11314 shlibpath_var=LIBRARY_PATH
11315 shlibpath_overrides_runpath=yes
11316 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11317 hardcode_into_libs=yes
11320 hpux9* | hpux10* | hpux11*)
11321 # Give a soname corresponding to the major version so that dld.sl refuses to
11322 # link against other versions.
11323 version_type=sunos
11324 need_lib_prefix=no
11325 need_version=no
11326 case $host_cpu in
11327 ia64*)
11328 shrext_cmds='.so'
11329 hardcode_into_libs=yes
11330 dynamic_linker="$host_os dld.so"
11331 shlibpath_var=LD_LIBRARY_PATH
11332 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11333 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11334 soname_spec='${libname}${release}${shared_ext}$major'
11335 if test "X$HPUX_IA64_MODE" = X32; then
11336 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11337 else
11338 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11340 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11342 hppa*64*)
11343 shrext_cmds='.sl'
11344 hardcode_into_libs=yes
11345 dynamic_linker="$host_os dld.sl"
11346 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11347 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11348 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11349 soname_spec='${libname}${release}${shared_ext}$major'
11350 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11351 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11354 shrext_cmds='.sl'
11355 dynamic_linker="$host_os dld.sl"
11356 shlibpath_var=SHLIB_PATH
11357 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11358 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11359 soname_spec='${libname}${release}${shared_ext}$major'
11361 esac
11362 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11363 postinstall_cmds='chmod 555 $lib'
11364 # or fails outright, so override atomically:
11365 install_override_mode=555
11368 interix[3-9]*)
11369 version_type=linux
11370 need_lib_prefix=no
11371 need_version=no
11372 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11373 soname_spec='${libname}${release}${shared_ext}$major'
11374 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11375 shlibpath_var=LD_LIBRARY_PATH
11376 shlibpath_overrides_runpath=no
11377 hardcode_into_libs=yes
11380 irix5* | irix6* | nonstopux*)
11381 case $host_os in
11382 nonstopux*) version_type=nonstopux ;;
11384 if test "$lt_cv_prog_gnu_ld" = yes; then
11385 version_type=linux
11386 else
11387 version_type=irix
11388 fi ;;
11389 esac
11390 need_lib_prefix=no
11391 need_version=no
11392 soname_spec='${libname}${release}${shared_ext}$major'
11393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11394 case $host_os in
11395 irix5* | nonstopux*)
11396 libsuff= shlibsuff=
11399 case $LD in # libtool.m4 will add one of these switches to LD
11400 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11401 libsuff= shlibsuff= libmagic=32-bit;;
11402 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11403 libsuff=32 shlibsuff=N32 libmagic=N32;;
11404 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11405 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11406 *) libsuff= shlibsuff= libmagic=never-match;;
11407 esac
11409 esac
11410 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11411 shlibpath_overrides_runpath=no
11412 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11413 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11414 hardcode_into_libs=yes
11417 # No shared lib support for Linux oldld, aout, or coff.
11418 linux*oldld* | linux*aout* | linux*coff*)
11419 dynamic_linker=no
11422 # This must be Linux ELF.
11423 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11424 version_type=linux
11425 need_lib_prefix=no
11426 need_version=no
11427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11428 soname_spec='${libname}${release}${shared_ext}$major'
11429 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11430 shlibpath_var=LD_LIBRARY_PATH
11431 shlibpath_overrides_runpath=no
11433 # Some binutils ld are patched to set DT_RUNPATH
11434 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11435 $as_echo_n "(cached) " >&6
11436 else
11437 lt_cv_shlibpath_overrides_runpath=no
11438 save_LDFLAGS=$LDFLAGS
11439 save_libdir=$libdir
11440 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11441 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11442 if test x$gcc_no_link = xyes; then
11443 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11446 /* end confdefs.h. */
11449 main ()
11453 return 0;
11455 _ACEOF
11456 if ac_fn_c_try_link "$LINENO"; then :
11457 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11458 lt_cv_shlibpath_overrides_runpath=yes
11461 rm -f core conftest.err conftest.$ac_objext \
11462 conftest$ac_exeext conftest.$ac_ext
11463 LDFLAGS=$save_LDFLAGS
11464 libdir=$save_libdir
11468 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11470 # This implies no fast_install, which is unacceptable.
11471 # Some rework will be needed to allow for fast_install
11472 # before this can be enabled.
11473 hardcode_into_libs=yes
11475 # Append ld.so.conf contents to the search path
11476 if test -f /etc/ld.so.conf; then
11477 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' ' '`
11478 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11481 # We used to test for /lib/ld.so.1 and disable shared libraries on
11482 # powerpc, because MkLinux only supported shared libraries with the
11483 # GNU dynamic linker. Since this was broken with cross compilers,
11484 # most powerpc-linux boxes support dynamic linking these days and
11485 # people can always --disable-shared, the test was removed, and we
11486 # assume the GNU/Linux dynamic linker is in use.
11487 dynamic_linker='GNU/Linux ld.so'
11490 netbsd*)
11491 version_type=sunos
11492 need_lib_prefix=no
11493 need_version=no
11494 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11496 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11497 dynamic_linker='NetBSD (a.out) ld.so'
11498 else
11499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11500 soname_spec='${libname}${release}${shared_ext}$major'
11501 dynamic_linker='NetBSD ld.elf_so'
11503 shlibpath_var=LD_LIBRARY_PATH
11504 shlibpath_overrides_runpath=yes
11505 hardcode_into_libs=yes
11508 newsos6)
11509 version_type=linux
11510 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11511 shlibpath_var=LD_LIBRARY_PATH
11512 shlibpath_overrides_runpath=yes
11515 *nto* | *qnx*)
11516 version_type=qnx
11517 need_lib_prefix=no
11518 need_version=no
11519 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11520 soname_spec='${libname}${release}${shared_ext}$major'
11521 shlibpath_var=LD_LIBRARY_PATH
11522 shlibpath_overrides_runpath=no
11523 hardcode_into_libs=yes
11524 dynamic_linker='ldqnx.so'
11527 openbsd*)
11528 version_type=sunos
11529 sys_lib_dlsearch_path_spec="/usr/lib"
11530 need_lib_prefix=no
11531 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11532 case $host_os in
11533 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11534 *) need_version=no ;;
11535 esac
11536 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11537 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11538 shlibpath_var=LD_LIBRARY_PATH
11539 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11540 case $host_os in
11541 openbsd2.[89] | openbsd2.[89].*)
11542 shlibpath_overrides_runpath=no
11545 shlibpath_overrides_runpath=yes
11547 esac
11548 else
11549 shlibpath_overrides_runpath=yes
11553 os2*)
11554 libname_spec='$name'
11555 shrext_cmds=".dll"
11556 need_lib_prefix=no
11557 library_names_spec='$libname${shared_ext} $libname.a'
11558 dynamic_linker='OS/2 ld.exe'
11559 shlibpath_var=LIBPATH
11562 osf3* | osf4* | osf5*)
11563 version_type=osf
11564 need_lib_prefix=no
11565 need_version=no
11566 soname_spec='${libname}${release}${shared_ext}$major'
11567 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11568 shlibpath_var=LD_LIBRARY_PATH
11569 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11570 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11573 rdos*)
11574 dynamic_linker=no
11577 solaris*)
11578 version_type=linux
11579 need_lib_prefix=no
11580 need_version=no
11581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11582 soname_spec='${libname}${release}${shared_ext}$major'
11583 shlibpath_var=LD_LIBRARY_PATH
11584 shlibpath_overrides_runpath=yes
11585 hardcode_into_libs=yes
11586 # ldd complains unless libraries are executable
11587 postinstall_cmds='chmod +x $lib'
11590 sunos4*)
11591 version_type=sunos
11592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11593 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11594 shlibpath_var=LD_LIBRARY_PATH
11595 shlibpath_overrides_runpath=yes
11596 if test "$with_gnu_ld" = yes; then
11597 need_lib_prefix=no
11599 need_version=yes
11602 sysv4 | sysv4.3*)
11603 version_type=linux
11604 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11605 soname_spec='${libname}${release}${shared_ext}$major'
11606 shlibpath_var=LD_LIBRARY_PATH
11607 case $host_vendor in
11608 sni)
11609 shlibpath_overrides_runpath=no
11610 need_lib_prefix=no
11611 runpath_var=LD_RUN_PATH
11613 siemens)
11614 need_lib_prefix=no
11616 motorola)
11617 need_lib_prefix=no
11618 need_version=no
11619 shlibpath_overrides_runpath=no
11620 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11622 esac
11625 sysv4*MP*)
11626 if test -d /usr/nec ;then
11627 version_type=linux
11628 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11629 soname_spec='$libname${shared_ext}.$major'
11630 shlibpath_var=LD_LIBRARY_PATH
11634 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11635 version_type=freebsd-elf
11636 need_lib_prefix=no
11637 need_version=no
11638 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11639 soname_spec='${libname}${release}${shared_ext}$major'
11640 shlibpath_var=LD_LIBRARY_PATH
11641 shlibpath_overrides_runpath=yes
11642 hardcode_into_libs=yes
11643 if test "$with_gnu_ld" = yes; then
11644 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11645 else
11646 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11647 case $host_os in
11648 sco3.2v5*)
11649 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11651 esac
11653 sys_lib_dlsearch_path_spec='/usr/lib'
11656 tpf*)
11657 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11658 version_type=linux
11659 need_lib_prefix=no
11660 need_version=no
11661 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11662 shlibpath_var=LD_LIBRARY_PATH
11663 shlibpath_overrides_runpath=no
11664 hardcode_into_libs=yes
11667 uts4*)
11668 version_type=linux
11669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11670 soname_spec='${libname}${release}${shared_ext}$major'
11671 shlibpath_var=LD_LIBRARY_PATH
11675 dynamic_linker=no
11677 esac
11678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11679 $as_echo "$dynamic_linker" >&6; }
11680 test "$dynamic_linker" = no && can_build_shared=no
11682 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11683 if test "$GCC" = yes; then
11684 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11687 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11688 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11690 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11691 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11786 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11787 hardcode_action=
11788 if test -n "$hardcode_libdir_flag_spec" ||
11789 test -n "$runpath_var" ||
11790 test "X$hardcode_automatic" = "Xyes" ; then
11792 # We can hardcode non-existent directories.
11793 if test "$hardcode_direct" != no &&
11794 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11795 # have to relink, otherwise we might link with an installed library
11796 # when we should be linking with a yet-to-be-installed one
11797 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11798 test "$hardcode_minus_L" != no; then
11799 # Linking always hardcodes the temporary library directory.
11800 hardcode_action=relink
11801 else
11802 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11803 hardcode_action=immediate
11805 else
11806 # We cannot hardcode anything, or else we can only hardcode existing
11807 # directories.
11808 hardcode_action=unsupported
11810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11811 $as_echo "$hardcode_action" >&6; }
11813 if test "$hardcode_action" = relink ||
11814 test "$inherit_rpath" = yes; then
11815 # Fast installation is not supported
11816 enable_fast_install=no
11817 elif test "$shlibpath_overrides_runpath" = yes ||
11818 test "$enable_shared" = no; then
11819 # Fast installation is not necessary
11820 enable_fast_install=needless
11828 if test "x$enable_dlopen" != xyes; then
11829 enable_dlopen=unknown
11830 enable_dlopen_self=unknown
11831 enable_dlopen_self_static=unknown
11832 else
11833 lt_cv_dlopen=no
11834 lt_cv_dlopen_libs=
11836 case $host_os in
11837 beos*)
11838 lt_cv_dlopen="load_add_on"
11839 lt_cv_dlopen_libs=
11840 lt_cv_dlopen_self=yes
11843 mingw* | pw32* | cegcc*)
11844 lt_cv_dlopen="LoadLibrary"
11845 lt_cv_dlopen_libs=
11848 cygwin*)
11849 lt_cv_dlopen="dlopen"
11850 lt_cv_dlopen_libs=
11853 darwin*)
11854 # if libdl is installed we need to link against it
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11856 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11857 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11858 $as_echo_n "(cached) " >&6
11859 else
11860 ac_check_lib_save_LIBS=$LIBS
11861 LIBS="-ldl $LIBS"
11862 if test x$gcc_no_link = xyes; then
11863 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11866 /* end confdefs.h. */
11868 /* Override any GCC internal prototype to avoid an error.
11869 Use char because int might match the return type of a GCC
11870 builtin and then its argument prototype would still apply. */
11871 #ifdef __cplusplus
11872 extern "C"
11873 #endif
11874 char dlopen ();
11876 main ()
11878 return dlopen ();
11880 return 0;
11882 _ACEOF
11883 if ac_fn_c_try_link "$LINENO"; then :
11884 ac_cv_lib_dl_dlopen=yes
11885 else
11886 ac_cv_lib_dl_dlopen=no
11888 rm -f core conftest.err conftest.$ac_objext \
11889 conftest$ac_exeext conftest.$ac_ext
11890 LIBS=$ac_check_lib_save_LIBS
11892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11893 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11894 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11895 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11896 else
11898 lt_cv_dlopen="dyld"
11899 lt_cv_dlopen_libs=
11900 lt_cv_dlopen_self=yes
11907 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11908 if test "x$ac_cv_func_shl_load" = x""yes; then :
11909 lt_cv_dlopen="shl_load"
11910 else
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11912 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11913 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
11914 $as_echo_n "(cached) " >&6
11915 else
11916 ac_check_lib_save_LIBS=$LIBS
11917 LIBS="-ldld $LIBS"
11918 if test x$gcc_no_link = xyes; then
11919 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11922 /* end confdefs.h. */
11924 /* Override any GCC internal prototype to avoid an error.
11925 Use char because int might match the return type of a GCC
11926 builtin and then its argument prototype would still apply. */
11927 #ifdef __cplusplus
11928 extern "C"
11929 #endif
11930 char shl_load ();
11932 main ()
11934 return shl_load ();
11936 return 0;
11938 _ACEOF
11939 if ac_fn_c_try_link "$LINENO"; then :
11940 ac_cv_lib_dld_shl_load=yes
11941 else
11942 ac_cv_lib_dld_shl_load=no
11944 rm -f core conftest.err conftest.$ac_objext \
11945 conftest$ac_exeext conftest.$ac_ext
11946 LIBS=$ac_check_lib_save_LIBS
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11949 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11950 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
11951 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11952 else
11953 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11954 if test "x$ac_cv_func_dlopen" = x""yes; then :
11955 lt_cv_dlopen="dlopen"
11956 else
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11958 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11959 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
11960 $as_echo_n "(cached) " >&6
11961 else
11962 ac_check_lib_save_LIBS=$LIBS
11963 LIBS="-ldl $LIBS"
11964 if test x$gcc_no_link = xyes; then
11965 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11968 /* end confdefs.h. */
11970 /* Override any GCC internal prototype to avoid an error.
11971 Use char because int might match the return type of a GCC
11972 builtin and then its argument prototype would still apply. */
11973 #ifdef __cplusplus
11974 extern "C"
11975 #endif
11976 char dlopen ();
11978 main ()
11980 return dlopen ();
11982 return 0;
11984 _ACEOF
11985 if ac_fn_c_try_link "$LINENO"; then :
11986 ac_cv_lib_dl_dlopen=yes
11987 else
11988 ac_cv_lib_dl_dlopen=no
11990 rm -f core conftest.err conftest.$ac_objext \
11991 conftest$ac_exeext conftest.$ac_ext
11992 LIBS=$ac_check_lib_save_LIBS
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11995 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11996 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
11997 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11998 else
11999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12000 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12001 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12002 $as_echo_n "(cached) " >&6
12003 else
12004 ac_check_lib_save_LIBS=$LIBS
12005 LIBS="-lsvld $LIBS"
12006 if test x$gcc_no_link = xyes; then
12007 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12010 /* end confdefs.h. */
12012 /* Override any GCC internal prototype to avoid an error.
12013 Use char because int might match the return type of a GCC
12014 builtin and then its argument prototype would still apply. */
12015 #ifdef __cplusplus
12016 extern "C"
12017 #endif
12018 char dlopen ();
12020 main ()
12022 return dlopen ();
12024 return 0;
12026 _ACEOF
12027 if ac_fn_c_try_link "$LINENO"; then :
12028 ac_cv_lib_svld_dlopen=yes
12029 else
12030 ac_cv_lib_svld_dlopen=no
12032 rm -f core conftest.err conftest.$ac_objext \
12033 conftest$ac_exeext conftest.$ac_ext
12034 LIBS=$ac_check_lib_save_LIBS
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12037 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12038 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12039 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12040 else
12041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12042 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12043 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12044 $as_echo_n "(cached) " >&6
12045 else
12046 ac_check_lib_save_LIBS=$LIBS
12047 LIBS="-ldld $LIBS"
12048 if test x$gcc_no_link = xyes; then
12049 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12051 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12052 /* end confdefs.h. */
12054 /* Override any GCC internal prototype to avoid an error.
12055 Use char because int might match the return type of a GCC
12056 builtin and then its argument prototype would still apply. */
12057 #ifdef __cplusplus
12058 extern "C"
12059 #endif
12060 char dld_link ();
12062 main ()
12064 return dld_link ();
12066 return 0;
12068 _ACEOF
12069 if ac_fn_c_try_link "$LINENO"; then :
12070 ac_cv_lib_dld_dld_link=yes
12071 else
12072 ac_cv_lib_dld_dld_link=no
12074 rm -f core conftest.err conftest.$ac_objext \
12075 conftest$ac_exeext conftest.$ac_ext
12076 LIBS=$ac_check_lib_save_LIBS
12078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12079 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12080 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12081 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12100 esac
12102 if test "x$lt_cv_dlopen" != xno; then
12103 enable_dlopen=yes
12104 else
12105 enable_dlopen=no
12108 case $lt_cv_dlopen in
12109 dlopen)
12110 save_CPPFLAGS="$CPPFLAGS"
12111 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12113 save_LDFLAGS="$LDFLAGS"
12114 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12116 save_LIBS="$LIBS"
12117 LIBS="$lt_cv_dlopen_libs $LIBS"
12119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12120 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12121 if test "${lt_cv_dlopen_self+set}" = set; then :
12122 $as_echo_n "(cached) " >&6
12123 else
12124 if test "$cross_compiling" = yes; then :
12125 lt_cv_dlopen_self=cross
12126 else
12127 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12128 lt_status=$lt_dlunknown
12129 cat > conftest.$ac_ext <<_LT_EOF
12130 #line 12130 "configure"
12131 #include "confdefs.h"
12133 #if HAVE_DLFCN_H
12134 #include <dlfcn.h>
12135 #endif
12137 #include <stdio.h>
12139 #ifdef RTLD_GLOBAL
12140 # define LT_DLGLOBAL RTLD_GLOBAL
12141 #else
12142 # ifdef DL_GLOBAL
12143 # define LT_DLGLOBAL DL_GLOBAL
12144 # else
12145 # define LT_DLGLOBAL 0
12146 # endif
12147 #endif
12149 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12150 find out it does not work in some platform. */
12151 #ifndef LT_DLLAZY_OR_NOW
12152 # ifdef RTLD_LAZY
12153 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12154 # else
12155 # ifdef DL_LAZY
12156 # define LT_DLLAZY_OR_NOW DL_LAZY
12157 # else
12158 # ifdef RTLD_NOW
12159 # define LT_DLLAZY_OR_NOW RTLD_NOW
12160 # else
12161 # ifdef DL_NOW
12162 # define LT_DLLAZY_OR_NOW DL_NOW
12163 # else
12164 # define LT_DLLAZY_OR_NOW 0
12165 # endif
12166 # endif
12167 # endif
12168 # endif
12169 #endif
12171 /* When -fvisbility=hidden is used, assume the code has been annotated
12172 correspondingly for the symbols needed. */
12173 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12174 void fnord () __attribute__((visibility("default")));
12175 #endif
12177 void fnord () { int i=42; }
12178 int main ()
12180 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12181 int status = $lt_dlunknown;
12183 if (self)
12185 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12186 else
12188 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12189 else puts (dlerror ());
12191 /* dlclose (self); */
12193 else
12194 puts (dlerror ());
12196 return status;
12198 _LT_EOF
12199 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12200 (eval $ac_link) 2>&5
12201 ac_status=$?
12202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12203 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12204 (./conftest; exit; ) >&5 2>/dev/null
12205 lt_status=$?
12206 case x$lt_status in
12207 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12208 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12209 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12210 esac
12211 else :
12212 # compilation failed
12213 lt_cv_dlopen_self=no
12216 rm -fr conftest*
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12221 $as_echo "$lt_cv_dlopen_self" >&6; }
12223 if test "x$lt_cv_dlopen_self" = xyes; then
12224 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12226 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12227 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12228 $as_echo_n "(cached) " >&6
12229 else
12230 if test "$cross_compiling" = yes; then :
12231 lt_cv_dlopen_self_static=cross
12232 else
12233 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12234 lt_status=$lt_dlunknown
12235 cat > conftest.$ac_ext <<_LT_EOF
12236 #line 12236 "configure"
12237 #include "confdefs.h"
12239 #if HAVE_DLFCN_H
12240 #include <dlfcn.h>
12241 #endif
12243 #include <stdio.h>
12245 #ifdef RTLD_GLOBAL
12246 # define LT_DLGLOBAL RTLD_GLOBAL
12247 #else
12248 # ifdef DL_GLOBAL
12249 # define LT_DLGLOBAL DL_GLOBAL
12250 # else
12251 # define LT_DLGLOBAL 0
12252 # endif
12253 #endif
12255 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12256 find out it does not work in some platform. */
12257 #ifndef LT_DLLAZY_OR_NOW
12258 # ifdef RTLD_LAZY
12259 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12260 # else
12261 # ifdef DL_LAZY
12262 # define LT_DLLAZY_OR_NOW DL_LAZY
12263 # else
12264 # ifdef RTLD_NOW
12265 # define LT_DLLAZY_OR_NOW RTLD_NOW
12266 # else
12267 # ifdef DL_NOW
12268 # define LT_DLLAZY_OR_NOW DL_NOW
12269 # else
12270 # define LT_DLLAZY_OR_NOW 0
12271 # endif
12272 # endif
12273 # endif
12274 # endif
12275 #endif
12277 /* When -fvisbility=hidden is used, assume the code has been annotated
12278 correspondingly for the symbols needed. */
12279 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12280 void fnord () __attribute__((visibility("default")));
12281 #endif
12283 void fnord () { int i=42; }
12284 int main ()
12286 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12287 int status = $lt_dlunknown;
12289 if (self)
12291 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12292 else
12294 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12295 else puts (dlerror ());
12297 /* dlclose (self); */
12299 else
12300 puts (dlerror ());
12302 return status;
12304 _LT_EOF
12305 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12306 (eval $ac_link) 2>&5
12307 ac_status=$?
12308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12309 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12310 (./conftest; exit; ) >&5 2>/dev/null
12311 lt_status=$?
12312 case x$lt_status in
12313 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12314 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12315 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12316 esac
12317 else :
12318 # compilation failed
12319 lt_cv_dlopen_self_static=no
12322 rm -fr conftest*
12326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12327 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12330 CPPFLAGS="$save_CPPFLAGS"
12331 LDFLAGS="$save_LDFLAGS"
12332 LIBS="$save_LIBS"
12334 esac
12336 case $lt_cv_dlopen_self in
12337 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12338 *) enable_dlopen_self=unknown ;;
12339 esac
12341 case $lt_cv_dlopen_self_static in
12342 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12343 *) enable_dlopen_self_static=unknown ;;
12344 esac
12363 striplib=
12364 old_striplib=
12365 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12366 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12367 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12368 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12369 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12371 $as_echo "yes" >&6; }
12372 else
12373 # FIXME - insert some real tests, host_os isn't really good enough
12374 case $host_os in
12375 darwin*)
12376 if test -n "$STRIP" ; then
12377 striplib="$STRIP -x"
12378 old_striplib="$STRIP -S"
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12380 $as_echo "yes" >&6; }
12381 else
12382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12383 $as_echo "no" >&6; }
12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12388 $as_echo "no" >&6; }
12390 esac
12404 # Report which library types will actually be built
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12406 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12408 $as_echo "$can_build_shared" >&6; }
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12411 $as_echo_n "checking whether to build shared libraries... " >&6; }
12412 test "$can_build_shared" = "no" && enable_shared=no
12414 # On AIX, shared libraries and static libraries use the same namespace, and
12415 # are all built from PIC.
12416 case $host_os in
12417 aix3*)
12418 test "$enable_shared" = yes && enable_static=no
12419 if test -n "$RANLIB"; then
12420 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12421 postinstall_cmds='$RANLIB $lib'
12425 aix[4-9]*)
12426 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12427 test "$enable_shared" = yes && enable_static=no
12430 esac
12431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12432 $as_echo "$enable_shared" >&6; }
12434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12435 $as_echo_n "checking whether to build static libraries... " >&6; }
12436 # Make sure either enable_shared or enable_static is yes.
12437 test "$enable_shared" = yes || enable_static=yes
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12439 $as_echo "$enable_static" >&6; }
12445 ac_ext=c
12446 ac_cpp='$CPP $CPPFLAGS'
12447 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12448 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12449 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12451 CC="$lt_save_CC"
12465 ac_config_commands="$ac_config_commands libtool"
12470 # Only expand once:
12476 case $host in
12477 *-cygwin* | *-mingw*)
12478 # 'host' will be top-level target in the case of a target lib,
12479 # we must compare to with_cross_host to decide if this is a native
12480 # or cross-compiler and select where to install dlls appropriately.
12481 if test -n "$with_cross_host" &&
12482 test x"$with_cross_host" != x"no"; then
12483 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
12484 else
12485 lt_host_flags='-no-undefined -bindir "$(bindir)"';
12489 lt_host_flags=
12491 esac
12497 #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
12499 # We need gfortran to compile parts of the library
12500 #AC_PROG_FC(gfortran)
12501 FC="$GFORTRAN"
12502 ac_ext=${ac_fc_srcext-f}
12503 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
12504 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
12505 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12506 if test -n "$ac_tool_prefix"; then
12507 for ac_prog in gfortran
12509 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12510 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12512 $as_echo_n "checking for $ac_word... " >&6; }
12513 if test "${ac_cv_prog_FC+set}" = set; then :
12514 $as_echo_n "(cached) " >&6
12515 else
12516 if test -n "$FC"; then
12517 ac_cv_prog_FC="$FC" # Let the user override the test.
12518 else
12519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12520 for as_dir in $PATH
12522 IFS=$as_save_IFS
12523 test -z "$as_dir" && as_dir=.
12524 for ac_exec_ext in '' $ac_executable_extensions; do
12525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12526 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
12527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12528 break 2
12530 done
12531 done
12532 IFS=$as_save_IFS
12536 FC=$ac_cv_prog_FC
12537 if test -n "$FC"; then
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
12539 $as_echo "$FC" >&6; }
12540 else
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12542 $as_echo "no" >&6; }
12546 test -n "$FC" && break
12547 done
12549 if test -z "$FC"; then
12550 ac_ct_FC=$FC
12551 for ac_prog in gfortran
12553 # Extract the first word of "$ac_prog", so it can be a program name with args.
12554 set dummy $ac_prog; ac_word=$2
12555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12556 $as_echo_n "checking for $ac_word... " >&6; }
12557 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
12558 $as_echo_n "(cached) " >&6
12559 else
12560 if test -n "$ac_ct_FC"; then
12561 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
12562 else
12563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12564 for as_dir in $PATH
12566 IFS=$as_save_IFS
12567 test -z "$as_dir" && as_dir=.
12568 for ac_exec_ext in '' $ac_executable_extensions; do
12569 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12570 ac_cv_prog_ac_ct_FC="$ac_prog"
12571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12572 break 2
12574 done
12575 done
12576 IFS=$as_save_IFS
12580 ac_ct_FC=$ac_cv_prog_ac_ct_FC
12581 if test -n "$ac_ct_FC"; then
12582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
12583 $as_echo "$ac_ct_FC" >&6; }
12584 else
12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12586 $as_echo "no" >&6; }
12590 test -n "$ac_ct_FC" && break
12591 done
12593 if test "x$ac_ct_FC" = x; then
12594 FC=""
12595 else
12596 case $cross_compiling:$ac_tool_warned in
12597 yes:)
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12599 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12600 ac_tool_warned=yes ;;
12601 esac
12602 FC=$ac_ct_FC
12607 # Provide some information about the compiler.
12608 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
12609 set X $ac_compile
12610 ac_compiler=$2
12611 for ac_option in --version -v -V -qversion; do
12612 { { ac_try="$ac_compiler $ac_option >&5"
12613 case "(($ac_try" in
12614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12615 *) ac_try_echo=$ac_try;;
12616 esac
12617 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12618 $as_echo "$ac_try_echo"; } >&5
12619 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12620 ac_status=$?
12621 if test -s conftest.err; then
12622 sed '10a\
12623 ... rest of stderr output deleted ...
12624 10q' conftest.err >conftest.er1
12625 cat conftest.er1 >&5
12626 rm -f conftest.er1 conftest.err
12628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12629 test $ac_status = 0; }
12630 done
12631 rm -f a.out
12633 # If we don't use `.F' as extension, the preprocessor is not run on the
12634 # input file. (Note that this only needs to work for GNU compilers.)
12635 ac_save_ext=$ac_ext
12636 ac_ext=F
12637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
12638 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
12639 if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
12640 $as_echo_n "(cached) " >&6
12641 else
12642 cat > conftest.$ac_ext <<_ACEOF
12643 program main
12644 #ifndef __GNUC__
12645 choke me
12646 #endif
12649 _ACEOF
12650 if ac_fn_fc_try_compile "$LINENO"; then :
12651 ac_compiler_gnu=yes
12652 else
12653 ac_compiler_gnu=no
12655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12656 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
12660 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
12661 ac_ext=$ac_save_ext
12662 ac_test_FCFLAGS=${FCFLAGS+set}
12663 ac_save_FCFLAGS=$FCFLAGS
12664 FCFLAGS=
12665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
12666 $as_echo_n "checking whether $FC accepts -g... " >&6; }
12667 if test "${ac_cv_prog_fc_g+set}" = set; then :
12668 $as_echo_n "(cached) " >&6
12669 else
12670 FCFLAGS=-g
12671 cat > conftest.$ac_ext <<_ACEOF
12672 program main
12675 _ACEOF
12676 if ac_fn_fc_try_compile "$LINENO"; then :
12677 ac_cv_prog_fc_g=yes
12678 else
12679 ac_cv_prog_fc_g=no
12681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
12685 $as_echo "$ac_cv_prog_fc_g" >&6; }
12686 if test "$ac_test_FCFLAGS" = set; then
12687 FCFLAGS=$ac_save_FCFLAGS
12688 elif test $ac_cv_prog_fc_g = yes; then
12689 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12690 FCFLAGS="-g -O2"
12691 else
12692 FCFLAGS="-g"
12694 else
12695 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12696 FCFLAGS="-O2"
12697 else
12698 FCFLAGS=
12702 ac_ext=c
12703 ac_cpp='$CPP $CPPFLAGS'
12704 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12705 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12706 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12708 ac_ext=${ac_fc_srcext-f}
12709 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
12710 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
12711 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12714 if test -z "$FC" || test "X$FC" = "Xno"; then
12715 _lt_disable_FC=yes
12718 archive_cmds_need_lc_FC=no
12719 allow_undefined_flag_FC=
12720 always_export_symbols_FC=no
12721 archive_expsym_cmds_FC=
12722 export_dynamic_flag_spec_FC=
12723 hardcode_direct_FC=no
12724 hardcode_direct_absolute_FC=no
12725 hardcode_libdir_flag_spec_FC=
12726 hardcode_libdir_flag_spec_ld_FC=
12727 hardcode_libdir_separator_FC=
12728 hardcode_minus_L_FC=no
12729 hardcode_automatic_FC=no
12730 inherit_rpath_FC=no
12731 module_cmds_FC=
12732 module_expsym_cmds_FC=
12733 link_all_deplibs_FC=unknown
12734 old_archive_cmds_FC=$old_archive_cmds
12735 reload_flag_FC=$reload_flag
12736 reload_cmds_FC=$reload_cmds
12737 no_undefined_flag_FC=
12738 whole_archive_flag_spec_FC=
12739 enable_shared_with_static_runtimes_FC=no
12741 # Source file extension for fc test sources.
12742 ac_ext=${ac_fc_srcext-f}
12744 # Object file extension for compiled fc test sources.
12745 objext=o
12746 objext_FC=$objext
12748 # No sense in running all these tests if we already determined that
12749 # the FC compiler isn't working. Some variables (like enable_shared)
12750 # are currently assumed to apply to all compilers on this platform,
12751 # and will be corrupted by setting them based on a non-working compiler.
12752 if test "$_lt_disable_FC" != yes; then
12753 # Code to be used in simple compile tests
12754 lt_simple_compile_test_code="\
12755 subroutine t
12756 return
12760 # Code to be used in simple link tests
12761 lt_simple_link_test_code="\
12762 program t
12766 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12773 # If no C compiler was specified, use CC.
12774 LTCC=${LTCC-"$CC"}
12776 # If no C compiler flags were specified, use CFLAGS.
12777 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12779 # Allow CC to be a program name with arguments.
12780 compiler=$CC
12783 # save warnings/boilerplate of simple test code
12784 ac_outfile=conftest.$ac_objext
12785 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12786 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12787 _lt_compiler_boilerplate=`cat conftest.err`
12788 $RM conftest*
12790 ac_outfile=conftest.$ac_objext
12791 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12792 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12793 _lt_linker_boilerplate=`cat conftest.err`
12794 $RM -r conftest*
12797 # Allow CC to be a program name with arguments.
12798 lt_save_CC="$CC"
12799 lt_save_GCC=$GCC
12800 CC=${FC-"f95"}
12801 compiler=$CC
12802 GCC=$ac_cv_fc_compiler_gnu
12804 compiler_FC=$CC
12805 for cc_temp in $compiler""; do
12806 case $cc_temp in
12807 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
12808 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
12809 \-*) ;;
12810 *) break;;
12811 esac
12812 done
12813 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
12816 if test -n "$compiler"; then
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12818 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12820 $as_echo "$can_build_shared" >&6; }
12822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12823 $as_echo_n "checking whether to build shared libraries... " >&6; }
12824 test "$can_build_shared" = "no" && enable_shared=no
12826 # On AIX, shared libraries and static libraries use the same namespace, and
12827 # are all built from PIC.
12828 case $host_os in
12829 aix3*)
12830 test "$enable_shared" = yes && enable_static=no
12831 if test -n "$RANLIB"; then
12832 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12833 postinstall_cmds='$RANLIB $lib'
12836 aix[4-9]*)
12837 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12838 test "$enable_shared" = yes && enable_static=no
12841 esac
12842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12843 $as_echo "$enable_shared" >&6; }
12845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12846 $as_echo_n "checking whether to build static libraries... " >&6; }
12847 # Make sure either enable_shared or enable_static is yes.
12848 test "$enable_shared" = yes || enable_static=yes
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12850 $as_echo "$enable_static" >&6; }
12852 GCC_FC="$ac_cv_fc_compiler_gnu"
12853 LD_FC="$LD"
12855 ## CAVEAT EMPTOR:
12856 ## There is no encapsulation within the following macros, do not change
12857 ## the running order or otherwise move them around unless you know exactly
12858 ## what you are doing...
12859 # Dependencies to place before and after the object being linked:
12860 predep_objects_FC=
12861 postdep_objects_FC=
12862 predeps_FC=
12863 postdeps_FC=
12864 compiler_lib_search_path_FC=
12866 cat > conftest.$ac_ext <<_LT_EOF
12867 subroutine foo
12868 implicit none
12869 integer a
12871 return
12873 _LT_EOF
12875 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12876 (eval $ac_compile) 2>&5
12877 ac_status=$?
12878 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12879 test $ac_status = 0; }; then
12880 # Parse the compiler output and extract the necessary
12881 # objects, libraries and library flags.
12883 # Sentinel used to keep track of whether or not we are before
12884 # the conftest object file.
12885 pre_test_object_deps_done=no
12887 for p in `eval "$output_verbose_link_cmd"`; do
12888 case $p in
12890 -L* | -R* | -l*)
12891 # Some compilers place space between "-{L,R}" and the path.
12892 # Remove the space.
12893 if test $p = "-L" ||
12894 test $p = "-R"; then
12895 prev=$p
12896 continue
12897 else
12898 prev=
12901 if test "$pre_test_object_deps_done" = no; then
12902 case $p in
12903 -L* | -R*)
12904 # Internal compiler library paths should come after those
12905 # provided the user. The postdeps already come after the
12906 # user supplied libs so there is no need to process them.
12907 if test -z "$compiler_lib_search_path_FC"; then
12908 compiler_lib_search_path_FC="${prev}${p}"
12909 else
12910 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
12913 # The "-l" case would never come before the object being
12914 # linked, so don't bother handling this case.
12915 esac
12916 else
12917 if test -z "$postdeps_FC"; then
12918 postdeps_FC="${prev}${p}"
12919 else
12920 postdeps_FC="${postdeps_FC} ${prev}${p}"
12925 *.$objext)
12926 # This assumes that the test object file only shows up
12927 # once in the compiler output.
12928 if test "$p" = "conftest.$objext"; then
12929 pre_test_object_deps_done=yes
12930 continue
12933 if test "$pre_test_object_deps_done" = no; then
12934 if test -z "$predep_objects_FC"; then
12935 predep_objects_FC="$p"
12936 else
12937 predep_objects_FC="$predep_objects_FC $p"
12939 else
12940 if test -z "$postdep_objects_FC"; then
12941 postdep_objects_FC="$p"
12942 else
12943 postdep_objects_FC="$postdep_objects_FC $p"
12948 *) ;; # Ignore the rest.
12950 esac
12951 done
12953 # Clean up.
12954 rm -f a.out a.exe
12955 else
12956 echo "libtool.m4: error: problem compiling FC test program"
12959 $RM -f confest.$objext
12961 # PORTME: override above test on systems where it is broken
12964 case " $postdeps_FC " in
12965 *" -lc "*) archive_cmds_need_lc_FC=no ;;
12966 esac
12967 compiler_lib_search_dirs_FC=
12968 if test -n "${compiler_lib_search_path_FC}"; then
12969 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13002 lt_prog_compiler_wl_FC=
13003 lt_prog_compiler_pic_FC=
13004 lt_prog_compiler_static_FC=
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13007 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13009 if test "$GCC" = yes; then
13010 lt_prog_compiler_wl_FC='-Wl,'
13011 lt_prog_compiler_static_FC='-static'
13013 case $host_os in
13014 aix*)
13015 # All AIX code is PIC.
13016 if test "$host_cpu" = ia64; then
13017 # AIX 5 now supports IA64 processor
13018 lt_prog_compiler_static_FC='-Bstatic'
13022 amigaos*)
13023 case $host_cpu in
13024 powerpc)
13025 # see comment about AmigaOS4 .so support
13026 lt_prog_compiler_pic_FC='-fPIC'
13028 m68k)
13029 # FIXME: we need at least 68020 code to build shared libraries, but
13030 # adding the `-m68020' flag to GCC prevents building anything better,
13031 # like `-m68040'.
13032 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
13034 esac
13037 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13038 # PIC is the default for these OSes.
13041 mingw* | cygwin* | pw32* | os2* | cegcc*)
13042 # This hack is so that the source file can tell whether it is being
13043 # built for inclusion in a dll (and should export symbols for example).
13044 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13045 # (--disable-auto-import) libraries
13046 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13049 darwin* | rhapsody*)
13050 # PIC is the default on this platform
13051 # Common symbols not allowed in MH_DYLIB files
13052 lt_prog_compiler_pic_FC='-fno-common'
13055 haiku*)
13056 # PIC is the default for Haiku.
13057 # The "-static" flag exists, but is broken.
13058 lt_prog_compiler_static_FC=
13061 hpux*)
13062 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13063 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13064 # sets the default TLS model and affects inlining.
13065 case $host_cpu in
13066 hppa*64*)
13067 # +Z the default
13070 lt_prog_compiler_pic_FC='-fPIC'
13072 esac
13075 interix[3-9]*)
13076 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13077 # Instead, we relocate shared libraries at runtime.
13080 msdosdjgpp*)
13081 # Just because we use GCC doesn't mean we suddenly get shared libraries
13082 # on systems that don't support them.
13083 lt_prog_compiler_can_build_shared_FC=no
13084 enable_shared=no
13087 *nto* | *qnx*)
13088 # QNX uses GNU C++, but need to define -shared option too, otherwise
13089 # it will coredump.
13090 lt_prog_compiler_pic_FC='-fPIC -shared'
13093 sysv4*MP*)
13094 if test -d /usr/nec; then
13095 lt_prog_compiler_pic_FC=-Kconform_pic
13100 lt_prog_compiler_pic_FC='-fPIC'
13102 esac
13104 case $cc_basename in
13105 nvcc*) # Cuda Compiler Driver 2.2
13106 lt_prog_compiler_wl_FC='-Xlinker '
13107 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
13109 esac
13110 else
13111 # PORTME Check for flag to pass linker flags through the system compiler.
13112 case $host_os in
13113 aix*)
13114 lt_prog_compiler_wl_FC='-Wl,'
13115 if test "$host_cpu" = ia64; then
13116 # AIX 5 now supports IA64 processor
13117 lt_prog_compiler_static_FC='-Bstatic'
13118 else
13119 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
13123 mingw* | cygwin* | pw32* | os2* | cegcc*)
13124 # This hack is so that the source file can tell whether it is being
13125 # built for inclusion in a dll (and should export symbols for example).
13126 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13129 hpux9* | hpux10* | hpux11*)
13130 lt_prog_compiler_wl_FC='-Wl,'
13131 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13132 # not for PA HP-UX.
13133 case $host_cpu in
13134 hppa*64*|ia64*)
13135 # +Z the default
13138 lt_prog_compiler_pic_FC='+Z'
13140 esac
13141 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13142 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
13145 irix5* | irix6* | nonstopux*)
13146 lt_prog_compiler_wl_FC='-Wl,'
13147 # PIC (with -KPIC) is the default.
13148 lt_prog_compiler_static_FC='-non_shared'
13151 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13152 case $cc_basename in
13153 # old Intel for x86_64 which still supported -KPIC.
13154 ecc*)
13155 lt_prog_compiler_wl_FC='-Wl,'
13156 lt_prog_compiler_pic_FC='-KPIC'
13157 lt_prog_compiler_static_FC='-static'
13159 # icc used to be incompatible with GCC.
13160 # ICC 10 doesn't accept -KPIC any more.
13161 icc* | ifort*)
13162 lt_prog_compiler_wl_FC='-Wl,'
13163 lt_prog_compiler_pic_FC='-fPIC'
13164 lt_prog_compiler_static_FC='-static'
13166 # Lahey Fortran 8.1.
13167 lf95*)
13168 lt_prog_compiler_wl_FC='-Wl,'
13169 lt_prog_compiler_pic_FC='--shared'
13170 lt_prog_compiler_static_FC='--static'
13172 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13173 # Portland Group compilers (*not* the Pentium gcc compiler,
13174 # which looks to be a dead project)
13175 lt_prog_compiler_wl_FC='-Wl,'
13176 lt_prog_compiler_pic_FC='-fpic'
13177 lt_prog_compiler_static_FC='-Bstatic'
13179 ccc*)
13180 lt_prog_compiler_wl_FC='-Wl,'
13181 # All Alpha code is PIC.
13182 lt_prog_compiler_static_FC='-non_shared'
13184 xl* | bgxl* | bgf* | mpixl*)
13185 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13186 lt_prog_compiler_wl_FC='-Wl,'
13187 lt_prog_compiler_pic_FC='-qpic'
13188 lt_prog_compiler_static_FC='-qstaticlink'
13191 case `$CC -V 2>&1 | sed 5q` in
13192 *Sun\ F* | *Sun*Fortran*)
13193 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13194 lt_prog_compiler_pic_FC='-KPIC'
13195 lt_prog_compiler_static_FC='-Bstatic'
13196 lt_prog_compiler_wl_FC=''
13198 *Sun\ C*)
13199 # Sun C 5.9
13200 lt_prog_compiler_pic_FC='-KPIC'
13201 lt_prog_compiler_static_FC='-Bstatic'
13202 lt_prog_compiler_wl_FC='-Wl,'
13204 esac
13206 esac
13209 newsos6)
13210 lt_prog_compiler_pic_FC='-KPIC'
13211 lt_prog_compiler_static_FC='-Bstatic'
13214 *nto* | *qnx*)
13215 # QNX uses GNU C++, but need to define -shared option too, otherwise
13216 # it will coredump.
13217 lt_prog_compiler_pic_FC='-fPIC -shared'
13220 osf3* | osf4* | osf5*)
13221 lt_prog_compiler_wl_FC='-Wl,'
13222 # All OSF/1 code is PIC.
13223 lt_prog_compiler_static_FC='-non_shared'
13226 rdos*)
13227 lt_prog_compiler_static_FC='-non_shared'
13230 solaris*)
13231 lt_prog_compiler_pic_FC='-KPIC'
13232 lt_prog_compiler_static_FC='-Bstatic'
13233 case $cc_basename in
13234 f77* | f90* | f95*)
13235 lt_prog_compiler_wl_FC='-Qoption ld ';;
13237 lt_prog_compiler_wl_FC='-Wl,';;
13238 esac
13241 sunos4*)
13242 lt_prog_compiler_wl_FC='-Qoption ld '
13243 lt_prog_compiler_pic_FC='-PIC'
13244 lt_prog_compiler_static_FC='-Bstatic'
13247 sysv4 | sysv4.2uw2* | sysv4.3*)
13248 lt_prog_compiler_wl_FC='-Wl,'
13249 lt_prog_compiler_pic_FC='-KPIC'
13250 lt_prog_compiler_static_FC='-Bstatic'
13253 sysv4*MP*)
13254 if test -d /usr/nec ;then
13255 lt_prog_compiler_pic_FC='-Kconform_pic'
13256 lt_prog_compiler_static_FC='-Bstatic'
13260 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13261 lt_prog_compiler_wl_FC='-Wl,'
13262 lt_prog_compiler_pic_FC='-KPIC'
13263 lt_prog_compiler_static_FC='-Bstatic'
13266 unicos*)
13267 lt_prog_compiler_wl_FC='-Wl,'
13268 lt_prog_compiler_can_build_shared_FC=no
13271 uts4*)
13272 lt_prog_compiler_pic_FC='-pic'
13273 lt_prog_compiler_static_FC='-Bstatic'
13277 lt_prog_compiler_can_build_shared_FC=no
13279 esac
13282 case $host_os in
13283 # For platforms which do not support PIC, -DPIC is meaningless:
13284 *djgpp*)
13285 lt_prog_compiler_pic_FC=
13288 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
13290 esac
13291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
13292 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
13297 # Check to make sure the PIC flag actually works.
13299 if test -n "$lt_prog_compiler_pic_FC"; then
13300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
13301 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
13302 if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then :
13303 $as_echo_n "(cached) " >&6
13304 else
13305 lt_cv_prog_compiler_pic_works_FC=no
13306 ac_outfile=conftest.$ac_objext
13307 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13308 lt_compiler_flag="$lt_prog_compiler_pic_FC"
13309 # Insert the option either (1) after the last *FLAGS variable, or
13310 # (2) before a word containing "conftest.", or (3) at the end.
13311 # Note that $ac_compile itself does not contain backslashes and begins
13312 # with a dollar sign (not a hyphen), so the echo should work correctly.
13313 # The option is referenced via a variable to avoid confusing sed.
13314 lt_compile=`echo "$ac_compile" | $SED \
13315 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13316 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13317 -e 's:$: $lt_compiler_flag:'`
13318 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13319 (eval "$lt_compile" 2>conftest.err)
13320 ac_status=$?
13321 cat conftest.err >&5
13322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13323 if (exit $ac_status) && test -s "$ac_outfile"; then
13324 # The compiler can only warn and ignore the option if not recognized
13325 # So say no if there are warnings other than the usual output.
13326 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13327 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13328 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13329 lt_cv_prog_compiler_pic_works_FC=yes
13332 $RM conftest*
13335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
13336 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
13338 if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
13339 case $lt_prog_compiler_pic_FC in
13340 "" | " "*) ;;
13341 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
13342 esac
13343 else
13344 lt_prog_compiler_pic_FC=
13345 lt_prog_compiler_can_build_shared_FC=no
13353 # Check to make sure the static flag actually works.
13355 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
13356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13357 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13358 if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then :
13359 $as_echo_n "(cached) " >&6
13360 else
13361 lt_cv_prog_compiler_static_works_FC=no
13362 save_LDFLAGS="$LDFLAGS"
13363 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13364 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13365 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13366 # The linker can only warn and ignore the option if not recognized
13367 # So say no if there are warnings
13368 if test -s conftest.err; then
13369 # Append any errors to the config.log.
13370 cat conftest.err 1>&5
13371 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13372 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13373 if diff conftest.exp conftest.er2 >/dev/null; then
13374 lt_cv_prog_compiler_static_works_FC=yes
13376 else
13377 lt_cv_prog_compiler_static_works_FC=yes
13380 $RM -r conftest*
13381 LDFLAGS="$save_LDFLAGS"
13384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
13385 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
13387 if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
13389 else
13390 lt_prog_compiler_static_FC=
13396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13397 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13398 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
13399 $as_echo_n "(cached) " >&6
13400 else
13401 lt_cv_prog_compiler_c_o_FC=no
13402 $RM -r conftest 2>/dev/null
13403 mkdir conftest
13404 cd conftest
13405 mkdir out
13406 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13408 lt_compiler_flag="-o out/conftest2.$ac_objext"
13409 # Insert the option either (1) after the last *FLAGS variable, or
13410 # (2) before a word containing "conftest.", or (3) at the end.
13411 # Note that $ac_compile itself does not contain backslashes and begins
13412 # with a dollar sign (not a hyphen), so the echo should work correctly.
13413 lt_compile=`echo "$ac_compile" | $SED \
13414 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13415 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13416 -e 's:$: $lt_compiler_flag:'`
13417 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13418 (eval "$lt_compile" 2>out/conftest.err)
13419 ac_status=$?
13420 cat out/conftest.err >&5
13421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13423 then
13424 # The compiler can only warn and ignore the option if not recognized
13425 # So say no if there are warnings
13426 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13427 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13428 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13429 lt_cv_prog_compiler_c_o_FC=yes
13432 chmod u+w . 2>&5
13433 $RM conftest*
13434 # SGI C++ compiler will create directory out/ii_files/ for
13435 # template instantiation
13436 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13437 $RM out/* && rmdir out
13438 cd ..
13439 $RM -r conftest
13440 $RM conftest*
13443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
13444 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
13448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13449 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13450 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
13451 $as_echo_n "(cached) " >&6
13452 else
13453 lt_cv_prog_compiler_c_o_FC=no
13454 $RM -r conftest 2>/dev/null
13455 mkdir conftest
13456 cd conftest
13457 mkdir out
13458 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13460 lt_compiler_flag="-o out/conftest2.$ac_objext"
13461 # Insert the option either (1) after the last *FLAGS variable, or
13462 # (2) before a word containing "conftest.", or (3) at the end.
13463 # Note that $ac_compile itself does not contain backslashes and begins
13464 # with a dollar sign (not a hyphen), so the echo should work correctly.
13465 lt_compile=`echo "$ac_compile" | $SED \
13466 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13467 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13468 -e 's:$: $lt_compiler_flag:'`
13469 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13470 (eval "$lt_compile" 2>out/conftest.err)
13471 ac_status=$?
13472 cat out/conftest.err >&5
13473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13474 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13475 then
13476 # The compiler can only warn and ignore the option if not recognized
13477 # So say no if there are warnings
13478 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13479 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13480 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13481 lt_cv_prog_compiler_c_o_FC=yes
13484 chmod u+w . 2>&5
13485 $RM conftest*
13486 # SGI C++ compiler will create directory out/ii_files/ for
13487 # template instantiation
13488 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13489 $RM out/* && rmdir out
13490 cd ..
13491 $RM -r conftest
13492 $RM conftest*
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
13496 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
13501 hard_links="nottested"
13502 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
13503 # do not overwrite the value of need_locks provided by the user
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13505 $as_echo_n "checking if we can lock with hard links... " >&6; }
13506 hard_links=yes
13507 $RM conftest*
13508 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13509 touch conftest.a
13510 ln conftest.a conftest.b 2>&5 || hard_links=no
13511 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13513 $as_echo "$hard_links" >&6; }
13514 if test "$hard_links" = no; then
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13516 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13517 need_locks=warn
13519 else
13520 need_locks=no
13525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13526 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13528 runpath_var=
13529 allow_undefined_flag_FC=
13530 always_export_symbols_FC=no
13531 archive_cmds_FC=
13532 archive_expsym_cmds_FC=
13533 compiler_needs_object_FC=no
13534 enable_shared_with_static_runtimes_FC=no
13535 export_dynamic_flag_spec_FC=
13536 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13537 hardcode_automatic_FC=no
13538 hardcode_direct_FC=no
13539 hardcode_direct_absolute_FC=no
13540 hardcode_libdir_flag_spec_FC=
13541 hardcode_libdir_flag_spec_ld_FC=
13542 hardcode_libdir_separator_FC=
13543 hardcode_minus_L_FC=no
13544 hardcode_shlibpath_var_FC=unsupported
13545 inherit_rpath_FC=no
13546 link_all_deplibs_FC=unknown
13547 module_cmds_FC=
13548 module_expsym_cmds_FC=
13549 old_archive_from_new_cmds_FC=
13550 old_archive_from_expsyms_cmds_FC=
13551 thread_safe_flag_spec_FC=
13552 whole_archive_flag_spec_FC=
13553 # include_expsyms should be a list of space-separated symbols to be *always*
13554 # included in the symbol list
13555 include_expsyms_FC=
13556 # exclude_expsyms can be an extended regexp of symbols to exclude
13557 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13558 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13559 # as well as any symbol that contains `d'.
13560 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13561 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13562 # platforms (ab)use it in PIC code, but their linkers get confused if
13563 # the symbol is explicitly referenced. Since portable code cannot
13564 # rely on this symbol name, it's probably fine to never include it in
13565 # preloaded symbol tables.
13566 # Exclude shared library initialization/finalization symbols.
13567 extract_expsyms_cmds=
13569 case $host_os in
13570 cygwin* | mingw* | pw32* | cegcc*)
13571 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13572 # When not using gcc, we currently assume that we are using
13573 # Microsoft Visual C++.
13574 if test "$GCC" != yes; then
13575 with_gnu_ld=no
13578 interix*)
13579 # we just hope/assume this is gcc and not c89 (= MSVC++)
13580 with_gnu_ld=yes
13582 openbsd*)
13583 with_gnu_ld=no
13585 esac
13587 ld_shlibs_FC=yes
13589 # On some targets, GNU ld is compatible enough with the native linker
13590 # that we're better off using the native interface for both.
13591 lt_use_gnu_ld_interface=no
13592 if test "$with_gnu_ld" = yes; then
13593 case $host_os in
13594 aix*)
13595 # The AIX port of GNU ld has always aspired to compatibility
13596 # with the native linker. However, as the warning in the GNU ld
13597 # block says, versions before 2.19.5* couldn't really create working
13598 # shared libraries, regardless of the interface used.
13599 case `$LD -v 2>&1` in
13600 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13601 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13602 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13604 lt_use_gnu_ld_interface=yes
13606 esac
13609 lt_use_gnu_ld_interface=yes
13611 esac
13614 if test "$lt_use_gnu_ld_interface" = yes; then
13615 # If archive_cmds runs LD, not CC, wlarc should be empty
13616 wlarc='${wl}'
13618 # Set some defaults for GNU ld with shared library support. These
13619 # are reset later if shared libraries are not supported. Putting them
13620 # here allows them to be overridden if necessary.
13621 runpath_var=LD_RUN_PATH
13622 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13623 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
13624 # ancient GNU ld didn't support --whole-archive et. al.
13625 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13626 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13627 else
13628 whole_archive_flag_spec_FC=
13630 supports_anon_versioning=no
13631 case `$LD -v 2>&1` in
13632 *GNU\ gold*) supports_anon_versioning=yes ;;
13633 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13634 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13635 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13636 *\ 2.11.*) ;; # other 2.11 versions
13637 *) supports_anon_versioning=yes ;;
13638 esac
13640 # See if GNU ld supports shared libraries.
13641 case $host_os in
13642 aix[3-9]*)
13643 # On AIX/PPC, the GNU linker is very broken
13644 if test "$host_cpu" != ia64; then
13645 ld_shlibs_FC=no
13646 cat <<_LT_EOF 1>&2
13648 *** Warning: the GNU linker, at least up to release 2.19, is reported
13649 *** to be unable to reliably create shared libraries on AIX.
13650 *** Therefore, libtool is disabling shared libraries support. If you
13651 *** really care for shared libraries, you may want to install binutils
13652 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13653 *** You will then need to restart the configuration process.
13655 _LT_EOF
13659 amigaos*)
13660 case $host_cpu in
13661 powerpc)
13662 # see comment about AmigaOS4 .so support
13663 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13664 archive_expsym_cmds_FC=''
13666 m68k)
13667 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)'
13668 hardcode_libdir_flag_spec_FC='-L$libdir'
13669 hardcode_minus_L_FC=yes
13671 esac
13674 beos*)
13675 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13676 allow_undefined_flag_FC=unsupported
13677 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13678 # support --undefined. This deserves some investigation. FIXME
13679 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13680 else
13681 ld_shlibs_FC=no
13685 cygwin* | mingw* | pw32* | cegcc*)
13686 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
13687 # as there is no search path for DLLs.
13688 hardcode_libdir_flag_spec_FC='-L$libdir'
13689 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
13690 allow_undefined_flag_FC=unsupported
13691 always_export_symbols_FC=no
13692 enable_shared_with_static_runtimes_FC=yes
13693 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13695 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13696 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13697 # If the export-symbols file already is a .def file (1st line
13698 # is EXPORTS), use it as is; otherwise, prepend...
13699 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13700 cp $export_symbols $output_objdir/$soname.def;
13701 else
13702 echo EXPORTS > $output_objdir/$soname.def;
13703 cat $export_symbols >> $output_objdir/$soname.def;
13705 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13706 else
13707 ld_shlibs_FC=no
13711 haiku*)
13712 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13713 link_all_deplibs_FC=yes
13716 interix[3-9]*)
13717 hardcode_direct_FC=no
13718 hardcode_shlibpath_var_FC=no
13719 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13720 export_dynamic_flag_spec_FC='${wl}-E'
13721 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13722 # Instead, shared libraries are loaded at an image base (0x10000000 by
13723 # default) and relocated if they conflict, which is a slow very memory
13724 # consuming and fragmenting process. To avoid this, we pick a random,
13725 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13726 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13727 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'
13728 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'
13731 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
13732 tmp_diet=no
13733 if test "$host_os" = linux-dietlibc; then
13734 case $cc_basename in
13735 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13736 esac
13738 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13739 && test "$tmp_diet" = no
13740 then
13741 tmp_addflag=
13742 tmp_sharedflag='-shared'
13743 case $cc_basename,$host_cpu in
13744 pgcc*) # Portland Group C compiler
13745 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'
13746 tmp_addflag=' $pic_flag'
13748 pgf77* | pgf90* | pgf95* | pgfortran*)
13749 # Portland Group f77 and f90 compilers
13750 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'
13751 tmp_addflag=' $pic_flag -Mnomain' ;;
13752 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13753 tmp_addflag=' -i_dynamic' ;;
13754 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13755 tmp_addflag=' -i_dynamic -nofor_main' ;;
13756 ifc* | ifort*) # Intel Fortran compiler
13757 tmp_addflag=' -nofor_main' ;;
13758 lf95*) # Lahey Fortran 8.1
13759 whole_archive_flag_spec_FC=
13760 tmp_sharedflag='--shared' ;;
13761 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13762 tmp_sharedflag='-qmkshrobj'
13763 tmp_addflag= ;;
13764 nvcc*) # Cuda Compiler Driver 2.2
13765 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'
13766 compiler_needs_object_FC=yes
13768 esac
13769 case `$CC -V 2>&1 | sed 5q` in
13770 *Sun\ C*) # Sun C 5.9
13771 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'
13772 compiler_needs_object_FC=yes
13773 tmp_sharedflag='-G' ;;
13774 *Sun\ F*) # Sun Fortran 8.3
13775 tmp_sharedflag='-G' ;;
13776 esac
13777 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13779 if test "x$supports_anon_versioning" = xyes; then
13780 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
13781 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13782 echo "local: *; };" >> $output_objdir/$libname.ver~
13783 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13786 case $cc_basename in
13787 xlf* | bgf* | bgxlf* | mpixlf*)
13788 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13789 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
13790 hardcode_libdir_flag_spec_FC=
13791 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
13792 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13793 if test "x$supports_anon_versioning" = xyes; then
13794 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
13795 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13796 echo "local: *; };" >> $output_objdir/$libname.ver~
13797 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
13800 esac
13801 else
13802 ld_shlibs_FC=no
13806 netbsd*)
13807 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13808 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
13809 wlarc=
13810 else
13811 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13812 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13816 solaris*)
13817 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
13818 ld_shlibs_FC=no
13819 cat <<_LT_EOF 1>&2
13821 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
13822 *** create shared libraries on Solaris systems. Therefore, libtool
13823 *** is disabling shared libraries support. We urge you to upgrade GNU
13824 *** binutils to release 2.9.1 or newer. Another option is to modify
13825 *** your PATH or compiler configuration so that the native linker is
13826 *** used, and then restart.
13828 _LT_EOF
13829 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13830 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13831 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13832 else
13833 ld_shlibs_FC=no
13837 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
13838 case `$LD -v 2>&1` in
13839 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
13840 ld_shlibs_FC=no
13841 cat <<_LT_EOF 1>&2
13843 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
13844 *** reliably create shared libraries on SCO systems. Therefore, libtool
13845 *** is disabling shared libraries support. We urge you to upgrade GNU
13846 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
13847 *** your PATH or compiler configuration so that the native linker is
13848 *** used, and then restart.
13850 _LT_EOF
13853 # For security reasons, it is highly recommended that you always
13854 # use absolute paths for naming shared libraries, and exclude the
13855 # DT_RUNPATH tag from executables and libraries. But doing so
13856 # requires that you compile everything twice, which is a pain.
13857 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13858 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13859 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13860 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13861 else
13862 ld_shlibs_FC=no
13865 esac
13868 sunos4*)
13869 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13870 wlarc=
13871 hardcode_direct_FC=yes
13872 hardcode_shlibpath_var_FC=no
13876 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13877 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13878 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
13879 else
13880 ld_shlibs_FC=no
13883 esac
13885 if test "$ld_shlibs_FC" = no; then
13886 runpath_var=
13887 hardcode_libdir_flag_spec_FC=
13888 export_dynamic_flag_spec_FC=
13889 whole_archive_flag_spec_FC=
13891 else
13892 # PORTME fill in a description of your system's linker (not GNU ld)
13893 case $host_os in
13894 aix3*)
13895 allow_undefined_flag_FC=unsupported
13896 always_export_symbols_FC=yes
13897 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'
13898 # Note: this linker hardcodes the directories in LIBPATH if there
13899 # are no directories specified by -L.
13900 hardcode_minus_L_FC=yes
13901 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
13902 # Neither direct hardcoding nor static linking is supported with a
13903 # broken collect2.
13904 hardcode_direct_FC=unsupported
13908 aix[4-9]*)
13909 if test "$host_cpu" = ia64; then
13910 # On IA64, the linker does run time linking by default, so we don't
13911 # have to do anything special.
13912 aix_use_runtimelinking=no
13913 exp_sym_flag='-Bexport'
13914 no_entry_flag=""
13915 else
13916 # If we're using GNU nm, then we don't want the "-C" option.
13917 # -C means demangle to AIX nm, but means don't demangle with GNU nm
13918 # Also, AIX nm treats weak defined symbols like other global
13919 # defined symbols, whereas GNU nm marks them as "W".
13920 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
13921 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'
13922 else
13923 export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
13925 aix_use_runtimelinking=no
13927 # Test if we are trying to use run time linking or normal
13928 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
13929 # need to do runtime linking.
13930 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
13931 for ld_flag in $LDFLAGS; do
13932 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
13933 aix_use_runtimelinking=yes
13934 break
13936 done
13938 esac
13940 exp_sym_flag='-bexport'
13941 no_entry_flag='-bnoentry'
13944 # When large executables or shared objects are built, AIX ld can
13945 # have problems creating the table of contents. If linking a library
13946 # or program results in "error TOC overflow" add -mminimal-toc to
13947 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
13948 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
13950 archive_cmds_FC=''
13951 hardcode_direct_FC=yes
13952 hardcode_direct_absolute_FC=yes
13953 hardcode_libdir_separator_FC=':'
13954 link_all_deplibs_FC=yes
13955 file_list_spec_FC='${wl}-f,'
13957 if test "$GCC" = yes; then
13958 case $host_os in aix4.[012]|aix4.[012].*)
13959 # We only want to do this on AIX 4.2 and lower, the check
13960 # below for broken collect2 doesn't work under 4.3+
13961 collect2name=`${CC} -print-prog-name=collect2`
13962 if test -f "$collect2name" &&
13963 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
13964 then
13965 # We have reworked collect2
13967 else
13968 # We have old collect2
13969 hardcode_direct_FC=unsupported
13970 # It fails to find uninstalled libraries when the uninstalled
13971 # path is not listed in the libpath. Setting hardcode_minus_L
13972 # to unsupported forces relinking
13973 hardcode_minus_L_FC=yes
13974 hardcode_libdir_flag_spec_FC='-L$libdir'
13975 hardcode_libdir_separator_FC=
13978 esac
13979 shared_flag='-shared'
13980 if test "$aix_use_runtimelinking" = yes; then
13981 shared_flag="$shared_flag "'${wl}-G'
13983 else
13984 # not using gcc
13985 if test "$host_cpu" = ia64; then
13986 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13987 # chokes on -Wl,-G. The following line is correct:
13988 shared_flag='-G'
13989 else
13990 if test "$aix_use_runtimelinking" = yes; then
13991 shared_flag='${wl}-G'
13992 else
13993 shared_flag='${wl}-bM:SRE'
13998 export_dynamic_flag_spec_FC='${wl}-bexpall'
13999 # It seems that -bexpall does not export symbols beginning with
14000 # underscore (_), so it is better to generate a list of symbols to export.
14001 always_export_symbols_FC=yes
14002 if test "$aix_use_runtimelinking" = yes; then
14003 # Warning - without using the other runtime loading flags (-brtl),
14004 # -berok will link without error, but may produce a broken library.
14005 allow_undefined_flag_FC='-berok'
14006 # Determine the default libpath from the value encoded in an
14007 # empty executable.
14008 if test x$gcc_no_link = xyes; then
14009 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14011 cat > conftest.$ac_ext <<_ACEOF
14012 program main
14015 _ACEOF
14016 if ac_fn_fc_try_link "$LINENO"; then :
14018 lt_aix_libpath_sed='
14019 /Import File Strings/,/^$/ {
14020 /^0/ {
14021 s/^0 *\(.*\)$/\1/
14025 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14026 # Check for a 64-bit object if we didn't find anything.
14027 if test -z "$aix_libpath"; then
14028 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14031 rm -f core conftest.err conftest.$ac_objext \
14032 conftest$ac_exeext conftest.$ac_ext
14033 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14035 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
14036 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"
14037 else
14038 if test "$host_cpu" = ia64; then
14039 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
14040 allow_undefined_flag_FC="-z nodefs"
14041 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"
14042 else
14043 # Determine the default libpath from the value encoded in an
14044 # empty executable.
14045 if test x$gcc_no_link = xyes; then
14046 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14048 cat > conftest.$ac_ext <<_ACEOF
14049 program main
14052 _ACEOF
14053 if ac_fn_fc_try_link "$LINENO"; then :
14055 lt_aix_libpath_sed='
14056 /Import File Strings/,/^$/ {
14057 /^0/ {
14058 s/^0 *\(.*\)$/\1/
14062 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14063 # Check for a 64-bit object if we didn't find anything.
14064 if test -z "$aix_libpath"; then
14065 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14068 rm -f core conftest.err conftest.$ac_objext \
14069 conftest$ac_exeext conftest.$ac_ext
14070 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14072 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
14073 # Warning - without using the other run time loading flags,
14074 # -berok will link without error, but may produce a broken library.
14075 no_undefined_flag_FC=' ${wl}-bernotok'
14076 allow_undefined_flag_FC=' ${wl}-berok'
14077 if test "$with_gnu_ld" = yes; then
14078 # We only use this code for GNU lds that support --whole-archive.
14079 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14080 else
14081 # Exported symbols can be pulled into shared objects from archives
14082 whole_archive_flag_spec_FC='$convenience'
14084 archive_cmds_need_lc_FC=yes
14085 # This is similar to how AIX traditionally builds its shared libraries.
14086 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'
14091 amigaos*)
14092 case $host_cpu in
14093 powerpc)
14094 # see comment about AmigaOS4 .so support
14095 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14096 archive_expsym_cmds_FC=''
14098 m68k)
14099 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)'
14100 hardcode_libdir_flag_spec_FC='-L$libdir'
14101 hardcode_minus_L_FC=yes
14103 esac
14106 bsdi[45]*)
14107 export_dynamic_flag_spec_FC=-rdynamic
14110 cygwin* | mingw* | pw32* | cegcc*)
14111 # When not using gcc, we currently assume that we are using
14112 # Microsoft Visual C++.
14113 # hardcode_libdir_flag_spec is actually meaningless, as there is
14114 # no search path for DLLs.
14115 hardcode_libdir_flag_spec_FC=' '
14116 allow_undefined_flag_FC=unsupported
14117 # Tell ltmain to make .lib files, not .a files.
14118 libext=lib
14119 # Tell ltmain to make .dll files, not .so files.
14120 shrext_cmds=".dll"
14121 # FIXME: Setting linknames here is a bad hack.
14122 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14123 # The linker will automatically build a .lib file if we build a DLL.
14124 old_archive_from_new_cmds_FC='true'
14125 # FIXME: Should let the user specify the lib program.
14126 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
14127 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
14128 enable_shared_with_static_runtimes_FC=yes
14131 darwin* | rhapsody*)
14134 archive_cmds_need_lc_FC=no
14135 hardcode_direct_FC=no
14136 hardcode_automatic_FC=yes
14137 hardcode_shlibpath_var_FC=unsupported
14138 if test "$lt_cv_ld_force_load" = "yes"; then
14139 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\"`'
14140 else
14141 whole_archive_flag_spec_FC=''
14143 link_all_deplibs_FC=yes
14144 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
14145 case $cc_basename in
14146 ifort*) _lt_dar_can_shared=yes ;;
14147 *) _lt_dar_can_shared=$GCC ;;
14148 esac
14149 if test "$_lt_dar_can_shared" = "yes"; then
14150 output_verbose_link_cmd=func_echo_all
14151 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}"
14152 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14153 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}"
14154 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}"
14156 else
14157 ld_shlibs_FC=no
14162 dgux*)
14163 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14164 hardcode_libdir_flag_spec_FC='-L$libdir'
14165 hardcode_shlibpath_var_FC=no
14168 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14169 # support. Future versions do this automatically, but an explicit c++rt0.o
14170 # does not break anything, and helps significantly (at the cost of a little
14171 # extra space).
14172 freebsd2.2*)
14173 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14174 hardcode_libdir_flag_spec_FC='-R$libdir'
14175 hardcode_direct_FC=yes
14176 hardcode_shlibpath_var_FC=no
14179 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14180 freebsd2.*)
14181 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14182 hardcode_direct_FC=yes
14183 hardcode_minus_L_FC=yes
14184 hardcode_shlibpath_var_FC=no
14187 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14188 freebsd* | dragonfly*)
14189 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14190 hardcode_libdir_flag_spec_FC='-R$libdir'
14191 hardcode_direct_FC=yes
14192 hardcode_shlibpath_var_FC=no
14195 hpux9*)
14196 if test "$GCC" = yes; then
14197 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'
14198 else
14199 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'
14201 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14202 hardcode_libdir_separator_FC=:
14203 hardcode_direct_FC=yes
14205 # hardcode_minus_L: Not really in the search PATH,
14206 # but as the default location of the library.
14207 hardcode_minus_L_FC=yes
14208 export_dynamic_flag_spec_FC='${wl}-E'
14211 hpux10*)
14212 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14213 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14214 else
14215 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14217 if test "$with_gnu_ld" = no; then
14218 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14219 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
14220 hardcode_libdir_separator_FC=:
14221 hardcode_direct_FC=yes
14222 hardcode_direct_absolute_FC=yes
14223 export_dynamic_flag_spec_FC='${wl}-E'
14224 # hardcode_minus_L: Not really in the search PATH,
14225 # but as the default location of the library.
14226 hardcode_minus_L_FC=yes
14230 hpux11*)
14231 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14232 case $host_cpu in
14233 hppa*64*)
14234 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14236 ia64*)
14237 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14240 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14242 esac
14243 else
14244 case $host_cpu in
14245 hppa*64*)
14246 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14248 ia64*)
14249 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14252 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14254 esac
14256 if test "$with_gnu_ld" = no; then
14257 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14258 hardcode_libdir_separator_FC=:
14260 case $host_cpu in
14261 hppa*64*|ia64*)
14262 hardcode_direct_FC=no
14263 hardcode_shlibpath_var_FC=no
14266 hardcode_direct_FC=yes
14267 hardcode_direct_absolute_FC=yes
14268 export_dynamic_flag_spec_FC='${wl}-E'
14270 # hardcode_minus_L: Not really in the search PATH,
14271 # but as the default location of the library.
14272 hardcode_minus_L_FC=yes
14274 esac
14278 irix5* | irix6* | nonstopux*)
14279 if test "$GCC" = yes; then
14280 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'
14281 # Try to use the -exported_symbol ld option, if it does not
14282 # work, assume that -exports_file does not work either and
14283 # implicitly export all symbols.
14284 save_LDFLAGS="$LDFLAGS"
14285 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14286 if test x$gcc_no_link = xyes; then
14287 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14289 cat > conftest.$ac_ext <<_ACEOF
14290 int foo(void) {}
14291 _ACEOF
14292 if ac_fn_fc_try_link "$LINENO"; then :
14293 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'
14296 rm -f core conftest.err conftest.$ac_objext \
14297 conftest$ac_exeext conftest.$ac_ext
14298 LDFLAGS="$save_LDFLAGS"
14299 else
14300 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'
14301 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'
14303 archive_cmds_need_lc_FC='no'
14304 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14305 hardcode_libdir_separator_FC=:
14306 inherit_rpath_FC=yes
14307 link_all_deplibs_FC=yes
14310 netbsd*)
14311 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14312 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14313 else
14314 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14316 hardcode_libdir_flag_spec_FC='-R$libdir'
14317 hardcode_direct_FC=yes
14318 hardcode_shlibpath_var_FC=no
14321 newsos6)
14322 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14323 hardcode_direct_FC=yes
14324 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14325 hardcode_libdir_separator_FC=:
14326 hardcode_shlibpath_var_FC=no
14329 *nto* | *qnx*)
14332 openbsd*)
14333 if test -f /usr/libexec/ld.so; then
14334 hardcode_direct_FC=yes
14335 hardcode_shlibpath_var_FC=no
14336 hardcode_direct_absolute_FC=yes
14337 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14338 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14339 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14340 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14341 export_dynamic_flag_spec_FC='${wl}-E'
14342 else
14343 case $host_os in
14344 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14345 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14346 hardcode_libdir_flag_spec_FC='-R$libdir'
14349 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14350 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14352 esac
14354 else
14355 ld_shlibs_FC=no
14359 os2*)
14360 hardcode_libdir_flag_spec_FC='-L$libdir'
14361 hardcode_minus_L_FC=yes
14362 allow_undefined_flag_FC=unsupported
14363 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'
14364 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14367 osf3*)
14368 if test "$GCC" = yes; then
14369 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
14370 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'
14371 else
14372 allow_undefined_flag_FC=' -expect_unresolved \*'
14373 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'
14375 archive_cmds_need_lc_FC='no'
14376 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14377 hardcode_libdir_separator_FC=:
14380 osf4* | osf5*) # as osf3* with the addition of -msym flag
14381 if test "$GCC" = yes; then
14382 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
14383 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'
14384 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14385 else
14386 allow_undefined_flag_FC=' -expect_unresolved \*'
14387 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'
14388 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~
14389 $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'
14391 # Both c and cxx compiler support -rpath directly
14392 hardcode_libdir_flag_spec_FC='-rpath $libdir'
14394 archive_cmds_need_lc_FC='no'
14395 hardcode_libdir_separator_FC=:
14398 solaris*)
14399 no_undefined_flag_FC=' -z defs'
14400 if test "$GCC" = yes; then
14401 wlarc='${wl}'
14402 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14403 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14404 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14405 else
14406 case `$CC -V 2>&1` in
14407 *"Compilers 5.0"*)
14408 wlarc=''
14409 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14410 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14411 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14414 wlarc='${wl}'
14415 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14416 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14417 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14419 esac
14421 hardcode_libdir_flag_spec_FC='-R$libdir'
14422 hardcode_shlibpath_var_FC=no
14423 case $host_os in
14424 solaris2.[0-5] | solaris2.[0-5].*) ;;
14426 # The compiler driver will combine and reorder linker options,
14427 # but understands `-z linker_flag'. GCC discards it without `$wl',
14428 # but is careful enough not to reorder.
14429 # Supported since Solaris 2.6 (maybe 2.5.1?)
14430 if test "$GCC" = yes; then
14431 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14432 else
14433 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
14436 esac
14437 link_all_deplibs_FC=yes
14440 sunos4*)
14441 if test "x$host_vendor" = xsequent; then
14442 # Use $CC to link under sequent, because it throws in some extra .o
14443 # files that make .init and .fini sections work.
14444 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14445 else
14446 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14448 hardcode_libdir_flag_spec_FC='-L$libdir'
14449 hardcode_direct_FC=yes
14450 hardcode_minus_L_FC=yes
14451 hardcode_shlibpath_var_FC=no
14454 sysv4)
14455 case $host_vendor in
14456 sni)
14457 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14458 hardcode_direct_FC=yes # is this really true???
14460 siemens)
14461 ## LD is ld it makes a PLAMLIB
14462 ## CC just makes a GrossModule.
14463 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14464 reload_cmds_FC='$CC -r -o $output$reload_objs'
14465 hardcode_direct_FC=no
14467 motorola)
14468 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14469 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
14471 esac
14472 runpath_var='LD_RUN_PATH'
14473 hardcode_shlibpath_var_FC=no
14476 sysv4.3*)
14477 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14478 hardcode_shlibpath_var_FC=no
14479 export_dynamic_flag_spec_FC='-Bexport'
14482 sysv4*MP*)
14483 if test -d /usr/nec; then
14484 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14485 hardcode_shlibpath_var_FC=no
14486 runpath_var=LD_RUN_PATH
14487 hardcode_runpath_var=yes
14488 ld_shlibs_FC=yes
14492 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14493 no_undefined_flag_FC='${wl}-z,text'
14494 archive_cmds_need_lc_FC=no
14495 hardcode_shlibpath_var_FC=no
14496 runpath_var='LD_RUN_PATH'
14498 if test "$GCC" = yes; then
14499 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14500 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14501 else
14502 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14503 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14507 sysv5* | sco3.2v5* | sco5v6*)
14508 # Note: We can NOT use -z defs as we might desire, because we do not
14509 # link with -lc, and that would cause any symbols used from libc to
14510 # always be unresolved, which means just about no library would
14511 # ever link correctly. If we're not using GNU ld we use -z text
14512 # though, which does catch some bad symbols but isn't as heavy-handed
14513 # as -z defs.
14514 no_undefined_flag_FC='${wl}-z,text'
14515 allow_undefined_flag_FC='${wl}-z,nodefs'
14516 archive_cmds_need_lc_FC=no
14517 hardcode_shlibpath_var_FC=no
14518 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
14519 hardcode_libdir_separator_FC=':'
14520 link_all_deplibs_FC=yes
14521 export_dynamic_flag_spec_FC='${wl}-Bexport'
14522 runpath_var='LD_RUN_PATH'
14524 if test "$GCC" = yes; then
14525 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14526 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14527 else
14528 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14529 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14533 uts4*)
14534 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14535 hardcode_libdir_flag_spec_FC='-L$libdir'
14536 hardcode_shlibpath_var_FC=no
14540 ld_shlibs_FC=no
14542 esac
14544 if test x$host_vendor = xsni; then
14545 case $host in
14546 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14547 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
14549 esac
14553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
14554 $as_echo "$ld_shlibs_FC" >&6; }
14555 test "$ld_shlibs_FC" = no && can_build_shared=no
14557 with_gnu_ld_FC=$with_gnu_ld
14565 # Do we need to explicitly link libc?
14567 case "x$archive_cmds_need_lc_FC" in
14568 x|xyes)
14569 # Assume -lc should be added
14570 archive_cmds_need_lc_FC=yes
14572 if test "$enable_shared" = yes && test "$GCC" = yes; then
14573 case $archive_cmds_FC in
14574 *'~'*)
14575 # FIXME: we may have to deal with multi-command sequences.
14577 '$CC '*)
14578 # Test whether the compiler implicitly links with -lc since on some
14579 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14580 # to ld, don't add -lc before -lgcc.
14581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14582 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14583 if test "${lt_cv_archive_cmds_need_lc_FC+set}" = set; then :
14584 $as_echo_n "(cached) " >&6
14585 else
14586 $RM conftest*
14587 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14589 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14590 (eval $ac_compile) 2>&5
14591 ac_status=$?
14592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14593 test $ac_status = 0; } 2>conftest.err; then
14594 soname=conftest
14595 lib=conftest
14596 libobjs=conftest.$ac_objext
14597 deplibs=
14598 wl=$lt_prog_compiler_wl_FC
14599 pic_flag=$lt_prog_compiler_pic_FC
14600 compiler_flags=-v
14601 linker_flags=-v
14602 verstring=
14603 output_objdir=.
14604 libname=conftest
14605 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
14606 allow_undefined_flag_FC=
14607 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14608 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14609 ac_status=$?
14610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14611 test $ac_status = 0; }
14612 then
14613 lt_cv_archive_cmds_need_lc_FC=no
14614 else
14615 lt_cv_archive_cmds_need_lc_FC=yes
14617 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
14618 else
14619 cat conftest.err 1>&5
14621 $RM conftest*
14624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
14625 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
14626 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
14628 esac
14631 esac
14696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14697 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14699 library_names_spec=
14700 libname_spec='lib$name'
14701 soname_spec=
14702 shrext_cmds=".so"
14703 postinstall_cmds=
14704 postuninstall_cmds=
14705 finish_cmds=
14706 finish_eval=
14707 shlibpath_var=
14708 shlibpath_overrides_runpath=unknown
14709 version_type=none
14710 dynamic_linker="$host_os ld.so"
14711 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14712 need_lib_prefix=unknown
14713 hardcode_into_libs=no
14715 # when you set need_version to no, make sure it does not cause -set_version
14716 # flags to be left without arguments
14717 need_version=unknown
14719 case $host_os in
14720 aix3*)
14721 version_type=linux
14722 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14723 shlibpath_var=LIBPATH
14725 # AIX 3 has no versioning support, so we append a major version to the name.
14726 soname_spec='${libname}${release}${shared_ext}$major'
14729 aix[4-9]*)
14730 version_type=linux
14731 need_lib_prefix=no
14732 need_version=no
14733 hardcode_into_libs=yes
14734 if test "$host_cpu" = ia64; then
14735 # AIX 5 supports IA64
14736 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14737 shlibpath_var=LD_LIBRARY_PATH
14738 else
14739 # With GCC up to 2.95.x, collect2 would create an import file
14740 # for dependence libraries. The import file would start with
14741 # the line `#! .'. This would cause the generated library to
14742 # depend on `.', always an invalid library. This was fixed in
14743 # development snapshots of GCC prior to 3.0.
14744 case $host_os in
14745 aix4 | aix4.[01] | aix4.[01].*)
14746 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14747 echo ' yes '
14748 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14750 else
14751 can_build_shared=no
14754 esac
14755 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14756 # soname into executable. Probably we can add versioning support to
14757 # collect2, so additional links can be useful in future.
14758 if test "$aix_use_runtimelinking" = yes; then
14759 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14760 # instead of lib<name>.a to let people know that these are not
14761 # typical AIX shared libraries.
14762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14763 else
14764 # We preserve .a as extension for shared libraries through AIX4.2
14765 # and later when we are not doing run time linking.
14766 library_names_spec='${libname}${release}.a $libname.a'
14767 soname_spec='${libname}${release}${shared_ext}$major'
14769 shlibpath_var=LIBPATH
14773 amigaos*)
14774 case $host_cpu in
14775 powerpc)
14776 # Since July 2007 AmigaOS4 officially supports .so libraries.
14777 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14780 m68k)
14781 library_names_spec='$libname.ixlibrary $libname.a'
14782 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14783 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'
14785 esac
14788 beos*)
14789 library_names_spec='${libname}${shared_ext}'
14790 dynamic_linker="$host_os ld.so"
14791 shlibpath_var=LIBRARY_PATH
14794 bsdi[45]*)
14795 version_type=linux
14796 need_version=no
14797 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14798 soname_spec='${libname}${release}${shared_ext}$major'
14799 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
14800 shlibpath_var=LD_LIBRARY_PATH
14801 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
14802 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
14803 # the default ld.so.conf also contains /usr/contrib/lib and
14804 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
14805 # libtool to hard-code these into programs
14808 cygwin* | mingw* | pw32* | cegcc*)
14809 version_type=windows
14810 shrext_cmds=".dll"
14811 need_version=no
14812 need_lib_prefix=no
14814 case $GCC,$host_os in
14815 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
14816 library_names_spec='$libname.dll.a'
14817 # DLL is installed to $(libdir)/../bin by postinstall_cmds
14818 postinstall_cmds='base_file=`basename \${file}`~
14819 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
14820 dldir=$destdir/`dirname \$dlpath`~
14821 test -d \$dldir || mkdir -p \$dldir~
14822 $install_prog $dir/$dlname \$dldir/$dlname~
14823 chmod a+x \$dldir/$dlname~
14824 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
14825 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
14827 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
14828 dlpath=$dir/\$dldll~
14829 $RM \$dlpath'
14830 shlibpath_overrides_runpath=yes
14832 case $host_os in
14833 cygwin*)
14834 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
14835 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14838 mingw* | cegcc*)
14839 # MinGW DLLs use traditional 'lib' prefix
14840 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14842 pw32*)
14843 # pw32 DLLs use 'pw' prefix rather than 'lib'
14844 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
14846 esac
14850 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
14852 esac
14853 dynamic_linker='Win32 ld.exe'
14854 # FIXME: first we should search . and the directory the executable is in
14855 shlibpath_var=PATH
14858 darwin* | rhapsody*)
14859 dynamic_linker="$host_os dyld"
14860 version_type=darwin
14861 need_lib_prefix=no
14862 need_version=no
14863 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
14864 soname_spec='${libname}${release}${major}$shared_ext'
14865 shlibpath_overrides_runpath=yes
14866 shlibpath_var=DYLD_LIBRARY_PATH
14867 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
14869 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
14872 dgux*)
14873 version_type=linux
14874 need_lib_prefix=no
14875 need_version=no
14876 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
14877 soname_spec='${libname}${release}${shared_ext}$major'
14878 shlibpath_var=LD_LIBRARY_PATH
14881 freebsd* | dragonfly*)
14882 # DragonFly does not have aout. When/if they implement a new
14883 # versioning mechanism, adjust this.
14884 if test -x /usr/bin/objformat; then
14885 objformat=`/usr/bin/objformat`
14886 else
14887 case $host_os in
14888 freebsd[23].*) objformat=aout ;;
14889 *) objformat=elf ;;
14890 esac
14892 version_type=freebsd-$objformat
14893 case $version_type in
14894 freebsd-elf*)
14895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14896 need_version=no
14897 need_lib_prefix=no
14899 freebsd-*)
14900 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
14901 need_version=yes
14903 esac
14904 shlibpath_var=LD_LIBRARY_PATH
14905 case $host_os in
14906 freebsd2.*)
14907 shlibpath_overrides_runpath=yes
14909 freebsd3.[01]* | freebsdelf3.[01]*)
14910 shlibpath_overrides_runpath=yes
14911 hardcode_into_libs=yes
14913 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
14914 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
14915 shlibpath_overrides_runpath=no
14916 hardcode_into_libs=yes
14918 *) # from 4.6 on, and DragonFly
14919 shlibpath_overrides_runpath=yes
14920 hardcode_into_libs=yes
14922 esac
14925 gnu*)
14926 version_type=linux
14927 need_lib_prefix=no
14928 need_version=no
14929 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14930 soname_spec='${libname}${release}${shared_ext}$major'
14931 shlibpath_var=LD_LIBRARY_PATH
14932 hardcode_into_libs=yes
14935 haiku*)
14936 version_type=linux
14937 need_lib_prefix=no
14938 need_version=no
14939 dynamic_linker="$host_os runtime_loader"
14940 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
14941 soname_spec='${libname}${release}${shared_ext}$major'
14942 shlibpath_var=LIBRARY_PATH
14943 shlibpath_overrides_runpath=yes
14944 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
14945 hardcode_into_libs=yes
14948 hpux9* | hpux10* | hpux11*)
14949 # Give a soname corresponding to the major version so that dld.sl refuses to
14950 # link against other versions.
14951 version_type=sunos
14952 need_lib_prefix=no
14953 need_version=no
14954 case $host_cpu in
14955 ia64*)
14956 shrext_cmds='.so'
14957 hardcode_into_libs=yes
14958 dynamic_linker="$host_os dld.so"
14959 shlibpath_var=LD_LIBRARY_PATH
14960 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14961 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14962 soname_spec='${libname}${release}${shared_ext}$major'
14963 if test "X$HPUX_IA64_MODE" = X32; then
14964 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
14965 else
14966 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
14968 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14970 hppa*64*)
14971 shrext_cmds='.sl'
14972 hardcode_into_libs=yes
14973 dynamic_linker="$host_os dld.sl"
14974 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
14975 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
14976 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14977 soname_spec='${libname}${release}${shared_ext}$major'
14978 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14979 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
14982 shrext_cmds='.sl'
14983 dynamic_linker="$host_os dld.sl"
14984 shlibpath_var=SHLIB_PATH
14985 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
14986 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14987 soname_spec='${libname}${release}${shared_ext}$major'
14989 esac
14990 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
14991 postinstall_cmds='chmod 555 $lib'
14992 # or fails outright, so override atomically:
14993 install_override_mode=555
14996 interix[3-9]*)
14997 version_type=linux
14998 need_lib_prefix=no
14999 need_version=no
15000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15001 soname_spec='${libname}${release}${shared_ext}$major'
15002 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15003 shlibpath_var=LD_LIBRARY_PATH
15004 shlibpath_overrides_runpath=no
15005 hardcode_into_libs=yes
15008 irix5* | irix6* | nonstopux*)
15009 case $host_os in
15010 nonstopux*) version_type=nonstopux ;;
15012 if test "$lt_cv_prog_gnu_ld" = yes; then
15013 version_type=linux
15014 else
15015 version_type=irix
15016 fi ;;
15017 esac
15018 need_lib_prefix=no
15019 need_version=no
15020 soname_spec='${libname}${release}${shared_ext}$major'
15021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15022 case $host_os in
15023 irix5* | nonstopux*)
15024 libsuff= shlibsuff=
15027 case $LD in # libtool.m4 will add one of these switches to LD
15028 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15029 libsuff= shlibsuff= libmagic=32-bit;;
15030 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15031 libsuff=32 shlibsuff=N32 libmagic=N32;;
15032 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15033 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15034 *) libsuff= shlibsuff= libmagic=never-match;;
15035 esac
15037 esac
15038 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15039 shlibpath_overrides_runpath=no
15040 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15041 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15042 hardcode_into_libs=yes
15045 # No shared lib support for Linux oldld, aout, or coff.
15046 linux*oldld* | linux*aout* | linux*coff*)
15047 dynamic_linker=no
15050 # This must be Linux ELF.
15051 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15052 version_type=linux
15053 need_lib_prefix=no
15054 need_version=no
15055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15056 soname_spec='${libname}${release}${shared_ext}$major'
15057 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15058 shlibpath_var=LD_LIBRARY_PATH
15059 shlibpath_overrides_runpath=no
15061 # Some binutils ld are patched to set DT_RUNPATH
15062 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
15063 $as_echo_n "(cached) " >&6
15064 else
15065 lt_cv_shlibpath_overrides_runpath=no
15066 save_LDFLAGS=$LDFLAGS
15067 save_libdir=$libdir
15068 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
15069 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
15070 if test x$gcc_no_link = xyes; then
15071 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
15073 cat > conftest.$ac_ext <<_ACEOF
15074 program main
15077 _ACEOF
15078 if ac_fn_fc_try_link "$LINENO"; then :
15079 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15080 lt_cv_shlibpath_overrides_runpath=yes
15083 rm -f core conftest.err conftest.$ac_objext \
15084 conftest$ac_exeext conftest.$ac_ext
15085 LDFLAGS=$save_LDFLAGS
15086 libdir=$save_libdir
15090 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15092 # This implies no fast_install, which is unacceptable.
15093 # Some rework will be needed to allow for fast_install
15094 # before this can be enabled.
15095 hardcode_into_libs=yes
15097 # Append ld.so.conf contents to the search path
15098 if test -f /etc/ld.so.conf; then
15099 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' ' '`
15100 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15103 # We used to test for /lib/ld.so.1 and disable shared libraries on
15104 # powerpc, because MkLinux only supported shared libraries with the
15105 # GNU dynamic linker. Since this was broken with cross compilers,
15106 # most powerpc-linux boxes support dynamic linking these days and
15107 # people can always --disable-shared, the test was removed, and we
15108 # assume the GNU/Linux dynamic linker is in use.
15109 dynamic_linker='GNU/Linux ld.so'
15112 netbsd*)
15113 version_type=sunos
15114 need_lib_prefix=no
15115 need_version=no
15116 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15118 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15119 dynamic_linker='NetBSD (a.out) ld.so'
15120 else
15121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15122 soname_spec='${libname}${release}${shared_ext}$major'
15123 dynamic_linker='NetBSD ld.elf_so'
15125 shlibpath_var=LD_LIBRARY_PATH
15126 shlibpath_overrides_runpath=yes
15127 hardcode_into_libs=yes
15130 newsos6)
15131 version_type=linux
15132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15133 shlibpath_var=LD_LIBRARY_PATH
15134 shlibpath_overrides_runpath=yes
15137 *nto* | *qnx*)
15138 version_type=qnx
15139 need_lib_prefix=no
15140 need_version=no
15141 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15142 soname_spec='${libname}${release}${shared_ext}$major'
15143 shlibpath_var=LD_LIBRARY_PATH
15144 shlibpath_overrides_runpath=no
15145 hardcode_into_libs=yes
15146 dynamic_linker='ldqnx.so'
15149 openbsd*)
15150 version_type=sunos
15151 sys_lib_dlsearch_path_spec="/usr/lib"
15152 need_lib_prefix=no
15153 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15154 case $host_os in
15155 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15156 *) need_version=no ;;
15157 esac
15158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15159 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15160 shlibpath_var=LD_LIBRARY_PATH
15161 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15162 case $host_os in
15163 openbsd2.[89] | openbsd2.[89].*)
15164 shlibpath_overrides_runpath=no
15167 shlibpath_overrides_runpath=yes
15169 esac
15170 else
15171 shlibpath_overrides_runpath=yes
15175 os2*)
15176 libname_spec='$name'
15177 shrext_cmds=".dll"
15178 need_lib_prefix=no
15179 library_names_spec='$libname${shared_ext} $libname.a'
15180 dynamic_linker='OS/2 ld.exe'
15181 shlibpath_var=LIBPATH
15184 osf3* | osf4* | osf5*)
15185 version_type=osf
15186 need_lib_prefix=no
15187 need_version=no
15188 soname_spec='${libname}${release}${shared_ext}$major'
15189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15190 shlibpath_var=LD_LIBRARY_PATH
15191 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15192 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15195 rdos*)
15196 dynamic_linker=no
15199 solaris*)
15200 version_type=linux
15201 need_lib_prefix=no
15202 need_version=no
15203 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15204 soname_spec='${libname}${release}${shared_ext}$major'
15205 shlibpath_var=LD_LIBRARY_PATH
15206 shlibpath_overrides_runpath=yes
15207 hardcode_into_libs=yes
15208 # ldd complains unless libraries are executable
15209 postinstall_cmds='chmod +x $lib'
15212 sunos4*)
15213 version_type=sunos
15214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15215 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15216 shlibpath_var=LD_LIBRARY_PATH
15217 shlibpath_overrides_runpath=yes
15218 if test "$with_gnu_ld" = yes; then
15219 need_lib_prefix=no
15221 need_version=yes
15224 sysv4 | sysv4.3*)
15225 version_type=linux
15226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15227 soname_spec='${libname}${release}${shared_ext}$major'
15228 shlibpath_var=LD_LIBRARY_PATH
15229 case $host_vendor in
15230 sni)
15231 shlibpath_overrides_runpath=no
15232 need_lib_prefix=no
15233 runpath_var=LD_RUN_PATH
15235 siemens)
15236 need_lib_prefix=no
15238 motorola)
15239 need_lib_prefix=no
15240 need_version=no
15241 shlibpath_overrides_runpath=no
15242 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15244 esac
15247 sysv4*MP*)
15248 if test -d /usr/nec ;then
15249 version_type=linux
15250 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15251 soname_spec='$libname${shared_ext}.$major'
15252 shlibpath_var=LD_LIBRARY_PATH
15256 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15257 version_type=freebsd-elf
15258 need_lib_prefix=no
15259 need_version=no
15260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15261 soname_spec='${libname}${release}${shared_ext}$major'
15262 shlibpath_var=LD_LIBRARY_PATH
15263 shlibpath_overrides_runpath=yes
15264 hardcode_into_libs=yes
15265 if test "$with_gnu_ld" = yes; then
15266 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15267 else
15268 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15269 case $host_os in
15270 sco3.2v5*)
15271 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15273 esac
15275 sys_lib_dlsearch_path_spec='/usr/lib'
15278 tpf*)
15279 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15280 version_type=linux
15281 need_lib_prefix=no
15282 need_version=no
15283 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15284 shlibpath_var=LD_LIBRARY_PATH
15285 shlibpath_overrides_runpath=no
15286 hardcode_into_libs=yes
15289 uts4*)
15290 version_type=linux
15291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15292 soname_spec='${libname}${release}${shared_ext}$major'
15293 shlibpath_var=LD_LIBRARY_PATH
15297 dynamic_linker=no
15299 esac
15300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15301 $as_echo "$dynamic_linker" >&6; }
15302 test "$dynamic_linker" = no && can_build_shared=no
15304 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15305 if test "$GCC" = yes; then
15306 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15309 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15310 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15312 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15313 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15354 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15355 hardcode_action_FC=
15356 if test -n "$hardcode_libdir_flag_spec_FC" ||
15357 test -n "$runpath_var_FC" ||
15358 test "X$hardcode_automatic_FC" = "Xyes" ; then
15360 # We can hardcode non-existent directories.
15361 if test "$hardcode_direct_FC" != no &&
15362 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15363 # have to relink, otherwise we might link with an installed library
15364 # when we should be linking with a yet-to-be-installed one
15365 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
15366 test "$hardcode_minus_L_FC" != no; then
15367 # Linking always hardcodes the temporary library directory.
15368 hardcode_action_FC=relink
15369 else
15370 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15371 hardcode_action_FC=immediate
15373 else
15374 # We cannot hardcode anything, or else we can only hardcode existing
15375 # directories.
15376 hardcode_action_FC=unsupported
15378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
15379 $as_echo "$hardcode_action_FC" >&6; }
15381 if test "$hardcode_action_FC" = relink ||
15382 test "$inherit_rpath_FC" = yes; then
15383 # Fast installation is not supported
15384 enable_fast_install=no
15385 elif test "$shlibpath_overrides_runpath" = yes ||
15386 test "$enable_shared" = no; then
15387 # Fast installation is not necessary
15388 enable_fast_install=needless
15397 fi # test -n "$compiler"
15399 GCC=$lt_save_GCC
15400 CC="$lt_save_CC"
15401 fi # test "$_lt_disable_FC" != yes
15403 ac_ext=c
15404 ac_cpp='$CPP $CPPFLAGS'
15405 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15406 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15407 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15411 # extra LD Flags which are required for targets
15412 case "${host}" in
15413 *-darwin*)
15414 # Darwin needs -single_module when linking libgfortran
15415 extra_ldflags_libgfortran=-Wl,-single_module
15417 esac
15420 # We need a working compiler at that point, otherwise give a clear
15421 # error message and bail out.
15423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the GNU Fortran compiler is working" >&5
15424 $as_echo_n "checking whether the GNU Fortran compiler is working... " >&6; }
15425 ac_ext=${ac_fc_srcext-f}
15426 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
15427 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
15428 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
15430 cat > conftest.$ac_ext <<_ACEOF
15432 program foo
15433 real, parameter :: bar = sin (12.34 / 2.5)
15434 end program foo
15435 _ACEOF
15436 if ac_fn_fc_try_compile "$LINENO"; then :
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15438 $as_echo "yes" >&6; }
15439 else
15440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15441 $as_echo "no" >&6; }
15442 as_fn_error "GNU Fortran is not working; please report a bug in http://gcc.gnu.org/bugzilla, attaching $PWD/config.log" "$LINENO" 5
15445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15446 ac_ext=c
15447 ac_cpp='$CPP $CPPFLAGS'
15448 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15449 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15450 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15454 # Check whether --enable-largefile was given.
15455 if test "${enable_largefile+set}" = set; then :
15456 enableval=$enable_largefile;
15459 if test "$enable_largefile" != no; then
15461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15462 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15463 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
15464 $as_echo_n "(cached) " >&6
15465 else
15466 ac_cv_sys_largefile_CC=no
15467 if test "$GCC" != yes; then
15468 ac_save_CC=$CC
15469 while :; do
15470 # IRIX 6.2 and later do not support large files by default,
15471 # so use the C compiler's -n32 option if that helps.
15472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15473 /* end confdefs.h. */
15474 #include <sys/types.h>
15475 /* Check that off_t can represent 2**63 - 1 correctly.
15476 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15477 since some C++ compilers masquerading as C compilers
15478 incorrectly reject 9223372036854775807. */
15479 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15480 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15481 && LARGE_OFF_T % 2147483647 == 1)
15482 ? 1 : -1];
15484 main ()
15488 return 0;
15490 _ACEOF
15491 if ac_fn_c_try_compile "$LINENO"; then :
15492 break
15494 rm -f core conftest.err conftest.$ac_objext
15495 CC="$CC -n32"
15496 if ac_fn_c_try_compile "$LINENO"; then :
15497 ac_cv_sys_largefile_CC=' -n32'; break
15499 rm -f core conftest.err conftest.$ac_objext
15500 break
15501 done
15502 CC=$ac_save_CC
15503 rm -f conftest.$ac_ext
15506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15507 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15508 if test "$ac_cv_sys_largefile_CC" != no; then
15509 CC=$CC$ac_cv_sys_largefile_CC
15512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15513 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15514 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
15515 $as_echo_n "(cached) " >&6
15516 else
15517 while :; do
15518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15519 /* end confdefs.h. */
15520 #include <sys/types.h>
15521 /* Check that off_t can represent 2**63 - 1 correctly.
15522 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15523 since some C++ compilers masquerading as C compilers
15524 incorrectly reject 9223372036854775807. */
15525 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15526 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15527 && LARGE_OFF_T % 2147483647 == 1)
15528 ? 1 : -1];
15530 main ()
15534 return 0;
15536 _ACEOF
15537 if ac_fn_c_try_compile "$LINENO"; then :
15538 ac_cv_sys_file_offset_bits=no; break
15540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15542 /* end confdefs.h. */
15543 #define _FILE_OFFSET_BITS 64
15544 #include <sys/types.h>
15545 /* Check that off_t can represent 2**63 - 1 correctly.
15546 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15547 since some C++ compilers masquerading as C compilers
15548 incorrectly reject 9223372036854775807. */
15549 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15550 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15551 && LARGE_OFF_T % 2147483647 == 1)
15552 ? 1 : -1];
15554 main ()
15558 return 0;
15560 _ACEOF
15561 if ac_fn_c_try_compile "$LINENO"; then :
15562 ac_cv_sys_file_offset_bits=64; break
15564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15565 ac_cv_sys_file_offset_bits=unknown
15566 break
15567 done
15569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15570 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15571 case $ac_cv_sys_file_offset_bits in #(
15572 no | unknown) ;;
15574 cat >>confdefs.h <<_ACEOF
15575 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15576 _ACEOF
15578 esac
15579 rm -rf conftest*
15580 if test $ac_cv_sys_file_offset_bits = unknown; then
15581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15582 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15583 if test "${ac_cv_sys_large_files+set}" = set; then :
15584 $as_echo_n "(cached) " >&6
15585 else
15586 while :; do
15587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15588 /* end confdefs.h. */
15589 #include <sys/types.h>
15590 /* Check that off_t can represent 2**63 - 1 correctly.
15591 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15592 since some C++ compilers masquerading as C compilers
15593 incorrectly reject 9223372036854775807. */
15594 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15595 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15596 && LARGE_OFF_T % 2147483647 == 1)
15597 ? 1 : -1];
15599 main ()
15603 return 0;
15605 _ACEOF
15606 if ac_fn_c_try_compile "$LINENO"; then :
15607 ac_cv_sys_large_files=no; break
15609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15611 /* end confdefs.h. */
15612 #define _LARGE_FILES 1
15613 #include <sys/types.h>
15614 /* Check that off_t can represent 2**63 - 1 correctly.
15615 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15616 since some C++ compilers masquerading as C compilers
15617 incorrectly reject 9223372036854775807. */
15618 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15619 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15620 && LARGE_OFF_T % 2147483647 == 1)
15621 ? 1 : -1];
15623 main ()
15627 return 0;
15629 _ACEOF
15630 if ac_fn_c_try_compile "$LINENO"; then :
15631 ac_cv_sys_large_files=1; break
15633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15634 ac_cv_sys_large_files=unknown
15635 break
15636 done
15638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15639 $as_echo "$ac_cv_sys_large_files" >&6; }
15640 case $ac_cv_sys_large_files in #(
15641 no | unknown) ;;
15643 cat >>confdefs.h <<_ACEOF
15644 #define _LARGE_FILES $ac_cv_sys_large_files
15645 _ACEOF
15647 esac
15648 rm -rf conftest*
15652 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
15653 if test "x$ac_cv_type_off_t" = x""yes; then :
15655 else
15657 cat >>confdefs.h <<_ACEOF
15658 #define off_t long int
15659 _ACEOF
15664 # check header files
15665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15666 $as_echo_n "checking for ANSI C header files... " >&6; }
15667 if test "${ac_cv_header_stdc+set}" = set; then :
15668 $as_echo_n "(cached) " >&6
15669 else
15670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15671 /* end confdefs.h. */
15672 #include <stdlib.h>
15673 #include <stdarg.h>
15674 #include <string.h>
15675 #include <float.h>
15678 main ()
15682 return 0;
15684 _ACEOF
15685 if ac_fn_c_try_compile "$LINENO"; then :
15686 ac_cv_header_stdc=yes
15687 else
15688 ac_cv_header_stdc=no
15690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15692 if test $ac_cv_header_stdc = yes; then
15693 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15695 /* end confdefs.h. */
15696 #include <string.h>
15698 _ACEOF
15699 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15700 $EGREP "memchr" >/dev/null 2>&1; then :
15702 else
15703 ac_cv_header_stdc=no
15705 rm -f conftest*
15709 if test $ac_cv_header_stdc = yes; then
15710 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15712 /* end confdefs.h. */
15713 #include <stdlib.h>
15715 _ACEOF
15716 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15717 $EGREP "free" >/dev/null 2>&1; then :
15719 else
15720 ac_cv_header_stdc=no
15722 rm -f conftest*
15726 if test $ac_cv_header_stdc = yes; then
15727 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15728 if test "$cross_compiling" = yes; then :
15730 else
15731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15732 /* end confdefs.h. */
15733 #include <ctype.h>
15734 #include <stdlib.h>
15735 #if ((' ' & 0x0FF) == 0x020)
15736 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15737 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15738 #else
15739 # define ISLOWER(c) \
15740 (('a' <= (c) && (c) <= 'i') \
15741 || ('j' <= (c) && (c) <= 'r') \
15742 || ('s' <= (c) && (c) <= 'z'))
15743 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15744 #endif
15746 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15748 main ()
15750 int i;
15751 for (i = 0; i < 256; i++)
15752 if (XOR (islower (i), ISLOWER (i))
15753 || toupper (i) != TOUPPER (i))
15754 return 2;
15755 return 0;
15757 _ACEOF
15758 if ac_fn_c_try_run "$LINENO"; then :
15760 else
15761 ac_cv_header_stdc=no
15763 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15764 conftest.$ac_objext conftest.beam conftest.$ac_ext
15769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15770 $as_echo "$ac_cv_header_stdc" >&6; }
15771 if test $ac_cv_header_stdc = yes; then
15773 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
15778 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
15779 if test "${ac_cv_header_time+set}" = set; then :
15780 $as_echo_n "(cached) " >&6
15781 else
15782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15783 /* end confdefs.h. */
15784 #include <sys/types.h>
15785 #include <sys/time.h>
15786 #include <time.h>
15789 main ()
15791 if ((struct tm *) 0)
15792 return 0;
15794 return 0;
15796 _ACEOF
15797 if ac_fn_c_try_compile "$LINENO"; then :
15798 ac_cv_header_time=yes
15799 else
15800 ac_cv_header_time=no
15802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
15805 $as_echo "$ac_cv_header_time" >&6; }
15806 if test $ac_cv_header_time = yes; then
15808 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
15812 for ac_header in stdio.h stdlib.h string.h unistd.h signal.h stdarg.h
15813 do :
15814 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15815 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15816 eval as_val=\$$as_ac_Header
15817 if test "x$as_val" = x""yes; then :
15818 cat >>confdefs.h <<_ACEOF
15819 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15820 _ACEOF
15824 done
15826 for ac_header in time.h sys/time.h sys/times.h sys/resource.h
15827 do :
15828 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15829 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15830 eval as_val=\$$as_ac_Header
15831 if test "x$as_val" = x""yes; then :
15832 cat >>confdefs.h <<_ACEOF
15833 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15834 _ACEOF
15838 done
15840 for ac_header in sys/types.h sys/stat.h sys/wait.h floatingpoint.h ieeefp.h
15841 do :
15842 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15843 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15844 eval as_val=\$$as_ac_Header
15845 if test "x$as_val" = x""yes; then :
15846 cat >>confdefs.h <<_ACEOF
15847 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15848 _ACEOF
15852 done
15854 for ac_header in fenv.h fptrap.h float.h execinfo.h pwd.h
15855 do :
15856 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15857 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15858 eval as_val=\$$as_ac_Header
15859 if test "x$as_val" = x""yes; then :
15860 cat >>confdefs.h <<_ACEOF
15861 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15862 _ACEOF
15866 done
15868 ac_fn_c_check_header_mongrel "$LINENO" "complex.h" "ac_cv_header_complex_h" "$ac_includes_default"
15869 if test "x$ac_cv_header_complex_h" = x""yes; then :
15871 $as_echo "#define HAVE_COMPLEX_H 1" >>confdefs.h
15878 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
15880 acx_cv_header_stdint=stddef.h
15881 acx_cv_header_stdint_kind="(already complete)"
15882 for i in stdint.h $inttype_headers; do
15883 unset ac_cv_type_uintptr_t
15884 unset ac_cv_type_uintmax_t
15885 unset ac_cv_type_int_least32_t
15886 unset ac_cv_type_int_fast32_t
15887 unset ac_cv_type_uint64_t
15888 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
15889 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
15890 #include <$i>
15892 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
15893 acx_cv_header_stdint=$i
15894 else
15895 continue
15898 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15899 #include <$i>
15901 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
15903 else
15904 acx_cv_header_stdint_kind="(mostly complete)"
15907 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
15908 #include <$i>
15910 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
15912 else
15913 acx_cv_header_stdint_kind="(mostly complete)"
15916 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
15917 #include <$i>
15919 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
15921 else
15922 acx_cv_header_stdint_kind="(mostly complete)"
15925 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
15926 #include <$i>
15928 if test "x$ac_cv_type_uint64_t" = x""yes; then :
15930 else
15931 acx_cv_header_stdint_kind="(lacks uint64_t)"
15934 break
15935 done
15936 if test "$acx_cv_header_stdint" = stddef.h; then
15937 acx_cv_header_stdint_kind="(lacks uintmax_t)"
15938 for i in stdint.h $inttype_headers; do
15939 unset ac_cv_type_uintptr_t
15940 unset ac_cv_type_uint32_t
15941 unset ac_cv_type_uint64_t
15942 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
15943 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
15944 #include <$i>
15946 if test "x$ac_cv_type_uint32_t" = x""yes; then :
15947 acx_cv_header_stdint=$i
15948 else
15949 continue
15952 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
15953 #include <$i>
15955 if test "x$ac_cv_type_uint64_t" = x""yes; then :
15959 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
15960 #include <$i>
15962 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
15966 break
15967 done
15969 if test "$acx_cv_header_stdint" = stddef.h; then
15970 acx_cv_header_stdint_kind="(u_intXX_t style)"
15971 for i in sys/types.h $inttype_headers; do
15972 unset ac_cv_type_u_int32_t
15973 unset ac_cv_type_u_int64_t
15974 $as_echo_n "looking for u_intXX_t types in $i, " >&6
15975 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
15976 #include <$i>
15978 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
15979 acx_cv_header_stdint=$i
15980 else
15981 continue
15984 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
15985 #include <$i>
15987 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
15991 break
15992 done
15994 if test "$acx_cv_header_stdint" = stddef.h; then
15995 acx_cv_header_stdint_kind="(using manual detection)"
15998 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
15999 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
16000 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
16001 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
16002 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
16004 # ----------------- Summarize what we found so far
16006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
16007 $as_echo_n "checking what to include in gstdint.h... " >&6; }
16009 case `$as_basename -- gstdint.h ||
16010 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
16011 Xgstdint.h : 'X\(//\)$' \| \
16012 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
16013 $as_echo X/gstdint.h |
16014 sed '/^.*\/\([^/][^/]*\)\/*$/{
16015 s//\1/
16018 /^X\/\(\/\/\)$/{
16019 s//\1/
16022 /^X\/\(\/\).*/{
16023 s//\1/
16026 s/.*/./; q'` in
16027 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16028 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16029 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16030 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16031 *) ;;
16032 esac
16034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
16035 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
16037 # ----------------- done included file, check C basic types --------
16039 # Lacking an uintptr_t? Test size of void *
16040 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
16041 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
16042 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16043 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16044 # This bug is HP SR number 8606223364.
16045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16046 $as_echo_n "checking size of void *... " >&6; }
16047 if test "${ac_cv_sizeof_void_p+set}" = set; then :
16048 $as_echo_n "(cached) " >&6
16049 else
16050 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
16052 else
16053 if test "$ac_cv_type_void_p" = yes; then
16054 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16055 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16056 { as_fn_set_status 77
16057 as_fn_error "cannot compute sizeof (void *)
16058 See \`config.log' for more details." "$LINENO" 5; }; }
16059 else
16060 ac_cv_sizeof_void_p=0
16065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16066 $as_echo "$ac_cv_sizeof_void_p" >&6; }
16070 cat >>confdefs.h <<_ACEOF
16071 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16072 _ACEOF
16075 esac
16077 # Lacking an uint64_t? Test size of long
16078 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
16079 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
16080 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16081 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16082 # This bug is HP SR number 8606223364.
16083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16084 $as_echo_n "checking size of long... " >&6; }
16085 if test "${ac_cv_sizeof_long+set}" = set; then :
16086 $as_echo_n "(cached) " >&6
16087 else
16088 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
16090 else
16091 if test "$ac_cv_type_long" = yes; then
16092 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16093 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16094 { as_fn_set_status 77
16095 as_fn_error "cannot compute sizeof (long)
16096 See \`config.log' for more details." "$LINENO" 5; }; }
16097 else
16098 ac_cv_sizeof_long=0
16103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16104 $as_echo "$ac_cv_sizeof_long" >&6; }
16108 cat >>confdefs.h <<_ACEOF
16109 #define SIZEOF_LONG $ac_cv_sizeof_long
16110 _ACEOF
16113 esac
16115 if test $acx_cv_header_stdint = stddef.h; then
16116 # Lacking a good header? Test size of everything and deduce all types.
16117 # The cast to long int works around a bug in the HP C Compiler
16118 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16119 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16120 # This bug is HP SR number 8606223364.
16121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16122 $as_echo_n "checking size of int... " >&6; }
16123 if test "${ac_cv_sizeof_int+set}" = set; then :
16124 $as_echo_n "(cached) " >&6
16125 else
16126 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
16128 else
16129 if test "$ac_cv_type_int" = yes; then
16130 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16131 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16132 { as_fn_set_status 77
16133 as_fn_error "cannot compute sizeof (int)
16134 See \`config.log' for more details." "$LINENO" 5; }; }
16135 else
16136 ac_cv_sizeof_int=0
16141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16142 $as_echo "$ac_cv_sizeof_int" >&6; }
16146 cat >>confdefs.h <<_ACEOF
16147 #define SIZEOF_INT $ac_cv_sizeof_int
16148 _ACEOF
16151 # The cast to long int works around a bug in the HP C Compiler
16152 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16153 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16154 # This bug is HP SR number 8606223364.
16155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16156 $as_echo_n "checking size of short... " >&6; }
16157 if test "${ac_cv_sizeof_short+set}" = set; then :
16158 $as_echo_n "(cached) " >&6
16159 else
16160 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
16162 else
16163 if test "$ac_cv_type_short" = yes; then
16164 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16165 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16166 { as_fn_set_status 77
16167 as_fn_error "cannot compute sizeof (short)
16168 See \`config.log' for more details." "$LINENO" 5; }; }
16169 else
16170 ac_cv_sizeof_short=0
16175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16176 $as_echo "$ac_cv_sizeof_short" >&6; }
16180 cat >>confdefs.h <<_ACEOF
16181 #define SIZEOF_SHORT $ac_cv_sizeof_short
16182 _ACEOF
16185 # The cast to long int works around a bug in the HP C Compiler
16186 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16187 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16188 # This bug is HP SR number 8606223364.
16189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
16190 $as_echo_n "checking size of char... " >&6; }
16191 if test "${ac_cv_sizeof_char+set}" = set; then :
16192 $as_echo_n "(cached) " >&6
16193 else
16194 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
16196 else
16197 if test "$ac_cv_type_char" = yes; then
16198 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16199 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16200 { as_fn_set_status 77
16201 as_fn_error "cannot compute sizeof (char)
16202 See \`config.log' for more details." "$LINENO" 5; }; }
16203 else
16204 ac_cv_sizeof_char=0
16209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16210 $as_echo "$ac_cv_sizeof_char" >&6; }
16214 cat >>confdefs.h <<_ACEOF
16215 #define SIZEOF_CHAR $ac_cv_sizeof_char
16216 _ACEOF
16220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
16221 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
16222 case "$ac_cv_sizeof_char" in
16223 1) acx_cv_type_int8_t=char ;;
16224 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
16225 esac
16226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
16227 $as_echo "$acx_cv_type_int8_t" >&6; }
16229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
16230 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
16231 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16232 2:*) acx_cv_type_int16_t=int ;;
16233 *:2) acx_cv_type_int16_t=short ;;
16234 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
16235 esac
16236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
16237 $as_echo "$acx_cv_type_int16_t" >&6; }
16239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
16240 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
16241 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16242 4:*) acx_cv_type_int32_t=int ;;
16243 *:4) acx_cv_type_int32_t=long ;;
16244 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
16245 esac
16246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
16247 $as_echo "$acx_cv_type_int32_t" >&6; }
16250 # These tests are here to make the output prettier
16252 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16253 case "$ac_cv_sizeof_long" in
16254 8) acx_cv_type_int64_t=long ;;
16255 esac
16256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
16257 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
16258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16259 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16262 # Now we can use the above types
16264 if test "$ac_cv_type_uintptr_t" != yes; then
16265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
16266 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
16267 case $ac_cv_sizeof_void_p in
16268 2) acx_cv_type_intptr_t=int16_t ;;
16269 4) acx_cv_type_intptr_t=int32_t ;;
16270 8) acx_cv_type_intptr_t=int64_t ;;
16271 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
16272 esac
16273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
16274 $as_echo "$acx_cv_type_intptr_t" >&6; }
16277 # ----------------- done all checks, emit header -------------
16278 ac_config_commands="$ac_config_commands gstdint.h"
16283 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
16284 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
16286 cat >>confdefs.h <<_ACEOF
16287 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
16288 _ACEOF
16293 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
16294 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
16296 cat >>confdefs.h <<_ACEOF
16297 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
16298 _ACEOF
16303 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
16304 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
16306 cat >>confdefs.h <<_ACEOF
16307 #define HAVE_STRUCT_STAT_ST_RDEV 1
16308 _ACEOF
16314 # Check for library functions.
16315 for ac_func in getrusage times mkstemp strtof strtold snprintf ftruncate chsize
16316 do :
16317 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16318 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16319 eval as_val=\$$as_ac_var
16320 if test "x$as_val" = x""yes; then :
16321 cat >>confdefs.h <<_ACEOF
16322 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16323 _ACEOF
16326 done
16328 for ac_func in chdir strerror getlogin gethostname kill link symlink perror
16329 do :
16330 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16331 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16332 eval as_val=\$$as_ac_var
16333 if test "x$as_val" = x""yes; then :
16334 cat >>confdefs.h <<_ACEOF
16335 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16336 _ACEOF
16339 done
16341 for ac_func in sleep time ttyname signal alarm clock access fork execl
16342 do :
16343 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16344 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16345 eval as_val=\$$as_ac_var
16346 if test "x$as_val" = x""yes; then :
16347 cat >>confdefs.h <<_ACEOF
16348 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16349 _ACEOF
16352 done
16354 for ac_func in wait setmode execvp pipe dup2 close fdopen strcasestr getrlimit
16355 do :
16356 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16357 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16358 eval as_val=\$$as_ac_var
16359 if test "x$as_val" = x""yes; then :
16360 cat >>confdefs.h <<_ACEOF
16361 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16362 _ACEOF
16365 done
16367 for ac_func in gettimeofday stat fstat lstat getpwuid vsnprintf dup getcwd
16368 do :
16369 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16370 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16371 eval as_val=\$$as_ac_var
16372 if test "x$as_val" = x""yes; then :
16373 cat >>confdefs.h <<_ACEOF
16374 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16375 _ACEOF
16378 done
16380 for ac_func in localtime_r gmtime_r strerror_r getpwuid_r ttyname_r
16381 do :
16382 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16383 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16384 eval as_val=\$$as_ac_var
16385 if test "x$as_val" = x""yes; then :
16386 cat >>confdefs.h <<_ACEOF
16387 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16388 _ACEOF
16391 done
16393 for ac_func in clock_gettime strftime
16394 do :
16395 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16396 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16397 eval as_val=\$$as_ac_var
16398 if test "x$as_val" = x""yes; then :
16399 cat >>confdefs.h <<_ACEOF
16400 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16401 _ACEOF
16404 done
16407 # Check for glibc backtrace functions
16408 for ac_func in backtrace backtrace_symbols
16409 do :
16410 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16411 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16412 eval as_val=\$$as_ac_var
16413 if test "x$as_val" = x""yes; then :
16414 cat >>confdefs.h <<_ACEOF
16415 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16416 _ACEOF
16419 done
16422 # Check for types
16423 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
16424 if test "x$ac_cv_type_intptr_t" = x""yes; then :
16426 cat >>confdefs.h <<_ACEOF
16427 #define HAVE_INTPTR_T 1
16428 _ACEOF
16433 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
16434 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
16436 cat >>confdefs.h <<_ACEOF
16437 #define HAVE_UINTPTR_T 1
16438 _ACEOF
16444 # Check libc for getgid, getpid, getuid
16445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getgid in -lc" >&5
16446 $as_echo_n "checking for getgid in -lc... " >&6; }
16447 if test "${ac_cv_lib_c_getgid+set}" = set; then :
16448 $as_echo_n "(cached) " >&6
16449 else
16450 ac_check_lib_save_LIBS=$LIBS
16451 LIBS="-lc $LIBS"
16452 if test x$gcc_no_link = xyes; then
16453 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16456 /* end confdefs.h. */
16458 /* Override any GCC internal prototype to avoid an error.
16459 Use char because int might match the return type of a GCC
16460 builtin and then its argument prototype would still apply. */
16461 #ifdef __cplusplus
16462 extern "C"
16463 #endif
16464 char getgid ();
16466 main ()
16468 return getgid ();
16470 return 0;
16472 _ACEOF
16473 if ac_fn_c_try_link "$LINENO"; then :
16474 ac_cv_lib_c_getgid=yes
16475 else
16476 ac_cv_lib_c_getgid=no
16478 rm -f core conftest.err conftest.$ac_objext \
16479 conftest$ac_exeext conftest.$ac_ext
16480 LIBS=$ac_check_lib_save_LIBS
16482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getgid" >&5
16483 $as_echo "$ac_cv_lib_c_getgid" >&6; }
16484 if test "x$ac_cv_lib_c_getgid" = x""yes; then :
16486 $as_echo "#define HAVE_GETGID 1" >>confdefs.h
16490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getpid in -lc" >&5
16491 $as_echo_n "checking for getpid in -lc... " >&6; }
16492 if test "${ac_cv_lib_c_getpid+set}" = set; then :
16493 $as_echo_n "(cached) " >&6
16494 else
16495 ac_check_lib_save_LIBS=$LIBS
16496 LIBS="-lc $LIBS"
16497 if test x$gcc_no_link = xyes; then
16498 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16501 /* end confdefs.h. */
16503 /* Override any GCC internal prototype to avoid an error.
16504 Use char because int might match the return type of a GCC
16505 builtin and then its argument prototype would still apply. */
16506 #ifdef __cplusplus
16507 extern "C"
16508 #endif
16509 char getpid ();
16511 main ()
16513 return getpid ();
16515 return 0;
16517 _ACEOF
16518 if ac_fn_c_try_link "$LINENO"; then :
16519 ac_cv_lib_c_getpid=yes
16520 else
16521 ac_cv_lib_c_getpid=no
16523 rm -f core conftest.err conftest.$ac_objext \
16524 conftest$ac_exeext conftest.$ac_ext
16525 LIBS=$ac_check_lib_save_LIBS
16527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getpid" >&5
16528 $as_echo "$ac_cv_lib_c_getpid" >&6; }
16529 if test "x$ac_cv_lib_c_getpid" = x""yes; then :
16531 $as_echo "#define HAVE_GETPID 1" >>confdefs.h
16535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getppid in -lc" >&5
16536 $as_echo_n "checking for getppid in -lc... " >&6; }
16537 if test "${ac_cv_lib_c_getppid+set}" = set; then :
16538 $as_echo_n "(cached) " >&6
16539 else
16540 ac_check_lib_save_LIBS=$LIBS
16541 LIBS="-lc $LIBS"
16542 if test x$gcc_no_link = xyes; then
16543 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16546 /* end confdefs.h. */
16548 /* Override any GCC internal prototype to avoid an error.
16549 Use char because int might match the return type of a GCC
16550 builtin and then its argument prototype would still apply. */
16551 #ifdef __cplusplus
16552 extern "C"
16553 #endif
16554 char getppid ();
16556 main ()
16558 return getppid ();
16560 return 0;
16562 _ACEOF
16563 if ac_fn_c_try_link "$LINENO"; then :
16564 ac_cv_lib_c_getppid=yes
16565 else
16566 ac_cv_lib_c_getppid=no
16568 rm -f core conftest.err conftest.$ac_objext \
16569 conftest$ac_exeext conftest.$ac_ext
16570 LIBS=$ac_check_lib_save_LIBS
16572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getppid" >&5
16573 $as_echo "$ac_cv_lib_c_getppid" >&6; }
16574 if test "x$ac_cv_lib_c_getppid" = x""yes; then :
16576 $as_echo "#define HAVE_GETPPID 1" >>confdefs.h
16580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getuid in -lc" >&5
16581 $as_echo_n "checking for getuid in -lc... " >&6; }
16582 if test "${ac_cv_lib_c_getuid+set}" = set; then :
16583 $as_echo_n "(cached) " >&6
16584 else
16585 ac_check_lib_save_LIBS=$LIBS
16586 LIBS="-lc $LIBS"
16587 if test x$gcc_no_link = xyes; then
16588 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16590 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16591 /* end confdefs.h. */
16593 /* Override any GCC internal prototype to avoid an error.
16594 Use char because int might match the return type of a GCC
16595 builtin and then its argument prototype would still apply. */
16596 #ifdef __cplusplus
16597 extern "C"
16598 #endif
16599 char getuid ();
16601 main ()
16603 return getuid ();
16605 return 0;
16607 _ACEOF
16608 if ac_fn_c_try_link "$LINENO"; then :
16609 ac_cv_lib_c_getuid=yes
16610 else
16611 ac_cv_lib_c_getuid=no
16613 rm -f core conftest.err conftest.$ac_objext \
16614 conftest$ac_exeext conftest.$ac_ext
16615 LIBS=$ac_check_lib_save_LIBS
16617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_getuid" >&5
16618 $as_echo "$ac_cv_lib_c_getuid" >&6; }
16619 if test "x$ac_cv_lib_c_getuid" = x""yes; then :
16621 $as_echo "#define HAVE_GETUID 1" >>confdefs.h
16625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for geteuid in -lc" >&5
16626 $as_echo_n "checking for geteuid in -lc... " >&6; }
16627 if test "${ac_cv_lib_c_geteuid+set}" = set; then :
16628 $as_echo_n "(cached) " >&6
16629 else
16630 ac_check_lib_save_LIBS=$LIBS
16631 LIBS="-lc $LIBS"
16632 if test x$gcc_no_link = xyes; then
16633 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16636 /* end confdefs.h. */
16638 /* Override any GCC internal prototype to avoid an error.
16639 Use char because int might match the return type of a GCC
16640 builtin and then its argument prototype would still apply. */
16641 #ifdef __cplusplus
16642 extern "C"
16643 #endif
16644 char geteuid ();
16646 main ()
16648 return geteuid ();
16650 return 0;
16652 _ACEOF
16653 if ac_fn_c_try_link "$LINENO"; then :
16654 ac_cv_lib_c_geteuid=yes
16655 else
16656 ac_cv_lib_c_geteuid=no
16658 rm -f core conftest.err conftest.$ac_objext \
16659 conftest$ac_exeext conftest.$ac_ext
16660 LIBS=$ac_check_lib_save_LIBS
16662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_geteuid" >&5
16663 $as_echo "$ac_cv_lib_c_geteuid" >&6; }
16664 if test "x$ac_cv_lib_c_geteuid" = x""yes; then :
16666 $as_echo "#define HAVE_GETEUID 1" >>confdefs.h
16671 # Check for C99 (and other IEEE) math functions
16672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosf in -lm" >&5
16673 $as_echo_n "checking for acosf in -lm... " >&6; }
16674 if test "${ac_cv_lib_m_acosf+set}" = set; then :
16675 $as_echo_n "(cached) " >&6
16676 else
16677 ac_check_lib_save_LIBS=$LIBS
16678 LIBS="-lm $LIBS"
16679 if test x$gcc_no_link = xyes; then
16680 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16683 /* end confdefs.h. */
16685 /* Override any GCC internal prototype to avoid an error.
16686 Use char because int might match the return type of a GCC
16687 builtin and then its argument prototype would still apply. */
16688 #ifdef __cplusplus
16689 extern "C"
16690 #endif
16691 char acosf ();
16693 main ()
16695 return acosf ();
16697 return 0;
16699 _ACEOF
16700 if ac_fn_c_try_link "$LINENO"; then :
16701 ac_cv_lib_m_acosf=yes
16702 else
16703 ac_cv_lib_m_acosf=no
16705 rm -f core conftest.err conftest.$ac_objext \
16706 conftest$ac_exeext conftest.$ac_ext
16707 LIBS=$ac_check_lib_save_LIBS
16709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_acosf" >&5
16710 $as_echo "$ac_cv_lib_m_acosf" >&6; }
16711 if test "x$ac_cv_lib_m_acosf" = x""yes; then :
16713 $as_echo "#define HAVE_ACOSF 1" >>confdefs.h
16717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acos in -lm" >&5
16718 $as_echo_n "checking for acos in -lm... " >&6; }
16719 if test "${ac_cv_lib_m_acos+set}" = set; then :
16720 $as_echo_n "(cached) " >&6
16721 else
16722 ac_check_lib_save_LIBS=$LIBS
16723 LIBS="-lm $LIBS"
16724 if test x$gcc_no_link = xyes; then
16725 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16728 /* end confdefs.h. */
16730 /* Override any GCC internal prototype to avoid an error.
16731 Use char because int might match the return type of a GCC
16732 builtin and then its argument prototype would still apply. */
16733 #ifdef __cplusplus
16734 extern "C"
16735 #endif
16736 char acos ();
16738 main ()
16740 return acos ();
16742 return 0;
16744 _ACEOF
16745 if ac_fn_c_try_link "$LINENO"; then :
16746 ac_cv_lib_m_acos=yes
16747 else
16748 ac_cv_lib_m_acos=no
16750 rm -f core conftest.err conftest.$ac_objext \
16751 conftest$ac_exeext conftest.$ac_ext
16752 LIBS=$ac_check_lib_save_LIBS
16754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_acos" >&5
16755 $as_echo "$ac_cv_lib_m_acos" >&6; }
16756 if test "x$ac_cv_lib_m_acos" = x""yes; then :
16758 $as_echo "#define HAVE_ACOS 1" >>confdefs.h
16762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosl in -lm" >&5
16763 $as_echo_n "checking for acosl in -lm... " >&6; }
16764 if test "${ac_cv_lib_m_acosl+set}" = set; then :
16765 $as_echo_n "(cached) " >&6
16766 else
16767 ac_check_lib_save_LIBS=$LIBS
16768 LIBS="-lm $LIBS"
16769 if test x$gcc_no_link = xyes; then
16770 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16773 /* end confdefs.h. */
16775 /* Override any GCC internal prototype to avoid an error.
16776 Use char because int might match the return type of a GCC
16777 builtin and then its argument prototype would still apply. */
16778 #ifdef __cplusplus
16779 extern "C"
16780 #endif
16781 char acosl ();
16783 main ()
16785 return acosl ();
16787 return 0;
16789 _ACEOF
16790 if ac_fn_c_try_link "$LINENO"; then :
16791 ac_cv_lib_m_acosl=yes
16792 else
16793 ac_cv_lib_m_acosl=no
16795 rm -f core conftest.err conftest.$ac_objext \
16796 conftest$ac_exeext conftest.$ac_ext
16797 LIBS=$ac_check_lib_save_LIBS
16799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_acosl" >&5
16800 $as_echo "$ac_cv_lib_m_acosl" >&6; }
16801 if test "x$ac_cv_lib_m_acosl" = x""yes; then :
16803 $as_echo "#define HAVE_ACOSL 1" >>confdefs.h
16807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshf in -lm" >&5
16808 $as_echo_n "checking for acoshf in -lm... " >&6; }
16809 if test "${ac_cv_lib_m_acoshf+set}" = set; then :
16810 $as_echo_n "(cached) " >&6
16811 else
16812 ac_check_lib_save_LIBS=$LIBS
16813 LIBS="-lm $LIBS"
16814 if test x$gcc_no_link = xyes; then
16815 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16818 /* end confdefs.h. */
16820 /* Override any GCC internal prototype to avoid an error.
16821 Use char because int might match the return type of a GCC
16822 builtin and then its argument prototype would still apply. */
16823 #ifdef __cplusplus
16824 extern "C"
16825 #endif
16826 char acoshf ();
16828 main ()
16830 return acoshf ();
16832 return 0;
16834 _ACEOF
16835 if ac_fn_c_try_link "$LINENO"; then :
16836 ac_cv_lib_m_acoshf=yes
16837 else
16838 ac_cv_lib_m_acoshf=no
16840 rm -f core conftest.err conftest.$ac_objext \
16841 conftest$ac_exeext conftest.$ac_ext
16842 LIBS=$ac_check_lib_save_LIBS
16844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_acoshf" >&5
16845 $as_echo "$ac_cv_lib_m_acoshf" >&6; }
16846 if test "x$ac_cv_lib_m_acoshf" = x""yes; then :
16848 $as_echo "#define HAVE_ACOSHF 1" >>confdefs.h
16852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosh in -lm" >&5
16853 $as_echo_n "checking for acosh in -lm... " >&6; }
16854 if test "${ac_cv_lib_m_acosh+set}" = set; then :
16855 $as_echo_n "(cached) " >&6
16856 else
16857 ac_check_lib_save_LIBS=$LIBS
16858 LIBS="-lm $LIBS"
16859 if test x$gcc_no_link = xyes; then
16860 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16863 /* end confdefs.h. */
16865 /* Override any GCC internal prototype to avoid an error.
16866 Use char because int might match the return type of a GCC
16867 builtin and then its argument prototype would still apply. */
16868 #ifdef __cplusplus
16869 extern "C"
16870 #endif
16871 char acosh ();
16873 main ()
16875 return acosh ();
16877 return 0;
16879 _ACEOF
16880 if ac_fn_c_try_link "$LINENO"; then :
16881 ac_cv_lib_m_acosh=yes
16882 else
16883 ac_cv_lib_m_acosh=no
16885 rm -f core conftest.err conftest.$ac_objext \
16886 conftest$ac_exeext conftest.$ac_ext
16887 LIBS=$ac_check_lib_save_LIBS
16889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_acosh" >&5
16890 $as_echo "$ac_cv_lib_m_acosh" >&6; }
16891 if test "x$ac_cv_lib_m_acosh" = x""yes; then :
16893 $as_echo "#define HAVE_ACOSH 1" >>confdefs.h
16897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshl in -lm" >&5
16898 $as_echo_n "checking for acoshl in -lm... " >&6; }
16899 if test "${ac_cv_lib_m_acoshl+set}" = set; then :
16900 $as_echo_n "(cached) " >&6
16901 else
16902 ac_check_lib_save_LIBS=$LIBS
16903 LIBS="-lm $LIBS"
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 /* Override any GCC internal prototype to avoid an error.
16911 Use char because int might match the return type of a GCC
16912 builtin and then its argument prototype would still apply. */
16913 #ifdef __cplusplus
16914 extern "C"
16915 #endif
16916 char acoshl ();
16918 main ()
16920 return acoshl ();
16922 return 0;
16924 _ACEOF
16925 if ac_fn_c_try_link "$LINENO"; then :
16926 ac_cv_lib_m_acoshl=yes
16927 else
16928 ac_cv_lib_m_acoshl=no
16930 rm -f core conftest.err conftest.$ac_objext \
16931 conftest$ac_exeext conftest.$ac_ext
16932 LIBS=$ac_check_lib_save_LIBS
16934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_acoshl" >&5
16935 $as_echo "$ac_cv_lib_m_acoshl" >&6; }
16936 if test "x$ac_cv_lib_m_acoshl" = x""yes; then :
16938 $as_echo "#define HAVE_ACOSHL 1" >>confdefs.h
16942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinf in -lm" >&5
16943 $as_echo_n "checking for asinf in -lm... " >&6; }
16944 if test "${ac_cv_lib_m_asinf+set}" = set; then :
16945 $as_echo_n "(cached) " >&6
16946 else
16947 ac_check_lib_save_LIBS=$LIBS
16948 LIBS="-lm $LIBS"
16949 if test x$gcc_no_link = xyes; then
16950 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16953 /* end confdefs.h. */
16955 /* Override any GCC internal prototype to avoid an error.
16956 Use char because int might match the return type of a GCC
16957 builtin and then its argument prototype would still apply. */
16958 #ifdef __cplusplus
16959 extern "C"
16960 #endif
16961 char asinf ();
16963 main ()
16965 return asinf ();
16967 return 0;
16969 _ACEOF
16970 if ac_fn_c_try_link "$LINENO"; then :
16971 ac_cv_lib_m_asinf=yes
16972 else
16973 ac_cv_lib_m_asinf=no
16975 rm -f core conftest.err conftest.$ac_objext \
16976 conftest$ac_exeext conftest.$ac_ext
16977 LIBS=$ac_check_lib_save_LIBS
16979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_asinf" >&5
16980 $as_echo "$ac_cv_lib_m_asinf" >&6; }
16981 if test "x$ac_cv_lib_m_asinf" = x""yes; then :
16983 $as_echo "#define HAVE_ASINF 1" >>confdefs.h
16987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin in -lm" >&5
16988 $as_echo_n "checking for asin in -lm... " >&6; }
16989 if test "${ac_cv_lib_m_asin+set}" = set; then :
16990 $as_echo_n "(cached) " >&6
16991 else
16992 ac_check_lib_save_LIBS=$LIBS
16993 LIBS="-lm $LIBS"
16994 if test x$gcc_no_link = xyes; then
16995 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16998 /* end confdefs.h. */
17000 /* Override any GCC internal prototype to avoid an error.
17001 Use char because int might match the return type of a GCC
17002 builtin and then its argument prototype would still apply. */
17003 #ifdef __cplusplus
17004 extern "C"
17005 #endif
17006 char asin ();
17008 main ()
17010 return asin ();
17012 return 0;
17014 _ACEOF
17015 if ac_fn_c_try_link "$LINENO"; then :
17016 ac_cv_lib_m_asin=yes
17017 else
17018 ac_cv_lib_m_asin=no
17020 rm -f core conftest.err conftest.$ac_objext \
17021 conftest$ac_exeext conftest.$ac_ext
17022 LIBS=$ac_check_lib_save_LIBS
17024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_asin" >&5
17025 $as_echo "$ac_cv_lib_m_asin" >&6; }
17026 if test "x$ac_cv_lib_m_asin" = x""yes; then :
17028 $as_echo "#define HAVE_ASIN 1" >>confdefs.h
17032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinl in -lm" >&5
17033 $as_echo_n "checking for asinl in -lm... " >&6; }
17034 if test "${ac_cv_lib_m_asinl+set}" = set; then :
17035 $as_echo_n "(cached) " >&6
17036 else
17037 ac_check_lib_save_LIBS=$LIBS
17038 LIBS="-lm $LIBS"
17039 if test x$gcc_no_link = xyes; then
17040 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17043 /* end confdefs.h. */
17045 /* Override any GCC internal prototype to avoid an error.
17046 Use char because int might match the return type of a GCC
17047 builtin and then its argument prototype would still apply. */
17048 #ifdef __cplusplus
17049 extern "C"
17050 #endif
17051 char asinl ();
17053 main ()
17055 return asinl ();
17057 return 0;
17059 _ACEOF
17060 if ac_fn_c_try_link "$LINENO"; then :
17061 ac_cv_lib_m_asinl=yes
17062 else
17063 ac_cv_lib_m_asinl=no
17065 rm -f core conftest.err conftest.$ac_objext \
17066 conftest$ac_exeext conftest.$ac_ext
17067 LIBS=$ac_check_lib_save_LIBS
17069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_asinl" >&5
17070 $as_echo "$ac_cv_lib_m_asinl" >&6; }
17071 if test "x$ac_cv_lib_m_asinl" = x""yes; then :
17073 $as_echo "#define HAVE_ASINL 1" >>confdefs.h
17077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhf in -lm" >&5
17078 $as_echo_n "checking for asinhf in -lm... " >&6; }
17079 if test "${ac_cv_lib_m_asinhf+set}" = set; then :
17080 $as_echo_n "(cached) " >&6
17081 else
17082 ac_check_lib_save_LIBS=$LIBS
17083 LIBS="-lm $LIBS"
17084 if test x$gcc_no_link = xyes; then
17085 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17088 /* end confdefs.h. */
17090 /* Override any GCC internal prototype to avoid an error.
17091 Use char because int might match the return type of a GCC
17092 builtin and then its argument prototype would still apply. */
17093 #ifdef __cplusplus
17094 extern "C"
17095 #endif
17096 char asinhf ();
17098 main ()
17100 return asinhf ();
17102 return 0;
17104 _ACEOF
17105 if ac_fn_c_try_link "$LINENO"; then :
17106 ac_cv_lib_m_asinhf=yes
17107 else
17108 ac_cv_lib_m_asinhf=no
17110 rm -f core conftest.err conftest.$ac_objext \
17111 conftest$ac_exeext conftest.$ac_ext
17112 LIBS=$ac_check_lib_save_LIBS
17114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_asinhf" >&5
17115 $as_echo "$ac_cv_lib_m_asinhf" >&6; }
17116 if test "x$ac_cv_lib_m_asinhf" = x""yes; then :
17118 $as_echo "#define HAVE_ASINHF 1" >>confdefs.h
17122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinh in -lm" >&5
17123 $as_echo_n "checking for asinh in -lm... " >&6; }
17124 if test "${ac_cv_lib_m_asinh+set}" = set; then :
17125 $as_echo_n "(cached) " >&6
17126 else
17127 ac_check_lib_save_LIBS=$LIBS
17128 LIBS="-lm $LIBS"
17129 if test x$gcc_no_link = xyes; then
17130 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17133 /* end confdefs.h. */
17135 /* Override any GCC internal prototype to avoid an error.
17136 Use char because int might match the return type of a GCC
17137 builtin and then its argument prototype would still apply. */
17138 #ifdef __cplusplus
17139 extern "C"
17140 #endif
17141 char asinh ();
17143 main ()
17145 return asinh ();
17147 return 0;
17149 _ACEOF
17150 if ac_fn_c_try_link "$LINENO"; then :
17151 ac_cv_lib_m_asinh=yes
17152 else
17153 ac_cv_lib_m_asinh=no
17155 rm -f core conftest.err conftest.$ac_objext \
17156 conftest$ac_exeext conftest.$ac_ext
17157 LIBS=$ac_check_lib_save_LIBS
17159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_asinh" >&5
17160 $as_echo "$ac_cv_lib_m_asinh" >&6; }
17161 if test "x$ac_cv_lib_m_asinh" = x""yes; then :
17163 $as_echo "#define HAVE_ASINH 1" >>confdefs.h
17167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhl in -lm" >&5
17168 $as_echo_n "checking for asinhl in -lm... " >&6; }
17169 if test "${ac_cv_lib_m_asinhl+set}" = set; then :
17170 $as_echo_n "(cached) " >&6
17171 else
17172 ac_check_lib_save_LIBS=$LIBS
17173 LIBS="-lm $LIBS"
17174 if test x$gcc_no_link = xyes; then
17175 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17178 /* end confdefs.h. */
17180 /* Override any GCC internal prototype to avoid an error.
17181 Use char because int might match the return type of a GCC
17182 builtin and then its argument prototype would still apply. */
17183 #ifdef __cplusplus
17184 extern "C"
17185 #endif
17186 char asinhl ();
17188 main ()
17190 return asinhl ();
17192 return 0;
17194 _ACEOF
17195 if ac_fn_c_try_link "$LINENO"; then :
17196 ac_cv_lib_m_asinhl=yes
17197 else
17198 ac_cv_lib_m_asinhl=no
17200 rm -f core conftest.err conftest.$ac_objext \
17201 conftest$ac_exeext conftest.$ac_ext
17202 LIBS=$ac_check_lib_save_LIBS
17204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_asinhl" >&5
17205 $as_echo "$ac_cv_lib_m_asinhl" >&6; }
17206 if test "x$ac_cv_lib_m_asinhl" = x""yes; then :
17208 $as_echo "#define HAVE_ASINHL 1" >>confdefs.h
17212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f in -lm" >&5
17213 $as_echo_n "checking for atan2f in -lm... " >&6; }
17214 if test "${ac_cv_lib_m_atan2f+set}" = set; then :
17215 $as_echo_n "(cached) " >&6
17216 else
17217 ac_check_lib_save_LIBS=$LIBS
17218 LIBS="-lm $LIBS"
17219 if test x$gcc_no_link = xyes; then
17220 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17223 /* end confdefs.h. */
17225 /* Override any GCC internal prototype to avoid an error.
17226 Use char because int might match the return type of a GCC
17227 builtin and then its argument prototype would still apply. */
17228 #ifdef __cplusplus
17229 extern "C"
17230 #endif
17231 char atan2f ();
17233 main ()
17235 return atan2f ();
17237 return 0;
17239 _ACEOF
17240 if ac_fn_c_try_link "$LINENO"; then :
17241 ac_cv_lib_m_atan2f=yes
17242 else
17243 ac_cv_lib_m_atan2f=no
17245 rm -f core conftest.err conftest.$ac_objext \
17246 conftest$ac_exeext conftest.$ac_ext
17247 LIBS=$ac_check_lib_save_LIBS
17249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_atan2f" >&5
17250 $as_echo "$ac_cv_lib_m_atan2f" >&6; }
17251 if test "x$ac_cv_lib_m_atan2f" = x""yes; then :
17253 $as_echo "#define HAVE_ATAN2F 1" >>confdefs.h
17257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2 in -lm" >&5
17258 $as_echo_n "checking for atan2 in -lm... " >&6; }
17259 if test "${ac_cv_lib_m_atan2+set}" = set; then :
17260 $as_echo_n "(cached) " >&6
17261 else
17262 ac_check_lib_save_LIBS=$LIBS
17263 LIBS="-lm $LIBS"
17264 if test x$gcc_no_link = xyes; then
17265 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17268 /* end confdefs.h. */
17270 /* Override any GCC internal prototype to avoid an error.
17271 Use char because int might match the return type of a GCC
17272 builtin and then its argument prototype would still apply. */
17273 #ifdef __cplusplus
17274 extern "C"
17275 #endif
17276 char atan2 ();
17278 main ()
17280 return atan2 ();
17282 return 0;
17284 _ACEOF
17285 if ac_fn_c_try_link "$LINENO"; then :
17286 ac_cv_lib_m_atan2=yes
17287 else
17288 ac_cv_lib_m_atan2=no
17290 rm -f core conftest.err conftest.$ac_objext \
17291 conftest$ac_exeext conftest.$ac_ext
17292 LIBS=$ac_check_lib_save_LIBS
17294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_atan2" >&5
17295 $as_echo "$ac_cv_lib_m_atan2" >&6; }
17296 if test "x$ac_cv_lib_m_atan2" = x""yes; then :
17298 $as_echo "#define HAVE_ATAN2 1" >>confdefs.h
17302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l in -lm" >&5
17303 $as_echo_n "checking for atan2l in -lm... " >&6; }
17304 if test "${ac_cv_lib_m_atan2l+set}" = set; then :
17305 $as_echo_n "(cached) " >&6
17306 else
17307 ac_check_lib_save_LIBS=$LIBS
17308 LIBS="-lm $LIBS"
17309 if test x$gcc_no_link = xyes; then
17310 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17313 /* end confdefs.h. */
17315 /* Override any GCC internal prototype to avoid an error.
17316 Use char because int might match the return type of a GCC
17317 builtin and then its argument prototype would still apply. */
17318 #ifdef __cplusplus
17319 extern "C"
17320 #endif
17321 char atan2l ();
17323 main ()
17325 return atan2l ();
17327 return 0;
17329 _ACEOF
17330 if ac_fn_c_try_link "$LINENO"; then :
17331 ac_cv_lib_m_atan2l=yes
17332 else
17333 ac_cv_lib_m_atan2l=no
17335 rm -f core conftest.err conftest.$ac_objext \
17336 conftest$ac_exeext conftest.$ac_ext
17337 LIBS=$ac_check_lib_save_LIBS
17339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_atan2l" >&5
17340 $as_echo "$ac_cv_lib_m_atan2l" >&6; }
17341 if test "x$ac_cv_lib_m_atan2l" = x""yes; then :
17343 $as_echo "#define HAVE_ATAN2L 1" >>confdefs.h
17347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanf in -lm" >&5
17348 $as_echo_n "checking for atanf in -lm... " >&6; }
17349 if test "${ac_cv_lib_m_atanf+set}" = set; then :
17350 $as_echo_n "(cached) " >&6
17351 else
17352 ac_check_lib_save_LIBS=$LIBS
17353 LIBS="-lm $LIBS"
17354 if test x$gcc_no_link = xyes; then
17355 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17358 /* end confdefs.h. */
17360 /* Override any GCC internal prototype to avoid an error.
17361 Use char because int might match the return type of a GCC
17362 builtin and then its argument prototype would still apply. */
17363 #ifdef __cplusplus
17364 extern "C"
17365 #endif
17366 char atanf ();
17368 main ()
17370 return atanf ();
17372 return 0;
17374 _ACEOF
17375 if ac_fn_c_try_link "$LINENO"; then :
17376 ac_cv_lib_m_atanf=yes
17377 else
17378 ac_cv_lib_m_atanf=no
17380 rm -f core conftest.err conftest.$ac_objext \
17381 conftest$ac_exeext conftest.$ac_ext
17382 LIBS=$ac_check_lib_save_LIBS
17384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_atanf" >&5
17385 $as_echo "$ac_cv_lib_m_atanf" >&6; }
17386 if test "x$ac_cv_lib_m_atanf" = x""yes; then :
17388 $as_echo "#define HAVE_ATANF 1" >>confdefs.h
17392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan in -lm" >&5
17393 $as_echo_n "checking for atan in -lm... " >&6; }
17394 if test "${ac_cv_lib_m_atan+set}" = set; then :
17395 $as_echo_n "(cached) " >&6
17396 else
17397 ac_check_lib_save_LIBS=$LIBS
17398 LIBS="-lm $LIBS"
17399 if test x$gcc_no_link = xyes; then
17400 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17403 /* end confdefs.h. */
17405 /* Override any GCC internal prototype to avoid an error.
17406 Use char because int might match the return type of a GCC
17407 builtin and then its argument prototype would still apply. */
17408 #ifdef __cplusplus
17409 extern "C"
17410 #endif
17411 char atan ();
17413 main ()
17415 return atan ();
17417 return 0;
17419 _ACEOF
17420 if ac_fn_c_try_link "$LINENO"; then :
17421 ac_cv_lib_m_atan=yes
17422 else
17423 ac_cv_lib_m_atan=no
17425 rm -f core conftest.err conftest.$ac_objext \
17426 conftest$ac_exeext conftest.$ac_ext
17427 LIBS=$ac_check_lib_save_LIBS
17429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_atan" >&5
17430 $as_echo "$ac_cv_lib_m_atan" >&6; }
17431 if test "x$ac_cv_lib_m_atan" = x""yes; then :
17433 $as_echo "#define HAVE_ATAN 1" >>confdefs.h
17437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanl in -lm" >&5
17438 $as_echo_n "checking for atanl in -lm... " >&6; }
17439 if test "${ac_cv_lib_m_atanl+set}" = set; then :
17440 $as_echo_n "(cached) " >&6
17441 else
17442 ac_check_lib_save_LIBS=$LIBS
17443 LIBS="-lm $LIBS"
17444 if test x$gcc_no_link = xyes; then
17445 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17448 /* end confdefs.h. */
17450 /* Override any GCC internal prototype to avoid an error.
17451 Use char because int might match the return type of a GCC
17452 builtin and then its argument prototype would still apply. */
17453 #ifdef __cplusplus
17454 extern "C"
17455 #endif
17456 char atanl ();
17458 main ()
17460 return atanl ();
17462 return 0;
17464 _ACEOF
17465 if ac_fn_c_try_link "$LINENO"; then :
17466 ac_cv_lib_m_atanl=yes
17467 else
17468 ac_cv_lib_m_atanl=no
17470 rm -f core conftest.err conftest.$ac_objext \
17471 conftest$ac_exeext conftest.$ac_ext
17472 LIBS=$ac_check_lib_save_LIBS
17474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_atanl" >&5
17475 $as_echo "$ac_cv_lib_m_atanl" >&6; }
17476 if test "x$ac_cv_lib_m_atanl" = x""yes; then :
17478 $as_echo "#define HAVE_ATANL 1" >>confdefs.h
17482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhf in -lm" >&5
17483 $as_echo_n "checking for atanhf in -lm... " >&6; }
17484 if test "${ac_cv_lib_m_atanhf+set}" = set; then :
17485 $as_echo_n "(cached) " >&6
17486 else
17487 ac_check_lib_save_LIBS=$LIBS
17488 LIBS="-lm $LIBS"
17489 if test x$gcc_no_link = xyes; then
17490 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17493 /* end confdefs.h. */
17495 /* Override any GCC internal prototype to avoid an error.
17496 Use char because int might match the return type of a GCC
17497 builtin and then its argument prototype would still apply. */
17498 #ifdef __cplusplus
17499 extern "C"
17500 #endif
17501 char atanhf ();
17503 main ()
17505 return atanhf ();
17507 return 0;
17509 _ACEOF
17510 if ac_fn_c_try_link "$LINENO"; then :
17511 ac_cv_lib_m_atanhf=yes
17512 else
17513 ac_cv_lib_m_atanhf=no
17515 rm -f core conftest.err conftest.$ac_objext \
17516 conftest$ac_exeext conftest.$ac_ext
17517 LIBS=$ac_check_lib_save_LIBS
17519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_atanhf" >&5
17520 $as_echo "$ac_cv_lib_m_atanhf" >&6; }
17521 if test "x$ac_cv_lib_m_atanhf" = x""yes; then :
17523 $as_echo "#define HAVE_ATANHF 1" >>confdefs.h
17527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanh in -lm" >&5
17528 $as_echo_n "checking for atanh in -lm... " >&6; }
17529 if test "${ac_cv_lib_m_atanh+set}" = set; then :
17530 $as_echo_n "(cached) " >&6
17531 else
17532 ac_check_lib_save_LIBS=$LIBS
17533 LIBS="-lm $LIBS"
17534 if test x$gcc_no_link = xyes; then
17535 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17538 /* end confdefs.h. */
17540 /* Override any GCC internal prototype to avoid an error.
17541 Use char because int might match the return type of a GCC
17542 builtin and then its argument prototype would still apply. */
17543 #ifdef __cplusplus
17544 extern "C"
17545 #endif
17546 char atanh ();
17548 main ()
17550 return atanh ();
17552 return 0;
17554 _ACEOF
17555 if ac_fn_c_try_link "$LINENO"; then :
17556 ac_cv_lib_m_atanh=yes
17557 else
17558 ac_cv_lib_m_atanh=no
17560 rm -f core conftest.err conftest.$ac_objext \
17561 conftest$ac_exeext conftest.$ac_ext
17562 LIBS=$ac_check_lib_save_LIBS
17564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_atanh" >&5
17565 $as_echo "$ac_cv_lib_m_atanh" >&6; }
17566 if test "x$ac_cv_lib_m_atanh" = x""yes; then :
17568 $as_echo "#define HAVE_ATANH 1" >>confdefs.h
17572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhl in -lm" >&5
17573 $as_echo_n "checking for atanhl in -lm... " >&6; }
17574 if test "${ac_cv_lib_m_atanhl+set}" = set; then :
17575 $as_echo_n "(cached) " >&6
17576 else
17577 ac_check_lib_save_LIBS=$LIBS
17578 LIBS="-lm $LIBS"
17579 if test x$gcc_no_link = xyes; then
17580 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17582 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17583 /* end confdefs.h. */
17585 /* Override any GCC internal prototype to avoid an error.
17586 Use char because int might match the return type of a GCC
17587 builtin and then its argument prototype would still apply. */
17588 #ifdef __cplusplus
17589 extern "C"
17590 #endif
17591 char atanhl ();
17593 main ()
17595 return atanhl ();
17597 return 0;
17599 _ACEOF
17600 if ac_fn_c_try_link "$LINENO"; then :
17601 ac_cv_lib_m_atanhl=yes
17602 else
17603 ac_cv_lib_m_atanhl=no
17605 rm -f core conftest.err conftest.$ac_objext \
17606 conftest$ac_exeext conftest.$ac_ext
17607 LIBS=$ac_check_lib_save_LIBS
17609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_atanhl" >&5
17610 $as_echo "$ac_cv_lib_m_atanhl" >&6; }
17611 if test "x$ac_cv_lib_m_atanhl" = x""yes; then :
17613 $as_echo "#define HAVE_ATANHL 1" >>confdefs.h
17617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargf in -lm" >&5
17618 $as_echo_n "checking for cargf in -lm... " >&6; }
17619 if test "${ac_cv_lib_m_cargf+set}" = set; then :
17620 $as_echo_n "(cached) " >&6
17621 else
17622 ac_check_lib_save_LIBS=$LIBS
17623 LIBS="-lm $LIBS"
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 /* Override any GCC internal prototype to avoid an error.
17631 Use char because int might match the return type of a GCC
17632 builtin and then its argument prototype would still apply. */
17633 #ifdef __cplusplus
17634 extern "C"
17635 #endif
17636 char cargf ();
17638 main ()
17640 return cargf ();
17642 return 0;
17644 _ACEOF
17645 if ac_fn_c_try_link "$LINENO"; then :
17646 ac_cv_lib_m_cargf=yes
17647 else
17648 ac_cv_lib_m_cargf=no
17650 rm -f core conftest.err conftest.$ac_objext \
17651 conftest$ac_exeext conftest.$ac_ext
17652 LIBS=$ac_check_lib_save_LIBS
17654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cargf" >&5
17655 $as_echo "$ac_cv_lib_m_cargf" >&6; }
17656 if test "x$ac_cv_lib_m_cargf" = x""yes; then :
17658 $as_echo "#define HAVE_CARGF 1" >>confdefs.h
17662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for carg in -lm" >&5
17663 $as_echo_n "checking for carg in -lm... " >&6; }
17664 if test "${ac_cv_lib_m_carg+set}" = set; then :
17665 $as_echo_n "(cached) " >&6
17666 else
17667 ac_check_lib_save_LIBS=$LIBS
17668 LIBS="-lm $LIBS"
17669 if test x$gcc_no_link = xyes; then
17670 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17673 /* end confdefs.h. */
17675 /* Override any GCC internal prototype to avoid an error.
17676 Use char because int might match the return type of a GCC
17677 builtin and then its argument prototype would still apply. */
17678 #ifdef __cplusplus
17679 extern "C"
17680 #endif
17681 char carg ();
17683 main ()
17685 return carg ();
17687 return 0;
17689 _ACEOF
17690 if ac_fn_c_try_link "$LINENO"; then :
17691 ac_cv_lib_m_carg=yes
17692 else
17693 ac_cv_lib_m_carg=no
17695 rm -f core conftest.err conftest.$ac_objext \
17696 conftest$ac_exeext conftest.$ac_ext
17697 LIBS=$ac_check_lib_save_LIBS
17699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_carg" >&5
17700 $as_echo "$ac_cv_lib_m_carg" >&6; }
17701 if test "x$ac_cv_lib_m_carg" = x""yes; then :
17703 $as_echo "#define HAVE_CARG 1" >>confdefs.h
17707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargl in -lm" >&5
17708 $as_echo_n "checking for cargl in -lm... " >&6; }
17709 if test "${ac_cv_lib_m_cargl+set}" = set; then :
17710 $as_echo_n "(cached) " >&6
17711 else
17712 ac_check_lib_save_LIBS=$LIBS
17713 LIBS="-lm $LIBS"
17714 if test x$gcc_no_link = xyes; then
17715 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17718 /* end confdefs.h. */
17720 /* Override any GCC internal prototype to avoid an error.
17721 Use char because int might match the return type of a GCC
17722 builtin and then its argument prototype would still apply. */
17723 #ifdef __cplusplus
17724 extern "C"
17725 #endif
17726 char cargl ();
17728 main ()
17730 return cargl ();
17732 return 0;
17734 _ACEOF
17735 if ac_fn_c_try_link "$LINENO"; then :
17736 ac_cv_lib_m_cargl=yes
17737 else
17738 ac_cv_lib_m_cargl=no
17740 rm -f core conftest.err conftest.$ac_objext \
17741 conftest$ac_exeext conftest.$ac_ext
17742 LIBS=$ac_check_lib_save_LIBS
17744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cargl" >&5
17745 $as_echo "$ac_cv_lib_m_cargl" >&6; }
17746 if test "x$ac_cv_lib_m_cargl" = x""yes; then :
17748 $as_echo "#define HAVE_CARGL 1" >>confdefs.h
17752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceilf in -lm" >&5
17753 $as_echo_n "checking for ceilf in -lm... " >&6; }
17754 if test "${ac_cv_lib_m_ceilf+set}" = set; then :
17755 $as_echo_n "(cached) " >&6
17756 else
17757 ac_check_lib_save_LIBS=$LIBS
17758 LIBS="-lm $LIBS"
17759 if test x$gcc_no_link = xyes; then
17760 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17763 /* end confdefs.h. */
17765 /* Override any GCC internal prototype to avoid an error.
17766 Use char because int might match the return type of a GCC
17767 builtin and then its argument prototype would still apply. */
17768 #ifdef __cplusplus
17769 extern "C"
17770 #endif
17771 char ceilf ();
17773 main ()
17775 return ceilf ();
17777 return 0;
17779 _ACEOF
17780 if ac_fn_c_try_link "$LINENO"; then :
17781 ac_cv_lib_m_ceilf=yes
17782 else
17783 ac_cv_lib_m_ceilf=no
17785 rm -f core conftest.err conftest.$ac_objext \
17786 conftest$ac_exeext conftest.$ac_ext
17787 LIBS=$ac_check_lib_save_LIBS
17789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ceilf" >&5
17790 $as_echo "$ac_cv_lib_m_ceilf" >&6; }
17791 if test "x$ac_cv_lib_m_ceilf" = x""yes; then :
17793 $as_echo "#define HAVE_CEILF 1" >>confdefs.h
17797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceil in -lm" >&5
17798 $as_echo_n "checking for ceil in -lm... " >&6; }
17799 if test "${ac_cv_lib_m_ceil+set}" = set; then :
17800 $as_echo_n "(cached) " >&6
17801 else
17802 ac_check_lib_save_LIBS=$LIBS
17803 LIBS="-lm $LIBS"
17804 if test x$gcc_no_link = xyes; then
17805 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17808 /* end confdefs.h. */
17810 /* Override any GCC internal prototype to avoid an error.
17811 Use char because int might match the return type of a GCC
17812 builtin and then its argument prototype would still apply. */
17813 #ifdef __cplusplus
17814 extern "C"
17815 #endif
17816 char ceil ();
17818 main ()
17820 return ceil ();
17822 return 0;
17824 _ACEOF
17825 if ac_fn_c_try_link "$LINENO"; then :
17826 ac_cv_lib_m_ceil=yes
17827 else
17828 ac_cv_lib_m_ceil=no
17830 rm -f core conftest.err conftest.$ac_objext \
17831 conftest$ac_exeext conftest.$ac_ext
17832 LIBS=$ac_check_lib_save_LIBS
17834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ceil" >&5
17835 $as_echo "$ac_cv_lib_m_ceil" >&6; }
17836 if test "x$ac_cv_lib_m_ceil" = x""yes; then :
17838 $as_echo "#define HAVE_CEIL 1" >>confdefs.h
17842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceill in -lm" >&5
17843 $as_echo_n "checking for ceill in -lm... " >&6; }
17844 if test "${ac_cv_lib_m_ceill+set}" = set; then :
17845 $as_echo_n "(cached) " >&6
17846 else
17847 ac_check_lib_save_LIBS=$LIBS
17848 LIBS="-lm $LIBS"
17849 if test x$gcc_no_link = xyes; then
17850 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17853 /* end confdefs.h. */
17855 /* Override any GCC internal prototype to avoid an error.
17856 Use char because int might match the return type of a GCC
17857 builtin and then its argument prototype would still apply. */
17858 #ifdef __cplusplus
17859 extern "C"
17860 #endif
17861 char ceill ();
17863 main ()
17865 return ceill ();
17867 return 0;
17869 _ACEOF
17870 if ac_fn_c_try_link "$LINENO"; then :
17871 ac_cv_lib_m_ceill=yes
17872 else
17873 ac_cv_lib_m_ceill=no
17875 rm -f core conftest.err conftest.$ac_objext \
17876 conftest$ac_exeext conftest.$ac_ext
17877 LIBS=$ac_check_lib_save_LIBS
17879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ceill" >&5
17880 $as_echo "$ac_cv_lib_m_ceill" >&6; }
17881 if test "x$ac_cv_lib_m_ceill" = x""yes; then :
17883 $as_echo "#define HAVE_CEILL 1" >>confdefs.h
17887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignf in -lm" >&5
17888 $as_echo_n "checking for copysignf in -lm... " >&6; }
17889 if test "${ac_cv_lib_m_copysignf+set}" = set; then :
17890 $as_echo_n "(cached) " >&6
17891 else
17892 ac_check_lib_save_LIBS=$LIBS
17893 LIBS="-lm $LIBS"
17894 if test x$gcc_no_link = xyes; then
17895 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17898 /* end confdefs.h. */
17900 /* Override any GCC internal prototype to avoid an error.
17901 Use char because int might match the return type of a GCC
17902 builtin and then its argument prototype would still apply. */
17903 #ifdef __cplusplus
17904 extern "C"
17905 #endif
17906 char copysignf ();
17908 main ()
17910 return copysignf ();
17912 return 0;
17914 _ACEOF
17915 if ac_fn_c_try_link "$LINENO"; then :
17916 ac_cv_lib_m_copysignf=yes
17917 else
17918 ac_cv_lib_m_copysignf=no
17920 rm -f core conftest.err conftest.$ac_objext \
17921 conftest$ac_exeext conftest.$ac_ext
17922 LIBS=$ac_check_lib_save_LIBS
17924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_copysignf" >&5
17925 $as_echo "$ac_cv_lib_m_copysignf" >&6; }
17926 if test "x$ac_cv_lib_m_copysignf" = x""yes; then :
17928 $as_echo "#define HAVE_COPYSIGNF 1" >>confdefs.h
17932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysign in -lm" >&5
17933 $as_echo_n "checking for copysign in -lm... " >&6; }
17934 if test "${ac_cv_lib_m_copysign+set}" = set; then :
17935 $as_echo_n "(cached) " >&6
17936 else
17937 ac_check_lib_save_LIBS=$LIBS
17938 LIBS="-lm $LIBS"
17939 if test x$gcc_no_link = xyes; then
17940 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17942 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17943 /* end confdefs.h. */
17945 /* Override any GCC internal prototype to avoid an error.
17946 Use char because int might match the return type of a GCC
17947 builtin and then its argument prototype would still apply. */
17948 #ifdef __cplusplus
17949 extern "C"
17950 #endif
17951 char copysign ();
17953 main ()
17955 return copysign ();
17957 return 0;
17959 _ACEOF
17960 if ac_fn_c_try_link "$LINENO"; then :
17961 ac_cv_lib_m_copysign=yes
17962 else
17963 ac_cv_lib_m_copysign=no
17965 rm -f core conftest.err conftest.$ac_objext \
17966 conftest$ac_exeext conftest.$ac_ext
17967 LIBS=$ac_check_lib_save_LIBS
17969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_copysign" >&5
17970 $as_echo "$ac_cv_lib_m_copysign" >&6; }
17971 if test "x$ac_cv_lib_m_copysign" = x""yes; then :
17973 $as_echo "#define HAVE_COPYSIGN 1" >>confdefs.h
17977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignl in -lm" >&5
17978 $as_echo_n "checking for copysignl in -lm... " >&6; }
17979 if test "${ac_cv_lib_m_copysignl+set}" = set; then :
17980 $as_echo_n "(cached) " >&6
17981 else
17982 ac_check_lib_save_LIBS=$LIBS
17983 LIBS="-lm $LIBS"
17984 if test x$gcc_no_link = xyes; then
17985 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17988 /* end confdefs.h. */
17990 /* Override any GCC internal prototype to avoid an error.
17991 Use char because int might match the return type of a GCC
17992 builtin and then its argument prototype would still apply. */
17993 #ifdef __cplusplus
17994 extern "C"
17995 #endif
17996 char copysignl ();
17998 main ()
18000 return copysignl ();
18002 return 0;
18004 _ACEOF
18005 if ac_fn_c_try_link "$LINENO"; then :
18006 ac_cv_lib_m_copysignl=yes
18007 else
18008 ac_cv_lib_m_copysignl=no
18010 rm -f core conftest.err conftest.$ac_objext \
18011 conftest$ac_exeext conftest.$ac_ext
18012 LIBS=$ac_check_lib_save_LIBS
18014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_copysignl" >&5
18015 $as_echo "$ac_cv_lib_m_copysignl" >&6; }
18016 if test "x$ac_cv_lib_m_copysignl" = x""yes; then :
18018 $as_echo "#define HAVE_COPYSIGNL 1" >>confdefs.h
18022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosf in -lm" >&5
18023 $as_echo_n "checking for cosf in -lm... " >&6; }
18024 if test "${ac_cv_lib_m_cosf+set}" = set; then :
18025 $as_echo_n "(cached) " >&6
18026 else
18027 ac_check_lib_save_LIBS=$LIBS
18028 LIBS="-lm $LIBS"
18029 if test x$gcc_no_link = xyes; then
18030 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18033 /* end confdefs.h. */
18035 /* Override any GCC internal prototype to avoid an error.
18036 Use char because int might match the return type of a GCC
18037 builtin and then its argument prototype would still apply. */
18038 #ifdef __cplusplus
18039 extern "C"
18040 #endif
18041 char cosf ();
18043 main ()
18045 return cosf ();
18047 return 0;
18049 _ACEOF
18050 if ac_fn_c_try_link "$LINENO"; then :
18051 ac_cv_lib_m_cosf=yes
18052 else
18053 ac_cv_lib_m_cosf=no
18055 rm -f core conftest.err conftest.$ac_objext \
18056 conftest$ac_exeext conftest.$ac_ext
18057 LIBS=$ac_check_lib_save_LIBS
18059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cosf" >&5
18060 $as_echo "$ac_cv_lib_m_cosf" >&6; }
18061 if test "x$ac_cv_lib_m_cosf" = x""yes; then :
18063 $as_echo "#define HAVE_COSF 1" >>confdefs.h
18067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
18068 $as_echo_n "checking for cos in -lm... " >&6; }
18069 if test "${ac_cv_lib_m_cos+set}" = set; then :
18070 $as_echo_n "(cached) " >&6
18071 else
18072 ac_check_lib_save_LIBS=$LIBS
18073 LIBS="-lm $LIBS"
18074 if test x$gcc_no_link = xyes; then
18075 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18078 /* end confdefs.h. */
18080 /* Override any GCC internal prototype to avoid an error.
18081 Use char because int might match the return type of a GCC
18082 builtin and then its argument prototype would still apply. */
18083 #ifdef __cplusplus
18084 extern "C"
18085 #endif
18086 char cos ();
18088 main ()
18090 return cos ();
18092 return 0;
18094 _ACEOF
18095 if ac_fn_c_try_link "$LINENO"; then :
18096 ac_cv_lib_m_cos=yes
18097 else
18098 ac_cv_lib_m_cos=no
18100 rm -f core conftest.err conftest.$ac_objext \
18101 conftest$ac_exeext conftest.$ac_ext
18102 LIBS=$ac_check_lib_save_LIBS
18104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
18105 $as_echo "$ac_cv_lib_m_cos" >&6; }
18106 if test "x$ac_cv_lib_m_cos" = x""yes; then :
18108 $as_echo "#define HAVE_COS 1" >>confdefs.h
18112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosl in -lm" >&5
18113 $as_echo_n "checking for cosl in -lm... " >&6; }
18114 if test "${ac_cv_lib_m_cosl+set}" = set; then :
18115 $as_echo_n "(cached) " >&6
18116 else
18117 ac_check_lib_save_LIBS=$LIBS
18118 LIBS="-lm $LIBS"
18119 if test x$gcc_no_link = xyes; then
18120 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18123 /* end confdefs.h. */
18125 /* Override any GCC internal prototype to avoid an error.
18126 Use char because int might match the return type of a GCC
18127 builtin and then its argument prototype would still apply. */
18128 #ifdef __cplusplus
18129 extern "C"
18130 #endif
18131 char cosl ();
18133 main ()
18135 return cosl ();
18137 return 0;
18139 _ACEOF
18140 if ac_fn_c_try_link "$LINENO"; then :
18141 ac_cv_lib_m_cosl=yes
18142 else
18143 ac_cv_lib_m_cosl=no
18145 rm -f core conftest.err conftest.$ac_objext \
18146 conftest$ac_exeext conftest.$ac_ext
18147 LIBS=$ac_check_lib_save_LIBS
18149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cosl" >&5
18150 $as_echo "$ac_cv_lib_m_cosl" >&6; }
18151 if test "x$ac_cv_lib_m_cosl" = x""yes; then :
18153 $as_echo "#define HAVE_COSL 1" >>confdefs.h
18157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosf in -lm" >&5
18158 $as_echo_n "checking for ccosf in -lm... " >&6; }
18159 if test "${ac_cv_lib_m_ccosf+set}" = set; then :
18160 $as_echo_n "(cached) " >&6
18161 else
18162 ac_check_lib_save_LIBS=$LIBS
18163 LIBS="-lm $LIBS"
18164 if test x$gcc_no_link = xyes; then
18165 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18168 /* end confdefs.h. */
18170 /* Override any GCC internal prototype to avoid an error.
18171 Use char because int might match the return type of a GCC
18172 builtin and then its argument prototype would still apply. */
18173 #ifdef __cplusplus
18174 extern "C"
18175 #endif
18176 char ccosf ();
18178 main ()
18180 return ccosf ();
18182 return 0;
18184 _ACEOF
18185 if ac_fn_c_try_link "$LINENO"; then :
18186 ac_cv_lib_m_ccosf=yes
18187 else
18188 ac_cv_lib_m_ccosf=no
18190 rm -f core conftest.err conftest.$ac_objext \
18191 conftest$ac_exeext conftest.$ac_ext
18192 LIBS=$ac_check_lib_save_LIBS
18194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ccosf" >&5
18195 $as_echo "$ac_cv_lib_m_ccosf" >&6; }
18196 if test "x$ac_cv_lib_m_ccosf" = x""yes; then :
18198 $as_echo "#define HAVE_CCOSF 1" >>confdefs.h
18202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccos in -lm" >&5
18203 $as_echo_n "checking for ccos in -lm... " >&6; }
18204 if test "${ac_cv_lib_m_ccos+set}" = set; then :
18205 $as_echo_n "(cached) " >&6
18206 else
18207 ac_check_lib_save_LIBS=$LIBS
18208 LIBS="-lm $LIBS"
18209 if test x$gcc_no_link = xyes; then
18210 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18213 /* end confdefs.h. */
18215 /* Override any GCC internal prototype to avoid an error.
18216 Use char because int might match the return type of a GCC
18217 builtin and then its argument prototype would still apply. */
18218 #ifdef __cplusplus
18219 extern "C"
18220 #endif
18221 char ccos ();
18223 main ()
18225 return ccos ();
18227 return 0;
18229 _ACEOF
18230 if ac_fn_c_try_link "$LINENO"; then :
18231 ac_cv_lib_m_ccos=yes
18232 else
18233 ac_cv_lib_m_ccos=no
18235 rm -f core conftest.err conftest.$ac_objext \
18236 conftest$ac_exeext conftest.$ac_ext
18237 LIBS=$ac_check_lib_save_LIBS
18239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ccos" >&5
18240 $as_echo "$ac_cv_lib_m_ccos" >&6; }
18241 if test "x$ac_cv_lib_m_ccos" = x""yes; then :
18243 $as_echo "#define HAVE_CCOS 1" >>confdefs.h
18247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosl in -lm" >&5
18248 $as_echo_n "checking for ccosl in -lm... " >&6; }
18249 if test "${ac_cv_lib_m_ccosl+set}" = set; then :
18250 $as_echo_n "(cached) " >&6
18251 else
18252 ac_check_lib_save_LIBS=$LIBS
18253 LIBS="-lm $LIBS"
18254 if test x$gcc_no_link = xyes; then
18255 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18258 /* end confdefs.h. */
18260 /* Override any GCC internal prototype to avoid an error.
18261 Use char because int might match the return type of a GCC
18262 builtin and then its argument prototype would still apply. */
18263 #ifdef __cplusplus
18264 extern "C"
18265 #endif
18266 char ccosl ();
18268 main ()
18270 return ccosl ();
18272 return 0;
18274 _ACEOF
18275 if ac_fn_c_try_link "$LINENO"; then :
18276 ac_cv_lib_m_ccosl=yes
18277 else
18278 ac_cv_lib_m_ccosl=no
18280 rm -f core conftest.err conftest.$ac_objext \
18281 conftest$ac_exeext conftest.$ac_ext
18282 LIBS=$ac_check_lib_save_LIBS
18284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ccosl" >&5
18285 $as_echo "$ac_cv_lib_m_ccosl" >&6; }
18286 if test "x$ac_cv_lib_m_ccosl" = x""yes; then :
18288 $as_echo "#define HAVE_CCOSL 1" >>confdefs.h
18292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshf in -lm" >&5
18293 $as_echo_n "checking for coshf in -lm... " >&6; }
18294 if test "${ac_cv_lib_m_coshf+set}" = set; then :
18295 $as_echo_n "(cached) " >&6
18296 else
18297 ac_check_lib_save_LIBS=$LIBS
18298 LIBS="-lm $LIBS"
18299 if test x$gcc_no_link = xyes; then
18300 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18302 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18303 /* end confdefs.h. */
18305 /* Override any GCC internal prototype to avoid an error.
18306 Use char because int might match the return type of a GCC
18307 builtin and then its argument prototype would still apply. */
18308 #ifdef __cplusplus
18309 extern "C"
18310 #endif
18311 char coshf ();
18313 main ()
18315 return coshf ();
18317 return 0;
18319 _ACEOF
18320 if ac_fn_c_try_link "$LINENO"; then :
18321 ac_cv_lib_m_coshf=yes
18322 else
18323 ac_cv_lib_m_coshf=no
18325 rm -f core conftest.err conftest.$ac_objext \
18326 conftest$ac_exeext conftest.$ac_ext
18327 LIBS=$ac_check_lib_save_LIBS
18329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_coshf" >&5
18330 $as_echo "$ac_cv_lib_m_coshf" >&6; }
18331 if test "x$ac_cv_lib_m_coshf" = x""yes; then :
18333 $as_echo "#define HAVE_COSHF 1" >>confdefs.h
18337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosh in -lm" >&5
18338 $as_echo_n "checking for cosh in -lm... " >&6; }
18339 if test "${ac_cv_lib_m_cosh+set}" = set; then :
18340 $as_echo_n "(cached) " >&6
18341 else
18342 ac_check_lib_save_LIBS=$LIBS
18343 LIBS="-lm $LIBS"
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 /* Override any GCC internal prototype to avoid an error.
18351 Use char because int might match the return type of a GCC
18352 builtin and then its argument prototype would still apply. */
18353 #ifdef __cplusplus
18354 extern "C"
18355 #endif
18356 char cosh ();
18358 main ()
18360 return cosh ();
18362 return 0;
18364 _ACEOF
18365 if ac_fn_c_try_link "$LINENO"; then :
18366 ac_cv_lib_m_cosh=yes
18367 else
18368 ac_cv_lib_m_cosh=no
18370 rm -f core conftest.err conftest.$ac_objext \
18371 conftest$ac_exeext conftest.$ac_ext
18372 LIBS=$ac_check_lib_save_LIBS
18374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cosh" >&5
18375 $as_echo "$ac_cv_lib_m_cosh" >&6; }
18376 if test "x$ac_cv_lib_m_cosh" = x""yes; then :
18378 $as_echo "#define HAVE_COSH 1" >>confdefs.h
18382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshl in -lm" >&5
18383 $as_echo_n "checking for coshl in -lm... " >&6; }
18384 if test "${ac_cv_lib_m_coshl+set}" = set; then :
18385 $as_echo_n "(cached) " >&6
18386 else
18387 ac_check_lib_save_LIBS=$LIBS
18388 LIBS="-lm $LIBS"
18389 if test x$gcc_no_link = xyes; then
18390 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18393 /* end confdefs.h. */
18395 /* Override any GCC internal prototype to avoid an error.
18396 Use char because int might match the return type of a GCC
18397 builtin and then its argument prototype would still apply. */
18398 #ifdef __cplusplus
18399 extern "C"
18400 #endif
18401 char coshl ();
18403 main ()
18405 return coshl ();
18407 return 0;
18409 _ACEOF
18410 if ac_fn_c_try_link "$LINENO"; then :
18411 ac_cv_lib_m_coshl=yes
18412 else
18413 ac_cv_lib_m_coshl=no
18415 rm -f core conftest.err conftest.$ac_objext \
18416 conftest$ac_exeext conftest.$ac_ext
18417 LIBS=$ac_check_lib_save_LIBS
18419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_coshl" >&5
18420 $as_echo "$ac_cv_lib_m_coshl" >&6; }
18421 if test "x$ac_cv_lib_m_coshl" = x""yes; then :
18423 $as_echo "#define HAVE_COSHL 1" >>confdefs.h
18427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshf in -lm" >&5
18428 $as_echo_n "checking for ccoshf in -lm... " >&6; }
18429 if test "${ac_cv_lib_m_ccoshf+set}" = set; then :
18430 $as_echo_n "(cached) " >&6
18431 else
18432 ac_check_lib_save_LIBS=$LIBS
18433 LIBS="-lm $LIBS"
18434 if test x$gcc_no_link = xyes; then
18435 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18438 /* end confdefs.h. */
18440 /* Override any GCC internal prototype to avoid an error.
18441 Use char because int might match the return type of a GCC
18442 builtin and then its argument prototype would still apply. */
18443 #ifdef __cplusplus
18444 extern "C"
18445 #endif
18446 char ccoshf ();
18448 main ()
18450 return ccoshf ();
18452 return 0;
18454 _ACEOF
18455 if ac_fn_c_try_link "$LINENO"; then :
18456 ac_cv_lib_m_ccoshf=yes
18457 else
18458 ac_cv_lib_m_ccoshf=no
18460 rm -f core conftest.err conftest.$ac_objext \
18461 conftest$ac_exeext conftest.$ac_ext
18462 LIBS=$ac_check_lib_save_LIBS
18464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ccoshf" >&5
18465 $as_echo "$ac_cv_lib_m_ccoshf" >&6; }
18466 if test "x$ac_cv_lib_m_ccoshf" = x""yes; then :
18468 $as_echo "#define HAVE_CCOSHF 1" >>confdefs.h
18472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosh in -lm" >&5
18473 $as_echo_n "checking for ccosh in -lm... " >&6; }
18474 if test "${ac_cv_lib_m_ccosh+set}" = set; then :
18475 $as_echo_n "(cached) " >&6
18476 else
18477 ac_check_lib_save_LIBS=$LIBS
18478 LIBS="-lm $LIBS"
18479 if test x$gcc_no_link = xyes; then
18480 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18483 /* end confdefs.h. */
18485 /* Override any GCC internal prototype to avoid an error.
18486 Use char because int might match the return type of a GCC
18487 builtin and then its argument prototype would still apply. */
18488 #ifdef __cplusplus
18489 extern "C"
18490 #endif
18491 char ccosh ();
18493 main ()
18495 return ccosh ();
18497 return 0;
18499 _ACEOF
18500 if ac_fn_c_try_link "$LINENO"; then :
18501 ac_cv_lib_m_ccosh=yes
18502 else
18503 ac_cv_lib_m_ccosh=no
18505 rm -f core conftest.err conftest.$ac_objext \
18506 conftest$ac_exeext conftest.$ac_ext
18507 LIBS=$ac_check_lib_save_LIBS
18509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ccosh" >&5
18510 $as_echo "$ac_cv_lib_m_ccosh" >&6; }
18511 if test "x$ac_cv_lib_m_ccosh" = x""yes; then :
18513 $as_echo "#define HAVE_CCOSH 1" >>confdefs.h
18517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshl in -lm" >&5
18518 $as_echo_n "checking for ccoshl in -lm... " >&6; }
18519 if test "${ac_cv_lib_m_ccoshl+set}" = set; then :
18520 $as_echo_n "(cached) " >&6
18521 else
18522 ac_check_lib_save_LIBS=$LIBS
18523 LIBS="-lm $LIBS"
18524 if test x$gcc_no_link = xyes; then
18525 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18528 /* end confdefs.h. */
18530 /* Override any GCC internal prototype to avoid an error.
18531 Use char because int might match the return type of a GCC
18532 builtin and then its argument prototype would still apply. */
18533 #ifdef __cplusplus
18534 extern "C"
18535 #endif
18536 char ccoshl ();
18538 main ()
18540 return ccoshl ();
18542 return 0;
18544 _ACEOF
18545 if ac_fn_c_try_link "$LINENO"; then :
18546 ac_cv_lib_m_ccoshl=yes
18547 else
18548 ac_cv_lib_m_ccoshl=no
18550 rm -f core conftest.err conftest.$ac_objext \
18551 conftest$ac_exeext conftest.$ac_ext
18552 LIBS=$ac_check_lib_save_LIBS
18554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ccoshl" >&5
18555 $as_echo "$ac_cv_lib_m_ccoshl" >&6; }
18556 if test "x$ac_cv_lib_m_ccoshl" = x""yes; then :
18558 $as_echo "#define HAVE_CCOSHL 1" >>confdefs.h
18562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf in -lm" >&5
18563 $as_echo_n "checking for expf in -lm... " >&6; }
18564 if test "${ac_cv_lib_m_expf+set}" = set; then :
18565 $as_echo_n "(cached) " >&6
18566 else
18567 ac_check_lib_save_LIBS=$LIBS
18568 LIBS="-lm $LIBS"
18569 if test x$gcc_no_link = xyes; then
18570 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18573 /* end confdefs.h. */
18575 /* Override any GCC internal prototype to avoid an error.
18576 Use char because int might match the return type of a GCC
18577 builtin and then its argument prototype would still apply. */
18578 #ifdef __cplusplus
18579 extern "C"
18580 #endif
18581 char expf ();
18583 main ()
18585 return expf ();
18587 return 0;
18589 _ACEOF
18590 if ac_fn_c_try_link "$LINENO"; then :
18591 ac_cv_lib_m_expf=yes
18592 else
18593 ac_cv_lib_m_expf=no
18595 rm -f core conftest.err conftest.$ac_objext \
18596 conftest$ac_exeext conftest.$ac_ext
18597 LIBS=$ac_check_lib_save_LIBS
18599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_expf" >&5
18600 $as_echo "$ac_cv_lib_m_expf" >&6; }
18601 if test "x$ac_cv_lib_m_expf" = x""yes; then :
18603 $as_echo "#define HAVE_EXPF 1" >>confdefs.h
18607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp in -lm" >&5
18608 $as_echo_n "checking for exp in -lm... " >&6; }
18609 if test "${ac_cv_lib_m_exp+set}" = set; then :
18610 $as_echo_n "(cached) " >&6
18611 else
18612 ac_check_lib_save_LIBS=$LIBS
18613 LIBS="-lm $LIBS"
18614 if test x$gcc_no_link = xyes; then
18615 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18618 /* end confdefs.h. */
18620 /* Override any GCC internal prototype to avoid an error.
18621 Use char because int might match the return type of a GCC
18622 builtin and then its argument prototype would still apply. */
18623 #ifdef __cplusplus
18624 extern "C"
18625 #endif
18626 char exp ();
18628 main ()
18630 return exp ();
18632 return 0;
18634 _ACEOF
18635 if ac_fn_c_try_link "$LINENO"; then :
18636 ac_cv_lib_m_exp=yes
18637 else
18638 ac_cv_lib_m_exp=no
18640 rm -f core conftest.err conftest.$ac_objext \
18641 conftest$ac_exeext conftest.$ac_ext
18642 LIBS=$ac_check_lib_save_LIBS
18644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_exp" >&5
18645 $as_echo "$ac_cv_lib_m_exp" >&6; }
18646 if test "x$ac_cv_lib_m_exp" = x""yes; then :
18648 $as_echo "#define HAVE_EXP 1" >>confdefs.h
18652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl in -lm" >&5
18653 $as_echo_n "checking for expl in -lm... " >&6; }
18654 if test "${ac_cv_lib_m_expl+set}" = set; then :
18655 $as_echo_n "(cached) " >&6
18656 else
18657 ac_check_lib_save_LIBS=$LIBS
18658 LIBS="-lm $LIBS"
18659 if test x$gcc_no_link = xyes; then
18660 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18663 /* end confdefs.h. */
18665 /* Override any GCC internal prototype to avoid an error.
18666 Use char because int might match the return type of a GCC
18667 builtin and then its argument prototype would still apply. */
18668 #ifdef __cplusplus
18669 extern "C"
18670 #endif
18671 char expl ();
18673 main ()
18675 return expl ();
18677 return 0;
18679 _ACEOF
18680 if ac_fn_c_try_link "$LINENO"; then :
18681 ac_cv_lib_m_expl=yes
18682 else
18683 ac_cv_lib_m_expl=no
18685 rm -f core conftest.err conftest.$ac_objext \
18686 conftest$ac_exeext conftest.$ac_ext
18687 LIBS=$ac_check_lib_save_LIBS
18689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_expl" >&5
18690 $as_echo "$ac_cv_lib_m_expl" >&6; }
18691 if test "x$ac_cv_lib_m_expl" = x""yes; then :
18693 $as_echo "#define HAVE_EXPL 1" >>confdefs.h
18697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpf in -lm" >&5
18698 $as_echo_n "checking for cexpf in -lm... " >&6; }
18699 if test "${ac_cv_lib_m_cexpf+set}" = set; then :
18700 $as_echo_n "(cached) " >&6
18701 else
18702 ac_check_lib_save_LIBS=$LIBS
18703 LIBS="-lm $LIBS"
18704 if test x$gcc_no_link = xyes; then
18705 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18708 /* end confdefs.h. */
18710 /* Override any GCC internal prototype to avoid an error.
18711 Use char because int might match the return type of a GCC
18712 builtin and then its argument prototype would still apply. */
18713 #ifdef __cplusplus
18714 extern "C"
18715 #endif
18716 char cexpf ();
18718 main ()
18720 return cexpf ();
18722 return 0;
18724 _ACEOF
18725 if ac_fn_c_try_link "$LINENO"; then :
18726 ac_cv_lib_m_cexpf=yes
18727 else
18728 ac_cv_lib_m_cexpf=no
18730 rm -f core conftest.err conftest.$ac_objext \
18731 conftest$ac_exeext conftest.$ac_ext
18732 LIBS=$ac_check_lib_save_LIBS
18734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cexpf" >&5
18735 $as_echo "$ac_cv_lib_m_cexpf" >&6; }
18736 if test "x$ac_cv_lib_m_cexpf" = x""yes; then :
18738 $as_echo "#define HAVE_CEXPF 1" >>confdefs.h
18742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexp in -lm" >&5
18743 $as_echo_n "checking for cexp in -lm... " >&6; }
18744 if test "${ac_cv_lib_m_cexp+set}" = set; then :
18745 $as_echo_n "(cached) " >&6
18746 else
18747 ac_check_lib_save_LIBS=$LIBS
18748 LIBS="-lm $LIBS"
18749 if test x$gcc_no_link = xyes; then
18750 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18753 /* end confdefs.h. */
18755 /* Override any GCC internal prototype to avoid an error.
18756 Use char because int might match the return type of a GCC
18757 builtin and then its argument prototype would still apply. */
18758 #ifdef __cplusplus
18759 extern "C"
18760 #endif
18761 char cexp ();
18763 main ()
18765 return cexp ();
18767 return 0;
18769 _ACEOF
18770 if ac_fn_c_try_link "$LINENO"; then :
18771 ac_cv_lib_m_cexp=yes
18772 else
18773 ac_cv_lib_m_cexp=no
18775 rm -f core conftest.err conftest.$ac_objext \
18776 conftest$ac_exeext conftest.$ac_ext
18777 LIBS=$ac_check_lib_save_LIBS
18779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cexp" >&5
18780 $as_echo "$ac_cv_lib_m_cexp" >&6; }
18781 if test "x$ac_cv_lib_m_cexp" = x""yes; then :
18783 $as_echo "#define HAVE_CEXP 1" >>confdefs.h
18787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpl in -lm" >&5
18788 $as_echo_n "checking for cexpl in -lm... " >&6; }
18789 if test "${ac_cv_lib_m_cexpl+set}" = set; then :
18790 $as_echo_n "(cached) " >&6
18791 else
18792 ac_check_lib_save_LIBS=$LIBS
18793 LIBS="-lm $LIBS"
18794 if test x$gcc_no_link = xyes; then
18795 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18798 /* end confdefs.h. */
18800 /* Override any GCC internal prototype to avoid an error.
18801 Use char because int might match the return type of a GCC
18802 builtin and then its argument prototype would still apply. */
18803 #ifdef __cplusplus
18804 extern "C"
18805 #endif
18806 char cexpl ();
18808 main ()
18810 return cexpl ();
18812 return 0;
18814 _ACEOF
18815 if ac_fn_c_try_link "$LINENO"; then :
18816 ac_cv_lib_m_cexpl=yes
18817 else
18818 ac_cv_lib_m_cexpl=no
18820 rm -f core conftest.err conftest.$ac_objext \
18821 conftest$ac_exeext conftest.$ac_ext
18822 LIBS=$ac_check_lib_save_LIBS
18824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cexpl" >&5
18825 $as_echo "$ac_cv_lib_m_cexpl" >&6; }
18826 if test "x$ac_cv_lib_m_cexpl" = x""yes; then :
18828 $as_echo "#define HAVE_CEXPL 1" >>confdefs.h
18832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf in -lm" >&5
18833 $as_echo_n "checking for fabsf in -lm... " >&6; }
18834 if test "${ac_cv_lib_m_fabsf+set}" = set; then :
18835 $as_echo_n "(cached) " >&6
18836 else
18837 ac_check_lib_save_LIBS=$LIBS
18838 LIBS="-lm $LIBS"
18839 if test x$gcc_no_link = xyes; then
18840 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18843 /* end confdefs.h. */
18845 /* Override any GCC internal prototype to avoid an error.
18846 Use char because int might match the return type of a GCC
18847 builtin and then its argument prototype would still apply. */
18848 #ifdef __cplusplus
18849 extern "C"
18850 #endif
18851 char fabsf ();
18853 main ()
18855 return fabsf ();
18857 return 0;
18859 _ACEOF
18860 if ac_fn_c_try_link "$LINENO"; then :
18861 ac_cv_lib_m_fabsf=yes
18862 else
18863 ac_cv_lib_m_fabsf=no
18865 rm -f core conftest.err conftest.$ac_objext \
18866 conftest$ac_exeext conftest.$ac_ext
18867 LIBS=$ac_check_lib_save_LIBS
18869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fabsf" >&5
18870 $as_echo "$ac_cv_lib_m_fabsf" >&6; }
18871 if test "x$ac_cv_lib_m_fabsf" = x""yes; then :
18873 $as_echo "#define HAVE_FABSF 1" >>confdefs.h
18877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs in -lm" >&5
18878 $as_echo_n "checking for fabs in -lm... " >&6; }
18879 if test "${ac_cv_lib_m_fabs+set}" = set; then :
18880 $as_echo_n "(cached) " >&6
18881 else
18882 ac_check_lib_save_LIBS=$LIBS
18883 LIBS="-lm $LIBS"
18884 if test x$gcc_no_link = xyes; then
18885 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18888 /* end confdefs.h. */
18890 /* Override any GCC internal prototype to avoid an error.
18891 Use char because int might match the return type of a GCC
18892 builtin and then its argument prototype would still apply. */
18893 #ifdef __cplusplus
18894 extern "C"
18895 #endif
18896 char fabs ();
18898 main ()
18900 return fabs ();
18902 return 0;
18904 _ACEOF
18905 if ac_fn_c_try_link "$LINENO"; then :
18906 ac_cv_lib_m_fabs=yes
18907 else
18908 ac_cv_lib_m_fabs=no
18910 rm -f core conftest.err conftest.$ac_objext \
18911 conftest$ac_exeext conftest.$ac_ext
18912 LIBS=$ac_check_lib_save_LIBS
18914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fabs" >&5
18915 $as_echo "$ac_cv_lib_m_fabs" >&6; }
18916 if test "x$ac_cv_lib_m_fabs" = x""yes; then :
18918 $as_echo "#define HAVE_FABS 1" >>confdefs.h
18922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl in -lm" >&5
18923 $as_echo_n "checking for fabsl in -lm... " >&6; }
18924 if test "${ac_cv_lib_m_fabsl+set}" = set; then :
18925 $as_echo_n "(cached) " >&6
18926 else
18927 ac_check_lib_save_LIBS=$LIBS
18928 LIBS="-lm $LIBS"
18929 if test x$gcc_no_link = xyes; then
18930 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18933 /* end confdefs.h. */
18935 /* Override any GCC internal prototype to avoid an error.
18936 Use char because int might match the return type of a GCC
18937 builtin and then its argument prototype would still apply. */
18938 #ifdef __cplusplus
18939 extern "C"
18940 #endif
18941 char fabsl ();
18943 main ()
18945 return fabsl ();
18947 return 0;
18949 _ACEOF
18950 if ac_fn_c_try_link "$LINENO"; then :
18951 ac_cv_lib_m_fabsl=yes
18952 else
18953 ac_cv_lib_m_fabsl=no
18955 rm -f core conftest.err conftest.$ac_objext \
18956 conftest$ac_exeext conftest.$ac_ext
18957 LIBS=$ac_check_lib_save_LIBS
18959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fabsl" >&5
18960 $as_echo "$ac_cv_lib_m_fabsl" >&6; }
18961 if test "x$ac_cv_lib_m_fabsl" = x""yes; then :
18963 $as_echo "#define HAVE_FABSL 1" >>confdefs.h
18967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsf in -lm" >&5
18968 $as_echo_n "checking for cabsf in -lm... " >&6; }
18969 if test "${ac_cv_lib_m_cabsf+set}" = set; then :
18970 $as_echo_n "(cached) " >&6
18971 else
18972 ac_check_lib_save_LIBS=$LIBS
18973 LIBS="-lm $LIBS"
18974 if test x$gcc_no_link = xyes; then
18975 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18978 /* end confdefs.h. */
18980 /* Override any GCC internal prototype to avoid an error.
18981 Use char because int might match the return type of a GCC
18982 builtin and then its argument prototype would still apply. */
18983 #ifdef __cplusplus
18984 extern "C"
18985 #endif
18986 char cabsf ();
18988 main ()
18990 return cabsf ();
18992 return 0;
18994 _ACEOF
18995 if ac_fn_c_try_link "$LINENO"; then :
18996 ac_cv_lib_m_cabsf=yes
18997 else
18998 ac_cv_lib_m_cabsf=no
19000 rm -f core conftest.err conftest.$ac_objext \
19001 conftest$ac_exeext conftest.$ac_ext
19002 LIBS=$ac_check_lib_save_LIBS
19004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cabsf" >&5
19005 $as_echo "$ac_cv_lib_m_cabsf" >&6; }
19006 if test "x$ac_cv_lib_m_cabsf" = x""yes; then :
19008 $as_echo "#define HAVE_CABSF 1" >>confdefs.h
19012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabs in -lm" >&5
19013 $as_echo_n "checking for cabs in -lm... " >&6; }
19014 if test "${ac_cv_lib_m_cabs+set}" = set; then :
19015 $as_echo_n "(cached) " >&6
19016 else
19017 ac_check_lib_save_LIBS=$LIBS
19018 LIBS="-lm $LIBS"
19019 if test x$gcc_no_link = xyes; then
19020 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19023 /* end confdefs.h. */
19025 /* Override any GCC internal prototype to avoid an error.
19026 Use char because int might match the return type of a GCC
19027 builtin and then its argument prototype would still apply. */
19028 #ifdef __cplusplus
19029 extern "C"
19030 #endif
19031 char cabs ();
19033 main ()
19035 return cabs ();
19037 return 0;
19039 _ACEOF
19040 if ac_fn_c_try_link "$LINENO"; then :
19041 ac_cv_lib_m_cabs=yes
19042 else
19043 ac_cv_lib_m_cabs=no
19045 rm -f core conftest.err conftest.$ac_objext \
19046 conftest$ac_exeext conftest.$ac_ext
19047 LIBS=$ac_check_lib_save_LIBS
19049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cabs" >&5
19050 $as_echo "$ac_cv_lib_m_cabs" >&6; }
19051 if test "x$ac_cv_lib_m_cabs" = x""yes; then :
19053 $as_echo "#define HAVE_CABS 1" >>confdefs.h
19057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsl in -lm" >&5
19058 $as_echo_n "checking for cabsl in -lm... " >&6; }
19059 if test "${ac_cv_lib_m_cabsl+set}" = set; then :
19060 $as_echo_n "(cached) " >&6
19061 else
19062 ac_check_lib_save_LIBS=$LIBS
19063 LIBS="-lm $LIBS"
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 /* Override any GCC internal prototype to avoid an error.
19071 Use char because int might match the return type of a GCC
19072 builtin and then its argument prototype would still apply. */
19073 #ifdef __cplusplus
19074 extern "C"
19075 #endif
19076 char cabsl ();
19078 main ()
19080 return cabsl ();
19082 return 0;
19084 _ACEOF
19085 if ac_fn_c_try_link "$LINENO"; then :
19086 ac_cv_lib_m_cabsl=yes
19087 else
19088 ac_cv_lib_m_cabsl=no
19090 rm -f core conftest.err conftest.$ac_objext \
19091 conftest$ac_exeext conftest.$ac_ext
19092 LIBS=$ac_check_lib_save_LIBS
19094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cabsl" >&5
19095 $as_echo "$ac_cv_lib_m_cabsl" >&6; }
19096 if test "x$ac_cv_lib_m_cabsl" = x""yes; then :
19098 $as_echo "#define HAVE_CABSL 1" >>confdefs.h
19102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorf in -lm" >&5
19103 $as_echo_n "checking for floorf in -lm... " >&6; }
19104 if test "${ac_cv_lib_m_floorf+set}" = set; then :
19105 $as_echo_n "(cached) " >&6
19106 else
19107 ac_check_lib_save_LIBS=$LIBS
19108 LIBS="-lm $LIBS"
19109 if test x$gcc_no_link = xyes; then
19110 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19113 /* end confdefs.h. */
19115 /* Override any GCC internal prototype to avoid an error.
19116 Use char because int might match the return type of a GCC
19117 builtin and then its argument prototype would still apply. */
19118 #ifdef __cplusplus
19119 extern "C"
19120 #endif
19121 char floorf ();
19123 main ()
19125 return floorf ();
19127 return 0;
19129 _ACEOF
19130 if ac_fn_c_try_link "$LINENO"; then :
19131 ac_cv_lib_m_floorf=yes
19132 else
19133 ac_cv_lib_m_floorf=no
19135 rm -f core conftest.err conftest.$ac_objext \
19136 conftest$ac_exeext conftest.$ac_ext
19137 LIBS=$ac_check_lib_save_LIBS
19139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floorf" >&5
19140 $as_echo "$ac_cv_lib_m_floorf" >&6; }
19141 if test "x$ac_cv_lib_m_floorf" = x""yes; then :
19143 $as_echo "#define HAVE_FLOORF 1" >>confdefs.h
19147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor in -lm" >&5
19148 $as_echo_n "checking for floor in -lm... " >&6; }
19149 if test "${ac_cv_lib_m_floor+set}" = set; then :
19150 $as_echo_n "(cached) " >&6
19151 else
19152 ac_check_lib_save_LIBS=$LIBS
19153 LIBS="-lm $LIBS"
19154 if test x$gcc_no_link = xyes; then
19155 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19158 /* end confdefs.h. */
19160 /* Override any GCC internal prototype to avoid an error.
19161 Use char because int might match the return type of a GCC
19162 builtin and then its argument prototype would still apply. */
19163 #ifdef __cplusplus
19164 extern "C"
19165 #endif
19166 char floor ();
19168 main ()
19170 return floor ();
19172 return 0;
19174 _ACEOF
19175 if ac_fn_c_try_link "$LINENO"; then :
19176 ac_cv_lib_m_floor=yes
19177 else
19178 ac_cv_lib_m_floor=no
19180 rm -f core conftest.err conftest.$ac_objext \
19181 conftest$ac_exeext conftest.$ac_ext
19182 LIBS=$ac_check_lib_save_LIBS
19184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floor" >&5
19185 $as_echo "$ac_cv_lib_m_floor" >&6; }
19186 if test "x$ac_cv_lib_m_floor" = x""yes; then :
19188 $as_echo "#define HAVE_FLOOR 1" >>confdefs.h
19192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorl in -lm" >&5
19193 $as_echo_n "checking for floorl in -lm... " >&6; }
19194 if test "${ac_cv_lib_m_floorl+set}" = set; then :
19195 $as_echo_n "(cached) " >&6
19196 else
19197 ac_check_lib_save_LIBS=$LIBS
19198 LIBS="-lm $LIBS"
19199 if test x$gcc_no_link = xyes; then
19200 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19203 /* end confdefs.h. */
19205 /* Override any GCC internal prototype to avoid an error.
19206 Use char because int might match the return type of a GCC
19207 builtin and then its argument prototype would still apply. */
19208 #ifdef __cplusplus
19209 extern "C"
19210 #endif
19211 char floorl ();
19213 main ()
19215 return floorl ();
19217 return 0;
19219 _ACEOF
19220 if ac_fn_c_try_link "$LINENO"; then :
19221 ac_cv_lib_m_floorl=yes
19222 else
19223 ac_cv_lib_m_floorl=no
19225 rm -f core conftest.err conftest.$ac_objext \
19226 conftest$ac_exeext conftest.$ac_ext
19227 LIBS=$ac_check_lib_save_LIBS
19229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_floorl" >&5
19230 $as_echo "$ac_cv_lib_m_floorl" >&6; }
19231 if test "x$ac_cv_lib_m_floorl" = x""yes; then :
19233 $as_echo "#define HAVE_FLOORL 1" >>confdefs.h
19237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf in -lm" >&5
19238 $as_echo_n "checking for fmodf in -lm... " >&6; }
19239 if test "${ac_cv_lib_m_fmodf+set}" = set; then :
19240 $as_echo_n "(cached) " >&6
19241 else
19242 ac_check_lib_save_LIBS=$LIBS
19243 LIBS="-lm $LIBS"
19244 if test x$gcc_no_link = xyes; then
19245 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19248 /* end confdefs.h. */
19250 /* Override any GCC internal prototype to avoid an error.
19251 Use char because int might match the return type of a GCC
19252 builtin and then its argument prototype would still apply. */
19253 #ifdef __cplusplus
19254 extern "C"
19255 #endif
19256 char fmodf ();
19258 main ()
19260 return fmodf ();
19262 return 0;
19264 _ACEOF
19265 if ac_fn_c_try_link "$LINENO"; then :
19266 ac_cv_lib_m_fmodf=yes
19267 else
19268 ac_cv_lib_m_fmodf=no
19270 rm -f core conftest.err conftest.$ac_objext \
19271 conftest$ac_exeext conftest.$ac_ext
19272 LIBS=$ac_check_lib_save_LIBS
19274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fmodf" >&5
19275 $as_echo "$ac_cv_lib_m_fmodf" >&6; }
19276 if test "x$ac_cv_lib_m_fmodf" = x""yes; then :
19278 $as_echo "#define HAVE_FMODF 1" >>confdefs.h
19282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod in -lm" >&5
19283 $as_echo_n "checking for fmod in -lm... " >&6; }
19284 if test "${ac_cv_lib_m_fmod+set}" = set; then :
19285 $as_echo_n "(cached) " >&6
19286 else
19287 ac_check_lib_save_LIBS=$LIBS
19288 LIBS="-lm $LIBS"
19289 if test x$gcc_no_link = xyes; then
19290 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19293 /* end confdefs.h. */
19295 /* Override any GCC internal prototype to avoid an error.
19296 Use char because int might match the return type of a GCC
19297 builtin and then its argument prototype would still apply. */
19298 #ifdef __cplusplus
19299 extern "C"
19300 #endif
19301 char fmod ();
19303 main ()
19305 return fmod ();
19307 return 0;
19309 _ACEOF
19310 if ac_fn_c_try_link "$LINENO"; then :
19311 ac_cv_lib_m_fmod=yes
19312 else
19313 ac_cv_lib_m_fmod=no
19315 rm -f core conftest.err conftest.$ac_objext \
19316 conftest$ac_exeext conftest.$ac_ext
19317 LIBS=$ac_check_lib_save_LIBS
19319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fmod" >&5
19320 $as_echo "$ac_cv_lib_m_fmod" >&6; }
19321 if test "x$ac_cv_lib_m_fmod" = x""yes; then :
19323 $as_echo "#define HAVE_FMOD 1" >>confdefs.h
19327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl in -lm" >&5
19328 $as_echo_n "checking for fmodl in -lm... " >&6; }
19329 if test "${ac_cv_lib_m_fmodl+set}" = set; then :
19330 $as_echo_n "(cached) " >&6
19331 else
19332 ac_check_lib_save_LIBS=$LIBS
19333 LIBS="-lm $LIBS"
19334 if test x$gcc_no_link = xyes; then
19335 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19338 /* end confdefs.h. */
19340 /* Override any GCC internal prototype to avoid an error.
19341 Use char because int might match the return type of a GCC
19342 builtin and then its argument prototype would still apply. */
19343 #ifdef __cplusplus
19344 extern "C"
19345 #endif
19346 char fmodl ();
19348 main ()
19350 return fmodl ();
19352 return 0;
19354 _ACEOF
19355 if ac_fn_c_try_link "$LINENO"; then :
19356 ac_cv_lib_m_fmodl=yes
19357 else
19358 ac_cv_lib_m_fmodl=no
19360 rm -f core conftest.err conftest.$ac_objext \
19361 conftest$ac_exeext conftest.$ac_ext
19362 LIBS=$ac_check_lib_save_LIBS
19364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_fmodl" >&5
19365 $as_echo "$ac_cv_lib_m_fmodl" >&6; }
19366 if test "x$ac_cv_lib_m_fmodl" = x""yes; then :
19368 $as_echo "#define HAVE_FMODL 1" >>confdefs.h
19372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf in -lm" >&5
19373 $as_echo_n "checking for frexpf in -lm... " >&6; }
19374 if test "${ac_cv_lib_m_frexpf+set}" = set; then :
19375 $as_echo_n "(cached) " >&6
19376 else
19377 ac_check_lib_save_LIBS=$LIBS
19378 LIBS="-lm $LIBS"
19379 if test x$gcc_no_link = xyes; then
19380 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19382 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19383 /* end confdefs.h. */
19385 /* Override any GCC internal prototype to avoid an error.
19386 Use char because int might match the return type of a GCC
19387 builtin and then its argument prototype would still apply. */
19388 #ifdef __cplusplus
19389 extern "C"
19390 #endif
19391 char frexpf ();
19393 main ()
19395 return frexpf ();
19397 return 0;
19399 _ACEOF
19400 if ac_fn_c_try_link "$LINENO"; then :
19401 ac_cv_lib_m_frexpf=yes
19402 else
19403 ac_cv_lib_m_frexpf=no
19405 rm -f core conftest.err conftest.$ac_objext \
19406 conftest$ac_exeext conftest.$ac_ext
19407 LIBS=$ac_check_lib_save_LIBS
19409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_frexpf" >&5
19410 $as_echo "$ac_cv_lib_m_frexpf" >&6; }
19411 if test "x$ac_cv_lib_m_frexpf" = x""yes; then :
19413 $as_echo "#define HAVE_FREXPF 1" >>confdefs.h
19417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexp in -lm" >&5
19418 $as_echo_n "checking for frexp in -lm... " >&6; }
19419 if test "${ac_cv_lib_m_frexp+set}" = set; then :
19420 $as_echo_n "(cached) " >&6
19421 else
19422 ac_check_lib_save_LIBS=$LIBS
19423 LIBS="-lm $LIBS"
19424 if test x$gcc_no_link = xyes; then
19425 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19428 /* end confdefs.h. */
19430 /* Override any GCC internal prototype to avoid an error.
19431 Use char because int might match the return type of a GCC
19432 builtin and then its argument prototype would still apply. */
19433 #ifdef __cplusplus
19434 extern "C"
19435 #endif
19436 char frexp ();
19438 main ()
19440 return frexp ();
19442 return 0;
19444 _ACEOF
19445 if ac_fn_c_try_link "$LINENO"; then :
19446 ac_cv_lib_m_frexp=yes
19447 else
19448 ac_cv_lib_m_frexp=no
19450 rm -f core conftest.err conftest.$ac_objext \
19451 conftest$ac_exeext conftest.$ac_ext
19452 LIBS=$ac_check_lib_save_LIBS
19454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_frexp" >&5
19455 $as_echo "$ac_cv_lib_m_frexp" >&6; }
19456 if test "x$ac_cv_lib_m_frexp" = x""yes; then :
19458 $as_echo "#define HAVE_FREXP 1" >>confdefs.h
19462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl in -lm" >&5
19463 $as_echo_n "checking for frexpl in -lm... " >&6; }
19464 if test "${ac_cv_lib_m_frexpl+set}" = set; then :
19465 $as_echo_n "(cached) " >&6
19466 else
19467 ac_check_lib_save_LIBS=$LIBS
19468 LIBS="-lm $LIBS"
19469 if test x$gcc_no_link = xyes; then
19470 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19472 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19473 /* end confdefs.h. */
19475 /* Override any GCC internal prototype to avoid an error.
19476 Use char because int might match the return type of a GCC
19477 builtin and then its argument prototype would still apply. */
19478 #ifdef __cplusplus
19479 extern "C"
19480 #endif
19481 char frexpl ();
19483 main ()
19485 return frexpl ();
19487 return 0;
19489 _ACEOF
19490 if ac_fn_c_try_link "$LINENO"; then :
19491 ac_cv_lib_m_frexpl=yes
19492 else
19493 ac_cv_lib_m_frexpl=no
19495 rm -f core conftest.err conftest.$ac_objext \
19496 conftest$ac_exeext conftest.$ac_ext
19497 LIBS=$ac_check_lib_save_LIBS
19499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_frexpl" >&5
19500 $as_echo "$ac_cv_lib_m_frexpl" >&6; }
19501 if test "x$ac_cv_lib_m_frexpl" = x""yes; then :
19503 $as_echo "#define HAVE_FREXPL 1" >>confdefs.h
19507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf in -lm" >&5
19508 $as_echo_n "checking for hypotf in -lm... " >&6; }
19509 if test "${ac_cv_lib_m_hypotf+set}" = set; then :
19510 $as_echo_n "(cached) " >&6
19511 else
19512 ac_check_lib_save_LIBS=$LIBS
19513 LIBS="-lm $LIBS"
19514 if test x$gcc_no_link = xyes; then
19515 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19517 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19518 /* end confdefs.h. */
19520 /* Override any GCC internal prototype to avoid an error.
19521 Use char because int might match the return type of a GCC
19522 builtin and then its argument prototype would still apply. */
19523 #ifdef __cplusplus
19524 extern "C"
19525 #endif
19526 char hypotf ();
19528 main ()
19530 return hypotf ();
19532 return 0;
19534 _ACEOF
19535 if ac_fn_c_try_link "$LINENO"; then :
19536 ac_cv_lib_m_hypotf=yes
19537 else
19538 ac_cv_lib_m_hypotf=no
19540 rm -f core conftest.err conftest.$ac_objext \
19541 conftest$ac_exeext conftest.$ac_ext
19542 LIBS=$ac_check_lib_save_LIBS
19544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_hypotf" >&5
19545 $as_echo "$ac_cv_lib_m_hypotf" >&6; }
19546 if test "x$ac_cv_lib_m_hypotf" = x""yes; then :
19548 $as_echo "#define HAVE_HYPOTF 1" >>confdefs.h
19552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot in -lm" >&5
19553 $as_echo_n "checking for hypot in -lm... " >&6; }
19554 if test "${ac_cv_lib_m_hypot+set}" = set; then :
19555 $as_echo_n "(cached) " >&6
19556 else
19557 ac_check_lib_save_LIBS=$LIBS
19558 LIBS="-lm $LIBS"
19559 if test x$gcc_no_link = xyes; then
19560 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19563 /* end confdefs.h. */
19565 /* Override any GCC internal prototype to avoid an error.
19566 Use char because int might match the return type of a GCC
19567 builtin and then its argument prototype would still apply. */
19568 #ifdef __cplusplus
19569 extern "C"
19570 #endif
19571 char hypot ();
19573 main ()
19575 return hypot ();
19577 return 0;
19579 _ACEOF
19580 if ac_fn_c_try_link "$LINENO"; then :
19581 ac_cv_lib_m_hypot=yes
19582 else
19583 ac_cv_lib_m_hypot=no
19585 rm -f core conftest.err conftest.$ac_objext \
19586 conftest$ac_exeext conftest.$ac_ext
19587 LIBS=$ac_check_lib_save_LIBS
19589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_hypot" >&5
19590 $as_echo "$ac_cv_lib_m_hypot" >&6; }
19591 if test "x$ac_cv_lib_m_hypot" = x""yes; then :
19593 $as_echo "#define HAVE_HYPOT 1" >>confdefs.h
19597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl in -lm" >&5
19598 $as_echo_n "checking for hypotl in -lm... " >&6; }
19599 if test "${ac_cv_lib_m_hypotl+set}" = set; then :
19600 $as_echo_n "(cached) " >&6
19601 else
19602 ac_check_lib_save_LIBS=$LIBS
19603 LIBS="-lm $LIBS"
19604 if test x$gcc_no_link = xyes; then
19605 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19608 /* end confdefs.h. */
19610 /* Override any GCC internal prototype to avoid an error.
19611 Use char because int might match the return type of a GCC
19612 builtin and then its argument prototype would still apply. */
19613 #ifdef __cplusplus
19614 extern "C"
19615 #endif
19616 char hypotl ();
19618 main ()
19620 return hypotl ();
19622 return 0;
19624 _ACEOF
19625 if ac_fn_c_try_link "$LINENO"; then :
19626 ac_cv_lib_m_hypotl=yes
19627 else
19628 ac_cv_lib_m_hypotl=no
19630 rm -f core conftest.err conftest.$ac_objext \
19631 conftest$ac_exeext conftest.$ac_ext
19632 LIBS=$ac_check_lib_save_LIBS
19634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_hypotl" >&5
19635 $as_echo "$ac_cv_lib_m_hypotl" >&6; }
19636 if test "x$ac_cv_lib_m_hypotl" = x""yes; then :
19638 $as_echo "#define HAVE_HYPOTL 1" >>confdefs.h
19642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf in -lm" >&5
19643 $as_echo_n "checking for ldexpf in -lm... " >&6; }
19644 if test "${ac_cv_lib_m_ldexpf+set}" = set; then :
19645 $as_echo_n "(cached) " >&6
19646 else
19647 ac_check_lib_save_LIBS=$LIBS
19648 LIBS="-lm $LIBS"
19649 if test x$gcc_no_link = xyes; then
19650 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19653 /* end confdefs.h. */
19655 /* Override any GCC internal prototype to avoid an error.
19656 Use char because int might match the return type of a GCC
19657 builtin and then its argument prototype would still apply. */
19658 #ifdef __cplusplus
19659 extern "C"
19660 #endif
19661 char ldexpf ();
19663 main ()
19665 return ldexpf ();
19667 return 0;
19669 _ACEOF
19670 if ac_fn_c_try_link "$LINENO"; then :
19671 ac_cv_lib_m_ldexpf=yes
19672 else
19673 ac_cv_lib_m_ldexpf=no
19675 rm -f core conftest.err conftest.$ac_objext \
19676 conftest$ac_exeext conftest.$ac_ext
19677 LIBS=$ac_check_lib_save_LIBS
19679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ldexpf" >&5
19680 $as_echo "$ac_cv_lib_m_ldexpf" >&6; }
19681 if test "x$ac_cv_lib_m_ldexpf" = x""yes; then :
19683 $as_echo "#define HAVE_LDEXPF 1" >>confdefs.h
19687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexp in -lm" >&5
19688 $as_echo_n "checking for ldexp in -lm... " >&6; }
19689 if test "${ac_cv_lib_m_ldexp+set}" = set; then :
19690 $as_echo_n "(cached) " >&6
19691 else
19692 ac_check_lib_save_LIBS=$LIBS
19693 LIBS="-lm $LIBS"
19694 if test x$gcc_no_link = xyes; then
19695 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19698 /* end confdefs.h. */
19700 /* Override any GCC internal prototype to avoid an error.
19701 Use char because int might match the return type of a GCC
19702 builtin and then its argument prototype would still apply. */
19703 #ifdef __cplusplus
19704 extern "C"
19705 #endif
19706 char ldexp ();
19708 main ()
19710 return ldexp ();
19712 return 0;
19714 _ACEOF
19715 if ac_fn_c_try_link "$LINENO"; then :
19716 ac_cv_lib_m_ldexp=yes
19717 else
19718 ac_cv_lib_m_ldexp=no
19720 rm -f core conftest.err conftest.$ac_objext \
19721 conftest$ac_exeext conftest.$ac_ext
19722 LIBS=$ac_check_lib_save_LIBS
19724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ldexp" >&5
19725 $as_echo "$ac_cv_lib_m_ldexp" >&6; }
19726 if test "x$ac_cv_lib_m_ldexp" = x""yes; then :
19728 $as_echo "#define HAVE_LDEXP 1" >>confdefs.h
19732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl in -lm" >&5
19733 $as_echo_n "checking for ldexpl in -lm... " >&6; }
19734 if test "${ac_cv_lib_m_ldexpl+set}" = set; then :
19735 $as_echo_n "(cached) " >&6
19736 else
19737 ac_check_lib_save_LIBS=$LIBS
19738 LIBS="-lm $LIBS"
19739 if test x$gcc_no_link = xyes; then
19740 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19743 /* end confdefs.h. */
19745 /* Override any GCC internal prototype to avoid an error.
19746 Use char because int might match the return type of a GCC
19747 builtin and then its argument prototype would still apply. */
19748 #ifdef __cplusplus
19749 extern "C"
19750 #endif
19751 char ldexpl ();
19753 main ()
19755 return ldexpl ();
19757 return 0;
19759 _ACEOF
19760 if ac_fn_c_try_link "$LINENO"; then :
19761 ac_cv_lib_m_ldexpl=yes
19762 else
19763 ac_cv_lib_m_ldexpl=no
19765 rm -f core conftest.err conftest.$ac_objext \
19766 conftest$ac_exeext conftest.$ac_ext
19767 LIBS=$ac_check_lib_save_LIBS
19769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ldexpl" >&5
19770 $as_echo "$ac_cv_lib_m_ldexpl" >&6; }
19771 if test "x$ac_cv_lib_m_ldexpl" = x""yes; then :
19773 $as_echo "#define HAVE_LDEXPL 1" >>confdefs.h
19777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf in -lm" >&5
19778 $as_echo_n "checking for logf in -lm... " >&6; }
19779 if test "${ac_cv_lib_m_logf+set}" = set; then :
19780 $as_echo_n "(cached) " >&6
19781 else
19782 ac_check_lib_save_LIBS=$LIBS
19783 LIBS="-lm $LIBS"
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 /* Override any GCC internal prototype to avoid an error.
19791 Use char because int might match the return type of a GCC
19792 builtin and then its argument prototype would still apply. */
19793 #ifdef __cplusplus
19794 extern "C"
19795 #endif
19796 char logf ();
19798 main ()
19800 return logf ();
19802 return 0;
19804 _ACEOF
19805 if ac_fn_c_try_link "$LINENO"; then :
19806 ac_cv_lib_m_logf=yes
19807 else
19808 ac_cv_lib_m_logf=no
19810 rm -f core conftest.err conftest.$ac_objext \
19811 conftest$ac_exeext conftest.$ac_ext
19812 LIBS=$ac_check_lib_save_LIBS
19814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_logf" >&5
19815 $as_echo "$ac_cv_lib_m_logf" >&6; }
19816 if test "x$ac_cv_lib_m_logf" = x""yes; then :
19818 $as_echo "#define HAVE_LOGF 1" >>confdefs.h
19822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log in -lm" >&5
19823 $as_echo_n "checking for log in -lm... " >&6; }
19824 if test "${ac_cv_lib_m_log+set}" = set; then :
19825 $as_echo_n "(cached) " >&6
19826 else
19827 ac_check_lib_save_LIBS=$LIBS
19828 LIBS="-lm $LIBS"
19829 if test x$gcc_no_link = xyes; then
19830 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19833 /* end confdefs.h. */
19835 /* Override any GCC internal prototype to avoid an error.
19836 Use char because int might match the return type of a GCC
19837 builtin and then its argument prototype would still apply. */
19838 #ifdef __cplusplus
19839 extern "C"
19840 #endif
19841 char log ();
19843 main ()
19845 return log ();
19847 return 0;
19849 _ACEOF
19850 if ac_fn_c_try_link "$LINENO"; then :
19851 ac_cv_lib_m_log=yes
19852 else
19853 ac_cv_lib_m_log=no
19855 rm -f core conftest.err conftest.$ac_objext \
19856 conftest$ac_exeext conftest.$ac_ext
19857 LIBS=$ac_check_lib_save_LIBS
19859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log" >&5
19860 $as_echo "$ac_cv_lib_m_log" >&6; }
19861 if test "x$ac_cv_lib_m_log" = x""yes; then :
19863 $as_echo "#define HAVE_LOG 1" >>confdefs.h
19867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl in -lm" >&5
19868 $as_echo_n "checking for logl in -lm... " >&6; }
19869 if test "${ac_cv_lib_m_logl+set}" = set; then :
19870 $as_echo_n "(cached) " >&6
19871 else
19872 ac_check_lib_save_LIBS=$LIBS
19873 LIBS="-lm $LIBS"
19874 if test x$gcc_no_link = xyes; then
19875 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19878 /* end confdefs.h. */
19880 /* Override any GCC internal prototype to avoid an error.
19881 Use char because int might match the return type of a GCC
19882 builtin and then its argument prototype would still apply. */
19883 #ifdef __cplusplus
19884 extern "C"
19885 #endif
19886 char logl ();
19888 main ()
19890 return logl ();
19892 return 0;
19894 _ACEOF
19895 if ac_fn_c_try_link "$LINENO"; then :
19896 ac_cv_lib_m_logl=yes
19897 else
19898 ac_cv_lib_m_logl=no
19900 rm -f core conftest.err conftest.$ac_objext \
19901 conftest$ac_exeext conftest.$ac_ext
19902 LIBS=$ac_check_lib_save_LIBS
19904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_logl" >&5
19905 $as_echo "$ac_cv_lib_m_logl" >&6; }
19906 if test "x$ac_cv_lib_m_logl" = x""yes; then :
19908 $as_echo "#define HAVE_LOGL 1" >>confdefs.h
19912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogf in -lm" >&5
19913 $as_echo_n "checking for clogf in -lm... " >&6; }
19914 if test "${ac_cv_lib_m_clogf+set}" = set; then :
19915 $as_echo_n "(cached) " >&6
19916 else
19917 ac_check_lib_save_LIBS=$LIBS
19918 LIBS="-lm $LIBS"
19919 if test x$gcc_no_link = xyes; then
19920 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19923 /* end confdefs.h. */
19925 /* Override any GCC internal prototype to avoid an error.
19926 Use char because int might match the return type of a GCC
19927 builtin and then its argument prototype would still apply. */
19928 #ifdef __cplusplus
19929 extern "C"
19930 #endif
19931 char clogf ();
19933 main ()
19935 return clogf ();
19937 return 0;
19939 _ACEOF
19940 if ac_fn_c_try_link "$LINENO"; then :
19941 ac_cv_lib_m_clogf=yes
19942 else
19943 ac_cv_lib_m_clogf=no
19945 rm -f core conftest.err conftest.$ac_objext \
19946 conftest$ac_exeext conftest.$ac_ext
19947 LIBS=$ac_check_lib_save_LIBS
19949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_clogf" >&5
19950 $as_echo "$ac_cv_lib_m_clogf" >&6; }
19951 if test "x$ac_cv_lib_m_clogf" = x""yes; then :
19953 $as_echo "#define HAVE_CLOGF 1" >>confdefs.h
19957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog in -lm" >&5
19958 $as_echo_n "checking for clog in -lm... " >&6; }
19959 if test "${ac_cv_lib_m_clog+set}" = set; then :
19960 $as_echo_n "(cached) " >&6
19961 else
19962 ac_check_lib_save_LIBS=$LIBS
19963 LIBS="-lm $LIBS"
19964 if test x$gcc_no_link = xyes; then
19965 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19968 /* end confdefs.h. */
19970 /* Override any GCC internal prototype to avoid an error.
19971 Use char because int might match the return type of a GCC
19972 builtin and then its argument prototype would still apply. */
19973 #ifdef __cplusplus
19974 extern "C"
19975 #endif
19976 char clog ();
19978 main ()
19980 return clog ();
19982 return 0;
19984 _ACEOF
19985 if ac_fn_c_try_link "$LINENO"; then :
19986 ac_cv_lib_m_clog=yes
19987 else
19988 ac_cv_lib_m_clog=no
19990 rm -f core conftest.err conftest.$ac_objext \
19991 conftest$ac_exeext conftest.$ac_ext
19992 LIBS=$ac_check_lib_save_LIBS
19994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_clog" >&5
19995 $as_echo "$ac_cv_lib_m_clog" >&6; }
19996 if test "x$ac_cv_lib_m_clog" = x""yes; then :
19998 $as_echo "#define HAVE_CLOG 1" >>confdefs.h
20002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogl in -lm" >&5
20003 $as_echo_n "checking for clogl in -lm... " >&6; }
20004 if test "${ac_cv_lib_m_clogl+set}" = set; then :
20005 $as_echo_n "(cached) " >&6
20006 else
20007 ac_check_lib_save_LIBS=$LIBS
20008 LIBS="-lm $LIBS"
20009 if test x$gcc_no_link = xyes; then
20010 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20013 /* end confdefs.h. */
20015 /* Override any GCC internal prototype to avoid an error.
20016 Use char because int might match the return type of a GCC
20017 builtin and then its argument prototype would still apply. */
20018 #ifdef __cplusplus
20019 extern "C"
20020 #endif
20021 char clogl ();
20023 main ()
20025 return clogl ();
20027 return 0;
20029 _ACEOF
20030 if ac_fn_c_try_link "$LINENO"; then :
20031 ac_cv_lib_m_clogl=yes
20032 else
20033 ac_cv_lib_m_clogl=no
20035 rm -f core conftest.err conftest.$ac_objext \
20036 conftest$ac_exeext conftest.$ac_ext
20037 LIBS=$ac_check_lib_save_LIBS
20039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_clogl" >&5
20040 $as_echo "$ac_cv_lib_m_clogl" >&6; }
20041 if test "x$ac_cv_lib_m_clogl" = x""yes; then :
20043 $as_echo "#define HAVE_CLOGL 1" >>confdefs.h
20047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f in -lm" >&5
20048 $as_echo_n "checking for log10f in -lm... " >&6; }
20049 if test "${ac_cv_lib_m_log10f+set}" = set; then :
20050 $as_echo_n "(cached) " >&6
20051 else
20052 ac_check_lib_save_LIBS=$LIBS
20053 LIBS="-lm $LIBS"
20054 if test x$gcc_no_link = xyes; then
20055 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20058 /* end confdefs.h. */
20060 /* Override any GCC internal prototype to avoid an error.
20061 Use char because int might match the return type of a GCC
20062 builtin and then its argument prototype would still apply. */
20063 #ifdef __cplusplus
20064 extern "C"
20065 #endif
20066 char log10f ();
20068 main ()
20070 return log10f ();
20072 return 0;
20074 _ACEOF
20075 if ac_fn_c_try_link "$LINENO"; then :
20076 ac_cv_lib_m_log10f=yes
20077 else
20078 ac_cv_lib_m_log10f=no
20080 rm -f core conftest.err conftest.$ac_objext \
20081 conftest$ac_exeext conftest.$ac_ext
20082 LIBS=$ac_check_lib_save_LIBS
20084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log10f" >&5
20085 $as_echo "$ac_cv_lib_m_log10f" >&6; }
20086 if test "x$ac_cv_lib_m_log10f" = x""yes; then :
20088 $as_echo "#define HAVE_LOG10F 1" >>confdefs.h
20092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10 in -lm" >&5
20093 $as_echo_n "checking for log10 in -lm... " >&6; }
20094 if test "${ac_cv_lib_m_log10+set}" = set; then :
20095 $as_echo_n "(cached) " >&6
20096 else
20097 ac_check_lib_save_LIBS=$LIBS
20098 LIBS="-lm $LIBS"
20099 if test x$gcc_no_link = xyes; then
20100 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20103 /* end confdefs.h. */
20105 /* Override any GCC internal prototype to avoid an error.
20106 Use char because int might match the return type of a GCC
20107 builtin and then its argument prototype would still apply. */
20108 #ifdef __cplusplus
20109 extern "C"
20110 #endif
20111 char log10 ();
20113 main ()
20115 return log10 ();
20117 return 0;
20119 _ACEOF
20120 if ac_fn_c_try_link "$LINENO"; then :
20121 ac_cv_lib_m_log10=yes
20122 else
20123 ac_cv_lib_m_log10=no
20125 rm -f core conftest.err conftest.$ac_objext \
20126 conftest$ac_exeext conftest.$ac_ext
20127 LIBS=$ac_check_lib_save_LIBS
20129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log10" >&5
20130 $as_echo "$ac_cv_lib_m_log10" >&6; }
20131 if test "x$ac_cv_lib_m_log10" = x""yes; then :
20133 $as_echo "#define HAVE_LOG10 1" >>confdefs.h
20137 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l in -lm" >&5
20138 $as_echo_n "checking for log10l in -lm... " >&6; }
20139 if test "${ac_cv_lib_m_log10l+set}" = set; then :
20140 $as_echo_n "(cached) " >&6
20141 else
20142 ac_check_lib_save_LIBS=$LIBS
20143 LIBS="-lm $LIBS"
20144 if test x$gcc_no_link = xyes; then
20145 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20148 /* end confdefs.h. */
20150 /* Override any GCC internal prototype to avoid an error.
20151 Use char because int might match the return type of a GCC
20152 builtin and then its argument prototype would still apply. */
20153 #ifdef __cplusplus
20154 extern "C"
20155 #endif
20156 char log10l ();
20158 main ()
20160 return log10l ();
20162 return 0;
20164 _ACEOF
20165 if ac_fn_c_try_link "$LINENO"; then :
20166 ac_cv_lib_m_log10l=yes
20167 else
20168 ac_cv_lib_m_log10l=no
20170 rm -f core conftest.err conftest.$ac_objext \
20171 conftest$ac_exeext conftest.$ac_ext
20172 LIBS=$ac_check_lib_save_LIBS
20174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log10l" >&5
20175 $as_echo "$ac_cv_lib_m_log10l" >&6; }
20176 if test "x$ac_cv_lib_m_log10l" = x""yes; then :
20178 $as_echo "#define HAVE_LOG10L 1" >>confdefs.h
20182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10f in -lm" >&5
20183 $as_echo_n "checking for clog10f in -lm... " >&6; }
20184 if test "${ac_cv_lib_m_clog10f+set}" = set; then :
20185 $as_echo_n "(cached) " >&6
20186 else
20187 ac_check_lib_save_LIBS=$LIBS
20188 LIBS="-lm $LIBS"
20189 if test x$gcc_no_link = xyes; then
20190 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20193 /* end confdefs.h. */
20195 /* Override any GCC internal prototype to avoid an error.
20196 Use char because int might match the return type of a GCC
20197 builtin and then its argument prototype would still apply. */
20198 #ifdef __cplusplus
20199 extern "C"
20200 #endif
20201 char clog10f ();
20203 main ()
20205 return clog10f ();
20207 return 0;
20209 _ACEOF
20210 if ac_fn_c_try_link "$LINENO"; then :
20211 ac_cv_lib_m_clog10f=yes
20212 else
20213 ac_cv_lib_m_clog10f=no
20215 rm -f core conftest.err conftest.$ac_objext \
20216 conftest$ac_exeext conftest.$ac_ext
20217 LIBS=$ac_check_lib_save_LIBS
20219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_clog10f" >&5
20220 $as_echo "$ac_cv_lib_m_clog10f" >&6; }
20221 if test "x$ac_cv_lib_m_clog10f" = x""yes; then :
20223 $as_echo "#define HAVE_CLOG10F 1" >>confdefs.h
20227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10 in -lm" >&5
20228 $as_echo_n "checking for clog10 in -lm... " >&6; }
20229 if test "${ac_cv_lib_m_clog10+set}" = set; then :
20230 $as_echo_n "(cached) " >&6
20231 else
20232 ac_check_lib_save_LIBS=$LIBS
20233 LIBS="-lm $LIBS"
20234 if test x$gcc_no_link = xyes; then
20235 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20238 /* end confdefs.h. */
20240 /* Override any GCC internal prototype to avoid an error.
20241 Use char because int might match the return type of a GCC
20242 builtin and then its argument prototype would still apply. */
20243 #ifdef __cplusplus
20244 extern "C"
20245 #endif
20246 char clog10 ();
20248 main ()
20250 return clog10 ();
20252 return 0;
20254 _ACEOF
20255 if ac_fn_c_try_link "$LINENO"; then :
20256 ac_cv_lib_m_clog10=yes
20257 else
20258 ac_cv_lib_m_clog10=no
20260 rm -f core conftest.err conftest.$ac_objext \
20261 conftest$ac_exeext conftest.$ac_ext
20262 LIBS=$ac_check_lib_save_LIBS
20264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_clog10" >&5
20265 $as_echo "$ac_cv_lib_m_clog10" >&6; }
20266 if test "x$ac_cv_lib_m_clog10" = x""yes; then :
20268 $as_echo "#define HAVE_CLOG10 1" >>confdefs.h
20272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10l in -lm" >&5
20273 $as_echo_n "checking for clog10l in -lm... " >&6; }
20274 if test "${ac_cv_lib_m_clog10l+set}" = set; then :
20275 $as_echo_n "(cached) " >&6
20276 else
20277 ac_check_lib_save_LIBS=$LIBS
20278 LIBS="-lm $LIBS"
20279 if test x$gcc_no_link = xyes; then
20280 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20283 /* end confdefs.h. */
20285 /* Override any GCC internal prototype to avoid an error.
20286 Use char because int might match the return type of a GCC
20287 builtin and then its argument prototype would still apply. */
20288 #ifdef __cplusplus
20289 extern "C"
20290 #endif
20291 char clog10l ();
20293 main ()
20295 return clog10l ();
20297 return 0;
20299 _ACEOF
20300 if ac_fn_c_try_link "$LINENO"; then :
20301 ac_cv_lib_m_clog10l=yes
20302 else
20303 ac_cv_lib_m_clog10l=no
20305 rm -f core conftest.err conftest.$ac_objext \
20306 conftest$ac_exeext conftest.$ac_ext
20307 LIBS=$ac_check_lib_save_LIBS
20309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_clog10l" >&5
20310 $as_echo "$ac_cv_lib_m_clog10l" >&6; }
20311 if test "x$ac_cv_lib_m_clog10l" = x""yes; then :
20313 $as_echo "#define HAVE_CLOG10L 1" >>confdefs.h
20317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterf in -lm" >&5
20318 $as_echo_n "checking for nextafterf in -lm... " >&6; }
20319 if test "${ac_cv_lib_m_nextafterf+set}" = set; then :
20320 $as_echo_n "(cached) " >&6
20321 else
20322 ac_check_lib_save_LIBS=$LIBS
20323 LIBS="-lm $LIBS"
20324 if test x$gcc_no_link = xyes; then
20325 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20328 /* end confdefs.h. */
20330 /* Override any GCC internal prototype to avoid an error.
20331 Use char because int might match the return type of a GCC
20332 builtin and then its argument prototype would still apply. */
20333 #ifdef __cplusplus
20334 extern "C"
20335 #endif
20336 char nextafterf ();
20338 main ()
20340 return nextafterf ();
20342 return 0;
20344 _ACEOF
20345 if ac_fn_c_try_link "$LINENO"; then :
20346 ac_cv_lib_m_nextafterf=yes
20347 else
20348 ac_cv_lib_m_nextafterf=no
20350 rm -f core conftest.err conftest.$ac_objext \
20351 conftest$ac_exeext conftest.$ac_ext
20352 LIBS=$ac_check_lib_save_LIBS
20354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_nextafterf" >&5
20355 $as_echo "$ac_cv_lib_m_nextafterf" >&6; }
20356 if test "x$ac_cv_lib_m_nextafterf" = x""yes; then :
20358 $as_echo "#define HAVE_NEXTAFTERF 1" >>confdefs.h
20362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafter in -lm" >&5
20363 $as_echo_n "checking for nextafter in -lm... " >&6; }
20364 if test "${ac_cv_lib_m_nextafter+set}" = set; then :
20365 $as_echo_n "(cached) " >&6
20366 else
20367 ac_check_lib_save_LIBS=$LIBS
20368 LIBS="-lm $LIBS"
20369 if test x$gcc_no_link = xyes; then
20370 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20373 /* end confdefs.h. */
20375 /* Override any GCC internal prototype to avoid an error.
20376 Use char because int might match the return type of a GCC
20377 builtin and then its argument prototype would still apply. */
20378 #ifdef __cplusplus
20379 extern "C"
20380 #endif
20381 char nextafter ();
20383 main ()
20385 return nextafter ();
20387 return 0;
20389 _ACEOF
20390 if ac_fn_c_try_link "$LINENO"; then :
20391 ac_cv_lib_m_nextafter=yes
20392 else
20393 ac_cv_lib_m_nextafter=no
20395 rm -f core conftest.err conftest.$ac_objext \
20396 conftest$ac_exeext conftest.$ac_ext
20397 LIBS=$ac_check_lib_save_LIBS
20399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_nextafter" >&5
20400 $as_echo "$ac_cv_lib_m_nextafter" >&6; }
20401 if test "x$ac_cv_lib_m_nextafter" = x""yes; then :
20403 $as_echo "#define HAVE_NEXTAFTER 1" >>confdefs.h
20407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterl in -lm" >&5
20408 $as_echo_n "checking for nextafterl in -lm... " >&6; }
20409 if test "${ac_cv_lib_m_nextafterl+set}" = set; then :
20410 $as_echo_n "(cached) " >&6
20411 else
20412 ac_check_lib_save_LIBS=$LIBS
20413 LIBS="-lm $LIBS"
20414 if test x$gcc_no_link = xyes; then
20415 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20418 /* end confdefs.h. */
20420 /* Override any GCC internal prototype to avoid an error.
20421 Use char because int might match the return type of a GCC
20422 builtin and then its argument prototype would still apply. */
20423 #ifdef __cplusplus
20424 extern "C"
20425 #endif
20426 char nextafterl ();
20428 main ()
20430 return nextafterl ();
20432 return 0;
20434 _ACEOF
20435 if ac_fn_c_try_link "$LINENO"; then :
20436 ac_cv_lib_m_nextafterl=yes
20437 else
20438 ac_cv_lib_m_nextafterl=no
20440 rm -f core conftest.err conftest.$ac_objext \
20441 conftest$ac_exeext conftest.$ac_ext
20442 LIBS=$ac_check_lib_save_LIBS
20444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_nextafterl" >&5
20445 $as_echo "$ac_cv_lib_m_nextafterl" >&6; }
20446 if test "x$ac_cv_lib_m_nextafterl" = x""yes; then :
20448 $as_echo "#define HAVE_NEXTAFTERL 1" >>confdefs.h
20452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf in -lm" >&5
20453 $as_echo_n "checking for powf in -lm... " >&6; }
20454 if test "${ac_cv_lib_m_powf+set}" = set; then :
20455 $as_echo_n "(cached) " >&6
20456 else
20457 ac_check_lib_save_LIBS=$LIBS
20458 LIBS="-lm $LIBS"
20459 if test x$gcc_no_link = xyes; then
20460 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20463 /* end confdefs.h. */
20465 /* Override any GCC internal prototype to avoid an error.
20466 Use char because int might match the return type of a GCC
20467 builtin and then its argument prototype would still apply. */
20468 #ifdef __cplusplus
20469 extern "C"
20470 #endif
20471 char powf ();
20473 main ()
20475 return powf ();
20477 return 0;
20479 _ACEOF
20480 if ac_fn_c_try_link "$LINENO"; then :
20481 ac_cv_lib_m_powf=yes
20482 else
20483 ac_cv_lib_m_powf=no
20485 rm -f core conftest.err conftest.$ac_objext \
20486 conftest$ac_exeext conftest.$ac_ext
20487 LIBS=$ac_check_lib_save_LIBS
20489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_powf" >&5
20490 $as_echo "$ac_cv_lib_m_powf" >&6; }
20491 if test "x$ac_cv_lib_m_powf" = x""yes; then :
20493 $as_echo "#define HAVE_POWF 1" >>confdefs.h
20497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
20498 $as_echo_n "checking for pow in -lm... " >&6; }
20499 if test "${ac_cv_lib_m_pow+set}" = set; then :
20500 $as_echo_n "(cached) " >&6
20501 else
20502 ac_check_lib_save_LIBS=$LIBS
20503 LIBS="-lm $LIBS"
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 /* Override any GCC internal prototype to avoid an error.
20511 Use char because int might match the return type of a GCC
20512 builtin and then its argument prototype would still apply. */
20513 #ifdef __cplusplus
20514 extern "C"
20515 #endif
20516 char pow ();
20518 main ()
20520 return pow ();
20522 return 0;
20524 _ACEOF
20525 if ac_fn_c_try_link "$LINENO"; then :
20526 ac_cv_lib_m_pow=yes
20527 else
20528 ac_cv_lib_m_pow=no
20530 rm -f core conftest.err conftest.$ac_objext \
20531 conftest$ac_exeext conftest.$ac_ext
20532 LIBS=$ac_check_lib_save_LIBS
20534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
20535 $as_echo "$ac_cv_lib_m_pow" >&6; }
20536 if test "x$ac_cv_lib_m_pow" = x""yes; then :
20538 $as_echo "#define HAVE_POW 1" >>confdefs.h
20542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powl in -lm" >&5
20543 $as_echo_n "checking for powl in -lm... " >&6; }
20544 if test "${ac_cv_lib_m_powl+set}" = set; then :
20545 $as_echo_n "(cached) " >&6
20546 else
20547 ac_check_lib_save_LIBS=$LIBS
20548 LIBS="-lm $LIBS"
20549 if test x$gcc_no_link = xyes; then
20550 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20552 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20553 /* end confdefs.h. */
20555 /* Override any GCC internal prototype to avoid an error.
20556 Use char because int might match the return type of a GCC
20557 builtin and then its argument prototype would still apply. */
20558 #ifdef __cplusplus
20559 extern "C"
20560 #endif
20561 char powl ();
20563 main ()
20565 return powl ();
20567 return 0;
20569 _ACEOF
20570 if ac_fn_c_try_link "$LINENO"; then :
20571 ac_cv_lib_m_powl=yes
20572 else
20573 ac_cv_lib_m_powl=no
20575 rm -f core conftest.err conftest.$ac_objext \
20576 conftest$ac_exeext conftest.$ac_ext
20577 LIBS=$ac_check_lib_save_LIBS
20579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_powl" >&5
20580 $as_echo "$ac_cv_lib_m_powl" >&6; }
20581 if test "x$ac_cv_lib_m_powl" = x""yes; then :
20583 $as_echo "#define HAVE_POWL 1" >>confdefs.h
20587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowf in -lm" >&5
20588 $as_echo_n "checking for cpowf in -lm... " >&6; }
20589 if test "${ac_cv_lib_m_cpowf+set}" = set; then :
20590 $as_echo_n "(cached) " >&6
20591 else
20592 ac_check_lib_save_LIBS=$LIBS
20593 LIBS="-lm $LIBS"
20594 if test x$gcc_no_link = xyes; then
20595 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20598 /* end confdefs.h. */
20600 /* Override any GCC internal prototype to avoid an error.
20601 Use char because int might match the return type of a GCC
20602 builtin and then its argument prototype would still apply. */
20603 #ifdef __cplusplus
20604 extern "C"
20605 #endif
20606 char cpowf ();
20608 main ()
20610 return cpowf ();
20612 return 0;
20614 _ACEOF
20615 if ac_fn_c_try_link "$LINENO"; then :
20616 ac_cv_lib_m_cpowf=yes
20617 else
20618 ac_cv_lib_m_cpowf=no
20620 rm -f core conftest.err conftest.$ac_objext \
20621 conftest$ac_exeext conftest.$ac_ext
20622 LIBS=$ac_check_lib_save_LIBS
20624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cpowf" >&5
20625 $as_echo "$ac_cv_lib_m_cpowf" >&6; }
20626 if test "x$ac_cv_lib_m_cpowf" = x""yes; then :
20628 $as_echo "#define HAVE_CPOWF 1" >>confdefs.h
20632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpow in -lm" >&5
20633 $as_echo_n "checking for cpow in -lm... " >&6; }
20634 if test "${ac_cv_lib_m_cpow+set}" = set; then :
20635 $as_echo_n "(cached) " >&6
20636 else
20637 ac_check_lib_save_LIBS=$LIBS
20638 LIBS="-lm $LIBS"
20639 if test x$gcc_no_link = xyes; then
20640 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20643 /* end confdefs.h. */
20645 /* Override any GCC internal prototype to avoid an error.
20646 Use char because int might match the return type of a GCC
20647 builtin and then its argument prototype would still apply. */
20648 #ifdef __cplusplus
20649 extern "C"
20650 #endif
20651 char cpow ();
20653 main ()
20655 return cpow ();
20657 return 0;
20659 _ACEOF
20660 if ac_fn_c_try_link "$LINENO"; then :
20661 ac_cv_lib_m_cpow=yes
20662 else
20663 ac_cv_lib_m_cpow=no
20665 rm -f core conftest.err conftest.$ac_objext \
20666 conftest$ac_exeext conftest.$ac_ext
20667 LIBS=$ac_check_lib_save_LIBS
20669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cpow" >&5
20670 $as_echo "$ac_cv_lib_m_cpow" >&6; }
20671 if test "x$ac_cv_lib_m_cpow" = x""yes; then :
20673 $as_echo "#define HAVE_CPOW 1" >>confdefs.h
20677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowl in -lm" >&5
20678 $as_echo_n "checking for cpowl in -lm... " >&6; }
20679 if test "${ac_cv_lib_m_cpowl+set}" = set; then :
20680 $as_echo_n "(cached) " >&6
20681 else
20682 ac_check_lib_save_LIBS=$LIBS
20683 LIBS="-lm $LIBS"
20684 if test x$gcc_no_link = xyes; then
20685 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20688 /* end confdefs.h. */
20690 /* Override any GCC internal prototype to avoid an error.
20691 Use char because int might match the return type of a GCC
20692 builtin and then its argument prototype would still apply. */
20693 #ifdef __cplusplus
20694 extern "C"
20695 #endif
20696 char cpowl ();
20698 main ()
20700 return cpowl ();
20702 return 0;
20704 _ACEOF
20705 if ac_fn_c_try_link "$LINENO"; then :
20706 ac_cv_lib_m_cpowl=yes
20707 else
20708 ac_cv_lib_m_cpowl=no
20710 rm -f core conftest.err conftest.$ac_objext \
20711 conftest$ac_exeext conftest.$ac_ext
20712 LIBS=$ac_check_lib_save_LIBS
20714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cpowl" >&5
20715 $as_echo "$ac_cv_lib_m_cpowl" >&6; }
20716 if test "x$ac_cv_lib_m_cpowl" = x""yes; then :
20718 $as_echo "#define HAVE_CPOWL 1" >>confdefs.h
20722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundf in -lm" >&5
20723 $as_echo_n "checking for roundf in -lm... " >&6; }
20724 if test "${ac_cv_lib_m_roundf+set}" = set; then :
20725 $as_echo_n "(cached) " >&6
20726 else
20727 ac_check_lib_save_LIBS=$LIBS
20728 LIBS="-lm $LIBS"
20729 if test x$gcc_no_link = xyes; then
20730 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20733 /* end confdefs.h. */
20735 /* Override any GCC internal prototype to avoid an error.
20736 Use char because int might match the return type of a GCC
20737 builtin and then its argument prototype would still apply. */
20738 #ifdef __cplusplus
20739 extern "C"
20740 #endif
20741 char roundf ();
20743 main ()
20745 return roundf ();
20747 return 0;
20749 _ACEOF
20750 if ac_fn_c_try_link "$LINENO"; then :
20751 ac_cv_lib_m_roundf=yes
20752 else
20753 ac_cv_lib_m_roundf=no
20755 rm -f core conftest.err conftest.$ac_objext \
20756 conftest$ac_exeext conftest.$ac_ext
20757 LIBS=$ac_check_lib_save_LIBS
20759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_roundf" >&5
20760 $as_echo "$ac_cv_lib_m_roundf" >&6; }
20761 if test "x$ac_cv_lib_m_roundf" = x""yes; then :
20763 $as_echo "#define HAVE_ROUNDF 1" >>confdefs.h
20767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for round in -lm" >&5
20768 $as_echo_n "checking for round in -lm... " >&6; }
20769 if test "${ac_cv_lib_m_round+set}" = set; then :
20770 $as_echo_n "(cached) " >&6
20771 else
20772 ac_check_lib_save_LIBS=$LIBS
20773 LIBS="-lm $LIBS"
20774 if test x$gcc_no_link = xyes; then
20775 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20778 /* end confdefs.h. */
20780 /* Override any GCC internal prototype to avoid an error.
20781 Use char because int might match the return type of a GCC
20782 builtin and then its argument prototype would still apply. */
20783 #ifdef __cplusplus
20784 extern "C"
20785 #endif
20786 char round ();
20788 main ()
20790 return round ();
20792 return 0;
20794 _ACEOF
20795 if ac_fn_c_try_link "$LINENO"; then :
20796 ac_cv_lib_m_round=yes
20797 else
20798 ac_cv_lib_m_round=no
20800 rm -f core conftest.err conftest.$ac_objext \
20801 conftest$ac_exeext conftest.$ac_ext
20802 LIBS=$ac_check_lib_save_LIBS
20804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_round" >&5
20805 $as_echo "$ac_cv_lib_m_round" >&6; }
20806 if test "x$ac_cv_lib_m_round" = x""yes; then :
20808 $as_echo "#define HAVE_ROUND 1" >>confdefs.h
20812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundl in -lm" >&5
20813 $as_echo_n "checking for roundl in -lm... " >&6; }
20814 if test "${ac_cv_lib_m_roundl+set}" = set; then :
20815 $as_echo_n "(cached) " >&6
20816 else
20817 ac_check_lib_save_LIBS=$LIBS
20818 LIBS="-lm $LIBS"
20819 if test x$gcc_no_link = xyes; then
20820 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20823 /* end confdefs.h. */
20825 /* Override any GCC internal prototype to avoid an error.
20826 Use char because int might match the return type of a GCC
20827 builtin and then its argument prototype would still apply. */
20828 #ifdef __cplusplus
20829 extern "C"
20830 #endif
20831 char roundl ();
20833 main ()
20835 return roundl ();
20837 return 0;
20839 _ACEOF
20840 if ac_fn_c_try_link "$LINENO"; then :
20841 ac_cv_lib_m_roundl=yes
20842 else
20843 ac_cv_lib_m_roundl=no
20845 rm -f core conftest.err conftest.$ac_objext \
20846 conftest$ac_exeext conftest.$ac_ext
20847 LIBS=$ac_check_lib_save_LIBS
20849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_roundl" >&5
20850 $as_echo "$ac_cv_lib_m_roundl" >&6; }
20851 if test "x$ac_cv_lib_m_roundl" = x""yes; then :
20853 $as_echo "#define HAVE_ROUNDL 1" >>confdefs.h
20857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundf in -lm" >&5
20858 $as_echo_n "checking for lroundf in -lm... " >&6; }
20859 if test "${ac_cv_lib_m_lroundf+set}" = set; then :
20860 $as_echo_n "(cached) " >&6
20861 else
20862 ac_check_lib_save_LIBS=$LIBS
20863 LIBS="-lm $LIBS"
20864 if test x$gcc_no_link = xyes; then
20865 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20868 /* end confdefs.h. */
20870 /* Override any GCC internal prototype to avoid an error.
20871 Use char because int might match the return type of a GCC
20872 builtin and then its argument prototype would still apply. */
20873 #ifdef __cplusplus
20874 extern "C"
20875 #endif
20876 char lroundf ();
20878 main ()
20880 return lroundf ();
20882 return 0;
20884 _ACEOF
20885 if ac_fn_c_try_link "$LINENO"; then :
20886 ac_cv_lib_m_lroundf=yes
20887 else
20888 ac_cv_lib_m_lroundf=no
20890 rm -f core conftest.err conftest.$ac_objext \
20891 conftest$ac_exeext conftest.$ac_ext
20892 LIBS=$ac_check_lib_save_LIBS
20894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_lroundf" >&5
20895 $as_echo "$ac_cv_lib_m_lroundf" >&6; }
20896 if test "x$ac_cv_lib_m_lroundf" = x""yes; then :
20898 $as_echo "#define HAVE_LROUNDF 1" >>confdefs.h
20902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lround in -lm" >&5
20903 $as_echo_n "checking for lround in -lm... " >&6; }
20904 if test "${ac_cv_lib_m_lround+set}" = set; then :
20905 $as_echo_n "(cached) " >&6
20906 else
20907 ac_check_lib_save_LIBS=$LIBS
20908 LIBS="-lm $LIBS"
20909 if test x$gcc_no_link = xyes; then
20910 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20913 /* end confdefs.h. */
20915 /* Override any GCC internal prototype to avoid an error.
20916 Use char because int might match the return type of a GCC
20917 builtin and then its argument prototype would still apply. */
20918 #ifdef __cplusplus
20919 extern "C"
20920 #endif
20921 char lround ();
20923 main ()
20925 return lround ();
20927 return 0;
20929 _ACEOF
20930 if ac_fn_c_try_link "$LINENO"; then :
20931 ac_cv_lib_m_lround=yes
20932 else
20933 ac_cv_lib_m_lround=no
20935 rm -f core conftest.err conftest.$ac_objext \
20936 conftest$ac_exeext conftest.$ac_ext
20937 LIBS=$ac_check_lib_save_LIBS
20939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_lround" >&5
20940 $as_echo "$ac_cv_lib_m_lround" >&6; }
20941 if test "x$ac_cv_lib_m_lround" = x""yes; then :
20943 $as_echo "#define HAVE_LROUND 1" >>confdefs.h
20947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundl in -lm" >&5
20948 $as_echo_n "checking for lroundl in -lm... " >&6; }
20949 if test "${ac_cv_lib_m_lroundl+set}" = set; then :
20950 $as_echo_n "(cached) " >&6
20951 else
20952 ac_check_lib_save_LIBS=$LIBS
20953 LIBS="-lm $LIBS"
20954 if test x$gcc_no_link = xyes; then
20955 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20958 /* end confdefs.h. */
20960 /* Override any GCC internal prototype to avoid an error.
20961 Use char because int might match the return type of a GCC
20962 builtin and then its argument prototype would still apply. */
20963 #ifdef __cplusplus
20964 extern "C"
20965 #endif
20966 char lroundl ();
20968 main ()
20970 return lroundl ();
20972 return 0;
20974 _ACEOF
20975 if ac_fn_c_try_link "$LINENO"; then :
20976 ac_cv_lib_m_lroundl=yes
20977 else
20978 ac_cv_lib_m_lroundl=no
20980 rm -f core conftest.err conftest.$ac_objext \
20981 conftest$ac_exeext conftest.$ac_ext
20982 LIBS=$ac_check_lib_save_LIBS
20984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_lroundl" >&5
20985 $as_echo "$ac_cv_lib_m_lroundl" >&6; }
20986 if test "x$ac_cv_lib_m_lroundl" = x""yes; then :
20988 $as_echo "#define HAVE_LROUNDL 1" >>confdefs.h
20992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundf in -lm" >&5
20993 $as_echo_n "checking for llroundf in -lm... " >&6; }
20994 if test "${ac_cv_lib_m_llroundf+set}" = set; then :
20995 $as_echo_n "(cached) " >&6
20996 else
20997 ac_check_lib_save_LIBS=$LIBS
20998 LIBS="-lm $LIBS"
20999 if test x$gcc_no_link = xyes; then
21000 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21003 /* end confdefs.h. */
21005 /* Override any GCC internal prototype to avoid an error.
21006 Use char because int might match the return type of a GCC
21007 builtin and then its argument prototype would still apply. */
21008 #ifdef __cplusplus
21009 extern "C"
21010 #endif
21011 char llroundf ();
21013 main ()
21015 return llroundf ();
21017 return 0;
21019 _ACEOF
21020 if ac_fn_c_try_link "$LINENO"; then :
21021 ac_cv_lib_m_llroundf=yes
21022 else
21023 ac_cv_lib_m_llroundf=no
21025 rm -f core conftest.err conftest.$ac_objext \
21026 conftest$ac_exeext conftest.$ac_ext
21027 LIBS=$ac_check_lib_save_LIBS
21029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_llroundf" >&5
21030 $as_echo "$ac_cv_lib_m_llroundf" >&6; }
21031 if test "x$ac_cv_lib_m_llroundf" = x""yes; then :
21033 $as_echo "#define HAVE_LLROUNDF 1" >>confdefs.h
21037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llround in -lm" >&5
21038 $as_echo_n "checking for llround in -lm... " >&6; }
21039 if test "${ac_cv_lib_m_llround+set}" = set; then :
21040 $as_echo_n "(cached) " >&6
21041 else
21042 ac_check_lib_save_LIBS=$LIBS
21043 LIBS="-lm $LIBS"
21044 if test x$gcc_no_link = xyes; then
21045 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21048 /* end confdefs.h. */
21050 /* Override any GCC internal prototype to avoid an error.
21051 Use char because int might match the return type of a GCC
21052 builtin and then its argument prototype would still apply. */
21053 #ifdef __cplusplus
21054 extern "C"
21055 #endif
21056 char llround ();
21058 main ()
21060 return llround ();
21062 return 0;
21064 _ACEOF
21065 if ac_fn_c_try_link "$LINENO"; then :
21066 ac_cv_lib_m_llround=yes
21067 else
21068 ac_cv_lib_m_llround=no
21070 rm -f core conftest.err conftest.$ac_objext \
21071 conftest$ac_exeext conftest.$ac_ext
21072 LIBS=$ac_check_lib_save_LIBS
21074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_llround" >&5
21075 $as_echo "$ac_cv_lib_m_llround" >&6; }
21076 if test "x$ac_cv_lib_m_llround" = x""yes; then :
21078 $as_echo "#define HAVE_LLROUND 1" >>confdefs.h
21082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundl in -lm" >&5
21083 $as_echo_n "checking for llroundl in -lm... " >&6; }
21084 if test "${ac_cv_lib_m_llroundl+set}" = set; then :
21085 $as_echo_n "(cached) " >&6
21086 else
21087 ac_check_lib_save_LIBS=$LIBS
21088 LIBS="-lm $LIBS"
21089 if test x$gcc_no_link = xyes; then
21090 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21093 /* end confdefs.h. */
21095 /* Override any GCC internal prototype to avoid an error.
21096 Use char because int might match the return type of a GCC
21097 builtin and then its argument prototype would still apply. */
21098 #ifdef __cplusplus
21099 extern "C"
21100 #endif
21101 char llroundl ();
21103 main ()
21105 return llroundl ();
21107 return 0;
21109 _ACEOF
21110 if ac_fn_c_try_link "$LINENO"; then :
21111 ac_cv_lib_m_llroundl=yes
21112 else
21113 ac_cv_lib_m_llroundl=no
21115 rm -f core conftest.err conftest.$ac_objext \
21116 conftest$ac_exeext conftest.$ac_ext
21117 LIBS=$ac_check_lib_save_LIBS
21119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_llroundl" >&5
21120 $as_echo "$ac_cv_lib_m_llroundl" >&6; }
21121 if test "x$ac_cv_lib_m_llroundl" = x""yes; then :
21123 $as_echo "#define HAVE_LLROUNDL 1" >>confdefs.h
21127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnf in -lm" >&5
21128 $as_echo_n "checking for scalbnf in -lm... " >&6; }
21129 if test "${ac_cv_lib_m_scalbnf+set}" = set; then :
21130 $as_echo_n "(cached) " >&6
21131 else
21132 ac_check_lib_save_LIBS=$LIBS
21133 LIBS="-lm $LIBS"
21134 if test x$gcc_no_link = xyes; then
21135 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21138 /* end confdefs.h. */
21140 /* Override any GCC internal prototype to avoid an error.
21141 Use char because int might match the return type of a GCC
21142 builtin and then its argument prototype would still apply. */
21143 #ifdef __cplusplus
21144 extern "C"
21145 #endif
21146 char scalbnf ();
21148 main ()
21150 return scalbnf ();
21152 return 0;
21154 _ACEOF
21155 if ac_fn_c_try_link "$LINENO"; then :
21156 ac_cv_lib_m_scalbnf=yes
21157 else
21158 ac_cv_lib_m_scalbnf=no
21160 rm -f core conftest.err conftest.$ac_objext \
21161 conftest$ac_exeext conftest.$ac_ext
21162 LIBS=$ac_check_lib_save_LIBS
21164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_scalbnf" >&5
21165 $as_echo "$ac_cv_lib_m_scalbnf" >&6; }
21166 if test "x$ac_cv_lib_m_scalbnf" = x""yes; then :
21168 $as_echo "#define HAVE_SCALBNF 1" >>confdefs.h
21172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbn in -lm" >&5
21173 $as_echo_n "checking for scalbn in -lm... " >&6; }
21174 if test "${ac_cv_lib_m_scalbn+set}" = set; then :
21175 $as_echo_n "(cached) " >&6
21176 else
21177 ac_check_lib_save_LIBS=$LIBS
21178 LIBS="-lm $LIBS"
21179 if test x$gcc_no_link = xyes; then
21180 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21183 /* end confdefs.h. */
21185 /* Override any GCC internal prototype to avoid an error.
21186 Use char because int might match the return type of a GCC
21187 builtin and then its argument prototype would still apply. */
21188 #ifdef __cplusplus
21189 extern "C"
21190 #endif
21191 char scalbn ();
21193 main ()
21195 return scalbn ();
21197 return 0;
21199 _ACEOF
21200 if ac_fn_c_try_link "$LINENO"; then :
21201 ac_cv_lib_m_scalbn=yes
21202 else
21203 ac_cv_lib_m_scalbn=no
21205 rm -f core conftest.err conftest.$ac_objext \
21206 conftest$ac_exeext conftest.$ac_ext
21207 LIBS=$ac_check_lib_save_LIBS
21209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_scalbn" >&5
21210 $as_echo "$ac_cv_lib_m_scalbn" >&6; }
21211 if test "x$ac_cv_lib_m_scalbn" = x""yes; then :
21213 $as_echo "#define HAVE_SCALBN 1" >>confdefs.h
21217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnl in -lm" >&5
21218 $as_echo_n "checking for scalbnl in -lm... " >&6; }
21219 if test "${ac_cv_lib_m_scalbnl+set}" = set; then :
21220 $as_echo_n "(cached) " >&6
21221 else
21222 ac_check_lib_save_LIBS=$LIBS
21223 LIBS="-lm $LIBS"
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 /* Override any GCC internal prototype to avoid an error.
21231 Use char because int might match the return type of a GCC
21232 builtin and then its argument prototype would still apply. */
21233 #ifdef __cplusplus
21234 extern "C"
21235 #endif
21236 char scalbnl ();
21238 main ()
21240 return scalbnl ();
21242 return 0;
21244 _ACEOF
21245 if ac_fn_c_try_link "$LINENO"; then :
21246 ac_cv_lib_m_scalbnl=yes
21247 else
21248 ac_cv_lib_m_scalbnl=no
21250 rm -f core conftest.err conftest.$ac_objext \
21251 conftest$ac_exeext conftest.$ac_ext
21252 LIBS=$ac_check_lib_save_LIBS
21254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_scalbnl" >&5
21255 $as_echo "$ac_cv_lib_m_scalbnl" >&6; }
21256 if test "x$ac_cv_lib_m_scalbnl" = x""yes; then :
21258 $as_echo "#define HAVE_SCALBNL 1" >>confdefs.h
21262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinf in -lm" >&5
21263 $as_echo_n "checking for sinf in -lm... " >&6; }
21264 if test "${ac_cv_lib_m_sinf+set}" = set; then :
21265 $as_echo_n "(cached) " >&6
21266 else
21267 ac_check_lib_save_LIBS=$LIBS
21268 LIBS="-lm $LIBS"
21269 if test x$gcc_no_link = xyes; then
21270 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21273 /* end confdefs.h. */
21275 /* Override any GCC internal prototype to avoid an error.
21276 Use char because int might match the return type of a GCC
21277 builtin and then its argument prototype would still apply. */
21278 #ifdef __cplusplus
21279 extern "C"
21280 #endif
21281 char sinf ();
21283 main ()
21285 return sinf ();
21287 return 0;
21289 _ACEOF
21290 if ac_fn_c_try_link "$LINENO"; then :
21291 ac_cv_lib_m_sinf=yes
21292 else
21293 ac_cv_lib_m_sinf=no
21295 rm -f core conftest.err conftest.$ac_objext \
21296 conftest$ac_exeext conftest.$ac_ext
21297 LIBS=$ac_check_lib_save_LIBS
21299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sinf" >&5
21300 $as_echo "$ac_cv_lib_m_sinf" >&6; }
21301 if test "x$ac_cv_lib_m_sinf" = x""yes; then :
21303 $as_echo "#define HAVE_SINF 1" >>confdefs.h
21307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
21308 $as_echo_n "checking for sin in -lm... " >&6; }
21309 if test "${ac_cv_lib_m_sin+set}" = set; then :
21310 $as_echo_n "(cached) " >&6
21311 else
21312 ac_check_lib_save_LIBS=$LIBS
21313 LIBS="-lm $LIBS"
21314 if test x$gcc_no_link = xyes; then
21315 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21318 /* end confdefs.h. */
21320 /* Override any GCC internal prototype to avoid an error.
21321 Use char because int might match the return type of a GCC
21322 builtin and then its argument prototype would still apply. */
21323 #ifdef __cplusplus
21324 extern "C"
21325 #endif
21326 char sin ();
21328 main ()
21330 return sin ();
21332 return 0;
21334 _ACEOF
21335 if ac_fn_c_try_link "$LINENO"; then :
21336 ac_cv_lib_m_sin=yes
21337 else
21338 ac_cv_lib_m_sin=no
21340 rm -f core conftest.err conftest.$ac_objext \
21341 conftest$ac_exeext conftest.$ac_ext
21342 LIBS=$ac_check_lib_save_LIBS
21344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
21345 $as_echo "$ac_cv_lib_m_sin" >&6; }
21346 if test "x$ac_cv_lib_m_sin" = x""yes; then :
21348 $as_echo "#define HAVE_SIN 1" >>confdefs.h
21352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinl in -lm" >&5
21353 $as_echo_n "checking for sinl in -lm... " >&6; }
21354 if test "${ac_cv_lib_m_sinl+set}" = set; then :
21355 $as_echo_n "(cached) " >&6
21356 else
21357 ac_check_lib_save_LIBS=$LIBS
21358 LIBS="-lm $LIBS"
21359 if test x$gcc_no_link = xyes; then
21360 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21363 /* end confdefs.h. */
21365 /* Override any GCC internal prototype to avoid an error.
21366 Use char because int might match the return type of a GCC
21367 builtin and then its argument prototype would still apply. */
21368 #ifdef __cplusplus
21369 extern "C"
21370 #endif
21371 char sinl ();
21373 main ()
21375 return sinl ();
21377 return 0;
21379 _ACEOF
21380 if ac_fn_c_try_link "$LINENO"; then :
21381 ac_cv_lib_m_sinl=yes
21382 else
21383 ac_cv_lib_m_sinl=no
21385 rm -f core conftest.err conftest.$ac_objext \
21386 conftest$ac_exeext conftest.$ac_ext
21387 LIBS=$ac_check_lib_save_LIBS
21389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sinl" >&5
21390 $as_echo "$ac_cv_lib_m_sinl" >&6; }
21391 if test "x$ac_cv_lib_m_sinl" = x""yes; then :
21393 $as_echo "#define HAVE_SINL 1" >>confdefs.h
21397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinf in -lm" >&5
21398 $as_echo_n "checking for csinf in -lm... " >&6; }
21399 if test "${ac_cv_lib_m_csinf+set}" = set; then :
21400 $as_echo_n "(cached) " >&6
21401 else
21402 ac_check_lib_save_LIBS=$LIBS
21403 LIBS="-lm $LIBS"
21404 if test x$gcc_no_link = xyes; then
21405 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21408 /* end confdefs.h. */
21410 /* Override any GCC internal prototype to avoid an error.
21411 Use char because int might match the return type of a GCC
21412 builtin and then its argument prototype would still apply. */
21413 #ifdef __cplusplus
21414 extern "C"
21415 #endif
21416 char csinf ();
21418 main ()
21420 return csinf ();
21422 return 0;
21424 _ACEOF
21425 if ac_fn_c_try_link "$LINENO"; then :
21426 ac_cv_lib_m_csinf=yes
21427 else
21428 ac_cv_lib_m_csinf=no
21430 rm -f core conftest.err conftest.$ac_objext \
21431 conftest$ac_exeext conftest.$ac_ext
21432 LIBS=$ac_check_lib_save_LIBS
21434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_csinf" >&5
21435 $as_echo "$ac_cv_lib_m_csinf" >&6; }
21436 if test "x$ac_cv_lib_m_csinf" = x""yes; then :
21438 $as_echo "#define HAVE_CSINF 1" >>confdefs.h
21442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csin in -lm" >&5
21443 $as_echo_n "checking for csin in -lm... " >&6; }
21444 if test "${ac_cv_lib_m_csin+set}" = set; then :
21445 $as_echo_n "(cached) " >&6
21446 else
21447 ac_check_lib_save_LIBS=$LIBS
21448 LIBS="-lm $LIBS"
21449 if test x$gcc_no_link = xyes; then
21450 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21453 /* end confdefs.h. */
21455 /* Override any GCC internal prototype to avoid an error.
21456 Use char because int might match the return type of a GCC
21457 builtin and then its argument prototype would still apply. */
21458 #ifdef __cplusplus
21459 extern "C"
21460 #endif
21461 char csin ();
21463 main ()
21465 return csin ();
21467 return 0;
21469 _ACEOF
21470 if ac_fn_c_try_link "$LINENO"; then :
21471 ac_cv_lib_m_csin=yes
21472 else
21473 ac_cv_lib_m_csin=no
21475 rm -f core conftest.err conftest.$ac_objext \
21476 conftest$ac_exeext conftest.$ac_ext
21477 LIBS=$ac_check_lib_save_LIBS
21479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_csin" >&5
21480 $as_echo "$ac_cv_lib_m_csin" >&6; }
21481 if test "x$ac_cv_lib_m_csin" = x""yes; then :
21483 $as_echo "#define HAVE_CSIN 1" >>confdefs.h
21487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinl in -lm" >&5
21488 $as_echo_n "checking for csinl in -lm... " >&6; }
21489 if test "${ac_cv_lib_m_csinl+set}" = set; then :
21490 $as_echo_n "(cached) " >&6
21491 else
21492 ac_check_lib_save_LIBS=$LIBS
21493 LIBS="-lm $LIBS"
21494 if test x$gcc_no_link = xyes; then
21495 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21498 /* end confdefs.h. */
21500 /* Override any GCC internal prototype to avoid an error.
21501 Use char because int might match the return type of a GCC
21502 builtin and then its argument prototype would still apply. */
21503 #ifdef __cplusplus
21504 extern "C"
21505 #endif
21506 char csinl ();
21508 main ()
21510 return csinl ();
21512 return 0;
21514 _ACEOF
21515 if ac_fn_c_try_link "$LINENO"; then :
21516 ac_cv_lib_m_csinl=yes
21517 else
21518 ac_cv_lib_m_csinl=no
21520 rm -f core conftest.err conftest.$ac_objext \
21521 conftest$ac_exeext conftest.$ac_ext
21522 LIBS=$ac_check_lib_save_LIBS
21524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_csinl" >&5
21525 $as_echo "$ac_cv_lib_m_csinl" >&6; }
21526 if test "x$ac_cv_lib_m_csinl" = x""yes; then :
21528 $as_echo "#define HAVE_CSINL 1" >>confdefs.h
21532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhf in -lm" >&5
21533 $as_echo_n "checking for sinhf in -lm... " >&6; }
21534 if test "${ac_cv_lib_m_sinhf+set}" = set; then :
21535 $as_echo_n "(cached) " >&6
21536 else
21537 ac_check_lib_save_LIBS=$LIBS
21538 LIBS="-lm $LIBS"
21539 if test x$gcc_no_link = xyes; then
21540 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21543 /* end confdefs.h. */
21545 /* Override any GCC internal prototype to avoid an error.
21546 Use char because int might match the return type of a GCC
21547 builtin and then its argument prototype would still apply. */
21548 #ifdef __cplusplus
21549 extern "C"
21550 #endif
21551 char sinhf ();
21553 main ()
21555 return sinhf ();
21557 return 0;
21559 _ACEOF
21560 if ac_fn_c_try_link "$LINENO"; then :
21561 ac_cv_lib_m_sinhf=yes
21562 else
21563 ac_cv_lib_m_sinhf=no
21565 rm -f core conftest.err conftest.$ac_objext \
21566 conftest$ac_exeext conftest.$ac_ext
21567 LIBS=$ac_check_lib_save_LIBS
21569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sinhf" >&5
21570 $as_echo "$ac_cv_lib_m_sinhf" >&6; }
21571 if test "x$ac_cv_lib_m_sinhf" = x""yes; then :
21573 $as_echo "#define HAVE_SINHF 1" >>confdefs.h
21577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinh in -lm" >&5
21578 $as_echo_n "checking for sinh in -lm... " >&6; }
21579 if test "${ac_cv_lib_m_sinh+set}" = set; then :
21580 $as_echo_n "(cached) " >&6
21581 else
21582 ac_check_lib_save_LIBS=$LIBS
21583 LIBS="-lm $LIBS"
21584 if test x$gcc_no_link = xyes; then
21585 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21588 /* end confdefs.h. */
21590 /* Override any GCC internal prototype to avoid an error.
21591 Use char because int might match the return type of a GCC
21592 builtin and then its argument prototype would still apply. */
21593 #ifdef __cplusplus
21594 extern "C"
21595 #endif
21596 char sinh ();
21598 main ()
21600 return sinh ();
21602 return 0;
21604 _ACEOF
21605 if ac_fn_c_try_link "$LINENO"; then :
21606 ac_cv_lib_m_sinh=yes
21607 else
21608 ac_cv_lib_m_sinh=no
21610 rm -f core conftest.err conftest.$ac_objext \
21611 conftest$ac_exeext conftest.$ac_ext
21612 LIBS=$ac_check_lib_save_LIBS
21614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sinh" >&5
21615 $as_echo "$ac_cv_lib_m_sinh" >&6; }
21616 if test "x$ac_cv_lib_m_sinh" = x""yes; then :
21618 $as_echo "#define HAVE_SINH 1" >>confdefs.h
21622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhl in -lm" >&5
21623 $as_echo_n "checking for sinhl in -lm... " >&6; }
21624 if test "${ac_cv_lib_m_sinhl+set}" = set; then :
21625 $as_echo_n "(cached) " >&6
21626 else
21627 ac_check_lib_save_LIBS=$LIBS
21628 LIBS="-lm $LIBS"
21629 if test x$gcc_no_link = xyes; then
21630 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21633 /* end confdefs.h. */
21635 /* Override any GCC internal prototype to avoid an error.
21636 Use char because int might match the return type of a GCC
21637 builtin and then its argument prototype would still apply. */
21638 #ifdef __cplusplus
21639 extern "C"
21640 #endif
21641 char sinhl ();
21643 main ()
21645 return sinhl ();
21647 return 0;
21649 _ACEOF
21650 if ac_fn_c_try_link "$LINENO"; then :
21651 ac_cv_lib_m_sinhl=yes
21652 else
21653 ac_cv_lib_m_sinhl=no
21655 rm -f core conftest.err conftest.$ac_objext \
21656 conftest$ac_exeext conftest.$ac_ext
21657 LIBS=$ac_check_lib_save_LIBS
21659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sinhl" >&5
21660 $as_echo "$ac_cv_lib_m_sinhl" >&6; }
21661 if test "x$ac_cv_lib_m_sinhl" = x""yes; then :
21663 $as_echo "#define HAVE_SINHL 1" >>confdefs.h
21667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhf in -lm" >&5
21668 $as_echo_n "checking for csinhf in -lm... " >&6; }
21669 if test "${ac_cv_lib_m_csinhf+set}" = set; then :
21670 $as_echo_n "(cached) " >&6
21671 else
21672 ac_check_lib_save_LIBS=$LIBS
21673 LIBS="-lm $LIBS"
21674 if test x$gcc_no_link = xyes; then
21675 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21678 /* end confdefs.h. */
21680 /* Override any GCC internal prototype to avoid an error.
21681 Use char because int might match the return type of a GCC
21682 builtin and then its argument prototype would still apply. */
21683 #ifdef __cplusplus
21684 extern "C"
21685 #endif
21686 char csinhf ();
21688 main ()
21690 return csinhf ();
21692 return 0;
21694 _ACEOF
21695 if ac_fn_c_try_link "$LINENO"; then :
21696 ac_cv_lib_m_csinhf=yes
21697 else
21698 ac_cv_lib_m_csinhf=no
21700 rm -f core conftest.err conftest.$ac_objext \
21701 conftest$ac_exeext conftest.$ac_ext
21702 LIBS=$ac_check_lib_save_LIBS
21704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_csinhf" >&5
21705 $as_echo "$ac_cv_lib_m_csinhf" >&6; }
21706 if test "x$ac_cv_lib_m_csinhf" = x""yes; then :
21708 $as_echo "#define HAVE_CSINHF 1" >>confdefs.h
21712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinh in -lm" >&5
21713 $as_echo_n "checking for csinh in -lm... " >&6; }
21714 if test "${ac_cv_lib_m_csinh+set}" = set; then :
21715 $as_echo_n "(cached) " >&6
21716 else
21717 ac_check_lib_save_LIBS=$LIBS
21718 LIBS="-lm $LIBS"
21719 if test x$gcc_no_link = xyes; then
21720 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21723 /* end confdefs.h. */
21725 /* Override any GCC internal prototype to avoid an error.
21726 Use char because int might match the return type of a GCC
21727 builtin and then its argument prototype would still apply. */
21728 #ifdef __cplusplus
21729 extern "C"
21730 #endif
21731 char csinh ();
21733 main ()
21735 return csinh ();
21737 return 0;
21739 _ACEOF
21740 if ac_fn_c_try_link "$LINENO"; then :
21741 ac_cv_lib_m_csinh=yes
21742 else
21743 ac_cv_lib_m_csinh=no
21745 rm -f core conftest.err conftest.$ac_objext \
21746 conftest$ac_exeext conftest.$ac_ext
21747 LIBS=$ac_check_lib_save_LIBS
21749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_csinh" >&5
21750 $as_echo "$ac_cv_lib_m_csinh" >&6; }
21751 if test "x$ac_cv_lib_m_csinh" = x""yes; then :
21753 $as_echo "#define HAVE_CSINH 1" >>confdefs.h
21757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhl in -lm" >&5
21758 $as_echo_n "checking for csinhl in -lm... " >&6; }
21759 if test "${ac_cv_lib_m_csinhl+set}" = set; then :
21760 $as_echo_n "(cached) " >&6
21761 else
21762 ac_check_lib_save_LIBS=$LIBS
21763 LIBS="-lm $LIBS"
21764 if test x$gcc_no_link = xyes; then
21765 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21768 /* end confdefs.h. */
21770 /* Override any GCC internal prototype to avoid an error.
21771 Use char because int might match the return type of a GCC
21772 builtin and then its argument prototype would still apply. */
21773 #ifdef __cplusplus
21774 extern "C"
21775 #endif
21776 char csinhl ();
21778 main ()
21780 return csinhl ();
21782 return 0;
21784 _ACEOF
21785 if ac_fn_c_try_link "$LINENO"; then :
21786 ac_cv_lib_m_csinhl=yes
21787 else
21788 ac_cv_lib_m_csinhl=no
21790 rm -f core conftest.err conftest.$ac_objext \
21791 conftest$ac_exeext conftest.$ac_ext
21792 LIBS=$ac_check_lib_save_LIBS
21794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_csinhl" >&5
21795 $as_echo "$ac_cv_lib_m_csinhl" >&6; }
21796 if test "x$ac_cv_lib_m_csinhl" = x""yes; then :
21798 $as_echo "#define HAVE_CSINHL 1" >>confdefs.h
21802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf in -lm" >&5
21803 $as_echo_n "checking for sqrtf in -lm... " >&6; }
21804 if test "${ac_cv_lib_m_sqrtf+set}" = set; then :
21805 $as_echo_n "(cached) " >&6
21806 else
21807 ac_check_lib_save_LIBS=$LIBS
21808 LIBS="-lm $LIBS"
21809 if test x$gcc_no_link = xyes; then
21810 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21813 /* end confdefs.h. */
21815 /* Override any GCC internal prototype to avoid an error.
21816 Use char because int might match the return type of a GCC
21817 builtin and then its argument prototype would still apply. */
21818 #ifdef __cplusplus
21819 extern "C"
21820 #endif
21821 char sqrtf ();
21823 main ()
21825 return sqrtf ();
21827 return 0;
21829 _ACEOF
21830 if ac_fn_c_try_link "$LINENO"; then :
21831 ac_cv_lib_m_sqrtf=yes
21832 else
21833 ac_cv_lib_m_sqrtf=no
21835 rm -f core conftest.err conftest.$ac_objext \
21836 conftest$ac_exeext conftest.$ac_ext
21837 LIBS=$ac_check_lib_save_LIBS
21839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrtf" >&5
21840 $as_echo "$ac_cv_lib_m_sqrtf" >&6; }
21841 if test "x$ac_cv_lib_m_sqrtf" = x""yes; then :
21843 $as_echo "#define HAVE_SQRTF 1" >>confdefs.h
21847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt in -lm" >&5
21848 $as_echo_n "checking for sqrt in -lm... " >&6; }
21849 if test "${ac_cv_lib_m_sqrt+set}" = set; then :
21850 $as_echo_n "(cached) " >&6
21851 else
21852 ac_check_lib_save_LIBS=$LIBS
21853 LIBS="-lm $LIBS"
21854 if test x$gcc_no_link = xyes; then
21855 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21858 /* end confdefs.h. */
21860 /* Override any GCC internal prototype to avoid an error.
21861 Use char because int might match the return type of a GCC
21862 builtin and then its argument prototype would still apply. */
21863 #ifdef __cplusplus
21864 extern "C"
21865 #endif
21866 char sqrt ();
21868 main ()
21870 return sqrt ();
21872 return 0;
21874 _ACEOF
21875 if ac_fn_c_try_link "$LINENO"; then :
21876 ac_cv_lib_m_sqrt=yes
21877 else
21878 ac_cv_lib_m_sqrt=no
21880 rm -f core conftest.err conftest.$ac_objext \
21881 conftest$ac_exeext conftest.$ac_ext
21882 LIBS=$ac_check_lib_save_LIBS
21884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrt" >&5
21885 $as_echo "$ac_cv_lib_m_sqrt" >&6; }
21886 if test "x$ac_cv_lib_m_sqrt" = x""yes; then :
21888 $as_echo "#define HAVE_SQRT 1" >>confdefs.h
21892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl in -lm" >&5
21893 $as_echo_n "checking for sqrtl in -lm... " >&6; }
21894 if test "${ac_cv_lib_m_sqrtl+set}" = set; then :
21895 $as_echo_n "(cached) " >&6
21896 else
21897 ac_check_lib_save_LIBS=$LIBS
21898 LIBS="-lm $LIBS"
21899 if test x$gcc_no_link = xyes; then
21900 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21903 /* end confdefs.h. */
21905 /* Override any GCC internal prototype to avoid an error.
21906 Use char because int might match the return type of a GCC
21907 builtin and then its argument prototype would still apply. */
21908 #ifdef __cplusplus
21909 extern "C"
21910 #endif
21911 char sqrtl ();
21913 main ()
21915 return sqrtl ();
21917 return 0;
21919 _ACEOF
21920 if ac_fn_c_try_link "$LINENO"; then :
21921 ac_cv_lib_m_sqrtl=yes
21922 else
21923 ac_cv_lib_m_sqrtl=no
21925 rm -f core conftest.err conftest.$ac_objext \
21926 conftest$ac_exeext conftest.$ac_ext
21927 LIBS=$ac_check_lib_save_LIBS
21929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sqrtl" >&5
21930 $as_echo "$ac_cv_lib_m_sqrtl" >&6; }
21931 if test "x$ac_cv_lib_m_sqrtl" = x""yes; then :
21933 $as_echo "#define HAVE_SQRTL 1" >>confdefs.h
21937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtf in -lm" >&5
21938 $as_echo_n "checking for csqrtf in -lm... " >&6; }
21939 if test "${ac_cv_lib_m_csqrtf+set}" = set; then :
21940 $as_echo_n "(cached) " >&6
21941 else
21942 ac_check_lib_save_LIBS=$LIBS
21943 LIBS="-lm $LIBS"
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 /* Override any GCC internal prototype to avoid an error.
21951 Use char because int might match the return type of a GCC
21952 builtin and then its argument prototype would still apply. */
21953 #ifdef __cplusplus
21954 extern "C"
21955 #endif
21956 char csqrtf ();
21958 main ()
21960 return csqrtf ();
21962 return 0;
21964 _ACEOF
21965 if ac_fn_c_try_link "$LINENO"; then :
21966 ac_cv_lib_m_csqrtf=yes
21967 else
21968 ac_cv_lib_m_csqrtf=no
21970 rm -f core conftest.err conftest.$ac_objext \
21971 conftest$ac_exeext conftest.$ac_ext
21972 LIBS=$ac_check_lib_save_LIBS
21974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_csqrtf" >&5
21975 $as_echo "$ac_cv_lib_m_csqrtf" >&6; }
21976 if test "x$ac_cv_lib_m_csqrtf" = x""yes; then :
21978 $as_echo "#define HAVE_CSQRTF 1" >>confdefs.h
21982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrt in -lm" >&5
21983 $as_echo_n "checking for csqrt in -lm... " >&6; }
21984 if test "${ac_cv_lib_m_csqrt+set}" = set; then :
21985 $as_echo_n "(cached) " >&6
21986 else
21987 ac_check_lib_save_LIBS=$LIBS
21988 LIBS="-lm $LIBS"
21989 if test x$gcc_no_link = xyes; then
21990 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21993 /* end confdefs.h. */
21995 /* Override any GCC internal prototype to avoid an error.
21996 Use char because int might match the return type of a GCC
21997 builtin and then its argument prototype would still apply. */
21998 #ifdef __cplusplus
21999 extern "C"
22000 #endif
22001 char csqrt ();
22003 main ()
22005 return csqrt ();
22007 return 0;
22009 _ACEOF
22010 if ac_fn_c_try_link "$LINENO"; then :
22011 ac_cv_lib_m_csqrt=yes
22012 else
22013 ac_cv_lib_m_csqrt=no
22015 rm -f core conftest.err conftest.$ac_objext \
22016 conftest$ac_exeext conftest.$ac_ext
22017 LIBS=$ac_check_lib_save_LIBS
22019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_csqrt" >&5
22020 $as_echo "$ac_cv_lib_m_csqrt" >&6; }
22021 if test "x$ac_cv_lib_m_csqrt" = x""yes; then :
22023 $as_echo "#define HAVE_CSQRT 1" >>confdefs.h
22027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtl in -lm" >&5
22028 $as_echo_n "checking for csqrtl in -lm... " >&6; }
22029 if test "${ac_cv_lib_m_csqrtl+set}" = set; then :
22030 $as_echo_n "(cached) " >&6
22031 else
22032 ac_check_lib_save_LIBS=$LIBS
22033 LIBS="-lm $LIBS"
22034 if test x$gcc_no_link = xyes; then
22035 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22038 /* end confdefs.h. */
22040 /* Override any GCC internal prototype to avoid an error.
22041 Use char because int might match the return type of a GCC
22042 builtin and then its argument prototype would still apply. */
22043 #ifdef __cplusplus
22044 extern "C"
22045 #endif
22046 char csqrtl ();
22048 main ()
22050 return csqrtl ();
22052 return 0;
22054 _ACEOF
22055 if ac_fn_c_try_link "$LINENO"; then :
22056 ac_cv_lib_m_csqrtl=yes
22057 else
22058 ac_cv_lib_m_csqrtl=no
22060 rm -f core conftest.err conftest.$ac_objext \
22061 conftest$ac_exeext conftest.$ac_ext
22062 LIBS=$ac_check_lib_save_LIBS
22064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_csqrtl" >&5
22065 $as_echo "$ac_cv_lib_m_csqrtl" >&6; }
22066 if test "x$ac_cv_lib_m_csqrtl" = x""yes; then :
22068 $as_echo "#define HAVE_CSQRTL 1" >>confdefs.h
22072 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanf in -lm" >&5
22073 $as_echo_n "checking for tanf in -lm... " >&6; }
22074 if test "${ac_cv_lib_m_tanf+set}" = set; then :
22075 $as_echo_n "(cached) " >&6
22076 else
22077 ac_check_lib_save_LIBS=$LIBS
22078 LIBS="-lm $LIBS"
22079 if test x$gcc_no_link = xyes; then
22080 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22083 /* end confdefs.h. */
22085 /* Override any GCC internal prototype to avoid an error.
22086 Use char because int might match the return type of a GCC
22087 builtin and then its argument prototype would still apply. */
22088 #ifdef __cplusplus
22089 extern "C"
22090 #endif
22091 char tanf ();
22093 main ()
22095 return tanf ();
22097 return 0;
22099 _ACEOF
22100 if ac_fn_c_try_link "$LINENO"; then :
22101 ac_cv_lib_m_tanf=yes
22102 else
22103 ac_cv_lib_m_tanf=no
22105 rm -f core conftest.err conftest.$ac_objext \
22106 conftest$ac_exeext conftest.$ac_ext
22107 LIBS=$ac_check_lib_save_LIBS
22109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_tanf" >&5
22110 $as_echo "$ac_cv_lib_m_tanf" >&6; }
22111 if test "x$ac_cv_lib_m_tanf" = x""yes; then :
22113 $as_echo "#define HAVE_TANF 1" >>confdefs.h
22117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tan in -lm" >&5
22118 $as_echo_n "checking for tan in -lm... " >&6; }
22119 if test "${ac_cv_lib_m_tan+set}" = set; then :
22120 $as_echo_n "(cached) " >&6
22121 else
22122 ac_check_lib_save_LIBS=$LIBS
22123 LIBS="-lm $LIBS"
22124 if test x$gcc_no_link = xyes; then
22125 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22128 /* end confdefs.h. */
22130 /* Override any GCC internal prototype to avoid an error.
22131 Use char because int might match the return type of a GCC
22132 builtin and then its argument prototype would still apply. */
22133 #ifdef __cplusplus
22134 extern "C"
22135 #endif
22136 char tan ();
22138 main ()
22140 return tan ();
22142 return 0;
22144 _ACEOF
22145 if ac_fn_c_try_link "$LINENO"; then :
22146 ac_cv_lib_m_tan=yes
22147 else
22148 ac_cv_lib_m_tan=no
22150 rm -f core conftest.err conftest.$ac_objext \
22151 conftest$ac_exeext conftest.$ac_ext
22152 LIBS=$ac_check_lib_save_LIBS
22154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_tan" >&5
22155 $as_echo "$ac_cv_lib_m_tan" >&6; }
22156 if test "x$ac_cv_lib_m_tan" = x""yes; then :
22158 $as_echo "#define HAVE_TAN 1" >>confdefs.h
22162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanl in -lm" >&5
22163 $as_echo_n "checking for tanl in -lm... " >&6; }
22164 if test "${ac_cv_lib_m_tanl+set}" = set; then :
22165 $as_echo_n "(cached) " >&6
22166 else
22167 ac_check_lib_save_LIBS=$LIBS
22168 LIBS="-lm $LIBS"
22169 if test x$gcc_no_link = xyes; then
22170 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22173 /* end confdefs.h. */
22175 /* Override any GCC internal prototype to avoid an error.
22176 Use char because int might match the return type of a GCC
22177 builtin and then its argument prototype would still apply. */
22178 #ifdef __cplusplus
22179 extern "C"
22180 #endif
22181 char tanl ();
22183 main ()
22185 return tanl ();
22187 return 0;
22189 _ACEOF
22190 if ac_fn_c_try_link "$LINENO"; then :
22191 ac_cv_lib_m_tanl=yes
22192 else
22193 ac_cv_lib_m_tanl=no
22195 rm -f core conftest.err conftest.$ac_objext \
22196 conftest$ac_exeext conftest.$ac_ext
22197 LIBS=$ac_check_lib_save_LIBS
22199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_tanl" >&5
22200 $as_echo "$ac_cv_lib_m_tanl" >&6; }
22201 if test "x$ac_cv_lib_m_tanl" = x""yes; then :
22203 $as_echo "#define HAVE_TANL 1" >>confdefs.h
22207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanf in -lm" >&5
22208 $as_echo_n "checking for ctanf in -lm... " >&6; }
22209 if test "${ac_cv_lib_m_ctanf+set}" = set; then :
22210 $as_echo_n "(cached) " >&6
22211 else
22212 ac_check_lib_save_LIBS=$LIBS
22213 LIBS="-lm $LIBS"
22214 if test x$gcc_no_link = xyes; then
22215 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22218 /* end confdefs.h. */
22220 /* Override any GCC internal prototype to avoid an error.
22221 Use char because int might match the return type of a GCC
22222 builtin and then its argument prototype would still apply. */
22223 #ifdef __cplusplus
22224 extern "C"
22225 #endif
22226 char ctanf ();
22228 main ()
22230 return ctanf ();
22232 return 0;
22234 _ACEOF
22235 if ac_fn_c_try_link "$LINENO"; then :
22236 ac_cv_lib_m_ctanf=yes
22237 else
22238 ac_cv_lib_m_ctanf=no
22240 rm -f core conftest.err conftest.$ac_objext \
22241 conftest$ac_exeext conftest.$ac_ext
22242 LIBS=$ac_check_lib_save_LIBS
22244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ctanf" >&5
22245 $as_echo "$ac_cv_lib_m_ctanf" >&6; }
22246 if test "x$ac_cv_lib_m_ctanf" = x""yes; then :
22248 $as_echo "#define HAVE_CTANF 1" >>confdefs.h
22252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctan in -lm" >&5
22253 $as_echo_n "checking for ctan in -lm... " >&6; }
22254 if test "${ac_cv_lib_m_ctan+set}" = set; then :
22255 $as_echo_n "(cached) " >&6
22256 else
22257 ac_check_lib_save_LIBS=$LIBS
22258 LIBS="-lm $LIBS"
22259 if test x$gcc_no_link = xyes; then
22260 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22263 /* end confdefs.h. */
22265 /* Override any GCC internal prototype to avoid an error.
22266 Use char because int might match the return type of a GCC
22267 builtin and then its argument prototype would still apply. */
22268 #ifdef __cplusplus
22269 extern "C"
22270 #endif
22271 char ctan ();
22273 main ()
22275 return ctan ();
22277 return 0;
22279 _ACEOF
22280 if ac_fn_c_try_link "$LINENO"; then :
22281 ac_cv_lib_m_ctan=yes
22282 else
22283 ac_cv_lib_m_ctan=no
22285 rm -f core conftest.err conftest.$ac_objext \
22286 conftest$ac_exeext conftest.$ac_ext
22287 LIBS=$ac_check_lib_save_LIBS
22289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ctan" >&5
22290 $as_echo "$ac_cv_lib_m_ctan" >&6; }
22291 if test "x$ac_cv_lib_m_ctan" = x""yes; then :
22293 $as_echo "#define HAVE_CTAN 1" >>confdefs.h
22297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanl in -lm" >&5
22298 $as_echo_n "checking for ctanl in -lm... " >&6; }
22299 if test "${ac_cv_lib_m_ctanl+set}" = set; then :
22300 $as_echo_n "(cached) " >&6
22301 else
22302 ac_check_lib_save_LIBS=$LIBS
22303 LIBS="-lm $LIBS"
22304 if test x$gcc_no_link = xyes; then
22305 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22308 /* end confdefs.h. */
22310 /* Override any GCC internal prototype to avoid an error.
22311 Use char because int might match the return type of a GCC
22312 builtin and then its argument prototype would still apply. */
22313 #ifdef __cplusplus
22314 extern "C"
22315 #endif
22316 char ctanl ();
22318 main ()
22320 return ctanl ();
22322 return 0;
22324 _ACEOF
22325 if ac_fn_c_try_link "$LINENO"; then :
22326 ac_cv_lib_m_ctanl=yes
22327 else
22328 ac_cv_lib_m_ctanl=no
22330 rm -f core conftest.err conftest.$ac_objext \
22331 conftest$ac_exeext conftest.$ac_ext
22332 LIBS=$ac_check_lib_save_LIBS
22334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ctanl" >&5
22335 $as_echo "$ac_cv_lib_m_ctanl" >&6; }
22336 if test "x$ac_cv_lib_m_ctanl" = x""yes; then :
22338 $as_echo "#define HAVE_CTANL 1" >>confdefs.h
22342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhf in -lm" >&5
22343 $as_echo_n "checking for tanhf in -lm... " >&6; }
22344 if test "${ac_cv_lib_m_tanhf+set}" = set; then :
22345 $as_echo_n "(cached) " >&6
22346 else
22347 ac_check_lib_save_LIBS=$LIBS
22348 LIBS="-lm $LIBS"
22349 if test x$gcc_no_link = xyes; then
22350 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22353 /* end confdefs.h. */
22355 /* Override any GCC internal prototype to avoid an error.
22356 Use char because int might match the return type of a GCC
22357 builtin and then its argument prototype would still apply. */
22358 #ifdef __cplusplus
22359 extern "C"
22360 #endif
22361 char tanhf ();
22363 main ()
22365 return tanhf ();
22367 return 0;
22369 _ACEOF
22370 if ac_fn_c_try_link "$LINENO"; then :
22371 ac_cv_lib_m_tanhf=yes
22372 else
22373 ac_cv_lib_m_tanhf=no
22375 rm -f core conftest.err conftest.$ac_objext \
22376 conftest$ac_exeext conftest.$ac_ext
22377 LIBS=$ac_check_lib_save_LIBS
22379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_tanhf" >&5
22380 $as_echo "$ac_cv_lib_m_tanhf" >&6; }
22381 if test "x$ac_cv_lib_m_tanhf" = x""yes; then :
22383 $as_echo "#define HAVE_TANHF 1" >>confdefs.h
22387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanh in -lm" >&5
22388 $as_echo_n "checking for tanh in -lm... " >&6; }
22389 if test "${ac_cv_lib_m_tanh+set}" = set; then :
22390 $as_echo_n "(cached) " >&6
22391 else
22392 ac_check_lib_save_LIBS=$LIBS
22393 LIBS="-lm $LIBS"
22394 if test x$gcc_no_link = xyes; then
22395 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22398 /* end confdefs.h. */
22400 /* Override any GCC internal prototype to avoid an error.
22401 Use char because int might match the return type of a GCC
22402 builtin and then its argument prototype would still apply. */
22403 #ifdef __cplusplus
22404 extern "C"
22405 #endif
22406 char tanh ();
22408 main ()
22410 return tanh ();
22412 return 0;
22414 _ACEOF
22415 if ac_fn_c_try_link "$LINENO"; then :
22416 ac_cv_lib_m_tanh=yes
22417 else
22418 ac_cv_lib_m_tanh=no
22420 rm -f core conftest.err conftest.$ac_objext \
22421 conftest$ac_exeext conftest.$ac_ext
22422 LIBS=$ac_check_lib_save_LIBS
22424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_tanh" >&5
22425 $as_echo "$ac_cv_lib_m_tanh" >&6; }
22426 if test "x$ac_cv_lib_m_tanh" = x""yes; then :
22428 $as_echo "#define HAVE_TANH 1" >>confdefs.h
22432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhl in -lm" >&5
22433 $as_echo_n "checking for tanhl in -lm... " >&6; }
22434 if test "${ac_cv_lib_m_tanhl+set}" = set; then :
22435 $as_echo_n "(cached) " >&6
22436 else
22437 ac_check_lib_save_LIBS=$LIBS
22438 LIBS="-lm $LIBS"
22439 if test x$gcc_no_link = xyes; then
22440 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22443 /* end confdefs.h. */
22445 /* Override any GCC internal prototype to avoid an error.
22446 Use char because int might match the return type of a GCC
22447 builtin and then its argument prototype would still apply. */
22448 #ifdef __cplusplus
22449 extern "C"
22450 #endif
22451 char tanhl ();
22453 main ()
22455 return tanhl ();
22457 return 0;
22459 _ACEOF
22460 if ac_fn_c_try_link "$LINENO"; then :
22461 ac_cv_lib_m_tanhl=yes
22462 else
22463 ac_cv_lib_m_tanhl=no
22465 rm -f core conftest.err conftest.$ac_objext \
22466 conftest$ac_exeext conftest.$ac_ext
22467 LIBS=$ac_check_lib_save_LIBS
22469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_tanhl" >&5
22470 $as_echo "$ac_cv_lib_m_tanhl" >&6; }
22471 if test "x$ac_cv_lib_m_tanhl" = x""yes; then :
22473 $as_echo "#define HAVE_TANHL 1" >>confdefs.h
22477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhf in -lm" >&5
22478 $as_echo_n "checking for ctanhf in -lm... " >&6; }
22479 if test "${ac_cv_lib_m_ctanhf+set}" = set; then :
22480 $as_echo_n "(cached) " >&6
22481 else
22482 ac_check_lib_save_LIBS=$LIBS
22483 LIBS="-lm $LIBS"
22484 if test x$gcc_no_link = xyes; then
22485 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22488 /* end confdefs.h. */
22490 /* Override any GCC internal prototype to avoid an error.
22491 Use char because int might match the return type of a GCC
22492 builtin and then its argument prototype would still apply. */
22493 #ifdef __cplusplus
22494 extern "C"
22495 #endif
22496 char ctanhf ();
22498 main ()
22500 return ctanhf ();
22502 return 0;
22504 _ACEOF
22505 if ac_fn_c_try_link "$LINENO"; then :
22506 ac_cv_lib_m_ctanhf=yes
22507 else
22508 ac_cv_lib_m_ctanhf=no
22510 rm -f core conftest.err conftest.$ac_objext \
22511 conftest$ac_exeext conftest.$ac_ext
22512 LIBS=$ac_check_lib_save_LIBS
22514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ctanhf" >&5
22515 $as_echo "$ac_cv_lib_m_ctanhf" >&6; }
22516 if test "x$ac_cv_lib_m_ctanhf" = x""yes; then :
22518 $as_echo "#define HAVE_CTANHF 1" >>confdefs.h
22522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanh in -lm" >&5
22523 $as_echo_n "checking for ctanh in -lm... " >&6; }
22524 if test "${ac_cv_lib_m_ctanh+set}" = set; then :
22525 $as_echo_n "(cached) " >&6
22526 else
22527 ac_check_lib_save_LIBS=$LIBS
22528 LIBS="-lm $LIBS"
22529 if test x$gcc_no_link = xyes; then
22530 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22533 /* end confdefs.h. */
22535 /* Override any GCC internal prototype to avoid an error.
22536 Use char because int might match the return type of a GCC
22537 builtin and then its argument prototype would still apply. */
22538 #ifdef __cplusplus
22539 extern "C"
22540 #endif
22541 char ctanh ();
22543 main ()
22545 return ctanh ();
22547 return 0;
22549 _ACEOF
22550 if ac_fn_c_try_link "$LINENO"; then :
22551 ac_cv_lib_m_ctanh=yes
22552 else
22553 ac_cv_lib_m_ctanh=no
22555 rm -f core conftest.err conftest.$ac_objext \
22556 conftest$ac_exeext conftest.$ac_ext
22557 LIBS=$ac_check_lib_save_LIBS
22559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ctanh" >&5
22560 $as_echo "$ac_cv_lib_m_ctanh" >&6; }
22561 if test "x$ac_cv_lib_m_ctanh" = x""yes; then :
22563 $as_echo "#define HAVE_CTANH 1" >>confdefs.h
22567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhl in -lm" >&5
22568 $as_echo_n "checking for ctanhl in -lm... " >&6; }
22569 if test "${ac_cv_lib_m_ctanhl+set}" = set; then :
22570 $as_echo_n "(cached) " >&6
22571 else
22572 ac_check_lib_save_LIBS=$LIBS
22573 LIBS="-lm $LIBS"
22574 if test x$gcc_no_link = xyes; then
22575 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22578 /* end confdefs.h. */
22580 /* Override any GCC internal prototype to avoid an error.
22581 Use char because int might match the return type of a GCC
22582 builtin and then its argument prototype would still apply. */
22583 #ifdef __cplusplus
22584 extern "C"
22585 #endif
22586 char ctanhl ();
22588 main ()
22590 return ctanhl ();
22592 return 0;
22594 _ACEOF
22595 if ac_fn_c_try_link "$LINENO"; then :
22596 ac_cv_lib_m_ctanhl=yes
22597 else
22598 ac_cv_lib_m_ctanhl=no
22600 rm -f core conftest.err conftest.$ac_objext \
22601 conftest$ac_exeext conftest.$ac_ext
22602 LIBS=$ac_check_lib_save_LIBS
22604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ctanhl" >&5
22605 $as_echo "$ac_cv_lib_m_ctanhl" >&6; }
22606 if test "x$ac_cv_lib_m_ctanhl" = x""yes; then :
22608 $as_echo "#define HAVE_CTANHL 1" >>confdefs.h
22612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncf in -lm" >&5
22613 $as_echo_n "checking for truncf in -lm... " >&6; }
22614 if test "${ac_cv_lib_m_truncf+set}" = set; then :
22615 $as_echo_n "(cached) " >&6
22616 else
22617 ac_check_lib_save_LIBS=$LIBS
22618 LIBS="-lm $LIBS"
22619 if test x$gcc_no_link = xyes; then
22620 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22623 /* end confdefs.h. */
22625 /* Override any GCC internal prototype to avoid an error.
22626 Use char because int might match the return type of a GCC
22627 builtin and then its argument prototype would still apply. */
22628 #ifdef __cplusplus
22629 extern "C"
22630 #endif
22631 char truncf ();
22633 main ()
22635 return truncf ();
22637 return 0;
22639 _ACEOF
22640 if ac_fn_c_try_link "$LINENO"; then :
22641 ac_cv_lib_m_truncf=yes
22642 else
22643 ac_cv_lib_m_truncf=no
22645 rm -f core conftest.err conftest.$ac_objext \
22646 conftest$ac_exeext conftest.$ac_ext
22647 LIBS=$ac_check_lib_save_LIBS
22649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_truncf" >&5
22650 $as_echo "$ac_cv_lib_m_truncf" >&6; }
22651 if test "x$ac_cv_lib_m_truncf" = x""yes; then :
22653 $as_echo "#define HAVE_TRUNCF 1" >>confdefs.h
22657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for trunc in -lm" >&5
22658 $as_echo_n "checking for trunc in -lm... " >&6; }
22659 if test "${ac_cv_lib_m_trunc+set}" = set; then :
22660 $as_echo_n "(cached) " >&6
22661 else
22662 ac_check_lib_save_LIBS=$LIBS
22663 LIBS="-lm $LIBS"
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 /* Override any GCC internal prototype to avoid an error.
22671 Use char because int might match the return type of a GCC
22672 builtin and then its argument prototype would still apply. */
22673 #ifdef __cplusplus
22674 extern "C"
22675 #endif
22676 char trunc ();
22678 main ()
22680 return trunc ();
22682 return 0;
22684 _ACEOF
22685 if ac_fn_c_try_link "$LINENO"; then :
22686 ac_cv_lib_m_trunc=yes
22687 else
22688 ac_cv_lib_m_trunc=no
22690 rm -f core conftest.err conftest.$ac_objext \
22691 conftest$ac_exeext conftest.$ac_ext
22692 LIBS=$ac_check_lib_save_LIBS
22694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_trunc" >&5
22695 $as_echo "$ac_cv_lib_m_trunc" >&6; }
22696 if test "x$ac_cv_lib_m_trunc" = x""yes; then :
22698 $as_echo "#define HAVE_TRUNC 1" >>confdefs.h
22702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncl in -lm" >&5
22703 $as_echo_n "checking for truncl in -lm... " >&6; }
22704 if test "${ac_cv_lib_m_truncl+set}" = set; then :
22705 $as_echo_n "(cached) " >&6
22706 else
22707 ac_check_lib_save_LIBS=$LIBS
22708 LIBS="-lm $LIBS"
22709 if test x$gcc_no_link = xyes; then
22710 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22713 /* end confdefs.h. */
22715 /* Override any GCC internal prototype to avoid an error.
22716 Use char because int might match the return type of a GCC
22717 builtin and then its argument prototype would still apply. */
22718 #ifdef __cplusplus
22719 extern "C"
22720 #endif
22721 char truncl ();
22723 main ()
22725 return truncl ();
22727 return 0;
22729 _ACEOF
22730 if ac_fn_c_try_link "$LINENO"; then :
22731 ac_cv_lib_m_truncl=yes
22732 else
22733 ac_cv_lib_m_truncl=no
22735 rm -f core conftest.err conftest.$ac_objext \
22736 conftest$ac_exeext conftest.$ac_ext
22737 LIBS=$ac_check_lib_save_LIBS
22739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_truncl" >&5
22740 $as_echo "$ac_cv_lib_m_truncl" >&6; }
22741 if test "x$ac_cv_lib_m_truncl" = x""yes; then :
22743 $as_echo "#define HAVE_TRUNCL 1" >>confdefs.h
22747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erff in -lm" >&5
22748 $as_echo_n "checking for erff in -lm... " >&6; }
22749 if test "${ac_cv_lib_m_erff+set}" = set; then :
22750 $as_echo_n "(cached) " >&6
22751 else
22752 ac_check_lib_save_LIBS=$LIBS
22753 LIBS="-lm $LIBS"
22754 if test x$gcc_no_link = xyes; then
22755 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22758 /* end confdefs.h. */
22760 /* Override any GCC internal prototype to avoid an error.
22761 Use char because int might match the return type of a GCC
22762 builtin and then its argument prototype would still apply. */
22763 #ifdef __cplusplus
22764 extern "C"
22765 #endif
22766 char erff ();
22768 main ()
22770 return erff ();
22772 return 0;
22774 _ACEOF
22775 if ac_fn_c_try_link "$LINENO"; then :
22776 ac_cv_lib_m_erff=yes
22777 else
22778 ac_cv_lib_m_erff=no
22780 rm -f core conftest.err conftest.$ac_objext \
22781 conftest$ac_exeext conftest.$ac_ext
22782 LIBS=$ac_check_lib_save_LIBS
22784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_erff" >&5
22785 $as_echo "$ac_cv_lib_m_erff" >&6; }
22786 if test "x$ac_cv_lib_m_erff" = x""yes; then :
22788 $as_echo "#define HAVE_ERFF 1" >>confdefs.h
22792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erf in -lm" >&5
22793 $as_echo_n "checking for erf in -lm... " >&6; }
22794 if test "${ac_cv_lib_m_erf+set}" = set; then :
22795 $as_echo_n "(cached) " >&6
22796 else
22797 ac_check_lib_save_LIBS=$LIBS
22798 LIBS="-lm $LIBS"
22799 if test x$gcc_no_link = xyes; then
22800 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22803 /* end confdefs.h. */
22805 /* Override any GCC internal prototype to avoid an error.
22806 Use char because int might match the return type of a GCC
22807 builtin and then its argument prototype would still apply. */
22808 #ifdef __cplusplus
22809 extern "C"
22810 #endif
22811 char erf ();
22813 main ()
22815 return erf ();
22817 return 0;
22819 _ACEOF
22820 if ac_fn_c_try_link "$LINENO"; then :
22821 ac_cv_lib_m_erf=yes
22822 else
22823 ac_cv_lib_m_erf=no
22825 rm -f core conftest.err conftest.$ac_objext \
22826 conftest$ac_exeext conftest.$ac_ext
22827 LIBS=$ac_check_lib_save_LIBS
22829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_erf" >&5
22830 $as_echo "$ac_cv_lib_m_erf" >&6; }
22831 if test "x$ac_cv_lib_m_erf" = x""yes; then :
22833 $as_echo "#define HAVE_ERF 1" >>confdefs.h
22837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfl in -lm" >&5
22838 $as_echo_n "checking for erfl in -lm... " >&6; }
22839 if test "${ac_cv_lib_m_erfl+set}" = set; then :
22840 $as_echo_n "(cached) " >&6
22841 else
22842 ac_check_lib_save_LIBS=$LIBS
22843 LIBS="-lm $LIBS"
22844 if test x$gcc_no_link = xyes; then
22845 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22848 /* end confdefs.h. */
22850 /* Override any GCC internal prototype to avoid an error.
22851 Use char because int might match the return type of a GCC
22852 builtin and then its argument prototype would still apply. */
22853 #ifdef __cplusplus
22854 extern "C"
22855 #endif
22856 char erfl ();
22858 main ()
22860 return erfl ();
22862 return 0;
22864 _ACEOF
22865 if ac_fn_c_try_link "$LINENO"; then :
22866 ac_cv_lib_m_erfl=yes
22867 else
22868 ac_cv_lib_m_erfl=no
22870 rm -f core conftest.err conftest.$ac_objext \
22871 conftest$ac_exeext conftest.$ac_ext
22872 LIBS=$ac_check_lib_save_LIBS
22874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_erfl" >&5
22875 $as_echo "$ac_cv_lib_m_erfl" >&6; }
22876 if test "x$ac_cv_lib_m_erfl" = x""yes; then :
22878 $as_echo "#define HAVE_ERFL 1" >>confdefs.h
22882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcf in -lm" >&5
22883 $as_echo_n "checking for erfcf in -lm... " >&6; }
22884 if test "${ac_cv_lib_m_erfcf+set}" = set; then :
22885 $as_echo_n "(cached) " >&6
22886 else
22887 ac_check_lib_save_LIBS=$LIBS
22888 LIBS="-lm $LIBS"
22889 if test x$gcc_no_link = xyes; then
22890 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22893 /* end confdefs.h. */
22895 /* Override any GCC internal prototype to avoid an error.
22896 Use char because int might match the return type of a GCC
22897 builtin and then its argument prototype would still apply. */
22898 #ifdef __cplusplus
22899 extern "C"
22900 #endif
22901 char erfcf ();
22903 main ()
22905 return erfcf ();
22907 return 0;
22909 _ACEOF
22910 if ac_fn_c_try_link "$LINENO"; then :
22911 ac_cv_lib_m_erfcf=yes
22912 else
22913 ac_cv_lib_m_erfcf=no
22915 rm -f core conftest.err conftest.$ac_objext \
22916 conftest$ac_exeext conftest.$ac_ext
22917 LIBS=$ac_check_lib_save_LIBS
22919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_erfcf" >&5
22920 $as_echo "$ac_cv_lib_m_erfcf" >&6; }
22921 if test "x$ac_cv_lib_m_erfcf" = x""yes; then :
22923 $as_echo "#define HAVE_ERFCF 1" >>confdefs.h
22927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfc in -lm" >&5
22928 $as_echo_n "checking for erfc in -lm... " >&6; }
22929 if test "${ac_cv_lib_m_erfc+set}" = set; then :
22930 $as_echo_n "(cached) " >&6
22931 else
22932 ac_check_lib_save_LIBS=$LIBS
22933 LIBS="-lm $LIBS"
22934 if test x$gcc_no_link = xyes; then
22935 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22937 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22938 /* end confdefs.h. */
22940 /* Override any GCC internal prototype to avoid an error.
22941 Use char because int might match the return type of a GCC
22942 builtin and then its argument prototype would still apply. */
22943 #ifdef __cplusplus
22944 extern "C"
22945 #endif
22946 char erfc ();
22948 main ()
22950 return erfc ();
22952 return 0;
22954 _ACEOF
22955 if ac_fn_c_try_link "$LINENO"; then :
22956 ac_cv_lib_m_erfc=yes
22957 else
22958 ac_cv_lib_m_erfc=no
22960 rm -f core conftest.err conftest.$ac_objext \
22961 conftest$ac_exeext conftest.$ac_ext
22962 LIBS=$ac_check_lib_save_LIBS
22964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_erfc" >&5
22965 $as_echo "$ac_cv_lib_m_erfc" >&6; }
22966 if test "x$ac_cv_lib_m_erfc" = x""yes; then :
22968 $as_echo "#define HAVE_ERFC 1" >>confdefs.h
22972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcl in -lm" >&5
22973 $as_echo_n "checking for erfcl in -lm... " >&6; }
22974 if test "${ac_cv_lib_m_erfcl+set}" = set; then :
22975 $as_echo_n "(cached) " >&6
22976 else
22977 ac_check_lib_save_LIBS=$LIBS
22978 LIBS="-lm $LIBS"
22979 if test x$gcc_no_link = xyes; then
22980 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22983 /* end confdefs.h. */
22985 /* Override any GCC internal prototype to avoid an error.
22986 Use char because int might match the return type of a GCC
22987 builtin and then its argument prototype would still apply. */
22988 #ifdef __cplusplus
22989 extern "C"
22990 #endif
22991 char erfcl ();
22993 main ()
22995 return erfcl ();
22997 return 0;
22999 _ACEOF
23000 if ac_fn_c_try_link "$LINENO"; then :
23001 ac_cv_lib_m_erfcl=yes
23002 else
23003 ac_cv_lib_m_erfcl=no
23005 rm -f core conftest.err conftest.$ac_objext \
23006 conftest$ac_exeext conftest.$ac_ext
23007 LIBS=$ac_check_lib_save_LIBS
23009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_erfcl" >&5
23010 $as_echo "$ac_cv_lib_m_erfcl" >&6; }
23011 if test "x$ac_cv_lib_m_erfcl" = x""yes; then :
23013 $as_echo "#define HAVE_ERFCL 1" >>confdefs.h
23017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0f in -lm" >&5
23018 $as_echo_n "checking for j0f in -lm... " >&6; }
23019 if test "${ac_cv_lib_m_j0f+set}" = set; then :
23020 $as_echo_n "(cached) " >&6
23021 else
23022 ac_check_lib_save_LIBS=$LIBS
23023 LIBS="-lm $LIBS"
23024 if test x$gcc_no_link = xyes; then
23025 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23028 /* end confdefs.h. */
23030 /* Override any GCC internal prototype to avoid an error.
23031 Use char because int might match the return type of a GCC
23032 builtin and then its argument prototype would still apply. */
23033 #ifdef __cplusplus
23034 extern "C"
23035 #endif
23036 char j0f ();
23038 main ()
23040 return j0f ();
23042 return 0;
23044 _ACEOF
23045 if ac_fn_c_try_link "$LINENO"; then :
23046 ac_cv_lib_m_j0f=yes
23047 else
23048 ac_cv_lib_m_j0f=no
23050 rm -f core conftest.err conftest.$ac_objext \
23051 conftest$ac_exeext conftest.$ac_ext
23052 LIBS=$ac_check_lib_save_LIBS
23054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_j0f" >&5
23055 $as_echo "$ac_cv_lib_m_j0f" >&6; }
23056 if test "x$ac_cv_lib_m_j0f" = x""yes; then :
23058 $as_echo "#define HAVE_J0F 1" >>confdefs.h
23062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0 in -lm" >&5
23063 $as_echo_n "checking for j0 in -lm... " >&6; }
23064 if test "${ac_cv_lib_m_j0+set}" = set; then :
23065 $as_echo_n "(cached) " >&6
23066 else
23067 ac_check_lib_save_LIBS=$LIBS
23068 LIBS="-lm $LIBS"
23069 if test x$gcc_no_link = xyes; then
23070 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23073 /* end confdefs.h. */
23075 /* Override any GCC internal prototype to avoid an error.
23076 Use char because int might match the return type of a GCC
23077 builtin and then its argument prototype would still apply. */
23078 #ifdef __cplusplus
23079 extern "C"
23080 #endif
23081 char j0 ();
23083 main ()
23085 return j0 ();
23087 return 0;
23089 _ACEOF
23090 if ac_fn_c_try_link "$LINENO"; then :
23091 ac_cv_lib_m_j0=yes
23092 else
23093 ac_cv_lib_m_j0=no
23095 rm -f core conftest.err conftest.$ac_objext \
23096 conftest$ac_exeext conftest.$ac_ext
23097 LIBS=$ac_check_lib_save_LIBS
23099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_j0" >&5
23100 $as_echo "$ac_cv_lib_m_j0" >&6; }
23101 if test "x$ac_cv_lib_m_j0" = x""yes; then :
23103 $as_echo "#define HAVE_J0 1" >>confdefs.h
23107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0l in -lm" >&5
23108 $as_echo_n "checking for j0l in -lm... " >&6; }
23109 if test "${ac_cv_lib_m_j0l+set}" = set; then :
23110 $as_echo_n "(cached) " >&6
23111 else
23112 ac_check_lib_save_LIBS=$LIBS
23113 LIBS="-lm $LIBS"
23114 if test x$gcc_no_link = xyes; then
23115 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23118 /* end confdefs.h. */
23120 /* Override any GCC internal prototype to avoid an error.
23121 Use char because int might match the return type of a GCC
23122 builtin and then its argument prototype would still apply. */
23123 #ifdef __cplusplus
23124 extern "C"
23125 #endif
23126 char j0l ();
23128 main ()
23130 return j0l ();
23132 return 0;
23134 _ACEOF
23135 if ac_fn_c_try_link "$LINENO"; then :
23136 ac_cv_lib_m_j0l=yes
23137 else
23138 ac_cv_lib_m_j0l=no
23140 rm -f core conftest.err conftest.$ac_objext \
23141 conftest$ac_exeext conftest.$ac_ext
23142 LIBS=$ac_check_lib_save_LIBS
23144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_j0l" >&5
23145 $as_echo "$ac_cv_lib_m_j0l" >&6; }
23146 if test "x$ac_cv_lib_m_j0l" = x""yes; then :
23148 $as_echo "#define HAVE_J0L 1" >>confdefs.h
23152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1f in -lm" >&5
23153 $as_echo_n "checking for j1f in -lm... " >&6; }
23154 if test "${ac_cv_lib_m_j1f+set}" = set; then :
23155 $as_echo_n "(cached) " >&6
23156 else
23157 ac_check_lib_save_LIBS=$LIBS
23158 LIBS="-lm $LIBS"
23159 if test x$gcc_no_link = xyes; then
23160 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23163 /* end confdefs.h. */
23165 /* Override any GCC internal prototype to avoid an error.
23166 Use char because int might match the return type of a GCC
23167 builtin and then its argument prototype would still apply. */
23168 #ifdef __cplusplus
23169 extern "C"
23170 #endif
23171 char j1f ();
23173 main ()
23175 return j1f ();
23177 return 0;
23179 _ACEOF
23180 if ac_fn_c_try_link "$LINENO"; then :
23181 ac_cv_lib_m_j1f=yes
23182 else
23183 ac_cv_lib_m_j1f=no
23185 rm -f core conftest.err conftest.$ac_objext \
23186 conftest$ac_exeext conftest.$ac_ext
23187 LIBS=$ac_check_lib_save_LIBS
23189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_j1f" >&5
23190 $as_echo "$ac_cv_lib_m_j1f" >&6; }
23191 if test "x$ac_cv_lib_m_j1f" = x""yes; then :
23193 $as_echo "#define HAVE_J1F 1" >>confdefs.h
23197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1 in -lm" >&5
23198 $as_echo_n "checking for j1 in -lm... " >&6; }
23199 if test "${ac_cv_lib_m_j1+set}" = set; then :
23200 $as_echo_n "(cached) " >&6
23201 else
23202 ac_check_lib_save_LIBS=$LIBS
23203 LIBS="-lm $LIBS"
23204 if test x$gcc_no_link = xyes; then
23205 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23208 /* end confdefs.h. */
23210 /* Override any GCC internal prototype to avoid an error.
23211 Use char because int might match the return type of a GCC
23212 builtin and then its argument prototype would still apply. */
23213 #ifdef __cplusplus
23214 extern "C"
23215 #endif
23216 char j1 ();
23218 main ()
23220 return j1 ();
23222 return 0;
23224 _ACEOF
23225 if ac_fn_c_try_link "$LINENO"; then :
23226 ac_cv_lib_m_j1=yes
23227 else
23228 ac_cv_lib_m_j1=no
23230 rm -f core conftest.err conftest.$ac_objext \
23231 conftest$ac_exeext conftest.$ac_ext
23232 LIBS=$ac_check_lib_save_LIBS
23234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_j1" >&5
23235 $as_echo "$ac_cv_lib_m_j1" >&6; }
23236 if test "x$ac_cv_lib_m_j1" = x""yes; then :
23238 $as_echo "#define HAVE_J1 1" >>confdefs.h
23242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1l in -lm" >&5
23243 $as_echo_n "checking for j1l in -lm... " >&6; }
23244 if test "${ac_cv_lib_m_j1l+set}" = set; then :
23245 $as_echo_n "(cached) " >&6
23246 else
23247 ac_check_lib_save_LIBS=$LIBS
23248 LIBS="-lm $LIBS"
23249 if test x$gcc_no_link = xyes; then
23250 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23253 /* end confdefs.h. */
23255 /* Override any GCC internal prototype to avoid an error.
23256 Use char because int might match the return type of a GCC
23257 builtin and then its argument prototype would still apply. */
23258 #ifdef __cplusplus
23259 extern "C"
23260 #endif
23261 char j1l ();
23263 main ()
23265 return j1l ();
23267 return 0;
23269 _ACEOF
23270 if ac_fn_c_try_link "$LINENO"; then :
23271 ac_cv_lib_m_j1l=yes
23272 else
23273 ac_cv_lib_m_j1l=no
23275 rm -f core conftest.err conftest.$ac_objext \
23276 conftest$ac_exeext conftest.$ac_ext
23277 LIBS=$ac_check_lib_save_LIBS
23279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_j1l" >&5
23280 $as_echo "$ac_cv_lib_m_j1l" >&6; }
23281 if test "x$ac_cv_lib_m_j1l" = x""yes; then :
23283 $as_echo "#define HAVE_J1L 1" >>confdefs.h
23287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnf in -lm" >&5
23288 $as_echo_n "checking for jnf in -lm... " >&6; }
23289 if test "${ac_cv_lib_m_jnf+set}" = set; then :
23290 $as_echo_n "(cached) " >&6
23291 else
23292 ac_check_lib_save_LIBS=$LIBS
23293 LIBS="-lm $LIBS"
23294 if test x$gcc_no_link = xyes; then
23295 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23298 /* end confdefs.h. */
23300 /* Override any GCC internal prototype to avoid an error.
23301 Use char because int might match the return type of a GCC
23302 builtin and then its argument prototype would still apply. */
23303 #ifdef __cplusplus
23304 extern "C"
23305 #endif
23306 char jnf ();
23308 main ()
23310 return jnf ();
23312 return 0;
23314 _ACEOF
23315 if ac_fn_c_try_link "$LINENO"; then :
23316 ac_cv_lib_m_jnf=yes
23317 else
23318 ac_cv_lib_m_jnf=no
23320 rm -f core conftest.err conftest.$ac_objext \
23321 conftest$ac_exeext conftest.$ac_ext
23322 LIBS=$ac_check_lib_save_LIBS
23324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_jnf" >&5
23325 $as_echo "$ac_cv_lib_m_jnf" >&6; }
23326 if test "x$ac_cv_lib_m_jnf" = x""yes; then :
23328 $as_echo "#define HAVE_JNF 1" >>confdefs.h
23332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jn in -lm" >&5
23333 $as_echo_n "checking for jn in -lm... " >&6; }
23334 if test "${ac_cv_lib_m_jn+set}" = set; then :
23335 $as_echo_n "(cached) " >&6
23336 else
23337 ac_check_lib_save_LIBS=$LIBS
23338 LIBS="-lm $LIBS"
23339 if test x$gcc_no_link = xyes; then
23340 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23343 /* end confdefs.h. */
23345 /* Override any GCC internal prototype to avoid an error.
23346 Use char because int might match the return type of a GCC
23347 builtin and then its argument prototype would still apply. */
23348 #ifdef __cplusplus
23349 extern "C"
23350 #endif
23351 char jn ();
23353 main ()
23355 return jn ();
23357 return 0;
23359 _ACEOF
23360 if ac_fn_c_try_link "$LINENO"; then :
23361 ac_cv_lib_m_jn=yes
23362 else
23363 ac_cv_lib_m_jn=no
23365 rm -f core conftest.err conftest.$ac_objext \
23366 conftest$ac_exeext conftest.$ac_ext
23367 LIBS=$ac_check_lib_save_LIBS
23369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_jn" >&5
23370 $as_echo "$ac_cv_lib_m_jn" >&6; }
23371 if test "x$ac_cv_lib_m_jn" = x""yes; then :
23373 $as_echo "#define HAVE_JN 1" >>confdefs.h
23377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnl in -lm" >&5
23378 $as_echo_n "checking for jnl in -lm... " >&6; }
23379 if test "${ac_cv_lib_m_jnl+set}" = set; then :
23380 $as_echo_n "(cached) " >&6
23381 else
23382 ac_check_lib_save_LIBS=$LIBS
23383 LIBS="-lm $LIBS"
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 /* Override any GCC internal prototype to avoid an error.
23391 Use char because int might match the return type of a GCC
23392 builtin and then its argument prototype would still apply. */
23393 #ifdef __cplusplus
23394 extern "C"
23395 #endif
23396 char jnl ();
23398 main ()
23400 return jnl ();
23402 return 0;
23404 _ACEOF
23405 if ac_fn_c_try_link "$LINENO"; then :
23406 ac_cv_lib_m_jnl=yes
23407 else
23408 ac_cv_lib_m_jnl=no
23410 rm -f core conftest.err conftest.$ac_objext \
23411 conftest$ac_exeext conftest.$ac_ext
23412 LIBS=$ac_check_lib_save_LIBS
23414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_jnl" >&5
23415 $as_echo "$ac_cv_lib_m_jnl" >&6; }
23416 if test "x$ac_cv_lib_m_jnl" = x""yes; then :
23418 $as_echo "#define HAVE_JNL 1" >>confdefs.h
23422 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0f in -lm" >&5
23423 $as_echo_n "checking for y0f in -lm... " >&6; }
23424 if test "${ac_cv_lib_m_y0f+set}" = set; then :
23425 $as_echo_n "(cached) " >&6
23426 else
23427 ac_check_lib_save_LIBS=$LIBS
23428 LIBS="-lm $LIBS"
23429 if test x$gcc_no_link = xyes; then
23430 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23433 /* end confdefs.h. */
23435 /* Override any GCC internal prototype to avoid an error.
23436 Use char because int might match the return type of a GCC
23437 builtin and then its argument prototype would still apply. */
23438 #ifdef __cplusplus
23439 extern "C"
23440 #endif
23441 char y0f ();
23443 main ()
23445 return y0f ();
23447 return 0;
23449 _ACEOF
23450 if ac_fn_c_try_link "$LINENO"; then :
23451 ac_cv_lib_m_y0f=yes
23452 else
23453 ac_cv_lib_m_y0f=no
23455 rm -f core conftest.err conftest.$ac_objext \
23456 conftest$ac_exeext conftest.$ac_ext
23457 LIBS=$ac_check_lib_save_LIBS
23459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_y0f" >&5
23460 $as_echo "$ac_cv_lib_m_y0f" >&6; }
23461 if test "x$ac_cv_lib_m_y0f" = x""yes; then :
23463 $as_echo "#define HAVE_Y0F 1" >>confdefs.h
23467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0 in -lm" >&5
23468 $as_echo_n "checking for y0 in -lm... " >&6; }
23469 if test "${ac_cv_lib_m_y0+set}" = set; then :
23470 $as_echo_n "(cached) " >&6
23471 else
23472 ac_check_lib_save_LIBS=$LIBS
23473 LIBS="-lm $LIBS"
23474 if test x$gcc_no_link = xyes; then
23475 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23478 /* end confdefs.h. */
23480 /* Override any GCC internal prototype to avoid an error.
23481 Use char because int might match the return type of a GCC
23482 builtin and then its argument prototype would still apply. */
23483 #ifdef __cplusplus
23484 extern "C"
23485 #endif
23486 char y0 ();
23488 main ()
23490 return y0 ();
23492 return 0;
23494 _ACEOF
23495 if ac_fn_c_try_link "$LINENO"; then :
23496 ac_cv_lib_m_y0=yes
23497 else
23498 ac_cv_lib_m_y0=no
23500 rm -f core conftest.err conftest.$ac_objext \
23501 conftest$ac_exeext conftest.$ac_ext
23502 LIBS=$ac_check_lib_save_LIBS
23504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_y0" >&5
23505 $as_echo "$ac_cv_lib_m_y0" >&6; }
23506 if test "x$ac_cv_lib_m_y0" = x""yes; then :
23508 $as_echo "#define HAVE_Y0 1" >>confdefs.h
23512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0l in -lm" >&5
23513 $as_echo_n "checking for y0l in -lm... " >&6; }
23514 if test "${ac_cv_lib_m_y0l+set}" = set; then :
23515 $as_echo_n "(cached) " >&6
23516 else
23517 ac_check_lib_save_LIBS=$LIBS
23518 LIBS="-lm $LIBS"
23519 if test x$gcc_no_link = xyes; then
23520 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23523 /* end confdefs.h. */
23525 /* Override any GCC internal prototype to avoid an error.
23526 Use char because int might match the return type of a GCC
23527 builtin and then its argument prototype would still apply. */
23528 #ifdef __cplusplus
23529 extern "C"
23530 #endif
23531 char y0l ();
23533 main ()
23535 return y0l ();
23537 return 0;
23539 _ACEOF
23540 if ac_fn_c_try_link "$LINENO"; then :
23541 ac_cv_lib_m_y0l=yes
23542 else
23543 ac_cv_lib_m_y0l=no
23545 rm -f core conftest.err conftest.$ac_objext \
23546 conftest$ac_exeext conftest.$ac_ext
23547 LIBS=$ac_check_lib_save_LIBS
23549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_y0l" >&5
23550 $as_echo "$ac_cv_lib_m_y0l" >&6; }
23551 if test "x$ac_cv_lib_m_y0l" = x""yes; then :
23553 $as_echo "#define HAVE_Y0L 1" >>confdefs.h
23557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1f in -lm" >&5
23558 $as_echo_n "checking for y1f in -lm... " >&6; }
23559 if test "${ac_cv_lib_m_y1f+set}" = set; then :
23560 $as_echo_n "(cached) " >&6
23561 else
23562 ac_check_lib_save_LIBS=$LIBS
23563 LIBS="-lm $LIBS"
23564 if test x$gcc_no_link = xyes; then
23565 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23568 /* end confdefs.h. */
23570 /* Override any GCC internal prototype to avoid an error.
23571 Use char because int might match the return type of a GCC
23572 builtin and then its argument prototype would still apply. */
23573 #ifdef __cplusplus
23574 extern "C"
23575 #endif
23576 char y1f ();
23578 main ()
23580 return y1f ();
23582 return 0;
23584 _ACEOF
23585 if ac_fn_c_try_link "$LINENO"; then :
23586 ac_cv_lib_m_y1f=yes
23587 else
23588 ac_cv_lib_m_y1f=no
23590 rm -f core conftest.err conftest.$ac_objext \
23591 conftest$ac_exeext conftest.$ac_ext
23592 LIBS=$ac_check_lib_save_LIBS
23594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_y1f" >&5
23595 $as_echo "$ac_cv_lib_m_y1f" >&6; }
23596 if test "x$ac_cv_lib_m_y1f" = x""yes; then :
23598 $as_echo "#define HAVE_Y1F 1" >>confdefs.h
23602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1 in -lm" >&5
23603 $as_echo_n "checking for y1 in -lm... " >&6; }
23604 if test "${ac_cv_lib_m_y1+set}" = set; then :
23605 $as_echo_n "(cached) " >&6
23606 else
23607 ac_check_lib_save_LIBS=$LIBS
23608 LIBS="-lm $LIBS"
23609 if test x$gcc_no_link = xyes; then
23610 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23613 /* end confdefs.h. */
23615 /* Override any GCC internal prototype to avoid an error.
23616 Use char because int might match the return type of a GCC
23617 builtin and then its argument prototype would still apply. */
23618 #ifdef __cplusplus
23619 extern "C"
23620 #endif
23621 char y1 ();
23623 main ()
23625 return y1 ();
23627 return 0;
23629 _ACEOF
23630 if ac_fn_c_try_link "$LINENO"; then :
23631 ac_cv_lib_m_y1=yes
23632 else
23633 ac_cv_lib_m_y1=no
23635 rm -f core conftest.err conftest.$ac_objext \
23636 conftest$ac_exeext conftest.$ac_ext
23637 LIBS=$ac_check_lib_save_LIBS
23639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_y1" >&5
23640 $as_echo "$ac_cv_lib_m_y1" >&6; }
23641 if test "x$ac_cv_lib_m_y1" = x""yes; then :
23643 $as_echo "#define HAVE_Y1 1" >>confdefs.h
23647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1l in -lm" >&5
23648 $as_echo_n "checking for y1l in -lm... " >&6; }
23649 if test "${ac_cv_lib_m_y1l+set}" = set; then :
23650 $as_echo_n "(cached) " >&6
23651 else
23652 ac_check_lib_save_LIBS=$LIBS
23653 LIBS="-lm $LIBS"
23654 if test x$gcc_no_link = xyes; then
23655 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23658 /* end confdefs.h. */
23660 /* Override any GCC internal prototype to avoid an error.
23661 Use char because int might match the return type of a GCC
23662 builtin and then its argument prototype would still apply. */
23663 #ifdef __cplusplus
23664 extern "C"
23665 #endif
23666 char y1l ();
23668 main ()
23670 return y1l ();
23672 return 0;
23674 _ACEOF
23675 if ac_fn_c_try_link "$LINENO"; then :
23676 ac_cv_lib_m_y1l=yes
23677 else
23678 ac_cv_lib_m_y1l=no
23680 rm -f core conftest.err conftest.$ac_objext \
23681 conftest$ac_exeext conftest.$ac_ext
23682 LIBS=$ac_check_lib_save_LIBS
23684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_y1l" >&5
23685 $as_echo "$ac_cv_lib_m_y1l" >&6; }
23686 if test "x$ac_cv_lib_m_y1l" = x""yes; then :
23688 $as_echo "#define HAVE_Y1L 1" >>confdefs.h
23692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynf in -lm" >&5
23693 $as_echo_n "checking for ynf in -lm... " >&6; }
23694 if test "${ac_cv_lib_m_ynf+set}" = set; then :
23695 $as_echo_n "(cached) " >&6
23696 else
23697 ac_check_lib_save_LIBS=$LIBS
23698 LIBS="-lm $LIBS"
23699 if test x$gcc_no_link = xyes; then
23700 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23703 /* end confdefs.h. */
23705 /* Override any GCC internal prototype to avoid an error.
23706 Use char because int might match the return type of a GCC
23707 builtin and then its argument prototype would still apply. */
23708 #ifdef __cplusplus
23709 extern "C"
23710 #endif
23711 char ynf ();
23713 main ()
23715 return ynf ();
23717 return 0;
23719 _ACEOF
23720 if ac_fn_c_try_link "$LINENO"; then :
23721 ac_cv_lib_m_ynf=yes
23722 else
23723 ac_cv_lib_m_ynf=no
23725 rm -f core conftest.err conftest.$ac_objext \
23726 conftest$ac_exeext conftest.$ac_ext
23727 LIBS=$ac_check_lib_save_LIBS
23729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ynf" >&5
23730 $as_echo "$ac_cv_lib_m_ynf" >&6; }
23731 if test "x$ac_cv_lib_m_ynf" = x""yes; then :
23733 $as_echo "#define HAVE_YNF 1" >>confdefs.h
23737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yn in -lm" >&5
23738 $as_echo_n "checking for yn in -lm... " >&6; }
23739 if test "${ac_cv_lib_m_yn+set}" = set; then :
23740 $as_echo_n "(cached) " >&6
23741 else
23742 ac_check_lib_save_LIBS=$LIBS
23743 LIBS="-lm $LIBS"
23744 if test x$gcc_no_link = xyes; then
23745 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23748 /* end confdefs.h. */
23750 /* Override any GCC internal prototype to avoid an error.
23751 Use char because int might match the return type of a GCC
23752 builtin and then its argument prototype would still apply. */
23753 #ifdef __cplusplus
23754 extern "C"
23755 #endif
23756 char yn ();
23758 main ()
23760 return yn ();
23762 return 0;
23764 _ACEOF
23765 if ac_fn_c_try_link "$LINENO"; then :
23766 ac_cv_lib_m_yn=yes
23767 else
23768 ac_cv_lib_m_yn=no
23770 rm -f core conftest.err conftest.$ac_objext \
23771 conftest$ac_exeext conftest.$ac_ext
23772 LIBS=$ac_check_lib_save_LIBS
23774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_yn" >&5
23775 $as_echo "$ac_cv_lib_m_yn" >&6; }
23776 if test "x$ac_cv_lib_m_yn" = x""yes; then :
23778 $as_echo "#define HAVE_YN 1" >>confdefs.h
23782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynl in -lm" >&5
23783 $as_echo_n "checking for ynl in -lm... " >&6; }
23784 if test "${ac_cv_lib_m_ynl+set}" = set; then :
23785 $as_echo_n "(cached) " >&6
23786 else
23787 ac_check_lib_save_LIBS=$LIBS
23788 LIBS="-lm $LIBS"
23789 if test x$gcc_no_link = xyes; then
23790 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23793 /* end confdefs.h. */
23795 /* Override any GCC internal prototype to avoid an error.
23796 Use char because int might match the return type of a GCC
23797 builtin and then its argument prototype would still apply. */
23798 #ifdef __cplusplus
23799 extern "C"
23800 #endif
23801 char ynl ();
23803 main ()
23805 return ynl ();
23807 return 0;
23809 _ACEOF
23810 if ac_fn_c_try_link "$LINENO"; then :
23811 ac_cv_lib_m_ynl=yes
23812 else
23813 ac_cv_lib_m_ynl=no
23815 rm -f core conftest.err conftest.$ac_objext \
23816 conftest$ac_exeext conftest.$ac_ext
23817 LIBS=$ac_check_lib_save_LIBS
23819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_ynl" >&5
23820 $as_echo "$ac_cv_lib_m_ynl" >&6; }
23821 if test "x$ac_cv_lib_m_ynl" = x""yes; then :
23823 $as_echo "#define HAVE_YNL 1" >>confdefs.h
23827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgamma in -lm" >&5
23828 $as_echo_n "checking for tgamma in -lm... " >&6; }
23829 if test "${ac_cv_lib_m_tgamma+set}" = set; then :
23830 $as_echo_n "(cached) " >&6
23831 else
23832 ac_check_lib_save_LIBS=$LIBS
23833 LIBS="-lm $LIBS"
23834 if test x$gcc_no_link = xyes; then
23835 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23838 /* end confdefs.h. */
23840 /* Override any GCC internal prototype to avoid an error.
23841 Use char because int might match the return type of a GCC
23842 builtin and then its argument prototype would still apply. */
23843 #ifdef __cplusplus
23844 extern "C"
23845 #endif
23846 char tgamma ();
23848 main ()
23850 return tgamma ();
23852 return 0;
23854 _ACEOF
23855 if ac_fn_c_try_link "$LINENO"; then :
23856 ac_cv_lib_m_tgamma=yes
23857 else
23858 ac_cv_lib_m_tgamma=no
23860 rm -f core conftest.err conftest.$ac_objext \
23861 conftest$ac_exeext conftest.$ac_ext
23862 LIBS=$ac_check_lib_save_LIBS
23864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_tgamma" >&5
23865 $as_echo "$ac_cv_lib_m_tgamma" >&6; }
23866 if test "x$ac_cv_lib_m_tgamma" = x""yes; then :
23868 $as_echo "#define HAVE_TGAMMA 1" >>confdefs.h
23872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammaf in -lm" >&5
23873 $as_echo_n "checking for tgammaf in -lm... " >&6; }
23874 if test "${ac_cv_lib_m_tgammaf+set}" = set; then :
23875 $as_echo_n "(cached) " >&6
23876 else
23877 ac_check_lib_save_LIBS=$LIBS
23878 LIBS="-lm $LIBS"
23879 if test x$gcc_no_link = xyes; then
23880 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23883 /* end confdefs.h. */
23885 /* Override any GCC internal prototype to avoid an error.
23886 Use char because int might match the return type of a GCC
23887 builtin and then its argument prototype would still apply. */
23888 #ifdef __cplusplus
23889 extern "C"
23890 #endif
23891 char tgammaf ();
23893 main ()
23895 return tgammaf ();
23897 return 0;
23899 _ACEOF
23900 if ac_fn_c_try_link "$LINENO"; then :
23901 ac_cv_lib_m_tgammaf=yes
23902 else
23903 ac_cv_lib_m_tgammaf=no
23905 rm -f core conftest.err conftest.$ac_objext \
23906 conftest$ac_exeext conftest.$ac_ext
23907 LIBS=$ac_check_lib_save_LIBS
23909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_tgammaf" >&5
23910 $as_echo "$ac_cv_lib_m_tgammaf" >&6; }
23911 if test "x$ac_cv_lib_m_tgammaf" = x""yes; then :
23913 $as_echo "#define HAVE_TGAMMAF 1" >>confdefs.h
23917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammal in -lm" >&5
23918 $as_echo_n "checking for tgammal in -lm... " >&6; }
23919 if test "${ac_cv_lib_m_tgammal+set}" = set; then :
23920 $as_echo_n "(cached) " >&6
23921 else
23922 ac_check_lib_save_LIBS=$LIBS
23923 LIBS="-lm $LIBS"
23924 if test x$gcc_no_link = xyes; then
23925 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23928 /* end confdefs.h. */
23930 /* Override any GCC internal prototype to avoid an error.
23931 Use char because int might match the return type of a GCC
23932 builtin and then its argument prototype would still apply. */
23933 #ifdef __cplusplus
23934 extern "C"
23935 #endif
23936 char tgammal ();
23938 main ()
23940 return tgammal ();
23942 return 0;
23944 _ACEOF
23945 if ac_fn_c_try_link "$LINENO"; then :
23946 ac_cv_lib_m_tgammal=yes
23947 else
23948 ac_cv_lib_m_tgammal=no
23950 rm -f core conftest.err conftest.$ac_objext \
23951 conftest$ac_exeext conftest.$ac_ext
23952 LIBS=$ac_check_lib_save_LIBS
23954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_tgammal" >&5
23955 $as_echo "$ac_cv_lib_m_tgammal" >&6; }
23956 if test "x$ac_cv_lib_m_tgammal" = x""yes; then :
23958 $as_echo "#define HAVE_TGAMMAL 1" >>confdefs.h
23962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgamma in -lm" >&5
23963 $as_echo_n "checking for lgamma in -lm... " >&6; }
23964 if test "${ac_cv_lib_m_lgamma+set}" = set; then :
23965 $as_echo_n "(cached) " >&6
23966 else
23967 ac_check_lib_save_LIBS=$LIBS
23968 LIBS="-lm $LIBS"
23969 if test x$gcc_no_link = xyes; then
23970 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23973 /* end confdefs.h. */
23975 /* Override any GCC internal prototype to avoid an error.
23976 Use char because int might match the return type of a GCC
23977 builtin and then its argument prototype would still apply. */
23978 #ifdef __cplusplus
23979 extern "C"
23980 #endif
23981 char lgamma ();
23983 main ()
23985 return lgamma ();
23987 return 0;
23989 _ACEOF
23990 if ac_fn_c_try_link "$LINENO"; then :
23991 ac_cv_lib_m_lgamma=yes
23992 else
23993 ac_cv_lib_m_lgamma=no
23995 rm -f core conftest.err conftest.$ac_objext \
23996 conftest$ac_exeext conftest.$ac_ext
23997 LIBS=$ac_check_lib_save_LIBS
23999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_lgamma" >&5
24000 $as_echo "$ac_cv_lib_m_lgamma" >&6; }
24001 if test "x$ac_cv_lib_m_lgamma" = x""yes; then :
24003 $as_echo "#define HAVE_LGAMMA 1" >>confdefs.h
24007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammaf in -lm" >&5
24008 $as_echo_n "checking for lgammaf in -lm... " >&6; }
24009 if test "${ac_cv_lib_m_lgammaf+set}" = set; then :
24010 $as_echo_n "(cached) " >&6
24011 else
24012 ac_check_lib_save_LIBS=$LIBS
24013 LIBS="-lm $LIBS"
24014 if test x$gcc_no_link = xyes; then
24015 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24018 /* end confdefs.h. */
24020 /* Override any GCC internal prototype to avoid an error.
24021 Use char because int might match the return type of a GCC
24022 builtin and then its argument prototype would still apply. */
24023 #ifdef __cplusplus
24024 extern "C"
24025 #endif
24026 char lgammaf ();
24028 main ()
24030 return lgammaf ();
24032 return 0;
24034 _ACEOF
24035 if ac_fn_c_try_link "$LINENO"; then :
24036 ac_cv_lib_m_lgammaf=yes
24037 else
24038 ac_cv_lib_m_lgammaf=no
24040 rm -f core conftest.err conftest.$ac_objext \
24041 conftest$ac_exeext conftest.$ac_ext
24042 LIBS=$ac_check_lib_save_LIBS
24044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_lgammaf" >&5
24045 $as_echo "$ac_cv_lib_m_lgammaf" >&6; }
24046 if test "x$ac_cv_lib_m_lgammaf" = x""yes; then :
24048 $as_echo "#define HAVE_LGAMMAF 1" >>confdefs.h
24052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammal in -lm" >&5
24053 $as_echo_n "checking for lgammal in -lm... " >&6; }
24054 if test "${ac_cv_lib_m_lgammal+set}" = set; then :
24055 $as_echo_n "(cached) " >&6
24056 else
24057 ac_check_lib_save_LIBS=$LIBS
24058 LIBS="-lm $LIBS"
24059 if test x$gcc_no_link = xyes; then
24060 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24062 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24063 /* end confdefs.h. */
24065 /* Override any GCC internal prototype to avoid an error.
24066 Use char because int might match the return type of a GCC
24067 builtin and then its argument prototype would still apply. */
24068 #ifdef __cplusplus
24069 extern "C"
24070 #endif
24071 char lgammal ();
24073 main ()
24075 return lgammal ();
24077 return 0;
24079 _ACEOF
24080 if ac_fn_c_try_link "$LINENO"; then :
24081 ac_cv_lib_m_lgammal=yes
24082 else
24083 ac_cv_lib_m_lgammal=no
24085 rm -f core conftest.err conftest.$ac_objext \
24086 conftest$ac_exeext conftest.$ac_ext
24087 LIBS=$ac_check_lib_save_LIBS
24089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_lgammal" >&5
24090 $as_echo "$ac_cv_lib_m_lgammal" >&6; }
24091 if test "x$ac_cv_lib_m_lgammal" = x""yes; then :
24093 $as_echo "#define HAVE_LGAMMAL 1" >>confdefs.h
24098 # Check for GFORTRAN_C99_1.1 funcs
24099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacos in -lm" >&5
24100 $as_echo_n "checking for cacos in -lm... " >&6; }
24101 if test "${ac_cv_lib_m_cacos+set}" = set; then :
24102 $as_echo_n "(cached) " >&6
24103 else
24104 ac_check_lib_save_LIBS=$LIBS
24105 LIBS="-lm $LIBS"
24106 if test x$gcc_no_link = xyes; then
24107 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24110 /* end confdefs.h. */
24112 /* Override any GCC internal prototype to avoid an error.
24113 Use char because int might match the return type of a GCC
24114 builtin and then its argument prototype would still apply. */
24115 #ifdef __cplusplus
24116 extern "C"
24117 #endif
24118 char cacos ();
24120 main ()
24122 return cacos ();
24124 return 0;
24126 _ACEOF
24127 if ac_fn_c_try_link "$LINENO"; then :
24128 ac_cv_lib_m_cacos=yes
24129 else
24130 ac_cv_lib_m_cacos=no
24132 rm -f core conftest.err conftest.$ac_objext \
24133 conftest$ac_exeext conftest.$ac_ext
24134 LIBS=$ac_check_lib_save_LIBS
24136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cacos" >&5
24137 $as_echo "$ac_cv_lib_m_cacos" >&6; }
24138 if test "x$ac_cv_lib_m_cacos" = x""yes; then :
24140 $as_echo "#define HAVE_CACOS 1" >>confdefs.h
24144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosf in -lm" >&5
24145 $as_echo_n "checking for cacosf in -lm... " >&6; }
24146 if test "${ac_cv_lib_m_cacosf+set}" = set; then :
24147 $as_echo_n "(cached) " >&6
24148 else
24149 ac_check_lib_save_LIBS=$LIBS
24150 LIBS="-lm $LIBS"
24151 if test x$gcc_no_link = xyes; then
24152 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24155 /* end confdefs.h. */
24157 /* Override any GCC internal prototype to avoid an error.
24158 Use char because int might match the return type of a GCC
24159 builtin and then its argument prototype would still apply. */
24160 #ifdef __cplusplus
24161 extern "C"
24162 #endif
24163 char cacosf ();
24165 main ()
24167 return cacosf ();
24169 return 0;
24171 _ACEOF
24172 if ac_fn_c_try_link "$LINENO"; then :
24173 ac_cv_lib_m_cacosf=yes
24174 else
24175 ac_cv_lib_m_cacosf=no
24177 rm -f core conftest.err conftest.$ac_objext \
24178 conftest$ac_exeext conftest.$ac_ext
24179 LIBS=$ac_check_lib_save_LIBS
24181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cacosf" >&5
24182 $as_echo "$ac_cv_lib_m_cacosf" >&6; }
24183 if test "x$ac_cv_lib_m_cacosf" = x""yes; then :
24185 $as_echo "#define HAVE_CACOSF 1" >>confdefs.h
24189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosh in -lm" >&5
24190 $as_echo_n "checking for cacosh in -lm... " >&6; }
24191 if test "${ac_cv_lib_m_cacosh+set}" = set; then :
24192 $as_echo_n "(cached) " >&6
24193 else
24194 ac_check_lib_save_LIBS=$LIBS
24195 LIBS="-lm $LIBS"
24196 if test x$gcc_no_link = xyes; then
24197 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24200 /* end confdefs.h. */
24202 /* Override any GCC internal prototype to avoid an error.
24203 Use char because int might match the return type of a GCC
24204 builtin and then its argument prototype would still apply. */
24205 #ifdef __cplusplus
24206 extern "C"
24207 #endif
24208 char cacosh ();
24210 main ()
24212 return cacosh ();
24214 return 0;
24216 _ACEOF
24217 if ac_fn_c_try_link "$LINENO"; then :
24218 ac_cv_lib_m_cacosh=yes
24219 else
24220 ac_cv_lib_m_cacosh=no
24222 rm -f core conftest.err conftest.$ac_objext \
24223 conftest$ac_exeext conftest.$ac_ext
24224 LIBS=$ac_check_lib_save_LIBS
24226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cacosh" >&5
24227 $as_echo "$ac_cv_lib_m_cacosh" >&6; }
24228 if test "x$ac_cv_lib_m_cacosh" = x""yes; then :
24230 $as_echo "#define HAVE_CACOSH 1" >>confdefs.h
24234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshf in -lm" >&5
24235 $as_echo_n "checking for cacoshf in -lm... " >&6; }
24236 if test "${ac_cv_lib_m_cacoshf+set}" = set; then :
24237 $as_echo_n "(cached) " >&6
24238 else
24239 ac_check_lib_save_LIBS=$LIBS
24240 LIBS="-lm $LIBS"
24241 if test x$gcc_no_link = xyes; then
24242 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24245 /* end confdefs.h. */
24247 /* Override any GCC internal prototype to avoid an error.
24248 Use char because int might match the return type of a GCC
24249 builtin and then its argument prototype would still apply. */
24250 #ifdef __cplusplus
24251 extern "C"
24252 #endif
24253 char cacoshf ();
24255 main ()
24257 return cacoshf ();
24259 return 0;
24261 _ACEOF
24262 if ac_fn_c_try_link "$LINENO"; then :
24263 ac_cv_lib_m_cacoshf=yes
24264 else
24265 ac_cv_lib_m_cacoshf=no
24267 rm -f core conftest.err conftest.$ac_objext \
24268 conftest$ac_exeext conftest.$ac_ext
24269 LIBS=$ac_check_lib_save_LIBS
24271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cacoshf" >&5
24272 $as_echo "$ac_cv_lib_m_cacoshf" >&6; }
24273 if test "x$ac_cv_lib_m_cacoshf" = x""yes; then :
24275 $as_echo "#define HAVE_CACOSHF 1" >>confdefs.h
24279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshl in -lm" >&5
24280 $as_echo_n "checking for cacoshl in -lm... " >&6; }
24281 if test "${ac_cv_lib_m_cacoshl+set}" = set; then :
24282 $as_echo_n "(cached) " >&6
24283 else
24284 ac_check_lib_save_LIBS=$LIBS
24285 LIBS="-lm $LIBS"
24286 if test x$gcc_no_link = xyes; then
24287 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24290 /* end confdefs.h. */
24292 /* Override any GCC internal prototype to avoid an error.
24293 Use char because int might match the return type of a GCC
24294 builtin and then its argument prototype would still apply. */
24295 #ifdef __cplusplus
24296 extern "C"
24297 #endif
24298 char cacoshl ();
24300 main ()
24302 return cacoshl ();
24304 return 0;
24306 _ACEOF
24307 if ac_fn_c_try_link "$LINENO"; then :
24308 ac_cv_lib_m_cacoshl=yes
24309 else
24310 ac_cv_lib_m_cacoshl=no
24312 rm -f core conftest.err conftest.$ac_objext \
24313 conftest$ac_exeext conftest.$ac_ext
24314 LIBS=$ac_check_lib_save_LIBS
24316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cacoshl" >&5
24317 $as_echo "$ac_cv_lib_m_cacoshl" >&6; }
24318 if test "x$ac_cv_lib_m_cacoshl" = x""yes; then :
24320 $as_echo "#define HAVE_CACOSHL 1" >>confdefs.h
24324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosl in -lm" >&5
24325 $as_echo_n "checking for cacosl in -lm... " >&6; }
24326 if test "${ac_cv_lib_m_cacosl+set}" = set; then :
24327 $as_echo_n "(cached) " >&6
24328 else
24329 ac_check_lib_save_LIBS=$LIBS
24330 LIBS="-lm $LIBS"
24331 if test x$gcc_no_link = xyes; then
24332 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24335 /* end confdefs.h. */
24337 /* Override any GCC internal prototype to avoid an error.
24338 Use char because int might match the return type of a GCC
24339 builtin and then its argument prototype would still apply. */
24340 #ifdef __cplusplus
24341 extern "C"
24342 #endif
24343 char cacosl ();
24345 main ()
24347 return cacosl ();
24349 return 0;
24351 _ACEOF
24352 if ac_fn_c_try_link "$LINENO"; then :
24353 ac_cv_lib_m_cacosl=yes
24354 else
24355 ac_cv_lib_m_cacosl=no
24357 rm -f core conftest.err conftest.$ac_objext \
24358 conftest$ac_exeext conftest.$ac_ext
24359 LIBS=$ac_check_lib_save_LIBS
24361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cacosl" >&5
24362 $as_echo "$ac_cv_lib_m_cacosl" >&6; }
24363 if test "x$ac_cv_lib_m_cacosl" = x""yes; then :
24365 $as_echo "#define HAVE_CACOSL 1" >>confdefs.h
24369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casin in -lm" >&5
24370 $as_echo_n "checking for casin in -lm... " >&6; }
24371 if test "${ac_cv_lib_m_casin+set}" = set; then :
24372 $as_echo_n "(cached) " >&6
24373 else
24374 ac_check_lib_save_LIBS=$LIBS
24375 LIBS="-lm $LIBS"
24376 if test x$gcc_no_link = xyes; then
24377 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24380 /* end confdefs.h. */
24382 /* Override any GCC internal prototype to avoid an error.
24383 Use char because int might match the return type of a GCC
24384 builtin and then its argument prototype would still apply. */
24385 #ifdef __cplusplus
24386 extern "C"
24387 #endif
24388 char casin ();
24390 main ()
24392 return casin ();
24394 return 0;
24396 _ACEOF
24397 if ac_fn_c_try_link "$LINENO"; then :
24398 ac_cv_lib_m_casin=yes
24399 else
24400 ac_cv_lib_m_casin=no
24402 rm -f core conftest.err conftest.$ac_objext \
24403 conftest$ac_exeext conftest.$ac_ext
24404 LIBS=$ac_check_lib_save_LIBS
24406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_casin" >&5
24407 $as_echo "$ac_cv_lib_m_casin" >&6; }
24408 if test "x$ac_cv_lib_m_casin" = x""yes; then :
24410 $as_echo "#define HAVE_CASIN 1" >>confdefs.h
24414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinf in -lm" >&5
24415 $as_echo_n "checking for casinf in -lm... " >&6; }
24416 if test "${ac_cv_lib_m_casinf+set}" = set; then :
24417 $as_echo_n "(cached) " >&6
24418 else
24419 ac_check_lib_save_LIBS=$LIBS
24420 LIBS="-lm $LIBS"
24421 if test x$gcc_no_link = xyes; then
24422 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24425 /* end confdefs.h. */
24427 /* Override any GCC internal prototype to avoid an error.
24428 Use char because int might match the return type of a GCC
24429 builtin and then its argument prototype would still apply. */
24430 #ifdef __cplusplus
24431 extern "C"
24432 #endif
24433 char casinf ();
24435 main ()
24437 return casinf ();
24439 return 0;
24441 _ACEOF
24442 if ac_fn_c_try_link "$LINENO"; then :
24443 ac_cv_lib_m_casinf=yes
24444 else
24445 ac_cv_lib_m_casinf=no
24447 rm -f core conftest.err conftest.$ac_objext \
24448 conftest$ac_exeext conftest.$ac_ext
24449 LIBS=$ac_check_lib_save_LIBS
24451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_casinf" >&5
24452 $as_echo "$ac_cv_lib_m_casinf" >&6; }
24453 if test "x$ac_cv_lib_m_casinf" = x""yes; then :
24455 $as_echo "#define HAVE_CASINF 1" >>confdefs.h
24459 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinh in -lm" >&5
24460 $as_echo_n "checking for casinh in -lm... " >&6; }
24461 if test "${ac_cv_lib_m_casinh+set}" = set; then :
24462 $as_echo_n "(cached) " >&6
24463 else
24464 ac_check_lib_save_LIBS=$LIBS
24465 LIBS="-lm $LIBS"
24466 if test x$gcc_no_link = xyes; then
24467 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24470 /* end confdefs.h. */
24472 /* Override any GCC internal prototype to avoid an error.
24473 Use char because int might match the return type of a GCC
24474 builtin and then its argument prototype would still apply. */
24475 #ifdef __cplusplus
24476 extern "C"
24477 #endif
24478 char casinh ();
24480 main ()
24482 return casinh ();
24484 return 0;
24486 _ACEOF
24487 if ac_fn_c_try_link "$LINENO"; then :
24488 ac_cv_lib_m_casinh=yes
24489 else
24490 ac_cv_lib_m_casinh=no
24492 rm -f core conftest.err conftest.$ac_objext \
24493 conftest$ac_exeext conftest.$ac_ext
24494 LIBS=$ac_check_lib_save_LIBS
24496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_casinh" >&5
24497 $as_echo "$ac_cv_lib_m_casinh" >&6; }
24498 if test "x$ac_cv_lib_m_casinh" = x""yes; then :
24500 $as_echo "#define HAVE_CASINH 1" >>confdefs.h
24504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhf in -lm" >&5
24505 $as_echo_n "checking for casinhf in -lm... " >&6; }
24506 if test "${ac_cv_lib_m_casinhf+set}" = set; then :
24507 $as_echo_n "(cached) " >&6
24508 else
24509 ac_check_lib_save_LIBS=$LIBS
24510 LIBS="-lm $LIBS"
24511 if test x$gcc_no_link = xyes; then
24512 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24515 /* end confdefs.h. */
24517 /* Override any GCC internal prototype to avoid an error.
24518 Use char because int might match the return type of a GCC
24519 builtin and then its argument prototype would still apply. */
24520 #ifdef __cplusplus
24521 extern "C"
24522 #endif
24523 char casinhf ();
24525 main ()
24527 return casinhf ();
24529 return 0;
24531 _ACEOF
24532 if ac_fn_c_try_link "$LINENO"; then :
24533 ac_cv_lib_m_casinhf=yes
24534 else
24535 ac_cv_lib_m_casinhf=no
24537 rm -f core conftest.err conftest.$ac_objext \
24538 conftest$ac_exeext conftest.$ac_ext
24539 LIBS=$ac_check_lib_save_LIBS
24541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_casinhf" >&5
24542 $as_echo "$ac_cv_lib_m_casinhf" >&6; }
24543 if test "x$ac_cv_lib_m_casinhf" = x""yes; then :
24545 $as_echo "#define HAVE_CASINHF 1" >>confdefs.h
24549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhl in -lm" >&5
24550 $as_echo_n "checking for casinhl in -lm... " >&6; }
24551 if test "${ac_cv_lib_m_casinhl+set}" = set; then :
24552 $as_echo_n "(cached) " >&6
24553 else
24554 ac_check_lib_save_LIBS=$LIBS
24555 LIBS="-lm $LIBS"
24556 if test x$gcc_no_link = xyes; then
24557 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24560 /* end confdefs.h. */
24562 /* Override any GCC internal prototype to avoid an error.
24563 Use char because int might match the return type of a GCC
24564 builtin and then its argument prototype would still apply. */
24565 #ifdef __cplusplus
24566 extern "C"
24567 #endif
24568 char casinhl ();
24570 main ()
24572 return casinhl ();
24574 return 0;
24576 _ACEOF
24577 if ac_fn_c_try_link "$LINENO"; then :
24578 ac_cv_lib_m_casinhl=yes
24579 else
24580 ac_cv_lib_m_casinhl=no
24582 rm -f core conftest.err conftest.$ac_objext \
24583 conftest$ac_exeext conftest.$ac_ext
24584 LIBS=$ac_check_lib_save_LIBS
24586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_casinhl" >&5
24587 $as_echo "$ac_cv_lib_m_casinhl" >&6; }
24588 if test "x$ac_cv_lib_m_casinhl" = x""yes; then :
24590 $as_echo "#define HAVE_CASINHL 1" >>confdefs.h
24594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinl in -lm" >&5
24595 $as_echo_n "checking for casinl in -lm... " >&6; }
24596 if test "${ac_cv_lib_m_casinl+set}" = set; then :
24597 $as_echo_n "(cached) " >&6
24598 else
24599 ac_check_lib_save_LIBS=$LIBS
24600 LIBS="-lm $LIBS"
24601 if test x$gcc_no_link = xyes; then
24602 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24605 /* end confdefs.h. */
24607 /* Override any GCC internal prototype to avoid an error.
24608 Use char because int might match the return type of a GCC
24609 builtin and then its argument prototype would still apply. */
24610 #ifdef __cplusplus
24611 extern "C"
24612 #endif
24613 char casinl ();
24615 main ()
24617 return casinl ();
24619 return 0;
24621 _ACEOF
24622 if ac_fn_c_try_link "$LINENO"; then :
24623 ac_cv_lib_m_casinl=yes
24624 else
24625 ac_cv_lib_m_casinl=no
24627 rm -f core conftest.err conftest.$ac_objext \
24628 conftest$ac_exeext conftest.$ac_ext
24629 LIBS=$ac_check_lib_save_LIBS
24631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_casinl" >&5
24632 $as_echo "$ac_cv_lib_m_casinl" >&6; }
24633 if test "x$ac_cv_lib_m_casinl" = x""yes; then :
24635 $as_echo "#define HAVE_CASINL 1" >>confdefs.h
24639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catan in -lm" >&5
24640 $as_echo_n "checking for catan in -lm... " >&6; }
24641 if test "${ac_cv_lib_m_catan+set}" = set; then :
24642 $as_echo_n "(cached) " >&6
24643 else
24644 ac_check_lib_save_LIBS=$LIBS
24645 LIBS="-lm $LIBS"
24646 if test x$gcc_no_link = xyes; then
24647 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24650 /* end confdefs.h. */
24652 /* Override any GCC internal prototype to avoid an error.
24653 Use char because int might match the return type of a GCC
24654 builtin and then its argument prototype would still apply. */
24655 #ifdef __cplusplus
24656 extern "C"
24657 #endif
24658 char catan ();
24660 main ()
24662 return catan ();
24664 return 0;
24666 _ACEOF
24667 if ac_fn_c_try_link "$LINENO"; then :
24668 ac_cv_lib_m_catan=yes
24669 else
24670 ac_cv_lib_m_catan=no
24672 rm -f core conftest.err conftest.$ac_objext \
24673 conftest$ac_exeext conftest.$ac_ext
24674 LIBS=$ac_check_lib_save_LIBS
24676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_catan" >&5
24677 $as_echo "$ac_cv_lib_m_catan" >&6; }
24678 if test "x$ac_cv_lib_m_catan" = x""yes; then :
24680 $as_echo "#define HAVE_CATAN 1" >>confdefs.h
24684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanf in -lm" >&5
24685 $as_echo_n "checking for catanf in -lm... " >&6; }
24686 if test "${ac_cv_lib_m_catanf+set}" = set; then :
24687 $as_echo_n "(cached) " >&6
24688 else
24689 ac_check_lib_save_LIBS=$LIBS
24690 LIBS="-lm $LIBS"
24691 if test x$gcc_no_link = xyes; then
24692 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24695 /* end confdefs.h. */
24697 /* Override any GCC internal prototype to avoid an error.
24698 Use char because int might match the return type of a GCC
24699 builtin and then its argument prototype would still apply. */
24700 #ifdef __cplusplus
24701 extern "C"
24702 #endif
24703 char catanf ();
24705 main ()
24707 return catanf ();
24709 return 0;
24711 _ACEOF
24712 if ac_fn_c_try_link "$LINENO"; then :
24713 ac_cv_lib_m_catanf=yes
24714 else
24715 ac_cv_lib_m_catanf=no
24717 rm -f core conftest.err conftest.$ac_objext \
24718 conftest$ac_exeext conftest.$ac_ext
24719 LIBS=$ac_check_lib_save_LIBS
24721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_catanf" >&5
24722 $as_echo "$ac_cv_lib_m_catanf" >&6; }
24723 if test "x$ac_cv_lib_m_catanf" = x""yes; then :
24725 $as_echo "#define HAVE_CATANF 1" >>confdefs.h
24729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanh in -lm" >&5
24730 $as_echo_n "checking for catanh in -lm... " >&6; }
24731 if test "${ac_cv_lib_m_catanh+set}" = set; then :
24732 $as_echo_n "(cached) " >&6
24733 else
24734 ac_check_lib_save_LIBS=$LIBS
24735 LIBS="-lm $LIBS"
24736 if test x$gcc_no_link = xyes; then
24737 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24740 /* end confdefs.h. */
24742 /* Override any GCC internal prototype to avoid an error.
24743 Use char because int might match the return type of a GCC
24744 builtin and then its argument prototype would still apply. */
24745 #ifdef __cplusplus
24746 extern "C"
24747 #endif
24748 char catanh ();
24750 main ()
24752 return catanh ();
24754 return 0;
24756 _ACEOF
24757 if ac_fn_c_try_link "$LINENO"; then :
24758 ac_cv_lib_m_catanh=yes
24759 else
24760 ac_cv_lib_m_catanh=no
24762 rm -f core conftest.err conftest.$ac_objext \
24763 conftest$ac_exeext conftest.$ac_ext
24764 LIBS=$ac_check_lib_save_LIBS
24766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_catanh" >&5
24767 $as_echo "$ac_cv_lib_m_catanh" >&6; }
24768 if test "x$ac_cv_lib_m_catanh" = x""yes; then :
24770 $as_echo "#define HAVE_CATANH 1" >>confdefs.h
24774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhf in -lm" >&5
24775 $as_echo_n "checking for catanhf in -lm... " >&6; }
24776 if test "${ac_cv_lib_m_catanhf+set}" = set; then :
24777 $as_echo_n "(cached) " >&6
24778 else
24779 ac_check_lib_save_LIBS=$LIBS
24780 LIBS="-lm $LIBS"
24781 if test x$gcc_no_link = xyes; then
24782 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24785 /* end confdefs.h. */
24787 /* Override any GCC internal prototype to avoid an error.
24788 Use char because int might match the return type of a GCC
24789 builtin and then its argument prototype would still apply. */
24790 #ifdef __cplusplus
24791 extern "C"
24792 #endif
24793 char catanhf ();
24795 main ()
24797 return catanhf ();
24799 return 0;
24801 _ACEOF
24802 if ac_fn_c_try_link "$LINENO"; then :
24803 ac_cv_lib_m_catanhf=yes
24804 else
24805 ac_cv_lib_m_catanhf=no
24807 rm -f core conftest.err conftest.$ac_objext \
24808 conftest$ac_exeext conftest.$ac_ext
24809 LIBS=$ac_check_lib_save_LIBS
24811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_catanhf" >&5
24812 $as_echo "$ac_cv_lib_m_catanhf" >&6; }
24813 if test "x$ac_cv_lib_m_catanhf" = x""yes; then :
24815 $as_echo "#define HAVE_CATANHF 1" >>confdefs.h
24819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhl in -lm" >&5
24820 $as_echo_n "checking for catanhl in -lm... " >&6; }
24821 if test "${ac_cv_lib_m_catanhl+set}" = set; then :
24822 $as_echo_n "(cached) " >&6
24823 else
24824 ac_check_lib_save_LIBS=$LIBS
24825 LIBS="-lm $LIBS"
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 /* Override any GCC internal prototype to avoid an error.
24833 Use char because int might match the return type of a GCC
24834 builtin and then its argument prototype would still apply. */
24835 #ifdef __cplusplus
24836 extern "C"
24837 #endif
24838 char catanhl ();
24840 main ()
24842 return catanhl ();
24844 return 0;
24846 _ACEOF
24847 if ac_fn_c_try_link "$LINENO"; then :
24848 ac_cv_lib_m_catanhl=yes
24849 else
24850 ac_cv_lib_m_catanhl=no
24852 rm -f core conftest.err conftest.$ac_objext \
24853 conftest$ac_exeext conftest.$ac_ext
24854 LIBS=$ac_check_lib_save_LIBS
24856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_catanhl" >&5
24857 $as_echo "$ac_cv_lib_m_catanhl" >&6; }
24858 if test "x$ac_cv_lib_m_catanhl" = x""yes; then :
24860 $as_echo "#define HAVE_CATANHL 1" >>confdefs.h
24864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanl in -lm" >&5
24865 $as_echo_n "checking for catanl in -lm... " >&6; }
24866 if test "${ac_cv_lib_m_catanl+set}" = set; then :
24867 $as_echo_n "(cached) " >&6
24868 else
24869 ac_check_lib_save_LIBS=$LIBS
24870 LIBS="-lm $LIBS"
24871 if test x$gcc_no_link = xyes; then
24872 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24875 /* end confdefs.h. */
24877 /* Override any GCC internal prototype to avoid an error.
24878 Use char because int might match the return type of a GCC
24879 builtin and then its argument prototype would still apply. */
24880 #ifdef __cplusplus
24881 extern "C"
24882 #endif
24883 char catanl ();
24885 main ()
24887 return catanl ();
24889 return 0;
24891 _ACEOF
24892 if ac_fn_c_try_link "$LINENO"; then :
24893 ac_cv_lib_m_catanl=yes
24894 else
24895 ac_cv_lib_m_catanl=no
24897 rm -f core conftest.err conftest.$ac_objext \
24898 conftest$ac_exeext conftest.$ac_ext
24899 LIBS=$ac_check_lib_save_LIBS
24901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_catanl" >&5
24902 $as_echo "$ac_cv_lib_m_catanl" >&6; }
24903 if test "x$ac_cv_lib_m_catanl" = x""yes; then :
24905 $as_echo "#define HAVE_CATANL 1" >>confdefs.h
24910 # On AIX, clog is present in libm as __clog
24911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __clog in -lm" >&5
24912 $as_echo_n "checking for __clog in -lm... " >&6; }
24913 if test "${ac_cv_lib_m___clog+set}" = set; then :
24914 $as_echo_n "(cached) " >&6
24915 else
24916 ac_check_lib_save_LIBS=$LIBS
24917 LIBS="-lm $LIBS"
24918 if test x$gcc_no_link = xyes; then
24919 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24922 /* end confdefs.h. */
24924 /* Override any GCC internal prototype to avoid an error.
24925 Use char because int might match the return type of a GCC
24926 builtin and then its argument prototype would still apply. */
24927 #ifdef __cplusplus
24928 extern "C"
24929 #endif
24930 char __clog ();
24932 main ()
24934 return __clog ();
24936 return 0;
24938 _ACEOF
24939 if ac_fn_c_try_link "$LINENO"; then :
24940 ac_cv_lib_m___clog=yes
24941 else
24942 ac_cv_lib_m___clog=no
24944 rm -f core conftest.err conftest.$ac_objext \
24945 conftest$ac_exeext conftest.$ac_ext
24946 LIBS=$ac_check_lib_save_LIBS
24948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m___clog" >&5
24949 $as_echo "$ac_cv_lib_m___clog" >&6; }
24950 if test "x$ac_cv_lib_m___clog" = x""yes; then :
24952 $as_echo "#define HAVE_CLOG 1" >>confdefs.h
24957 # Check whether the system has a working stat()
24959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target stat is reliable" >&5
24960 $as_echo_n "checking whether the target stat is reliable... " >&6; }
24961 if test "${libgfor_cv_have_working_stat+set}" = set; then :
24962 $as_echo_n "(cached) " >&6
24963 else
24965 if test "$cross_compiling" = yes; then :
24967 case "${target}" in
24968 *mingw*) libgfor_cv_have_working_stat=no ;;
24969 *) libgfor_cv_have_working_stat=yes;;
24970 esac
24971 else
24972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24973 /* end confdefs.h. */
24975 #include <stdio.h>
24976 #include <sys/types.h>
24977 #include <sys/stat.h>
24978 #include <unistd.h>
24980 int main ()
24982 FILE *f, *g;
24983 struct stat st1, st2;
24985 f = fopen ("foo", "w");
24986 g = fopen ("bar", "w");
24987 if (stat ("foo", &st1) != 0 || stat ("bar", &st2))
24988 return 1;
24989 if (st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino)
24990 return 1;
24991 fclose(f);
24992 fclose(g);
24993 return 0;
24995 _ACEOF
24996 if ac_fn_c_try_run "$LINENO"; then :
24997 libgfor_cv_have_working_stat=yes
24998 else
24999 libgfor_cv_have_working_stat=no
25001 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25002 conftest.$ac_objext conftest.beam conftest.$ac_ext
25006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_working_stat" >&5
25007 $as_echo "$libgfor_cv_have_working_stat" >&6; }
25008 if test x"$libgfor_cv_have_working_stat" = xyes; then
25010 $as_echo "#define HAVE_WORKING_STAT 1" >>confdefs.h
25014 # Check whether __mingw_snprintf() is present
25016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __mingw_snprintf is present" >&5
25017 $as_echo_n "checking whether __mingw_snprintf is present... " >&6; }
25018 if test "${libgfor_cv_have_mingw_snprintf+set}" = set; then :
25019 $as_echo_n "(cached) " >&6
25020 else
25022 if test x$gcc_no_link = xyes; then
25023 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25026 /* end confdefs.h. */
25028 #include <stdio.h>
25029 extern int __mingw_snprintf (char *, size_t, const char *, ...);
25032 main ()
25035 __mingw_snprintf (NULL, 0, "%d\n", 1);
25038 return 0;
25040 _ACEOF
25041 if ac_fn_c_try_link "$LINENO"; then :
25042 eval "libgfor_cv_have_mingw_snprintf=yes"
25043 else
25044 eval "libgfor_cv_have_mingw_snprintf=no"
25046 rm -f core conftest.err conftest.$ac_objext \
25047 conftest$ac_exeext conftest.$ac_ext
25050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_mingw_snprintf" >&5
25051 $as_echo "$libgfor_cv_have_mingw_snprintf" >&6; }
25052 if test x"$libgfor_cv_have_mingw_snprintf" = xyes; then
25054 $as_echo "#define HAVE_MINGW_SNPRINTF 1" >>confdefs.h
25059 # Check for a broken powf implementation
25061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether powf is broken" >&5
25062 $as_echo_n "checking whether powf is broken... " >&6; }
25063 if test "${libgfor_cv_have_broken_powf+set}" = set; then :
25064 $as_echo_n "(cached) " >&6
25065 else
25067 case "${target}" in
25068 hppa*64*-*-hpux*) libgfor_cv_have_broken_powf=yes ;;
25069 *) libgfor_cv_have_broken_powf=no;;
25070 esac
25072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_broken_powf" >&5
25073 $as_echo "$libgfor_cv_have_broken_powf" >&6; }
25074 if test x"$libgfor_cv_have_broken_powf" = xyes; then
25076 $as_echo "#define HAVE_BROKEN_POWF 1" >>confdefs.h
25081 # Check whether libquadmath should be used
25082 # Check whether --enable-libquadmath-support was given.
25083 if test "${enable_libquadmath_support+set}" = set; then :
25084 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
25085 else
25086 ENABLE_LIBQUADMATH_SUPPORT=yes
25089 enable_libquadmath_support=
25090 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
25091 enable_libquadmath_support=no
25094 # Check whether we have a __float128 type, depends on enable_libquadmath_support
25096 LIBQUADSPEC=
25098 if test "x$enable_libquadmath_support" != xno; then
25100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a usable __float128 type" >&5
25101 $as_echo_n "checking whether we have a usable __float128 type... " >&6; }
25102 if test "${libgfor_cv_have_float128+set}" = set; then :
25103 $as_echo_n "(cached) " >&6
25104 else
25106 if test x$gcc_no_link = xyes; then
25107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25108 /* end confdefs.h. */
25110 typedef _Complex float __attribute__((mode(TC))) __complex128;
25112 __float128 foo (__float128 x)
25115 __complex128 z1, z2;
25117 z1 = x;
25118 z2 = x / 7.Q;
25119 z2 /= z1;
25121 return (__float128) z2;
25124 __float128 bar (__float128 x)
25126 return x * __builtin_huge_valq ();
25130 main ()
25133 foo (1.2Q);
25134 bar (1.2Q);
25137 return 0;
25139 _ACEOF
25140 if ac_fn_c_try_compile "$LINENO"; then :
25142 libgfor_cv_have_float128=yes
25144 else
25146 libgfor_cv_have_float128=no
25149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25150 else
25151 if test x$gcc_no_link = xyes; then
25152 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25155 /* end confdefs.h. */
25157 typedef _Complex float __attribute__((mode(TC))) __complex128;
25159 __float128 foo (__float128 x)
25162 __complex128 z1, z2;
25164 z1 = x;
25165 z2 = x / 7.Q;
25166 z2 /= z1;
25168 return (__float128) z2;
25171 __float128 bar (__float128 x)
25173 return x * __builtin_huge_valq ();
25177 main ()
25180 foo (1.2Q);
25181 bar (1.2Q);
25184 return 0;
25186 _ACEOF
25187 if ac_fn_c_try_link "$LINENO"; then :
25189 libgfor_cv_have_float128=yes
25191 else
25193 libgfor_cv_have_float128=no
25196 rm -f core conftest.err conftest.$ac_objext \
25197 conftest$ac_exeext conftest.$ac_ext
25200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_float128" >&5
25201 $as_echo "$libgfor_cv_have_float128" >&6; }
25203 if test "x$libgfor_cv_have_float128" = xyes; then
25205 $as_echo "#define HAVE_FLOAT128 1" >>confdefs.h
25208 ac_xsave_c_werror_flag=$ac_c_werror_flag
25209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --as-needed works" >&5
25210 $as_echo_n "checking whether --as-needed works... " >&6; }
25211 if test "${libgfor_cv_have_as_needed+set}" = set; then :
25212 $as_echo_n "(cached) " >&6
25213 else
25215 save_LDFLAGS="$LDFLAGS"
25216 LDFLAGS="$LDFLAGS -Wl,--as-needed -lm -Wl,--no-as-needed"
25217 libgfor_cv_have_as_needed=no
25219 ac_c_werror_flag=yes
25220 if test x$gcc_no_link = xyes; then
25221 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25224 /* end confdefs.h. */
25227 main ()
25231 return 0;
25233 _ACEOF
25234 if ac_fn_c_try_link "$LINENO"; then :
25235 libgfor_cv_have_as_needed=yes
25236 else
25237 libgfor_cv_have_as_needed=no
25239 rm -f core conftest.err conftest.$ac_objext \
25240 conftest$ac_exeext conftest.$ac_ext
25241 LDFLAGS="$save_LDFLAGS"
25242 ac_c_werror_flag=$ac_xsave_c_werror_flag
25245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_as_needed" >&5
25246 $as_echo "$libgfor_cv_have_as_needed" >&6; }
25248 if test "x$libgfor_cv_have_as_needed" = xyes; then
25249 LIBQUADSPEC="%{static-libgfortran:--as-needed} -lquadmath %{static-libgfortran:--no-as-needed}"
25250 else
25251 LIBQUADSPEC="-lquadmath"
25253 if test -f ../libquadmath/libquadmath.la; then
25254 LIBQUADLIB=../libquadmath/libquadmath.la
25255 LIBQUADLIB_DEP=../libquadmath/libquadmath.la
25256 LIBQUADINCLUDE='-I$(srcdir)/../libquadmath'
25257 else
25258 LIBQUADLIB="-lquadmath"
25259 LIBQUADLIB_DEP=
25260 LIBQUADINCLUDE=
25263 else
25264 # for --disable-quadmath
25265 LIBQUADLIB=
25266 LIBQUADLIB_DEP=
25267 LIBQUADINCLUDE=
25275 if test "x$libgfor_cv_have_float128" = xyes; then
25276 LIBGFOR_BUILD_QUAD_TRUE=
25277 LIBGFOR_BUILD_QUAD_FALSE='#'
25278 else
25279 LIBGFOR_BUILD_QUAD_TRUE='#'
25280 LIBGFOR_BUILD_QUAD_FALSE=
25285 # Check for GNU libc feenableexcept
25286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5
25287 $as_echo_n "checking for feenableexcept in -lm... " >&6; }
25288 if test "${ac_cv_lib_m_feenableexcept+set}" = set; then :
25289 $as_echo_n "(cached) " >&6
25290 else
25291 ac_check_lib_save_LIBS=$LIBS
25292 LIBS="-lm $LIBS"
25293 if test x$gcc_no_link = xyes; then
25294 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25297 /* end confdefs.h. */
25299 /* Override any GCC internal prototype to avoid an error.
25300 Use char because int might match the return type of a GCC
25301 builtin and then its argument prototype would still apply. */
25302 #ifdef __cplusplus
25303 extern "C"
25304 #endif
25305 char feenableexcept ();
25307 main ()
25309 return feenableexcept ();
25311 return 0;
25313 _ACEOF
25314 if ac_fn_c_try_link "$LINENO"; then :
25315 ac_cv_lib_m_feenableexcept=yes
25316 else
25317 ac_cv_lib_m_feenableexcept=no
25319 rm -f core conftest.err conftest.$ac_objext \
25320 conftest$ac_exeext conftest.$ac_ext
25321 LIBS=$ac_check_lib_save_LIBS
25323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5
25324 $as_echo "$ac_cv_lib_m_feenableexcept" >&6; }
25325 if test "x$ac_cv_lib_m_feenableexcept" = x""yes; then :
25326 have_feenableexcept=yes
25327 $as_echo "#define HAVE_FEENABLEEXCEPT 1" >>confdefs.h
25332 # At least for glibc and Tru64, clock_gettime is in librt. But don't
25333 # pull that in if it still doesn't give us the function we want. This
25334 # test is copied from libgomp, and modified to not link in -lrt as
25335 # libgfortran calls clock_gettime via a weak reference if it's found
25336 # in librt.
25337 if test $ac_cv_func_clock_gettime = no; then
25338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
25339 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
25340 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
25341 $as_echo_n "(cached) " >&6
25342 else
25343 ac_check_lib_save_LIBS=$LIBS
25344 LIBS="-lrt $LIBS"
25345 if test x$gcc_no_link = xyes; then
25346 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25349 /* end confdefs.h. */
25351 /* Override any GCC internal prototype to avoid an error.
25352 Use char because int might match the return type of a GCC
25353 builtin and then its argument prototype would still apply. */
25354 #ifdef __cplusplus
25355 extern "C"
25356 #endif
25357 char clock_gettime ();
25359 main ()
25361 return clock_gettime ();
25363 return 0;
25365 _ACEOF
25366 if ac_fn_c_try_link "$LINENO"; then :
25367 ac_cv_lib_rt_clock_gettime=yes
25368 else
25369 ac_cv_lib_rt_clock_gettime=no
25371 rm -f core conftest.err conftest.$ac_objext \
25372 conftest$ac_exeext conftest.$ac_ext
25373 LIBS=$ac_check_lib_save_LIBS
25375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
25376 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
25377 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
25379 $as_echo "#define HAVE_CLOCK_GETTIME_LIBRT 1" >>confdefs.h
25385 # Check for SysV fpsetmask
25387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fpsetmask is present" >&5
25388 $as_echo_n "checking whether fpsetmask is present... " >&6; }
25389 if test "${libgfor_cv_have_fpsetmask+set}" = set; then :
25390 $as_echo_n "(cached) " >&6
25391 else
25393 if test x$gcc_no_link = xyes; then
25394 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25397 /* end confdefs.h. */
25399 #if HAVE_FLOATINGPOINT_H
25400 # include <floatingpoint.h>
25401 #endif /* HAVE_FLOATINGPOINT_H */
25402 #if HAVE_IEEEFP_H
25403 # include <ieeefp.h>
25404 #endif /* HAVE_IEEEFP_H */
25406 main ()
25408 fpsetmask(0);
25410 return 0;
25412 _ACEOF
25413 if ac_fn_c_try_link "$LINENO"; then :
25414 eval "libgfor_cv_have_fpsetmask=yes"
25415 else
25416 eval "libgfor_cv_have_fpsetmask=no"
25418 rm -f core conftest.err conftest.$ac_objext \
25419 conftest$ac_exeext conftest.$ac_ext
25422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_fpsetmask" >&5
25423 $as_echo "$libgfor_cv_have_fpsetmask" >&6; }
25424 if test x"$libgfor_cv_have_fpsetmask" = xyes; then
25425 have_fpsetmask=yes
25427 $as_echo "#define HAVE_FPSETMASK 1" >>confdefs.h
25432 # Check for AIX fp_trap and fp_enable
25433 ac_fn_c_check_func "$LINENO" "fp_trap" "ac_cv_func_fp_trap"
25434 if test "x$ac_cv_func_fp_trap" = x""yes; then :
25435 have_fp_trap=yes
25436 $as_echo "#define HAVE_FP_TRAP 1" >>confdefs.h
25440 ac_fn_c_check_func "$LINENO" "fp_enable" "ac_cv_func_fp_enable"
25441 if test "x$ac_cv_func_fp_enable" = x""yes; then :
25442 have_fp_enable=yes
25443 $as_echo "#define HAVE_FP_ENABLE 1" >>confdefs.h
25448 # Runs configure.host to set up necessary host-dependent shell variables.
25449 # We then display a message about it, and propagate them through the
25450 # build chain.
25451 . ${srcdir}/configure.host
25452 { $as_echo "$as_me:${as_lineno-$LINENO}: FPU dependent file will be ${fpu_host}.h" >&5
25453 $as_echo "$as_me: FPU dependent file will be ${fpu_host}.h" >&6;}
25454 FPU_HOST_HEADER=config/${fpu_host}.h
25457 # Some targets require additional compiler options for IEEE compatibility.
25458 IEEE_FLAGS="${ieee_flags}"
25462 # Check for POSIX getpwuid_r
25464 # There are two versions of getpwuid_r, the POSIX one with 5
25465 # arguments, and another one with 4 arguments used by at least HP-UX
25466 # 10.2.
25467 if test "$ac_cv_func_getpwuid_r" = "yes"; then
25468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX version of getpwuid_r with 5 arguments" >&5
25469 $as_echo_n "checking POSIX version of getpwuid_r with 5 arguments... " >&6; }
25470 if test "${libgfor_cv_posix_getpwuid_r+set}" = set; then :
25471 $as_echo_n "(cached) " >&6
25472 else
25474 if test x$gcc_no_link = xyes; then
25475 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25478 /* end confdefs.h. */
25480 #include <stdio.h>
25481 #include <sys/types.h>
25482 #include <pwd.h>
25484 main ()
25487 getpwuid_r(0, NULL, NULL, 0, NULL);
25490 return 0;
25492 _ACEOF
25493 if ac_fn_c_try_link "$LINENO"; then :
25494 libgfor_cv_posix_getpwuid_r="yes"
25495 else
25496 libgfor_cv_posix_getpwuid_r="no"
25498 rm -f core conftest.err conftest.$ac_objext \
25499 conftest$ac_exeext conftest.$ac_ext
25501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_posix_getpwuid_r" >&5
25502 $as_echo "$libgfor_cv_posix_getpwuid_r" >&6; }
25504 if test "$libgfor_cv_posix_getpwuid_r" = "yes"; then
25506 $as_echo "#define HAVE_POSIX_GETPWUID_R 1" >>confdefs.h
25511 # Check out attribute support.
25513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
25514 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
25515 if test "${libgfor_cv_have_attribute_visibility+set}" = set; then :
25516 $as_echo_n "(cached) " >&6
25517 else
25519 save_CFLAGS="$CFLAGS"
25520 CFLAGS="$CFLAGS -Werror"
25521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25522 /* end confdefs.h. */
25523 void __attribute__((visibility("hidden"))) foo(void) { }
25525 main ()
25529 return 0;
25531 _ACEOF
25532 if ac_fn_c_try_compile "$LINENO"; then :
25533 libgfor_cv_have_attribute_visibility=yes
25534 else
25535 libgfor_cv_have_attribute_visibility=no
25537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25538 CFLAGS="$save_CFLAGS"
25540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_visibility" >&5
25541 $as_echo "$libgfor_cv_have_attribute_visibility" >&6; }
25542 if test $libgfor_cv_have_attribute_visibility = yes; then
25544 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
25548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
25549 $as_echo_n "checking whether the target supports dllexport... " >&6; }
25550 if test "${libgfor_cv_have_attribute_dllexport+set}" = set; then :
25551 $as_echo_n "(cached) " >&6
25552 else
25554 save_CFLAGS="$CFLAGS"
25555 CFLAGS="$CFLAGS -Werror"
25556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25557 /* end confdefs.h. */
25558 void __attribute__((dllexport)) foo(void) { }
25560 main ()
25564 return 0;
25566 _ACEOF
25567 if ac_fn_c_try_compile "$LINENO"; then :
25568 libgfor_cv_have_attribute_dllexport=yes
25569 else
25570 libgfor_cv_have_attribute_dllexport=no
25572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25573 CFLAGS="$save_CFLAGS"
25575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_dllexport" >&5
25576 $as_echo "$libgfor_cv_have_attribute_dllexport" >&6; }
25577 if test $libgfor_cv_have_attribute_dllexport = yes; then
25579 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
25583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
25584 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
25585 if test "${libgfor_cv_have_attribute_alias+set}" = set; then :
25586 $as_echo_n "(cached) " >&6
25587 else
25589 if test x$gcc_no_link = xyes; then
25590 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25593 /* end confdefs.h. */
25595 void foo(void) { }
25596 extern void bar(void) __attribute__((alias("foo")));
25598 main ()
25600 bar();
25602 return 0;
25604 _ACEOF
25605 if ac_fn_c_try_link "$LINENO"; then :
25606 libgfor_cv_have_attribute_alias=yes
25607 else
25608 libgfor_cv_have_attribute_alias=no
25610 rm -f core conftest.err conftest.$ac_objext \
25611 conftest$ac_exeext conftest.$ac_ext
25613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_alias" >&5
25614 $as_echo "$libgfor_cv_have_attribute_alias" >&6; }
25615 if test $libgfor_cv_have_attribute_alias = yes; then
25617 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
25621 # Check out sync builtins support.
25623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_fetch_and_add" >&5
25624 $as_echo_n "checking whether the target supports __sync_fetch_and_add... " >&6; }
25625 if test "${libgfor_cv_have_sync_fetch_and_add+set}" = set; then :
25626 $as_echo_n "(cached) " >&6
25627 else
25629 if test x$gcc_no_link = xyes; then
25630 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25633 /* end confdefs.h. */
25634 int foovar = 0;
25636 main ()
25639 if (foovar <= 0) return __sync_fetch_and_add (&foovar, 1);
25640 if (foovar > 10) return __sync_add_and_fetch (&foovar, -1);
25642 return 0;
25644 _ACEOF
25645 if ac_fn_c_try_link "$LINENO"; then :
25646 libgfor_cv_have_sync_fetch_and_add=yes
25647 else
25648 libgfor_cv_have_sync_fetch_and_add=no
25650 rm -f core conftest.err conftest.$ac_objext \
25651 conftest$ac_exeext conftest.$ac_ext
25653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_sync_fetch_and_add" >&5
25654 $as_echo "$libgfor_cv_have_sync_fetch_and_add" >&6; }
25655 if test $libgfor_cv_have_sync_fetch_and_add = yes; then
25657 $as_echo "#define HAVE_SYNC_FETCH_AND_ADD 1" >>confdefs.h
25661 # Check out thread support.
25663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking configured target thread model" >&5
25664 $as_echo_n "checking configured target thread model... " >&6; }
25665 if test "${libgfor_cv_target_thread_file+set}" = set; then :
25666 $as_echo_n "(cached) " >&6
25667 else
25669 libgfor_cv_target_thread_file=`$CC -v 2>&1 | sed -n 's/^Thread model: //p'`
25671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_target_thread_file" >&5
25672 $as_echo "$libgfor_cv_target_thread_file" >&6; }
25674 if test $libgfor_cv_target_thread_file != single; then
25676 $as_echo "#define HAVE_GTHR_DEFAULT 1" >>confdefs.h
25680 # Check out #pragma weak.
25682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pragma weak works" >&5
25683 $as_echo_n "checking whether pragma weak works... " >&6; }
25684 if test "${libgfor_cv_have_pragma_weak+set}" = set; then :
25685 $as_echo_n "(cached) " >&6
25686 else
25688 gfor_save_CFLAGS="$CFLAGS"
25689 CFLAGS="$CFLAGS -Wunknown-pragmas"
25690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25691 /* end confdefs.h. */
25692 void foo (void);
25693 #pragma weak foo
25695 main ()
25697 if (foo) foo ();
25699 return 0;
25701 _ACEOF
25702 if ac_fn_c_try_compile "$LINENO"; then :
25703 libgfor_cv_have_pragma_weak=yes
25704 else
25705 libgfor_cv_have_pragma_weak=no
25707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_pragma_weak" >&5
25710 $as_echo "$libgfor_cv_have_pragma_weak" >&6; }
25711 if test $libgfor_cv_have_pragma_weak = yes; then
25713 $as_echo "#define SUPPORTS_WEAK 1" >>confdefs.h
25716 case "$host" in
25717 *-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-mingw* | alpha*-dec-osf* )
25719 $as_echo "#define GTHREAD_USE_WEAK 0" >>confdefs.h
25722 esac
25724 # Various other checks on target
25726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target can unlink an open file" >&5
25727 $as_echo_n "checking whether the target can unlink an open file... " >&6; }
25728 if test "${libgfor_cv_have_unlink_open_file+set}" = set; then :
25729 $as_echo_n "(cached) " >&6
25730 else
25732 if test "$cross_compiling" = yes; then :
25734 case "${target}" in
25735 *mingw*) libgfor_cv_have_unlink_open_file=no ;;
25736 *) libgfor_cv_have_unlink_open_file=yes;;
25737 esac
25738 else
25739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25740 /* end confdefs.h. */
25742 #include <errno.h>
25743 #include <fcntl.h>
25744 #include <unistd.h>
25745 #include <sys/stat.h>
25747 int main ()
25749 int fd;
25751 fd = open ("testfile", O_RDWR | O_CREAT, S_IWRITE | S_IREAD);
25752 if (fd <= 0)
25753 return 0;
25754 if (unlink ("testfile") == -1)
25755 return 1;
25756 write (fd, "This is a test\n", 15);
25757 close (fd);
25759 if (open ("testfile", O_RDONLY, S_IWRITE | S_IREAD) == -1 && errno == ENOENT)
25760 return 0;
25761 else
25762 return 1;
25764 _ACEOF
25765 if ac_fn_c_try_run "$LINENO"; then :
25766 libgfor_cv_have_unlink_open_file=yes
25767 else
25768 libgfor_cv_have_unlink_open_file=no
25770 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25771 conftest.$ac_objext conftest.beam conftest.$ac_ext
25775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_unlink_open_file" >&5
25776 $as_echo "$libgfor_cv_have_unlink_open_file" >&6; }
25777 if test x"$libgfor_cv_have_unlink_open_file" = xyes; then
25779 $as_echo "#define HAVE_UNLINK_OPEN_FILE 1" >>confdefs.h
25783 # Check whether line terminator is LF or CRLF
25785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target has CRLF as line terminator" >&5
25786 $as_echo_n "checking whether the target has CRLF as line terminator... " >&6; }
25787 if test "${libgfor_cv_have_crlf+set}" = set; then :
25788 $as_echo_n "(cached) " >&6
25789 else
25791 if test "$cross_compiling" = yes; then :
25793 case "${target}" in
25794 *mingw*) libgfor_cv_have_crlf=yes ;;
25795 *) libgfor_cv_have_crlf=no;;
25796 esac
25797 else
25798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25799 /* end confdefs.h. */
25801 /* This test program should exit with status 0 if system uses a CRLF as
25802 line terminator, and status 1 otherwise.
25803 Since it is used to check for mingw systems, and should return 0 in any
25804 other case, in case of a failure we will not use CRLF. */
25805 #include <sys/stat.h>
25806 #include <stdlib.h>
25807 #include <fcntl.h>
25808 #include <stdio.h>
25810 int main ()
25812 #ifndef O_BINARY
25813 exit(1);
25814 #else
25815 int fd, bytes;
25816 char buff[5];
25818 fd = open ("foo", O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU);
25819 if (fd < 0)
25820 exit(1);
25821 if (write (fd, "\n", 1) < 0)
25822 perror ("write");
25824 close (fd);
25826 if ((fd = open ("foo", O_RDONLY | O_BINARY, S_IRWXU)) < 0)
25827 exit(1);
25828 bytes = read (fd, buff, 5);
25829 if (bytes == 2 && buff[0] == '\r' && buff[1] == '\n')
25830 exit(0);
25831 else
25832 exit(1);
25833 #endif
25835 _ACEOF
25836 if ac_fn_c_try_run "$LINENO"; then :
25837 libgfor_cv_have_crlf=yes
25838 else
25839 libgfor_cv_have_crlf=no
25841 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25842 conftest.$ac_objext conftest.beam conftest.$ac_ext
25846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_crlf" >&5
25847 $as_echo "$libgfor_cv_have_crlf" >&6; }
25848 if test x"$libgfor_cv_have_crlf" = xyes; then
25850 $as_echo "#define HAVE_CRLF 1" >>confdefs.h
25854 cat >confcache <<\_ACEOF
25855 # This file is a shell script that caches the results of configure
25856 # tests run on this system so they can be shared between configure
25857 # scripts and configure runs, see configure's option --config-cache.
25858 # It is not useful on other systems. If it contains results you don't
25859 # want to keep, you may remove or edit it.
25861 # config.status only pays attention to the cache file if you give it
25862 # the --recheck option to rerun configure.
25864 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25865 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25866 # following values.
25868 _ACEOF
25870 # The following way of writing the cache mishandles newlines in values,
25871 # but we know of no workaround that is simple, portable, and efficient.
25872 # So, we kill variables containing newlines.
25873 # Ultrix sh set writes to stderr and can't be redirected directly,
25874 # and sets the high bit in the cache file unless we assign to the vars.
25876 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25877 eval ac_val=\$$ac_var
25878 case $ac_val in #(
25879 *${as_nl}*)
25880 case $ac_var in #(
25881 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25882 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25883 esac
25884 case $ac_var in #(
25885 _ | IFS | as_nl) ;; #(
25886 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25887 *) { eval $ac_var=; unset $ac_var;} ;;
25888 esac ;;
25889 esac
25890 done
25892 (set) 2>&1 |
25893 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25894 *${as_nl}ac_space=\ *)
25895 # `set' does not quote correctly, so add quotes: double-quote
25896 # substitution turns \\\\ into \\, and sed turns \\ into \.
25897 sed -n \
25898 "s/'/'\\\\''/g;
25899 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25900 ;; #(
25902 # `set' quotes correctly as required by POSIX, so do not add quotes.
25903 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25905 esac |
25906 sort
25908 sed '
25909 /^ac_cv_env_/b end
25910 t clear
25911 :clear
25912 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25913 t end
25914 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25915 :end' >>confcache
25916 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
25917 if test -w "$cache_file"; then
25918 test "x$cache_file" != "x/dev/null" &&
25919 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
25920 $as_echo "$as_me: updating cache $cache_file" >&6;}
25921 cat confcache >$cache_file
25922 else
25923 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
25924 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
25927 rm -f confcache
25929 if test ${multilib} = yes; then
25930 multilib_arg="--enable-multilib"
25931 else
25932 multilib_arg=
25935 # Write our Makefile and spec file.
25936 ac_config_files="$ac_config_files Makefile libgfortran.spec"
25938 cat >confcache <<\_ACEOF
25939 # This file is a shell script that caches the results of configure
25940 # tests run on this system so they can be shared between configure
25941 # scripts and configure runs, see configure's option --config-cache.
25942 # It is not useful on other systems. If it contains results you don't
25943 # want to keep, you may remove or edit it.
25945 # config.status only pays attention to the cache file if you give it
25946 # the --recheck option to rerun configure.
25948 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25949 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25950 # following values.
25952 _ACEOF
25954 # The following way of writing the cache mishandles newlines in values,
25955 # but we know of no workaround that is simple, portable, and efficient.
25956 # So, we kill variables containing newlines.
25957 # Ultrix sh set writes to stderr and can't be redirected directly,
25958 # and sets the high bit in the cache file unless we assign to the vars.
25960 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25961 eval ac_val=\$$ac_var
25962 case $ac_val in #(
25963 *${as_nl}*)
25964 case $ac_var in #(
25965 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
25966 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
25967 esac
25968 case $ac_var in #(
25969 _ | IFS | as_nl) ;; #(
25970 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
25971 *) { eval $ac_var=; unset $ac_var;} ;;
25972 esac ;;
25973 esac
25974 done
25976 (set) 2>&1 |
25977 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25978 *${as_nl}ac_space=\ *)
25979 # `set' does not quote correctly, so add quotes: double-quote
25980 # substitution turns \\\\ into \\, and sed turns \\ into \.
25981 sed -n \
25982 "s/'/'\\\\''/g;
25983 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25984 ;; #(
25986 # `set' quotes correctly as required by POSIX, so do not add quotes.
25987 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25989 esac |
25990 sort
25992 sed '
25993 /^ac_cv_env_/b end
25994 t clear
25995 :clear
25996 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
25997 t end
25998 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
25999 :end' >>confcache
26000 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26001 if test -w "$cache_file"; then
26002 test "x$cache_file" != "x/dev/null" &&
26003 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26004 $as_echo "$as_me: updating cache $cache_file" >&6;}
26005 cat confcache >$cache_file
26006 else
26007 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26008 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26011 rm -f confcache
26013 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26014 # Let make expand exec_prefix.
26015 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26017 DEFS=-DHAVE_CONFIG_H
26019 ac_libobjs=
26020 ac_ltlibobjs=
26021 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26022 # 1. Remove the extension, and $U if already installed.
26023 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26024 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26025 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26026 # will be set to the directory where LIBOBJS objects are built.
26027 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26028 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26029 done
26030 LIBOBJS=$ac_libobjs
26032 LTLIBOBJS=$ac_ltlibobjs
26035 if test -z "${onestep_TRUE}" && test -z "${onestep_FALSE}"; then
26036 as_fn_error "conditional \"onestep\" was never defined.
26037 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26039 if test -n "$EXEEXT"; then
26040 am__EXEEXT_TRUE=
26041 am__EXEEXT_FALSE='#'
26042 else
26043 am__EXEEXT_TRUE='#'
26044 am__EXEEXT_FALSE=
26047 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26048 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
26049 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26051 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26052 as_fn_error "conditional \"AMDEP\" was never defined.
26053 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26055 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26056 as_fn_error "conditional \"am__fastdepCC\" was never defined.
26057 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26059 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26060 as_fn_error "conditional \"am__fastdepCC\" was never defined.
26061 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26063 if test -z "${LIBGFOR_USE_SYMVER_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_FALSE}"; then
26064 as_fn_error "conditional \"LIBGFOR_USE_SYMVER\" was never defined.
26065 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26067 if test -z "${LIBGFOR_USE_SYMVER_GNU_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_GNU_FALSE}"; then
26068 as_fn_error "conditional \"LIBGFOR_USE_SYMVER_GNU\" was never defined.
26069 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26071 if test -z "${LIBGFOR_USE_SYMVER_SUN_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_SUN_FALSE}"; then
26072 as_fn_error "conditional \"LIBGFOR_USE_SYMVER_SUN\" was never defined.
26073 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26075 if test -z "${LIBGFOR_BUILD_QUAD_TRUE}" && test -z "${LIBGFOR_BUILD_QUAD_FALSE}"; then
26076 as_fn_error "conditional \"LIBGFOR_BUILD_QUAD\" was never defined.
26077 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26080 : ${CONFIG_STATUS=./config.status}
26081 ac_write_fail=0
26082 ac_clean_files_save=$ac_clean_files
26083 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26084 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26085 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26086 as_write_fail=0
26087 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26088 #! $SHELL
26089 # Generated by $as_me.
26090 # Run this file to recreate the current configuration.
26091 # Compiler output produced by configure, useful for debugging
26092 # configure, is in config.log if it exists.
26094 debug=false
26095 ac_cs_recheck=false
26096 ac_cs_silent=false
26098 SHELL=\${CONFIG_SHELL-$SHELL}
26099 export SHELL
26100 _ASEOF
26101 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26102 ## -------------------- ##
26103 ## M4sh Initialization. ##
26104 ## -------------------- ##
26106 # Be more Bourne compatible
26107 DUALCASE=1; export DUALCASE # for MKS sh
26108 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26109 emulate sh
26110 NULLCMD=:
26111 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26112 # is contrary to our usage. Disable this feature.
26113 alias -g '${1+"$@"}'='"$@"'
26114 setopt NO_GLOB_SUBST
26115 else
26116 case `(set -o) 2>/dev/null` in #(
26117 *posix*) :
26118 set -o posix ;; #(
26119 *) :
26121 esac
26125 as_nl='
26127 export as_nl
26128 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26129 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26130 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26131 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26132 # Prefer a ksh shell builtin over an external printf program on Solaris,
26133 # but without wasting forks for bash or zsh.
26134 if test -z "$BASH_VERSION$ZSH_VERSION" \
26135 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26136 as_echo='print -r --'
26137 as_echo_n='print -rn --'
26138 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26139 as_echo='printf %s\n'
26140 as_echo_n='printf %s'
26141 else
26142 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26143 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26144 as_echo_n='/usr/ucb/echo -n'
26145 else
26146 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26147 as_echo_n_body='eval
26148 arg=$1;
26149 case $arg in #(
26150 *"$as_nl"*)
26151 expr "X$arg" : "X\\(.*\\)$as_nl";
26152 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26153 esac;
26154 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26156 export as_echo_n_body
26157 as_echo_n='sh -c $as_echo_n_body as_echo'
26159 export as_echo_body
26160 as_echo='sh -c $as_echo_body as_echo'
26163 # The user is always right.
26164 if test "${PATH_SEPARATOR+set}" != set; then
26165 PATH_SEPARATOR=:
26166 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26167 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26168 PATH_SEPARATOR=';'
26173 # IFS
26174 # We need space, tab and new line, in precisely that order. Quoting is
26175 # there to prevent editors from complaining about space-tab.
26176 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26177 # splitting by setting IFS to empty value.)
26178 IFS=" "" $as_nl"
26180 # Find who we are. Look in the path if we contain no directory separator.
26181 case $0 in #((
26182 *[\\/]* ) as_myself=$0 ;;
26183 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26184 for as_dir in $PATH
26186 IFS=$as_save_IFS
26187 test -z "$as_dir" && as_dir=.
26188 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26189 done
26190 IFS=$as_save_IFS
26193 esac
26194 # We did not find ourselves, most probably we were run as `sh COMMAND'
26195 # in which case we are not to be found in the path.
26196 if test "x$as_myself" = x; then
26197 as_myself=$0
26199 if test ! -f "$as_myself"; then
26200 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26201 exit 1
26204 # Unset variables that we do not need and which cause bugs (e.g. in
26205 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26206 # suppresses any "Segmentation fault" message there. '((' could
26207 # trigger a bug in pdksh 5.2.14.
26208 for as_var in BASH_ENV ENV MAIL MAILPATH
26209 do eval test x\${$as_var+set} = xset \
26210 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26211 done
26212 PS1='$ '
26213 PS2='> '
26214 PS4='+ '
26216 # NLS nuisances.
26217 LC_ALL=C
26218 export LC_ALL
26219 LANGUAGE=C
26220 export LANGUAGE
26222 # CDPATH.
26223 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26226 # as_fn_error ERROR [LINENO LOG_FD]
26227 # ---------------------------------
26228 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26229 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26230 # script with status $?, using 1 if that was 0.
26231 as_fn_error ()
26233 as_status=$?; test $as_status -eq 0 && as_status=1
26234 if test "$3"; then
26235 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26236 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
26238 $as_echo "$as_me: error: $1" >&2
26239 as_fn_exit $as_status
26240 } # as_fn_error
26243 # as_fn_set_status STATUS
26244 # -----------------------
26245 # Set $? to STATUS, without forking.
26246 as_fn_set_status ()
26248 return $1
26249 } # as_fn_set_status
26251 # as_fn_exit STATUS
26252 # -----------------
26253 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26254 as_fn_exit ()
26256 set +e
26257 as_fn_set_status $1
26258 exit $1
26259 } # as_fn_exit
26261 # as_fn_unset VAR
26262 # ---------------
26263 # Portably unset VAR.
26264 as_fn_unset ()
26266 { eval $1=; unset $1;}
26268 as_unset=as_fn_unset
26269 # as_fn_append VAR VALUE
26270 # ----------------------
26271 # Append the text in VALUE to the end of the definition contained in VAR. Take
26272 # advantage of any shell optimizations that allow amortized linear growth over
26273 # repeated appends, instead of the typical quadratic growth present in naive
26274 # implementations.
26275 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26276 eval 'as_fn_append ()
26278 eval $1+=\$2
26280 else
26281 as_fn_append ()
26283 eval $1=\$$1\$2
26285 fi # as_fn_append
26287 # as_fn_arith ARG...
26288 # ------------------
26289 # Perform arithmetic evaluation on the ARGs, and store the result in the
26290 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26291 # must be portable across $(()) and expr.
26292 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26293 eval 'as_fn_arith ()
26295 as_val=$(( $* ))
26297 else
26298 as_fn_arith ()
26300 as_val=`expr "$@" || test $? -eq 1`
26302 fi # as_fn_arith
26305 if expr a : '\(a\)' >/dev/null 2>&1 &&
26306 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26307 as_expr=expr
26308 else
26309 as_expr=false
26312 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26313 as_basename=basename
26314 else
26315 as_basename=false
26318 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26319 as_dirname=dirname
26320 else
26321 as_dirname=false
26324 as_me=`$as_basename -- "$0" ||
26325 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26326 X"$0" : 'X\(//\)$' \| \
26327 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26328 $as_echo X/"$0" |
26329 sed '/^.*\/\([^/][^/]*\)\/*$/{
26330 s//\1/
26333 /^X\/\(\/\/\)$/{
26334 s//\1/
26337 /^X\/\(\/\).*/{
26338 s//\1/
26341 s/.*/./; q'`
26343 # Avoid depending upon Character Ranges.
26344 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26345 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26346 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26347 as_cr_digits='0123456789'
26348 as_cr_alnum=$as_cr_Letters$as_cr_digits
26350 ECHO_C= ECHO_N= ECHO_T=
26351 case `echo -n x` in #(((((
26352 -n*)
26353 case `echo 'xy\c'` in
26354 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26355 xy) ECHO_C='\c';;
26356 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
26357 ECHO_T=' ';;
26358 esac;;
26360 ECHO_N='-n';;
26361 esac
26363 rm -f conf$$ conf$$.exe conf$$.file
26364 if test -d conf$$.dir; then
26365 rm -f conf$$.dir/conf$$.file
26366 else
26367 rm -f conf$$.dir
26368 mkdir conf$$.dir 2>/dev/null
26370 if (echo >conf$$.file) 2>/dev/null; then
26371 if ln -s conf$$.file conf$$ 2>/dev/null; then
26372 as_ln_s='ln -s'
26373 # ... but there are two gotchas:
26374 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26375 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26376 # In both cases, we have to default to `cp -p'.
26377 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26378 as_ln_s='cp -p'
26379 elif ln conf$$.file conf$$ 2>/dev/null; then
26380 as_ln_s=ln
26381 else
26382 as_ln_s='cp -p'
26384 else
26385 as_ln_s='cp -p'
26387 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26388 rmdir conf$$.dir 2>/dev/null
26391 # as_fn_mkdir_p
26392 # -------------
26393 # Create "$as_dir" as a directory, including parents if necessary.
26394 as_fn_mkdir_p ()
26397 case $as_dir in #(
26398 -*) as_dir=./$as_dir;;
26399 esac
26400 test -d "$as_dir" || eval $as_mkdir_p || {
26401 as_dirs=
26402 while :; do
26403 case $as_dir in #(
26404 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
26405 *) as_qdir=$as_dir;;
26406 esac
26407 as_dirs="'$as_qdir' $as_dirs"
26408 as_dir=`$as_dirname -- "$as_dir" ||
26409 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26410 X"$as_dir" : 'X\(//\)[^/]' \| \
26411 X"$as_dir" : 'X\(//\)$' \| \
26412 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26413 $as_echo X"$as_dir" |
26414 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26415 s//\1/
26418 /^X\(\/\/\)[^/].*/{
26419 s//\1/
26422 /^X\(\/\/\)$/{
26423 s//\1/
26426 /^X\(\/\).*/{
26427 s//\1/
26430 s/.*/./; q'`
26431 test -d "$as_dir" && break
26432 done
26433 test -z "$as_dirs" || eval "mkdir $as_dirs"
26434 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
26437 } # as_fn_mkdir_p
26438 if mkdir -p . 2>/dev/null; then
26439 as_mkdir_p='mkdir -p "$as_dir"'
26440 else
26441 test -d ./-p && rmdir ./-p
26442 as_mkdir_p=false
26445 if test -x / >/dev/null 2>&1; then
26446 as_test_x='test -x'
26447 else
26448 if ls -dL / >/dev/null 2>&1; then
26449 as_ls_L_option=L
26450 else
26451 as_ls_L_option=
26453 as_test_x='
26454 eval sh -c '\''
26455 if test -d "$1"; then
26456 test -d "$1/.";
26457 else
26458 case $1 in #(
26459 -*)set "./$1";;
26460 esac;
26461 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
26462 ???[sx]*):;;*)false;;esac;fi
26463 '\'' sh
26466 as_executable_p=$as_test_x
26468 # Sed expression to map a string onto a valid CPP name.
26469 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26471 # Sed expression to map a string onto a valid variable name.
26472 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26475 exec 6>&1
26476 ## ----------------------------------- ##
26477 ## Main body of $CONFIG_STATUS script. ##
26478 ## ----------------------------------- ##
26479 _ASEOF
26480 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
26482 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26483 # Save the log message, to keep $0 and so on meaningful, and to
26484 # report actual input values of CONFIG_FILES etc. instead of their
26485 # values after options handling.
26486 ac_log="
26487 This file was extended by GNU Fortran Runtime Library $as_me 0.3, which was
26488 generated by GNU Autoconf 2.64. Invocation command line was
26490 CONFIG_FILES = $CONFIG_FILES
26491 CONFIG_HEADERS = $CONFIG_HEADERS
26492 CONFIG_LINKS = $CONFIG_LINKS
26493 CONFIG_COMMANDS = $CONFIG_COMMANDS
26494 $ $0 $@
26496 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26499 _ACEOF
26501 case $ac_config_files in *"
26502 "*) set x $ac_config_files; shift; ac_config_files=$*;;
26503 esac
26505 case $ac_config_headers in *"
26506 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
26507 esac
26510 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26511 # Files that config.status was made for.
26512 config_files="$ac_config_files"
26513 config_headers="$ac_config_headers"
26514 config_commands="$ac_config_commands"
26516 _ACEOF
26518 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26519 ac_cs_usage="\
26520 \`$as_me' instantiates files and other configuration actions
26521 from templates according to the current configuration. Unless the files
26522 and actions are specified as TAGs, all are instantiated by default.
26524 Usage: $0 [OPTION]... [TAG]...
26526 -h, --help print this help, then exit
26527 -V, --version print version number and configuration settings, then exit
26528 -q, --quiet, --silent
26529 do not print progress messages
26530 -d, --debug don't remove temporary files
26531 --recheck update $as_me by reconfiguring in the same conditions
26532 --file=FILE[:TEMPLATE]
26533 instantiate the configuration file FILE
26534 --header=FILE[:TEMPLATE]
26535 instantiate the configuration header FILE
26537 Configuration files:
26538 $config_files
26540 Configuration headers:
26541 $config_headers
26543 Configuration commands:
26544 $config_commands
26546 Report bugs to the package provider.
26547 GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
26548 General help using GNU software: <http://www.gnu.org/gethelp/>."
26550 _ACEOF
26551 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26552 ac_cs_version="\\
26553 GNU Fortran Runtime Library config.status 0.3
26554 configured by $0, generated by GNU Autoconf 2.64,
26555 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26557 Copyright (C) 2009 Free Software Foundation, Inc.
26558 This config.status script is free software; the Free Software Foundation
26559 gives unlimited permission to copy, distribute and modify it."
26561 ac_pwd='$ac_pwd'
26562 srcdir='$srcdir'
26563 INSTALL='$INSTALL'
26564 MKDIR_P='$MKDIR_P'
26565 AWK='$AWK'
26566 test -n "\$AWK" || AWK=awk
26567 _ACEOF
26569 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26570 # The default lists apply if the user does not specify any file.
26571 ac_need_defaults=:
26572 while test $# != 0
26574 case $1 in
26575 --*=*)
26576 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26577 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26578 ac_shift=:
26581 ac_option=$1
26582 ac_optarg=$2
26583 ac_shift=shift
26585 esac
26587 case $ac_option in
26588 # Handling of the options.
26589 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26590 ac_cs_recheck=: ;;
26591 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26592 $as_echo "$ac_cs_version"; exit ;;
26593 --debug | --debu | --deb | --de | --d | -d )
26594 debug=: ;;
26595 --file | --fil | --fi | --f )
26596 $ac_shift
26597 case $ac_optarg in
26598 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26599 esac
26600 as_fn_append CONFIG_FILES " '$ac_optarg'"
26601 ac_need_defaults=false;;
26602 --header | --heade | --head | --hea )
26603 $ac_shift
26604 case $ac_optarg in
26605 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
26606 esac
26607 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
26608 ac_need_defaults=false;;
26609 --he | --h)
26610 # Conflict between --help and --header
26611 as_fn_error "ambiguous option: \`$1'
26612 Try \`$0 --help' for more information.";;
26613 --help | --hel | -h )
26614 $as_echo "$ac_cs_usage"; exit ;;
26615 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26616 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26617 ac_cs_silent=: ;;
26619 # This is an error.
26620 -*) as_fn_error "unrecognized option: \`$1'
26621 Try \`$0 --help' for more information." ;;
26623 *) as_fn_append ac_config_targets " $1"
26624 ac_need_defaults=false ;;
26626 esac
26627 shift
26628 done
26630 ac_configure_extra_args=
26632 if $ac_cs_silent; then
26633 exec 6>/dev/null
26634 ac_configure_extra_args="$ac_configure_extra_args --silent"
26637 _ACEOF
26638 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26639 if \$ac_cs_recheck; then
26640 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26641 shift
26642 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
26643 CONFIG_SHELL='$SHELL'
26644 export CONFIG_SHELL
26645 exec "\$@"
26648 _ACEOF
26649 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
26650 exec 5>>config.log
26652 echo
26653 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26654 ## Running $as_me. ##
26655 _ASBOX
26656 $as_echo "$ac_log"
26657 } >&5
26659 _ACEOF
26660 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
26662 # INIT-COMMANDS
26665 srcdir="$srcdir"
26666 host="$host"
26667 target="$target"
26668 with_multisubdir="$with_multisubdir"
26669 with_multisrctop="$with_multisrctop"
26670 with_target_subdir="$with_target_subdir"
26671 ac_configure_args="${multilib_arg} ${ac_configure_args}"
26672 multi_basedir="$multi_basedir"
26673 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
26674 CC="$CC"
26675 CXX="$CXX"
26676 GFORTRAN="$GFORTRAN"
26677 GCJ="$GCJ"
26678 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
26681 # The HP-UX ksh and POSIX shell print the target directory to stdout
26682 # if CDPATH is set.
26683 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26685 sed_quote_subst='$sed_quote_subst'
26686 double_quote_subst='$double_quote_subst'
26687 delay_variable_subst='$delay_variable_subst'
26688 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
26689 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
26690 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
26691 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
26692 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
26693 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
26694 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
26695 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
26696 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
26697 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
26698 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
26699 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
26700 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
26701 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
26702 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
26703 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
26704 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
26705 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
26706 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
26707 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
26708 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
26709 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
26710 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
26711 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
26712 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
26713 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
26714 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
26715 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
26716 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
26717 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
26718 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
26719 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
26720 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
26721 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
26722 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
26723 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
26724 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
26725 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26726 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26727 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
26728 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
26729 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
26730 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
26731 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
26732 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
26733 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
26734 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
26735 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
26736 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"`'
26737 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
26738 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
26739 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
26740 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
26741 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
26742 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
26743 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
26744 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
26745 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
26746 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
26747 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
26748 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
26749 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
26750 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
26751 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
26752 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26753 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
26754 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
26755 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
26756 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
26757 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
26758 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
26759 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
26760 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
26761 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26762 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
26763 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
26764 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
26765 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
26766 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
26767 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
26768 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
26769 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
26770 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
26771 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
26772 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
26773 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
26774 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
26775 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
26776 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
26777 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
26778 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
26779 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
26780 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
26781 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
26782 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
26783 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
26784 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
26785 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
26786 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
26787 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
26788 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
26789 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
26790 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
26791 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
26792 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
26793 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
26794 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
26795 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
26796 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
26797 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
26798 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
26799 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
26800 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
26801 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
26802 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
26803 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
26804 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
26805 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
26806 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
26807 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
26808 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
26809 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
26810 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
26811 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
26812 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
26813 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
26814 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
26815 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
26816 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
26817 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
26818 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
26819 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
26820 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
26821 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
26822 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
26823 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
26824 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
26825 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
26826 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
26827 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
26828 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
26829 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
26830 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
26831 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
26832 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
26833 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
26834 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
26835 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
26836 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
26837 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
26838 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
26839 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
26840 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
26841 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
26842 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
26843 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
26844 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
26845 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
26846 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
26847 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
26848 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
26849 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
26850 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
26851 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
26852 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
26853 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
26854 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
26855 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
26856 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
26857 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
26858 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
26859 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
26860 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
26861 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
26862 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
26864 LTCC='$LTCC'
26865 LTCFLAGS='$LTCFLAGS'
26866 compiler='$compiler_DEFAULT'
26868 # A function that is used when there is no print builtin or printf.
26869 func_fallback_echo ()
26871 eval 'cat <<_LTECHO_EOF
26873 _LTECHO_EOF'
26876 # Quote evaled strings.
26877 for var in SHELL \
26878 ECHO \
26879 SED \
26880 GREP \
26881 EGREP \
26882 FGREP \
26883 LD \
26884 NM \
26885 LN_S \
26886 lt_SP2NL \
26887 lt_NL2SP \
26888 reload_flag \
26889 OBJDUMP \
26890 deplibs_check_method \
26891 file_magic_cmd \
26892 AR \
26893 AR_FLAGS \
26894 STRIP \
26895 RANLIB \
26896 CC \
26897 CFLAGS \
26898 compiler \
26899 lt_cv_sys_global_symbol_pipe \
26900 lt_cv_sys_global_symbol_to_cdecl \
26901 lt_cv_sys_global_symbol_to_c_name_address \
26902 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
26903 lt_prog_compiler_no_builtin_flag \
26904 lt_prog_compiler_wl \
26905 lt_prog_compiler_pic \
26906 lt_prog_compiler_static \
26907 lt_cv_prog_compiler_c_o \
26908 need_locks \
26909 DSYMUTIL \
26910 NMEDIT \
26911 LIPO \
26912 OTOOL \
26913 OTOOL64 \
26914 shrext_cmds \
26915 export_dynamic_flag_spec \
26916 whole_archive_flag_spec \
26917 compiler_needs_object \
26918 with_gnu_ld \
26919 allow_undefined_flag \
26920 no_undefined_flag \
26921 hardcode_libdir_flag_spec \
26922 hardcode_libdir_flag_spec_ld \
26923 hardcode_libdir_separator \
26924 fix_srcfile_path \
26925 exclude_expsyms \
26926 include_expsyms \
26927 file_list_spec \
26928 variables_saved_for_relink \
26929 libname_spec \
26930 library_names_spec \
26931 soname_spec \
26932 install_override_mode \
26933 finish_eval \
26934 old_striplib \
26935 striplib \
26936 compiler_lib_search_dirs \
26937 predep_objects \
26938 postdep_objects \
26939 predeps \
26940 postdeps \
26941 compiler_lib_search_path \
26942 LD_FC \
26943 reload_flag_FC \
26944 compiler_FC \
26945 lt_prog_compiler_no_builtin_flag_FC \
26946 lt_prog_compiler_wl_FC \
26947 lt_prog_compiler_pic_FC \
26948 lt_prog_compiler_static_FC \
26949 lt_cv_prog_compiler_c_o_FC \
26950 export_dynamic_flag_spec_FC \
26951 whole_archive_flag_spec_FC \
26952 compiler_needs_object_FC \
26953 with_gnu_ld_FC \
26954 allow_undefined_flag_FC \
26955 no_undefined_flag_FC \
26956 hardcode_libdir_flag_spec_FC \
26957 hardcode_libdir_flag_spec_ld_FC \
26958 hardcode_libdir_separator_FC \
26959 fix_srcfile_path_FC \
26960 exclude_expsyms_FC \
26961 include_expsyms_FC \
26962 file_list_spec_FC \
26963 compiler_lib_search_dirs_FC \
26964 predep_objects_FC \
26965 postdep_objects_FC \
26966 predeps_FC \
26967 postdeps_FC \
26968 compiler_lib_search_path_FC; do
26969 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
26970 *[\\\\\\\`\\"\\\$]*)
26971 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
26974 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
26976 esac
26977 done
26979 # Double-quote double-evaled strings.
26980 for var in reload_cmds \
26981 old_postinstall_cmds \
26982 old_postuninstall_cmds \
26983 old_archive_cmds \
26984 extract_expsyms_cmds \
26985 old_archive_from_new_cmds \
26986 old_archive_from_expsyms_cmds \
26987 archive_cmds \
26988 archive_expsym_cmds \
26989 module_cmds \
26990 module_expsym_cmds \
26991 export_symbols_cmds \
26992 prelink_cmds \
26993 postinstall_cmds \
26994 postuninstall_cmds \
26995 finish_cmds \
26996 sys_lib_search_path_spec \
26997 sys_lib_dlsearch_path_spec \
26998 reload_cmds_FC \
26999 old_archive_cmds_FC \
27000 old_archive_from_new_cmds_FC \
27001 old_archive_from_expsyms_cmds_FC \
27002 archive_cmds_FC \
27003 archive_expsym_cmds_FC \
27004 module_cmds_FC \
27005 module_expsym_cmds_FC \
27006 export_symbols_cmds_FC \
27007 prelink_cmds_FC; do
27008 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27009 *[\\\\\\\`\\"\\\$]*)
27010 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
27013 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27015 esac
27016 done
27018 ac_aux_dir='$ac_aux_dir'
27019 xsi_shell='$xsi_shell'
27020 lt_shell_append='$lt_shell_append'
27022 # See if we are running on zsh, and set the options which allow our
27023 # commands through without removal of \ escapes INIT.
27024 if test -n "\${ZSH_VERSION+set}" ; then
27025 setopt NO_GLOB_SUBST
27029 PACKAGE='$PACKAGE'
27030 VERSION='$VERSION'
27031 TIMESTAMP='$TIMESTAMP'
27032 RM='$RM'
27033 ofile='$ofile'
27040 GCC="$GCC"
27041 CC="$CC"
27042 acx_cv_header_stdint="$acx_cv_header_stdint"
27043 acx_cv_type_int8_t="$acx_cv_type_int8_t"
27044 acx_cv_type_int16_t="$acx_cv_type_int16_t"
27045 acx_cv_type_int32_t="$acx_cv_type_int32_t"
27046 acx_cv_type_int64_t="$acx_cv_type_int64_t"
27047 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
27048 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
27049 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
27050 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
27051 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
27052 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
27053 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
27054 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
27055 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
27058 _ACEOF
27060 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27062 # Handling of arguments.
27063 for ac_config_target in $ac_config_targets
27065 case $ac_config_target in
27066 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
27067 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
27068 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27069 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
27070 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
27071 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27072 "libgfortran.spec") CONFIG_FILES="$CONFIG_FILES libgfortran.spec" ;;
27074 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27075 esac
27076 done
27079 # If the user did not use the arguments to specify the items to instantiate,
27080 # then the envvar interface is used. Set only those that are not.
27081 # We use the long form for the default assignment because of an extremely
27082 # bizarre bug on SunOS 4.1.3.
27083 if $ac_need_defaults; then
27084 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27085 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27086 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27089 # Have a temporary directory for convenience. Make it in the build tree
27090 # simply because there is no reason against having it here, and in addition,
27091 # creating and moving files from /tmp can sometimes cause problems.
27092 # Hook for its removal unless debugging.
27093 # Note that there is a small window in which the directory will not be cleaned:
27094 # after its creation but before its name has been assigned to `$tmp'.
27095 $debug ||
27097 tmp=
27098 trap 'exit_status=$?
27099 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27101 trap 'as_fn_exit 1' 1 2 13 15
27103 # Create a (secure) tmp directory for tmp files.
27106 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27107 test -n "$tmp" && test -d "$tmp"
27108 } ||
27110 tmp=./conf$$-$RANDOM
27111 (umask 077 && mkdir "$tmp")
27112 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
27114 # Set up the scripts for CONFIG_FILES section.
27115 # No need to generate them if there are no CONFIG_FILES.
27116 # This happens for instance with `./config.status config.h'.
27117 if test -n "$CONFIG_FILES"; then
27120 ac_cr=`echo X | tr X '\015'`
27121 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27122 # But we know of no other shell where ac_cr would be empty at this
27123 # point, so we can use a bashism as a fallback.
27124 if test "x$ac_cr" = x; then
27125 eval ac_cr=\$\'\\r\'
27127 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27128 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27129 ac_cs_awk_cr='\r'
27130 else
27131 ac_cs_awk_cr=$ac_cr
27134 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27135 _ACEOF
27139 echo "cat >conf$$subs.awk <<_ACEOF" &&
27140 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27141 echo "_ACEOF"
27142 } >conf$$subs.sh ||
27143 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27144 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27145 ac_delim='%!_!# '
27146 for ac_last_try in false false false false false :; do
27147 . ./conf$$subs.sh ||
27148 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27150 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27151 if test $ac_delim_n = $ac_delim_num; then
27152 break
27153 elif $ac_last_try; then
27154 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27155 else
27156 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27158 done
27159 rm -f conf$$subs.sh
27161 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27162 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27163 _ACEOF
27164 sed -n '
27166 s/^/S["/; s/!.*/"]=/
27169 s/^[^!]*!//
27170 :repl
27171 t repl
27172 s/'"$ac_delim"'$//
27173 t delim
27176 s/\(.\{148\}\).*/\1/
27177 t more1
27178 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27181 b repl
27182 :more1
27183 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27186 s/.\{148\}//
27187 t nl
27188 :delim
27190 s/\(.\{148\}\).*/\1/
27191 t more2
27192 s/["\\]/\\&/g; s/^/"/; s/$/"/
27195 :more2
27196 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27199 s/.\{148\}//
27200 t delim
27201 ' <conf$$subs.awk | sed '
27202 /^[^""]/{
27204 s/\n//
27206 ' >>$CONFIG_STATUS || ac_write_fail=1
27207 rm -f conf$$subs.awk
27208 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27209 _ACAWK
27210 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27211 for (key in S) S_is_set[key] = 1
27212 FS = "\a"
27216 line = $ 0
27217 nfields = split(line, field, "@")
27218 substed = 0
27219 len = length(field[1])
27220 for (i = 2; i < nfields; i++) {
27221 key = field[i]
27222 keylen = length(key)
27223 if (S_is_set[key]) {
27224 value = S[key]
27225 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27226 len += length(value) + length(field[++i])
27227 substed = 1
27228 } else
27229 len += 1 + keylen
27232 print line
27235 _ACAWK
27236 _ACEOF
27237 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27238 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27239 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27240 else
27242 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27243 || as_fn_error "could not setup config files machinery" "$LINENO" 5
27244 _ACEOF
27246 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27247 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27248 # trailing colons and then remove the whole line if VPATH becomes empty
27249 # (actually we leave an empty line to preserve line numbers).
27250 if test "x$srcdir" = x.; then
27251 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27252 s/:*\$(srcdir):*/:/
27253 s/:*\${srcdir}:*/:/
27254 s/:*@srcdir@:*/:/
27255 s/^\([^=]*=[ ]*\):*/\1/
27256 s/:*$//
27257 s/^[^=]*=[ ]*$//
27261 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27262 fi # test -n "$CONFIG_FILES"
27264 # Set up the scripts for CONFIG_HEADERS section.
27265 # No need to generate them if there are no CONFIG_HEADERS.
27266 # This happens for instance with `./config.status Makefile'.
27267 if test -n "$CONFIG_HEADERS"; then
27268 cat >"$tmp/defines.awk" <<\_ACAWK ||
27269 BEGIN {
27270 _ACEOF
27272 # Transform confdefs.h into an awk script `defines.awk', embedded as
27273 # here-document in config.status, that substitutes the proper values into
27274 # config.h.in to produce config.h.
27276 # Create a delimiter string that does not exist in confdefs.h, to ease
27277 # handling of long lines.
27278 ac_delim='%!_!# '
27279 for ac_last_try in false false :; do
27280 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27281 if test -z "$ac_t"; then
27282 break
27283 elif $ac_last_try; then
27284 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
27285 else
27286 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27288 done
27290 # For the awk script, D is an array of macro values keyed by name,
27291 # likewise P contains macro parameters if any. Preserve backslash
27292 # newline sequences.
27294 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27295 sed -n '
27296 s/.\{148\}/&'"$ac_delim"'/g
27297 t rset
27298 :rset
27299 s/^[ ]*#[ ]*define[ ][ ]*/ /
27300 t def
27302 :def
27303 s/\\$//
27304 t bsnl
27305 s/["\\]/\\&/g
27306 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27307 D["\1"]=" \3"/p
27308 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27310 :bsnl
27311 s/["\\]/\\&/g
27312 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27313 D["\1"]=" \3\\\\\\n"\\/p
27314 t cont
27315 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27316 t cont
27318 :cont
27320 s/.\{148\}/&'"$ac_delim"'/g
27321 t clear
27322 :clear
27323 s/\\$//
27324 t bsnlc
27325 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27327 :bsnlc
27328 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27329 b cont
27330 ' <confdefs.h | sed '
27331 s/'"$ac_delim"'/"\\\
27332 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27334 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27335 for (key in D) D_is_set[key] = 1
27336 FS = "\a"
27338 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27339 line = \$ 0
27340 split(line, arg, " ")
27341 if (arg[1] == "#") {
27342 defundef = arg[2]
27343 mac1 = arg[3]
27344 } else {
27345 defundef = substr(arg[1], 2)
27346 mac1 = arg[2]
27348 split(mac1, mac2, "(") #)
27349 macro = mac2[1]
27350 prefix = substr(line, 1, index(line, defundef) - 1)
27351 if (D_is_set[macro]) {
27352 # Preserve the white space surrounding the "#".
27353 print prefix "define", macro P[macro] D[macro]
27354 next
27355 } else {
27356 # Replace #undef with comments. This is necessary, for example,
27357 # in the case of _POSIX_SOURCE, which is predefined and required
27358 # on some systems where configure will not decide to define it.
27359 if (defundef == "undef") {
27360 print "/*", prefix defundef, macro, "*/"
27361 next
27365 { print }
27366 _ACAWK
27367 _ACEOF
27368 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27369 as_fn_error "could not setup config headers machinery" "$LINENO" 5
27370 fi # test -n "$CONFIG_HEADERS"
27373 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
27374 shift
27375 for ac_tag
27377 case $ac_tag in
27378 :[FHLC]) ac_mode=$ac_tag; continue;;
27379 esac
27380 case $ac_mode$ac_tag in
27381 :[FHL]*:*);;
27382 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
27383 :[FH]-) ac_tag=-:-;;
27384 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
27385 esac
27386 ac_save_IFS=$IFS
27387 IFS=:
27388 set x $ac_tag
27389 IFS=$ac_save_IFS
27390 shift
27391 ac_file=$1
27392 shift
27394 case $ac_mode in
27395 :L) ac_source=$1;;
27396 :[FH])
27397 ac_file_inputs=
27398 for ac_f
27400 case $ac_f in
27401 -) ac_f="$tmp/stdin";;
27402 *) # Look for the file first in the build tree, then in the source tree
27403 # (if the path is not absolute). The absolute path cannot be DOS-style,
27404 # because $ac_f cannot contain `:'.
27405 test -f "$ac_f" ||
27406 case $ac_f in
27407 [\\/$]*) false;;
27408 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
27409 esac ||
27410 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
27411 esac
27412 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
27413 as_fn_append ac_file_inputs " '$ac_f'"
27414 done
27416 # Let's still pretend it is `configure' which instantiates (i.e., don't
27417 # use $as_me), people would be surprised to read:
27418 # /* config.h. Generated by config.status. */
27419 configure_input='Generated from '`
27420 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
27421 `' by configure.'
27422 if test x"$ac_file" != x-; then
27423 configure_input="$ac_file. $configure_input"
27424 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
27425 $as_echo "$as_me: creating $ac_file" >&6;}
27427 # Neutralize special characters interpreted by sed in replacement strings.
27428 case $configure_input in #(
27429 *\&* | *\|* | *\\* )
27430 ac_sed_conf_input=`$as_echo "$configure_input" |
27431 sed 's/[\\\\&|]/\\\\&/g'`;; #(
27432 *) ac_sed_conf_input=$configure_input;;
27433 esac
27435 case $ac_tag in
27436 *:-:* | *:-) cat >"$tmp/stdin" \
27437 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
27438 esac
27440 esac
27442 ac_dir=`$as_dirname -- "$ac_file" ||
27443 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27444 X"$ac_file" : 'X\(//\)[^/]' \| \
27445 X"$ac_file" : 'X\(//\)$' \| \
27446 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
27447 $as_echo X"$ac_file" |
27448 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27449 s//\1/
27452 /^X\(\/\/\)[^/].*/{
27453 s//\1/
27456 /^X\(\/\/\)$/{
27457 s//\1/
27460 /^X\(\/\).*/{
27461 s//\1/
27464 s/.*/./; q'`
27465 as_dir="$ac_dir"; as_fn_mkdir_p
27466 ac_builddir=.
27468 case "$ac_dir" in
27469 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
27471 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
27472 # A ".." for each directory in $ac_dir_suffix.
27473 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
27474 case $ac_top_builddir_sub in
27475 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
27476 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
27477 esac ;;
27478 esac
27479 ac_abs_top_builddir=$ac_pwd
27480 ac_abs_builddir=$ac_pwd$ac_dir_suffix
27481 # for backward compatibility:
27482 ac_top_builddir=$ac_top_build_prefix
27484 case $srcdir in
27485 .) # We are building in place.
27486 ac_srcdir=.
27487 ac_top_srcdir=$ac_top_builddir_sub
27488 ac_abs_top_srcdir=$ac_pwd ;;
27489 [\\/]* | ?:[\\/]* ) # Absolute name.
27490 ac_srcdir=$srcdir$ac_dir_suffix;
27491 ac_top_srcdir=$srcdir
27492 ac_abs_top_srcdir=$srcdir ;;
27493 *) # Relative name.
27494 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
27495 ac_top_srcdir=$ac_top_build_prefix$srcdir
27496 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
27497 esac
27498 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
27501 case $ac_mode in
27504 # CONFIG_FILE
27507 case $INSTALL in
27508 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
27509 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
27510 esac
27511 ac_MKDIR_P=$MKDIR_P
27512 case $MKDIR_P in
27513 [\\/$]* | ?:[\\/]* ) ;;
27514 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
27515 esac
27516 _ACEOF
27518 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27519 # If the template does not know about datarootdir, expand it.
27520 # FIXME: This hack should be removed a few years after 2.60.
27521 ac_datarootdir_hack=; ac_datarootdir_seen=
27522 ac_sed_dataroot='
27523 /datarootdir/ {
27527 /@datadir@/p
27528 /@docdir@/p
27529 /@infodir@/p
27530 /@localedir@/p
27531 /@mandir@/p'
27532 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
27533 *datarootdir*) ac_datarootdir_seen=yes;;
27534 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
27535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
27536 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
27537 _ACEOF
27538 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27539 ac_datarootdir_hack='
27540 s&@datadir@&$datadir&g
27541 s&@docdir@&$docdir&g
27542 s&@infodir@&$infodir&g
27543 s&@localedir@&$localedir&g
27544 s&@mandir@&$mandir&g
27545 s&\\\${datarootdir}&$datarootdir&g' ;;
27546 esac
27547 _ACEOF
27549 # Neutralize VPATH when `$srcdir' = `.'.
27550 # Shell code in configure.ac might set extrasub.
27551 # FIXME: do we really want to maintain this feature?
27552 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27553 ac_sed_extra="$ac_vpsub
27554 $extrasub
27555 _ACEOF
27556 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27558 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
27559 s|@configure_input@|$ac_sed_conf_input|;t t
27560 s&@top_builddir@&$ac_top_builddir_sub&;t t
27561 s&@top_build_prefix@&$ac_top_build_prefix&;t t
27562 s&@srcdir@&$ac_srcdir&;t t
27563 s&@abs_srcdir@&$ac_abs_srcdir&;t t
27564 s&@top_srcdir@&$ac_top_srcdir&;t t
27565 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
27566 s&@builddir@&$ac_builddir&;t t
27567 s&@abs_builddir@&$ac_abs_builddir&;t t
27568 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
27569 s&@INSTALL@&$ac_INSTALL&;t t
27570 s&@MKDIR_P@&$ac_MKDIR_P&;t t
27571 $ac_datarootdir_hack
27573 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
27574 || as_fn_error "could not create $ac_file" "$LINENO" 5
27576 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
27577 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27578 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27580 which seems to be undefined. Please make sure it is defined." >&5
27581 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27582 which seems to be undefined. Please make sure it is defined." >&2;}
27584 rm -f "$tmp/stdin"
27585 case $ac_file in
27586 -) cat "$tmp/out" && rm -f "$tmp/out";;
27587 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
27588 esac \
27589 || as_fn_error "could not create $ac_file" "$LINENO" 5
27593 # CONFIG_HEADER
27595 if test x"$ac_file" != x-; then
27597 $as_echo "/* $configure_input */" \
27598 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
27599 } >"$tmp/config.h" \
27600 || as_fn_error "could not create $ac_file" "$LINENO" 5
27601 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
27602 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
27603 $as_echo "$as_me: $ac_file is unchanged" >&6;}
27604 else
27605 rm -f "$ac_file"
27606 mv "$tmp/config.h" "$ac_file" \
27607 || as_fn_error "could not create $ac_file" "$LINENO" 5
27609 else
27610 $as_echo "/* $configure_input */" \
27611 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
27612 || as_fn_error "could not create -" "$LINENO" 5
27614 # Compute "$ac_file"'s index in $config_headers.
27615 _am_arg="$ac_file"
27616 _am_stamp_count=1
27617 for _am_header in $config_headers :; do
27618 case $_am_header in
27619 $_am_arg | $_am_arg:* )
27620 break ;;
27622 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
27623 esac
27624 done
27625 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
27626 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27627 X"$_am_arg" : 'X\(//\)[^/]' \| \
27628 X"$_am_arg" : 'X\(//\)$' \| \
27629 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
27630 $as_echo X"$_am_arg" |
27631 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27632 s//\1/
27635 /^X\(\/\/\)[^/].*/{
27636 s//\1/
27639 /^X\(\/\/\)$/{
27640 s//\1/
27643 /^X\(\/\).*/{
27644 s//\1/
27647 s/.*/./; q'`/stamp-h$_am_stamp_count
27650 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
27651 $as_echo "$as_me: executing $ac_file commands" >&6;}
27653 esac
27656 case $ac_file$ac_mode in
27657 "default-1":C)
27658 # Only add multilib support code if we just rebuilt the top-level
27659 # Makefile.
27660 case " $CONFIG_FILES " in
27661 *" Makefile "*)
27662 ac_file=Makefile . ${multi_basedir}/config-ml.in
27664 esac ;;
27665 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
27666 # Autoconf 2.62 quotes --file arguments for eval, but not when files
27667 # are listed without --file. Let's play safe and only enable the eval
27668 # if we detect the quoting.
27669 case $CONFIG_FILES in
27670 *\'*) eval set x "$CONFIG_FILES" ;;
27671 *) set x $CONFIG_FILES ;;
27672 esac
27673 shift
27674 for mf
27676 # Strip MF so we end up with the name of the file.
27677 mf=`echo "$mf" | sed -e 's/:.*$//'`
27678 # Check whether this is an Automake generated Makefile or not.
27679 # We used to match only the files named `Makefile.in', but
27680 # some people rename them; so instead we look at the file content.
27681 # Grep'ing the first line is not enough: some people post-process
27682 # each Makefile.in and add a new line on top of each file to say so.
27683 # Grep'ing the whole file is not good either: AIX grep has a line
27684 # limit of 2048, but all sed's we know have understand at least 4000.
27685 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
27686 dirpart=`$as_dirname -- "$mf" ||
27687 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27688 X"$mf" : 'X\(//\)[^/]' \| \
27689 X"$mf" : 'X\(//\)$' \| \
27690 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
27691 $as_echo X"$mf" |
27692 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27693 s//\1/
27696 /^X\(\/\/\)[^/].*/{
27697 s//\1/
27700 /^X\(\/\/\)$/{
27701 s//\1/
27704 /^X\(\/\).*/{
27705 s//\1/
27708 s/.*/./; q'`
27709 else
27710 continue
27712 # Extract the definition of DEPDIR, am__include, and am__quote
27713 # from the Makefile without running `make'.
27714 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
27715 test -z "$DEPDIR" && continue
27716 am__include=`sed -n 's/^am__include = //p' < "$mf"`
27717 test -z "am__include" && continue
27718 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
27719 # When using ansi2knr, U may be empty or an underscore; expand it
27720 U=`sed -n 's/^U = //p' < "$mf"`
27721 # Find all dependency output files, they are included files with
27722 # $(DEPDIR) in their names. We invoke sed twice because it is the
27723 # simplest approach to changing $(DEPDIR) to its actual value in the
27724 # expansion.
27725 for file in `sed -n "
27726 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
27727 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
27728 # Make sure the directory exists.
27729 test -f "$dirpart/$file" && continue
27730 fdir=`$as_dirname -- "$file" ||
27731 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27732 X"$file" : 'X\(//\)[^/]' \| \
27733 X"$file" : 'X\(//\)$' \| \
27734 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
27735 $as_echo X"$file" |
27736 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27737 s//\1/
27740 /^X\(\/\/\)[^/].*/{
27741 s//\1/
27744 /^X\(\/\/\)$/{
27745 s//\1/
27748 /^X\(\/\).*/{
27749 s//\1/
27752 s/.*/./; q'`
27753 as_dir=$dirpart/$fdir; as_fn_mkdir_p
27754 # echo "creating $dirpart/$file"
27755 echo '# dummy' > "$dirpart/$file"
27756 done
27757 done
27760 "libtool":C)
27762 # See if we are running on zsh, and set the options which allow our
27763 # commands through without removal of \ escapes.
27764 if test -n "${ZSH_VERSION+set}" ; then
27765 setopt NO_GLOB_SUBST
27768 cfgfile="${ofile}T"
27769 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
27770 $RM "$cfgfile"
27772 cat <<_LT_EOF >> "$cfgfile"
27773 #! $SHELL
27775 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
27776 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
27777 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
27778 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
27780 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
27781 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
27782 # Written by Gordon Matzigkeit, 1996
27784 # This file is part of GNU Libtool.
27786 # GNU Libtool is free software; you can redistribute it and/or
27787 # modify it under the terms of the GNU General Public License as
27788 # published by the Free Software Foundation; either version 2 of
27789 # the License, or (at your option) any later version.
27791 # As a special exception to the GNU General Public License,
27792 # if you distribute this file as part of a program or library that
27793 # is built using GNU Libtool, you may include this file under the
27794 # same distribution terms that you use for the rest of that program.
27796 # GNU Libtool is distributed in the hope that it will be useful,
27797 # but WITHOUT ANY WARRANTY; without even the implied warranty of
27798 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27799 # GNU General Public License for more details.
27801 # You should have received a copy of the GNU General Public License
27802 # along with GNU Libtool; see the file COPYING. If not, a copy
27803 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
27804 # obtained by writing to the Free Software Foundation, Inc.,
27805 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
27808 # The names of the tagged configurations supported by this script.
27809 available_tags="FC "
27811 # ### BEGIN LIBTOOL CONFIG
27813 # Which release of libtool.m4 was used?
27814 macro_version=$macro_version
27815 macro_revision=$macro_revision
27817 # Whether or not to build shared libraries.
27818 build_libtool_libs=$enable_shared
27820 # Whether or not to build static libraries.
27821 build_old_libs=$enable_static
27823 # What type of objects to build.
27824 pic_mode=$pic_mode
27826 # Whether or not to optimize for fast installation.
27827 fast_install=$enable_fast_install
27829 # Shell to use when invoking shell scripts.
27830 SHELL=$lt_SHELL
27832 # An echo program that protects backslashes.
27833 ECHO=$lt_ECHO
27835 # The host system.
27836 host_alias=$host_alias
27837 host=$host
27838 host_os=$host_os
27840 # The build system.
27841 build_alias=$build_alias
27842 build=$build
27843 build_os=$build_os
27845 # A sed program that does not truncate output.
27846 SED=$lt_SED
27848 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
27849 Xsed="\$SED -e 1s/^X//"
27851 # A grep program that handles long lines.
27852 GREP=$lt_GREP
27854 # An ERE matcher.
27855 EGREP=$lt_EGREP
27857 # A literal string matcher.
27858 FGREP=$lt_FGREP
27860 # A BSD- or MS-compatible name lister.
27861 NM=$lt_NM
27863 # Whether we need soft or hard links.
27864 LN_S=$lt_LN_S
27866 # What is the maximum length of a command?
27867 max_cmd_len=$max_cmd_len
27869 # Object file suffix (normally "o").
27870 objext=$ac_objext
27872 # Executable file suffix (normally "").
27873 exeext=$exeext
27875 # whether the shell understands "unset".
27876 lt_unset=$lt_unset
27878 # turn spaces into newlines.
27879 SP2NL=$lt_lt_SP2NL
27881 # turn newlines into spaces.
27882 NL2SP=$lt_lt_NL2SP
27884 # An object symbol dumper.
27885 OBJDUMP=$lt_OBJDUMP
27887 # Method to check whether dependent libraries are shared objects.
27888 deplibs_check_method=$lt_deplibs_check_method
27890 # Command to use when deplibs_check_method == "file_magic".
27891 file_magic_cmd=$lt_file_magic_cmd
27893 # The archiver.
27894 AR=$lt_AR
27895 AR_FLAGS=$lt_AR_FLAGS
27897 # A symbol stripping program.
27898 STRIP=$lt_STRIP
27900 # Commands used to install an old-style archive.
27901 RANLIB=$lt_RANLIB
27902 old_postinstall_cmds=$lt_old_postinstall_cmds
27903 old_postuninstall_cmds=$lt_old_postuninstall_cmds
27905 # Whether to use a lock for old archive extraction.
27906 lock_old_archive_extraction=$lock_old_archive_extraction
27908 # A C compiler.
27909 LTCC=$lt_CC
27911 # LTCC compiler flags.
27912 LTCFLAGS=$lt_CFLAGS
27914 # Take the output of nm and produce a listing of raw symbols and C names.
27915 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
27917 # Transform the output of nm in a proper C declaration.
27918 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
27920 # Transform the output of nm in a C name address pair.
27921 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
27923 # Transform the output of nm in a C name address pair when lib prefix is needed.
27924 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
27926 # The name of the directory that contains temporary libtool files.
27927 objdir=$objdir
27929 # Used to examine libraries when file_magic_cmd begins with "file".
27930 MAGIC_CMD=$MAGIC_CMD
27932 # Must we lock files when doing compilation?
27933 need_locks=$lt_need_locks
27935 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
27936 DSYMUTIL=$lt_DSYMUTIL
27938 # Tool to change global to local symbols on Mac OS X.
27939 NMEDIT=$lt_NMEDIT
27941 # Tool to manipulate fat objects and archives on Mac OS X.
27942 LIPO=$lt_LIPO
27944 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
27945 OTOOL=$lt_OTOOL
27947 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
27948 OTOOL64=$lt_OTOOL64
27950 # Old archive suffix (normally "a").
27951 libext=$libext
27953 # Shared library suffix (normally ".so").
27954 shrext_cmds=$lt_shrext_cmds
27956 # The commands to extract the exported symbol list from a shared archive.
27957 extract_expsyms_cmds=$lt_extract_expsyms_cmds
27959 # Variables whose values should be saved in libtool wrapper scripts and
27960 # restored at link time.
27961 variables_saved_for_relink=$lt_variables_saved_for_relink
27963 # Do we need the "lib" prefix for modules?
27964 need_lib_prefix=$need_lib_prefix
27966 # Do we need a version for libraries?
27967 need_version=$need_version
27969 # Library versioning type.
27970 version_type=$version_type
27972 # Shared library runtime path variable.
27973 runpath_var=$runpath_var
27975 # Shared library path variable.
27976 shlibpath_var=$shlibpath_var
27978 # Is shlibpath searched before the hard-coded library search path?
27979 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
27981 # Format of library name prefix.
27982 libname_spec=$lt_libname_spec
27984 # List of archive names. First name is the real one, the rest are links.
27985 # The last name is the one that the linker finds with -lNAME
27986 library_names_spec=$lt_library_names_spec
27988 # The coded name of the library, if different from the real name.
27989 soname_spec=$lt_soname_spec
27991 # Permission mode override for installation of shared libraries.
27992 install_override_mode=$lt_install_override_mode
27994 # Command to use after installation of a shared archive.
27995 postinstall_cmds=$lt_postinstall_cmds
27997 # Command to use after uninstallation of a shared archive.
27998 postuninstall_cmds=$lt_postuninstall_cmds
28000 # Commands used to finish a libtool library installation in a directory.
28001 finish_cmds=$lt_finish_cmds
28003 # As "finish_cmds", except a single script fragment to be evaled but
28004 # not shown.
28005 finish_eval=$lt_finish_eval
28007 # Whether we should hardcode library paths into libraries.
28008 hardcode_into_libs=$hardcode_into_libs
28010 # Compile-time system search path for libraries.
28011 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28013 # Run-time system search path for libraries.
28014 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
28016 # Whether dlopen is supported.
28017 dlopen_support=$enable_dlopen
28019 # Whether dlopen of programs is supported.
28020 dlopen_self=$enable_dlopen_self
28022 # Whether dlopen of statically linked programs is supported.
28023 dlopen_self_static=$enable_dlopen_self_static
28025 # Commands to strip libraries.
28026 old_striplib=$lt_old_striplib
28027 striplib=$lt_striplib
28030 # The linker used to build libraries.
28031 LD=$lt_LD
28033 # How to create reloadable object files.
28034 reload_flag=$lt_reload_flag
28035 reload_cmds=$lt_reload_cmds
28037 # Commands used to build an old-style archive.
28038 old_archive_cmds=$lt_old_archive_cmds
28040 # A language specific compiler.
28041 CC=$lt_compiler
28043 # Is the compiler the GNU compiler?
28044 with_gcc=$GCC
28046 # Compiler flag to turn off builtin functions.
28047 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
28049 # How to pass a linker flag through the compiler.
28050 wl=$lt_lt_prog_compiler_wl
28052 # Additional compiler flags for building library objects.
28053 pic_flag=$lt_lt_prog_compiler_pic
28055 # Compiler flag to prevent dynamic linking.
28056 link_static_flag=$lt_lt_prog_compiler_static
28058 # Does compiler simultaneously support -c and -o options?
28059 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
28061 # Whether or not to add -lc for building shared libraries.
28062 build_libtool_need_lc=$archive_cmds_need_lc
28064 # Whether or not to disallow shared libs when runtime libs are static.
28065 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
28067 # Compiler flag to allow reflexive dlopens.
28068 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
28070 # Compiler flag to generate shared objects directly from archives.
28071 whole_archive_flag_spec=$lt_whole_archive_flag_spec
28073 # Whether the compiler copes with passing no objects directly.
28074 compiler_needs_object=$lt_compiler_needs_object
28076 # Create an old-style archive from a shared archive.
28077 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
28079 # Create a temporary old-style archive to link instead of a shared archive.
28080 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
28082 # Commands used to build a shared archive.
28083 archive_cmds=$lt_archive_cmds
28084 archive_expsym_cmds=$lt_archive_expsym_cmds
28086 # Commands used to build a loadable module if different from building
28087 # a shared archive.
28088 module_cmds=$lt_module_cmds
28089 module_expsym_cmds=$lt_module_expsym_cmds
28091 # Whether we are building with GNU ld or not.
28092 with_gnu_ld=$lt_with_gnu_ld
28094 # Flag that allows shared libraries with undefined symbols to be built.
28095 allow_undefined_flag=$lt_allow_undefined_flag
28097 # Flag that enforces no undefined symbols.
28098 no_undefined_flag=$lt_no_undefined_flag
28100 # Flag to hardcode \$libdir into a binary during linking.
28101 # This must work even if \$libdir does not exist
28102 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
28104 # If ld is used when linking, flag to hardcode \$libdir into a binary
28105 # during linking. This must work even if \$libdir does not exist.
28106 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
28108 # Whether we need a single "-rpath" flag with a separated argument.
28109 hardcode_libdir_separator=$lt_hardcode_libdir_separator
28111 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28112 # DIR into the resulting binary.
28113 hardcode_direct=$hardcode_direct
28115 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28116 # DIR into the resulting binary and the resulting library dependency is
28117 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28118 # library is relocated.
28119 hardcode_direct_absolute=$hardcode_direct_absolute
28121 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28122 # into the resulting binary.
28123 hardcode_minus_L=$hardcode_minus_L
28125 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28126 # into the resulting binary.
28127 hardcode_shlibpath_var=$hardcode_shlibpath_var
28129 # Set to "yes" if building a shared library automatically hardcodes DIR
28130 # into the library and all subsequent libraries and executables linked
28131 # against it.
28132 hardcode_automatic=$hardcode_automatic
28134 # Set to yes if linker adds runtime paths of dependent libraries
28135 # to runtime path list.
28136 inherit_rpath=$inherit_rpath
28138 # Whether libtool must link a program against all its dependency libraries.
28139 link_all_deplibs=$link_all_deplibs
28141 # Fix the shell variable \$srcfile for the compiler.
28142 fix_srcfile_path=$lt_fix_srcfile_path
28144 # Set to "yes" if exported symbols are required.
28145 always_export_symbols=$always_export_symbols
28147 # The commands to list exported symbols.
28148 export_symbols_cmds=$lt_export_symbols_cmds
28150 # Symbols that should not be listed in the preloaded symbols.
28151 exclude_expsyms=$lt_exclude_expsyms
28153 # Symbols that must always be exported.
28154 include_expsyms=$lt_include_expsyms
28156 # Commands necessary for linking programs (against libraries) with templates.
28157 prelink_cmds=$lt_prelink_cmds
28159 # Specify filename containing input files.
28160 file_list_spec=$lt_file_list_spec
28162 # How to hardcode a shared library path into an executable.
28163 hardcode_action=$hardcode_action
28165 # The directories searched by this compiler when creating a shared library.
28166 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
28168 # Dependencies to place before and after the objects being linked to
28169 # create a shared library.
28170 predep_objects=$lt_predep_objects
28171 postdep_objects=$lt_postdep_objects
28172 predeps=$lt_predeps
28173 postdeps=$lt_postdeps
28175 # The library search path used internally by the compiler when linking
28176 # a shared library.
28177 compiler_lib_search_path=$lt_compiler_lib_search_path
28179 # ### END LIBTOOL CONFIG
28181 _LT_EOF
28183 case $host_os in
28184 aix3*)
28185 cat <<\_LT_EOF >> "$cfgfile"
28186 # AIX sometimes has problems with the GCC collect2 program. For some
28187 # reason, if we set the COLLECT_NAMES environment variable, the problems
28188 # vanish in a puff of smoke.
28189 if test "X${COLLECT_NAMES+set}" != Xset; then
28190 COLLECT_NAMES=
28191 export COLLECT_NAMES
28193 _LT_EOF
28195 esac
28198 ltmain="$ac_aux_dir/ltmain.sh"
28201 # We use sed instead of cat because bash on DJGPP gets confused if
28202 # if finds mixed CR/LF and LF-only lines. Since sed operates in
28203 # text mode, it properly converts lines to CR/LF. This bash problem
28204 # is reportedly fixed, but why not run on old versions too?
28205 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
28206 || (rm -f "$cfgfile"; exit 1)
28208 case $xsi_shell in
28209 yes)
28210 cat << \_LT_EOF >> "$cfgfile"
28212 # func_dirname file append nondir_replacement
28213 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
28214 # otherwise set result to NONDIR_REPLACEMENT.
28215 func_dirname ()
28217 case ${1} in
28218 */*) func_dirname_result="${1%/*}${2}" ;;
28219 * ) func_dirname_result="${3}" ;;
28220 esac
28223 # func_basename file
28224 func_basename ()
28226 func_basename_result="${1##*/}"
28229 # func_dirname_and_basename file append nondir_replacement
28230 # perform func_basename and func_dirname in a single function
28231 # call:
28232 # dirname: Compute the dirname of FILE. If nonempty,
28233 # add APPEND to the result, otherwise set result
28234 # to NONDIR_REPLACEMENT.
28235 # value returned in "$func_dirname_result"
28236 # basename: Compute filename of FILE.
28237 # value retuned in "$func_basename_result"
28238 # Implementation must be kept synchronized with func_dirname
28239 # and func_basename. For efficiency, we do not delegate to
28240 # those functions but instead duplicate the functionality here.
28241 func_dirname_and_basename ()
28243 case ${1} in
28244 */*) func_dirname_result="${1%/*}${2}" ;;
28245 * ) func_dirname_result="${3}" ;;
28246 esac
28247 func_basename_result="${1##*/}"
28250 # func_stripname prefix suffix name
28251 # strip PREFIX and SUFFIX off of NAME.
28252 # PREFIX and SUFFIX must not contain globbing or regex special
28253 # characters, hashes, percent signs, but SUFFIX may contain a leading
28254 # dot (in which case that matches only a dot).
28255 func_stripname ()
28257 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
28258 # positional parameters, so assign one to ordinary parameter first.
28259 func_stripname_result=${3}
28260 func_stripname_result=${func_stripname_result#"${1}"}
28261 func_stripname_result=${func_stripname_result%"${2}"}
28264 # func_opt_split
28265 func_opt_split ()
28267 func_opt_split_opt=${1%%=*}
28268 func_opt_split_arg=${1#*=}
28271 # func_lo2o object
28272 func_lo2o ()
28274 case ${1} in
28275 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
28276 *) func_lo2o_result=${1} ;;
28277 esac
28280 # func_xform libobj-or-source
28281 func_xform ()
28283 func_xform_result=${1%.*}.lo
28286 # func_arith arithmetic-term...
28287 func_arith ()
28289 func_arith_result=$(( $* ))
28292 # func_len string
28293 # STRING may not start with a hyphen.
28294 func_len ()
28296 func_len_result=${#1}
28299 _LT_EOF
28301 *) # Bourne compatible functions.
28302 cat << \_LT_EOF >> "$cfgfile"
28304 # func_dirname file append nondir_replacement
28305 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
28306 # otherwise set result to NONDIR_REPLACEMENT.
28307 func_dirname ()
28309 # Extract subdirectory from the argument.
28310 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
28311 if test "X$func_dirname_result" = "X${1}"; then
28312 func_dirname_result="${3}"
28313 else
28314 func_dirname_result="$func_dirname_result${2}"
28318 # func_basename file
28319 func_basename ()
28321 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
28325 # func_stripname prefix suffix name
28326 # strip PREFIX and SUFFIX off of NAME.
28327 # PREFIX and SUFFIX must not contain globbing or regex special
28328 # characters, hashes, percent signs, but SUFFIX may contain a leading
28329 # dot (in which case that matches only a dot).
28330 # func_strip_suffix prefix name
28331 func_stripname ()
28333 case ${2} in
28334 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
28335 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
28336 esac
28339 # sed scripts:
28340 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
28341 my_sed_long_arg='1s/^-[^=]*=//'
28343 # func_opt_split
28344 func_opt_split ()
28346 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
28347 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
28350 # func_lo2o object
28351 func_lo2o ()
28353 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
28356 # func_xform libobj-or-source
28357 func_xform ()
28359 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
28362 # func_arith arithmetic-term...
28363 func_arith ()
28365 func_arith_result=`expr "$@"`
28368 # func_len string
28369 # STRING may not start with a hyphen.
28370 func_len ()
28372 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
28375 _LT_EOF
28376 esac
28378 case $lt_shell_append in
28379 yes)
28380 cat << \_LT_EOF >> "$cfgfile"
28382 # func_append var value
28383 # Append VALUE to the end of shell variable VAR.
28384 func_append ()
28386 eval "$1+=\$2"
28388 _LT_EOF
28391 cat << \_LT_EOF >> "$cfgfile"
28393 # func_append var value
28394 # Append VALUE to the end of shell variable VAR.
28395 func_append ()
28397 eval "$1=\$$1\$2"
28400 _LT_EOF
28402 esac
28405 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
28406 || (rm -f "$cfgfile"; exit 1)
28408 mv -f "$cfgfile" "$ofile" ||
28409 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
28410 chmod +x "$ofile"
28413 cat <<_LT_EOF >> "$ofile"
28415 # ### BEGIN LIBTOOL TAG CONFIG: FC
28417 # The linker used to build libraries.
28418 LD=$lt_LD_FC
28420 # How to create reloadable object files.
28421 reload_flag=$lt_reload_flag_FC
28422 reload_cmds=$lt_reload_cmds_FC
28424 # Commands used to build an old-style archive.
28425 old_archive_cmds=$lt_old_archive_cmds_FC
28427 # A language specific compiler.
28428 CC=$lt_compiler_FC
28430 # Is the compiler the GNU compiler?
28431 with_gcc=$GCC_FC
28433 # Compiler flag to turn off builtin functions.
28434 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
28436 # How to pass a linker flag through the compiler.
28437 wl=$lt_lt_prog_compiler_wl_FC
28439 # Additional compiler flags for building library objects.
28440 pic_flag=$lt_lt_prog_compiler_pic_FC
28442 # Compiler flag to prevent dynamic linking.
28443 link_static_flag=$lt_lt_prog_compiler_static_FC
28445 # Does compiler simultaneously support -c and -o options?
28446 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
28448 # Whether or not to add -lc for building shared libraries.
28449 build_libtool_need_lc=$archive_cmds_need_lc_FC
28451 # Whether or not to disallow shared libs when runtime libs are static.
28452 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
28454 # Compiler flag to allow reflexive dlopens.
28455 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
28457 # Compiler flag to generate shared objects directly from archives.
28458 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
28460 # Whether the compiler copes with passing no objects directly.
28461 compiler_needs_object=$lt_compiler_needs_object_FC
28463 # Create an old-style archive from a shared archive.
28464 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
28466 # Create a temporary old-style archive to link instead of a shared archive.
28467 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
28469 # Commands used to build a shared archive.
28470 archive_cmds=$lt_archive_cmds_FC
28471 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
28473 # Commands used to build a loadable module if different from building
28474 # a shared archive.
28475 module_cmds=$lt_module_cmds_FC
28476 module_expsym_cmds=$lt_module_expsym_cmds_FC
28478 # Whether we are building with GNU ld or not.
28479 with_gnu_ld=$lt_with_gnu_ld_FC
28481 # Flag that allows shared libraries with undefined symbols to be built.
28482 allow_undefined_flag=$lt_allow_undefined_flag_FC
28484 # Flag that enforces no undefined symbols.
28485 no_undefined_flag=$lt_no_undefined_flag_FC
28487 # Flag to hardcode \$libdir into a binary during linking.
28488 # This must work even if \$libdir does not exist
28489 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
28491 # If ld is used when linking, flag to hardcode \$libdir into a binary
28492 # during linking. This must work even if \$libdir does not exist.
28493 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
28495 # Whether we need a single "-rpath" flag with a separated argument.
28496 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
28498 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28499 # DIR into the resulting binary.
28500 hardcode_direct=$hardcode_direct_FC
28502 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28503 # DIR into the resulting binary and the resulting library dependency is
28504 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28505 # library is relocated.
28506 hardcode_direct_absolute=$hardcode_direct_absolute_FC
28508 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28509 # into the resulting binary.
28510 hardcode_minus_L=$hardcode_minus_L_FC
28512 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28513 # into the resulting binary.
28514 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
28516 # Set to "yes" if building a shared library automatically hardcodes DIR
28517 # into the library and all subsequent libraries and executables linked
28518 # against it.
28519 hardcode_automatic=$hardcode_automatic_FC
28521 # Set to yes if linker adds runtime paths of dependent libraries
28522 # to runtime path list.
28523 inherit_rpath=$inherit_rpath_FC
28525 # Whether libtool must link a program against all its dependency libraries.
28526 link_all_deplibs=$link_all_deplibs_FC
28528 # Fix the shell variable \$srcfile for the compiler.
28529 fix_srcfile_path=$lt_fix_srcfile_path_FC
28531 # Set to "yes" if exported symbols are required.
28532 always_export_symbols=$always_export_symbols_FC
28534 # The commands to list exported symbols.
28535 export_symbols_cmds=$lt_export_symbols_cmds_FC
28537 # Symbols that should not be listed in the preloaded symbols.
28538 exclude_expsyms=$lt_exclude_expsyms_FC
28540 # Symbols that must always be exported.
28541 include_expsyms=$lt_include_expsyms_FC
28543 # Commands necessary for linking programs (against libraries) with templates.
28544 prelink_cmds=$lt_prelink_cmds_FC
28546 # Specify filename containing input files.
28547 file_list_spec=$lt_file_list_spec_FC
28549 # How to hardcode a shared library path into an executable.
28550 hardcode_action=$hardcode_action_FC
28552 # The directories searched by this compiler when creating a shared library.
28553 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
28555 # Dependencies to place before and after the objects being linked to
28556 # create a shared library.
28557 predep_objects=$lt_predep_objects_FC
28558 postdep_objects=$lt_postdep_objects_FC
28559 predeps=$lt_predeps_FC
28560 postdeps=$lt_postdeps_FC
28562 # The library search path used internally by the compiler when linking
28563 # a shared library.
28564 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
28566 # ### END LIBTOOL TAG CONFIG: FC
28567 _LT_EOF
28570 "gstdint.h":C)
28571 if test "$GCC" = yes; then
28572 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
28573 else
28574 echo "/* generated for $CC */" > tmp-stdint.h
28577 sed 's/^ *//' >> tmp-stdint.h <<EOF
28579 #ifndef GCC_GENERATED_STDINT_H
28580 #define GCC_GENERATED_STDINT_H 1
28582 #include <sys/types.h>
28585 if test "$acx_cv_header_stdint" != stdint.h; then
28586 echo "#include <stddef.h>" >> tmp-stdint.h
28588 if test "$acx_cv_header_stdint" != stddef.h; then
28589 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
28592 sed 's/^ *//' >> tmp-stdint.h <<EOF
28593 /* glibc uses these symbols as guards to prevent redefinitions. */
28594 #ifdef __int8_t_defined
28595 #define _INT8_T
28596 #define _INT16_T
28597 #define _INT32_T
28598 #endif
28599 #ifdef __uint32_t_defined
28600 #define _UINT32_T
28601 #endif
28605 # ----------------- done header, emit basic int types -------------
28606 if test "$acx_cv_header_stdint" = stddef.h; then
28607 sed 's/^ *//' >> tmp-stdint.h <<EOF
28609 #ifndef _UINT8_T
28610 #define _UINT8_T
28611 #ifndef __uint8_t_defined
28612 #define __uint8_t_defined
28613 #ifndef uint8_t
28614 typedef unsigned $acx_cv_type_int8_t uint8_t;
28615 #endif
28616 #endif
28617 #endif
28619 #ifndef _UINT16_T
28620 #define _UINT16_T
28621 #ifndef __uint16_t_defined
28622 #define __uint16_t_defined
28623 #ifndef uint16_t
28624 typedef unsigned $acx_cv_type_int16_t uint16_t;
28625 #endif
28626 #endif
28627 #endif
28629 #ifndef _UINT32_T
28630 #define _UINT32_T
28631 #ifndef __uint32_t_defined
28632 #define __uint32_t_defined
28633 #ifndef uint32_t
28634 typedef unsigned $acx_cv_type_int32_t uint32_t;
28635 #endif
28636 #endif
28637 #endif
28639 #ifndef _INT8_T
28640 #define _INT8_T
28641 #ifndef __int8_t_defined
28642 #define __int8_t_defined
28643 #ifndef int8_t
28644 typedef $acx_cv_type_int8_t int8_t;
28645 #endif
28646 #endif
28647 #endif
28649 #ifndef _INT16_T
28650 #define _INT16_T
28651 #ifndef __int16_t_defined
28652 #define __int16_t_defined
28653 #ifndef int16_t
28654 typedef $acx_cv_type_int16_t int16_t;
28655 #endif
28656 #endif
28657 #endif
28659 #ifndef _INT32_T
28660 #define _INT32_T
28661 #ifndef __int32_t_defined
28662 #define __int32_t_defined
28663 #ifndef int32_t
28664 typedef $acx_cv_type_int32_t int32_t;
28665 #endif
28666 #endif
28667 #endif
28669 elif test "$ac_cv_type_u_int32_t" = yes; then
28670 sed 's/^ *//' >> tmp-stdint.h <<EOF
28672 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
28673 #ifndef _INT8_T
28674 #define _INT8_T
28675 #endif
28676 #ifndef _INT16_T
28677 #define _INT16_T
28678 #endif
28679 #ifndef _INT32_T
28680 #define _INT32_T
28681 #endif
28683 #ifndef _UINT8_T
28684 #define _UINT8_T
28685 #ifndef __uint8_t_defined
28686 #define __uint8_t_defined
28687 #ifndef uint8_t
28688 typedef u_int8_t uint8_t;
28689 #endif
28690 #endif
28691 #endif
28693 #ifndef _UINT16_T
28694 #define _UINT16_T
28695 #ifndef __uint16_t_defined
28696 #define __uint16_t_defined
28697 #ifndef uint16_t
28698 typedef u_int16_t uint16_t;
28699 #endif
28700 #endif
28701 #endif
28703 #ifndef _UINT32_T
28704 #define _UINT32_T
28705 #ifndef __uint32_t_defined
28706 #define __uint32_t_defined
28707 #ifndef uint32_t
28708 typedef u_int32_t uint32_t;
28709 #endif
28710 #endif
28711 #endif
28713 else
28714 sed 's/^ *//' >> tmp-stdint.h <<EOF
28716 /* Some systems have guard macros to prevent redefinitions, define them. */
28717 #ifndef _INT8_T
28718 #define _INT8_T
28719 #endif
28720 #ifndef _INT16_T
28721 #define _INT16_T
28722 #endif
28723 #ifndef _INT32_T
28724 #define _INT32_T
28725 #endif
28726 #ifndef _UINT8_T
28727 #define _UINT8_T
28728 #endif
28729 #ifndef _UINT16_T
28730 #define _UINT16_T
28731 #endif
28732 #ifndef _UINT32_T
28733 #define _UINT32_T
28734 #endif
28738 # ------------- done basic int types, emit int64_t types ------------
28739 if test "$ac_cv_type_uint64_t" = yes; then
28740 sed 's/^ *//' >> tmp-stdint.h <<EOF
28742 /* system headers have good uint64_t and int64_t */
28743 #ifndef _INT64_T
28744 #define _INT64_T
28745 #endif
28746 #ifndef _UINT64_T
28747 #define _UINT64_T
28748 #endif
28750 elif test "$ac_cv_type_u_int64_t" = yes; then
28751 sed 's/^ *//' >> tmp-stdint.h <<EOF
28753 /* system headers have an u_int64_t (and int64_t) */
28754 #ifndef _INT64_T
28755 #define _INT64_T
28756 #endif
28757 #ifndef _UINT64_T
28758 #define _UINT64_T
28759 #ifndef __uint64_t_defined
28760 #define __uint64_t_defined
28761 #ifndef uint64_t
28762 typedef u_int64_t uint64_t;
28763 #endif
28764 #endif
28765 #endif
28767 elif test -n "$acx_cv_type_int64_t"; then
28768 sed 's/^ *//' >> tmp-stdint.h <<EOF
28770 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
28771 #ifndef _INT64_T
28772 #define _INT64_T
28773 #ifndef int64_t
28774 typedef $acx_cv_type_int64_t int64_t;
28775 #endif
28776 #endif
28777 #ifndef _UINT64_T
28778 #define _UINT64_T
28779 #ifndef __uint64_t_defined
28780 #define __uint64_t_defined
28781 #ifndef uint64_t
28782 typedef unsigned $acx_cv_type_int64_t uint64_t;
28783 #endif
28784 #endif
28785 #endif
28787 else
28788 sed 's/^ *//' >> tmp-stdint.h <<EOF
28790 /* some common heuristics for int64_t, using compiler-specific tests */
28791 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
28792 #ifndef _INT64_T
28793 #define _INT64_T
28794 #ifndef __int64_t_defined
28795 #ifndef int64_t
28796 typedef long long int64_t;
28797 #endif
28798 #endif
28799 #endif
28800 #ifndef _UINT64_T
28801 #define _UINT64_T
28802 #ifndef uint64_t
28803 typedef unsigned long long uint64_t;
28804 #endif
28805 #endif
28807 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
28808 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
28809 does not implement __extension__. But that compiler doesn't define
28810 __GNUC_MINOR__. */
28811 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
28812 # define __extension__
28813 # endif
28815 # ifndef _INT64_T
28816 # define _INT64_T
28817 # ifndef int64_t
28818 __extension__ typedef long long int64_t;
28819 # endif
28820 # endif
28821 # ifndef _UINT64_T
28822 # define _UINT64_T
28823 # ifndef uint64_t
28824 __extension__ typedef unsigned long long uint64_t;
28825 # endif
28826 # endif
28828 #elif !defined __STRICT_ANSI__
28829 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
28831 # ifndef _INT64_T
28832 # define _INT64_T
28833 # ifndef int64_t
28834 typedef __int64 int64_t;
28835 # endif
28836 # endif
28837 # ifndef _UINT64_T
28838 # define _UINT64_T
28839 # ifndef uint64_t
28840 typedef unsigned __int64 uint64_t;
28841 # endif
28842 # endif
28843 # endif /* compiler */
28845 #endif /* ANSI version */
28849 # ------------- done int64_t types, emit intptr types ------------
28850 if test "$ac_cv_type_uintptr_t" != yes; then
28851 sed 's/^ *//' >> tmp-stdint.h <<EOF
28853 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
28854 #ifndef __uintptr_t_defined
28855 #ifndef uintptr_t
28856 typedef u$acx_cv_type_intptr_t uintptr_t;
28857 #endif
28858 #endif
28859 #ifndef __intptr_t_defined
28860 #ifndef intptr_t
28861 typedef $acx_cv_type_intptr_t intptr_t;
28862 #endif
28863 #endif
28867 # ------------- done intptr types, emit int_least types ------------
28868 if test "$ac_cv_type_int_least32_t" != yes; then
28869 sed 's/^ *//' >> tmp-stdint.h <<EOF
28871 /* Define int_least types */
28872 typedef int8_t int_least8_t;
28873 typedef int16_t int_least16_t;
28874 typedef int32_t int_least32_t;
28875 #ifdef _INT64_T
28876 typedef int64_t int_least64_t;
28877 #endif
28879 typedef uint8_t uint_least8_t;
28880 typedef uint16_t uint_least16_t;
28881 typedef uint32_t uint_least32_t;
28882 #ifdef _UINT64_T
28883 typedef uint64_t uint_least64_t;
28884 #endif
28888 # ------------- done intptr types, emit int_fast types ------------
28889 if test "$ac_cv_type_int_fast32_t" != yes; then
28890 sed 's/^ *//' >> tmp-stdint.h <<EOF
28892 /* Define int_fast types. short is often slow */
28893 typedef int8_t int_fast8_t;
28894 typedef int int_fast16_t;
28895 typedef int32_t int_fast32_t;
28896 #ifdef _INT64_T
28897 typedef int64_t int_fast64_t;
28898 #endif
28900 typedef uint8_t uint_fast8_t;
28901 typedef unsigned int uint_fast16_t;
28902 typedef uint32_t uint_fast32_t;
28903 #ifdef _UINT64_T
28904 typedef uint64_t uint_fast64_t;
28905 #endif
28909 if test "$ac_cv_type_uintmax_t" != yes; then
28910 sed 's/^ *//' >> tmp-stdint.h <<EOF
28912 /* Define intmax based on what we found */
28913 #ifndef intmax_t
28914 #ifdef _INT64_T
28915 typedef int64_t intmax_t;
28916 #else
28917 typedef long intmax_t;
28918 #endif
28919 #endif
28920 #ifndef uintmax_t
28921 #ifdef _UINT64_T
28922 typedef uint64_t uintmax_t;
28923 #else
28924 typedef unsigned long uintmax_t;
28925 #endif
28926 #endif
28930 sed 's/^ *//' >> tmp-stdint.h <<EOF
28932 #endif /* GCC_GENERATED_STDINT_H */
28935 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
28936 rm -f tmp-stdint.h
28937 else
28938 mv -f tmp-stdint.h gstdint.h
28943 esac
28944 done # for ac_tag
28947 as_fn_exit 0
28948 _ACEOF
28949 ac_clean_files=$ac_clean_files_save
28951 test $ac_write_fail = 0 ||
28952 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
28955 # configure is writing to config.log, and then calls config.status.
28956 # config.status does its own redirection, appending to config.log.
28957 # Unfortunately, on DOS this fails, as config.log is still kept open
28958 # by configure, so config.status won't be able to write to it; its
28959 # output is simply discarded. So we exec the FD to /dev/null,
28960 # effectively closing config.log, so it can be properly (re)opened and
28961 # appended to by config.status. When coming back to configure, we
28962 # need to make the FD available again.
28963 if test "$no_create" != yes; then
28964 ac_cs_success=:
28965 ac_config_status_args=
28966 test "$silent" = yes &&
28967 ac_config_status_args="$ac_config_status_args --quiet"
28968 exec 5>/dev/null
28969 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
28970 exec 5>>config.log
28971 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
28972 # would make configure fail if this is the last instruction.
28973 $ac_cs_success || as_fn_exit $?
28975 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
28976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
28977 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}