PR target/47230
[official-gcc.git] / libgfortran / configure
blobd6d26db8c3f215c6048ad767d0a2dce0a61c7c38
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for GNU Fortran Runtime Library 0.3.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME='GNU Fortran Runtime Library'
558 PACKAGE_TARNAME='libgfortran'
559 PACKAGE_VERSION='0.3'
560 PACKAGE_STRING='GNU Fortran Runtime Library 0.3'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL='http://www.gnu.org/software/libgfortran/'
564 # Factoring default headers for most tests.
565 ac_includes_default="\
566 #include <stdio.h>
567 #ifdef HAVE_SYS_TYPES_H
568 # include <sys/types.h>
569 #endif
570 #ifdef HAVE_SYS_STAT_H
571 # include <sys/stat.h>
572 #endif
573 #ifdef STDC_HEADERS
574 # include <stdlib.h>
575 # include <stddef.h>
576 #else
577 # ifdef HAVE_STDLIB_H
578 # include <stdlib.h>
579 # endif
580 #endif
581 #ifdef HAVE_STRING_H
582 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
583 # include <memory.h>
584 # endif
585 # include <string.h>
586 #endif
587 #ifdef HAVE_STRINGS_H
588 # include <strings.h>
589 #endif
590 #ifdef HAVE_INTTYPES_H
591 # include <inttypes.h>
592 #endif
593 #ifdef HAVE_STDINT_H
594 # include <stdint.h>
595 #endif
596 #ifdef HAVE_UNISTD_H
597 # include <unistd.h>
598 #endif"
600 ac_header_list=
601 ac_func_list=
602 ac_c_werror_flag=
603 ac_c_werror_flag=
604 ac_subst_vars='am__EXEEXT_FALSE
605 am__EXEEXT_TRUE
606 LTLIBOBJS
607 LIBOBJS
608 IEEE_FLAGS
609 IEEE_SUPPORT
610 IEEE_SUPPORT_FALSE
611 IEEE_SUPPORT_TRUE
612 FPU_HOST_HEADER
613 LIBGFOR_BUILD_QUAD_FALSE
614 LIBGFOR_BUILD_QUAD_TRUE
615 LIBQUADINCLUDE
616 LIBQUADLIB_DEP
617 LIBQUADLIB
618 LIBQUADSPEC
619 extra_ldflags_libgfortran
620 ac_ct_FC
621 FCFLAGS
623 enable_static
624 enable_shared
625 lt_host_flags
626 OTOOL64
627 OTOOL
628 LIPO
629 NMEDIT
630 DSYMUTIL
631 OBJDUMP
632 LN_S
634 ac_ct_DUMPBIN
635 DUMPBIN
637 FGREP
639 LIBTOOL
640 RANLIB
643 SECTION_FLAGS
644 LIBGFOR_USE_SYMVER_SUN_FALSE
645 LIBGFOR_USE_SYMVER_SUN_TRUE
646 LIBGFOR_USE_SYMVER_GNU_FALSE
647 LIBGFOR_USE_SYMVER_GNU_TRUE
648 LIBGFOR_USE_SYMVER_FALSE
649 LIBGFOR_USE_SYMVER_TRUE
650 AM_CFLAGS
651 AM_FCFLAGS
652 toolexeclibdir
653 toolexecdir
654 EGREP
655 GREP
657 am__fastdepCC_FALSE
658 am__fastdepCC_TRUE
659 CCDEPMODE
660 am__nodep
661 AMDEPBACKSLASH
662 AMDEP_FALSE
663 AMDEP_TRUE
664 am__quote
665 am__include
666 DEPDIR
667 OBJEXT
668 EXEEXT
669 ac_ct_CC
670 CPPFLAGS
671 LDFLAGS
672 CFLAGS
674 multi_basedir
675 MAINT
676 MAINTAINER_MODE_FALSE
677 MAINTAINER_MODE_TRUE
678 am__untar
679 am__tar
680 AMTAR
681 am__leading_dot
682 SET_MAKE
684 mkdir_p
685 MKDIR_P
686 INSTALL_STRIP_PROGRAM
687 STRIP
688 install_sh
689 MAKEINFO
690 AUTOHEADER
691 AUTOMAKE
692 AUTOCONF
693 ACLOCAL
694 VERSION
695 PACKAGE
696 CYGPATH_W
697 am__isrc
698 INSTALL_DATA
699 INSTALL_SCRIPT
700 INSTALL_PROGRAM
701 target_noncanonical
702 target_os
703 target_vendor
704 target_cpu
705 target
706 host_os
707 host_vendor
708 host_cpu
709 host
710 onestep
711 onestep_FALSE
712 onestep_TRUE
713 target_subdir
714 host_subdir
715 build_subdir
716 build_libsubdir
717 build_os
718 build_vendor
719 build_cpu
720 build
721 target_alias
722 host_alias
723 build_alias
724 LIBS
725 ECHO_T
726 ECHO_N
727 ECHO_C
728 DEFS
729 mandir
730 localedir
731 libdir
732 psdir
733 pdfdir
734 dvidir
735 htmldir
736 infodir
737 docdir
738 oldincludedir
739 includedir
740 localstatedir
741 sharedstatedir
742 sysconfdir
743 datadir
744 datarootdir
745 libexecdir
746 sbindir
747 bindir
748 program_transform_name
749 prefix
750 exec_prefix
751 PACKAGE_URL
752 PACKAGE_BUGREPORT
753 PACKAGE_STRING
754 PACKAGE_VERSION
755 PACKAGE_TARNAME
756 PACKAGE_NAME
757 PATH_SEPARATOR
758 SHELL'
759 ac_subst_files=''
760 ac_user_opts='
761 enable_option_checking
762 with_build_libsubdir
763 enable_version_specific_runtime_libs
764 enable_intermodule
765 enable_maintainer_mode
766 enable_multilib
767 enable_dependency_tracking
768 enable_symvers
769 enable_shared
770 enable_static
771 with_pic
772 enable_fast_install
773 with_gnu_ld
774 enable_libtool_lock
775 enable_largefile
776 enable_libquadmath_support
777 with_system_libunwind
779 ac_precious_vars='build_alias
780 host_alias
781 target_alias
783 CFLAGS
784 LDFLAGS
785 LIBS
786 CPPFLAGS
789 FCFLAGS'
792 # Initialize some variables set by options.
793 ac_init_help=
794 ac_init_version=false
795 ac_unrecognized_opts=
796 ac_unrecognized_sep=
797 # The variables have the same names as the options, with
798 # dashes changed to underlines.
799 cache_file=/dev/null
800 exec_prefix=NONE
801 no_create=
802 no_recursion=
803 prefix=NONE
804 program_prefix=NONE
805 program_suffix=NONE
806 program_transform_name=s,x,x,
807 silent=
808 site=
809 srcdir=
810 verbose=
811 x_includes=NONE
812 x_libraries=NONE
814 # Installation directory options.
815 # These are left unexpanded so users can "make install exec_prefix=/foo"
816 # and all the variables that are supposed to be based on exec_prefix
817 # by default will actually change.
818 # Use braces instead of parens because sh, perl, etc. also accept them.
819 # (The list follows the same order as the GNU Coding Standards.)
820 bindir='${exec_prefix}/bin'
821 sbindir='${exec_prefix}/sbin'
822 libexecdir='${exec_prefix}/libexec'
823 datarootdir='${prefix}/share'
824 datadir='${datarootdir}'
825 sysconfdir='${prefix}/etc'
826 sharedstatedir='${prefix}/com'
827 localstatedir='${prefix}/var'
828 includedir='${prefix}/include'
829 oldincludedir='/usr/include'
830 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
831 infodir='${datarootdir}/info'
832 htmldir='${docdir}'
833 dvidir='${docdir}'
834 pdfdir='${docdir}'
835 psdir='${docdir}'
836 libdir='${exec_prefix}/lib'
837 localedir='${datarootdir}/locale'
838 mandir='${datarootdir}/man'
840 ac_prev=
841 ac_dashdash=
842 for ac_option
844 # If the previous option needs an argument, assign it.
845 if test -n "$ac_prev"; then
846 eval $ac_prev=\$ac_option
847 ac_prev=
848 continue
851 case $ac_option in
852 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
853 *) ac_optarg=yes ;;
854 esac
856 # Accept the important Cygnus configure options, so we can diagnose typos.
858 case $ac_dashdash$ac_option in
860 ac_dashdash=yes ;;
862 -bindir | --bindir | --bindi | --bind | --bin | --bi)
863 ac_prev=bindir ;;
864 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
865 bindir=$ac_optarg ;;
867 -build | --build | --buil | --bui | --bu)
868 ac_prev=build_alias ;;
869 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
870 build_alias=$ac_optarg ;;
872 -cache-file | --cache-file | --cache-fil | --cache-fi \
873 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
874 ac_prev=cache_file ;;
875 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
876 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
877 cache_file=$ac_optarg ;;
879 --config-cache | -C)
880 cache_file=config.cache ;;
882 -datadir | --datadir | --datadi | --datad)
883 ac_prev=datadir ;;
884 -datadir=* | --datadir=* | --datadi=* | --datad=*)
885 datadir=$ac_optarg ;;
887 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
888 | --dataroo | --dataro | --datar)
889 ac_prev=datarootdir ;;
890 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
891 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
892 datarootdir=$ac_optarg ;;
894 -disable-* | --disable-*)
895 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
896 # Reject names that are not valid shell variable names.
897 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
898 as_fn_error "invalid feature name: $ac_useropt"
899 ac_useropt_orig=$ac_useropt
900 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
901 case $ac_user_opts in
903 "enable_$ac_useropt"
904 "*) ;;
905 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
906 ac_unrecognized_sep=', ';;
907 esac
908 eval enable_$ac_useropt=no ;;
910 -docdir | --docdir | --docdi | --doc | --do)
911 ac_prev=docdir ;;
912 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
913 docdir=$ac_optarg ;;
915 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
916 ac_prev=dvidir ;;
917 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
918 dvidir=$ac_optarg ;;
920 -enable-* | --enable-*)
921 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
922 # Reject names that are not valid shell variable names.
923 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
924 as_fn_error "invalid feature name: $ac_useropt"
925 ac_useropt_orig=$ac_useropt
926 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
927 case $ac_user_opts in
929 "enable_$ac_useropt"
930 "*) ;;
931 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
932 ac_unrecognized_sep=', ';;
933 esac
934 eval enable_$ac_useropt=\$ac_optarg ;;
936 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
937 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
938 | --exec | --exe | --ex)
939 ac_prev=exec_prefix ;;
940 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
941 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
942 | --exec=* | --exe=* | --ex=*)
943 exec_prefix=$ac_optarg ;;
945 -gas | --gas | --ga | --g)
946 # Obsolete; use --with-gas.
947 with_gas=yes ;;
949 -help | --help | --hel | --he | -h)
950 ac_init_help=long ;;
951 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
952 ac_init_help=recursive ;;
953 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
954 ac_init_help=short ;;
956 -host | --host | --hos | --ho)
957 ac_prev=host_alias ;;
958 -host=* | --host=* | --hos=* | --ho=*)
959 host_alias=$ac_optarg ;;
961 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
962 ac_prev=htmldir ;;
963 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
964 | --ht=*)
965 htmldir=$ac_optarg ;;
967 -includedir | --includedir | --includedi | --included | --include \
968 | --includ | --inclu | --incl | --inc)
969 ac_prev=includedir ;;
970 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
971 | --includ=* | --inclu=* | --incl=* | --inc=*)
972 includedir=$ac_optarg ;;
974 -infodir | --infodir | --infodi | --infod | --info | --inf)
975 ac_prev=infodir ;;
976 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
977 infodir=$ac_optarg ;;
979 -libdir | --libdir | --libdi | --libd)
980 ac_prev=libdir ;;
981 -libdir=* | --libdir=* | --libdi=* | --libd=*)
982 libdir=$ac_optarg ;;
984 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
985 | --libexe | --libex | --libe)
986 ac_prev=libexecdir ;;
987 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
988 | --libexe=* | --libex=* | --libe=*)
989 libexecdir=$ac_optarg ;;
991 -localedir | --localedir | --localedi | --localed | --locale)
992 ac_prev=localedir ;;
993 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
994 localedir=$ac_optarg ;;
996 -localstatedir | --localstatedir | --localstatedi | --localstated \
997 | --localstate | --localstat | --localsta | --localst | --locals)
998 ac_prev=localstatedir ;;
999 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1000 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1001 localstatedir=$ac_optarg ;;
1003 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1004 ac_prev=mandir ;;
1005 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1006 mandir=$ac_optarg ;;
1008 -nfp | --nfp | --nf)
1009 # Obsolete; use --without-fp.
1010 with_fp=no ;;
1012 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1013 | --no-cr | --no-c | -n)
1014 no_create=yes ;;
1016 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1017 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1018 no_recursion=yes ;;
1020 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1021 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1022 | --oldin | --oldi | --old | --ol | --o)
1023 ac_prev=oldincludedir ;;
1024 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1025 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1026 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1027 oldincludedir=$ac_optarg ;;
1029 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1030 ac_prev=prefix ;;
1031 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1032 prefix=$ac_optarg ;;
1034 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1035 | --program-pre | --program-pr | --program-p)
1036 ac_prev=program_prefix ;;
1037 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1038 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1039 program_prefix=$ac_optarg ;;
1041 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1042 | --program-suf | --program-su | --program-s)
1043 ac_prev=program_suffix ;;
1044 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1045 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1046 program_suffix=$ac_optarg ;;
1048 -program-transform-name | --program-transform-name \
1049 | --program-transform-nam | --program-transform-na \
1050 | --program-transform-n | --program-transform- \
1051 | --program-transform | --program-transfor \
1052 | --program-transfo | --program-transf \
1053 | --program-trans | --program-tran \
1054 | --progr-tra | --program-tr | --program-t)
1055 ac_prev=program_transform_name ;;
1056 -program-transform-name=* | --program-transform-name=* \
1057 | --program-transform-nam=* | --program-transform-na=* \
1058 | --program-transform-n=* | --program-transform-=* \
1059 | --program-transform=* | --program-transfor=* \
1060 | --program-transfo=* | --program-transf=* \
1061 | --program-trans=* | --program-tran=* \
1062 | --progr-tra=* | --program-tr=* | --program-t=*)
1063 program_transform_name=$ac_optarg ;;
1065 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1066 ac_prev=pdfdir ;;
1067 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1068 pdfdir=$ac_optarg ;;
1070 -psdir | --psdir | --psdi | --psd | --ps)
1071 ac_prev=psdir ;;
1072 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1073 psdir=$ac_optarg ;;
1075 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1076 | -silent | --silent | --silen | --sile | --sil)
1077 silent=yes ;;
1079 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1080 ac_prev=sbindir ;;
1081 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1082 | --sbi=* | --sb=*)
1083 sbindir=$ac_optarg ;;
1085 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1086 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1087 | --sharedst | --shareds | --shared | --share | --shar \
1088 | --sha | --sh)
1089 ac_prev=sharedstatedir ;;
1090 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1091 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1092 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1093 | --sha=* | --sh=*)
1094 sharedstatedir=$ac_optarg ;;
1096 -site | --site | --sit)
1097 ac_prev=site ;;
1098 -site=* | --site=* | --sit=*)
1099 site=$ac_optarg ;;
1101 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1102 ac_prev=srcdir ;;
1103 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1104 srcdir=$ac_optarg ;;
1106 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1107 | --syscon | --sysco | --sysc | --sys | --sy)
1108 ac_prev=sysconfdir ;;
1109 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1110 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1111 sysconfdir=$ac_optarg ;;
1113 -target | --target | --targe | --targ | --tar | --ta | --t)
1114 ac_prev=target_alias ;;
1115 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1116 target_alias=$ac_optarg ;;
1118 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1119 verbose=yes ;;
1121 -version | --version | --versio | --versi | --vers | -V)
1122 ac_init_version=: ;;
1124 -with-* | --with-*)
1125 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1126 # Reject names that are not valid shell variable names.
1127 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1128 as_fn_error "invalid package name: $ac_useropt"
1129 ac_useropt_orig=$ac_useropt
1130 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1131 case $ac_user_opts in
1133 "with_$ac_useropt"
1134 "*) ;;
1135 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1136 ac_unrecognized_sep=', ';;
1137 esac
1138 eval with_$ac_useropt=\$ac_optarg ;;
1140 -without-* | --without-*)
1141 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1142 # Reject names that are not valid shell variable names.
1143 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1144 as_fn_error "invalid package name: $ac_useropt"
1145 ac_useropt_orig=$ac_useropt
1146 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1147 case $ac_user_opts in
1149 "with_$ac_useropt"
1150 "*) ;;
1151 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1152 ac_unrecognized_sep=', ';;
1153 esac
1154 eval with_$ac_useropt=no ;;
1156 --x)
1157 # Obsolete; use --with-x.
1158 with_x=yes ;;
1160 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1161 | --x-incl | --x-inc | --x-in | --x-i)
1162 ac_prev=x_includes ;;
1163 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1164 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1165 x_includes=$ac_optarg ;;
1167 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1168 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1169 ac_prev=x_libraries ;;
1170 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1171 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1172 x_libraries=$ac_optarg ;;
1174 -*) as_fn_error "unrecognized option: \`$ac_option'
1175 Try \`$0 --help' for more information."
1178 *=*)
1179 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1180 # Reject names that are not valid shell variable names.
1181 case $ac_envvar in #(
1182 '' | [0-9]* | *[!_$as_cr_alnum]* )
1183 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1184 esac
1185 eval $ac_envvar=\$ac_optarg
1186 export $ac_envvar ;;
1189 # FIXME: should be removed in autoconf 3.0.
1190 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1191 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1192 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1193 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1196 esac
1197 done
1199 if test -n "$ac_prev"; then
1200 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1201 as_fn_error "missing argument to $ac_option"
1204 if test -n "$ac_unrecognized_opts"; then
1205 case $enable_option_checking in
1206 no) ;;
1207 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1208 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1209 esac
1212 # Check all directory arguments for consistency.
1213 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1214 datadir sysconfdir sharedstatedir localstatedir includedir \
1215 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1216 libdir localedir mandir
1218 eval ac_val=\$$ac_var
1219 # Remove trailing slashes.
1220 case $ac_val in
1221 */ )
1222 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1223 eval $ac_var=\$ac_val;;
1224 esac
1225 # Be sure to have absolute directory names.
1226 case $ac_val in
1227 [\\/$]* | ?:[\\/]* ) continue;;
1228 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1229 esac
1230 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1231 done
1233 # There might be people who depend on the old broken behavior: `$host'
1234 # used to hold the argument of --host etc.
1235 # FIXME: To remove some day.
1236 build=$build_alias
1237 host=$host_alias
1238 target=$target_alias
1240 # FIXME: To remove some day.
1241 if test "x$host_alias" != x; then
1242 if test "x$build_alias" = x; then
1243 cross_compiling=maybe
1244 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1245 If a cross compiler is detected then cross compile mode will be used." >&2
1246 elif test "x$build_alias" != "x$host_alias"; then
1247 cross_compiling=yes
1251 ac_tool_prefix=
1252 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1254 test "$silent" = yes && exec 6>/dev/null
1257 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1258 ac_ls_di=`ls -di .` &&
1259 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1260 as_fn_error "working directory cannot be determined"
1261 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1262 as_fn_error "pwd does not report name of working directory"
1265 # Find the source files, if location was not specified.
1266 if test -z "$srcdir"; then
1267 ac_srcdir_defaulted=yes
1268 # Try the directory containing this script, then the parent directory.
1269 ac_confdir=`$as_dirname -- "$as_myself" ||
1270 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1271 X"$as_myself" : 'X\(//\)[^/]' \| \
1272 X"$as_myself" : 'X\(//\)$' \| \
1273 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1274 $as_echo X"$as_myself" |
1275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1276 s//\1/
1279 /^X\(\/\/\)[^/].*/{
1280 s//\1/
1283 /^X\(\/\/\)$/{
1284 s//\1/
1287 /^X\(\/\).*/{
1288 s//\1/
1291 s/.*/./; q'`
1292 srcdir=$ac_confdir
1293 if test ! -r "$srcdir/$ac_unique_file"; then
1294 srcdir=..
1296 else
1297 ac_srcdir_defaulted=no
1299 if test ! -r "$srcdir/$ac_unique_file"; then
1300 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1301 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1303 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1304 ac_abs_confdir=`(
1305 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1306 pwd)`
1307 # When building in place, set srcdir=.
1308 if test "$ac_abs_confdir" = "$ac_pwd"; then
1309 srcdir=.
1311 # Remove unnecessary trailing slashes from srcdir.
1312 # Double slashes in file names in object file debugging info
1313 # mess up M-x gdb in Emacs.
1314 case $srcdir in
1315 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1316 esac
1317 for ac_var in $ac_precious_vars; do
1318 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1319 eval ac_env_${ac_var}_value=\$${ac_var}
1320 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1321 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1322 done
1325 # Report the --help message.
1327 if test "$ac_init_help" = "long"; then
1328 # Omit some internal or obsolete options to make the list less imposing.
1329 # This message is too long to be a string in the A/UX 3.1 sh.
1330 cat <<_ACEOF
1331 \`configure' configures GNU Fortran Runtime Library 0.3 to adapt to many kinds of systems.
1333 Usage: $0 [OPTION]... [VAR=VALUE]...
1335 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1336 VAR=VALUE. See below for descriptions of some of the useful variables.
1338 Defaults for the options are specified in brackets.
1340 Configuration:
1341 -h, --help display this help and exit
1342 --help=short display options specific to this package
1343 --help=recursive display the short help of all the included packages
1344 -V, --version display version information and exit
1345 -q, --quiet, --silent do not print \`checking...' messages
1346 --cache-file=FILE cache test results in FILE [disabled]
1347 -C, --config-cache alias for \`--cache-file=config.cache'
1348 -n, --no-create do not create output files
1349 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1351 Installation directories:
1352 --prefix=PREFIX install architecture-independent files in PREFIX
1353 [$ac_default_prefix]
1354 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1355 [PREFIX]
1357 By default, \`make install' will install all the files in
1358 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1359 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1360 for instance \`--prefix=\$HOME'.
1362 For better control, use the options below.
1364 Fine tuning of the installation directories:
1365 --bindir=DIR user executables [EPREFIX/bin]
1366 --sbindir=DIR system admin executables [EPREFIX/sbin]
1367 --libexecdir=DIR program executables [EPREFIX/libexec]
1368 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1369 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1370 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1371 --libdir=DIR object code libraries [EPREFIX/lib]
1372 --includedir=DIR C header files [PREFIX/include]
1373 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1374 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1375 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1376 --infodir=DIR info documentation [DATAROOTDIR/info]
1377 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1378 --mandir=DIR man documentation [DATAROOTDIR/man]
1379 --docdir=DIR documentation root [DATAROOTDIR/doc/libgfortran]
1380 --htmldir=DIR html documentation [DOCDIR]
1381 --dvidir=DIR dvi documentation [DOCDIR]
1382 --pdfdir=DIR pdf documentation [DOCDIR]
1383 --psdir=DIR ps documentation [DOCDIR]
1384 _ACEOF
1386 cat <<\_ACEOF
1388 Program names:
1389 --program-prefix=PREFIX prepend PREFIX to installed program names
1390 --program-suffix=SUFFIX append SUFFIX to installed program names
1391 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1393 System types:
1394 --build=BUILD configure for building on BUILD [guessed]
1395 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1396 --target=TARGET configure for building compilers for TARGET [HOST]
1397 _ACEOF
1400 if test -n "$ac_init_help"; then
1401 case $ac_init_help in
1402 short | recursive ) echo "Configuration of GNU Fortran Runtime Library 0.3:";;
1403 esac
1404 cat <<\_ACEOF
1406 Optional Features:
1407 --disable-option-checking ignore unrecognized --enable/--with options
1408 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1409 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1410 --enable-version-specific-runtime-libs
1411 specify that runtime libraries should be installed
1412 in a compiler-specific directory
1413 --enable-intermodule build the library in one step
1414 --enable-maintainer-mode enable make rules and dependencies not useful
1415 (and sometimes confusing) to the casual installer
1416 --enable-multilib build many library versions (default)
1417 --disable-dependency-tracking speeds up one-time build
1418 --enable-dependency-tracking do not reject slow dependency extractors
1419 --disable-symvers disable symbol versioning for libgfortran
1420 --enable-shared[=PKGS] build shared libraries [default=yes]
1421 --enable-static[=PKGS] build static libraries [default=yes]
1422 --enable-fast-install[=PKGS]
1423 optimize for fast installation [default=yes]
1424 --disable-libtool-lock avoid locking (might break parallel builds)
1425 --disable-largefile omit support for large files
1426 --disable-libquadmath-support
1427 disable libquadmath support for Fortran
1429 Optional Packages:
1430 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1431 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1432 --with-build-libsubdir=DIR Directory where to find libraries for build system
1433 --with-pic try to use only PIC/non-PIC objects [default=use
1434 both]
1435 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1436 --with-system-libunwind use installed libunwind
1438 Some influential environment variables:
1439 CC C compiler command
1440 CFLAGS C compiler flags
1441 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1442 nonstandard directory <lib dir>
1443 LIBS libraries to pass to the linker, e.g. -l<library>
1444 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1445 you have headers in a nonstandard directory <include dir>
1446 CPP C preprocessor
1447 FC Fortran compiler command
1448 FCFLAGS Fortran compiler flags
1450 Use these variables to override the choices made by `configure' or to help
1451 it to find libraries and programs with nonstandard names/locations.
1453 Report bugs to the package provider.
1454 GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
1455 General help using GNU software: <http://www.gnu.org/gethelp/>.
1456 _ACEOF
1457 ac_status=$?
1460 if test "$ac_init_help" = "recursive"; then
1461 # If there are subdirs, report their specific --help.
1462 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1463 test -d "$ac_dir" ||
1464 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1465 continue
1466 ac_builddir=.
1468 case "$ac_dir" in
1469 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1472 # A ".." for each directory in $ac_dir_suffix.
1473 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1474 case $ac_top_builddir_sub in
1475 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1476 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1477 esac ;;
1478 esac
1479 ac_abs_top_builddir=$ac_pwd
1480 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1481 # for backward compatibility:
1482 ac_top_builddir=$ac_top_build_prefix
1484 case $srcdir in
1485 .) # We are building in place.
1486 ac_srcdir=.
1487 ac_top_srcdir=$ac_top_builddir_sub
1488 ac_abs_top_srcdir=$ac_pwd ;;
1489 [\\/]* | ?:[\\/]* ) # Absolute name.
1490 ac_srcdir=$srcdir$ac_dir_suffix;
1491 ac_top_srcdir=$srcdir
1492 ac_abs_top_srcdir=$srcdir ;;
1493 *) # Relative name.
1494 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1495 ac_top_srcdir=$ac_top_build_prefix$srcdir
1496 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1497 esac
1498 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1500 cd "$ac_dir" || { ac_status=$?; continue; }
1501 # Check for guested configure.
1502 if test -f "$ac_srcdir/configure.gnu"; then
1503 echo &&
1504 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1505 elif test -f "$ac_srcdir/configure"; then
1506 echo &&
1507 $SHELL "$ac_srcdir/configure" --help=recursive
1508 else
1509 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1510 fi || ac_status=$?
1511 cd "$ac_pwd" || { ac_status=$?; break; }
1512 done
1515 test -n "$ac_init_help" && exit $ac_status
1516 if $ac_init_version; then
1517 cat <<\_ACEOF
1518 GNU Fortran Runtime Library configure 0.3
1519 generated by GNU Autoconf 2.64
1521 Copyright (C) 2009 Free Software Foundation, Inc.
1522 This configure script is free software; the Free Software Foundation
1523 gives unlimited permission to copy, distribute and modify it.
1524 _ACEOF
1525 exit
1528 ## ------------------------ ##
1529 ## Autoconf initialization. ##
1530 ## ------------------------ ##
1532 # ac_fn_c_try_compile LINENO
1533 # --------------------------
1534 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1535 ac_fn_c_try_compile ()
1537 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1538 rm -f conftest.$ac_objext
1539 if { { ac_try="$ac_compile"
1540 case "(($ac_try" in
1541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1542 *) ac_try_echo=$ac_try;;
1543 esac
1544 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1545 $as_echo "$ac_try_echo"; } >&5
1546 (eval "$ac_compile") 2>conftest.err
1547 ac_status=$?
1548 if test -s conftest.err; then
1549 grep -v '^ *+' conftest.err >conftest.er1
1550 cat conftest.er1 >&5
1551 mv -f conftest.er1 conftest.err
1553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1554 test $ac_status = 0; } && {
1555 test -z "$ac_c_werror_flag" ||
1556 test ! -s conftest.err
1557 } && test -s conftest.$ac_objext; then :
1558 ac_retval=0
1559 else
1560 $as_echo "$as_me: failed program was:" >&5
1561 sed 's/^/| /' conftest.$ac_ext >&5
1563 ac_retval=1
1565 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1566 return $ac_retval
1568 } # ac_fn_c_try_compile
1570 # ac_fn_c_try_cpp LINENO
1571 # ----------------------
1572 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1573 ac_fn_c_try_cpp ()
1575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576 if { { ac_try="$ac_cpp conftest.$ac_ext"
1577 case "(($ac_try" in
1578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1579 *) ac_try_echo=$ac_try;;
1580 esac
1581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1582 $as_echo "$ac_try_echo"; } >&5
1583 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1584 ac_status=$?
1585 if test -s conftest.err; then
1586 grep -v '^ *+' conftest.err >conftest.er1
1587 cat conftest.er1 >&5
1588 mv -f conftest.er1 conftest.err
1590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1591 test $ac_status = 0; } >/dev/null && {
1592 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1593 test ! -s conftest.err
1594 }; then :
1595 ac_retval=0
1596 else
1597 $as_echo "$as_me: failed program was:" >&5
1598 sed 's/^/| /' conftest.$ac_ext >&5
1600 ac_retval=1
1602 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1603 return $ac_retval
1605 } # ac_fn_c_try_cpp
1607 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1608 # -------------------------------------------------------
1609 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1610 # the include files in INCLUDES and setting the cache variable VAR
1611 # accordingly.
1612 ac_fn_c_check_header_mongrel ()
1614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1615 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1617 $as_echo_n "checking for $2... " >&6; }
1618 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1619 $as_echo_n "(cached) " >&6
1621 eval ac_res=\$$3
1622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1623 $as_echo "$ac_res" >&6; }
1624 else
1625 # Is the header compilable?
1626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1627 $as_echo_n "checking $2 usability... " >&6; }
1628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1629 /* end confdefs.h. */
1631 #include <$2>
1632 _ACEOF
1633 if ac_fn_c_try_compile "$LINENO"; then :
1634 ac_header_compiler=yes
1635 else
1636 ac_header_compiler=no
1638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1640 $as_echo "$ac_header_compiler" >&6; }
1642 # Is the header present?
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1644 $as_echo_n "checking $2 presence... " >&6; }
1645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1646 /* end confdefs.h. */
1647 #include <$2>
1648 _ACEOF
1649 if ac_fn_c_try_cpp "$LINENO"; then :
1650 ac_header_preproc=yes
1651 else
1652 ac_header_preproc=no
1654 rm -f conftest.err conftest.$ac_ext
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1656 $as_echo "$ac_header_preproc" >&6; }
1658 # So? What about this header?
1659 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1660 yes:no: )
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1662 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1664 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1666 no:yes:* )
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1668 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1670 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1672 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1674 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1676 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1678 esac
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1680 $as_echo_n "checking for $2... " >&6; }
1681 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1682 $as_echo_n "(cached) " >&6
1683 else
1684 eval "$3=\$ac_header_compiler"
1686 eval ac_res=\$$3
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1688 $as_echo "$ac_res" >&6; }
1690 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1692 } # ac_fn_c_check_header_mongrel
1694 # ac_fn_c_try_run LINENO
1695 # ----------------------
1696 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1697 # that executables *can* be run.
1698 ac_fn_c_try_run ()
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 if { { ac_try="$ac_link"
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_link") 2>&5
1709 ac_status=$?
1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1712 { { case "(($ac_try" in
1713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714 *) ac_try_echo=$ac_try;;
1715 esac
1716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717 $as_echo "$ac_try_echo"; } >&5
1718 (eval "$ac_try") 2>&5
1719 ac_status=$?
1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; }; }; then :
1722 ac_retval=0
1723 else
1724 $as_echo "$as_me: program exited with status $ac_status" >&5
1725 $as_echo "$as_me: failed program was:" >&5
1726 sed 's/^/| /' conftest.$ac_ext >&5
1728 ac_retval=$ac_status
1730 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1731 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1732 return $ac_retval
1734 } # ac_fn_c_try_run
1736 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1737 # -------------------------------------------------------
1738 # Tests whether HEADER exists and can be compiled using the include files in
1739 # INCLUDES, setting the cache variable VAR accordingly.
1740 ac_fn_c_check_header_compile ()
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1744 $as_echo_n "checking for $2... " >&6; }
1745 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1746 $as_echo_n "(cached) " >&6
1747 else
1748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1749 /* end confdefs.h. */
1751 #include <$2>
1752 _ACEOF
1753 if ac_fn_c_try_compile "$LINENO"; then :
1754 eval "$3=yes"
1755 else
1756 eval "$3=no"
1758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1760 eval ac_res=\$$3
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1762 $as_echo "$ac_res" >&6; }
1763 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1765 } # ac_fn_c_check_header_compile
1767 # ac_fn_c_try_link LINENO
1768 # -----------------------
1769 # Try to link conftest.$ac_ext, and return whether this succeeded.
1770 ac_fn_c_try_link ()
1772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773 rm -f conftest.$ac_objext conftest$ac_exeext
1774 if { { ac_try="$ac_link"
1775 case "(($ac_try" in
1776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1777 *) ac_try_echo=$ac_try;;
1778 esac
1779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780 $as_echo "$ac_try_echo"; } >&5
1781 (eval "$ac_link") 2>conftest.err
1782 ac_status=$?
1783 if test -s conftest.err; then
1784 grep -v '^ *+' conftest.err >conftest.er1
1785 cat conftest.er1 >&5
1786 mv -f conftest.er1 conftest.err
1788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789 test $ac_status = 0; } && {
1790 test -z "$ac_c_werror_flag" ||
1791 test ! -s conftest.err
1792 } && test -s conftest$ac_exeext && {
1793 test "$cross_compiling" = yes ||
1794 $as_test_x conftest$ac_exeext
1795 }; then :
1796 ac_retval=0
1797 else
1798 $as_echo "$as_me: failed program was:" >&5
1799 sed 's/^/| /' conftest.$ac_ext >&5
1801 ac_retval=1
1803 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1804 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1805 # interfere with the next link command; also delete a directory that is
1806 # left behind by Apple's compiler. We do this before executing the actions.
1807 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1808 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1809 return $ac_retval
1811 } # ac_fn_c_try_link
1813 # ac_fn_c_check_func LINENO FUNC VAR
1814 # ----------------------------------
1815 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1816 ac_fn_c_check_func ()
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820 $as_echo_n "checking for $2... " >&6; }
1821 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1822 $as_echo_n "(cached) " >&6
1823 else
1824 if test x$gcc_no_link = xyes; then
1825 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828 /* end confdefs.h. */
1829 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1831 #define $2 innocuous_$2
1833 /* System header to define __stub macros and hopefully few prototypes,
1834 which can conflict with char $2 (); below.
1835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1836 <limits.h> exists even on freestanding compilers. */
1838 #ifdef __STDC__
1839 # include <limits.h>
1840 #else
1841 # include <assert.h>
1842 #endif
1844 #undef $2
1846 /* Override any GCC internal prototype to avoid an error.
1847 Use char because int might match the return type of a GCC
1848 builtin and then its argument prototype would still apply. */
1849 #ifdef __cplusplus
1850 extern "C"
1851 #endif
1852 char $2 ();
1853 /* The GNU C library defines this for functions which it implements
1854 to always fail with ENOSYS. Some functions are actually named
1855 something starting with __ and the normal name is an alias. */
1856 #if defined __stub_$2 || defined __stub___$2
1857 choke me
1858 #endif
1861 main ()
1863 return $2 ();
1865 return 0;
1867 _ACEOF
1868 if ac_fn_c_try_link "$LINENO"; then :
1869 eval "$3=yes"
1870 else
1871 eval "$3=no"
1873 rm -f core conftest.err conftest.$ac_objext \
1874 conftest$ac_exeext conftest.$ac_ext
1876 eval ac_res=\$$3
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1878 $as_echo "$ac_res" >&6; }
1879 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1881 } # ac_fn_c_check_func
1883 # ac_fn_fc_try_compile LINENO
1884 # ---------------------------
1885 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1886 ac_fn_fc_try_compile ()
1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889 rm -f conftest.$ac_objext
1890 if { { ac_try="$ac_compile"
1891 case "(($ac_try" in
1892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1893 *) ac_try_echo=$ac_try;;
1894 esac
1895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1896 $as_echo "$ac_try_echo"; } >&5
1897 (eval "$ac_compile") 2>conftest.err
1898 ac_status=$?
1899 if test -s conftest.err; then
1900 grep -v '^ *+' conftest.err >conftest.er1
1901 cat conftest.er1 >&5
1902 mv -f conftest.er1 conftest.err
1904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1905 test $ac_status = 0; } && {
1906 test -z "$ac_fc_werror_flag" ||
1907 test ! -s conftest.err
1908 } && test -s conftest.$ac_objext; then :
1909 ac_retval=0
1910 else
1911 $as_echo "$as_me: failed program was:" >&5
1912 sed 's/^/| /' conftest.$ac_ext >&5
1914 ac_retval=1
1916 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1917 return $ac_retval
1919 } # ac_fn_fc_try_compile
1921 # ac_fn_fc_try_link LINENO
1922 # ------------------------
1923 # Try to link conftest.$ac_ext, and return whether this succeeded.
1924 ac_fn_fc_try_link ()
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 rm -f conftest.$ac_objext conftest$ac_exeext
1928 if { { ac_try="$ac_link"
1929 case "(($ac_try" in
1930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1931 *) ac_try_echo=$ac_try;;
1932 esac
1933 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1934 $as_echo "$ac_try_echo"; } >&5
1935 (eval "$ac_link") 2>conftest.err
1936 ac_status=$?
1937 if test -s conftest.err; then
1938 grep -v '^ *+' conftest.err >conftest.er1
1939 cat conftest.er1 >&5
1940 mv -f conftest.er1 conftest.err
1942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1943 test $ac_status = 0; } && {
1944 test -z "$ac_fc_werror_flag" ||
1945 test ! -s conftest.err
1946 } && test -s conftest$ac_exeext && {
1947 test "$cross_compiling" = yes ||
1948 $as_test_x conftest$ac_exeext
1949 }; then :
1950 ac_retval=0
1951 else
1952 $as_echo "$as_me: failed program was:" >&5
1953 sed 's/^/| /' conftest.$ac_ext >&5
1955 ac_retval=1
1957 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1958 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1959 # interfere with the next link command; also delete a directory that is
1960 # left behind by Apple's compiler. We do this before executing the actions.
1961 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1962 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1963 return $ac_retval
1965 } # ac_fn_fc_try_link
1967 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1968 # -------------------------------------------
1969 # Tests whether TYPE exists after having included INCLUDES, setting cache
1970 # variable VAR accordingly.
1971 ac_fn_c_check_type ()
1973 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1975 $as_echo_n "checking for $2... " >&6; }
1976 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1977 $as_echo_n "(cached) " >&6
1978 else
1979 eval "$3=no"
1980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1981 /* end confdefs.h. */
1984 main ()
1986 if (sizeof ($2))
1987 return 0;
1989 return 0;
1991 _ACEOF
1992 if ac_fn_c_try_compile "$LINENO"; then :
1993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1994 /* end confdefs.h. */
1997 main ()
1999 if (sizeof (($2)))
2000 return 0;
2002 return 0;
2004 _ACEOF
2005 if ac_fn_c_try_compile "$LINENO"; then :
2007 else
2008 eval "$3=yes"
2010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2014 eval ac_res=\$$3
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2016 $as_echo "$ac_res" >&6; }
2017 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2019 } # ac_fn_c_check_type
2021 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2022 # --------------------------------------------
2023 # Tries to find the compile-time value of EXPR in a program that includes
2024 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2025 # computed
2026 ac_fn_c_compute_int ()
2028 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2029 if test "$cross_compiling" = yes; then
2030 # Depending upon the size, compute the lo and hi bounds.
2031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2032 /* end confdefs.h. */
2035 main ()
2037 static int test_array [1 - 2 * !(($2) >= 0)];
2038 test_array [0] = 0
2041 return 0;
2043 _ACEOF
2044 if ac_fn_c_try_compile "$LINENO"; then :
2045 ac_lo=0 ac_mid=0
2046 while :; do
2047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048 /* end confdefs.h. */
2051 main ()
2053 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2054 test_array [0] = 0
2057 return 0;
2059 _ACEOF
2060 if ac_fn_c_try_compile "$LINENO"; then :
2061 ac_hi=$ac_mid; break
2062 else
2063 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2064 if test $ac_lo -le $ac_mid; then
2065 ac_lo= ac_hi=
2066 break
2068 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2071 done
2072 else
2073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074 /* end confdefs.h. */
2077 main ()
2079 static int test_array [1 - 2 * !(($2) < 0)];
2080 test_array [0] = 0
2083 return 0;
2085 _ACEOF
2086 if ac_fn_c_try_compile "$LINENO"; then :
2087 ac_hi=-1 ac_mid=-1
2088 while :; do
2089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090 /* end confdefs.h. */
2093 main ()
2095 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2096 test_array [0] = 0
2099 return 0;
2101 _ACEOF
2102 if ac_fn_c_try_compile "$LINENO"; then :
2103 ac_lo=$ac_mid; break
2104 else
2105 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2106 if test $ac_mid -le $ac_hi; then
2107 ac_lo= ac_hi=
2108 break
2110 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2113 done
2114 else
2115 ac_lo= ac_hi=
2117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2120 # Binary search between lo and hi bounds.
2121 while test "x$ac_lo" != "x$ac_hi"; do
2122 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2124 /* end confdefs.h. */
2127 main ()
2129 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2130 test_array [0] = 0
2133 return 0;
2135 _ACEOF
2136 if ac_fn_c_try_compile "$LINENO"; then :
2137 ac_hi=$ac_mid
2138 else
2139 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2142 done
2143 case $ac_lo in #((
2144 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2145 '') ac_retval=1 ;;
2146 esac
2147 else
2148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2149 /* end confdefs.h. */
2151 static long int longval () { return $2; }
2152 static unsigned long int ulongval () { return $2; }
2153 #include <stdio.h>
2154 #include <stdlib.h>
2156 main ()
2159 FILE *f = fopen ("conftest.val", "w");
2160 if (! f)
2161 return 1;
2162 if (($2) < 0)
2164 long int i = longval ();
2165 if (i != ($2))
2166 return 1;
2167 fprintf (f, "%ld", i);
2169 else
2171 unsigned long int i = ulongval ();
2172 if (i != ($2))
2173 return 1;
2174 fprintf (f, "%lu", i);
2176 /* Do not output a trailing newline, as this causes \r\n confusion
2177 on some platforms. */
2178 return ferror (f) || fclose (f) != 0;
2181 return 0;
2183 _ACEOF
2184 if ac_fn_c_try_run "$LINENO"; then :
2185 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2186 else
2187 ac_retval=1
2189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2190 conftest.$ac_objext conftest.beam conftest.$ac_ext
2191 rm -f conftest.val
2194 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2195 return $ac_retval
2197 } # ac_fn_c_compute_int
2199 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2200 # ----------------------------------------------------
2201 # Tries to find if the field MEMBER exists in type AGGR, after including
2202 # INCLUDES, setting cache variable VAR accordingly.
2203 ac_fn_c_check_member ()
2205 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2207 $as_echo_n "checking for $2.$3... " >&6; }
2208 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2209 $as_echo_n "(cached) " >&6
2210 else
2211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2212 /* end confdefs.h. */
2215 main ()
2217 static $2 ac_aggr;
2218 if (ac_aggr.$3)
2219 return 0;
2221 return 0;
2223 _ACEOF
2224 if ac_fn_c_try_compile "$LINENO"; then :
2225 eval "$4=yes"
2226 else
2227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2228 /* end confdefs.h. */
2231 main ()
2233 static $2 ac_aggr;
2234 if (sizeof ac_aggr.$3)
2235 return 0;
2237 return 0;
2239 _ACEOF
2240 if ac_fn_c_try_compile "$LINENO"; then :
2241 eval "$4=yes"
2242 else
2243 eval "$4=no"
2245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2249 eval ac_res=\$$4
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2251 $as_echo "$ac_res" >&6; }
2252 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2254 } # ac_fn_c_check_member
2255 cat >config.log <<_ACEOF
2256 This file contains any messages produced by compilers while
2257 running configure, to aid debugging if configure makes a mistake.
2259 It was created by GNU Fortran Runtime Library $as_me 0.3, which was
2260 generated by GNU Autoconf 2.64. Invocation command line was
2262 $ $0 $@
2264 _ACEOF
2265 exec 5>>config.log
2267 cat <<_ASUNAME
2268 ## --------- ##
2269 ## Platform. ##
2270 ## --------- ##
2272 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2273 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2274 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2275 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2276 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2278 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2279 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2281 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2282 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2283 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2284 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2285 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2286 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2287 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2289 _ASUNAME
2291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2292 for as_dir in $PATH
2294 IFS=$as_save_IFS
2295 test -z "$as_dir" && as_dir=.
2296 $as_echo "PATH: $as_dir"
2297 done
2298 IFS=$as_save_IFS
2300 } >&5
2302 cat >&5 <<_ACEOF
2305 ## ----------- ##
2306 ## Core tests. ##
2307 ## ----------- ##
2309 _ACEOF
2312 # Keep a trace of the command line.
2313 # Strip out --no-create and --no-recursion so they do not pile up.
2314 # Strip out --silent because we don't want to record it for future runs.
2315 # Also quote any args containing shell meta-characters.
2316 # Make two passes to allow for proper duplicate-argument suppression.
2317 ac_configure_args=
2318 ac_configure_args0=
2319 ac_configure_args1=
2320 ac_must_keep_next=false
2321 for ac_pass in 1 2
2323 for ac_arg
2325 case $ac_arg in
2326 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2327 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2328 | -silent | --silent | --silen | --sile | --sil)
2329 continue ;;
2330 *\'*)
2331 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2332 esac
2333 case $ac_pass in
2334 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2336 as_fn_append ac_configure_args1 " '$ac_arg'"
2337 if test $ac_must_keep_next = true; then
2338 ac_must_keep_next=false # Got value, back to normal.
2339 else
2340 case $ac_arg in
2341 *=* | --config-cache | -C | -disable-* | --disable-* \
2342 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2343 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2344 | -with-* | --with-* | -without-* | --without-* | --x)
2345 case "$ac_configure_args0 " in
2346 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2347 esac
2349 -* ) ac_must_keep_next=true ;;
2350 esac
2352 as_fn_append ac_configure_args " '$ac_arg'"
2354 esac
2355 done
2356 done
2357 { ac_configure_args0=; unset ac_configure_args0;}
2358 { ac_configure_args1=; unset ac_configure_args1;}
2360 # When interrupted or exit'd, cleanup temporary files, and complete
2361 # config.log. We remove comments because anyway the quotes in there
2362 # would cause problems or look ugly.
2363 # WARNING: Use '\'' to represent an apostrophe within the trap.
2364 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2365 trap 'exit_status=$?
2366 # Save into config.log some information that might help in debugging.
2368 echo
2370 cat <<\_ASBOX
2371 ## ---------------- ##
2372 ## Cache variables. ##
2373 ## ---------------- ##
2374 _ASBOX
2375 echo
2376 # The following way of writing the cache mishandles newlines in values,
2378 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2379 eval ac_val=\$$ac_var
2380 case $ac_val in #(
2381 *${as_nl}*)
2382 case $ac_var in #(
2383 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2384 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2385 esac
2386 case $ac_var in #(
2387 _ | IFS | as_nl) ;; #(
2388 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2389 *) { eval $ac_var=; unset $ac_var;} ;;
2390 esac ;;
2391 esac
2392 done
2393 (set) 2>&1 |
2394 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2395 *${as_nl}ac_space=\ *)
2396 sed -n \
2397 "s/'\''/'\''\\\\'\'''\''/g;
2398 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2399 ;; #(
2401 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2403 esac |
2404 sort
2406 echo
2408 cat <<\_ASBOX
2409 ## ----------------- ##
2410 ## Output variables. ##
2411 ## ----------------- ##
2412 _ASBOX
2413 echo
2414 for ac_var in $ac_subst_vars
2416 eval ac_val=\$$ac_var
2417 case $ac_val in
2418 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2419 esac
2420 $as_echo "$ac_var='\''$ac_val'\''"
2421 done | sort
2422 echo
2424 if test -n "$ac_subst_files"; then
2425 cat <<\_ASBOX
2426 ## ------------------- ##
2427 ## File substitutions. ##
2428 ## ------------------- ##
2429 _ASBOX
2430 echo
2431 for ac_var in $ac_subst_files
2433 eval ac_val=\$$ac_var
2434 case $ac_val in
2435 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2436 esac
2437 $as_echo "$ac_var='\''$ac_val'\''"
2438 done | sort
2439 echo
2442 if test -s confdefs.h; then
2443 cat <<\_ASBOX
2444 ## ----------- ##
2445 ## confdefs.h. ##
2446 ## ----------- ##
2447 _ASBOX
2448 echo
2449 cat confdefs.h
2450 echo
2452 test "$ac_signal" != 0 &&
2453 $as_echo "$as_me: caught signal $ac_signal"
2454 $as_echo "$as_me: exit $exit_status"
2455 } >&5
2456 rm -f core *.core core.conftest.* &&
2457 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2458 exit $exit_status
2460 for ac_signal in 1 2 13 15; do
2461 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2462 done
2463 ac_signal=0
2465 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2466 rm -f -r conftest* confdefs.h
2468 $as_echo "/* confdefs.h */" > confdefs.h
2470 # Predefined preprocessor variables.
2472 cat >>confdefs.h <<_ACEOF
2473 #define PACKAGE_NAME "$PACKAGE_NAME"
2474 _ACEOF
2476 cat >>confdefs.h <<_ACEOF
2477 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2478 _ACEOF
2480 cat >>confdefs.h <<_ACEOF
2481 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2482 _ACEOF
2484 cat >>confdefs.h <<_ACEOF
2485 #define PACKAGE_STRING "$PACKAGE_STRING"
2486 _ACEOF
2488 cat >>confdefs.h <<_ACEOF
2489 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2490 _ACEOF
2492 cat >>confdefs.h <<_ACEOF
2493 #define PACKAGE_URL "$PACKAGE_URL"
2494 _ACEOF
2497 # Let the site file select an alternate cache file if it wants to.
2498 # Prefer an explicitly selected file to automatically selected ones.
2499 ac_site_file1=NONE
2500 ac_site_file2=NONE
2501 if test -n "$CONFIG_SITE"; then
2502 ac_site_file1=$CONFIG_SITE
2503 elif test "x$prefix" != xNONE; then
2504 ac_site_file1=$prefix/share/config.site
2505 ac_site_file2=$prefix/etc/config.site
2506 else
2507 ac_site_file1=$ac_default_prefix/share/config.site
2508 ac_site_file2=$ac_default_prefix/etc/config.site
2510 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2512 test "x$ac_site_file" = xNONE && continue
2513 if test -r "$ac_site_file"; then
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2515 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2516 sed 's/^/| /' "$ac_site_file" >&5
2517 . "$ac_site_file"
2519 done
2521 if test -r "$cache_file"; then
2522 # Some versions of bash will fail to source /dev/null (special
2523 # files actually), so we avoid doing that.
2524 if test -f "$cache_file"; then
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2526 $as_echo "$as_me: loading cache $cache_file" >&6;}
2527 case $cache_file in
2528 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2529 *) . "./$cache_file";;
2530 esac
2532 else
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2534 $as_echo "$as_me: creating cache $cache_file" >&6;}
2535 >$cache_file
2538 as_fn_append ac_header_list " unistd.h"
2539 as_fn_append ac_header_list " sys/time.h"
2540 as_fn_append ac_header_list " sys/times.h"
2541 as_fn_append ac_header_list " sys/resource.h"
2542 as_fn_append ac_header_list " sys/types.h"
2543 as_fn_append ac_header_list " sys/stat.h"
2544 as_fn_append ac_header_list " sys/wait.h"
2545 as_fn_append ac_header_list " floatingpoint.h"
2546 as_fn_append ac_header_list " ieeefp.h"
2547 as_fn_append ac_header_list " fenv.h"
2548 as_fn_append ac_header_list " fptrap.h"
2549 as_fn_append ac_header_list " fpxcp.h"
2550 as_fn_append ac_header_list " pwd.h"
2551 as_fn_append ac_header_list " complex.h"
2552 as_fn_append ac_func_list " getrusage"
2553 as_fn_append ac_func_list " times"
2554 as_fn_append ac_func_list " mkstemp"
2555 as_fn_append ac_func_list " strtof"
2556 as_fn_append ac_func_list " strtold"
2557 as_fn_append ac_func_list " snprintf"
2558 as_fn_append ac_func_list " ftruncate"
2559 as_fn_append ac_func_list " chsize"
2560 as_fn_append ac_func_list " chdir"
2561 as_fn_append ac_func_list " getlogin"
2562 as_fn_append ac_func_list " gethostname"
2563 as_fn_append ac_func_list " kill"
2564 as_fn_append ac_func_list " link"
2565 as_fn_append ac_func_list " symlink"
2566 as_fn_append ac_func_list " sleep"
2567 as_fn_append ac_func_list " ttyname"
2568 as_fn_append ac_func_list " alarm"
2569 as_fn_append ac_func_list " access"
2570 as_fn_append ac_func_list " fork"
2571 as_fn_append ac_func_list " execl"
2572 as_fn_append ac_func_list " wait"
2573 as_fn_append ac_func_list " setmode"
2574 as_fn_append ac_func_list " execve"
2575 as_fn_append ac_func_list " pipe"
2576 as_fn_append ac_func_list " dup2"
2577 as_fn_append ac_func_list " close"
2578 as_fn_append ac_func_list " fcntl"
2579 as_fn_append ac_func_list " strcasestr"
2580 as_fn_append ac_func_list " getrlimit"
2581 as_fn_append ac_func_list " gettimeofday"
2582 as_fn_append ac_func_list " stat"
2583 as_fn_append ac_func_list " fstat"
2584 as_fn_append ac_func_list " lstat"
2585 as_fn_append ac_func_list " getpwuid"
2586 as_fn_append ac_func_list " vsnprintf"
2587 as_fn_append ac_func_list " dup"
2588 as_fn_append ac_func_list " getcwd"
2589 as_fn_append ac_func_list " localtime_r"
2590 as_fn_append ac_func_list " gmtime_r"
2591 as_fn_append ac_func_list " getpwuid_r"
2592 as_fn_append ac_func_list " ttyname_r"
2593 as_fn_append ac_func_list " clock_gettime"
2594 as_fn_append ac_func_list " readlink"
2595 as_fn_append ac_func_list " getgid"
2596 as_fn_append ac_func_list " getpid"
2597 as_fn_append ac_func_list " getppid"
2598 as_fn_append ac_func_list " getuid"
2599 as_fn_append ac_func_list " geteuid"
2600 as_fn_append ac_func_list " umask"
2601 as_fn_append ac_func_list " getegid"
2602 as_fn_append ac_func_list " secure_getenv"
2603 as_fn_append ac_func_list " __secure_getenv"
2604 as_fn_append ac_func_list " mkostemp"
2605 as_fn_append ac_func_list " strnlen"
2606 as_fn_append ac_func_list " strndup"
2607 as_fn_append ac_header_list " math.h"
2608 # Check that the precious variables saved in the cache have kept the same
2609 # value.
2610 ac_cache_corrupted=false
2611 for ac_var in $ac_precious_vars; do
2612 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2613 eval ac_new_set=\$ac_env_${ac_var}_set
2614 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2615 eval ac_new_val=\$ac_env_${ac_var}_value
2616 case $ac_old_set,$ac_new_set in
2617 set,)
2618 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2619 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2620 ac_cache_corrupted=: ;;
2621 ,set)
2622 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2623 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2624 ac_cache_corrupted=: ;;
2625 ,);;
2627 if test "x$ac_old_val" != "x$ac_new_val"; then
2628 # differences in whitespace do not lead to failure.
2629 ac_old_val_w=`echo x $ac_old_val`
2630 ac_new_val_w=`echo x $ac_new_val`
2631 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2633 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2634 ac_cache_corrupted=:
2635 else
2636 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2637 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2638 eval $ac_var=\$ac_old_val
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2641 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2643 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2644 fi;;
2645 esac
2646 # Pass precious variables to config.status.
2647 if test "$ac_new_set" = set; then
2648 case $ac_new_val in
2649 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2650 *) ac_arg=$ac_var=$ac_new_val ;;
2651 esac
2652 case " $ac_configure_args " in
2653 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2654 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2655 esac
2657 done
2658 if $ac_cache_corrupted; then
2659 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2660 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2662 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2663 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2665 ## -------------------- ##
2666 ## Main body of script. ##
2667 ## -------------------- ##
2669 ac_ext=c
2670 ac_cpp='$CPP $CPPFLAGS'
2671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2679 ac_config_headers="$ac_config_headers config.h"
2681 ac_aux_dir=
2682 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2683 for ac_t in install-sh install.sh shtool; do
2684 if test -f "$ac_dir/$ac_t"; then
2685 ac_aux_dir=$ac_dir
2686 ac_install_sh="$ac_aux_dir/$ac_t -c"
2687 break 2
2689 done
2690 done
2691 if test -z "$ac_aux_dir"; then
2692 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2695 # These three variables are undocumented and unsupported,
2696 # and are intended to be withdrawn in a future Autoconf release.
2697 # They can cause serious problems if a builder's source tree is in a directory
2698 # whose full name contains unusual characters.
2699 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2700 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2701 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2704 # Make sure we can run config.sub.
2705 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2706 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2709 $as_echo_n "checking build system type... " >&6; }
2710 if test "${ac_cv_build+set}" = set; then :
2711 $as_echo_n "(cached) " >&6
2712 else
2713 ac_build_alias=$build_alias
2714 test "x$ac_build_alias" = x &&
2715 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2716 test "x$ac_build_alias" = x &&
2717 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2718 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2719 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2723 $as_echo "$ac_cv_build" >&6; }
2724 case $ac_cv_build in
2725 *-*-*) ;;
2726 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2727 esac
2728 build=$ac_cv_build
2729 ac_save_IFS=$IFS; IFS='-'
2730 set x $ac_cv_build
2731 shift
2732 build_cpu=$1
2733 build_vendor=$2
2734 shift; shift
2735 # Remember, the first character of IFS is used to create $*,
2736 # except with old shells:
2737 build_os=$*
2738 IFS=$ac_save_IFS
2739 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2742 case ${build_alias} in
2743 "") build_noncanonical=${build} ;;
2744 *) build_noncanonical=${build_alias} ;;
2745 esac
2747 case ${host_alias} in
2748 "") host_noncanonical=${build_noncanonical} ;;
2749 *) host_noncanonical=${host_alias} ;;
2750 esac
2752 case ${target_alias} in
2753 "") target_noncanonical=${host_noncanonical} ;;
2754 *) target_noncanonical=${target_alias} ;;
2755 esac
2758 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2759 # have matching libraries, they should use host libraries: Makefile.tpl
2760 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2761 # However, they still use the build modules, because the corresponding
2762 # host modules (e.g. bison) are only built for the host when bootstrap
2763 # finishes. So:
2764 # - build_subdir is where we find build modules, and never changes.
2765 # - build_libsubdir is where we find build libraries, and can be overridden.
2767 # Prefix 'build-' so this never conflicts with target_subdir.
2768 build_subdir="build-${build_noncanonical}"
2770 # Check whether --with-build-libsubdir was given.
2771 if test "${with_build_libsubdir+set}" = set; then :
2772 withval=$with_build_libsubdir; build_libsubdir="$withval"
2773 else
2774 build_libsubdir="$build_subdir"
2777 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2778 if ( test $srcdir = . && test -d gcc ) \
2779 || test -d $srcdir/../host-${host_noncanonical}; then
2780 host_subdir="host-${host_noncanonical}"
2781 else
2782 host_subdir=.
2784 # No prefix.
2785 target_subdir=${target_noncanonical}
2788 # -------
2789 # Options
2790 # -------
2792 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2793 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2794 # Check whether --enable-version-specific-runtime-libs was given.
2795 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2796 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2797 yes) version_specific_libs=yes ;;
2798 no) version_specific_libs=no ;;
2799 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2800 esac
2801 else
2802 version_specific_libs=no
2805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2806 $as_echo "$version_specific_libs" >&6; }
2808 # Build with intermodule optimisations
2809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-intermodule" >&5
2810 $as_echo_n "checking for --enable-intermodule... " >&6; }
2811 # Check whether --enable-intermodule was given.
2812 if test "${enable_intermodule+set}" = set; then :
2813 enableval=$enable_intermodule; case "$enable_intermodule" in
2814 yes) onestep="-onestep";;
2815 *) onestep="";;
2816 esac
2817 else
2818 onestep=""
2821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_intermodule" >&5
2822 $as_echo "$enable_intermodule" >&6; }
2823 if test x$onestep = x-onestep; then
2824 onestep_TRUE=
2825 onestep_FALSE='#'
2826 else
2827 onestep_TRUE='#'
2828 onestep_FALSE=
2833 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2835 # You will slowly go insane if you do not grok the following fact: when
2836 # building this library, the top-level /target/ becomes the library's /host/.
2838 # configure then causes --target to default to --host, exactly like any
2839 # other package using autoconf. Therefore, 'target' and 'host' will
2840 # always be the same. This makes sense both for native and cross compilers
2841 # just think about it for a little while. :-)
2843 # Also, if this library is being configured as part of a cross compiler, the
2844 # top-level configure script will pass the "real" host as $with_cross_host.
2846 # Do not delete or change the following two lines. For why, see
2847 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2849 $as_echo_n "checking host system type... " >&6; }
2850 if test "${ac_cv_host+set}" = set; then :
2851 $as_echo_n "(cached) " >&6
2852 else
2853 if test "x$host_alias" = x; then
2854 ac_cv_host=$ac_cv_build
2855 else
2856 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2857 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2862 $as_echo "$ac_cv_host" >&6; }
2863 case $ac_cv_host in
2864 *-*-*) ;;
2865 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2866 esac
2867 host=$ac_cv_host
2868 ac_save_IFS=$IFS; IFS='-'
2869 set x $ac_cv_host
2870 shift
2871 host_cpu=$1
2872 host_vendor=$2
2873 shift; shift
2874 # Remember, the first character of IFS is used to create $*,
2875 # except with old shells:
2876 host_os=$*
2877 IFS=$ac_save_IFS
2878 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2882 $as_echo_n "checking target system type... " >&6; }
2883 if test "${ac_cv_target+set}" = set; then :
2884 $as_echo_n "(cached) " >&6
2885 else
2886 if test "x$target_alias" = x; then
2887 ac_cv_target=$ac_cv_host
2888 else
2889 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2890 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2895 $as_echo "$ac_cv_target" >&6; }
2896 case $ac_cv_target in
2897 *-*-*) ;;
2898 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2899 esac
2900 target=$ac_cv_target
2901 ac_save_IFS=$IFS; IFS='-'
2902 set x $ac_cv_target
2903 shift
2904 target_cpu=$1
2905 target_vendor=$2
2906 shift; shift
2907 # Remember, the first character of IFS is used to create $*,
2908 # except with old shells:
2909 target_os=$*
2910 IFS=$ac_save_IFS
2911 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2914 # The aliases save the names the user supplied, while $host etc.
2915 # will get canonicalized.
2916 test -n "$target_alias" &&
2917 test "$program_prefix$program_suffix$program_transform_name" = \
2918 NONENONEs,x,x, &&
2919 program_prefix=${target_alias}-
2924 target_alias=${target_alias-$host_alias}
2927 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2928 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2929 # 1.9.6: minimum required version
2930 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2931 # of other PACKAGE_* variables will, however, and there's nothing
2932 # we can do about that; they come from AC_INIT).
2933 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2934 # file in the top srcdir, etc, etc), so stop complaining.
2935 # no-dist: we don't want 'dist' and related rules.
2936 # -Wall: turns on all automake warnings...
2937 # -Wno-portability: ...except this one, since GNU make is required.
2938 am__api_version='1.11'
2940 # Find a good install program. We prefer a C program (faster),
2941 # so one script is as good as another. But avoid the broken or
2942 # incompatible versions:
2943 # SysV /etc/install, /usr/sbin/install
2944 # SunOS /usr/etc/install
2945 # IRIX /sbin/install
2946 # AIX /bin/install
2947 # AmigaOS /C/install, which installs bootblocks on floppy discs
2948 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2949 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2950 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2951 # OS/2's system install, which has a completely different semantic
2952 # ./install, which can be erroneously created by make from ./install.sh.
2953 # Reject install programs that cannot install multiple files.
2954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2955 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2956 if test -z "$INSTALL"; then
2957 if test "${ac_cv_path_install+set}" = set; then :
2958 $as_echo_n "(cached) " >&6
2959 else
2960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2961 for as_dir in $PATH
2963 IFS=$as_save_IFS
2964 test -z "$as_dir" && as_dir=.
2965 # Account for people who put trailing slashes in PATH elements.
2966 case $as_dir/ in #((
2967 ./ | .// | /[cC]/* | \
2968 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2969 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2970 /usr/ucb/* ) ;;
2972 # OSF1 and SCO ODT 3.0 have their own names for install.
2973 # Don't use installbsd from OSF since it installs stuff as root
2974 # by default.
2975 for ac_prog in ginstall scoinst install; do
2976 for ac_exec_ext in '' $ac_executable_extensions; do
2977 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2978 if test $ac_prog = install &&
2979 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2980 # AIX install. It has an incompatible calling convention.
2982 elif test $ac_prog = install &&
2983 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2984 # program-specific install script used by HP pwplus--don't use.
2986 else
2987 rm -rf conftest.one conftest.two conftest.dir
2988 echo one > conftest.one
2989 echo two > conftest.two
2990 mkdir conftest.dir
2991 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2992 test -s conftest.one && test -s conftest.two &&
2993 test -s conftest.dir/conftest.one &&
2994 test -s conftest.dir/conftest.two
2995 then
2996 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2997 break 3
3001 done
3002 done
3004 esac
3006 done
3007 IFS=$as_save_IFS
3009 rm -rf conftest.one conftest.two conftest.dir
3012 if test "${ac_cv_path_install+set}" = set; then
3013 INSTALL=$ac_cv_path_install
3014 else
3015 # As a last resort, use the slow shell script. Don't cache a
3016 # value for INSTALL within a source directory, because that will
3017 # break other packages using the cache if that directory is
3018 # removed, or if the value is a relative name.
3019 INSTALL=$ac_install_sh
3022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3023 $as_echo "$INSTALL" >&6; }
3025 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3026 # It thinks the first close brace ends the variable substitution.
3027 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3029 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3031 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3034 $as_echo_n "checking whether build environment is sane... " >&6; }
3035 # Just in case
3036 sleep 1
3037 echo timestamp > conftest.file
3038 # Reject unsafe characters in $srcdir or the absolute working directory
3039 # name. Accept space and tab only in the latter.
3040 am_lf='
3042 case `pwd` in
3043 *[\\\"\#\$\&\'\`$am_lf]*)
3044 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3045 esac
3046 case $srcdir in
3047 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3048 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3049 esac
3051 # Do `set' in a subshell so we don't clobber the current shell's
3052 # arguments. Must try -L first in case configure is actually a
3053 # symlink; some systems play weird games with the mod time of symlinks
3054 # (eg FreeBSD returns the mod time of the symlink's containing
3055 # directory).
3056 if (
3057 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3058 if test "$*" = "X"; then
3059 # -L didn't work.
3060 set X `ls -t "$srcdir/configure" conftest.file`
3062 rm -f conftest.file
3063 if test "$*" != "X $srcdir/configure conftest.file" \
3064 && test "$*" != "X conftest.file $srcdir/configure"; then
3066 # If neither matched, then we have a broken ls. This can happen
3067 # if, for instance, CONFIG_SHELL is bash and it inherits a
3068 # broken ls alias from the environment. This has actually
3069 # happened. Such a system could not be considered "sane".
3070 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3071 alias in your environment" "$LINENO" 5
3074 test "$2" = conftest.file
3076 then
3077 # Ok.
3079 else
3080 as_fn_error "newly created file is older than distributed files!
3081 Check your system clock" "$LINENO" 5
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3084 $as_echo "yes" >&6; }
3085 test "$program_prefix" != NONE &&
3086 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3087 # Use a double $ so make ignores it.
3088 test "$program_suffix" != NONE &&
3089 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3090 # Double any \ or $.
3091 # By default was `s,x,x', remove it if useless.
3092 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3093 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3095 # expand $ac_aux_dir to an absolute path
3096 am_aux_dir=`cd $ac_aux_dir && pwd`
3098 if test x"${MISSING+set}" != xset; then
3099 case $am_aux_dir in
3100 *\ * | *\ *)
3101 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3103 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3104 esac
3106 # Use eval to expand $SHELL
3107 if eval "$MISSING --run true"; then
3108 am_missing_run="$MISSING --run "
3109 else
3110 am_missing_run=
3111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3112 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3115 if test x"${install_sh}" != xset; then
3116 case $am_aux_dir in
3117 *\ * | *\ *)
3118 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3120 install_sh="\${SHELL} $am_aux_dir/install-sh"
3121 esac
3124 # Installed binaries are usually stripped using `strip' when the user
3125 # run `make install-strip'. However `strip' might not be the right
3126 # tool to use in cross-compilation environments, therefore Automake
3127 # will honor the `STRIP' environment variable to overrule this program.
3128 if test "$cross_compiling" != no; then
3129 if test -n "$ac_tool_prefix"; then
3130 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3131 set dummy ${ac_tool_prefix}strip; ac_word=$2
3132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3133 $as_echo_n "checking for $ac_word... " >&6; }
3134 if test "${ac_cv_prog_STRIP+set}" = set; then :
3135 $as_echo_n "(cached) " >&6
3136 else
3137 if test -n "$STRIP"; then
3138 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3139 else
3140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3141 for as_dir in $PATH
3143 IFS=$as_save_IFS
3144 test -z "$as_dir" && as_dir=.
3145 for ac_exec_ext in '' $ac_executable_extensions; do
3146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3147 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3149 break 2
3151 done
3152 done
3153 IFS=$as_save_IFS
3157 STRIP=$ac_cv_prog_STRIP
3158 if test -n "$STRIP"; then
3159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3160 $as_echo "$STRIP" >&6; }
3161 else
3162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3163 $as_echo "no" >&6; }
3168 if test -z "$ac_cv_prog_STRIP"; then
3169 ac_ct_STRIP=$STRIP
3170 # Extract the first word of "strip", so it can be a program name with args.
3171 set dummy strip; ac_word=$2
3172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3173 $as_echo_n "checking for $ac_word... " >&6; }
3174 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3175 $as_echo_n "(cached) " >&6
3176 else
3177 if test -n "$ac_ct_STRIP"; then
3178 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3179 else
3180 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3181 for as_dir in $PATH
3183 IFS=$as_save_IFS
3184 test -z "$as_dir" && as_dir=.
3185 for ac_exec_ext in '' $ac_executable_extensions; do
3186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3187 ac_cv_prog_ac_ct_STRIP="strip"
3188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3189 break 2
3191 done
3192 done
3193 IFS=$as_save_IFS
3197 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3198 if test -n "$ac_ct_STRIP"; then
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3200 $as_echo "$ac_ct_STRIP" >&6; }
3201 else
3202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3203 $as_echo "no" >&6; }
3206 if test "x$ac_ct_STRIP" = x; then
3207 STRIP=":"
3208 else
3209 case $cross_compiling:$ac_tool_warned in
3210 yes:)
3211 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3212 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3213 ac_tool_warned=yes ;;
3214 esac
3215 STRIP=$ac_ct_STRIP
3217 else
3218 STRIP="$ac_cv_prog_STRIP"
3222 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3225 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3226 if test -z "$MKDIR_P"; then
3227 if test "${ac_cv_path_mkdir+set}" = set; then :
3228 $as_echo_n "(cached) " >&6
3229 else
3230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3231 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3233 IFS=$as_save_IFS
3234 test -z "$as_dir" && as_dir=.
3235 for ac_prog in mkdir gmkdir; do
3236 for ac_exec_ext in '' $ac_executable_extensions; do
3237 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3238 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3239 'mkdir (GNU coreutils) '* | \
3240 'mkdir (coreutils) '* | \
3241 'mkdir (fileutils) '4.1*)
3242 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3243 break 3;;
3244 esac
3245 done
3246 done
3247 done
3248 IFS=$as_save_IFS
3252 if test "${ac_cv_path_mkdir+set}" = set; then
3253 MKDIR_P="$ac_cv_path_mkdir -p"
3254 else
3255 # As a last resort, use the slow shell script. Don't cache a
3256 # value for MKDIR_P within a source directory, because that will
3257 # break other packages using the cache if that directory is
3258 # removed, or if the value is a relative name.
3259 test -d ./--version && rmdir ./--version
3260 MKDIR_P="$ac_install_sh -d"
3263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3264 $as_echo "$MKDIR_P" >&6; }
3266 mkdir_p="$MKDIR_P"
3267 case $mkdir_p in
3268 [\\/$]* | ?:[\\/]*) ;;
3269 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3270 esac
3272 for ac_prog in gawk mawk nawk awk
3274 # Extract the first word of "$ac_prog", so it can be a program name with args.
3275 set dummy $ac_prog; ac_word=$2
3276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3277 $as_echo_n "checking for $ac_word... " >&6; }
3278 if test "${ac_cv_prog_AWK+set}" = set; then :
3279 $as_echo_n "(cached) " >&6
3280 else
3281 if test -n "$AWK"; then
3282 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3283 else
3284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285 for as_dir in $PATH
3287 IFS=$as_save_IFS
3288 test -z "$as_dir" && as_dir=.
3289 for ac_exec_ext in '' $ac_executable_extensions; do
3290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3291 ac_cv_prog_AWK="$ac_prog"
3292 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3293 break 2
3295 done
3296 done
3297 IFS=$as_save_IFS
3301 AWK=$ac_cv_prog_AWK
3302 if test -n "$AWK"; then
3303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3304 $as_echo "$AWK" >&6; }
3305 else
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3307 $as_echo "no" >&6; }
3311 test -n "$AWK" && break
3312 done
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3315 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3316 set x ${MAKE-make}
3317 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3318 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3319 $as_echo_n "(cached) " >&6
3320 else
3321 cat >conftest.make <<\_ACEOF
3322 SHELL = /bin/sh
3323 all:
3324 @echo '@@@%%%=$(MAKE)=@@@%%%'
3325 _ACEOF
3326 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3327 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3328 *@@@%%%=?*=@@@%%%*)
3329 eval ac_cv_prog_make_${ac_make}_set=yes;;
3331 eval ac_cv_prog_make_${ac_make}_set=no;;
3332 esac
3333 rm -f conftest.make
3335 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3337 $as_echo "yes" >&6; }
3338 SET_MAKE=
3339 else
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3341 $as_echo "no" >&6; }
3342 SET_MAKE="MAKE=${MAKE-make}"
3345 rm -rf .tst 2>/dev/null
3346 mkdir .tst 2>/dev/null
3347 if test -d .tst; then
3348 am__leading_dot=.
3349 else
3350 am__leading_dot=_
3352 rmdir .tst 2>/dev/null
3354 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3355 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3356 # is not polluted with repeated "-I."
3357 am__isrc=' -I$(srcdir)'
3358 # test to see if srcdir already configured
3359 if test -f $srcdir/config.status; then
3360 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3364 # test whether we have cygpath
3365 if test -z "$CYGPATH_W"; then
3366 if (cygpath --version) >/dev/null 2>/dev/null; then
3367 CYGPATH_W='cygpath -w'
3368 else
3369 CYGPATH_W=echo
3374 # Define the identity of the package.
3375 PACKAGE='libgfortran'
3376 VERSION='0.3'
3379 # Some tools Automake needs.
3381 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3384 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3387 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3390 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3393 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3395 # We need awk for the "check" target. The system "awk" is bad on
3396 # some platforms.
3397 # Always define AMTAR for backward compatibility. Yes, it's still used
3398 # in the wild :-( We should find a proper way to deprecate it ...
3399 AMTAR='$${TAR-tar}'
3401 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3410 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3411 # Check whether --enable-maintainer-mode was given.
3412 if test "${enable_maintainer_mode+set}" = set; then :
3413 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3414 else
3415 USE_MAINTAINER_MODE=no
3418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3419 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3420 if test $USE_MAINTAINER_MODE = yes; then
3421 MAINTAINER_MODE_TRUE=
3422 MAINTAINER_MODE_FALSE='#'
3423 else
3424 MAINTAINER_MODE_TRUE='#'
3425 MAINTAINER_MODE_FALSE=
3428 MAINT=$MAINTAINER_MODE_TRUE
3431 # Default to --enable-multilib
3432 # Check whether --enable-multilib was given.
3433 if test "${enable_multilib+set}" = set; then :
3434 enableval=$enable_multilib; case "$enableval" in
3435 yes) multilib=yes ;;
3436 no) multilib=no ;;
3437 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3438 esac
3439 else
3440 multilib=yes
3444 # We may get other options which we leave undocumented:
3445 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3446 # See config-ml.in if you want the gory details.
3448 if test "$srcdir" = "."; then
3449 if test "$with_target_subdir" != "."; then
3450 multi_basedir="$srcdir/$with_multisrctop../.."
3451 else
3452 multi_basedir="$srcdir/$with_multisrctop.."
3454 else
3455 multi_basedir="$srcdir/.."
3459 # Even if the default multilib is not a cross compilation,
3460 # it may be that some of the other multilibs are.
3461 if test $cross_compiling = no && test $multilib = yes \
3462 && test "x${with_multisubdir}" != x ; then
3463 cross_compiling=maybe
3466 ac_config_commands="$ac_config_commands default-1"
3469 # Handy for debugging:
3470 #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
3472 # Are we being configured with some form of cross compiler?
3473 # NB: We don't actually need to know this just now, but when, say, a test
3474 # suite is included, we'll have to know.
3475 if test "$build" != "$host"; then
3476 LIBGFOR_IS_NATIVE=false
3478 else
3479 LIBGFOR_IS_NATIVE=true
3482 DEPDIR="${am__leading_dot}deps"
3484 ac_config_commands="$ac_config_commands depfiles"
3487 am_make=${MAKE-make}
3488 cat > confinc << 'END'
3489 am__doit:
3490 @echo this is the am__doit target
3491 .PHONY: am__doit
3493 # If we don't find an include directive, just comment out the code.
3494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3495 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3496 am__include="#"
3497 am__quote=
3498 _am_result=none
3499 # First try GNU make style include.
3500 echo "include confinc" > confmf
3501 # Ignore all kinds of additional output from `make'.
3502 case `$am_make -s -f confmf 2> /dev/null` in #(
3503 *the\ am__doit\ target*)
3504 am__include=include
3505 am__quote=
3506 _am_result=GNU
3508 esac
3509 # Now try BSD make style include.
3510 if test "$am__include" = "#"; then
3511 echo '.include "confinc"' > confmf
3512 case `$am_make -s -f confmf 2> /dev/null` in #(
3513 *the\ am__doit\ target*)
3514 am__include=.include
3515 am__quote="\""
3516 _am_result=BSD
3518 esac
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3523 $as_echo "$_am_result" >&6; }
3524 rm -f confinc confmf
3526 # Check whether --enable-dependency-tracking was given.
3527 if test "${enable_dependency_tracking+set}" = set; then :
3528 enableval=$enable_dependency_tracking;
3531 if test "x$enable_dependency_tracking" != xno; then
3532 am_depcomp="$ac_aux_dir/depcomp"
3533 AMDEPBACKSLASH='\'
3534 am__nodep='_no'
3536 if test "x$enable_dependency_tracking" != xno; then
3537 AMDEP_TRUE=
3538 AMDEP_FALSE='#'
3539 else
3540 AMDEP_TRUE='#'
3541 AMDEP_FALSE=
3545 ac_ext=c
3546 ac_cpp='$CPP $CPPFLAGS'
3547 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3548 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3549 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3550 if test -n "$ac_tool_prefix"; then
3551 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3552 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3554 $as_echo_n "checking for $ac_word... " >&6; }
3555 if test "${ac_cv_prog_CC+set}" = set; then :
3556 $as_echo_n "(cached) " >&6
3557 else
3558 if test -n "$CC"; then
3559 ac_cv_prog_CC="$CC" # Let the user override the test.
3560 else
3561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3562 for as_dir in $PATH
3564 IFS=$as_save_IFS
3565 test -z "$as_dir" && as_dir=.
3566 for ac_exec_ext in '' $ac_executable_extensions; do
3567 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3568 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3569 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3570 break 2
3572 done
3573 done
3574 IFS=$as_save_IFS
3578 CC=$ac_cv_prog_CC
3579 if test -n "$CC"; then
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3581 $as_echo "$CC" >&6; }
3582 else
3583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3584 $as_echo "no" >&6; }
3589 if test -z "$ac_cv_prog_CC"; then
3590 ac_ct_CC=$CC
3591 # Extract the first word of "gcc", so it can be a program name with args.
3592 set dummy gcc; ac_word=$2
3593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3594 $as_echo_n "checking for $ac_word... " >&6; }
3595 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3596 $as_echo_n "(cached) " >&6
3597 else
3598 if test -n "$ac_ct_CC"; then
3599 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3600 else
3601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3602 for as_dir in $PATH
3604 IFS=$as_save_IFS
3605 test -z "$as_dir" && as_dir=.
3606 for ac_exec_ext in '' $ac_executable_extensions; do
3607 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3608 ac_cv_prog_ac_ct_CC="gcc"
3609 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3610 break 2
3612 done
3613 done
3614 IFS=$as_save_IFS
3618 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3619 if test -n "$ac_ct_CC"; then
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3621 $as_echo "$ac_ct_CC" >&6; }
3622 else
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3624 $as_echo "no" >&6; }
3627 if test "x$ac_ct_CC" = x; then
3628 CC=""
3629 else
3630 case $cross_compiling:$ac_tool_warned in
3631 yes:)
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3633 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3634 ac_tool_warned=yes ;;
3635 esac
3636 CC=$ac_ct_CC
3638 else
3639 CC="$ac_cv_prog_CC"
3642 if test -z "$CC"; then
3643 if test -n "$ac_tool_prefix"; then
3644 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3645 set dummy ${ac_tool_prefix}cc; ac_word=$2
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3647 $as_echo_n "checking for $ac_word... " >&6; }
3648 if test "${ac_cv_prog_CC+set}" = set; then :
3649 $as_echo_n "(cached) " >&6
3650 else
3651 if test -n "$CC"; then
3652 ac_cv_prog_CC="$CC" # Let the user override the test.
3653 else
3654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3655 for as_dir in $PATH
3657 IFS=$as_save_IFS
3658 test -z "$as_dir" && as_dir=.
3659 for ac_exec_ext in '' $ac_executable_extensions; do
3660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3661 ac_cv_prog_CC="${ac_tool_prefix}cc"
3662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3663 break 2
3665 done
3666 done
3667 IFS=$as_save_IFS
3671 CC=$ac_cv_prog_CC
3672 if test -n "$CC"; then
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3674 $as_echo "$CC" >&6; }
3675 else
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3677 $as_echo "no" >&6; }
3683 if test -z "$CC"; then
3684 # Extract the first word of "cc", so it can be a program name with args.
3685 set dummy cc; ac_word=$2
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3687 $as_echo_n "checking for $ac_word... " >&6; }
3688 if test "${ac_cv_prog_CC+set}" = set; then :
3689 $as_echo_n "(cached) " >&6
3690 else
3691 if test -n "$CC"; then
3692 ac_cv_prog_CC="$CC" # Let the user override the test.
3693 else
3694 ac_prog_rejected=no
3695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3696 for as_dir in $PATH
3698 IFS=$as_save_IFS
3699 test -z "$as_dir" && as_dir=.
3700 for ac_exec_ext in '' $ac_executable_extensions; do
3701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3702 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3703 ac_prog_rejected=yes
3704 continue
3706 ac_cv_prog_CC="cc"
3707 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3708 break 2
3710 done
3711 done
3712 IFS=$as_save_IFS
3714 if test $ac_prog_rejected = yes; then
3715 # We found a bogon in the path, so make sure we never use it.
3716 set dummy $ac_cv_prog_CC
3717 shift
3718 if test $# != 0; then
3719 # We chose a different compiler from the bogus one.
3720 # However, it has the same basename, so the bogon will be chosen
3721 # first if we set CC to just the basename; use the full file name.
3722 shift
3723 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3728 CC=$ac_cv_prog_CC
3729 if test -n "$CC"; then
3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3731 $as_echo "$CC" >&6; }
3732 else
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3734 $as_echo "no" >&6; }
3739 if test -z "$CC"; then
3740 if test -n "$ac_tool_prefix"; then
3741 for ac_prog in cl.exe
3743 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3744 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3745 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3746 $as_echo_n "checking for $ac_word... " >&6; }
3747 if test "${ac_cv_prog_CC+set}" = set; then :
3748 $as_echo_n "(cached) " >&6
3749 else
3750 if test -n "$CC"; then
3751 ac_cv_prog_CC="$CC" # Let the user override the test.
3752 else
3753 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3754 for as_dir in $PATH
3756 IFS=$as_save_IFS
3757 test -z "$as_dir" && as_dir=.
3758 for ac_exec_ext in '' $ac_executable_extensions; do
3759 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3760 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3762 break 2
3764 done
3765 done
3766 IFS=$as_save_IFS
3770 CC=$ac_cv_prog_CC
3771 if test -n "$CC"; then
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3773 $as_echo "$CC" >&6; }
3774 else
3775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3776 $as_echo "no" >&6; }
3780 test -n "$CC" && break
3781 done
3783 if test -z "$CC"; then
3784 ac_ct_CC=$CC
3785 for ac_prog in cl.exe
3787 # Extract the first word of "$ac_prog", so it can be a program name with args.
3788 set dummy $ac_prog; ac_word=$2
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3790 $as_echo_n "checking for $ac_word... " >&6; }
3791 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3792 $as_echo_n "(cached) " >&6
3793 else
3794 if test -n "$ac_ct_CC"; then
3795 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3796 else
3797 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3798 for as_dir in $PATH
3800 IFS=$as_save_IFS
3801 test -z "$as_dir" && as_dir=.
3802 for ac_exec_ext in '' $ac_executable_extensions; do
3803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3804 ac_cv_prog_ac_ct_CC="$ac_prog"
3805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3806 break 2
3808 done
3809 done
3810 IFS=$as_save_IFS
3814 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3815 if test -n "$ac_ct_CC"; then
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3817 $as_echo "$ac_ct_CC" >&6; }
3818 else
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3820 $as_echo "no" >&6; }
3824 test -n "$ac_ct_CC" && break
3825 done
3827 if test "x$ac_ct_CC" = x; then
3828 CC=""
3829 else
3830 case $cross_compiling:$ac_tool_warned in
3831 yes:)
3832 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3833 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3834 ac_tool_warned=yes ;;
3835 esac
3836 CC=$ac_ct_CC
3843 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3844 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3845 as_fn_error "no acceptable C compiler found in \$PATH
3846 See \`config.log' for more details." "$LINENO" 5; }
3848 # Provide some information about the compiler.
3849 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3850 set X $ac_compile
3851 ac_compiler=$2
3852 for ac_option in --version -v -V -qversion; do
3853 { { ac_try="$ac_compiler $ac_option >&5"
3854 case "(($ac_try" in
3855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3856 *) ac_try_echo=$ac_try;;
3857 esac
3858 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3859 $as_echo "$ac_try_echo"; } >&5
3860 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3861 ac_status=$?
3862 if test -s conftest.err; then
3863 sed '10a\
3864 ... rest of stderr output deleted ...
3865 10q' conftest.err >conftest.er1
3866 cat conftest.er1 >&5
3867 rm -f conftest.er1 conftest.err
3869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3870 test $ac_status = 0; }
3871 done
3873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3874 /* end confdefs.h. */
3877 main ()
3881 return 0;
3883 _ACEOF
3884 # FIXME: Cleanup?
3885 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3886 (eval $ac_link) 2>&5
3887 ac_status=$?
3888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3889 test $ac_status = 0; }; then :
3890 gcc_no_link=no
3891 else
3892 gcc_no_link=yes
3894 if test x$gcc_no_link = xyes; then
3895 # Setting cross_compile will disable run tests; it will
3896 # also disable AC_CHECK_FILE but that's generally
3897 # correct if we can't link.
3898 cross_compiling=yes
3899 EXEEXT=
3900 else
3901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3902 /* end confdefs.h. */
3905 main ()
3909 return 0;
3911 _ACEOF
3912 ac_clean_files_save=$ac_clean_files
3913 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3914 # Try to create an executable without -o first, disregard a.out.
3915 # It will help us diagnose broken compilers, and finding out an intuition
3916 # of exeext.
3917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3918 $as_echo_n "checking for C compiler default output file name... " >&6; }
3919 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3921 # The possible output files:
3922 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3924 ac_rmfiles=
3925 for ac_file in $ac_files
3927 case $ac_file in
3928 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3929 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3930 esac
3931 done
3932 rm -f $ac_rmfiles
3934 if { { ac_try="$ac_link_default"
3935 case "(($ac_try" in
3936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3937 *) ac_try_echo=$ac_try;;
3938 esac
3939 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3940 $as_echo "$ac_try_echo"; } >&5
3941 (eval "$ac_link_default") 2>&5
3942 ac_status=$?
3943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3944 test $ac_status = 0; }; then :
3945 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3946 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3947 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3948 # so that the user can short-circuit this test for compilers unknown to
3949 # Autoconf.
3950 for ac_file in $ac_files ''
3952 test -f "$ac_file" || continue
3953 case $ac_file in
3954 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3956 [ab].out )
3957 # We found the default executable, but exeext='' is most
3958 # certainly right.
3959 break;;
3960 *.* )
3961 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3962 then :; else
3963 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3965 # We set ac_cv_exeext here because the later test for it is not
3966 # safe: cross compilers may not add the suffix if given an `-o'
3967 # argument, so we may need to know it at that point already.
3968 # Even if this section looks crufty: it has the advantage of
3969 # actually working.
3970 break;;
3972 break;;
3973 esac
3974 done
3975 test "$ac_cv_exeext" = no && ac_cv_exeext=
3977 else
3978 ac_file=''
3980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3981 $as_echo "$ac_file" >&6; }
3982 if test -z "$ac_file"; then :
3983 $as_echo "$as_me: failed program was:" >&5
3984 sed 's/^/| /' conftest.$ac_ext >&5
3986 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3987 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3988 { as_fn_set_status 77
3989 as_fn_error "C compiler cannot create executables
3990 See \`config.log' for more details." "$LINENO" 5; }; }
3992 ac_exeext=$ac_cv_exeext
3994 # Check that the compiler produces executables we can run. If not, either
3995 # the compiler is broken, or we cross compile.
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3997 $as_echo_n "checking whether the C compiler works... " >&6; }
3998 # If not cross compiling, check that we can run a simple program.
3999 if test "$cross_compiling" != yes; then
4000 if { ac_try='./$ac_file'
4001 { { case "(($ac_try" in
4002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4003 *) ac_try_echo=$ac_try;;
4004 esac
4005 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4006 $as_echo "$ac_try_echo"; } >&5
4007 (eval "$ac_try") 2>&5
4008 ac_status=$?
4009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4010 test $ac_status = 0; }; }; then
4011 cross_compiling=no
4012 else
4013 if test "$cross_compiling" = maybe; then
4014 cross_compiling=yes
4015 else
4016 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4017 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4018 as_fn_error "cannot run C compiled programs.
4019 If you meant to cross compile, use \`--host'.
4020 See \`config.log' for more details." "$LINENO" 5; }
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4025 $as_echo "yes" >&6; }
4027 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4028 ac_clean_files=$ac_clean_files_save
4029 # Check that the compiler produces executables we can run. If not, either
4030 # the compiler is broken, or we cross compile.
4031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4032 $as_echo_n "checking whether we are cross compiling... " >&6; }
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4034 $as_echo "$cross_compiling" >&6; }
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4037 $as_echo_n "checking for suffix of executables... " >&6; }
4038 if { { ac_try="$ac_link"
4039 case "(($ac_try" in
4040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4041 *) ac_try_echo=$ac_try;;
4042 esac
4043 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4044 $as_echo "$ac_try_echo"; } >&5
4045 (eval "$ac_link") 2>&5
4046 ac_status=$?
4047 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4048 test $ac_status = 0; }; then :
4049 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4050 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4051 # work properly (i.e., refer to `conftest.exe'), while it won't with
4052 # `rm'.
4053 for ac_file in conftest.exe conftest conftest.*; do
4054 test -f "$ac_file" || continue
4055 case $ac_file in
4056 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4057 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4058 break;;
4059 * ) break;;
4060 esac
4061 done
4062 else
4063 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4064 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4065 as_fn_error "cannot compute suffix of executables: cannot compile and link
4066 See \`config.log' for more details." "$LINENO" 5; }
4068 rm -f conftest$ac_cv_exeext
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4070 $as_echo "$ac_cv_exeext" >&6; }
4072 rm -f conftest.$ac_ext
4073 EXEEXT=$ac_cv_exeext
4074 ac_exeext=$EXEEXT
4076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4077 $as_echo_n "checking for suffix of object files... " >&6; }
4078 if test "${ac_cv_objext+set}" = set; then :
4079 $as_echo_n "(cached) " >&6
4080 else
4081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4082 /* end confdefs.h. */
4085 main ()
4089 return 0;
4091 _ACEOF
4092 rm -f conftest.o conftest.obj
4093 if { { ac_try="$ac_compile"
4094 case "(($ac_try" in
4095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4096 *) ac_try_echo=$ac_try;;
4097 esac
4098 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4099 $as_echo "$ac_try_echo"; } >&5
4100 (eval "$ac_compile") 2>&5
4101 ac_status=$?
4102 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4103 test $ac_status = 0; }; then :
4104 for ac_file in conftest.o conftest.obj conftest.*; do
4105 test -f "$ac_file" || continue;
4106 case $ac_file in
4107 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4108 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4109 break;;
4110 esac
4111 done
4112 else
4113 $as_echo "$as_me: failed program was:" >&5
4114 sed 's/^/| /' conftest.$ac_ext >&5
4116 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4117 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4118 as_fn_error "cannot compute suffix of object files: cannot compile
4119 See \`config.log' for more details." "$LINENO" 5; }
4121 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4124 $as_echo "$ac_cv_objext" >&6; }
4125 OBJEXT=$ac_cv_objext
4126 ac_objext=$OBJEXT
4127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4128 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4129 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4130 $as_echo_n "(cached) " >&6
4131 else
4132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4133 /* end confdefs.h. */
4136 main ()
4138 #ifndef __GNUC__
4139 choke me
4140 #endif
4143 return 0;
4145 _ACEOF
4146 if ac_fn_c_try_compile "$LINENO"; then :
4147 ac_compiler_gnu=yes
4148 else
4149 ac_compiler_gnu=no
4151 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4152 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4156 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4157 if test $ac_compiler_gnu = yes; then
4158 GCC=yes
4159 else
4160 GCC=
4162 ac_test_CFLAGS=${CFLAGS+set}
4163 ac_save_CFLAGS=$CFLAGS
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4165 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4166 if test "${ac_cv_prog_cc_g+set}" = set; then :
4167 $as_echo_n "(cached) " >&6
4168 else
4169 ac_save_c_werror_flag=$ac_c_werror_flag
4170 ac_c_werror_flag=yes
4171 ac_cv_prog_cc_g=no
4172 CFLAGS="-g"
4173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4174 /* end confdefs.h. */
4177 main ()
4181 return 0;
4183 _ACEOF
4184 if ac_fn_c_try_compile "$LINENO"; then :
4185 ac_cv_prog_cc_g=yes
4186 else
4187 CFLAGS=""
4188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4189 /* end confdefs.h. */
4192 main ()
4196 return 0;
4198 _ACEOF
4199 if ac_fn_c_try_compile "$LINENO"; then :
4201 else
4202 ac_c_werror_flag=$ac_save_c_werror_flag
4203 CFLAGS="-g"
4204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4205 /* end confdefs.h. */
4208 main ()
4212 return 0;
4214 _ACEOF
4215 if ac_fn_c_try_compile "$LINENO"; then :
4216 ac_cv_prog_cc_g=yes
4218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4223 ac_c_werror_flag=$ac_save_c_werror_flag
4225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4226 $as_echo "$ac_cv_prog_cc_g" >&6; }
4227 if test "$ac_test_CFLAGS" = set; then
4228 CFLAGS=$ac_save_CFLAGS
4229 elif test $ac_cv_prog_cc_g = yes; then
4230 if test "$GCC" = yes; then
4231 CFLAGS="-g -O2"
4232 else
4233 CFLAGS="-g"
4235 else
4236 if test "$GCC" = yes; then
4237 CFLAGS="-O2"
4238 else
4239 CFLAGS=
4242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4243 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4244 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4245 $as_echo_n "(cached) " >&6
4246 else
4247 ac_cv_prog_cc_c89=no
4248 ac_save_CC=$CC
4249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4250 /* end confdefs.h. */
4251 #include <stdarg.h>
4252 #include <stdio.h>
4253 #include <sys/types.h>
4254 #include <sys/stat.h>
4255 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4256 struct buf { int x; };
4257 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4258 static char *e (p, i)
4259 char **p;
4260 int i;
4262 return p[i];
4264 static char *f (char * (*g) (char **, int), char **p, ...)
4266 char *s;
4267 va_list v;
4268 va_start (v,p);
4269 s = g (p, va_arg (v,int));
4270 va_end (v);
4271 return s;
4274 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4275 function prototypes and stuff, but not '\xHH' hex character constants.
4276 These don't provoke an error unfortunately, instead are silently treated
4277 as 'x'. The following induces an error, until -std is added to get
4278 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4279 array size at least. It's necessary to write '\x00'==0 to get something
4280 that's true only with -std. */
4281 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4283 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4284 inside strings and character constants. */
4285 #define FOO(x) 'x'
4286 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4288 int test (int i, double x);
4289 struct s1 {int (*f) (int a);};
4290 struct s2 {int (*f) (double a);};
4291 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4292 int argc;
4293 char **argv;
4295 main ()
4297 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4299 return 0;
4301 _ACEOF
4302 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4303 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4305 CC="$ac_save_CC $ac_arg"
4306 if ac_fn_c_try_compile "$LINENO"; then :
4307 ac_cv_prog_cc_c89=$ac_arg
4309 rm -f core conftest.err conftest.$ac_objext
4310 test "x$ac_cv_prog_cc_c89" != "xno" && break
4311 done
4312 rm -f conftest.$ac_ext
4313 CC=$ac_save_CC
4316 # AC_CACHE_VAL
4317 case "x$ac_cv_prog_cc_c89" in
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4320 $as_echo "none needed" >&6; } ;;
4321 xno)
4322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4323 $as_echo "unsupported" >&6; } ;;
4325 CC="$CC $ac_cv_prog_cc_c89"
4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4327 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4328 esac
4329 if test "x$ac_cv_prog_cc_c89" != xno; then :
4333 ac_ext=c
4334 ac_cpp='$CPP $CPPFLAGS'
4335 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4336 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4337 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4339 depcc="$CC" am_compiler_list=
4341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4342 $as_echo_n "checking dependency style of $depcc... " >&6; }
4343 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4344 $as_echo_n "(cached) " >&6
4345 else
4346 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4347 # We make a subdir and do the tests there. Otherwise we can end up
4348 # making bogus files that we don't know about and never remove. For
4349 # instance it was reported that on HP-UX the gcc test will end up
4350 # making a dummy file named `D' -- because `-MD' means `put the output
4351 # in D'.
4352 rm -rf conftest.dir
4353 mkdir conftest.dir
4354 # Copy depcomp to subdir because otherwise we won't find it if we're
4355 # using a relative directory.
4356 cp "$am_depcomp" conftest.dir
4357 cd conftest.dir
4358 # We will build objects and dependencies in a subdirectory because
4359 # it helps to detect inapplicable dependency modes. For instance
4360 # both Tru64's cc and ICC support -MD to output dependencies as a
4361 # side effect of compilation, but ICC will put the dependencies in
4362 # the current directory while Tru64 will put them in the object
4363 # directory.
4364 mkdir sub
4366 am_cv_CC_dependencies_compiler_type=none
4367 if test "$am_compiler_list" = ""; then
4368 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4370 am__universal=false
4371 case " $depcc " in #(
4372 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4373 esac
4375 for depmode in $am_compiler_list; do
4376 # Setup a source with many dependencies, because some compilers
4377 # like to wrap large dependency lists on column 80 (with \), and
4378 # we should not choose a depcomp mode which is confused by this.
4380 # We need to recreate these files for each test, as the compiler may
4381 # overwrite some of them when testing with obscure command lines.
4382 # This happens at least with the AIX C compiler.
4383 : > sub/conftest.c
4384 for i in 1 2 3 4 5 6; do
4385 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4386 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4387 # Solaris 8's {/usr,}/bin/sh.
4388 touch sub/conftst$i.h
4389 done
4390 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4392 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4393 # mode. It turns out that the SunPro C++ compiler does not properly
4394 # handle `-M -o', and we need to detect this. Also, some Intel
4395 # versions had trouble with output in subdirs
4396 am__obj=sub/conftest.${OBJEXT-o}
4397 am__minus_obj="-o $am__obj"
4398 case $depmode in
4399 gcc)
4400 # This depmode causes a compiler race in universal mode.
4401 test "$am__universal" = false || continue
4403 nosideeffect)
4404 # after this tag, mechanisms are not by side-effect, so they'll
4405 # only be used when explicitly requested
4406 if test "x$enable_dependency_tracking" = xyes; then
4407 continue
4408 else
4409 break
4412 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4413 # This compiler won't grok `-c -o', but also, the minuso test has
4414 # not run yet. These depmodes are late enough in the game, and
4415 # so weak that their functioning should not be impacted.
4416 am__obj=conftest.${OBJEXT-o}
4417 am__minus_obj=
4419 none) break ;;
4420 esac
4421 if depmode=$depmode \
4422 source=sub/conftest.c object=$am__obj \
4423 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4424 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4425 >/dev/null 2>conftest.err &&
4426 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4427 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4428 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4429 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4430 # icc doesn't choke on unknown options, it will just issue warnings
4431 # or remarks (even with -Werror). So we grep stderr for any message
4432 # that says an option was ignored or not supported.
4433 # When given -MP, icc 7.0 and 7.1 complain thusly:
4434 # icc: Command line warning: ignoring option '-M'; no argument required
4435 # The diagnosis changed in icc 8.0:
4436 # icc: Command line remark: option '-MP' not supported
4437 if (grep 'ignoring option' conftest.err ||
4438 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4439 am_cv_CC_dependencies_compiler_type=$depmode
4440 break
4443 done
4445 cd ..
4446 rm -rf conftest.dir
4447 else
4448 am_cv_CC_dependencies_compiler_type=none
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4453 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4454 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4457 test "x$enable_dependency_tracking" != xno \
4458 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4459 am__fastdepCC_TRUE=
4460 am__fastdepCC_FALSE='#'
4461 else
4462 am__fastdepCC_TRUE='#'
4463 am__fastdepCC_FALSE=
4468 ac_ext=c
4469 ac_cpp='$CPP $CPPFLAGS'
4470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4474 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4475 # On Suns, sometimes $CPP names a directory.
4476 if test -n "$CPP" && test -d "$CPP"; then
4477 CPP=
4479 if test -z "$CPP"; then
4480 if test "${ac_cv_prog_CPP+set}" = set; then :
4481 $as_echo_n "(cached) " >&6
4482 else
4483 # Double quotes because CPP needs to be expanded
4484 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4486 ac_preproc_ok=false
4487 for ac_c_preproc_warn_flag in '' yes
4489 # Use a header file that comes with gcc, so configuring glibc
4490 # with a fresh cross-compiler works.
4491 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4492 # <limits.h> exists even on freestanding compilers.
4493 # On the NeXT, cc -E runs the code through the compiler's parser,
4494 # not just through cpp. "Syntax error" is here to catch this case.
4495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4496 /* end confdefs.h. */
4497 #ifdef __STDC__
4498 # include <limits.h>
4499 #else
4500 # include <assert.h>
4501 #endif
4502 Syntax error
4503 _ACEOF
4504 if ac_fn_c_try_cpp "$LINENO"; then :
4506 else
4507 # Broken: fails on valid input.
4508 continue
4510 rm -f conftest.err conftest.$ac_ext
4512 # OK, works on sane cases. Now check whether nonexistent headers
4513 # can be detected and how.
4514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4515 /* end confdefs.h. */
4516 #include <ac_nonexistent.h>
4517 _ACEOF
4518 if ac_fn_c_try_cpp "$LINENO"; then :
4519 # Broken: success on invalid input.
4520 continue
4521 else
4522 # Passes both tests.
4523 ac_preproc_ok=:
4524 break
4526 rm -f conftest.err conftest.$ac_ext
4528 done
4529 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4530 rm -f conftest.err conftest.$ac_ext
4531 if $ac_preproc_ok; then :
4532 break
4535 done
4536 ac_cv_prog_CPP=$CPP
4539 CPP=$ac_cv_prog_CPP
4540 else
4541 ac_cv_prog_CPP=$CPP
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4544 $as_echo "$CPP" >&6; }
4545 ac_preproc_ok=false
4546 for ac_c_preproc_warn_flag in '' yes
4548 # Use a header file that comes with gcc, so configuring glibc
4549 # with a fresh cross-compiler works.
4550 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4551 # <limits.h> exists even on freestanding compilers.
4552 # On the NeXT, cc -E runs the code through the compiler's parser,
4553 # not just through cpp. "Syntax error" is here to catch this case.
4554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4555 /* end confdefs.h. */
4556 #ifdef __STDC__
4557 # include <limits.h>
4558 #else
4559 # include <assert.h>
4560 #endif
4561 Syntax error
4562 _ACEOF
4563 if ac_fn_c_try_cpp "$LINENO"; then :
4565 else
4566 # Broken: fails on valid input.
4567 continue
4569 rm -f conftest.err conftest.$ac_ext
4571 # OK, works on sane cases. Now check whether nonexistent headers
4572 # can be detected and how.
4573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4574 /* end confdefs.h. */
4575 #include <ac_nonexistent.h>
4576 _ACEOF
4577 if ac_fn_c_try_cpp "$LINENO"; then :
4578 # Broken: success on invalid input.
4579 continue
4580 else
4581 # Passes both tests.
4582 ac_preproc_ok=:
4583 break
4585 rm -f conftest.err conftest.$ac_ext
4587 done
4588 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4589 rm -f conftest.err conftest.$ac_ext
4590 if $ac_preproc_ok; then :
4592 else
4593 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4594 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4595 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4596 See \`config.log' for more details." "$LINENO" 5; }
4599 ac_ext=c
4600 ac_cpp='$CPP $CPPFLAGS'
4601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4607 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4608 if test "${ac_cv_path_GREP+set}" = set; then :
4609 $as_echo_n "(cached) " >&6
4610 else
4611 if test -z "$GREP"; then
4612 ac_path_GREP_found=false
4613 # Loop through the user's path and test for each of PROGNAME-LIST
4614 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4615 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4617 IFS=$as_save_IFS
4618 test -z "$as_dir" && as_dir=.
4619 for ac_prog in grep ggrep; do
4620 for ac_exec_ext in '' $ac_executable_extensions; do
4621 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4622 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4623 # Check for GNU ac_path_GREP and select it if it is found.
4624 # Check for GNU $ac_path_GREP
4625 case `"$ac_path_GREP" --version 2>&1` in
4626 *GNU*)
4627 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4629 ac_count=0
4630 $as_echo_n 0123456789 >"conftest.in"
4631 while :
4633 cat "conftest.in" "conftest.in" >"conftest.tmp"
4634 mv "conftest.tmp" "conftest.in"
4635 cp "conftest.in" "conftest.nl"
4636 $as_echo 'GREP' >> "conftest.nl"
4637 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4638 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4639 as_fn_arith $ac_count + 1 && ac_count=$as_val
4640 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4641 # Best one so far, save it but keep looking for a better one
4642 ac_cv_path_GREP="$ac_path_GREP"
4643 ac_path_GREP_max=$ac_count
4645 # 10*(2^10) chars as input seems more than enough
4646 test $ac_count -gt 10 && break
4647 done
4648 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4649 esac
4651 $ac_path_GREP_found && break 3
4652 done
4653 done
4654 done
4655 IFS=$as_save_IFS
4656 if test -z "$ac_cv_path_GREP"; then
4657 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4659 else
4660 ac_cv_path_GREP=$GREP
4664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4665 $as_echo "$ac_cv_path_GREP" >&6; }
4666 GREP="$ac_cv_path_GREP"
4669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4670 $as_echo_n "checking for egrep... " >&6; }
4671 if test "${ac_cv_path_EGREP+set}" = set; then :
4672 $as_echo_n "(cached) " >&6
4673 else
4674 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4675 then ac_cv_path_EGREP="$GREP -E"
4676 else
4677 if test -z "$EGREP"; then
4678 ac_path_EGREP_found=false
4679 # Loop through the user's path and test for each of PROGNAME-LIST
4680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4681 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4683 IFS=$as_save_IFS
4684 test -z "$as_dir" && as_dir=.
4685 for ac_prog in egrep; do
4686 for ac_exec_ext in '' $ac_executable_extensions; do
4687 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4688 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4689 # Check for GNU ac_path_EGREP and select it if it is found.
4690 # Check for GNU $ac_path_EGREP
4691 case `"$ac_path_EGREP" --version 2>&1` in
4692 *GNU*)
4693 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4695 ac_count=0
4696 $as_echo_n 0123456789 >"conftest.in"
4697 while :
4699 cat "conftest.in" "conftest.in" >"conftest.tmp"
4700 mv "conftest.tmp" "conftest.in"
4701 cp "conftest.in" "conftest.nl"
4702 $as_echo 'EGREP' >> "conftest.nl"
4703 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4704 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4705 as_fn_arith $ac_count + 1 && ac_count=$as_val
4706 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4707 # Best one so far, save it but keep looking for a better one
4708 ac_cv_path_EGREP="$ac_path_EGREP"
4709 ac_path_EGREP_max=$ac_count
4711 # 10*(2^10) chars as input seems more than enough
4712 test $ac_count -gt 10 && break
4713 done
4714 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4715 esac
4717 $ac_path_EGREP_found && break 3
4718 done
4719 done
4720 done
4721 IFS=$as_save_IFS
4722 if test -z "$ac_cv_path_EGREP"; then
4723 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4725 else
4726 ac_cv_path_EGREP=$EGREP
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4732 $as_echo "$ac_cv_path_EGREP" >&6; }
4733 EGREP="$ac_cv_path_EGREP"
4736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4737 $as_echo_n "checking for ANSI C header files... " >&6; }
4738 if test "${ac_cv_header_stdc+set}" = set; then :
4739 $as_echo_n "(cached) " >&6
4740 else
4741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4742 /* end confdefs.h. */
4743 #include <stdlib.h>
4744 #include <stdarg.h>
4745 #include <string.h>
4746 #include <float.h>
4749 main ()
4753 return 0;
4755 _ACEOF
4756 if ac_fn_c_try_compile "$LINENO"; then :
4757 ac_cv_header_stdc=yes
4758 else
4759 ac_cv_header_stdc=no
4761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4763 if test $ac_cv_header_stdc = yes; then
4764 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4766 /* end confdefs.h. */
4767 #include <string.h>
4769 _ACEOF
4770 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4771 $EGREP "memchr" >/dev/null 2>&1; then :
4773 else
4774 ac_cv_header_stdc=no
4776 rm -f conftest*
4780 if test $ac_cv_header_stdc = yes; then
4781 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4783 /* end confdefs.h. */
4784 #include <stdlib.h>
4786 _ACEOF
4787 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4788 $EGREP "free" >/dev/null 2>&1; then :
4790 else
4791 ac_cv_header_stdc=no
4793 rm -f conftest*
4797 if test $ac_cv_header_stdc = yes; then
4798 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4799 if test "$cross_compiling" = yes; then :
4801 else
4802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4803 /* end confdefs.h. */
4804 #include <ctype.h>
4805 #include <stdlib.h>
4806 #if ((' ' & 0x0FF) == 0x020)
4807 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4808 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4809 #else
4810 # define ISLOWER(c) \
4811 (('a' <= (c) && (c) <= 'i') \
4812 || ('j' <= (c) && (c) <= 'r') \
4813 || ('s' <= (c) && (c) <= 'z'))
4814 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4815 #endif
4817 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4819 main ()
4821 int i;
4822 for (i = 0; i < 256; i++)
4823 if (XOR (islower (i), ISLOWER (i))
4824 || toupper (i) != TOUPPER (i))
4825 return 2;
4826 return 0;
4828 _ACEOF
4829 if ac_fn_c_try_run "$LINENO"; then :
4831 else
4832 ac_cv_header_stdc=no
4834 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4835 conftest.$ac_objext conftest.beam conftest.$ac_ext
4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4841 $as_echo "$ac_cv_header_stdc" >&6; }
4842 if test $ac_cv_header_stdc = yes; then
4844 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4848 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4849 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4850 inttypes.h stdint.h unistd.h
4851 do :
4852 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4853 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4855 eval as_val=\$$as_ac_Header
4856 if test "x$as_val" = x""yes; then :
4857 cat >>confdefs.h <<_ACEOF
4858 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4859 _ACEOF
4863 done
4867 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4868 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4869 MINIX=yes
4870 else
4871 MINIX=
4875 if test "$MINIX" = yes; then
4877 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4880 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4883 $as_echo "#define _MINIX 1" >>confdefs.h
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4889 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4890 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4891 $as_echo_n "(cached) " >&6
4892 else
4893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4894 /* end confdefs.h. */
4896 # define __EXTENSIONS__ 1
4897 $ac_includes_default
4899 main ()
4903 return 0;
4905 _ACEOF
4906 if ac_fn_c_try_compile "$LINENO"; then :
4907 ac_cv_safe_to_define___extensions__=yes
4908 else
4909 ac_cv_safe_to_define___extensions__=no
4911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4914 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4915 test $ac_cv_safe_to_define___extensions__ = yes &&
4916 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4918 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4920 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4922 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4924 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4928 # Calculate toolexeclibdir
4929 # Also toolexecdir, though it's only used in toolexeclibdir
4930 case ${version_specific_libs} in
4931 yes)
4932 # Need the gcc compiler version to know where to install libraries
4933 # and header files if --enable-version-specific-runtime-libs option
4934 # is selected.
4935 toolexecdir='$(libdir)/gcc/$(target_alias)'
4936 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
4939 if test -n "$with_cross_host" &&
4940 test x"$with_cross_host" != x"no"; then
4941 # Install a library built with a cross compiler in tooldir, not libdir.
4942 toolexecdir='$(exec_prefix)/$(target_alias)'
4943 toolexeclibdir='$(toolexecdir)/lib'
4944 else
4945 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
4946 toolexeclibdir='$(libdir)'
4948 multi_os_directory=`$CC -print-multi-os-directory`
4949 case $multi_os_directory in
4950 .) ;; # Avoid trailing /.
4951 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
4952 esac
4954 esac
4958 # Create a spec file, so that compile/link tests don't fail
4959 test -f libgfortran.spec || touch libgfortran.spec
4961 ac_ext=c
4962 ac_cpp='$CPP $CPPFLAGS'
4963 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4964 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4965 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4967 # Check the compiler.
4968 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
4969 # We must force CC to /not/ be precious variables; otherwise
4970 # the wrong, non-multilib-adjusted value will be used in multilibs.
4971 # As a side effect, we have to subst CFLAGS ourselves.
4975 ac_ext=c
4976 ac_cpp='$CPP $CPPFLAGS'
4977 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4978 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4979 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4980 if test -n "$ac_tool_prefix"; then
4981 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4982 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4984 $as_echo_n "checking for $ac_word... " >&6; }
4985 if test "${ac_cv_prog_CC+set}" = set; then :
4986 $as_echo_n "(cached) " >&6
4987 else
4988 if test -n "$CC"; then
4989 ac_cv_prog_CC="$CC" # Let the user override the test.
4990 else
4991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4992 for as_dir in $PATH
4994 IFS=$as_save_IFS
4995 test -z "$as_dir" && as_dir=.
4996 for ac_exec_ext in '' $ac_executable_extensions; do
4997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4998 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5000 break 2
5002 done
5003 done
5004 IFS=$as_save_IFS
5008 CC=$ac_cv_prog_CC
5009 if test -n "$CC"; then
5010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5011 $as_echo "$CC" >&6; }
5012 else
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5014 $as_echo "no" >&6; }
5019 if test -z "$ac_cv_prog_CC"; then
5020 ac_ct_CC=$CC
5021 # Extract the first word of "gcc", so it can be a program name with args.
5022 set dummy gcc; ac_word=$2
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5024 $as_echo_n "checking for $ac_word... " >&6; }
5025 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5026 $as_echo_n "(cached) " >&6
5027 else
5028 if test -n "$ac_ct_CC"; then
5029 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5030 else
5031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5032 for as_dir in $PATH
5034 IFS=$as_save_IFS
5035 test -z "$as_dir" && as_dir=.
5036 for ac_exec_ext in '' $ac_executable_extensions; do
5037 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5038 ac_cv_prog_ac_ct_CC="gcc"
5039 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5040 break 2
5042 done
5043 done
5044 IFS=$as_save_IFS
5048 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5049 if test -n "$ac_ct_CC"; then
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5051 $as_echo "$ac_ct_CC" >&6; }
5052 else
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5054 $as_echo "no" >&6; }
5057 if test "x$ac_ct_CC" = x; then
5058 CC=""
5059 else
5060 case $cross_compiling:$ac_tool_warned in
5061 yes:)
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5063 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5064 ac_tool_warned=yes ;;
5065 esac
5066 CC=$ac_ct_CC
5068 else
5069 CC="$ac_cv_prog_CC"
5072 if test -z "$CC"; then
5073 if test -n "$ac_tool_prefix"; then
5074 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5075 set dummy ${ac_tool_prefix}cc; ac_word=$2
5076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5077 $as_echo_n "checking for $ac_word... " >&6; }
5078 if test "${ac_cv_prog_CC+set}" = set; then :
5079 $as_echo_n "(cached) " >&6
5080 else
5081 if test -n "$CC"; then
5082 ac_cv_prog_CC="$CC" # Let the user override the test.
5083 else
5084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5085 for as_dir in $PATH
5087 IFS=$as_save_IFS
5088 test -z "$as_dir" && as_dir=.
5089 for ac_exec_ext in '' $ac_executable_extensions; do
5090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5091 ac_cv_prog_CC="${ac_tool_prefix}cc"
5092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5093 break 2
5095 done
5096 done
5097 IFS=$as_save_IFS
5101 CC=$ac_cv_prog_CC
5102 if test -n "$CC"; then
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5104 $as_echo "$CC" >&6; }
5105 else
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5107 $as_echo "no" >&6; }
5113 if test -z "$CC"; then
5114 # Extract the first word of "cc", so it can be a program name with args.
5115 set dummy cc; ac_word=$2
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5117 $as_echo_n "checking for $ac_word... " >&6; }
5118 if test "${ac_cv_prog_CC+set}" = set; then :
5119 $as_echo_n "(cached) " >&6
5120 else
5121 if test -n "$CC"; then
5122 ac_cv_prog_CC="$CC" # Let the user override the test.
5123 else
5124 ac_prog_rejected=no
5125 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5126 for as_dir in $PATH
5128 IFS=$as_save_IFS
5129 test -z "$as_dir" && as_dir=.
5130 for ac_exec_ext in '' $ac_executable_extensions; do
5131 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5132 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5133 ac_prog_rejected=yes
5134 continue
5136 ac_cv_prog_CC="cc"
5137 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5138 break 2
5140 done
5141 done
5142 IFS=$as_save_IFS
5144 if test $ac_prog_rejected = yes; then
5145 # We found a bogon in the path, so make sure we never use it.
5146 set dummy $ac_cv_prog_CC
5147 shift
5148 if test $# != 0; then
5149 # We chose a different compiler from the bogus one.
5150 # However, it has the same basename, so the bogon will be chosen
5151 # first if we set CC to just the basename; use the full file name.
5152 shift
5153 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5158 CC=$ac_cv_prog_CC
5159 if test -n "$CC"; then
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5161 $as_echo "$CC" >&6; }
5162 else
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5164 $as_echo "no" >&6; }
5169 if test -z "$CC"; then
5170 if test -n "$ac_tool_prefix"; then
5171 for ac_prog in cl.exe
5173 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5174 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5176 $as_echo_n "checking for $ac_word... " >&6; }
5177 if test "${ac_cv_prog_CC+set}" = set; then :
5178 $as_echo_n "(cached) " >&6
5179 else
5180 if test -n "$CC"; then
5181 ac_cv_prog_CC="$CC" # Let the user override the test.
5182 else
5183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5184 for as_dir in $PATH
5186 IFS=$as_save_IFS
5187 test -z "$as_dir" && as_dir=.
5188 for ac_exec_ext in '' $ac_executable_extensions; do
5189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5190 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5192 break 2
5194 done
5195 done
5196 IFS=$as_save_IFS
5200 CC=$ac_cv_prog_CC
5201 if test -n "$CC"; then
5202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5203 $as_echo "$CC" >&6; }
5204 else
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5206 $as_echo "no" >&6; }
5210 test -n "$CC" && break
5211 done
5213 if test -z "$CC"; then
5214 ac_ct_CC=$CC
5215 for ac_prog in cl.exe
5217 # Extract the first word of "$ac_prog", so it can be a program name with args.
5218 set dummy $ac_prog; ac_word=$2
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5220 $as_echo_n "checking for $ac_word... " >&6; }
5221 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5222 $as_echo_n "(cached) " >&6
5223 else
5224 if test -n "$ac_ct_CC"; then
5225 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5226 else
5227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5228 for as_dir in $PATH
5230 IFS=$as_save_IFS
5231 test -z "$as_dir" && as_dir=.
5232 for ac_exec_ext in '' $ac_executable_extensions; do
5233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5234 ac_cv_prog_ac_ct_CC="$ac_prog"
5235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5236 break 2
5238 done
5239 done
5240 IFS=$as_save_IFS
5244 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5245 if test -n "$ac_ct_CC"; then
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5247 $as_echo "$ac_ct_CC" >&6; }
5248 else
5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5250 $as_echo "no" >&6; }
5254 test -n "$ac_ct_CC" && break
5255 done
5257 if test "x$ac_ct_CC" = x; then
5258 CC=""
5259 else
5260 case $cross_compiling:$ac_tool_warned in
5261 yes:)
5262 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5263 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5264 ac_tool_warned=yes ;;
5265 esac
5266 CC=$ac_ct_CC
5273 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5274 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5275 as_fn_error "no acceptable C compiler found in \$PATH
5276 See \`config.log' for more details." "$LINENO" 5; }
5278 # Provide some information about the compiler.
5279 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5280 set X $ac_compile
5281 ac_compiler=$2
5282 for ac_option in --version -v -V -qversion; do
5283 { { ac_try="$ac_compiler $ac_option >&5"
5284 case "(($ac_try" in
5285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5286 *) ac_try_echo=$ac_try;;
5287 esac
5288 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5289 $as_echo "$ac_try_echo"; } >&5
5290 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5291 ac_status=$?
5292 if test -s conftest.err; then
5293 sed '10a\
5294 ... rest of stderr output deleted ...
5295 10q' conftest.err >conftest.er1
5296 cat conftest.er1 >&5
5297 rm -f conftest.er1 conftest.err
5299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5300 test $ac_status = 0; }
5301 done
5303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5304 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5305 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5306 $as_echo_n "(cached) " >&6
5307 else
5308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5309 /* end confdefs.h. */
5312 main ()
5314 #ifndef __GNUC__
5315 choke me
5316 #endif
5319 return 0;
5321 _ACEOF
5322 if ac_fn_c_try_compile "$LINENO"; then :
5323 ac_compiler_gnu=yes
5324 else
5325 ac_compiler_gnu=no
5327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5328 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5332 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5333 if test $ac_compiler_gnu = yes; then
5334 GCC=yes
5335 else
5336 GCC=
5338 ac_test_CFLAGS=${CFLAGS+set}
5339 ac_save_CFLAGS=$CFLAGS
5340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5341 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5342 if test "${ac_cv_prog_cc_g+set}" = set; then :
5343 $as_echo_n "(cached) " >&6
5344 else
5345 ac_save_c_werror_flag=$ac_c_werror_flag
5346 ac_c_werror_flag=yes
5347 ac_cv_prog_cc_g=no
5348 CFLAGS="-g"
5349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5350 /* end confdefs.h. */
5353 main ()
5357 return 0;
5359 _ACEOF
5360 if ac_fn_c_try_compile "$LINENO"; then :
5361 ac_cv_prog_cc_g=yes
5362 else
5363 CFLAGS=""
5364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5365 /* end confdefs.h. */
5368 main ()
5372 return 0;
5374 _ACEOF
5375 if ac_fn_c_try_compile "$LINENO"; then :
5377 else
5378 ac_c_werror_flag=$ac_save_c_werror_flag
5379 CFLAGS="-g"
5380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5381 /* end confdefs.h. */
5384 main ()
5388 return 0;
5390 _ACEOF
5391 if ac_fn_c_try_compile "$LINENO"; then :
5392 ac_cv_prog_cc_g=yes
5394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5399 ac_c_werror_flag=$ac_save_c_werror_flag
5401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5402 $as_echo "$ac_cv_prog_cc_g" >&6; }
5403 if test "$ac_test_CFLAGS" = set; then
5404 CFLAGS=$ac_save_CFLAGS
5405 elif test $ac_cv_prog_cc_g = yes; then
5406 if test "$GCC" = yes; then
5407 CFLAGS="-g -O2"
5408 else
5409 CFLAGS="-g"
5411 else
5412 if test "$GCC" = yes; then
5413 CFLAGS="-O2"
5414 else
5415 CFLAGS=
5418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5419 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5420 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5421 $as_echo_n "(cached) " >&6
5422 else
5423 ac_cv_prog_cc_c89=no
5424 ac_save_CC=$CC
5425 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5426 /* end confdefs.h. */
5427 #include <stdarg.h>
5428 #include <stdio.h>
5429 #include <sys/types.h>
5430 #include <sys/stat.h>
5431 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5432 struct buf { int x; };
5433 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5434 static char *e (p, i)
5435 char **p;
5436 int i;
5438 return p[i];
5440 static char *f (char * (*g) (char **, int), char **p, ...)
5442 char *s;
5443 va_list v;
5444 va_start (v,p);
5445 s = g (p, va_arg (v,int));
5446 va_end (v);
5447 return s;
5450 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5451 function prototypes and stuff, but not '\xHH' hex character constants.
5452 These don't provoke an error unfortunately, instead are silently treated
5453 as 'x'. The following induces an error, until -std is added to get
5454 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5455 array size at least. It's necessary to write '\x00'==0 to get something
5456 that's true only with -std. */
5457 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5459 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5460 inside strings and character constants. */
5461 #define FOO(x) 'x'
5462 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5464 int test (int i, double x);
5465 struct s1 {int (*f) (int a);};
5466 struct s2 {int (*f) (double a);};
5467 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5468 int argc;
5469 char **argv;
5471 main ()
5473 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5475 return 0;
5477 _ACEOF
5478 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5479 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5481 CC="$ac_save_CC $ac_arg"
5482 if ac_fn_c_try_compile "$LINENO"; then :
5483 ac_cv_prog_cc_c89=$ac_arg
5485 rm -f core conftest.err conftest.$ac_objext
5486 test "x$ac_cv_prog_cc_c89" != "xno" && break
5487 done
5488 rm -f conftest.$ac_ext
5489 CC=$ac_save_CC
5492 # AC_CACHE_VAL
5493 case "x$ac_cv_prog_cc_c89" in
5495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5496 $as_echo "none needed" >&6; } ;;
5497 xno)
5498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5499 $as_echo "unsupported" >&6; } ;;
5501 CC="$CC $ac_cv_prog_cc_c89"
5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5503 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5504 esac
5505 if test "x$ac_cv_prog_cc_c89" != xno; then :
5509 ac_ext=c
5510 ac_cpp='$CPP $CPPFLAGS'
5511 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5512 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5513 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5515 depcc="$CC" am_compiler_list=
5517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5518 $as_echo_n "checking dependency style of $depcc... " >&6; }
5519 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5520 $as_echo_n "(cached) " >&6
5521 else
5522 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5523 # We make a subdir and do the tests there. Otherwise we can end up
5524 # making bogus files that we don't know about and never remove. For
5525 # instance it was reported that on HP-UX the gcc test will end up
5526 # making a dummy file named `D' -- because `-MD' means `put the output
5527 # in D'.
5528 rm -rf conftest.dir
5529 mkdir conftest.dir
5530 # Copy depcomp to subdir because otherwise we won't find it if we're
5531 # using a relative directory.
5532 cp "$am_depcomp" conftest.dir
5533 cd conftest.dir
5534 # We will build objects and dependencies in a subdirectory because
5535 # it helps to detect inapplicable dependency modes. For instance
5536 # both Tru64's cc and ICC support -MD to output dependencies as a
5537 # side effect of compilation, but ICC will put the dependencies in
5538 # the current directory while Tru64 will put them in the object
5539 # directory.
5540 mkdir sub
5542 am_cv_CC_dependencies_compiler_type=none
5543 if test "$am_compiler_list" = ""; then
5544 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5546 am__universal=false
5547 case " $depcc " in #(
5548 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5549 esac
5551 for depmode in $am_compiler_list; do
5552 # Setup a source with many dependencies, because some compilers
5553 # like to wrap large dependency lists on column 80 (with \), and
5554 # we should not choose a depcomp mode which is confused by this.
5556 # We need to recreate these files for each test, as the compiler may
5557 # overwrite some of them when testing with obscure command lines.
5558 # This happens at least with the AIX C compiler.
5559 : > sub/conftest.c
5560 for i in 1 2 3 4 5 6; do
5561 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5562 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5563 # Solaris 8's {/usr,}/bin/sh.
5564 touch sub/conftst$i.h
5565 done
5566 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5568 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5569 # mode. It turns out that the SunPro C++ compiler does not properly
5570 # handle `-M -o', and we need to detect this. Also, some Intel
5571 # versions had trouble with output in subdirs
5572 am__obj=sub/conftest.${OBJEXT-o}
5573 am__minus_obj="-o $am__obj"
5574 case $depmode in
5575 gcc)
5576 # This depmode causes a compiler race in universal mode.
5577 test "$am__universal" = false || continue
5579 nosideeffect)
5580 # after this tag, mechanisms are not by side-effect, so they'll
5581 # only be used when explicitly requested
5582 if test "x$enable_dependency_tracking" = xyes; then
5583 continue
5584 else
5585 break
5588 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5589 # This compiler won't grok `-c -o', but also, the minuso test has
5590 # not run yet. These depmodes are late enough in the game, and
5591 # so weak that their functioning should not be impacted.
5592 am__obj=conftest.${OBJEXT-o}
5593 am__minus_obj=
5595 none) break ;;
5596 esac
5597 if depmode=$depmode \
5598 source=sub/conftest.c object=$am__obj \
5599 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5600 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5601 >/dev/null 2>conftest.err &&
5602 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5603 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5604 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5605 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5606 # icc doesn't choke on unknown options, it will just issue warnings
5607 # or remarks (even with -Werror). So we grep stderr for any message
5608 # that says an option was ignored or not supported.
5609 # When given -MP, icc 7.0 and 7.1 complain thusly:
5610 # icc: Command line warning: ignoring option '-M'; no argument required
5611 # The diagnosis changed in icc 8.0:
5612 # icc: Command line remark: option '-MP' not supported
5613 if (grep 'ignoring option' conftest.err ||
5614 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5615 am_cv_CC_dependencies_compiler_type=$depmode
5616 break
5619 done
5621 cd ..
5622 rm -rf conftest.dir
5623 else
5624 am_cv_CC_dependencies_compiler_type=none
5628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5629 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5630 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5633 test "x$enable_dependency_tracking" != xno \
5634 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5635 am__fastdepCC_TRUE=
5636 am__fastdepCC_FALSE='#'
5637 else
5638 am__fastdepCC_TRUE='#'
5639 am__fastdepCC_FALSE=
5647 if test "x$CC" != xcc; then
5648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5649 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5650 else
5651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5652 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5654 set dummy $CC; ac_cc=`$as_echo "$2" |
5655 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5656 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5657 $as_echo_n "(cached) " >&6
5658 else
5659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5660 /* end confdefs.h. */
5663 main ()
5667 return 0;
5669 _ACEOF
5670 # Make sure it works both with $CC and with simple cc.
5671 # We do the test twice because some compilers refuse to overwrite an
5672 # existing .o file with -o, though they will create one.
5673 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5674 rm -f conftest2.*
5675 if { { case "(($ac_try" in
5676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5677 *) ac_try_echo=$ac_try;;
5678 esac
5679 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5680 $as_echo "$ac_try_echo"; } >&5
5681 (eval "$ac_try") 2>&5
5682 ac_status=$?
5683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5684 test $ac_status = 0; } &&
5685 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5687 *) ac_try_echo=$ac_try;;
5688 esac
5689 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5690 $as_echo "$ac_try_echo"; } >&5
5691 (eval "$ac_try") 2>&5
5692 ac_status=$?
5693 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5694 test $ac_status = 0; };
5695 then
5696 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5697 if test "x$CC" != xcc; then
5698 # Test first that cc exists at all.
5699 if { ac_try='cc -c conftest.$ac_ext >&5'
5700 { { case "(($ac_try" in
5701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5702 *) ac_try_echo=$ac_try;;
5703 esac
5704 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5705 $as_echo "$ac_try_echo"; } >&5
5706 (eval "$ac_try") 2>&5
5707 ac_status=$?
5708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5709 test $ac_status = 0; }; }; then
5710 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5711 rm -f conftest2.*
5712 if { { case "(($ac_try" in
5713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5714 *) ac_try_echo=$ac_try;;
5715 esac
5716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5717 $as_echo "$ac_try_echo"; } >&5
5718 (eval "$ac_try") 2>&5
5719 ac_status=$?
5720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5721 test $ac_status = 0; } &&
5722 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5724 *) ac_try_echo=$ac_try;;
5725 esac
5726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5727 $as_echo "$ac_try_echo"; } >&5
5728 (eval "$ac_try") 2>&5
5729 ac_status=$?
5730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5731 test $ac_status = 0; };
5732 then
5733 # cc works too.
5735 else
5736 # cc exists but doesn't like -o.
5737 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5741 else
5742 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5744 rm -f core conftest*
5747 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5749 $as_echo "yes" >&6; }
5750 else
5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5752 $as_echo "no" >&6; }
5754 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5758 # FIXME: we rely on the cache variable name because
5759 # there is no other way.
5760 set dummy $CC
5761 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5762 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5763 if test "$am_t" != yes; then
5764 # Losing compiler, so override with the script.
5765 # FIXME: It is wrong to rewrite CC.
5766 # But if we don't then we get into trouble of one sort or another.
5767 # A longer-term fix would be to have automake use am__CC in this case,
5768 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5769 CC="$am_aux_dir/compile $CC"
5774 # Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC.
5775 if test "x$GCC" = "xyes"; then
5776 AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring"
5777 ## We like to use C11 and C99 routines when available. This makes
5778 ## sure that
5779 ## __STDC_VERSION__ is set such that libc includes make them available.
5780 AM_CFLAGS="-std=gnu11 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings"
5781 ## Compile the following tests with the same system header contents
5782 ## that we'll encounter when compiling our own source files.
5783 CFLAGS="-std=gnu11 $CFLAGS"
5789 # Check for symbol versioning (copied from libssp).
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
5791 $as_echo_n "checking whether symbol versioning is supported... " >&6; }
5792 # Check whether --enable-symvers was given.
5793 if test "${enable_symvers+set}" = set; then :
5794 enableval=$enable_symvers; gfortran_use_symver=$enableval
5795 else
5796 gfortran_use_symver=yes
5799 if test "x$gfortran_use_symver" != xno; then
5800 save_LDFLAGS="$LDFLAGS"
5801 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
5802 cat > conftest.map <<EOF
5803 FOO_1.0 {
5804 global: *foo*; bar; local: *;
5807 if test x$gcc_no_link = xyes; then
5808 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5811 /* end confdefs.h. */
5812 int foo;
5814 main ()
5818 return 0;
5820 _ACEOF
5821 if ac_fn_c_try_link "$LINENO"; then :
5822 gfortran_use_symver=gnu
5823 else
5824 gfortran_use_symver=no
5826 rm -f core conftest.err conftest.$ac_objext \
5827 conftest$ac_exeext conftest.$ac_ext
5828 if test x$gfortran_use_symver = xno; then
5829 case "$target_os" in
5830 solaris2*)
5831 LDFLAGS="$save_LDFLAGS"
5832 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
5833 # Sun ld cannot handle wildcards and treats all entries as undefined.
5834 cat > conftest.map <<EOF
5835 FOO_1.0 {
5836 global: foo; local: *;
5839 if test x$gcc_no_link = xyes; then
5840 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5843 /* end confdefs.h. */
5844 int foo;
5846 main ()
5850 return 0;
5852 _ACEOF
5853 if ac_fn_c_try_link "$LINENO"; then :
5854 gfortran_use_symver=sun
5855 else
5856 gfortran_use_symver=no
5858 rm -f core conftest.err conftest.$ac_objext \
5859 conftest$ac_exeext conftest.$ac_ext
5861 esac
5863 LDFLAGS="$save_LDFLAGS"
5865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gfortran_use_symver" >&5
5866 $as_echo "$gfortran_use_symver" >&6; }
5867 if test "x$gfortran_use_symver" != xno; then
5868 LIBGFOR_USE_SYMVER_TRUE=
5869 LIBGFOR_USE_SYMVER_FALSE='#'
5870 else
5871 LIBGFOR_USE_SYMVER_TRUE='#'
5872 LIBGFOR_USE_SYMVER_FALSE=
5875 if test "x$gfortran_use_symver" = xgnu; then
5876 LIBGFOR_USE_SYMVER_GNU_TRUE=
5877 LIBGFOR_USE_SYMVER_GNU_FALSE='#'
5878 else
5879 LIBGFOR_USE_SYMVER_GNU_TRUE='#'
5880 LIBGFOR_USE_SYMVER_GNU_FALSE=
5883 if test "x$gfortran_use_symver" = xsun; then
5884 LIBGFOR_USE_SYMVER_SUN_TRUE=
5885 LIBGFOR_USE_SYMVER_SUN_FALSE='#'
5886 else
5887 LIBGFOR_USE_SYMVER_SUN_TRUE='#'
5888 LIBGFOR_USE_SYMVER_SUN_FALSE=
5892 # Figure out whether the compiler supports "-ffunction-sections -fdata-sections",
5893 # similarly to how libstdc++ does it
5894 ac_test_CFLAGS="${CFLAGS+set}"
5895 ac_save_CFLAGS="$CFLAGS"
5897 # Check for -ffunction-sections -fdata-sections
5898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc that supports -ffunction-sections -fdata-sections" >&5
5899 $as_echo_n "checking for gcc that supports -ffunction-sections -fdata-sections... " >&6; }
5900 CFLAGS='-Werror -ffunction-sections -fdata-sections'
5901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5902 /* end confdefs.h. */
5905 main ()
5907 int foo;
5909 return 0;
5911 _ACEOF
5912 if ac_fn_c_try_compile "$LINENO"; then :
5913 ac_fdsections=yes
5914 else
5915 ac_fdsections=no
5917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5918 if test "$ac_test_CFLAGS" = set; then
5919 CFLAGS="$ac_save_CFLAGS"
5920 else
5921 # this is the suspicious part
5922 CFLAGS=""
5924 if test x"$ac_fdsections" = x"yes"; then
5925 SECTION_FLAGS='-ffunction-sections -fdata-sections'
5927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5
5928 $as_echo "$ac_fdsections" >&6; }
5931 # Find other programs we need.
5932 if test -n "$ac_tool_prefix"; then
5933 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5934 set dummy ${ac_tool_prefix}as; ac_word=$2
5935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5936 $as_echo_n "checking for $ac_word... " >&6; }
5937 if test "${ac_cv_prog_AS+set}" = set; then :
5938 $as_echo_n "(cached) " >&6
5939 else
5940 if test -n "$AS"; then
5941 ac_cv_prog_AS="$AS" # Let the user override the test.
5942 else
5943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5944 for as_dir in $PATH
5946 IFS=$as_save_IFS
5947 test -z "$as_dir" && as_dir=.
5948 for ac_exec_ext in '' $ac_executable_extensions; do
5949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5950 ac_cv_prog_AS="${ac_tool_prefix}as"
5951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5952 break 2
5954 done
5955 done
5956 IFS=$as_save_IFS
5960 AS=$ac_cv_prog_AS
5961 if test -n "$AS"; then
5962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5963 $as_echo "$AS" >&6; }
5964 else
5965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5966 $as_echo "no" >&6; }
5971 if test -z "$ac_cv_prog_AS"; then
5972 ac_ct_AS=$AS
5973 # Extract the first word of "as", so it can be a program name with args.
5974 set dummy as; ac_word=$2
5975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5976 $as_echo_n "checking for $ac_word... " >&6; }
5977 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5978 $as_echo_n "(cached) " >&6
5979 else
5980 if test -n "$ac_ct_AS"; then
5981 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5982 else
5983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5984 for as_dir in $PATH
5986 IFS=$as_save_IFS
5987 test -z "$as_dir" && as_dir=.
5988 for ac_exec_ext in '' $ac_executable_extensions; do
5989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5990 ac_cv_prog_ac_ct_AS="as"
5991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5992 break 2
5994 done
5995 done
5996 IFS=$as_save_IFS
6000 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6001 if test -n "$ac_ct_AS"; then
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
6003 $as_echo "$ac_ct_AS" >&6; }
6004 else
6005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6006 $as_echo "no" >&6; }
6009 if test "x$ac_ct_AS" = x; then
6010 AS=""
6011 else
6012 case $cross_compiling:$ac_tool_warned in
6013 yes:)
6014 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6015 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6016 ac_tool_warned=yes ;;
6017 esac
6018 AS=$ac_ct_AS
6020 else
6021 AS="$ac_cv_prog_AS"
6024 if test -n "$ac_tool_prefix"; then
6025 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6026 set dummy ${ac_tool_prefix}ar; ac_word=$2
6027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6028 $as_echo_n "checking for $ac_word... " >&6; }
6029 if test "${ac_cv_prog_AR+set}" = set; then :
6030 $as_echo_n "(cached) " >&6
6031 else
6032 if test -n "$AR"; then
6033 ac_cv_prog_AR="$AR" # Let the user override the test.
6034 else
6035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6036 for as_dir in $PATH
6038 IFS=$as_save_IFS
6039 test -z "$as_dir" && as_dir=.
6040 for ac_exec_ext in '' $ac_executable_extensions; do
6041 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6042 ac_cv_prog_AR="${ac_tool_prefix}ar"
6043 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6044 break 2
6046 done
6047 done
6048 IFS=$as_save_IFS
6052 AR=$ac_cv_prog_AR
6053 if test -n "$AR"; then
6054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6055 $as_echo "$AR" >&6; }
6056 else
6057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6058 $as_echo "no" >&6; }
6063 if test -z "$ac_cv_prog_AR"; then
6064 ac_ct_AR=$AR
6065 # Extract the first word of "ar", so it can be a program name with args.
6066 set dummy ar; ac_word=$2
6067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6068 $as_echo_n "checking for $ac_word... " >&6; }
6069 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6070 $as_echo_n "(cached) " >&6
6071 else
6072 if test -n "$ac_ct_AR"; then
6073 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6074 else
6075 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6076 for as_dir in $PATH
6078 IFS=$as_save_IFS
6079 test -z "$as_dir" && as_dir=.
6080 for ac_exec_ext in '' $ac_executable_extensions; do
6081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6082 ac_cv_prog_ac_ct_AR="ar"
6083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6084 break 2
6086 done
6087 done
6088 IFS=$as_save_IFS
6092 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6093 if test -n "$ac_ct_AR"; then
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6095 $as_echo "$ac_ct_AR" >&6; }
6096 else
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6098 $as_echo "no" >&6; }
6101 if test "x$ac_ct_AR" = x; then
6102 AR=""
6103 else
6104 case $cross_compiling:$ac_tool_warned in
6105 yes:)
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6107 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6108 ac_tool_warned=yes ;;
6109 esac
6110 AR=$ac_ct_AR
6112 else
6113 AR="$ac_cv_prog_AR"
6116 if test -n "$ac_tool_prefix"; then
6117 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6118 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6120 $as_echo_n "checking for $ac_word... " >&6; }
6121 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6122 $as_echo_n "(cached) " >&6
6123 else
6124 if test -n "$RANLIB"; then
6125 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6126 else
6127 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6128 for as_dir in $PATH
6130 IFS=$as_save_IFS
6131 test -z "$as_dir" && as_dir=.
6132 for ac_exec_ext in '' $ac_executable_extensions; do
6133 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6134 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6135 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6136 break 2
6138 done
6139 done
6140 IFS=$as_save_IFS
6144 RANLIB=$ac_cv_prog_RANLIB
6145 if test -n "$RANLIB"; then
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6147 $as_echo "$RANLIB" >&6; }
6148 else
6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6150 $as_echo "no" >&6; }
6155 if test -z "$ac_cv_prog_RANLIB"; then
6156 ac_ct_RANLIB=$RANLIB
6157 # Extract the first word of "ranlib", so it can be a program name with args.
6158 set dummy ranlib; ac_word=$2
6159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6160 $as_echo_n "checking for $ac_word... " >&6; }
6161 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6162 $as_echo_n "(cached) " >&6
6163 else
6164 if test -n "$ac_ct_RANLIB"; then
6165 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6166 else
6167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6168 for as_dir in $PATH
6170 IFS=$as_save_IFS
6171 test -z "$as_dir" && as_dir=.
6172 for ac_exec_ext in '' $ac_executable_extensions; do
6173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6174 ac_cv_prog_ac_ct_RANLIB="ranlib"
6175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6176 break 2
6178 done
6179 done
6180 IFS=$as_save_IFS
6184 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6185 if test -n "$ac_ct_RANLIB"; then
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6187 $as_echo "$ac_ct_RANLIB" >&6; }
6188 else
6189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6190 $as_echo "no" >&6; }
6193 if test "x$ac_ct_RANLIB" = x; then
6194 RANLIB="ranlib-not-found-in-path-error"
6195 else
6196 case $cross_compiling:$ac_tool_warned in
6197 yes:)
6198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6199 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6200 ac_tool_warned=yes ;;
6201 esac
6202 RANLIB=$ac_ct_RANLIB
6204 else
6205 RANLIB="$ac_cv_prog_RANLIB"
6208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6209 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6210 set x ${MAKE-make}
6211 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6212 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6213 $as_echo_n "(cached) " >&6
6214 else
6215 cat >conftest.make <<\_ACEOF
6216 SHELL = /bin/sh
6217 all:
6218 @echo '@@@%%%=$(MAKE)=@@@%%%'
6219 _ACEOF
6220 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6221 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6222 *@@@%%%=?*=@@@%%%*)
6223 eval ac_cv_prog_make_${ac_make}_set=yes;;
6225 eval ac_cv_prog_make_${ac_make}_set=no;;
6226 esac
6227 rm -f conftest.make
6229 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6231 $as_echo "yes" >&6; }
6232 SET_MAKE=
6233 else
6234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6235 $as_echo "no" >&6; }
6236 SET_MAKE="MAKE=${MAKE-make}"
6241 # Configure libtool
6242 #AC_MSG_NOTICE([====== Starting libtool configuration])
6243 enable_dlopen=yes
6247 case `pwd` in
6248 *\ * | *\ *)
6249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6250 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6251 esac
6255 macro_version='2.2.7a'
6256 macro_revision='1.3134'
6270 ltmain="$ac_aux_dir/ltmain.sh"
6272 # Backslashify metacharacters that are still active within
6273 # double-quoted strings.
6274 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6276 # Same as above, but do not quote variable references.
6277 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6279 # Sed substitution to delay expansion of an escaped shell variable in a
6280 # double_quote_subst'ed string.
6281 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6283 # Sed substitution to delay expansion of an escaped single quote.
6284 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6286 # Sed substitution to avoid accidental globbing in evaled expressions
6287 no_glob_subst='s/\*/\\\*/g'
6289 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6290 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6291 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6294 $as_echo_n "checking how to print strings... " >&6; }
6295 # Test print first, because it will be a builtin if present.
6296 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6297 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6298 ECHO='print -r --'
6299 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6300 ECHO='printf %s\n'
6301 else
6302 # Use this function as a fallback that always works.
6303 func_fallback_echo ()
6305 eval 'cat <<_LTECHO_EOF
6307 _LTECHO_EOF'
6309 ECHO='func_fallback_echo'
6312 # func_echo_all arg...
6313 # Invoke $ECHO with all args, space-separated.
6314 func_echo_all ()
6316 $ECHO ""
6319 case "$ECHO" in
6320 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6321 $as_echo "printf" >&6; } ;;
6322 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6323 $as_echo "print -r" >&6; } ;;
6324 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6325 $as_echo "cat" >&6; } ;;
6326 esac
6341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6342 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6343 if test "${ac_cv_path_SED+set}" = set; then :
6344 $as_echo_n "(cached) " >&6
6345 else
6346 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6347 for ac_i in 1 2 3 4 5 6 7; do
6348 ac_script="$ac_script$as_nl$ac_script"
6349 done
6350 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6351 { ac_script=; unset ac_script;}
6352 if test -z "$SED"; then
6353 ac_path_SED_found=false
6354 # Loop through the user's path and test for each of PROGNAME-LIST
6355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6356 for as_dir in $PATH
6358 IFS=$as_save_IFS
6359 test -z "$as_dir" && as_dir=.
6360 for ac_prog in sed gsed; do
6361 for ac_exec_ext in '' $ac_executable_extensions; do
6362 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6363 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6364 # Check for GNU ac_path_SED and select it if it is found.
6365 # Check for GNU $ac_path_SED
6366 case `"$ac_path_SED" --version 2>&1` in
6367 *GNU*)
6368 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6370 ac_count=0
6371 $as_echo_n 0123456789 >"conftest.in"
6372 while :
6374 cat "conftest.in" "conftest.in" >"conftest.tmp"
6375 mv "conftest.tmp" "conftest.in"
6376 cp "conftest.in" "conftest.nl"
6377 $as_echo '' >> "conftest.nl"
6378 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6379 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6380 as_fn_arith $ac_count + 1 && ac_count=$as_val
6381 if test $ac_count -gt ${ac_path_SED_max-0}; then
6382 # Best one so far, save it but keep looking for a better one
6383 ac_cv_path_SED="$ac_path_SED"
6384 ac_path_SED_max=$ac_count
6386 # 10*(2^10) chars as input seems more than enough
6387 test $ac_count -gt 10 && break
6388 done
6389 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6390 esac
6392 $ac_path_SED_found && break 3
6393 done
6394 done
6395 done
6396 IFS=$as_save_IFS
6397 if test -z "$ac_cv_path_SED"; then
6398 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6400 else
6401 ac_cv_path_SED=$SED
6405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6406 $as_echo "$ac_cv_path_SED" >&6; }
6407 SED="$ac_cv_path_SED"
6408 rm -f conftest.sed
6410 test -z "$SED" && SED=sed
6411 Xsed="$SED -e 1s/^X//"
6423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6424 $as_echo_n "checking for fgrep... " >&6; }
6425 if test "${ac_cv_path_FGREP+set}" = set; then :
6426 $as_echo_n "(cached) " >&6
6427 else
6428 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6429 then ac_cv_path_FGREP="$GREP -F"
6430 else
6431 if test -z "$FGREP"; then
6432 ac_path_FGREP_found=false
6433 # Loop through the user's path and test for each of PROGNAME-LIST
6434 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6435 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6437 IFS=$as_save_IFS
6438 test -z "$as_dir" && as_dir=.
6439 for ac_prog in fgrep; do
6440 for ac_exec_ext in '' $ac_executable_extensions; do
6441 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6442 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6443 # Check for GNU ac_path_FGREP and select it if it is found.
6444 # Check for GNU $ac_path_FGREP
6445 case `"$ac_path_FGREP" --version 2>&1` in
6446 *GNU*)
6447 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6449 ac_count=0
6450 $as_echo_n 0123456789 >"conftest.in"
6451 while :
6453 cat "conftest.in" "conftest.in" >"conftest.tmp"
6454 mv "conftest.tmp" "conftest.in"
6455 cp "conftest.in" "conftest.nl"
6456 $as_echo 'FGREP' >> "conftest.nl"
6457 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6458 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6459 as_fn_arith $ac_count + 1 && ac_count=$as_val
6460 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6461 # Best one so far, save it but keep looking for a better one
6462 ac_cv_path_FGREP="$ac_path_FGREP"
6463 ac_path_FGREP_max=$ac_count
6465 # 10*(2^10) chars as input seems more than enough
6466 test $ac_count -gt 10 && break
6467 done
6468 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6469 esac
6471 $ac_path_FGREP_found && break 3
6472 done
6473 done
6474 done
6475 IFS=$as_save_IFS
6476 if test -z "$ac_cv_path_FGREP"; then
6477 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6479 else
6480 ac_cv_path_FGREP=$FGREP
6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6486 $as_echo "$ac_cv_path_FGREP" >&6; }
6487 FGREP="$ac_cv_path_FGREP"
6490 test -z "$GREP" && GREP=grep
6510 # Check whether --with-gnu-ld was given.
6511 if test "${with_gnu_ld+set}" = set; then :
6512 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6513 else
6514 with_gnu_ld=no
6517 ac_prog=ld
6518 if test "$GCC" = yes; then
6519 # Check if gcc -print-prog-name=ld gives a path.
6520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6521 $as_echo_n "checking for ld used by $CC... " >&6; }
6522 case $host in
6523 *-*-mingw*)
6524 # gcc leaves a trailing carriage return which upsets mingw
6525 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6527 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6528 esac
6529 case $ac_prog in
6530 # Accept absolute paths.
6531 [\\/]* | ?:[\\/]*)
6532 re_direlt='/[^/][^/]*/\.\./'
6533 # Canonicalize the pathname of ld
6534 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6535 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6536 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6537 done
6538 test -z "$LD" && LD="$ac_prog"
6541 # If it fails, then pretend we aren't using GCC.
6542 ac_prog=ld
6545 # If it is relative, then search for the first ld in PATH.
6546 with_gnu_ld=unknown
6548 esac
6549 elif test "$with_gnu_ld" = yes; then
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6551 $as_echo_n "checking for GNU ld... " >&6; }
6552 else
6553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6554 $as_echo_n "checking for non-GNU ld... " >&6; }
6556 if test "${lt_cv_path_LD+set}" = set; then :
6557 $as_echo_n "(cached) " >&6
6558 else
6559 if test -z "$LD"; then
6560 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6561 for ac_dir in $PATH; do
6562 IFS="$lt_save_ifs"
6563 test -z "$ac_dir" && ac_dir=.
6564 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6565 lt_cv_path_LD="$ac_dir/$ac_prog"
6566 # Check to see if the program is GNU ld. I'd rather use --version,
6567 # but apparently some variants of GNU ld only accept -v.
6568 # Break only if it was the GNU/non-GNU ld that we prefer.
6569 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6570 *GNU* | *'with BFD'*)
6571 test "$with_gnu_ld" != no && break
6574 test "$with_gnu_ld" != yes && break
6576 esac
6578 done
6579 IFS="$lt_save_ifs"
6580 else
6581 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6585 LD="$lt_cv_path_LD"
6586 if test -n "$LD"; then
6587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6588 $as_echo "$LD" >&6; }
6589 else
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6591 $as_echo "no" >&6; }
6593 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6595 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6596 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6597 $as_echo_n "(cached) " >&6
6598 else
6599 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6600 case `$LD -v 2>&1 </dev/null` in
6601 *GNU* | *'with BFD'*)
6602 lt_cv_prog_gnu_ld=yes
6605 lt_cv_prog_gnu_ld=no
6607 esac
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6610 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6611 with_gnu_ld=$lt_cv_prog_gnu_ld
6621 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6622 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6623 if test "${lt_cv_path_NM+set}" = set; then :
6624 $as_echo_n "(cached) " >&6
6625 else
6626 if test -n "$NM"; then
6627 # Let the user override the test.
6628 lt_cv_path_NM="$NM"
6629 else
6630 lt_nm_to_check="${ac_tool_prefix}nm"
6631 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6632 lt_nm_to_check="$lt_nm_to_check nm"
6634 for lt_tmp_nm in $lt_nm_to_check; do
6635 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6636 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6637 IFS="$lt_save_ifs"
6638 test -z "$ac_dir" && ac_dir=.
6639 tmp_nm="$ac_dir/$lt_tmp_nm"
6640 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6641 # Check to see if the nm accepts a BSD-compat flag.
6642 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6643 # nm: unknown option "B" ignored
6644 # Tru64's nm complains that /dev/null is an invalid object file
6645 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6646 */dev/null* | *'Invalid file or object type'*)
6647 lt_cv_path_NM="$tmp_nm -B"
6648 break
6651 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6652 */dev/null*)
6653 lt_cv_path_NM="$tmp_nm -p"
6654 break
6657 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6658 continue # so that we can try to find one that supports BSD flags
6660 esac
6662 esac
6664 done
6665 IFS="$lt_save_ifs"
6666 done
6667 : ${lt_cv_path_NM=no}
6670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6671 $as_echo "$lt_cv_path_NM" >&6; }
6672 if test "$lt_cv_path_NM" != "no"; then
6673 NM="$lt_cv_path_NM"
6674 else
6675 # Didn't find any BSD compatible name lister, look for dumpbin.
6676 if test -n "$DUMPBIN"; then :
6677 # Let the user override the test.
6678 else
6679 if test -n "$ac_tool_prefix"; then
6680 for ac_prog in dumpbin "link -dump"
6682 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6683 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6685 $as_echo_n "checking for $ac_word... " >&6; }
6686 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6687 $as_echo_n "(cached) " >&6
6688 else
6689 if test -n "$DUMPBIN"; then
6690 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6691 else
6692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6693 for as_dir in $PATH
6695 IFS=$as_save_IFS
6696 test -z "$as_dir" && as_dir=.
6697 for ac_exec_ext in '' $ac_executable_extensions; do
6698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6699 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6701 break 2
6703 done
6704 done
6705 IFS=$as_save_IFS
6709 DUMPBIN=$ac_cv_prog_DUMPBIN
6710 if test -n "$DUMPBIN"; then
6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6712 $as_echo "$DUMPBIN" >&6; }
6713 else
6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6715 $as_echo "no" >&6; }
6719 test -n "$DUMPBIN" && break
6720 done
6722 if test -z "$DUMPBIN"; then
6723 ac_ct_DUMPBIN=$DUMPBIN
6724 for ac_prog in dumpbin "link -dump"
6726 # Extract the first word of "$ac_prog", so it can be a program name with args.
6727 set dummy $ac_prog; ac_word=$2
6728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6729 $as_echo_n "checking for $ac_word... " >&6; }
6730 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6731 $as_echo_n "(cached) " >&6
6732 else
6733 if test -n "$ac_ct_DUMPBIN"; then
6734 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6735 else
6736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6737 for as_dir in $PATH
6739 IFS=$as_save_IFS
6740 test -z "$as_dir" && as_dir=.
6741 for ac_exec_ext in '' $ac_executable_extensions; do
6742 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6743 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6745 break 2
6747 done
6748 done
6749 IFS=$as_save_IFS
6753 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6754 if test -n "$ac_ct_DUMPBIN"; then
6755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6756 $as_echo "$ac_ct_DUMPBIN" >&6; }
6757 else
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6759 $as_echo "no" >&6; }
6763 test -n "$ac_ct_DUMPBIN" && break
6764 done
6766 if test "x$ac_ct_DUMPBIN" = x; then
6767 DUMPBIN=":"
6768 else
6769 case $cross_compiling:$ac_tool_warned in
6770 yes:)
6771 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6772 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6773 ac_tool_warned=yes ;;
6774 esac
6775 DUMPBIN=$ac_ct_DUMPBIN
6779 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6780 *COFF*)
6781 DUMPBIN="$DUMPBIN -symbols"
6784 DUMPBIN=:
6786 esac
6789 if test "$DUMPBIN" != ":"; then
6790 NM="$DUMPBIN"
6793 test -z "$NM" && NM=nm
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6801 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6802 if test "${lt_cv_nm_interface+set}" = set; then :
6803 $as_echo_n "(cached) " >&6
6804 else
6805 lt_cv_nm_interface="BSD nm"
6806 echo "int some_variable = 0;" > conftest.$ac_ext
6807 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6808 (eval "$ac_compile" 2>conftest.err)
6809 cat conftest.err >&5
6810 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6811 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6812 cat conftest.err >&5
6813 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6814 cat conftest.out >&5
6815 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6816 lt_cv_nm_interface="MS dumpbin"
6818 rm -f conftest*
6820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6821 $as_echo "$lt_cv_nm_interface" >&6; }
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6824 $as_echo_n "checking whether ln -s works... " >&6; }
6825 LN_S=$as_ln_s
6826 if test "$LN_S" = "ln -s"; then
6827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6828 $as_echo "yes" >&6; }
6829 else
6830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6831 $as_echo "no, using $LN_S" >&6; }
6834 # find the maximum length of command line arguments
6835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6836 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6837 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6838 $as_echo_n "(cached) " >&6
6839 else
6841 teststring="ABCD"
6843 case $build_os in
6844 msdosdjgpp*)
6845 # On DJGPP, this test can blow up pretty badly due to problems in libc
6846 # (any single argument exceeding 2000 bytes causes a buffer overrun
6847 # during glob expansion). Even if it were fixed, the result of this
6848 # check would be larger than it should be.
6849 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6852 gnu*)
6853 # Under GNU Hurd, this test is not required because there is
6854 # no limit to the length of command line arguments.
6855 # Libtool will interpret -1 as no limit whatsoever
6856 lt_cv_sys_max_cmd_len=-1;
6859 cygwin* | mingw* | cegcc*)
6860 # On Win9x/ME, this test blows up -- it succeeds, but takes
6861 # about 5 minutes as the teststring grows exponentially.
6862 # Worse, since 9x/ME are not pre-emptively multitasking,
6863 # you end up with a "frozen" computer, even though with patience
6864 # the test eventually succeeds (with a max line length of 256k).
6865 # Instead, let's just punt: use the minimum linelength reported by
6866 # all of the supported platforms: 8192 (on NT/2K/XP).
6867 lt_cv_sys_max_cmd_len=8192;
6870 mint*)
6871 # On MiNT this can take a long time and run out of memory.
6872 lt_cv_sys_max_cmd_len=8192;
6875 amigaos*)
6876 # On AmigaOS with pdksh, this test takes hours, literally.
6877 # So we just punt and use a minimum line length of 8192.
6878 lt_cv_sys_max_cmd_len=8192;
6881 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6882 # This has been around since 386BSD, at least. Likely further.
6883 if test -x /sbin/sysctl; then
6884 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6885 elif test -x /usr/sbin/sysctl; then
6886 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6887 else
6888 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6890 # And add a safety zone
6891 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6892 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6895 interix*)
6896 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6897 lt_cv_sys_max_cmd_len=196608
6900 osf*)
6901 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6902 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6903 # nice to cause kernel panics so lets avoid the loop below.
6904 # First set a reasonable default.
6905 lt_cv_sys_max_cmd_len=16384
6907 if test -x /sbin/sysconfig; then
6908 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6909 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6910 esac
6913 sco3.2v5*)
6914 lt_cv_sys_max_cmd_len=102400
6916 sysv5* | sco5v6* | sysv4.2uw2*)
6917 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6918 if test -n "$kargmax"; then
6919 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6920 else
6921 lt_cv_sys_max_cmd_len=32768
6925 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6926 if test -n "$lt_cv_sys_max_cmd_len"; then
6927 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6928 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6929 else
6930 # Make teststring a little bigger before we do anything with it.
6931 # a 1K string should be a reasonable start.
6932 for i in 1 2 3 4 5 6 7 8 ; do
6933 teststring=$teststring$teststring
6934 done
6935 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6936 # If test is not a shell built-in, we'll probably end up computing a
6937 # maximum length that is only half of the actual maximum length, but
6938 # we can't tell.
6939 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6940 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6941 test $i != 17 # 1/2 MB should be enough
6943 i=`expr $i + 1`
6944 teststring=$teststring$teststring
6945 done
6946 # Only check the string length outside the loop.
6947 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6948 teststring=
6949 # Add a significant safety factor because C++ compilers can tack on
6950 # massive amounts of additional arguments before passing them to the
6951 # linker. It appears as though 1/2 is a usable value.
6952 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6955 esac
6959 if test -n $lt_cv_sys_max_cmd_len ; then
6960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6961 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6962 else
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6964 $as_echo "none" >&6; }
6966 max_cmd_len=$lt_cv_sys_max_cmd_len
6973 : ${CP="cp -f"}
6974 : ${MV="mv -f"}
6975 : ${RM="rm -f"}
6977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6978 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6979 # Try some XSI features
6980 xsi_shell=no
6981 ( _lt_dummy="a/b/c"
6982 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6983 = c,a/b,, \
6984 && eval 'test $(( 1 + 1 )) -eq 2 \
6985 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6986 && xsi_shell=yes
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6988 $as_echo "$xsi_shell" >&6; }
6991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6992 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6993 lt_shell_append=no
6994 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6995 >/dev/null 2>&1 \
6996 && lt_shell_append=yes
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6998 $as_echo "$lt_shell_append" >&6; }
7001 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7002 lt_unset=unset
7003 else
7004 lt_unset=false
7011 # test EBCDIC or ASCII
7012 case `echo X|tr X '\101'` in
7013 A) # ASCII based system
7014 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7015 lt_SP2NL='tr \040 \012'
7016 lt_NL2SP='tr \015\012 \040\040'
7018 *) # EBCDIC based system
7019 lt_SP2NL='tr \100 \n'
7020 lt_NL2SP='tr \r\n \100\100'
7022 esac
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7033 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7034 if test "${lt_cv_ld_reload_flag+set}" = set; then :
7035 $as_echo_n "(cached) " >&6
7036 else
7037 lt_cv_ld_reload_flag='-r'
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7040 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7041 reload_flag=$lt_cv_ld_reload_flag
7042 case $reload_flag in
7043 "" | " "*) ;;
7044 *) reload_flag=" $reload_flag" ;;
7045 esac
7046 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7047 case $host_os in
7048 darwin*)
7049 if test "$GCC" = yes; then
7050 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7051 else
7052 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7055 esac
7065 if test -n "$ac_tool_prefix"; then
7066 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7067 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7069 $as_echo_n "checking for $ac_word... " >&6; }
7070 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7071 $as_echo_n "(cached) " >&6
7072 else
7073 if test -n "$OBJDUMP"; then
7074 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7075 else
7076 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7077 for as_dir in $PATH
7079 IFS=$as_save_IFS
7080 test -z "$as_dir" && as_dir=.
7081 for ac_exec_ext in '' $ac_executable_extensions; do
7082 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7083 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7084 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7085 break 2
7087 done
7088 done
7089 IFS=$as_save_IFS
7093 OBJDUMP=$ac_cv_prog_OBJDUMP
7094 if test -n "$OBJDUMP"; then
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7096 $as_echo "$OBJDUMP" >&6; }
7097 else
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7099 $as_echo "no" >&6; }
7104 if test -z "$ac_cv_prog_OBJDUMP"; then
7105 ac_ct_OBJDUMP=$OBJDUMP
7106 # Extract the first word of "objdump", so it can be a program name with args.
7107 set dummy objdump; ac_word=$2
7108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7109 $as_echo_n "checking for $ac_word... " >&6; }
7110 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7111 $as_echo_n "(cached) " >&6
7112 else
7113 if test -n "$ac_ct_OBJDUMP"; then
7114 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7115 else
7116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7117 for as_dir in $PATH
7119 IFS=$as_save_IFS
7120 test -z "$as_dir" && as_dir=.
7121 for ac_exec_ext in '' $ac_executable_extensions; do
7122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7123 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7124 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7125 break 2
7127 done
7128 done
7129 IFS=$as_save_IFS
7133 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7134 if test -n "$ac_ct_OBJDUMP"; then
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7136 $as_echo "$ac_ct_OBJDUMP" >&6; }
7137 else
7138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7139 $as_echo "no" >&6; }
7142 if test "x$ac_ct_OBJDUMP" = x; then
7143 OBJDUMP="false"
7144 else
7145 case $cross_compiling:$ac_tool_warned in
7146 yes:)
7147 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7148 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7149 ac_tool_warned=yes ;;
7150 esac
7151 OBJDUMP=$ac_ct_OBJDUMP
7153 else
7154 OBJDUMP="$ac_cv_prog_OBJDUMP"
7157 test -z "$OBJDUMP" && OBJDUMP=objdump
7167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7168 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7169 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7170 $as_echo_n "(cached) " >&6
7171 else
7172 lt_cv_file_magic_cmd='$MAGIC_CMD'
7173 lt_cv_file_magic_test_file=
7174 lt_cv_deplibs_check_method='unknown'
7175 # Need to set the preceding variable on all platforms that support
7176 # interlibrary dependencies.
7177 # 'none' -- dependencies not supported.
7178 # `unknown' -- same as none, but documents that we really don't know.
7179 # 'pass_all' -- all dependencies passed with no checks.
7180 # 'test_compile' -- check by making test program.
7181 # 'file_magic [[regex]]' -- check by looking for files in library path
7182 # which responds to the $file_magic_cmd with a given extended regex.
7183 # If you have `file' or equivalent on your system and you're not sure
7184 # whether `pass_all' will *always* work, you probably want this one.
7186 case $host_os in
7187 aix[4-9]*)
7188 lt_cv_deplibs_check_method=pass_all
7191 beos*)
7192 lt_cv_deplibs_check_method=pass_all
7195 bsdi[45]*)
7196 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7197 lt_cv_file_magic_cmd='/usr/bin/file -L'
7198 lt_cv_file_magic_test_file=/shlib/libc.so
7201 cygwin*)
7202 # func_win32_libid is a shell function defined in ltmain.sh
7203 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7204 lt_cv_file_magic_cmd='func_win32_libid'
7207 mingw* | pw32*)
7208 # Base MSYS/MinGW do not provide the 'file' command needed by
7209 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7210 # unless we find 'file', for example because we are cross-compiling.
7211 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7212 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7213 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7214 lt_cv_file_magic_cmd='func_win32_libid'
7215 else
7216 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7217 lt_cv_file_magic_cmd='$OBJDUMP -f'
7221 cegcc*)
7222 # use the weaker test based on 'objdump'. See mingw*.
7223 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7224 lt_cv_file_magic_cmd='$OBJDUMP -f'
7227 darwin* | rhapsody*)
7228 lt_cv_deplibs_check_method=pass_all
7231 freebsd* | dragonfly*)
7232 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7233 case $host_cpu in
7234 i*86 )
7235 # Not sure whether the presence of OpenBSD here was a mistake.
7236 # Let's accept both of them until this is cleared up.
7237 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7238 lt_cv_file_magic_cmd=/usr/bin/file
7239 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7241 esac
7242 else
7243 lt_cv_deplibs_check_method=pass_all
7247 gnu*)
7248 lt_cv_deplibs_check_method=pass_all
7251 haiku*)
7252 lt_cv_deplibs_check_method=pass_all
7255 hpux10.20* | hpux11*)
7256 lt_cv_file_magic_cmd=/usr/bin/file
7257 case $host_cpu in
7258 ia64*)
7259 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7260 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7262 hppa*64*)
7263 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]'
7264 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7267 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7268 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7270 esac
7273 interix[3-9]*)
7274 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7275 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7278 irix5* | irix6* | nonstopux*)
7279 case $LD in
7280 *-32|*"-32 ") libmagic=32-bit;;
7281 *-n32|*"-n32 ") libmagic=N32;;
7282 *-64|*"-64 ") libmagic=64-bit;;
7283 *) libmagic=never-match;;
7284 esac
7285 lt_cv_deplibs_check_method=pass_all
7288 # This must be Linux ELF.
7289 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7290 lt_cv_deplibs_check_method=pass_all
7293 netbsd*)
7294 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7295 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7296 else
7297 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7301 newos6*)
7302 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7303 lt_cv_file_magic_cmd=/usr/bin/file
7304 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7307 *nto* | *qnx*)
7308 lt_cv_deplibs_check_method=pass_all
7311 openbsd*)
7312 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7313 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7314 else
7315 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7319 osf3* | osf4* | osf5*)
7320 lt_cv_deplibs_check_method=pass_all
7323 rdos*)
7324 lt_cv_deplibs_check_method=pass_all
7327 solaris*)
7328 lt_cv_deplibs_check_method=pass_all
7331 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7332 lt_cv_deplibs_check_method=pass_all
7335 sysv4 | sysv4.3*)
7336 case $host_vendor in
7337 motorola)
7338 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]'
7339 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7341 ncr)
7342 lt_cv_deplibs_check_method=pass_all
7344 sequent)
7345 lt_cv_file_magic_cmd='/bin/file'
7346 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7348 sni)
7349 lt_cv_file_magic_cmd='/bin/file'
7350 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7351 lt_cv_file_magic_test_file=/lib/libc.so
7353 siemens)
7354 lt_cv_deplibs_check_method=pass_all
7357 lt_cv_deplibs_check_method=pass_all
7359 esac
7362 tpf*)
7363 lt_cv_deplibs_check_method=pass_all
7365 esac
7368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7369 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7370 file_magic_cmd=$lt_cv_file_magic_cmd
7371 deplibs_check_method=$lt_cv_deplibs_check_method
7372 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7385 if test -n "$ac_tool_prefix"; then
7386 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7387 set dummy ${ac_tool_prefix}ar; ac_word=$2
7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7389 $as_echo_n "checking for $ac_word... " >&6; }
7390 if test "${ac_cv_prog_AR+set}" = set; then :
7391 $as_echo_n "(cached) " >&6
7392 else
7393 if test -n "$AR"; then
7394 ac_cv_prog_AR="$AR" # Let the user override the test.
7395 else
7396 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7397 for as_dir in $PATH
7399 IFS=$as_save_IFS
7400 test -z "$as_dir" && as_dir=.
7401 for ac_exec_ext in '' $ac_executable_extensions; do
7402 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7403 ac_cv_prog_AR="${ac_tool_prefix}ar"
7404 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7405 break 2
7407 done
7408 done
7409 IFS=$as_save_IFS
7413 AR=$ac_cv_prog_AR
7414 if test -n "$AR"; then
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7416 $as_echo "$AR" >&6; }
7417 else
7418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7419 $as_echo "no" >&6; }
7424 if test -z "$ac_cv_prog_AR"; then
7425 ac_ct_AR=$AR
7426 # Extract the first word of "ar", so it can be a program name with args.
7427 set dummy ar; ac_word=$2
7428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7429 $as_echo_n "checking for $ac_word... " >&6; }
7430 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7431 $as_echo_n "(cached) " >&6
7432 else
7433 if test -n "$ac_ct_AR"; then
7434 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7435 else
7436 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7437 for as_dir in $PATH
7439 IFS=$as_save_IFS
7440 test -z "$as_dir" && as_dir=.
7441 for ac_exec_ext in '' $ac_executable_extensions; do
7442 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7443 ac_cv_prog_ac_ct_AR="ar"
7444 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7445 break 2
7447 done
7448 done
7449 IFS=$as_save_IFS
7453 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7454 if test -n "$ac_ct_AR"; then
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7456 $as_echo "$ac_ct_AR" >&6; }
7457 else
7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7459 $as_echo "no" >&6; }
7462 if test "x$ac_ct_AR" = x; then
7463 AR="false"
7464 else
7465 case $cross_compiling:$ac_tool_warned in
7466 yes:)
7467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7468 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7469 ac_tool_warned=yes ;;
7470 esac
7471 AR=$ac_ct_AR
7473 else
7474 AR="$ac_cv_prog_AR"
7477 test -z "$AR" && AR=ar
7478 test -z "$AR_FLAGS" && AR_FLAGS=cru
7490 if test -n "$ac_tool_prefix"; then
7491 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7492 set dummy ${ac_tool_prefix}strip; ac_word=$2
7493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7494 $as_echo_n "checking for $ac_word... " >&6; }
7495 if test "${ac_cv_prog_STRIP+set}" = set; then :
7496 $as_echo_n "(cached) " >&6
7497 else
7498 if test -n "$STRIP"; then
7499 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7500 else
7501 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7502 for as_dir in $PATH
7504 IFS=$as_save_IFS
7505 test -z "$as_dir" && as_dir=.
7506 for ac_exec_ext in '' $ac_executable_extensions; do
7507 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7508 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7509 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7510 break 2
7512 done
7513 done
7514 IFS=$as_save_IFS
7518 STRIP=$ac_cv_prog_STRIP
7519 if test -n "$STRIP"; then
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7521 $as_echo "$STRIP" >&6; }
7522 else
7523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7524 $as_echo "no" >&6; }
7529 if test -z "$ac_cv_prog_STRIP"; then
7530 ac_ct_STRIP=$STRIP
7531 # Extract the first word of "strip", so it can be a program name with args.
7532 set dummy strip; ac_word=$2
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7534 $as_echo_n "checking for $ac_word... " >&6; }
7535 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7536 $as_echo_n "(cached) " >&6
7537 else
7538 if test -n "$ac_ct_STRIP"; then
7539 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7540 else
7541 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7542 for as_dir in $PATH
7544 IFS=$as_save_IFS
7545 test -z "$as_dir" && as_dir=.
7546 for ac_exec_ext in '' $ac_executable_extensions; do
7547 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7548 ac_cv_prog_ac_ct_STRIP="strip"
7549 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7550 break 2
7552 done
7553 done
7554 IFS=$as_save_IFS
7558 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7559 if test -n "$ac_ct_STRIP"; then
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7561 $as_echo "$ac_ct_STRIP" >&6; }
7562 else
7563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7564 $as_echo "no" >&6; }
7567 if test "x$ac_ct_STRIP" = x; then
7568 STRIP=":"
7569 else
7570 case $cross_compiling:$ac_tool_warned in
7571 yes:)
7572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7573 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7574 ac_tool_warned=yes ;;
7575 esac
7576 STRIP=$ac_ct_STRIP
7578 else
7579 STRIP="$ac_cv_prog_STRIP"
7582 test -z "$STRIP" && STRIP=:
7589 if test -n "$ac_tool_prefix"; then
7590 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7591 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7593 $as_echo_n "checking for $ac_word... " >&6; }
7594 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7595 $as_echo_n "(cached) " >&6
7596 else
7597 if test -n "$RANLIB"; then
7598 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7599 else
7600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7601 for as_dir in $PATH
7603 IFS=$as_save_IFS
7604 test -z "$as_dir" && as_dir=.
7605 for ac_exec_ext in '' $ac_executable_extensions; do
7606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7607 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7609 break 2
7611 done
7612 done
7613 IFS=$as_save_IFS
7617 RANLIB=$ac_cv_prog_RANLIB
7618 if test -n "$RANLIB"; then
7619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7620 $as_echo "$RANLIB" >&6; }
7621 else
7622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7623 $as_echo "no" >&6; }
7628 if test -z "$ac_cv_prog_RANLIB"; then
7629 ac_ct_RANLIB=$RANLIB
7630 # Extract the first word of "ranlib", so it can be a program name with args.
7631 set dummy ranlib; ac_word=$2
7632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7633 $as_echo_n "checking for $ac_word... " >&6; }
7634 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7635 $as_echo_n "(cached) " >&6
7636 else
7637 if test -n "$ac_ct_RANLIB"; then
7638 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7639 else
7640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7641 for as_dir in $PATH
7643 IFS=$as_save_IFS
7644 test -z "$as_dir" && as_dir=.
7645 for ac_exec_ext in '' $ac_executable_extensions; do
7646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7647 ac_cv_prog_ac_ct_RANLIB="ranlib"
7648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7649 break 2
7651 done
7652 done
7653 IFS=$as_save_IFS
7657 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7658 if test -n "$ac_ct_RANLIB"; then
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7660 $as_echo "$ac_ct_RANLIB" >&6; }
7661 else
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7663 $as_echo "no" >&6; }
7666 if test "x$ac_ct_RANLIB" = x; then
7667 RANLIB=":"
7668 else
7669 case $cross_compiling:$ac_tool_warned in
7670 yes:)
7671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7672 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7673 ac_tool_warned=yes ;;
7674 esac
7675 RANLIB=$ac_ct_RANLIB
7677 else
7678 RANLIB="$ac_cv_prog_RANLIB"
7681 test -z "$RANLIB" && RANLIB=:
7688 # Determine commands to create old-style static archives.
7689 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7690 old_postinstall_cmds='chmod 644 $oldlib'
7691 old_postuninstall_cmds=
7693 if test -n "$RANLIB"; then
7694 case $host_os in
7695 openbsd*)
7696 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7699 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7701 esac
7702 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7705 case $host_os in
7706 darwin*)
7707 lock_old_archive_extraction=yes ;;
7709 lock_old_archive_extraction=no ;;
7710 esac
7750 # If no C compiler was specified, use CC.
7751 LTCC=${LTCC-"$CC"}
7753 # If no C compiler flags were specified, use CFLAGS.
7754 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7756 # Allow CC to be a program name with arguments.
7757 compiler=$CC
7760 # Check for command to grab the raw symbol name followed by C symbol from nm.
7761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7762 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7763 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7764 $as_echo_n "(cached) " >&6
7765 else
7767 # These are sane defaults that work on at least a few old systems.
7768 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7770 # Character class describing NM global symbol codes.
7771 symcode='[BCDEGRST]'
7773 # Regexp to match symbols that can be accessed directly from C.
7774 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7776 # Define system-specific variables.
7777 case $host_os in
7778 aix*)
7779 symcode='[BCDT]'
7781 cygwin* | mingw* | pw32* | cegcc*)
7782 symcode='[ABCDGISTW]'
7784 hpux*)
7785 if test "$host_cpu" = ia64; then
7786 symcode='[ABCDEGRST]'
7789 irix* | nonstopux*)
7790 symcode='[BCDEGRST]'
7792 osf*)
7793 symcode='[BCDEGQRST]'
7795 solaris*)
7796 symcode='[BDRT]'
7798 sco3.2v5*)
7799 symcode='[DT]'
7801 sysv4.2uw2*)
7802 symcode='[DT]'
7804 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7805 symcode='[ABDT]'
7807 sysv4)
7808 symcode='[DFNSTU]'
7810 esac
7812 # If we're using GNU nm, then use its standard symbol codes.
7813 case `$NM -V 2>&1` in
7814 *GNU* | *'with BFD'*)
7815 symcode='[ABCDGIRSTW]' ;;
7816 esac
7818 # Transform an extracted symbol line into a proper C declaration.
7819 # Some systems (esp. on ia64) link data and code symbols differently,
7820 # so use this general approach.
7821 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7823 # Transform an extracted symbol line into symbol name and symbol address
7824 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7825 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'"
7827 # Handle CRLF in mingw tool chain
7828 opt_cr=
7829 case $build_os in
7830 mingw*)
7831 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7833 esac
7835 # Try without a prefix underscore, then with it.
7836 for ac_symprfx in "" "_"; do
7838 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7839 symxfrm="\\1 $ac_symprfx\\2 \\2"
7841 # Write the raw and C identifiers.
7842 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7843 # Fake it for dumpbin and say T for any non-static function
7844 # and D for any global variable.
7845 # Also find C++ and __fastcall symbols from MSVC++,
7846 # which start with @ or ?.
7847 lt_cv_sys_global_symbol_pipe="$AWK '"\
7848 " {last_section=section; section=\$ 3};"\
7849 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7850 " \$ 0!~/External *\|/{next};"\
7851 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7852 " {if(hide[section]) next};"\
7853 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7854 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7855 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7856 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7857 " ' prfx=^$ac_symprfx"
7858 else
7859 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7862 # Check to see that the pipe works correctly.
7863 pipe_works=no
7865 rm -f conftest*
7866 cat > conftest.$ac_ext <<_LT_EOF
7867 #ifdef __cplusplus
7868 extern "C" {
7869 #endif
7870 char nm_test_var;
7871 void nm_test_func(void);
7872 void nm_test_func(void){}
7873 #ifdef __cplusplus
7875 #endif
7876 int main(){nm_test_var='a';nm_test_func();return(0);}
7877 _LT_EOF
7879 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7880 (eval $ac_compile) 2>&5
7881 ac_status=$?
7882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7883 test $ac_status = 0; }; then
7884 # Now try to grab the symbols.
7885 nlist=conftest.nm
7886 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7887 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7888 ac_status=$?
7889 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7890 test $ac_status = 0; } && test -s "$nlist"; then
7891 # Try sorting and uniquifying the output.
7892 if sort "$nlist" | uniq > "$nlist"T; then
7893 mv -f "$nlist"T "$nlist"
7894 else
7895 rm -f "$nlist"T
7898 # Make sure that we snagged all the symbols we need.
7899 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7900 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7901 cat <<_LT_EOF > conftest.$ac_ext
7902 #ifdef __cplusplus
7903 extern "C" {
7904 #endif
7906 _LT_EOF
7907 # Now generate the symbol file.
7908 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7910 cat <<_LT_EOF >> conftest.$ac_ext
7912 /* The mapping between symbol names and symbols. */
7913 const struct {
7914 const char *name;
7915 void *address;
7917 lt__PROGRAM__LTX_preloaded_symbols[] =
7919 { "@PROGRAM@", (void *) 0 },
7920 _LT_EOF
7921 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7922 cat <<\_LT_EOF >> conftest.$ac_ext
7923 {0, (void *) 0}
7926 /* This works around a problem in FreeBSD linker */
7927 #ifdef FREEBSD_WORKAROUND
7928 static const void *lt_preloaded_setup() {
7929 return lt__PROGRAM__LTX_preloaded_symbols;
7931 #endif
7933 #ifdef __cplusplus
7935 #endif
7936 _LT_EOF
7937 # Now try linking the two files.
7938 mv conftest.$ac_objext conftstm.$ac_objext
7939 lt_save_LIBS="$LIBS"
7940 lt_save_CFLAGS="$CFLAGS"
7941 LIBS="conftstm.$ac_objext"
7942 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7943 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7944 (eval $ac_link) 2>&5
7945 ac_status=$?
7946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7947 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7948 pipe_works=yes
7950 LIBS="$lt_save_LIBS"
7951 CFLAGS="$lt_save_CFLAGS"
7952 else
7953 echo "cannot find nm_test_func in $nlist" >&5
7955 else
7956 echo "cannot find nm_test_var in $nlist" >&5
7958 else
7959 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7961 else
7962 echo "$progname: failed program was:" >&5
7963 cat conftest.$ac_ext >&5
7965 rm -rf conftest* conftst*
7967 # Do not use the global_symbol_pipe unless it works.
7968 if test "$pipe_works" = yes; then
7969 break
7970 else
7971 lt_cv_sys_global_symbol_pipe=
7973 done
7977 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7978 lt_cv_sys_global_symbol_to_cdecl=
7980 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7982 $as_echo "failed" >&6; }
7983 else
7984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7985 $as_echo "ok" >&6; }
8009 # Check whether --enable-libtool-lock was given.
8010 if test "${enable_libtool_lock+set}" = set; then :
8011 enableval=$enable_libtool_lock;
8014 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8016 # Some flags need to be propagated to the compiler or linker for good
8017 # libtool support.
8018 case $host in
8019 ia64-*-hpux*)
8020 # Find out which ABI we are using.
8021 echo 'int i;' > conftest.$ac_ext
8022 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8023 (eval $ac_compile) 2>&5
8024 ac_status=$?
8025 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8026 test $ac_status = 0; }; then
8027 case `/usr/bin/file conftest.$ac_objext` in
8028 *ELF-32*)
8029 HPUX_IA64_MODE="32"
8031 *ELF-64*)
8032 HPUX_IA64_MODE="64"
8034 esac
8036 rm -rf conftest*
8038 *-*-irix6*)
8039 # Find out which ABI we are using.
8040 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8041 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8042 (eval $ac_compile) 2>&5
8043 ac_status=$?
8044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8045 test $ac_status = 0; }; then
8046 if test "$lt_cv_prog_gnu_ld" = yes; then
8047 case `/usr/bin/file conftest.$ac_objext` in
8048 *32-bit*)
8049 LD="${LD-ld} -melf32bsmip"
8051 *N32*)
8052 LD="${LD-ld} -melf32bmipn32"
8054 *64-bit*)
8055 LD="${LD-ld} -melf64bmip"
8057 esac
8058 else
8059 case `/usr/bin/file conftest.$ac_objext` in
8060 *32-bit*)
8061 LD="${LD-ld} -32"
8063 *N32*)
8064 LD="${LD-ld} -n32"
8066 *64-bit*)
8067 LD="${LD-ld} -64"
8069 esac
8072 rm -rf conftest*
8075 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8076 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8077 # Find out which ABI we are using.
8078 echo 'int i;' > conftest.$ac_ext
8079 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8080 (eval $ac_compile) 2>&5
8081 ac_status=$?
8082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8083 test $ac_status = 0; }; then
8084 case `/usr/bin/file conftest.o` in
8085 *32-bit*)
8086 case $host in
8087 x86_64-*kfreebsd*-gnu)
8088 LD="${LD-ld} -m elf_i386_fbsd"
8090 x86_64-*linux*)
8091 case `/usr/bin/file conftest.o` in
8092 *x86-64*)
8093 LD="${LD-ld} -m elf32_x86_64"
8096 LD="${LD-ld} -m elf_i386"
8098 esac
8100 powerpc64le-*linux*)
8101 LD="${LD-ld} -m elf32lppclinux"
8103 powerpc64-*linux*)
8104 LD="${LD-ld} -m elf32ppclinux"
8106 s390x-*linux*)
8107 LD="${LD-ld} -m elf_s390"
8109 sparc64-*linux*)
8110 LD="${LD-ld} -m elf32_sparc"
8112 esac
8114 *64-bit*)
8115 case $host in
8116 x86_64-*kfreebsd*-gnu)
8117 LD="${LD-ld} -m elf_x86_64_fbsd"
8119 x86_64-*linux*)
8120 LD="${LD-ld} -m elf_x86_64"
8122 powerpcle-*linux*)
8123 LD="${LD-ld} -m elf64lppc"
8125 powerpc-*linux*)
8126 LD="${LD-ld} -m elf64ppc"
8128 s390*-*linux*|s390*-*tpf*)
8129 LD="${LD-ld} -m elf64_s390"
8131 sparc*-*linux*)
8132 LD="${LD-ld} -m elf64_sparc"
8134 esac
8136 esac
8138 rm -rf conftest*
8141 *-*-sco3.2v5*)
8142 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8143 SAVE_CFLAGS="$CFLAGS"
8144 CFLAGS="$CFLAGS -belf"
8145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8146 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8147 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8148 $as_echo_n "(cached) " >&6
8149 else
8150 ac_ext=c
8151 ac_cpp='$CPP $CPPFLAGS'
8152 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8153 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8154 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8156 if test x$gcc_no_link = xyes; then
8157 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8160 /* end confdefs.h. */
8163 main ()
8167 return 0;
8169 _ACEOF
8170 if ac_fn_c_try_link "$LINENO"; then :
8171 lt_cv_cc_needs_belf=yes
8172 else
8173 lt_cv_cc_needs_belf=no
8175 rm -f core conftest.err conftest.$ac_objext \
8176 conftest$ac_exeext conftest.$ac_ext
8177 ac_ext=c
8178 ac_cpp='$CPP $CPPFLAGS'
8179 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8180 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8181 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8185 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8186 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8187 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8188 CFLAGS="$SAVE_CFLAGS"
8191 sparc*-*solaris*)
8192 # Find out which ABI we are using.
8193 echo 'int i;' > conftest.$ac_ext
8194 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8195 (eval $ac_compile) 2>&5
8196 ac_status=$?
8197 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8198 test $ac_status = 0; }; then
8199 case `/usr/bin/file conftest.o` in
8200 *64-bit*)
8201 case $lt_cv_prog_gnu_ld in
8202 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8204 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8205 LD="${LD-ld} -64"
8208 esac
8210 esac
8212 rm -rf conftest*
8214 esac
8216 need_locks="$enable_libtool_lock"
8219 case $host_os in
8220 rhapsody* | darwin*)
8221 if test -n "$ac_tool_prefix"; then
8222 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8223 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8225 $as_echo_n "checking for $ac_word... " >&6; }
8226 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8227 $as_echo_n "(cached) " >&6
8228 else
8229 if test -n "$DSYMUTIL"; then
8230 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8231 else
8232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8233 for as_dir in $PATH
8235 IFS=$as_save_IFS
8236 test -z "$as_dir" && as_dir=.
8237 for ac_exec_ext in '' $ac_executable_extensions; do
8238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8239 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8240 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8241 break 2
8243 done
8244 done
8245 IFS=$as_save_IFS
8249 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8250 if test -n "$DSYMUTIL"; then
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8252 $as_echo "$DSYMUTIL" >&6; }
8253 else
8254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8255 $as_echo "no" >&6; }
8260 if test -z "$ac_cv_prog_DSYMUTIL"; then
8261 ac_ct_DSYMUTIL=$DSYMUTIL
8262 # Extract the first word of "dsymutil", so it can be a program name with args.
8263 set dummy dsymutil; 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_ac_ct_DSYMUTIL+set}" = set; then :
8267 $as_echo_n "(cached) " >&6
8268 else
8269 if test -n "$ac_ct_DSYMUTIL"; then
8270 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # 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_ac_ct_DSYMUTIL="dsymutil"
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 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8290 if test -n "$ac_ct_DSYMUTIL"; then
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8292 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8293 else
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8295 $as_echo "no" >&6; }
8298 if test "x$ac_ct_DSYMUTIL" = x; then
8299 DSYMUTIL=":"
8300 else
8301 case $cross_compiling:$ac_tool_warned in
8302 yes:)
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8304 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8305 ac_tool_warned=yes ;;
8306 esac
8307 DSYMUTIL=$ac_ct_DSYMUTIL
8309 else
8310 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8313 if test -n "$ac_tool_prefix"; then
8314 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8315 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8317 $as_echo_n "checking for $ac_word... " >&6; }
8318 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8319 $as_echo_n "(cached) " >&6
8320 else
8321 if test -n "$NMEDIT"; then
8322 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8323 else
8324 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8325 for as_dir in $PATH
8327 IFS=$as_save_IFS
8328 test -z "$as_dir" && as_dir=.
8329 for ac_exec_ext in '' $ac_executable_extensions; do
8330 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8331 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8332 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8333 break 2
8335 done
8336 done
8337 IFS=$as_save_IFS
8341 NMEDIT=$ac_cv_prog_NMEDIT
8342 if test -n "$NMEDIT"; then
8343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8344 $as_echo "$NMEDIT" >&6; }
8345 else
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8347 $as_echo "no" >&6; }
8352 if test -z "$ac_cv_prog_NMEDIT"; then
8353 ac_ct_NMEDIT=$NMEDIT
8354 # Extract the first word of "nmedit", so it can be a program name with args.
8355 set dummy nmedit; 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_ac_ct_NMEDIT+set}" = set; then :
8359 $as_echo_n "(cached) " >&6
8360 else
8361 if test -n "$ac_ct_NMEDIT"; then
8362 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # 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_ac_ct_NMEDIT="nmedit"
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 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8382 if test -n "$ac_ct_NMEDIT"; then
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8384 $as_echo "$ac_ct_NMEDIT" >&6; }
8385 else
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8387 $as_echo "no" >&6; }
8390 if test "x$ac_ct_NMEDIT" = x; then
8391 NMEDIT=":"
8392 else
8393 case $cross_compiling:$ac_tool_warned in
8394 yes:)
8395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8396 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8397 ac_tool_warned=yes ;;
8398 esac
8399 NMEDIT=$ac_ct_NMEDIT
8401 else
8402 NMEDIT="$ac_cv_prog_NMEDIT"
8405 if test -n "$ac_tool_prefix"; then
8406 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8407 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8409 $as_echo_n "checking for $ac_word... " >&6; }
8410 if test "${ac_cv_prog_LIPO+set}" = set; then :
8411 $as_echo_n "(cached) " >&6
8412 else
8413 if test -n "$LIPO"; then
8414 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8415 else
8416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8417 for as_dir in $PATH
8419 IFS=$as_save_IFS
8420 test -z "$as_dir" && as_dir=.
8421 for ac_exec_ext in '' $ac_executable_extensions; do
8422 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8423 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8425 break 2
8427 done
8428 done
8429 IFS=$as_save_IFS
8433 LIPO=$ac_cv_prog_LIPO
8434 if test -n "$LIPO"; then
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8436 $as_echo "$LIPO" >&6; }
8437 else
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8439 $as_echo "no" >&6; }
8444 if test -z "$ac_cv_prog_LIPO"; then
8445 ac_ct_LIPO=$LIPO
8446 # Extract the first word of "lipo", so it can be a program name with args.
8447 set dummy lipo; ac_word=$2
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8449 $as_echo_n "checking for $ac_word... " >&6; }
8450 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8451 $as_echo_n "(cached) " >&6
8452 else
8453 if test -n "$ac_ct_LIPO"; then
8454 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8455 else
8456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8457 for as_dir in $PATH
8459 IFS=$as_save_IFS
8460 test -z "$as_dir" && as_dir=.
8461 for ac_exec_ext in '' $ac_executable_extensions; do
8462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8463 ac_cv_prog_ac_ct_LIPO="lipo"
8464 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8465 break 2
8467 done
8468 done
8469 IFS=$as_save_IFS
8473 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8474 if test -n "$ac_ct_LIPO"; then
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8476 $as_echo "$ac_ct_LIPO" >&6; }
8477 else
8478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8479 $as_echo "no" >&6; }
8482 if test "x$ac_ct_LIPO" = x; then
8483 LIPO=":"
8484 else
8485 case $cross_compiling:$ac_tool_warned in
8486 yes:)
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8488 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8489 ac_tool_warned=yes ;;
8490 esac
8491 LIPO=$ac_ct_LIPO
8493 else
8494 LIPO="$ac_cv_prog_LIPO"
8497 if test -n "$ac_tool_prefix"; then
8498 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8499 set dummy ${ac_tool_prefix}otool; ac_word=$2
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8501 $as_echo_n "checking for $ac_word... " >&6; }
8502 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8503 $as_echo_n "(cached) " >&6
8504 else
8505 if test -n "$OTOOL"; then
8506 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8507 else
8508 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8509 for as_dir in $PATH
8511 IFS=$as_save_IFS
8512 test -z "$as_dir" && as_dir=.
8513 for ac_exec_ext in '' $ac_executable_extensions; do
8514 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8515 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8516 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8517 break 2
8519 done
8520 done
8521 IFS=$as_save_IFS
8525 OTOOL=$ac_cv_prog_OTOOL
8526 if test -n "$OTOOL"; then
8527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8528 $as_echo "$OTOOL" >&6; }
8529 else
8530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8531 $as_echo "no" >&6; }
8536 if test -z "$ac_cv_prog_OTOOL"; then
8537 ac_ct_OTOOL=$OTOOL
8538 # Extract the first word of "otool", so it can be a program name with args.
8539 set dummy otool; ac_word=$2
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8541 $as_echo_n "checking for $ac_word... " >&6; }
8542 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8543 $as_echo_n "(cached) " >&6
8544 else
8545 if test -n "$ac_ct_OTOOL"; then
8546 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8547 else
8548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8549 for as_dir in $PATH
8551 IFS=$as_save_IFS
8552 test -z "$as_dir" && as_dir=.
8553 for ac_exec_ext in '' $ac_executable_extensions; do
8554 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8555 ac_cv_prog_ac_ct_OTOOL="otool"
8556 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8557 break 2
8559 done
8560 done
8561 IFS=$as_save_IFS
8565 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8566 if test -n "$ac_ct_OTOOL"; then
8567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8568 $as_echo "$ac_ct_OTOOL" >&6; }
8569 else
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8571 $as_echo "no" >&6; }
8574 if test "x$ac_ct_OTOOL" = x; then
8575 OTOOL=":"
8576 else
8577 case $cross_compiling:$ac_tool_warned in
8578 yes:)
8579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8580 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8581 ac_tool_warned=yes ;;
8582 esac
8583 OTOOL=$ac_ct_OTOOL
8585 else
8586 OTOOL="$ac_cv_prog_OTOOL"
8589 if test -n "$ac_tool_prefix"; then
8590 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8591 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8593 $as_echo_n "checking for $ac_word... " >&6; }
8594 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8595 $as_echo_n "(cached) " >&6
8596 else
8597 if test -n "$OTOOL64"; then
8598 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8599 else
8600 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8601 for as_dir in $PATH
8603 IFS=$as_save_IFS
8604 test -z "$as_dir" && as_dir=.
8605 for ac_exec_ext in '' $ac_executable_extensions; do
8606 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8607 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8608 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8609 break 2
8611 done
8612 done
8613 IFS=$as_save_IFS
8617 OTOOL64=$ac_cv_prog_OTOOL64
8618 if test -n "$OTOOL64"; then
8619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8620 $as_echo "$OTOOL64" >&6; }
8621 else
8622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8623 $as_echo "no" >&6; }
8628 if test -z "$ac_cv_prog_OTOOL64"; then
8629 ac_ct_OTOOL64=$OTOOL64
8630 # Extract the first word of "otool64", so it can be a program name with args.
8631 set dummy otool64; ac_word=$2
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8633 $as_echo_n "checking for $ac_word... " >&6; }
8634 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8635 $as_echo_n "(cached) " >&6
8636 else
8637 if test -n "$ac_ct_OTOOL64"; then
8638 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8639 else
8640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8641 for as_dir in $PATH
8643 IFS=$as_save_IFS
8644 test -z "$as_dir" && as_dir=.
8645 for ac_exec_ext in '' $ac_executable_extensions; do
8646 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8647 ac_cv_prog_ac_ct_OTOOL64="otool64"
8648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8649 break 2
8651 done
8652 done
8653 IFS=$as_save_IFS
8657 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8658 if test -n "$ac_ct_OTOOL64"; then
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8660 $as_echo "$ac_ct_OTOOL64" >&6; }
8661 else
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8663 $as_echo "no" >&6; }
8666 if test "x$ac_ct_OTOOL64" = x; then
8667 OTOOL64=":"
8668 else
8669 case $cross_compiling:$ac_tool_warned in
8670 yes:)
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8672 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8673 ac_tool_warned=yes ;;
8674 esac
8675 OTOOL64=$ac_ct_OTOOL64
8677 else
8678 OTOOL64="$ac_cv_prog_OTOOL64"
8707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8708 $as_echo_n "checking for -single_module linker flag... " >&6; }
8709 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8710 $as_echo_n "(cached) " >&6
8711 else
8712 lt_cv_apple_cc_single_mod=no
8713 if test -z "${LT_MULTI_MODULE}"; then
8714 # By default we will add the -single_module flag. You can override
8715 # by either setting the environment variable LT_MULTI_MODULE
8716 # non-empty at configure time, or by adding -multi_module to the
8717 # link flags.
8718 rm -rf libconftest.dylib*
8719 echo "int foo(void){return 1;}" > conftest.c
8720 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8721 -dynamiclib -Wl,-single_module conftest.c" >&5
8722 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8723 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8724 _lt_result=$?
8725 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8726 lt_cv_apple_cc_single_mod=yes
8727 else
8728 cat conftest.err >&5
8730 rm -rf libconftest.dylib*
8731 rm -f conftest.*
8734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8735 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8737 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8738 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8739 $as_echo_n "(cached) " >&6
8740 else
8741 lt_cv_ld_exported_symbols_list=no
8742 save_LDFLAGS=$LDFLAGS
8743 echo "_main" > conftest.sym
8744 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8745 if test x$gcc_no_link = xyes; then
8746 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8749 /* end confdefs.h. */
8752 main ()
8756 return 0;
8758 _ACEOF
8759 if ac_fn_c_try_link "$LINENO"; then :
8760 lt_cv_ld_exported_symbols_list=yes
8761 else
8762 lt_cv_ld_exported_symbols_list=no
8764 rm -f core conftest.err conftest.$ac_objext \
8765 conftest$ac_exeext conftest.$ac_ext
8766 LDFLAGS="$save_LDFLAGS"
8769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8770 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8772 $as_echo_n "checking for -force_load linker flag... " >&6; }
8773 if test "${lt_cv_ld_force_load+set}" = set; then :
8774 $as_echo_n "(cached) " >&6
8775 else
8776 lt_cv_ld_force_load=no
8777 cat > conftest.c << _LT_EOF
8778 int forced_loaded() { return 2;}
8779 _LT_EOF
8780 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8781 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8782 echo "$AR cru libconftest.a conftest.o" >&5
8783 $AR cru libconftest.a conftest.o 2>&5
8784 cat > conftest.c << _LT_EOF
8785 int main() { return 0;}
8786 _LT_EOF
8787 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8788 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8789 _lt_result=$?
8790 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8791 lt_cv_ld_force_load=yes
8792 else
8793 cat conftest.err >&5
8795 rm -f conftest.err libconftest.a conftest conftest.c
8796 rm -rf conftest.dSYM
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8800 $as_echo "$lt_cv_ld_force_load" >&6; }
8801 case $host_os in
8802 rhapsody* | darwin1.[012])
8803 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8804 darwin1.*)
8805 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8806 darwin*) # darwin 5.x on
8807 # if running on 10.5 or later, the deployment target defaults
8808 # to the OS version, if on x86, and 10.4, the deployment
8809 # target defaults to 10.4. Don't you love it?
8810 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8811 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8812 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8813 10.[012]*)
8814 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8815 10.*)
8816 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8817 esac
8819 esac
8820 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8821 _lt_dar_single_mod='$single_module'
8823 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8824 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8825 else
8826 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8828 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8829 _lt_dsymutil='~$DSYMUTIL $lib || :'
8830 else
8831 _lt_dsymutil=
8834 esac
8836 for ac_header in dlfcn.h
8837 do :
8838 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8840 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8841 cat >>confdefs.h <<_ACEOF
8842 #define HAVE_DLFCN_H 1
8843 _ACEOF
8847 done
8853 # Set options
8858 enable_win32_dll=no
8861 # Check whether --enable-shared was given.
8862 if test "${enable_shared+set}" = set; then :
8863 enableval=$enable_shared; p=${PACKAGE-default}
8864 case $enableval in
8865 yes) enable_shared=yes ;;
8866 no) enable_shared=no ;;
8868 enable_shared=no
8869 # Look at the argument we got. We use all the common list separators.
8870 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8871 for pkg in $enableval; do
8872 IFS="$lt_save_ifs"
8873 if test "X$pkg" = "X$p"; then
8874 enable_shared=yes
8876 done
8877 IFS="$lt_save_ifs"
8879 esac
8880 else
8881 enable_shared=yes
8892 # Check whether --enable-static was given.
8893 if test "${enable_static+set}" = set; then :
8894 enableval=$enable_static; p=${PACKAGE-default}
8895 case $enableval in
8896 yes) enable_static=yes ;;
8897 no) enable_static=no ;;
8899 enable_static=no
8900 # Look at the argument we got. We use all the common list separators.
8901 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8902 for pkg in $enableval; do
8903 IFS="$lt_save_ifs"
8904 if test "X$pkg" = "X$p"; then
8905 enable_static=yes
8907 done
8908 IFS="$lt_save_ifs"
8910 esac
8911 else
8912 enable_static=yes
8924 # Check whether --with-pic was given.
8925 if test "${with_pic+set}" = set; then :
8926 withval=$with_pic; pic_mode="$withval"
8927 else
8928 pic_mode=default
8932 test -z "$pic_mode" && pic_mode=default
8940 # Check whether --enable-fast-install was given.
8941 if test "${enable_fast_install+set}" = set; then :
8942 enableval=$enable_fast_install; p=${PACKAGE-default}
8943 case $enableval in
8944 yes) enable_fast_install=yes ;;
8945 no) enable_fast_install=no ;;
8947 enable_fast_install=no
8948 # Look at the argument we got. We use all the common list separators.
8949 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8950 for pkg in $enableval; do
8951 IFS="$lt_save_ifs"
8952 if test "X$pkg" = "X$p"; then
8953 enable_fast_install=yes
8955 done
8956 IFS="$lt_save_ifs"
8958 esac
8959 else
8960 enable_fast_install=yes
8973 # This can be used to rebuild libtool when needed
8974 LIBTOOL_DEPS="$ltmain"
8976 # Always use our own libtool.
8977 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9004 test -z "$LN_S" && LN_S="ln -s"
9019 if test -n "${ZSH_VERSION+set}" ; then
9020 setopt NO_GLOB_SUBST
9023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9024 $as_echo_n "checking for objdir... " >&6; }
9025 if test "${lt_cv_objdir+set}" = set; then :
9026 $as_echo_n "(cached) " >&6
9027 else
9028 rm -f .libs 2>/dev/null
9029 mkdir .libs 2>/dev/null
9030 if test -d .libs; then
9031 lt_cv_objdir=.libs
9032 else
9033 # MS-DOS does not allow filenames that begin with a dot.
9034 lt_cv_objdir=_libs
9036 rmdir .libs 2>/dev/null
9038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9039 $as_echo "$lt_cv_objdir" >&6; }
9040 objdir=$lt_cv_objdir
9046 cat >>confdefs.h <<_ACEOF
9047 #define LT_OBJDIR "$lt_cv_objdir/"
9048 _ACEOF
9053 case $host_os in
9054 aix3*)
9055 # AIX sometimes has problems with the GCC collect2 program. For some
9056 # reason, if we set the COLLECT_NAMES environment variable, the problems
9057 # vanish in a puff of smoke.
9058 if test "X${COLLECT_NAMES+set}" != Xset; then
9059 COLLECT_NAMES=
9060 export COLLECT_NAMES
9063 esac
9065 # Global variables:
9066 ofile=libtool
9067 can_build_shared=yes
9069 # All known linkers require a `.a' archive for static linking (except MSVC,
9070 # which needs '.lib').
9071 libext=a
9073 with_gnu_ld="$lt_cv_prog_gnu_ld"
9075 old_CC="$CC"
9076 old_CFLAGS="$CFLAGS"
9078 # Set sane defaults for various variables
9079 test -z "$CC" && CC=cc
9080 test -z "$LTCC" && LTCC=$CC
9081 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9082 test -z "$LD" && LD=ld
9083 test -z "$ac_objext" && ac_objext=o
9085 for cc_temp in $compiler""; do
9086 case $cc_temp in
9087 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9088 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9089 \-*) ;;
9090 *) break;;
9091 esac
9092 done
9093 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9096 # Only perform the check for file, if the check method requires it
9097 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9098 case $deplibs_check_method in
9099 file_magic*)
9100 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9102 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9103 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9104 $as_echo_n "(cached) " >&6
9105 else
9106 case $MAGIC_CMD in
9107 [\\/*] | ?:[\\/]*)
9108 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9111 lt_save_MAGIC_CMD="$MAGIC_CMD"
9112 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9113 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9114 for ac_dir in $ac_dummy; do
9115 IFS="$lt_save_ifs"
9116 test -z "$ac_dir" && ac_dir=.
9117 if test -f $ac_dir/${ac_tool_prefix}file; then
9118 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9119 if test -n "$file_magic_test_file"; then
9120 case $deplibs_check_method in
9121 "file_magic "*)
9122 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9123 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9124 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9125 $EGREP "$file_magic_regex" > /dev/null; then
9127 else
9128 cat <<_LT_EOF 1>&2
9130 *** Warning: the command libtool uses to detect shared libraries,
9131 *** $file_magic_cmd, produces output that libtool cannot recognize.
9132 *** The result is that libtool may fail to recognize shared libraries
9133 *** as such. This will affect the creation of libtool libraries that
9134 *** depend on shared libraries, but programs linked with such libtool
9135 *** libraries will work regardless of this problem. Nevertheless, you
9136 *** may want to report the problem to your system manager and/or to
9137 *** bug-libtool@gnu.org
9139 _LT_EOF
9140 fi ;;
9141 esac
9143 break
9145 done
9146 IFS="$lt_save_ifs"
9147 MAGIC_CMD="$lt_save_MAGIC_CMD"
9149 esac
9152 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9153 if test -n "$MAGIC_CMD"; then
9154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9155 $as_echo "$MAGIC_CMD" >&6; }
9156 else
9157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9158 $as_echo "no" >&6; }
9165 if test -z "$lt_cv_path_MAGIC_CMD"; then
9166 if test -n "$ac_tool_prefix"; then
9167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9168 $as_echo_n "checking for file... " >&6; }
9169 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9170 $as_echo_n "(cached) " >&6
9171 else
9172 case $MAGIC_CMD in
9173 [\\/*] | ?:[\\/]*)
9174 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9177 lt_save_MAGIC_CMD="$MAGIC_CMD"
9178 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9179 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9180 for ac_dir in $ac_dummy; do
9181 IFS="$lt_save_ifs"
9182 test -z "$ac_dir" && ac_dir=.
9183 if test -f $ac_dir/file; then
9184 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9185 if test -n "$file_magic_test_file"; then
9186 case $deplibs_check_method in
9187 "file_magic "*)
9188 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9189 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9190 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9191 $EGREP "$file_magic_regex" > /dev/null; then
9193 else
9194 cat <<_LT_EOF 1>&2
9196 *** Warning: the command libtool uses to detect shared libraries,
9197 *** $file_magic_cmd, produces output that libtool cannot recognize.
9198 *** The result is that libtool may fail to recognize shared libraries
9199 *** as such. This will affect the creation of libtool libraries that
9200 *** depend on shared libraries, but programs linked with such libtool
9201 *** libraries will work regardless of this problem. Nevertheless, you
9202 *** may want to report the problem to your system manager and/or to
9203 *** bug-libtool@gnu.org
9205 _LT_EOF
9206 fi ;;
9207 esac
9209 break
9211 done
9212 IFS="$lt_save_ifs"
9213 MAGIC_CMD="$lt_save_MAGIC_CMD"
9215 esac
9218 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9219 if test -n "$MAGIC_CMD"; then
9220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9221 $as_echo "$MAGIC_CMD" >&6; }
9222 else
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9224 $as_echo "no" >&6; }
9228 else
9229 MAGIC_CMD=:
9235 esac
9237 # Use C for the default configuration in the libtool script
9239 lt_save_CC="$CC"
9240 ac_ext=c
9241 ac_cpp='$CPP $CPPFLAGS'
9242 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9243 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9244 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9247 # Source file extension for C test sources.
9248 ac_ext=c
9250 # Object file extension for compiled C test sources.
9251 objext=o
9252 objext=$objext
9254 # Code to be used in simple compile tests
9255 lt_simple_compile_test_code="int some_variable = 0;"
9257 # Code to be used in simple link tests
9258 lt_simple_link_test_code='int main(){return(0);}'
9266 # If no C compiler was specified, use CC.
9267 LTCC=${LTCC-"$CC"}
9269 # If no C compiler flags were specified, use CFLAGS.
9270 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9272 # Allow CC to be a program name with arguments.
9273 compiler=$CC
9275 # Save the default compiler, since it gets overwritten when the other
9276 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9277 compiler_DEFAULT=$CC
9279 # save warnings/boilerplate of simple test code
9280 ac_outfile=conftest.$ac_objext
9281 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9282 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9283 _lt_compiler_boilerplate=`cat conftest.err`
9284 $RM conftest*
9286 ac_outfile=conftest.$ac_objext
9287 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9288 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9289 _lt_linker_boilerplate=`cat conftest.err`
9290 $RM -r conftest*
9293 ## CAVEAT EMPTOR:
9294 ## There is no encapsulation within the following macros, do not change
9295 ## the running order or otherwise move them around unless you know exactly
9296 ## what you are doing...
9297 if test -n "$compiler"; then
9299 lt_prog_compiler_no_builtin_flag=
9301 if test "$GCC" = yes; then
9302 case $cc_basename in
9303 nvcc*)
9304 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9306 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9307 esac
9309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9310 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9311 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9312 $as_echo_n "(cached) " >&6
9313 else
9314 lt_cv_prog_compiler_rtti_exceptions=no
9315 ac_outfile=conftest.$ac_objext
9316 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9317 lt_compiler_flag="-fno-rtti -fno-exceptions"
9318 # Insert the option either (1) after the last *FLAGS variable, or
9319 # (2) before a word containing "conftest.", or (3) at the end.
9320 # Note that $ac_compile itself does not contain backslashes and begins
9321 # with a dollar sign (not a hyphen), so the echo should work correctly.
9322 # The option is referenced via a variable to avoid confusing sed.
9323 lt_compile=`echo "$ac_compile" | $SED \
9324 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9325 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9326 -e 's:$: $lt_compiler_flag:'`
9327 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9328 (eval "$lt_compile" 2>conftest.err)
9329 ac_status=$?
9330 cat conftest.err >&5
9331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9332 if (exit $ac_status) && test -s "$ac_outfile"; then
9333 # The compiler can only warn and ignore the option if not recognized
9334 # So say no if there are warnings other than the usual output.
9335 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9336 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9337 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9338 lt_cv_prog_compiler_rtti_exceptions=yes
9341 $RM conftest*
9344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9345 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9347 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9348 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9349 else
9360 lt_prog_compiler_wl=
9361 lt_prog_compiler_pic=
9362 lt_prog_compiler_static=
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9365 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9367 if test "$GCC" = yes; then
9368 lt_prog_compiler_wl='-Wl,'
9369 lt_prog_compiler_static='-static'
9371 case $host_os in
9372 aix*)
9373 # All AIX code is PIC.
9374 if test "$host_cpu" = ia64; then
9375 # AIX 5 now supports IA64 processor
9376 lt_prog_compiler_static='-Bstatic'
9378 lt_prog_compiler_pic='-fPIC'
9381 amigaos*)
9382 case $host_cpu in
9383 powerpc)
9384 # see comment about AmigaOS4 .so support
9385 lt_prog_compiler_pic='-fPIC'
9387 m68k)
9388 # FIXME: we need at least 68020 code to build shared libraries, but
9389 # adding the `-m68020' flag to GCC prevents building anything better,
9390 # like `-m68040'.
9391 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9393 esac
9396 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9397 # PIC is the default for these OSes.
9400 mingw* | cygwin* | pw32* | os2* | cegcc*)
9401 # This hack is so that the source file can tell whether it is being
9402 # built for inclusion in a dll (and should export symbols for example).
9403 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9404 # (--disable-auto-import) libraries
9405 lt_prog_compiler_pic='-DDLL_EXPORT'
9408 darwin* | rhapsody*)
9409 # PIC is the default on this platform
9410 # Common symbols not allowed in MH_DYLIB files
9411 lt_prog_compiler_pic='-fno-common'
9414 haiku*)
9415 # PIC is the default for Haiku.
9416 # The "-static" flag exists, but is broken.
9417 lt_prog_compiler_static=
9420 hpux*)
9421 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9422 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9423 # sets the default TLS model and affects inlining.
9424 case $host_cpu in
9425 hppa*64*)
9426 # +Z the default
9429 lt_prog_compiler_pic='-fPIC'
9431 esac
9434 interix[3-9]*)
9435 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9436 # Instead, we relocate shared libraries at runtime.
9439 msdosdjgpp*)
9440 # Just because we use GCC doesn't mean we suddenly get shared libraries
9441 # on systems that don't support them.
9442 lt_prog_compiler_can_build_shared=no
9443 enable_shared=no
9446 *nto* | *qnx*)
9447 # QNX uses GNU C++, but need to define -shared option too, otherwise
9448 # it will coredump.
9449 lt_prog_compiler_pic='-fPIC -shared'
9452 sysv4*MP*)
9453 if test -d /usr/nec; then
9454 lt_prog_compiler_pic=-Kconform_pic
9459 lt_prog_compiler_pic='-fPIC'
9461 esac
9463 case $cc_basename in
9464 nvcc*) # Cuda Compiler Driver 2.2
9465 lt_prog_compiler_wl='-Xlinker '
9466 lt_prog_compiler_pic='-Xcompiler -fPIC'
9468 esac
9469 else
9470 # PORTME Check for flag to pass linker flags through the system compiler.
9471 case $host_os in
9472 aix*)
9473 lt_prog_compiler_wl='-Wl,'
9474 if test "$host_cpu" = ia64; then
9475 # AIX 5 now supports IA64 processor
9476 lt_prog_compiler_static='-Bstatic'
9477 else
9478 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9482 mingw* | cygwin* | pw32* | os2* | cegcc*)
9483 # This hack is so that the source file can tell whether it is being
9484 # built for inclusion in a dll (and should export symbols for example).
9485 lt_prog_compiler_pic='-DDLL_EXPORT'
9488 hpux9* | hpux10* | hpux11*)
9489 lt_prog_compiler_wl='-Wl,'
9490 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9491 # not for PA HP-UX.
9492 case $host_cpu in
9493 hppa*64*|ia64*)
9494 # +Z the default
9497 lt_prog_compiler_pic='+Z'
9499 esac
9500 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9501 lt_prog_compiler_static='${wl}-a ${wl}archive'
9504 irix5* | irix6* | nonstopux*)
9505 lt_prog_compiler_wl='-Wl,'
9506 # PIC (with -KPIC) is the default.
9507 lt_prog_compiler_static='-non_shared'
9510 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9511 case $cc_basename in
9512 # old Intel for x86_64 which still supported -KPIC.
9513 ecc*)
9514 lt_prog_compiler_wl='-Wl,'
9515 lt_prog_compiler_pic='-KPIC'
9516 lt_prog_compiler_static='-static'
9518 # icc used to be incompatible with GCC.
9519 # ICC 10 doesn't accept -KPIC any more.
9520 icc* | ifort*)
9521 lt_prog_compiler_wl='-Wl,'
9522 lt_prog_compiler_pic='-fPIC'
9523 lt_prog_compiler_static='-static'
9525 # Lahey Fortran 8.1.
9526 lf95*)
9527 lt_prog_compiler_wl='-Wl,'
9528 lt_prog_compiler_pic='--shared'
9529 lt_prog_compiler_static='--static'
9531 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9532 # Portland Group compilers (*not* the Pentium gcc compiler,
9533 # which looks to be a dead project)
9534 lt_prog_compiler_wl='-Wl,'
9535 lt_prog_compiler_pic='-fpic'
9536 lt_prog_compiler_static='-Bstatic'
9538 ccc*)
9539 lt_prog_compiler_wl='-Wl,'
9540 # All Alpha code is PIC.
9541 lt_prog_compiler_static='-non_shared'
9543 xl* | bgxl* | bgf* | mpixl*)
9544 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9545 lt_prog_compiler_wl='-Wl,'
9546 lt_prog_compiler_pic='-qpic'
9547 lt_prog_compiler_static='-qstaticlink'
9550 case `$CC -V 2>&1 | sed 5q` in
9551 *Sun\ F* | *Sun*Fortran*)
9552 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9553 lt_prog_compiler_pic='-KPIC'
9554 lt_prog_compiler_static='-Bstatic'
9555 lt_prog_compiler_wl=''
9557 *Sun\ C*)
9558 # Sun C 5.9
9559 lt_prog_compiler_pic='-KPIC'
9560 lt_prog_compiler_static='-Bstatic'
9561 lt_prog_compiler_wl='-Wl,'
9563 esac
9565 esac
9568 newsos6)
9569 lt_prog_compiler_pic='-KPIC'
9570 lt_prog_compiler_static='-Bstatic'
9573 *nto* | *qnx*)
9574 # QNX uses GNU C++, but need to define -shared option too, otherwise
9575 # it will coredump.
9576 lt_prog_compiler_pic='-fPIC -shared'
9579 osf3* | osf4* | osf5*)
9580 lt_prog_compiler_wl='-Wl,'
9581 # All OSF/1 code is PIC.
9582 lt_prog_compiler_static='-non_shared'
9585 rdos*)
9586 lt_prog_compiler_static='-non_shared'
9589 solaris*)
9590 lt_prog_compiler_pic='-KPIC'
9591 lt_prog_compiler_static='-Bstatic'
9592 case $cc_basename in
9593 f77* | f90* | f95*)
9594 lt_prog_compiler_wl='-Qoption ld ';;
9596 lt_prog_compiler_wl='-Wl,';;
9597 esac
9600 sunos4*)
9601 lt_prog_compiler_wl='-Qoption ld '
9602 lt_prog_compiler_pic='-PIC'
9603 lt_prog_compiler_static='-Bstatic'
9606 sysv4 | sysv4.2uw2* | sysv4.3*)
9607 lt_prog_compiler_wl='-Wl,'
9608 lt_prog_compiler_pic='-KPIC'
9609 lt_prog_compiler_static='-Bstatic'
9612 sysv4*MP*)
9613 if test -d /usr/nec ;then
9614 lt_prog_compiler_pic='-Kconform_pic'
9615 lt_prog_compiler_static='-Bstatic'
9619 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9620 lt_prog_compiler_wl='-Wl,'
9621 lt_prog_compiler_pic='-KPIC'
9622 lt_prog_compiler_static='-Bstatic'
9625 unicos*)
9626 lt_prog_compiler_wl='-Wl,'
9627 lt_prog_compiler_can_build_shared=no
9630 uts4*)
9631 lt_prog_compiler_pic='-pic'
9632 lt_prog_compiler_static='-Bstatic'
9636 lt_prog_compiler_can_build_shared=no
9638 esac
9641 case $host_os in
9642 # For platforms which do not support PIC, -DPIC is meaningless:
9643 *djgpp*)
9644 lt_prog_compiler_pic=
9647 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9649 esac
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9651 $as_echo "$lt_prog_compiler_pic" >&6; }
9659 # Check to make sure the PIC flag actually works.
9661 if test -n "$lt_prog_compiler_pic"; then
9662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9663 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9664 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9665 $as_echo_n "(cached) " >&6
9666 else
9667 lt_cv_prog_compiler_pic_works=no
9668 ac_outfile=conftest.$ac_objext
9669 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9670 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9671 # Insert the option either (1) after the last *FLAGS variable, or
9672 # (2) before a word containing "conftest.", or (3) at the end.
9673 # Note that $ac_compile itself does not contain backslashes and begins
9674 # with a dollar sign (not a hyphen), so the echo should work correctly.
9675 # The option is referenced via a variable to avoid confusing sed.
9676 lt_compile=`echo "$ac_compile" | $SED \
9677 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9678 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9679 -e 's:$: $lt_compiler_flag:'`
9680 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9681 (eval "$lt_compile" 2>conftest.err)
9682 ac_status=$?
9683 cat conftest.err >&5
9684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9685 if (exit $ac_status) && test -s "$ac_outfile"; then
9686 # The compiler can only warn and ignore the option if not recognized
9687 # So say no if there are warnings other than the usual output.
9688 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9689 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9690 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9691 lt_cv_prog_compiler_pic_works=yes
9694 $RM conftest*
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9698 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9700 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9701 case $lt_prog_compiler_pic in
9702 "" | " "*) ;;
9703 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9704 esac
9705 else
9706 lt_prog_compiler_pic=
9707 lt_prog_compiler_can_build_shared=no
9718 # Check to make sure the static flag actually works.
9720 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9722 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9723 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9724 $as_echo_n "(cached) " >&6
9725 else
9726 lt_cv_prog_compiler_static_works=no
9727 save_LDFLAGS="$LDFLAGS"
9728 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9729 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9730 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9731 # The linker can only warn and ignore the option if not recognized
9732 # So say no if there are warnings
9733 if test -s conftest.err; then
9734 # Append any errors to the config.log.
9735 cat conftest.err 1>&5
9736 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9737 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9738 if diff conftest.exp conftest.er2 >/dev/null; then
9739 lt_cv_prog_compiler_static_works=yes
9741 else
9742 lt_cv_prog_compiler_static_works=yes
9745 $RM -r conftest*
9746 LDFLAGS="$save_LDFLAGS"
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9750 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9752 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9754 else
9755 lt_prog_compiler_static=
9764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9765 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9766 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9767 $as_echo_n "(cached) " >&6
9768 else
9769 lt_cv_prog_compiler_c_o=no
9770 $RM -r conftest 2>/dev/null
9771 mkdir conftest
9772 cd conftest
9773 mkdir out
9774 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9776 lt_compiler_flag="-o out/conftest2.$ac_objext"
9777 # Insert the option either (1) after the last *FLAGS variable, or
9778 # (2) before a word containing "conftest.", or (3) at the end.
9779 # Note that $ac_compile itself does not contain backslashes and begins
9780 # with a dollar sign (not a hyphen), so the echo should work correctly.
9781 lt_compile=`echo "$ac_compile" | $SED \
9782 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9783 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9784 -e 's:$: $lt_compiler_flag:'`
9785 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9786 (eval "$lt_compile" 2>out/conftest.err)
9787 ac_status=$?
9788 cat out/conftest.err >&5
9789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9790 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9791 then
9792 # The compiler can only warn and ignore the option if not recognized
9793 # So say no if there are warnings
9794 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9795 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9796 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9797 lt_cv_prog_compiler_c_o=yes
9800 chmod u+w . 2>&5
9801 $RM conftest*
9802 # SGI C++ compiler will create directory out/ii_files/ for
9803 # template instantiation
9804 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9805 $RM out/* && rmdir out
9806 cd ..
9807 $RM -r conftest
9808 $RM conftest*
9811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9812 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9820 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9821 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9822 $as_echo_n "(cached) " >&6
9823 else
9824 lt_cv_prog_compiler_c_o=no
9825 $RM -r conftest 2>/dev/null
9826 mkdir conftest
9827 cd conftest
9828 mkdir out
9829 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9831 lt_compiler_flag="-o out/conftest2.$ac_objext"
9832 # Insert the option either (1) after the last *FLAGS variable, or
9833 # (2) before a word containing "conftest.", or (3) at the end.
9834 # Note that $ac_compile itself does not contain backslashes and begins
9835 # with a dollar sign (not a hyphen), so the echo should work correctly.
9836 lt_compile=`echo "$ac_compile" | $SED \
9837 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9838 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9839 -e 's:$: $lt_compiler_flag:'`
9840 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9841 (eval "$lt_compile" 2>out/conftest.err)
9842 ac_status=$?
9843 cat out/conftest.err >&5
9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9846 then
9847 # The compiler can only warn and ignore the option if not recognized
9848 # So say no if there are warnings
9849 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9850 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9851 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9852 lt_cv_prog_compiler_c_o=yes
9855 chmod u+w . 2>&5
9856 $RM conftest*
9857 # SGI C++ compiler will create directory out/ii_files/ for
9858 # template instantiation
9859 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9860 $RM out/* && rmdir out
9861 cd ..
9862 $RM -r conftest
9863 $RM conftest*
9866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9867 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9872 hard_links="nottested"
9873 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9874 # do not overwrite the value of need_locks provided by the user
9875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9876 $as_echo_n "checking if we can lock with hard links... " >&6; }
9877 hard_links=yes
9878 $RM conftest*
9879 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9880 touch conftest.a
9881 ln conftest.a conftest.b 2>&5 || hard_links=no
9882 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9884 $as_echo "$hard_links" >&6; }
9885 if test "$hard_links" = no; then
9886 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9887 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9888 need_locks=warn
9890 else
9891 need_locks=no
9899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9900 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9902 runpath_var=
9903 allow_undefined_flag=
9904 always_export_symbols=no
9905 archive_cmds=
9906 archive_expsym_cmds=
9907 compiler_needs_object=no
9908 enable_shared_with_static_runtimes=no
9909 export_dynamic_flag_spec=
9910 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9911 hardcode_automatic=no
9912 hardcode_direct=no
9913 hardcode_direct_absolute=no
9914 hardcode_libdir_flag_spec=
9915 hardcode_libdir_flag_spec_ld=
9916 hardcode_libdir_separator=
9917 hardcode_minus_L=no
9918 hardcode_shlibpath_var=unsupported
9919 inherit_rpath=no
9920 link_all_deplibs=unknown
9921 module_cmds=
9922 module_expsym_cmds=
9923 old_archive_from_new_cmds=
9924 old_archive_from_expsyms_cmds=
9925 thread_safe_flag_spec=
9926 whole_archive_flag_spec=
9927 # include_expsyms should be a list of space-separated symbols to be *always*
9928 # included in the symbol list
9929 include_expsyms=
9930 # exclude_expsyms can be an extended regexp of symbols to exclude
9931 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9932 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9933 # as well as any symbol that contains `d'.
9934 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9935 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9936 # platforms (ab)use it in PIC code, but their linkers get confused if
9937 # the symbol is explicitly referenced. Since portable code cannot
9938 # rely on this symbol name, it's probably fine to never include it in
9939 # preloaded symbol tables.
9940 # Exclude shared library initialization/finalization symbols.
9941 extract_expsyms_cmds=
9943 case $host_os in
9944 cygwin* | mingw* | pw32* | cegcc*)
9945 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9946 # When not using gcc, we currently assume that we are using
9947 # Microsoft Visual C++.
9948 if test "$GCC" != yes; then
9949 with_gnu_ld=no
9952 interix*)
9953 # we just hope/assume this is gcc and not c89 (= MSVC++)
9954 with_gnu_ld=yes
9956 openbsd*)
9957 with_gnu_ld=no
9959 esac
9961 ld_shlibs=yes
9963 # On some targets, GNU ld is compatible enough with the native linker
9964 # that we're better off using the native interface for both.
9965 lt_use_gnu_ld_interface=no
9966 if test "$with_gnu_ld" = yes; then
9967 case $host_os in
9968 aix*)
9969 # The AIX port of GNU ld has always aspired to compatibility
9970 # with the native linker. However, as the warning in the GNU ld
9971 # block says, versions before 2.19.5* couldn't really create working
9972 # shared libraries, regardless of the interface used.
9973 case `$LD -v 2>&1` in
9974 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9975 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9976 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9978 lt_use_gnu_ld_interface=yes
9980 esac
9983 lt_use_gnu_ld_interface=yes
9985 esac
9988 if test "$lt_use_gnu_ld_interface" = yes; then
9989 # If archive_cmds runs LD, not CC, wlarc should be empty
9990 wlarc='${wl}'
9992 # Set some defaults for GNU ld with shared library support. These
9993 # are reset later if shared libraries are not supported. Putting them
9994 # here allows them to be overridden if necessary.
9995 runpath_var=LD_RUN_PATH
9996 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9997 export_dynamic_flag_spec='${wl}--export-dynamic'
9998 # ancient GNU ld didn't support --whole-archive et. al.
9999 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10000 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10001 else
10002 whole_archive_flag_spec=
10004 supports_anon_versioning=no
10005 case `$LD -v 2>&1` in
10006 *GNU\ gold*) supports_anon_versioning=yes ;;
10007 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10008 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10009 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10010 *\ 2.11.*) ;; # other 2.11 versions
10011 *) supports_anon_versioning=yes ;;
10012 esac
10014 # See if GNU ld supports shared libraries.
10015 case $host_os in
10016 aix[3-9]*)
10017 # On AIX/PPC, the GNU linker is very broken
10018 if test "$host_cpu" != ia64; then
10019 ld_shlibs=no
10020 cat <<_LT_EOF 1>&2
10022 *** Warning: the GNU linker, at least up to release 2.19, is reported
10023 *** to be unable to reliably create shared libraries on AIX.
10024 *** Therefore, libtool is disabling shared libraries support. If you
10025 *** really care for shared libraries, you may want to install binutils
10026 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10027 *** You will then need to restart the configuration process.
10029 _LT_EOF
10033 amigaos*)
10034 case $host_cpu in
10035 powerpc)
10036 # see comment about AmigaOS4 .so support
10037 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10038 archive_expsym_cmds=''
10040 m68k)
10041 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)'
10042 hardcode_libdir_flag_spec='-L$libdir'
10043 hardcode_minus_L=yes
10045 esac
10048 beos*)
10049 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10050 allow_undefined_flag=unsupported
10051 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10052 # support --undefined. This deserves some investigation. FIXME
10053 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10054 else
10055 ld_shlibs=no
10059 cygwin* | mingw* | pw32* | cegcc*)
10060 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10061 # as there is no search path for DLLs.
10062 hardcode_libdir_flag_spec='-L$libdir'
10063 export_dynamic_flag_spec='${wl}--export-all-symbols'
10064 allow_undefined_flag=unsupported
10065 always_export_symbols=no
10066 enable_shared_with_static_runtimes=yes
10067 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10069 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10070 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10071 # If the export-symbols file already is a .def file (1st line
10072 # is EXPORTS), use it as is; otherwise, prepend...
10073 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10074 cp $export_symbols $output_objdir/$soname.def;
10075 else
10076 echo EXPORTS > $output_objdir/$soname.def;
10077 cat $export_symbols >> $output_objdir/$soname.def;
10079 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10080 else
10081 ld_shlibs=no
10085 haiku*)
10086 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10087 link_all_deplibs=yes
10090 interix[3-9]*)
10091 hardcode_direct=no
10092 hardcode_shlibpath_var=no
10093 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10094 export_dynamic_flag_spec='${wl}-E'
10095 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10096 # Instead, shared libraries are loaded at an image base (0x10000000 by
10097 # default) and relocated if they conflict, which is a slow very memory
10098 # consuming and fragmenting process. To avoid this, we pick a random,
10099 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10100 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10101 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10102 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'
10105 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10106 tmp_diet=no
10107 if test "$host_os" = linux-dietlibc; then
10108 case $cc_basename in
10109 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10110 esac
10112 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10113 && test "$tmp_diet" = no
10114 then
10115 tmp_addflag=
10116 tmp_sharedflag='-shared'
10117 case $cc_basename,$host_cpu in
10118 pgcc*) # Portland Group C compiler
10119 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'
10120 tmp_addflag=' $pic_flag'
10122 pgf77* | pgf90* | pgf95* | pgfortran*)
10123 # Portland Group f77 and f90 compilers
10124 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'
10125 tmp_addflag=' $pic_flag -Mnomain' ;;
10126 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10127 tmp_addflag=' -i_dynamic' ;;
10128 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10129 tmp_addflag=' -i_dynamic -nofor_main' ;;
10130 ifc* | ifort*) # Intel Fortran compiler
10131 tmp_addflag=' -nofor_main' ;;
10132 lf95*) # Lahey Fortran 8.1
10133 whole_archive_flag_spec=
10134 tmp_sharedflag='--shared' ;;
10135 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10136 tmp_sharedflag='-qmkshrobj'
10137 tmp_addflag= ;;
10138 nvcc*) # Cuda Compiler Driver 2.2
10139 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'
10140 compiler_needs_object=yes
10142 esac
10143 case `$CC -V 2>&1 | sed 5q` in
10144 *Sun\ C*) # Sun C 5.9
10145 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'
10146 compiler_needs_object=yes
10147 tmp_sharedflag='-G' ;;
10148 *Sun\ F*) # Sun Fortran 8.3
10149 tmp_sharedflag='-G' ;;
10150 esac
10151 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10153 if test "x$supports_anon_versioning" = xyes; then
10154 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10155 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10156 echo "local: *; };" >> $output_objdir/$libname.ver~
10157 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10160 case $cc_basename in
10161 xlf* | bgf* | bgxlf* | mpixlf*)
10162 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10163 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10164 hardcode_libdir_flag_spec=
10165 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10166 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10167 if test "x$supports_anon_versioning" = xyes; then
10168 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10169 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10170 echo "local: *; };" >> $output_objdir/$libname.ver~
10171 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10174 esac
10175 else
10176 ld_shlibs=no
10180 netbsd*)
10181 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10182 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10183 wlarc=
10184 else
10185 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10186 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10190 solaris*)
10191 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10192 ld_shlibs=no
10193 cat <<_LT_EOF 1>&2
10195 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10196 *** create shared libraries on Solaris systems. Therefore, libtool
10197 *** is disabling shared libraries support. We urge you to upgrade GNU
10198 *** binutils to release 2.9.1 or newer. Another option is to modify
10199 *** your PATH or compiler configuration so that the native linker is
10200 *** used, and then restart.
10202 _LT_EOF
10203 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10204 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10205 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10206 else
10207 ld_shlibs=no
10211 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10212 case `$LD -v 2>&1` in
10213 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10214 ld_shlibs=no
10215 cat <<_LT_EOF 1>&2
10217 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10218 *** reliably create shared libraries on SCO systems. Therefore, libtool
10219 *** is disabling shared libraries support. We urge you to upgrade GNU
10220 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10221 *** your PATH or compiler configuration so that the native linker is
10222 *** used, and then restart.
10224 _LT_EOF
10227 # For security reasons, it is highly recommended that you always
10228 # use absolute paths for naming shared libraries, and exclude the
10229 # DT_RUNPATH tag from executables and libraries. But doing so
10230 # requires that you compile everything twice, which is a pain.
10231 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10232 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10233 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10234 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10235 else
10236 ld_shlibs=no
10239 esac
10242 sunos4*)
10243 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10244 wlarc=
10245 hardcode_direct=yes
10246 hardcode_shlibpath_var=no
10250 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10251 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10252 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10253 else
10254 ld_shlibs=no
10257 esac
10259 if test "$ld_shlibs" = no; then
10260 runpath_var=
10261 hardcode_libdir_flag_spec=
10262 export_dynamic_flag_spec=
10263 whole_archive_flag_spec=
10265 else
10266 # PORTME fill in a description of your system's linker (not GNU ld)
10267 case $host_os in
10268 aix3*)
10269 allow_undefined_flag=unsupported
10270 always_export_symbols=yes
10271 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'
10272 # Note: this linker hardcodes the directories in LIBPATH if there
10273 # are no directories specified by -L.
10274 hardcode_minus_L=yes
10275 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10276 # Neither direct hardcoding nor static linking is supported with a
10277 # broken collect2.
10278 hardcode_direct=unsupported
10282 aix[4-9]*)
10283 if test "$host_cpu" = ia64; then
10284 # On IA64, the linker does run time linking by default, so we don't
10285 # have to do anything special.
10286 aix_use_runtimelinking=no
10287 exp_sym_flag='-Bexport'
10288 no_entry_flag=""
10289 else
10290 # If we're using GNU nm, then we don't want the "-C" option.
10291 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10292 # Also, AIX nm treats weak defined symbols like other global
10293 # defined symbols, whereas GNU nm marks them as "W".
10294 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10295 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'
10296 else
10297 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'
10299 aix_use_runtimelinking=no
10301 # Test if we are trying to use run time linking or normal
10302 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10303 # need to do runtime linking.
10304 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10305 for ld_flag in $LDFLAGS; do
10306 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10307 aix_use_runtimelinking=yes
10308 break
10310 done
10312 esac
10314 exp_sym_flag='-bexport'
10315 no_entry_flag='-bnoentry'
10318 # When large executables or shared objects are built, AIX ld can
10319 # have problems creating the table of contents. If linking a library
10320 # or program results in "error TOC overflow" add -mminimal-toc to
10321 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10322 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10324 archive_cmds=''
10325 hardcode_direct=yes
10326 hardcode_direct_absolute=yes
10327 hardcode_libdir_separator=':'
10328 link_all_deplibs=yes
10329 file_list_spec='${wl}-f,'
10331 if test "$GCC" = yes; then
10332 case $host_os in aix4.[012]|aix4.[012].*)
10333 # We only want to do this on AIX 4.2 and lower, the check
10334 # below for broken collect2 doesn't work under 4.3+
10335 collect2name=`${CC} -print-prog-name=collect2`
10336 if test -f "$collect2name" &&
10337 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10338 then
10339 # We have reworked collect2
10341 else
10342 # We have old collect2
10343 hardcode_direct=unsupported
10344 # It fails to find uninstalled libraries when the uninstalled
10345 # path is not listed in the libpath. Setting hardcode_minus_L
10346 # to unsupported forces relinking
10347 hardcode_minus_L=yes
10348 hardcode_libdir_flag_spec='-L$libdir'
10349 hardcode_libdir_separator=
10352 esac
10353 shared_flag='-shared'
10354 if test "$aix_use_runtimelinking" = yes; then
10355 shared_flag="$shared_flag "'${wl}-G'
10357 else
10358 # not using gcc
10359 if test "$host_cpu" = ia64; then
10360 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10361 # chokes on -Wl,-G. The following line is correct:
10362 shared_flag='-G'
10363 else
10364 if test "$aix_use_runtimelinking" = yes; then
10365 shared_flag='${wl}-G'
10366 else
10367 shared_flag='${wl}-bM:SRE'
10372 export_dynamic_flag_spec='${wl}-bexpall'
10373 # It seems that -bexpall does not export symbols beginning with
10374 # underscore (_), so it is better to generate a list of symbols to export.
10375 always_export_symbols=yes
10376 if test "$aix_use_runtimelinking" = yes; then
10377 # Warning - without using the other runtime loading flags (-brtl),
10378 # -berok will link without error, but may produce a broken library.
10379 allow_undefined_flag='-berok'
10380 # Determine the default libpath from the value encoded in an
10381 # empty executable.
10382 if test x$gcc_no_link = xyes; then
10383 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10386 /* end confdefs.h. */
10389 main ()
10393 return 0;
10395 _ACEOF
10396 if ac_fn_c_try_link "$LINENO"; then :
10398 lt_aix_libpath_sed='
10399 /Import File Strings/,/^$/ {
10400 /^0/ {
10401 s/^0 *\(.*\)$/\1/
10405 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10406 # Check for a 64-bit object if we didn't find anything.
10407 if test -z "$aix_libpath"; then
10408 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10411 rm -f core conftest.err conftest.$ac_objext \
10412 conftest$ac_exeext conftest.$ac_ext
10413 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10415 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10416 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"
10417 else
10418 if test "$host_cpu" = ia64; then
10419 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10420 allow_undefined_flag="-z nodefs"
10421 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"
10422 else
10423 # Determine the default libpath from the value encoded in an
10424 # empty executable.
10425 if test x$gcc_no_link = xyes; then
10426 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10429 /* end confdefs.h. */
10432 main ()
10436 return 0;
10438 _ACEOF
10439 if ac_fn_c_try_link "$LINENO"; then :
10441 lt_aix_libpath_sed='
10442 /Import File Strings/,/^$/ {
10443 /^0/ {
10444 s/^0 *\(.*\)$/\1/
10448 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10449 # Check for a 64-bit object if we didn't find anything.
10450 if test -z "$aix_libpath"; then
10451 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10454 rm -f core conftest.err conftest.$ac_objext \
10455 conftest$ac_exeext conftest.$ac_ext
10456 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10458 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10459 # Warning - without using the other run time loading flags,
10460 # -berok will link without error, but may produce a broken library.
10461 no_undefined_flag=' ${wl}-bernotok'
10462 allow_undefined_flag=' ${wl}-berok'
10463 if test "$with_gnu_ld" = yes; then
10464 # We only use this code for GNU lds that support --whole-archive.
10465 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10466 else
10467 # Exported symbols can be pulled into shared objects from archives
10468 whole_archive_flag_spec='$convenience'
10470 archive_cmds_need_lc=yes
10471 # This is similar to how AIX traditionally builds its shared libraries.
10472 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'
10477 amigaos*)
10478 case $host_cpu in
10479 powerpc)
10480 # see comment about AmigaOS4 .so support
10481 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10482 archive_expsym_cmds=''
10484 m68k)
10485 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)'
10486 hardcode_libdir_flag_spec='-L$libdir'
10487 hardcode_minus_L=yes
10489 esac
10492 bsdi[45]*)
10493 export_dynamic_flag_spec=-rdynamic
10496 cygwin* | mingw* | pw32* | cegcc*)
10497 # When not using gcc, we currently assume that we are using
10498 # Microsoft Visual C++.
10499 # hardcode_libdir_flag_spec is actually meaningless, as there is
10500 # no search path for DLLs.
10501 hardcode_libdir_flag_spec=' '
10502 allow_undefined_flag=unsupported
10503 # Tell ltmain to make .lib files, not .a files.
10504 libext=lib
10505 # Tell ltmain to make .dll files, not .so files.
10506 shrext_cmds=".dll"
10507 # FIXME: Setting linknames here is a bad hack.
10508 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10509 # The linker will automatically build a .lib file if we build a DLL.
10510 old_archive_from_new_cmds='true'
10511 # FIXME: Should let the user specify the lib program.
10512 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10513 fix_srcfile_path='`cygpath -w "$srcfile"`'
10514 enable_shared_with_static_runtimes=yes
10517 darwin* | rhapsody*)
10520 archive_cmds_need_lc=no
10521 hardcode_direct=no
10522 hardcode_automatic=yes
10523 hardcode_shlibpath_var=unsupported
10524 if test "$lt_cv_ld_force_load" = "yes"; then
10525 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\"`'
10526 else
10527 whole_archive_flag_spec=''
10529 link_all_deplibs=yes
10530 allow_undefined_flag="$_lt_dar_allow_undefined"
10531 case $cc_basename in
10532 ifort*) _lt_dar_can_shared=yes ;;
10533 *) _lt_dar_can_shared=$GCC ;;
10534 esac
10535 if test "$_lt_dar_can_shared" = "yes"; then
10536 output_verbose_link_cmd=func_echo_all
10537 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10538 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10539 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}"
10540 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}"
10542 else
10543 ld_shlibs=no
10548 dgux*)
10549 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10550 hardcode_libdir_flag_spec='-L$libdir'
10551 hardcode_shlibpath_var=no
10554 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10555 # support. Future versions do this automatically, but an explicit c++rt0.o
10556 # does not break anything, and helps significantly (at the cost of a little
10557 # extra space).
10558 freebsd2.2*)
10559 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10560 hardcode_libdir_flag_spec='-R$libdir'
10561 hardcode_direct=yes
10562 hardcode_shlibpath_var=no
10565 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10566 freebsd2.*)
10567 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10568 hardcode_direct=yes
10569 hardcode_minus_L=yes
10570 hardcode_shlibpath_var=no
10573 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10574 freebsd* | dragonfly*)
10575 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10576 hardcode_libdir_flag_spec='-R$libdir'
10577 hardcode_direct=yes
10578 hardcode_shlibpath_var=no
10581 hpux9*)
10582 if test "$GCC" = yes; then
10583 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'
10584 else
10585 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'
10587 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10588 hardcode_libdir_separator=:
10589 hardcode_direct=yes
10591 # hardcode_minus_L: Not really in the search PATH,
10592 # but as the default location of the library.
10593 hardcode_minus_L=yes
10594 export_dynamic_flag_spec='${wl}-E'
10597 hpux10*)
10598 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10599 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10600 else
10601 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10603 if test "$with_gnu_ld" = no; then
10604 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10605 hardcode_libdir_flag_spec_ld='+b $libdir'
10606 hardcode_libdir_separator=:
10607 hardcode_direct=yes
10608 hardcode_direct_absolute=yes
10609 export_dynamic_flag_spec='${wl}-E'
10610 # hardcode_minus_L: Not really in the search PATH,
10611 # but as the default location of the library.
10612 hardcode_minus_L=yes
10616 hpux11*)
10617 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10618 case $host_cpu in
10619 hppa*64*)
10620 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10622 ia64*)
10623 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10626 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10628 esac
10629 else
10630 case $host_cpu in
10631 hppa*64*)
10632 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10634 ia64*)
10635 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10639 # Older versions of the 11.00 compiler do not understand -b yet
10640 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10642 $as_echo_n "checking if $CC understands -b... " >&6; }
10643 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10644 $as_echo_n "(cached) " >&6
10645 else
10646 lt_cv_prog_compiler__b=no
10647 save_LDFLAGS="$LDFLAGS"
10648 LDFLAGS="$LDFLAGS -b"
10649 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10650 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10651 # The linker can only warn and ignore the option if not recognized
10652 # So say no if there are warnings
10653 if test -s conftest.err; then
10654 # Append any errors to the config.log.
10655 cat conftest.err 1>&5
10656 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10657 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10658 if diff conftest.exp conftest.er2 >/dev/null; then
10659 lt_cv_prog_compiler__b=yes
10661 else
10662 lt_cv_prog_compiler__b=yes
10665 $RM -r conftest*
10666 LDFLAGS="$save_LDFLAGS"
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10670 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10672 if test x"$lt_cv_prog_compiler__b" = xyes; then
10673 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10674 else
10675 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10679 esac
10681 if test "$with_gnu_ld" = no; then
10682 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10683 hardcode_libdir_separator=:
10685 case $host_cpu in
10686 hppa*64*|ia64*)
10687 hardcode_direct=no
10688 hardcode_shlibpath_var=no
10691 hardcode_direct=yes
10692 hardcode_direct_absolute=yes
10693 export_dynamic_flag_spec='${wl}-E'
10695 # hardcode_minus_L: Not really in the search PATH,
10696 # but as the default location of the library.
10697 hardcode_minus_L=yes
10699 esac
10703 irix5* | irix6* | nonstopux*)
10704 if test "$GCC" = yes; then
10705 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'
10706 # Try to use the -exported_symbol ld option, if it does not
10707 # work, assume that -exports_file does not work either and
10708 # implicitly export all symbols.
10709 save_LDFLAGS="$LDFLAGS"
10710 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10711 if test x$gcc_no_link = xyes; then
10712 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10715 /* end confdefs.h. */
10716 int foo(void) {}
10717 _ACEOF
10718 if ac_fn_c_try_link "$LINENO"; then :
10719 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'
10722 rm -f core conftest.err conftest.$ac_objext \
10723 conftest$ac_exeext conftest.$ac_ext
10724 LDFLAGS="$save_LDFLAGS"
10725 else
10726 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'
10727 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'
10729 archive_cmds_need_lc='no'
10730 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10731 hardcode_libdir_separator=:
10732 inherit_rpath=yes
10733 link_all_deplibs=yes
10736 netbsd*)
10737 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10738 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10739 else
10740 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10742 hardcode_libdir_flag_spec='-R$libdir'
10743 hardcode_direct=yes
10744 hardcode_shlibpath_var=no
10747 newsos6)
10748 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10749 hardcode_direct=yes
10750 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10751 hardcode_libdir_separator=:
10752 hardcode_shlibpath_var=no
10755 *nto* | *qnx*)
10758 openbsd*)
10759 if test -f /usr/libexec/ld.so; then
10760 hardcode_direct=yes
10761 hardcode_shlibpath_var=no
10762 hardcode_direct_absolute=yes
10763 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10764 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10765 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10766 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10767 export_dynamic_flag_spec='${wl}-E'
10768 else
10769 case $host_os in
10770 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10771 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10772 hardcode_libdir_flag_spec='-R$libdir'
10775 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10776 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10778 esac
10780 else
10781 ld_shlibs=no
10785 os2*)
10786 hardcode_libdir_flag_spec='-L$libdir'
10787 hardcode_minus_L=yes
10788 allow_undefined_flag=unsupported
10789 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'
10790 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10793 osf3*)
10794 if test "$GCC" = yes; then
10795 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10796 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'
10797 else
10798 allow_undefined_flag=' -expect_unresolved \*'
10799 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'
10801 archive_cmds_need_lc='no'
10802 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10803 hardcode_libdir_separator=:
10806 osf4* | osf5*) # as osf3* with the addition of -msym flag
10807 if test "$GCC" = yes; then
10808 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10809 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'
10810 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10811 else
10812 allow_undefined_flag=' -expect_unresolved \*'
10813 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'
10814 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~
10815 $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'
10817 # Both c and cxx compiler support -rpath directly
10818 hardcode_libdir_flag_spec='-rpath $libdir'
10820 archive_cmds_need_lc='no'
10821 hardcode_libdir_separator=:
10824 solaris*)
10825 no_undefined_flag=' -z defs'
10826 if test "$GCC" = yes; then
10827 wlarc='${wl}'
10828 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10829 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10830 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10831 else
10832 case `$CC -V 2>&1` in
10833 *"Compilers 5.0"*)
10834 wlarc=''
10835 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10836 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10837 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10840 wlarc='${wl}'
10841 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10842 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10843 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10845 esac
10847 hardcode_libdir_flag_spec='-R$libdir'
10848 hardcode_shlibpath_var=no
10849 case $host_os in
10850 solaris2.[0-5] | solaris2.[0-5].*) ;;
10852 # The compiler driver will combine and reorder linker options,
10853 # but understands `-z linker_flag'. GCC discards it without `$wl',
10854 # but is careful enough not to reorder.
10855 # Supported since Solaris 2.6 (maybe 2.5.1?)
10856 if test "$GCC" = yes; then
10857 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10858 else
10859 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10862 esac
10863 link_all_deplibs=yes
10866 sunos4*)
10867 if test "x$host_vendor" = xsequent; then
10868 # Use $CC to link under sequent, because it throws in some extra .o
10869 # files that make .init and .fini sections work.
10870 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10871 else
10872 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10874 hardcode_libdir_flag_spec='-L$libdir'
10875 hardcode_direct=yes
10876 hardcode_minus_L=yes
10877 hardcode_shlibpath_var=no
10880 sysv4)
10881 case $host_vendor in
10882 sni)
10883 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10884 hardcode_direct=yes # is this really true???
10886 siemens)
10887 ## LD is ld it makes a PLAMLIB
10888 ## CC just makes a GrossModule.
10889 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10890 reload_cmds='$CC -r -o $output$reload_objs'
10891 hardcode_direct=no
10893 motorola)
10894 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10895 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10897 esac
10898 runpath_var='LD_RUN_PATH'
10899 hardcode_shlibpath_var=no
10902 sysv4.3*)
10903 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10904 hardcode_shlibpath_var=no
10905 export_dynamic_flag_spec='-Bexport'
10908 sysv4*MP*)
10909 if test -d /usr/nec; then
10910 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10911 hardcode_shlibpath_var=no
10912 runpath_var=LD_RUN_PATH
10913 hardcode_runpath_var=yes
10914 ld_shlibs=yes
10918 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10919 no_undefined_flag='${wl}-z,text'
10920 archive_cmds_need_lc=no
10921 hardcode_shlibpath_var=no
10922 runpath_var='LD_RUN_PATH'
10924 if test "$GCC" = yes; then
10925 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10926 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10927 else
10928 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10929 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10933 sysv5* | sco3.2v5* | sco5v6*)
10934 # Note: We can NOT use -z defs as we might desire, because we do not
10935 # link with -lc, and that would cause any symbols used from libc to
10936 # always be unresolved, which means just about no library would
10937 # ever link correctly. If we're not using GNU ld we use -z text
10938 # though, which does catch some bad symbols but isn't as heavy-handed
10939 # as -z defs.
10940 no_undefined_flag='${wl}-z,text'
10941 allow_undefined_flag='${wl}-z,nodefs'
10942 archive_cmds_need_lc=no
10943 hardcode_shlibpath_var=no
10944 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10945 hardcode_libdir_separator=':'
10946 link_all_deplibs=yes
10947 export_dynamic_flag_spec='${wl}-Bexport'
10948 runpath_var='LD_RUN_PATH'
10950 if test "$GCC" = yes; then
10951 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10952 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10953 else
10954 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10955 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10959 uts4*)
10960 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10961 hardcode_libdir_flag_spec='-L$libdir'
10962 hardcode_shlibpath_var=no
10966 ld_shlibs=no
10968 esac
10970 if test x$host_vendor = xsni; then
10971 case $host in
10972 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10973 export_dynamic_flag_spec='${wl}-Blargedynsym'
10975 esac
10979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10980 $as_echo "$ld_shlibs" >&6; }
10981 test "$ld_shlibs" = no && can_build_shared=no
10983 with_gnu_ld=$with_gnu_ld
11000 # Do we need to explicitly link libc?
11002 case "x$archive_cmds_need_lc" in
11003 x|xyes)
11004 # Assume -lc should be added
11005 archive_cmds_need_lc=yes
11007 if test "$enable_shared" = yes && test "$GCC" = yes; then
11008 case $archive_cmds in
11009 *'~'*)
11010 # FIXME: we may have to deal with multi-command sequences.
11012 '$CC '*)
11013 # Test whether the compiler implicitly links with -lc since on some
11014 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11015 # to ld, don't add -lc before -lgcc.
11016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11017 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11018 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
11019 $as_echo_n "(cached) " >&6
11020 else
11021 $RM conftest*
11022 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11024 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11025 (eval $ac_compile) 2>&5
11026 ac_status=$?
11027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11028 test $ac_status = 0; } 2>conftest.err; then
11029 soname=conftest
11030 lib=conftest
11031 libobjs=conftest.$ac_objext
11032 deplibs=
11033 wl=$lt_prog_compiler_wl
11034 pic_flag=$lt_prog_compiler_pic
11035 compiler_flags=-v
11036 linker_flags=-v
11037 verstring=
11038 output_objdir=.
11039 libname=conftest
11040 lt_save_allow_undefined_flag=$allow_undefined_flag
11041 allow_undefined_flag=
11042 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11043 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11044 ac_status=$?
11045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11046 test $ac_status = 0; }
11047 then
11048 lt_cv_archive_cmds_need_lc=no
11049 else
11050 lt_cv_archive_cmds_need_lc=yes
11052 allow_undefined_flag=$lt_save_allow_undefined_flag
11053 else
11054 cat conftest.err 1>&5
11056 $RM conftest*
11059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11060 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11061 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11063 esac
11066 esac
11224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11225 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11227 if test "$GCC" = yes; then
11228 case $host_os in
11229 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11230 *) lt_awk_arg="/^libraries:/" ;;
11231 esac
11232 case $host_os in
11233 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11234 *) lt_sed_strip_eq="s,=/,/,g" ;;
11235 esac
11236 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11237 case $lt_search_path_spec in
11238 *\;*)
11239 # if the path contains ";" then we assume it to be the separator
11240 # otherwise default to the standard path separator (i.e. ":") - it is
11241 # assumed that no part of a normal pathname contains ";" but that should
11242 # okay in the real world where ";" in dirpaths is itself problematic.
11243 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11246 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11248 esac
11249 # Ok, now we have the path, separated by spaces, we can step through it
11250 # and add multilib dir if necessary.
11251 lt_tmp_lt_search_path_spec=
11252 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11253 for lt_sys_path in $lt_search_path_spec; do
11254 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11255 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11256 else
11257 test -d "$lt_sys_path" && \
11258 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11260 done
11261 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11262 BEGIN {RS=" "; FS="/|\n";} {
11263 lt_foo="";
11264 lt_count=0;
11265 for (lt_i = NF; lt_i > 0; lt_i--) {
11266 if ($lt_i != "" && $lt_i != ".") {
11267 if ($lt_i == "..") {
11268 lt_count++;
11269 } else {
11270 if (lt_count == 0) {
11271 lt_foo="/" $lt_i lt_foo;
11272 } else {
11273 lt_count--;
11278 if (lt_foo != "") { lt_freq[lt_foo]++; }
11279 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11281 # AWK program above erroneously prepends '/' to C:/dos/paths
11282 # for these hosts.
11283 case $host_os in
11284 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11285 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11286 esac
11287 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11288 else
11289 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11291 library_names_spec=
11292 libname_spec='lib$name'
11293 soname_spec=
11294 shrext_cmds=".so"
11295 postinstall_cmds=
11296 postuninstall_cmds=
11297 finish_cmds=
11298 finish_eval=
11299 shlibpath_var=
11300 shlibpath_overrides_runpath=unknown
11301 version_type=none
11302 dynamic_linker="$host_os ld.so"
11303 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11304 need_lib_prefix=unknown
11305 hardcode_into_libs=no
11307 # when you set need_version to no, make sure it does not cause -set_version
11308 # flags to be left without arguments
11309 need_version=unknown
11311 case $host_os in
11312 aix3*)
11313 version_type=linux
11314 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11315 shlibpath_var=LIBPATH
11317 # AIX 3 has no versioning support, so we append a major version to the name.
11318 soname_spec='${libname}${release}${shared_ext}$major'
11321 aix[4-9]*)
11322 version_type=linux
11323 need_lib_prefix=no
11324 need_version=no
11325 hardcode_into_libs=yes
11326 if test "$host_cpu" = ia64; then
11327 # AIX 5 supports IA64
11328 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11329 shlibpath_var=LD_LIBRARY_PATH
11330 else
11331 # With GCC up to 2.95.x, collect2 would create an import file
11332 # for dependence libraries. The import file would start with
11333 # the line `#! .'. This would cause the generated library to
11334 # depend on `.', always an invalid library. This was fixed in
11335 # development snapshots of GCC prior to 3.0.
11336 case $host_os in
11337 aix4 | aix4.[01] | aix4.[01].*)
11338 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11339 echo ' yes '
11340 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11342 else
11343 can_build_shared=no
11346 esac
11347 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11348 # soname into executable. Probably we can add versioning support to
11349 # collect2, so additional links can be useful in future.
11350 if test "$aix_use_runtimelinking" = yes; then
11351 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11352 # instead of lib<name>.a to let people know that these are not
11353 # typical AIX shared libraries.
11354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11355 else
11356 # We preserve .a as extension for shared libraries through AIX4.2
11357 # and later when we are not doing run time linking.
11358 library_names_spec='${libname}${release}.a $libname.a'
11359 soname_spec='${libname}${release}${shared_ext}$major'
11361 shlibpath_var=LIBPATH
11365 amigaos*)
11366 case $host_cpu in
11367 powerpc)
11368 # Since July 2007 AmigaOS4 officially supports .so libraries.
11369 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11372 m68k)
11373 library_names_spec='$libname.ixlibrary $libname.a'
11374 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11375 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'
11377 esac
11380 beos*)
11381 library_names_spec='${libname}${shared_ext}'
11382 dynamic_linker="$host_os ld.so"
11383 shlibpath_var=LIBRARY_PATH
11386 bsdi[45]*)
11387 version_type=linux
11388 need_version=no
11389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11390 soname_spec='${libname}${release}${shared_ext}$major'
11391 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11392 shlibpath_var=LD_LIBRARY_PATH
11393 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11394 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11395 # the default ld.so.conf also contains /usr/contrib/lib and
11396 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11397 # libtool to hard-code these into programs
11400 cygwin* | mingw* | pw32* | cegcc*)
11401 version_type=windows
11402 shrext_cmds=".dll"
11403 need_version=no
11404 need_lib_prefix=no
11406 case $GCC,$host_os in
11407 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11408 library_names_spec='$libname.dll.a'
11409 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11410 postinstall_cmds='base_file=`basename \${file}`~
11411 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11412 dldir=$destdir/`dirname \$dlpath`~
11413 test -d \$dldir || mkdir -p \$dldir~
11414 $install_prog $dir/$dlname \$dldir/$dlname~
11415 chmod a+x \$dldir/$dlname~
11416 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11417 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11419 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11420 dlpath=$dir/\$dldll~
11421 $RM \$dlpath'
11422 shlibpath_overrides_runpath=yes
11424 case $host_os in
11425 cygwin*)
11426 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11427 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11429 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11431 mingw* | cegcc*)
11432 # MinGW DLLs use traditional 'lib' prefix
11433 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11435 pw32*)
11436 # pw32 DLLs use 'pw' prefix rather than 'lib'
11437 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11439 esac
11443 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11445 esac
11446 dynamic_linker='Win32 ld.exe'
11447 # FIXME: first we should search . and the directory the executable is in
11448 shlibpath_var=PATH
11451 darwin* | rhapsody*)
11452 dynamic_linker="$host_os dyld"
11453 version_type=darwin
11454 need_lib_prefix=no
11455 need_version=no
11456 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11457 soname_spec='${libname}${release}${major}$shared_ext'
11458 shlibpath_overrides_runpath=yes
11459 shlibpath_var=DYLD_LIBRARY_PATH
11460 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11462 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11463 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11466 dgux*)
11467 version_type=linux
11468 need_lib_prefix=no
11469 need_version=no
11470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11471 soname_spec='${libname}${release}${shared_ext}$major'
11472 shlibpath_var=LD_LIBRARY_PATH
11475 freebsd* | dragonfly*)
11476 # DragonFly does not have aout. When/if they implement a new
11477 # versioning mechanism, adjust this.
11478 if test -x /usr/bin/objformat; then
11479 objformat=`/usr/bin/objformat`
11480 else
11481 case $host_os in
11482 freebsd[23].*) objformat=aout ;;
11483 *) objformat=elf ;;
11484 esac
11486 version_type=freebsd-$objformat
11487 case $version_type in
11488 freebsd-elf*)
11489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11490 need_version=no
11491 need_lib_prefix=no
11493 freebsd-*)
11494 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11495 need_version=yes
11497 esac
11498 shlibpath_var=LD_LIBRARY_PATH
11499 case $host_os in
11500 freebsd2.*)
11501 shlibpath_overrides_runpath=yes
11503 freebsd3.[01]* | freebsdelf3.[01]*)
11504 shlibpath_overrides_runpath=yes
11505 hardcode_into_libs=yes
11507 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11508 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11509 shlibpath_overrides_runpath=no
11510 hardcode_into_libs=yes
11512 *) # from 4.6 on, and DragonFly
11513 shlibpath_overrides_runpath=yes
11514 hardcode_into_libs=yes
11516 esac
11519 gnu*)
11520 version_type=linux
11521 need_lib_prefix=no
11522 need_version=no
11523 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11524 soname_spec='${libname}${release}${shared_ext}$major'
11525 shlibpath_var=LD_LIBRARY_PATH
11526 hardcode_into_libs=yes
11529 haiku*)
11530 version_type=linux
11531 need_lib_prefix=no
11532 need_version=no
11533 dynamic_linker="$host_os runtime_loader"
11534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11535 soname_spec='${libname}${release}${shared_ext}$major'
11536 shlibpath_var=LIBRARY_PATH
11537 shlibpath_overrides_runpath=yes
11538 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11539 hardcode_into_libs=yes
11542 hpux9* | hpux10* | hpux11*)
11543 # Give a soname corresponding to the major version so that dld.sl refuses to
11544 # link against other versions.
11545 version_type=sunos
11546 need_lib_prefix=no
11547 need_version=no
11548 case $host_cpu in
11549 ia64*)
11550 shrext_cmds='.so'
11551 hardcode_into_libs=yes
11552 dynamic_linker="$host_os dld.so"
11553 shlibpath_var=LD_LIBRARY_PATH
11554 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11555 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11556 soname_spec='${libname}${release}${shared_ext}$major'
11557 if test "X$HPUX_IA64_MODE" = X32; then
11558 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11559 else
11560 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11562 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11564 hppa*64*)
11565 shrext_cmds='.sl'
11566 hardcode_into_libs=yes
11567 dynamic_linker="$host_os dld.sl"
11568 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11569 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11570 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11571 soname_spec='${libname}${release}${shared_ext}$major'
11572 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11573 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11576 shrext_cmds='.sl'
11577 dynamic_linker="$host_os dld.sl"
11578 shlibpath_var=SHLIB_PATH
11579 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11581 soname_spec='${libname}${release}${shared_ext}$major'
11583 esac
11584 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11585 postinstall_cmds='chmod 555 $lib'
11586 # or fails outright, so override atomically:
11587 install_override_mode=555
11590 interix[3-9]*)
11591 version_type=linux
11592 need_lib_prefix=no
11593 need_version=no
11594 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11595 soname_spec='${libname}${release}${shared_ext}$major'
11596 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11597 shlibpath_var=LD_LIBRARY_PATH
11598 shlibpath_overrides_runpath=no
11599 hardcode_into_libs=yes
11602 irix5* | irix6* | nonstopux*)
11603 case $host_os in
11604 nonstopux*) version_type=nonstopux ;;
11606 if test "$lt_cv_prog_gnu_ld" = yes; then
11607 version_type=linux
11608 else
11609 version_type=irix
11610 fi ;;
11611 esac
11612 need_lib_prefix=no
11613 need_version=no
11614 soname_spec='${libname}${release}${shared_ext}$major'
11615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11616 case $host_os in
11617 irix5* | nonstopux*)
11618 libsuff= shlibsuff=
11621 case $LD in # libtool.m4 will add one of these switches to LD
11622 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11623 libsuff= shlibsuff= libmagic=32-bit;;
11624 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11625 libsuff=32 shlibsuff=N32 libmagic=N32;;
11626 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11627 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11628 *) libsuff= shlibsuff= libmagic=never-match;;
11629 esac
11631 esac
11632 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11633 shlibpath_overrides_runpath=no
11634 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11635 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11636 hardcode_into_libs=yes
11639 # No shared lib support for Linux oldld, aout, or coff.
11640 linux*oldld* | linux*aout* | linux*coff*)
11641 dynamic_linker=no
11644 # This must be Linux ELF.
11645 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11646 version_type=linux
11647 need_lib_prefix=no
11648 need_version=no
11649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11650 soname_spec='${libname}${release}${shared_ext}$major'
11651 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11652 shlibpath_var=LD_LIBRARY_PATH
11653 shlibpath_overrides_runpath=no
11655 # Some binutils ld are patched to set DT_RUNPATH
11656 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11657 $as_echo_n "(cached) " >&6
11658 else
11659 lt_cv_shlibpath_overrides_runpath=no
11660 save_LDFLAGS=$LDFLAGS
11661 save_libdir=$libdir
11662 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11663 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11664 if test x$gcc_no_link = xyes; then
11665 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11668 /* end confdefs.h. */
11671 main ()
11675 return 0;
11677 _ACEOF
11678 if ac_fn_c_try_link "$LINENO"; then :
11679 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11680 lt_cv_shlibpath_overrides_runpath=yes
11683 rm -f core conftest.err conftest.$ac_objext \
11684 conftest$ac_exeext conftest.$ac_ext
11685 LDFLAGS=$save_LDFLAGS
11686 libdir=$save_libdir
11690 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11692 # This implies no fast_install, which is unacceptable.
11693 # Some rework will be needed to allow for fast_install
11694 # before this can be enabled.
11695 hardcode_into_libs=yes
11697 # Append ld.so.conf contents to the search path
11698 if test -f /etc/ld.so.conf; then
11699 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' ' '`
11700 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11703 # We used to test for /lib/ld.so.1 and disable shared libraries on
11704 # powerpc, because MkLinux only supported shared libraries with the
11705 # GNU dynamic linker. Since this was broken with cross compilers,
11706 # most powerpc-linux boxes support dynamic linking these days and
11707 # people can always --disable-shared, the test was removed, and we
11708 # assume the GNU/Linux dynamic linker is in use.
11709 dynamic_linker='GNU/Linux ld.so'
11712 netbsd*)
11713 version_type=sunos
11714 need_lib_prefix=no
11715 need_version=no
11716 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11717 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11718 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11719 dynamic_linker='NetBSD (a.out) ld.so'
11720 else
11721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11722 soname_spec='${libname}${release}${shared_ext}$major'
11723 dynamic_linker='NetBSD ld.elf_so'
11725 shlibpath_var=LD_LIBRARY_PATH
11726 shlibpath_overrides_runpath=yes
11727 hardcode_into_libs=yes
11730 newsos6)
11731 version_type=linux
11732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11733 shlibpath_var=LD_LIBRARY_PATH
11734 shlibpath_overrides_runpath=yes
11737 *nto* | *qnx*)
11738 version_type=qnx
11739 need_lib_prefix=no
11740 need_version=no
11741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11742 soname_spec='${libname}${release}${shared_ext}$major'
11743 shlibpath_var=LD_LIBRARY_PATH
11744 shlibpath_overrides_runpath=no
11745 hardcode_into_libs=yes
11746 dynamic_linker='ldqnx.so'
11749 openbsd*)
11750 version_type=sunos
11751 sys_lib_dlsearch_path_spec="/usr/lib"
11752 need_lib_prefix=no
11753 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11754 case $host_os in
11755 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11756 *) need_version=no ;;
11757 esac
11758 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11759 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11760 shlibpath_var=LD_LIBRARY_PATH
11761 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11762 case $host_os in
11763 openbsd2.[89] | openbsd2.[89].*)
11764 shlibpath_overrides_runpath=no
11767 shlibpath_overrides_runpath=yes
11769 esac
11770 else
11771 shlibpath_overrides_runpath=yes
11775 os2*)
11776 libname_spec='$name'
11777 shrext_cmds=".dll"
11778 need_lib_prefix=no
11779 library_names_spec='$libname${shared_ext} $libname.a'
11780 dynamic_linker='OS/2 ld.exe'
11781 shlibpath_var=LIBPATH
11784 osf3* | osf4* | osf5*)
11785 version_type=osf
11786 need_lib_prefix=no
11787 need_version=no
11788 soname_spec='${libname}${release}${shared_ext}$major'
11789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11790 shlibpath_var=LD_LIBRARY_PATH
11791 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11792 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11795 rdos*)
11796 dynamic_linker=no
11799 solaris*)
11800 version_type=linux
11801 need_lib_prefix=no
11802 need_version=no
11803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11804 soname_spec='${libname}${release}${shared_ext}$major'
11805 shlibpath_var=LD_LIBRARY_PATH
11806 shlibpath_overrides_runpath=yes
11807 hardcode_into_libs=yes
11808 # ldd complains unless libraries are executable
11809 postinstall_cmds='chmod +x $lib'
11812 sunos4*)
11813 version_type=sunos
11814 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11815 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11816 shlibpath_var=LD_LIBRARY_PATH
11817 shlibpath_overrides_runpath=yes
11818 if test "$with_gnu_ld" = yes; then
11819 need_lib_prefix=no
11821 need_version=yes
11824 sysv4 | sysv4.3*)
11825 version_type=linux
11826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11827 soname_spec='${libname}${release}${shared_ext}$major'
11828 shlibpath_var=LD_LIBRARY_PATH
11829 case $host_vendor in
11830 sni)
11831 shlibpath_overrides_runpath=no
11832 need_lib_prefix=no
11833 runpath_var=LD_RUN_PATH
11835 siemens)
11836 need_lib_prefix=no
11838 motorola)
11839 need_lib_prefix=no
11840 need_version=no
11841 shlibpath_overrides_runpath=no
11842 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11844 esac
11847 sysv4*MP*)
11848 if test -d /usr/nec ;then
11849 version_type=linux
11850 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11851 soname_spec='$libname${shared_ext}.$major'
11852 shlibpath_var=LD_LIBRARY_PATH
11856 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11857 version_type=freebsd-elf
11858 need_lib_prefix=no
11859 need_version=no
11860 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11861 soname_spec='${libname}${release}${shared_ext}$major'
11862 shlibpath_var=LD_LIBRARY_PATH
11863 shlibpath_overrides_runpath=yes
11864 hardcode_into_libs=yes
11865 if test "$with_gnu_ld" = yes; then
11866 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11867 else
11868 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11869 case $host_os in
11870 sco3.2v5*)
11871 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11873 esac
11875 sys_lib_dlsearch_path_spec='/usr/lib'
11878 tpf*)
11879 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11880 version_type=linux
11881 need_lib_prefix=no
11882 need_version=no
11883 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11884 shlibpath_var=LD_LIBRARY_PATH
11885 shlibpath_overrides_runpath=no
11886 hardcode_into_libs=yes
11889 uts4*)
11890 version_type=linux
11891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11892 soname_spec='${libname}${release}${shared_ext}$major'
11893 shlibpath_var=LD_LIBRARY_PATH
11897 dynamic_linker=no
11899 esac
11900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11901 $as_echo "$dynamic_linker" >&6; }
11902 test "$dynamic_linker" = no && can_build_shared=no
11904 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11905 if test "$GCC" = yes; then
11906 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11909 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11910 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11912 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11913 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12008 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12009 hardcode_action=
12010 if test -n "$hardcode_libdir_flag_spec" ||
12011 test -n "$runpath_var" ||
12012 test "X$hardcode_automatic" = "Xyes" ; then
12014 # We can hardcode non-existent directories.
12015 if test "$hardcode_direct" != no &&
12016 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12017 # have to relink, otherwise we might link with an installed library
12018 # when we should be linking with a yet-to-be-installed one
12019 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12020 test "$hardcode_minus_L" != no; then
12021 # Linking always hardcodes the temporary library directory.
12022 hardcode_action=relink
12023 else
12024 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12025 hardcode_action=immediate
12027 else
12028 # We cannot hardcode anything, or else we can only hardcode existing
12029 # directories.
12030 hardcode_action=unsupported
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12033 $as_echo "$hardcode_action" >&6; }
12035 if test "$hardcode_action" = relink ||
12036 test "$inherit_rpath" = yes; then
12037 # Fast installation is not supported
12038 enable_fast_install=no
12039 elif test "$shlibpath_overrides_runpath" = yes ||
12040 test "$enable_shared" = no; then
12041 # Fast installation is not necessary
12042 enable_fast_install=needless
12050 if test "x$enable_dlopen" != xyes; then
12051 enable_dlopen=unknown
12052 enable_dlopen_self=unknown
12053 enable_dlopen_self_static=unknown
12054 else
12055 lt_cv_dlopen=no
12056 lt_cv_dlopen_libs=
12058 case $host_os in
12059 beos*)
12060 lt_cv_dlopen="load_add_on"
12061 lt_cv_dlopen_libs=
12062 lt_cv_dlopen_self=yes
12065 mingw* | pw32* | cegcc*)
12066 lt_cv_dlopen="LoadLibrary"
12067 lt_cv_dlopen_libs=
12070 cygwin*)
12071 lt_cv_dlopen="dlopen"
12072 lt_cv_dlopen_libs=
12075 darwin*)
12076 # if libdl is installed we need to link against it
12077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12078 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12079 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12080 $as_echo_n "(cached) " >&6
12081 else
12082 ac_check_lib_save_LIBS=$LIBS
12083 LIBS="-ldl $LIBS"
12084 if test x$gcc_no_link = xyes; then
12085 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12088 /* end confdefs.h. */
12090 /* Override any GCC internal prototype to avoid an error.
12091 Use char because int might match the return type of a GCC
12092 builtin and then its argument prototype would still apply. */
12093 #ifdef __cplusplus
12094 extern "C"
12095 #endif
12096 char dlopen ();
12098 main ()
12100 return dlopen ();
12102 return 0;
12104 _ACEOF
12105 if ac_fn_c_try_link "$LINENO"; then :
12106 ac_cv_lib_dl_dlopen=yes
12107 else
12108 ac_cv_lib_dl_dlopen=no
12110 rm -f core conftest.err conftest.$ac_objext \
12111 conftest$ac_exeext conftest.$ac_ext
12112 LIBS=$ac_check_lib_save_LIBS
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12115 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12116 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12117 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12118 else
12120 lt_cv_dlopen="dyld"
12121 lt_cv_dlopen_libs=
12122 lt_cv_dlopen_self=yes
12129 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12130 if test "x$ac_cv_func_shl_load" = x""yes; then :
12131 lt_cv_dlopen="shl_load"
12132 else
12133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12134 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12135 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12136 $as_echo_n "(cached) " >&6
12137 else
12138 ac_check_lib_save_LIBS=$LIBS
12139 LIBS="-ldld $LIBS"
12140 if test x$gcc_no_link = xyes; then
12141 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12144 /* end confdefs.h. */
12146 /* Override any GCC internal prototype to avoid an error.
12147 Use char because int might match the return type of a GCC
12148 builtin and then its argument prototype would still apply. */
12149 #ifdef __cplusplus
12150 extern "C"
12151 #endif
12152 char shl_load ();
12154 main ()
12156 return shl_load ();
12158 return 0;
12160 _ACEOF
12161 if ac_fn_c_try_link "$LINENO"; then :
12162 ac_cv_lib_dld_shl_load=yes
12163 else
12164 ac_cv_lib_dld_shl_load=no
12166 rm -f core conftest.err conftest.$ac_objext \
12167 conftest$ac_exeext conftest.$ac_ext
12168 LIBS=$ac_check_lib_save_LIBS
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12171 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12172 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12173 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12174 else
12175 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12176 if test "x$ac_cv_func_dlopen" = x""yes; then :
12177 lt_cv_dlopen="dlopen"
12178 else
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12180 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12181 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12182 $as_echo_n "(cached) " >&6
12183 else
12184 ac_check_lib_save_LIBS=$LIBS
12185 LIBS="-ldl $LIBS"
12186 if test x$gcc_no_link = xyes; then
12187 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12190 /* end confdefs.h. */
12192 /* Override any GCC internal prototype to avoid an error.
12193 Use char because int might match the return type of a GCC
12194 builtin and then its argument prototype would still apply. */
12195 #ifdef __cplusplus
12196 extern "C"
12197 #endif
12198 char dlopen ();
12200 main ()
12202 return dlopen ();
12204 return 0;
12206 _ACEOF
12207 if ac_fn_c_try_link "$LINENO"; then :
12208 ac_cv_lib_dl_dlopen=yes
12209 else
12210 ac_cv_lib_dl_dlopen=no
12212 rm -f core conftest.err conftest.$ac_objext \
12213 conftest$ac_exeext conftest.$ac_ext
12214 LIBS=$ac_check_lib_save_LIBS
12216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12217 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12218 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12219 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12220 else
12221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12222 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12223 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12224 $as_echo_n "(cached) " >&6
12225 else
12226 ac_check_lib_save_LIBS=$LIBS
12227 LIBS="-lsvld $LIBS"
12228 if test x$gcc_no_link = xyes; then
12229 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12232 /* end confdefs.h. */
12234 /* Override any GCC internal prototype to avoid an error.
12235 Use char because int might match the return type of a GCC
12236 builtin and then its argument prototype would still apply. */
12237 #ifdef __cplusplus
12238 extern "C"
12239 #endif
12240 char dlopen ();
12242 main ()
12244 return dlopen ();
12246 return 0;
12248 _ACEOF
12249 if ac_fn_c_try_link "$LINENO"; then :
12250 ac_cv_lib_svld_dlopen=yes
12251 else
12252 ac_cv_lib_svld_dlopen=no
12254 rm -f core conftest.err conftest.$ac_objext \
12255 conftest$ac_exeext conftest.$ac_ext
12256 LIBS=$ac_check_lib_save_LIBS
12258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12259 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12260 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12261 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12262 else
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12264 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12265 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12266 $as_echo_n "(cached) " >&6
12267 else
12268 ac_check_lib_save_LIBS=$LIBS
12269 LIBS="-ldld $LIBS"
12270 if test x$gcc_no_link = xyes; then
12271 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12274 /* end confdefs.h. */
12276 /* Override any GCC internal prototype to avoid an error.
12277 Use char because int might match the return type of a GCC
12278 builtin and then its argument prototype would still apply. */
12279 #ifdef __cplusplus
12280 extern "C"
12281 #endif
12282 char dld_link ();
12284 main ()
12286 return dld_link ();
12288 return 0;
12290 _ACEOF
12291 if ac_fn_c_try_link "$LINENO"; then :
12292 ac_cv_lib_dld_dld_link=yes
12293 else
12294 ac_cv_lib_dld_dld_link=no
12296 rm -f core conftest.err conftest.$ac_objext \
12297 conftest$ac_exeext conftest.$ac_ext
12298 LIBS=$ac_check_lib_save_LIBS
12300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12301 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12302 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12303 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12322 esac
12324 if test "x$lt_cv_dlopen" != xno; then
12325 enable_dlopen=yes
12326 else
12327 enable_dlopen=no
12330 case $lt_cv_dlopen in
12331 dlopen)
12332 save_CPPFLAGS="$CPPFLAGS"
12333 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12335 save_LDFLAGS="$LDFLAGS"
12336 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12338 save_LIBS="$LIBS"
12339 LIBS="$lt_cv_dlopen_libs $LIBS"
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12342 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12343 if test "${lt_cv_dlopen_self+set}" = set; then :
12344 $as_echo_n "(cached) " >&6
12345 else
12346 if test "$cross_compiling" = yes; then :
12347 lt_cv_dlopen_self=cross
12348 else
12349 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12350 lt_status=$lt_dlunknown
12351 cat > conftest.$ac_ext <<_LT_EOF
12352 #line 12352 "configure"
12353 #include "confdefs.h"
12355 #if HAVE_DLFCN_H
12356 #include <dlfcn.h>
12357 #endif
12359 #include <stdio.h>
12361 #ifdef RTLD_GLOBAL
12362 # define LT_DLGLOBAL RTLD_GLOBAL
12363 #else
12364 # ifdef DL_GLOBAL
12365 # define LT_DLGLOBAL DL_GLOBAL
12366 # else
12367 # define LT_DLGLOBAL 0
12368 # endif
12369 #endif
12371 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12372 find out it does not work in some platform. */
12373 #ifndef LT_DLLAZY_OR_NOW
12374 # ifdef RTLD_LAZY
12375 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12376 # else
12377 # ifdef DL_LAZY
12378 # define LT_DLLAZY_OR_NOW DL_LAZY
12379 # else
12380 # ifdef RTLD_NOW
12381 # define LT_DLLAZY_OR_NOW RTLD_NOW
12382 # else
12383 # ifdef DL_NOW
12384 # define LT_DLLAZY_OR_NOW DL_NOW
12385 # else
12386 # define LT_DLLAZY_OR_NOW 0
12387 # endif
12388 # endif
12389 # endif
12390 # endif
12391 #endif
12393 /* When -fvisbility=hidden is used, assume the code has been annotated
12394 correspondingly for the symbols needed. */
12395 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12396 void fnord () __attribute__((visibility("default")));
12397 #endif
12399 void fnord () { int i=42; }
12400 int main ()
12402 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12403 int status = $lt_dlunknown;
12405 if (self)
12407 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12408 else
12410 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12411 else puts (dlerror ());
12413 /* dlclose (self); */
12415 else
12416 puts (dlerror ());
12418 return status;
12420 _LT_EOF
12421 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12422 (eval $ac_link) 2>&5
12423 ac_status=$?
12424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12425 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12426 (./conftest; exit; ) >&5 2>/dev/null
12427 lt_status=$?
12428 case x$lt_status in
12429 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12430 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12431 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12432 esac
12433 else :
12434 # compilation failed
12435 lt_cv_dlopen_self=no
12438 rm -fr conftest*
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12443 $as_echo "$lt_cv_dlopen_self" >&6; }
12445 if test "x$lt_cv_dlopen_self" = xyes; then
12446 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12448 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12449 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12450 $as_echo_n "(cached) " >&6
12451 else
12452 if test "$cross_compiling" = yes; then :
12453 lt_cv_dlopen_self_static=cross
12454 else
12455 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12456 lt_status=$lt_dlunknown
12457 cat > conftest.$ac_ext <<_LT_EOF
12458 #line 12458 "configure"
12459 #include "confdefs.h"
12461 #if HAVE_DLFCN_H
12462 #include <dlfcn.h>
12463 #endif
12465 #include <stdio.h>
12467 #ifdef RTLD_GLOBAL
12468 # define LT_DLGLOBAL RTLD_GLOBAL
12469 #else
12470 # ifdef DL_GLOBAL
12471 # define LT_DLGLOBAL DL_GLOBAL
12472 # else
12473 # define LT_DLGLOBAL 0
12474 # endif
12475 #endif
12477 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12478 find out it does not work in some platform. */
12479 #ifndef LT_DLLAZY_OR_NOW
12480 # ifdef RTLD_LAZY
12481 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12482 # else
12483 # ifdef DL_LAZY
12484 # define LT_DLLAZY_OR_NOW DL_LAZY
12485 # else
12486 # ifdef RTLD_NOW
12487 # define LT_DLLAZY_OR_NOW RTLD_NOW
12488 # else
12489 # ifdef DL_NOW
12490 # define LT_DLLAZY_OR_NOW DL_NOW
12491 # else
12492 # define LT_DLLAZY_OR_NOW 0
12493 # endif
12494 # endif
12495 # endif
12496 # endif
12497 #endif
12499 /* When -fvisbility=hidden is used, assume the code has been annotated
12500 correspondingly for the symbols needed. */
12501 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12502 void fnord () __attribute__((visibility("default")));
12503 #endif
12505 void fnord () { int i=42; }
12506 int main ()
12508 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12509 int status = $lt_dlunknown;
12511 if (self)
12513 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12514 else
12516 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12517 else puts (dlerror ());
12519 /* dlclose (self); */
12521 else
12522 puts (dlerror ());
12524 return status;
12526 _LT_EOF
12527 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12528 (eval $ac_link) 2>&5
12529 ac_status=$?
12530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12531 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12532 (./conftest; exit; ) >&5 2>/dev/null
12533 lt_status=$?
12534 case x$lt_status in
12535 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12536 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12537 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12538 esac
12539 else :
12540 # compilation failed
12541 lt_cv_dlopen_self_static=no
12544 rm -fr conftest*
12548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12549 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12552 CPPFLAGS="$save_CPPFLAGS"
12553 LDFLAGS="$save_LDFLAGS"
12554 LIBS="$save_LIBS"
12556 esac
12558 case $lt_cv_dlopen_self in
12559 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12560 *) enable_dlopen_self=unknown ;;
12561 esac
12563 case $lt_cv_dlopen_self_static in
12564 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12565 *) enable_dlopen_self_static=unknown ;;
12566 esac
12585 striplib=
12586 old_striplib=
12587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12588 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12589 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12590 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12591 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12593 $as_echo "yes" >&6; }
12594 else
12595 # FIXME - insert some real tests, host_os isn't really good enough
12596 case $host_os in
12597 darwin*)
12598 if test -n "$STRIP" ; then
12599 striplib="$STRIP -x"
12600 old_striplib="$STRIP -S"
12601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12602 $as_echo "yes" >&6; }
12603 else
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12605 $as_echo "no" >&6; }
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12610 $as_echo "no" >&6; }
12612 esac
12626 # Report which library types will actually be built
12627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12628 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12630 $as_echo "$can_build_shared" >&6; }
12632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12633 $as_echo_n "checking whether to build shared libraries... " >&6; }
12634 test "$can_build_shared" = "no" && enable_shared=no
12636 # On AIX, shared libraries and static libraries use the same namespace, and
12637 # are all built from PIC.
12638 case $host_os in
12639 aix3*)
12640 test "$enable_shared" = yes && enable_static=no
12641 if test -n "$RANLIB"; then
12642 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12643 postinstall_cmds='$RANLIB $lib'
12647 aix[4-9]*)
12648 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12649 test "$enable_shared" = yes && enable_static=no
12652 esac
12653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12654 $as_echo "$enable_shared" >&6; }
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12657 $as_echo_n "checking whether to build static libraries... " >&6; }
12658 # Make sure either enable_shared or enable_static is yes.
12659 test "$enable_shared" = yes || enable_static=yes
12660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12661 $as_echo "$enable_static" >&6; }
12667 ac_ext=c
12668 ac_cpp='$CPP $CPPFLAGS'
12669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12673 CC="$lt_save_CC"
12687 ac_config_commands="$ac_config_commands libtool"
12692 # Only expand once:
12698 case $host in
12699 *-cygwin* | *-mingw*)
12700 # 'host' will be top-level target in the case of a target lib,
12701 # we must compare to with_cross_host to decide if this is a native
12702 # or cross-compiler and select where to install dlls appropriately.
12703 if test -n "$with_cross_host" &&
12704 test x"$with_cross_host" != x"no"; then
12705 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
12706 else
12707 lt_host_flags='-no-undefined -bindir "$(bindir)"';
12711 lt_host_flags=
12713 esac
12719 #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
12721 # We need gfortran to compile parts of the library
12722 #AC_PROG_FC(gfortran)
12723 FC="$GFORTRAN"
12724 ac_ext=${ac_fc_srcext-f}
12725 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
12726 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
12727 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12728 if test -n "$ac_tool_prefix"; then
12729 for ac_prog in gfortran
12731 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12732 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12734 $as_echo_n "checking for $ac_word... " >&6; }
12735 if test "${ac_cv_prog_FC+set}" = set; then :
12736 $as_echo_n "(cached) " >&6
12737 else
12738 if test -n "$FC"; then
12739 ac_cv_prog_FC="$FC" # Let the user override the test.
12740 else
12741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12742 for as_dir in $PATH
12744 IFS=$as_save_IFS
12745 test -z "$as_dir" && as_dir=.
12746 for ac_exec_ext in '' $ac_executable_extensions; do
12747 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12748 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
12749 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12750 break 2
12752 done
12753 done
12754 IFS=$as_save_IFS
12758 FC=$ac_cv_prog_FC
12759 if test -n "$FC"; then
12760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
12761 $as_echo "$FC" >&6; }
12762 else
12763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12764 $as_echo "no" >&6; }
12768 test -n "$FC" && break
12769 done
12771 if test -z "$FC"; then
12772 ac_ct_FC=$FC
12773 for ac_prog in gfortran
12775 # Extract the first word of "$ac_prog", so it can be a program name with args.
12776 set dummy $ac_prog; ac_word=$2
12777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12778 $as_echo_n "checking for $ac_word... " >&6; }
12779 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
12780 $as_echo_n "(cached) " >&6
12781 else
12782 if test -n "$ac_ct_FC"; then
12783 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
12784 else
12785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12786 for as_dir in $PATH
12788 IFS=$as_save_IFS
12789 test -z "$as_dir" && as_dir=.
12790 for ac_exec_ext in '' $ac_executable_extensions; do
12791 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12792 ac_cv_prog_ac_ct_FC="$ac_prog"
12793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12794 break 2
12796 done
12797 done
12798 IFS=$as_save_IFS
12802 ac_ct_FC=$ac_cv_prog_ac_ct_FC
12803 if test -n "$ac_ct_FC"; then
12804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
12805 $as_echo "$ac_ct_FC" >&6; }
12806 else
12807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12808 $as_echo "no" >&6; }
12812 test -n "$ac_ct_FC" && break
12813 done
12815 if test "x$ac_ct_FC" = x; then
12816 FC=""
12817 else
12818 case $cross_compiling:$ac_tool_warned in
12819 yes:)
12820 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12821 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12822 ac_tool_warned=yes ;;
12823 esac
12824 FC=$ac_ct_FC
12829 # Provide some information about the compiler.
12830 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
12831 set X $ac_compile
12832 ac_compiler=$2
12833 for ac_option in --version -v -V -qversion; do
12834 { { ac_try="$ac_compiler $ac_option >&5"
12835 case "(($ac_try" in
12836 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12837 *) ac_try_echo=$ac_try;;
12838 esac
12839 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12840 $as_echo "$ac_try_echo"; } >&5
12841 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12842 ac_status=$?
12843 if test -s conftest.err; then
12844 sed '10a\
12845 ... rest of stderr output deleted ...
12846 10q' conftest.err >conftest.er1
12847 cat conftest.er1 >&5
12848 rm -f conftest.er1 conftest.err
12850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12851 test $ac_status = 0; }
12852 done
12853 rm -f a.out
12855 # If we don't use `.F' as extension, the preprocessor is not run on the
12856 # input file. (Note that this only needs to work for GNU compilers.)
12857 ac_save_ext=$ac_ext
12858 ac_ext=F
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
12860 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
12861 if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
12862 $as_echo_n "(cached) " >&6
12863 else
12864 cat > conftest.$ac_ext <<_ACEOF
12865 program main
12866 #ifndef __GNUC__
12867 choke me
12868 #endif
12871 _ACEOF
12872 if ac_fn_fc_try_compile "$LINENO"; then :
12873 ac_compiler_gnu=yes
12874 else
12875 ac_compiler_gnu=no
12877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12878 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
12881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
12882 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
12883 ac_ext=$ac_save_ext
12884 ac_test_FCFLAGS=${FCFLAGS+set}
12885 ac_save_FCFLAGS=$FCFLAGS
12886 FCFLAGS=
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
12888 $as_echo_n "checking whether $FC accepts -g... " >&6; }
12889 if test "${ac_cv_prog_fc_g+set}" = set; then :
12890 $as_echo_n "(cached) " >&6
12891 else
12892 FCFLAGS=-g
12893 cat > conftest.$ac_ext <<_ACEOF
12894 program main
12897 _ACEOF
12898 if ac_fn_fc_try_compile "$LINENO"; then :
12899 ac_cv_prog_fc_g=yes
12900 else
12901 ac_cv_prog_fc_g=no
12903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
12907 $as_echo "$ac_cv_prog_fc_g" >&6; }
12908 if test "$ac_test_FCFLAGS" = set; then
12909 FCFLAGS=$ac_save_FCFLAGS
12910 elif test $ac_cv_prog_fc_g = yes; then
12911 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12912 FCFLAGS="-g -O2"
12913 else
12914 FCFLAGS="-g"
12916 else
12917 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12918 FCFLAGS="-O2"
12919 else
12920 FCFLAGS=
12924 ac_ext=c
12925 ac_cpp='$CPP $CPPFLAGS'
12926 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12927 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12928 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12930 ac_ext=${ac_fc_srcext-f}
12931 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
12932 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
12933 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12936 if test -z "$FC" || test "X$FC" = "Xno"; then
12937 _lt_disable_FC=yes
12940 archive_cmds_need_lc_FC=no
12941 allow_undefined_flag_FC=
12942 always_export_symbols_FC=no
12943 archive_expsym_cmds_FC=
12944 export_dynamic_flag_spec_FC=
12945 hardcode_direct_FC=no
12946 hardcode_direct_absolute_FC=no
12947 hardcode_libdir_flag_spec_FC=
12948 hardcode_libdir_flag_spec_ld_FC=
12949 hardcode_libdir_separator_FC=
12950 hardcode_minus_L_FC=no
12951 hardcode_automatic_FC=no
12952 inherit_rpath_FC=no
12953 module_cmds_FC=
12954 module_expsym_cmds_FC=
12955 link_all_deplibs_FC=unknown
12956 old_archive_cmds_FC=$old_archive_cmds
12957 reload_flag_FC=$reload_flag
12958 reload_cmds_FC=$reload_cmds
12959 no_undefined_flag_FC=
12960 whole_archive_flag_spec_FC=
12961 enable_shared_with_static_runtimes_FC=no
12963 # Source file extension for fc test sources.
12964 ac_ext=${ac_fc_srcext-f}
12966 # Object file extension for compiled fc test sources.
12967 objext=o
12968 objext_FC=$objext
12970 # No sense in running all these tests if we already determined that
12971 # the FC compiler isn't working. Some variables (like enable_shared)
12972 # are currently assumed to apply to all compilers on this platform,
12973 # and will be corrupted by setting them based on a non-working compiler.
12974 if test "$_lt_disable_FC" != yes; then
12975 # Code to be used in simple compile tests
12976 lt_simple_compile_test_code="\
12977 subroutine t
12978 return
12982 # Code to be used in simple link tests
12983 lt_simple_link_test_code="\
12984 program t
12988 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12995 # If no C compiler was specified, use CC.
12996 LTCC=${LTCC-"$CC"}
12998 # If no C compiler flags were specified, use CFLAGS.
12999 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13001 # Allow CC to be a program name with arguments.
13002 compiler=$CC
13005 # save warnings/boilerplate of simple test code
13006 ac_outfile=conftest.$ac_objext
13007 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13008 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13009 _lt_compiler_boilerplate=`cat conftest.err`
13010 $RM conftest*
13012 ac_outfile=conftest.$ac_objext
13013 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13014 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13015 _lt_linker_boilerplate=`cat conftest.err`
13016 $RM -r conftest*
13019 # Allow CC to be a program name with arguments.
13020 lt_save_CC="$CC"
13021 lt_save_GCC=$GCC
13022 CC=${FC-"f95"}
13023 compiler=$CC
13024 GCC=$ac_cv_fc_compiler_gnu
13026 compiler_FC=$CC
13027 for cc_temp in $compiler""; do
13028 case $cc_temp in
13029 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13030 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13031 \-*) ;;
13032 *) break;;
13033 esac
13034 done
13035 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13038 if test -n "$compiler"; then
13039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13040 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13042 $as_echo "$can_build_shared" >&6; }
13044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13045 $as_echo_n "checking whether to build shared libraries... " >&6; }
13046 test "$can_build_shared" = "no" && enable_shared=no
13048 # On AIX, shared libraries and static libraries use the same namespace, and
13049 # are all built from PIC.
13050 case $host_os in
13051 aix3*)
13052 test "$enable_shared" = yes && enable_static=no
13053 if test -n "$RANLIB"; then
13054 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13055 postinstall_cmds='$RANLIB $lib'
13058 aix[4-9]*)
13059 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13060 test "$enable_shared" = yes && enable_static=no
13063 esac
13064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13065 $as_echo "$enable_shared" >&6; }
13067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13068 $as_echo_n "checking whether to build static libraries... " >&6; }
13069 # Make sure either enable_shared or enable_static is yes.
13070 test "$enable_shared" = yes || enable_static=yes
13071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13072 $as_echo "$enable_static" >&6; }
13074 GCC_FC="$ac_cv_fc_compiler_gnu"
13075 LD_FC="$LD"
13077 ## CAVEAT EMPTOR:
13078 ## There is no encapsulation within the following macros, do not change
13079 ## the running order or otherwise move them around unless you know exactly
13080 ## what you are doing...
13081 # Dependencies to place before and after the object being linked:
13082 predep_objects_FC=
13083 postdep_objects_FC=
13084 predeps_FC=
13085 postdeps_FC=
13086 compiler_lib_search_path_FC=
13088 cat > conftest.$ac_ext <<_LT_EOF
13089 subroutine foo
13090 implicit none
13091 integer a
13093 return
13095 _LT_EOF
13097 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13098 (eval $ac_compile) 2>&5
13099 ac_status=$?
13100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13101 test $ac_status = 0; }; then
13102 # Parse the compiler output and extract the necessary
13103 # objects, libraries and library flags.
13105 # Sentinel used to keep track of whether or not we are before
13106 # the conftest object file.
13107 pre_test_object_deps_done=no
13109 for p in `eval "$output_verbose_link_cmd"`; do
13110 case $p in
13112 -L* | -R* | -l*)
13113 # Some compilers place space between "-{L,R}" and the path.
13114 # Remove the space.
13115 if test $p = "-L" ||
13116 test $p = "-R"; then
13117 prev=$p
13118 continue
13119 else
13120 prev=
13123 if test "$pre_test_object_deps_done" = no; then
13124 case $p in
13125 -L* | -R*)
13126 # Internal compiler library paths should come after those
13127 # provided the user. The postdeps already come after the
13128 # user supplied libs so there is no need to process them.
13129 if test -z "$compiler_lib_search_path_FC"; then
13130 compiler_lib_search_path_FC="${prev}${p}"
13131 else
13132 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
13135 # The "-l" case would never come before the object being
13136 # linked, so don't bother handling this case.
13137 esac
13138 else
13139 if test -z "$postdeps_FC"; then
13140 postdeps_FC="${prev}${p}"
13141 else
13142 postdeps_FC="${postdeps_FC} ${prev}${p}"
13147 *.$objext)
13148 # This assumes that the test object file only shows up
13149 # once in the compiler output.
13150 if test "$p" = "conftest.$objext"; then
13151 pre_test_object_deps_done=yes
13152 continue
13155 if test "$pre_test_object_deps_done" = no; then
13156 if test -z "$predep_objects_FC"; then
13157 predep_objects_FC="$p"
13158 else
13159 predep_objects_FC="$predep_objects_FC $p"
13161 else
13162 if test -z "$postdep_objects_FC"; then
13163 postdep_objects_FC="$p"
13164 else
13165 postdep_objects_FC="$postdep_objects_FC $p"
13170 *) ;; # Ignore the rest.
13172 esac
13173 done
13175 # Clean up.
13176 rm -f a.out a.exe
13177 else
13178 echo "libtool.m4: error: problem compiling FC test program"
13181 $RM -f confest.$objext
13183 # PORTME: override above test on systems where it is broken
13186 case " $postdeps_FC " in
13187 *" -lc "*) archive_cmds_need_lc_FC=no ;;
13188 esac
13189 compiler_lib_search_dirs_FC=
13190 if test -n "${compiler_lib_search_path_FC}"; then
13191 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13224 lt_prog_compiler_wl_FC=
13225 lt_prog_compiler_pic_FC=
13226 lt_prog_compiler_static_FC=
13228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13229 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13231 if test "$GCC" = yes; then
13232 lt_prog_compiler_wl_FC='-Wl,'
13233 lt_prog_compiler_static_FC='-static'
13235 case $host_os in
13236 aix*)
13237 # All AIX code is PIC.
13238 if test "$host_cpu" = ia64; then
13239 # AIX 5 now supports IA64 processor
13240 lt_prog_compiler_static_FC='-Bstatic'
13242 lt_prog_compiler_pic_FC='-fPIC'
13245 amigaos*)
13246 case $host_cpu in
13247 powerpc)
13248 # see comment about AmigaOS4 .so support
13249 lt_prog_compiler_pic_FC='-fPIC'
13251 m68k)
13252 # FIXME: we need at least 68020 code to build shared libraries, but
13253 # adding the `-m68020' flag to GCC prevents building anything better,
13254 # like `-m68040'.
13255 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
13257 esac
13260 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13261 # PIC is the default for these OSes.
13264 mingw* | cygwin* | pw32* | os2* | cegcc*)
13265 # This hack is so that the source file can tell whether it is being
13266 # built for inclusion in a dll (and should export symbols for example).
13267 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13268 # (--disable-auto-import) libraries
13269 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13272 darwin* | rhapsody*)
13273 # PIC is the default on this platform
13274 # Common symbols not allowed in MH_DYLIB files
13275 lt_prog_compiler_pic_FC='-fno-common'
13278 haiku*)
13279 # PIC is the default for Haiku.
13280 # The "-static" flag exists, but is broken.
13281 lt_prog_compiler_static_FC=
13284 hpux*)
13285 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13286 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13287 # sets the default TLS model and affects inlining.
13288 case $host_cpu in
13289 hppa*64*)
13290 # +Z the default
13293 lt_prog_compiler_pic_FC='-fPIC'
13295 esac
13298 interix[3-9]*)
13299 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13300 # Instead, we relocate shared libraries at runtime.
13303 msdosdjgpp*)
13304 # Just because we use GCC doesn't mean we suddenly get shared libraries
13305 # on systems that don't support them.
13306 lt_prog_compiler_can_build_shared_FC=no
13307 enable_shared=no
13310 *nto* | *qnx*)
13311 # QNX uses GNU C++, but need to define -shared option too, otherwise
13312 # it will coredump.
13313 lt_prog_compiler_pic_FC='-fPIC -shared'
13316 sysv4*MP*)
13317 if test -d /usr/nec; then
13318 lt_prog_compiler_pic_FC=-Kconform_pic
13323 lt_prog_compiler_pic_FC='-fPIC'
13325 esac
13327 case $cc_basename in
13328 nvcc*) # Cuda Compiler Driver 2.2
13329 lt_prog_compiler_wl_FC='-Xlinker '
13330 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
13332 esac
13333 else
13334 # PORTME Check for flag to pass linker flags through the system compiler.
13335 case $host_os in
13336 aix*)
13337 lt_prog_compiler_wl_FC='-Wl,'
13338 if test "$host_cpu" = ia64; then
13339 # AIX 5 now supports IA64 processor
13340 lt_prog_compiler_static_FC='-Bstatic'
13341 else
13342 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
13346 mingw* | cygwin* | pw32* | os2* | cegcc*)
13347 # This hack is so that the source file can tell whether it is being
13348 # built for inclusion in a dll (and should export symbols for example).
13349 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13352 hpux9* | hpux10* | hpux11*)
13353 lt_prog_compiler_wl_FC='-Wl,'
13354 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13355 # not for PA HP-UX.
13356 case $host_cpu in
13357 hppa*64*|ia64*)
13358 # +Z the default
13361 lt_prog_compiler_pic_FC='+Z'
13363 esac
13364 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13365 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
13368 irix5* | irix6* | nonstopux*)
13369 lt_prog_compiler_wl_FC='-Wl,'
13370 # PIC (with -KPIC) is the default.
13371 lt_prog_compiler_static_FC='-non_shared'
13374 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13375 case $cc_basename in
13376 # old Intel for x86_64 which still supported -KPIC.
13377 ecc*)
13378 lt_prog_compiler_wl_FC='-Wl,'
13379 lt_prog_compiler_pic_FC='-KPIC'
13380 lt_prog_compiler_static_FC='-static'
13382 # icc used to be incompatible with GCC.
13383 # ICC 10 doesn't accept -KPIC any more.
13384 icc* | ifort*)
13385 lt_prog_compiler_wl_FC='-Wl,'
13386 lt_prog_compiler_pic_FC='-fPIC'
13387 lt_prog_compiler_static_FC='-static'
13389 # Lahey Fortran 8.1.
13390 lf95*)
13391 lt_prog_compiler_wl_FC='-Wl,'
13392 lt_prog_compiler_pic_FC='--shared'
13393 lt_prog_compiler_static_FC='--static'
13395 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13396 # Portland Group compilers (*not* the Pentium gcc compiler,
13397 # which looks to be a dead project)
13398 lt_prog_compiler_wl_FC='-Wl,'
13399 lt_prog_compiler_pic_FC='-fpic'
13400 lt_prog_compiler_static_FC='-Bstatic'
13402 ccc*)
13403 lt_prog_compiler_wl_FC='-Wl,'
13404 # All Alpha code is PIC.
13405 lt_prog_compiler_static_FC='-non_shared'
13407 xl* | bgxl* | bgf* | mpixl*)
13408 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13409 lt_prog_compiler_wl_FC='-Wl,'
13410 lt_prog_compiler_pic_FC='-qpic'
13411 lt_prog_compiler_static_FC='-qstaticlink'
13414 case `$CC -V 2>&1 | sed 5q` in
13415 *Sun\ F* | *Sun*Fortran*)
13416 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13417 lt_prog_compiler_pic_FC='-KPIC'
13418 lt_prog_compiler_static_FC='-Bstatic'
13419 lt_prog_compiler_wl_FC=''
13421 *Sun\ C*)
13422 # Sun C 5.9
13423 lt_prog_compiler_pic_FC='-KPIC'
13424 lt_prog_compiler_static_FC='-Bstatic'
13425 lt_prog_compiler_wl_FC='-Wl,'
13427 esac
13429 esac
13432 newsos6)
13433 lt_prog_compiler_pic_FC='-KPIC'
13434 lt_prog_compiler_static_FC='-Bstatic'
13437 *nto* | *qnx*)
13438 # QNX uses GNU C++, but need to define -shared option too, otherwise
13439 # it will coredump.
13440 lt_prog_compiler_pic_FC='-fPIC -shared'
13443 osf3* | osf4* | osf5*)
13444 lt_prog_compiler_wl_FC='-Wl,'
13445 # All OSF/1 code is PIC.
13446 lt_prog_compiler_static_FC='-non_shared'
13449 rdos*)
13450 lt_prog_compiler_static_FC='-non_shared'
13453 solaris*)
13454 lt_prog_compiler_pic_FC='-KPIC'
13455 lt_prog_compiler_static_FC='-Bstatic'
13456 case $cc_basename in
13457 f77* | f90* | f95*)
13458 lt_prog_compiler_wl_FC='-Qoption ld ';;
13460 lt_prog_compiler_wl_FC='-Wl,';;
13461 esac
13464 sunos4*)
13465 lt_prog_compiler_wl_FC='-Qoption ld '
13466 lt_prog_compiler_pic_FC='-PIC'
13467 lt_prog_compiler_static_FC='-Bstatic'
13470 sysv4 | sysv4.2uw2* | sysv4.3*)
13471 lt_prog_compiler_wl_FC='-Wl,'
13472 lt_prog_compiler_pic_FC='-KPIC'
13473 lt_prog_compiler_static_FC='-Bstatic'
13476 sysv4*MP*)
13477 if test -d /usr/nec ;then
13478 lt_prog_compiler_pic_FC='-Kconform_pic'
13479 lt_prog_compiler_static_FC='-Bstatic'
13483 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13484 lt_prog_compiler_wl_FC='-Wl,'
13485 lt_prog_compiler_pic_FC='-KPIC'
13486 lt_prog_compiler_static_FC='-Bstatic'
13489 unicos*)
13490 lt_prog_compiler_wl_FC='-Wl,'
13491 lt_prog_compiler_can_build_shared_FC=no
13494 uts4*)
13495 lt_prog_compiler_pic_FC='-pic'
13496 lt_prog_compiler_static_FC='-Bstatic'
13500 lt_prog_compiler_can_build_shared_FC=no
13502 esac
13505 case $host_os in
13506 # For platforms which do not support PIC, -DPIC is meaningless:
13507 *djgpp*)
13508 lt_prog_compiler_pic_FC=
13511 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
13513 esac
13514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
13515 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
13520 # Check to make sure the PIC flag actually works.
13522 if test -n "$lt_prog_compiler_pic_FC"; then
13523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
13524 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
13525 if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then :
13526 $as_echo_n "(cached) " >&6
13527 else
13528 lt_cv_prog_compiler_pic_works_FC=no
13529 ac_outfile=conftest.$ac_objext
13530 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13531 lt_compiler_flag="$lt_prog_compiler_pic_FC"
13532 # Insert the option either (1) after the last *FLAGS variable, or
13533 # (2) before a word containing "conftest.", or (3) at the end.
13534 # Note that $ac_compile itself does not contain backslashes and begins
13535 # with a dollar sign (not a hyphen), so the echo should work correctly.
13536 # The option is referenced via a variable to avoid confusing sed.
13537 lt_compile=`echo "$ac_compile" | $SED \
13538 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13539 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13540 -e 's:$: $lt_compiler_flag:'`
13541 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13542 (eval "$lt_compile" 2>conftest.err)
13543 ac_status=$?
13544 cat conftest.err >&5
13545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13546 if (exit $ac_status) && test -s "$ac_outfile"; then
13547 # The compiler can only warn and ignore the option if not recognized
13548 # So say no if there are warnings other than the usual output.
13549 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13550 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13551 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13552 lt_cv_prog_compiler_pic_works_FC=yes
13555 $RM conftest*
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
13559 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
13561 if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
13562 case $lt_prog_compiler_pic_FC in
13563 "" | " "*) ;;
13564 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
13565 esac
13566 else
13567 lt_prog_compiler_pic_FC=
13568 lt_prog_compiler_can_build_shared_FC=no
13576 # Check to make sure the static flag actually works.
13578 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13580 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13581 if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then :
13582 $as_echo_n "(cached) " >&6
13583 else
13584 lt_cv_prog_compiler_static_works_FC=no
13585 save_LDFLAGS="$LDFLAGS"
13586 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13587 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13588 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13589 # The linker can only warn and ignore the option if not recognized
13590 # So say no if there are warnings
13591 if test -s conftest.err; then
13592 # Append any errors to the config.log.
13593 cat conftest.err 1>&5
13594 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13595 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13596 if diff conftest.exp conftest.er2 >/dev/null; then
13597 lt_cv_prog_compiler_static_works_FC=yes
13599 else
13600 lt_cv_prog_compiler_static_works_FC=yes
13603 $RM -r conftest*
13604 LDFLAGS="$save_LDFLAGS"
13607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
13608 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
13610 if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
13612 else
13613 lt_prog_compiler_static_FC=
13619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13620 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13621 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
13622 $as_echo_n "(cached) " >&6
13623 else
13624 lt_cv_prog_compiler_c_o_FC=no
13625 $RM -r conftest 2>/dev/null
13626 mkdir conftest
13627 cd conftest
13628 mkdir out
13629 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13631 lt_compiler_flag="-o out/conftest2.$ac_objext"
13632 # Insert the option either (1) after the last *FLAGS variable, or
13633 # (2) before a word containing "conftest.", or (3) at the end.
13634 # Note that $ac_compile itself does not contain backslashes and begins
13635 # with a dollar sign (not a hyphen), so the echo should work correctly.
13636 lt_compile=`echo "$ac_compile" | $SED \
13637 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13638 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13639 -e 's:$: $lt_compiler_flag:'`
13640 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13641 (eval "$lt_compile" 2>out/conftest.err)
13642 ac_status=$?
13643 cat out/conftest.err >&5
13644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13645 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13646 then
13647 # The compiler can only warn and ignore the option if not recognized
13648 # So say no if there are warnings
13649 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13650 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13651 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13652 lt_cv_prog_compiler_c_o_FC=yes
13655 chmod u+w . 2>&5
13656 $RM conftest*
13657 # SGI C++ compiler will create directory out/ii_files/ for
13658 # template instantiation
13659 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13660 $RM out/* && rmdir out
13661 cd ..
13662 $RM -r conftest
13663 $RM conftest*
13666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
13667 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
13671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13672 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13673 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
13674 $as_echo_n "(cached) " >&6
13675 else
13676 lt_cv_prog_compiler_c_o_FC=no
13677 $RM -r conftest 2>/dev/null
13678 mkdir conftest
13679 cd conftest
13680 mkdir out
13681 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13683 lt_compiler_flag="-o out/conftest2.$ac_objext"
13684 # Insert the option either (1) after the last *FLAGS variable, or
13685 # (2) before a word containing "conftest.", or (3) at the end.
13686 # Note that $ac_compile itself does not contain backslashes and begins
13687 # with a dollar sign (not a hyphen), so the echo should work correctly.
13688 lt_compile=`echo "$ac_compile" | $SED \
13689 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13690 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13691 -e 's:$: $lt_compiler_flag:'`
13692 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13693 (eval "$lt_compile" 2>out/conftest.err)
13694 ac_status=$?
13695 cat out/conftest.err >&5
13696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13697 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13698 then
13699 # The compiler can only warn and ignore the option if not recognized
13700 # So say no if there are warnings
13701 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13702 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13703 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13704 lt_cv_prog_compiler_c_o_FC=yes
13707 chmod u+w . 2>&5
13708 $RM conftest*
13709 # SGI C++ compiler will create directory out/ii_files/ for
13710 # template instantiation
13711 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13712 $RM out/* && rmdir out
13713 cd ..
13714 $RM -r conftest
13715 $RM conftest*
13718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
13719 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
13724 hard_links="nottested"
13725 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
13726 # do not overwrite the value of need_locks provided by the user
13727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13728 $as_echo_n "checking if we can lock with hard links... " >&6; }
13729 hard_links=yes
13730 $RM conftest*
13731 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13732 touch conftest.a
13733 ln conftest.a conftest.b 2>&5 || hard_links=no
13734 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13736 $as_echo "$hard_links" >&6; }
13737 if test "$hard_links" = no; then
13738 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13739 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13740 need_locks=warn
13742 else
13743 need_locks=no
13748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13749 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13751 runpath_var=
13752 allow_undefined_flag_FC=
13753 always_export_symbols_FC=no
13754 archive_cmds_FC=
13755 archive_expsym_cmds_FC=
13756 compiler_needs_object_FC=no
13757 enable_shared_with_static_runtimes_FC=no
13758 export_dynamic_flag_spec_FC=
13759 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13760 hardcode_automatic_FC=no
13761 hardcode_direct_FC=no
13762 hardcode_direct_absolute_FC=no
13763 hardcode_libdir_flag_spec_FC=
13764 hardcode_libdir_flag_spec_ld_FC=
13765 hardcode_libdir_separator_FC=
13766 hardcode_minus_L_FC=no
13767 hardcode_shlibpath_var_FC=unsupported
13768 inherit_rpath_FC=no
13769 link_all_deplibs_FC=unknown
13770 module_cmds_FC=
13771 module_expsym_cmds_FC=
13772 old_archive_from_new_cmds_FC=
13773 old_archive_from_expsyms_cmds_FC=
13774 thread_safe_flag_spec_FC=
13775 whole_archive_flag_spec_FC=
13776 # include_expsyms should be a list of space-separated symbols to be *always*
13777 # included in the symbol list
13778 include_expsyms_FC=
13779 # exclude_expsyms can be an extended regexp of symbols to exclude
13780 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13781 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13782 # as well as any symbol that contains `d'.
13783 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13784 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13785 # platforms (ab)use it in PIC code, but their linkers get confused if
13786 # the symbol is explicitly referenced. Since portable code cannot
13787 # rely on this symbol name, it's probably fine to never include it in
13788 # preloaded symbol tables.
13789 # Exclude shared library initialization/finalization symbols.
13790 extract_expsyms_cmds=
13792 case $host_os in
13793 cygwin* | mingw* | pw32* | cegcc*)
13794 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13795 # When not using gcc, we currently assume that we are using
13796 # Microsoft Visual C++.
13797 if test "$GCC" != yes; then
13798 with_gnu_ld=no
13801 interix*)
13802 # we just hope/assume this is gcc and not c89 (= MSVC++)
13803 with_gnu_ld=yes
13805 openbsd*)
13806 with_gnu_ld=no
13808 esac
13810 ld_shlibs_FC=yes
13812 # On some targets, GNU ld is compatible enough with the native linker
13813 # that we're better off using the native interface for both.
13814 lt_use_gnu_ld_interface=no
13815 if test "$with_gnu_ld" = yes; then
13816 case $host_os in
13817 aix*)
13818 # The AIX port of GNU ld has always aspired to compatibility
13819 # with the native linker. However, as the warning in the GNU ld
13820 # block says, versions before 2.19.5* couldn't really create working
13821 # shared libraries, regardless of the interface used.
13822 case `$LD -v 2>&1` in
13823 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13824 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13825 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13827 lt_use_gnu_ld_interface=yes
13829 esac
13832 lt_use_gnu_ld_interface=yes
13834 esac
13837 if test "$lt_use_gnu_ld_interface" = yes; then
13838 # If archive_cmds runs LD, not CC, wlarc should be empty
13839 wlarc='${wl}'
13841 # Set some defaults for GNU ld with shared library support. These
13842 # are reset later if shared libraries are not supported. Putting them
13843 # here allows them to be overridden if necessary.
13844 runpath_var=LD_RUN_PATH
13845 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13846 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
13847 # ancient GNU ld didn't support --whole-archive et. al.
13848 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13849 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13850 else
13851 whole_archive_flag_spec_FC=
13853 supports_anon_versioning=no
13854 case `$LD -v 2>&1` in
13855 *GNU\ gold*) supports_anon_versioning=yes ;;
13856 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13857 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13858 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13859 *\ 2.11.*) ;; # other 2.11 versions
13860 *) supports_anon_versioning=yes ;;
13861 esac
13863 # See if GNU ld supports shared libraries.
13864 case $host_os in
13865 aix[3-9]*)
13866 # On AIX/PPC, the GNU linker is very broken
13867 if test "$host_cpu" != ia64; then
13868 ld_shlibs_FC=no
13869 cat <<_LT_EOF 1>&2
13871 *** Warning: the GNU linker, at least up to release 2.19, is reported
13872 *** to be unable to reliably create shared libraries on AIX.
13873 *** Therefore, libtool is disabling shared libraries support. If you
13874 *** really care for shared libraries, you may want to install binutils
13875 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13876 *** You will then need to restart the configuration process.
13878 _LT_EOF
13882 amigaos*)
13883 case $host_cpu in
13884 powerpc)
13885 # see comment about AmigaOS4 .so support
13886 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13887 archive_expsym_cmds_FC=''
13889 m68k)
13890 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)'
13891 hardcode_libdir_flag_spec_FC='-L$libdir'
13892 hardcode_minus_L_FC=yes
13894 esac
13897 beos*)
13898 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13899 allow_undefined_flag_FC=unsupported
13900 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13901 # support --undefined. This deserves some investigation. FIXME
13902 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13903 else
13904 ld_shlibs_FC=no
13908 cygwin* | mingw* | pw32* | cegcc*)
13909 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
13910 # as there is no search path for DLLs.
13911 hardcode_libdir_flag_spec_FC='-L$libdir'
13912 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
13913 allow_undefined_flag_FC=unsupported
13914 always_export_symbols_FC=no
13915 enable_shared_with_static_runtimes_FC=yes
13916 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13918 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13919 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13920 # If the export-symbols file already is a .def file (1st line
13921 # is EXPORTS), use it as is; otherwise, prepend...
13922 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13923 cp $export_symbols $output_objdir/$soname.def;
13924 else
13925 echo EXPORTS > $output_objdir/$soname.def;
13926 cat $export_symbols >> $output_objdir/$soname.def;
13928 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13929 else
13930 ld_shlibs_FC=no
13934 haiku*)
13935 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13936 link_all_deplibs_FC=yes
13939 interix[3-9]*)
13940 hardcode_direct_FC=no
13941 hardcode_shlibpath_var_FC=no
13942 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13943 export_dynamic_flag_spec_FC='${wl}-E'
13944 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13945 # Instead, shared libraries are loaded at an image base (0x10000000 by
13946 # default) and relocated if they conflict, which is a slow very memory
13947 # consuming and fragmenting process. To avoid this, we pick a random,
13948 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13949 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13950 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'
13951 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'
13954 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
13955 tmp_diet=no
13956 if test "$host_os" = linux-dietlibc; then
13957 case $cc_basename in
13958 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13959 esac
13961 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13962 && test "$tmp_diet" = no
13963 then
13964 tmp_addflag=
13965 tmp_sharedflag='-shared'
13966 case $cc_basename,$host_cpu in
13967 pgcc*) # Portland Group C compiler
13968 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'
13969 tmp_addflag=' $pic_flag'
13971 pgf77* | pgf90* | pgf95* | pgfortran*)
13972 # Portland Group f77 and f90 compilers
13973 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'
13974 tmp_addflag=' $pic_flag -Mnomain' ;;
13975 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13976 tmp_addflag=' -i_dynamic' ;;
13977 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13978 tmp_addflag=' -i_dynamic -nofor_main' ;;
13979 ifc* | ifort*) # Intel Fortran compiler
13980 tmp_addflag=' -nofor_main' ;;
13981 lf95*) # Lahey Fortran 8.1
13982 whole_archive_flag_spec_FC=
13983 tmp_sharedflag='--shared' ;;
13984 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13985 tmp_sharedflag='-qmkshrobj'
13986 tmp_addflag= ;;
13987 nvcc*) # Cuda Compiler Driver 2.2
13988 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'
13989 compiler_needs_object_FC=yes
13991 esac
13992 case `$CC -V 2>&1 | sed 5q` in
13993 *Sun\ C*) # Sun C 5.9
13994 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'
13995 compiler_needs_object_FC=yes
13996 tmp_sharedflag='-G' ;;
13997 *Sun\ F*) # Sun Fortran 8.3
13998 tmp_sharedflag='-G' ;;
13999 esac
14000 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14002 if test "x$supports_anon_versioning" = xyes; then
14003 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
14004 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14005 echo "local: *; };" >> $output_objdir/$libname.ver~
14006 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14009 case $cc_basename in
14010 xlf* | bgf* | bgxlf* | mpixlf*)
14011 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14012 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
14013 hardcode_libdir_flag_spec_FC=
14014 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
14015 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
14016 if test "x$supports_anon_versioning" = xyes; then
14017 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
14018 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14019 echo "local: *; };" >> $output_objdir/$libname.ver~
14020 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14023 esac
14024 else
14025 ld_shlibs_FC=no
14029 netbsd*)
14030 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14031 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14032 wlarc=
14033 else
14034 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14035 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14039 solaris*)
14040 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14041 ld_shlibs_FC=no
14042 cat <<_LT_EOF 1>&2
14044 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14045 *** create shared libraries on Solaris systems. Therefore, libtool
14046 *** is disabling shared libraries support. We urge you to upgrade GNU
14047 *** binutils to release 2.9.1 or newer. Another option is to modify
14048 *** your PATH or compiler configuration so that the native linker is
14049 *** used, and then restart.
14051 _LT_EOF
14052 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14053 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14054 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14055 else
14056 ld_shlibs_FC=no
14060 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14061 case `$LD -v 2>&1` in
14062 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14063 ld_shlibs_FC=no
14064 cat <<_LT_EOF 1>&2
14066 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14067 *** reliably create shared libraries on SCO systems. Therefore, libtool
14068 *** is disabling shared libraries support. We urge you to upgrade GNU
14069 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14070 *** your PATH or compiler configuration so that the native linker is
14071 *** used, and then restart.
14073 _LT_EOF
14076 # For security reasons, it is highly recommended that you always
14077 # use absolute paths for naming shared libraries, and exclude the
14078 # DT_RUNPATH tag from executables and libraries. But doing so
14079 # requires that you compile everything twice, which is a pain.
14080 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14081 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14082 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14083 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14084 else
14085 ld_shlibs_FC=no
14088 esac
14091 sunos4*)
14092 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14093 wlarc=
14094 hardcode_direct_FC=yes
14095 hardcode_shlibpath_var_FC=no
14099 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14100 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14101 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14102 else
14103 ld_shlibs_FC=no
14106 esac
14108 if test "$ld_shlibs_FC" = no; then
14109 runpath_var=
14110 hardcode_libdir_flag_spec_FC=
14111 export_dynamic_flag_spec_FC=
14112 whole_archive_flag_spec_FC=
14114 else
14115 # PORTME fill in a description of your system's linker (not GNU ld)
14116 case $host_os in
14117 aix3*)
14118 allow_undefined_flag_FC=unsupported
14119 always_export_symbols_FC=yes
14120 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'
14121 # Note: this linker hardcodes the directories in LIBPATH if there
14122 # are no directories specified by -L.
14123 hardcode_minus_L_FC=yes
14124 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14125 # Neither direct hardcoding nor static linking is supported with a
14126 # broken collect2.
14127 hardcode_direct_FC=unsupported
14131 aix[4-9]*)
14132 if test "$host_cpu" = ia64; then
14133 # On IA64, the linker does run time linking by default, so we don't
14134 # have to do anything special.
14135 aix_use_runtimelinking=no
14136 exp_sym_flag='-Bexport'
14137 no_entry_flag=""
14138 else
14139 # If we're using GNU nm, then we don't want the "-C" option.
14140 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14141 # Also, AIX nm treats weak defined symbols like other global
14142 # defined symbols, whereas GNU nm marks them as "W".
14143 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14144 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'
14145 else
14146 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'
14148 aix_use_runtimelinking=no
14150 # Test if we are trying to use run time linking or normal
14151 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14152 # need to do runtime linking.
14153 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14154 for ld_flag in $LDFLAGS; do
14155 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14156 aix_use_runtimelinking=yes
14157 break
14159 done
14161 esac
14163 exp_sym_flag='-bexport'
14164 no_entry_flag='-bnoentry'
14167 # When large executables or shared objects are built, AIX ld can
14168 # have problems creating the table of contents. If linking a library
14169 # or program results in "error TOC overflow" add -mminimal-toc to
14170 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14171 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14173 archive_cmds_FC=''
14174 hardcode_direct_FC=yes
14175 hardcode_direct_absolute_FC=yes
14176 hardcode_libdir_separator_FC=':'
14177 link_all_deplibs_FC=yes
14178 file_list_spec_FC='${wl}-f,'
14180 if test "$GCC" = yes; then
14181 case $host_os in aix4.[012]|aix4.[012].*)
14182 # We only want to do this on AIX 4.2 and lower, the check
14183 # below for broken collect2 doesn't work under 4.3+
14184 collect2name=`${CC} -print-prog-name=collect2`
14185 if test -f "$collect2name" &&
14186 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14187 then
14188 # We have reworked collect2
14190 else
14191 # We have old collect2
14192 hardcode_direct_FC=unsupported
14193 # It fails to find uninstalled libraries when the uninstalled
14194 # path is not listed in the libpath. Setting hardcode_minus_L
14195 # to unsupported forces relinking
14196 hardcode_minus_L_FC=yes
14197 hardcode_libdir_flag_spec_FC='-L$libdir'
14198 hardcode_libdir_separator_FC=
14201 esac
14202 shared_flag='-shared'
14203 if test "$aix_use_runtimelinking" = yes; then
14204 shared_flag="$shared_flag "'${wl}-G'
14206 else
14207 # not using gcc
14208 if test "$host_cpu" = ia64; then
14209 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14210 # chokes on -Wl,-G. The following line is correct:
14211 shared_flag='-G'
14212 else
14213 if test "$aix_use_runtimelinking" = yes; then
14214 shared_flag='${wl}-G'
14215 else
14216 shared_flag='${wl}-bM:SRE'
14221 export_dynamic_flag_spec_FC='${wl}-bexpall'
14222 # It seems that -bexpall does not export symbols beginning with
14223 # underscore (_), so it is better to generate a list of symbols to export.
14224 always_export_symbols_FC=yes
14225 if test "$aix_use_runtimelinking" = yes; then
14226 # Warning - without using the other runtime loading flags (-brtl),
14227 # -berok will link without error, but may produce a broken library.
14228 allow_undefined_flag_FC='-berok'
14229 # Determine the default libpath from the value encoded in an
14230 # empty executable.
14231 if test x$gcc_no_link = xyes; then
14232 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14234 cat > conftest.$ac_ext <<_ACEOF
14235 program main
14238 _ACEOF
14239 if ac_fn_fc_try_link "$LINENO"; then :
14241 lt_aix_libpath_sed='
14242 /Import File Strings/,/^$/ {
14243 /^0/ {
14244 s/^0 *\(.*\)$/\1/
14248 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14249 # Check for a 64-bit object if we didn't find anything.
14250 if test -z "$aix_libpath"; then
14251 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14254 rm -f core conftest.err conftest.$ac_objext \
14255 conftest$ac_exeext conftest.$ac_ext
14256 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14258 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
14259 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"
14260 else
14261 if test "$host_cpu" = ia64; then
14262 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
14263 allow_undefined_flag_FC="-z nodefs"
14264 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"
14265 else
14266 # Determine the default libpath from the value encoded in an
14267 # empty executable.
14268 if test x$gcc_no_link = xyes; then
14269 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14271 cat > conftest.$ac_ext <<_ACEOF
14272 program main
14275 _ACEOF
14276 if ac_fn_fc_try_link "$LINENO"; then :
14278 lt_aix_libpath_sed='
14279 /Import File Strings/,/^$/ {
14280 /^0/ {
14281 s/^0 *\(.*\)$/\1/
14285 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14286 # Check for a 64-bit object if we didn't find anything.
14287 if test -z "$aix_libpath"; then
14288 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14291 rm -f core conftest.err conftest.$ac_objext \
14292 conftest$ac_exeext conftest.$ac_ext
14293 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14295 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
14296 # Warning - without using the other run time loading flags,
14297 # -berok will link without error, but may produce a broken library.
14298 no_undefined_flag_FC=' ${wl}-bernotok'
14299 allow_undefined_flag_FC=' ${wl}-berok'
14300 if test "$with_gnu_ld" = yes; then
14301 # We only use this code for GNU lds that support --whole-archive.
14302 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14303 else
14304 # Exported symbols can be pulled into shared objects from archives
14305 whole_archive_flag_spec_FC='$convenience'
14307 archive_cmds_need_lc_FC=yes
14308 # This is similar to how AIX traditionally builds its shared libraries.
14309 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'
14314 amigaos*)
14315 case $host_cpu in
14316 powerpc)
14317 # see comment about AmigaOS4 .so support
14318 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14319 archive_expsym_cmds_FC=''
14321 m68k)
14322 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)'
14323 hardcode_libdir_flag_spec_FC='-L$libdir'
14324 hardcode_minus_L_FC=yes
14326 esac
14329 bsdi[45]*)
14330 export_dynamic_flag_spec_FC=-rdynamic
14333 cygwin* | mingw* | pw32* | cegcc*)
14334 # When not using gcc, we currently assume that we are using
14335 # Microsoft Visual C++.
14336 # hardcode_libdir_flag_spec is actually meaningless, as there is
14337 # no search path for DLLs.
14338 hardcode_libdir_flag_spec_FC=' '
14339 allow_undefined_flag_FC=unsupported
14340 # Tell ltmain to make .lib files, not .a files.
14341 libext=lib
14342 # Tell ltmain to make .dll files, not .so files.
14343 shrext_cmds=".dll"
14344 # FIXME: Setting linknames here is a bad hack.
14345 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14346 # The linker will automatically build a .lib file if we build a DLL.
14347 old_archive_from_new_cmds_FC='true'
14348 # FIXME: Should let the user specify the lib program.
14349 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
14350 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
14351 enable_shared_with_static_runtimes_FC=yes
14354 darwin* | rhapsody*)
14357 archive_cmds_need_lc_FC=no
14358 hardcode_direct_FC=no
14359 hardcode_automatic_FC=yes
14360 hardcode_shlibpath_var_FC=unsupported
14361 if test "$lt_cv_ld_force_load" = "yes"; then
14362 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\"`'
14363 else
14364 whole_archive_flag_spec_FC=''
14366 link_all_deplibs_FC=yes
14367 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
14368 case $cc_basename in
14369 ifort*) _lt_dar_can_shared=yes ;;
14370 *) _lt_dar_can_shared=$GCC ;;
14371 esac
14372 if test "$_lt_dar_can_shared" = "yes"; then
14373 output_verbose_link_cmd=func_echo_all
14374 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}"
14375 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14376 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}"
14377 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}"
14379 else
14380 ld_shlibs_FC=no
14385 dgux*)
14386 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14387 hardcode_libdir_flag_spec_FC='-L$libdir'
14388 hardcode_shlibpath_var_FC=no
14391 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14392 # support. Future versions do this automatically, but an explicit c++rt0.o
14393 # does not break anything, and helps significantly (at the cost of a little
14394 # extra space).
14395 freebsd2.2*)
14396 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14397 hardcode_libdir_flag_spec_FC='-R$libdir'
14398 hardcode_direct_FC=yes
14399 hardcode_shlibpath_var_FC=no
14402 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14403 freebsd2.*)
14404 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14405 hardcode_direct_FC=yes
14406 hardcode_minus_L_FC=yes
14407 hardcode_shlibpath_var_FC=no
14410 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14411 freebsd* | dragonfly*)
14412 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14413 hardcode_libdir_flag_spec_FC='-R$libdir'
14414 hardcode_direct_FC=yes
14415 hardcode_shlibpath_var_FC=no
14418 hpux9*)
14419 if test "$GCC" = yes; then
14420 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'
14421 else
14422 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'
14424 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14425 hardcode_libdir_separator_FC=:
14426 hardcode_direct_FC=yes
14428 # hardcode_minus_L: Not really in the search PATH,
14429 # but as the default location of the library.
14430 hardcode_minus_L_FC=yes
14431 export_dynamic_flag_spec_FC='${wl}-E'
14434 hpux10*)
14435 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14436 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14437 else
14438 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14440 if test "$with_gnu_ld" = no; then
14441 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14442 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
14443 hardcode_libdir_separator_FC=:
14444 hardcode_direct_FC=yes
14445 hardcode_direct_absolute_FC=yes
14446 export_dynamic_flag_spec_FC='${wl}-E'
14447 # hardcode_minus_L: Not really in the search PATH,
14448 # but as the default location of the library.
14449 hardcode_minus_L_FC=yes
14453 hpux11*)
14454 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14455 case $host_cpu in
14456 hppa*64*)
14457 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14459 ia64*)
14460 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14463 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14465 esac
14466 else
14467 case $host_cpu in
14468 hppa*64*)
14469 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14471 ia64*)
14472 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14475 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14477 esac
14479 if test "$with_gnu_ld" = no; then
14480 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14481 hardcode_libdir_separator_FC=:
14483 case $host_cpu in
14484 hppa*64*|ia64*)
14485 hardcode_direct_FC=no
14486 hardcode_shlibpath_var_FC=no
14489 hardcode_direct_FC=yes
14490 hardcode_direct_absolute_FC=yes
14491 export_dynamic_flag_spec_FC='${wl}-E'
14493 # hardcode_minus_L: Not really in the search PATH,
14494 # but as the default location of the library.
14495 hardcode_minus_L_FC=yes
14497 esac
14501 irix5* | irix6* | nonstopux*)
14502 if test "$GCC" = yes; then
14503 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'
14504 # Try to use the -exported_symbol ld option, if it does not
14505 # work, assume that -exports_file does not work either and
14506 # implicitly export all symbols.
14507 save_LDFLAGS="$LDFLAGS"
14508 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14509 if test x$gcc_no_link = xyes; then
14510 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14512 cat > conftest.$ac_ext <<_ACEOF
14513 int foo(void) {}
14514 _ACEOF
14515 if ac_fn_fc_try_link "$LINENO"; then :
14516 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'
14519 rm -f core conftest.err conftest.$ac_objext \
14520 conftest$ac_exeext conftest.$ac_ext
14521 LDFLAGS="$save_LDFLAGS"
14522 else
14523 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'
14524 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'
14526 archive_cmds_need_lc_FC='no'
14527 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14528 hardcode_libdir_separator_FC=:
14529 inherit_rpath_FC=yes
14530 link_all_deplibs_FC=yes
14533 netbsd*)
14534 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14535 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14536 else
14537 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14539 hardcode_libdir_flag_spec_FC='-R$libdir'
14540 hardcode_direct_FC=yes
14541 hardcode_shlibpath_var_FC=no
14544 newsos6)
14545 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14546 hardcode_direct_FC=yes
14547 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14548 hardcode_libdir_separator_FC=:
14549 hardcode_shlibpath_var_FC=no
14552 *nto* | *qnx*)
14555 openbsd*)
14556 if test -f /usr/libexec/ld.so; then
14557 hardcode_direct_FC=yes
14558 hardcode_shlibpath_var_FC=no
14559 hardcode_direct_absolute_FC=yes
14560 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14561 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14562 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14563 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14564 export_dynamic_flag_spec_FC='${wl}-E'
14565 else
14566 case $host_os in
14567 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14568 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14569 hardcode_libdir_flag_spec_FC='-R$libdir'
14572 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14573 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14575 esac
14577 else
14578 ld_shlibs_FC=no
14582 os2*)
14583 hardcode_libdir_flag_spec_FC='-L$libdir'
14584 hardcode_minus_L_FC=yes
14585 allow_undefined_flag_FC=unsupported
14586 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'
14587 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14590 osf3*)
14591 if test "$GCC" = yes; then
14592 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
14593 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'
14594 else
14595 allow_undefined_flag_FC=' -expect_unresolved \*'
14596 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'
14598 archive_cmds_need_lc_FC='no'
14599 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14600 hardcode_libdir_separator_FC=:
14603 osf4* | osf5*) # as osf3* with the addition of -msym flag
14604 if test "$GCC" = yes; then
14605 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
14606 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'
14607 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14608 else
14609 allow_undefined_flag_FC=' -expect_unresolved \*'
14610 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'
14611 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~
14612 $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'
14614 # Both c and cxx compiler support -rpath directly
14615 hardcode_libdir_flag_spec_FC='-rpath $libdir'
14617 archive_cmds_need_lc_FC='no'
14618 hardcode_libdir_separator_FC=:
14621 solaris*)
14622 no_undefined_flag_FC=' -z defs'
14623 if test "$GCC" = yes; then
14624 wlarc='${wl}'
14625 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14626 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14627 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14628 else
14629 case `$CC -V 2>&1` in
14630 *"Compilers 5.0"*)
14631 wlarc=''
14632 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14633 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14634 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14637 wlarc='${wl}'
14638 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14639 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14640 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14642 esac
14644 hardcode_libdir_flag_spec_FC='-R$libdir'
14645 hardcode_shlibpath_var_FC=no
14646 case $host_os in
14647 solaris2.[0-5] | solaris2.[0-5].*) ;;
14649 # The compiler driver will combine and reorder linker options,
14650 # but understands `-z linker_flag'. GCC discards it without `$wl',
14651 # but is careful enough not to reorder.
14652 # Supported since Solaris 2.6 (maybe 2.5.1?)
14653 if test "$GCC" = yes; then
14654 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14655 else
14656 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
14659 esac
14660 link_all_deplibs_FC=yes
14663 sunos4*)
14664 if test "x$host_vendor" = xsequent; then
14665 # Use $CC to link under sequent, because it throws in some extra .o
14666 # files that make .init and .fini sections work.
14667 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14668 else
14669 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14671 hardcode_libdir_flag_spec_FC='-L$libdir'
14672 hardcode_direct_FC=yes
14673 hardcode_minus_L_FC=yes
14674 hardcode_shlibpath_var_FC=no
14677 sysv4)
14678 case $host_vendor in
14679 sni)
14680 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14681 hardcode_direct_FC=yes # is this really true???
14683 siemens)
14684 ## LD is ld it makes a PLAMLIB
14685 ## CC just makes a GrossModule.
14686 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14687 reload_cmds_FC='$CC -r -o $output$reload_objs'
14688 hardcode_direct_FC=no
14690 motorola)
14691 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14692 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
14694 esac
14695 runpath_var='LD_RUN_PATH'
14696 hardcode_shlibpath_var_FC=no
14699 sysv4.3*)
14700 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14701 hardcode_shlibpath_var_FC=no
14702 export_dynamic_flag_spec_FC='-Bexport'
14705 sysv4*MP*)
14706 if test -d /usr/nec; then
14707 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14708 hardcode_shlibpath_var_FC=no
14709 runpath_var=LD_RUN_PATH
14710 hardcode_runpath_var=yes
14711 ld_shlibs_FC=yes
14715 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14716 no_undefined_flag_FC='${wl}-z,text'
14717 archive_cmds_need_lc_FC=no
14718 hardcode_shlibpath_var_FC=no
14719 runpath_var='LD_RUN_PATH'
14721 if test "$GCC" = yes; then
14722 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14723 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14724 else
14725 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14726 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14730 sysv5* | sco3.2v5* | sco5v6*)
14731 # Note: We can NOT use -z defs as we might desire, because we do not
14732 # link with -lc, and that would cause any symbols used from libc to
14733 # always be unresolved, which means just about no library would
14734 # ever link correctly. If we're not using GNU ld we use -z text
14735 # though, which does catch some bad symbols but isn't as heavy-handed
14736 # as -z defs.
14737 no_undefined_flag_FC='${wl}-z,text'
14738 allow_undefined_flag_FC='${wl}-z,nodefs'
14739 archive_cmds_need_lc_FC=no
14740 hardcode_shlibpath_var_FC=no
14741 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
14742 hardcode_libdir_separator_FC=':'
14743 link_all_deplibs_FC=yes
14744 export_dynamic_flag_spec_FC='${wl}-Bexport'
14745 runpath_var='LD_RUN_PATH'
14747 if test "$GCC" = yes; then
14748 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14749 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14750 else
14751 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14752 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14756 uts4*)
14757 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14758 hardcode_libdir_flag_spec_FC='-L$libdir'
14759 hardcode_shlibpath_var_FC=no
14763 ld_shlibs_FC=no
14765 esac
14767 if test x$host_vendor = xsni; then
14768 case $host in
14769 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14770 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
14772 esac
14776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
14777 $as_echo "$ld_shlibs_FC" >&6; }
14778 test "$ld_shlibs_FC" = no && can_build_shared=no
14780 with_gnu_ld_FC=$with_gnu_ld
14788 # Do we need to explicitly link libc?
14790 case "x$archive_cmds_need_lc_FC" in
14791 x|xyes)
14792 # Assume -lc should be added
14793 archive_cmds_need_lc_FC=yes
14795 if test "$enable_shared" = yes && test "$GCC" = yes; then
14796 case $archive_cmds_FC in
14797 *'~'*)
14798 # FIXME: we may have to deal with multi-command sequences.
14800 '$CC '*)
14801 # Test whether the compiler implicitly links with -lc since on some
14802 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14803 # to ld, don't add -lc before -lgcc.
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14805 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14806 if test "${lt_cv_archive_cmds_need_lc_FC+set}" = set; then :
14807 $as_echo_n "(cached) " >&6
14808 else
14809 $RM conftest*
14810 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14812 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14813 (eval $ac_compile) 2>&5
14814 ac_status=$?
14815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14816 test $ac_status = 0; } 2>conftest.err; then
14817 soname=conftest
14818 lib=conftest
14819 libobjs=conftest.$ac_objext
14820 deplibs=
14821 wl=$lt_prog_compiler_wl_FC
14822 pic_flag=$lt_prog_compiler_pic_FC
14823 compiler_flags=-v
14824 linker_flags=-v
14825 verstring=
14826 output_objdir=.
14827 libname=conftest
14828 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
14829 allow_undefined_flag_FC=
14830 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14831 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14832 ac_status=$?
14833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14834 test $ac_status = 0; }
14835 then
14836 lt_cv_archive_cmds_need_lc_FC=no
14837 else
14838 lt_cv_archive_cmds_need_lc_FC=yes
14840 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
14841 else
14842 cat conftest.err 1>&5
14844 $RM conftest*
14847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
14848 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
14849 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
14851 esac
14854 esac
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14920 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14922 library_names_spec=
14923 libname_spec='lib$name'
14924 soname_spec=
14925 shrext_cmds=".so"
14926 postinstall_cmds=
14927 postuninstall_cmds=
14928 finish_cmds=
14929 finish_eval=
14930 shlibpath_var=
14931 shlibpath_overrides_runpath=unknown
14932 version_type=none
14933 dynamic_linker="$host_os ld.so"
14934 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14935 need_lib_prefix=unknown
14936 hardcode_into_libs=no
14938 # when you set need_version to no, make sure it does not cause -set_version
14939 # flags to be left without arguments
14940 need_version=unknown
14942 case $host_os in
14943 aix3*)
14944 version_type=linux
14945 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14946 shlibpath_var=LIBPATH
14948 # AIX 3 has no versioning support, so we append a major version to the name.
14949 soname_spec='${libname}${release}${shared_ext}$major'
14952 aix[4-9]*)
14953 version_type=linux
14954 need_lib_prefix=no
14955 need_version=no
14956 hardcode_into_libs=yes
14957 if test "$host_cpu" = ia64; then
14958 # AIX 5 supports IA64
14959 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14960 shlibpath_var=LD_LIBRARY_PATH
14961 else
14962 # With GCC up to 2.95.x, collect2 would create an import file
14963 # for dependence libraries. The import file would start with
14964 # the line `#! .'. This would cause the generated library to
14965 # depend on `.', always an invalid library. This was fixed in
14966 # development snapshots of GCC prior to 3.0.
14967 case $host_os in
14968 aix4 | aix4.[01] | aix4.[01].*)
14969 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14970 echo ' yes '
14971 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14973 else
14974 can_build_shared=no
14977 esac
14978 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14979 # soname into executable. Probably we can add versioning support to
14980 # collect2, so additional links can be useful in future.
14981 if test "$aix_use_runtimelinking" = yes; then
14982 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14983 # instead of lib<name>.a to let people know that these are not
14984 # typical AIX shared libraries.
14985 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14986 else
14987 # We preserve .a as extension for shared libraries through AIX4.2
14988 # and later when we are not doing run time linking.
14989 library_names_spec='${libname}${release}.a $libname.a'
14990 soname_spec='${libname}${release}${shared_ext}$major'
14992 shlibpath_var=LIBPATH
14996 amigaos*)
14997 case $host_cpu in
14998 powerpc)
14999 # Since July 2007 AmigaOS4 officially supports .so libraries.
15000 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15003 m68k)
15004 library_names_spec='$libname.ixlibrary $libname.a'
15005 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15006 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'
15008 esac
15011 beos*)
15012 library_names_spec='${libname}${shared_ext}'
15013 dynamic_linker="$host_os ld.so"
15014 shlibpath_var=LIBRARY_PATH
15017 bsdi[45]*)
15018 version_type=linux
15019 need_version=no
15020 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15021 soname_spec='${libname}${release}${shared_ext}$major'
15022 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15023 shlibpath_var=LD_LIBRARY_PATH
15024 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15025 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15026 # the default ld.so.conf also contains /usr/contrib/lib and
15027 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15028 # libtool to hard-code these into programs
15031 cygwin* | mingw* | pw32* | cegcc*)
15032 version_type=windows
15033 shrext_cmds=".dll"
15034 need_version=no
15035 need_lib_prefix=no
15037 case $GCC,$host_os in
15038 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15039 library_names_spec='$libname.dll.a'
15040 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15041 postinstall_cmds='base_file=`basename \${file}`~
15042 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15043 dldir=$destdir/`dirname \$dlpath`~
15044 test -d \$dldir || mkdir -p \$dldir~
15045 $install_prog $dir/$dlname \$dldir/$dlname~
15046 chmod a+x \$dldir/$dlname~
15047 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15048 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15050 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15051 dlpath=$dir/\$dldll~
15052 $RM \$dlpath'
15053 shlibpath_overrides_runpath=yes
15055 case $host_os in
15056 cygwin*)
15057 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15058 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15061 mingw* | cegcc*)
15062 # MinGW DLLs use traditional 'lib' prefix
15063 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15065 pw32*)
15066 # pw32 DLLs use 'pw' prefix rather than 'lib'
15067 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15069 esac
15073 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15075 esac
15076 dynamic_linker='Win32 ld.exe'
15077 # FIXME: first we should search . and the directory the executable is in
15078 shlibpath_var=PATH
15081 darwin* | rhapsody*)
15082 dynamic_linker="$host_os dyld"
15083 version_type=darwin
15084 need_lib_prefix=no
15085 need_version=no
15086 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15087 soname_spec='${libname}${release}${major}$shared_ext'
15088 shlibpath_overrides_runpath=yes
15089 shlibpath_var=DYLD_LIBRARY_PATH
15090 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15092 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15095 dgux*)
15096 version_type=linux
15097 need_lib_prefix=no
15098 need_version=no
15099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15100 soname_spec='${libname}${release}${shared_ext}$major'
15101 shlibpath_var=LD_LIBRARY_PATH
15104 freebsd* | dragonfly*)
15105 # DragonFly does not have aout. When/if they implement a new
15106 # versioning mechanism, adjust this.
15107 if test -x /usr/bin/objformat; then
15108 objformat=`/usr/bin/objformat`
15109 else
15110 case $host_os in
15111 freebsd[23].*) objformat=aout ;;
15112 *) objformat=elf ;;
15113 esac
15115 version_type=freebsd-$objformat
15116 case $version_type in
15117 freebsd-elf*)
15118 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15119 need_version=no
15120 need_lib_prefix=no
15122 freebsd-*)
15123 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15124 need_version=yes
15126 esac
15127 shlibpath_var=LD_LIBRARY_PATH
15128 case $host_os in
15129 freebsd2.*)
15130 shlibpath_overrides_runpath=yes
15132 freebsd3.[01]* | freebsdelf3.[01]*)
15133 shlibpath_overrides_runpath=yes
15134 hardcode_into_libs=yes
15136 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15137 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15138 shlibpath_overrides_runpath=no
15139 hardcode_into_libs=yes
15141 *) # from 4.6 on, and DragonFly
15142 shlibpath_overrides_runpath=yes
15143 hardcode_into_libs=yes
15145 esac
15148 gnu*)
15149 version_type=linux
15150 need_lib_prefix=no
15151 need_version=no
15152 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15153 soname_spec='${libname}${release}${shared_ext}$major'
15154 shlibpath_var=LD_LIBRARY_PATH
15155 hardcode_into_libs=yes
15158 haiku*)
15159 version_type=linux
15160 need_lib_prefix=no
15161 need_version=no
15162 dynamic_linker="$host_os runtime_loader"
15163 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15164 soname_spec='${libname}${release}${shared_ext}$major'
15165 shlibpath_var=LIBRARY_PATH
15166 shlibpath_overrides_runpath=yes
15167 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
15168 hardcode_into_libs=yes
15171 hpux9* | hpux10* | hpux11*)
15172 # Give a soname corresponding to the major version so that dld.sl refuses to
15173 # link against other versions.
15174 version_type=sunos
15175 need_lib_prefix=no
15176 need_version=no
15177 case $host_cpu in
15178 ia64*)
15179 shrext_cmds='.so'
15180 hardcode_into_libs=yes
15181 dynamic_linker="$host_os dld.so"
15182 shlibpath_var=LD_LIBRARY_PATH
15183 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15184 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15185 soname_spec='${libname}${release}${shared_ext}$major'
15186 if test "X$HPUX_IA64_MODE" = X32; then
15187 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15188 else
15189 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15191 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15193 hppa*64*)
15194 shrext_cmds='.sl'
15195 hardcode_into_libs=yes
15196 dynamic_linker="$host_os dld.sl"
15197 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15198 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15200 soname_spec='${libname}${release}${shared_ext}$major'
15201 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15202 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15205 shrext_cmds='.sl'
15206 dynamic_linker="$host_os dld.sl"
15207 shlibpath_var=SHLIB_PATH
15208 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15209 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15210 soname_spec='${libname}${release}${shared_ext}$major'
15212 esac
15213 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15214 postinstall_cmds='chmod 555 $lib'
15215 # or fails outright, so override atomically:
15216 install_override_mode=555
15219 interix[3-9]*)
15220 version_type=linux
15221 need_lib_prefix=no
15222 need_version=no
15223 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15224 soname_spec='${libname}${release}${shared_ext}$major'
15225 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15226 shlibpath_var=LD_LIBRARY_PATH
15227 shlibpath_overrides_runpath=no
15228 hardcode_into_libs=yes
15231 irix5* | irix6* | nonstopux*)
15232 case $host_os in
15233 nonstopux*) version_type=nonstopux ;;
15235 if test "$lt_cv_prog_gnu_ld" = yes; then
15236 version_type=linux
15237 else
15238 version_type=irix
15239 fi ;;
15240 esac
15241 need_lib_prefix=no
15242 need_version=no
15243 soname_spec='${libname}${release}${shared_ext}$major'
15244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15245 case $host_os in
15246 irix5* | nonstopux*)
15247 libsuff= shlibsuff=
15250 case $LD in # libtool.m4 will add one of these switches to LD
15251 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15252 libsuff= shlibsuff= libmagic=32-bit;;
15253 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15254 libsuff=32 shlibsuff=N32 libmagic=N32;;
15255 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15256 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15257 *) libsuff= shlibsuff= libmagic=never-match;;
15258 esac
15260 esac
15261 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15262 shlibpath_overrides_runpath=no
15263 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15264 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15265 hardcode_into_libs=yes
15268 # No shared lib support for Linux oldld, aout, or coff.
15269 linux*oldld* | linux*aout* | linux*coff*)
15270 dynamic_linker=no
15273 # This must be Linux ELF.
15274 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15275 version_type=linux
15276 need_lib_prefix=no
15277 need_version=no
15278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15279 soname_spec='${libname}${release}${shared_ext}$major'
15280 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15281 shlibpath_var=LD_LIBRARY_PATH
15282 shlibpath_overrides_runpath=no
15284 # Some binutils ld are patched to set DT_RUNPATH
15285 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
15286 $as_echo_n "(cached) " >&6
15287 else
15288 lt_cv_shlibpath_overrides_runpath=no
15289 save_LDFLAGS=$LDFLAGS
15290 save_libdir=$libdir
15291 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
15292 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
15293 if test x$gcc_no_link = xyes; then
15294 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
15296 cat > conftest.$ac_ext <<_ACEOF
15297 program main
15300 _ACEOF
15301 if ac_fn_fc_try_link "$LINENO"; then :
15302 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15303 lt_cv_shlibpath_overrides_runpath=yes
15306 rm -f core conftest.err conftest.$ac_objext \
15307 conftest$ac_exeext conftest.$ac_ext
15308 LDFLAGS=$save_LDFLAGS
15309 libdir=$save_libdir
15313 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15315 # This implies no fast_install, which is unacceptable.
15316 # Some rework will be needed to allow for fast_install
15317 # before this can be enabled.
15318 hardcode_into_libs=yes
15320 # Append ld.so.conf contents to the search path
15321 if test -f /etc/ld.so.conf; then
15322 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' ' '`
15323 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15326 # We used to test for /lib/ld.so.1 and disable shared libraries on
15327 # powerpc, because MkLinux only supported shared libraries with the
15328 # GNU dynamic linker. Since this was broken with cross compilers,
15329 # most powerpc-linux boxes support dynamic linking these days and
15330 # people can always --disable-shared, the test was removed, and we
15331 # assume the GNU/Linux dynamic linker is in use.
15332 dynamic_linker='GNU/Linux ld.so'
15335 netbsd*)
15336 version_type=sunos
15337 need_lib_prefix=no
15338 need_version=no
15339 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15341 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15342 dynamic_linker='NetBSD (a.out) ld.so'
15343 else
15344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15345 soname_spec='${libname}${release}${shared_ext}$major'
15346 dynamic_linker='NetBSD ld.elf_so'
15348 shlibpath_var=LD_LIBRARY_PATH
15349 shlibpath_overrides_runpath=yes
15350 hardcode_into_libs=yes
15353 newsos6)
15354 version_type=linux
15355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15356 shlibpath_var=LD_LIBRARY_PATH
15357 shlibpath_overrides_runpath=yes
15360 *nto* | *qnx*)
15361 version_type=qnx
15362 need_lib_prefix=no
15363 need_version=no
15364 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15365 soname_spec='${libname}${release}${shared_ext}$major'
15366 shlibpath_var=LD_LIBRARY_PATH
15367 shlibpath_overrides_runpath=no
15368 hardcode_into_libs=yes
15369 dynamic_linker='ldqnx.so'
15372 openbsd*)
15373 version_type=sunos
15374 sys_lib_dlsearch_path_spec="/usr/lib"
15375 need_lib_prefix=no
15376 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15377 case $host_os in
15378 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15379 *) need_version=no ;;
15380 esac
15381 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15382 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15383 shlibpath_var=LD_LIBRARY_PATH
15384 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15385 case $host_os in
15386 openbsd2.[89] | openbsd2.[89].*)
15387 shlibpath_overrides_runpath=no
15390 shlibpath_overrides_runpath=yes
15392 esac
15393 else
15394 shlibpath_overrides_runpath=yes
15398 os2*)
15399 libname_spec='$name'
15400 shrext_cmds=".dll"
15401 need_lib_prefix=no
15402 library_names_spec='$libname${shared_ext} $libname.a'
15403 dynamic_linker='OS/2 ld.exe'
15404 shlibpath_var=LIBPATH
15407 osf3* | osf4* | osf5*)
15408 version_type=osf
15409 need_lib_prefix=no
15410 need_version=no
15411 soname_spec='${libname}${release}${shared_ext}$major'
15412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15413 shlibpath_var=LD_LIBRARY_PATH
15414 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15415 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15418 rdos*)
15419 dynamic_linker=no
15422 solaris*)
15423 version_type=linux
15424 need_lib_prefix=no
15425 need_version=no
15426 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15427 soname_spec='${libname}${release}${shared_ext}$major'
15428 shlibpath_var=LD_LIBRARY_PATH
15429 shlibpath_overrides_runpath=yes
15430 hardcode_into_libs=yes
15431 # ldd complains unless libraries are executable
15432 postinstall_cmds='chmod +x $lib'
15435 sunos4*)
15436 version_type=sunos
15437 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15438 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15439 shlibpath_var=LD_LIBRARY_PATH
15440 shlibpath_overrides_runpath=yes
15441 if test "$with_gnu_ld" = yes; then
15442 need_lib_prefix=no
15444 need_version=yes
15447 sysv4 | sysv4.3*)
15448 version_type=linux
15449 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15450 soname_spec='${libname}${release}${shared_ext}$major'
15451 shlibpath_var=LD_LIBRARY_PATH
15452 case $host_vendor in
15453 sni)
15454 shlibpath_overrides_runpath=no
15455 need_lib_prefix=no
15456 runpath_var=LD_RUN_PATH
15458 siemens)
15459 need_lib_prefix=no
15461 motorola)
15462 need_lib_prefix=no
15463 need_version=no
15464 shlibpath_overrides_runpath=no
15465 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15467 esac
15470 sysv4*MP*)
15471 if test -d /usr/nec ;then
15472 version_type=linux
15473 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15474 soname_spec='$libname${shared_ext}.$major'
15475 shlibpath_var=LD_LIBRARY_PATH
15479 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15480 version_type=freebsd-elf
15481 need_lib_prefix=no
15482 need_version=no
15483 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15484 soname_spec='${libname}${release}${shared_ext}$major'
15485 shlibpath_var=LD_LIBRARY_PATH
15486 shlibpath_overrides_runpath=yes
15487 hardcode_into_libs=yes
15488 if test "$with_gnu_ld" = yes; then
15489 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15490 else
15491 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15492 case $host_os in
15493 sco3.2v5*)
15494 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15496 esac
15498 sys_lib_dlsearch_path_spec='/usr/lib'
15501 tpf*)
15502 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15503 version_type=linux
15504 need_lib_prefix=no
15505 need_version=no
15506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15507 shlibpath_var=LD_LIBRARY_PATH
15508 shlibpath_overrides_runpath=no
15509 hardcode_into_libs=yes
15512 uts4*)
15513 version_type=linux
15514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15515 soname_spec='${libname}${release}${shared_ext}$major'
15516 shlibpath_var=LD_LIBRARY_PATH
15520 dynamic_linker=no
15522 esac
15523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15524 $as_echo "$dynamic_linker" >&6; }
15525 test "$dynamic_linker" = no && can_build_shared=no
15527 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15528 if test "$GCC" = yes; then
15529 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15532 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15533 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15535 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15536 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15577 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15578 hardcode_action_FC=
15579 if test -n "$hardcode_libdir_flag_spec_FC" ||
15580 test -n "$runpath_var_FC" ||
15581 test "X$hardcode_automatic_FC" = "Xyes" ; then
15583 # We can hardcode non-existent directories.
15584 if test "$hardcode_direct_FC" != no &&
15585 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15586 # have to relink, otherwise we might link with an installed library
15587 # when we should be linking with a yet-to-be-installed one
15588 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
15589 test "$hardcode_minus_L_FC" != no; then
15590 # Linking always hardcodes the temporary library directory.
15591 hardcode_action_FC=relink
15592 else
15593 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15594 hardcode_action_FC=immediate
15596 else
15597 # We cannot hardcode anything, or else we can only hardcode existing
15598 # directories.
15599 hardcode_action_FC=unsupported
15601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
15602 $as_echo "$hardcode_action_FC" >&6; }
15604 if test "$hardcode_action_FC" = relink ||
15605 test "$inherit_rpath_FC" = yes; then
15606 # Fast installation is not supported
15607 enable_fast_install=no
15608 elif test "$shlibpath_overrides_runpath" = yes ||
15609 test "$enable_shared" = no; then
15610 # Fast installation is not necessary
15611 enable_fast_install=needless
15620 fi # test -n "$compiler"
15622 GCC=$lt_save_GCC
15623 CC="$lt_save_CC"
15624 fi # test "$_lt_disable_FC" != yes
15626 ac_ext=c
15627 ac_cpp='$CPP $CPPFLAGS'
15628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15634 # extra LD Flags which are required for targets
15635 case "${host}" in
15636 *-darwin*)
15637 # Darwin needs -single_module when linking libgfortran
15638 extra_ldflags_libgfortran=-Wl,-single_module
15640 esac
15643 # We need a working compiler at that point, otherwise give a clear
15644 # error message and bail out.
15646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the GNU Fortran compiler is working" >&5
15647 $as_echo_n "checking whether the GNU Fortran compiler is working... " >&6; }
15648 ac_ext=${ac_fc_srcext-f}
15649 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
15650 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
15651 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
15653 cat > conftest.$ac_ext <<_ACEOF
15655 program foo
15656 real, parameter :: bar = sin (12.34 / 2.5)
15657 end program foo
15658 _ACEOF
15659 if ac_fn_fc_try_compile "$LINENO"; then :
15660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15661 $as_echo "yes" >&6; }
15662 else
15663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15664 $as_echo "no" >&6; }
15665 as_fn_error "GNU Fortran is not working; please report a bug in http://gcc.gnu.org/bugzilla, attaching $PWD/config.log" "$LINENO" 5
15668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15669 ac_ext=c
15670 ac_cpp='$CPP $CPPFLAGS'
15671 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15672 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15673 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15677 # Check whether --enable-largefile was given.
15678 if test "${enable_largefile+set}" = set; then :
15679 enableval=$enable_largefile;
15682 if test "$enable_largefile" != no; then
15684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15685 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15686 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
15687 $as_echo_n "(cached) " >&6
15688 else
15689 ac_cv_sys_largefile_CC=no
15690 if test "$GCC" != yes; then
15691 ac_save_CC=$CC
15692 while :; do
15693 # IRIX 6.2 and later do not support large files by default,
15694 # so use the C compiler's -n32 option if that helps.
15695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15696 /* end confdefs.h. */
15697 #include <sys/types.h>
15698 /* Check that off_t can represent 2**63 - 1 correctly.
15699 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15700 since some C++ compilers masquerading as C compilers
15701 incorrectly reject 9223372036854775807. */
15702 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15703 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15704 && LARGE_OFF_T % 2147483647 == 1)
15705 ? 1 : -1];
15707 main ()
15711 return 0;
15713 _ACEOF
15714 if ac_fn_c_try_compile "$LINENO"; then :
15715 break
15717 rm -f core conftest.err conftest.$ac_objext
15718 CC="$CC -n32"
15719 if ac_fn_c_try_compile "$LINENO"; then :
15720 ac_cv_sys_largefile_CC=' -n32'; break
15722 rm -f core conftest.err conftest.$ac_objext
15723 break
15724 done
15725 CC=$ac_save_CC
15726 rm -f conftest.$ac_ext
15729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15730 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15731 if test "$ac_cv_sys_largefile_CC" != no; then
15732 CC=$CC$ac_cv_sys_largefile_CC
15735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15736 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15737 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
15738 $as_echo_n "(cached) " >&6
15739 else
15740 while :; do
15741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15742 /* end confdefs.h. */
15743 #include <sys/types.h>
15744 /* Check that off_t can represent 2**63 - 1 correctly.
15745 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15746 since some C++ compilers masquerading as C compilers
15747 incorrectly reject 9223372036854775807. */
15748 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15749 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15750 && LARGE_OFF_T % 2147483647 == 1)
15751 ? 1 : -1];
15753 main ()
15757 return 0;
15759 _ACEOF
15760 if ac_fn_c_try_compile "$LINENO"; then :
15761 ac_cv_sys_file_offset_bits=no; break
15763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15765 /* end confdefs.h. */
15766 #define _FILE_OFFSET_BITS 64
15767 #include <sys/types.h>
15768 /* Check that off_t can represent 2**63 - 1 correctly.
15769 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15770 since some C++ compilers masquerading as C compilers
15771 incorrectly reject 9223372036854775807. */
15772 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15773 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15774 && LARGE_OFF_T % 2147483647 == 1)
15775 ? 1 : -1];
15777 main ()
15781 return 0;
15783 _ACEOF
15784 if ac_fn_c_try_compile "$LINENO"; then :
15785 ac_cv_sys_file_offset_bits=64; break
15787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15788 ac_cv_sys_file_offset_bits=unknown
15789 break
15790 done
15792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15793 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15794 case $ac_cv_sys_file_offset_bits in #(
15795 no | unknown) ;;
15797 cat >>confdefs.h <<_ACEOF
15798 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15799 _ACEOF
15801 esac
15802 rm -rf conftest*
15803 if test $ac_cv_sys_file_offset_bits = unknown; then
15804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15805 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15806 if test "${ac_cv_sys_large_files+set}" = set; then :
15807 $as_echo_n "(cached) " >&6
15808 else
15809 while :; do
15810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15811 /* end confdefs.h. */
15812 #include <sys/types.h>
15813 /* Check that off_t can represent 2**63 - 1 correctly.
15814 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15815 since some C++ compilers masquerading as C compilers
15816 incorrectly reject 9223372036854775807. */
15817 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15818 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15819 && LARGE_OFF_T % 2147483647 == 1)
15820 ? 1 : -1];
15822 main ()
15826 return 0;
15828 _ACEOF
15829 if ac_fn_c_try_compile "$LINENO"; then :
15830 ac_cv_sys_large_files=no; break
15832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15834 /* end confdefs.h. */
15835 #define _LARGE_FILES 1
15836 #include <sys/types.h>
15837 /* Check that off_t can represent 2**63 - 1 correctly.
15838 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15839 since some C++ compilers masquerading as C compilers
15840 incorrectly reject 9223372036854775807. */
15841 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15842 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15843 && LARGE_OFF_T % 2147483647 == 1)
15844 ? 1 : -1];
15846 main ()
15850 return 0;
15852 _ACEOF
15853 if ac_fn_c_try_compile "$LINENO"; then :
15854 ac_cv_sys_large_files=1; break
15856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15857 ac_cv_sys_large_files=unknown
15858 break
15859 done
15861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15862 $as_echo "$ac_cv_sys_large_files" >&6; }
15863 case $ac_cv_sys_large_files in #(
15864 no | unknown) ;;
15866 cat >>confdefs.h <<_ACEOF
15867 #define _LARGE_FILES $ac_cv_sys_large_files
15868 _ACEOF
15870 esac
15871 rm -rf conftest*
15876 # Types
15877 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
15878 if test "x$ac_cv_type_off_t" = x""yes; then :
15880 else
15882 cat >>confdefs.h <<_ACEOF
15883 #define off_t long int
15884 _ACEOF
15889 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
15890 if test "x$ac_cv_type_intptr_t" = x""yes; then :
15892 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
15894 else
15895 for ac_type in 'int' 'long int' 'long long int'; do
15896 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15897 /* end confdefs.h. */
15898 $ac_includes_default
15900 main ()
15902 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
15903 test_array [0] = 0
15906 return 0;
15908 _ACEOF
15909 if ac_fn_c_try_compile "$LINENO"; then :
15911 cat >>confdefs.h <<_ACEOF
15912 #define intptr_t $ac_type
15913 _ACEOF
15915 ac_type=
15917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15918 test -z "$ac_type" && break
15919 done
15924 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
15925 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
15927 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
15929 else
15930 for ac_type in 'unsigned int' 'unsigned long int' \
15931 'unsigned long long int'; do
15932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15933 /* end confdefs.h. */
15934 $ac_includes_default
15936 main ()
15938 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
15939 test_array [0] = 0
15942 return 0;
15944 _ACEOF
15945 if ac_fn_c_try_compile "$LINENO"; then :
15947 cat >>confdefs.h <<_ACEOF
15948 #define uintptr_t $ac_type
15949 _ACEOF
15951 ac_type=
15953 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15954 test -z "$ac_type" && break
15955 done
15959 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
15960 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
15962 cat >>confdefs.h <<_ACEOF
15963 #define HAVE_PTRDIFF_T 1
15964 _ACEOF
15970 # check header files (we assume C89 is available, so don't check for that)
15974 for ac_header in $ac_header_list
15975 do :
15976 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15977 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15979 eval as_val=\$$as_ac_Header
15980 if test "x$as_val" = x""yes; then :
15981 cat >>confdefs.h <<_ACEOF
15982 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15983 _ACEOF
15987 done
16021 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
16023 acx_cv_header_stdint=stddef.h
16024 acx_cv_header_stdint_kind="(already complete)"
16025 for i in stdint.h $inttype_headers; do
16026 unset ac_cv_type_uintptr_t
16027 unset ac_cv_type_uintmax_t
16028 unset ac_cv_type_int_least32_t
16029 unset ac_cv_type_int_fast32_t
16030 unset ac_cv_type_uint64_t
16031 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
16032 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
16033 #include <$i>
16035 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
16036 acx_cv_header_stdint=$i
16037 else
16038 continue
16041 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16042 #include <$i>
16044 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
16046 else
16047 acx_cv_header_stdint_kind="(mostly complete)"
16050 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
16051 #include <$i>
16053 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
16055 else
16056 acx_cv_header_stdint_kind="(mostly complete)"
16059 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
16060 #include <$i>
16062 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
16064 else
16065 acx_cv_header_stdint_kind="(mostly complete)"
16068 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16069 #include <$i>
16071 if test "x$ac_cv_type_uint64_t" = x""yes; then :
16073 else
16074 acx_cv_header_stdint_kind="(lacks uint64_t)"
16077 break
16078 done
16079 if test "$acx_cv_header_stdint" = stddef.h; then
16080 acx_cv_header_stdint_kind="(lacks uintmax_t)"
16081 for i in stdint.h $inttype_headers; do
16082 unset ac_cv_type_uintptr_t
16083 unset ac_cv_type_uint32_t
16084 unset ac_cv_type_uint64_t
16085 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
16086 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
16087 #include <$i>
16089 if test "x$ac_cv_type_uint32_t" = x""yes; then :
16090 acx_cv_header_stdint=$i
16091 else
16092 continue
16095 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16096 #include <$i>
16098 if test "x$ac_cv_type_uint64_t" = x""yes; then :
16102 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16103 #include <$i>
16105 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
16109 break
16110 done
16112 if test "$acx_cv_header_stdint" = stddef.h; then
16113 acx_cv_header_stdint_kind="(u_intXX_t style)"
16114 for i in sys/types.h $inttype_headers; do
16115 unset ac_cv_type_u_int32_t
16116 unset ac_cv_type_u_int64_t
16117 $as_echo_n "looking for u_intXX_t types in $i, " >&6
16118 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
16119 #include <$i>
16121 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
16122 acx_cv_header_stdint=$i
16123 else
16124 continue
16127 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
16128 #include <$i>
16130 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
16134 break
16135 done
16137 if test "$acx_cv_header_stdint" = stddef.h; then
16138 acx_cv_header_stdint_kind="(using manual detection)"
16141 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
16142 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
16143 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
16144 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
16145 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
16147 # ----------------- Summarize what we found so far
16149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
16150 $as_echo_n "checking what to include in gstdint.h... " >&6; }
16152 case `$as_basename -- gstdint.h ||
16153 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
16154 Xgstdint.h : 'X\(//\)$' \| \
16155 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
16156 $as_echo X/gstdint.h |
16157 sed '/^.*\/\([^/][^/]*\)\/*$/{
16158 s//\1/
16161 /^X\/\(\/\/\)$/{
16162 s//\1/
16165 /^X\/\(\/\).*/{
16166 s//\1/
16169 s/.*/./; q'` in
16170 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16171 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16172 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16173 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16174 *) ;;
16175 esac
16177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
16178 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
16180 # ----------------- done included file, check C basic types --------
16182 # Lacking an uintptr_t? Test size of void *
16183 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
16184 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
16185 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16186 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16187 # This bug is HP SR number 8606223364.
16188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16189 $as_echo_n "checking size of void *... " >&6; }
16190 if test "${ac_cv_sizeof_void_p+set}" = set; then :
16191 $as_echo_n "(cached) " >&6
16192 else
16193 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
16195 else
16196 if test "$ac_cv_type_void_p" = yes; then
16197 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16198 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16199 { as_fn_set_status 77
16200 as_fn_error "cannot compute sizeof (void *)
16201 See \`config.log' for more details." "$LINENO" 5; }; }
16202 else
16203 ac_cv_sizeof_void_p=0
16208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16209 $as_echo "$ac_cv_sizeof_void_p" >&6; }
16213 cat >>confdefs.h <<_ACEOF
16214 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16215 _ACEOF
16218 esac
16220 # Lacking an uint64_t? Test size of long
16221 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
16222 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
16223 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16224 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16225 # This bug is HP SR number 8606223364.
16226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16227 $as_echo_n "checking size of long... " >&6; }
16228 if test "${ac_cv_sizeof_long+set}" = set; then :
16229 $as_echo_n "(cached) " >&6
16230 else
16231 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
16233 else
16234 if test "$ac_cv_type_long" = yes; then
16235 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16236 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16237 { as_fn_set_status 77
16238 as_fn_error "cannot compute sizeof (long)
16239 See \`config.log' for more details." "$LINENO" 5; }; }
16240 else
16241 ac_cv_sizeof_long=0
16246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16247 $as_echo "$ac_cv_sizeof_long" >&6; }
16251 cat >>confdefs.h <<_ACEOF
16252 #define SIZEOF_LONG $ac_cv_sizeof_long
16253 _ACEOF
16256 esac
16258 if test $acx_cv_header_stdint = stddef.h; then
16259 # Lacking a good header? Test size of everything and deduce all types.
16260 # The cast to long int works around a bug in the HP C Compiler
16261 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16262 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16263 # This bug is HP SR number 8606223364.
16264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16265 $as_echo_n "checking size of int... " >&6; }
16266 if test "${ac_cv_sizeof_int+set}" = set; then :
16267 $as_echo_n "(cached) " >&6
16268 else
16269 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
16271 else
16272 if test "$ac_cv_type_int" = yes; then
16273 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16274 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16275 { as_fn_set_status 77
16276 as_fn_error "cannot compute sizeof (int)
16277 See \`config.log' for more details." "$LINENO" 5; }; }
16278 else
16279 ac_cv_sizeof_int=0
16284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16285 $as_echo "$ac_cv_sizeof_int" >&6; }
16289 cat >>confdefs.h <<_ACEOF
16290 #define SIZEOF_INT $ac_cv_sizeof_int
16291 _ACEOF
16294 # The cast to long int works around a bug in the HP C Compiler
16295 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16296 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16297 # This bug is HP SR number 8606223364.
16298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16299 $as_echo_n "checking size of short... " >&6; }
16300 if test "${ac_cv_sizeof_short+set}" = set; then :
16301 $as_echo_n "(cached) " >&6
16302 else
16303 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
16305 else
16306 if test "$ac_cv_type_short" = yes; then
16307 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16308 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16309 { as_fn_set_status 77
16310 as_fn_error "cannot compute sizeof (short)
16311 See \`config.log' for more details." "$LINENO" 5; }; }
16312 else
16313 ac_cv_sizeof_short=0
16318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16319 $as_echo "$ac_cv_sizeof_short" >&6; }
16323 cat >>confdefs.h <<_ACEOF
16324 #define SIZEOF_SHORT $ac_cv_sizeof_short
16325 _ACEOF
16328 # The cast to long int works around a bug in the HP C Compiler
16329 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16330 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16331 # This bug is HP SR number 8606223364.
16332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
16333 $as_echo_n "checking size of char... " >&6; }
16334 if test "${ac_cv_sizeof_char+set}" = set; then :
16335 $as_echo_n "(cached) " >&6
16336 else
16337 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
16339 else
16340 if test "$ac_cv_type_char" = yes; then
16341 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16342 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16343 { as_fn_set_status 77
16344 as_fn_error "cannot compute sizeof (char)
16345 See \`config.log' for more details." "$LINENO" 5; }; }
16346 else
16347 ac_cv_sizeof_char=0
16352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16353 $as_echo "$ac_cv_sizeof_char" >&6; }
16357 cat >>confdefs.h <<_ACEOF
16358 #define SIZEOF_CHAR $ac_cv_sizeof_char
16359 _ACEOF
16363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
16364 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
16365 case "$ac_cv_sizeof_char" in
16366 1) acx_cv_type_int8_t=char ;;
16367 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
16368 esac
16369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
16370 $as_echo "$acx_cv_type_int8_t" >&6; }
16372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
16373 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
16374 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16375 2:*) acx_cv_type_int16_t=int ;;
16376 *:2) acx_cv_type_int16_t=short ;;
16377 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
16378 esac
16379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
16380 $as_echo "$acx_cv_type_int16_t" >&6; }
16382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
16383 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
16384 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16385 4:*) acx_cv_type_int32_t=int ;;
16386 *:4) acx_cv_type_int32_t=long ;;
16387 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
16388 esac
16389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
16390 $as_echo "$acx_cv_type_int32_t" >&6; }
16393 # These tests are here to make the output prettier
16395 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16396 case "$ac_cv_sizeof_long" in
16397 8) acx_cv_type_int64_t=long ;;
16398 esac
16399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
16400 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
16401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16402 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16405 # Now we can use the above types
16407 if test "$ac_cv_type_uintptr_t" != yes; then
16408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
16409 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
16410 case $ac_cv_sizeof_void_p in
16411 2) acx_cv_type_intptr_t=int16_t ;;
16412 4) acx_cv_type_intptr_t=int32_t ;;
16413 8) acx_cv_type_intptr_t=int64_t ;;
16414 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
16415 esac
16416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
16417 $as_echo "$acx_cv_type_intptr_t" >&6; }
16420 # ----------------- done all checks, emit header -------------
16421 ac_config_commands="$ac_config_commands gstdint.h"
16426 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
16427 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
16429 cat >>confdefs.h <<_ACEOF
16430 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
16431 _ACEOF
16435 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
16436 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
16438 cat >>confdefs.h <<_ACEOF
16439 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
16440 _ACEOF
16444 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
16445 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
16447 cat >>confdefs.h <<_ACEOF
16448 #define HAVE_STRUCT_STAT_ST_RDEV 1
16449 _ACEOF
16455 # Check for library functions.
16456 if test "x${with_newlib}" = "xyes"; then
16457 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
16458 # may not work correctly, because the compiler may not be able to
16459 # link executables.
16461 $as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h
16464 $as_echo "#define HAVE_STRTOF 1" >>confdefs.h
16467 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
16470 $as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h
16473 $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
16476 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
16479 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
16482 $as_echo "#define HAVE_STRNLEN 1" >>confdefs.h
16485 $as_echo "#define HAVE_STRNDUP 1" >>confdefs.h
16488 # At some point, we should differentiate between architectures
16489 # like x86, which have long double versions, and alpha/powerpc/etc.,
16490 # which don't. For the time being, punt.
16491 if test x"long_double_math_on_this_cpu" = x"yes"; then
16493 $as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
16496 else
16500 for ac_func in $ac_func_list
16501 do :
16502 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16503 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16504 eval as_val=\$$as_ac_var
16505 if test "x$as_val" = x""yes; then :
16506 cat >>confdefs.h <<_ACEOF
16507 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16508 _ACEOF
16511 done
16626 # Check strerror_r, cannot be above as versions with two and three arguments exist
16628 ac_save_CFLAGS="$CFLAGS"
16629 CFLAGS="-Wimplicit-function-declaration -Werror"
16630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16631 /* end confdefs.h. */
16632 #define _GNU_SOURCE 1
16633 #include <string.h>
16634 #include <locale.h>
16636 main ()
16638 char s[128]; strerror_r(5, s, 128);
16640 return 0;
16642 _ACEOF
16643 if ac_fn_c_try_compile "$LINENO"; then :
16645 $as_echo "#define HAVE_STRERROR_R 1" >>confdefs.h
16648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16649 CFLAGS="$ac_save_CFLAGS"
16651 ac_save_CFLAGS="$CFLAGS"
16652 CFLAGS="-Wimplicit-function-declaration -Werror"
16653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16654 /* end confdefs.h. */
16655 #define _GNU_SOURCE 1
16656 #include <string.h>
16657 #include <locale.h>
16659 main ()
16661 char s[128]; strerror_r(5, s);
16663 return 0;
16665 _ACEOF
16666 if ac_fn_c_try_compile "$LINENO"; then :
16668 $as_echo "#define HAVE_STRERROR_R_2ARGS 1" >>confdefs.h
16671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16672 CFLAGS="$ac_save_CFLAGS"
16675 # Check for C99 (and other IEEE) math functions
16676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
16677 $as_echo_n "checking for sin in -lm... " >&6; }
16678 if test "${ac_cv_lib_m_sin+set}" = set; then :
16679 $as_echo_n "(cached) " >&6
16680 else
16681 ac_check_lib_save_LIBS=$LIBS
16682 LIBS="-lm $LIBS"
16683 if test x$gcc_no_link = xyes; then
16684 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16687 /* end confdefs.h. */
16689 /* Override any GCC internal prototype to avoid an error.
16690 Use char because int might match the return type of a GCC
16691 builtin and then its argument prototype would still apply. */
16692 #ifdef __cplusplus
16693 extern "C"
16694 #endif
16695 char sin ();
16697 main ()
16699 return sin ();
16701 return 0;
16703 _ACEOF
16704 if ac_fn_c_try_link "$LINENO"; then :
16705 ac_cv_lib_m_sin=yes
16706 else
16707 ac_cv_lib_m_sin=no
16709 rm -f core conftest.err conftest.$ac_objext \
16710 conftest$ac_exeext conftest.$ac_ext
16711 LIBS=$ac_check_lib_save_LIBS
16713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
16714 $as_echo "$ac_cv_lib_m_sin" >&6; }
16715 if test "x$ac_cv_lib_m_sin" = x""yes; then :
16716 cat >>confdefs.h <<_ACEOF
16717 #define HAVE_LIBM 1
16718 _ACEOF
16720 LIBS="-lm $LIBS"
16730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosf" >&5
16731 $as_echo_n "checking for acosf... " >&6; }
16732 if test "${gcc_cv_math_func_acosf+set}" = set; then :
16733 $as_echo_n "(cached) " >&6
16734 else
16735 if test x$gcc_no_link = xyes; then
16736 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16739 /* end confdefs.h. */
16741 #ifdef HAVE_COMPLEX_H
16742 #include <complex.h>
16743 #endif
16744 #ifdef HAVE_MATH_H
16745 #include <math.h>
16746 #endif
16748 int (*ptr)() = (int (*)())acosf;
16751 main ()
16753 return 0;
16756 _ACEOF
16757 if ac_fn_c_try_link "$LINENO"; then :
16758 gcc_cv_math_func_acosf=yes
16759 else
16760 gcc_cv_math_func_acosf=no
16762 rm -f core conftest.err conftest.$ac_objext \
16763 conftest$ac_exeext conftest.$ac_ext
16765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosf" >&5
16766 $as_echo "$gcc_cv_math_func_acosf" >&6; }
16767 if test $gcc_cv_math_func_acosf = yes; then
16769 cat >>confdefs.h <<_ACEOF
16770 #define HAVE_ACOSF 1
16771 _ACEOF
16778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acos" >&5
16779 $as_echo_n "checking for acos... " >&6; }
16780 if test "${gcc_cv_math_func_acos+set}" = set; then :
16781 $as_echo_n "(cached) " >&6
16782 else
16783 if test x$gcc_no_link = xyes; then
16784 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16787 /* end confdefs.h. */
16789 #ifdef HAVE_COMPLEX_H
16790 #include <complex.h>
16791 #endif
16792 #ifdef HAVE_MATH_H
16793 #include <math.h>
16794 #endif
16796 int (*ptr)() = (int (*)())acos;
16799 main ()
16801 return 0;
16804 _ACEOF
16805 if ac_fn_c_try_link "$LINENO"; then :
16806 gcc_cv_math_func_acos=yes
16807 else
16808 gcc_cv_math_func_acos=no
16810 rm -f core conftest.err conftest.$ac_objext \
16811 conftest$ac_exeext conftest.$ac_ext
16813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acos" >&5
16814 $as_echo "$gcc_cv_math_func_acos" >&6; }
16815 if test $gcc_cv_math_func_acos = yes; then
16817 cat >>confdefs.h <<_ACEOF
16818 #define HAVE_ACOS 1
16819 _ACEOF
16826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosl" >&5
16827 $as_echo_n "checking for acosl... " >&6; }
16828 if test "${gcc_cv_math_func_acosl+set}" = set; then :
16829 $as_echo_n "(cached) " >&6
16830 else
16831 if test x$gcc_no_link = xyes; then
16832 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16835 /* end confdefs.h. */
16837 #ifdef HAVE_COMPLEX_H
16838 #include <complex.h>
16839 #endif
16840 #ifdef HAVE_MATH_H
16841 #include <math.h>
16842 #endif
16844 int (*ptr)() = (int (*)())acosl;
16847 main ()
16849 return 0;
16852 _ACEOF
16853 if ac_fn_c_try_link "$LINENO"; then :
16854 gcc_cv_math_func_acosl=yes
16855 else
16856 gcc_cv_math_func_acosl=no
16858 rm -f core conftest.err conftest.$ac_objext \
16859 conftest$ac_exeext conftest.$ac_ext
16861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosl" >&5
16862 $as_echo "$gcc_cv_math_func_acosl" >&6; }
16863 if test $gcc_cv_math_func_acosl = yes; then
16865 cat >>confdefs.h <<_ACEOF
16866 #define HAVE_ACOSL 1
16867 _ACEOF
16874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshf" >&5
16875 $as_echo_n "checking for acoshf... " >&6; }
16876 if test "${gcc_cv_math_func_acoshf+set}" = set; then :
16877 $as_echo_n "(cached) " >&6
16878 else
16879 if test x$gcc_no_link = xyes; then
16880 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16883 /* end confdefs.h. */
16885 #ifdef HAVE_COMPLEX_H
16886 #include <complex.h>
16887 #endif
16888 #ifdef HAVE_MATH_H
16889 #include <math.h>
16890 #endif
16892 int (*ptr)() = (int (*)())acoshf;
16895 main ()
16897 return 0;
16900 _ACEOF
16901 if ac_fn_c_try_link "$LINENO"; then :
16902 gcc_cv_math_func_acoshf=yes
16903 else
16904 gcc_cv_math_func_acoshf=no
16906 rm -f core conftest.err conftest.$ac_objext \
16907 conftest$ac_exeext conftest.$ac_ext
16909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshf" >&5
16910 $as_echo "$gcc_cv_math_func_acoshf" >&6; }
16911 if test $gcc_cv_math_func_acoshf = yes; then
16913 cat >>confdefs.h <<_ACEOF
16914 #define HAVE_ACOSHF 1
16915 _ACEOF
16922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosh" >&5
16923 $as_echo_n "checking for acosh... " >&6; }
16924 if test "${gcc_cv_math_func_acosh+set}" = set; then :
16925 $as_echo_n "(cached) " >&6
16926 else
16927 if test x$gcc_no_link = xyes; then
16928 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16931 /* end confdefs.h. */
16933 #ifdef HAVE_COMPLEX_H
16934 #include <complex.h>
16935 #endif
16936 #ifdef HAVE_MATH_H
16937 #include <math.h>
16938 #endif
16940 int (*ptr)() = (int (*)())acosh;
16943 main ()
16945 return 0;
16948 _ACEOF
16949 if ac_fn_c_try_link "$LINENO"; then :
16950 gcc_cv_math_func_acosh=yes
16951 else
16952 gcc_cv_math_func_acosh=no
16954 rm -f core conftest.err conftest.$ac_objext \
16955 conftest$ac_exeext conftest.$ac_ext
16957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosh" >&5
16958 $as_echo "$gcc_cv_math_func_acosh" >&6; }
16959 if test $gcc_cv_math_func_acosh = yes; then
16961 cat >>confdefs.h <<_ACEOF
16962 #define HAVE_ACOSH 1
16963 _ACEOF
16970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshl" >&5
16971 $as_echo_n "checking for acoshl... " >&6; }
16972 if test "${gcc_cv_math_func_acoshl+set}" = set; then :
16973 $as_echo_n "(cached) " >&6
16974 else
16975 if test x$gcc_no_link = xyes; then
16976 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16979 /* end confdefs.h. */
16981 #ifdef HAVE_COMPLEX_H
16982 #include <complex.h>
16983 #endif
16984 #ifdef HAVE_MATH_H
16985 #include <math.h>
16986 #endif
16988 int (*ptr)() = (int (*)())acoshl;
16991 main ()
16993 return 0;
16996 _ACEOF
16997 if ac_fn_c_try_link "$LINENO"; then :
16998 gcc_cv_math_func_acoshl=yes
16999 else
17000 gcc_cv_math_func_acoshl=no
17002 rm -f core conftest.err conftest.$ac_objext \
17003 conftest$ac_exeext conftest.$ac_ext
17005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshl" >&5
17006 $as_echo "$gcc_cv_math_func_acoshl" >&6; }
17007 if test $gcc_cv_math_func_acoshl = yes; then
17009 cat >>confdefs.h <<_ACEOF
17010 #define HAVE_ACOSHL 1
17011 _ACEOF
17018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinf" >&5
17019 $as_echo_n "checking for asinf... " >&6; }
17020 if test "${gcc_cv_math_func_asinf+set}" = set; then :
17021 $as_echo_n "(cached) " >&6
17022 else
17023 if test x$gcc_no_link = xyes; then
17024 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17027 /* end confdefs.h. */
17029 #ifdef HAVE_COMPLEX_H
17030 #include <complex.h>
17031 #endif
17032 #ifdef HAVE_MATH_H
17033 #include <math.h>
17034 #endif
17036 int (*ptr)() = (int (*)())asinf;
17039 main ()
17041 return 0;
17044 _ACEOF
17045 if ac_fn_c_try_link "$LINENO"; then :
17046 gcc_cv_math_func_asinf=yes
17047 else
17048 gcc_cv_math_func_asinf=no
17050 rm -f core conftest.err conftest.$ac_objext \
17051 conftest$ac_exeext conftest.$ac_ext
17053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinf" >&5
17054 $as_echo "$gcc_cv_math_func_asinf" >&6; }
17055 if test $gcc_cv_math_func_asinf = yes; then
17057 cat >>confdefs.h <<_ACEOF
17058 #define HAVE_ASINF 1
17059 _ACEOF
17066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin" >&5
17067 $as_echo_n "checking for asin... " >&6; }
17068 if test "${gcc_cv_math_func_asin+set}" = set; then :
17069 $as_echo_n "(cached) " >&6
17070 else
17071 if test x$gcc_no_link = xyes; then
17072 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17075 /* end confdefs.h. */
17077 #ifdef HAVE_COMPLEX_H
17078 #include <complex.h>
17079 #endif
17080 #ifdef HAVE_MATH_H
17081 #include <math.h>
17082 #endif
17084 int (*ptr)() = (int (*)())asin;
17087 main ()
17089 return 0;
17092 _ACEOF
17093 if ac_fn_c_try_link "$LINENO"; then :
17094 gcc_cv_math_func_asin=yes
17095 else
17096 gcc_cv_math_func_asin=no
17098 rm -f core conftest.err conftest.$ac_objext \
17099 conftest$ac_exeext conftest.$ac_ext
17101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asin" >&5
17102 $as_echo "$gcc_cv_math_func_asin" >&6; }
17103 if test $gcc_cv_math_func_asin = yes; then
17105 cat >>confdefs.h <<_ACEOF
17106 #define HAVE_ASIN 1
17107 _ACEOF
17114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinl" >&5
17115 $as_echo_n "checking for asinl... " >&6; }
17116 if test "${gcc_cv_math_func_asinl+set}" = set; then :
17117 $as_echo_n "(cached) " >&6
17118 else
17119 if test x$gcc_no_link = xyes; then
17120 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17123 /* end confdefs.h. */
17125 #ifdef HAVE_COMPLEX_H
17126 #include <complex.h>
17127 #endif
17128 #ifdef HAVE_MATH_H
17129 #include <math.h>
17130 #endif
17132 int (*ptr)() = (int (*)())asinl;
17135 main ()
17137 return 0;
17140 _ACEOF
17141 if ac_fn_c_try_link "$LINENO"; then :
17142 gcc_cv_math_func_asinl=yes
17143 else
17144 gcc_cv_math_func_asinl=no
17146 rm -f core conftest.err conftest.$ac_objext \
17147 conftest$ac_exeext conftest.$ac_ext
17149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinl" >&5
17150 $as_echo "$gcc_cv_math_func_asinl" >&6; }
17151 if test $gcc_cv_math_func_asinl = yes; then
17153 cat >>confdefs.h <<_ACEOF
17154 #define HAVE_ASINL 1
17155 _ACEOF
17162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhf" >&5
17163 $as_echo_n "checking for asinhf... " >&6; }
17164 if test "${gcc_cv_math_func_asinhf+set}" = set; then :
17165 $as_echo_n "(cached) " >&6
17166 else
17167 if test x$gcc_no_link = xyes; then
17168 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17171 /* end confdefs.h. */
17173 #ifdef HAVE_COMPLEX_H
17174 #include <complex.h>
17175 #endif
17176 #ifdef HAVE_MATH_H
17177 #include <math.h>
17178 #endif
17180 int (*ptr)() = (int (*)())asinhf;
17183 main ()
17185 return 0;
17188 _ACEOF
17189 if ac_fn_c_try_link "$LINENO"; then :
17190 gcc_cv_math_func_asinhf=yes
17191 else
17192 gcc_cv_math_func_asinhf=no
17194 rm -f core conftest.err conftest.$ac_objext \
17195 conftest$ac_exeext conftest.$ac_ext
17197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhf" >&5
17198 $as_echo "$gcc_cv_math_func_asinhf" >&6; }
17199 if test $gcc_cv_math_func_asinhf = yes; then
17201 cat >>confdefs.h <<_ACEOF
17202 #define HAVE_ASINHF 1
17203 _ACEOF
17210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinh" >&5
17211 $as_echo_n "checking for asinh... " >&6; }
17212 if test "${gcc_cv_math_func_asinh+set}" = set; then :
17213 $as_echo_n "(cached) " >&6
17214 else
17215 if test x$gcc_no_link = xyes; then
17216 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17219 /* end confdefs.h. */
17221 #ifdef HAVE_COMPLEX_H
17222 #include <complex.h>
17223 #endif
17224 #ifdef HAVE_MATH_H
17225 #include <math.h>
17226 #endif
17228 int (*ptr)() = (int (*)())asinh;
17231 main ()
17233 return 0;
17236 _ACEOF
17237 if ac_fn_c_try_link "$LINENO"; then :
17238 gcc_cv_math_func_asinh=yes
17239 else
17240 gcc_cv_math_func_asinh=no
17242 rm -f core conftest.err conftest.$ac_objext \
17243 conftest$ac_exeext conftest.$ac_ext
17245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinh" >&5
17246 $as_echo "$gcc_cv_math_func_asinh" >&6; }
17247 if test $gcc_cv_math_func_asinh = yes; then
17249 cat >>confdefs.h <<_ACEOF
17250 #define HAVE_ASINH 1
17251 _ACEOF
17258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhl" >&5
17259 $as_echo_n "checking for asinhl... " >&6; }
17260 if test "${gcc_cv_math_func_asinhl+set}" = set; then :
17261 $as_echo_n "(cached) " >&6
17262 else
17263 if test x$gcc_no_link = xyes; then
17264 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17267 /* end confdefs.h. */
17269 #ifdef HAVE_COMPLEX_H
17270 #include <complex.h>
17271 #endif
17272 #ifdef HAVE_MATH_H
17273 #include <math.h>
17274 #endif
17276 int (*ptr)() = (int (*)())asinhl;
17279 main ()
17281 return 0;
17284 _ACEOF
17285 if ac_fn_c_try_link "$LINENO"; then :
17286 gcc_cv_math_func_asinhl=yes
17287 else
17288 gcc_cv_math_func_asinhl=no
17290 rm -f core conftest.err conftest.$ac_objext \
17291 conftest$ac_exeext conftest.$ac_ext
17293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhl" >&5
17294 $as_echo "$gcc_cv_math_func_asinhl" >&6; }
17295 if test $gcc_cv_math_func_asinhl = yes; then
17297 cat >>confdefs.h <<_ACEOF
17298 #define HAVE_ASINHL 1
17299 _ACEOF
17306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f" >&5
17307 $as_echo_n "checking for atan2f... " >&6; }
17308 if test "${gcc_cv_math_func_atan2f+set}" = set; then :
17309 $as_echo_n "(cached) " >&6
17310 else
17311 if test x$gcc_no_link = xyes; then
17312 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17315 /* end confdefs.h. */
17317 #ifdef HAVE_COMPLEX_H
17318 #include <complex.h>
17319 #endif
17320 #ifdef HAVE_MATH_H
17321 #include <math.h>
17322 #endif
17324 int (*ptr)() = (int (*)())atan2f;
17327 main ()
17329 return 0;
17332 _ACEOF
17333 if ac_fn_c_try_link "$LINENO"; then :
17334 gcc_cv_math_func_atan2f=yes
17335 else
17336 gcc_cv_math_func_atan2f=no
17338 rm -f core conftest.err conftest.$ac_objext \
17339 conftest$ac_exeext conftest.$ac_ext
17341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2f" >&5
17342 $as_echo "$gcc_cv_math_func_atan2f" >&6; }
17343 if test $gcc_cv_math_func_atan2f = yes; then
17345 cat >>confdefs.h <<_ACEOF
17346 #define HAVE_ATAN2F 1
17347 _ACEOF
17354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2" >&5
17355 $as_echo_n "checking for atan2... " >&6; }
17356 if test "${gcc_cv_math_func_atan2+set}" = set; then :
17357 $as_echo_n "(cached) " >&6
17358 else
17359 if test x$gcc_no_link = xyes; then
17360 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17363 /* end confdefs.h. */
17365 #ifdef HAVE_COMPLEX_H
17366 #include <complex.h>
17367 #endif
17368 #ifdef HAVE_MATH_H
17369 #include <math.h>
17370 #endif
17372 int (*ptr)() = (int (*)())atan2;
17375 main ()
17377 return 0;
17380 _ACEOF
17381 if ac_fn_c_try_link "$LINENO"; then :
17382 gcc_cv_math_func_atan2=yes
17383 else
17384 gcc_cv_math_func_atan2=no
17386 rm -f core conftest.err conftest.$ac_objext \
17387 conftest$ac_exeext conftest.$ac_ext
17389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2" >&5
17390 $as_echo "$gcc_cv_math_func_atan2" >&6; }
17391 if test $gcc_cv_math_func_atan2 = yes; then
17393 cat >>confdefs.h <<_ACEOF
17394 #define HAVE_ATAN2 1
17395 _ACEOF
17402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l" >&5
17403 $as_echo_n "checking for atan2l... " >&6; }
17404 if test "${gcc_cv_math_func_atan2l+set}" = set; then :
17405 $as_echo_n "(cached) " >&6
17406 else
17407 if test x$gcc_no_link = xyes; then
17408 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17411 /* end confdefs.h. */
17413 #ifdef HAVE_COMPLEX_H
17414 #include <complex.h>
17415 #endif
17416 #ifdef HAVE_MATH_H
17417 #include <math.h>
17418 #endif
17420 int (*ptr)() = (int (*)())atan2l;
17423 main ()
17425 return 0;
17428 _ACEOF
17429 if ac_fn_c_try_link "$LINENO"; then :
17430 gcc_cv_math_func_atan2l=yes
17431 else
17432 gcc_cv_math_func_atan2l=no
17434 rm -f core conftest.err conftest.$ac_objext \
17435 conftest$ac_exeext conftest.$ac_ext
17437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2l" >&5
17438 $as_echo "$gcc_cv_math_func_atan2l" >&6; }
17439 if test $gcc_cv_math_func_atan2l = yes; then
17441 cat >>confdefs.h <<_ACEOF
17442 #define HAVE_ATAN2L 1
17443 _ACEOF
17450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanf" >&5
17451 $as_echo_n "checking for atanf... " >&6; }
17452 if test "${gcc_cv_math_func_atanf+set}" = set; then :
17453 $as_echo_n "(cached) " >&6
17454 else
17455 if test x$gcc_no_link = xyes; then
17456 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17459 /* end confdefs.h. */
17461 #ifdef HAVE_COMPLEX_H
17462 #include <complex.h>
17463 #endif
17464 #ifdef HAVE_MATH_H
17465 #include <math.h>
17466 #endif
17468 int (*ptr)() = (int (*)())atanf;
17471 main ()
17473 return 0;
17476 _ACEOF
17477 if ac_fn_c_try_link "$LINENO"; then :
17478 gcc_cv_math_func_atanf=yes
17479 else
17480 gcc_cv_math_func_atanf=no
17482 rm -f core conftest.err conftest.$ac_objext \
17483 conftest$ac_exeext conftest.$ac_ext
17485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanf" >&5
17486 $as_echo "$gcc_cv_math_func_atanf" >&6; }
17487 if test $gcc_cv_math_func_atanf = yes; then
17489 cat >>confdefs.h <<_ACEOF
17490 #define HAVE_ATANF 1
17491 _ACEOF
17498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan" >&5
17499 $as_echo_n "checking for atan... " >&6; }
17500 if test "${gcc_cv_math_func_atan+set}" = set; then :
17501 $as_echo_n "(cached) " >&6
17502 else
17503 if test x$gcc_no_link = xyes; then
17504 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17507 /* end confdefs.h. */
17509 #ifdef HAVE_COMPLEX_H
17510 #include <complex.h>
17511 #endif
17512 #ifdef HAVE_MATH_H
17513 #include <math.h>
17514 #endif
17516 int (*ptr)() = (int (*)())atan;
17519 main ()
17521 return 0;
17524 _ACEOF
17525 if ac_fn_c_try_link "$LINENO"; then :
17526 gcc_cv_math_func_atan=yes
17527 else
17528 gcc_cv_math_func_atan=no
17530 rm -f core conftest.err conftest.$ac_objext \
17531 conftest$ac_exeext conftest.$ac_ext
17533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan" >&5
17534 $as_echo "$gcc_cv_math_func_atan" >&6; }
17535 if test $gcc_cv_math_func_atan = yes; then
17537 cat >>confdefs.h <<_ACEOF
17538 #define HAVE_ATAN 1
17539 _ACEOF
17546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanl" >&5
17547 $as_echo_n "checking for atanl... " >&6; }
17548 if test "${gcc_cv_math_func_atanl+set}" = set; then :
17549 $as_echo_n "(cached) " >&6
17550 else
17551 if test x$gcc_no_link = xyes; then
17552 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17555 /* end confdefs.h. */
17557 #ifdef HAVE_COMPLEX_H
17558 #include <complex.h>
17559 #endif
17560 #ifdef HAVE_MATH_H
17561 #include <math.h>
17562 #endif
17564 int (*ptr)() = (int (*)())atanl;
17567 main ()
17569 return 0;
17572 _ACEOF
17573 if ac_fn_c_try_link "$LINENO"; then :
17574 gcc_cv_math_func_atanl=yes
17575 else
17576 gcc_cv_math_func_atanl=no
17578 rm -f core conftest.err conftest.$ac_objext \
17579 conftest$ac_exeext conftest.$ac_ext
17581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanl" >&5
17582 $as_echo "$gcc_cv_math_func_atanl" >&6; }
17583 if test $gcc_cv_math_func_atanl = yes; then
17585 cat >>confdefs.h <<_ACEOF
17586 #define HAVE_ATANL 1
17587 _ACEOF
17594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhf" >&5
17595 $as_echo_n "checking for atanhf... " >&6; }
17596 if test "${gcc_cv_math_func_atanhf+set}" = set; then :
17597 $as_echo_n "(cached) " >&6
17598 else
17599 if test x$gcc_no_link = xyes; then
17600 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17603 /* end confdefs.h. */
17605 #ifdef HAVE_COMPLEX_H
17606 #include <complex.h>
17607 #endif
17608 #ifdef HAVE_MATH_H
17609 #include <math.h>
17610 #endif
17612 int (*ptr)() = (int (*)())atanhf;
17615 main ()
17617 return 0;
17620 _ACEOF
17621 if ac_fn_c_try_link "$LINENO"; then :
17622 gcc_cv_math_func_atanhf=yes
17623 else
17624 gcc_cv_math_func_atanhf=no
17626 rm -f core conftest.err conftest.$ac_objext \
17627 conftest$ac_exeext conftest.$ac_ext
17629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhf" >&5
17630 $as_echo "$gcc_cv_math_func_atanhf" >&6; }
17631 if test $gcc_cv_math_func_atanhf = yes; then
17633 cat >>confdefs.h <<_ACEOF
17634 #define HAVE_ATANHF 1
17635 _ACEOF
17642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanh" >&5
17643 $as_echo_n "checking for atanh... " >&6; }
17644 if test "${gcc_cv_math_func_atanh+set}" = set; then :
17645 $as_echo_n "(cached) " >&6
17646 else
17647 if test x$gcc_no_link = xyes; then
17648 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17651 /* end confdefs.h. */
17653 #ifdef HAVE_COMPLEX_H
17654 #include <complex.h>
17655 #endif
17656 #ifdef HAVE_MATH_H
17657 #include <math.h>
17658 #endif
17660 int (*ptr)() = (int (*)())atanh;
17663 main ()
17665 return 0;
17668 _ACEOF
17669 if ac_fn_c_try_link "$LINENO"; then :
17670 gcc_cv_math_func_atanh=yes
17671 else
17672 gcc_cv_math_func_atanh=no
17674 rm -f core conftest.err conftest.$ac_objext \
17675 conftest$ac_exeext conftest.$ac_ext
17677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanh" >&5
17678 $as_echo "$gcc_cv_math_func_atanh" >&6; }
17679 if test $gcc_cv_math_func_atanh = yes; then
17681 cat >>confdefs.h <<_ACEOF
17682 #define HAVE_ATANH 1
17683 _ACEOF
17690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhl" >&5
17691 $as_echo_n "checking for atanhl... " >&6; }
17692 if test "${gcc_cv_math_func_atanhl+set}" = set; then :
17693 $as_echo_n "(cached) " >&6
17694 else
17695 if test x$gcc_no_link = xyes; then
17696 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17699 /* end confdefs.h. */
17701 #ifdef HAVE_COMPLEX_H
17702 #include <complex.h>
17703 #endif
17704 #ifdef HAVE_MATH_H
17705 #include <math.h>
17706 #endif
17708 int (*ptr)() = (int (*)())atanhl;
17711 main ()
17713 return 0;
17716 _ACEOF
17717 if ac_fn_c_try_link "$LINENO"; then :
17718 gcc_cv_math_func_atanhl=yes
17719 else
17720 gcc_cv_math_func_atanhl=no
17722 rm -f core conftest.err conftest.$ac_objext \
17723 conftest$ac_exeext conftest.$ac_ext
17725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhl" >&5
17726 $as_echo "$gcc_cv_math_func_atanhl" >&6; }
17727 if test $gcc_cv_math_func_atanhl = yes; then
17729 cat >>confdefs.h <<_ACEOF
17730 #define HAVE_ATANHL 1
17731 _ACEOF
17738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargf" >&5
17739 $as_echo_n "checking for cargf... " >&6; }
17740 if test "${gcc_cv_math_func_cargf+set}" = set; then :
17741 $as_echo_n "(cached) " >&6
17742 else
17743 if test x$gcc_no_link = xyes; then
17744 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17747 /* end confdefs.h. */
17749 #ifdef HAVE_COMPLEX_H
17750 #include <complex.h>
17751 #endif
17752 #ifdef HAVE_MATH_H
17753 #include <math.h>
17754 #endif
17756 int (*ptr)() = (int (*)())cargf;
17759 main ()
17761 return 0;
17764 _ACEOF
17765 if ac_fn_c_try_link "$LINENO"; then :
17766 gcc_cv_math_func_cargf=yes
17767 else
17768 gcc_cv_math_func_cargf=no
17770 rm -f core conftest.err conftest.$ac_objext \
17771 conftest$ac_exeext conftest.$ac_ext
17773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargf" >&5
17774 $as_echo "$gcc_cv_math_func_cargf" >&6; }
17775 if test $gcc_cv_math_func_cargf = yes; then
17777 cat >>confdefs.h <<_ACEOF
17778 #define HAVE_CARGF 1
17779 _ACEOF
17786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for carg" >&5
17787 $as_echo_n "checking for carg... " >&6; }
17788 if test "${gcc_cv_math_func_carg+set}" = set; then :
17789 $as_echo_n "(cached) " >&6
17790 else
17791 if test x$gcc_no_link = xyes; then
17792 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17795 /* end confdefs.h. */
17797 #ifdef HAVE_COMPLEX_H
17798 #include <complex.h>
17799 #endif
17800 #ifdef HAVE_MATH_H
17801 #include <math.h>
17802 #endif
17804 int (*ptr)() = (int (*)())carg;
17807 main ()
17809 return 0;
17812 _ACEOF
17813 if ac_fn_c_try_link "$LINENO"; then :
17814 gcc_cv_math_func_carg=yes
17815 else
17816 gcc_cv_math_func_carg=no
17818 rm -f core conftest.err conftest.$ac_objext \
17819 conftest$ac_exeext conftest.$ac_ext
17821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_carg" >&5
17822 $as_echo "$gcc_cv_math_func_carg" >&6; }
17823 if test $gcc_cv_math_func_carg = yes; then
17825 cat >>confdefs.h <<_ACEOF
17826 #define HAVE_CARG 1
17827 _ACEOF
17834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargl" >&5
17835 $as_echo_n "checking for cargl... " >&6; }
17836 if test "${gcc_cv_math_func_cargl+set}" = set; then :
17837 $as_echo_n "(cached) " >&6
17838 else
17839 if test x$gcc_no_link = xyes; then
17840 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17843 /* end confdefs.h. */
17845 #ifdef HAVE_COMPLEX_H
17846 #include <complex.h>
17847 #endif
17848 #ifdef HAVE_MATH_H
17849 #include <math.h>
17850 #endif
17852 int (*ptr)() = (int (*)())cargl;
17855 main ()
17857 return 0;
17860 _ACEOF
17861 if ac_fn_c_try_link "$LINENO"; then :
17862 gcc_cv_math_func_cargl=yes
17863 else
17864 gcc_cv_math_func_cargl=no
17866 rm -f core conftest.err conftest.$ac_objext \
17867 conftest$ac_exeext conftest.$ac_ext
17869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargl" >&5
17870 $as_echo "$gcc_cv_math_func_cargl" >&6; }
17871 if test $gcc_cv_math_func_cargl = yes; then
17873 cat >>confdefs.h <<_ACEOF
17874 #define HAVE_CARGL 1
17875 _ACEOF
17882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceilf" >&5
17883 $as_echo_n "checking for ceilf... " >&6; }
17884 if test "${gcc_cv_math_func_ceilf+set}" = set; then :
17885 $as_echo_n "(cached) " >&6
17886 else
17887 if test x$gcc_no_link = xyes; then
17888 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17891 /* end confdefs.h. */
17893 #ifdef HAVE_COMPLEX_H
17894 #include <complex.h>
17895 #endif
17896 #ifdef HAVE_MATH_H
17897 #include <math.h>
17898 #endif
17900 int (*ptr)() = (int (*)())ceilf;
17903 main ()
17905 return 0;
17908 _ACEOF
17909 if ac_fn_c_try_link "$LINENO"; then :
17910 gcc_cv_math_func_ceilf=yes
17911 else
17912 gcc_cv_math_func_ceilf=no
17914 rm -f core conftest.err conftest.$ac_objext \
17915 conftest$ac_exeext conftest.$ac_ext
17917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceilf" >&5
17918 $as_echo "$gcc_cv_math_func_ceilf" >&6; }
17919 if test $gcc_cv_math_func_ceilf = yes; then
17921 cat >>confdefs.h <<_ACEOF
17922 #define HAVE_CEILF 1
17923 _ACEOF
17930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceil" >&5
17931 $as_echo_n "checking for ceil... " >&6; }
17932 if test "${gcc_cv_math_func_ceil+set}" = set; then :
17933 $as_echo_n "(cached) " >&6
17934 else
17935 if test x$gcc_no_link = xyes; then
17936 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17939 /* end confdefs.h. */
17941 #ifdef HAVE_COMPLEX_H
17942 #include <complex.h>
17943 #endif
17944 #ifdef HAVE_MATH_H
17945 #include <math.h>
17946 #endif
17948 int (*ptr)() = (int (*)())ceil;
17951 main ()
17953 return 0;
17956 _ACEOF
17957 if ac_fn_c_try_link "$LINENO"; then :
17958 gcc_cv_math_func_ceil=yes
17959 else
17960 gcc_cv_math_func_ceil=no
17962 rm -f core conftest.err conftest.$ac_objext \
17963 conftest$ac_exeext conftest.$ac_ext
17965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceil" >&5
17966 $as_echo "$gcc_cv_math_func_ceil" >&6; }
17967 if test $gcc_cv_math_func_ceil = yes; then
17969 cat >>confdefs.h <<_ACEOF
17970 #define HAVE_CEIL 1
17971 _ACEOF
17978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceill" >&5
17979 $as_echo_n "checking for ceill... " >&6; }
17980 if test "${gcc_cv_math_func_ceill+set}" = set; then :
17981 $as_echo_n "(cached) " >&6
17982 else
17983 if test x$gcc_no_link = xyes; then
17984 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17987 /* end confdefs.h. */
17989 #ifdef HAVE_COMPLEX_H
17990 #include <complex.h>
17991 #endif
17992 #ifdef HAVE_MATH_H
17993 #include <math.h>
17994 #endif
17996 int (*ptr)() = (int (*)())ceill;
17999 main ()
18001 return 0;
18004 _ACEOF
18005 if ac_fn_c_try_link "$LINENO"; then :
18006 gcc_cv_math_func_ceill=yes
18007 else
18008 gcc_cv_math_func_ceill=no
18010 rm -f core conftest.err conftest.$ac_objext \
18011 conftest$ac_exeext conftest.$ac_ext
18013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceill" >&5
18014 $as_echo "$gcc_cv_math_func_ceill" >&6; }
18015 if test $gcc_cv_math_func_ceill = yes; then
18017 cat >>confdefs.h <<_ACEOF
18018 #define HAVE_CEILL 1
18019 _ACEOF
18026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignf" >&5
18027 $as_echo_n "checking for copysignf... " >&6; }
18028 if test "${gcc_cv_math_func_copysignf+set}" = set; then :
18029 $as_echo_n "(cached) " >&6
18030 else
18031 if test x$gcc_no_link = xyes; then
18032 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18035 /* end confdefs.h. */
18037 #ifdef HAVE_COMPLEX_H
18038 #include <complex.h>
18039 #endif
18040 #ifdef HAVE_MATH_H
18041 #include <math.h>
18042 #endif
18044 int (*ptr)() = (int (*)())copysignf;
18047 main ()
18049 return 0;
18052 _ACEOF
18053 if ac_fn_c_try_link "$LINENO"; then :
18054 gcc_cv_math_func_copysignf=yes
18055 else
18056 gcc_cv_math_func_copysignf=no
18058 rm -f core conftest.err conftest.$ac_objext \
18059 conftest$ac_exeext conftest.$ac_ext
18061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignf" >&5
18062 $as_echo "$gcc_cv_math_func_copysignf" >&6; }
18063 if test $gcc_cv_math_func_copysignf = yes; then
18065 cat >>confdefs.h <<_ACEOF
18066 #define HAVE_COPYSIGNF 1
18067 _ACEOF
18074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysign" >&5
18075 $as_echo_n "checking for copysign... " >&6; }
18076 if test "${gcc_cv_math_func_copysign+set}" = set; then :
18077 $as_echo_n "(cached) " >&6
18078 else
18079 if test x$gcc_no_link = xyes; then
18080 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18083 /* end confdefs.h. */
18085 #ifdef HAVE_COMPLEX_H
18086 #include <complex.h>
18087 #endif
18088 #ifdef HAVE_MATH_H
18089 #include <math.h>
18090 #endif
18092 int (*ptr)() = (int (*)())copysign;
18095 main ()
18097 return 0;
18100 _ACEOF
18101 if ac_fn_c_try_link "$LINENO"; then :
18102 gcc_cv_math_func_copysign=yes
18103 else
18104 gcc_cv_math_func_copysign=no
18106 rm -f core conftest.err conftest.$ac_objext \
18107 conftest$ac_exeext conftest.$ac_ext
18109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysign" >&5
18110 $as_echo "$gcc_cv_math_func_copysign" >&6; }
18111 if test $gcc_cv_math_func_copysign = yes; then
18113 cat >>confdefs.h <<_ACEOF
18114 #define HAVE_COPYSIGN 1
18115 _ACEOF
18122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignl" >&5
18123 $as_echo_n "checking for copysignl... " >&6; }
18124 if test "${gcc_cv_math_func_copysignl+set}" = set; then :
18125 $as_echo_n "(cached) " >&6
18126 else
18127 if test x$gcc_no_link = xyes; then
18128 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18131 /* end confdefs.h. */
18133 #ifdef HAVE_COMPLEX_H
18134 #include <complex.h>
18135 #endif
18136 #ifdef HAVE_MATH_H
18137 #include <math.h>
18138 #endif
18140 int (*ptr)() = (int (*)())copysignl;
18143 main ()
18145 return 0;
18148 _ACEOF
18149 if ac_fn_c_try_link "$LINENO"; then :
18150 gcc_cv_math_func_copysignl=yes
18151 else
18152 gcc_cv_math_func_copysignl=no
18154 rm -f core conftest.err conftest.$ac_objext \
18155 conftest$ac_exeext conftest.$ac_ext
18157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignl" >&5
18158 $as_echo "$gcc_cv_math_func_copysignl" >&6; }
18159 if test $gcc_cv_math_func_copysignl = yes; then
18161 cat >>confdefs.h <<_ACEOF
18162 #define HAVE_COPYSIGNL 1
18163 _ACEOF
18170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosf" >&5
18171 $as_echo_n "checking for cosf... " >&6; }
18172 if test "${gcc_cv_math_func_cosf+set}" = set; then :
18173 $as_echo_n "(cached) " >&6
18174 else
18175 if test x$gcc_no_link = xyes; then
18176 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18179 /* end confdefs.h. */
18181 #ifdef HAVE_COMPLEX_H
18182 #include <complex.h>
18183 #endif
18184 #ifdef HAVE_MATH_H
18185 #include <math.h>
18186 #endif
18188 int (*ptr)() = (int (*)())cosf;
18191 main ()
18193 return 0;
18196 _ACEOF
18197 if ac_fn_c_try_link "$LINENO"; then :
18198 gcc_cv_math_func_cosf=yes
18199 else
18200 gcc_cv_math_func_cosf=no
18202 rm -f core conftest.err conftest.$ac_objext \
18203 conftest$ac_exeext conftest.$ac_ext
18205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosf" >&5
18206 $as_echo "$gcc_cv_math_func_cosf" >&6; }
18207 if test $gcc_cv_math_func_cosf = yes; then
18209 cat >>confdefs.h <<_ACEOF
18210 #define HAVE_COSF 1
18211 _ACEOF
18218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos" >&5
18219 $as_echo_n "checking for cos... " >&6; }
18220 if test "${gcc_cv_math_func_cos+set}" = set; then :
18221 $as_echo_n "(cached) " >&6
18222 else
18223 if test x$gcc_no_link = xyes; then
18224 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18227 /* end confdefs.h. */
18229 #ifdef HAVE_COMPLEX_H
18230 #include <complex.h>
18231 #endif
18232 #ifdef HAVE_MATH_H
18233 #include <math.h>
18234 #endif
18236 int (*ptr)() = (int (*)())cos;
18239 main ()
18241 return 0;
18244 _ACEOF
18245 if ac_fn_c_try_link "$LINENO"; then :
18246 gcc_cv_math_func_cos=yes
18247 else
18248 gcc_cv_math_func_cos=no
18250 rm -f core conftest.err conftest.$ac_objext \
18251 conftest$ac_exeext conftest.$ac_ext
18253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cos" >&5
18254 $as_echo "$gcc_cv_math_func_cos" >&6; }
18255 if test $gcc_cv_math_func_cos = yes; then
18257 cat >>confdefs.h <<_ACEOF
18258 #define HAVE_COS 1
18259 _ACEOF
18266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosl" >&5
18267 $as_echo_n "checking for cosl... " >&6; }
18268 if test "${gcc_cv_math_func_cosl+set}" = set; then :
18269 $as_echo_n "(cached) " >&6
18270 else
18271 if test x$gcc_no_link = xyes; then
18272 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18275 /* end confdefs.h. */
18277 #ifdef HAVE_COMPLEX_H
18278 #include <complex.h>
18279 #endif
18280 #ifdef HAVE_MATH_H
18281 #include <math.h>
18282 #endif
18284 int (*ptr)() = (int (*)())cosl;
18287 main ()
18289 return 0;
18292 _ACEOF
18293 if ac_fn_c_try_link "$LINENO"; then :
18294 gcc_cv_math_func_cosl=yes
18295 else
18296 gcc_cv_math_func_cosl=no
18298 rm -f core conftest.err conftest.$ac_objext \
18299 conftest$ac_exeext conftest.$ac_ext
18301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosl" >&5
18302 $as_echo "$gcc_cv_math_func_cosl" >&6; }
18303 if test $gcc_cv_math_func_cosl = yes; then
18305 cat >>confdefs.h <<_ACEOF
18306 #define HAVE_COSL 1
18307 _ACEOF
18314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosf" >&5
18315 $as_echo_n "checking for ccosf... " >&6; }
18316 if test "${gcc_cv_math_func_ccosf+set}" = set; then :
18317 $as_echo_n "(cached) " >&6
18318 else
18319 if test x$gcc_no_link = xyes; then
18320 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18323 /* end confdefs.h. */
18325 #ifdef HAVE_COMPLEX_H
18326 #include <complex.h>
18327 #endif
18328 #ifdef HAVE_MATH_H
18329 #include <math.h>
18330 #endif
18332 int (*ptr)() = (int (*)())ccosf;
18335 main ()
18337 return 0;
18340 _ACEOF
18341 if ac_fn_c_try_link "$LINENO"; then :
18342 gcc_cv_math_func_ccosf=yes
18343 else
18344 gcc_cv_math_func_ccosf=no
18346 rm -f core conftest.err conftest.$ac_objext \
18347 conftest$ac_exeext conftest.$ac_ext
18349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosf" >&5
18350 $as_echo "$gcc_cv_math_func_ccosf" >&6; }
18351 if test $gcc_cv_math_func_ccosf = yes; then
18353 cat >>confdefs.h <<_ACEOF
18354 #define HAVE_CCOSF 1
18355 _ACEOF
18362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccos" >&5
18363 $as_echo_n "checking for ccos... " >&6; }
18364 if test "${gcc_cv_math_func_ccos+set}" = set; then :
18365 $as_echo_n "(cached) " >&6
18366 else
18367 if test x$gcc_no_link = xyes; then
18368 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18371 /* end confdefs.h. */
18373 #ifdef HAVE_COMPLEX_H
18374 #include <complex.h>
18375 #endif
18376 #ifdef HAVE_MATH_H
18377 #include <math.h>
18378 #endif
18380 int (*ptr)() = (int (*)())ccos;
18383 main ()
18385 return 0;
18388 _ACEOF
18389 if ac_fn_c_try_link "$LINENO"; then :
18390 gcc_cv_math_func_ccos=yes
18391 else
18392 gcc_cv_math_func_ccos=no
18394 rm -f core conftest.err conftest.$ac_objext \
18395 conftest$ac_exeext conftest.$ac_ext
18397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccos" >&5
18398 $as_echo "$gcc_cv_math_func_ccos" >&6; }
18399 if test $gcc_cv_math_func_ccos = yes; then
18401 cat >>confdefs.h <<_ACEOF
18402 #define HAVE_CCOS 1
18403 _ACEOF
18410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosl" >&5
18411 $as_echo_n "checking for ccosl... " >&6; }
18412 if test "${gcc_cv_math_func_ccosl+set}" = set; then :
18413 $as_echo_n "(cached) " >&6
18414 else
18415 if test x$gcc_no_link = xyes; then
18416 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18419 /* end confdefs.h. */
18421 #ifdef HAVE_COMPLEX_H
18422 #include <complex.h>
18423 #endif
18424 #ifdef HAVE_MATH_H
18425 #include <math.h>
18426 #endif
18428 int (*ptr)() = (int (*)())ccosl;
18431 main ()
18433 return 0;
18436 _ACEOF
18437 if ac_fn_c_try_link "$LINENO"; then :
18438 gcc_cv_math_func_ccosl=yes
18439 else
18440 gcc_cv_math_func_ccosl=no
18442 rm -f core conftest.err conftest.$ac_objext \
18443 conftest$ac_exeext conftest.$ac_ext
18445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosl" >&5
18446 $as_echo "$gcc_cv_math_func_ccosl" >&6; }
18447 if test $gcc_cv_math_func_ccosl = yes; then
18449 cat >>confdefs.h <<_ACEOF
18450 #define HAVE_CCOSL 1
18451 _ACEOF
18458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshf" >&5
18459 $as_echo_n "checking for coshf... " >&6; }
18460 if test "${gcc_cv_math_func_coshf+set}" = set; then :
18461 $as_echo_n "(cached) " >&6
18462 else
18463 if test x$gcc_no_link = xyes; then
18464 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18467 /* end confdefs.h. */
18469 #ifdef HAVE_COMPLEX_H
18470 #include <complex.h>
18471 #endif
18472 #ifdef HAVE_MATH_H
18473 #include <math.h>
18474 #endif
18476 int (*ptr)() = (int (*)())coshf;
18479 main ()
18481 return 0;
18484 _ACEOF
18485 if ac_fn_c_try_link "$LINENO"; then :
18486 gcc_cv_math_func_coshf=yes
18487 else
18488 gcc_cv_math_func_coshf=no
18490 rm -f core conftest.err conftest.$ac_objext \
18491 conftest$ac_exeext conftest.$ac_ext
18493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshf" >&5
18494 $as_echo "$gcc_cv_math_func_coshf" >&6; }
18495 if test $gcc_cv_math_func_coshf = yes; then
18497 cat >>confdefs.h <<_ACEOF
18498 #define HAVE_COSHF 1
18499 _ACEOF
18506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosh" >&5
18507 $as_echo_n "checking for cosh... " >&6; }
18508 if test "${gcc_cv_math_func_cosh+set}" = set; then :
18509 $as_echo_n "(cached) " >&6
18510 else
18511 if test x$gcc_no_link = xyes; then
18512 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18515 /* end confdefs.h. */
18517 #ifdef HAVE_COMPLEX_H
18518 #include <complex.h>
18519 #endif
18520 #ifdef HAVE_MATH_H
18521 #include <math.h>
18522 #endif
18524 int (*ptr)() = (int (*)())cosh;
18527 main ()
18529 return 0;
18532 _ACEOF
18533 if ac_fn_c_try_link "$LINENO"; then :
18534 gcc_cv_math_func_cosh=yes
18535 else
18536 gcc_cv_math_func_cosh=no
18538 rm -f core conftest.err conftest.$ac_objext \
18539 conftest$ac_exeext conftest.$ac_ext
18541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosh" >&5
18542 $as_echo "$gcc_cv_math_func_cosh" >&6; }
18543 if test $gcc_cv_math_func_cosh = yes; then
18545 cat >>confdefs.h <<_ACEOF
18546 #define HAVE_COSH 1
18547 _ACEOF
18554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshl" >&5
18555 $as_echo_n "checking for coshl... " >&6; }
18556 if test "${gcc_cv_math_func_coshl+set}" = set; then :
18557 $as_echo_n "(cached) " >&6
18558 else
18559 if test x$gcc_no_link = xyes; then
18560 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18563 /* end confdefs.h. */
18565 #ifdef HAVE_COMPLEX_H
18566 #include <complex.h>
18567 #endif
18568 #ifdef HAVE_MATH_H
18569 #include <math.h>
18570 #endif
18572 int (*ptr)() = (int (*)())coshl;
18575 main ()
18577 return 0;
18580 _ACEOF
18581 if ac_fn_c_try_link "$LINENO"; then :
18582 gcc_cv_math_func_coshl=yes
18583 else
18584 gcc_cv_math_func_coshl=no
18586 rm -f core conftest.err conftest.$ac_objext \
18587 conftest$ac_exeext conftest.$ac_ext
18589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshl" >&5
18590 $as_echo "$gcc_cv_math_func_coshl" >&6; }
18591 if test $gcc_cv_math_func_coshl = yes; then
18593 cat >>confdefs.h <<_ACEOF
18594 #define HAVE_COSHL 1
18595 _ACEOF
18602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshf" >&5
18603 $as_echo_n "checking for ccoshf... " >&6; }
18604 if test "${gcc_cv_math_func_ccoshf+set}" = set; then :
18605 $as_echo_n "(cached) " >&6
18606 else
18607 if test x$gcc_no_link = xyes; then
18608 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18611 /* end confdefs.h. */
18613 #ifdef HAVE_COMPLEX_H
18614 #include <complex.h>
18615 #endif
18616 #ifdef HAVE_MATH_H
18617 #include <math.h>
18618 #endif
18620 int (*ptr)() = (int (*)())ccoshf;
18623 main ()
18625 return 0;
18628 _ACEOF
18629 if ac_fn_c_try_link "$LINENO"; then :
18630 gcc_cv_math_func_ccoshf=yes
18631 else
18632 gcc_cv_math_func_ccoshf=no
18634 rm -f core conftest.err conftest.$ac_objext \
18635 conftest$ac_exeext conftest.$ac_ext
18637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshf" >&5
18638 $as_echo "$gcc_cv_math_func_ccoshf" >&6; }
18639 if test $gcc_cv_math_func_ccoshf = yes; then
18641 cat >>confdefs.h <<_ACEOF
18642 #define HAVE_CCOSHF 1
18643 _ACEOF
18650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosh" >&5
18651 $as_echo_n "checking for ccosh... " >&6; }
18652 if test "${gcc_cv_math_func_ccosh+set}" = set; then :
18653 $as_echo_n "(cached) " >&6
18654 else
18655 if test x$gcc_no_link = xyes; then
18656 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18659 /* end confdefs.h. */
18661 #ifdef HAVE_COMPLEX_H
18662 #include <complex.h>
18663 #endif
18664 #ifdef HAVE_MATH_H
18665 #include <math.h>
18666 #endif
18668 int (*ptr)() = (int (*)())ccosh;
18671 main ()
18673 return 0;
18676 _ACEOF
18677 if ac_fn_c_try_link "$LINENO"; then :
18678 gcc_cv_math_func_ccosh=yes
18679 else
18680 gcc_cv_math_func_ccosh=no
18682 rm -f core conftest.err conftest.$ac_objext \
18683 conftest$ac_exeext conftest.$ac_ext
18685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosh" >&5
18686 $as_echo "$gcc_cv_math_func_ccosh" >&6; }
18687 if test $gcc_cv_math_func_ccosh = yes; then
18689 cat >>confdefs.h <<_ACEOF
18690 #define HAVE_CCOSH 1
18691 _ACEOF
18698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshl" >&5
18699 $as_echo_n "checking for ccoshl... " >&6; }
18700 if test "${gcc_cv_math_func_ccoshl+set}" = set; then :
18701 $as_echo_n "(cached) " >&6
18702 else
18703 if test x$gcc_no_link = xyes; then
18704 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18707 /* end confdefs.h. */
18709 #ifdef HAVE_COMPLEX_H
18710 #include <complex.h>
18711 #endif
18712 #ifdef HAVE_MATH_H
18713 #include <math.h>
18714 #endif
18716 int (*ptr)() = (int (*)())ccoshl;
18719 main ()
18721 return 0;
18724 _ACEOF
18725 if ac_fn_c_try_link "$LINENO"; then :
18726 gcc_cv_math_func_ccoshl=yes
18727 else
18728 gcc_cv_math_func_ccoshl=no
18730 rm -f core conftest.err conftest.$ac_objext \
18731 conftest$ac_exeext conftest.$ac_ext
18733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshl" >&5
18734 $as_echo "$gcc_cv_math_func_ccoshl" >&6; }
18735 if test $gcc_cv_math_func_ccoshl = yes; then
18737 cat >>confdefs.h <<_ACEOF
18738 #define HAVE_CCOSHL 1
18739 _ACEOF
18746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf" >&5
18747 $as_echo_n "checking for expf... " >&6; }
18748 if test "${gcc_cv_math_func_expf+set}" = set; then :
18749 $as_echo_n "(cached) " >&6
18750 else
18751 if test x$gcc_no_link = xyes; then
18752 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18755 /* end confdefs.h. */
18757 #ifdef HAVE_COMPLEX_H
18758 #include <complex.h>
18759 #endif
18760 #ifdef HAVE_MATH_H
18761 #include <math.h>
18762 #endif
18764 int (*ptr)() = (int (*)())expf;
18767 main ()
18769 return 0;
18772 _ACEOF
18773 if ac_fn_c_try_link "$LINENO"; then :
18774 gcc_cv_math_func_expf=yes
18775 else
18776 gcc_cv_math_func_expf=no
18778 rm -f core conftest.err conftest.$ac_objext \
18779 conftest$ac_exeext conftest.$ac_ext
18781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expf" >&5
18782 $as_echo "$gcc_cv_math_func_expf" >&6; }
18783 if test $gcc_cv_math_func_expf = yes; then
18785 cat >>confdefs.h <<_ACEOF
18786 #define HAVE_EXPF 1
18787 _ACEOF
18794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp" >&5
18795 $as_echo_n "checking for exp... " >&6; }
18796 if test "${gcc_cv_math_func_exp+set}" = set; then :
18797 $as_echo_n "(cached) " >&6
18798 else
18799 if test x$gcc_no_link = xyes; then
18800 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18803 /* end confdefs.h. */
18805 #ifdef HAVE_COMPLEX_H
18806 #include <complex.h>
18807 #endif
18808 #ifdef HAVE_MATH_H
18809 #include <math.h>
18810 #endif
18812 int (*ptr)() = (int (*)())exp;
18815 main ()
18817 return 0;
18820 _ACEOF
18821 if ac_fn_c_try_link "$LINENO"; then :
18822 gcc_cv_math_func_exp=yes
18823 else
18824 gcc_cv_math_func_exp=no
18826 rm -f core conftest.err conftest.$ac_objext \
18827 conftest$ac_exeext conftest.$ac_ext
18829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_exp" >&5
18830 $as_echo "$gcc_cv_math_func_exp" >&6; }
18831 if test $gcc_cv_math_func_exp = yes; then
18833 cat >>confdefs.h <<_ACEOF
18834 #define HAVE_EXP 1
18835 _ACEOF
18842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl" >&5
18843 $as_echo_n "checking for expl... " >&6; }
18844 if test "${gcc_cv_math_func_expl+set}" = set; then :
18845 $as_echo_n "(cached) " >&6
18846 else
18847 if test x$gcc_no_link = xyes; then
18848 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18851 /* end confdefs.h. */
18853 #ifdef HAVE_COMPLEX_H
18854 #include <complex.h>
18855 #endif
18856 #ifdef HAVE_MATH_H
18857 #include <math.h>
18858 #endif
18860 int (*ptr)() = (int (*)())expl;
18863 main ()
18865 return 0;
18868 _ACEOF
18869 if ac_fn_c_try_link "$LINENO"; then :
18870 gcc_cv_math_func_expl=yes
18871 else
18872 gcc_cv_math_func_expl=no
18874 rm -f core conftest.err conftest.$ac_objext \
18875 conftest$ac_exeext conftest.$ac_ext
18877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expl" >&5
18878 $as_echo "$gcc_cv_math_func_expl" >&6; }
18879 if test $gcc_cv_math_func_expl = yes; then
18881 cat >>confdefs.h <<_ACEOF
18882 #define HAVE_EXPL 1
18883 _ACEOF
18890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpf" >&5
18891 $as_echo_n "checking for cexpf... " >&6; }
18892 if test "${gcc_cv_math_func_cexpf+set}" = set; then :
18893 $as_echo_n "(cached) " >&6
18894 else
18895 if test x$gcc_no_link = xyes; then
18896 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18899 /* end confdefs.h. */
18901 #ifdef HAVE_COMPLEX_H
18902 #include <complex.h>
18903 #endif
18904 #ifdef HAVE_MATH_H
18905 #include <math.h>
18906 #endif
18908 int (*ptr)() = (int (*)())cexpf;
18911 main ()
18913 return 0;
18916 _ACEOF
18917 if ac_fn_c_try_link "$LINENO"; then :
18918 gcc_cv_math_func_cexpf=yes
18919 else
18920 gcc_cv_math_func_cexpf=no
18922 rm -f core conftest.err conftest.$ac_objext \
18923 conftest$ac_exeext conftest.$ac_ext
18925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpf" >&5
18926 $as_echo "$gcc_cv_math_func_cexpf" >&6; }
18927 if test $gcc_cv_math_func_cexpf = yes; then
18929 cat >>confdefs.h <<_ACEOF
18930 #define HAVE_CEXPF 1
18931 _ACEOF
18938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexp" >&5
18939 $as_echo_n "checking for cexp... " >&6; }
18940 if test "${gcc_cv_math_func_cexp+set}" = set; then :
18941 $as_echo_n "(cached) " >&6
18942 else
18943 if test x$gcc_no_link = xyes; then
18944 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18947 /* end confdefs.h. */
18949 #ifdef HAVE_COMPLEX_H
18950 #include <complex.h>
18951 #endif
18952 #ifdef HAVE_MATH_H
18953 #include <math.h>
18954 #endif
18956 int (*ptr)() = (int (*)())cexp;
18959 main ()
18961 return 0;
18964 _ACEOF
18965 if ac_fn_c_try_link "$LINENO"; then :
18966 gcc_cv_math_func_cexp=yes
18967 else
18968 gcc_cv_math_func_cexp=no
18970 rm -f core conftest.err conftest.$ac_objext \
18971 conftest$ac_exeext conftest.$ac_ext
18973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexp" >&5
18974 $as_echo "$gcc_cv_math_func_cexp" >&6; }
18975 if test $gcc_cv_math_func_cexp = yes; then
18977 cat >>confdefs.h <<_ACEOF
18978 #define HAVE_CEXP 1
18979 _ACEOF
18986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpl" >&5
18987 $as_echo_n "checking for cexpl... " >&6; }
18988 if test "${gcc_cv_math_func_cexpl+set}" = set; then :
18989 $as_echo_n "(cached) " >&6
18990 else
18991 if test x$gcc_no_link = xyes; then
18992 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18995 /* end confdefs.h. */
18997 #ifdef HAVE_COMPLEX_H
18998 #include <complex.h>
18999 #endif
19000 #ifdef HAVE_MATH_H
19001 #include <math.h>
19002 #endif
19004 int (*ptr)() = (int (*)())cexpl;
19007 main ()
19009 return 0;
19012 _ACEOF
19013 if ac_fn_c_try_link "$LINENO"; then :
19014 gcc_cv_math_func_cexpl=yes
19015 else
19016 gcc_cv_math_func_cexpl=no
19018 rm -f core conftest.err conftest.$ac_objext \
19019 conftest$ac_exeext conftest.$ac_ext
19021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpl" >&5
19022 $as_echo "$gcc_cv_math_func_cexpl" >&6; }
19023 if test $gcc_cv_math_func_cexpl = yes; then
19025 cat >>confdefs.h <<_ACEOF
19026 #define HAVE_CEXPL 1
19027 _ACEOF
19034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf" >&5
19035 $as_echo_n "checking for fabsf... " >&6; }
19036 if test "${gcc_cv_math_func_fabsf+set}" = set; then :
19037 $as_echo_n "(cached) " >&6
19038 else
19039 if test x$gcc_no_link = xyes; then
19040 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19043 /* end confdefs.h. */
19045 #ifdef HAVE_COMPLEX_H
19046 #include <complex.h>
19047 #endif
19048 #ifdef HAVE_MATH_H
19049 #include <math.h>
19050 #endif
19052 int (*ptr)() = (int (*)())fabsf;
19055 main ()
19057 return 0;
19060 _ACEOF
19061 if ac_fn_c_try_link "$LINENO"; then :
19062 gcc_cv_math_func_fabsf=yes
19063 else
19064 gcc_cv_math_func_fabsf=no
19066 rm -f core conftest.err conftest.$ac_objext \
19067 conftest$ac_exeext conftest.$ac_ext
19069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsf" >&5
19070 $as_echo "$gcc_cv_math_func_fabsf" >&6; }
19071 if test $gcc_cv_math_func_fabsf = yes; then
19073 cat >>confdefs.h <<_ACEOF
19074 #define HAVE_FABSF 1
19075 _ACEOF
19082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs" >&5
19083 $as_echo_n "checking for fabs... " >&6; }
19084 if test "${gcc_cv_math_func_fabs+set}" = set; then :
19085 $as_echo_n "(cached) " >&6
19086 else
19087 if test x$gcc_no_link = xyes; then
19088 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19091 /* end confdefs.h. */
19093 #ifdef HAVE_COMPLEX_H
19094 #include <complex.h>
19095 #endif
19096 #ifdef HAVE_MATH_H
19097 #include <math.h>
19098 #endif
19100 int (*ptr)() = (int (*)())fabs;
19103 main ()
19105 return 0;
19108 _ACEOF
19109 if ac_fn_c_try_link "$LINENO"; then :
19110 gcc_cv_math_func_fabs=yes
19111 else
19112 gcc_cv_math_func_fabs=no
19114 rm -f core conftest.err conftest.$ac_objext \
19115 conftest$ac_exeext conftest.$ac_ext
19117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabs" >&5
19118 $as_echo "$gcc_cv_math_func_fabs" >&6; }
19119 if test $gcc_cv_math_func_fabs = yes; then
19121 cat >>confdefs.h <<_ACEOF
19122 #define HAVE_FABS 1
19123 _ACEOF
19130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl" >&5
19131 $as_echo_n "checking for fabsl... " >&6; }
19132 if test "${gcc_cv_math_func_fabsl+set}" = set; then :
19133 $as_echo_n "(cached) " >&6
19134 else
19135 if test x$gcc_no_link = xyes; then
19136 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19139 /* end confdefs.h. */
19141 #ifdef HAVE_COMPLEX_H
19142 #include <complex.h>
19143 #endif
19144 #ifdef HAVE_MATH_H
19145 #include <math.h>
19146 #endif
19148 int (*ptr)() = (int (*)())fabsl;
19151 main ()
19153 return 0;
19156 _ACEOF
19157 if ac_fn_c_try_link "$LINENO"; then :
19158 gcc_cv_math_func_fabsl=yes
19159 else
19160 gcc_cv_math_func_fabsl=no
19162 rm -f core conftest.err conftest.$ac_objext \
19163 conftest$ac_exeext conftest.$ac_ext
19165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsl" >&5
19166 $as_echo "$gcc_cv_math_func_fabsl" >&6; }
19167 if test $gcc_cv_math_func_fabsl = yes; then
19169 cat >>confdefs.h <<_ACEOF
19170 #define HAVE_FABSL 1
19171 _ACEOF
19178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsf" >&5
19179 $as_echo_n "checking for cabsf... " >&6; }
19180 if test "${gcc_cv_math_func_cabsf+set}" = set; then :
19181 $as_echo_n "(cached) " >&6
19182 else
19183 if test x$gcc_no_link = xyes; then
19184 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19186 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19187 /* end confdefs.h. */
19189 #ifdef HAVE_COMPLEX_H
19190 #include <complex.h>
19191 #endif
19192 #ifdef HAVE_MATH_H
19193 #include <math.h>
19194 #endif
19196 int (*ptr)() = (int (*)())cabsf;
19199 main ()
19201 return 0;
19204 _ACEOF
19205 if ac_fn_c_try_link "$LINENO"; then :
19206 gcc_cv_math_func_cabsf=yes
19207 else
19208 gcc_cv_math_func_cabsf=no
19210 rm -f core conftest.err conftest.$ac_objext \
19211 conftest$ac_exeext conftest.$ac_ext
19213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsf" >&5
19214 $as_echo "$gcc_cv_math_func_cabsf" >&6; }
19215 if test $gcc_cv_math_func_cabsf = yes; then
19217 cat >>confdefs.h <<_ACEOF
19218 #define HAVE_CABSF 1
19219 _ACEOF
19226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabs" >&5
19227 $as_echo_n "checking for cabs... " >&6; }
19228 if test "${gcc_cv_math_func_cabs+set}" = set; then :
19229 $as_echo_n "(cached) " >&6
19230 else
19231 if test x$gcc_no_link = xyes; then
19232 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19235 /* end confdefs.h. */
19237 #ifdef HAVE_COMPLEX_H
19238 #include <complex.h>
19239 #endif
19240 #ifdef HAVE_MATH_H
19241 #include <math.h>
19242 #endif
19244 int (*ptr)() = (int (*)())cabs;
19247 main ()
19249 return 0;
19252 _ACEOF
19253 if ac_fn_c_try_link "$LINENO"; then :
19254 gcc_cv_math_func_cabs=yes
19255 else
19256 gcc_cv_math_func_cabs=no
19258 rm -f core conftest.err conftest.$ac_objext \
19259 conftest$ac_exeext conftest.$ac_ext
19261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabs" >&5
19262 $as_echo "$gcc_cv_math_func_cabs" >&6; }
19263 if test $gcc_cv_math_func_cabs = yes; then
19265 cat >>confdefs.h <<_ACEOF
19266 #define HAVE_CABS 1
19267 _ACEOF
19274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsl" >&5
19275 $as_echo_n "checking for cabsl... " >&6; }
19276 if test "${gcc_cv_math_func_cabsl+set}" = set; then :
19277 $as_echo_n "(cached) " >&6
19278 else
19279 if test x$gcc_no_link = xyes; then
19280 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19283 /* end confdefs.h. */
19285 #ifdef HAVE_COMPLEX_H
19286 #include <complex.h>
19287 #endif
19288 #ifdef HAVE_MATH_H
19289 #include <math.h>
19290 #endif
19292 int (*ptr)() = (int (*)())cabsl;
19295 main ()
19297 return 0;
19300 _ACEOF
19301 if ac_fn_c_try_link "$LINENO"; then :
19302 gcc_cv_math_func_cabsl=yes
19303 else
19304 gcc_cv_math_func_cabsl=no
19306 rm -f core conftest.err conftest.$ac_objext \
19307 conftest$ac_exeext conftest.$ac_ext
19309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsl" >&5
19310 $as_echo "$gcc_cv_math_func_cabsl" >&6; }
19311 if test $gcc_cv_math_func_cabsl = yes; then
19313 cat >>confdefs.h <<_ACEOF
19314 #define HAVE_CABSL 1
19315 _ACEOF
19322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorf" >&5
19323 $as_echo_n "checking for floorf... " >&6; }
19324 if test "${gcc_cv_math_func_floorf+set}" = set; then :
19325 $as_echo_n "(cached) " >&6
19326 else
19327 if test x$gcc_no_link = xyes; then
19328 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19331 /* end confdefs.h. */
19333 #ifdef HAVE_COMPLEX_H
19334 #include <complex.h>
19335 #endif
19336 #ifdef HAVE_MATH_H
19337 #include <math.h>
19338 #endif
19340 int (*ptr)() = (int (*)())floorf;
19343 main ()
19345 return 0;
19348 _ACEOF
19349 if ac_fn_c_try_link "$LINENO"; then :
19350 gcc_cv_math_func_floorf=yes
19351 else
19352 gcc_cv_math_func_floorf=no
19354 rm -f core conftest.err conftest.$ac_objext \
19355 conftest$ac_exeext conftest.$ac_ext
19357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorf" >&5
19358 $as_echo "$gcc_cv_math_func_floorf" >&6; }
19359 if test $gcc_cv_math_func_floorf = yes; then
19361 cat >>confdefs.h <<_ACEOF
19362 #define HAVE_FLOORF 1
19363 _ACEOF
19370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor" >&5
19371 $as_echo_n "checking for floor... " >&6; }
19372 if test "${gcc_cv_math_func_floor+set}" = set; then :
19373 $as_echo_n "(cached) " >&6
19374 else
19375 if test x$gcc_no_link = xyes; then
19376 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19379 /* end confdefs.h. */
19381 #ifdef HAVE_COMPLEX_H
19382 #include <complex.h>
19383 #endif
19384 #ifdef HAVE_MATH_H
19385 #include <math.h>
19386 #endif
19388 int (*ptr)() = (int (*)())floor;
19391 main ()
19393 return 0;
19396 _ACEOF
19397 if ac_fn_c_try_link "$LINENO"; then :
19398 gcc_cv_math_func_floor=yes
19399 else
19400 gcc_cv_math_func_floor=no
19402 rm -f core conftest.err conftest.$ac_objext \
19403 conftest$ac_exeext conftest.$ac_ext
19405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floor" >&5
19406 $as_echo "$gcc_cv_math_func_floor" >&6; }
19407 if test $gcc_cv_math_func_floor = yes; then
19409 cat >>confdefs.h <<_ACEOF
19410 #define HAVE_FLOOR 1
19411 _ACEOF
19418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorl" >&5
19419 $as_echo_n "checking for floorl... " >&6; }
19420 if test "${gcc_cv_math_func_floorl+set}" = set; then :
19421 $as_echo_n "(cached) " >&6
19422 else
19423 if test x$gcc_no_link = xyes; then
19424 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19427 /* end confdefs.h. */
19429 #ifdef HAVE_COMPLEX_H
19430 #include <complex.h>
19431 #endif
19432 #ifdef HAVE_MATH_H
19433 #include <math.h>
19434 #endif
19436 int (*ptr)() = (int (*)())floorl;
19439 main ()
19441 return 0;
19444 _ACEOF
19445 if ac_fn_c_try_link "$LINENO"; then :
19446 gcc_cv_math_func_floorl=yes
19447 else
19448 gcc_cv_math_func_floorl=no
19450 rm -f core conftest.err conftest.$ac_objext \
19451 conftest$ac_exeext conftest.$ac_ext
19453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorl" >&5
19454 $as_echo "$gcc_cv_math_func_floorl" >&6; }
19455 if test $gcc_cv_math_func_floorl = yes; then
19457 cat >>confdefs.h <<_ACEOF
19458 #define HAVE_FLOORL 1
19459 _ACEOF
19466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf" >&5
19467 $as_echo_n "checking for fmodf... " >&6; }
19468 if test "${gcc_cv_math_func_fmodf+set}" = set; then :
19469 $as_echo_n "(cached) " >&6
19470 else
19471 if test x$gcc_no_link = xyes; then
19472 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19474 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19475 /* end confdefs.h. */
19477 #ifdef HAVE_COMPLEX_H
19478 #include <complex.h>
19479 #endif
19480 #ifdef HAVE_MATH_H
19481 #include <math.h>
19482 #endif
19484 int (*ptr)() = (int (*)())fmodf;
19487 main ()
19489 return 0;
19492 _ACEOF
19493 if ac_fn_c_try_link "$LINENO"; then :
19494 gcc_cv_math_func_fmodf=yes
19495 else
19496 gcc_cv_math_func_fmodf=no
19498 rm -f core conftest.err conftest.$ac_objext \
19499 conftest$ac_exeext conftest.$ac_ext
19501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodf" >&5
19502 $as_echo "$gcc_cv_math_func_fmodf" >&6; }
19503 if test $gcc_cv_math_func_fmodf = yes; then
19505 cat >>confdefs.h <<_ACEOF
19506 #define HAVE_FMODF 1
19507 _ACEOF
19514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod" >&5
19515 $as_echo_n "checking for fmod... " >&6; }
19516 if test "${gcc_cv_math_func_fmod+set}" = set; then :
19517 $as_echo_n "(cached) " >&6
19518 else
19519 if test x$gcc_no_link = xyes; then
19520 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19522 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19523 /* end confdefs.h. */
19525 #ifdef HAVE_COMPLEX_H
19526 #include <complex.h>
19527 #endif
19528 #ifdef HAVE_MATH_H
19529 #include <math.h>
19530 #endif
19532 int (*ptr)() = (int (*)())fmod;
19535 main ()
19537 return 0;
19540 _ACEOF
19541 if ac_fn_c_try_link "$LINENO"; then :
19542 gcc_cv_math_func_fmod=yes
19543 else
19544 gcc_cv_math_func_fmod=no
19546 rm -f core conftest.err conftest.$ac_objext \
19547 conftest$ac_exeext conftest.$ac_ext
19549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmod" >&5
19550 $as_echo "$gcc_cv_math_func_fmod" >&6; }
19551 if test $gcc_cv_math_func_fmod = yes; then
19553 cat >>confdefs.h <<_ACEOF
19554 #define HAVE_FMOD 1
19555 _ACEOF
19562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl" >&5
19563 $as_echo_n "checking for fmodl... " >&6; }
19564 if test "${gcc_cv_math_func_fmodl+set}" = set; then :
19565 $as_echo_n "(cached) " >&6
19566 else
19567 if test x$gcc_no_link = xyes; then
19568 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19571 /* end confdefs.h. */
19573 #ifdef HAVE_COMPLEX_H
19574 #include <complex.h>
19575 #endif
19576 #ifdef HAVE_MATH_H
19577 #include <math.h>
19578 #endif
19580 int (*ptr)() = (int (*)())fmodl;
19583 main ()
19585 return 0;
19588 _ACEOF
19589 if ac_fn_c_try_link "$LINENO"; then :
19590 gcc_cv_math_func_fmodl=yes
19591 else
19592 gcc_cv_math_func_fmodl=no
19594 rm -f core conftest.err conftest.$ac_objext \
19595 conftest$ac_exeext conftest.$ac_ext
19597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodl" >&5
19598 $as_echo "$gcc_cv_math_func_fmodl" >&6; }
19599 if test $gcc_cv_math_func_fmodl = yes; then
19601 cat >>confdefs.h <<_ACEOF
19602 #define HAVE_FMODL 1
19603 _ACEOF
19610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf" >&5
19611 $as_echo_n "checking for frexpf... " >&6; }
19612 if test "${gcc_cv_math_func_frexpf+set}" = set; then :
19613 $as_echo_n "(cached) " >&6
19614 else
19615 if test x$gcc_no_link = xyes; then
19616 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19618 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19619 /* end confdefs.h. */
19621 #ifdef HAVE_COMPLEX_H
19622 #include <complex.h>
19623 #endif
19624 #ifdef HAVE_MATH_H
19625 #include <math.h>
19626 #endif
19628 int (*ptr)() = (int (*)())frexpf;
19631 main ()
19633 return 0;
19636 _ACEOF
19637 if ac_fn_c_try_link "$LINENO"; then :
19638 gcc_cv_math_func_frexpf=yes
19639 else
19640 gcc_cv_math_func_frexpf=no
19642 rm -f core conftest.err conftest.$ac_objext \
19643 conftest$ac_exeext conftest.$ac_ext
19645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpf" >&5
19646 $as_echo "$gcc_cv_math_func_frexpf" >&6; }
19647 if test $gcc_cv_math_func_frexpf = yes; then
19649 cat >>confdefs.h <<_ACEOF
19650 #define HAVE_FREXPF 1
19651 _ACEOF
19658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexp" >&5
19659 $as_echo_n "checking for frexp... " >&6; }
19660 if test "${gcc_cv_math_func_frexp+set}" = set; then :
19661 $as_echo_n "(cached) " >&6
19662 else
19663 if test x$gcc_no_link = xyes; then
19664 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19666 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19667 /* end confdefs.h. */
19669 #ifdef HAVE_COMPLEX_H
19670 #include <complex.h>
19671 #endif
19672 #ifdef HAVE_MATH_H
19673 #include <math.h>
19674 #endif
19676 int (*ptr)() = (int (*)())frexp;
19679 main ()
19681 return 0;
19684 _ACEOF
19685 if ac_fn_c_try_link "$LINENO"; then :
19686 gcc_cv_math_func_frexp=yes
19687 else
19688 gcc_cv_math_func_frexp=no
19690 rm -f core conftest.err conftest.$ac_objext \
19691 conftest$ac_exeext conftest.$ac_ext
19693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexp" >&5
19694 $as_echo "$gcc_cv_math_func_frexp" >&6; }
19695 if test $gcc_cv_math_func_frexp = yes; then
19697 cat >>confdefs.h <<_ACEOF
19698 #define HAVE_FREXP 1
19699 _ACEOF
19706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl" >&5
19707 $as_echo_n "checking for frexpl... " >&6; }
19708 if test "${gcc_cv_math_func_frexpl+set}" = set; then :
19709 $as_echo_n "(cached) " >&6
19710 else
19711 if test x$gcc_no_link = xyes; then
19712 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19715 /* end confdefs.h. */
19717 #ifdef HAVE_COMPLEX_H
19718 #include <complex.h>
19719 #endif
19720 #ifdef HAVE_MATH_H
19721 #include <math.h>
19722 #endif
19724 int (*ptr)() = (int (*)())frexpl;
19727 main ()
19729 return 0;
19732 _ACEOF
19733 if ac_fn_c_try_link "$LINENO"; then :
19734 gcc_cv_math_func_frexpl=yes
19735 else
19736 gcc_cv_math_func_frexpl=no
19738 rm -f core conftest.err conftest.$ac_objext \
19739 conftest$ac_exeext conftest.$ac_ext
19741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpl" >&5
19742 $as_echo "$gcc_cv_math_func_frexpl" >&6; }
19743 if test $gcc_cv_math_func_frexpl = yes; then
19745 cat >>confdefs.h <<_ACEOF
19746 #define HAVE_FREXPL 1
19747 _ACEOF
19754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf" >&5
19755 $as_echo_n "checking for hypotf... " >&6; }
19756 if test "${gcc_cv_math_func_hypotf+set}" = set; then :
19757 $as_echo_n "(cached) " >&6
19758 else
19759 if test x$gcc_no_link = xyes; then
19760 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19763 /* end confdefs.h. */
19765 #ifdef HAVE_COMPLEX_H
19766 #include <complex.h>
19767 #endif
19768 #ifdef HAVE_MATH_H
19769 #include <math.h>
19770 #endif
19772 int (*ptr)() = (int (*)())hypotf;
19775 main ()
19777 return 0;
19780 _ACEOF
19781 if ac_fn_c_try_link "$LINENO"; then :
19782 gcc_cv_math_func_hypotf=yes
19783 else
19784 gcc_cv_math_func_hypotf=no
19786 rm -f core conftest.err conftest.$ac_objext \
19787 conftest$ac_exeext conftest.$ac_ext
19789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotf" >&5
19790 $as_echo "$gcc_cv_math_func_hypotf" >&6; }
19791 if test $gcc_cv_math_func_hypotf = yes; then
19793 cat >>confdefs.h <<_ACEOF
19794 #define HAVE_HYPOTF 1
19795 _ACEOF
19802 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot" >&5
19803 $as_echo_n "checking for hypot... " >&6; }
19804 if test "${gcc_cv_math_func_hypot+set}" = set; then :
19805 $as_echo_n "(cached) " >&6
19806 else
19807 if test x$gcc_no_link = xyes; then
19808 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19811 /* end confdefs.h. */
19813 #ifdef HAVE_COMPLEX_H
19814 #include <complex.h>
19815 #endif
19816 #ifdef HAVE_MATH_H
19817 #include <math.h>
19818 #endif
19820 int (*ptr)() = (int (*)())hypot;
19823 main ()
19825 return 0;
19828 _ACEOF
19829 if ac_fn_c_try_link "$LINENO"; then :
19830 gcc_cv_math_func_hypot=yes
19831 else
19832 gcc_cv_math_func_hypot=no
19834 rm -f core conftest.err conftest.$ac_objext \
19835 conftest$ac_exeext conftest.$ac_ext
19837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypot" >&5
19838 $as_echo "$gcc_cv_math_func_hypot" >&6; }
19839 if test $gcc_cv_math_func_hypot = yes; then
19841 cat >>confdefs.h <<_ACEOF
19842 #define HAVE_HYPOT 1
19843 _ACEOF
19850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl" >&5
19851 $as_echo_n "checking for hypotl... " >&6; }
19852 if test "${gcc_cv_math_func_hypotl+set}" = set; then :
19853 $as_echo_n "(cached) " >&6
19854 else
19855 if test x$gcc_no_link = xyes; then
19856 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19859 /* end confdefs.h. */
19861 #ifdef HAVE_COMPLEX_H
19862 #include <complex.h>
19863 #endif
19864 #ifdef HAVE_MATH_H
19865 #include <math.h>
19866 #endif
19868 int (*ptr)() = (int (*)())hypotl;
19871 main ()
19873 return 0;
19876 _ACEOF
19877 if ac_fn_c_try_link "$LINENO"; then :
19878 gcc_cv_math_func_hypotl=yes
19879 else
19880 gcc_cv_math_func_hypotl=no
19882 rm -f core conftest.err conftest.$ac_objext \
19883 conftest$ac_exeext conftest.$ac_ext
19885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotl" >&5
19886 $as_echo "$gcc_cv_math_func_hypotl" >&6; }
19887 if test $gcc_cv_math_func_hypotl = yes; then
19889 cat >>confdefs.h <<_ACEOF
19890 #define HAVE_HYPOTL 1
19891 _ACEOF
19898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf" >&5
19899 $as_echo_n "checking for ldexpf... " >&6; }
19900 if test "${gcc_cv_math_func_ldexpf+set}" = set; then :
19901 $as_echo_n "(cached) " >&6
19902 else
19903 if test x$gcc_no_link = xyes; then
19904 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19907 /* end confdefs.h. */
19909 #ifdef HAVE_COMPLEX_H
19910 #include <complex.h>
19911 #endif
19912 #ifdef HAVE_MATH_H
19913 #include <math.h>
19914 #endif
19916 int (*ptr)() = (int (*)())ldexpf;
19919 main ()
19921 return 0;
19924 _ACEOF
19925 if ac_fn_c_try_link "$LINENO"; then :
19926 gcc_cv_math_func_ldexpf=yes
19927 else
19928 gcc_cv_math_func_ldexpf=no
19930 rm -f core conftest.err conftest.$ac_objext \
19931 conftest$ac_exeext conftest.$ac_ext
19933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpf" >&5
19934 $as_echo "$gcc_cv_math_func_ldexpf" >&6; }
19935 if test $gcc_cv_math_func_ldexpf = yes; then
19937 cat >>confdefs.h <<_ACEOF
19938 #define HAVE_LDEXPF 1
19939 _ACEOF
19946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexp" >&5
19947 $as_echo_n "checking for ldexp... " >&6; }
19948 if test "${gcc_cv_math_func_ldexp+set}" = set; then :
19949 $as_echo_n "(cached) " >&6
19950 else
19951 if test x$gcc_no_link = xyes; then
19952 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19954 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19955 /* end confdefs.h. */
19957 #ifdef HAVE_COMPLEX_H
19958 #include <complex.h>
19959 #endif
19960 #ifdef HAVE_MATH_H
19961 #include <math.h>
19962 #endif
19964 int (*ptr)() = (int (*)())ldexp;
19967 main ()
19969 return 0;
19972 _ACEOF
19973 if ac_fn_c_try_link "$LINENO"; then :
19974 gcc_cv_math_func_ldexp=yes
19975 else
19976 gcc_cv_math_func_ldexp=no
19978 rm -f core conftest.err conftest.$ac_objext \
19979 conftest$ac_exeext conftest.$ac_ext
19981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexp" >&5
19982 $as_echo "$gcc_cv_math_func_ldexp" >&6; }
19983 if test $gcc_cv_math_func_ldexp = yes; then
19985 cat >>confdefs.h <<_ACEOF
19986 #define HAVE_LDEXP 1
19987 _ACEOF
19994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl" >&5
19995 $as_echo_n "checking for ldexpl... " >&6; }
19996 if test "${gcc_cv_math_func_ldexpl+set}" = set; then :
19997 $as_echo_n "(cached) " >&6
19998 else
19999 if test x$gcc_no_link = xyes; then
20000 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20002 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20003 /* end confdefs.h. */
20005 #ifdef HAVE_COMPLEX_H
20006 #include <complex.h>
20007 #endif
20008 #ifdef HAVE_MATH_H
20009 #include <math.h>
20010 #endif
20012 int (*ptr)() = (int (*)())ldexpl;
20015 main ()
20017 return 0;
20020 _ACEOF
20021 if ac_fn_c_try_link "$LINENO"; then :
20022 gcc_cv_math_func_ldexpl=yes
20023 else
20024 gcc_cv_math_func_ldexpl=no
20026 rm -f core conftest.err conftest.$ac_objext \
20027 conftest$ac_exeext conftest.$ac_ext
20029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpl" >&5
20030 $as_echo "$gcc_cv_math_func_ldexpl" >&6; }
20031 if test $gcc_cv_math_func_ldexpl = yes; then
20033 cat >>confdefs.h <<_ACEOF
20034 #define HAVE_LDEXPL 1
20035 _ACEOF
20042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf" >&5
20043 $as_echo_n "checking for logf... " >&6; }
20044 if test "${gcc_cv_math_func_logf+set}" = set; then :
20045 $as_echo_n "(cached) " >&6
20046 else
20047 if test x$gcc_no_link = xyes; then
20048 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20051 /* end confdefs.h. */
20053 #ifdef HAVE_COMPLEX_H
20054 #include <complex.h>
20055 #endif
20056 #ifdef HAVE_MATH_H
20057 #include <math.h>
20058 #endif
20060 int (*ptr)() = (int (*)())logf;
20063 main ()
20065 return 0;
20068 _ACEOF
20069 if ac_fn_c_try_link "$LINENO"; then :
20070 gcc_cv_math_func_logf=yes
20071 else
20072 gcc_cv_math_func_logf=no
20074 rm -f core conftest.err conftest.$ac_objext \
20075 conftest$ac_exeext conftest.$ac_ext
20077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logf" >&5
20078 $as_echo "$gcc_cv_math_func_logf" >&6; }
20079 if test $gcc_cv_math_func_logf = yes; then
20081 cat >>confdefs.h <<_ACEOF
20082 #define HAVE_LOGF 1
20083 _ACEOF
20090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log" >&5
20091 $as_echo_n "checking for log... " >&6; }
20092 if test "${gcc_cv_math_func_log+set}" = set; then :
20093 $as_echo_n "(cached) " >&6
20094 else
20095 if test x$gcc_no_link = xyes; then
20096 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20099 /* end confdefs.h. */
20101 #ifdef HAVE_COMPLEX_H
20102 #include <complex.h>
20103 #endif
20104 #ifdef HAVE_MATH_H
20105 #include <math.h>
20106 #endif
20108 int (*ptr)() = (int (*)())log;
20111 main ()
20113 return 0;
20116 _ACEOF
20117 if ac_fn_c_try_link "$LINENO"; then :
20118 gcc_cv_math_func_log=yes
20119 else
20120 gcc_cv_math_func_log=no
20122 rm -f core conftest.err conftest.$ac_objext \
20123 conftest$ac_exeext conftest.$ac_ext
20125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log" >&5
20126 $as_echo "$gcc_cv_math_func_log" >&6; }
20127 if test $gcc_cv_math_func_log = yes; then
20129 cat >>confdefs.h <<_ACEOF
20130 #define HAVE_LOG 1
20131 _ACEOF
20138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl" >&5
20139 $as_echo_n "checking for logl... " >&6; }
20140 if test "${gcc_cv_math_func_logl+set}" = set; then :
20141 $as_echo_n "(cached) " >&6
20142 else
20143 if test x$gcc_no_link = xyes; then
20144 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20147 /* end confdefs.h. */
20149 #ifdef HAVE_COMPLEX_H
20150 #include <complex.h>
20151 #endif
20152 #ifdef HAVE_MATH_H
20153 #include <math.h>
20154 #endif
20156 int (*ptr)() = (int (*)())logl;
20159 main ()
20161 return 0;
20164 _ACEOF
20165 if ac_fn_c_try_link "$LINENO"; then :
20166 gcc_cv_math_func_logl=yes
20167 else
20168 gcc_cv_math_func_logl=no
20170 rm -f core conftest.err conftest.$ac_objext \
20171 conftest$ac_exeext conftest.$ac_ext
20173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logl" >&5
20174 $as_echo "$gcc_cv_math_func_logl" >&6; }
20175 if test $gcc_cv_math_func_logl = yes; then
20177 cat >>confdefs.h <<_ACEOF
20178 #define HAVE_LOGL 1
20179 _ACEOF
20186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogf" >&5
20187 $as_echo_n "checking for clogf... " >&6; }
20188 if test "${gcc_cv_math_func_clogf+set}" = set; then :
20189 $as_echo_n "(cached) " >&6
20190 else
20191 if test x$gcc_no_link = xyes; then
20192 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20195 /* end confdefs.h. */
20197 #ifdef HAVE_COMPLEX_H
20198 #include <complex.h>
20199 #endif
20200 #ifdef HAVE_MATH_H
20201 #include <math.h>
20202 #endif
20204 int (*ptr)() = (int (*)())clogf;
20207 main ()
20209 return 0;
20212 _ACEOF
20213 if ac_fn_c_try_link "$LINENO"; then :
20214 gcc_cv_math_func_clogf=yes
20215 else
20216 gcc_cv_math_func_clogf=no
20218 rm -f core conftest.err conftest.$ac_objext \
20219 conftest$ac_exeext conftest.$ac_ext
20221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogf" >&5
20222 $as_echo "$gcc_cv_math_func_clogf" >&6; }
20223 if test $gcc_cv_math_func_clogf = yes; then
20225 cat >>confdefs.h <<_ACEOF
20226 #define HAVE_CLOGF 1
20227 _ACEOF
20234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog" >&5
20235 $as_echo_n "checking for clog... " >&6; }
20236 if test "${gcc_cv_math_func_clog+set}" = set; then :
20237 $as_echo_n "(cached) " >&6
20238 else
20239 if test x$gcc_no_link = xyes; then
20240 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20243 /* end confdefs.h. */
20245 #ifdef HAVE_COMPLEX_H
20246 #include <complex.h>
20247 #endif
20248 #ifdef HAVE_MATH_H
20249 #include <math.h>
20250 #endif
20252 int (*ptr)() = (int (*)())clog;
20255 main ()
20257 return 0;
20260 _ACEOF
20261 if ac_fn_c_try_link "$LINENO"; then :
20262 gcc_cv_math_func_clog=yes
20263 else
20264 gcc_cv_math_func_clog=no
20266 rm -f core conftest.err conftest.$ac_objext \
20267 conftest$ac_exeext conftest.$ac_ext
20269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog" >&5
20270 $as_echo "$gcc_cv_math_func_clog" >&6; }
20271 if test $gcc_cv_math_func_clog = yes; then
20273 cat >>confdefs.h <<_ACEOF
20274 #define HAVE_CLOG 1
20275 _ACEOF
20282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogl" >&5
20283 $as_echo_n "checking for clogl... " >&6; }
20284 if test "${gcc_cv_math_func_clogl+set}" = set; then :
20285 $as_echo_n "(cached) " >&6
20286 else
20287 if test x$gcc_no_link = xyes; then
20288 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20291 /* end confdefs.h. */
20293 #ifdef HAVE_COMPLEX_H
20294 #include <complex.h>
20295 #endif
20296 #ifdef HAVE_MATH_H
20297 #include <math.h>
20298 #endif
20300 int (*ptr)() = (int (*)())clogl;
20303 main ()
20305 return 0;
20308 _ACEOF
20309 if ac_fn_c_try_link "$LINENO"; then :
20310 gcc_cv_math_func_clogl=yes
20311 else
20312 gcc_cv_math_func_clogl=no
20314 rm -f core conftest.err conftest.$ac_objext \
20315 conftest$ac_exeext conftest.$ac_ext
20317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogl" >&5
20318 $as_echo "$gcc_cv_math_func_clogl" >&6; }
20319 if test $gcc_cv_math_func_clogl = yes; then
20321 cat >>confdefs.h <<_ACEOF
20322 #define HAVE_CLOGL 1
20323 _ACEOF
20330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f" >&5
20331 $as_echo_n "checking for log10f... " >&6; }
20332 if test "${gcc_cv_math_func_log10f+set}" = set; then :
20333 $as_echo_n "(cached) " >&6
20334 else
20335 if test x$gcc_no_link = xyes; then
20336 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20339 /* end confdefs.h. */
20341 #ifdef HAVE_COMPLEX_H
20342 #include <complex.h>
20343 #endif
20344 #ifdef HAVE_MATH_H
20345 #include <math.h>
20346 #endif
20348 int (*ptr)() = (int (*)())log10f;
20351 main ()
20353 return 0;
20356 _ACEOF
20357 if ac_fn_c_try_link "$LINENO"; then :
20358 gcc_cv_math_func_log10f=yes
20359 else
20360 gcc_cv_math_func_log10f=no
20362 rm -f core conftest.err conftest.$ac_objext \
20363 conftest$ac_exeext conftest.$ac_ext
20365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10f" >&5
20366 $as_echo "$gcc_cv_math_func_log10f" >&6; }
20367 if test $gcc_cv_math_func_log10f = yes; then
20369 cat >>confdefs.h <<_ACEOF
20370 #define HAVE_LOG10F 1
20371 _ACEOF
20378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10" >&5
20379 $as_echo_n "checking for log10... " >&6; }
20380 if test "${gcc_cv_math_func_log10+set}" = set; then :
20381 $as_echo_n "(cached) " >&6
20382 else
20383 if test x$gcc_no_link = xyes; then
20384 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20387 /* end confdefs.h. */
20389 #ifdef HAVE_COMPLEX_H
20390 #include <complex.h>
20391 #endif
20392 #ifdef HAVE_MATH_H
20393 #include <math.h>
20394 #endif
20396 int (*ptr)() = (int (*)())log10;
20399 main ()
20401 return 0;
20404 _ACEOF
20405 if ac_fn_c_try_link "$LINENO"; then :
20406 gcc_cv_math_func_log10=yes
20407 else
20408 gcc_cv_math_func_log10=no
20410 rm -f core conftest.err conftest.$ac_objext \
20411 conftest$ac_exeext conftest.$ac_ext
20413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10" >&5
20414 $as_echo "$gcc_cv_math_func_log10" >&6; }
20415 if test $gcc_cv_math_func_log10 = yes; then
20417 cat >>confdefs.h <<_ACEOF
20418 #define HAVE_LOG10 1
20419 _ACEOF
20426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l" >&5
20427 $as_echo_n "checking for log10l... " >&6; }
20428 if test "${gcc_cv_math_func_log10l+set}" = set; then :
20429 $as_echo_n "(cached) " >&6
20430 else
20431 if test x$gcc_no_link = xyes; then
20432 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20435 /* end confdefs.h. */
20437 #ifdef HAVE_COMPLEX_H
20438 #include <complex.h>
20439 #endif
20440 #ifdef HAVE_MATH_H
20441 #include <math.h>
20442 #endif
20444 int (*ptr)() = (int (*)())log10l;
20447 main ()
20449 return 0;
20452 _ACEOF
20453 if ac_fn_c_try_link "$LINENO"; then :
20454 gcc_cv_math_func_log10l=yes
20455 else
20456 gcc_cv_math_func_log10l=no
20458 rm -f core conftest.err conftest.$ac_objext \
20459 conftest$ac_exeext conftest.$ac_ext
20461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10l" >&5
20462 $as_echo "$gcc_cv_math_func_log10l" >&6; }
20463 if test $gcc_cv_math_func_log10l = yes; then
20465 cat >>confdefs.h <<_ACEOF
20466 #define HAVE_LOG10L 1
20467 _ACEOF
20474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10f" >&5
20475 $as_echo_n "checking for clog10f... " >&6; }
20476 if test "${gcc_cv_math_func_clog10f+set}" = set; then :
20477 $as_echo_n "(cached) " >&6
20478 else
20479 if test x$gcc_no_link = xyes; then
20480 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20483 /* end confdefs.h. */
20485 #ifdef HAVE_COMPLEX_H
20486 #include <complex.h>
20487 #endif
20488 #ifdef HAVE_MATH_H
20489 #include <math.h>
20490 #endif
20492 int (*ptr)() = (int (*)())clog10f;
20495 main ()
20497 return 0;
20500 _ACEOF
20501 if ac_fn_c_try_link "$LINENO"; then :
20502 gcc_cv_math_func_clog10f=yes
20503 else
20504 gcc_cv_math_func_clog10f=no
20506 rm -f core conftest.err conftest.$ac_objext \
20507 conftest$ac_exeext conftest.$ac_ext
20509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10f" >&5
20510 $as_echo "$gcc_cv_math_func_clog10f" >&6; }
20511 if test $gcc_cv_math_func_clog10f = yes; then
20513 cat >>confdefs.h <<_ACEOF
20514 #define HAVE_CLOG10F 1
20515 _ACEOF
20522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10" >&5
20523 $as_echo_n "checking for clog10... " >&6; }
20524 if test "${gcc_cv_math_func_clog10+set}" = set; then :
20525 $as_echo_n "(cached) " >&6
20526 else
20527 if test x$gcc_no_link = xyes; then
20528 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20531 /* end confdefs.h. */
20533 #ifdef HAVE_COMPLEX_H
20534 #include <complex.h>
20535 #endif
20536 #ifdef HAVE_MATH_H
20537 #include <math.h>
20538 #endif
20540 int (*ptr)() = (int (*)())clog10;
20543 main ()
20545 return 0;
20548 _ACEOF
20549 if ac_fn_c_try_link "$LINENO"; then :
20550 gcc_cv_math_func_clog10=yes
20551 else
20552 gcc_cv_math_func_clog10=no
20554 rm -f core conftest.err conftest.$ac_objext \
20555 conftest$ac_exeext conftest.$ac_ext
20557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10" >&5
20558 $as_echo "$gcc_cv_math_func_clog10" >&6; }
20559 if test $gcc_cv_math_func_clog10 = yes; then
20561 cat >>confdefs.h <<_ACEOF
20562 #define HAVE_CLOG10 1
20563 _ACEOF
20570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10l" >&5
20571 $as_echo_n "checking for clog10l... " >&6; }
20572 if test "${gcc_cv_math_func_clog10l+set}" = set; then :
20573 $as_echo_n "(cached) " >&6
20574 else
20575 if test x$gcc_no_link = xyes; then
20576 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20579 /* end confdefs.h. */
20581 #ifdef HAVE_COMPLEX_H
20582 #include <complex.h>
20583 #endif
20584 #ifdef HAVE_MATH_H
20585 #include <math.h>
20586 #endif
20588 int (*ptr)() = (int (*)())clog10l;
20591 main ()
20593 return 0;
20596 _ACEOF
20597 if ac_fn_c_try_link "$LINENO"; then :
20598 gcc_cv_math_func_clog10l=yes
20599 else
20600 gcc_cv_math_func_clog10l=no
20602 rm -f core conftest.err conftest.$ac_objext \
20603 conftest$ac_exeext conftest.$ac_ext
20605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10l" >&5
20606 $as_echo "$gcc_cv_math_func_clog10l" >&6; }
20607 if test $gcc_cv_math_func_clog10l = yes; then
20609 cat >>confdefs.h <<_ACEOF
20610 #define HAVE_CLOG10L 1
20611 _ACEOF
20618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterf" >&5
20619 $as_echo_n "checking for nextafterf... " >&6; }
20620 if test "${gcc_cv_math_func_nextafterf+set}" = set; then :
20621 $as_echo_n "(cached) " >&6
20622 else
20623 if test x$gcc_no_link = xyes; then
20624 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20627 /* end confdefs.h. */
20629 #ifdef HAVE_COMPLEX_H
20630 #include <complex.h>
20631 #endif
20632 #ifdef HAVE_MATH_H
20633 #include <math.h>
20634 #endif
20636 int (*ptr)() = (int (*)())nextafterf;
20639 main ()
20641 return 0;
20644 _ACEOF
20645 if ac_fn_c_try_link "$LINENO"; then :
20646 gcc_cv_math_func_nextafterf=yes
20647 else
20648 gcc_cv_math_func_nextafterf=no
20650 rm -f core conftest.err conftest.$ac_objext \
20651 conftest$ac_exeext conftest.$ac_ext
20653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterf" >&5
20654 $as_echo "$gcc_cv_math_func_nextafterf" >&6; }
20655 if test $gcc_cv_math_func_nextafterf = yes; then
20657 cat >>confdefs.h <<_ACEOF
20658 #define HAVE_NEXTAFTERF 1
20659 _ACEOF
20666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafter" >&5
20667 $as_echo_n "checking for nextafter... " >&6; }
20668 if test "${gcc_cv_math_func_nextafter+set}" = set; then :
20669 $as_echo_n "(cached) " >&6
20670 else
20671 if test x$gcc_no_link = xyes; then
20672 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20675 /* end confdefs.h. */
20677 #ifdef HAVE_COMPLEX_H
20678 #include <complex.h>
20679 #endif
20680 #ifdef HAVE_MATH_H
20681 #include <math.h>
20682 #endif
20684 int (*ptr)() = (int (*)())nextafter;
20687 main ()
20689 return 0;
20692 _ACEOF
20693 if ac_fn_c_try_link "$LINENO"; then :
20694 gcc_cv_math_func_nextafter=yes
20695 else
20696 gcc_cv_math_func_nextafter=no
20698 rm -f core conftest.err conftest.$ac_objext \
20699 conftest$ac_exeext conftest.$ac_ext
20701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafter" >&5
20702 $as_echo "$gcc_cv_math_func_nextafter" >&6; }
20703 if test $gcc_cv_math_func_nextafter = yes; then
20705 cat >>confdefs.h <<_ACEOF
20706 #define HAVE_NEXTAFTER 1
20707 _ACEOF
20714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterl" >&5
20715 $as_echo_n "checking for nextafterl... " >&6; }
20716 if test "${gcc_cv_math_func_nextafterl+set}" = set; then :
20717 $as_echo_n "(cached) " >&6
20718 else
20719 if test x$gcc_no_link = xyes; then
20720 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20723 /* end confdefs.h. */
20725 #ifdef HAVE_COMPLEX_H
20726 #include <complex.h>
20727 #endif
20728 #ifdef HAVE_MATH_H
20729 #include <math.h>
20730 #endif
20732 int (*ptr)() = (int (*)())nextafterl;
20735 main ()
20737 return 0;
20740 _ACEOF
20741 if ac_fn_c_try_link "$LINENO"; then :
20742 gcc_cv_math_func_nextafterl=yes
20743 else
20744 gcc_cv_math_func_nextafterl=no
20746 rm -f core conftest.err conftest.$ac_objext \
20747 conftest$ac_exeext conftest.$ac_ext
20749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterl" >&5
20750 $as_echo "$gcc_cv_math_func_nextafterl" >&6; }
20751 if test $gcc_cv_math_func_nextafterl = yes; then
20753 cat >>confdefs.h <<_ACEOF
20754 #define HAVE_NEXTAFTERL 1
20755 _ACEOF
20762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf" >&5
20763 $as_echo_n "checking for powf... " >&6; }
20764 if test "${gcc_cv_math_func_powf+set}" = set; then :
20765 $as_echo_n "(cached) " >&6
20766 else
20767 if test x$gcc_no_link = xyes; then
20768 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20771 /* end confdefs.h. */
20773 #ifdef HAVE_COMPLEX_H
20774 #include <complex.h>
20775 #endif
20776 #ifdef HAVE_MATH_H
20777 #include <math.h>
20778 #endif
20780 int (*ptr)() = (int (*)())powf;
20783 main ()
20785 return 0;
20788 _ACEOF
20789 if ac_fn_c_try_link "$LINENO"; then :
20790 gcc_cv_math_func_powf=yes
20791 else
20792 gcc_cv_math_func_powf=no
20794 rm -f core conftest.err conftest.$ac_objext \
20795 conftest$ac_exeext conftest.$ac_ext
20797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_powf" >&5
20798 $as_echo "$gcc_cv_math_func_powf" >&6; }
20799 if test $gcc_cv_math_func_powf = yes; then
20801 cat >>confdefs.h <<_ACEOF
20802 #define HAVE_POWF 1
20803 _ACEOF
20810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow" >&5
20811 $as_echo_n "checking for pow... " >&6; }
20812 if test "${gcc_cv_math_func_pow+set}" = set; then :
20813 $as_echo_n "(cached) " >&6
20814 else
20815 if test x$gcc_no_link = xyes; then
20816 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20819 /* end confdefs.h. */
20821 #ifdef HAVE_COMPLEX_H
20822 #include <complex.h>
20823 #endif
20824 #ifdef HAVE_MATH_H
20825 #include <math.h>
20826 #endif
20828 int (*ptr)() = (int (*)())pow;
20831 main ()
20833 return 0;
20836 _ACEOF
20837 if ac_fn_c_try_link "$LINENO"; then :
20838 gcc_cv_math_func_pow=yes
20839 else
20840 gcc_cv_math_func_pow=no
20842 rm -f core conftest.err conftest.$ac_objext \
20843 conftest$ac_exeext conftest.$ac_ext
20845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_pow" >&5
20846 $as_echo "$gcc_cv_math_func_pow" >&6; }
20847 if test $gcc_cv_math_func_pow = yes; then
20849 cat >>confdefs.h <<_ACEOF
20850 #define HAVE_POW 1
20851 _ACEOF
20858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powl" >&5
20859 $as_echo_n "checking for powl... " >&6; }
20860 if test "${gcc_cv_math_func_powl+set}" = set; then :
20861 $as_echo_n "(cached) " >&6
20862 else
20863 if test x$gcc_no_link = xyes; then
20864 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20866 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20867 /* end confdefs.h. */
20869 #ifdef HAVE_COMPLEX_H
20870 #include <complex.h>
20871 #endif
20872 #ifdef HAVE_MATH_H
20873 #include <math.h>
20874 #endif
20876 int (*ptr)() = (int (*)())powl;
20879 main ()
20881 return 0;
20884 _ACEOF
20885 if ac_fn_c_try_link "$LINENO"; then :
20886 gcc_cv_math_func_powl=yes
20887 else
20888 gcc_cv_math_func_powl=no
20890 rm -f core conftest.err conftest.$ac_objext \
20891 conftest$ac_exeext conftest.$ac_ext
20893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_powl" >&5
20894 $as_echo "$gcc_cv_math_func_powl" >&6; }
20895 if test $gcc_cv_math_func_powl = yes; then
20897 cat >>confdefs.h <<_ACEOF
20898 #define HAVE_POWL 1
20899 _ACEOF
20906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowf" >&5
20907 $as_echo_n "checking for cpowf... " >&6; }
20908 if test "${gcc_cv_math_func_cpowf+set}" = set; then :
20909 $as_echo_n "(cached) " >&6
20910 else
20911 if test x$gcc_no_link = xyes; then
20912 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20915 /* end confdefs.h. */
20917 #ifdef HAVE_COMPLEX_H
20918 #include <complex.h>
20919 #endif
20920 #ifdef HAVE_MATH_H
20921 #include <math.h>
20922 #endif
20924 int (*ptr)() = (int (*)())cpowf;
20927 main ()
20929 return 0;
20932 _ACEOF
20933 if ac_fn_c_try_link "$LINENO"; then :
20934 gcc_cv_math_func_cpowf=yes
20935 else
20936 gcc_cv_math_func_cpowf=no
20938 rm -f core conftest.err conftest.$ac_objext \
20939 conftest$ac_exeext conftest.$ac_ext
20941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowf" >&5
20942 $as_echo "$gcc_cv_math_func_cpowf" >&6; }
20943 if test $gcc_cv_math_func_cpowf = yes; then
20945 cat >>confdefs.h <<_ACEOF
20946 #define HAVE_CPOWF 1
20947 _ACEOF
20954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpow" >&5
20955 $as_echo_n "checking for cpow... " >&6; }
20956 if test "${gcc_cv_math_func_cpow+set}" = set; then :
20957 $as_echo_n "(cached) " >&6
20958 else
20959 if test x$gcc_no_link = xyes; then
20960 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20963 /* end confdefs.h. */
20965 #ifdef HAVE_COMPLEX_H
20966 #include <complex.h>
20967 #endif
20968 #ifdef HAVE_MATH_H
20969 #include <math.h>
20970 #endif
20972 int (*ptr)() = (int (*)())cpow;
20975 main ()
20977 return 0;
20980 _ACEOF
20981 if ac_fn_c_try_link "$LINENO"; then :
20982 gcc_cv_math_func_cpow=yes
20983 else
20984 gcc_cv_math_func_cpow=no
20986 rm -f core conftest.err conftest.$ac_objext \
20987 conftest$ac_exeext conftest.$ac_ext
20989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpow" >&5
20990 $as_echo "$gcc_cv_math_func_cpow" >&6; }
20991 if test $gcc_cv_math_func_cpow = yes; then
20993 cat >>confdefs.h <<_ACEOF
20994 #define HAVE_CPOW 1
20995 _ACEOF
21002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowl" >&5
21003 $as_echo_n "checking for cpowl... " >&6; }
21004 if test "${gcc_cv_math_func_cpowl+set}" = set; then :
21005 $as_echo_n "(cached) " >&6
21006 else
21007 if test x$gcc_no_link = xyes; then
21008 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21011 /* end confdefs.h. */
21013 #ifdef HAVE_COMPLEX_H
21014 #include <complex.h>
21015 #endif
21016 #ifdef HAVE_MATH_H
21017 #include <math.h>
21018 #endif
21020 int (*ptr)() = (int (*)())cpowl;
21023 main ()
21025 return 0;
21028 _ACEOF
21029 if ac_fn_c_try_link "$LINENO"; then :
21030 gcc_cv_math_func_cpowl=yes
21031 else
21032 gcc_cv_math_func_cpowl=no
21034 rm -f core conftest.err conftest.$ac_objext \
21035 conftest$ac_exeext conftest.$ac_ext
21037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowl" >&5
21038 $as_echo "$gcc_cv_math_func_cpowl" >&6; }
21039 if test $gcc_cv_math_func_cpowl = yes; then
21041 cat >>confdefs.h <<_ACEOF
21042 #define HAVE_CPOWL 1
21043 _ACEOF
21050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundf" >&5
21051 $as_echo_n "checking for roundf... " >&6; }
21052 if test "${gcc_cv_math_func_roundf+set}" = set; then :
21053 $as_echo_n "(cached) " >&6
21054 else
21055 if test x$gcc_no_link = xyes; then
21056 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21059 /* end confdefs.h. */
21061 #ifdef HAVE_COMPLEX_H
21062 #include <complex.h>
21063 #endif
21064 #ifdef HAVE_MATH_H
21065 #include <math.h>
21066 #endif
21068 int (*ptr)() = (int (*)())roundf;
21071 main ()
21073 return 0;
21076 _ACEOF
21077 if ac_fn_c_try_link "$LINENO"; then :
21078 gcc_cv_math_func_roundf=yes
21079 else
21080 gcc_cv_math_func_roundf=no
21082 rm -f core conftest.err conftest.$ac_objext \
21083 conftest$ac_exeext conftest.$ac_ext
21085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundf" >&5
21086 $as_echo "$gcc_cv_math_func_roundf" >&6; }
21087 if test $gcc_cv_math_func_roundf = yes; then
21089 cat >>confdefs.h <<_ACEOF
21090 #define HAVE_ROUNDF 1
21091 _ACEOF
21098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for round" >&5
21099 $as_echo_n "checking for round... " >&6; }
21100 if test "${gcc_cv_math_func_round+set}" = set; then :
21101 $as_echo_n "(cached) " >&6
21102 else
21103 if test x$gcc_no_link = xyes; then
21104 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21106 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21107 /* end confdefs.h. */
21109 #ifdef HAVE_COMPLEX_H
21110 #include <complex.h>
21111 #endif
21112 #ifdef HAVE_MATH_H
21113 #include <math.h>
21114 #endif
21116 int (*ptr)() = (int (*)())round;
21119 main ()
21121 return 0;
21124 _ACEOF
21125 if ac_fn_c_try_link "$LINENO"; then :
21126 gcc_cv_math_func_round=yes
21127 else
21128 gcc_cv_math_func_round=no
21130 rm -f core conftest.err conftest.$ac_objext \
21131 conftest$ac_exeext conftest.$ac_ext
21133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_round" >&5
21134 $as_echo "$gcc_cv_math_func_round" >&6; }
21135 if test $gcc_cv_math_func_round = yes; then
21137 cat >>confdefs.h <<_ACEOF
21138 #define HAVE_ROUND 1
21139 _ACEOF
21146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundl" >&5
21147 $as_echo_n "checking for roundl... " >&6; }
21148 if test "${gcc_cv_math_func_roundl+set}" = set; then :
21149 $as_echo_n "(cached) " >&6
21150 else
21151 if test x$gcc_no_link = xyes; then
21152 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21155 /* end confdefs.h. */
21157 #ifdef HAVE_COMPLEX_H
21158 #include <complex.h>
21159 #endif
21160 #ifdef HAVE_MATH_H
21161 #include <math.h>
21162 #endif
21164 int (*ptr)() = (int (*)())roundl;
21167 main ()
21169 return 0;
21172 _ACEOF
21173 if ac_fn_c_try_link "$LINENO"; then :
21174 gcc_cv_math_func_roundl=yes
21175 else
21176 gcc_cv_math_func_roundl=no
21178 rm -f core conftest.err conftest.$ac_objext \
21179 conftest$ac_exeext conftest.$ac_ext
21181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundl" >&5
21182 $as_echo "$gcc_cv_math_func_roundl" >&6; }
21183 if test $gcc_cv_math_func_roundl = yes; then
21185 cat >>confdefs.h <<_ACEOF
21186 #define HAVE_ROUNDL 1
21187 _ACEOF
21194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundf" >&5
21195 $as_echo_n "checking for lroundf... " >&6; }
21196 if test "${gcc_cv_math_func_lroundf+set}" = set; then :
21197 $as_echo_n "(cached) " >&6
21198 else
21199 if test x$gcc_no_link = xyes; then
21200 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21203 /* end confdefs.h. */
21205 #ifdef HAVE_COMPLEX_H
21206 #include <complex.h>
21207 #endif
21208 #ifdef HAVE_MATH_H
21209 #include <math.h>
21210 #endif
21212 int (*ptr)() = (int (*)())lroundf;
21215 main ()
21217 return 0;
21220 _ACEOF
21221 if ac_fn_c_try_link "$LINENO"; then :
21222 gcc_cv_math_func_lroundf=yes
21223 else
21224 gcc_cv_math_func_lroundf=no
21226 rm -f core conftest.err conftest.$ac_objext \
21227 conftest$ac_exeext conftest.$ac_ext
21229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundf" >&5
21230 $as_echo "$gcc_cv_math_func_lroundf" >&6; }
21231 if test $gcc_cv_math_func_lroundf = yes; then
21233 cat >>confdefs.h <<_ACEOF
21234 #define HAVE_LROUNDF 1
21235 _ACEOF
21242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lround" >&5
21243 $as_echo_n "checking for lround... " >&6; }
21244 if test "${gcc_cv_math_func_lround+set}" = set; then :
21245 $as_echo_n "(cached) " >&6
21246 else
21247 if test x$gcc_no_link = xyes; then
21248 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21251 /* end confdefs.h. */
21253 #ifdef HAVE_COMPLEX_H
21254 #include <complex.h>
21255 #endif
21256 #ifdef HAVE_MATH_H
21257 #include <math.h>
21258 #endif
21260 int (*ptr)() = (int (*)())lround;
21263 main ()
21265 return 0;
21268 _ACEOF
21269 if ac_fn_c_try_link "$LINENO"; then :
21270 gcc_cv_math_func_lround=yes
21271 else
21272 gcc_cv_math_func_lround=no
21274 rm -f core conftest.err conftest.$ac_objext \
21275 conftest$ac_exeext conftest.$ac_ext
21277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lround" >&5
21278 $as_echo "$gcc_cv_math_func_lround" >&6; }
21279 if test $gcc_cv_math_func_lround = yes; then
21281 cat >>confdefs.h <<_ACEOF
21282 #define HAVE_LROUND 1
21283 _ACEOF
21290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundl" >&5
21291 $as_echo_n "checking for lroundl... " >&6; }
21292 if test "${gcc_cv_math_func_lroundl+set}" = set; then :
21293 $as_echo_n "(cached) " >&6
21294 else
21295 if test x$gcc_no_link = xyes; then
21296 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21299 /* end confdefs.h. */
21301 #ifdef HAVE_COMPLEX_H
21302 #include <complex.h>
21303 #endif
21304 #ifdef HAVE_MATH_H
21305 #include <math.h>
21306 #endif
21308 int (*ptr)() = (int (*)())lroundl;
21311 main ()
21313 return 0;
21316 _ACEOF
21317 if ac_fn_c_try_link "$LINENO"; then :
21318 gcc_cv_math_func_lroundl=yes
21319 else
21320 gcc_cv_math_func_lroundl=no
21322 rm -f core conftest.err conftest.$ac_objext \
21323 conftest$ac_exeext conftest.$ac_ext
21325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundl" >&5
21326 $as_echo "$gcc_cv_math_func_lroundl" >&6; }
21327 if test $gcc_cv_math_func_lroundl = yes; then
21329 cat >>confdefs.h <<_ACEOF
21330 #define HAVE_LROUNDL 1
21331 _ACEOF
21338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundf" >&5
21339 $as_echo_n "checking for llroundf... " >&6; }
21340 if test "${gcc_cv_math_func_llroundf+set}" = set; then :
21341 $as_echo_n "(cached) " >&6
21342 else
21343 if test x$gcc_no_link = xyes; then
21344 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21347 /* end confdefs.h. */
21349 #ifdef HAVE_COMPLEX_H
21350 #include <complex.h>
21351 #endif
21352 #ifdef HAVE_MATH_H
21353 #include <math.h>
21354 #endif
21356 int (*ptr)() = (int (*)())llroundf;
21359 main ()
21361 return 0;
21364 _ACEOF
21365 if ac_fn_c_try_link "$LINENO"; then :
21366 gcc_cv_math_func_llroundf=yes
21367 else
21368 gcc_cv_math_func_llroundf=no
21370 rm -f core conftest.err conftest.$ac_objext \
21371 conftest$ac_exeext conftest.$ac_ext
21373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundf" >&5
21374 $as_echo "$gcc_cv_math_func_llroundf" >&6; }
21375 if test $gcc_cv_math_func_llroundf = yes; then
21377 cat >>confdefs.h <<_ACEOF
21378 #define HAVE_LLROUNDF 1
21379 _ACEOF
21386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llround" >&5
21387 $as_echo_n "checking for llround... " >&6; }
21388 if test "${gcc_cv_math_func_llround+set}" = set; then :
21389 $as_echo_n "(cached) " >&6
21390 else
21391 if test x$gcc_no_link = xyes; then
21392 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21395 /* end confdefs.h. */
21397 #ifdef HAVE_COMPLEX_H
21398 #include <complex.h>
21399 #endif
21400 #ifdef HAVE_MATH_H
21401 #include <math.h>
21402 #endif
21404 int (*ptr)() = (int (*)())llround;
21407 main ()
21409 return 0;
21412 _ACEOF
21413 if ac_fn_c_try_link "$LINENO"; then :
21414 gcc_cv_math_func_llround=yes
21415 else
21416 gcc_cv_math_func_llround=no
21418 rm -f core conftest.err conftest.$ac_objext \
21419 conftest$ac_exeext conftest.$ac_ext
21421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llround" >&5
21422 $as_echo "$gcc_cv_math_func_llround" >&6; }
21423 if test $gcc_cv_math_func_llround = yes; then
21425 cat >>confdefs.h <<_ACEOF
21426 #define HAVE_LLROUND 1
21427 _ACEOF
21434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundl" >&5
21435 $as_echo_n "checking for llroundl... " >&6; }
21436 if test "${gcc_cv_math_func_llroundl+set}" = set; then :
21437 $as_echo_n "(cached) " >&6
21438 else
21439 if test x$gcc_no_link = xyes; then
21440 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21443 /* end confdefs.h. */
21445 #ifdef HAVE_COMPLEX_H
21446 #include <complex.h>
21447 #endif
21448 #ifdef HAVE_MATH_H
21449 #include <math.h>
21450 #endif
21452 int (*ptr)() = (int (*)())llroundl;
21455 main ()
21457 return 0;
21460 _ACEOF
21461 if ac_fn_c_try_link "$LINENO"; then :
21462 gcc_cv_math_func_llroundl=yes
21463 else
21464 gcc_cv_math_func_llroundl=no
21466 rm -f core conftest.err conftest.$ac_objext \
21467 conftest$ac_exeext conftest.$ac_ext
21469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundl" >&5
21470 $as_echo "$gcc_cv_math_func_llroundl" >&6; }
21471 if test $gcc_cv_math_func_llroundl = yes; then
21473 cat >>confdefs.h <<_ACEOF
21474 #define HAVE_LLROUNDL 1
21475 _ACEOF
21482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnf" >&5
21483 $as_echo_n "checking for scalbnf... " >&6; }
21484 if test "${gcc_cv_math_func_scalbnf+set}" = set; then :
21485 $as_echo_n "(cached) " >&6
21486 else
21487 if test x$gcc_no_link = xyes; then
21488 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21491 /* end confdefs.h. */
21493 #ifdef HAVE_COMPLEX_H
21494 #include <complex.h>
21495 #endif
21496 #ifdef HAVE_MATH_H
21497 #include <math.h>
21498 #endif
21500 int (*ptr)() = (int (*)())scalbnf;
21503 main ()
21505 return 0;
21508 _ACEOF
21509 if ac_fn_c_try_link "$LINENO"; then :
21510 gcc_cv_math_func_scalbnf=yes
21511 else
21512 gcc_cv_math_func_scalbnf=no
21514 rm -f core conftest.err conftest.$ac_objext \
21515 conftest$ac_exeext conftest.$ac_ext
21517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnf" >&5
21518 $as_echo "$gcc_cv_math_func_scalbnf" >&6; }
21519 if test $gcc_cv_math_func_scalbnf = yes; then
21521 cat >>confdefs.h <<_ACEOF
21522 #define HAVE_SCALBNF 1
21523 _ACEOF
21530 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbn" >&5
21531 $as_echo_n "checking for scalbn... " >&6; }
21532 if test "${gcc_cv_math_func_scalbn+set}" = set; then :
21533 $as_echo_n "(cached) " >&6
21534 else
21535 if test x$gcc_no_link = xyes; then
21536 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21539 /* end confdefs.h. */
21541 #ifdef HAVE_COMPLEX_H
21542 #include <complex.h>
21543 #endif
21544 #ifdef HAVE_MATH_H
21545 #include <math.h>
21546 #endif
21548 int (*ptr)() = (int (*)())scalbn;
21551 main ()
21553 return 0;
21556 _ACEOF
21557 if ac_fn_c_try_link "$LINENO"; then :
21558 gcc_cv_math_func_scalbn=yes
21559 else
21560 gcc_cv_math_func_scalbn=no
21562 rm -f core conftest.err conftest.$ac_objext \
21563 conftest$ac_exeext conftest.$ac_ext
21565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbn" >&5
21566 $as_echo "$gcc_cv_math_func_scalbn" >&6; }
21567 if test $gcc_cv_math_func_scalbn = yes; then
21569 cat >>confdefs.h <<_ACEOF
21570 #define HAVE_SCALBN 1
21571 _ACEOF
21578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnl" >&5
21579 $as_echo_n "checking for scalbnl... " >&6; }
21580 if test "${gcc_cv_math_func_scalbnl+set}" = set; then :
21581 $as_echo_n "(cached) " >&6
21582 else
21583 if test x$gcc_no_link = xyes; then
21584 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21586 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21587 /* end confdefs.h. */
21589 #ifdef HAVE_COMPLEX_H
21590 #include <complex.h>
21591 #endif
21592 #ifdef HAVE_MATH_H
21593 #include <math.h>
21594 #endif
21596 int (*ptr)() = (int (*)())scalbnl;
21599 main ()
21601 return 0;
21604 _ACEOF
21605 if ac_fn_c_try_link "$LINENO"; then :
21606 gcc_cv_math_func_scalbnl=yes
21607 else
21608 gcc_cv_math_func_scalbnl=no
21610 rm -f core conftest.err conftest.$ac_objext \
21611 conftest$ac_exeext conftest.$ac_ext
21613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnl" >&5
21614 $as_echo "$gcc_cv_math_func_scalbnl" >&6; }
21615 if test $gcc_cv_math_func_scalbnl = yes; then
21617 cat >>confdefs.h <<_ACEOF
21618 #define HAVE_SCALBNL 1
21619 _ACEOF
21626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinf" >&5
21627 $as_echo_n "checking for sinf... " >&6; }
21628 if test "${gcc_cv_math_func_sinf+set}" = set; then :
21629 $as_echo_n "(cached) " >&6
21630 else
21631 if test x$gcc_no_link = xyes; then
21632 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21635 /* end confdefs.h. */
21637 #ifdef HAVE_COMPLEX_H
21638 #include <complex.h>
21639 #endif
21640 #ifdef HAVE_MATH_H
21641 #include <math.h>
21642 #endif
21644 int (*ptr)() = (int (*)())sinf;
21647 main ()
21649 return 0;
21652 _ACEOF
21653 if ac_fn_c_try_link "$LINENO"; then :
21654 gcc_cv_math_func_sinf=yes
21655 else
21656 gcc_cv_math_func_sinf=no
21658 rm -f core conftest.err conftest.$ac_objext \
21659 conftest$ac_exeext conftest.$ac_ext
21661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinf" >&5
21662 $as_echo "$gcc_cv_math_func_sinf" >&6; }
21663 if test $gcc_cv_math_func_sinf = yes; then
21665 cat >>confdefs.h <<_ACEOF
21666 #define HAVE_SINF 1
21667 _ACEOF
21674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin" >&5
21675 $as_echo_n "checking for sin... " >&6; }
21676 if test "${gcc_cv_math_func_sin+set}" = set; then :
21677 $as_echo_n "(cached) " >&6
21678 else
21679 if test x$gcc_no_link = xyes; then
21680 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21682 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21683 /* end confdefs.h. */
21685 #ifdef HAVE_COMPLEX_H
21686 #include <complex.h>
21687 #endif
21688 #ifdef HAVE_MATH_H
21689 #include <math.h>
21690 #endif
21692 int (*ptr)() = (int (*)())sin;
21695 main ()
21697 return 0;
21700 _ACEOF
21701 if ac_fn_c_try_link "$LINENO"; then :
21702 gcc_cv_math_func_sin=yes
21703 else
21704 gcc_cv_math_func_sin=no
21706 rm -f core conftest.err conftest.$ac_objext \
21707 conftest$ac_exeext conftest.$ac_ext
21709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sin" >&5
21710 $as_echo "$gcc_cv_math_func_sin" >&6; }
21711 if test $gcc_cv_math_func_sin = yes; then
21713 cat >>confdefs.h <<_ACEOF
21714 #define HAVE_SIN 1
21715 _ACEOF
21722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinl" >&5
21723 $as_echo_n "checking for sinl... " >&6; }
21724 if test "${gcc_cv_math_func_sinl+set}" = set; then :
21725 $as_echo_n "(cached) " >&6
21726 else
21727 if test x$gcc_no_link = xyes; then
21728 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21731 /* end confdefs.h. */
21733 #ifdef HAVE_COMPLEX_H
21734 #include <complex.h>
21735 #endif
21736 #ifdef HAVE_MATH_H
21737 #include <math.h>
21738 #endif
21740 int (*ptr)() = (int (*)())sinl;
21743 main ()
21745 return 0;
21748 _ACEOF
21749 if ac_fn_c_try_link "$LINENO"; then :
21750 gcc_cv_math_func_sinl=yes
21751 else
21752 gcc_cv_math_func_sinl=no
21754 rm -f core conftest.err conftest.$ac_objext \
21755 conftest$ac_exeext conftest.$ac_ext
21757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinl" >&5
21758 $as_echo "$gcc_cv_math_func_sinl" >&6; }
21759 if test $gcc_cv_math_func_sinl = yes; then
21761 cat >>confdefs.h <<_ACEOF
21762 #define HAVE_SINL 1
21763 _ACEOF
21770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinf" >&5
21771 $as_echo_n "checking for csinf... " >&6; }
21772 if test "${gcc_cv_math_func_csinf+set}" = set; then :
21773 $as_echo_n "(cached) " >&6
21774 else
21775 if test x$gcc_no_link = xyes; then
21776 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21779 /* end confdefs.h. */
21781 #ifdef HAVE_COMPLEX_H
21782 #include <complex.h>
21783 #endif
21784 #ifdef HAVE_MATH_H
21785 #include <math.h>
21786 #endif
21788 int (*ptr)() = (int (*)())csinf;
21791 main ()
21793 return 0;
21796 _ACEOF
21797 if ac_fn_c_try_link "$LINENO"; then :
21798 gcc_cv_math_func_csinf=yes
21799 else
21800 gcc_cv_math_func_csinf=no
21802 rm -f core conftest.err conftest.$ac_objext \
21803 conftest$ac_exeext conftest.$ac_ext
21805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinf" >&5
21806 $as_echo "$gcc_cv_math_func_csinf" >&6; }
21807 if test $gcc_cv_math_func_csinf = yes; then
21809 cat >>confdefs.h <<_ACEOF
21810 #define HAVE_CSINF 1
21811 _ACEOF
21818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csin" >&5
21819 $as_echo_n "checking for csin... " >&6; }
21820 if test "${gcc_cv_math_func_csin+set}" = set; then :
21821 $as_echo_n "(cached) " >&6
21822 else
21823 if test x$gcc_no_link = xyes; then
21824 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21827 /* end confdefs.h. */
21829 #ifdef HAVE_COMPLEX_H
21830 #include <complex.h>
21831 #endif
21832 #ifdef HAVE_MATH_H
21833 #include <math.h>
21834 #endif
21836 int (*ptr)() = (int (*)())csin;
21839 main ()
21841 return 0;
21844 _ACEOF
21845 if ac_fn_c_try_link "$LINENO"; then :
21846 gcc_cv_math_func_csin=yes
21847 else
21848 gcc_cv_math_func_csin=no
21850 rm -f core conftest.err conftest.$ac_objext \
21851 conftest$ac_exeext conftest.$ac_ext
21853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csin" >&5
21854 $as_echo "$gcc_cv_math_func_csin" >&6; }
21855 if test $gcc_cv_math_func_csin = yes; then
21857 cat >>confdefs.h <<_ACEOF
21858 #define HAVE_CSIN 1
21859 _ACEOF
21866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinl" >&5
21867 $as_echo_n "checking for csinl... " >&6; }
21868 if test "${gcc_cv_math_func_csinl+set}" = set; then :
21869 $as_echo_n "(cached) " >&6
21870 else
21871 if test x$gcc_no_link = xyes; then
21872 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21875 /* end confdefs.h. */
21877 #ifdef HAVE_COMPLEX_H
21878 #include <complex.h>
21879 #endif
21880 #ifdef HAVE_MATH_H
21881 #include <math.h>
21882 #endif
21884 int (*ptr)() = (int (*)())csinl;
21887 main ()
21889 return 0;
21892 _ACEOF
21893 if ac_fn_c_try_link "$LINENO"; then :
21894 gcc_cv_math_func_csinl=yes
21895 else
21896 gcc_cv_math_func_csinl=no
21898 rm -f core conftest.err conftest.$ac_objext \
21899 conftest$ac_exeext conftest.$ac_ext
21901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinl" >&5
21902 $as_echo "$gcc_cv_math_func_csinl" >&6; }
21903 if test $gcc_cv_math_func_csinl = yes; then
21905 cat >>confdefs.h <<_ACEOF
21906 #define HAVE_CSINL 1
21907 _ACEOF
21914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhf" >&5
21915 $as_echo_n "checking for sinhf... " >&6; }
21916 if test "${gcc_cv_math_func_sinhf+set}" = set; then :
21917 $as_echo_n "(cached) " >&6
21918 else
21919 if test x$gcc_no_link = xyes; then
21920 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21923 /* end confdefs.h. */
21925 #ifdef HAVE_COMPLEX_H
21926 #include <complex.h>
21927 #endif
21928 #ifdef HAVE_MATH_H
21929 #include <math.h>
21930 #endif
21932 int (*ptr)() = (int (*)())sinhf;
21935 main ()
21937 return 0;
21940 _ACEOF
21941 if ac_fn_c_try_link "$LINENO"; then :
21942 gcc_cv_math_func_sinhf=yes
21943 else
21944 gcc_cv_math_func_sinhf=no
21946 rm -f core conftest.err conftest.$ac_objext \
21947 conftest$ac_exeext conftest.$ac_ext
21949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhf" >&5
21950 $as_echo "$gcc_cv_math_func_sinhf" >&6; }
21951 if test $gcc_cv_math_func_sinhf = yes; then
21953 cat >>confdefs.h <<_ACEOF
21954 #define HAVE_SINHF 1
21955 _ACEOF
21962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinh" >&5
21963 $as_echo_n "checking for sinh... " >&6; }
21964 if test "${gcc_cv_math_func_sinh+set}" = set; then :
21965 $as_echo_n "(cached) " >&6
21966 else
21967 if test x$gcc_no_link = xyes; then
21968 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21971 /* end confdefs.h. */
21973 #ifdef HAVE_COMPLEX_H
21974 #include <complex.h>
21975 #endif
21976 #ifdef HAVE_MATH_H
21977 #include <math.h>
21978 #endif
21980 int (*ptr)() = (int (*)())sinh;
21983 main ()
21985 return 0;
21988 _ACEOF
21989 if ac_fn_c_try_link "$LINENO"; then :
21990 gcc_cv_math_func_sinh=yes
21991 else
21992 gcc_cv_math_func_sinh=no
21994 rm -f core conftest.err conftest.$ac_objext \
21995 conftest$ac_exeext conftest.$ac_ext
21997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinh" >&5
21998 $as_echo "$gcc_cv_math_func_sinh" >&6; }
21999 if test $gcc_cv_math_func_sinh = yes; then
22001 cat >>confdefs.h <<_ACEOF
22002 #define HAVE_SINH 1
22003 _ACEOF
22010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhl" >&5
22011 $as_echo_n "checking for sinhl... " >&6; }
22012 if test "${gcc_cv_math_func_sinhl+set}" = set; then :
22013 $as_echo_n "(cached) " >&6
22014 else
22015 if test x$gcc_no_link = xyes; then
22016 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22018 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22019 /* end confdefs.h. */
22021 #ifdef HAVE_COMPLEX_H
22022 #include <complex.h>
22023 #endif
22024 #ifdef HAVE_MATH_H
22025 #include <math.h>
22026 #endif
22028 int (*ptr)() = (int (*)())sinhl;
22031 main ()
22033 return 0;
22036 _ACEOF
22037 if ac_fn_c_try_link "$LINENO"; then :
22038 gcc_cv_math_func_sinhl=yes
22039 else
22040 gcc_cv_math_func_sinhl=no
22042 rm -f core conftest.err conftest.$ac_objext \
22043 conftest$ac_exeext conftest.$ac_ext
22045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhl" >&5
22046 $as_echo "$gcc_cv_math_func_sinhl" >&6; }
22047 if test $gcc_cv_math_func_sinhl = yes; then
22049 cat >>confdefs.h <<_ACEOF
22050 #define HAVE_SINHL 1
22051 _ACEOF
22058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhf" >&5
22059 $as_echo_n "checking for csinhf... " >&6; }
22060 if test "${gcc_cv_math_func_csinhf+set}" = set; then :
22061 $as_echo_n "(cached) " >&6
22062 else
22063 if test x$gcc_no_link = xyes; then
22064 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22067 /* end confdefs.h. */
22069 #ifdef HAVE_COMPLEX_H
22070 #include <complex.h>
22071 #endif
22072 #ifdef HAVE_MATH_H
22073 #include <math.h>
22074 #endif
22076 int (*ptr)() = (int (*)())csinhf;
22079 main ()
22081 return 0;
22084 _ACEOF
22085 if ac_fn_c_try_link "$LINENO"; then :
22086 gcc_cv_math_func_csinhf=yes
22087 else
22088 gcc_cv_math_func_csinhf=no
22090 rm -f core conftest.err conftest.$ac_objext \
22091 conftest$ac_exeext conftest.$ac_ext
22093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhf" >&5
22094 $as_echo "$gcc_cv_math_func_csinhf" >&6; }
22095 if test $gcc_cv_math_func_csinhf = yes; then
22097 cat >>confdefs.h <<_ACEOF
22098 #define HAVE_CSINHF 1
22099 _ACEOF
22106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinh" >&5
22107 $as_echo_n "checking for csinh... " >&6; }
22108 if test "${gcc_cv_math_func_csinh+set}" = set; then :
22109 $as_echo_n "(cached) " >&6
22110 else
22111 if test x$gcc_no_link = xyes; then
22112 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22115 /* end confdefs.h. */
22117 #ifdef HAVE_COMPLEX_H
22118 #include <complex.h>
22119 #endif
22120 #ifdef HAVE_MATH_H
22121 #include <math.h>
22122 #endif
22124 int (*ptr)() = (int (*)())csinh;
22127 main ()
22129 return 0;
22132 _ACEOF
22133 if ac_fn_c_try_link "$LINENO"; then :
22134 gcc_cv_math_func_csinh=yes
22135 else
22136 gcc_cv_math_func_csinh=no
22138 rm -f core conftest.err conftest.$ac_objext \
22139 conftest$ac_exeext conftest.$ac_ext
22141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinh" >&5
22142 $as_echo "$gcc_cv_math_func_csinh" >&6; }
22143 if test $gcc_cv_math_func_csinh = yes; then
22145 cat >>confdefs.h <<_ACEOF
22146 #define HAVE_CSINH 1
22147 _ACEOF
22154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhl" >&5
22155 $as_echo_n "checking for csinhl... " >&6; }
22156 if test "${gcc_cv_math_func_csinhl+set}" = set; then :
22157 $as_echo_n "(cached) " >&6
22158 else
22159 if test x$gcc_no_link = xyes; then
22160 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22163 /* end confdefs.h. */
22165 #ifdef HAVE_COMPLEX_H
22166 #include <complex.h>
22167 #endif
22168 #ifdef HAVE_MATH_H
22169 #include <math.h>
22170 #endif
22172 int (*ptr)() = (int (*)())csinhl;
22175 main ()
22177 return 0;
22180 _ACEOF
22181 if ac_fn_c_try_link "$LINENO"; then :
22182 gcc_cv_math_func_csinhl=yes
22183 else
22184 gcc_cv_math_func_csinhl=no
22186 rm -f core conftest.err conftest.$ac_objext \
22187 conftest$ac_exeext conftest.$ac_ext
22189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhl" >&5
22190 $as_echo "$gcc_cv_math_func_csinhl" >&6; }
22191 if test $gcc_cv_math_func_csinhl = yes; then
22193 cat >>confdefs.h <<_ACEOF
22194 #define HAVE_CSINHL 1
22195 _ACEOF
22202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf" >&5
22203 $as_echo_n "checking for sqrtf... " >&6; }
22204 if test "${gcc_cv_math_func_sqrtf+set}" = set; then :
22205 $as_echo_n "(cached) " >&6
22206 else
22207 if test x$gcc_no_link = xyes; then
22208 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22211 /* end confdefs.h. */
22213 #ifdef HAVE_COMPLEX_H
22214 #include <complex.h>
22215 #endif
22216 #ifdef HAVE_MATH_H
22217 #include <math.h>
22218 #endif
22220 int (*ptr)() = (int (*)())sqrtf;
22223 main ()
22225 return 0;
22228 _ACEOF
22229 if ac_fn_c_try_link "$LINENO"; then :
22230 gcc_cv_math_func_sqrtf=yes
22231 else
22232 gcc_cv_math_func_sqrtf=no
22234 rm -f core conftest.err conftest.$ac_objext \
22235 conftest$ac_exeext conftest.$ac_ext
22237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtf" >&5
22238 $as_echo "$gcc_cv_math_func_sqrtf" >&6; }
22239 if test $gcc_cv_math_func_sqrtf = yes; then
22241 cat >>confdefs.h <<_ACEOF
22242 #define HAVE_SQRTF 1
22243 _ACEOF
22250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt" >&5
22251 $as_echo_n "checking for sqrt... " >&6; }
22252 if test "${gcc_cv_math_func_sqrt+set}" = set; then :
22253 $as_echo_n "(cached) " >&6
22254 else
22255 if test x$gcc_no_link = xyes; then
22256 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22259 /* end confdefs.h. */
22261 #ifdef HAVE_COMPLEX_H
22262 #include <complex.h>
22263 #endif
22264 #ifdef HAVE_MATH_H
22265 #include <math.h>
22266 #endif
22268 int (*ptr)() = (int (*)())sqrt;
22271 main ()
22273 return 0;
22276 _ACEOF
22277 if ac_fn_c_try_link "$LINENO"; then :
22278 gcc_cv_math_func_sqrt=yes
22279 else
22280 gcc_cv_math_func_sqrt=no
22282 rm -f core conftest.err conftest.$ac_objext \
22283 conftest$ac_exeext conftest.$ac_ext
22285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrt" >&5
22286 $as_echo "$gcc_cv_math_func_sqrt" >&6; }
22287 if test $gcc_cv_math_func_sqrt = yes; then
22289 cat >>confdefs.h <<_ACEOF
22290 #define HAVE_SQRT 1
22291 _ACEOF
22298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl" >&5
22299 $as_echo_n "checking for sqrtl... " >&6; }
22300 if test "${gcc_cv_math_func_sqrtl+set}" = set; then :
22301 $as_echo_n "(cached) " >&6
22302 else
22303 if test x$gcc_no_link = xyes; then
22304 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22307 /* end confdefs.h. */
22309 #ifdef HAVE_COMPLEX_H
22310 #include <complex.h>
22311 #endif
22312 #ifdef HAVE_MATH_H
22313 #include <math.h>
22314 #endif
22316 int (*ptr)() = (int (*)())sqrtl;
22319 main ()
22321 return 0;
22324 _ACEOF
22325 if ac_fn_c_try_link "$LINENO"; then :
22326 gcc_cv_math_func_sqrtl=yes
22327 else
22328 gcc_cv_math_func_sqrtl=no
22330 rm -f core conftest.err conftest.$ac_objext \
22331 conftest$ac_exeext conftest.$ac_ext
22333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtl" >&5
22334 $as_echo "$gcc_cv_math_func_sqrtl" >&6; }
22335 if test $gcc_cv_math_func_sqrtl = yes; then
22337 cat >>confdefs.h <<_ACEOF
22338 #define HAVE_SQRTL 1
22339 _ACEOF
22346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtf" >&5
22347 $as_echo_n "checking for csqrtf... " >&6; }
22348 if test "${gcc_cv_math_func_csqrtf+set}" = set; then :
22349 $as_echo_n "(cached) " >&6
22350 else
22351 if test x$gcc_no_link = xyes; then
22352 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22355 /* end confdefs.h. */
22357 #ifdef HAVE_COMPLEX_H
22358 #include <complex.h>
22359 #endif
22360 #ifdef HAVE_MATH_H
22361 #include <math.h>
22362 #endif
22364 int (*ptr)() = (int (*)())csqrtf;
22367 main ()
22369 return 0;
22372 _ACEOF
22373 if ac_fn_c_try_link "$LINENO"; then :
22374 gcc_cv_math_func_csqrtf=yes
22375 else
22376 gcc_cv_math_func_csqrtf=no
22378 rm -f core conftest.err conftest.$ac_objext \
22379 conftest$ac_exeext conftest.$ac_ext
22381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtf" >&5
22382 $as_echo "$gcc_cv_math_func_csqrtf" >&6; }
22383 if test $gcc_cv_math_func_csqrtf = yes; then
22385 cat >>confdefs.h <<_ACEOF
22386 #define HAVE_CSQRTF 1
22387 _ACEOF
22394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrt" >&5
22395 $as_echo_n "checking for csqrt... " >&6; }
22396 if test "${gcc_cv_math_func_csqrt+set}" = set; then :
22397 $as_echo_n "(cached) " >&6
22398 else
22399 if test x$gcc_no_link = xyes; then
22400 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22403 /* end confdefs.h. */
22405 #ifdef HAVE_COMPLEX_H
22406 #include <complex.h>
22407 #endif
22408 #ifdef HAVE_MATH_H
22409 #include <math.h>
22410 #endif
22412 int (*ptr)() = (int (*)())csqrt;
22415 main ()
22417 return 0;
22420 _ACEOF
22421 if ac_fn_c_try_link "$LINENO"; then :
22422 gcc_cv_math_func_csqrt=yes
22423 else
22424 gcc_cv_math_func_csqrt=no
22426 rm -f core conftest.err conftest.$ac_objext \
22427 conftest$ac_exeext conftest.$ac_ext
22429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrt" >&5
22430 $as_echo "$gcc_cv_math_func_csqrt" >&6; }
22431 if test $gcc_cv_math_func_csqrt = yes; then
22433 cat >>confdefs.h <<_ACEOF
22434 #define HAVE_CSQRT 1
22435 _ACEOF
22442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtl" >&5
22443 $as_echo_n "checking for csqrtl... " >&6; }
22444 if test "${gcc_cv_math_func_csqrtl+set}" = set; then :
22445 $as_echo_n "(cached) " >&6
22446 else
22447 if test x$gcc_no_link = xyes; then
22448 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22451 /* end confdefs.h. */
22453 #ifdef HAVE_COMPLEX_H
22454 #include <complex.h>
22455 #endif
22456 #ifdef HAVE_MATH_H
22457 #include <math.h>
22458 #endif
22460 int (*ptr)() = (int (*)())csqrtl;
22463 main ()
22465 return 0;
22468 _ACEOF
22469 if ac_fn_c_try_link "$LINENO"; then :
22470 gcc_cv_math_func_csqrtl=yes
22471 else
22472 gcc_cv_math_func_csqrtl=no
22474 rm -f core conftest.err conftest.$ac_objext \
22475 conftest$ac_exeext conftest.$ac_ext
22477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtl" >&5
22478 $as_echo "$gcc_cv_math_func_csqrtl" >&6; }
22479 if test $gcc_cv_math_func_csqrtl = yes; then
22481 cat >>confdefs.h <<_ACEOF
22482 #define HAVE_CSQRTL 1
22483 _ACEOF
22490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanf" >&5
22491 $as_echo_n "checking for tanf... " >&6; }
22492 if test "${gcc_cv_math_func_tanf+set}" = set; then :
22493 $as_echo_n "(cached) " >&6
22494 else
22495 if test x$gcc_no_link = xyes; then
22496 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22499 /* end confdefs.h. */
22501 #ifdef HAVE_COMPLEX_H
22502 #include <complex.h>
22503 #endif
22504 #ifdef HAVE_MATH_H
22505 #include <math.h>
22506 #endif
22508 int (*ptr)() = (int (*)())tanf;
22511 main ()
22513 return 0;
22516 _ACEOF
22517 if ac_fn_c_try_link "$LINENO"; then :
22518 gcc_cv_math_func_tanf=yes
22519 else
22520 gcc_cv_math_func_tanf=no
22522 rm -f core conftest.err conftest.$ac_objext \
22523 conftest$ac_exeext conftest.$ac_ext
22525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanf" >&5
22526 $as_echo "$gcc_cv_math_func_tanf" >&6; }
22527 if test $gcc_cv_math_func_tanf = yes; then
22529 cat >>confdefs.h <<_ACEOF
22530 #define HAVE_TANF 1
22531 _ACEOF
22538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tan" >&5
22539 $as_echo_n "checking for tan... " >&6; }
22540 if test "${gcc_cv_math_func_tan+set}" = set; then :
22541 $as_echo_n "(cached) " >&6
22542 else
22543 if test x$gcc_no_link = xyes; then
22544 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22547 /* end confdefs.h. */
22549 #ifdef HAVE_COMPLEX_H
22550 #include <complex.h>
22551 #endif
22552 #ifdef HAVE_MATH_H
22553 #include <math.h>
22554 #endif
22556 int (*ptr)() = (int (*)())tan;
22559 main ()
22561 return 0;
22564 _ACEOF
22565 if ac_fn_c_try_link "$LINENO"; then :
22566 gcc_cv_math_func_tan=yes
22567 else
22568 gcc_cv_math_func_tan=no
22570 rm -f core conftest.err conftest.$ac_objext \
22571 conftest$ac_exeext conftest.$ac_ext
22573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tan" >&5
22574 $as_echo "$gcc_cv_math_func_tan" >&6; }
22575 if test $gcc_cv_math_func_tan = yes; then
22577 cat >>confdefs.h <<_ACEOF
22578 #define HAVE_TAN 1
22579 _ACEOF
22586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanl" >&5
22587 $as_echo_n "checking for tanl... " >&6; }
22588 if test "${gcc_cv_math_func_tanl+set}" = set; then :
22589 $as_echo_n "(cached) " >&6
22590 else
22591 if test x$gcc_no_link = xyes; then
22592 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22595 /* end confdefs.h. */
22597 #ifdef HAVE_COMPLEX_H
22598 #include <complex.h>
22599 #endif
22600 #ifdef HAVE_MATH_H
22601 #include <math.h>
22602 #endif
22604 int (*ptr)() = (int (*)())tanl;
22607 main ()
22609 return 0;
22612 _ACEOF
22613 if ac_fn_c_try_link "$LINENO"; then :
22614 gcc_cv_math_func_tanl=yes
22615 else
22616 gcc_cv_math_func_tanl=no
22618 rm -f core conftest.err conftest.$ac_objext \
22619 conftest$ac_exeext conftest.$ac_ext
22621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanl" >&5
22622 $as_echo "$gcc_cv_math_func_tanl" >&6; }
22623 if test $gcc_cv_math_func_tanl = yes; then
22625 cat >>confdefs.h <<_ACEOF
22626 #define HAVE_TANL 1
22627 _ACEOF
22634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanf" >&5
22635 $as_echo_n "checking for ctanf... " >&6; }
22636 if test "${gcc_cv_math_func_ctanf+set}" = set; then :
22637 $as_echo_n "(cached) " >&6
22638 else
22639 if test x$gcc_no_link = xyes; then
22640 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22643 /* end confdefs.h. */
22645 #ifdef HAVE_COMPLEX_H
22646 #include <complex.h>
22647 #endif
22648 #ifdef HAVE_MATH_H
22649 #include <math.h>
22650 #endif
22652 int (*ptr)() = (int (*)())ctanf;
22655 main ()
22657 return 0;
22660 _ACEOF
22661 if ac_fn_c_try_link "$LINENO"; then :
22662 gcc_cv_math_func_ctanf=yes
22663 else
22664 gcc_cv_math_func_ctanf=no
22666 rm -f core conftest.err conftest.$ac_objext \
22667 conftest$ac_exeext conftest.$ac_ext
22669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanf" >&5
22670 $as_echo "$gcc_cv_math_func_ctanf" >&6; }
22671 if test $gcc_cv_math_func_ctanf = yes; then
22673 cat >>confdefs.h <<_ACEOF
22674 #define HAVE_CTANF 1
22675 _ACEOF
22682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctan" >&5
22683 $as_echo_n "checking for ctan... " >&6; }
22684 if test "${gcc_cv_math_func_ctan+set}" = set; then :
22685 $as_echo_n "(cached) " >&6
22686 else
22687 if test x$gcc_no_link = xyes; then
22688 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22691 /* end confdefs.h. */
22693 #ifdef HAVE_COMPLEX_H
22694 #include <complex.h>
22695 #endif
22696 #ifdef HAVE_MATH_H
22697 #include <math.h>
22698 #endif
22700 int (*ptr)() = (int (*)())ctan;
22703 main ()
22705 return 0;
22708 _ACEOF
22709 if ac_fn_c_try_link "$LINENO"; then :
22710 gcc_cv_math_func_ctan=yes
22711 else
22712 gcc_cv_math_func_ctan=no
22714 rm -f core conftest.err conftest.$ac_objext \
22715 conftest$ac_exeext conftest.$ac_ext
22717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctan" >&5
22718 $as_echo "$gcc_cv_math_func_ctan" >&6; }
22719 if test $gcc_cv_math_func_ctan = yes; then
22721 cat >>confdefs.h <<_ACEOF
22722 #define HAVE_CTAN 1
22723 _ACEOF
22730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanl" >&5
22731 $as_echo_n "checking for ctanl... " >&6; }
22732 if test "${gcc_cv_math_func_ctanl+set}" = set; then :
22733 $as_echo_n "(cached) " >&6
22734 else
22735 if test x$gcc_no_link = xyes; then
22736 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22739 /* end confdefs.h. */
22741 #ifdef HAVE_COMPLEX_H
22742 #include <complex.h>
22743 #endif
22744 #ifdef HAVE_MATH_H
22745 #include <math.h>
22746 #endif
22748 int (*ptr)() = (int (*)())ctanl;
22751 main ()
22753 return 0;
22756 _ACEOF
22757 if ac_fn_c_try_link "$LINENO"; then :
22758 gcc_cv_math_func_ctanl=yes
22759 else
22760 gcc_cv_math_func_ctanl=no
22762 rm -f core conftest.err conftest.$ac_objext \
22763 conftest$ac_exeext conftest.$ac_ext
22765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanl" >&5
22766 $as_echo "$gcc_cv_math_func_ctanl" >&6; }
22767 if test $gcc_cv_math_func_ctanl = yes; then
22769 cat >>confdefs.h <<_ACEOF
22770 #define HAVE_CTANL 1
22771 _ACEOF
22778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhf" >&5
22779 $as_echo_n "checking for tanhf... " >&6; }
22780 if test "${gcc_cv_math_func_tanhf+set}" = set; then :
22781 $as_echo_n "(cached) " >&6
22782 else
22783 if test x$gcc_no_link = xyes; then
22784 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22787 /* end confdefs.h. */
22789 #ifdef HAVE_COMPLEX_H
22790 #include <complex.h>
22791 #endif
22792 #ifdef HAVE_MATH_H
22793 #include <math.h>
22794 #endif
22796 int (*ptr)() = (int (*)())tanhf;
22799 main ()
22801 return 0;
22804 _ACEOF
22805 if ac_fn_c_try_link "$LINENO"; then :
22806 gcc_cv_math_func_tanhf=yes
22807 else
22808 gcc_cv_math_func_tanhf=no
22810 rm -f core conftest.err conftest.$ac_objext \
22811 conftest$ac_exeext conftest.$ac_ext
22813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhf" >&5
22814 $as_echo "$gcc_cv_math_func_tanhf" >&6; }
22815 if test $gcc_cv_math_func_tanhf = yes; then
22817 cat >>confdefs.h <<_ACEOF
22818 #define HAVE_TANHF 1
22819 _ACEOF
22826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanh" >&5
22827 $as_echo_n "checking for tanh... " >&6; }
22828 if test "${gcc_cv_math_func_tanh+set}" = set; then :
22829 $as_echo_n "(cached) " >&6
22830 else
22831 if test x$gcc_no_link = xyes; then
22832 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22835 /* end confdefs.h. */
22837 #ifdef HAVE_COMPLEX_H
22838 #include <complex.h>
22839 #endif
22840 #ifdef HAVE_MATH_H
22841 #include <math.h>
22842 #endif
22844 int (*ptr)() = (int (*)())tanh;
22847 main ()
22849 return 0;
22852 _ACEOF
22853 if ac_fn_c_try_link "$LINENO"; then :
22854 gcc_cv_math_func_tanh=yes
22855 else
22856 gcc_cv_math_func_tanh=no
22858 rm -f core conftest.err conftest.$ac_objext \
22859 conftest$ac_exeext conftest.$ac_ext
22861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanh" >&5
22862 $as_echo "$gcc_cv_math_func_tanh" >&6; }
22863 if test $gcc_cv_math_func_tanh = yes; then
22865 cat >>confdefs.h <<_ACEOF
22866 #define HAVE_TANH 1
22867 _ACEOF
22874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhl" >&5
22875 $as_echo_n "checking for tanhl... " >&6; }
22876 if test "${gcc_cv_math_func_tanhl+set}" = set; then :
22877 $as_echo_n "(cached) " >&6
22878 else
22879 if test x$gcc_no_link = xyes; then
22880 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22883 /* end confdefs.h. */
22885 #ifdef HAVE_COMPLEX_H
22886 #include <complex.h>
22887 #endif
22888 #ifdef HAVE_MATH_H
22889 #include <math.h>
22890 #endif
22892 int (*ptr)() = (int (*)())tanhl;
22895 main ()
22897 return 0;
22900 _ACEOF
22901 if ac_fn_c_try_link "$LINENO"; then :
22902 gcc_cv_math_func_tanhl=yes
22903 else
22904 gcc_cv_math_func_tanhl=no
22906 rm -f core conftest.err conftest.$ac_objext \
22907 conftest$ac_exeext conftest.$ac_ext
22909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhl" >&5
22910 $as_echo "$gcc_cv_math_func_tanhl" >&6; }
22911 if test $gcc_cv_math_func_tanhl = yes; then
22913 cat >>confdefs.h <<_ACEOF
22914 #define HAVE_TANHL 1
22915 _ACEOF
22922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhf" >&5
22923 $as_echo_n "checking for ctanhf... " >&6; }
22924 if test "${gcc_cv_math_func_ctanhf+set}" = set; then :
22925 $as_echo_n "(cached) " >&6
22926 else
22927 if test x$gcc_no_link = xyes; then
22928 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22931 /* end confdefs.h. */
22933 #ifdef HAVE_COMPLEX_H
22934 #include <complex.h>
22935 #endif
22936 #ifdef HAVE_MATH_H
22937 #include <math.h>
22938 #endif
22940 int (*ptr)() = (int (*)())ctanhf;
22943 main ()
22945 return 0;
22948 _ACEOF
22949 if ac_fn_c_try_link "$LINENO"; then :
22950 gcc_cv_math_func_ctanhf=yes
22951 else
22952 gcc_cv_math_func_ctanhf=no
22954 rm -f core conftest.err conftest.$ac_objext \
22955 conftest$ac_exeext conftest.$ac_ext
22957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhf" >&5
22958 $as_echo "$gcc_cv_math_func_ctanhf" >&6; }
22959 if test $gcc_cv_math_func_ctanhf = yes; then
22961 cat >>confdefs.h <<_ACEOF
22962 #define HAVE_CTANHF 1
22963 _ACEOF
22970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanh" >&5
22971 $as_echo_n "checking for ctanh... " >&6; }
22972 if test "${gcc_cv_math_func_ctanh+set}" = set; then :
22973 $as_echo_n "(cached) " >&6
22974 else
22975 if test x$gcc_no_link = xyes; then
22976 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22978 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22979 /* end confdefs.h. */
22981 #ifdef HAVE_COMPLEX_H
22982 #include <complex.h>
22983 #endif
22984 #ifdef HAVE_MATH_H
22985 #include <math.h>
22986 #endif
22988 int (*ptr)() = (int (*)())ctanh;
22991 main ()
22993 return 0;
22996 _ACEOF
22997 if ac_fn_c_try_link "$LINENO"; then :
22998 gcc_cv_math_func_ctanh=yes
22999 else
23000 gcc_cv_math_func_ctanh=no
23002 rm -f core conftest.err conftest.$ac_objext \
23003 conftest$ac_exeext conftest.$ac_ext
23005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanh" >&5
23006 $as_echo "$gcc_cv_math_func_ctanh" >&6; }
23007 if test $gcc_cv_math_func_ctanh = yes; then
23009 cat >>confdefs.h <<_ACEOF
23010 #define HAVE_CTANH 1
23011 _ACEOF
23018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhl" >&5
23019 $as_echo_n "checking for ctanhl... " >&6; }
23020 if test "${gcc_cv_math_func_ctanhl+set}" = set; then :
23021 $as_echo_n "(cached) " >&6
23022 else
23023 if test x$gcc_no_link = xyes; then
23024 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23027 /* end confdefs.h. */
23029 #ifdef HAVE_COMPLEX_H
23030 #include <complex.h>
23031 #endif
23032 #ifdef HAVE_MATH_H
23033 #include <math.h>
23034 #endif
23036 int (*ptr)() = (int (*)())ctanhl;
23039 main ()
23041 return 0;
23044 _ACEOF
23045 if ac_fn_c_try_link "$LINENO"; then :
23046 gcc_cv_math_func_ctanhl=yes
23047 else
23048 gcc_cv_math_func_ctanhl=no
23050 rm -f core conftest.err conftest.$ac_objext \
23051 conftest$ac_exeext conftest.$ac_ext
23053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhl" >&5
23054 $as_echo "$gcc_cv_math_func_ctanhl" >&6; }
23055 if test $gcc_cv_math_func_ctanhl = yes; then
23057 cat >>confdefs.h <<_ACEOF
23058 #define HAVE_CTANHL 1
23059 _ACEOF
23066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncf" >&5
23067 $as_echo_n "checking for truncf... " >&6; }
23068 if test "${gcc_cv_math_func_truncf+set}" = set; then :
23069 $as_echo_n "(cached) " >&6
23070 else
23071 if test x$gcc_no_link = xyes; then
23072 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23075 /* end confdefs.h. */
23077 #ifdef HAVE_COMPLEX_H
23078 #include <complex.h>
23079 #endif
23080 #ifdef HAVE_MATH_H
23081 #include <math.h>
23082 #endif
23084 int (*ptr)() = (int (*)())truncf;
23087 main ()
23089 return 0;
23092 _ACEOF
23093 if ac_fn_c_try_link "$LINENO"; then :
23094 gcc_cv_math_func_truncf=yes
23095 else
23096 gcc_cv_math_func_truncf=no
23098 rm -f core conftest.err conftest.$ac_objext \
23099 conftest$ac_exeext conftest.$ac_ext
23101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncf" >&5
23102 $as_echo "$gcc_cv_math_func_truncf" >&6; }
23103 if test $gcc_cv_math_func_truncf = yes; then
23105 cat >>confdefs.h <<_ACEOF
23106 #define HAVE_TRUNCF 1
23107 _ACEOF
23114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for trunc" >&5
23115 $as_echo_n "checking for trunc... " >&6; }
23116 if test "${gcc_cv_math_func_trunc+set}" = set; then :
23117 $as_echo_n "(cached) " >&6
23118 else
23119 if test x$gcc_no_link = xyes; then
23120 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23123 /* end confdefs.h. */
23125 #ifdef HAVE_COMPLEX_H
23126 #include <complex.h>
23127 #endif
23128 #ifdef HAVE_MATH_H
23129 #include <math.h>
23130 #endif
23132 int (*ptr)() = (int (*)())trunc;
23135 main ()
23137 return 0;
23140 _ACEOF
23141 if ac_fn_c_try_link "$LINENO"; then :
23142 gcc_cv_math_func_trunc=yes
23143 else
23144 gcc_cv_math_func_trunc=no
23146 rm -f core conftest.err conftest.$ac_objext \
23147 conftest$ac_exeext conftest.$ac_ext
23149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_trunc" >&5
23150 $as_echo "$gcc_cv_math_func_trunc" >&6; }
23151 if test $gcc_cv_math_func_trunc = yes; then
23153 cat >>confdefs.h <<_ACEOF
23154 #define HAVE_TRUNC 1
23155 _ACEOF
23162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncl" >&5
23163 $as_echo_n "checking for truncl... " >&6; }
23164 if test "${gcc_cv_math_func_truncl+set}" = set; then :
23165 $as_echo_n "(cached) " >&6
23166 else
23167 if test x$gcc_no_link = xyes; then
23168 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23171 /* end confdefs.h. */
23173 #ifdef HAVE_COMPLEX_H
23174 #include <complex.h>
23175 #endif
23176 #ifdef HAVE_MATH_H
23177 #include <math.h>
23178 #endif
23180 int (*ptr)() = (int (*)())truncl;
23183 main ()
23185 return 0;
23188 _ACEOF
23189 if ac_fn_c_try_link "$LINENO"; then :
23190 gcc_cv_math_func_truncl=yes
23191 else
23192 gcc_cv_math_func_truncl=no
23194 rm -f core conftest.err conftest.$ac_objext \
23195 conftest$ac_exeext conftest.$ac_ext
23197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncl" >&5
23198 $as_echo "$gcc_cv_math_func_truncl" >&6; }
23199 if test $gcc_cv_math_func_truncl = yes; then
23201 cat >>confdefs.h <<_ACEOF
23202 #define HAVE_TRUNCL 1
23203 _ACEOF
23210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erff" >&5
23211 $as_echo_n "checking for erff... " >&6; }
23212 if test "${gcc_cv_math_func_erff+set}" = set; then :
23213 $as_echo_n "(cached) " >&6
23214 else
23215 if test x$gcc_no_link = xyes; then
23216 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23219 /* end confdefs.h. */
23221 #ifdef HAVE_COMPLEX_H
23222 #include <complex.h>
23223 #endif
23224 #ifdef HAVE_MATH_H
23225 #include <math.h>
23226 #endif
23228 int (*ptr)() = (int (*)())erff;
23231 main ()
23233 return 0;
23236 _ACEOF
23237 if ac_fn_c_try_link "$LINENO"; then :
23238 gcc_cv_math_func_erff=yes
23239 else
23240 gcc_cv_math_func_erff=no
23242 rm -f core conftest.err conftest.$ac_objext \
23243 conftest$ac_exeext conftest.$ac_ext
23245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erff" >&5
23246 $as_echo "$gcc_cv_math_func_erff" >&6; }
23247 if test $gcc_cv_math_func_erff = yes; then
23249 cat >>confdefs.h <<_ACEOF
23250 #define HAVE_ERFF 1
23251 _ACEOF
23258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erf" >&5
23259 $as_echo_n "checking for erf... " >&6; }
23260 if test "${gcc_cv_math_func_erf+set}" = set; then :
23261 $as_echo_n "(cached) " >&6
23262 else
23263 if test x$gcc_no_link = xyes; then
23264 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23267 /* end confdefs.h. */
23269 #ifdef HAVE_COMPLEX_H
23270 #include <complex.h>
23271 #endif
23272 #ifdef HAVE_MATH_H
23273 #include <math.h>
23274 #endif
23276 int (*ptr)() = (int (*)())erf;
23279 main ()
23281 return 0;
23284 _ACEOF
23285 if ac_fn_c_try_link "$LINENO"; then :
23286 gcc_cv_math_func_erf=yes
23287 else
23288 gcc_cv_math_func_erf=no
23290 rm -f core conftest.err conftest.$ac_objext \
23291 conftest$ac_exeext conftest.$ac_ext
23293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erf" >&5
23294 $as_echo "$gcc_cv_math_func_erf" >&6; }
23295 if test $gcc_cv_math_func_erf = yes; then
23297 cat >>confdefs.h <<_ACEOF
23298 #define HAVE_ERF 1
23299 _ACEOF
23306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfl" >&5
23307 $as_echo_n "checking for erfl... " >&6; }
23308 if test "${gcc_cv_math_func_erfl+set}" = set; then :
23309 $as_echo_n "(cached) " >&6
23310 else
23311 if test x$gcc_no_link = xyes; then
23312 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23315 /* end confdefs.h. */
23317 #ifdef HAVE_COMPLEX_H
23318 #include <complex.h>
23319 #endif
23320 #ifdef HAVE_MATH_H
23321 #include <math.h>
23322 #endif
23324 int (*ptr)() = (int (*)())erfl;
23327 main ()
23329 return 0;
23332 _ACEOF
23333 if ac_fn_c_try_link "$LINENO"; then :
23334 gcc_cv_math_func_erfl=yes
23335 else
23336 gcc_cv_math_func_erfl=no
23338 rm -f core conftest.err conftest.$ac_objext \
23339 conftest$ac_exeext conftest.$ac_ext
23341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfl" >&5
23342 $as_echo "$gcc_cv_math_func_erfl" >&6; }
23343 if test $gcc_cv_math_func_erfl = yes; then
23345 cat >>confdefs.h <<_ACEOF
23346 #define HAVE_ERFL 1
23347 _ACEOF
23354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcf" >&5
23355 $as_echo_n "checking for erfcf... " >&6; }
23356 if test "${gcc_cv_math_func_erfcf+set}" = set; then :
23357 $as_echo_n "(cached) " >&6
23358 else
23359 if test x$gcc_no_link = xyes; then
23360 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23363 /* end confdefs.h. */
23365 #ifdef HAVE_COMPLEX_H
23366 #include <complex.h>
23367 #endif
23368 #ifdef HAVE_MATH_H
23369 #include <math.h>
23370 #endif
23372 int (*ptr)() = (int (*)())erfcf;
23375 main ()
23377 return 0;
23380 _ACEOF
23381 if ac_fn_c_try_link "$LINENO"; then :
23382 gcc_cv_math_func_erfcf=yes
23383 else
23384 gcc_cv_math_func_erfcf=no
23386 rm -f core conftest.err conftest.$ac_objext \
23387 conftest$ac_exeext conftest.$ac_ext
23389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcf" >&5
23390 $as_echo "$gcc_cv_math_func_erfcf" >&6; }
23391 if test $gcc_cv_math_func_erfcf = yes; then
23393 cat >>confdefs.h <<_ACEOF
23394 #define HAVE_ERFCF 1
23395 _ACEOF
23402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfc" >&5
23403 $as_echo_n "checking for erfc... " >&6; }
23404 if test "${gcc_cv_math_func_erfc+set}" = set; then :
23405 $as_echo_n "(cached) " >&6
23406 else
23407 if test x$gcc_no_link = xyes; then
23408 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23411 /* end confdefs.h. */
23413 #ifdef HAVE_COMPLEX_H
23414 #include <complex.h>
23415 #endif
23416 #ifdef HAVE_MATH_H
23417 #include <math.h>
23418 #endif
23420 int (*ptr)() = (int (*)())erfc;
23423 main ()
23425 return 0;
23428 _ACEOF
23429 if ac_fn_c_try_link "$LINENO"; then :
23430 gcc_cv_math_func_erfc=yes
23431 else
23432 gcc_cv_math_func_erfc=no
23434 rm -f core conftest.err conftest.$ac_objext \
23435 conftest$ac_exeext conftest.$ac_ext
23437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfc" >&5
23438 $as_echo "$gcc_cv_math_func_erfc" >&6; }
23439 if test $gcc_cv_math_func_erfc = yes; then
23441 cat >>confdefs.h <<_ACEOF
23442 #define HAVE_ERFC 1
23443 _ACEOF
23450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcl" >&5
23451 $as_echo_n "checking for erfcl... " >&6; }
23452 if test "${gcc_cv_math_func_erfcl+set}" = set; then :
23453 $as_echo_n "(cached) " >&6
23454 else
23455 if test x$gcc_no_link = xyes; then
23456 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23459 /* end confdefs.h. */
23461 #ifdef HAVE_COMPLEX_H
23462 #include <complex.h>
23463 #endif
23464 #ifdef HAVE_MATH_H
23465 #include <math.h>
23466 #endif
23468 int (*ptr)() = (int (*)())erfcl;
23471 main ()
23473 return 0;
23476 _ACEOF
23477 if ac_fn_c_try_link "$LINENO"; then :
23478 gcc_cv_math_func_erfcl=yes
23479 else
23480 gcc_cv_math_func_erfcl=no
23482 rm -f core conftest.err conftest.$ac_objext \
23483 conftest$ac_exeext conftest.$ac_ext
23485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcl" >&5
23486 $as_echo "$gcc_cv_math_func_erfcl" >&6; }
23487 if test $gcc_cv_math_func_erfcl = yes; then
23489 cat >>confdefs.h <<_ACEOF
23490 #define HAVE_ERFCL 1
23491 _ACEOF
23498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0f" >&5
23499 $as_echo_n "checking for j0f... " >&6; }
23500 if test "${gcc_cv_math_func_j0f+set}" = set; then :
23501 $as_echo_n "(cached) " >&6
23502 else
23503 if test x$gcc_no_link = xyes; then
23504 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23507 /* end confdefs.h. */
23509 #ifdef HAVE_COMPLEX_H
23510 #include <complex.h>
23511 #endif
23512 #ifdef HAVE_MATH_H
23513 #include <math.h>
23514 #endif
23516 int (*ptr)() = (int (*)())j0f;
23519 main ()
23521 return 0;
23524 _ACEOF
23525 if ac_fn_c_try_link "$LINENO"; then :
23526 gcc_cv_math_func_j0f=yes
23527 else
23528 gcc_cv_math_func_j0f=no
23530 rm -f core conftest.err conftest.$ac_objext \
23531 conftest$ac_exeext conftest.$ac_ext
23533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0f" >&5
23534 $as_echo "$gcc_cv_math_func_j0f" >&6; }
23535 if test $gcc_cv_math_func_j0f = yes; then
23537 cat >>confdefs.h <<_ACEOF
23538 #define HAVE_J0F 1
23539 _ACEOF
23546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0" >&5
23547 $as_echo_n "checking for j0... " >&6; }
23548 if test "${gcc_cv_math_func_j0+set}" = set; then :
23549 $as_echo_n "(cached) " >&6
23550 else
23551 if test x$gcc_no_link = xyes; then
23552 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23554 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23555 /* end confdefs.h. */
23557 #ifdef HAVE_COMPLEX_H
23558 #include <complex.h>
23559 #endif
23560 #ifdef HAVE_MATH_H
23561 #include <math.h>
23562 #endif
23564 int (*ptr)() = (int (*)())j0;
23567 main ()
23569 return 0;
23572 _ACEOF
23573 if ac_fn_c_try_link "$LINENO"; then :
23574 gcc_cv_math_func_j0=yes
23575 else
23576 gcc_cv_math_func_j0=no
23578 rm -f core conftest.err conftest.$ac_objext \
23579 conftest$ac_exeext conftest.$ac_ext
23581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0" >&5
23582 $as_echo "$gcc_cv_math_func_j0" >&6; }
23583 if test $gcc_cv_math_func_j0 = yes; then
23585 cat >>confdefs.h <<_ACEOF
23586 #define HAVE_J0 1
23587 _ACEOF
23594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0l" >&5
23595 $as_echo_n "checking for j0l... " >&6; }
23596 if test "${gcc_cv_math_func_j0l+set}" = set; then :
23597 $as_echo_n "(cached) " >&6
23598 else
23599 if test x$gcc_no_link = xyes; then
23600 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23603 /* end confdefs.h. */
23605 #ifdef HAVE_COMPLEX_H
23606 #include <complex.h>
23607 #endif
23608 #ifdef HAVE_MATH_H
23609 #include <math.h>
23610 #endif
23612 int (*ptr)() = (int (*)())j0l;
23615 main ()
23617 return 0;
23620 _ACEOF
23621 if ac_fn_c_try_link "$LINENO"; then :
23622 gcc_cv_math_func_j0l=yes
23623 else
23624 gcc_cv_math_func_j0l=no
23626 rm -f core conftest.err conftest.$ac_objext \
23627 conftest$ac_exeext conftest.$ac_ext
23629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0l" >&5
23630 $as_echo "$gcc_cv_math_func_j0l" >&6; }
23631 if test $gcc_cv_math_func_j0l = yes; then
23633 cat >>confdefs.h <<_ACEOF
23634 #define HAVE_J0L 1
23635 _ACEOF
23642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1f" >&5
23643 $as_echo_n "checking for j1f... " >&6; }
23644 if test "${gcc_cv_math_func_j1f+set}" = set; then :
23645 $as_echo_n "(cached) " >&6
23646 else
23647 if test x$gcc_no_link = xyes; then
23648 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23651 /* end confdefs.h. */
23653 #ifdef HAVE_COMPLEX_H
23654 #include <complex.h>
23655 #endif
23656 #ifdef HAVE_MATH_H
23657 #include <math.h>
23658 #endif
23660 int (*ptr)() = (int (*)())j1f;
23663 main ()
23665 return 0;
23668 _ACEOF
23669 if ac_fn_c_try_link "$LINENO"; then :
23670 gcc_cv_math_func_j1f=yes
23671 else
23672 gcc_cv_math_func_j1f=no
23674 rm -f core conftest.err conftest.$ac_objext \
23675 conftest$ac_exeext conftest.$ac_ext
23677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1f" >&5
23678 $as_echo "$gcc_cv_math_func_j1f" >&6; }
23679 if test $gcc_cv_math_func_j1f = yes; then
23681 cat >>confdefs.h <<_ACEOF
23682 #define HAVE_J1F 1
23683 _ACEOF
23690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1" >&5
23691 $as_echo_n "checking for j1... " >&6; }
23692 if test "${gcc_cv_math_func_j1+set}" = set; then :
23693 $as_echo_n "(cached) " >&6
23694 else
23695 if test x$gcc_no_link = xyes; then
23696 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23699 /* end confdefs.h. */
23701 #ifdef HAVE_COMPLEX_H
23702 #include <complex.h>
23703 #endif
23704 #ifdef HAVE_MATH_H
23705 #include <math.h>
23706 #endif
23708 int (*ptr)() = (int (*)())j1;
23711 main ()
23713 return 0;
23716 _ACEOF
23717 if ac_fn_c_try_link "$LINENO"; then :
23718 gcc_cv_math_func_j1=yes
23719 else
23720 gcc_cv_math_func_j1=no
23722 rm -f core conftest.err conftest.$ac_objext \
23723 conftest$ac_exeext conftest.$ac_ext
23725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1" >&5
23726 $as_echo "$gcc_cv_math_func_j1" >&6; }
23727 if test $gcc_cv_math_func_j1 = yes; then
23729 cat >>confdefs.h <<_ACEOF
23730 #define HAVE_J1 1
23731 _ACEOF
23738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1l" >&5
23739 $as_echo_n "checking for j1l... " >&6; }
23740 if test "${gcc_cv_math_func_j1l+set}" = set; then :
23741 $as_echo_n "(cached) " >&6
23742 else
23743 if test x$gcc_no_link = xyes; then
23744 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23747 /* end confdefs.h. */
23749 #ifdef HAVE_COMPLEX_H
23750 #include <complex.h>
23751 #endif
23752 #ifdef HAVE_MATH_H
23753 #include <math.h>
23754 #endif
23756 int (*ptr)() = (int (*)())j1l;
23759 main ()
23761 return 0;
23764 _ACEOF
23765 if ac_fn_c_try_link "$LINENO"; then :
23766 gcc_cv_math_func_j1l=yes
23767 else
23768 gcc_cv_math_func_j1l=no
23770 rm -f core conftest.err conftest.$ac_objext \
23771 conftest$ac_exeext conftest.$ac_ext
23773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1l" >&5
23774 $as_echo "$gcc_cv_math_func_j1l" >&6; }
23775 if test $gcc_cv_math_func_j1l = yes; then
23777 cat >>confdefs.h <<_ACEOF
23778 #define HAVE_J1L 1
23779 _ACEOF
23786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnf" >&5
23787 $as_echo_n "checking for jnf... " >&6; }
23788 if test "${gcc_cv_math_func_jnf+set}" = set; then :
23789 $as_echo_n "(cached) " >&6
23790 else
23791 if test x$gcc_no_link = xyes; then
23792 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23794 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23795 /* end confdefs.h. */
23797 #ifdef HAVE_COMPLEX_H
23798 #include <complex.h>
23799 #endif
23800 #ifdef HAVE_MATH_H
23801 #include <math.h>
23802 #endif
23804 int (*ptr)() = (int (*)())jnf;
23807 main ()
23809 return 0;
23812 _ACEOF
23813 if ac_fn_c_try_link "$LINENO"; then :
23814 gcc_cv_math_func_jnf=yes
23815 else
23816 gcc_cv_math_func_jnf=no
23818 rm -f core conftest.err conftest.$ac_objext \
23819 conftest$ac_exeext conftest.$ac_ext
23821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnf" >&5
23822 $as_echo "$gcc_cv_math_func_jnf" >&6; }
23823 if test $gcc_cv_math_func_jnf = yes; then
23825 cat >>confdefs.h <<_ACEOF
23826 #define HAVE_JNF 1
23827 _ACEOF
23834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jn" >&5
23835 $as_echo_n "checking for jn... " >&6; }
23836 if test "${gcc_cv_math_func_jn+set}" = set; then :
23837 $as_echo_n "(cached) " >&6
23838 else
23839 if test x$gcc_no_link = xyes; then
23840 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23843 /* end confdefs.h. */
23845 #ifdef HAVE_COMPLEX_H
23846 #include <complex.h>
23847 #endif
23848 #ifdef HAVE_MATH_H
23849 #include <math.h>
23850 #endif
23852 int (*ptr)() = (int (*)())jn;
23855 main ()
23857 return 0;
23860 _ACEOF
23861 if ac_fn_c_try_link "$LINENO"; then :
23862 gcc_cv_math_func_jn=yes
23863 else
23864 gcc_cv_math_func_jn=no
23866 rm -f core conftest.err conftest.$ac_objext \
23867 conftest$ac_exeext conftest.$ac_ext
23869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jn" >&5
23870 $as_echo "$gcc_cv_math_func_jn" >&6; }
23871 if test $gcc_cv_math_func_jn = yes; then
23873 cat >>confdefs.h <<_ACEOF
23874 #define HAVE_JN 1
23875 _ACEOF
23882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnl" >&5
23883 $as_echo_n "checking for jnl... " >&6; }
23884 if test "${gcc_cv_math_func_jnl+set}" = set; then :
23885 $as_echo_n "(cached) " >&6
23886 else
23887 if test x$gcc_no_link = xyes; then
23888 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23891 /* end confdefs.h. */
23893 #ifdef HAVE_COMPLEX_H
23894 #include <complex.h>
23895 #endif
23896 #ifdef HAVE_MATH_H
23897 #include <math.h>
23898 #endif
23900 int (*ptr)() = (int (*)())jnl;
23903 main ()
23905 return 0;
23908 _ACEOF
23909 if ac_fn_c_try_link "$LINENO"; then :
23910 gcc_cv_math_func_jnl=yes
23911 else
23912 gcc_cv_math_func_jnl=no
23914 rm -f core conftest.err conftest.$ac_objext \
23915 conftest$ac_exeext conftest.$ac_ext
23917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnl" >&5
23918 $as_echo "$gcc_cv_math_func_jnl" >&6; }
23919 if test $gcc_cv_math_func_jnl = yes; then
23921 cat >>confdefs.h <<_ACEOF
23922 #define HAVE_JNL 1
23923 _ACEOF
23930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0f" >&5
23931 $as_echo_n "checking for y0f... " >&6; }
23932 if test "${gcc_cv_math_func_y0f+set}" = set; then :
23933 $as_echo_n "(cached) " >&6
23934 else
23935 if test x$gcc_no_link = xyes; then
23936 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23939 /* end confdefs.h. */
23941 #ifdef HAVE_COMPLEX_H
23942 #include <complex.h>
23943 #endif
23944 #ifdef HAVE_MATH_H
23945 #include <math.h>
23946 #endif
23948 int (*ptr)() = (int (*)())y0f;
23951 main ()
23953 return 0;
23956 _ACEOF
23957 if ac_fn_c_try_link "$LINENO"; then :
23958 gcc_cv_math_func_y0f=yes
23959 else
23960 gcc_cv_math_func_y0f=no
23962 rm -f core conftest.err conftest.$ac_objext \
23963 conftest$ac_exeext conftest.$ac_ext
23965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0f" >&5
23966 $as_echo "$gcc_cv_math_func_y0f" >&6; }
23967 if test $gcc_cv_math_func_y0f = yes; then
23969 cat >>confdefs.h <<_ACEOF
23970 #define HAVE_Y0F 1
23971 _ACEOF
23978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0" >&5
23979 $as_echo_n "checking for y0... " >&6; }
23980 if test "${gcc_cv_math_func_y0+set}" = set; then :
23981 $as_echo_n "(cached) " >&6
23982 else
23983 if test x$gcc_no_link = xyes; then
23984 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23987 /* end confdefs.h. */
23989 #ifdef HAVE_COMPLEX_H
23990 #include <complex.h>
23991 #endif
23992 #ifdef HAVE_MATH_H
23993 #include <math.h>
23994 #endif
23996 int (*ptr)() = (int (*)())y0;
23999 main ()
24001 return 0;
24004 _ACEOF
24005 if ac_fn_c_try_link "$LINENO"; then :
24006 gcc_cv_math_func_y0=yes
24007 else
24008 gcc_cv_math_func_y0=no
24010 rm -f core conftest.err conftest.$ac_objext \
24011 conftest$ac_exeext conftest.$ac_ext
24013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0" >&5
24014 $as_echo "$gcc_cv_math_func_y0" >&6; }
24015 if test $gcc_cv_math_func_y0 = yes; then
24017 cat >>confdefs.h <<_ACEOF
24018 #define HAVE_Y0 1
24019 _ACEOF
24026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0l" >&5
24027 $as_echo_n "checking for y0l... " >&6; }
24028 if test "${gcc_cv_math_func_y0l+set}" = set; then :
24029 $as_echo_n "(cached) " >&6
24030 else
24031 if test x$gcc_no_link = xyes; then
24032 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24035 /* end confdefs.h. */
24037 #ifdef HAVE_COMPLEX_H
24038 #include <complex.h>
24039 #endif
24040 #ifdef HAVE_MATH_H
24041 #include <math.h>
24042 #endif
24044 int (*ptr)() = (int (*)())y0l;
24047 main ()
24049 return 0;
24052 _ACEOF
24053 if ac_fn_c_try_link "$LINENO"; then :
24054 gcc_cv_math_func_y0l=yes
24055 else
24056 gcc_cv_math_func_y0l=no
24058 rm -f core conftest.err conftest.$ac_objext \
24059 conftest$ac_exeext conftest.$ac_ext
24061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0l" >&5
24062 $as_echo "$gcc_cv_math_func_y0l" >&6; }
24063 if test $gcc_cv_math_func_y0l = yes; then
24065 cat >>confdefs.h <<_ACEOF
24066 #define HAVE_Y0L 1
24067 _ACEOF
24074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1f" >&5
24075 $as_echo_n "checking for y1f... " >&6; }
24076 if test "${gcc_cv_math_func_y1f+set}" = set; then :
24077 $as_echo_n "(cached) " >&6
24078 else
24079 if test x$gcc_no_link = xyes; then
24080 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24083 /* end confdefs.h. */
24085 #ifdef HAVE_COMPLEX_H
24086 #include <complex.h>
24087 #endif
24088 #ifdef HAVE_MATH_H
24089 #include <math.h>
24090 #endif
24092 int (*ptr)() = (int (*)())y1f;
24095 main ()
24097 return 0;
24100 _ACEOF
24101 if ac_fn_c_try_link "$LINENO"; then :
24102 gcc_cv_math_func_y1f=yes
24103 else
24104 gcc_cv_math_func_y1f=no
24106 rm -f core conftest.err conftest.$ac_objext \
24107 conftest$ac_exeext conftest.$ac_ext
24109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1f" >&5
24110 $as_echo "$gcc_cv_math_func_y1f" >&6; }
24111 if test $gcc_cv_math_func_y1f = yes; then
24113 cat >>confdefs.h <<_ACEOF
24114 #define HAVE_Y1F 1
24115 _ACEOF
24122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1" >&5
24123 $as_echo_n "checking for y1... " >&6; }
24124 if test "${gcc_cv_math_func_y1+set}" = set; then :
24125 $as_echo_n "(cached) " >&6
24126 else
24127 if test x$gcc_no_link = xyes; then
24128 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24131 /* end confdefs.h. */
24133 #ifdef HAVE_COMPLEX_H
24134 #include <complex.h>
24135 #endif
24136 #ifdef HAVE_MATH_H
24137 #include <math.h>
24138 #endif
24140 int (*ptr)() = (int (*)())y1;
24143 main ()
24145 return 0;
24148 _ACEOF
24149 if ac_fn_c_try_link "$LINENO"; then :
24150 gcc_cv_math_func_y1=yes
24151 else
24152 gcc_cv_math_func_y1=no
24154 rm -f core conftest.err conftest.$ac_objext \
24155 conftest$ac_exeext conftest.$ac_ext
24157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1" >&5
24158 $as_echo "$gcc_cv_math_func_y1" >&6; }
24159 if test $gcc_cv_math_func_y1 = yes; then
24161 cat >>confdefs.h <<_ACEOF
24162 #define HAVE_Y1 1
24163 _ACEOF
24170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1l" >&5
24171 $as_echo_n "checking for y1l... " >&6; }
24172 if test "${gcc_cv_math_func_y1l+set}" = set; then :
24173 $as_echo_n "(cached) " >&6
24174 else
24175 if test x$gcc_no_link = xyes; then
24176 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24179 /* end confdefs.h. */
24181 #ifdef HAVE_COMPLEX_H
24182 #include <complex.h>
24183 #endif
24184 #ifdef HAVE_MATH_H
24185 #include <math.h>
24186 #endif
24188 int (*ptr)() = (int (*)())y1l;
24191 main ()
24193 return 0;
24196 _ACEOF
24197 if ac_fn_c_try_link "$LINENO"; then :
24198 gcc_cv_math_func_y1l=yes
24199 else
24200 gcc_cv_math_func_y1l=no
24202 rm -f core conftest.err conftest.$ac_objext \
24203 conftest$ac_exeext conftest.$ac_ext
24205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1l" >&5
24206 $as_echo "$gcc_cv_math_func_y1l" >&6; }
24207 if test $gcc_cv_math_func_y1l = yes; then
24209 cat >>confdefs.h <<_ACEOF
24210 #define HAVE_Y1L 1
24211 _ACEOF
24218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynf" >&5
24219 $as_echo_n "checking for ynf... " >&6; }
24220 if test "${gcc_cv_math_func_ynf+set}" = set; then :
24221 $as_echo_n "(cached) " >&6
24222 else
24223 if test x$gcc_no_link = xyes; then
24224 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24227 /* end confdefs.h. */
24229 #ifdef HAVE_COMPLEX_H
24230 #include <complex.h>
24231 #endif
24232 #ifdef HAVE_MATH_H
24233 #include <math.h>
24234 #endif
24236 int (*ptr)() = (int (*)())ynf;
24239 main ()
24241 return 0;
24244 _ACEOF
24245 if ac_fn_c_try_link "$LINENO"; then :
24246 gcc_cv_math_func_ynf=yes
24247 else
24248 gcc_cv_math_func_ynf=no
24250 rm -f core conftest.err conftest.$ac_objext \
24251 conftest$ac_exeext conftest.$ac_ext
24253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynf" >&5
24254 $as_echo "$gcc_cv_math_func_ynf" >&6; }
24255 if test $gcc_cv_math_func_ynf = yes; then
24257 cat >>confdefs.h <<_ACEOF
24258 #define HAVE_YNF 1
24259 _ACEOF
24266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yn" >&5
24267 $as_echo_n "checking for yn... " >&6; }
24268 if test "${gcc_cv_math_func_yn+set}" = set; then :
24269 $as_echo_n "(cached) " >&6
24270 else
24271 if test x$gcc_no_link = xyes; then
24272 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24275 /* end confdefs.h. */
24277 #ifdef HAVE_COMPLEX_H
24278 #include <complex.h>
24279 #endif
24280 #ifdef HAVE_MATH_H
24281 #include <math.h>
24282 #endif
24284 int (*ptr)() = (int (*)())yn;
24287 main ()
24289 return 0;
24292 _ACEOF
24293 if ac_fn_c_try_link "$LINENO"; then :
24294 gcc_cv_math_func_yn=yes
24295 else
24296 gcc_cv_math_func_yn=no
24298 rm -f core conftest.err conftest.$ac_objext \
24299 conftest$ac_exeext conftest.$ac_ext
24301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_yn" >&5
24302 $as_echo "$gcc_cv_math_func_yn" >&6; }
24303 if test $gcc_cv_math_func_yn = yes; then
24305 cat >>confdefs.h <<_ACEOF
24306 #define HAVE_YN 1
24307 _ACEOF
24314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynl" >&5
24315 $as_echo_n "checking for ynl... " >&6; }
24316 if test "${gcc_cv_math_func_ynl+set}" = set; then :
24317 $as_echo_n "(cached) " >&6
24318 else
24319 if test x$gcc_no_link = xyes; then
24320 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24323 /* end confdefs.h. */
24325 #ifdef HAVE_COMPLEX_H
24326 #include <complex.h>
24327 #endif
24328 #ifdef HAVE_MATH_H
24329 #include <math.h>
24330 #endif
24332 int (*ptr)() = (int (*)())ynl;
24335 main ()
24337 return 0;
24340 _ACEOF
24341 if ac_fn_c_try_link "$LINENO"; then :
24342 gcc_cv_math_func_ynl=yes
24343 else
24344 gcc_cv_math_func_ynl=no
24346 rm -f core conftest.err conftest.$ac_objext \
24347 conftest$ac_exeext conftest.$ac_ext
24349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynl" >&5
24350 $as_echo "$gcc_cv_math_func_ynl" >&6; }
24351 if test $gcc_cv_math_func_ynl = yes; then
24353 cat >>confdefs.h <<_ACEOF
24354 #define HAVE_YNL 1
24355 _ACEOF
24362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgamma" >&5
24363 $as_echo_n "checking for tgamma... " >&6; }
24364 if test "${gcc_cv_math_func_tgamma+set}" = set; then :
24365 $as_echo_n "(cached) " >&6
24366 else
24367 if test x$gcc_no_link = xyes; then
24368 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24371 /* end confdefs.h. */
24373 #ifdef HAVE_COMPLEX_H
24374 #include <complex.h>
24375 #endif
24376 #ifdef HAVE_MATH_H
24377 #include <math.h>
24378 #endif
24380 int (*ptr)() = (int (*)())tgamma;
24383 main ()
24385 return 0;
24388 _ACEOF
24389 if ac_fn_c_try_link "$LINENO"; then :
24390 gcc_cv_math_func_tgamma=yes
24391 else
24392 gcc_cv_math_func_tgamma=no
24394 rm -f core conftest.err conftest.$ac_objext \
24395 conftest$ac_exeext conftest.$ac_ext
24397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgamma" >&5
24398 $as_echo "$gcc_cv_math_func_tgamma" >&6; }
24399 if test $gcc_cv_math_func_tgamma = yes; then
24401 cat >>confdefs.h <<_ACEOF
24402 #define HAVE_TGAMMA 1
24403 _ACEOF
24410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammaf" >&5
24411 $as_echo_n "checking for tgammaf... " >&6; }
24412 if test "${gcc_cv_math_func_tgammaf+set}" = set; then :
24413 $as_echo_n "(cached) " >&6
24414 else
24415 if test x$gcc_no_link = xyes; then
24416 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24419 /* end confdefs.h. */
24421 #ifdef HAVE_COMPLEX_H
24422 #include <complex.h>
24423 #endif
24424 #ifdef HAVE_MATH_H
24425 #include <math.h>
24426 #endif
24428 int (*ptr)() = (int (*)())tgammaf;
24431 main ()
24433 return 0;
24436 _ACEOF
24437 if ac_fn_c_try_link "$LINENO"; then :
24438 gcc_cv_math_func_tgammaf=yes
24439 else
24440 gcc_cv_math_func_tgammaf=no
24442 rm -f core conftest.err conftest.$ac_objext \
24443 conftest$ac_exeext conftest.$ac_ext
24445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgammaf" >&5
24446 $as_echo "$gcc_cv_math_func_tgammaf" >&6; }
24447 if test $gcc_cv_math_func_tgammaf = yes; then
24449 cat >>confdefs.h <<_ACEOF
24450 #define HAVE_TGAMMAF 1
24451 _ACEOF
24458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammal" >&5
24459 $as_echo_n "checking for tgammal... " >&6; }
24460 if test "${gcc_cv_math_func_tgammal+set}" = set; then :
24461 $as_echo_n "(cached) " >&6
24462 else
24463 if test x$gcc_no_link = xyes; then
24464 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24467 /* end confdefs.h. */
24469 #ifdef HAVE_COMPLEX_H
24470 #include <complex.h>
24471 #endif
24472 #ifdef HAVE_MATH_H
24473 #include <math.h>
24474 #endif
24476 int (*ptr)() = (int (*)())tgammal;
24479 main ()
24481 return 0;
24484 _ACEOF
24485 if ac_fn_c_try_link "$LINENO"; then :
24486 gcc_cv_math_func_tgammal=yes
24487 else
24488 gcc_cv_math_func_tgammal=no
24490 rm -f core conftest.err conftest.$ac_objext \
24491 conftest$ac_exeext conftest.$ac_ext
24493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgammal" >&5
24494 $as_echo "$gcc_cv_math_func_tgammal" >&6; }
24495 if test $gcc_cv_math_func_tgammal = yes; then
24497 cat >>confdefs.h <<_ACEOF
24498 #define HAVE_TGAMMAL 1
24499 _ACEOF
24506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgamma" >&5
24507 $as_echo_n "checking for lgamma... " >&6; }
24508 if test "${gcc_cv_math_func_lgamma+set}" = set; then :
24509 $as_echo_n "(cached) " >&6
24510 else
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 #ifdef HAVE_COMPLEX_H
24518 #include <complex.h>
24519 #endif
24520 #ifdef HAVE_MATH_H
24521 #include <math.h>
24522 #endif
24524 int (*ptr)() = (int (*)())lgamma;
24527 main ()
24529 return 0;
24532 _ACEOF
24533 if ac_fn_c_try_link "$LINENO"; then :
24534 gcc_cv_math_func_lgamma=yes
24535 else
24536 gcc_cv_math_func_lgamma=no
24538 rm -f core conftest.err conftest.$ac_objext \
24539 conftest$ac_exeext conftest.$ac_ext
24541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgamma" >&5
24542 $as_echo "$gcc_cv_math_func_lgamma" >&6; }
24543 if test $gcc_cv_math_func_lgamma = yes; then
24545 cat >>confdefs.h <<_ACEOF
24546 #define HAVE_LGAMMA 1
24547 _ACEOF
24554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammaf" >&5
24555 $as_echo_n "checking for lgammaf... " >&6; }
24556 if test "${gcc_cv_math_func_lgammaf+set}" = set; then :
24557 $as_echo_n "(cached) " >&6
24558 else
24559 if test x$gcc_no_link = xyes; then
24560 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24563 /* end confdefs.h. */
24565 #ifdef HAVE_COMPLEX_H
24566 #include <complex.h>
24567 #endif
24568 #ifdef HAVE_MATH_H
24569 #include <math.h>
24570 #endif
24572 int (*ptr)() = (int (*)())lgammaf;
24575 main ()
24577 return 0;
24580 _ACEOF
24581 if ac_fn_c_try_link "$LINENO"; then :
24582 gcc_cv_math_func_lgammaf=yes
24583 else
24584 gcc_cv_math_func_lgammaf=no
24586 rm -f core conftest.err conftest.$ac_objext \
24587 conftest$ac_exeext conftest.$ac_ext
24589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgammaf" >&5
24590 $as_echo "$gcc_cv_math_func_lgammaf" >&6; }
24591 if test $gcc_cv_math_func_lgammaf = yes; then
24593 cat >>confdefs.h <<_ACEOF
24594 #define HAVE_LGAMMAF 1
24595 _ACEOF
24602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammal" >&5
24603 $as_echo_n "checking for lgammal... " >&6; }
24604 if test "${gcc_cv_math_func_lgammal+set}" = set; then :
24605 $as_echo_n "(cached) " >&6
24606 else
24607 if test x$gcc_no_link = xyes; then
24608 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24610 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24611 /* end confdefs.h. */
24613 #ifdef HAVE_COMPLEX_H
24614 #include <complex.h>
24615 #endif
24616 #ifdef HAVE_MATH_H
24617 #include <math.h>
24618 #endif
24620 int (*ptr)() = (int (*)())lgammal;
24623 main ()
24625 return 0;
24628 _ACEOF
24629 if ac_fn_c_try_link "$LINENO"; then :
24630 gcc_cv_math_func_lgammal=yes
24631 else
24632 gcc_cv_math_func_lgammal=no
24634 rm -f core conftest.err conftest.$ac_objext \
24635 conftest$ac_exeext conftest.$ac_ext
24637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgammal" >&5
24638 $as_echo "$gcc_cv_math_func_lgammal" >&6; }
24639 if test $gcc_cv_math_func_lgammal = yes; then
24641 cat >>confdefs.h <<_ACEOF
24642 #define HAVE_LGAMMAL 1
24643 _ACEOF
24648 # Check for GFORTRAN_C99_1.1 funcs
24652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacos" >&5
24653 $as_echo_n "checking for cacos... " >&6; }
24654 if test "${gcc_cv_math_func_cacos+set}" = set; then :
24655 $as_echo_n "(cached) " >&6
24656 else
24657 if test x$gcc_no_link = xyes; then
24658 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24661 /* end confdefs.h. */
24663 #ifdef HAVE_COMPLEX_H
24664 #include <complex.h>
24665 #endif
24666 #ifdef HAVE_MATH_H
24667 #include <math.h>
24668 #endif
24670 int (*ptr)() = (int (*)())cacos;
24673 main ()
24675 return 0;
24678 _ACEOF
24679 if ac_fn_c_try_link "$LINENO"; then :
24680 gcc_cv_math_func_cacos=yes
24681 else
24682 gcc_cv_math_func_cacos=no
24684 rm -f core conftest.err conftest.$ac_objext \
24685 conftest$ac_exeext conftest.$ac_ext
24687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacos" >&5
24688 $as_echo "$gcc_cv_math_func_cacos" >&6; }
24689 if test $gcc_cv_math_func_cacos = yes; then
24691 cat >>confdefs.h <<_ACEOF
24692 #define HAVE_CACOS 1
24693 _ACEOF
24700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosf" >&5
24701 $as_echo_n "checking for cacosf... " >&6; }
24702 if test "${gcc_cv_math_func_cacosf+set}" = set; then :
24703 $as_echo_n "(cached) " >&6
24704 else
24705 if test x$gcc_no_link = xyes; then
24706 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24709 /* end confdefs.h. */
24711 #ifdef HAVE_COMPLEX_H
24712 #include <complex.h>
24713 #endif
24714 #ifdef HAVE_MATH_H
24715 #include <math.h>
24716 #endif
24718 int (*ptr)() = (int (*)())cacosf;
24721 main ()
24723 return 0;
24726 _ACEOF
24727 if ac_fn_c_try_link "$LINENO"; then :
24728 gcc_cv_math_func_cacosf=yes
24729 else
24730 gcc_cv_math_func_cacosf=no
24732 rm -f core conftest.err conftest.$ac_objext \
24733 conftest$ac_exeext conftest.$ac_ext
24735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosf" >&5
24736 $as_echo "$gcc_cv_math_func_cacosf" >&6; }
24737 if test $gcc_cv_math_func_cacosf = yes; then
24739 cat >>confdefs.h <<_ACEOF
24740 #define HAVE_CACOSF 1
24741 _ACEOF
24748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosh" >&5
24749 $as_echo_n "checking for cacosh... " >&6; }
24750 if test "${gcc_cv_math_func_cacosh+set}" = set; then :
24751 $as_echo_n "(cached) " >&6
24752 else
24753 if test x$gcc_no_link = xyes; then
24754 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24757 /* end confdefs.h. */
24759 #ifdef HAVE_COMPLEX_H
24760 #include <complex.h>
24761 #endif
24762 #ifdef HAVE_MATH_H
24763 #include <math.h>
24764 #endif
24766 int (*ptr)() = (int (*)())cacosh;
24769 main ()
24771 return 0;
24774 _ACEOF
24775 if ac_fn_c_try_link "$LINENO"; then :
24776 gcc_cv_math_func_cacosh=yes
24777 else
24778 gcc_cv_math_func_cacosh=no
24780 rm -f core conftest.err conftest.$ac_objext \
24781 conftest$ac_exeext conftest.$ac_ext
24783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosh" >&5
24784 $as_echo "$gcc_cv_math_func_cacosh" >&6; }
24785 if test $gcc_cv_math_func_cacosh = yes; then
24787 cat >>confdefs.h <<_ACEOF
24788 #define HAVE_CACOSH 1
24789 _ACEOF
24796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshf" >&5
24797 $as_echo_n "checking for cacoshf... " >&6; }
24798 if test "${gcc_cv_math_func_cacoshf+set}" = set; then :
24799 $as_echo_n "(cached) " >&6
24800 else
24801 if test x$gcc_no_link = xyes; then
24802 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24805 /* end confdefs.h. */
24807 #ifdef HAVE_COMPLEX_H
24808 #include <complex.h>
24809 #endif
24810 #ifdef HAVE_MATH_H
24811 #include <math.h>
24812 #endif
24814 int (*ptr)() = (int (*)())cacoshf;
24817 main ()
24819 return 0;
24822 _ACEOF
24823 if ac_fn_c_try_link "$LINENO"; then :
24824 gcc_cv_math_func_cacoshf=yes
24825 else
24826 gcc_cv_math_func_cacoshf=no
24828 rm -f core conftest.err conftest.$ac_objext \
24829 conftest$ac_exeext conftest.$ac_ext
24831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshf" >&5
24832 $as_echo "$gcc_cv_math_func_cacoshf" >&6; }
24833 if test $gcc_cv_math_func_cacoshf = yes; then
24835 cat >>confdefs.h <<_ACEOF
24836 #define HAVE_CACOSHF 1
24837 _ACEOF
24844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshl" >&5
24845 $as_echo_n "checking for cacoshl... " >&6; }
24846 if test "${gcc_cv_math_func_cacoshl+set}" = set; then :
24847 $as_echo_n "(cached) " >&6
24848 else
24849 if test x$gcc_no_link = xyes; then
24850 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24853 /* end confdefs.h. */
24855 #ifdef HAVE_COMPLEX_H
24856 #include <complex.h>
24857 #endif
24858 #ifdef HAVE_MATH_H
24859 #include <math.h>
24860 #endif
24862 int (*ptr)() = (int (*)())cacoshl;
24865 main ()
24867 return 0;
24870 _ACEOF
24871 if ac_fn_c_try_link "$LINENO"; then :
24872 gcc_cv_math_func_cacoshl=yes
24873 else
24874 gcc_cv_math_func_cacoshl=no
24876 rm -f core conftest.err conftest.$ac_objext \
24877 conftest$ac_exeext conftest.$ac_ext
24879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshl" >&5
24880 $as_echo "$gcc_cv_math_func_cacoshl" >&6; }
24881 if test $gcc_cv_math_func_cacoshl = yes; then
24883 cat >>confdefs.h <<_ACEOF
24884 #define HAVE_CACOSHL 1
24885 _ACEOF
24892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosl" >&5
24893 $as_echo_n "checking for cacosl... " >&6; }
24894 if test "${gcc_cv_math_func_cacosl+set}" = set; then :
24895 $as_echo_n "(cached) " >&6
24896 else
24897 if test x$gcc_no_link = xyes; then
24898 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24901 /* end confdefs.h. */
24903 #ifdef HAVE_COMPLEX_H
24904 #include <complex.h>
24905 #endif
24906 #ifdef HAVE_MATH_H
24907 #include <math.h>
24908 #endif
24910 int (*ptr)() = (int (*)())cacosl;
24913 main ()
24915 return 0;
24918 _ACEOF
24919 if ac_fn_c_try_link "$LINENO"; then :
24920 gcc_cv_math_func_cacosl=yes
24921 else
24922 gcc_cv_math_func_cacosl=no
24924 rm -f core conftest.err conftest.$ac_objext \
24925 conftest$ac_exeext conftest.$ac_ext
24927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosl" >&5
24928 $as_echo "$gcc_cv_math_func_cacosl" >&6; }
24929 if test $gcc_cv_math_func_cacosl = yes; then
24931 cat >>confdefs.h <<_ACEOF
24932 #define HAVE_CACOSL 1
24933 _ACEOF
24940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casin" >&5
24941 $as_echo_n "checking for casin... " >&6; }
24942 if test "${gcc_cv_math_func_casin+set}" = set; then :
24943 $as_echo_n "(cached) " >&6
24944 else
24945 if test x$gcc_no_link = xyes; then
24946 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24949 /* end confdefs.h. */
24951 #ifdef HAVE_COMPLEX_H
24952 #include <complex.h>
24953 #endif
24954 #ifdef HAVE_MATH_H
24955 #include <math.h>
24956 #endif
24958 int (*ptr)() = (int (*)())casin;
24961 main ()
24963 return 0;
24966 _ACEOF
24967 if ac_fn_c_try_link "$LINENO"; then :
24968 gcc_cv_math_func_casin=yes
24969 else
24970 gcc_cv_math_func_casin=no
24972 rm -f core conftest.err conftest.$ac_objext \
24973 conftest$ac_exeext conftest.$ac_ext
24975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casin" >&5
24976 $as_echo "$gcc_cv_math_func_casin" >&6; }
24977 if test $gcc_cv_math_func_casin = yes; then
24979 cat >>confdefs.h <<_ACEOF
24980 #define HAVE_CASIN 1
24981 _ACEOF
24988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinf" >&5
24989 $as_echo_n "checking for casinf... " >&6; }
24990 if test "${gcc_cv_math_func_casinf+set}" = set; then :
24991 $as_echo_n "(cached) " >&6
24992 else
24993 if test x$gcc_no_link = xyes; then
24994 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24997 /* end confdefs.h. */
24999 #ifdef HAVE_COMPLEX_H
25000 #include <complex.h>
25001 #endif
25002 #ifdef HAVE_MATH_H
25003 #include <math.h>
25004 #endif
25006 int (*ptr)() = (int (*)())casinf;
25009 main ()
25011 return 0;
25014 _ACEOF
25015 if ac_fn_c_try_link "$LINENO"; then :
25016 gcc_cv_math_func_casinf=yes
25017 else
25018 gcc_cv_math_func_casinf=no
25020 rm -f core conftest.err conftest.$ac_objext \
25021 conftest$ac_exeext conftest.$ac_ext
25023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinf" >&5
25024 $as_echo "$gcc_cv_math_func_casinf" >&6; }
25025 if test $gcc_cv_math_func_casinf = yes; then
25027 cat >>confdefs.h <<_ACEOF
25028 #define HAVE_CASINF 1
25029 _ACEOF
25036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinh" >&5
25037 $as_echo_n "checking for casinh... " >&6; }
25038 if test "${gcc_cv_math_func_casinh+set}" = set; then :
25039 $as_echo_n "(cached) " >&6
25040 else
25041 if test x$gcc_no_link = xyes; then
25042 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25045 /* end confdefs.h. */
25047 #ifdef HAVE_COMPLEX_H
25048 #include <complex.h>
25049 #endif
25050 #ifdef HAVE_MATH_H
25051 #include <math.h>
25052 #endif
25054 int (*ptr)() = (int (*)())casinh;
25057 main ()
25059 return 0;
25062 _ACEOF
25063 if ac_fn_c_try_link "$LINENO"; then :
25064 gcc_cv_math_func_casinh=yes
25065 else
25066 gcc_cv_math_func_casinh=no
25068 rm -f core conftest.err conftest.$ac_objext \
25069 conftest$ac_exeext conftest.$ac_ext
25071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinh" >&5
25072 $as_echo "$gcc_cv_math_func_casinh" >&6; }
25073 if test $gcc_cv_math_func_casinh = yes; then
25075 cat >>confdefs.h <<_ACEOF
25076 #define HAVE_CASINH 1
25077 _ACEOF
25084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhf" >&5
25085 $as_echo_n "checking for casinhf... " >&6; }
25086 if test "${gcc_cv_math_func_casinhf+set}" = set; then :
25087 $as_echo_n "(cached) " >&6
25088 else
25089 if test x$gcc_no_link = xyes; then
25090 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25093 /* end confdefs.h. */
25095 #ifdef HAVE_COMPLEX_H
25096 #include <complex.h>
25097 #endif
25098 #ifdef HAVE_MATH_H
25099 #include <math.h>
25100 #endif
25102 int (*ptr)() = (int (*)())casinhf;
25105 main ()
25107 return 0;
25110 _ACEOF
25111 if ac_fn_c_try_link "$LINENO"; then :
25112 gcc_cv_math_func_casinhf=yes
25113 else
25114 gcc_cv_math_func_casinhf=no
25116 rm -f core conftest.err conftest.$ac_objext \
25117 conftest$ac_exeext conftest.$ac_ext
25119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhf" >&5
25120 $as_echo "$gcc_cv_math_func_casinhf" >&6; }
25121 if test $gcc_cv_math_func_casinhf = yes; then
25123 cat >>confdefs.h <<_ACEOF
25124 #define HAVE_CASINHF 1
25125 _ACEOF
25132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhl" >&5
25133 $as_echo_n "checking for casinhl... " >&6; }
25134 if test "${gcc_cv_math_func_casinhl+set}" = set; then :
25135 $as_echo_n "(cached) " >&6
25136 else
25137 if test x$gcc_no_link = xyes; then
25138 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25141 /* end confdefs.h. */
25143 #ifdef HAVE_COMPLEX_H
25144 #include <complex.h>
25145 #endif
25146 #ifdef HAVE_MATH_H
25147 #include <math.h>
25148 #endif
25150 int (*ptr)() = (int (*)())casinhl;
25153 main ()
25155 return 0;
25158 _ACEOF
25159 if ac_fn_c_try_link "$LINENO"; then :
25160 gcc_cv_math_func_casinhl=yes
25161 else
25162 gcc_cv_math_func_casinhl=no
25164 rm -f core conftest.err conftest.$ac_objext \
25165 conftest$ac_exeext conftest.$ac_ext
25167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhl" >&5
25168 $as_echo "$gcc_cv_math_func_casinhl" >&6; }
25169 if test $gcc_cv_math_func_casinhl = yes; then
25171 cat >>confdefs.h <<_ACEOF
25172 #define HAVE_CASINHL 1
25173 _ACEOF
25180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinl" >&5
25181 $as_echo_n "checking for casinl... " >&6; }
25182 if test "${gcc_cv_math_func_casinl+set}" = set; then :
25183 $as_echo_n "(cached) " >&6
25184 else
25185 if test x$gcc_no_link = xyes; then
25186 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25189 /* end confdefs.h. */
25191 #ifdef HAVE_COMPLEX_H
25192 #include <complex.h>
25193 #endif
25194 #ifdef HAVE_MATH_H
25195 #include <math.h>
25196 #endif
25198 int (*ptr)() = (int (*)())casinl;
25201 main ()
25203 return 0;
25206 _ACEOF
25207 if ac_fn_c_try_link "$LINENO"; then :
25208 gcc_cv_math_func_casinl=yes
25209 else
25210 gcc_cv_math_func_casinl=no
25212 rm -f core conftest.err conftest.$ac_objext \
25213 conftest$ac_exeext conftest.$ac_ext
25215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinl" >&5
25216 $as_echo "$gcc_cv_math_func_casinl" >&6; }
25217 if test $gcc_cv_math_func_casinl = yes; then
25219 cat >>confdefs.h <<_ACEOF
25220 #define HAVE_CASINL 1
25221 _ACEOF
25228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catan" >&5
25229 $as_echo_n "checking for catan... " >&6; }
25230 if test "${gcc_cv_math_func_catan+set}" = set; then :
25231 $as_echo_n "(cached) " >&6
25232 else
25233 if test x$gcc_no_link = xyes; then
25234 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25237 /* end confdefs.h. */
25239 #ifdef HAVE_COMPLEX_H
25240 #include <complex.h>
25241 #endif
25242 #ifdef HAVE_MATH_H
25243 #include <math.h>
25244 #endif
25246 int (*ptr)() = (int (*)())catan;
25249 main ()
25251 return 0;
25254 _ACEOF
25255 if ac_fn_c_try_link "$LINENO"; then :
25256 gcc_cv_math_func_catan=yes
25257 else
25258 gcc_cv_math_func_catan=no
25260 rm -f core conftest.err conftest.$ac_objext \
25261 conftest$ac_exeext conftest.$ac_ext
25263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catan" >&5
25264 $as_echo "$gcc_cv_math_func_catan" >&6; }
25265 if test $gcc_cv_math_func_catan = yes; then
25267 cat >>confdefs.h <<_ACEOF
25268 #define HAVE_CATAN 1
25269 _ACEOF
25276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanf" >&5
25277 $as_echo_n "checking for catanf... " >&6; }
25278 if test "${gcc_cv_math_func_catanf+set}" = set; then :
25279 $as_echo_n "(cached) " >&6
25280 else
25281 if test x$gcc_no_link = xyes; then
25282 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25285 /* end confdefs.h. */
25287 #ifdef HAVE_COMPLEX_H
25288 #include <complex.h>
25289 #endif
25290 #ifdef HAVE_MATH_H
25291 #include <math.h>
25292 #endif
25294 int (*ptr)() = (int (*)())catanf;
25297 main ()
25299 return 0;
25302 _ACEOF
25303 if ac_fn_c_try_link "$LINENO"; then :
25304 gcc_cv_math_func_catanf=yes
25305 else
25306 gcc_cv_math_func_catanf=no
25308 rm -f core conftest.err conftest.$ac_objext \
25309 conftest$ac_exeext conftest.$ac_ext
25311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanf" >&5
25312 $as_echo "$gcc_cv_math_func_catanf" >&6; }
25313 if test $gcc_cv_math_func_catanf = yes; then
25315 cat >>confdefs.h <<_ACEOF
25316 #define HAVE_CATANF 1
25317 _ACEOF
25324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanh" >&5
25325 $as_echo_n "checking for catanh... " >&6; }
25326 if test "${gcc_cv_math_func_catanh+set}" = set; then :
25327 $as_echo_n "(cached) " >&6
25328 else
25329 if test x$gcc_no_link = xyes; then
25330 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25333 /* end confdefs.h. */
25335 #ifdef HAVE_COMPLEX_H
25336 #include <complex.h>
25337 #endif
25338 #ifdef HAVE_MATH_H
25339 #include <math.h>
25340 #endif
25342 int (*ptr)() = (int (*)())catanh;
25345 main ()
25347 return 0;
25350 _ACEOF
25351 if ac_fn_c_try_link "$LINENO"; then :
25352 gcc_cv_math_func_catanh=yes
25353 else
25354 gcc_cv_math_func_catanh=no
25356 rm -f core conftest.err conftest.$ac_objext \
25357 conftest$ac_exeext conftest.$ac_ext
25359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanh" >&5
25360 $as_echo "$gcc_cv_math_func_catanh" >&6; }
25361 if test $gcc_cv_math_func_catanh = yes; then
25363 cat >>confdefs.h <<_ACEOF
25364 #define HAVE_CATANH 1
25365 _ACEOF
25372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhf" >&5
25373 $as_echo_n "checking for catanhf... " >&6; }
25374 if test "${gcc_cv_math_func_catanhf+set}" = set; then :
25375 $as_echo_n "(cached) " >&6
25376 else
25377 if test x$gcc_no_link = xyes; then
25378 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25381 /* end confdefs.h. */
25383 #ifdef HAVE_COMPLEX_H
25384 #include <complex.h>
25385 #endif
25386 #ifdef HAVE_MATH_H
25387 #include <math.h>
25388 #endif
25390 int (*ptr)() = (int (*)())catanhf;
25393 main ()
25395 return 0;
25398 _ACEOF
25399 if ac_fn_c_try_link "$LINENO"; then :
25400 gcc_cv_math_func_catanhf=yes
25401 else
25402 gcc_cv_math_func_catanhf=no
25404 rm -f core conftest.err conftest.$ac_objext \
25405 conftest$ac_exeext conftest.$ac_ext
25407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhf" >&5
25408 $as_echo "$gcc_cv_math_func_catanhf" >&6; }
25409 if test $gcc_cv_math_func_catanhf = yes; then
25411 cat >>confdefs.h <<_ACEOF
25412 #define HAVE_CATANHF 1
25413 _ACEOF
25420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhl" >&5
25421 $as_echo_n "checking for catanhl... " >&6; }
25422 if test "${gcc_cv_math_func_catanhl+set}" = set; then :
25423 $as_echo_n "(cached) " >&6
25424 else
25425 if test x$gcc_no_link = xyes; then
25426 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25429 /* end confdefs.h. */
25431 #ifdef HAVE_COMPLEX_H
25432 #include <complex.h>
25433 #endif
25434 #ifdef HAVE_MATH_H
25435 #include <math.h>
25436 #endif
25438 int (*ptr)() = (int (*)())catanhl;
25441 main ()
25443 return 0;
25446 _ACEOF
25447 if ac_fn_c_try_link "$LINENO"; then :
25448 gcc_cv_math_func_catanhl=yes
25449 else
25450 gcc_cv_math_func_catanhl=no
25452 rm -f core conftest.err conftest.$ac_objext \
25453 conftest$ac_exeext conftest.$ac_ext
25455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhl" >&5
25456 $as_echo "$gcc_cv_math_func_catanhl" >&6; }
25457 if test $gcc_cv_math_func_catanhl = yes; then
25459 cat >>confdefs.h <<_ACEOF
25460 #define HAVE_CATANHL 1
25461 _ACEOF
25468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanl" >&5
25469 $as_echo_n "checking for catanl... " >&6; }
25470 if test "${gcc_cv_math_func_catanl+set}" = set; then :
25471 $as_echo_n "(cached) " >&6
25472 else
25473 if test x$gcc_no_link = xyes; then
25474 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25477 /* end confdefs.h. */
25479 #ifdef HAVE_COMPLEX_H
25480 #include <complex.h>
25481 #endif
25482 #ifdef HAVE_MATH_H
25483 #include <math.h>
25484 #endif
25486 int (*ptr)() = (int (*)())catanl;
25489 main ()
25491 return 0;
25494 _ACEOF
25495 if ac_fn_c_try_link "$LINENO"; then :
25496 gcc_cv_math_func_catanl=yes
25497 else
25498 gcc_cv_math_func_catanl=no
25500 rm -f core conftest.err conftest.$ac_objext \
25501 conftest$ac_exeext conftest.$ac_ext
25503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanl" >&5
25504 $as_echo "$gcc_cv_math_func_catanl" >&6; }
25505 if test $gcc_cv_math_func_catanl = yes; then
25507 cat >>confdefs.h <<_ACEOF
25508 #define HAVE_CATANL 1
25509 _ACEOF
25514 # On AIX, clog is present in libm as __clog
25515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __clog in -lm" >&5
25516 $as_echo_n "checking for __clog in -lm... " >&6; }
25517 if test "${ac_cv_lib_m___clog+set}" = set; then :
25518 $as_echo_n "(cached) " >&6
25519 else
25520 ac_check_lib_save_LIBS=$LIBS
25521 LIBS="-lm $LIBS"
25522 if test x$gcc_no_link = xyes; then
25523 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25525 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25526 /* end confdefs.h. */
25528 /* Override any GCC internal prototype to avoid an error.
25529 Use char because int might match the return type of a GCC
25530 builtin and then its argument prototype would still apply. */
25531 #ifdef __cplusplus
25532 extern "C"
25533 #endif
25534 char __clog ();
25536 main ()
25538 return __clog ();
25540 return 0;
25542 _ACEOF
25543 if ac_fn_c_try_link "$LINENO"; then :
25544 ac_cv_lib_m___clog=yes
25545 else
25546 ac_cv_lib_m___clog=no
25548 rm -f core conftest.err conftest.$ac_objext \
25549 conftest$ac_exeext conftest.$ac_ext
25550 LIBS=$ac_check_lib_save_LIBS
25552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m___clog" >&5
25553 $as_echo "$ac_cv_lib_m___clog" >&6; }
25554 if test "x$ac_cv_lib_m___clog" = x""yes; then :
25556 $as_echo "#define HAVE_CLOG 1" >>confdefs.h
25561 # Check whether the system has a working stat()
25563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target stat is reliable" >&5
25564 $as_echo_n "checking whether the target stat is reliable... " >&6; }
25565 if test "${libgfor_cv_have_working_stat+set}" = set; then :
25566 $as_echo_n "(cached) " >&6
25567 else
25569 if test "$cross_compiling" = yes; then :
25571 case "${target}" in
25572 *mingw*) libgfor_cv_have_working_stat=no ;;
25573 *) libgfor_cv_have_working_stat=yes;;
25574 esac
25575 else
25576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25577 /* end confdefs.h. */
25579 #include <stdio.h>
25580 #include <sys/types.h>
25581 #include <sys/stat.h>
25582 #include <unistd.h>
25584 int main ()
25586 FILE *f, *g;
25587 struct stat st1, st2;
25589 f = fopen ("foo", "w");
25590 g = fopen ("bar", "w");
25591 if (stat ("foo", &st1) != 0 || stat ("bar", &st2))
25592 return 1;
25593 if (st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino)
25594 return 1;
25595 fclose(f);
25596 fclose(g);
25597 return 0;
25599 _ACEOF
25600 if ac_fn_c_try_run "$LINENO"; then :
25601 libgfor_cv_have_working_stat=yes
25602 else
25603 libgfor_cv_have_working_stat=no
25605 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25606 conftest.$ac_objext conftest.beam conftest.$ac_ext
25610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_working_stat" >&5
25611 $as_echo "$libgfor_cv_have_working_stat" >&6; }
25612 if test x"$libgfor_cv_have_working_stat" = xyes; then
25614 $as_echo "#define HAVE_WORKING_STAT 1" >>confdefs.h
25618 # Check whether __mingw_snprintf() is present
25620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __mingw_snprintf is present" >&5
25621 $as_echo_n "checking whether __mingw_snprintf is present... " >&6; }
25622 if test "${libgfor_cv_have_mingw_snprintf+set}" = set; then :
25623 $as_echo_n "(cached) " >&6
25624 else
25626 if test x$gcc_no_link = xyes; then
25627 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25630 /* end confdefs.h. */
25632 #include <stdio.h>
25633 extern int __mingw_snprintf (char *, size_t, const char *, ...);
25636 main ()
25639 __mingw_snprintf (NULL, 0, "%d\n", 1);
25642 return 0;
25644 _ACEOF
25645 if ac_fn_c_try_link "$LINENO"; then :
25646 eval "libgfor_cv_have_mingw_snprintf=yes"
25647 else
25648 eval "libgfor_cv_have_mingw_snprintf=no"
25650 rm -f core conftest.err conftest.$ac_objext \
25651 conftest$ac_exeext conftest.$ac_ext
25654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_mingw_snprintf" >&5
25655 $as_echo "$libgfor_cv_have_mingw_snprintf" >&6; }
25656 if test x"$libgfor_cv_have_mingw_snprintf" = xyes; then
25658 $as_echo "#define HAVE_MINGW_SNPRINTF 1" >>confdefs.h
25663 # Check whether libquadmath should be used
25664 # Check whether --enable-libquadmath-support was given.
25665 if test "${enable_libquadmath_support+set}" = set; then :
25666 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
25667 else
25668 ENABLE_LIBQUADMATH_SUPPORT=yes
25671 enable_libquadmath_support=
25672 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
25673 enable_libquadmath_support=no
25676 # Check whether we have a __float128 type, depends on enable_libquadmath_support
25678 LIBQUADSPEC=
25680 if test "x$enable_libquadmath_support" != xno; then
25682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a usable __float128 type" >&5
25683 $as_echo_n "checking whether we have a usable __float128 type... " >&6; }
25684 if test "${libgfor_cv_have_float128+set}" = set; then :
25685 $as_echo_n "(cached) " >&6
25686 else
25688 if test x$gcc_no_link = xyes; then
25689 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25690 /* end confdefs.h. */
25692 typedef _Complex float __attribute__((mode(TC))) __complex128;
25694 __float128 foo (__float128 x)
25697 __complex128 z1, z2;
25699 z1 = x;
25700 z2 = x / 7.Q;
25701 z2 /= z1;
25703 return (__float128) z2;
25706 __float128 bar (__float128 x)
25708 return x * __builtin_huge_valq ();
25712 main ()
25715 foo (1.2Q);
25716 bar (1.2Q);
25719 return 0;
25721 _ACEOF
25722 if ac_fn_c_try_compile "$LINENO"; then :
25724 libgfor_cv_have_float128=yes
25726 else
25728 libgfor_cv_have_float128=no
25731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25732 else
25733 if test x$gcc_no_link = xyes; then
25734 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25737 /* end confdefs.h. */
25739 typedef _Complex float __attribute__((mode(TC))) __complex128;
25741 __float128 foo (__float128 x)
25744 __complex128 z1, z2;
25746 z1 = x;
25747 z2 = x / 7.Q;
25748 z2 /= z1;
25750 return (__float128) z2;
25753 __float128 bar (__float128 x)
25755 return x * __builtin_huge_valq ();
25759 main ()
25762 foo (1.2Q);
25763 bar (1.2Q);
25766 return 0;
25768 _ACEOF
25769 if ac_fn_c_try_link "$LINENO"; then :
25771 libgfor_cv_have_float128=yes
25773 else
25775 libgfor_cv_have_float128=no
25778 rm -f core conftest.err conftest.$ac_objext \
25779 conftest$ac_exeext conftest.$ac_ext
25782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_float128" >&5
25783 $as_echo "$libgfor_cv_have_float128" >&6; }
25785 if test "x$libgfor_cv_have_float128" = xyes; then
25787 $as_echo "#define HAVE_FLOAT128 1" >>confdefs.h
25790 ac_xsave_c_werror_flag=$ac_c_werror_flag
25791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --as-needed/-z ignore works" >&5
25792 $as_echo_n "checking whether --as-needed/-z ignore works... " >&6; }
25793 if test "${libgfor_cv_have_as_needed+set}" = set; then :
25794 $as_echo_n "(cached) " >&6
25795 else
25797 # Test for native Solaris options first.
25798 # No whitespace after -z to pass it through -Wl.
25799 libgfor_cv_as_needed_option="-zignore"
25800 libgfor_cv_no_as_needed_option="-zrecord"
25801 save_LDFLAGS="$LDFLAGS"
25802 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
25803 libgfor_cv_have_as_needed=no
25805 ac_c_werror_flag=yes
25806 if test x$gcc_no_link = xyes; then
25807 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25810 /* end confdefs.h. */
25813 main ()
25817 return 0;
25819 _ACEOF
25820 if ac_fn_c_try_link "$LINENO"; then :
25821 libgfor_cv_have_as_needed=yes
25822 else
25823 libgfor_cv_have_as_needed=no
25825 rm -f core conftest.err conftest.$ac_objext \
25826 conftest$ac_exeext conftest.$ac_ext
25827 LDFLAGS="$save_LDFLAGS"
25828 if test "x$libgfor_cv_have_as_needed" = xno; then
25829 libgfor_cv_as_needed_option="--as-needed"
25830 libgfor_cv_no_as_needed_option="--no-as-needed"
25831 save_LDFLAGS="$LDFLAGS"
25832 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
25833 libgfor_cv_have_as_needed=no
25835 ac_c_werror_flag=yes
25836 if test x$gcc_no_link = xyes; then
25837 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25840 /* end confdefs.h. */
25843 main ()
25847 return 0;
25849 _ACEOF
25850 if ac_fn_c_try_link "$LINENO"; then :
25851 libgfor_cv_have_as_needed=yes
25852 else
25853 libgfor_cv_have_as_needed=no
25855 rm -f core conftest.err conftest.$ac_objext \
25856 conftest$ac_exeext conftest.$ac_ext
25857 LDFLAGS="$save_LDFLAGS"
25859 ac_c_werror_flag=$ac_xsave_c_werror_flag
25862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_as_needed" >&5
25863 $as_echo "$libgfor_cv_have_as_needed" >&6; }
25865 if test "x$libgfor_cv_have_as_needed" = xyes; then
25866 LIBQUADSPEC="%{static-libgfortran:$libgfor_cv_as_needed_option} -lquadmath %{static-libgfortran:$libgfor_cv_no_as_needed_option}"
25867 else
25868 LIBQUADSPEC="-lquadmath"
25870 if test -f ../libquadmath/libquadmath.la; then
25871 LIBQUADLIB=../libquadmath/libquadmath.la
25872 LIBQUADLIB_DEP=../libquadmath/libquadmath.la
25873 LIBQUADINCLUDE='-I$(srcdir)/../libquadmath'
25874 else
25875 LIBQUADLIB="-lquadmath"
25876 LIBQUADLIB_DEP=
25877 LIBQUADINCLUDE=
25880 else
25881 # for --disable-quadmath
25882 LIBQUADLIB=
25883 LIBQUADLIB_DEP=
25884 LIBQUADINCLUDE=
25892 if test "x$libgfor_cv_have_float128" = xyes; then
25893 LIBGFOR_BUILD_QUAD_TRUE=
25894 LIBGFOR_BUILD_QUAD_FALSE='#'
25895 else
25896 LIBGFOR_BUILD_QUAD_TRUE='#'
25897 LIBGFOR_BUILD_QUAD_FALSE=
25902 # Check for GNU libc feenableexcept
25903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5
25904 $as_echo_n "checking for feenableexcept in -lm... " >&6; }
25905 if test "${ac_cv_lib_m_feenableexcept+set}" = set; then :
25906 $as_echo_n "(cached) " >&6
25907 else
25908 ac_check_lib_save_LIBS=$LIBS
25909 LIBS="-lm $LIBS"
25910 if test x$gcc_no_link = xyes; then
25911 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25914 /* end confdefs.h. */
25916 /* Override any GCC internal prototype to avoid an error.
25917 Use char because int might match the return type of a GCC
25918 builtin and then its argument prototype would still apply. */
25919 #ifdef __cplusplus
25920 extern "C"
25921 #endif
25922 char feenableexcept ();
25924 main ()
25926 return feenableexcept ();
25928 return 0;
25930 _ACEOF
25931 if ac_fn_c_try_link "$LINENO"; then :
25932 ac_cv_lib_m_feenableexcept=yes
25933 else
25934 ac_cv_lib_m_feenableexcept=no
25936 rm -f core conftest.err conftest.$ac_objext \
25937 conftest$ac_exeext conftest.$ac_ext
25938 LIBS=$ac_check_lib_save_LIBS
25940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5
25941 $as_echo "$ac_cv_lib_m_feenableexcept" >&6; }
25942 if test "x$ac_cv_lib_m_feenableexcept" = x""yes; then :
25943 have_feenableexcept=yes
25944 $as_echo "#define HAVE_FEENABLEEXCEPT 1" >>confdefs.h
25949 # At least for glibc, clock_gettime is in librt. But don't
25950 # pull that in if it still doesn't give us the function we want. This
25951 # test is copied from libgomp, and modified to not link in -lrt as
25952 # libgfortran calls clock_gettime via a weak reference if it's found
25953 # in librt.
25954 if test "$ac_cv_func_clock_gettime" = no; then
25955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
25956 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
25957 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
25958 $as_echo_n "(cached) " >&6
25959 else
25960 ac_check_lib_save_LIBS=$LIBS
25961 LIBS="-lrt $LIBS"
25962 if test x$gcc_no_link = xyes; then
25963 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25966 /* end confdefs.h. */
25968 /* Override any GCC internal prototype to avoid an error.
25969 Use char because int might match the return type of a GCC
25970 builtin and then its argument prototype would still apply. */
25971 #ifdef __cplusplus
25972 extern "C"
25973 #endif
25974 char clock_gettime ();
25976 main ()
25978 return clock_gettime ();
25980 return 0;
25982 _ACEOF
25983 if ac_fn_c_try_link "$LINENO"; then :
25984 ac_cv_lib_rt_clock_gettime=yes
25985 else
25986 ac_cv_lib_rt_clock_gettime=no
25988 rm -f core conftest.err conftest.$ac_objext \
25989 conftest$ac_exeext conftest.$ac_ext
25990 LIBS=$ac_check_lib_save_LIBS
25992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
25993 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
25994 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
25996 $as_echo "#define HAVE_CLOCK_GETTIME_LIBRT 1" >>confdefs.h
26002 # Check for SysV fpsetmask
26004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fpsetmask is present" >&5
26005 $as_echo_n "checking whether fpsetmask is present... " >&6; }
26006 if test "${libgfor_cv_have_fpsetmask+set}" = set; then :
26007 $as_echo_n "(cached) " >&6
26008 else
26010 if test x$gcc_no_link = xyes; then
26011 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26014 /* end confdefs.h. */
26016 #if HAVE_FLOATINGPOINT_H
26017 # include <floatingpoint.h>
26018 #endif /* HAVE_FLOATINGPOINT_H */
26019 #if HAVE_IEEEFP_H
26020 # include <ieeefp.h>
26021 #endif /* HAVE_IEEEFP_H */
26023 main ()
26025 fpsetmask(0);
26027 return 0;
26029 _ACEOF
26030 if ac_fn_c_try_link "$LINENO"; then :
26031 eval "libgfor_cv_have_fpsetmask=yes"
26032 else
26033 eval "libgfor_cv_have_fpsetmask=no"
26035 rm -f core conftest.err conftest.$ac_objext \
26036 conftest$ac_exeext conftest.$ac_ext
26039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_fpsetmask" >&5
26040 $as_echo "$libgfor_cv_have_fpsetmask" >&6; }
26041 if test x"$libgfor_cv_have_fpsetmask" = xyes; then
26042 have_fpsetmask=yes
26044 $as_echo "#define HAVE_FPSETMASK 1" >>confdefs.h
26048 ac_fn_c_check_type "$LINENO" "fp_except" "ac_cv_type_fp_except" "
26049 #include <ieeefp.h>
26050 #include <math.h>
26053 if test "x$ac_cv_type_fp_except" = x""yes; then :
26055 cat >>confdefs.h <<_ACEOF
26056 #define HAVE_FP_EXCEPT 1
26057 _ACEOF
26061 ac_fn_c_check_type "$LINENO" "fp_except_t" "ac_cv_type_fp_except_t" "
26062 #include <ieeefp.h>
26063 #include <math.h>
26066 if test "x$ac_cv_type_fp_except_t" = x""yes; then :
26068 cat >>confdefs.h <<_ACEOF
26069 #define HAVE_FP_EXCEPT_T 1
26070 _ACEOF
26075 ac_fn_c_check_type "$LINENO" "fp_rnd" "ac_cv_type_fp_rnd" "
26076 #include <ieeefp.h>
26077 #include <math.h>
26080 if test "x$ac_cv_type_fp_rnd" = x""yes; then :
26082 cat >>confdefs.h <<_ACEOF
26083 #define HAVE_FP_RND 1
26084 _ACEOF
26088 ac_fn_c_check_type "$LINENO" "fp_rnd_t" "ac_cv_type_fp_rnd_t" "
26089 #include <ieeefp.h>
26090 #include <math.h>
26093 if test "x$ac_cv_type_fp_rnd_t" = x""yes; then :
26095 cat >>confdefs.h <<_ACEOF
26096 #define HAVE_FP_RND_T 1
26097 _ACEOF
26103 # Check whether we have fpsetsticky or fpresetsticky
26104 ac_fn_c_check_func "$LINENO" "fpsetsticky" "ac_cv_func_fpsetsticky"
26105 if test "x$ac_cv_func_fpsetsticky" = x""yes; then :
26106 have_fpsetsticky=yes
26107 $as_echo "#define HAVE_FPSETSTICKY 1" >>confdefs.h
26111 ac_fn_c_check_func "$LINENO" "fpresetsticky" "ac_cv_func_fpresetsticky"
26112 if test "x$ac_cv_func_fpresetsticky" = x""yes; then :
26113 have_fpresetsticky=yes
26114 $as_echo "#define HAVE_FPRESETSTICKY 1" >>confdefs.h
26119 # Check for AIX fp_trap and fp_enable
26120 ac_fn_c_check_func "$LINENO" "fp_trap" "ac_cv_func_fp_trap"
26121 if test "x$ac_cv_func_fp_trap" = x""yes; then :
26122 have_fp_trap=yes
26123 $as_echo "#define HAVE_FP_TRAP 1" >>confdefs.h
26127 ac_fn_c_check_func "$LINENO" "fp_enable" "ac_cv_func_fp_enable"
26128 if test "x$ac_cv_func_fp_enable" = x""yes; then :
26129 have_fp_enable=yes
26130 $as_echo "#define HAVE_FP_ENABLE 1" >>confdefs.h
26135 # Runs configure.host to set up necessary host-dependent shell variables.
26136 # We then display a message about it, and propagate them through the
26137 # build chain.
26138 . ${srcdir}/configure.host
26139 { $as_echo "$as_me:${as_lineno-$LINENO}: FPU dependent file will be ${fpu_host}.h" >&5
26140 $as_echo "$as_me: FPU dependent file will be ${fpu_host}.h" >&6;}
26141 { $as_echo "$as_me:${as_lineno-$LINENO}: Support for IEEE modules: ${ieee_support}" >&5
26142 $as_echo "$as_me: Support for IEEE modules: ${ieee_support}" >&6;}
26143 FPU_HOST_HEADER=config/${fpu_host}.h
26146 # Whether we will build the IEEE modules
26147 if test x${ieee_support} = xyes; then
26148 IEEE_SUPPORT_TRUE=
26149 IEEE_SUPPORT_FALSE='#'
26150 else
26151 IEEE_SUPPORT_TRUE='#'
26152 IEEE_SUPPORT_FALSE=
26157 # Some targets require additional compiler options for IEEE compatibility.
26158 IEEE_FLAGS="${ieee_flags}"
26162 # Check for POSIX getpwuid_r
26164 # There are two versions of getpwuid_r, the POSIX one with 5
26165 # arguments, and another one with 4 arguments used by at least HP-UX
26166 # 10.2.
26167 if test "$ac_cv_func_getpwuid_r" = "yes"; then
26168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX version of getpwuid_r with 5 arguments" >&5
26169 $as_echo_n "checking POSIX version of getpwuid_r with 5 arguments... " >&6; }
26170 if test "${libgfor_cv_posix_getpwuid_r+set}" = set; then :
26171 $as_echo_n "(cached) " >&6
26172 else
26174 if test x$gcc_no_link = xyes; then
26175 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26178 /* end confdefs.h. */
26180 #include <stdio.h>
26181 #include <sys/types.h>
26182 #include <pwd.h>
26184 main ()
26187 getpwuid_r(0, NULL, NULL, 0, NULL);
26190 return 0;
26192 _ACEOF
26193 if ac_fn_c_try_link "$LINENO"; then :
26194 libgfor_cv_posix_getpwuid_r="yes"
26195 else
26196 libgfor_cv_posix_getpwuid_r="no"
26198 rm -f core conftest.err conftest.$ac_objext \
26199 conftest$ac_exeext conftest.$ac_ext
26201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_posix_getpwuid_r" >&5
26202 $as_echo "$libgfor_cv_posix_getpwuid_r" >&6; }
26204 if test "$libgfor_cv_posix_getpwuid_r" = "yes"; then
26206 $as_echo "#define HAVE_POSIX_GETPWUID_R 1" >>confdefs.h
26211 # Check out attribute support.
26213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
26214 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
26215 if test "${libgfor_cv_have_attribute_visibility+set}" = set; then :
26216 $as_echo_n "(cached) " >&6
26217 else
26219 save_CFLAGS="$CFLAGS"
26220 CFLAGS="$CFLAGS -Werror"
26221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26222 /* end confdefs.h. */
26223 void __attribute__((visibility("hidden"))) foo(void) { }
26225 main ()
26229 return 0;
26231 _ACEOF
26232 if ac_fn_c_try_compile "$LINENO"; then :
26233 libgfor_cv_have_attribute_visibility=yes
26234 else
26235 libgfor_cv_have_attribute_visibility=no
26237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26238 CFLAGS="$save_CFLAGS"
26240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_visibility" >&5
26241 $as_echo "$libgfor_cv_have_attribute_visibility" >&6; }
26242 if test $libgfor_cv_have_attribute_visibility = yes; then
26244 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
26248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
26249 $as_echo_n "checking whether the target supports dllexport... " >&6; }
26250 if test "${libgfor_cv_have_attribute_dllexport+set}" = set; then :
26251 $as_echo_n "(cached) " >&6
26252 else
26254 save_CFLAGS="$CFLAGS"
26255 CFLAGS="$CFLAGS -Werror"
26256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26257 /* end confdefs.h. */
26258 void __attribute__((dllexport)) foo(void) { }
26260 main ()
26264 return 0;
26266 _ACEOF
26267 if ac_fn_c_try_compile "$LINENO"; then :
26268 libgfor_cv_have_attribute_dllexport=yes
26269 else
26270 libgfor_cv_have_attribute_dllexport=no
26272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26273 CFLAGS="$save_CFLAGS"
26275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_dllexport" >&5
26276 $as_echo "$libgfor_cv_have_attribute_dllexport" >&6; }
26277 if test $libgfor_cv_have_attribute_dllexport = yes; then
26279 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
26283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
26284 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
26285 if test "${libgfor_cv_have_attribute_alias+set}" = set; then :
26286 $as_echo_n "(cached) " >&6
26287 else
26289 if test x$gcc_no_link = xyes; then
26290 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26293 /* end confdefs.h. */
26295 void foo(void) { }
26296 extern void bar(void) __attribute__((alias("foo")));
26298 main ()
26300 bar();
26302 return 0;
26304 _ACEOF
26305 if ac_fn_c_try_link "$LINENO"; then :
26306 libgfor_cv_have_attribute_alias=yes
26307 else
26308 libgfor_cv_have_attribute_alias=no
26310 rm -f core conftest.err conftest.$ac_objext \
26311 conftest$ac_exeext conftest.$ac_ext
26313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_alias" >&5
26314 $as_echo "$libgfor_cv_have_attribute_alias" >&6; }
26315 if test $libgfor_cv_have_attribute_alias = yes; then
26317 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
26321 # Check out sync builtins support.
26323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_fetch_and_add" >&5
26324 $as_echo_n "checking whether the target supports __sync_fetch_and_add... " >&6; }
26325 if test "${libgfor_cv_have_sync_fetch_and_add+set}" = set; then :
26326 $as_echo_n "(cached) " >&6
26327 else
26329 if test x$gcc_no_link = xyes; then
26330 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26333 /* end confdefs.h. */
26334 int foovar = 0;
26336 main ()
26339 if (foovar <= 0) return __sync_fetch_and_add (&foovar, 1);
26340 if (foovar > 10) return __sync_add_and_fetch (&foovar, -1);
26342 return 0;
26344 _ACEOF
26345 if ac_fn_c_try_link "$LINENO"; then :
26346 libgfor_cv_have_sync_fetch_and_add=yes
26347 else
26348 libgfor_cv_have_sync_fetch_and_add=no
26350 rm -f core conftest.err conftest.$ac_objext \
26351 conftest$ac_exeext conftest.$ac_ext
26353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_sync_fetch_and_add" >&5
26354 $as_echo "$libgfor_cv_have_sync_fetch_and_add" >&6; }
26355 if test $libgfor_cv_have_sync_fetch_and_add = yes; then
26357 $as_echo "#define HAVE_SYNC_FETCH_AND_ADD 1" >>confdefs.h
26361 # Check out #pragma weak.
26363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pragma weak works" >&5
26364 $as_echo_n "checking whether pragma weak works... " >&6; }
26365 if test "${libgfor_cv_have_pragma_weak+set}" = set; then :
26366 $as_echo_n "(cached) " >&6
26367 else
26369 gfor_save_CFLAGS="$CFLAGS"
26370 CFLAGS="$CFLAGS -Wunknown-pragmas"
26371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26372 /* end confdefs.h. */
26374 void foo (void);
26375 #pragma weak foo
26378 main ()
26380 if (foo) foo ();
26382 return 0;
26384 _ACEOF
26385 if ac_fn_c_try_compile "$LINENO"; then :
26386 libgfor_cv_have_pragma_weak=yes
26387 else
26388 libgfor_cv_have_pragma_weak=no
26390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_pragma_weak" >&5
26393 $as_echo "$libgfor_cv_have_pragma_weak" >&6; }
26394 if test $libgfor_cv_have_pragma_weak = yes; then
26396 $as_echo "#define SUPPORTS_WEAK 1" >>confdefs.h
26399 case "$host" in
26400 *-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-mingw* )
26402 $as_echo "#define GTHREAD_USE_WEAK 0" >>confdefs.h
26405 esac
26407 # Various other checks on target
26409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target can unlink an open file" >&5
26410 $as_echo_n "checking whether the target can unlink an open file... " >&6; }
26411 if test "${libgfor_cv_have_unlink_open_file+set}" = set; then :
26412 $as_echo_n "(cached) " >&6
26413 else
26415 if test "$cross_compiling" = yes; then :
26417 case "${target}" in
26418 *mingw*) libgfor_cv_have_unlink_open_file=no ;;
26419 *) libgfor_cv_have_unlink_open_file=yes;;
26420 esac
26421 else
26422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26423 /* end confdefs.h. */
26425 #include <errno.h>
26426 #include <fcntl.h>
26427 #include <unistd.h>
26428 #include <sys/stat.h>
26430 int main ()
26432 int fd;
26434 fd = open ("testfile", O_RDWR | O_CREAT, S_IWUSR | S_IRUSR);
26435 if (fd <= 0)
26436 return 0;
26437 if (unlink ("testfile") == -1)
26438 return 1;
26439 write (fd, "This is a test\n", 15);
26440 close (fd);
26442 if (open ("testfile", O_RDONLY) == -1 && errno == ENOENT)
26443 return 0;
26444 else
26445 return 1;
26447 _ACEOF
26448 if ac_fn_c_try_run "$LINENO"; then :
26449 libgfor_cv_have_unlink_open_file=yes
26450 else
26451 libgfor_cv_have_unlink_open_file=no
26453 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26454 conftest.$ac_objext conftest.beam conftest.$ac_ext
26458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_unlink_open_file" >&5
26459 $as_echo "$libgfor_cv_have_unlink_open_file" >&6; }
26460 if test x"$libgfor_cv_have_unlink_open_file" = xyes; then
26462 $as_echo "#define HAVE_UNLINK_OPEN_FILE 1" >>confdefs.h
26466 # Check whether line terminator is LF or CRLF
26468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target has CRLF as line terminator" >&5
26469 $as_echo_n "checking whether the target has CRLF as line terminator... " >&6; }
26470 if test "${libgfor_cv_have_crlf+set}" = set; then :
26471 $as_echo_n "(cached) " >&6
26472 else
26474 if test "$cross_compiling" = yes; then :
26476 case "${target}" in
26477 *mingw*) libgfor_cv_have_crlf=yes ;;
26478 *) libgfor_cv_have_crlf=no;;
26479 esac
26480 else
26481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26482 /* end confdefs.h. */
26484 /* This test program should exit with status 0 if system uses a CRLF as
26485 line terminator, and status 1 otherwise.
26486 Since it is used to check for mingw systems, and should return 0 in any
26487 other case, in case of a failure we will not use CRLF. */
26488 #include <sys/stat.h>
26489 #include <stdlib.h>
26490 #include <fcntl.h>
26491 #include <stdio.h>
26493 int main ()
26495 #ifndef O_BINARY
26496 exit(1);
26497 #else
26498 int fd, bytes;
26499 char buff[5];
26501 fd = open ("foo", O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU);
26502 if (fd < 0)
26503 exit(1);
26504 if (write (fd, "\n", 1) < 0)
26505 perror ("write");
26507 close (fd);
26509 if ((fd = open ("foo", O_RDONLY | O_BINARY, S_IRWXU)) < 0)
26510 exit(1);
26511 bytes = read (fd, buff, 5);
26512 if (bytes == 2 && buff[0] == '\r' && buff[1] == '\n')
26513 exit(0);
26514 else
26515 exit(1);
26516 #endif
26518 _ACEOF
26519 if ac_fn_c_try_run "$LINENO"; then :
26520 libgfor_cv_have_crlf=yes
26521 else
26522 libgfor_cv_have_crlf=no
26524 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26525 conftest.$ac_objext conftest.beam conftest.$ac_ext
26529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_crlf" >&5
26530 $as_echo "$libgfor_cv_have_crlf" >&6; }
26531 if test x"$libgfor_cv_have_crlf" = xyes; then
26533 $as_echo "#define HAVE_CRLF 1" >>confdefs.h
26537 # Check whether we have _Unwind_GetIPInfo for backtrace
26540 # Check whether --with-system-libunwind was given.
26541 if test "${with_system_libunwind+set}" = set; then :
26542 withval=$with_system_libunwind;
26545 # If system-libunwind was not specifically set, pick a default setting.
26546 if test x$with_system_libunwind = x; then
26547 case ${target} in
26548 ia64-*-hpux*) with_system_libunwind=yes ;;
26549 *) with_system_libunwind=no ;;
26550 esac
26552 # Based on system-libunwind and target, do we have ipinfo?
26553 if test x$with_system_libunwind = xyes; then
26554 case ${target} in
26555 ia64-*-*) have_unwind_getipinfo=no ;;
26556 *) have_unwind_getipinfo=yes ;;
26557 esac
26558 else
26559 # Darwin before version 9 does not have _Unwind_GetIPInfo.
26561 case ${target} in
26562 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
26563 *) have_unwind_getipinfo=yes ;;
26564 esac
26568 if test x$have_unwind_getipinfo = xyes; then
26570 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
26575 cat >confcache <<\_ACEOF
26576 # This file is a shell script that caches the results of configure
26577 # tests run on this system so they can be shared between configure
26578 # scripts and configure runs, see configure's option --config-cache.
26579 # It is not useful on other systems. If it contains results you don't
26580 # want to keep, you may remove or edit it.
26582 # config.status only pays attention to the cache file if you give it
26583 # the --recheck option to rerun configure.
26585 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26586 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26587 # following values.
26589 _ACEOF
26591 # The following way of writing the cache mishandles newlines in values,
26592 # but we know of no workaround that is simple, portable, and efficient.
26593 # So, we kill variables containing newlines.
26594 # Ultrix sh set writes to stderr and can't be redirected directly,
26595 # and sets the high bit in the cache file unless we assign to the vars.
26597 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26598 eval ac_val=\$$ac_var
26599 case $ac_val in #(
26600 *${as_nl}*)
26601 case $ac_var in #(
26602 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26603 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26604 esac
26605 case $ac_var in #(
26606 _ | IFS | as_nl) ;; #(
26607 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26608 *) { eval $ac_var=; unset $ac_var;} ;;
26609 esac ;;
26610 esac
26611 done
26613 (set) 2>&1 |
26614 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26615 *${as_nl}ac_space=\ *)
26616 # `set' does not quote correctly, so add quotes: double-quote
26617 # substitution turns \\\\ into \\, and sed turns \\ into \.
26618 sed -n \
26619 "s/'/'\\\\''/g;
26620 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26621 ;; #(
26623 # `set' quotes correctly as required by POSIX, so do not add quotes.
26624 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26626 esac |
26627 sort
26629 sed '
26630 /^ac_cv_env_/b end
26631 t clear
26632 :clear
26633 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26634 t end
26635 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26636 :end' >>confcache
26637 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26638 if test -w "$cache_file"; then
26639 test "x$cache_file" != "x/dev/null" &&
26640 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26641 $as_echo "$as_me: updating cache $cache_file" >&6;}
26642 cat confcache >$cache_file
26643 else
26644 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26645 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26648 rm -f confcache
26650 if test ${multilib} = yes; then
26651 multilib_arg="--enable-multilib"
26652 else
26653 multilib_arg=
26656 # Write our Makefile and spec file.
26657 ac_config_files="$ac_config_files Makefile libgfortran.spec"
26659 cat >confcache <<\_ACEOF
26660 # This file is a shell script that caches the results of configure
26661 # tests run on this system so they can be shared between configure
26662 # scripts and configure runs, see configure's option --config-cache.
26663 # It is not useful on other systems. If it contains results you don't
26664 # want to keep, you may remove or edit it.
26666 # config.status only pays attention to the cache file if you give it
26667 # the --recheck option to rerun configure.
26669 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26670 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26671 # following values.
26673 _ACEOF
26675 # The following way of writing the cache mishandles newlines in values,
26676 # but we know of no workaround that is simple, portable, and efficient.
26677 # So, we kill variables containing newlines.
26678 # Ultrix sh set writes to stderr and can't be redirected directly,
26679 # and sets the high bit in the cache file unless we assign to the vars.
26681 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26682 eval ac_val=\$$ac_var
26683 case $ac_val in #(
26684 *${as_nl}*)
26685 case $ac_var in #(
26686 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26687 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26688 esac
26689 case $ac_var in #(
26690 _ | IFS | as_nl) ;; #(
26691 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26692 *) { eval $ac_var=; unset $ac_var;} ;;
26693 esac ;;
26694 esac
26695 done
26697 (set) 2>&1 |
26698 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26699 *${as_nl}ac_space=\ *)
26700 # `set' does not quote correctly, so add quotes: double-quote
26701 # substitution turns \\\\ into \\, and sed turns \\ into \.
26702 sed -n \
26703 "s/'/'\\\\''/g;
26704 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26705 ;; #(
26707 # `set' quotes correctly as required by POSIX, so do not add quotes.
26708 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26710 esac |
26711 sort
26713 sed '
26714 /^ac_cv_env_/b end
26715 t clear
26716 :clear
26717 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26718 t end
26719 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26720 :end' >>confcache
26721 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26722 if test -w "$cache_file"; then
26723 test "x$cache_file" != "x/dev/null" &&
26724 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26725 $as_echo "$as_me: updating cache $cache_file" >&6;}
26726 cat confcache >$cache_file
26727 else
26728 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26729 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26732 rm -f confcache
26734 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26735 # Let make expand exec_prefix.
26736 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26738 DEFS=-DHAVE_CONFIG_H
26740 ac_libobjs=
26741 ac_ltlibobjs=
26742 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26743 # 1. Remove the extension, and $U if already installed.
26744 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26745 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26746 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26747 # will be set to the directory where LIBOBJS objects are built.
26748 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26749 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26750 done
26751 LIBOBJS=$ac_libobjs
26753 LTLIBOBJS=$ac_ltlibobjs
26756 if test -z "${onestep_TRUE}" && test -z "${onestep_FALSE}"; then
26757 as_fn_error "conditional \"onestep\" was never defined.
26758 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26760 if test -n "$EXEEXT"; then
26761 am__EXEEXT_TRUE=
26762 am__EXEEXT_FALSE='#'
26763 else
26764 am__EXEEXT_TRUE='#'
26765 am__EXEEXT_FALSE=
26768 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26769 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
26770 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26772 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26773 as_fn_error "conditional \"AMDEP\" was never defined.
26774 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26776 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26777 as_fn_error "conditional \"am__fastdepCC\" was never defined.
26778 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26780 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26781 as_fn_error "conditional \"am__fastdepCC\" was never defined.
26782 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26784 if test -z "${LIBGFOR_USE_SYMVER_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_FALSE}"; then
26785 as_fn_error "conditional \"LIBGFOR_USE_SYMVER\" was never defined.
26786 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26788 if test -z "${LIBGFOR_USE_SYMVER_GNU_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_GNU_FALSE}"; then
26789 as_fn_error "conditional \"LIBGFOR_USE_SYMVER_GNU\" was never defined.
26790 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26792 if test -z "${LIBGFOR_USE_SYMVER_SUN_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_SUN_FALSE}"; then
26793 as_fn_error "conditional \"LIBGFOR_USE_SYMVER_SUN\" was never defined.
26794 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26796 if test -z "${LIBGFOR_BUILD_QUAD_TRUE}" && test -z "${LIBGFOR_BUILD_QUAD_FALSE}"; then
26797 as_fn_error "conditional \"LIBGFOR_BUILD_QUAD\" was never defined.
26798 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26800 if test -z "${IEEE_SUPPORT_TRUE}" && test -z "${IEEE_SUPPORT_FALSE}"; then
26801 as_fn_error "conditional \"IEEE_SUPPORT\" was never defined.
26802 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26805 : ${CONFIG_STATUS=./config.status}
26806 ac_write_fail=0
26807 ac_clean_files_save=$ac_clean_files
26808 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26809 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26810 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26811 as_write_fail=0
26812 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26813 #! $SHELL
26814 # Generated by $as_me.
26815 # Run this file to recreate the current configuration.
26816 # Compiler output produced by configure, useful for debugging
26817 # configure, is in config.log if it exists.
26819 debug=false
26820 ac_cs_recheck=false
26821 ac_cs_silent=false
26823 SHELL=\${CONFIG_SHELL-$SHELL}
26824 export SHELL
26825 _ASEOF
26826 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26827 ## -------------------- ##
26828 ## M4sh Initialization. ##
26829 ## -------------------- ##
26831 # Be more Bourne compatible
26832 DUALCASE=1; export DUALCASE # for MKS sh
26833 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26834 emulate sh
26835 NULLCMD=:
26836 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26837 # is contrary to our usage. Disable this feature.
26838 alias -g '${1+"$@"}'='"$@"'
26839 setopt NO_GLOB_SUBST
26840 else
26841 case `(set -o) 2>/dev/null` in #(
26842 *posix*) :
26843 set -o posix ;; #(
26844 *) :
26846 esac
26850 as_nl='
26852 export as_nl
26853 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26854 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26855 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26856 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26857 # Prefer a ksh shell builtin over an external printf program on Solaris,
26858 # but without wasting forks for bash or zsh.
26859 if test -z "$BASH_VERSION$ZSH_VERSION" \
26860 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26861 as_echo='print -r --'
26862 as_echo_n='print -rn --'
26863 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26864 as_echo='printf %s\n'
26865 as_echo_n='printf %s'
26866 else
26867 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26868 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26869 as_echo_n='/usr/ucb/echo -n'
26870 else
26871 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26872 as_echo_n_body='eval
26873 arg=$1;
26874 case $arg in #(
26875 *"$as_nl"*)
26876 expr "X$arg" : "X\\(.*\\)$as_nl";
26877 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26878 esac;
26879 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26881 export as_echo_n_body
26882 as_echo_n='sh -c $as_echo_n_body as_echo'
26884 export as_echo_body
26885 as_echo='sh -c $as_echo_body as_echo'
26888 # The user is always right.
26889 if test "${PATH_SEPARATOR+set}" != set; then
26890 PATH_SEPARATOR=:
26891 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26892 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26893 PATH_SEPARATOR=';'
26898 # IFS
26899 # We need space, tab and new line, in precisely that order. Quoting is
26900 # there to prevent editors from complaining about space-tab.
26901 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26902 # splitting by setting IFS to empty value.)
26903 IFS=" "" $as_nl"
26905 # Find who we are. Look in the path if we contain no directory separator.
26906 case $0 in #((
26907 *[\\/]* ) as_myself=$0 ;;
26908 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26909 for as_dir in $PATH
26911 IFS=$as_save_IFS
26912 test -z "$as_dir" && as_dir=.
26913 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26914 done
26915 IFS=$as_save_IFS
26918 esac
26919 # We did not find ourselves, most probably we were run as `sh COMMAND'
26920 # in which case we are not to be found in the path.
26921 if test "x$as_myself" = x; then
26922 as_myself=$0
26924 if test ! -f "$as_myself"; then
26925 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26926 exit 1
26929 # Unset variables that we do not need and which cause bugs (e.g. in
26930 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26931 # suppresses any "Segmentation fault" message there. '((' could
26932 # trigger a bug in pdksh 5.2.14.
26933 for as_var in BASH_ENV ENV MAIL MAILPATH
26934 do eval test x\${$as_var+set} = xset \
26935 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26936 done
26937 PS1='$ '
26938 PS2='> '
26939 PS4='+ '
26941 # NLS nuisances.
26942 LC_ALL=C
26943 export LC_ALL
26944 LANGUAGE=C
26945 export LANGUAGE
26947 # CDPATH.
26948 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26951 # as_fn_error ERROR [LINENO LOG_FD]
26952 # ---------------------------------
26953 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26954 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26955 # script with status $?, using 1 if that was 0.
26956 as_fn_error ()
26958 as_status=$?; test $as_status -eq 0 && as_status=1
26959 if test "$3"; then
26960 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26961 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
26963 $as_echo "$as_me: error: $1" >&2
26964 as_fn_exit $as_status
26965 } # as_fn_error
26968 # as_fn_set_status STATUS
26969 # -----------------------
26970 # Set $? to STATUS, without forking.
26971 as_fn_set_status ()
26973 return $1
26974 } # as_fn_set_status
26976 # as_fn_exit STATUS
26977 # -----------------
26978 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26979 as_fn_exit ()
26981 set +e
26982 as_fn_set_status $1
26983 exit $1
26984 } # as_fn_exit
26986 # as_fn_unset VAR
26987 # ---------------
26988 # Portably unset VAR.
26989 as_fn_unset ()
26991 { eval $1=; unset $1;}
26993 as_unset=as_fn_unset
26994 # as_fn_append VAR VALUE
26995 # ----------------------
26996 # Append the text in VALUE to the end of the definition contained in VAR. Take
26997 # advantage of any shell optimizations that allow amortized linear growth over
26998 # repeated appends, instead of the typical quadratic growth present in naive
26999 # implementations.
27000 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27001 eval 'as_fn_append ()
27003 eval $1+=\$2
27005 else
27006 as_fn_append ()
27008 eval $1=\$$1\$2
27010 fi # as_fn_append
27012 # as_fn_arith ARG...
27013 # ------------------
27014 # Perform arithmetic evaluation on the ARGs, and store the result in the
27015 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27016 # must be portable across $(()) and expr.
27017 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27018 eval 'as_fn_arith ()
27020 as_val=$(( $* ))
27022 else
27023 as_fn_arith ()
27025 as_val=`expr "$@" || test $? -eq 1`
27027 fi # as_fn_arith
27030 if expr a : '\(a\)' >/dev/null 2>&1 &&
27031 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27032 as_expr=expr
27033 else
27034 as_expr=false
27037 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27038 as_basename=basename
27039 else
27040 as_basename=false
27043 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27044 as_dirname=dirname
27045 else
27046 as_dirname=false
27049 as_me=`$as_basename -- "$0" ||
27050 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27051 X"$0" : 'X\(//\)$' \| \
27052 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27053 $as_echo X/"$0" |
27054 sed '/^.*\/\([^/][^/]*\)\/*$/{
27055 s//\1/
27058 /^X\/\(\/\/\)$/{
27059 s//\1/
27062 /^X\/\(\/\).*/{
27063 s//\1/
27066 s/.*/./; q'`
27068 # Avoid depending upon Character Ranges.
27069 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27070 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27071 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27072 as_cr_digits='0123456789'
27073 as_cr_alnum=$as_cr_Letters$as_cr_digits
27075 ECHO_C= ECHO_N= ECHO_T=
27076 case `echo -n x` in #(((((
27077 -n*)
27078 case `echo 'xy\c'` in
27079 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27080 xy) ECHO_C='\c';;
27081 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27082 ECHO_T=' ';;
27083 esac;;
27085 ECHO_N='-n';;
27086 esac
27088 rm -f conf$$ conf$$.exe conf$$.file
27089 if test -d conf$$.dir; then
27090 rm -f conf$$.dir/conf$$.file
27091 else
27092 rm -f conf$$.dir
27093 mkdir conf$$.dir 2>/dev/null
27095 if (echo >conf$$.file) 2>/dev/null; then
27096 if ln -s conf$$.file conf$$ 2>/dev/null; then
27097 as_ln_s='ln -s'
27098 # ... but there are two gotchas:
27099 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27100 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27101 # In both cases, we have to default to `cp -p'.
27102 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27103 as_ln_s='cp -p'
27104 elif ln conf$$.file conf$$ 2>/dev/null; then
27105 as_ln_s=ln
27106 else
27107 as_ln_s='cp -p'
27109 else
27110 as_ln_s='cp -p'
27112 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27113 rmdir conf$$.dir 2>/dev/null
27116 # as_fn_mkdir_p
27117 # -------------
27118 # Create "$as_dir" as a directory, including parents if necessary.
27119 as_fn_mkdir_p ()
27122 case $as_dir in #(
27123 -*) as_dir=./$as_dir;;
27124 esac
27125 test -d "$as_dir" || eval $as_mkdir_p || {
27126 as_dirs=
27127 while :; do
27128 case $as_dir in #(
27129 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27130 *) as_qdir=$as_dir;;
27131 esac
27132 as_dirs="'$as_qdir' $as_dirs"
27133 as_dir=`$as_dirname -- "$as_dir" ||
27134 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27135 X"$as_dir" : 'X\(//\)[^/]' \| \
27136 X"$as_dir" : 'X\(//\)$' \| \
27137 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27138 $as_echo X"$as_dir" |
27139 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27140 s//\1/
27143 /^X\(\/\/\)[^/].*/{
27144 s//\1/
27147 /^X\(\/\/\)$/{
27148 s//\1/
27151 /^X\(\/\).*/{
27152 s//\1/
27155 s/.*/./; q'`
27156 test -d "$as_dir" && break
27157 done
27158 test -z "$as_dirs" || eval "mkdir $as_dirs"
27159 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27162 } # as_fn_mkdir_p
27163 if mkdir -p . 2>/dev/null; then
27164 as_mkdir_p='mkdir -p "$as_dir"'
27165 else
27166 test -d ./-p && rmdir ./-p
27167 as_mkdir_p=false
27170 if test -x / >/dev/null 2>&1; then
27171 as_test_x='test -x'
27172 else
27173 if ls -dL / >/dev/null 2>&1; then
27174 as_ls_L_option=L
27175 else
27176 as_ls_L_option=
27178 as_test_x='
27179 eval sh -c '\''
27180 if test -d "$1"; then
27181 test -d "$1/.";
27182 else
27183 case $1 in #(
27184 -*)set "./$1";;
27185 esac;
27186 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27187 ???[sx]*):;;*)false;;esac;fi
27188 '\'' sh
27191 as_executable_p=$as_test_x
27193 # Sed expression to map a string onto a valid CPP name.
27194 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27196 # Sed expression to map a string onto a valid variable name.
27197 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27200 exec 6>&1
27201 ## ----------------------------------- ##
27202 ## Main body of $CONFIG_STATUS script. ##
27203 ## ----------------------------------- ##
27204 _ASEOF
27205 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27207 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27208 # Save the log message, to keep $0 and so on meaningful, and to
27209 # report actual input values of CONFIG_FILES etc. instead of their
27210 # values after options handling.
27211 ac_log="
27212 This file was extended by GNU Fortran Runtime Library $as_me 0.3, which was
27213 generated by GNU Autoconf 2.64. Invocation command line was
27215 CONFIG_FILES = $CONFIG_FILES
27216 CONFIG_HEADERS = $CONFIG_HEADERS
27217 CONFIG_LINKS = $CONFIG_LINKS
27218 CONFIG_COMMANDS = $CONFIG_COMMANDS
27219 $ $0 $@
27221 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27224 _ACEOF
27226 case $ac_config_files in *"
27227 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27228 esac
27230 case $ac_config_headers in *"
27231 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27232 esac
27235 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27236 # Files that config.status was made for.
27237 config_files="$ac_config_files"
27238 config_headers="$ac_config_headers"
27239 config_commands="$ac_config_commands"
27241 _ACEOF
27243 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27244 ac_cs_usage="\
27245 \`$as_me' instantiates files and other configuration actions
27246 from templates according to the current configuration. Unless the files
27247 and actions are specified as TAGs, all are instantiated by default.
27249 Usage: $0 [OPTION]... [TAG]...
27251 -h, --help print this help, then exit
27252 -V, --version print version number and configuration settings, then exit
27253 -q, --quiet, --silent
27254 do not print progress messages
27255 -d, --debug don't remove temporary files
27256 --recheck update $as_me by reconfiguring in the same conditions
27257 --file=FILE[:TEMPLATE]
27258 instantiate the configuration file FILE
27259 --header=FILE[:TEMPLATE]
27260 instantiate the configuration header FILE
27262 Configuration files:
27263 $config_files
27265 Configuration headers:
27266 $config_headers
27268 Configuration commands:
27269 $config_commands
27271 Report bugs to the package provider.
27272 GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
27273 General help using GNU software: <http://www.gnu.org/gethelp/>."
27275 _ACEOF
27276 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27277 ac_cs_version="\\
27278 GNU Fortran Runtime Library config.status 0.3
27279 configured by $0, generated by GNU Autoconf 2.64,
27280 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27282 Copyright (C) 2009 Free Software Foundation, Inc.
27283 This config.status script is free software; the Free Software Foundation
27284 gives unlimited permission to copy, distribute and modify it."
27286 ac_pwd='$ac_pwd'
27287 srcdir='$srcdir'
27288 INSTALL='$INSTALL'
27289 MKDIR_P='$MKDIR_P'
27290 AWK='$AWK'
27291 test -n "\$AWK" || AWK=awk
27292 _ACEOF
27294 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27295 # The default lists apply if the user does not specify any file.
27296 ac_need_defaults=:
27297 while test $# != 0
27299 case $1 in
27300 --*=*)
27301 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27302 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27303 ac_shift=:
27306 ac_option=$1
27307 ac_optarg=$2
27308 ac_shift=shift
27310 esac
27312 case $ac_option in
27313 # Handling of the options.
27314 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27315 ac_cs_recheck=: ;;
27316 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27317 $as_echo "$ac_cs_version"; exit ;;
27318 --debug | --debu | --deb | --de | --d | -d )
27319 debug=: ;;
27320 --file | --fil | --fi | --f )
27321 $ac_shift
27322 case $ac_optarg in
27323 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27324 esac
27325 as_fn_append CONFIG_FILES " '$ac_optarg'"
27326 ac_need_defaults=false;;
27327 --header | --heade | --head | --hea )
27328 $ac_shift
27329 case $ac_optarg in
27330 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27331 esac
27332 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27333 ac_need_defaults=false;;
27334 --he | --h)
27335 # Conflict between --help and --header
27336 as_fn_error "ambiguous option: \`$1'
27337 Try \`$0 --help' for more information.";;
27338 --help | --hel | -h )
27339 $as_echo "$ac_cs_usage"; exit ;;
27340 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27341 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27342 ac_cs_silent=: ;;
27344 # This is an error.
27345 -*) as_fn_error "unrecognized option: \`$1'
27346 Try \`$0 --help' for more information." ;;
27348 *) as_fn_append ac_config_targets " $1"
27349 ac_need_defaults=false ;;
27351 esac
27352 shift
27353 done
27355 ac_configure_extra_args=
27357 if $ac_cs_silent; then
27358 exec 6>/dev/null
27359 ac_configure_extra_args="$ac_configure_extra_args --silent"
27362 _ACEOF
27363 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27364 if \$ac_cs_recheck; then
27365 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27366 shift
27367 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27368 CONFIG_SHELL='$SHELL'
27369 export CONFIG_SHELL
27370 exec "\$@"
27373 _ACEOF
27374 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27375 exec 5>>config.log
27377 echo
27378 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27379 ## Running $as_me. ##
27380 _ASBOX
27381 $as_echo "$ac_log"
27382 } >&5
27384 _ACEOF
27385 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27387 # INIT-COMMANDS
27390 srcdir="$srcdir"
27391 host="$host"
27392 target="$target"
27393 with_multisubdir="$with_multisubdir"
27394 with_multisrctop="$with_multisrctop"
27395 with_target_subdir="$with_target_subdir"
27396 ac_configure_args="${multilib_arg} ${ac_configure_args}"
27397 multi_basedir="$multi_basedir"
27398 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
27399 CC="$CC"
27400 CXX="$CXX"
27401 GFORTRAN="$GFORTRAN"
27402 GCJ="$GCJ"
27403 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27406 # The HP-UX ksh and POSIX shell print the target directory to stdout
27407 # if CDPATH is set.
27408 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27410 sed_quote_subst='$sed_quote_subst'
27411 double_quote_subst='$double_quote_subst'
27412 delay_variable_subst='$delay_variable_subst'
27413 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
27414 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
27415 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
27416 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
27417 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
27418 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
27419 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
27420 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
27421 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
27422 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
27423 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
27424 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
27425 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
27426 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
27427 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
27428 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
27429 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
27430 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
27431 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
27432 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
27433 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
27434 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
27435 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
27436 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
27437 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
27438 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
27439 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
27440 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
27441 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
27442 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
27443 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
27444 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
27445 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
27446 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
27447 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
27448 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
27449 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
27450 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27451 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27452 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
27453 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
27454 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
27455 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
27456 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
27457 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
27458 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
27459 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
27460 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
27461 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"`'
27462 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
27463 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
27464 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
27465 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
27466 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
27467 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
27468 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
27469 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
27470 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
27471 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
27472 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
27473 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
27474 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
27475 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
27476 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
27477 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27478 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
27479 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
27480 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
27481 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
27482 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
27483 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
27484 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27485 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
27486 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27487 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
27488 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27489 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
27490 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
27491 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
27492 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
27493 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
27494 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
27495 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
27496 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
27497 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
27498 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
27499 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
27500 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
27501 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
27502 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
27503 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
27504 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
27505 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
27506 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
27507 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
27508 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
27509 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
27510 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
27511 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
27512 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
27513 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
27514 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
27515 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
27516 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
27517 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
27518 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
27519 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
27520 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27521 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27522 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
27523 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
27524 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
27525 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
27526 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
27527 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
27528 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
27529 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
27530 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
27531 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
27532 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
27533 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
27534 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
27535 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
27536 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
27537 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
27538 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
27539 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
27540 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
27541 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
27542 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
27543 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
27544 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
27545 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
27546 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
27547 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
27548 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
27549 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
27550 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
27551 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
27552 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27553 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27554 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
27555 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
27556 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
27557 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
27558 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
27559 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
27560 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
27561 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
27562 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
27563 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
27564 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27565 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
27566 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
27567 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
27568 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
27569 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
27570 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
27571 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
27572 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
27573 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
27574 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
27575 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
27576 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
27577 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
27578 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
27579 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
27580 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
27581 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
27582 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
27583 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
27584 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
27585 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
27586 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
27587 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
27589 LTCC='$LTCC'
27590 LTCFLAGS='$LTCFLAGS'
27591 compiler='$compiler_DEFAULT'
27593 # A function that is used when there is no print builtin or printf.
27594 func_fallback_echo ()
27596 eval 'cat <<_LTECHO_EOF
27598 _LTECHO_EOF'
27601 # Quote evaled strings.
27602 for var in SHELL \
27603 ECHO \
27604 SED \
27605 GREP \
27606 EGREP \
27607 FGREP \
27608 LD \
27609 NM \
27610 LN_S \
27611 lt_SP2NL \
27612 lt_NL2SP \
27613 reload_flag \
27614 OBJDUMP \
27615 deplibs_check_method \
27616 file_magic_cmd \
27617 AR \
27618 AR_FLAGS \
27619 STRIP \
27620 RANLIB \
27621 CC \
27622 CFLAGS \
27623 compiler \
27624 lt_cv_sys_global_symbol_pipe \
27625 lt_cv_sys_global_symbol_to_cdecl \
27626 lt_cv_sys_global_symbol_to_c_name_address \
27627 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
27628 lt_prog_compiler_no_builtin_flag \
27629 lt_prog_compiler_wl \
27630 lt_prog_compiler_pic \
27631 lt_prog_compiler_static \
27632 lt_cv_prog_compiler_c_o \
27633 need_locks \
27634 DSYMUTIL \
27635 NMEDIT \
27636 LIPO \
27637 OTOOL \
27638 OTOOL64 \
27639 shrext_cmds \
27640 export_dynamic_flag_spec \
27641 whole_archive_flag_spec \
27642 compiler_needs_object \
27643 with_gnu_ld \
27644 allow_undefined_flag \
27645 no_undefined_flag \
27646 hardcode_libdir_flag_spec \
27647 hardcode_libdir_flag_spec_ld \
27648 hardcode_libdir_separator \
27649 fix_srcfile_path \
27650 exclude_expsyms \
27651 include_expsyms \
27652 file_list_spec \
27653 variables_saved_for_relink \
27654 libname_spec \
27655 library_names_spec \
27656 soname_spec \
27657 install_override_mode \
27658 finish_eval \
27659 old_striplib \
27660 striplib \
27661 compiler_lib_search_dirs \
27662 predep_objects \
27663 postdep_objects \
27664 predeps \
27665 postdeps \
27666 compiler_lib_search_path \
27667 LD_FC \
27668 reload_flag_FC \
27669 compiler_FC \
27670 lt_prog_compiler_no_builtin_flag_FC \
27671 lt_prog_compiler_wl_FC \
27672 lt_prog_compiler_pic_FC \
27673 lt_prog_compiler_static_FC \
27674 lt_cv_prog_compiler_c_o_FC \
27675 export_dynamic_flag_spec_FC \
27676 whole_archive_flag_spec_FC \
27677 compiler_needs_object_FC \
27678 with_gnu_ld_FC \
27679 allow_undefined_flag_FC \
27680 no_undefined_flag_FC \
27681 hardcode_libdir_flag_spec_FC \
27682 hardcode_libdir_flag_spec_ld_FC \
27683 hardcode_libdir_separator_FC \
27684 fix_srcfile_path_FC \
27685 exclude_expsyms_FC \
27686 include_expsyms_FC \
27687 file_list_spec_FC \
27688 compiler_lib_search_dirs_FC \
27689 predep_objects_FC \
27690 postdep_objects_FC \
27691 predeps_FC \
27692 postdeps_FC \
27693 compiler_lib_search_path_FC; do
27694 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27695 *[\\\\\\\`\\"\\\$]*)
27696 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
27699 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27701 esac
27702 done
27704 # Double-quote double-evaled strings.
27705 for var in reload_cmds \
27706 old_postinstall_cmds \
27707 old_postuninstall_cmds \
27708 old_archive_cmds \
27709 extract_expsyms_cmds \
27710 old_archive_from_new_cmds \
27711 old_archive_from_expsyms_cmds \
27712 archive_cmds \
27713 archive_expsym_cmds \
27714 module_cmds \
27715 module_expsym_cmds \
27716 export_symbols_cmds \
27717 prelink_cmds \
27718 postinstall_cmds \
27719 postuninstall_cmds \
27720 finish_cmds \
27721 sys_lib_search_path_spec \
27722 sys_lib_dlsearch_path_spec \
27723 reload_cmds_FC \
27724 old_archive_cmds_FC \
27725 old_archive_from_new_cmds_FC \
27726 old_archive_from_expsyms_cmds_FC \
27727 archive_cmds_FC \
27728 archive_expsym_cmds_FC \
27729 module_cmds_FC \
27730 module_expsym_cmds_FC \
27731 export_symbols_cmds_FC \
27732 prelink_cmds_FC; do
27733 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27734 *[\\\\\\\`\\"\\\$]*)
27735 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
27738 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27740 esac
27741 done
27743 ac_aux_dir='$ac_aux_dir'
27744 xsi_shell='$xsi_shell'
27745 lt_shell_append='$lt_shell_append'
27747 # See if we are running on zsh, and set the options which allow our
27748 # commands through without removal of \ escapes INIT.
27749 if test -n "\${ZSH_VERSION+set}" ; then
27750 setopt NO_GLOB_SUBST
27754 PACKAGE='$PACKAGE'
27755 VERSION='$VERSION'
27756 TIMESTAMP='$TIMESTAMP'
27757 RM='$RM'
27758 ofile='$ofile'
27765 GCC="$GCC"
27766 CC="$CC"
27767 acx_cv_header_stdint="$acx_cv_header_stdint"
27768 acx_cv_type_int8_t="$acx_cv_type_int8_t"
27769 acx_cv_type_int16_t="$acx_cv_type_int16_t"
27770 acx_cv_type_int32_t="$acx_cv_type_int32_t"
27771 acx_cv_type_int64_t="$acx_cv_type_int64_t"
27772 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
27773 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
27774 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
27775 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
27776 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
27777 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
27778 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
27779 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
27780 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
27783 _ACEOF
27785 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27787 # Handling of arguments.
27788 for ac_config_target in $ac_config_targets
27790 case $ac_config_target in
27791 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
27792 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
27793 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27794 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
27795 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
27796 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27797 "libgfortran.spec") CONFIG_FILES="$CONFIG_FILES libgfortran.spec" ;;
27799 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27800 esac
27801 done
27804 # If the user did not use the arguments to specify the items to instantiate,
27805 # then the envvar interface is used. Set only those that are not.
27806 # We use the long form for the default assignment because of an extremely
27807 # bizarre bug on SunOS 4.1.3.
27808 if $ac_need_defaults; then
27809 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27810 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27811 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27814 # Have a temporary directory for convenience. Make it in the build tree
27815 # simply because there is no reason against having it here, and in addition,
27816 # creating and moving files from /tmp can sometimes cause problems.
27817 # Hook for its removal unless debugging.
27818 # Note that there is a small window in which the directory will not be cleaned:
27819 # after its creation but before its name has been assigned to `$tmp'.
27820 $debug ||
27822 tmp=
27823 trap 'exit_status=$?
27824 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27826 trap 'as_fn_exit 1' 1 2 13 15
27828 # Create a (secure) tmp directory for tmp files.
27831 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27832 test -n "$tmp" && test -d "$tmp"
27833 } ||
27835 tmp=./conf$$-$RANDOM
27836 (umask 077 && mkdir "$tmp")
27837 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
27839 # Set up the scripts for CONFIG_FILES section.
27840 # No need to generate them if there are no CONFIG_FILES.
27841 # This happens for instance with `./config.status config.h'.
27842 if test -n "$CONFIG_FILES"; then
27845 ac_cr=`echo X | tr X '\015'`
27846 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27847 # But we know of no other shell where ac_cr would be empty at this
27848 # point, so we can use a bashism as a fallback.
27849 if test "x$ac_cr" = x; then
27850 eval ac_cr=\$\'\\r\'
27852 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27853 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27854 ac_cs_awk_cr='\r'
27855 else
27856 ac_cs_awk_cr=$ac_cr
27859 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27860 _ACEOF
27864 echo "cat >conf$$subs.awk <<_ACEOF" &&
27865 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27866 echo "_ACEOF"
27867 } >conf$$subs.sh ||
27868 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27869 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27870 ac_delim='%!_!# '
27871 for ac_last_try in false false false false false :; do
27872 . ./conf$$subs.sh ||
27873 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27875 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27876 if test $ac_delim_n = $ac_delim_num; then
27877 break
27878 elif $ac_last_try; then
27879 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27880 else
27881 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27883 done
27884 rm -f conf$$subs.sh
27886 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27887 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27888 _ACEOF
27889 sed -n '
27891 s/^/S["/; s/!.*/"]=/
27894 s/^[^!]*!//
27895 :repl
27896 t repl
27897 s/'"$ac_delim"'$//
27898 t delim
27901 s/\(.\{148\}\).*/\1/
27902 t more1
27903 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27906 b repl
27907 :more1
27908 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27911 s/.\{148\}//
27912 t nl
27913 :delim
27915 s/\(.\{148\}\).*/\1/
27916 t more2
27917 s/["\\]/\\&/g; s/^/"/; s/$/"/
27920 :more2
27921 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27924 s/.\{148\}//
27925 t delim
27926 ' <conf$$subs.awk | sed '
27927 /^[^""]/{
27929 s/\n//
27931 ' >>$CONFIG_STATUS || ac_write_fail=1
27932 rm -f conf$$subs.awk
27933 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27934 _ACAWK
27935 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27936 for (key in S) S_is_set[key] = 1
27937 FS = "\a"
27941 line = $ 0
27942 nfields = split(line, field, "@")
27943 substed = 0
27944 len = length(field[1])
27945 for (i = 2; i < nfields; i++) {
27946 key = field[i]
27947 keylen = length(key)
27948 if (S_is_set[key]) {
27949 value = S[key]
27950 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27951 len += length(value) + length(field[++i])
27952 substed = 1
27953 } else
27954 len += 1 + keylen
27957 print line
27960 _ACAWK
27961 _ACEOF
27962 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27963 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27964 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27965 else
27967 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27968 || as_fn_error "could not setup config files machinery" "$LINENO" 5
27969 _ACEOF
27971 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27972 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27973 # trailing colons and then remove the whole line if VPATH becomes empty
27974 # (actually we leave an empty line to preserve line numbers).
27975 if test "x$srcdir" = x.; then
27976 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27977 s/:*\$(srcdir):*/:/
27978 s/:*\${srcdir}:*/:/
27979 s/:*@srcdir@:*/:/
27980 s/^\([^=]*=[ ]*\):*/\1/
27981 s/:*$//
27982 s/^[^=]*=[ ]*$//
27986 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27987 fi # test -n "$CONFIG_FILES"
27989 # Set up the scripts for CONFIG_HEADERS section.
27990 # No need to generate them if there are no CONFIG_HEADERS.
27991 # This happens for instance with `./config.status Makefile'.
27992 if test -n "$CONFIG_HEADERS"; then
27993 cat >"$tmp/defines.awk" <<\_ACAWK ||
27994 BEGIN {
27995 _ACEOF
27997 # Transform confdefs.h into an awk script `defines.awk', embedded as
27998 # here-document in config.status, that substitutes the proper values into
27999 # config.h.in to produce config.h.
28001 # Create a delimiter string that does not exist in confdefs.h, to ease
28002 # handling of long lines.
28003 ac_delim='%!_!# '
28004 for ac_last_try in false false :; do
28005 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28006 if test -z "$ac_t"; then
28007 break
28008 elif $ac_last_try; then
28009 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28010 else
28011 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28013 done
28015 # For the awk script, D is an array of macro values keyed by name,
28016 # likewise P contains macro parameters if any. Preserve backslash
28017 # newline sequences.
28019 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28020 sed -n '
28021 s/.\{148\}/&'"$ac_delim"'/g
28022 t rset
28023 :rset
28024 s/^[ ]*#[ ]*define[ ][ ]*/ /
28025 t def
28027 :def
28028 s/\\$//
28029 t bsnl
28030 s/["\\]/\\&/g
28031 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28032 D["\1"]=" \3"/p
28033 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28035 :bsnl
28036 s/["\\]/\\&/g
28037 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28038 D["\1"]=" \3\\\\\\n"\\/p
28039 t cont
28040 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28041 t cont
28043 :cont
28045 s/.\{148\}/&'"$ac_delim"'/g
28046 t clear
28047 :clear
28048 s/\\$//
28049 t bsnlc
28050 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28052 :bsnlc
28053 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28054 b cont
28055 ' <confdefs.h | sed '
28056 s/'"$ac_delim"'/"\\\
28057 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28059 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28060 for (key in D) D_is_set[key] = 1
28061 FS = "\a"
28063 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28064 line = \$ 0
28065 split(line, arg, " ")
28066 if (arg[1] == "#") {
28067 defundef = arg[2]
28068 mac1 = arg[3]
28069 } else {
28070 defundef = substr(arg[1], 2)
28071 mac1 = arg[2]
28073 split(mac1, mac2, "(") #)
28074 macro = mac2[1]
28075 prefix = substr(line, 1, index(line, defundef) - 1)
28076 if (D_is_set[macro]) {
28077 # Preserve the white space surrounding the "#".
28078 print prefix "define", macro P[macro] D[macro]
28079 next
28080 } else {
28081 # Replace #undef with comments. This is necessary, for example,
28082 # in the case of _POSIX_SOURCE, which is predefined and required
28083 # on some systems where configure will not decide to define it.
28084 if (defundef == "undef") {
28085 print "/*", prefix defundef, macro, "*/"
28086 next
28090 { print }
28091 _ACAWK
28092 _ACEOF
28093 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28094 as_fn_error "could not setup config headers machinery" "$LINENO" 5
28095 fi # test -n "$CONFIG_HEADERS"
28098 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28099 shift
28100 for ac_tag
28102 case $ac_tag in
28103 :[FHLC]) ac_mode=$ac_tag; continue;;
28104 esac
28105 case $ac_mode$ac_tag in
28106 :[FHL]*:*);;
28107 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28108 :[FH]-) ac_tag=-:-;;
28109 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28110 esac
28111 ac_save_IFS=$IFS
28112 IFS=:
28113 set x $ac_tag
28114 IFS=$ac_save_IFS
28115 shift
28116 ac_file=$1
28117 shift
28119 case $ac_mode in
28120 :L) ac_source=$1;;
28121 :[FH])
28122 ac_file_inputs=
28123 for ac_f
28125 case $ac_f in
28126 -) ac_f="$tmp/stdin";;
28127 *) # Look for the file first in the build tree, then in the source tree
28128 # (if the path is not absolute). The absolute path cannot be DOS-style,
28129 # because $ac_f cannot contain `:'.
28130 test -f "$ac_f" ||
28131 case $ac_f in
28132 [\\/$]*) false;;
28133 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28134 esac ||
28135 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28136 esac
28137 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28138 as_fn_append ac_file_inputs " '$ac_f'"
28139 done
28141 # Let's still pretend it is `configure' which instantiates (i.e., don't
28142 # use $as_me), people would be surprised to read:
28143 # /* config.h. Generated by config.status. */
28144 configure_input='Generated from '`
28145 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28146 `' by configure.'
28147 if test x"$ac_file" != x-; then
28148 configure_input="$ac_file. $configure_input"
28149 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28150 $as_echo "$as_me: creating $ac_file" >&6;}
28152 # Neutralize special characters interpreted by sed in replacement strings.
28153 case $configure_input in #(
28154 *\&* | *\|* | *\\* )
28155 ac_sed_conf_input=`$as_echo "$configure_input" |
28156 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28157 *) ac_sed_conf_input=$configure_input;;
28158 esac
28160 case $ac_tag in
28161 *:-:* | *:-) cat >"$tmp/stdin" \
28162 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28163 esac
28165 esac
28167 ac_dir=`$as_dirname -- "$ac_file" ||
28168 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28169 X"$ac_file" : 'X\(//\)[^/]' \| \
28170 X"$ac_file" : 'X\(//\)$' \| \
28171 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28172 $as_echo X"$ac_file" |
28173 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28174 s//\1/
28177 /^X\(\/\/\)[^/].*/{
28178 s//\1/
28181 /^X\(\/\/\)$/{
28182 s//\1/
28185 /^X\(\/\).*/{
28186 s//\1/
28189 s/.*/./; q'`
28190 as_dir="$ac_dir"; as_fn_mkdir_p
28191 ac_builddir=.
28193 case "$ac_dir" in
28194 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28196 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28197 # A ".." for each directory in $ac_dir_suffix.
28198 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28199 case $ac_top_builddir_sub in
28200 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28201 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28202 esac ;;
28203 esac
28204 ac_abs_top_builddir=$ac_pwd
28205 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28206 # for backward compatibility:
28207 ac_top_builddir=$ac_top_build_prefix
28209 case $srcdir in
28210 .) # We are building in place.
28211 ac_srcdir=.
28212 ac_top_srcdir=$ac_top_builddir_sub
28213 ac_abs_top_srcdir=$ac_pwd ;;
28214 [\\/]* | ?:[\\/]* ) # Absolute name.
28215 ac_srcdir=$srcdir$ac_dir_suffix;
28216 ac_top_srcdir=$srcdir
28217 ac_abs_top_srcdir=$srcdir ;;
28218 *) # Relative name.
28219 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28220 ac_top_srcdir=$ac_top_build_prefix$srcdir
28221 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28222 esac
28223 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28226 case $ac_mode in
28229 # CONFIG_FILE
28232 case $INSTALL in
28233 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28234 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28235 esac
28236 ac_MKDIR_P=$MKDIR_P
28237 case $MKDIR_P in
28238 [\\/$]* | ?:[\\/]* ) ;;
28239 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28240 esac
28241 _ACEOF
28243 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28244 # If the template does not know about datarootdir, expand it.
28245 # FIXME: This hack should be removed a few years after 2.60.
28246 ac_datarootdir_hack=; ac_datarootdir_seen=
28247 ac_sed_dataroot='
28248 /datarootdir/ {
28252 /@datadir@/p
28253 /@docdir@/p
28254 /@infodir@/p
28255 /@localedir@/p
28256 /@mandir@/p'
28257 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28258 *datarootdir*) ac_datarootdir_seen=yes;;
28259 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28260 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28261 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28262 _ACEOF
28263 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28264 ac_datarootdir_hack='
28265 s&@datadir@&$datadir&g
28266 s&@docdir@&$docdir&g
28267 s&@infodir@&$infodir&g
28268 s&@localedir@&$localedir&g
28269 s&@mandir@&$mandir&g
28270 s&\\\${datarootdir}&$datarootdir&g' ;;
28271 esac
28272 _ACEOF
28274 # Neutralize VPATH when `$srcdir' = `.'.
28275 # Shell code in configure.ac might set extrasub.
28276 # FIXME: do we really want to maintain this feature?
28277 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28278 ac_sed_extra="$ac_vpsub
28279 $extrasub
28280 _ACEOF
28281 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28283 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28284 s|@configure_input@|$ac_sed_conf_input|;t t
28285 s&@top_builddir@&$ac_top_builddir_sub&;t t
28286 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28287 s&@srcdir@&$ac_srcdir&;t t
28288 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28289 s&@top_srcdir@&$ac_top_srcdir&;t t
28290 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28291 s&@builddir@&$ac_builddir&;t t
28292 s&@abs_builddir@&$ac_abs_builddir&;t t
28293 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28294 s&@INSTALL@&$ac_INSTALL&;t t
28295 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28296 $ac_datarootdir_hack
28298 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
28299 || as_fn_error "could not create $ac_file" "$LINENO" 5
28301 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28302 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28303 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28305 which seems to be undefined. Please make sure it is defined." >&5
28306 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28307 which seems to be undefined. Please make sure it is defined." >&2;}
28309 rm -f "$tmp/stdin"
28310 case $ac_file in
28311 -) cat "$tmp/out" && rm -f "$tmp/out";;
28312 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28313 esac \
28314 || as_fn_error "could not create $ac_file" "$LINENO" 5
28318 # CONFIG_HEADER
28320 if test x"$ac_file" != x-; then
28322 $as_echo "/* $configure_input */" \
28323 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28324 } >"$tmp/config.h" \
28325 || as_fn_error "could not create $ac_file" "$LINENO" 5
28326 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28327 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28328 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28329 else
28330 rm -f "$ac_file"
28331 mv "$tmp/config.h" "$ac_file" \
28332 || as_fn_error "could not create $ac_file" "$LINENO" 5
28334 else
28335 $as_echo "/* $configure_input */" \
28336 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28337 || as_fn_error "could not create -" "$LINENO" 5
28339 # Compute "$ac_file"'s index in $config_headers.
28340 _am_arg="$ac_file"
28341 _am_stamp_count=1
28342 for _am_header in $config_headers :; do
28343 case $_am_header in
28344 $_am_arg | $_am_arg:* )
28345 break ;;
28347 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28348 esac
28349 done
28350 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28351 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28352 X"$_am_arg" : 'X\(//\)[^/]' \| \
28353 X"$_am_arg" : 'X\(//\)$' \| \
28354 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28355 $as_echo X"$_am_arg" |
28356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28357 s//\1/
28360 /^X\(\/\/\)[^/].*/{
28361 s//\1/
28364 /^X\(\/\/\)$/{
28365 s//\1/
28368 /^X\(\/\).*/{
28369 s//\1/
28372 s/.*/./; q'`/stamp-h$_am_stamp_count
28375 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28376 $as_echo "$as_me: executing $ac_file commands" >&6;}
28378 esac
28381 case $ac_file$ac_mode in
28382 "default-1":C)
28383 # Only add multilib support code if we just rebuilt the top-level
28384 # Makefile.
28385 case " $CONFIG_FILES " in
28386 *" Makefile "*)
28387 ac_file=Makefile . ${multi_basedir}/config-ml.in
28389 esac ;;
28390 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
28391 # Autoconf 2.62 quotes --file arguments for eval, but not when files
28392 # are listed without --file. Let's play safe and only enable the eval
28393 # if we detect the quoting.
28394 case $CONFIG_FILES in
28395 *\'*) eval set x "$CONFIG_FILES" ;;
28396 *) set x $CONFIG_FILES ;;
28397 esac
28398 shift
28399 for mf
28401 # Strip MF so we end up with the name of the file.
28402 mf=`echo "$mf" | sed -e 's/:.*$//'`
28403 # Check whether this is an Automake generated Makefile or not.
28404 # We used to match only the files named `Makefile.in', but
28405 # some people rename them; so instead we look at the file content.
28406 # Grep'ing the first line is not enough: some people post-process
28407 # each Makefile.in and add a new line on top of each file to say so.
28408 # Grep'ing the whole file is not good either: AIX grep has a line
28409 # limit of 2048, but all sed's we know have understand at least 4000.
28410 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
28411 dirpart=`$as_dirname -- "$mf" ||
28412 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28413 X"$mf" : 'X\(//\)[^/]' \| \
28414 X"$mf" : 'X\(//\)$' \| \
28415 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28416 $as_echo X"$mf" |
28417 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28418 s//\1/
28421 /^X\(\/\/\)[^/].*/{
28422 s//\1/
28425 /^X\(\/\/\)$/{
28426 s//\1/
28429 /^X\(\/\).*/{
28430 s//\1/
28433 s/.*/./; q'`
28434 else
28435 continue
28437 # Extract the definition of DEPDIR, am__include, and am__quote
28438 # from the Makefile without running `make'.
28439 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28440 test -z "$DEPDIR" && continue
28441 am__include=`sed -n 's/^am__include = //p' < "$mf"`
28442 test -z "am__include" && continue
28443 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28444 # When using ansi2knr, U may be empty or an underscore; expand it
28445 U=`sed -n 's/^U = //p' < "$mf"`
28446 # Find all dependency output files, they are included files with
28447 # $(DEPDIR) in their names. We invoke sed twice because it is the
28448 # simplest approach to changing $(DEPDIR) to its actual value in the
28449 # expansion.
28450 for file in `sed -n "
28451 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28452 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28453 # Make sure the directory exists.
28454 test -f "$dirpart/$file" && continue
28455 fdir=`$as_dirname -- "$file" ||
28456 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28457 X"$file" : 'X\(//\)[^/]' \| \
28458 X"$file" : 'X\(//\)$' \| \
28459 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28460 $as_echo X"$file" |
28461 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28462 s//\1/
28465 /^X\(\/\/\)[^/].*/{
28466 s//\1/
28469 /^X\(\/\/\)$/{
28470 s//\1/
28473 /^X\(\/\).*/{
28474 s//\1/
28477 s/.*/./; q'`
28478 as_dir=$dirpart/$fdir; as_fn_mkdir_p
28479 # echo "creating $dirpart/$file"
28480 echo '# dummy' > "$dirpart/$file"
28481 done
28482 done
28485 "libtool":C)
28487 # See if we are running on zsh, and set the options which allow our
28488 # commands through without removal of \ escapes.
28489 if test -n "${ZSH_VERSION+set}" ; then
28490 setopt NO_GLOB_SUBST
28493 cfgfile="${ofile}T"
28494 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
28495 $RM "$cfgfile"
28497 cat <<_LT_EOF >> "$cfgfile"
28498 #! $SHELL
28500 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
28501 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
28502 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
28503 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
28505 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
28506 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
28507 # Written by Gordon Matzigkeit, 1996
28509 # This file is part of GNU Libtool.
28511 # GNU Libtool is free software; you can redistribute it and/or
28512 # modify it under the terms of the GNU General Public License as
28513 # published by the Free Software Foundation; either version 2 of
28514 # the License, or (at your option) any later version.
28516 # As a special exception to the GNU General Public License,
28517 # if you distribute this file as part of a program or library that
28518 # is built using GNU Libtool, you may include this file under the
28519 # same distribution terms that you use for the rest of that program.
28521 # GNU Libtool is distributed in the hope that it will be useful,
28522 # but WITHOUT ANY WARRANTY; without even the implied warranty of
28523 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28524 # GNU General Public License for more details.
28526 # You should have received a copy of the GNU General Public License
28527 # along with GNU Libtool; see the file COPYING. If not, a copy
28528 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
28529 # obtained by writing to the Free Software Foundation, Inc.,
28530 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
28533 # The names of the tagged configurations supported by this script.
28534 available_tags="FC "
28536 # ### BEGIN LIBTOOL CONFIG
28538 # Which release of libtool.m4 was used?
28539 macro_version=$macro_version
28540 macro_revision=$macro_revision
28542 # Whether or not to build shared libraries.
28543 build_libtool_libs=$enable_shared
28545 # Whether or not to build static libraries.
28546 build_old_libs=$enable_static
28548 # What type of objects to build.
28549 pic_mode=$pic_mode
28551 # Whether or not to optimize for fast installation.
28552 fast_install=$enable_fast_install
28554 # Shell to use when invoking shell scripts.
28555 SHELL=$lt_SHELL
28557 # An echo program that protects backslashes.
28558 ECHO=$lt_ECHO
28560 # The host system.
28561 host_alias=$host_alias
28562 host=$host
28563 host_os=$host_os
28565 # The build system.
28566 build_alias=$build_alias
28567 build=$build
28568 build_os=$build_os
28570 # A sed program that does not truncate output.
28571 SED=$lt_SED
28573 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
28574 Xsed="\$SED -e 1s/^X//"
28576 # A grep program that handles long lines.
28577 GREP=$lt_GREP
28579 # An ERE matcher.
28580 EGREP=$lt_EGREP
28582 # A literal string matcher.
28583 FGREP=$lt_FGREP
28585 # A BSD- or MS-compatible name lister.
28586 NM=$lt_NM
28588 # Whether we need soft or hard links.
28589 LN_S=$lt_LN_S
28591 # What is the maximum length of a command?
28592 max_cmd_len=$max_cmd_len
28594 # Object file suffix (normally "o").
28595 objext=$ac_objext
28597 # Executable file suffix (normally "").
28598 exeext=$exeext
28600 # whether the shell understands "unset".
28601 lt_unset=$lt_unset
28603 # turn spaces into newlines.
28604 SP2NL=$lt_lt_SP2NL
28606 # turn newlines into spaces.
28607 NL2SP=$lt_lt_NL2SP
28609 # An object symbol dumper.
28610 OBJDUMP=$lt_OBJDUMP
28612 # Method to check whether dependent libraries are shared objects.
28613 deplibs_check_method=$lt_deplibs_check_method
28615 # Command to use when deplibs_check_method == "file_magic".
28616 file_magic_cmd=$lt_file_magic_cmd
28618 # The archiver.
28619 AR=$lt_AR
28620 AR_FLAGS=$lt_AR_FLAGS
28622 # A symbol stripping program.
28623 STRIP=$lt_STRIP
28625 # Commands used to install an old-style archive.
28626 RANLIB=$lt_RANLIB
28627 old_postinstall_cmds=$lt_old_postinstall_cmds
28628 old_postuninstall_cmds=$lt_old_postuninstall_cmds
28630 # Whether to use a lock for old archive extraction.
28631 lock_old_archive_extraction=$lock_old_archive_extraction
28633 # A C compiler.
28634 LTCC=$lt_CC
28636 # LTCC compiler flags.
28637 LTCFLAGS=$lt_CFLAGS
28639 # Take the output of nm and produce a listing of raw symbols and C names.
28640 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28642 # Transform the output of nm in a proper C declaration.
28643 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28645 # Transform the output of nm in a C name address pair.
28646 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28648 # Transform the output of nm in a C name address pair when lib prefix is needed.
28649 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28651 # The name of the directory that contains temporary libtool files.
28652 objdir=$objdir
28654 # Used to examine libraries when file_magic_cmd begins with "file".
28655 MAGIC_CMD=$MAGIC_CMD
28657 # Must we lock files when doing compilation?
28658 need_locks=$lt_need_locks
28660 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28661 DSYMUTIL=$lt_DSYMUTIL
28663 # Tool to change global to local symbols on Mac OS X.
28664 NMEDIT=$lt_NMEDIT
28666 # Tool to manipulate fat objects and archives on Mac OS X.
28667 LIPO=$lt_LIPO
28669 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
28670 OTOOL=$lt_OTOOL
28672 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28673 OTOOL64=$lt_OTOOL64
28675 # Old archive suffix (normally "a").
28676 libext=$libext
28678 # Shared library suffix (normally ".so").
28679 shrext_cmds=$lt_shrext_cmds
28681 # The commands to extract the exported symbol list from a shared archive.
28682 extract_expsyms_cmds=$lt_extract_expsyms_cmds
28684 # Variables whose values should be saved in libtool wrapper scripts and
28685 # restored at link time.
28686 variables_saved_for_relink=$lt_variables_saved_for_relink
28688 # Do we need the "lib" prefix for modules?
28689 need_lib_prefix=$need_lib_prefix
28691 # Do we need a version for libraries?
28692 need_version=$need_version
28694 # Library versioning type.
28695 version_type=$version_type
28697 # Shared library runtime path variable.
28698 runpath_var=$runpath_var
28700 # Shared library path variable.
28701 shlibpath_var=$shlibpath_var
28703 # Is shlibpath searched before the hard-coded library search path?
28704 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28706 # Format of library name prefix.
28707 libname_spec=$lt_libname_spec
28709 # List of archive names. First name is the real one, the rest are links.
28710 # The last name is the one that the linker finds with -lNAME
28711 library_names_spec=$lt_library_names_spec
28713 # The coded name of the library, if different from the real name.
28714 soname_spec=$lt_soname_spec
28716 # Permission mode override for installation of shared libraries.
28717 install_override_mode=$lt_install_override_mode
28719 # Command to use after installation of a shared archive.
28720 postinstall_cmds=$lt_postinstall_cmds
28722 # Command to use after uninstallation of a shared archive.
28723 postuninstall_cmds=$lt_postuninstall_cmds
28725 # Commands used to finish a libtool library installation in a directory.
28726 finish_cmds=$lt_finish_cmds
28728 # As "finish_cmds", except a single script fragment to be evaled but
28729 # not shown.
28730 finish_eval=$lt_finish_eval
28732 # Whether we should hardcode library paths into libraries.
28733 hardcode_into_libs=$hardcode_into_libs
28735 # Compile-time system search path for libraries.
28736 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28738 # Run-time system search path for libraries.
28739 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
28741 # Whether dlopen is supported.
28742 dlopen_support=$enable_dlopen
28744 # Whether dlopen of programs is supported.
28745 dlopen_self=$enable_dlopen_self
28747 # Whether dlopen of statically linked programs is supported.
28748 dlopen_self_static=$enable_dlopen_self_static
28750 # Commands to strip libraries.
28751 old_striplib=$lt_old_striplib
28752 striplib=$lt_striplib
28755 # The linker used to build libraries.
28756 LD=$lt_LD
28758 # How to create reloadable object files.
28759 reload_flag=$lt_reload_flag
28760 reload_cmds=$lt_reload_cmds
28762 # Commands used to build an old-style archive.
28763 old_archive_cmds=$lt_old_archive_cmds
28765 # A language specific compiler.
28766 CC=$lt_compiler
28768 # Is the compiler the GNU compiler?
28769 with_gcc=$GCC
28771 # Compiler flag to turn off builtin functions.
28772 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
28774 # How to pass a linker flag through the compiler.
28775 wl=$lt_lt_prog_compiler_wl
28777 # Additional compiler flags for building library objects.
28778 pic_flag=$lt_lt_prog_compiler_pic
28780 # Compiler flag to prevent dynamic linking.
28781 link_static_flag=$lt_lt_prog_compiler_static
28783 # Does compiler simultaneously support -c and -o options?
28784 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
28786 # Whether or not to add -lc for building shared libraries.
28787 build_libtool_need_lc=$archive_cmds_need_lc
28789 # Whether or not to disallow shared libs when runtime libs are static.
28790 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
28792 # Compiler flag to allow reflexive dlopens.
28793 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
28795 # Compiler flag to generate shared objects directly from archives.
28796 whole_archive_flag_spec=$lt_whole_archive_flag_spec
28798 # Whether the compiler copes with passing no objects directly.
28799 compiler_needs_object=$lt_compiler_needs_object
28801 # Create an old-style archive from a shared archive.
28802 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
28804 # Create a temporary old-style archive to link instead of a shared archive.
28805 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
28807 # Commands used to build a shared archive.
28808 archive_cmds=$lt_archive_cmds
28809 archive_expsym_cmds=$lt_archive_expsym_cmds
28811 # Commands used to build a loadable module if different from building
28812 # a shared archive.
28813 module_cmds=$lt_module_cmds
28814 module_expsym_cmds=$lt_module_expsym_cmds
28816 # Whether we are building with GNU ld or not.
28817 with_gnu_ld=$lt_with_gnu_ld
28819 # Flag that allows shared libraries with undefined symbols to be built.
28820 allow_undefined_flag=$lt_allow_undefined_flag
28822 # Flag that enforces no undefined symbols.
28823 no_undefined_flag=$lt_no_undefined_flag
28825 # Flag to hardcode \$libdir into a binary during linking.
28826 # This must work even if \$libdir does not exist
28827 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
28829 # If ld is used when linking, flag to hardcode \$libdir into a binary
28830 # during linking. This must work even if \$libdir does not exist.
28831 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
28833 # Whether we need a single "-rpath" flag with a separated argument.
28834 hardcode_libdir_separator=$lt_hardcode_libdir_separator
28836 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28837 # DIR into the resulting binary.
28838 hardcode_direct=$hardcode_direct
28840 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28841 # DIR into the resulting binary and the resulting library dependency is
28842 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28843 # library is relocated.
28844 hardcode_direct_absolute=$hardcode_direct_absolute
28846 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28847 # into the resulting binary.
28848 hardcode_minus_L=$hardcode_minus_L
28850 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28851 # into the resulting binary.
28852 hardcode_shlibpath_var=$hardcode_shlibpath_var
28854 # Set to "yes" if building a shared library automatically hardcodes DIR
28855 # into the library and all subsequent libraries and executables linked
28856 # against it.
28857 hardcode_automatic=$hardcode_automatic
28859 # Set to yes if linker adds runtime paths of dependent libraries
28860 # to runtime path list.
28861 inherit_rpath=$inherit_rpath
28863 # Whether libtool must link a program against all its dependency libraries.
28864 link_all_deplibs=$link_all_deplibs
28866 # Fix the shell variable \$srcfile for the compiler.
28867 fix_srcfile_path=$lt_fix_srcfile_path
28869 # Set to "yes" if exported symbols are required.
28870 always_export_symbols=$always_export_symbols
28872 # The commands to list exported symbols.
28873 export_symbols_cmds=$lt_export_symbols_cmds
28875 # Symbols that should not be listed in the preloaded symbols.
28876 exclude_expsyms=$lt_exclude_expsyms
28878 # Symbols that must always be exported.
28879 include_expsyms=$lt_include_expsyms
28881 # Commands necessary for linking programs (against libraries) with templates.
28882 prelink_cmds=$lt_prelink_cmds
28884 # Specify filename containing input files.
28885 file_list_spec=$lt_file_list_spec
28887 # How to hardcode a shared library path into an executable.
28888 hardcode_action=$hardcode_action
28890 # The directories searched by this compiler when creating a shared library.
28891 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
28893 # Dependencies to place before and after the objects being linked to
28894 # create a shared library.
28895 predep_objects=$lt_predep_objects
28896 postdep_objects=$lt_postdep_objects
28897 predeps=$lt_predeps
28898 postdeps=$lt_postdeps
28900 # The library search path used internally by the compiler when linking
28901 # a shared library.
28902 compiler_lib_search_path=$lt_compiler_lib_search_path
28904 # ### END LIBTOOL CONFIG
28906 _LT_EOF
28908 case $host_os in
28909 aix3*)
28910 cat <<\_LT_EOF >> "$cfgfile"
28911 # AIX sometimes has problems with the GCC collect2 program. For some
28912 # reason, if we set the COLLECT_NAMES environment variable, the problems
28913 # vanish in a puff of smoke.
28914 if test "X${COLLECT_NAMES+set}" != Xset; then
28915 COLLECT_NAMES=
28916 export COLLECT_NAMES
28918 _LT_EOF
28920 esac
28923 ltmain="$ac_aux_dir/ltmain.sh"
28926 # We use sed instead of cat because bash on DJGPP gets confused if
28927 # if finds mixed CR/LF and LF-only lines. Since sed operates in
28928 # text mode, it properly converts lines to CR/LF. This bash problem
28929 # is reportedly fixed, but why not run on old versions too?
28930 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
28931 || (rm -f "$cfgfile"; exit 1)
28933 case $xsi_shell in
28934 yes)
28935 cat << \_LT_EOF >> "$cfgfile"
28937 # func_dirname file append nondir_replacement
28938 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
28939 # otherwise set result to NONDIR_REPLACEMENT.
28940 func_dirname ()
28942 case ${1} in
28943 */*) func_dirname_result="${1%/*}${2}" ;;
28944 * ) func_dirname_result="${3}" ;;
28945 esac
28948 # func_basename file
28949 func_basename ()
28951 func_basename_result="${1##*/}"
28954 # func_dirname_and_basename file append nondir_replacement
28955 # perform func_basename and func_dirname in a single function
28956 # call:
28957 # dirname: Compute the dirname of FILE. If nonempty,
28958 # add APPEND to the result, otherwise set result
28959 # to NONDIR_REPLACEMENT.
28960 # value returned in "$func_dirname_result"
28961 # basename: Compute filename of FILE.
28962 # value retuned in "$func_basename_result"
28963 # Implementation must be kept synchronized with func_dirname
28964 # and func_basename. For efficiency, we do not delegate to
28965 # those functions but instead duplicate the functionality here.
28966 func_dirname_and_basename ()
28968 case ${1} in
28969 */*) func_dirname_result="${1%/*}${2}" ;;
28970 * ) func_dirname_result="${3}" ;;
28971 esac
28972 func_basename_result="${1##*/}"
28975 # func_stripname prefix suffix name
28976 # strip PREFIX and SUFFIX off of NAME.
28977 # PREFIX and SUFFIX must not contain globbing or regex special
28978 # characters, hashes, percent signs, but SUFFIX may contain a leading
28979 # dot (in which case that matches only a dot).
28980 func_stripname ()
28982 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
28983 # positional parameters, so assign one to ordinary parameter first.
28984 func_stripname_result=${3}
28985 func_stripname_result=${func_stripname_result#"${1}"}
28986 func_stripname_result=${func_stripname_result%"${2}"}
28989 # func_opt_split
28990 func_opt_split ()
28992 func_opt_split_opt=${1%%=*}
28993 func_opt_split_arg=${1#*=}
28996 # func_lo2o object
28997 func_lo2o ()
28999 case ${1} in
29000 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
29001 *) func_lo2o_result=${1} ;;
29002 esac
29005 # func_xform libobj-or-source
29006 func_xform ()
29008 func_xform_result=${1%.*}.lo
29011 # func_arith arithmetic-term...
29012 func_arith ()
29014 func_arith_result=$(( $* ))
29017 # func_len string
29018 # STRING may not start with a hyphen.
29019 func_len ()
29021 func_len_result=${#1}
29024 _LT_EOF
29026 *) # Bourne compatible functions.
29027 cat << \_LT_EOF >> "$cfgfile"
29029 # func_dirname file append nondir_replacement
29030 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
29031 # otherwise set result to NONDIR_REPLACEMENT.
29032 func_dirname ()
29034 # Extract subdirectory from the argument.
29035 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
29036 if test "X$func_dirname_result" = "X${1}"; then
29037 func_dirname_result="${3}"
29038 else
29039 func_dirname_result="$func_dirname_result${2}"
29043 # func_basename file
29044 func_basename ()
29046 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
29050 # func_stripname prefix suffix name
29051 # strip PREFIX and SUFFIX off of NAME.
29052 # PREFIX and SUFFIX must not contain globbing or regex special
29053 # characters, hashes, percent signs, but SUFFIX may contain a leading
29054 # dot (in which case that matches only a dot).
29055 # func_strip_suffix prefix name
29056 func_stripname ()
29058 case ${2} in
29059 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
29060 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
29061 esac
29064 # sed scripts:
29065 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
29066 my_sed_long_arg='1s/^-[^=]*=//'
29068 # func_opt_split
29069 func_opt_split ()
29071 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
29072 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
29075 # func_lo2o object
29076 func_lo2o ()
29078 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
29081 # func_xform libobj-or-source
29082 func_xform ()
29084 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
29087 # func_arith arithmetic-term...
29088 func_arith ()
29090 func_arith_result=`expr "$@"`
29093 # func_len string
29094 # STRING may not start with a hyphen.
29095 func_len ()
29097 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
29100 _LT_EOF
29101 esac
29103 case $lt_shell_append in
29104 yes)
29105 cat << \_LT_EOF >> "$cfgfile"
29107 # func_append var value
29108 # Append VALUE to the end of shell variable VAR.
29109 func_append ()
29111 eval "$1+=\$2"
29113 _LT_EOF
29116 cat << \_LT_EOF >> "$cfgfile"
29118 # func_append var value
29119 # Append VALUE to the end of shell variable VAR.
29120 func_append ()
29122 eval "$1=\$$1\$2"
29125 _LT_EOF
29127 esac
29130 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
29131 || (rm -f "$cfgfile"; exit 1)
29133 mv -f "$cfgfile" "$ofile" ||
29134 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
29135 chmod +x "$ofile"
29138 cat <<_LT_EOF >> "$ofile"
29140 # ### BEGIN LIBTOOL TAG CONFIG: FC
29142 # The linker used to build libraries.
29143 LD=$lt_LD_FC
29145 # How to create reloadable object files.
29146 reload_flag=$lt_reload_flag_FC
29147 reload_cmds=$lt_reload_cmds_FC
29149 # Commands used to build an old-style archive.
29150 old_archive_cmds=$lt_old_archive_cmds_FC
29152 # A language specific compiler.
29153 CC=$lt_compiler_FC
29155 # Is the compiler the GNU compiler?
29156 with_gcc=$GCC_FC
29158 # Compiler flag to turn off builtin functions.
29159 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
29161 # How to pass a linker flag through the compiler.
29162 wl=$lt_lt_prog_compiler_wl_FC
29164 # Additional compiler flags for building library objects.
29165 pic_flag=$lt_lt_prog_compiler_pic_FC
29167 # Compiler flag to prevent dynamic linking.
29168 link_static_flag=$lt_lt_prog_compiler_static_FC
29170 # Does compiler simultaneously support -c and -o options?
29171 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
29173 # Whether or not to add -lc for building shared libraries.
29174 build_libtool_need_lc=$archive_cmds_need_lc_FC
29176 # Whether or not to disallow shared libs when runtime libs are static.
29177 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
29179 # Compiler flag to allow reflexive dlopens.
29180 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
29182 # Compiler flag to generate shared objects directly from archives.
29183 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
29185 # Whether the compiler copes with passing no objects directly.
29186 compiler_needs_object=$lt_compiler_needs_object_FC
29188 # Create an old-style archive from a shared archive.
29189 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
29191 # Create a temporary old-style archive to link instead of a shared archive.
29192 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
29194 # Commands used to build a shared archive.
29195 archive_cmds=$lt_archive_cmds_FC
29196 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
29198 # Commands used to build a loadable module if different from building
29199 # a shared archive.
29200 module_cmds=$lt_module_cmds_FC
29201 module_expsym_cmds=$lt_module_expsym_cmds_FC
29203 # Whether we are building with GNU ld or not.
29204 with_gnu_ld=$lt_with_gnu_ld_FC
29206 # Flag that allows shared libraries with undefined symbols to be built.
29207 allow_undefined_flag=$lt_allow_undefined_flag_FC
29209 # Flag that enforces no undefined symbols.
29210 no_undefined_flag=$lt_no_undefined_flag_FC
29212 # Flag to hardcode \$libdir into a binary during linking.
29213 # This must work even if \$libdir does not exist
29214 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
29216 # If ld is used when linking, flag to hardcode \$libdir into a binary
29217 # during linking. This must work even if \$libdir does not exist.
29218 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
29220 # Whether we need a single "-rpath" flag with a separated argument.
29221 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
29223 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29224 # DIR into the resulting binary.
29225 hardcode_direct=$hardcode_direct_FC
29227 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29228 # DIR into the resulting binary and the resulting library dependency is
29229 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29230 # library is relocated.
29231 hardcode_direct_absolute=$hardcode_direct_absolute_FC
29233 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29234 # into the resulting binary.
29235 hardcode_minus_L=$hardcode_minus_L_FC
29237 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29238 # into the resulting binary.
29239 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
29241 # Set to "yes" if building a shared library automatically hardcodes DIR
29242 # into the library and all subsequent libraries and executables linked
29243 # against it.
29244 hardcode_automatic=$hardcode_automatic_FC
29246 # Set to yes if linker adds runtime paths of dependent libraries
29247 # to runtime path list.
29248 inherit_rpath=$inherit_rpath_FC
29250 # Whether libtool must link a program against all its dependency libraries.
29251 link_all_deplibs=$link_all_deplibs_FC
29253 # Fix the shell variable \$srcfile for the compiler.
29254 fix_srcfile_path=$lt_fix_srcfile_path_FC
29256 # Set to "yes" if exported symbols are required.
29257 always_export_symbols=$always_export_symbols_FC
29259 # The commands to list exported symbols.
29260 export_symbols_cmds=$lt_export_symbols_cmds_FC
29262 # Symbols that should not be listed in the preloaded symbols.
29263 exclude_expsyms=$lt_exclude_expsyms_FC
29265 # Symbols that must always be exported.
29266 include_expsyms=$lt_include_expsyms_FC
29268 # Commands necessary for linking programs (against libraries) with templates.
29269 prelink_cmds=$lt_prelink_cmds_FC
29271 # Specify filename containing input files.
29272 file_list_spec=$lt_file_list_spec_FC
29274 # How to hardcode a shared library path into an executable.
29275 hardcode_action=$hardcode_action_FC
29277 # The directories searched by this compiler when creating a shared library.
29278 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
29280 # Dependencies to place before and after the objects being linked to
29281 # create a shared library.
29282 predep_objects=$lt_predep_objects_FC
29283 postdep_objects=$lt_postdep_objects_FC
29284 predeps=$lt_predeps_FC
29285 postdeps=$lt_postdeps_FC
29287 # The library search path used internally by the compiler when linking
29288 # a shared library.
29289 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
29291 # ### END LIBTOOL TAG CONFIG: FC
29292 _LT_EOF
29295 "gstdint.h":C)
29296 if test "$GCC" = yes; then
29297 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
29298 else
29299 echo "/* generated for $CC */" > tmp-stdint.h
29302 sed 's/^ *//' >> tmp-stdint.h <<EOF
29304 #ifndef GCC_GENERATED_STDINT_H
29305 #define GCC_GENERATED_STDINT_H 1
29307 #include <sys/types.h>
29310 if test "$acx_cv_header_stdint" != stdint.h; then
29311 echo "#include <stddef.h>" >> tmp-stdint.h
29313 if test "$acx_cv_header_stdint" != stddef.h; then
29314 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
29317 sed 's/^ *//' >> tmp-stdint.h <<EOF
29318 /* glibc uses these symbols as guards to prevent redefinitions. */
29319 #ifdef __int8_t_defined
29320 #define _INT8_T
29321 #define _INT16_T
29322 #define _INT32_T
29323 #endif
29324 #ifdef __uint32_t_defined
29325 #define _UINT32_T
29326 #endif
29330 # ----------------- done header, emit basic int types -------------
29331 if test "$acx_cv_header_stdint" = stddef.h; then
29332 sed 's/^ *//' >> tmp-stdint.h <<EOF
29334 #ifndef _UINT8_T
29335 #define _UINT8_T
29336 #ifndef __uint8_t_defined
29337 #define __uint8_t_defined
29338 #ifndef uint8_t
29339 typedef unsigned $acx_cv_type_int8_t uint8_t;
29340 #endif
29341 #endif
29342 #endif
29344 #ifndef _UINT16_T
29345 #define _UINT16_T
29346 #ifndef __uint16_t_defined
29347 #define __uint16_t_defined
29348 #ifndef uint16_t
29349 typedef unsigned $acx_cv_type_int16_t uint16_t;
29350 #endif
29351 #endif
29352 #endif
29354 #ifndef _UINT32_T
29355 #define _UINT32_T
29356 #ifndef __uint32_t_defined
29357 #define __uint32_t_defined
29358 #ifndef uint32_t
29359 typedef unsigned $acx_cv_type_int32_t uint32_t;
29360 #endif
29361 #endif
29362 #endif
29364 #ifndef _INT8_T
29365 #define _INT8_T
29366 #ifndef __int8_t_defined
29367 #define __int8_t_defined
29368 #ifndef int8_t
29369 typedef $acx_cv_type_int8_t int8_t;
29370 #endif
29371 #endif
29372 #endif
29374 #ifndef _INT16_T
29375 #define _INT16_T
29376 #ifndef __int16_t_defined
29377 #define __int16_t_defined
29378 #ifndef int16_t
29379 typedef $acx_cv_type_int16_t int16_t;
29380 #endif
29381 #endif
29382 #endif
29384 #ifndef _INT32_T
29385 #define _INT32_T
29386 #ifndef __int32_t_defined
29387 #define __int32_t_defined
29388 #ifndef int32_t
29389 typedef $acx_cv_type_int32_t int32_t;
29390 #endif
29391 #endif
29392 #endif
29394 elif test "$ac_cv_type_u_int32_t" = yes; then
29395 sed 's/^ *//' >> tmp-stdint.h <<EOF
29397 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
29398 #ifndef _INT8_T
29399 #define _INT8_T
29400 #endif
29401 #ifndef _INT16_T
29402 #define _INT16_T
29403 #endif
29404 #ifndef _INT32_T
29405 #define _INT32_T
29406 #endif
29408 #ifndef _UINT8_T
29409 #define _UINT8_T
29410 #ifndef __uint8_t_defined
29411 #define __uint8_t_defined
29412 #ifndef uint8_t
29413 typedef u_int8_t uint8_t;
29414 #endif
29415 #endif
29416 #endif
29418 #ifndef _UINT16_T
29419 #define _UINT16_T
29420 #ifndef __uint16_t_defined
29421 #define __uint16_t_defined
29422 #ifndef uint16_t
29423 typedef u_int16_t uint16_t;
29424 #endif
29425 #endif
29426 #endif
29428 #ifndef _UINT32_T
29429 #define _UINT32_T
29430 #ifndef __uint32_t_defined
29431 #define __uint32_t_defined
29432 #ifndef uint32_t
29433 typedef u_int32_t uint32_t;
29434 #endif
29435 #endif
29436 #endif
29438 else
29439 sed 's/^ *//' >> tmp-stdint.h <<EOF
29441 /* Some systems have guard macros to prevent redefinitions, define them. */
29442 #ifndef _INT8_T
29443 #define _INT8_T
29444 #endif
29445 #ifndef _INT16_T
29446 #define _INT16_T
29447 #endif
29448 #ifndef _INT32_T
29449 #define _INT32_T
29450 #endif
29451 #ifndef _UINT8_T
29452 #define _UINT8_T
29453 #endif
29454 #ifndef _UINT16_T
29455 #define _UINT16_T
29456 #endif
29457 #ifndef _UINT32_T
29458 #define _UINT32_T
29459 #endif
29463 # ------------- done basic int types, emit int64_t types ------------
29464 if test "$ac_cv_type_uint64_t" = yes; then
29465 sed 's/^ *//' >> tmp-stdint.h <<EOF
29467 /* system headers have good uint64_t and int64_t */
29468 #ifndef _INT64_T
29469 #define _INT64_T
29470 #endif
29471 #ifndef _UINT64_T
29472 #define _UINT64_T
29473 #endif
29475 elif test "$ac_cv_type_u_int64_t" = yes; then
29476 sed 's/^ *//' >> tmp-stdint.h <<EOF
29478 /* system headers have an u_int64_t (and int64_t) */
29479 #ifndef _INT64_T
29480 #define _INT64_T
29481 #endif
29482 #ifndef _UINT64_T
29483 #define _UINT64_T
29484 #ifndef __uint64_t_defined
29485 #define __uint64_t_defined
29486 #ifndef uint64_t
29487 typedef u_int64_t uint64_t;
29488 #endif
29489 #endif
29490 #endif
29492 elif test -n "$acx_cv_type_int64_t"; then
29493 sed 's/^ *//' >> tmp-stdint.h <<EOF
29495 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
29496 #ifndef _INT64_T
29497 #define _INT64_T
29498 #ifndef int64_t
29499 typedef $acx_cv_type_int64_t int64_t;
29500 #endif
29501 #endif
29502 #ifndef _UINT64_T
29503 #define _UINT64_T
29504 #ifndef __uint64_t_defined
29505 #define __uint64_t_defined
29506 #ifndef uint64_t
29507 typedef unsigned $acx_cv_type_int64_t uint64_t;
29508 #endif
29509 #endif
29510 #endif
29512 else
29513 sed 's/^ *//' >> tmp-stdint.h <<EOF
29515 /* some common heuristics for int64_t, using compiler-specific tests */
29516 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
29517 #ifndef _INT64_T
29518 #define _INT64_T
29519 #ifndef __int64_t_defined
29520 #ifndef int64_t
29521 typedef long long int64_t;
29522 #endif
29523 #endif
29524 #endif
29525 #ifndef _UINT64_T
29526 #define _UINT64_T
29527 #ifndef uint64_t
29528 typedef unsigned long long uint64_t;
29529 #endif
29530 #endif
29532 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
29533 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
29534 does not implement __extension__. But that compiler doesn't define
29535 __GNUC_MINOR__. */
29536 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
29537 # define __extension__
29538 # endif
29540 # ifndef _INT64_T
29541 # define _INT64_T
29542 # ifndef int64_t
29543 __extension__ typedef long long int64_t;
29544 # endif
29545 # endif
29546 # ifndef _UINT64_T
29547 # define _UINT64_T
29548 # ifndef uint64_t
29549 __extension__ typedef unsigned long long uint64_t;
29550 # endif
29551 # endif
29553 #elif !defined __STRICT_ANSI__
29554 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
29556 # ifndef _INT64_T
29557 # define _INT64_T
29558 # ifndef int64_t
29559 typedef __int64 int64_t;
29560 # endif
29561 # endif
29562 # ifndef _UINT64_T
29563 # define _UINT64_T
29564 # ifndef uint64_t
29565 typedef unsigned __int64 uint64_t;
29566 # endif
29567 # endif
29568 # endif /* compiler */
29570 #endif /* ANSI version */
29574 # ------------- done int64_t types, emit intptr types ------------
29575 if test "$ac_cv_type_uintptr_t" != yes; then
29576 sed 's/^ *//' >> tmp-stdint.h <<EOF
29578 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
29579 #ifndef __uintptr_t_defined
29580 #ifndef uintptr_t
29581 typedef u$acx_cv_type_intptr_t uintptr_t;
29582 #endif
29583 #endif
29584 #ifndef __intptr_t_defined
29585 #ifndef intptr_t
29586 typedef $acx_cv_type_intptr_t intptr_t;
29587 #endif
29588 #endif
29592 # ------------- done intptr types, emit int_least types ------------
29593 if test "$ac_cv_type_int_least32_t" != yes; then
29594 sed 's/^ *//' >> tmp-stdint.h <<EOF
29596 /* Define int_least types */
29597 typedef int8_t int_least8_t;
29598 typedef int16_t int_least16_t;
29599 typedef int32_t int_least32_t;
29600 #ifdef _INT64_T
29601 typedef int64_t int_least64_t;
29602 #endif
29604 typedef uint8_t uint_least8_t;
29605 typedef uint16_t uint_least16_t;
29606 typedef uint32_t uint_least32_t;
29607 #ifdef _UINT64_T
29608 typedef uint64_t uint_least64_t;
29609 #endif
29613 # ------------- done intptr types, emit int_fast types ------------
29614 if test "$ac_cv_type_int_fast32_t" != yes; then
29615 sed 's/^ *//' >> tmp-stdint.h <<EOF
29617 /* Define int_fast types. short is often slow */
29618 typedef int8_t int_fast8_t;
29619 typedef int int_fast16_t;
29620 typedef int32_t int_fast32_t;
29621 #ifdef _INT64_T
29622 typedef int64_t int_fast64_t;
29623 #endif
29625 typedef uint8_t uint_fast8_t;
29626 typedef unsigned int uint_fast16_t;
29627 typedef uint32_t uint_fast32_t;
29628 #ifdef _UINT64_T
29629 typedef uint64_t uint_fast64_t;
29630 #endif
29634 if test "$ac_cv_type_uintmax_t" != yes; then
29635 sed 's/^ *//' >> tmp-stdint.h <<EOF
29637 /* Define intmax based on what we found */
29638 #ifndef intmax_t
29639 #ifdef _INT64_T
29640 typedef int64_t intmax_t;
29641 #else
29642 typedef long intmax_t;
29643 #endif
29644 #endif
29645 #ifndef uintmax_t
29646 #ifdef _UINT64_T
29647 typedef uint64_t uintmax_t;
29648 #else
29649 typedef unsigned long uintmax_t;
29650 #endif
29651 #endif
29655 sed 's/^ *//' >> tmp-stdint.h <<EOF
29657 #endif /* GCC_GENERATED_STDINT_H */
29660 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
29661 rm -f tmp-stdint.h
29662 else
29663 mv -f tmp-stdint.h gstdint.h
29668 esac
29669 done # for ac_tag
29672 as_fn_exit 0
29673 _ACEOF
29674 ac_clean_files=$ac_clean_files_save
29676 test $ac_write_fail = 0 ||
29677 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29680 # configure is writing to config.log, and then calls config.status.
29681 # config.status does its own redirection, appending to config.log.
29682 # Unfortunately, on DOS this fails, as config.log is still kept open
29683 # by configure, so config.status won't be able to write to it; its
29684 # output is simply discarded. So we exec the FD to /dev/null,
29685 # effectively closing config.log, so it can be properly (re)opened and
29686 # appended to by config.status. When coming back to configure, we
29687 # need to make the FD available again.
29688 if test "$no_create" != yes; then
29689 ac_cs_success=:
29690 ac_config_status_args=
29691 test "$silent" = yes &&
29692 ac_config_status_args="$ac_config_status_args --quiet"
29693 exec 5>/dev/null
29694 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29695 exec 5>>config.log
29696 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29697 # would make configure fail if this is the last instruction.
29698 $ac_cs_success || as_fn_exit $?
29700 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29701 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29702 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}