Remove unused variable and field
[official-gcc.git] / libgfortran / configure
blob21c23107394a95d68d0908e293f8c47480ba5f19
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 FPU_HOST_HEADER
610 LIBGFOR_BUILD_QUAD_FALSE
611 LIBGFOR_BUILD_QUAD_TRUE
612 LIBQUADINCLUDE
613 LIBQUADLIB_DEP
614 LIBQUADLIB
615 LIBQUADSPEC
616 extra_ldflags_libgfortran
617 ac_ct_FC
618 FCFLAGS
620 enable_static
621 enable_shared
622 lt_host_flags
623 OTOOL64
624 OTOOL
625 LIPO
626 NMEDIT
627 DSYMUTIL
628 OBJDUMP
629 LN_S
631 ac_ct_DUMPBIN
632 DUMPBIN
634 FGREP
636 LIBTOOL
637 RANLIB
640 SECTION_FLAGS
641 LIBGFOR_USE_SYMVER_SUN_FALSE
642 LIBGFOR_USE_SYMVER_SUN_TRUE
643 LIBGFOR_USE_SYMVER_GNU_FALSE
644 LIBGFOR_USE_SYMVER_GNU_TRUE
645 LIBGFOR_USE_SYMVER_FALSE
646 LIBGFOR_USE_SYMVER_TRUE
647 AM_CFLAGS
648 AM_FCFLAGS
649 toolexeclibdir
650 toolexecdir
651 EGREP
652 GREP
654 am__fastdepCC_FALSE
655 am__fastdepCC_TRUE
656 CCDEPMODE
657 AMDEPBACKSLASH
658 AMDEP_FALSE
659 AMDEP_TRUE
660 am__quote
661 am__include
662 DEPDIR
663 OBJEXT
664 EXEEXT
665 ac_ct_CC
666 CPPFLAGS
667 LDFLAGS
668 CFLAGS
670 multi_basedir
671 MAINT
672 MAINTAINER_MODE_FALSE
673 MAINTAINER_MODE_TRUE
674 am__untar
675 am__tar
676 AMTAR
677 am__leading_dot
678 SET_MAKE
680 mkdir_p
681 MKDIR_P
682 INSTALL_STRIP_PROGRAM
683 STRIP
684 install_sh
685 MAKEINFO
686 AUTOHEADER
687 AUTOMAKE
688 AUTOCONF
689 ACLOCAL
690 VERSION
691 PACKAGE
692 CYGPATH_W
693 am__isrc
694 INSTALL_DATA
695 INSTALL_SCRIPT
696 INSTALL_PROGRAM
697 target_noncanonical
698 target_os
699 target_vendor
700 target_cpu
701 target
702 host_os
703 host_vendor
704 host_cpu
705 host
706 onestep
707 onestep_FALSE
708 onestep_TRUE
709 target_subdir
710 host_subdir
711 build_subdir
712 build_libsubdir
713 build_os
714 build_vendor
715 build_cpu
716 build
717 target_alias
718 host_alias
719 build_alias
720 LIBS
721 ECHO_T
722 ECHO_N
723 ECHO_C
724 DEFS
725 mandir
726 localedir
727 libdir
728 psdir
729 pdfdir
730 dvidir
731 htmldir
732 infodir
733 docdir
734 oldincludedir
735 includedir
736 localstatedir
737 sharedstatedir
738 sysconfdir
739 datadir
740 datarootdir
741 libexecdir
742 sbindir
743 bindir
744 program_transform_name
745 prefix
746 exec_prefix
747 PACKAGE_URL
748 PACKAGE_BUGREPORT
749 PACKAGE_STRING
750 PACKAGE_VERSION
751 PACKAGE_TARNAME
752 PACKAGE_NAME
753 PATH_SEPARATOR
754 SHELL'
755 ac_subst_files=''
756 ac_user_opts='
757 enable_option_checking
758 with_build_libsubdir
759 enable_version_specific_runtime_libs
760 enable_intermodule
761 enable_maintainer_mode
762 enable_multilib
763 enable_dependency_tracking
764 enable_symvers
765 enable_shared
766 enable_static
767 with_pic
768 enable_fast_install
769 with_gnu_ld
770 enable_libtool_lock
771 enable_largefile
772 enable_libquadmath_support
773 with_system_libunwind
775 ac_precious_vars='build_alias
776 host_alias
777 target_alias
779 CFLAGS
780 LDFLAGS
781 LIBS
782 CPPFLAGS
785 FCFLAGS'
788 # Initialize some variables set by options.
789 ac_init_help=
790 ac_init_version=false
791 ac_unrecognized_opts=
792 ac_unrecognized_sep=
793 # The variables have the same names as the options, with
794 # dashes changed to underlines.
795 cache_file=/dev/null
796 exec_prefix=NONE
797 no_create=
798 no_recursion=
799 prefix=NONE
800 program_prefix=NONE
801 program_suffix=NONE
802 program_transform_name=s,x,x,
803 silent=
804 site=
805 srcdir=
806 verbose=
807 x_includes=NONE
808 x_libraries=NONE
810 # Installation directory options.
811 # These are left unexpanded so users can "make install exec_prefix=/foo"
812 # and all the variables that are supposed to be based on exec_prefix
813 # by default will actually change.
814 # Use braces instead of parens because sh, perl, etc. also accept them.
815 # (The list follows the same order as the GNU Coding Standards.)
816 bindir='${exec_prefix}/bin'
817 sbindir='${exec_prefix}/sbin'
818 libexecdir='${exec_prefix}/libexec'
819 datarootdir='${prefix}/share'
820 datadir='${datarootdir}'
821 sysconfdir='${prefix}/etc'
822 sharedstatedir='${prefix}/com'
823 localstatedir='${prefix}/var'
824 includedir='${prefix}/include'
825 oldincludedir='/usr/include'
826 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
827 infodir='${datarootdir}/info'
828 htmldir='${docdir}'
829 dvidir='${docdir}'
830 pdfdir='${docdir}'
831 psdir='${docdir}'
832 libdir='${exec_prefix}/lib'
833 localedir='${datarootdir}/locale'
834 mandir='${datarootdir}/man'
836 ac_prev=
837 ac_dashdash=
838 for ac_option
840 # If the previous option needs an argument, assign it.
841 if test -n "$ac_prev"; then
842 eval $ac_prev=\$ac_option
843 ac_prev=
844 continue
847 case $ac_option in
848 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
849 *) ac_optarg=yes ;;
850 esac
852 # Accept the important Cygnus configure options, so we can diagnose typos.
854 case $ac_dashdash$ac_option in
856 ac_dashdash=yes ;;
858 -bindir | --bindir | --bindi | --bind | --bin | --bi)
859 ac_prev=bindir ;;
860 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
861 bindir=$ac_optarg ;;
863 -build | --build | --buil | --bui | --bu)
864 ac_prev=build_alias ;;
865 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
866 build_alias=$ac_optarg ;;
868 -cache-file | --cache-file | --cache-fil | --cache-fi \
869 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
870 ac_prev=cache_file ;;
871 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
872 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
873 cache_file=$ac_optarg ;;
875 --config-cache | -C)
876 cache_file=config.cache ;;
878 -datadir | --datadir | --datadi | --datad)
879 ac_prev=datadir ;;
880 -datadir=* | --datadir=* | --datadi=* | --datad=*)
881 datadir=$ac_optarg ;;
883 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
884 | --dataroo | --dataro | --datar)
885 ac_prev=datarootdir ;;
886 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
887 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
888 datarootdir=$ac_optarg ;;
890 -disable-* | --disable-*)
891 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
892 # Reject names that are not valid shell variable names.
893 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
894 as_fn_error "invalid feature name: $ac_useropt"
895 ac_useropt_orig=$ac_useropt
896 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
897 case $ac_user_opts in
899 "enable_$ac_useropt"
900 "*) ;;
901 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
902 ac_unrecognized_sep=', ';;
903 esac
904 eval enable_$ac_useropt=no ;;
906 -docdir | --docdir | --docdi | --doc | --do)
907 ac_prev=docdir ;;
908 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
909 docdir=$ac_optarg ;;
911 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
912 ac_prev=dvidir ;;
913 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
914 dvidir=$ac_optarg ;;
916 -enable-* | --enable-*)
917 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
918 # Reject names that are not valid shell variable names.
919 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
920 as_fn_error "invalid feature name: $ac_useropt"
921 ac_useropt_orig=$ac_useropt
922 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
923 case $ac_user_opts in
925 "enable_$ac_useropt"
926 "*) ;;
927 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
928 ac_unrecognized_sep=', ';;
929 esac
930 eval enable_$ac_useropt=\$ac_optarg ;;
932 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
933 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
934 | --exec | --exe | --ex)
935 ac_prev=exec_prefix ;;
936 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
937 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
938 | --exec=* | --exe=* | --ex=*)
939 exec_prefix=$ac_optarg ;;
941 -gas | --gas | --ga | --g)
942 # Obsolete; use --with-gas.
943 with_gas=yes ;;
945 -help | --help | --hel | --he | -h)
946 ac_init_help=long ;;
947 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
948 ac_init_help=recursive ;;
949 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
950 ac_init_help=short ;;
952 -host | --host | --hos | --ho)
953 ac_prev=host_alias ;;
954 -host=* | --host=* | --hos=* | --ho=*)
955 host_alias=$ac_optarg ;;
957 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
958 ac_prev=htmldir ;;
959 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
960 | --ht=*)
961 htmldir=$ac_optarg ;;
963 -includedir | --includedir | --includedi | --included | --include \
964 | --includ | --inclu | --incl | --inc)
965 ac_prev=includedir ;;
966 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
967 | --includ=* | --inclu=* | --incl=* | --inc=*)
968 includedir=$ac_optarg ;;
970 -infodir | --infodir | --infodi | --infod | --info | --inf)
971 ac_prev=infodir ;;
972 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
973 infodir=$ac_optarg ;;
975 -libdir | --libdir | --libdi | --libd)
976 ac_prev=libdir ;;
977 -libdir=* | --libdir=* | --libdi=* | --libd=*)
978 libdir=$ac_optarg ;;
980 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
981 | --libexe | --libex | --libe)
982 ac_prev=libexecdir ;;
983 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
984 | --libexe=* | --libex=* | --libe=*)
985 libexecdir=$ac_optarg ;;
987 -localedir | --localedir | --localedi | --localed | --locale)
988 ac_prev=localedir ;;
989 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
990 localedir=$ac_optarg ;;
992 -localstatedir | --localstatedir | --localstatedi | --localstated \
993 | --localstate | --localstat | --localsta | --localst | --locals)
994 ac_prev=localstatedir ;;
995 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
996 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
997 localstatedir=$ac_optarg ;;
999 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1000 ac_prev=mandir ;;
1001 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1002 mandir=$ac_optarg ;;
1004 -nfp | --nfp | --nf)
1005 # Obsolete; use --without-fp.
1006 with_fp=no ;;
1008 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1009 | --no-cr | --no-c | -n)
1010 no_create=yes ;;
1012 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1013 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1014 no_recursion=yes ;;
1016 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1017 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1018 | --oldin | --oldi | --old | --ol | --o)
1019 ac_prev=oldincludedir ;;
1020 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1021 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1022 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1023 oldincludedir=$ac_optarg ;;
1025 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1026 ac_prev=prefix ;;
1027 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1028 prefix=$ac_optarg ;;
1030 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1031 | --program-pre | --program-pr | --program-p)
1032 ac_prev=program_prefix ;;
1033 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1034 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1035 program_prefix=$ac_optarg ;;
1037 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1038 | --program-suf | --program-su | --program-s)
1039 ac_prev=program_suffix ;;
1040 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1041 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1042 program_suffix=$ac_optarg ;;
1044 -program-transform-name | --program-transform-name \
1045 | --program-transform-nam | --program-transform-na \
1046 | --program-transform-n | --program-transform- \
1047 | --program-transform | --program-transfor \
1048 | --program-transfo | --program-transf \
1049 | --program-trans | --program-tran \
1050 | --progr-tra | --program-tr | --program-t)
1051 ac_prev=program_transform_name ;;
1052 -program-transform-name=* | --program-transform-name=* \
1053 | --program-transform-nam=* | --program-transform-na=* \
1054 | --program-transform-n=* | --program-transform-=* \
1055 | --program-transform=* | --program-transfor=* \
1056 | --program-transfo=* | --program-transf=* \
1057 | --program-trans=* | --program-tran=* \
1058 | --progr-tra=* | --program-tr=* | --program-t=*)
1059 program_transform_name=$ac_optarg ;;
1061 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1062 ac_prev=pdfdir ;;
1063 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1064 pdfdir=$ac_optarg ;;
1066 -psdir | --psdir | --psdi | --psd | --ps)
1067 ac_prev=psdir ;;
1068 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1069 psdir=$ac_optarg ;;
1071 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1072 | -silent | --silent | --silen | --sile | --sil)
1073 silent=yes ;;
1075 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1076 ac_prev=sbindir ;;
1077 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1078 | --sbi=* | --sb=*)
1079 sbindir=$ac_optarg ;;
1081 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1082 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1083 | --sharedst | --shareds | --shared | --share | --shar \
1084 | --sha | --sh)
1085 ac_prev=sharedstatedir ;;
1086 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1087 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1088 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1089 | --sha=* | --sh=*)
1090 sharedstatedir=$ac_optarg ;;
1092 -site | --site | --sit)
1093 ac_prev=site ;;
1094 -site=* | --site=* | --sit=*)
1095 site=$ac_optarg ;;
1097 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1098 ac_prev=srcdir ;;
1099 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1100 srcdir=$ac_optarg ;;
1102 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1103 | --syscon | --sysco | --sysc | --sys | --sy)
1104 ac_prev=sysconfdir ;;
1105 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1106 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1107 sysconfdir=$ac_optarg ;;
1109 -target | --target | --targe | --targ | --tar | --ta | --t)
1110 ac_prev=target_alias ;;
1111 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1112 target_alias=$ac_optarg ;;
1114 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1115 verbose=yes ;;
1117 -version | --version | --versio | --versi | --vers | -V)
1118 ac_init_version=: ;;
1120 -with-* | --with-*)
1121 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1122 # Reject names that are not valid shell variable names.
1123 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1124 as_fn_error "invalid package name: $ac_useropt"
1125 ac_useropt_orig=$ac_useropt
1126 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1127 case $ac_user_opts in
1129 "with_$ac_useropt"
1130 "*) ;;
1131 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1132 ac_unrecognized_sep=', ';;
1133 esac
1134 eval with_$ac_useropt=\$ac_optarg ;;
1136 -without-* | --without-*)
1137 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1138 # Reject names that are not valid shell variable names.
1139 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1140 as_fn_error "invalid package name: $ac_useropt"
1141 ac_useropt_orig=$ac_useropt
1142 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1143 case $ac_user_opts in
1145 "with_$ac_useropt"
1146 "*) ;;
1147 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1148 ac_unrecognized_sep=', ';;
1149 esac
1150 eval with_$ac_useropt=no ;;
1152 --x)
1153 # Obsolete; use --with-x.
1154 with_x=yes ;;
1156 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1157 | --x-incl | --x-inc | --x-in | --x-i)
1158 ac_prev=x_includes ;;
1159 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1160 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1161 x_includes=$ac_optarg ;;
1163 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1164 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1165 ac_prev=x_libraries ;;
1166 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1167 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1168 x_libraries=$ac_optarg ;;
1170 -*) as_fn_error "unrecognized option: \`$ac_option'
1171 Try \`$0 --help' for more information."
1174 *=*)
1175 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1176 # Reject names that are not valid shell variable names.
1177 case $ac_envvar in #(
1178 '' | [0-9]* | *[!_$as_cr_alnum]* )
1179 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1180 esac
1181 eval $ac_envvar=\$ac_optarg
1182 export $ac_envvar ;;
1185 # FIXME: should be removed in autoconf 3.0.
1186 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1187 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1188 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1189 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1192 esac
1193 done
1195 if test -n "$ac_prev"; then
1196 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1197 as_fn_error "missing argument to $ac_option"
1200 if test -n "$ac_unrecognized_opts"; then
1201 case $enable_option_checking in
1202 no) ;;
1203 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1204 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1205 esac
1208 # Check all directory arguments for consistency.
1209 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1210 datadir sysconfdir sharedstatedir localstatedir includedir \
1211 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1212 libdir localedir mandir
1214 eval ac_val=\$$ac_var
1215 # Remove trailing slashes.
1216 case $ac_val in
1217 */ )
1218 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1219 eval $ac_var=\$ac_val;;
1220 esac
1221 # Be sure to have absolute directory names.
1222 case $ac_val in
1223 [\\/$]* | ?:[\\/]* ) continue;;
1224 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1225 esac
1226 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1227 done
1229 # There might be people who depend on the old broken behavior: `$host'
1230 # used to hold the argument of --host etc.
1231 # FIXME: To remove some day.
1232 build=$build_alias
1233 host=$host_alias
1234 target=$target_alias
1236 # FIXME: To remove some day.
1237 if test "x$host_alias" != x; then
1238 if test "x$build_alias" = x; then
1239 cross_compiling=maybe
1240 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1241 If a cross compiler is detected then cross compile mode will be used." >&2
1242 elif test "x$build_alias" != "x$host_alias"; then
1243 cross_compiling=yes
1247 ac_tool_prefix=
1248 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1250 test "$silent" = yes && exec 6>/dev/null
1253 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1254 ac_ls_di=`ls -di .` &&
1255 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1256 as_fn_error "working directory cannot be determined"
1257 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1258 as_fn_error "pwd does not report name of working directory"
1261 # Find the source files, if location was not specified.
1262 if test -z "$srcdir"; then
1263 ac_srcdir_defaulted=yes
1264 # Try the directory containing this script, then the parent directory.
1265 ac_confdir=`$as_dirname -- "$as_myself" ||
1266 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1267 X"$as_myself" : 'X\(//\)[^/]' \| \
1268 X"$as_myself" : 'X\(//\)$' \| \
1269 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1270 $as_echo X"$as_myself" |
1271 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1272 s//\1/
1275 /^X\(\/\/\)[^/].*/{
1276 s//\1/
1279 /^X\(\/\/\)$/{
1280 s//\1/
1283 /^X\(\/\).*/{
1284 s//\1/
1287 s/.*/./; q'`
1288 srcdir=$ac_confdir
1289 if test ! -r "$srcdir/$ac_unique_file"; then
1290 srcdir=..
1292 else
1293 ac_srcdir_defaulted=no
1295 if test ! -r "$srcdir/$ac_unique_file"; then
1296 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1297 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1299 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1300 ac_abs_confdir=`(
1301 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1302 pwd)`
1303 # When building in place, set srcdir=.
1304 if test "$ac_abs_confdir" = "$ac_pwd"; then
1305 srcdir=.
1307 # Remove unnecessary trailing slashes from srcdir.
1308 # Double slashes in file names in object file debugging info
1309 # mess up M-x gdb in Emacs.
1310 case $srcdir in
1311 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1312 esac
1313 for ac_var in $ac_precious_vars; do
1314 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1315 eval ac_env_${ac_var}_value=\$${ac_var}
1316 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1317 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1318 done
1321 # Report the --help message.
1323 if test "$ac_init_help" = "long"; then
1324 # Omit some internal or obsolete options to make the list less imposing.
1325 # This message is too long to be a string in the A/UX 3.1 sh.
1326 cat <<_ACEOF
1327 \`configure' configures GNU Fortran Runtime Library 0.3 to adapt to many kinds of systems.
1329 Usage: $0 [OPTION]... [VAR=VALUE]...
1331 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1332 VAR=VALUE. See below for descriptions of some of the useful variables.
1334 Defaults for the options are specified in brackets.
1336 Configuration:
1337 -h, --help display this help and exit
1338 --help=short display options specific to this package
1339 --help=recursive display the short help of all the included packages
1340 -V, --version display version information and exit
1341 -q, --quiet, --silent do not print \`checking...' messages
1342 --cache-file=FILE cache test results in FILE [disabled]
1343 -C, --config-cache alias for \`--cache-file=config.cache'
1344 -n, --no-create do not create output files
1345 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1347 Installation directories:
1348 --prefix=PREFIX install architecture-independent files in PREFIX
1349 [$ac_default_prefix]
1350 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1351 [PREFIX]
1353 By default, \`make install' will install all the files in
1354 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1355 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1356 for instance \`--prefix=\$HOME'.
1358 For better control, use the options below.
1360 Fine tuning of the installation directories:
1361 --bindir=DIR user executables [EPREFIX/bin]
1362 --sbindir=DIR system admin executables [EPREFIX/sbin]
1363 --libexecdir=DIR program executables [EPREFIX/libexec]
1364 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1365 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1366 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1367 --libdir=DIR object code libraries [EPREFIX/lib]
1368 --includedir=DIR C header files [PREFIX/include]
1369 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1370 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1371 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1372 --infodir=DIR info documentation [DATAROOTDIR/info]
1373 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1374 --mandir=DIR man documentation [DATAROOTDIR/man]
1375 --docdir=DIR documentation root [DATAROOTDIR/doc/libgfortran]
1376 --htmldir=DIR html documentation [DOCDIR]
1377 --dvidir=DIR dvi documentation [DOCDIR]
1378 --pdfdir=DIR pdf documentation [DOCDIR]
1379 --psdir=DIR ps documentation [DOCDIR]
1380 _ACEOF
1382 cat <<\_ACEOF
1384 Program names:
1385 --program-prefix=PREFIX prepend PREFIX to installed program names
1386 --program-suffix=SUFFIX append SUFFIX to installed program names
1387 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1389 System types:
1390 --build=BUILD configure for building on BUILD [guessed]
1391 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1392 --target=TARGET configure for building compilers for TARGET [HOST]
1393 _ACEOF
1396 if test -n "$ac_init_help"; then
1397 case $ac_init_help in
1398 short | recursive ) echo "Configuration of GNU Fortran Runtime Library 0.3:";;
1399 esac
1400 cat <<\_ACEOF
1402 Optional Features:
1403 --disable-option-checking ignore unrecognized --enable/--with options
1404 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1405 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1406 --enable-version-specific-runtime-libs
1407 specify that runtime libraries should be installed
1408 in a compiler-specific directory
1409 --enable-intermodule build the library in one step
1410 --enable-maintainer-mode enable make rules and dependencies not useful
1411 (and sometimes confusing) to the casual installer
1412 --enable-multilib build many library versions (default)
1413 --disable-dependency-tracking speeds up one-time build
1414 --enable-dependency-tracking do not reject slow dependency extractors
1415 --disable-symvers disable symbol versioning for libgfortran
1416 --enable-shared[=PKGS] build shared libraries [default=yes]
1417 --enable-static[=PKGS] build static libraries [default=yes]
1418 --enable-fast-install[=PKGS]
1419 optimize for fast installation [default=yes]
1420 --disable-libtool-lock avoid locking (might break parallel builds)
1421 --disable-largefile omit support for large files
1422 --disable-libquadmath-support
1423 disable libquadmath support for Fortran
1425 Optional Packages:
1426 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1427 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1428 --with-build-libsubdir=DIR Directory where to find libraries for build system
1429 --with-pic try to use only PIC/non-PIC objects [default=use
1430 both]
1431 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1432 --with-system-libunwind use installed libunwind
1434 Some influential environment variables:
1435 CC C compiler command
1436 CFLAGS C compiler flags
1437 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1438 nonstandard directory <lib dir>
1439 LIBS libraries to pass to the linker, e.g. -l<library>
1440 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1441 you have headers in a nonstandard directory <include dir>
1442 CPP C preprocessor
1443 FC Fortran compiler command
1444 FCFLAGS Fortran compiler flags
1446 Use these variables to override the choices made by `configure' or to help
1447 it to find libraries and programs with nonstandard names/locations.
1449 Report bugs to the package provider.
1450 GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
1451 General help using GNU software: <http://www.gnu.org/gethelp/>.
1452 _ACEOF
1453 ac_status=$?
1456 if test "$ac_init_help" = "recursive"; then
1457 # If there are subdirs, report their specific --help.
1458 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1459 test -d "$ac_dir" ||
1460 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1461 continue
1462 ac_builddir=.
1464 case "$ac_dir" in
1465 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1467 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1468 # A ".." for each directory in $ac_dir_suffix.
1469 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1470 case $ac_top_builddir_sub in
1471 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1472 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1473 esac ;;
1474 esac
1475 ac_abs_top_builddir=$ac_pwd
1476 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1477 # for backward compatibility:
1478 ac_top_builddir=$ac_top_build_prefix
1480 case $srcdir in
1481 .) # We are building in place.
1482 ac_srcdir=.
1483 ac_top_srcdir=$ac_top_builddir_sub
1484 ac_abs_top_srcdir=$ac_pwd ;;
1485 [\\/]* | ?:[\\/]* ) # Absolute name.
1486 ac_srcdir=$srcdir$ac_dir_suffix;
1487 ac_top_srcdir=$srcdir
1488 ac_abs_top_srcdir=$srcdir ;;
1489 *) # Relative name.
1490 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1491 ac_top_srcdir=$ac_top_build_prefix$srcdir
1492 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1493 esac
1494 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1496 cd "$ac_dir" || { ac_status=$?; continue; }
1497 # Check for guested configure.
1498 if test -f "$ac_srcdir/configure.gnu"; then
1499 echo &&
1500 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1501 elif test -f "$ac_srcdir/configure"; then
1502 echo &&
1503 $SHELL "$ac_srcdir/configure" --help=recursive
1504 else
1505 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1506 fi || ac_status=$?
1507 cd "$ac_pwd" || { ac_status=$?; break; }
1508 done
1511 test -n "$ac_init_help" && exit $ac_status
1512 if $ac_init_version; then
1513 cat <<\_ACEOF
1514 GNU Fortran Runtime Library configure 0.3
1515 generated by GNU Autoconf 2.64
1517 Copyright (C) 2009 Free Software Foundation, Inc.
1518 This configure script is free software; the Free Software Foundation
1519 gives unlimited permission to copy, distribute and modify it.
1520 _ACEOF
1521 exit
1524 ## ------------------------ ##
1525 ## Autoconf initialization. ##
1526 ## ------------------------ ##
1528 # ac_fn_c_try_compile LINENO
1529 # --------------------------
1530 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1531 ac_fn_c_try_compile ()
1533 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1534 rm -f conftest.$ac_objext
1535 if { { ac_try="$ac_compile"
1536 case "(($ac_try" in
1537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1538 *) ac_try_echo=$ac_try;;
1539 esac
1540 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1541 $as_echo "$ac_try_echo"; } >&5
1542 (eval "$ac_compile") 2>conftest.err
1543 ac_status=$?
1544 if test -s conftest.err; then
1545 grep -v '^ *+' conftest.err >conftest.er1
1546 cat conftest.er1 >&5
1547 mv -f conftest.er1 conftest.err
1549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1550 test $ac_status = 0; } && {
1551 test -z "$ac_c_werror_flag" ||
1552 test ! -s conftest.err
1553 } && test -s conftest.$ac_objext; then :
1554 ac_retval=0
1555 else
1556 $as_echo "$as_me: failed program was:" >&5
1557 sed 's/^/| /' conftest.$ac_ext >&5
1559 ac_retval=1
1561 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1562 return $ac_retval
1564 } # ac_fn_c_try_compile
1566 # ac_fn_c_try_cpp LINENO
1567 # ----------------------
1568 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1569 ac_fn_c_try_cpp ()
1571 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1572 if { { ac_try="$ac_cpp conftest.$ac_ext"
1573 case "(($ac_try" in
1574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1575 *) ac_try_echo=$ac_try;;
1576 esac
1577 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1578 $as_echo "$ac_try_echo"; } >&5
1579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1580 ac_status=$?
1581 if test -s conftest.err; then
1582 grep -v '^ *+' conftest.err >conftest.er1
1583 cat conftest.er1 >&5
1584 mv -f conftest.er1 conftest.err
1586 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1587 test $ac_status = 0; } >/dev/null && {
1588 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1589 test ! -s conftest.err
1590 }; then :
1591 ac_retval=0
1592 else
1593 $as_echo "$as_me: failed program was:" >&5
1594 sed 's/^/| /' conftest.$ac_ext >&5
1596 ac_retval=1
1598 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1599 return $ac_retval
1601 } # ac_fn_c_try_cpp
1603 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1604 # -------------------------------------------------------
1605 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1606 # the include files in INCLUDES and setting the cache variable VAR
1607 # accordingly.
1608 ac_fn_c_check_header_mongrel ()
1610 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1611 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1613 $as_echo_n "checking for $2... " >&6; }
1614 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1615 $as_echo_n "(cached) " >&6
1617 eval ac_res=\$$3
1618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1619 $as_echo "$ac_res" >&6; }
1620 else
1621 # Is the header compilable?
1622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1623 $as_echo_n "checking $2 usability... " >&6; }
1624 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1625 /* end confdefs.h. */
1627 #include <$2>
1628 _ACEOF
1629 if ac_fn_c_try_compile "$LINENO"; then :
1630 ac_header_compiler=yes
1631 else
1632 ac_header_compiler=no
1634 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1636 $as_echo "$ac_header_compiler" >&6; }
1638 # Is the header present?
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1640 $as_echo_n "checking $2 presence... " >&6; }
1641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1642 /* end confdefs.h. */
1643 #include <$2>
1644 _ACEOF
1645 if ac_fn_c_try_cpp "$LINENO"; then :
1646 ac_header_preproc=yes
1647 else
1648 ac_header_preproc=no
1650 rm -f conftest.err conftest.$ac_ext
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1652 $as_echo "$ac_header_preproc" >&6; }
1654 # So? What about this header?
1655 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1656 yes:no: )
1657 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1658 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1660 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1662 no:yes:* )
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1664 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1665 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1666 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1668 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1670 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1672 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1674 esac
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1676 $as_echo_n "checking for $2... " >&6; }
1677 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1678 $as_echo_n "(cached) " >&6
1679 else
1680 eval "$3=\$ac_header_compiler"
1682 eval ac_res=\$$3
1683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1684 $as_echo "$ac_res" >&6; }
1686 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1688 } # ac_fn_c_check_header_mongrel
1690 # ac_fn_c_try_run LINENO
1691 # ----------------------
1692 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1693 # that executables *can* be run.
1694 ac_fn_c_try_run ()
1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1697 if { { ac_try="$ac_link"
1698 case "(($ac_try" in
1699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1700 *) ac_try_echo=$ac_try;;
1701 esac
1702 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1703 $as_echo "$ac_try_echo"; } >&5
1704 (eval "$ac_link") 2>&5
1705 ac_status=$?
1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1707 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1708 { { case "(($ac_try" in
1709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1710 *) ac_try_echo=$ac_try;;
1711 esac
1712 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1713 $as_echo "$ac_try_echo"; } >&5
1714 (eval "$ac_try") 2>&5
1715 ac_status=$?
1716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1717 test $ac_status = 0; }; }; then :
1718 ac_retval=0
1719 else
1720 $as_echo "$as_me: program exited with status $ac_status" >&5
1721 $as_echo "$as_me: failed program was:" >&5
1722 sed 's/^/| /' conftest.$ac_ext >&5
1724 ac_retval=$ac_status
1726 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1727 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1728 return $ac_retval
1730 } # ac_fn_c_try_run
1732 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1733 # -------------------------------------------------------
1734 # Tests whether HEADER exists and can be compiled using the include files in
1735 # INCLUDES, setting the cache variable VAR accordingly.
1736 ac_fn_c_check_header_compile ()
1738 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1740 $as_echo_n "checking for $2... " >&6; }
1741 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1742 $as_echo_n "(cached) " >&6
1743 else
1744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1745 /* end confdefs.h. */
1747 #include <$2>
1748 _ACEOF
1749 if ac_fn_c_try_compile "$LINENO"; then :
1750 eval "$3=yes"
1751 else
1752 eval "$3=no"
1754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1756 eval ac_res=\$$3
1757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1758 $as_echo "$ac_res" >&6; }
1759 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1761 } # ac_fn_c_check_header_compile
1763 # ac_fn_c_try_link LINENO
1764 # -----------------------
1765 # Try to link conftest.$ac_ext, and return whether this succeeded.
1766 ac_fn_c_try_link ()
1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1769 rm -f conftest.$ac_objext conftest$ac_exeext
1770 if { { ac_try="$ac_link"
1771 case "(($ac_try" in
1772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1773 *) ac_try_echo=$ac_try;;
1774 esac
1775 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1776 $as_echo "$ac_try_echo"; } >&5
1777 (eval "$ac_link") 2>conftest.err
1778 ac_status=$?
1779 if test -s conftest.err; then
1780 grep -v '^ *+' conftest.err >conftest.er1
1781 cat conftest.er1 >&5
1782 mv -f conftest.er1 conftest.err
1784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785 test $ac_status = 0; } && {
1786 test -z "$ac_c_werror_flag" ||
1787 test ! -s conftest.err
1788 } && test -s conftest$ac_exeext && {
1789 test "$cross_compiling" = yes ||
1790 $as_test_x conftest$ac_exeext
1791 }; then :
1792 ac_retval=0
1793 else
1794 $as_echo "$as_me: failed program was:" >&5
1795 sed 's/^/| /' conftest.$ac_ext >&5
1797 ac_retval=1
1799 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1800 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1801 # interfere with the next link command; also delete a directory that is
1802 # left behind by Apple's compiler. We do this before executing the actions.
1803 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1804 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1805 return $ac_retval
1807 } # ac_fn_c_try_link
1809 # ac_fn_c_check_func LINENO FUNC VAR
1810 # ----------------------------------
1811 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1812 ac_fn_c_check_func ()
1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1816 $as_echo_n "checking for $2... " >&6; }
1817 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1818 $as_echo_n "(cached) " >&6
1819 else
1820 if test x$gcc_no_link = xyes; then
1821 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1824 /* end confdefs.h. */
1825 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1826 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1827 #define $2 innocuous_$2
1829 /* System header to define __stub macros and hopefully few prototypes,
1830 which can conflict with char $2 (); below.
1831 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1832 <limits.h> exists even on freestanding compilers. */
1834 #ifdef __STDC__
1835 # include <limits.h>
1836 #else
1837 # include <assert.h>
1838 #endif
1840 #undef $2
1842 /* Override any GCC internal prototype to avoid an error.
1843 Use char because int might match the return type of a GCC
1844 builtin and then its argument prototype would still apply. */
1845 #ifdef __cplusplus
1846 extern "C"
1847 #endif
1848 char $2 ();
1849 /* The GNU C library defines this for functions which it implements
1850 to always fail with ENOSYS. Some functions are actually named
1851 something starting with __ and the normal name is an alias. */
1852 #if defined __stub_$2 || defined __stub___$2
1853 choke me
1854 #endif
1857 main ()
1859 return $2 ();
1861 return 0;
1863 _ACEOF
1864 if ac_fn_c_try_link "$LINENO"; then :
1865 eval "$3=yes"
1866 else
1867 eval "$3=no"
1869 rm -f core conftest.err conftest.$ac_objext \
1870 conftest$ac_exeext conftest.$ac_ext
1872 eval ac_res=\$$3
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1874 $as_echo "$ac_res" >&6; }
1875 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1877 } # ac_fn_c_check_func
1879 # ac_fn_fc_try_compile LINENO
1880 # ---------------------------
1881 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1882 ac_fn_fc_try_compile ()
1884 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1885 rm -f conftest.$ac_objext
1886 if { { ac_try="$ac_compile"
1887 case "(($ac_try" in
1888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1889 *) ac_try_echo=$ac_try;;
1890 esac
1891 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1892 $as_echo "$ac_try_echo"; } >&5
1893 (eval "$ac_compile") 2>conftest.err
1894 ac_status=$?
1895 if test -s conftest.err; then
1896 grep -v '^ *+' conftest.err >conftest.er1
1897 cat conftest.er1 >&5
1898 mv -f conftest.er1 conftest.err
1900 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1901 test $ac_status = 0; } && {
1902 test -z "$ac_fc_werror_flag" ||
1903 test ! -s conftest.err
1904 } && test -s conftest.$ac_objext; then :
1905 ac_retval=0
1906 else
1907 $as_echo "$as_me: failed program was:" >&5
1908 sed 's/^/| /' conftest.$ac_ext >&5
1910 ac_retval=1
1912 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1913 return $ac_retval
1915 } # ac_fn_fc_try_compile
1917 # ac_fn_fc_try_link LINENO
1918 # ------------------------
1919 # Try to link conftest.$ac_ext, and return whether this succeeded.
1920 ac_fn_fc_try_link ()
1922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923 rm -f conftest.$ac_objext conftest$ac_exeext
1924 if { { ac_try="$ac_link"
1925 case "(($ac_try" in
1926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1927 *) ac_try_echo=$ac_try;;
1928 esac
1929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1930 $as_echo "$ac_try_echo"; } >&5
1931 (eval "$ac_link") 2>conftest.err
1932 ac_status=$?
1933 if test -s conftest.err; then
1934 grep -v '^ *+' conftest.err >conftest.er1
1935 cat conftest.er1 >&5
1936 mv -f conftest.er1 conftest.err
1938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1939 test $ac_status = 0; } && {
1940 test -z "$ac_fc_werror_flag" ||
1941 test ! -s conftest.err
1942 } && test -s conftest$ac_exeext && {
1943 test "$cross_compiling" = yes ||
1944 $as_test_x conftest$ac_exeext
1945 }; then :
1946 ac_retval=0
1947 else
1948 $as_echo "$as_me: failed program was:" >&5
1949 sed 's/^/| /' conftest.$ac_ext >&5
1951 ac_retval=1
1953 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1954 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1955 # interfere with the next link command; also delete a directory that is
1956 # left behind by Apple's compiler. We do this before executing the actions.
1957 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1958 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1959 return $ac_retval
1961 } # ac_fn_fc_try_link
1963 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1964 # -------------------------------------------
1965 # Tests whether TYPE exists after having included INCLUDES, setting cache
1966 # variable VAR accordingly.
1967 ac_fn_c_check_type ()
1969 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1971 $as_echo_n "checking for $2... " >&6; }
1972 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1973 $as_echo_n "(cached) " >&6
1974 else
1975 eval "$3=no"
1976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1977 /* end confdefs.h. */
1980 main ()
1982 if (sizeof ($2))
1983 return 0;
1985 return 0;
1987 _ACEOF
1988 if ac_fn_c_try_compile "$LINENO"; then :
1989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1990 /* end confdefs.h. */
1993 main ()
1995 if (sizeof (($2)))
1996 return 0;
1998 return 0;
2000 _ACEOF
2001 if ac_fn_c_try_compile "$LINENO"; then :
2003 else
2004 eval "$3=yes"
2006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2010 eval ac_res=\$$3
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2012 $as_echo "$ac_res" >&6; }
2013 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2015 } # ac_fn_c_check_type
2017 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2018 # --------------------------------------------
2019 # Tries to find the compile-time value of EXPR in a program that includes
2020 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2021 # computed
2022 ac_fn_c_compute_int ()
2024 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2025 if test "$cross_compiling" = yes; then
2026 # Depending upon the size, compute the lo and hi bounds.
2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2028 /* end confdefs.h. */
2031 main ()
2033 static int test_array [1 - 2 * !(($2) >= 0)];
2034 test_array [0] = 0
2037 return 0;
2039 _ACEOF
2040 if ac_fn_c_try_compile "$LINENO"; then :
2041 ac_lo=0 ac_mid=0
2042 while :; do
2043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2044 /* end confdefs.h. */
2047 main ()
2049 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2050 test_array [0] = 0
2053 return 0;
2055 _ACEOF
2056 if ac_fn_c_try_compile "$LINENO"; then :
2057 ac_hi=$ac_mid; break
2058 else
2059 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2060 if test $ac_lo -le $ac_mid; then
2061 ac_lo= ac_hi=
2062 break
2064 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2067 done
2068 else
2069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2070 /* end confdefs.h. */
2073 main ()
2075 static int test_array [1 - 2 * !(($2) < 0)];
2076 test_array [0] = 0
2079 return 0;
2081 _ACEOF
2082 if ac_fn_c_try_compile "$LINENO"; then :
2083 ac_hi=-1 ac_mid=-1
2084 while :; do
2085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2086 /* end confdefs.h. */
2089 main ()
2091 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2092 test_array [0] = 0
2095 return 0;
2097 _ACEOF
2098 if ac_fn_c_try_compile "$LINENO"; then :
2099 ac_lo=$ac_mid; break
2100 else
2101 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2102 if test $ac_mid -le $ac_hi; then
2103 ac_lo= ac_hi=
2104 break
2106 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2109 done
2110 else
2111 ac_lo= ac_hi=
2113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2115 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2116 # Binary search between lo and hi bounds.
2117 while test "x$ac_lo" != "x$ac_hi"; do
2118 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2120 /* end confdefs.h. */
2123 main ()
2125 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2126 test_array [0] = 0
2129 return 0;
2131 _ACEOF
2132 if ac_fn_c_try_compile "$LINENO"; then :
2133 ac_hi=$ac_mid
2134 else
2135 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2138 done
2139 case $ac_lo in #((
2140 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2141 '') ac_retval=1 ;;
2142 esac
2143 else
2144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2145 /* end confdefs.h. */
2147 static long int longval () { return $2; }
2148 static unsigned long int ulongval () { return $2; }
2149 #include <stdio.h>
2150 #include <stdlib.h>
2152 main ()
2155 FILE *f = fopen ("conftest.val", "w");
2156 if (! f)
2157 return 1;
2158 if (($2) < 0)
2160 long int i = longval ();
2161 if (i != ($2))
2162 return 1;
2163 fprintf (f, "%ld", i);
2165 else
2167 unsigned long int i = ulongval ();
2168 if (i != ($2))
2169 return 1;
2170 fprintf (f, "%lu", i);
2172 /* Do not output a trailing newline, as this causes \r\n confusion
2173 on some platforms. */
2174 return ferror (f) || fclose (f) != 0;
2177 return 0;
2179 _ACEOF
2180 if ac_fn_c_try_run "$LINENO"; then :
2181 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2182 else
2183 ac_retval=1
2185 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2186 conftest.$ac_objext conftest.beam conftest.$ac_ext
2187 rm -f conftest.val
2190 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2191 return $ac_retval
2193 } # ac_fn_c_compute_int
2195 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2196 # ----------------------------------------------------
2197 # Tries to find if the field MEMBER exists in type AGGR, after including
2198 # INCLUDES, setting cache variable VAR accordingly.
2199 ac_fn_c_check_member ()
2201 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2203 $as_echo_n "checking for $2.$3... " >&6; }
2204 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2205 $as_echo_n "(cached) " >&6
2206 else
2207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2208 /* end confdefs.h. */
2211 main ()
2213 static $2 ac_aggr;
2214 if (ac_aggr.$3)
2215 return 0;
2217 return 0;
2219 _ACEOF
2220 if ac_fn_c_try_compile "$LINENO"; then :
2221 eval "$4=yes"
2222 else
2223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2224 /* end confdefs.h. */
2227 main ()
2229 static $2 ac_aggr;
2230 if (sizeof ac_aggr.$3)
2231 return 0;
2233 return 0;
2235 _ACEOF
2236 if ac_fn_c_try_compile "$LINENO"; then :
2237 eval "$4=yes"
2238 else
2239 eval "$4=no"
2241 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2243 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2245 eval ac_res=\$$4
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2247 $as_echo "$ac_res" >&6; }
2248 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2250 } # ac_fn_c_check_member
2251 cat >config.log <<_ACEOF
2252 This file contains any messages produced by compilers while
2253 running configure, to aid debugging if configure makes a mistake.
2255 It was created by GNU Fortran Runtime Library $as_me 0.3, which was
2256 generated by GNU Autoconf 2.64. Invocation command line was
2258 $ $0 $@
2260 _ACEOF
2261 exec 5>>config.log
2263 cat <<_ASUNAME
2264 ## --------- ##
2265 ## Platform. ##
2266 ## --------- ##
2268 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2269 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2270 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2271 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2272 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2274 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2275 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2277 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2278 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2279 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2280 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2281 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2282 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2283 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2285 _ASUNAME
2287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2288 for as_dir in $PATH
2290 IFS=$as_save_IFS
2291 test -z "$as_dir" && as_dir=.
2292 $as_echo "PATH: $as_dir"
2293 done
2294 IFS=$as_save_IFS
2296 } >&5
2298 cat >&5 <<_ACEOF
2301 ## ----------- ##
2302 ## Core tests. ##
2303 ## ----------- ##
2305 _ACEOF
2308 # Keep a trace of the command line.
2309 # Strip out --no-create and --no-recursion so they do not pile up.
2310 # Strip out --silent because we don't want to record it for future runs.
2311 # Also quote any args containing shell meta-characters.
2312 # Make two passes to allow for proper duplicate-argument suppression.
2313 ac_configure_args=
2314 ac_configure_args0=
2315 ac_configure_args1=
2316 ac_must_keep_next=false
2317 for ac_pass in 1 2
2319 for ac_arg
2321 case $ac_arg in
2322 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2323 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2324 | -silent | --silent | --silen | --sile | --sil)
2325 continue ;;
2326 *\'*)
2327 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2328 esac
2329 case $ac_pass in
2330 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2332 as_fn_append ac_configure_args1 " '$ac_arg'"
2333 if test $ac_must_keep_next = true; then
2334 ac_must_keep_next=false # Got value, back to normal.
2335 else
2336 case $ac_arg in
2337 *=* | --config-cache | -C | -disable-* | --disable-* \
2338 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2339 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2340 | -with-* | --with-* | -without-* | --without-* | --x)
2341 case "$ac_configure_args0 " in
2342 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2343 esac
2345 -* ) ac_must_keep_next=true ;;
2346 esac
2348 as_fn_append ac_configure_args " '$ac_arg'"
2350 esac
2351 done
2352 done
2353 { ac_configure_args0=; unset ac_configure_args0;}
2354 { ac_configure_args1=; unset ac_configure_args1;}
2356 # When interrupted or exit'd, cleanup temporary files, and complete
2357 # config.log. We remove comments because anyway the quotes in there
2358 # would cause problems or look ugly.
2359 # WARNING: Use '\'' to represent an apostrophe within the trap.
2360 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2361 trap 'exit_status=$?
2362 # Save into config.log some information that might help in debugging.
2364 echo
2366 cat <<\_ASBOX
2367 ## ---------------- ##
2368 ## Cache variables. ##
2369 ## ---------------- ##
2370 _ASBOX
2371 echo
2372 # The following way of writing the cache mishandles newlines in values,
2374 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2375 eval ac_val=\$$ac_var
2376 case $ac_val in #(
2377 *${as_nl}*)
2378 case $ac_var in #(
2379 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2380 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2381 esac
2382 case $ac_var in #(
2383 _ | IFS | as_nl) ;; #(
2384 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2385 *) { eval $ac_var=; unset $ac_var;} ;;
2386 esac ;;
2387 esac
2388 done
2389 (set) 2>&1 |
2390 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2391 *${as_nl}ac_space=\ *)
2392 sed -n \
2393 "s/'\''/'\''\\\\'\'''\''/g;
2394 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2395 ;; #(
2397 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2399 esac |
2400 sort
2402 echo
2404 cat <<\_ASBOX
2405 ## ----------------- ##
2406 ## Output variables. ##
2407 ## ----------------- ##
2408 _ASBOX
2409 echo
2410 for ac_var in $ac_subst_vars
2412 eval ac_val=\$$ac_var
2413 case $ac_val in
2414 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2415 esac
2416 $as_echo "$ac_var='\''$ac_val'\''"
2417 done | sort
2418 echo
2420 if test -n "$ac_subst_files"; then
2421 cat <<\_ASBOX
2422 ## ------------------- ##
2423 ## File substitutions. ##
2424 ## ------------------- ##
2425 _ASBOX
2426 echo
2427 for ac_var in $ac_subst_files
2429 eval ac_val=\$$ac_var
2430 case $ac_val in
2431 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2432 esac
2433 $as_echo "$ac_var='\''$ac_val'\''"
2434 done | sort
2435 echo
2438 if test -s confdefs.h; then
2439 cat <<\_ASBOX
2440 ## ----------- ##
2441 ## confdefs.h. ##
2442 ## ----------- ##
2443 _ASBOX
2444 echo
2445 cat confdefs.h
2446 echo
2448 test "$ac_signal" != 0 &&
2449 $as_echo "$as_me: caught signal $ac_signal"
2450 $as_echo "$as_me: exit $exit_status"
2451 } >&5
2452 rm -f core *.core core.conftest.* &&
2453 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2454 exit $exit_status
2456 for ac_signal in 1 2 13 15; do
2457 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2458 done
2459 ac_signal=0
2461 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2462 rm -f -r conftest* confdefs.h
2464 $as_echo "/* confdefs.h */" > confdefs.h
2466 # Predefined preprocessor variables.
2468 cat >>confdefs.h <<_ACEOF
2469 #define PACKAGE_NAME "$PACKAGE_NAME"
2470 _ACEOF
2472 cat >>confdefs.h <<_ACEOF
2473 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2474 _ACEOF
2476 cat >>confdefs.h <<_ACEOF
2477 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2478 _ACEOF
2480 cat >>confdefs.h <<_ACEOF
2481 #define PACKAGE_STRING "$PACKAGE_STRING"
2482 _ACEOF
2484 cat >>confdefs.h <<_ACEOF
2485 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2486 _ACEOF
2488 cat >>confdefs.h <<_ACEOF
2489 #define PACKAGE_URL "$PACKAGE_URL"
2490 _ACEOF
2493 # Let the site file select an alternate cache file if it wants to.
2494 # Prefer an explicitly selected file to automatically selected ones.
2495 ac_site_file1=NONE
2496 ac_site_file2=NONE
2497 if test -n "$CONFIG_SITE"; then
2498 ac_site_file1=$CONFIG_SITE
2499 elif test "x$prefix" != xNONE; then
2500 ac_site_file1=$prefix/share/config.site
2501 ac_site_file2=$prefix/etc/config.site
2502 else
2503 ac_site_file1=$ac_default_prefix/share/config.site
2504 ac_site_file2=$ac_default_prefix/etc/config.site
2506 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2508 test "x$ac_site_file" = xNONE && continue
2509 if test -r "$ac_site_file"; then
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2511 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2512 sed 's/^/| /' "$ac_site_file" >&5
2513 . "$ac_site_file"
2515 done
2517 if test -r "$cache_file"; then
2518 # Some versions of bash will fail to source /dev/null (special
2519 # files actually), so we avoid doing that.
2520 if test -f "$cache_file"; then
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2522 $as_echo "$as_me: loading cache $cache_file" >&6;}
2523 case $cache_file in
2524 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2525 *) . "./$cache_file";;
2526 esac
2528 else
2529 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2530 $as_echo "$as_me: creating cache $cache_file" >&6;}
2531 >$cache_file
2534 as_fn_append ac_header_list " unistd.h"
2535 as_fn_append ac_header_list " sys/time.h"
2536 as_fn_append ac_header_list " sys/times.h"
2537 as_fn_append ac_header_list " sys/resource.h"
2538 as_fn_append ac_header_list " sys/types.h"
2539 as_fn_append ac_header_list " sys/stat.h"
2540 as_fn_append ac_header_list " sys/wait.h"
2541 as_fn_append ac_header_list " floatingpoint.h"
2542 as_fn_append ac_header_list " ieeefp.h"
2543 as_fn_append ac_header_list " fenv.h"
2544 as_fn_append ac_header_list " fptrap.h"
2545 as_fn_append ac_header_list " fpxcp.h"
2546 as_fn_append ac_header_list " pwd.h"
2547 as_fn_append ac_header_list " complex.h"
2548 as_fn_append ac_func_list " getrusage"
2549 as_fn_append ac_func_list " times"
2550 as_fn_append ac_func_list " mkstemp"
2551 as_fn_append ac_func_list " strtof"
2552 as_fn_append ac_func_list " strtold"
2553 as_fn_append ac_func_list " snprintf"
2554 as_fn_append ac_func_list " ftruncate"
2555 as_fn_append ac_func_list " chsize"
2556 as_fn_append ac_func_list " chdir"
2557 as_fn_append ac_func_list " getlogin"
2558 as_fn_append ac_func_list " gethostname"
2559 as_fn_append ac_func_list " kill"
2560 as_fn_append ac_func_list " link"
2561 as_fn_append ac_func_list " symlink"
2562 as_fn_append ac_func_list " sleep"
2563 as_fn_append ac_func_list " ttyname"
2564 as_fn_append ac_func_list " alarm"
2565 as_fn_append ac_func_list " access"
2566 as_fn_append ac_func_list " fork"
2567 as_fn_append ac_func_list " execl"
2568 as_fn_append ac_func_list " wait"
2569 as_fn_append ac_func_list " setmode"
2570 as_fn_append ac_func_list " execve"
2571 as_fn_append ac_func_list " pipe"
2572 as_fn_append ac_func_list " dup2"
2573 as_fn_append ac_func_list " close"
2574 as_fn_append ac_func_list " strcasestr"
2575 as_fn_append ac_func_list " getrlimit"
2576 as_fn_append ac_func_list " gettimeofday"
2577 as_fn_append ac_func_list " stat"
2578 as_fn_append ac_func_list " fstat"
2579 as_fn_append ac_func_list " lstat"
2580 as_fn_append ac_func_list " getpwuid"
2581 as_fn_append ac_func_list " vsnprintf"
2582 as_fn_append ac_func_list " dup"
2583 as_fn_append ac_func_list " getcwd"
2584 as_fn_append ac_func_list " localtime_r"
2585 as_fn_append ac_func_list " gmtime_r"
2586 as_fn_append ac_func_list " getpwuid_r"
2587 as_fn_append ac_func_list " ttyname_r"
2588 as_fn_append ac_func_list " clock_gettime"
2589 as_fn_append ac_func_list " readlink"
2590 as_fn_append ac_func_list " getgid"
2591 as_fn_append ac_func_list " getpid"
2592 as_fn_append ac_func_list " getppid"
2593 as_fn_append ac_func_list " getuid"
2594 as_fn_append ac_func_list " geteuid"
2595 as_fn_append ac_func_list " umask"
2596 as_fn_append ac_func_list " getegid"
2597 as_fn_append ac_func_list " secure_getenv"
2598 as_fn_append ac_func_list " __secure_getenv"
2599 as_fn_append ac_header_list " math.h"
2600 # Check that the precious variables saved in the cache have kept the same
2601 # value.
2602 ac_cache_corrupted=false
2603 for ac_var in $ac_precious_vars; do
2604 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2605 eval ac_new_set=\$ac_env_${ac_var}_set
2606 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2607 eval ac_new_val=\$ac_env_${ac_var}_value
2608 case $ac_old_set,$ac_new_set in
2609 set,)
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2611 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2612 ac_cache_corrupted=: ;;
2613 ,set)
2614 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2615 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2616 ac_cache_corrupted=: ;;
2617 ,);;
2619 if test "x$ac_old_val" != "x$ac_new_val"; then
2620 # differences in whitespace do not lead to failure.
2621 ac_old_val_w=`echo x $ac_old_val`
2622 ac_new_val_w=`echo x $ac_new_val`
2623 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2625 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2626 ac_cache_corrupted=:
2627 else
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2629 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2630 eval $ac_var=\$ac_old_val
2632 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2633 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2634 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2635 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2636 fi;;
2637 esac
2638 # Pass precious variables to config.status.
2639 if test "$ac_new_set" = set; then
2640 case $ac_new_val in
2641 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2642 *) ac_arg=$ac_var=$ac_new_val ;;
2643 esac
2644 case " $ac_configure_args " in
2645 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2646 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2647 esac
2649 done
2650 if $ac_cache_corrupted; then
2651 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2652 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2654 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2655 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2657 ## -------------------- ##
2658 ## Main body of script. ##
2659 ## -------------------- ##
2661 ac_ext=c
2662 ac_cpp='$CPP $CPPFLAGS'
2663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2671 ac_config_headers="$ac_config_headers config.h"
2673 ac_aux_dir=
2674 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2675 for ac_t in install-sh install.sh shtool; do
2676 if test -f "$ac_dir/$ac_t"; then
2677 ac_aux_dir=$ac_dir
2678 ac_install_sh="$ac_aux_dir/$ac_t -c"
2679 break 2
2681 done
2682 done
2683 if test -z "$ac_aux_dir"; then
2684 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2687 # These three variables are undocumented and unsupported,
2688 # and are intended to be withdrawn in a future Autoconf release.
2689 # They can cause serious problems if a builder's source tree is in a directory
2690 # whose full name contains unusual characters.
2691 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2692 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2693 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2696 # Make sure we can run config.sub.
2697 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2698 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2701 $as_echo_n "checking build system type... " >&6; }
2702 if test "${ac_cv_build+set}" = set; then :
2703 $as_echo_n "(cached) " >&6
2704 else
2705 ac_build_alias=$build_alias
2706 test "x$ac_build_alias" = x &&
2707 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2708 test "x$ac_build_alias" = x &&
2709 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2710 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2711 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2715 $as_echo "$ac_cv_build" >&6; }
2716 case $ac_cv_build in
2717 *-*-*) ;;
2718 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2719 esac
2720 build=$ac_cv_build
2721 ac_save_IFS=$IFS; IFS='-'
2722 set x $ac_cv_build
2723 shift
2724 build_cpu=$1
2725 build_vendor=$2
2726 shift; shift
2727 # Remember, the first character of IFS is used to create $*,
2728 # except with old shells:
2729 build_os=$*
2730 IFS=$ac_save_IFS
2731 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2734 case ${build_alias} in
2735 "") build_noncanonical=${build} ;;
2736 *) build_noncanonical=${build_alias} ;;
2737 esac
2739 case ${host_alias} in
2740 "") host_noncanonical=${build_noncanonical} ;;
2741 *) host_noncanonical=${host_alias} ;;
2742 esac
2744 case ${target_alias} in
2745 "") target_noncanonical=${host_noncanonical} ;;
2746 *) target_noncanonical=${target_alias} ;;
2747 esac
2750 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2751 # have matching libraries, they should use host libraries: Makefile.tpl
2752 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2753 # However, they still use the build modules, because the corresponding
2754 # host modules (e.g. bison) are only built for the host when bootstrap
2755 # finishes. So:
2756 # - build_subdir is where we find build modules, and never changes.
2757 # - build_libsubdir is where we find build libraries, and can be overridden.
2759 # Prefix 'build-' so this never conflicts with target_subdir.
2760 build_subdir="build-${build_noncanonical}"
2762 # Check whether --with-build-libsubdir was given.
2763 if test "${with_build_libsubdir+set}" = set; then :
2764 withval=$with_build_libsubdir; build_libsubdir="$withval"
2765 else
2766 build_libsubdir="$build_subdir"
2769 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2770 if ( test $srcdir = . && test -d gcc ) \
2771 || test -d $srcdir/../host-${host_noncanonical}; then
2772 host_subdir="host-${host_noncanonical}"
2773 else
2774 host_subdir=.
2776 # No prefix.
2777 target_subdir=${target_noncanonical}
2780 # -------
2781 # Options
2782 # -------
2784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2785 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2786 # Check whether --enable-version-specific-runtime-libs was given.
2787 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2788 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2789 yes) version_specific_libs=yes ;;
2790 no) version_specific_libs=no ;;
2791 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2792 esac
2793 else
2794 version_specific_libs=no
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2798 $as_echo "$version_specific_libs" >&6; }
2800 # Build with intermodule optimisations
2801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-intermodule" >&5
2802 $as_echo_n "checking for --enable-intermodule... " >&6; }
2803 # Check whether --enable-intermodule was given.
2804 if test "${enable_intermodule+set}" = set; then :
2805 enableval=$enable_intermodule; case "$enable_intermodule" in
2806 yes) onestep="-onestep";;
2807 *) onestep="";;
2808 esac
2809 else
2810 onestep=""
2813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_intermodule" >&5
2814 $as_echo "$enable_intermodule" >&6; }
2815 if test x$onestep = x-onestep; then
2816 onestep_TRUE=
2817 onestep_FALSE='#'
2818 else
2819 onestep_TRUE='#'
2820 onestep_FALSE=
2825 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2827 # You will slowly go insane if you do not grok the following fact: when
2828 # building this library, the top-level /target/ becomes the library's /host/.
2830 # configure then causes --target to default to --host, exactly like any
2831 # other package using autoconf. Therefore, 'target' and 'host' will
2832 # always be the same. This makes sense both for native and cross compilers
2833 # just think about it for a little while. :-)
2835 # Also, if this library is being configured as part of a cross compiler, the
2836 # top-level configure script will pass the "real" host as $with_cross_host.
2838 # Do not delete or change the following two lines. For why, see
2839 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2841 $as_echo_n "checking host system type... " >&6; }
2842 if test "${ac_cv_host+set}" = set; then :
2843 $as_echo_n "(cached) " >&6
2844 else
2845 if test "x$host_alias" = x; then
2846 ac_cv_host=$ac_cv_build
2847 else
2848 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2849 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2854 $as_echo "$ac_cv_host" >&6; }
2855 case $ac_cv_host in
2856 *-*-*) ;;
2857 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2858 esac
2859 host=$ac_cv_host
2860 ac_save_IFS=$IFS; IFS='-'
2861 set x $ac_cv_host
2862 shift
2863 host_cpu=$1
2864 host_vendor=$2
2865 shift; shift
2866 # Remember, the first character of IFS is used to create $*,
2867 # except with old shells:
2868 host_os=$*
2869 IFS=$ac_save_IFS
2870 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2874 $as_echo_n "checking target system type... " >&6; }
2875 if test "${ac_cv_target+set}" = set; then :
2876 $as_echo_n "(cached) " >&6
2877 else
2878 if test "x$target_alias" = x; then
2879 ac_cv_target=$ac_cv_host
2880 else
2881 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2882 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2887 $as_echo "$ac_cv_target" >&6; }
2888 case $ac_cv_target in
2889 *-*-*) ;;
2890 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2891 esac
2892 target=$ac_cv_target
2893 ac_save_IFS=$IFS; IFS='-'
2894 set x $ac_cv_target
2895 shift
2896 target_cpu=$1
2897 target_vendor=$2
2898 shift; shift
2899 # Remember, the first character of IFS is used to create $*,
2900 # except with old shells:
2901 target_os=$*
2902 IFS=$ac_save_IFS
2903 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2906 # The aliases save the names the user supplied, while $host etc.
2907 # will get canonicalized.
2908 test -n "$target_alias" &&
2909 test "$program_prefix$program_suffix$program_transform_name" = \
2910 NONENONEs,x,x, &&
2911 program_prefix=${target_alias}-
2916 target_alias=${target_alias-$host_alias}
2919 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2920 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2921 # 1.9.6: minimum required version
2922 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2923 # of other PACKAGE_* variables will, however, and there's nothing
2924 # we can do about that; they come from AC_INIT).
2925 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2926 # file in the top srcdir, etc, etc), so stop complaining.
2927 # no-dist: we don't want 'dist' and related rules.
2928 # -Wall: turns on all automake warnings...
2929 # -Wno-portability: ...except this one, since GNU make is required.
2930 am__api_version='1.11'
2932 # Find a good install program. We prefer a C program (faster),
2933 # so one script is as good as another. But avoid the broken or
2934 # incompatible versions:
2935 # SysV /etc/install, /usr/sbin/install
2936 # SunOS /usr/etc/install
2937 # IRIX /sbin/install
2938 # AIX /bin/install
2939 # AmigaOS /C/install, which installs bootblocks on floppy discs
2940 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2941 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2942 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2943 # OS/2's system install, which has a completely different semantic
2944 # ./install, which can be erroneously created by make from ./install.sh.
2945 # Reject install programs that cannot install multiple files.
2946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2947 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2948 if test -z "$INSTALL"; then
2949 if test "${ac_cv_path_install+set}" = set; then :
2950 $as_echo_n "(cached) " >&6
2951 else
2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2953 for as_dir in $PATH
2955 IFS=$as_save_IFS
2956 test -z "$as_dir" && as_dir=.
2957 # Account for people who put trailing slashes in PATH elements.
2958 case $as_dir/ in #((
2959 ./ | .// | /[cC]/* | \
2960 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2961 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2962 /usr/ucb/* ) ;;
2964 # OSF1 and SCO ODT 3.0 have their own names for install.
2965 # Don't use installbsd from OSF since it installs stuff as root
2966 # by default.
2967 for ac_prog in ginstall scoinst install; do
2968 for ac_exec_ext in '' $ac_executable_extensions; do
2969 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2970 if test $ac_prog = install &&
2971 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2972 # AIX install. It has an incompatible calling convention.
2974 elif test $ac_prog = install &&
2975 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2976 # program-specific install script used by HP pwplus--don't use.
2978 else
2979 rm -rf conftest.one conftest.two conftest.dir
2980 echo one > conftest.one
2981 echo two > conftest.two
2982 mkdir conftest.dir
2983 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2984 test -s conftest.one && test -s conftest.two &&
2985 test -s conftest.dir/conftest.one &&
2986 test -s conftest.dir/conftest.two
2987 then
2988 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2989 break 3
2993 done
2994 done
2996 esac
2998 done
2999 IFS=$as_save_IFS
3001 rm -rf conftest.one conftest.two conftest.dir
3004 if test "${ac_cv_path_install+set}" = set; then
3005 INSTALL=$ac_cv_path_install
3006 else
3007 # As a last resort, use the slow shell script. Don't cache a
3008 # value for INSTALL within a source directory, because that will
3009 # break other packages using the cache if that directory is
3010 # removed, or if the value is a relative name.
3011 INSTALL=$ac_install_sh
3014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3015 $as_echo "$INSTALL" >&6; }
3017 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3018 # It thinks the first close brace ends the variable substitution.
3019 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3021 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3023 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3026 $as_echo_n "checking whether build environment is sane... " >&6; }
3027 # Just in case
3028 sleep 1
3029 echo timestamp > conftest.file
3030 # Reject unsafe characters in $srcdir or the absolute working directory
3031 # name. Accept space and tab only in the latter.
3032 am_lf='
3034 case `pwd` in
3035 *[\\\"\#\$\&\'\`$am_lf]*)
3036 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3037 esac
3038 case $srcdir in
3039 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3040 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3041 esac
3043 # Do `set' in a subshell so we don't clobber the current shell's
3044 # arguments. Must try -L first in case configure is actually a
3045 # symlink; some systems play weird games with the mod time of symlinks
3046 # (eg FreeBSD returns the mod time of the symlink's containing
3047 # directory).
3048 if (
3049 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3050 if test "$*" = "X"; then
3051 # -L didn't work.
3052 set X `ls -t "$srcdir/configure" conftest.file`
3054 rm -f conftest.file
3055 if test "$*" != "X $srcdir/configure conftest.file" \
3056 && test "$*" != "X conftest.file $srcdir/configure"; then
3058 # If neither matched, then we have a broken ls. This can happen
3059 # if, for instance, CONFIG_SHELL is bash and it inherits a
3060 # broken ls alias from the environment. This has actually
3061 # happened. Such a system could not be considered "sane".
3062 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3063 alias in your environment" "$LINENO" 5
3066 test "$2" = conftest.file
3068 then
3069 # Ok.
3071 else
3072 as_fn_error "newly created file is older than distributed files!
3073 Check your system clock" "$LINENO" 5
3075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3076 $as_echo "yes" >&6; }
3077 test "$program_prefix" != NONE &&
3078 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3079 # Use a double $ so make ignores it.
3080 test "$program_suffix" != NONE &&
3081 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3082 # Double any \ or $.
3083 # By default was `s,x,x', remove it if useless.
3084 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3085 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3087 # expand $ac_aux_dir to an absolute path
3088 am_aux_dir=`cd $ac_aux_dir && pwd`
3090 if test x"${MISSING+set}" != xset; then
3091 case $am_aux_dir in
3092 *\ * | *\ *)
3093 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3095 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3096 esac
3098 # Use eval to expand $SHELL
3099 if eval "$MISSING --run true"; then
3100 am_missing_run="$MISSING --run "
3101 else
3102 am_missing_run=
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3104 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3107 if test x"${install_sh}" != xset; then
3108 case $am_aux_dir in
3109 *\ * | *\ *)
3110 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3112 install_sh="\${SHELL} $am_aux_dir/install-sh"
3113 esac
3116 # Installed binaries are usually stripped using `strip' when the user
3117 # run `make install-strip'. However `strip' might not be the right
3118 # tool to use in cross-compilation environments, therefore Automake
3119 # will honor the `STRIP' environment variable to overrule this program.
3120 if test "$cross_compiling" != no; then
3121 if test -n "$ac_tool_prefix"; then
3122 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3123 set dummy ${ac_tool_prefix}strip; ac_word=$2
3124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3125 $as_echo_n "checking for $ac_word... " >&6; }
3126 if test "${ac_cv_prog_STRIP+set}" = set; then :
3127 $as_echo_n "(cached) " >&6
3128 else
3129 if test -n "$STRIP"; then
3130 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3131 else
3132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3133 for as_dir in $PATH
3135 IFS=$as_save_IFS
3136 test -z "$as_dir" && as_dir=.
3137 for ac_exec_ext in '' $ac_executable_extensions; do
3138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3139 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3141 break 2
3143 done
3144 done
3145 IFS=$as_save_IFS
3149 STRIP=$ac_cv_prog_STRIP
3150 if test -n "$STRIP"; then
3151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3152 $as_echo "$STRIP" >&6; }
3153 else
3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3155 $as_echo "no" >&6; }
3160 if test -z "$ac_cv_prog_STRIP"; then
3161 ac_ct_STRIP=$STRIP
3162 # Extract the first word of "strip", so it can be a program name with args.
3163 set dummy strip; ac_word=$2
3164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3165 $as_echo_n "checking for $ac_word... " >&6; }
3166 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3167 $as_echo_n "(cached) " >&6
3168 else
3169 if test -n "$ac_ct_STRIP"; then
3170 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3171 else
3172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3173 for as_dir in $PATH
3175 IFS=$as_save_IFS
3176 test -z "$as_dir" && as_dir=.
3177 for ac_exec_ext in '' $ac_executable_extensions; do
3178 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3179 ac_cv_prog_ac_ct_STRIP="strip"
3180 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3181 break 2
3183 done
3184 done
3185 IFS=$as_save_IFS
3189 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3190 if test -n "$ac_ct_STRIP"; then
3191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3192 $as_echo "$ac_ct_STRIP" >&6; }
3193 else
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3195 $as_echo "no" >&6; }
3198 if test "x$ac_ct_STRIP" = x; then
3199 STRIP=":"
3200 else
3201 case $cross_compiling:$ac_tool_warned in
3202 yes:)
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3204 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3205 ac_tool_warned=yes ;;
3206 esac
3207 STRIP=$ac_ct_STRIP
3209 else
3210 STRIP="$ac_cv_prog_STRIP"
3214 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3217 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3218 if test -z "$MKDIR_P"; then
3219 if test "${ac_cv_path_mkdir+set}" = set; then :
3220 $as_echo_n "(cached) " >&6
3221 else
3222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3223 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3225 IFS=$as_save_IFS
3226 test -z "$as_dir" && as_dir=.
3227 for ac_prog in mkdir gmkdir; do
3228 for ac_exec_ext in '' $ac_executable_extensions; do
3229 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3230 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3231 'mkdir (GNU coreutils) '* | \
3232 'mkdir (coreutils) '* | \
3233 'mkdir (fileutils) '4.1*)
3234 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3235 break 3;;
3236 esac
3237 done
3238 done
3239 done
3240 IFS=$as_save_IFS
3244 if test "${ac_cv_path_mkdir+set}" = set; then
3245 MKDIR_P="$ac_cv_path_mkdir -p"
3246 else
3247 # As a last resort, use the slow shell script. Don't cache a
3248 # value for MKDIR_P within a source directory, because that will
3249 # break other packages using the cache if that directory is
3250 # removed, or if the value is a relative name.
3251 test -d ./--version && rmdir ./--version
3252 MKDIR_P="$ac_install_sh -d"
3255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3256 $as_echo "$MKDIR_P" >&6; }
3258 mkdir_p="$MKDIR_P"
3259 case $mkdir_p in
3260 [\\/$]* | ?:[\\/]*) ;;
3261 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3262 esac
3264 for ac_prog in gawk mawk nawk awk
3266 # Extract the first word of "$ac_prog", so it can be a program name with args.
3267 set dummy $ac_prog; ac_word=$2
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3269 $as_echo_n "checking for $ac_word... " >&6; }
3270 if test "${ac_cv_prog_AWK+set}" = set; then :
3271 $as_echo_n "(cached) " >&6
3272 else
3273 if test -n "$AWK"; then
3274 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3275 else
3276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3277 for as_dir in $PATH
3279 IFS=$as_save_IFS
3280 test -z "$as_dir" && as_dir=.
3281 for ac_exec_ext in '' $ac_executable_extensions; do
3282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3283 ac_cv_prog_AWK="$ac_prog"
3284 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3285 break 2
3287 done
3288 done
3289 IFS=$as_save_IFS
3293 AWK=$ac_cv_prog_AWK
3294 if test -n "$AWK"; then
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3296 $as_echo "$AWK" >&6; }
3297 else
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3299 $as_echo "no" >&6; }
3303 test -n "$AWK" && break
3304 done
3306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3307 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3308 set x ${MAKE-make}
3309 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3310 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3311 $as_echo_n "(cached) " >&6
3312 else
3313 cat >conftest.make <<\_ACEOF
3314 SHELL = /bin/sh
3315 all:
3316 @echo '@@@%%%=$(MAKE)=@@@%%%'
3317 _ACEOF
3318 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3319 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3320 *@@@%%%=?*=@@@%%%*)
3321 eval ac_cv_prog_make_${ac_make}_set=yes;;
3323 eval ac_cv_prog_make_${ac_make}_set=no;;
3324 esac
3325 rm -f conftest.make
3327 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3329 $as_echo "yes" >&6; }
3330 SET_MAKE=
3331 else
3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3333 $as_echo "no" >&6; }
3334 SET_MAKE="MAKE=${MAKE-make}"
3337 rm -rf .tst 2>/dev/null
3338 mkdir .tst 2>/dev/null
3339 if test -d .tst; then
3340 am__leading_dot=.
3341 else
3342 am__leading_dot=_
3344 rmdir .tst 2>/dev/null
3346 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3347 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3348 # is not polluted with repeated "-I."
3349 am__isrc=' -I$(srcdir)'
3350 # test to see if srcdir already configured
3351 if test -f $srcdir/config.status; then
3352 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3356 # test whether we have cygpath
3357 if test -z "$CYGPATH_W"; then
3358 if (cygpath --version) >/dev/null 2>/dev/null; then
3359 CYGPATH_W='cygpath -w'
3360 else
3361 CYGPATH_W=echo
3366 # Define the identity of the package.
3367 PACKAGE='libgfortran'
3368 VERSION='0.3'
3371 # Some tools Automake needs.
3373 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3376 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3379 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3382 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3385 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3387 # We need awk for the "check" target. The system "awk" is bad on
3388 # some platforms.
3389 # Always define AMTAR for backward compatibility.
3391 AMTAR=${AMTAR-"${am_missing_run}tar"}
3393 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3402 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3403 # Check whether --enable-maintainer-mode was given.
3404 if test "${enable_maintainer_mode+set}" = set; then :
3405 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3406 else
3407 USE_MAINTAINER_MODE=no
3410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3411 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3412 if test $USE_MAINTAINER_MODE = yes; then
3413 MAINTAINER_MODE_TRUE=
3414 MAINTAINER_MODE_FALSE='#'
3415 else
3416 MAINTAINER_MODE_TRUE='#'
3417 MAINTAINER_MODE_FALSE=
3420 MAINT=$MAINTAINER_MODE_TRUE
3423 # Default to --enable-multilib
3424 # Check whether --enable-multilib was given.
3425 if test "${enable_multilib+set}" = set; then :
3426 enableval=$enable_multilib; case "$enableval" in
3427 yes) multilib=yes ;;
3428 no) multilib=no ;;
3429 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3430 esac
3431 else
3432 multilib=yes
3436 # We may get other options which we leave undocumented:
3437 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3438 # See config-ml.in if you want the gory details.
3440 if test "$srcdir" = "."; then
3441 if test "$with_target_subdir" != "."; then
3442 multi_basedir="$srcdir/$with_multisrctop../.."
3443 else
3444 multi_basedir="$srcdir/$with_multisrctop.."
3446 else
3447 multi_basedir="$srcdir/.."
3451 # Even if the default multilib is not a cross compilation,
3452 # it may be that some of the other multilibs are.
3453 if test $cross_compiling = no && test $multilib = yes \
3454 && test "x${with_multisubdir}" != x ; then
3455 cross_compiling=maybe
3458 ac_config_commands="$ac_config_commands default-1"
3461 # Handy for debugging:
3462 #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
3464 # Are we being configured with some form of cross compiler?
3465 # NB: We don't actually need to know this just now, but when, say, a test
3466 # suite is included, we'll have to know.
3467 if test "$build" != "$host"; then
3468 LIBGFOR_IS_NATIVE=false
3470 else
3471 LIBGFOR_IS_NATIVE=true
3474 DEPDIR="${am__leading_dot}deps"
3476 ac_config_commands="$ac_config_commands depfiles"
3479 am_make=${MAKE-make}
3480 cat > confinc << 'END'
3481 am__doit:
3482 @echo this is the am__doit target
3483 .PHONY: am__doit
3485 # If we don't find an include directive, just comment out the code.
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3487 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3488 am__include="#"
3489 am__quote=
3490 _am_result=none
3491 # First try GNU make style include.
3492 echo "include confinc" > confmf
3493 # Ignore all kinds of additional output from `make'.
3494 case `$am_make -s -f confmf 2> /dev/null` in #(
3495 *the\ am__doit\ target*)
3496 am__include=include
3497 am__quote=
3498 _am_result=GNU
3500 esac
3501 # Now try BSD make style include.
3502 if test "$am__include" = "#"; then
3503 echo '.include "confinc"' > confmf
3504 case `$am_make -s -f confmf 2> /dev/null` in #(
3505 *the\ am__doit\ target*)
3506 am__include=.include
3507 am__quote="\""
3508 _am_result=BSD
3510 esac
3514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3515 $as_echo "$_am_result" >&6; }
3516 rm -f confinc confmf
3518 # Check whether --enable-dependency-tracking was given.
3519 if test "${enable_dependency_tracking+set}" = set; then :
3520 enableval=$enable_dependency_tracking;
3523 if test "x$enable_dependency_tracking" != xno; then
3524 am_depcomp="$ac_aux_dir/depcomp"
3525 AMDEPBACKSLASH='\'
3527 if test "x$enable_dependency_tracking" != xno; then
3528 AMDEP_TRUE=
3529 AMDEP_FALSE='#'
3530 else
3531 AMDEP_TRUE='#'
3532 AMDEP_FALSE=
3536 ac_ext=c
3537 ac_cpp='$CPP $CPPFLAGS'
3538 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3539 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3540 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3541 if test -n "$ac_tool_prefix"; then
3542 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3543 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3545 $as_echo_n "checking for $ac_word... " >&6; }
3546 if test "${ac_cv_prog_CC+set}" = set; then :
3547 $as_echo_n "(cached) " >&6
3548 else
3549 if test -n "$CC"; then
3550 ac_cv_prog_CC="$CC" # Let the user override the test.
3551 else
3552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3553 for as_dir in $PATH
3555 IFS=$as_save_IFS
3556 test -z "$as_dir" && as_dir=.
3557 for ac_exec_ext in '' $ac_executable_extensions; do
3558 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3559 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3560 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3561 break 2
3563 done
3564 done
3565 IFS=$as_save_IFS
3569 CC=$ac_cv_prog_CC
3570 if test -n "$CC"; then
3571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3572 $as_echo "$CC" >&6; }
3573 else
3574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3575 $as_echo "no" >&6; }
3580 if test -z "$ac_cv_prog_CC"; then
3581 ac_ct_CC=$CC
3582 # Extract the first word of "gcc", so it can be a program name with args.
3583 set dummy gcc; ac_word=$2
3584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3585 $as_echo_n "checking for $ac_word... " >&6; }
3586 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3587 $as_echo_n "(cached) " >&6
3588 else
3589 if test -n "$ac_ct_CC"; then
3590 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3591 else
3592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3593 for as_dir in $PATH
3595 IFS=$as_save_IFS
3596 test -z "$as_dir" && as_dir=.
3597 for ac_exec_ext in '' $ac_executable_extensions; do
3598 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3599 ac_cv_prog_ac_ct_CC="gcc"
3600 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3601 break 2
3603 done
3604 done
3605 IFS=$as_save_IFS
3609 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3610 if test -n "$ac_ct_CC"; then
3611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3612 $as_echo "$ac_ct_CC" >&6; }
3613 else
3614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3615 $as_echo "no" >&6; }
3618 if test "x$ac_ct_CC" = x; then
3619 CC=""
3620 else
3621 case $cross_compiling:$ac_tool_warned in
3622 yes:)
3623 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3624 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3625 ac_tool_warned=yes ;;
3626 esac
3627 CC=$ac_ct_CC
3629 else
3630 CC="$ac_cv_prog_CC"
3633 if test -z "$CC"; then
3634 if test -n "$ac_tool_prefix"; then
3635 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3636 set dummy ${ac_tool_prefix}cc; ac_word=$2
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3638 $as_echo_n "checking for $ac_word... " >&6; }
3639 if test "${ac_cv_prog_CC+set}" = set; then :
3640 $as_echo_n "(cached) " >&6
3641 else
3642 if test -n "$CC"; then
3643 ac_cv_prog_CC="$CC" # Let the user override the test.
3644 else
3645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3646 for as_dir in $PATH
3648 IFS=$as_save_IFS
3649 test -z "$as_dir" && as_dir=.
3650 for ac_exec_ext in '' $ac_executable_extensions; do
3651 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3652 ac_cv_prog_CC="${ac_tool_prefix}cc"
3653 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3654 break 2
3656 done
3657 done
3658 IFS=$as_save_IFS
3662 CC=$ac_cv_prog_CC
3663 if test -n "$CC"; then
3664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3665 $as_echo "$CC" >&6; }
3666 else
3667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3668 $as_echo "no" >&6; }
3674 if test -z "$CC"; then
3675 # Extract the first word of "cc", so it can be a program name with args.
3676 set dummy cc; ac_word=$2
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3678 $as_echo_n "checking for $ac_word... " >&6; }
3679 if test "${ac_cv_prog_CC+set}" = set; then :
3680 $as_echo_n "(cached) " >&6
3681 else
3682 if test -n "$CC"; then
3683 ac_cv_prog_CC="$CC" # Let the user override the test.
3684 else
3685 ac_prog_rejected=no
3686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3687 for as_dir in $PATH
3689 IFS=$as_save_IFS
3690 test -z "$as_dir" && as_dir=.
3691 for ac_exec_ext in '' $ac_executable_extensions; do
3692 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3693 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3694 ac_prog_rejected=yes
3695 continue
3697 ac_cv_prog_CC="cc"
3698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3699 break 2
3701 done
3702 done
3703 IFS=$as_save_IFS
3705 if test $ac_prog_rejected = yes; then
3706 # We found a bogon in the path, so make sure we never use it.
3707 set dummy $ac_cv_prog_CC
3708 shift
3709 if test $# != 0; then
3710 # We chose a different compiler from the bogus one.
3711 # However, it has the same basename, so the bogon will be chosen
3712 # first if we set CC to just the basename; use the full file name.
3713 shift
3714 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3719 CC=$ac_cv_prog_CC
3720 if test -n "$CC"; then
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3722 $as_echo "$CC" >&6; }
3723 else
3724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3725 $as_echo "no" >&6; }
3730 if test -z "$CC"; then
3731 if test -n "$ac_tool_prefix"; then
3732 for ac_prog in cl.exe
3734 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3735 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3737 $as_echo_n "checking for $ac_word... " >&6; }
3738 if test "${ac_cv_prog_CC+set}" = set; then :
3739 $as_echo_n "(cached) " >&6
3740 else
3741 if test -n "$CC"; then
3742 ac_cv_prog_CC="$CC" # Let the user override the test.
3743 else
3744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3745 for as_dir in $PATH
3747 IFS=$as_save_IFS
3748 test -z "$as_dir" && as_dir=.
3749 for ac_exec_ext in '' $ac_executable_extensions; do
3750 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3751 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3752 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3753 break 2
3755 done
3756 done
3757 IFS=$as_save_IFS
3761 CC=$ac_cv_prog_CC
3762 if test -n "$CC"; then
3763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3764 $as_echo "$CC" >&6; }
3765 else
3766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3767 $as_echo "no" >&6; }
3771 test -n "$CC" && break
3772 done
3774 if test -z "$CC"; then
3775 ac_ct_CC=$CC
3776 for ac_prog in cl.exe
3778 # Extract the first word of "$ac_prog", so it can be a program name with args.
3779 set dummy $ac_prog; ac_word=$2
3780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3781 $as_echo_n "checking for $ac_word... " >&6; }
3782 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3783 $as_echo_n "(cached) " >&6
3784 else
3785 if test -n "$ac_ct_CC"; then
3786 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3787 else
3788 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3789 for as_dir in $PATH
3791 IFS=$as_save_IFS
3792 test -z "$as_dir" && as_dir=.
3793 for ac_exec_ext in '' $ac_executable_extensions; do
3794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3795 ac_cv_prog_ac_ct_CC="$ac_prog"
3796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3797 break 2
3799 done
3800 done
3801 IFS=$as_save_IFS
3805 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3806 if test -n "$ac_ct_CC"; then
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3808 $as_echo "$ac_ct_CC" >&6; }
3809 else
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3811 $as_echo "no" >&6; }
3815 test -n "$ac_ct_CC" && break
3816 done
3818 if test "x$ac_ct_CC" = x; then
3819 CC=""
3820 else
3821 case $cross_compiling:$ac_tool_warned in
3822 yes:)
3823 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3824 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3825 ac_tool_warned=yes ;;
3826 esac
3827 CC=$ac_ct_CC
3834 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3835 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3836 as_fn_error "no acceptable C compiler found in \$PATH
3837 See \`config.log' for more details." "$LINENO" 5; }
3839 # Provide some information about the compiler.
3840 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3841 set X $ac_compile
3842 ac_compiler=$2
3843 for ac_option in --version -v -V -qversion; do
3844 { { ac_try="$ac_compiler $ac_option >&5"
3845 case "(($ac_try" in
3846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3847 *) ac_try_echo=$ac_try;;
3848 esac
3849 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3850 $as_echo "$ac_try_echo"; } >&5
3851 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3852 ac_status=$?
3853 if test -s conftest.err; then
3854 sed '10a\
3855 ... rest of stderr output deleted ...
3856 10q' conftest.err >conftest.er1
3857 cat conftest.er1 >&5
3858 rm -f conftest.er1 conftest.err
3860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3861 test $ac_status = 0; }
3862 done
3864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3865 /* end confdefs.h. */
3868 main ()
3872 return 0;
3874 _ACEOF
3875 # FIXME: Cleanup?
3876 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3877 (eval $ac_link) 2>&5
3878 ac_status=$?
3879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3880 test $ac_status = 0; }; then :
3881 gcc_no_link=no
3882 else
3883 gcc_no_link=yes
3885 if test x$gcc_no_link = xyes; then
3886 # Setting cross_compile will disable run tests; it will
3887 # also disable AC_CHECK_FILE but that's generally
3888 # correct if we can't link.
3889 cross_compiling=yes
3890 EXEEXT=
3891 else
3892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3893 /* end confdefs.h. */
3896 main ()
3900 return 0;
3902 _ACEOF
3903 ac_clean_files_save=$ac_clean_files
3904 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3905 # Try to create an executable without -o first, disregard a.out.
3906 # It will help us diagnose broken compilers, and finding out an intuition
3907 # of exeext.
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3909 $as_echo_n "checking for C compiler default output file name... " >&6; }
3910 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3912 # The possible output files:
3913 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3915 ac_rmfiles=
3916 for ac_file in $ac_files
3918 case $ac_file in
3919 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3920 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3921 esac
3922 done
3923 rm -f $ac_rmfiles
3925 if { { ac_try="$ac_link_default"
3926 case "(($ac_try" in
3927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3928 *) ac_try_echo=$ac_try;;
3929 esac
3930 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3931 $as_echo "$ac_try_echo"; } >&5
3932 (eval "$ac_link_default") 2>&5
3933 ac_status=$?
3934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3935 test $ac_status = 0; }; then :
3936 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3937 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3938 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3939 # so that the user can short-circuit this test for compilers unknown to
3940 # Autoconf.
3941 for ac_file in $ac_files ''
3943 test -f "$ac_file" || continue
3944 case $ac_file in
3945 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3947 [ab].out )
3948 # We found the default executable, but exeext='' is most
3949 # certainly right.
3950 break;;
3951 *.* )
3952 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3953 then :; else
3954 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3956 # We set ac_cv_exeext here because the later test for it is not
3957 # safe: cross compilers may not add the suffix if given an `-o'
3958 # argument, so we may need to know it at that point already.
3959 # Even if this section looks crufty: it has the advantage of
3960 # actually working.
3961 break;;
3963 break;;
3964 esac
3965 done
3966 test "$ac_cv_exeext" = no && ac_cv_exeext=
3968 else
3969 ac_file=''
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3972 $as_echo "$ac_file" >&6; }
3973 if test -z "$ac_file"; then :
3974 $as_echo "$as_me: failed program was:" >&5
3975 sed 's/^/| /' conftest.$ac_ext >&5
3977 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3978 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3979 { as_fn_set_status 77
3980 as_fn_error "C compiler cannot create executables
3981 See \`config.log' for more details." "$LINENO" 5; }; }
3983 ac_exeext=$ac_cv_exeext
3985 # Check that the compiler produces executables we can run. If not, either
3986 # the compiler is broken, or we cross compile.
3987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3988 $as_echo_n "checking whether the C compiler works... " >&6; }
3989 # If not cross compiling, check that we can run a simple program.
3990 if test "$cross_compiling" != yes; then
3991 if { ac_try='./$ac_file'
3992 { { case "(($ac_try" in
3993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3994 *) ac_try_echo=$ac_try;;
3995 esac
3996 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3997 $as_echo "$ac_try_echo"; } >&5
3998 (eval "$ac_try") 2>&5
3999 ac_status=$?
4000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4001 test $ac_status = 0; }; }; then
4002 cross_compiling=no
4003 else
4004 if test "$cross_compiling" = maybe; then
4005 cross_compiling=yes
4006 else
4007 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4008 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4009 as_fn_error "cannot run C compiled programs.
4010 If you meant to cross compile, use \`--host'.
4011 See \`config.log' for more details." "$LINENO" 5; }
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4016 $as_echo "yes" >&6; }
4018 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4019 ac_clean_files=$ac_clean_files_save
4020 # Check that the compiler produces executables we can run. If not, either
4021 # the compiler is broken, or we cross compile.
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4023 $as_echo_n "checking whether we are cross compiling... " >&6; }
4024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4025 $as_echo "$cross_compiling" >&6; }
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4028 $as_echo_n "checking for suffix of executables... " >&6; }
4029 if { { ac_try="$ac_link"
4030 case "(($ac_try" in
4031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4032 *) ac_try_echo=$ac_try;;
4033 esac
4034 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4035 $as_echo "$ac_try_echo"; } >&5
4036 (eval "$ac_link") 2>&5
4037 ac_status=$?
4038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4039 test $ac_status = 0; }; then :
4040 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4041 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4042 # work properly (i.e., refer to `conftest.exe'), while it won't with
4043 # `rm'.
4044 for ac_file in conftest.exe conftest conftest.*; do
4045 test -f "$ac_file" || continue
4046 case $ac_file in
4047 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4048 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4049 break;;
4050 * ) break;;
4051 esac
4052 done
4053 else
4054 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4055 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4056 as_fn_error "cannot compute suffix of executables: cannot compile and link
4057 See \`config.log' for more details." "$LINENO" 5; }
4059 rm -f conftest$ac_cv_exeext
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4061 $as_echo "$ac_cv_exeext" >&6; }
4063 rm -f conftest.$ac_ext
4064 EXEEXT=$ac_cv_exeext
4065 ac_exeext=$EXEEXT
4067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4068 $as_echo_n "checking for suffix of object files... " >&6; }
4069 if test "${ac_cv_objext+set}" = set; then :
4070 $as_echo_n "(cached) " >&6
4071 else
4072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4073 /* end confdefs.h. */
4076 main ()
4080 return 0;
4082 _ACEOF
4083 rm -f conftest.o conftest.obj
4084 if { { ac_try="$ac_compile"
4085 case "(($ac_try" in
4086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4087 *) ac_try_echo=$ac_try;;
4088 esac
4089 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4090 $as_echo "$ac_try_echo"; } >&5
4091 (eval "$ac_compile") 2>&5
4092 ac_status=$?
4093 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4094 test $ac_status = 0; }; then :
4095 for ac_file in conftest.o conftest.obj conftest.*; do
4096 test -f "$ac_file" || continue;
4097 case $ac_file in
4098 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4099 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4100 break;;
4101 esac
4102 done
4103 else
4104 $as_echo "$as_me: failed program was:" >&5
4105 sed 's/^/| /' conftest.$ac_ext >&5
4107 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4108 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4109 as_fn_error "cannot compute suffix of object files: cannot compile
4110 See \`config.log' for more details." "$LINENO" 5; }
4112 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4115 $as_echo "$ac_cv_objext" >&6; }
4116 OBJEXT=$ac_cv_objext
4117 ac_objext=$OBJEXT
4118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4119 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4120 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4121 $as_echo_n "(cached) " >&6
4122 else
4123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4124 /* end confdefs.h. */
4127 main ()
4129 #ifndef __GNUC__
4130 choke me
4131 #endif
4134 return 0;
4136 _ACEOF
4137 if ac_fn_c_try_compile "$LINENO"; then :
4138 ac_compiler_gnu=yes
4139 else
4140 ac_compiler_gnu=no
4142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4143 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4147 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4148 if test $ac_compiler_gnu = yes; then
4149 GCC=yes
4150 else
4151 GCC=
4153 ac_test_CFLAGS=${CFLAGS+set}
4154 ac_save_CFLAGS=$CFLAGS
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4156 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4157 if test "${ac_cv_prog_cc_g+set}" = set; then :
4158 $as_echo_n "(cached) " >&6
4159 else
4160 ac_save_c_werror_flag=$ac_c_werror_flag
4161 ac_c_werror_flag=yes
4162 ac_cv_prog_cc_g=no
4163 CFLAGS="-g"
4164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4165 /* end confdefs.h. */
4168 main ()
4172 return 0;
4174 _ACEOF
4175 if ac_fn_c_try_compile "$LINENO"; then :
4176 ac_cv_prog_cc_g=yes
4177 else
4178 CFLAGS=""
4179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4180 /* end confdefs.h. */
4183 main ()
4187 return 0;
4189 _ACEOF
4190 if ac_fn_c_try_compile "$LINENO"; then :
4192 else
4193 ac_c_werror_flag=$ac_save_c_werror_flag
4194 CFLAGS="-g"
4195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4196 /* end confdefs.h. */
4199 main ()
4203 return 0;
4205 _ACEOF
4206 if ac_fn_c_try_compile "$LINENO"; then :
4207 ac_cv_prog_cc_g=yes
4209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4214 ac_c_werror_flag=$ac_save_c_werror_flag
4216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4217 $as_echo "$ac_cv_prog_cc_g" >&6; }
4218 if test "$ac_test_CFLAGS" = set; then
4219 CFLAGS=$ac_save_CFLAGS
4220 elif test $ac_cv_prog_cc_g = yes; then
4221 if test "$GCC" = yes; then
4222 CFLAGS="-g -O2"
4223 else
4224 CFLAGS="-g"
4226 else
4227 if test "$GCC" = yes; then
4228 CFLAGS="-O2"
4229 else
4230 CFLAGS=
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4234 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4235 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4236 $as_echo_n "(cached) " >&6
4237 else
4238 ac_cv_prog_cc_c89=no
4239 ac_save_CC=$CC
4240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4241 /* end confdefs.h. */
4242 #include <stdarg.h>
4243 #include <stdio.h>
4244 #include <sys/types.h>
4245 #include <sys/stat.h>
4246 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4247 struct buf { int x; };
4248 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4249 static char *e (p, i)
4250 char **p;
4251 int i;
4253 return p[i];
4255 static char *f (char * (*g) (char **, int), char **p, ...)
4257 char *s;
4258 va_list v;
4259 va_start (v,p);
4260 s = g (p, va_arg (v,int));
4261 va_end (v);
4262 return s;
4265 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4266 function prototypes and stuff, but not '\xHH' hex character constants.
4267 These don't provoke an error unfortunately, instead are silently treated
4268 as 'x'. The following induces an error, until -std is added to get
4269 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4270 array size at least. It's necessary to write '\x00'==0 to get something
4271 that's true only with -std. */
4272 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4274 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4275 inside strings and character constants. */
4276 #define FOO(x) 'x'
4277 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4279 int test (int i, double x);
4280 struct s1 {int (*f) (int a);};
4281 struct s2 {int (*f) (double a);};
4282 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4283 int argc;
4284 char **argv;
4286 main ()
4288 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4290 return 0;
4292 _ACEOF
4293 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4294 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4296 CC="$ac_save_CC $ac_arg"
4297 if ac_fn_c_try_compile "$LINENO"; then :
4298 ac_cv_prog_cc_c89=$ac_arg
4300 rm -f core conftest.err conftest.$ac_objext
4301 test "x$ac_cv_prog_cc_c89" != "xno" && break
4302 done
4303 rm -f conftest.$ac_ext
4304 CC=$ac_save_CC
4307 # AC_CACHE_VAL
4308 case "x$ac_cv_prog_cc_c89" in
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4311 $as_echo "none needed" >&6; } ;;
4312 xno)
4313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4314 $as_echo "unsupported" >&6; } ;;
4316 CC="$CC $ac_cv_prog_cc_c89"
4317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4318 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4319 esac
4320 if test "x$ac_cv_prog_cc_c89" != xno; then :
4324 ac_ext=c
4325 ac_cpp='$CPP $CPPFLAGS'
4326 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4327 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4328 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4330 depcc="$CC" am_compiler_list=
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4333 $as_echo_n "checking dependency style of $depcc... " >&6; }
4334 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4335 $as_echo_n "(cached) " >&6
4336 else
4337 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4338 # We make a subdir and do the tests there. Otherwise we can end up
4339 # making bogus files that we don't know about and never remove. For
4340 # instance it was reported that on HP-UX the gcc test will end up
4341 # making a dummy file named `D' -- because `-MD' means `put the output
4342 # in D'.
4343 mkdir conftest.dir
4344 # Copy depcomp to subdir because otherwise we won't find it if we're
4345 # using a relative directory.
4346 cp "$am_depcomp" conftest.dir
4347 cd conftest.dir
4348 # We will build objects and dependencies in a subdirectory because
4349 # it helps to detect inapplicable dependency modes. For instance
4350 # both Tru64's cc and ICC support -MD to output dependencies as a
4351 # side effect of compilation, but ICC will put the dependencies in
4352 # the current directory while Tru64 will put them in the object
4353 # directory.
4354 mkdir sub
4356 am_cv_CC_dependencies_compiler_type=none
4357 if test "$am_compiler_list" = ""; then
4358 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4360 am__universal=false
4361 case " $depcc " in #(
4362 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4363 esac
4365 for depmode in $am_compiler_list; do
4366 # Setup a source with many dependencies, because some compilers
4367 # like to wrap large dependency lists on column 80 (with \), and
4368 # we should not choose a depcomp mode which is confused by this.
4370 # We need to recreate these files for each test, as the compiler may
4371 # overwrite some of them when testing with obscure command lines.
4372 # This happens at least with the AIX C compiler.
4373 : > sub/conftest.c
4374 for i in 1 2 3 4 5 6; do
4375 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4376 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4377 # Solaris 8's {/usr,}/bin/sh.
4378 touch sub/conftst$i.h
4379 done
4380 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4382 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4383 # mode. It turns out that the SunPro C++ compiler does not properly
4384 # handle `-M -o', and we need to detect this. Also, some Intel
4385 # versions had trouble with output in subdirs
4386 am__obj=sub/conftest.${OBJEXT-o}
4387 am__minus_obj="-o $am__obj"
4388 case $depmode in
4389 gcc)
4390 # This depmode causes a compiler race in universal mode.
4391 test "$am__universal" = false || continue
4393 nosideeffect)
4394 # after this tag, mechanisms are not by side-effect, so they'll
4395 # only be used when explicitly requested
4396 if test "x$enable_dependency_tracking" = xyes; then
4397 continue
4398 else
4399 break
4402 msvisualcpp | msvcmsys)
4403 # This compiler won't grok `-c -o', but also, the minuso test has
4404 # not run yet. These depmodes are late enough in the game, and
4405 # so weak that their functioning should not be impacted.
4406 am__obj=conftest.${OBJEXT-o}
4407 am__minus_obj=
4409 none) break ;;
4410 esac
4411 if depmode=$depmode \
4412 source=sub/conftest.c object=$am__obj \
4413 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4414 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4415 >/dev/null 2>conftest.err &&
4416 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4417 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4418 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4419 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4420 # icc doesn't choke on unknown options, it will just issue warnings
4421 # or remarks (even with -Werror). So we grep stderr for any message
4422 # that says an option was ignored or not supported.
4423 # When given -MP, icc 7.0 and 7.1 complain thusly:
4424 # icc: Command line warning: ignoring option '-M'; no argument required
4425 # The diagnosis changed in icc 8.0:
4426 # icc: Command line remark: option '-MP' not supported
4427 if (grep 'ignoring option' conftest.err ||
4428 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4429 am_cv_CC_dependencies_compiler_type=$depmode
4430 break
4433 done
4435 cd ..
4436 rm -rf conftest.dir
4437 else
4438 am_cv_CC_dependencies_compiler_type=none
4442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4443 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4444 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4447 test "x$enable_dependency_tracking" != xno \
4448 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4449 am__fastdepCC_TRUE=
4450 am__fastdepCC_FALSE='#'
4451 else
4452 am__fastdepCC_TRUE='#'
4453 am__fastdepCC_FALSE=
4458 ac_ext=c
4459 ac_cpp='$CPP $CPPFLAGS'
4460 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4461 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4462 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4464 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4465 # On Suns, sometimes $CPP names a directory.
4466 if test -n "$CPP" && test -d "$CPP"; then
4467 CPP=
4469 if test -z "$CPP"; then
4470 if test "${ac_cv_prog_CPP+set}" = set; then :
4471 $as_echo_n "(cached) " >&6
4472 else
4473 # Double quotes because CPP needs to be expanded
4474 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4476 ac_preproc_ok=false
4477 for ac_c_preproc_warn_flag in '' yes
4479 # Use a header file that comes with gcc, so configuring glibc
4480 # with a fresh cross-compiler works.
4481 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4482 # <limits.h> exists even on freestanding compilers.
4483 # On the NeXT, cc -E runs the code through the compiler's parser,
4484 # not just through cpp. "Syntax error" is here to catch this case.
4485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4486 /* end confdefs.h. */
4487 #ifdef __STDC__
4488 # include <limits.h>
4489 #else
4490 # include <assert.h>
4491 #endif
4492 Syntax error
4493 _ACEOF
4494 if ac_fn_c_try_cpp "$LINENO"; then :
4496 else
4497 # Broken: fails on valid input.
4498 continue
4500 rm -f conftest.err conftest.$ac_ext
4502 # OK, works on sane cases. Now check whether nonexistent headers
4503 # can be detected and how.
4504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4505 /* end confdefs.h. */
4506 #include <ac_nonexistent.h>
4507 _ACEOF
4508 if ac_fn_c_try_cpp "$LINENO"; then :
4509 # Broken: success on invalid input.
4510 continue
4511 else
4512 # Passes both tests.
4513 ac_preproc_ok=:
4514 break
4516 rm -f conftest.err conftest.$ac_ext
4518 done
4519 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4520 rm -f conftest.err conftest.$ac_ext
4521 if $ac_preproc_ok; then :
4522 break
4525 done
4526 ac_cv_prog_CPP=$CPP
4529 CPP=$ac_cv_prog_CPP
4530 else
4531 ac_cv_prog_CPP=$CPP
4533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4534 $as_echo "$CPP" >&6; }
4535 ac_preproc_ok=false
4536 for ac_c_preproc_warn_flag in '' yes
4538 # Use a header file that comes with gcc, so configuring glibc
4539 # with a fresh cross-compiler works.
4540 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4541 # <limits.h> exists even on freestanding compilers.
4542 # On the NeXT, cc -E runs the code through the compiler's parser,
4543 # not just through cpp. "Syntax error" is here to catch this case.
4544 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4545 /* end confdefs.h. */
4546 #ifdef __STDC__
4547 # include <limits.h>
4548 #else
4549 # include <assert.h>
4550 #endif
4551 Syntax error
4552 _ACEOF
4553 if ac_fn_c_try_cpp "$LINENO"; then :
4555 else
4556 # Broken: fails on valid input.
4557 continue
4559 rm -f conftest.err conftest.$ac_ext
4561 # OK, works on sane cases. Now check whether nonexistent headers
4562 # can be detected and how.
4563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4564 /* end confdefs.h. */
4565 #include <ac_nonexistent.h>
4566 _ACEOF
4567 if ac_fn_c_try_cpp "$LINENO"; then :
4568 # Broken: success on invalid input.
4569 continue
4570 else
4571 # Passes both tests.
4572 ac_preproc_ok=:
4573 break
4575 rm -f conftest.err conftest.$ac_ext
4577 done
4578 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4579 rm -f conftest.err conftest.$ac_ext
4580 if $ac_preproc_ok; then :
4582 else
4583 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4584 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4585 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4586 See \`config.log' for more details." "$LINENO" 5; }
4589 ac_ext=c
4590 ac_cpp='$CPP $CPPFLAGS'
4591 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4592 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4593 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4597 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4598 if test "${ac_cv_path_GREP+set}" = set; then :
4599 $as_echo_n "(cached) " >&6
4600 else
4601 if test -z "$GREP"; then
4602 ac_path_GREP_found=false
4603 # Loop through the user's path and test for each of PROGNAME-LIST
4604 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4605 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4607 IFS=$as_save_IFS
4608 test -z "$as_dir" && as_dir=.
4609 for ac_prog in grep ggrep; do
4610 for ac_exec_ext in '' $ac_executable_extensions; do
4611 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4612 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4613 # Check for GNU ac_path_GREP and select it if it is found.
4614 # Check for GNU $ac_path_GREP
4615 case `"$ac_path_GREP" --version 2>&1` in
4616 *GNU*)
4617 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4619 ac_count=0
4620 $as_echo_n 0123456789 >"conftest.in"
4621 while :
4623 cat "conftest.in" "conftest.in" >"conftest.tmp"
4624 mv "conftest.tmp" "conftest.in"
4625 cp "conftest.in" "conftest.nl"
4626 $as_echo 'GREP' >> "conftest.nl"
4627 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4628 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4629 as_fn_arith $ac_count + 1 && ac_count=$as_val
4630 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4631 # Best one so far, save it but keep looking for a better one
4632 ac_cv_path_GREP="$ac_path_GREP"
4633 ac_path_GREP_max=$ac_count
4635 # 10*(2^10) chars as input seems more than enough
4636 test $ac_count -gt 10 && break
4637 done
4638 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4639 esac
4641 $ac_path_GREP_found && break 3
4642 done
4643 done
4644 done
4645 IFS=$as_save_IFS
4646 if test -z "$ac_cv_path_GREP"; then
4647 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4649 else
4650 ac_cv_path_GREP=$GREP
4654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4655 $as_echo "$ac_cv_path_GREP" >&6; }
4656 GREP="$ac_cv_path_GREP"
4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4660 $as_echo_n "checking for egrep... " >&6; }
4661 if test "${ac_cv_path_EGREP+set}" = set; then :
4662 $as_echo_n "(cached) " >&6
4663 else
4664 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4665 then ac_cv_path_EGREP="$GREP -E"
4666 else
4667 if test -z "$EGREP"; then
4668 ac_path_EGREP_found=false
4669 # Loop through the user's path and test for each of PROGNAME-LIST
4670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4671 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4673 IFS=$as_save_IFS
4674 test -z "$as_dir" && as_dir=.
4675 for ac_prog in egrep; do
4676 for ac_exec_ext in '' $ac_executable_extensions; do
4677 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4678 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4679 # Check for GNU ac_path_EGREP and select it if it is found.
4680 # Check for GNU $ac_path_EGREP
4681 case `"$ac_path_EGREP" --version 2>&1` in
4682 *GNU*)
4683 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4685 ac_count=0
4686 $as_echo_n 0123456789 >"conftest.in"
4687 while :
4689 cat "conftest.in" "conftest.in" >"conftest.tmp"
4690 mv "conftest.tmp" "conftest.in"
4691 cp "conftest.in" "conftest.nl"
4692 $as_echo 'EGREP' >> "conftest.nl"
4693 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4694 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4695 as_fn_arith $ac_count + 1 && ac_count=$as_val
4696 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4697 # Best one so far, save it but keep looking for a better one
4698 ac_cv_path_EGREP="$ac_path_EGREP"
4699 ac_path_EGREP_max=$ac_count
4701 # 10*(2^10) chars as input seems more than enough
4702 test $ac_count -gt 10 && break
4703 done
4704 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4705 esac
4707 $ac_path_EGREP_found && break 3
4708 done
4709 done
4710 done
4711 IFS=$as_save_IFS
4712 if test -z "$ac_cv_path_EGREP"; then
4713 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4715 else
4716 ac_cv_path_EGREP=$EGREP
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4722 $as_echo "$ac_cv_path_EGREP" >&6; }
4723 EGREP="$ac_cv_path_EGREP"
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4727 $as_echo_n "checking for ANSI C header files... " >&6; }
4728 if test "${ac_cv_header_stdc+set}" = set; then :
4729 $as_echo_n "(cached) " >&6
4730 else
4731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4732 /* end confdefs.h. */
4733 #include <stdlib.h>
4734 #include <stdarg.h>
4735 #include <string.h>
4736 #include <float.h>
4739 main ()
4743 return 0;
4745 _ACEOF
4746 if ac_fn_c_try_compile "$LINENO"; then :
4747 ac_cv_header_stdc=yes
4748 else
4749 ac_cv_header_stdc=no
4751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4753 if test $ac_cv_header_stdc = yes; then
4754 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4756 /* end confdefs.h. */
4757 #include <string.h>
4759 _ACEOF
4760 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4761 $EGREP "memchr" >/dev/null 2>&1; then :
4763 else
4764 ac_cv_header_stdc=no
4766 rm -f conftest*
4770 if test $ac_cv_header_stdc = yes; then
4771 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4773 /* end confdefs.h. */
4774 #include <stdlib.h>
4776 _ACEOF
4777 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4778 $EGREP "free" >/dev/null 2>&1; then :
4780 else
4781 ac_cv_header_stdc=no
4783 rm -f conftest*
4787 if test $ac_cv_header_stdc = yes; then
4788 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4789 if test "$cross_compiling" = yes; then :
4791 else
4792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4793 /* end confdefs.h. */
4794 #include <ctype.h>
4795 #include <stdlib.h>
4796 #if ((' ' & 0x0FF) == 0x020)
4797 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4798 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4799 #else
4800 # define ISLOWER(c) \
4801 (('a' <= (c) && (c) <= 'i') \
4802 || ('j' <= (c) && (c) <= 'r') \
4803 || ('s' <= (c) && (c) <= 'z'))
4804 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4805 #endif
4807 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4809 main ()
4811 int i;
4812 for (i = 0; i < 256; i++)
4813 if (XOR (islower (i), ISLOWER (i))
4814 || toupper (i) != TOUPPER (i))
4815 return 2;
4816 return 0;
4818 _ACEOF
4819 if ac_fn_c_try_run "$LINENO"; then :
4821 else
4822 ac_cv_header_stdc=no
4824 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4825 conftest.$ac_objext conftest.beam conftest.$ac_ext
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4831 $as_echo "$ac_cv_header_stdc" >&6; }
4832 if test $ac_cv_header_stdc = yes; then
4834 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4838 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4839 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4840 inttypes.h stdint.h unistd.h
4841 do :
4842 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4843 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4845 eval as_val=\$$as_ac_Header
4846 if test "x$as_val" = x""yes; then :
4847 cat >>confdefs.h <<_ACEOF
4848 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4849 _ACEOF
4853 done
4857 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4858 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4859 MINIX=yes
4860 else
4861 MINIX=
4865 if test "$MINIX" = yes; then
4867 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4870 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4873 $as_echo "#define _MINIX 1" >>confdefs.h
4878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4879 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4880 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4881 $as_echo_n "(cached) " >&6
4882 else
4883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4884 /* end confdefs.h. */
4886 # define __EXTENSIONS__ 1
4887 $ac_includes_default
4889 main ()
4893 return 0;
4895 _ACEOF
4896 if ac_fn_c_try_compile "$LINENO"; then :
4897 ac_cv_safe_to_define___extensions__=yes
4898 else
4899 ac_cv_safe_to_define___extensions__=no
4901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4904 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4905 test $ac_cv_safe_to_define___extensions__ = yes &&
4906 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4908 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4910 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4912 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4914 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4918 # Calculate toolexeclibdir
4919 # Also toolexecdir, though it's only used in toolexeclibdir
4920 case ${version_specific_libs} in
4921 yes)
4922 # Need the gcc compiler version to know where to install libraries
4923 # and header files if --enable-version-specific-runtime-libs option
4924 # is selected.
4925 toolexecdir='$(libdir)/gcc/$(target_alias)'
4926 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
4929 if test -n "$with_cross_host" &&
4930 test x"$with_cross_host" != x"no"; then
4931 # Install a library built with a cross compiler in tooldir, not libdir.
4932 toolexecdir='$(exec_prefix)/$(target_alias)'
4933 toolexeclibdir='$(toolexecdir)/lib'
4934 else
4935 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
4936 toolexeclibdir='$(libdir)'
4938 multi_os_directory=`$CC -print-multi-os-directory`
4939 case $multi_os_directory in
4940 .) ;; # Avoid trailing /.
4941 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
4942 esac
4944 esac
4948 # Create a spec file, so that compile/link tests don't fail
4949 test -f libgfortran.spec || touch libgfortran.spec
4951 ac_ext=c
4952 ac_cpp='$CPP $CPPFLAGS'
4953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4957 # Check the compiler.
4958 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
4959 # We must force CC to /not/ be precious variables; otherwise
4960 # the wrong, non-multilib-adjusted value will be used in multilibs.
4961 # As a side effect, we have to subst CFLAGS ourselves.
4965 ac_ext=c
4966 ac_cpp='$CPP $CPPFLAGS'
4967 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4968 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4969 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4970 if test -n "$ac_tool_prefix"; then
4971 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4972 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4974 $as_echo_n "checking for $ac_word... " >&6; }
4975 if test "${ac_cv_prog_CC+set}" = set; then :
4976 $as_echo_n "(cached) " >&6
4977 else
4978 if test -n "$CC"; then
4979 ac_cv_prog_CC="$CC" # Let the user override the test.
4980 else
4981 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4982 for as_dir in $PATH
4984 IFS=$as_save_IFS
4985 test -z "$as_dir" && as_dir=.
4986 for ac_exec_ext in '' $ac_executable_extensions; do
4987 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4988 ac_cv_prog_CC="${ac_tool_prefix}gcc"
4989 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4990 break 2
4992 done
4993 done
4994 IFS=$as_save_IFS
4998 CC=$ac_cv_prog_CC
4999 if test -n "$CC"; then
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5001 $as_echo "$CC" >&6; }
5002 else
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5004 $as_echo "no" >&6; }
5009 if test -z "$ac_cv_prog_CC"; then
5010 ac_ct_CC=$CC
5011 # Extract the first word of "gcc", so it can be a program name with args.
5012 set dummy gcc; ac_word=$2
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5014 $as_echo_n "checking for $ac_word... " >&6; }
5015 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5016 $as_echo_n "(cached) " >&6
5017 else
5018 if test -n "$ac_ct_CC"; then
5019 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5020 else
5021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5022 for as_dir in $PATH
5024 IFS=$as_save_IFS
5025 test -z "$as_dir" && as_dir=.
5026 for ac_exec_ext in '' $ac_executable_extensions; do
5027 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5028 ac_cv_prog_ac_ct_CC="gcc"
5029 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5030 break 2
5032 done
5033 done
5034 IFS=$as_save_IFS
5038 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5039 if test -n "$ac_ct_CC"; then
5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5041 $as_echo "$ac_ct_CC" >&6; }
5042 else
5043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5044 $as_echo "no" >&6; }
5047 if test "x$ac_ct_CC" = x; then
5048 CC=""
5049 else
5050 case $cross_compiling:$ac_tool_warned in
5051 yes:)
5052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5053 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5054 ac_tool_warned=yes ;;
5055 esac
5056 CC=$ac_ct_CC
5058 else
5059 CC="$ac_cv_prog_CC"
5062 if test -z "$CC"; then
5063 if test -n "$ac_tool_prefix"; then
5064 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5065 set dummy ${ac_tool_prefix}cc; ac_word=$2
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5067 $as_echo_n "checking for $ac_word... " >&6; }
5068 if test "${ac_cv_prog_CC+set}" = set; then :
5069 $as_echo_n "(cached) " >&6
5070 else
5071 if test -n "$CC"; then
5072 ac_cv_prog_CC="$CC" # Let the user override the test.
5073 else
5074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5075 for as_dir in $PATH
5077 IFS=$as_save_IFS
5078 test -z "$as_dir" && as_dir=.
5079 for ac_exec_ext in '' $ac_executable_extensions; do
5080 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5081 ac_cv_prog_CC="${ac_tool_prefix}cc"
5082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5083 break 2
5085 done
5086 done
5087 IFS=$as_save_IFS
5091 CC=$ac_cv_prog_CC
5092 if test -n "$CC"; then
5093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5094 $as_echo "$CC" >&6; }
5095 else
5096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5097 $as_echo "no" >&6; }
5103 if test -z "$CC"; then
5104 # Extract the first word of "cc", so it can be a program name with args.
5105 set dummy cc; ac_word=$2
5106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5107 $as_echo_n "checking for $ac_word... " >&6; }
5108 if test "${ac_cv_prog_CC+set}" = set; then :
5109 $as_echo_n "(cached) " >&6
5110 else
5111 if test -n "$CC"; then
5112 ac_cv_prog_CC="$CC" # Let the user override the test.
5113 else
5114 ac_prog_rejected=no
5115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5116 for as_dir in $PATH
5118 IFS=$as_save_IFS
5119 test -z "$as_dir" && as_dir=.
5120 for ac_exec_ext in '' $ac_executable_extensions; do
5121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5122 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5123 ac_prog_rejected=yes
5124 continue
5126 ac_cv_prog_CC="cc"
5127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5128 break 2
5130 done
5131 done
5132 IFS=$as_save_IFS
5134 if test $ac_prog_rejected = yes; then
5135 # We found a bogon in the path, so make sure we never use it.
5136 set dummy $ac_cv_prog_CC
5137 shift
5138 if test $# != 0; then
5139 # We chose a different compiler from the bogus one.
5140 # However, it has the same basename, so the bogon will be chosen
5141 # first if we set CC to just the basename; use the full file name.
5142 shift
5143 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5148 CC=$ac_cv_prog_CC
5149 if test -n "$CC"; then
5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5151 $as_echo "$CC" >&6; }
5152 else
5153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5154 $as_echo "no" >&6; }
5159 if test -z "$CC"; then
5160 if test -n "$ac_tool_prefix"; then
5161 for ac_prog in cl.exe
5163 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5164 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5166 $as_echo_n "checking for $ac_word... " >&6; }
5167 if test "${ac_cv_prog_CC+set}" = set; then :
5168 $as_echo_n "(cached) " >&6
5169 else
5170 if test -n "$CC"; then
5171 ac_cv_prog_CC="$CC" # Let the user override the test.
5172 else
5173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5174 for as_dir in $PATH
5176 IFS=$as_save_IFS
5177 test -z "$as_dir" && as_dir=.
5178 for ac_exec_ext in '' $ac_executable_extensions; do
5179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5180 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5182 break 2
5184 done
5185 done
5186 IFS=$as_save_IFS
5190 CC=$ac_cv_prog_CC
5191 if test -n "$CC"; then
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5193 $as_echo "$CC" >&6; }
5194 else
5195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5196 $as_echo "no" >&6; }
5200 test -n "$CC" && break
5201 done
5203 if test -z "$CC"; then
5204 ac_ct_CC=$CC
5205 for ac_prog in cl.exe
5207 # Extract the first word of "$ac_prog", so it can be a program name with args.
5208 set dummy $ac_prog; ac_word=$2
5209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5210 $as_echo_n "checking for $ac_word... " >&6; }
5211 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5212 $as_echo_n "(cached) " >&6
5213 else
5214 if test -n "$ac_ct_CC"; then
5215 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5216 else
5217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5218 for as_dir in $PATH
5220 IFS=$as_save_IFS
5221 test -z "$as_dir" && as_dir=.
5222 for ac_exec_ext in '' $ac_executable_extensions; do
5223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5224 ac_cv_prog_ac_ct_CC="$ac_prog"
5225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5226 break 2
5228 done
5229 done
5230 IFS=$as_save_IFS
5234 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5235 if test -n "$ac_ct_CC"; then
5236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5237 $as_echo "$ac_ct_CC" >&6; }
5238 else
5239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5240 $as_echo "no" >&6; }
5244 test -n "$ac_ct_CC" && break
5245 done
5247 if test "x$ac_ct_CC" = x; then
5248 CC=""
5249 else
5250 case $cross_compiling:$ac_tool_warned in
5251 yes:)
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5253 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5254 ac_tool_warned=yes ;;
5255 esac
5256 CC=$ac_ct_CC
5263 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5264 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5265 as_fn_error "no acceptable C compiler found in \$PATH
5266 See \`config.log' for more details." "$LINENO" 5; }
5268 # Provide some information about the compiler.
5269 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5270 set X $ac_compile
5271 ac_compiler=$2
5272 for ac_option in --version -v -V -qversion; do
5273 { { ac_try="$ac_compiler $ac_option >&5"
5274 case "(($ac_try" in
5275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5276 *) ac_try_echo=$ac_try;;
5277 esac
5278 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5279 $as_echo "$ac_try_echo"; } >&5
5280 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5281 ac_status=$?
5282 if test -s conftest.err; then
5283 sed '10a\
5284 ... rest of stderr output deleted ...
5285 10q' conftest.err >conftest.er1
5286 cat conftest.er1 >&5
5287 rm -f conftest.er1 conftest.err
5289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5290 test $ac_status = 0; }
5291 done
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5294 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5295 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5296 $as_echo_n "(cached) " >&6
5297 else
5298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5299 /* end confdefs.h. */
5302 main ()
5304 #ifndef __GNUC__
5305 choke me
5306 #endif
5309 return 0;
5311 _ACEOF
5312 if ac_fn_c_try_compile "$LINENO"; then :
5313 ac_compiler_gnu=yes
5314 else
5315 ac_compiler_gnu=no
5317 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5318 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5322 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5323 if test $ac_compiler_gnu = yes; then
5324 GCC=yes
5325 else
5326 GCC=
5328 ac_test_CFLAGS=${CFLAGS+set}
5329 ac_save_CFLAGS=$CFLAGS
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5331 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5332 if test "${ac_cv_prog_cc_g+set}" = set; then :
5333 $as_echo_n "(cached) " >&6
5334 else
5335 ac_save_c_werror_flag=$ac_c_werror_flag
5336 ac_c_werror_flag=yes
5337 ac_cv_prog_cc_g=no
5338 CFLAGS="-g"
5339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5340 /* end confdefs.h. */
5343 main ()
5347 return 0;
5349 _ACEOF
5350 if ac_fn_c_try_compile "$LINENO"; then :
5351 ac_cv_prog_cc_g=yes
5352 else
5353 CFLAGS=""
5354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5355 /* end confdefs.h. */
5358 main ()
5362 return 0;
5364 _ACEOF
5365 if ac_fn_c_try_compile "$LINENO"; then :
5367 else
5368 ac_c_werror_flag=$ac_save_c_werror_flag
5369 CFLAGS="-g"
5370 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5371 /* end confdefs.h. */
5374 main ()
5378 return 0;
5380 _ACEOF
5381 if ac_fn_c_try_compile "$LINENO"; then :
5382 ac_cv_prog_cc_g=yes
5384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5389 ac_c_werror_flag=$ac_save_c_werror_flag
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5392 $as_echo "$ac_cv_prog_cc_g" >&6; }
5393 if test "$ac_test_CFLAGS" = set; then
5394 CFLAGS=$ac_save_CFLAGS
5395 elif test $ac_cv_prog_cc_g = yes; then
5396 if test "$GCC" = yes; then
5397 CFLAGS="-g -O2"
5398 else
5399 CFLAGS="-g"
5401 else
5402 if test "$GCC" = yes; then
5403 CFLAGS="-O2"
5404 else
5405 CFLAGS=
5408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5409 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5410 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5411 $as_echo_n "(cached) " >&6
5412 else
5413 ac_cv_prog_cc_c89=no
5414 ac_save_CC=$CC
5415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5416 /* end confdefs.h. */
5417 #include <stdarg.h>
5418 #include <stdio.h>
5419 #include <sys/types.h>
5420 #include <sys/stat.h>
5421 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5422 struct buf { int x; };
5423 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5424 static char *e (p, i)
5425 char **p;
5426 int i;
5428 return p[i];
5430 static char *f (char * (*g) (char **, int), char **p, ...)
5432 char *s;
5433 va_list v;
5434 va_start (v,p);
5435 s = g (p, va_arg (v,int));
5436 va_end (v);
5437 return s;
5440 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5441 function prototypes and stuff, but not '\xHH' hex character constants.
5442 These don't provoke an error unfortunately, instead are silently treated
5443 as 'x'. The following induces an error, until -std is added to get
5444 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5445 array size at least. It's necessary to write '\x00'==0 to get something
5446 that's true only with -std. */
5447 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5449 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5450 inside strings and character constants. */
5451 #define FOO(x) 'x'
5452 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5454 int test (int i, double x);
5455 struct s1 {int (*f) (int a);};
5456 struct s2 {int (*f) (double a);};
5457 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5458 int argc;
5459 char **argv;
5461 main ()
5463 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5465 return 0;
5467 _ACEOF
5468 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5469 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5471 CC="$ac_save_CC $ac_arg"
5472 if ac_fn_c_try_compile "$LINENO"; then :
5473 ac_cv_prog_cc_c89=$ac_arg
5475 rm -f core conftest.err conftest.$ac_objext
5476 test "x$ac_cv_prog_cc_c89" != "xno" && break
5477 done
5478 rm -f conftest.$ac_ext
5479 CC=$ac_save_CC
5482 # AC_CACHE_VAL
5483 case "x$ac_cv_prog_cc_c89" in
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5486 $as_echo "none needed" >&6; } ;;
5487 xno)
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5489 $as_echo "unsupported" >&6; } ;;
5491 CC="$CC $ac_cv_prog_cc_c89"
5492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5493 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5494 esac
5495 if test "x$ac_cv_prog_cc_c89" != xno; then :
5499 ac_ext=c
5500 ac_cpp='$CPP $CPPFLAGS'
5501 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5502 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5503 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5505 depcc="$CC" am_compiler_list=
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5508 $as_echo_n "checking dependency style of $depcc... " >&6; }
5509 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5510 $as_echo_n "(cached) " >&6
5511 else
5512 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5513 # We make a subdir and do the tests there. Otherwise we can end up
5514 # making bogus files that we don't know about and never remove. For
5515 # instance it was reported that on HP-UX the gcc test will end up
5516 # making a dummy file named `D' -- because `-MD' means `put the output
5517 # in D'.
5518 mkdir conftest.dir
5519 # Copy depcomp to subdir because otherwise we won't find it if we're
5520 # using a relative directory.
5521 cp "$am_depcomp" conftest.dir
5522 cd conftest.dir
5523 # We will build objects and dependencies in a subdirectory because
5524 # it helps to detect inapplicable dependency modes. For instance
5525 # both Tru64's cc and ICC support -MD to output dependencies as a
5526 # side effect of compilation, but ICC will put the dependencies in
5527 # the current directory while Tru64 will put them in the object
5528 # directory.
5529 mkdir sub
5531 am_cv_CC_dependencies_compiler_type=none
5532 if test "$am_compiler_list" = ""; then
5533 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5535 am__universal=false
5536 case " $depcc " in #(
5537 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5538 esac
5540 for depmode in $am_compiler_list; do
5541 # Setup a source with many dependencies, because some compilers
5542 # like to wrap large dependency lists on column 80 (with \), and
5543 # we should not choose a depcomp mode which is confused by this.
5545 # We need to recreate these files for each test, as the compiler may
5546 # overwrite some of them when testing with obscure command lines.
5547 # This happens at least with the AIX C compiler.
5548 : > sub/conftest.c
5549 for i in 1 2 3 4 5 6; do
5550 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5551 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5552 # Solaris 8's {/usr,}/bin/sh.
5553 touch sub/conftst$i.h
5554 done
5555 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5557 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5558 # mode. It turns out that the SunPro C++ compiler does not properly
5559 # handle `-M -o', and we need to detect this. Also, some Intel
5560 # versions had trouble with output in subdirs
5561 am__obj=sub/conftest.${OBJEXT-o}
5562 am__minus_obj="-o $am__obj"
5563 case $depmode in
5564 gcc)
5565 # This depmode causes a compiler race in universal mode.
5566 test "$am__universal" = false || continue
5568 nosideeffect)
5569 # after this tag, mechanisms are not by side-effect, so they'll
5570 # only be used when explicitly requested
5571 if test "x$enable_dependency_tracking" = xyes; then
5572 continue
5573 else
5574 break
5577 msvisualcpp | msvcmsys)
5578 # This compiler won't grok `-c -o', but also, the minuso test has
5579 # not run yet. These depmodes are late enough in the game, and
5580 # so weak that their functioning should not be impacted.
5581 am__obj=conftest.${OBJEXT-o}
5582 am__minus_obj=
5584 none) break ;;
5585 esac
5586 if depmode=$depmode \
5587 source=sub/conftest.c object=$am__obj \
5588 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5589 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5590 >/dev/null 2>conftest.err &&
5591 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5592 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5593 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5594 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5595 # icc doesn't choke on unknown options, it will just issue warnings
5596 # or remarks (even with -Werror). So we grep stderr for any message
5597 # that says an option was ignored or not supported.
5598 # When given -MP, icc 7.0 and 7.1 complain thusly:
5599 # icc: Command line warning: ignoring option '-M'; no argument required
5600 # The diagnosis changed in icc 8.0:
5601 # icc: Command line remark: option '-MP' not supported
5602 if (grep 'ignoring option' conftest.err ||
5603 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5604 am_cv_CC_dependencies_compiler_type=$depmode
5605 break
5608 done
5610 cd ..
5611 rm -rf conftest.dir
5612 else
5613 am_cv_CC_dependencies_compiler_type=none
5617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5618 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5619 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5622 test "x$enable_dependency_tracking" != xno \
5623 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5624 am__fastdepCC_TRUE=
5625 am__fastdepCC_FALSE='#'
5626 else
5627 am__fastdepCC_TRUE='#'
5628 am__fastdepCC_FALSE=
5636 if test "x$CC" != xcc; then
5637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5638 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5639 else
5640 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5641 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5643 set dummy $CC; ac_cc=`$as_echo "$2" |
5644 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5645 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5646 $as_echo_n "(cached) " >&6
5647 else
5648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5649 /* end confdefs.h. */
5652 main ()
5656 return 0;
5658 _ACEOF
5659 # Make sure it works both with $CC and with simple cc.
5660 # We do the test twice because some compilers refuse to overwrite an
5661 # existing .o file with -o, though they will create one.
5662 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5663 rm -f conftest2.*
5664 if { { case "(($ac_try" in
5665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5666 *) ac_try_echo=$ac_try;;
5667 esac
5668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5669 $as_echo "$ac_try_echo"; } >&5
5670 (eval "$ac_try") 2>&5
5671 ac_status=$?
5672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5673 test $ac_status = 0; } &&
5674 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5676 *) ac_try_echo=$ac_try;;
5677 esac
5678 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5679 $as_echo "$ac_try_echo"; } >&5
5680 (eval "$ac_try") 2>&5
5681 ac_status=$?
5682 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5683 test $ac_status = 0; };
5684 then
5685 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5686 if test "x$CC" != xcc; then
5687 # Test first that cc exists at all.
5688 if { ac_try='cc -c conftest.$ac_ext >&5'
5689 { { case "(($ac_try" in
5690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5691 *) ac_try_echo=$ac_try;;
5692 esac
5693 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5694 $as_echo "$ac_try_echo"; } >&5
5695 (eval "$ac_try") 2>&5
5696 ac_status=$?
5697 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5698 test $ac_status = 0; }; }; then
5699 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5700 rm -f conftest2.*
5701 if { { case "(($ac_try" in
5702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5703 *) ac_try_echo=$ac_try;;
5704 esac
5705 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5706 $as_echo "$ac_try_echo"; } >&5
5707 (eval "$ac_try") 2>&5
5708 ac_status=$?
5709 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5710 test $ac_status = 0; } &&
5711 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5713 *) ac_try_echo=$ac_try;;
5714 esac
5715 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5716 $as_echo "$ac_try_echo"; } >&5
5717 (eval "$ac_try") 2>&5
5718 ac_status=$?
5719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5720 test $ac_status = 0; };
5721 then
5722 # cc works too.
5724 else
5725 # cc exists but doesn't like -o.
5726 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5730 else
5731 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5733 rm -f core conftest*
5736 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5738 $as_echo "yes" >&6; }
5739 else
5740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5741 $as_echo "no" >&6; }
5743 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5747 # FIXME: we rely on the cache variable name because
5748 # there is no other way.
5749 set dummy $CC
5750 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5751 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5752 if test "$am_t" != yes; then
5753 # Losing compiler, so override with the script.
5754 # FIXME: It is wrong to rewrite CC.
5755 # But if we don't then we get into trouble of one sort or another.
5756 # A longer-term fix would be to have automake use am__CC in this case,
5757 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5758 CC="$am_aux_dir/compile $CC"
5763 # Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC.
5764 if test "x$GCC" = "xyes"; then
5765 AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring"
5766 ## We like to use C99 routines when available. This makes sure that
5767 ## __STDC_VERSION__ is set such that libc includes make them available.
5768 AM_CFLAGS="-std=gnu99 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings"
5769 ## Compile the following tests with the same system header contents
5770 ## that we'll encounter when compiling our own source files.
5771 CFLAGS="-std=gnu99 $CFLAGS"
5777 # Check for symbol versioning (copied from libssp).
5778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
5779 $as_echo_n "checking whether symbol versioning is supported... " >&6; }
5780 # Check whether --enable-symvers was given.
5781 if test "${enable_symvers+set}" = set; then :
5782 enableval=$enable_symvers; gfortran_use_symver=$enableval
5783 else
5784 gfortran_use_symver=yes
5787 if test "x$gfortran_use_symver" != xno; then
5788 save_LDFLAGS="$LDFLAGS"
5789 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
5790 cat > conftest.map <<EOF
5791 FOO_1.0 {
5792 global: *foo*; bar; local: *;
5795 if test x$gcc_no_link = xyes; then
5796 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5799 /* end confdefs.h. */
5800 int foo;
5802 main ()
5806 return 0;
5808 _ACEOF
5809 if ac_fn_c_try_link "$LINENO"; then :
5810 gfortran_use_symver=gnu
5811 else
5812 gfortran_use_symver=no
5814 rm -f core conftest.err conftest.$ac_objext \
5815 conftest$ac_exeext conftest.$ac_ext
5816 if test x$gfortran_use_symver = xno; then
5817 case "$target_os" in
5818 solaris2*)
5819 LDFLAGS="$save_LDFLAGS"
5820 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
5821 # Sun ld cannot handle wildcards and treats all entries as undefined.
5822 cat > conftest.map <<EOF
5823 FOO_1.0 {
5824 global: foo; local: *;
5827 if test x$gcc_no_link = xyes; then
5828 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5831 /* end confdefs.h. */
5832 int foo;
5834 main ()
5838 return 0;
5840 _ACEOF
5841 if ac_fn_c_try_link "$LINENO"; then :
5842 gfortran_use_symver=sun
5843 else
5844 gfortran_use_symver=no
5846 rm -f core conftest.err conftest.$ac_objext \
5847 conftest$ac_exeext conftest.$ac_ext
5849 esac
5851 LDFLAGS="$save_LDFLAGS"
5853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gfortran_use_symver" >&5
5854 $as_echo "$gfortran_use_symver" >&6; }
5855 if test "x$gfortran_use_symver" != xno; then
5856 LIBGFOR_USE_SYMVER_TRUE=
5857 LIBGFOR_USE_SYMVER_FALSE='#'
5858 else
5859 LIBGFOR_USE_SYMVER_TRUE='#'
5860 LIBGFOR_USE_SYMVER_FALSE=
5863 if test "x$gfortran_use_symver" = xgnu; then
5864 LIBGFOR_USE_SYMVER_GNU_TRUE=
5865 LIBGFOR_USE_SYMVER_GNU_FALSE='#'
5866 else
5867 LIBGFOR_USE_SYMVER_GNU_TRUE='#'
5868 LIBGFOR_USE_SYMVER_GNU_FALSE=
5871 if test "x$gfortran_use_symver" = xsun; then
5872 LIBGFOR_USE_SYMVER_SUN_TRUE=
5873 LIBGFOR_USE_SYMVER_SUN_FALSE='#'
5874 else
5875 LIBGFOR_USE_SYMVER_SUN_TRUE='#'
5876 LIBGFOR_USE_SYMVER_SUN_FALSE=
5880 # Figure out whether the compiler supports "-ffunction-sections -fdata-sections",
5881 # similarly to how libstdc++ does it
5882 ac_test_CFLAGS="${CFLAGS+set}"
5883 ac_save_CFLAGS="$CFLAGS"
5885 # Check for -ffunction-sections -fdata-sections
5886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc that supports -ffunction-sections -fdata-sections" >&5
5887 $as_echo_n "checking for gcc that supports -ffunction-sections -fdata-sections... " >&6; }
5888 CFLAGS='-Werror -ffunction-sections -fdata-sections'
5889 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5890 /* end confdefs.h. */
5893 main ()
5895 int foo;
5897 return 0;
5899 _ACEOF
5900 if ac_fn_c_try_compile "$LINENO"; then :
5901 ac_fdsections=yes
5902 else
5903 ac_fdsections=no
5905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5906 if test "$ac_test_CFLAGS" = set; then
5907 CFLAGS="$ac_save_CFLAGS"
5908 else
5909 # this is the suspicious part
5910 CFLAGS=""
5912 if test x"$ac_fdsections" = x"yes"; then
5913 SECTION_FLAGS='-ffunction-sections -fdata-sections'
5915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5
5916 $as_echo "$ac_fdsections" >&6; }
5919 # Find other programs we need.
5920 if test -n "$ac_tool_prefix"; then
5921 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5922 set dummy ${ac_tool_prefix}as; ac_word=$2
5923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5924 $as_echo_n "checking for $ac_word... " >&6; }
5925 if test "${ac_cv_prog_AS+set}" = set; then :
5926 $as_echo_n "(cached) " >&6
5927 else
5928 if test -n "$AS"; then
5929 ac_cv_prog_AS="$AS" # Let the user override the test.
5930 else
5931 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5932 for as_dir in $PATH
5934 IFS=$as_save_IFS
5935 test -z "$as_dir" && as_dir=.
5936 for ac_exec_ext in '' $ac_executable_extensions; do
5937 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5938 ac_cv_prog_AS="${ac_tool_prefix}as"
5939 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5940 break 2
5942 done
5943 done
5944 IFS=$as_save_IFS
5948 AS=$ac_cv_prog_AS
5949 if test -n "$AS"; then
5950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5951 $as_echo "$AS" >&6; }
5952 else
5953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5954 $as_echo "no" >&6; }
5959 if test -z "$ac_cv_prog_AS"; then
5960 ac_ct_AS=$AS
5961 # Extract the first word of "as", so it can be a program name with args.
5962 set dummy as; ac_word=$2
5963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5964 $as_echo_n "checking for $ac_word... " >&6; }
5965 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5966 $as_echo_n "(cached) " >&6
5967 else
5968 if test -n "$ac_ct_AS"; then
5969 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5970 else
5971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5972 for as_dir in $PATH
5974 IFS=$as_save_IFS
5975 test -z "$as_dir" && as_dir=.
5976 for ac_exec_ext in '' $ac_executable_extensions; do
5977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5978 ac_cv_prog_ac_ct_AS="as"
5979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5980 break 2
5982 done
5983 done
5984 IFS=$as_save_IFS
5988 ac_ct_AS=$ac_cv_prog_ac_ct_AS
5989 if test -n "$ac_ct_AS"; then
5990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
5991 $as_echo "$ac_ct_AS" >&6; }
5992 else
5993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5994 $as_echo "no" >&6; }
5997 if test "x$ac_ct_AS" = x; then
5998 AS=""
5999 else
6000 case $cross_compiling:$ac_tool_warned in
6001 yes:)
6002 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6003 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6004 ac_tool_warned=yes ;;
6005 esac
6006 AS=$ac_ct_AS
6008 else
6009 AS="$ac_cv_prog_AS"
6012 if test -n "$ac_tool_prefix"; then
6013 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6014 set dummy ${ac_tool_prefix}ar; ac_word=$2
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6016 $as_echo_n "checking for $ac_word... " >&6; }
6017 if test "${ac_cv_prog_AR+set}" = set; then :
6018 $as_echo_n "(cached) " >&6
6019 else
6020 if test -n "$AR"; then
6021 ac_cv_prog_AR="$AR" # Let the user override the test.
6022 else
6023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6024 for as_dir in $PATH
6026 IFS=$as_save_IFS
6027 test -z "$as_dir" && as_dir=.
6028 for ac_exec_ext in '' $ac_executable_extensions; do
6029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6030 ac_cv_prog_AR="${ac_tool_prefix}ar"
6031 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6032 break 2
6034 done
6035 done
6036 IFS=$as_save_IFS
6040 AR=$ac_cv_prog_AR
6041 if test -n "$AR"; then
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6043 $as_echo "$AR" >&6; }
6044 else
6045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6046 $as_echo "no" >&6; }
6051 if test -z "$ac_cv_prog_AR"; then
6052 ac_ct_AR=$AR
6053 # Extract the first word of "ar", so it can be a program name with args.
6054 set dummy ar; ac_word=$2
6055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6056 $as_echo_n "checking for $ac_word... " >&6; }
6057 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6058 $as_echo_n "(cached) " >&6
6059 else
6060 if test -n "$ac_ct_AR"; then
6061 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6062 else
6063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6064 for as_dir in $PATH
6066 IFS=$as_save_IFS
6067 test -z "$as_dir" && as_dir=.
6068 for ac_exec_ext in '' $ac_executable_extensions; do
6069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6070 ac_cv_prog_ac_ct_AR="ar"
6071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6072 break 2
6074 done
6075 done
6076 IFS=$as_save_IFS
6080 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6081 if test -n "$ac_ct_AR"; then
6082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6083 $as_echo "$ac_ct_AR" >&6; }
6084 else
6085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6086 $as_echo "no" >&6; }
6089 if test "x$ac_ct_AR" = x; then
6090 AR=""
6091 else
6092 case $cross_compiling:$ac_tool_warned in
6093 yes:)
6094 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6095 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6096 ac_tool_warned=yes ;;
6097 esac
6098 AR=$ac_ct_AR
6100 else
6101 AR="$ac_cv_prog_AR"
6104 if test -n "$ac_tool_prefix"; then
6105 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6106 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6108 $as_echo_n "checking for $ac_word... " >&6; }
6109 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6110 $as_echo_n "(cached) " >&6
6111 else
6112 if test -n "$RANLIB"; then
6113 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6114 else
6115 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6116 for as_dir in $PATH
6118 IFS=$as_save_IFS
6119 test -z "$as_dir" && as_dir=.
6120 for ac_exec_ext in '' $ac_executable_extensions; do
6121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6122 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6124 break 2
6126 done
6127 done
6128 IFS=$as_save_IFS
6132 RANLIB=$ac_cv_prog_RANLIB
6133 if test -n "$RANLIB"; then
6134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6135 $as_echo "$RANLIB" >&6; }
6136 else
6137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6138 $as_echo "no" >&6; }
6143 if test -z "$ac_cv_prog_RANLIB"; then
6144 ac_ct_RANLIB=$RANLIB
6145 # Extract the first word of "ranlib", so it can be a program name with args.
6146 set dummy ranlib; ac_word=$2
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6148 $as_echo_n "checking for $ac_word... " >&6; }
6149 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6150 $as_echo_n "(cached) " >&6
6151 else
6152 if test -n "$ac_ct_RANLIB"; then
6153 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6154 else
6155 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6156 for as_dir in $PATH
6158 IFS=$as_save_IFS
6159 test -z "$as_dir" && as_dir=.
6160 for ac_exec_ext in '' $ac_executable_extensions; do
6161 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6162 ac_cv_prog_ac_ct_RANLIB="ranlib"
6163 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6164 break 2
6166 done
6167 done
6168 IFS=$as_save_IFS
6172 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6173 if test -n "$ac_ct_RANLIB"; then
6174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6175 $as_echo "$ac_ct_RANLIB" >&6; }
6176 else
6177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6178 $as_echo "no" >&6; }
6181 if test "x$ac_ct_RANLIB" = x; then
6182 RANLIB="ranlib-not-found-in-path-error"
6183 else
6184 case $cross_compiling:$ac_tool_warned in
6185 yes:)
6186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6187 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6188 ac_tool_warned=yes ;;
6189 esac
6190 RANLIB=$ac_ct_RANLIB
6192 else
6193 RANLIB="$ac_cv_prog_RANLIB"
6196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6197 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6198 set x ${MAKE-make}
6199 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6200 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6201 $as_echo_n "(cached) " >&6
6202 else
6203 cat >conftest.make <<\_ACEOF
6204 SHELL = /bin/sh
6205 all:
6206 @echo '@@@%%%=$(MAKE)=@@@%%%'
6207 _ACEOF
6208 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6209 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6210 *@@@%%%=?*=@@@%%%*)
6211 eval ac_cv_prog_make_${ac_make}_set=yes;;
6213 eval ac_cv_prog_make_${ac_make}_set=no;;
6214 esac
6215 rm -f conftest.make
6217 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6219 $as_echo "yes" >&6; }
6220 SET_MAKE=
6221 else
6222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6223 $as_echo "no" >&6; }
6224 SET_MAKE="MAKE=${MAKE-make}"
6229 # Configure libtool
6230 #AC_MSG_NOTICE([====== Starting libtool configuration])
6231 enable_dlopen=yes
6235 case `pwd` in
6236 *\ * | *\ *)
6237 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6238 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6239 esac
6243 macro_version='2.2.7a'
6244 macro_revision='1.3134'
6258 ltmain="$ac_aux_dir/ltmain.sh"
6260 # Backslashify metacharacters that are still active within
6261 # double-quoted strings.
6262 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6264 # Same as above, but do not quote variable references.
6265 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6267 # Sed substitution to delay expansion of an escaped shell variable in a
6268 # double_quote_subst'ed string.
6269 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6271 # Sed substitution to delay expansion of an escaped single quote.
6272 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6274 # Sed substitution to avoid accidental globbing in evaled expressions
6275 no_glob_subst='s/\*/\\\*/g'
6277 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6278 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6279 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6282 $as_echo_n "checking how to print strings... " >&6; }
6283 # Test print first, because it will be a builtin if present.
6284 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6285 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6286 ECHO='print -r --'
6287 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6288 ECHO='printf %s\n'
6289 else
6290 # Use this function as a fallback that always works.
6291 func_fallback_echo ()
6293 eval 'cat <<_LTECHO_EOF
6295 _LTECHO_EOF'
6297 ECHO='func_fallback_echo'
6300 # func_echo_all arg...
6301 # Invoke $ECHO with all args, space-separated.
6302 func_echo_all ()
6304 $ECHO ""
6307 case "$ECHO" in
6308 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6309 $as_echo "printf" >&6; } ;;
6310 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6311 $as_echo "print -r" >&6; } ;;
6312 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6313 $as_echo "cat" >&6; } ;;
6314 esac
6329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6330 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6331 if test "${ac_cv_path_SED+set}" = set; then :
6332 $as_echo_n "(cached) " >&6
6333 else
6334 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6335 for ac_i in 1 2 3 4 5 6 7; do
6336 ac_script="$ac_script$as_nl$ac_script"
6337 done
6338 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6339 { ac_script=; unset ac_script;}
6340 if test -z "$SED"; then
6341 ac_path_SED_found=false
6342 # Loop through the user's path and test for each of PROGNAME-LIST
6343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6344 for as_dir in $PATH
6346 IFS=$as_save_IFS
6347 test -z "$as_dir" && as_dir=.
6348 for ac_prog in sed gsed; do
6349 for ac_exec_ext in '' $ac_executable_extensions; do
6350 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6351 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6352 # Check for GNU ac_path_SED and select it if it is found.
6353 # Check for GNU $ac_path_SED
6354 case `"$ac_path_SED" --version 2>&1` in
6355 *GNU*)
6356 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6358 ac_count=0
6359 $as_echo_n 0123456789 >"conftest.in"
6360 while :
6362 cat "conftest.in" "conftest.in" >"conftest.tmp"
6363 mv "conftest.tmp" "conftest.in"
6364 cp "conftest.in" "conftest.nl"
6365 $as_echo '' >> "conftest.nl"
6366 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6367 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6368 as_fn_arith $ac_count + 1 && ac_count=$as_val
6369 if test $ac_count -gt ${ac_path_SED_max-0}; then
6370 # Best one so far, save it but keep looking for a better one
6371 ac_cv_path_SED="$ac_path_SED"
6372 ac_path_SED_max=$ac_count
6374 # 10*(2^10) chars as input seems more than enough
6375 test $ac_count -gt 10 && break
6376 done
6377 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6378 esac
6380 $ac_path_SED_found && break 3
6381 done
6382 done
6383 done
6384 IFS=$as_save_IFS
6385 if test -z "$ac_cv_path_SED"; then
6386 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6388 else
6389 ac_cv_path_SED=$SED
6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6394 $as_echo "$ac_cv_path_SED" >&6; }
6395 SED="$ac_cv_path_SED"
6396 rm -f conftest.sed
6398 test -z "$SED" && SED=sed
6399 Xsed="$SED -e 1s/^X//"
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6412 $as_echo_n "checking for fgrep... " >&6; }
6413 if test "${ac_cv_path_FGREP+set}" = set; then :
6414 $as_echo_n "(cached) " >&6
6415 else
6416 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6417 then ac_cv_path_FGREP="$GREP -F"
6418 else
6419 if test -z "$FGREP"; then
6420 ac_path_FGREP_found=false
6421 # Loop through the user's path and test for each of PROGNAME-LIST
6422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6423 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6425 IFS=$as_save_IFS
6426 test -z "$as_dir" && as_dir=.
6427 for ac_prog in fgrep; do
6428 for ac_exec_ext in '' $ac_executable_extensions; do
6429 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6430 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6431 # Check for GNU ac_path_FGREP and select it if it is found.
6432 # Check for GNU $ac_path_FGREP
6433 case `"$ac_path_FGREP" --version 2>&1` in
6434 *GNU*)
6435 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6437 ac_count=0
6438 $as_echo_n 0123456789 >"conftest.in"
6439 while :
6441 cat "conftest.in" "conftest.in" >"conftest.tmp"
6442 mv "conftest.tmp" "conftest.in"
6443 cp "conftest.in" "conftest.nl"
6444 $as_echo 'FGREP' >> "conftest.nl"
6445 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6446 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6447 as_fn_arith $ac_count + 1 && ac_count=$as_val
6448 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6449 # Best one so far, save it but keep looking for a better one
6450 ac_cv_path_FGREP="$ac_path_FGREP"
6451 ac_path_FGREP_max=$ac_count
6453 # 10*(2^10) chars as input seems more than enough
6454 test $ac_count -gt 10 && break
6455 done
6456 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6457 esac
6459 $ac_path_FGREP_found && break 3
6460 done
6461 done
6462 done
6463 IFS=$as_save_IFS
6464 if test -z "$ac_cv_path_FGREP"; then
6465 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6467 else
6468 ac_cv_path_FGREP=$FGREP
6473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6474 $as_echo "$ac_cv_path_FGREP" >&6; }
6475 FGREP="$ac_cv_path_FGREP"
6478 test -z "$GREP" && GREP=grep
6498 # Check whether --with-gnu-ld was given.
6499 if test "${with_gnu_ld+set}" = set; then :
6500 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6501 else
6502 with_gnu_ld=no
6505 ac_prog=ld
6506 if test "$GCC" = yes; then
6507 # Check if gcc -print-prog-name=ld gives a path.
6508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6509 $as_echo_n "checking for ld used by $CC... " >&6; }
6510 case $host in
6511 *-*-mingw*)
6512 # gcc leaves a trailing carriage return which upsets mingw
6513 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6515 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6516 esac
6517 case $ac_prog in
6518 # Accept absolute paths.
6519 [\\/]* | ?:[\\/]*)
6520 re_direlt='/[^/][^/]*/\.\./'
6521 # Canonicalize the pathname of ld
6522 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6523 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6524 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6525 done
6526 test -z "$LD" && LD="$ac_prog"
6529 # If it fails, then pretend we aren't using GCC.
6530 ac_prog=ld
6533 # If it is relative, then search for the first ld in PATH.
6534 with_gnu_ld=unknown
6536 esac
6537 elif test "$with_gnu_ld" = yes; then
6538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6539 $as_echo_n "checking for GNU ld... " >&6; }
6540 else
6541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6542 $as_echo_n "checking for non-GNU ld... " >&6; }
6544 if test "${lt_cv_path_LD+set}" = set; then :
6545 $as_echo_n "(cached) " >&6
6546 else
6547 if test -z "$LD"; then
6548 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6549 for ac_dir in $PATH; do
6550 IFS="$lt_save_ifs"
6551 test -z "$ac_dir" && ac_dir=.
6552 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6553 lt_cv_path_LD="$ac_dir/$ac_prog"
6554 # Check to see if the program is GNU ld. I'd rather use --version,
6555 # but apparently some variants of GNU ld only accept -v.
6556 # Break only if it was the GNU/non-GNU ld that we prefer.
6557 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6558 *GNU* | *'with BFD'*)
6559 test "$with_gnu_ld" != no && break
6562 test "$with_gnu_ld" != yes && break
6564 esac
6566 done
6567 IFS="$lt_save_ifs"
6568 else
6569 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6573 LD="$lt_cv_path_LD"
6574 if test -n "$LD"; then
6575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6576 $as_echo "$LD" >&6; }
6577 else
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6579 $as_echo "no" >&6; }
6581 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6583 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6584 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6585 $as_echo_n "(cached) " >&6
6586 else
6587 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6588 case `$LD -v 2>&1 </dev/null` in
6589 *GNU* | *'with BFD'*)
6590 lt_cv_prog_gnu_ld=yes
6593 lt_cv_prog_gnu_ld=no
6595 esac
6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6598 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6599 with_gnu_ld=$lt_cv_prog_gnu_ld
6609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6610 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6611 if test "${lt_cv_path_NM+set}" = set; then :
6612 $as_echo_n "(cached) " >&6
6613 else
6614 if test -n "$NM"; then
6615 # Let the user override the test.
6616 lt_cv_path_NM="$NM"
6617 else
6618 lt_nm_to_check="${ac_tool_prefix}nm"
6619 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6620 lt_nm_to_check="$lt_nm_to_check nm"
6622 for lt_tmp_nm in $lt_nm_to_check; do
6623 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6624 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6625 IFS="$lt_save_ifs"
6626 test -z "$ac_dir" && ac_dir=.
6627 tmp_nm="$ac_dir/$lt_tmp_nm"
6628 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6629 # Check to see if the nm accepts a BSD-compat flag.
6630 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6631 # nm: unknown option "B" ignored
6632 # Tru64's nm complains that /dev/null is an invalid object file
6633 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6634 */dev/null* | *'Invalid file or object type'*)
6635 lt_cv_path_NM="$tmp_nm -B"
6636 break
6639 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6640 */dev/null*)
6641 lt_cv_path_NM="$tmp_nm -p"
6642 break
6645 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6646 continue # so that we can try to find one that supports BSD flags
6648 esac
6650 esac
6652 done
6653 IFS="$lt_save_ifs"
6654 done
6655 : ${lt_cv_path_NM=no}
6658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6659 $as_echo "$lt_cv_path_NM" >&6; }
6660 if test "$lt_cv_path_NM" != "no"; then
6661 NM="$lt_cv_path_NM"
6662 else
6663 # Didn't find any BSD compatible name lister, look for dumpbin.
6664 if test -n "$DUMPBIN"; then :
6665 # Let the user override the test.
6666 else
6667 if test -n "$ac_tool_prefix"; then
6668 for ac_prog in dumpbin "link -dump"
6670 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6671 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6673 $as_echo_n "checking for $ac_word... " >&6; }
6674 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6675 $as_echo_n "(cached) " >&6
6676 else
6677 if test -n "$DUMPBIN"; then
6678 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6679 else
6680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6681 for as_dir in $PATH
6683 IFS=$as_save_IFS
6684 test -z "$as_dir" && as_dir=.
6685 for ac_exec_ext in '' $ac_executable_extensions; do
6686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6687 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6688 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6689 break 2
6691 done
6692 done
6693 IFS=$as_save_IFS
6697 DUMPBIN=$ac_cv_prog_DUMPBIN
6698 if test -n "$DUMPBIN"; then
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6700 $as_echo "$DUMPBIN" >&6; }
6701 else
6702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6703 $as_echo "no" >&6; }
6707 test -n "$DUMPBIN" && break
6708 done
6710 if test -z "$DUMPBIN"; then
6711 ac_ct_DUMPBIN=$DUMPBIN
6712 for ac_prog in dumpbin "link -dump"
6714 # Extract the first word of "$ac_prog", so it can be a program name with args.
6715 set dummy $ac_prog; ac_word=$2
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6717 $as_echo_n "checking for $ac_word... " >&6; }
6718 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6719 $as_echo_n "(cached) " >&6
6720 else
6721 if test -n "$ac_ct_DUMPBIN"; then
6722 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6723 else
6724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6725 for as_dir in $PATH
6727 IFS=$as_save_IFS
6728 test -z "$as_dir" && as_dir=.
6729 for ac_exec_ext in '' $ac_executable_extensions; do
6730 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6731 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6732 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6733 break 2
6735 done
6736 done
6737 IFS=$as_save_IFS
6741 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6742 if test -n "$ac_ct_DUMPBIN"; then
6743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6744 $as_echo "$ac_ct_DUMPBIN" >&6; }
6745 else
6746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6747 $as_echo "no" >&6; }
6751 test -n "$ac_ct_DUMPBIN" && break
6752 done
6754 if test "x$ac_ct_DUMPBIN" = x; then
6755 DUMPBIN=":"
6756 else
6757 case $cross_compiling:$ac_tool_warned in
6758 yes:)
6759 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6760 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6761 ac_tool_warned=yes ;;
6762 esac
6763 DUMPBIN=$ac_ct_DUMPBIN
6767 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6768 *COFF*)
6769 DUMPBIN="$DUMPBIN -symbols"
6772 DUMPBIN=:
6774 esac
6777 if test "$DUMPBIN" != ":"; then
6778 NM="$DUMPBIN"
6781 test -z "$NM" && NM=nm
6788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6789 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6790 if test "${lt_cv_nm_interface+set}" = set; then :
6791 $as_echo_n "(cached) " >&6
6792 else
6793 lt_cv_nm_interface="BSD nm"
6794 echo "int some_variable = 0;" > conftest.$ac_ext
6795 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6796 (eval "$ac_compile" 2>conftest.err)
6797 cat conftest.err >&5
6798 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6799 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6800 cat conftest.err >&5
6801 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6802 cat conftest.out >&5
6803 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6804 lt_cv_nm_interface="MS dumpbin"
6806 rm -f conftest*
6808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6809 $as_echo "$lt_cv_nm_interface" >&6; }
6811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6812 $as_echo_n "checking whether ln -s works... " >&6; }
6813 LN_S=$as_ln_s
6814 if test "$LN_S" = "ln -s"; then
6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6816 $as_echo "yes" >&6; }
6817 else
6818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6819 $as_echo "no, using $LN_S" >&6; }
6822 # find the maximum length of command line arguments
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6824 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6825 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6826 $as_echo_n "(cached) " >&6
6827 else
6829 teststring="ABCD"
6831 case $build_os in
6832 msdosdjgpp*)
6833 # On DJGPP, this test can blow up pretty badly due to problems in libc
6834 # (any single argument exceeding 2000 bytes causes a buffer overrun
6835 # during glob expansion). Even if it were fixed, the result of this
6836 # check would be larger than it should be.
6837 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6840 gnu*)
6841 # Under GNU Hurd, this test is not required because there is
6842 # no limit to the length of command line arguments.
6843 # Libtool will interpret -1 as no limit whatsoever
6844 lt_cv_sys_max_cmd_len=-1;
6847 cygwin* | mingw* | cegcc*)
6848 # On Win9x/ME, this test blows up -- it succeeds, but takes
6849 # about 5 minutes as the teststring grows exponentially.
6850 # Worse, since 9x/ME are not pre-emptively multitasking,
6851 # you end up with a "frozen" computer, even though with patience
6852 # the test eventually succeeds (with a max line length of 256k).
6853 # Instead, let's just punt: use the minimum linelength reported by
6854 # all of the supported platforms: 8192 (on NT/2K/XP).
6855 lt_cv_sys_max_cmd_len=8192;
6858 mint*)
6859 # On MiNT this can take a long time and run out of memory.
6860 lt_cv_sys_max_cmd_len=8192;
6863 amigaos*)
6864 # On AmigaOS with pdksh, this test takes hours, literally.
6865 # So we just punt and use a minimum line length of 8192.
6866 lt_cv_sys_max_cmd_len=8192;
6869 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6870 # This has been around since 386BSD, at least. Likely further.
6871 if test -x /sbin/sysctl; then
6872 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6873 elif test -x /usr/sbin/sysctl; then
6874 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6875 else
6876 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6878 # And add a safety zone
6879 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6880 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6883 interix*)
6884 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6885 lt_cv_sys_max_cmd_len=196608
6888 osf*)
6889 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6890 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6891 # nice to cause kernel panics so lets avoid the loop below.
6892 # First set a reasonable default.
6893 lt_cv_sys_max_cmd_len=16384
6895 if test -x /sbin/sysconfig; then
6896 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6897 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6898 esac
6901 sco3.2v5*)
6902 lt_cv_sys_max_cmd_len=102400
6904 sysv5* | sco5v6* | sysv4.2uw2*)
6905 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6906 if test -n "$kargmax"; then
6907 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6908 else
6909 lt_cv_sys_max_cmd_len=32768
6913 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6914 if test -n "$lt_cv_sys_max_cmd_len"; then
6915 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6916 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6917 else
6918 # Make teststring a little bigger before we do anything with it.
6919 # a 1K string should be a reasonable start.
6920 for i in 1 2 3 4 5 6 7 8 ; do
6921 teststring=$teststring$teststring
6922 done
6923 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6924 # If test is not a shell built-in, we'll probably end up computing a
6925 # maximum length that is only half of the actual maximum length, but
6926 # we can't tell.
6927 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6928 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6929 test $i != 17 # 1/2 MB should be enough
6931 i=`expr $i + 1`
6932 teststring=$teststring$teststring
6933 done
6934 # Only check the string length outside the loop.
6935 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6936 teststring=
6937 # Add a significant safety factor because C++ compilers can tack on
6938 # massive amounts of additional arguments before passing them to the
6939 # linker. It appears as though 1/2 is a usable value.
6940 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6943 esac
6947 if test -n $lt_cv_sys_max_cmd_len ; then
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6949 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6950 else
6951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6952 $as_echo "none" >&6; }
6954 max_cmd_len=$lt_cv_sys_max_cmd_len
6961 : ${CP="cp -f"}
6962 : ${MV="mv -f"}
6963 : ${RM="rm -f"}
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6966 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6967 # Try some XSI features
6968 xsi_shell=no
6969 ( _lt_dummy="a/b/c"
6970 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6971 = c,a/b,, \
6972 && eval 'test $(( 1 + 1 )) -eq 2 \
6973 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6974 && xsi_shell=yes
6975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6976 $as_echo "$xsi_shell" >&6; }
6979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6980 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6981 lt_shell_append=no
6982 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
6983 >/dev/null 2>&1 \
6984 && lt_shell_append=yes
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
6986 $as_echo "$lt_shell_append" >&6; }
6989 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
6990 lt_unset=unset
6991 else
6992 lt_unset=false
6999 # test EBCDIC or ASCII
7000 case `echo X|tr X '\101'` in
7001 A) # ASCII based system
7002 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7003 lt_SP2NL='tr \040 \012'
7004 lt_NL2SP='tr \015\012 \040\040'
7006 *) # EBCDIC based system
7007 lt_SP2NL='tr \100 \n'
7008 lt_NL2SP='tr \r\n \100\100'
7010 esac
7020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7021 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7022 if test "${lt_cv_ld_reload_flag+set}" = set; then :
7023 $as_echo_n "(cached) " >&6
7024 else
7025 lt_cv_ld_reload_flag='-r'
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7028 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7029 reload_flag=$lt_cv_ld_reload_flag
7030 case $reload_flag in
7031 "" | " "*) ;;
7032 *) reload_flag=" $reload_flag" ;;
7033 esac
7034 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7035 case $host_os in
7036 darwin*)
7037 if test "$GCC" = yes; then
7038 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7039 else
7040 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7043 esac
7053 if test -n "$ac_tool_prefix"; then
7054 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7055 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7057 $as_echo_n "checking for $ac_word... " >&6; }
7058 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7059 $as_echo_n "(cached) " >&6
7060 else
7061 if test -n "$OBJDUMP"; then
7062 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7063 else
7064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7065 for as_dir in $PATH
7067 IFS=$as_save_IFS
7068 test -z "$as_dir" && as_dir=.
7069 for ac_exec_ext in '' $ac_executable_extensions; do
7070 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7071 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7073 break 2
7075 done
7076 done
7077 IFS=$as_save_IFS
7081 OBJDUMP=$ac_cv_prog_OBJDUMP
7082 if test -n "$OBJDUMP"; then
7083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7084 $as_echo "$OBJDUMP" >&6; }
7085 else
7086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7087 $as_echo "no" >&6; }
7092 if test -z "$ac_cv_prog_OBJDUMP"; then
7093 ac_ct_OBJDUMP=$OBJDUMP
7094 # Extract the first word of "objdump", so it can be a program name with args.
7095 set dummy objdump; ac_word=$2
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7097 $as_echo_n "checking for $ac_word... " >&6; }
7098 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7099 $as_echo_n "(cached) " >&6
7100 else
7101 if test -n "$ac_ct_OBJDUMP"; then
7102 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7103 else
7104 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7105 for as_dir in $PATH
7107 IFS=$as_save_IFS
7108 test -z "$as_dir" && as_dir=.
7109 for ac_exec_ext in '' $ac_executable_extensions; do
7110 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7111 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7113 break 2
7115 done
7116 done
7117 IFS=$as_save_IFS
7121 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7122 if test -n "$ac_ct_OBJDUMP"; then
7123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7124 $as_echo "$ac_ct_OBJDUMP" >&6; }
7125 else
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7127 $as_echo "no" >&6; }
7130 if test "x$ac_ct_OBJDUMP" = x; then
7131 OBJDUMP="false"
7132 else
7133 case $cross_compiling:$ac_tool_warned in
7134 yes:)
7135 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7136 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7137 ac_tool_warned=yes ;;
7138 esac
7139 OBJDUMP=$ac_ct_OBJDUMP
7141 else
7142 OBJDUMP="$ac_cv_prog_OBJDUMP"
7145 test -z "$OBJDUMP" && OBJDUMP=objdump
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7156 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7157 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7158 $as_echo_n "(cached) " >&6
7159 else
7160 lt_cv_file_magic_cmd='$MAGIC_CMD'
7161 lt_cv_file_magic_test_file=
7162 lt_cv_deplibs_check_method='unknown'
7163 # Need to set the preceding variable on all platforms that support
7164 # interlibrary dependencies.
7165 # 'none' -- dependencies not supported.
7166 # `unknown' -- same as none, but documents that we really don't know.
7167 # 'pass_all' -- all dependencies passed with no checks.
7168 # 'test_compile' -- check by making test program.
7169 # 'file_magic [[regex]]' -- check by looking for files in library path
7170 # which responds to the $file_magic_cmd with a given extended regex.
7171 # If you have `file' or equivalent on your system and you're not sure
7172 # whether `pass_all' will *always* work, you probably want this one.
7174 case $host_os in
7175 aix[4-9]*)
7176 lt_cv_deplibs_check_method=pass_all
7179 beos*)
7180 lt_cv_deplibs_check_method=pass_all
7183 bsdi[45]*)
7184 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7185 lt_cv_file_magic_cmd='/usr/bin/file -L'
7186 lt_cv_file_magic_test_file=/shlib/libc.so
7189 cygwin*)
7190 # func_win32_libid is a shell function defined in ltmain.sh
7191 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7192 lt_cv_file_magic_cmd='func_win32_libid'
7195 mingw* | pw32*)
7196 # Base MSYS/MinGW do not provide the 'file' command needed by
7197 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7198 # unless we find 'file', for example because we are cross-compiling.
7199 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7200 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7201 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7202 lt_cv_file_magic_cmd='func_win32_libid'
7203 else
7204 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7205 lt_cv_file_magic_cmd='$OBJDUMP -f'
7209 cegcc*)
7210 # use the weaker test based on 'objdump'. See mingw*.
7211 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7212 lt_cv_file_magic_cmd='$OBJDUMP -f'
7215 darwin* | rhapsody*)
7216 lt_cv_deplibs_check_method=pass_all
7219 freebsd* | dragonfly*)
7220 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7221 case $host_cpu in
7222 i*86 )
7223 # Not sure whether the presence of OpenBSD here was a mistake.
7224 # Let's accept both of them until this is cleared up.
7225 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7226 lt_cv_file_magic_cmd=/usr/bin/file
7227 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7229 esac
7230 else
7231 lt_cv_deplibs_check_method=pass_all
7235 gnu*)
7236 lt_cv_deplibs_check_method=pass_all
7239 haiku*)
7240 lt_cv_deplibs_check_method=pass_all
7243 hpux10.20* | hpux11*)
7244 lt_cv_file_magic_cmd=/usr/bin/file
7245 case $host_cpu in
7246 ia64*)
7247 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7248 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7250 hppa*64*)
7251 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]'
7252 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7255 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7256 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7258 esac
7261 interix[3-9]*)
7262 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7263 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7266 irix5* | irix6* | nonstopux*)
7267 case $LD in
7268 *-32|*"-32 ") libmagic=32-bit;;
7269 *-n32|*"-n32 ") libmagic=N32;;
7270 *-64|*"-64 ") libmagic=64-bit;;
7271 *) libmagic=never-match;;
7272 esac
7273 lt_cv_deplibs_check_method=pass_all
7276 # This must be Linux ELF.
7277 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7278 lt_cv_deplibs_check_method=pass_all
7281 netbsd*)
7282 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7283 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7284 else
7285 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7289 newos6*)
7290 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7291 lt_cv_file_magic_cmd=/usr/bin/file
7292 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7295 *nto* | *qnx*)
7296 lt_cv_deplibs_check_method=pass_all
7299 openbsd*)
7300 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7301 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7302 else
7303 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7307 osf3* | osf4* | osf5*)
7308 lt_cv_deplibs_check_method=pass_all
7311 rdos*)
7312 lt_cv_deplibs_check_method=pass_all
7315 solaris*)
7316 lt_cv_deplibs_check_method=pass_all
7319 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7320 lt_cv_deplibs_check_method=pass_all
7323 sysv4 | sysv4.3*)
7324 case $host_vendor in
7325 motorola)
7326 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]'
7327 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7329 ncr)
7330 lt_cv_deplibs_check_method=pass_all
7332 sequent)
7333 lt_cv_file_magic_cmd='/bin/file'
7334 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7336 sni)
7337 lt_cv_file_magic_cmd='/bin/file'
7338 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7339 lt_cv_file_magic_test_file=/lib/libc.so
7341 siemens)
7342 lt_cv_deplibs_check_method=pass_all
7345 lt_cv_deplibs_check_method=pass_all
7347 esac
7350 tpf*)
7351 lt_cv_deplibs_check_method=pass_all
7353 esac
7356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7357 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7358 file_magic_cmd=$lt_cv_file_magic_cmd
7359 deplibs_check_method=$lt_cv_deplibs_check_method
7360 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7373 if test -n "$ac_tool_prefix"; then
7374 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7375 set dummy ${ac_tool_prefix}ar; ac_word=$2
7376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7377 $as_echo_n "checking for $ac_word... " >&6; }
7378 if test "${ac_cv_prog_AR+set}" = set; then :
7379 $as_echo_n "(cached) " >&6
7380 else
7381 if test -n "$AR"; then
7382 ac_cv_prog_AR="$AR" # Let the user override the test.
7383 else
7384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7385 for as_dir in $PATH
7387 IFS=$as_save_IFS
7388 test -z "$as_dir" && as_dir=.
7389 for ac_exec_ext in '' $ac_executable_extensions; do
7390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7391 ac_cv_prog_AR="${ac_tool_prefix}ar"
7392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7393 break 2
7395 done
7396 done
7397 IFS=$as_save_IFS
7401 AR=$ac_cv_prog_AR
7402 if test -n "$AR"; then
7403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7404 $as_echo "$AR" >&6; }
7405 else
7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7407 $as_echo "no" >&6; }
7412 if test -z "$ac_cv_prog_AR"; then
7413 ac_ct_AR=$AR
7414 # Extract the first word of "ar", so it can be a program name with args.
7415 set dummy ar; ac_word=$2
7416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7417 $as_echo_n "checking for $ac_word... " >&6; }
7418 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7419 $as_echo_n "(cached) " >&6
7420 else
7421 if test -n "$ac_ct_AR"; then
7422 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7423 else
7424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7425 for as_dir in $PATH
7427 IFS=$as_save_IFS
7428 test -z "$as_dir" && as_dir=.
7429 for ac_exec_ext in '' $ac_executable_extensions; do
7430 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7431 ac_cv_prog_ac_ct_AR="ar"
7432 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7433 break 2
7435 done
7436 done
7437 IFS=$as_save_IFS
7441 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7442 if test -n "$ac_ct_AR"; then
7443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7444 $as_echo "$ac_ct_AR" >&6; }
7445 else
7446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7447 $as_echo "no" >&6; }
7450 if test "x$ac_ct_AR" = x; then
7451 AR="false"
7452 else
7453 case $cross_compiling:$ac_tool_warned in
7454 yes:)
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7456 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7457 ac_tool_warned=yes ;;
7458 esac
7459 AR=$ac_ct_AR
7461 else
7462 AR="$ac_cv_prog_AR"
7465 test -z "$AR" && AR=ar
7466 test -z "$AR_FLAGS" && AR_FLAGS=cru
7478 if test -n "$ac_tool_prefix"; then
7479 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7480 set dummy ${ac_tool_prefix}strip; ac_word=$2
7481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7482 $as_echo_n "checking for $ac_word... " >&6; }
7483 if test "${ac_cv_prog_STRIP+set}" = set; then :
7484 $as_echo_n "(cached) " >&6
7485 else
7486 if test -n "$STRIP"; then
7487 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7488 else
7489 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7490 for as_dir in $PATH
7492 IFS=$as_save_IFS
7493 test -z "$as_dir" && as_dir=.
7494 for ac_exec_ext in '' $ac_executable_extensions; do
7495 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7496 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7497 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7498 break 2
7500 done
7501 done
7502 IFS=$as_save_IFS
7506 STRIP=$ac_cv_prog_STRIP
7507 if test -n "$STRIP"; then
7508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7509 $as_echo "$STRIP" >&6; }
7510 else
7511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7512 $as_echo "no" >&6; }
7517 if test -z "$ac_cv_prog_STRIP"; then
7518 ac_ct_STRIP=$STRIP
7519 # Extract the first word of "strip", so it can be a program name with args.
7520 set dummy strip; ac_word=$2
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7522 $as_echo_n "checking for $ac_word... " >&6; }
7523 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7524 $as_echo_n "(cached) " >&6
7525 else
7526 if test -n "$ac_ct_STRIP"; then
7527 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7528 else
7529 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7530 for as_dir in $PATH
7532 IFS=$as_save_IFS
7533 test -z "$as_dir" && as_dir=.
7534 for ac_exec_ext in '' $ac_executable_extensions; do
7535 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7536 ac_cv_prog_ac_ct_STRIP="strip"
7537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7538 break 2
7540 done
7541 done
7542 IFS=$as_save_IFS
7546 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7547 if test -n "$ac_ct_STRIP"; then
7548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7549 $as_echo "$ac_ct_STRIP" >&6; }
7550 else
7551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7552 $as_echo "no" >&6; }
7555 if test "x$ac_ct_STRIP" = x; then
7556 STRIP=":"
7557 else
7558 case $cross_compiling:$ac_tool_warned in
7559 yes:)
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7561 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7562 ac_tool_warned=yes ;;
7563 esac
7564 STRIP=$ac_ct_STRIP
7566 else
7567 STRIP="$ac_cv_prog_STRIP"
7570 test -z "$STRIP" && STRIP=:
7577 if test -n "$ac_tool_prefix"; then
7578 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7579 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7581 $as_echo_n "checking for $ac_word... " >&6; }
7582 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7583 $as_echo_n "(cached) " >&6
7584 else
7585 if test -n "$RANLIB"; then
7586 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7587 else
7588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7589 for as_dir in $PATH
7591 IFS=$as_save_IFS
7592 test -z "$as_dir" && as_dir=.
7593 for ac_exec_ext in '' $ac_executable_extensions; do
7594 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7595 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7596 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7597 break 2
7599 done
7600 done
7601 IFS=$as_save_IFS
7605 RANLIB=$ac_cv_prog_RANLIB
7606 if test -n "$RANLIB"; then
7607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7608 $as_echo "$RANLIB" >&6; }
7609 else
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7611 $as_echo "no" >&6; }
7616 if test -z "$ac_cv_prog_RANLIB"; then
7617 ac_ct_RANLIB=$RANLIB
7618 # Extract the first word of "ranlib", so it can be a program name with args.
7619 set dummy ranlib; ac_word=$2
7620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7621 $as_echo_n "checking for $ac_word... " >&6; }
7622 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7623 $as_echo_n "(cached) " >&6
7624 else
7625 if test -n "$ac_ct_RANLIB"; then
7626 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7627 else
7628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7629 for as_dir in $PATH
7631 IFS=$as_save_IFS
7632 test -z "$as_dir" && as_dir=.
7633 for ac_exec_ext in '' $ac_executable_extensions; do
7634 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7635 ac_cv_prog_ac_ct_RANLIB="ranlib"
7636 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7637 break 2
7639 done
7640 done
7641 IFS=$as_save_IFS
7645 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7646 if test -n "$ac_ct_RANLIB"; then
7647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7648 $as_echo "$ac_ct_RANLIB" >&6; }
7649 else
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7651 $as_echo "no" >&6; }
7654 if test "x$ac_ct_RANLIB" = x; then
7655 RANLIB=":"
7656 else
7657 case $cross_compiling:$ac_tool_warned in
7658 yes:)
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7660 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7661 ac_tool_warned=yes ;;
7662 esac
7663 RANLIB=$ac_ct_RANLIB
7665 else
7666 RANLIB="$ac_cv_prog_RANLIB"
7669 test -z "$RANLIB" && RANLIB=:
7676 # Determine commands to create old-style static archives.
7677 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7678 old_postinstall_cmds='chmod 644 $oldlib'
7679 old_postuninstall_cmds=
7681 if test -n "$RANLIB"; then
7682 case $host_os in
7683 openbsd*)
7684 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7687 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7689 esac
7690 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7693 case $host_os in
7694 darwin*)
7695 lock_old_archive_extraction=yes ;;
7697 lock_old_archive_extraction=no ;;
7698 esac
7738 # If no C compiler was specified, use CC.
7739 LTCC=${LTCC-"$CC"}
7741 # If no C compiler flags were specified, use CFLAGS.
7742 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7744 # Allow CC to be a program name with arguments.
7745 compiler=$CC
7748 # Check for command to grab the raw symbol name followed by C symbol from nm.
7749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7750 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7751 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7752 $as_echo_n "(cached) " >&6
7753 else
7755 # These are sane defaults that work on at least a few old systems.
7756 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7758 # Character class describing NM global symbol codes.
7759 symcode='[BCDEGRST]'
7761 # Regexp to match symbols that can be accessed directly from C.
7762 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7764 # Define system-specific variables.
7765 case $host_os in
7766 aix*)
7767 symcode='[BCDT]'
7769 cygwin* | mingw* | pw32* | cegcc*)
7770 symcode='[ABCDGISTW]'
7772 hpux*)
7773 if test "$host_cpu" = ia64; then
7774 symcode='[ABCDEGRST]'
7777 irix* | nonstopux*)
7778 symcode='[BCDEGRST]'
7780 osf*)
7781 symcode='[BCDEGQRST]'
7783 solaris*)
7784 symcode='[BDRT]'
7786 sco3.2v5*)
7787 symcode='[DT]'
7789 sysv4.2uw2*)
7790 symcode='[DT]'
7792 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7793 symcode='[ABDT]'
7795 sysv4)
7796 symcode='[DFNSTU]'
7798 esac
7800 # If we're using GNU nm, then use its standard symbol codes.
7801 case `$NM -V 2>&1` in
7802 *GNU* | *'with BFD'*)
7803 symcode='[ABCDGIRSTW]' ;;
7804 esac
7806 # Transform an extracted symbol line into a proper C declaration.
7807 # Some systems (esp. on ia64) link data and code symbols differently,
7808 # so use this general approach.
7809 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7811 # Transform an extracted symbol line into symbol name and symbol address
7812 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7813 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'"
7815 # Handle CRLF in mingw tool chain
7816 opt_cr=
7817 case $build_os in
7818 mingw*)
7819 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7821 esac
7823 # Try without a prefix underscore, then with it.
7824 for ac_symprfx in "" "_"; do
7826 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7827 symxfrm="\\1 $ac_symprfx\\2 \\2"
7829 # Write the raw and C identifiers.
7830 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7831 # Fake it for dumpbin and say T for any non-static function
7832 # and D for any global variable.
7833 # Also find C++ and __fastcall symbols from MSVC++,
7834 # which start with @ or ?.
7835 lt_cv_sys_global_symbol_pipe="$AWK '"\
7836 " {last_section=section; section=\$ 3};"\
7837 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7838 " \$ 0!~/External *\|/{next};"\
7839 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7840 " {if(hide[section]) next};"\
7841 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7842 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7843 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7844 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7845 " ' prfx=^$ac_symprfx"
7846 else
7847 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7850 # Check to see that the pipe works correctly.
7851 pipe_works=no
7853 rm -f conftest*
7854 cat > conftest.$ac_ext <<_LT_EOF
7855 #ifdef __cplusplus
7856 extern "C" {
7857 #endif
7858 char nm_test_var;
7859 void nm_test_func(void);
7860 void nm_test_func(void){}
7861 #ifdef __cplusplus
7863 #endif
7864 int main(){nm_test_var='a';nm_test_func();return(0);}
7865 _LT_EOF
7867 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7868 (eval $ac_compile) 2>&5
7869 ac_status=$?
7870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7871 test $ac_status = 0; }; then
7872 # Now try to grab the symbols.
7873 nlist=conftest.nm
7874 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7875 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7876 ac_status=$?
7877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7878 test $ac_status = 0; } && test -s "$nlist"; then
7879 # Try sorting and uniquifying the output.
7880 if sort "$nlist" | uniq > "$nlist"T; then
7881 mv -f "$nlist"T "$nlist"
7882 else
7883 rm -f "$nlist"T
7886 # Make sure that we snagged all the symbols we need.
7887 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7888 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7889 cat <<_LT_EOF > conftest.$ac_ext
7890 #ifdef __cplusplus
7891 extern "C" {
7892 #endif
7894 _LT_EOF
7895 # Now generate the symbol file.
7896 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7898 cat <<_LT_EOF >> conftest.$ac_ext
7900 /* The mapping between symbol names and symbols. */
7901 const struct {
7902 const char *name;
7903 void *address;
7905 lt__PROGRAM__LTX_preloaded_symbols[] =
7907 { "@PROGRAM@", (void *) 0 },
7908 _LT_EOF
7909 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7910 cat <<\_LT_EOF >> conftest.$ac_ext
7911 {0, (void *) 0}
7914 /* This works around a problem in FreeBSD linker */
7915 #ifdef FREEBSD_WORKAROUND
7916 static const void *lt_preloaded_setup() {
7917 return lt__PROGRAM__LTX_preloaded_symbols;
7919 #endif
7921 #ifdef __cplusplus
7923 #endif
7924 _LT_EOF
7925 # Now try linking the two files.
7926 mv conftest.$ac_objext conftstm.$ac_objext
7927 lt_save_LIBS="$LIBS"
7928 lt_save_CFLAGS="$CFLAGS"
7929 LIBS="conftstm.$ac_objext"
7930 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7931 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7932 (eval $ac_link) 2>&5
7933 ac_status=$?
7934 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7935 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7936 pipe_works=yes
7938 LIBS="$lt_save_LIBS"
7939 CFLAGS="$lt_save_CFLAGS"
7940 else
7941 echo "cannot find nm_test_func in $nlist" >&5
7943 else
7944 echo "cannot find nm_test_var in $nlist" >&5
7946 else
7947 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7949 else
7950 echo "$progname: failed program was:" >&5
7951 cat conftest.$ac_ext >&5
7953 rm -rf conftest* conftst*
7955 # Do not use the global_symbol_pipe unless it works.
7956 if test "$pipe_works" = yes; then
7957 break
7958 else
7959 lt_cv_sys_global_symbol_pipe=
7961 done
7965 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7966 lt_cv_sys_global_symbol_to_cdecl=
7968 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7970 $as_echo "failed" >&6; }
7971 else
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7973 $as_echo "ok" >&6; }
7997 # Check whether --enable-libtool-lock was given.
7998 if test "${enable_libtool_lock+set}" = set; then :
7999 enableval=$enable_libtool_lock;
8002 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8004 # Some flags need to be propagated to the compiler or linker for good
8005 # libtool support.
8006 case $host in
8007 ia64-*-hpux*)
8008 # Find out which ABI we are using.
8009 echo 'int i;' > conftest.$ac_ext
8010 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8011 (eval $ac_compile) 2>&5
8012 ac_status=$?
8013 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8014 test $ac_status = 0; }; then
8015 case `/usr/bin/file conftest.$ac_objext` in
8016 *ELF-32*)
8017 HPUX_IA64_MODE="32"
8019 *ELF-64*)
8020 HPUX_IA64_MODE="64"
8022 esac
8024 rm -rf conftest*
8026 *-*-irix6*)
8027 # Find out which ABI we are using.
8028 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8029 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8030 (eval $ac_compile) 2>&5
8031 ac_status=$?
8032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8033 test $ac_status = 0; }; then
8034 if test "$lt_cv_prog_gnu_ld" = yes; then
8035 case `/usr/bin/file conftest.$ac_objext` in
8036 *32-bit*)
8037 LD="${LD-ld} -melf32bsmip"
8039 *N32*)
8040 LD="${LD-ld} -melf32bmipn32"
8042 *64-bit*)
8043 LD="${LD-ld} -melf64bmip"
8045 esac
8046 else
8047 case `/usr/bin/file conftest.$ac_objext` in
8048 *32-bit*)
8049 LD="${LD-ld} -32"
8051 *N32*)
8052 LD="${LD-ld} -n32"
8054 *64-bit*)
8055 LD="${LD-ld} -64"
8057 esac
8060 rm -rf conftest*
8063 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
8064 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8065 # Find out which ABI we are using.
8066 echo 'int i;' > conftest.$ac_ext
8067 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8068 (eval $ac_compile) 2>&5
8069 ac_status=$?
8070 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8071 test $ac_status = 0; }; then
8072 case `/usr/bin/file conftest.o` in
8073 *32-bit*)
8074 case $host in
8075 x86_64-*kfreebsd*-gnu)
8076 LD="${LD-ld} -m elf_i386_fbsd"
8078 x86_64-*linux*)
8079 case `/usr/bin/file conftest.o` in
8080 *x86-64*)
8081 LD="${LD-ld} -m elf32_x86_64"
8084 LD="${LD-ld} -m elf_i386"
8086 esac
8088 ppc64-*linux*|powerpc64-*linux*)
8089 LD="${LD-ld} -m elf32ppclinux"
8091 s390x-*linux*)
8092 LD="${LD-ld} -m elf_s390"
8094 sparc64-*linux*)
8095 LD="${LD-ld} -m elf32_sparc"
8097 esac
8099 *64-bit*)
8100 case $host in
8101 x86_64-*kfreebsd*-gnu)
8102 LD="${LD-ld} -m elf_x86_64_fbsd"
8104 x86_64-*linux*)
8105 LD="${LD-ld} -m elf_x86_64"
8107 ppc*-*linux*|powerpc*-*linux*)
8108 LD="${LD-ld} -m elf64ppc"
8110 s390*-*linux*|s390*-*tpf*)
8111 LD="${LD-ld} -m elf64_s390"
8113 sparc*-*linux*)
8114 LD="${LD-ld} -m elf64_sparc"
8116 esac
8118 esac
8120 rm -rf conftest*
8123 *-*-sco3.2v5*)
8124 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8125 SAVE_CFLAGS="$CFLAGS"
8126 CFLAGS="$CFLAGS -belf"
8127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8128 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8129 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8130 $as_echo_n "(cached) " >&6
8131 else
8132 ac_ext=c
8133 ac_cpp='$CPP $CPPFLAGS'
8134 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8135 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8136 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8138 if test x$gcc_no_link = xyes; then
8139 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8142 /* end confdefs.h. */
8145 main ()
8149 return 0;
8151 _ACEOF
8152 if ac_fn_c_try_link "$LINENO"; then :
8153 lt_cv_cc_needs_belf=yes
8154 else
8155 lt_cv_cc_needs_belf=no
8157 rm -f core conftest.err conftest.$ac_objext \
8158 conftest$ac_exeext conftest.$ac_ext
8159 ac_ext=c
8160 ac_cpp='$CPP $CPPFLAGS'
8161 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8162 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8163 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8167 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8168 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8169 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8170 CFLAGS="$SAVE_CFLAGS"
8173 sparc*-*solaris*)
8174 # Find out which ABI we are using.
8175 echo 'int i;' > conftest.$ac_ext
8176 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8177 (eval $ac_compile) 2>&5
8178 ac_status=$?
8179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8180 test $ac_status = 0; }; then
8181 case `/usr/bin/file conftest.o` in
8182 *64-bit*)
8183 case $lt_cv_prog_gnu_ld in
8184 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8186 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8187 LD="${LD-ld} -64"
8190 esac
8192 esac
8194 rm -rf conftest*
8196 esac
8198 need_locks="$enable_libtool_lock"
8201 case $host_os in
8202 rhapsody* | darwin*)
8203 if test -n "$ac_tool_prefix"; then
8204 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8205 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8207 $as_echo_n "checking for $ac_word... " >&6; }
8208 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8209 $as_echo_n "(cached) " >&6
8210 else
8211 if test -n "$DSYMUTIL"; then
8212 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8213 else
8214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8215 for as_dir in $PATH
8217 IFS=$as_save_IFS
8218 test -z "$as_dir" && as_dir=.
8219 for ac_exec_ext in '' $ac_executable_extensions; do
8220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8221 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8223 break 2
8225 done
8226 done
8227 IFS=$as_save_IFS
8231 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8232 if test -n "$DSYMUTIL"; then
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8234 $as_echo "$DSYMUTIL" >&6; }
8235 else
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8237 $as_echo "no" >&6; }
8242 if test -z "$ac_cv_prog_DSYMUTIL"; then
8243 ac_ct_DSYMUTIL=$DSYMUTIL
8244 # Extract the first word of "dsymutil", so it can be a program name with args.
8245 set dummy dsymutil; ac_word=$2
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8247 $as_echo_n "checking for $ac_word... " >&6; }
8248 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8249 $as_echo_n "(cached) " >&6
8250 else
8251 if test -n "$ac_ct_DSYMUTIL"; then
8252 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8253 else
8254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8255 for as_dir in $PATH
8257 IFS=$as_save_IFS
8258 test -z "$as_dir" && as_dir=.
8259 for ac_exec_ext in '' $ac_executable_extensions; do
8260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8261 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8263 break 2
8265 done
8266 done
8267 IFS=$as_save_IFS
8271 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8272 if test -n "$ac_ct_DSYMUTIL"; then
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8274 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8275 else
8276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8277 $as_echo "no" >&6; }
8280 if test "x$ac_ct_DSYMUTIL" = x; then
8281 DSYMUTIL=":"
8282 else
8283 case $cross_compiling:$ac_tool_warned in
8284 yes:)
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8286 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8287 ac_tool_warned=yes ;;
8288 esac
8289 DSYMUTIL=$ac_ct_DSYMUTIL
8291 else
8292 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8295 if test -n "$ac_tool_prefix"; then
8296 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8297 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8299 $as_echo_n "checking for $ac_word... " >&6; }
8300 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8301 $as_echo_n "(cached) " >&6
8302 else
8303 if test -n "$NMEDIT"; then
8304 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8305 else
8306 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8307 for as_dir in $PATH
8309 IFS=$as_save_IFS
8310 test -z "$as_dir" && as_dir=.
8311 for ac_exec_ext in '' $ac_executable_extensions; do
8312 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8313 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8314 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8315 break 2
8317 done
8318 done
8319 IFS=$as_save_IFS
8323 NMEDIT=$ac_cv_prog_NMEDIT
8324 if test -n "$NMEDIT"; then
8325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8326 $as_echo "$NMEDIT" >&6; }
8327 else
8328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8329 $as_echo "no" >&6; }
8334 if test -z "$ac_cv_prog_NMEDIT"; then
8335 ac_ct_NMEDIT=$NMEDIT
8336 # Extract the first word of "nmedit", so it can be a program name with args.
8337 set dummy nmedit; ac_word=$2
8338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8339 $as_echo_n "checking for $ac_word... " >&6; }
8340 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8341 $as_echo_n "(cached) " >&6
8342 else
8343 if test -n "$ac_ct_NMEDIT"; then
8344 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8345 else
8346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8347 for as_dir in $PATH
8349 IFS=$as_save_IFS
8350 test -z "$as_dir" && as_dir=.
8351 for ac_exec_ext in '' $ac_executable_extensions; do
8352 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8353 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8354 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8355 break 2
8357 done
8358 done
8359 IFS=$as_save_IFS
8363 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8364 if test -n "$ac_ct_NMEDIT"; then
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8366 $as_echo "$ac_ct_NMEDIT" >&6; }
8367 else
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8369 $as_echo "no" >&6; }
8372 if test "x$ac_ct_NMEDIT" = x; then
8373 NMEDIT=":"
8374 else
8375 case $cross_compiling:$ac_tool_warned in
8376 yes:)
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8378 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8379 ac_tool_warned=yes ;;
8380 esac
8381 NMEDIT=$ac_ct_NMEDIT
8383 else
8384 NMEDIT="$ac_cv_prog_NMEDIT"
8387 if test -n "$ac_tool_prefix"; then
8388 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8389 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8391 $as_echo_n "checking for $ac_word... " >&6; }
8392 if test "${ac_cv_prog_LIPO+set}" = set; then :
8393 $as_echo_n "(cached) " >&6
8394 else
8395 if test -n "$LIPO"; then
8396 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8397 else
8398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8399 for as_dir in $PATH
8401 IFS=$as_save_IFS
8402 test -z "$as_dir" && as_dir=.
8403 for ac_exec_ext in '' $ac_executable_extensions; do
8404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8405 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8406 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8407 break 2
8409 done
8410 done
8411 IFS=$as_save_IFS
8415 LIPO=$ac_cv_prog_LIPO
8416 if test -n "$LIPO"; then
8417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8418 $as_echo "$LIPO" >&6; }
8419 else
8420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8421 $as_echo "no" >&6; }
8426 if test -z "$ac_cv_prog_LIPO"; then
8427 ac_ct_LIPO=$LIPO
8428 # Extract the first word of "lipo", so it can be a program name with args.
8429 set dummy lipo; ac_word=$2
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8431 $as_echo_n "checking for $ac_word... " >&6; }
8432 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8433 $as_echo_n "(cached) " >&6
8434 else
8435 if test -n "$ac_ct_LIPO"; then
8436 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8437 else
8438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8439 for as_dir in $PATH
8441 IFS=$as_save_IFS
8442 test -z "$as_dir" && as_dir=.
8443 for ac_exec_ext in '' $ac_executable_extensions; do
8444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8445 ac_cv_prog_ac_ct_LIPO="lipo"
8446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8447 break 2
8449 done
8450 done
8451 IFS=$as_save_IFS
8455 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8456 if test -n "$ac_ct_LIPO"; then
8457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8458 $as_echo "$ac_ct_LIPO" >&6; }
8459 else
8460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8461 $as_echo "no" >&6; }
8464 if test "x$ac_ct_LIPO" = x; then
8465 LIPO=":"
8466 else
8467 case $cross_compiling:$ac_tool_warned in
8468 yes:)
8469 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8470 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8471 ac_tool_warned=yes ;;
8472 esac
8473 LIPO=$ac_ct_LIPO
8475 else
8476 LIPO="$ac_cv_prog_LIPO"
8479 if test -n "$ac_tool_prefix"; then
8480 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8481 set dummy ${ac_tool_prefix}otool; ac_word=$2
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8483 $as_echo_n "checking for $ac_word... " >&6; }
8484 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8485 $as_echo_n "(cached) " >&6
8486 else
8487 if test -n "$OTOOL"; then
8488 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8489 else
8490 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8491 for as_dir in $PATH
8493 IFS=$as_save_IFS
8494 test -z "$as_dir" && as_dir=.
8495 for ac_exec_ext in '' $ac_executable_extensions; do
8496 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8497 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8498 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8499 break 2
8501 done
8502 done
8503 IFS=$as_save_IFS
8507 OTOOL=$ac_cv_prog_OTOOL
8508 if test -n "$OTOOL"; then
8509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8510 $as_echo "$OTOOL" >&6; }
8511 else
8512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8513 $as_echo "no" >&6; }
8518 if test -z "$ac_cv_prog_OTOOL"; then
8519 ac_ct_OTOOL=$OTOOL
8520 # Extract the first word of "otool", so it can be a program name with args.
8521 set dummy otool; ac_word=$2
8522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8523 $as_echo_n "checking for $ac_word... " >&6; }
8524 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8525 $as_echo_n "(cached) " >&6
8526 else
8527 if test -n "$ac_ct_OTOOL"; then
8528 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8529 else
8530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8531 for as_dir in $PATH
8533 IFS=$as_save_IFS
8534 test -z "$as_dir" && as_dir=.
8535 for ac_exec_ext in '' $ac_executable_extensions; do
8536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8537 ac_cv_prog_ac_ct_OTOOL="otool"
8538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8539 break 2
8541 done
8542 done
8543 IFS=$as_save_IFS
8547 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8548 if test -n "$ac_ct_OTOOL"; then
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8550 $as_echo "$ac_ct_OTOOL" >&6; }
8551 else
8552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8553 $as_echo "no" >&6; }
8556 if test "x$ac_ct_OTOOL" = x; then
8557 OTOOL=":"
8558 else
8559 case $cross_compiling:$ac_tool_warned in
8560 yes:)
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8562 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8563 ac_tool_warned=yes ;;
8564 esac
8565 OTOOL=$ac_ct_OTOOL
8567 else
8568 OTOOL="$ac_cv_prog_OTOOL"
8571 if test -n "$ac_tool_prefix"; then
8572 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8573 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8575 $as_echo_n "checking for $ac_word... " >&6; }
8576 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8577 $as_echo_n "(cached) " >&6
8578 else
8579 if test -n "$OTOOL64"; then
8580 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8581 else
8582 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8583 for as_dir in $PATH
8585 IFS=$as_save_IFS
8586 test -z "$as_dir" && as_dir=.
8587 for ac_exec_ext in '' $ac_executable_extensions; do
8588 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8589 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8590 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8591 break 2
8593 done
8594 done
8595 IFS=$as_save_IFS
8599 OTOOL64=$ac_cv_prog_OTOOL64
8600 if test -n "$OTOOL64"; then
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8602 $as_echo "$OTOOL64" >&6; }
8603 else
8604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8605 $as_echo "no" >&6; }
8610 if test -z "$ac_cv_prog_OTOOL64"; then
8611 ac_ct_OTOOL64=$OTOOL64
8612 # Extract the first word of "otool64", so it can be a program name with args.
8613 set dummy otool64; ac_word=$2
8614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8615 $as_echo_n "checking for $ac_word... " >&6; }
8616 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8617 $as_echo_n "(cached) " >&6
8618 else
8619 if test -n "$ac_ct_OTOOL64"; then
8620 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8621 else
8622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8623 for as_dir in $PATH
8625 IFS=$as_save_IFS
8626 test -z "$as_dir" && as_dir=.
8627 for ac_exec_ext in '' $ac_executable_extensions; do
8628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8629 ac_cv_prog_ac_ct_OTOOL64="otool64"
8630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8631 break 2
8633 done
8634 done
8635 IFS=$as_save_IFS
8639 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8640 if test -n "$ac_ct_OTOOL64"; then
8641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8642 $as_echo "$ac_ct_OTOOL64" >&6; }
8643 else
8644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8645 $as_echo "no" >&6; }
8648 if test "x$ac_ct_OTOOL64" = x; then
8649 OTOOL64=":"
8650 else
8651 case $cross_compiling:$ac_tool_warned in
8652 yes:)
8653 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8654 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8655 ac_tool_warned=yes ;;
8656 esac
8657 OTOOL64=$ac_ct_OTOOL64
8659 else
8660 OTOOL64="$ac_cv_prog_OTOOL64"
8689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8690 $as_echo_n "checking for -single_module linker flag... " >&6; }
8691 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8692 $as_echo_n "(cached) " >&6
8693 else
8694 lt_cv_apple_cc_single_mod=no
8695 if test -z "${LT_MULTI_MODULE}"; then
8696 # By default we will add the -single_module flag. You can override
8697 # by either setting the environment variable LT_MULTI_MODULE
8698 # non-empty at configure time, or by adding -multi_module to the
8699 # link flags.
8700 rm -rf libconftest.dylib*
8701 echo "int foo(void){return 1;}" > conftest.c
8702 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8703 -dynamiclib -Wl,-single_module conftest.c" >&5
8704 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8705 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8706 _lt_result=$?
8707 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8708 lt_cv_apple_cc_single_mod=yes
8709 else
8710 cat conftest.err >&5
8712 rm -rf libconftest.dylib*
8713 rm -f conftest.*
8716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8717 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8719 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8720 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8721 $as_echo_n "(cached) " >&6
8722 else
8723 lt_cv_ld_exported_symbols_list=no
8724 save_LDFLAGS=$LDFLAGS
8725 echo "_main" > conftest.sym
8726 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8727 if test x$gcc_no_link = xyes; then
8728 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8731 /* end confdefs.h. */
8734 main ()
8738 return 0;
8740 _ACEOF
8741 if ac_fn_c_try_link "$LINENO"; then :
8742 lt_cv_ld_exported_symbols_list=yes
8743 else
8744 lt_cv_ld_exported_symbols_list=no
8746 rm -f core conftest.err conftest.$ac_objext \
8747 conftest$ac_exeext conftest.$ac_ext
8748 LDFLAGS="$save_LDFLAGS"
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8752 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8754 $as_echo_n "checking for -force_load linker flag... " >&6; }
8755 if test "${lt_cv_ld_force_load+set}" = set; then :
8756 $as_echo_n "(cached) " >&6
8757 else
8758 lt_cv_ld_force_load=no
8759 cat > conftest.c << _LT_EOF
8760 int forced_loaded() { return 2;}
8761 _LT_EOF
8762 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8763 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8764 echo "$AR cru libconftest.a conftest.o" >&5
8765 $AR cru libconftest.a conftest.o 2>&5
8766 cat > conftest.c << _LT_EOF
8767 int main() { return 0;}
8768 _LT_EOF
8769 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8770 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8771 _lt_result=$?
8772 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8773 lt_cv_ld_force_load=yes
8774 else
8775 cat conftest.err >&5
8777 rm -f conftest.err libconftest.a conftest conftest.c
8778 rm -rf conftest.dSYM
8781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8782 $as_echo "$lt_cv_ld_force_load" >&6; }
8783 case $host_os in
8784 rhapsody* | darwin1.[012])
8785 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8786 darwin1.*)
8787 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8788 darwin*) # darwin 5.x on
8789 # if running on 10.5 or later, the deployment target defaults
8790 # to the OS version, if on x86, and 10.4, the deployment
8791 # target defaults to 10.4. Don't you love it?
8792 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8793 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8794 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8795 10.[012]*)
8796 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8797 10.*)
8798 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8799 esac
8801 esac
8802 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8803 _lt_dar_single_mod='$single_module'
8805 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8806 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8807 else
8808 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8810 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8811 _lt_dsymutil='~$DSYMUTIL $lib || :'
8812 else
8813 _lt_dsymutil=
8816 esac
8818 for ac_header in dlfcn.h
8819 do :
8820 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8822 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8823 cat >>confdefs.h <<_ACEOF
8824 #define HAVE_DLFCN_H 1
8825 _ACEOF
8829 done
8835 # Set options
8840 enable_win32_dll=no
8843 # Check whether --enable-shared was given.
8844 if test "${enable_shared+set}" = set; then :
8845 enableval=$enable_shared; p=${PACKAGE-default}
8846 case $enableval in
8847 yes) enable_shared=yes ;;
8848 no) enable_shared=no ;;
8850 enable_shared=no
8851 # Look at the argument we got. We use all the common list separators.
8852 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8853 for pkg in $enableval; do
8854 IFS="$lt_save_ifs"
8855 if test "X$pkg" = "X$p"; then
8856 enable_shared=yes
8858 done
8859 IFS="$lt_save_ifs"
8861 esac
8862 else
8863 enable_shared=yes
8874 # Check whether --enable-static was given.
8875 if test "${enable_static+set}" = set; then :
8876 enableval=$enable_static; p=${PACKAGE-default}
8877 case $enableval in
8878 yes) enable_static=yes ;;
8879 no) enable_static=no ;;
8881 enable_static=no
8882 # Look at the argument we got. We use all the common list separators.
8883 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8884 for pkg in $enableval; do
8885 IFS="$lt_save_ifs"
8886 if test "X$pkg" = "X$p"; then
8887 enable_static=yes
8889 done
8890 IFS="$lt_save_ifs"
8892 esac
8893 else
8894 enable_static=yes
8906 # Check whether --with-pic was given.
8907 if test "${with_pic+set}" = set; then :
8908 withval=$with_pic; pic_mode="$withval"
8909 else
8910 pic_mode=default
8914 test -z "$pic_mode" && pic_mode=default
8922 # Check whether --enable-fast-install was given.
8923 if test "${enable_fast_install+set}" = set; then :
8924 enableval=$enable_fast_install; p=${PACKAGE-default}
8925 case $enableval in
8926 yes) enable_fast_install=yes ;;
8927 no) enable_fast_install=no ;;
8929 enable_fast_install=no
8930 # Look at the argument we got. We use all the common list separators.
8931 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8932 for pkg in $enableval; do
8933 IFS="$lt_save_ifs"
8934 if test "X$pkg" = "X$p"; then
8935 enable_fast_install=yes
8937 done
8938 IFS="$lt_save_ifs"
8940 esac
8941 else
8942 enable_fast_install=yes
8955 # This can be used to rebuild libtool when needed
8956 LIBTOOL_DEPS="$ltmain"
8958 # Always use our own libtool.
8959 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8986 test -z "$LN_S" && LN_S="ln -s"
9001 if test -n "${ZSH_VERSION+set}" ; then
9002 setopt NO_GLOB_SUBST
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9006 $as_echo_n "checking for objdir... " >&6; }
9007 if test "${lt_cv_objdir+set}" = set; then :
9008 $as_echo_n "(cached) " >&6
9009 else
9010 rm -f .libs 2>/dev/null
9011 mkdir .libs 2>/dev/null
9012 if test -d .libs; then
9013 lt_cv_objdir=.libs
9014 else
9015 # MS-DOS does not allow filenames that begin with a dot.
9016 lt_cv_objdir=_libs
9018 rmdir .libs 2>/dev/null
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9021 $as_echo "$lt_cv_objdir" >&6; }
9022 objdir=$lt_cv_objdir
9028 cat >>confdefs.h <<_ACEOF
9029 #define LT_OBJDIR "$lt_cv_objdir/"
9030 _ACEOF
9035 case $host_os in
9036 aix3*)
9037 # AIX sometimes has problems with the GCC collect2 program. For some
9038 # reason, if we set the COLLECT_NAMES environment variable, the problems
9039 # vanish in a puff of smoke.
9040 if test "X${COLLECT_NAMES+set}" != Xset; then
9041 COLLECT_NAMES=
9042 export COLLECT_NAMES
9045 esac
9047 # Global variables:
9048 ofile=libtool
9049 can_build_shared=yes
9051 # All known linkers require a `.a' archive for static linking (except MSVC,
9052 # which needs '.lib').
9053 libext=a
9055 with_gnu_ld="$lt_cv_prog_gnu_ld"
9057 old_CC="$CC"
9058 old_CFLAGS="$CFLAGS"
9060 # Set sane defaults for various variables
9061 test -z "$CC" && CC=cc
9062 test -z "$LTCC" && LTCC=$CC
9063 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9064 test -z "$LD" && LD=ld
9065 test -z "$ac_objext" && ac_objext=o
9067 for cc_temp in $compiler""; do
9068 case $cc_temp in
9069 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9070 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9071 \-*) ;;
9072 *) break;;
9073 esac
9074 done
9075 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9078 # Only perform the check for file, if the check method requires it
9079 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9080 case $deplibs_check_method in
9081 file_magic*)
9082 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9084 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9085 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9086 $as_echo_n "(cached) " >&6
9087 else
9088 case $MAGIC_CMD in
9089 [\\/*] | ?:[\\/]*)
9090 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9093 lt_save_MAGIC_CMD="$MAGIC_CMD"
9094 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9095 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9096 for ac_dir in $ac_dummy; do
9097 IFS="$lt_save_ifs"
9098 test -z "$ac_dir" && ac_dir=.
9099 if test -f $ac_dir/${ac_tool_prefix}file; then
9100 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9101 if test -n "$file_magic_test_file"; then
9102 case $deplibs_check_method in
9103 "file_magic "*)
9104 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9105 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9106 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9107 $EGREP "$file_magic_regex" > /dev/null; then
9109 else
9110 cat <<_LT_EOF 1>&2
9112 *** Warning: the command libtool uses to detect shared libraries,
9113 *** $file_magic_cmd, produces output that libtool cannot recognize.
9114 *** The result is that libtool may fail to recognize shared libraries
9115 *** as such. This will affect the creation of libtool libraries that
9116 *** depend on shared libraries, but programs linked with such libtool
9117 *** libraries will work regardless of this problem. Nevertheless, you
9118 *** may want to report the problem to your system manager and/or to
9119 *** bug-libtool@gnu.org
9121 _LT_EOF
9122 fi ;;
9123 esac
9125 break
9127 done
9128 IFS="$lt_save_ifs"
9129 MAGIC_CMD="$lt_save_MAGIC_CMD"
9131 esac
9134 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9135 if test -n "$MAGIC_CMD"; then
9136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9137 $as_echo "$MAGIC_CMD" >&6; }
9138 else
9139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9140 $as_echo "no" >&6; }
9147 if test -z "$lt_cv_path_MAGIC_CMD"; then
9148 if test -n "$ac_tool_prefix"; then
9149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9150 $as_echo_n "checking for file... " >&6; }
9151 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9152 $as_echo_n "(cached) " >&6
9153 else
9154 case $MAGIC_CMD in
9155 [\\/*] | ?:[\\/]*)
9156 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9159 lt_save_MAGIC_CMD="$MAGIC_CMD"
9160 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9161 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9162 for ac_dir in $ac_dummy; do
9163 IFS="$lt_save_ifs"
9164 test -z "$ac_dir" && ac_dir=.
9165 if test -f $ac_dir/file; then
9166 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9167 if test -n "$file_magic_test_file"; then
9168 case $deplibs_check_method in
9169 "file_magic "*)
9170 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9171 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9172 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9173 $EGREP "$file_magic_regex" > /dev/null; then
9175 else
9176 cat <<_LT_EOF 1>&2
9178 *** Warning: the command libtool uses to detect shared libraries,
9179 *** $file_magic_cmd, produces output that libtool cannot recognize.
9180 *** The result is that libtool may fail to recognize shared libraries
9181 *** as such. This will affect the creation of libtool libraries that
9182 *** depend on shared libraries, but programs linked with such libtool
9183 *** libraries will work regardless of this problem. Nevertheless, you
9184 *** may want to report the problem to your system manager and/or to
9185 *** bug-libtool@gnu.org
9187 _LT_EOF
9188 fi ;;
9189 esac
9191 break
9193 done
9194 IFS="$lt_save_ifs"
9195 MAGIC_CMD="$lt_save_MAGIC_CMD"
9197 esac
9200 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9201 if test -n "$MAGIC_CMD"; then
9202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9203 $as_echo "$MAGIC_CMD" >&6; }
9204 else
9205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9206 $as_echo "no" >&6; }
9210 else
9211 MAGIC_CMD=:
9217 esac
9219 # Use C for the default configuration in the libtool script
9221 lt_save_CC="$CC"
9222 ac_ext=c
9223 ac_cpp='$CPP $CPPFLAGS'
9224 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9225 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9226 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9229 # Source file extension for C test sources.
9230 ac_ext=c
9232 # Object file extension for compiled C test sources.
9233 objext=o
9234 objext=$objext
9236 # Code to be used in simple compile tests
9237 lt_simple_compile_test_code="int some_variable = 0;"
9239 # Code to be used in simple link tests
9240 lt_simple_link_test_code='int main(){return(0);}'
9248 # If no C compiler was specified, use CC.
9249 LTCC=${LTCC-"$CC"}
9251 # If no C compiler flags were specified, use CFLAGS.
9252 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9254 # Allow CC to be a program name with arguments.
9255 compiler=$CC
9257 # Save the default compiler, since it gets overwritten when the other
9258 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9259 compiler_DEFAULT=$CC
9261 # save warnings/boilerplate of simple test code
9262 ac_outfile=conftest.$ac_objext
9263 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9264 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9265 _lt_compiler_boilerplate=`cat conftest.err`
9266 $RM conftest*
9268 ac_outfile=conftest.$ac_objext
9269 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9270 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9271 _lt_linker_boilerplate=`cat conftest.err`
9272 $RM -r conftest*
9275 ## CAVEAT EMPTOR:
9276 ## There is no encapsulation within the following macros, do not change
9277 ## the running order or otherwise move them around unless you know exactly
9278 ## what you are doing...
9279 if test -n "$compiler"; then
9281 lt_prog_compiler_no_builtin_flag=
9283 if test "$GCC" = yes; then
9284 case $cc_basename in
9285 nvcc*)
9286 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9288 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9289 esac
9291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9292 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9293 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9294 $as_echo_n "(cached) " >&6
9295 else
9296 lt_cv_prog_compiler_rtti_exceptions=no
9297 ac_outfile=conftest.$ac_objext
9298 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9299 lt_compiler_flag="-fno-rtti -fno-exceptions"
9300 # Insert the option either (1) after the last *FLAGS variable, or
9301 # (2) before a word containing "conftest.", or (3) at the end.
9302 # Note that $ac_compile itself does not contain backslashes and begins
9303 # with a dollar sign (not a hyphen), so the echo should work correctly.
9304 # The option is referenced via a variable to avoid confusing sed.
9305 lt_compile=`echo "$ac_compile" | $SED \
9306 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9307 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9308 -e 's:$: $lt_compiler_flag:'`
9309 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9310 (eval "$lt_compile" 2>conftest.err)
9311 ac_status=$?
9312 cat conftest.err >&5
9313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9314 if (exit $ac_status) && test -s "$ac_outfile"; then
9315 # The compiler can only warn and ignore the option if not recognized
9316 # So say no if there are warnings other than the usual output.
9317 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9318 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9319 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9320 lt_cv_prog_compiler_rtti_exceptions=yes
9323 $RM conftest*
9326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9327 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9329 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9330 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9331 else
9342 lt_prog_compiler_wl=
9343 lt_prog_compiler_pic=
9344 lt_prog_compiler_static=
9346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9347 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9349 if test "$GCC" = yes; then
9350 lt_prog_compiler_wl='-Wl,'
9351 lt_prog_compiler_static='-static'
9353 case $host_os in
9354 aix*)
9355 # All AIX code is PIC.
9356 if test "$host_cpu" = ia64; then
9357 # AIX 5 now supports IA64 processor
9358 lt_prog_compiler_static='-Bstatic'
9360 lt_prog_compiler_pic='-fPIC'
9363 amigaos*)
9364 case $host_cpu in
9365 powerpc)
9366 # see comment about AmigaOS4 .so support
9367 lt_prog_compiler_pic='-fPIC'
9369 m68k)
9370 # FIXME: we need at least 68020 code to build shared libraries, but
9371 # adding the `-m68020' flag to GCC prevents building anything better,
9372 # like `-m68040'.
9373 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9375 esac
9378 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9379 # PIC is the default for these OSes.
9382 mingw* | cygwin* | pw32* | os2* | cegcc*)
9383 # This hack is so that the source file can tell whether it is being
9384 # built for inclusion in a dll (and should export symbols for example).
9385 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9386 # (--disable-auto-import) libraries
9387 lt_prog_compiler_pic='-DDLL_EXPORT'
9390 darwin* | rhapsody*)
9391 # PIC is the default on this platform
9392 # Common symbols not allowed in MH_DYLIB files
9393 lt_prog_compiler_pic='-fno-common'
9396 haiku*)
9397 # PIC is the default for Haiku.
9398 # The "-static" flag exists, but is broken.
9399 lt_prog_compiler_static=
9402 hpux*)
9403 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9404 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9405 # sets the default TLS model and affects inlining.
9406 case $host_cpu in
9407 hppa*64*)
9408 # +Z the default
9411 lt_prog_compiler_pic='-fPIC'
9413 esac
9416 interix[3-9]*)
9417 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9418 # Instead, we relocate shared libraries at runtime.
9421 msdosdjgpp*)
9422 # Just because we use GCC doesn't mean we suddenly get shared libraries
9423 # on systems that don't support them.
9424 lt_prog_compiler_can_build_shared=no
9425 enable_shared=no
9428 *nto* | *qnx*)
9429 # QNX uses GNU C++, but need to define -shared option too, otherwise
9430 # it will coredump.
9431 lt_prog_compiler_pic='-fPIC -shared'
9434 sysv4*MP*)
9435 if test -d /usr/nec; then
9436 lt_prog_compiler_pic=-Kconform_pic
9441 lt_prog_compiler_pic='-fPIC'
9443 esac
9445 case $cc_basename in
9446 nvcc*) # Cuda Compiler Driver 2.2
9447 lt_prog_compiler_wl='-Xlinker '
9448 lt_prog_compiler_pic='-Xcompiler -fPIC'
9450 esac
9451 else
9452 # PORTME Check for flag to pass linker flags through the system compiler.
9453 case $host_os in
9454 aix*)
9455 lt_prog_compiler_wl='-Wl,'
9456 if test "$host_cpu" = ia64; then
9457 # AIX 5 now supports IA64 processor
9458 lt_prog_compiler_static='-Bstatic'
9459 else
9460 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9464 mingw* | cygwin* | pw32* | os2* | cegcc*)
9465 # This hack is so that the source file can tell whether it is being
9466 # built for inclusion in a dll (and should export symbols for example).
9467 lt_prog_compiler_pic='-DDLL_EXPORT'
9470 hpux9* | hpux10* | hpux11*)
9471 lt_prog_compiler_wl='-Wl,'
9472 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9473 # not for PA HP-UX.
9474 case $host_cpu in
9475 hppa*64*|ia64*)
9476 # +Z the default
9479 lt_prog_compiler_pic='+Z'
9481 esac
9482 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9483 lt_prog_compiler_static='${wl}-a ${wl}archive'
9486 irix5* | irix6* | nonstopux*)
9487 lt_prog_compiler_wl='-Wl,'
9488 # PIC (with -KPIC) is the default.
9489 lt_prog_compiler_static='-non_shared'
9492 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9493 case $cc_basename in
9494 # old Intel for x86_64 which still supported -KPIC.
9495 ecc*)
9496 lt_prog_compiler_wl='-Wl,'
9497 lt_prog_compiler_pic='-KPIC'
9498 lt_prog_compiler_static='-static'
9500 # icc used to be incompatible with GCC.
9501 # ICC 10 doesn't accept -KPIC any more.
9502 icc* | ifort*)
9503 lt_prog_compiler_wl='-Wl,'
9504 lt_prog_compiler_pic='-fPIC'
9505 lt_prog_compiler_static='-static'
9507 # Lahey Fortran 8.1.
9508 lf95*)
9509 lt_prog_compiler_wl='-Wl,'
9510 lt_prog_compiler_pic='--shared'
9511 lt_prog_compiler_static='--static'
9513 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9514 # Portland Group compilers (*not* the Pentium gcc compiler,
9515 # which looks to be a dead project)
9516 lt_prog_compiler_wl='-Wl,'
9517 lt_prog_compiler_pic='-fpic'
9518 lt_prog_compiler_static='-Bstatic'
9520 ccc*)
9521 lt_prog_compiler_wl='-Wl,'
9522 # All Alpha code is PIC.
9523 lt_prog_compiler_static='-non_shared'
9525 xl* | bgxl* | bgf* | mpixl*)
9526 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9527 lt_prog_compiler_wl='-Wl,'
9528 lt_prog_compiler_pic='-qpic'
9529 lt_prog_compiler_static='-qstaticlink'
9532 case `$CC -V 2>&1 | sed 5q` in
9533 *Sun\ F* | *Sun*Fortran*)
9534 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9535 lt_prog_compiler_pic='-KPIC'
9536 lt_prog_compiler_static='-Bstatic'
9537 lt_prog_compiler_wl=''
9539 *Sun\ C*)
9540 # Sun C 5.9
9541 lt_prog_compiler_pic='-KPIC'
9542 lt_prog_compiler_static='-Bstatic'
9543 lt_prog_compiler_wl='-Wl,'
9545 esac
9547 esac
9550 newsos6)
9551 lt_prog_compiler_pic='-KPIC'
9552 lt_prog_compiler_static='-Bstatic'
9555 *nto* | *qnx*)
9556 # QNX uses GNU C++, but need to define -shared option too, otherwise
9557 # it will coredump.
9558 lt_prog_compiler_pic='-fPIC -shared'
9561 osf3* | osf4* | osf5*)
9562 lt_prog_compiler_wl='-Wl,'
9563 # All OSF/1 code is PIC.
9564 lt_prog_compiler_static='-non_shared'
9567 rdos*)
9568 lt_prog_compiler_static='-non_shared'
9571 solaris*)
9572 lt_prog_compiler_pic='-KPIC'
9573 lt_prog_compiler_static='-Bstatic'
9574 case $cc_basename in
9575 f77* | f90* | f95*)
9576 lt_prog_compiler_wl='-Qoption ld ';;
9578 lt_prog_compiler_wl='-Wl,';;
9579 esac
9582 sunos4*)
9583 lt_prog_compiler_wl='-Qoption ld '
9584 lt_prog_compiler_pic='-PIC'
9585 lt_prog_compiler_static='-Bstatic'
9588 sysv4 | sysv4.2uw2* | sysv4.3*)
9589 lt_prog_compiler_wl='-Wl,'
9590 lt_prog_compiler_pic='-KPIC'
9591 lt_prog_compiler_static='-Bstatic'
9594 sysv4*MP*)
9595 if test -d /usr/nec ;then
9596 lt_prog_compiler_pic='-Kconform_pic'
9597 lt_prog_compiler_static='-Bstatic'
9601 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9602 lt_prog_compiler_wl='-Wl,'
9603 lt_prog_compiler_pic='-KPIC'
9604 lt_prog_compiler_static='-Bstatic'
9607 unicos*)
9608 lt_prog_compiler_wl='-Wl,'
9609 lt_prog_compiler_can_build_shared=no
9612 uts4*)
9613 lt_prog_compiler_pic='-pic'
9614 lt_prog_compiler_static='-Bstatic'
9618 lt_prog_compiler_can_build_shared=no
9620 esac
9623 case $host_os in
9624 # For platforms which do not support PIC, -DPIC is meaningless:
9625 *djgpp*)
9626 lt_prog_compiler_pic=
9629 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9631 esac
9632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9633 $as_echo "$lt_prog_compiler_pic" >&6; }
9641 # Check to make sure the PIC flag actually works.
9643 if test -n "$lt_prog_compiler_pic"; then
9644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9645 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9646 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9647 $as_echo_n "(cached) " >&6
9648 else
9649 lt_cv_prog_compiler_pic_works=no
9650 ac_outfile=conftest.$ac_objext
9651 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9652 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9653 # Insert the option either (1) after the last *FLAGS variable, or
9654 # (2) before a word containing "conftest.", or (3) at the end.
9655 # Note that $ac_compile itself does not contain backslashes and begins
9656 # with a dollar sign (not a hyphen), so the echo should work correctly.
9657 # The option is referenced via a variable to avoid confusing sed.
9658 lt_compile=`echo "$ac_compile" | $SED \
9659 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9660 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9661 -e 's:$: $lt_compiler_flag:'`
9662 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9663 (eval "$lt_compile" 2>conftest.err)
9664 ac_status=$?
9665 cat conftest.err >&5
9666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9667 if (exit $ac_status) && test -s "$ac_outfile"; then
9668 # The compiler can only warn and ignore the option if not recognized
9669 # So say no if there are warnings other than the usual output.
9670 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9671 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9672 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9673 lt_cv_prog_compiler_pic_works=yes
9676 $RM conftest*
9679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9680 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9682 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9683 case $lt_prog_compiler_pic in
9684 "" | " "*) ;;
9685 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9686 esac
9687 else
9688 lt_prog_compiler_pic=
9689 lt_prog_compiler_can_build_shared=no
9700 # Check to make sure the static flag actually works.
9702 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9704 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9705 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9706 $as_echo_n "(cached) " >&6
9707 else
9708 lt_cv_prog_compiler_static_works=no
9709 save_LDFLAGS="$LDFLAGS"
9710 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9711 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9712 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9713 # The linker can only warn and ignore the option if not recognized
9714 # So say no if there are warnings
9715 if test -s conftest.err; then
9716 # Append any errors to the config.log.
9717 cat conftest.err 1>&5
9718 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9719 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9720 if diff conftest.exp conftest.er2 >/dev/null; then
9721 lt_cv_prog_compiler_static_works=yes
9723 else
9724 lt_cv_prog_compiler_static_works=yes
9727 $RM -r conftest*
9728 LDFLAGS="$save_LDFLAGS"
9731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9732 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9734 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9736 else
9737 lt_prog_compiler_static=
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9747 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9748 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9749 $as_echo_n "(cached) " >&6
9750 else
9751 lt_cv_prog_compiler_c_o=no
9752 $RM -r conftest 2>/dev/null
9753 mkdir conftest
9754 cd conftest
9755 mkdir out
9756 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9758 lt_compiler_flag="-o out/conftest2.$ac_objext"
9759 # Insert the option either (1) after the last *FLAGS variable, or
9760 # (2) before a word containing "conftest.", or (3) at the end.
9761 # Note that $ac_compile itself does not contain backslashes and begins
9762 # with a dollar sign (not a hyphen), so the echo should work correctly.
9763 lt_compile=`echo "$ac_compile" | $SED \
9764 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9765 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9766 -e 's:$: $lt_compiler_flag:'`
9767 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9768 (eval "$lt_compile" 2>out/conftest.err)
9769 ac_status=$?
9770 cat out/conftest.err >&5
9771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9772 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9773 then
9774 # The compiler can only warn and ignore the option if not recognized
9775 # So say no if there are warnings
9776 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9777 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9778 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9779 lt_cv_prog_compiler_c_o=yes
9782 chmod u+w . 2>&5
9783 $RM conftest*
9784 # SGI C++ compiler will create directory out/ii_files/ for
9785 # template instantiation
9786 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9787 $RM out/* && rmdir out
9788 cd ..
9789 $RM -r conftest
9790 $RM conftest*
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9794 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9802 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9803 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9804 $as_echo_n "(cached) " >&6
9805 else
9806 lt_cv_prog_compiler_c_o=no
9807 $RM -r conftest 2>/dev/null
9808 mkdir conftest
9809 cd conftest
9810 mkdir out
9811 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9813 lt_compiler_flag="-o out/conftest2.$ac_objext"
9814 # Insert the option either (1) after the last *FLAGS variable, or
9815 # (2) before a word containing "conftest.", or (3) at the end.
9816 # Note that $ac_compile itself does not contain backslashes and begins
9817 # with a dollar sign (not a hyphen), so the echo should work correctly.
9818 lt_compile=`echo "$ac_compile" | $SED \
9819 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9820 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9821 -e 's:$: $lt_compiler_flag:'`
9822 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9823 (eval "$lt_compile" 2>out/conftest.err)
9824 ac_status=$?
9825 cat out/conftest.err >&5
9826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9827 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9828 then
9829 # The compiler can only warn and ignore the option if not recognized
9830 # So say no if there are warnings
9831 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9832 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9833 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9834 lt_cv_prog_compiler_c_o=yes
9837 chmod u+w . 2>&5
9838 $RM conftest*
9839 # SGI C++ compiler will create directory out/ii_files/ for
9840 # template instantiation
9841 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9842 $RM out/* && rmdir out
9843 cd ..
9844 $RM -r conftest
9845 $RM conftest*
9848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9849 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9854 hard_links="nottested"
9855 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9856 # do not overwrite the value of need_locks provided by the user
9857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9858 $as_echo_n "checking if we can lock with hard links... " >&6; }
9859 hard_links=yes
9860 $RM conftest*
9861 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9862 touch conftest.a
9863 ln conftest.a conftest.b 2>&5 || hard_links=no
9864 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9866 $as_echo "$hard_links" >&6; }
9867 if test "$hard_links" = no; then
9868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9869 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9870 need_locks=warn
9872 else
9873 need_locks=no
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9882 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9884 runpath_var=
9885 allow_undefined_flag=
9886 always_export_symbols=no
9887 archive_cmds=
9888 archive_expsym_cmds=
9889 compiler_needs_object=no
9890 enable_shared_with_static_runtimes=no
9891 export_dynamic_flag_spec=
9892 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9893 hardcode_automatic=no
9894 hardcode_direct=no
9895 hardcode_direct_absolute=no
9896 hardcode_libdir_flag_spec=
9897 hardcode_libdir_flag_spec_ld=
9898 hardcode_libdir_separator=
9899 hardcode_minus_L=no
9900 hardcode_shlibpath_var=unsupported
9901 inherit_rpath=no
9902 link_all_deplibs=unknown
9903 module_cmds=
9904 module_expsym_cmds=
9905 old_archive_from_new_cmds=
9906 old_archive_from_expsyms_cmds=
9907 thread_safe_flag_spec=
9908 whole_archive_flag_spec=
9909 # include_expsyms should be a list of space-separated symbols to be *always*
9910 # included in the symbol list
9911 include_expsyms=
9912 # exclude_expsyms can be an extended regexp of symbols to exclude
9913 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9914 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9915 # as well as any symbol that contains `d'.
9916 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9917 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9918 # platforms (ab)use it in PIC code, but their linkers get confused if
9919 # the symbol is explicitly referenced. Since portable code cannot
9920 # rely on this symbol name, it's probably fine to never include it in
9921 # preloaded symbol tables.
9922 # Exclude shared library initialization/finalization symbols.
9923 extract_expsyms_cmds=
9925 case $host_os in
9926 cygwin* | mingw* | pw32* | cegcc*)
9927 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9928 # When not using gcc, we currently assume that we are using
9929 # Microsoft Visual C++.
9930 if test "$GCC" != yes; then
9931 with_gnu_ld=no
9934 interix*)
9935 # we just hope/assume this is gcc and not c89 (= MSVC++)
9936 with_gnu_ld=yes
9938 openbsd*)
9939 with_gnu_ld=no
9941 esac
9943 ld_shlibs=yes
9945 # On some targets, GNU ld is compatible enough with the native linker
9946 # that we're better off using the native interface for both.
9947 lt_use_gnu_ld_interface=no
9948 if test "$with_gnu_ld" = yes; then
9949 case $host_os in
9950 aix*)
9951 # The AIX port of GNU ld has always aspired to compatibility
9952 # with the native linker. However, as the warning in the GNU ld
9953 # block says, versions before 2.19.5* couldn't really create working
9954 # shared libraries, regardless of the interface used.
9955 case `$LD -v 2>&1` in
9956 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9957 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9958 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9960 lt_use_gnu_ld_interface=yes
9962 esac
9965 lt_use_gnu_ld_interface=yes
9967 esac
9970 if test "$lt_use_gnu_ld_interface" = yes; then
9971 # If archive_cmds runs LD, not CC, wlarc should be empty
9972 wlarc='${wl}'
9974 # Set some defaults for GNU ld with shared library support. These
9975 # are reset later if shared libraries are not supported. Putting them
9976 # here allows them to be overridden if necessary.
9977 runpath_var=LD_RUN_PATH
9978 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9979 export_dynamic_flag_spec='${wl}--export-dynamic'
9980 # ancient GNU ld didn't support --whole-archive et. al.
9981 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9982 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9983 else
9984 whole_archive_flag_spec=
9986 supports_anon_versioning=no
9987 case `$LD -v 2>&1` in
9988 *GNU\ gold*) supports_anon_versioning=yes ;;
9989 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9990 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9991 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9992 *\ 2.11.*) ;; # other 2.11 versions
9993 *) supports_anon_versioning=yes ;;
9994 esac
9996 # See if GNU ld supports shared libraries.
9997 case $host_os in
9998 aix[3-9]*)
9999 # On AIX/PPC, the GNU linker is very broken
10000 if test "$host_cpu" != ia64; then
10001 ld_shlibs=no
10002 cat <<_LT_EOF 1>&2
10004 *** Warning: the GNU linker, at least up to release 2.19, is reported
10005 *** to be unable to reliably create shared libraries on AIX.
10006 *** Therefore, libtool is disabling shared libraries support. If you
10007 *** really care for shared libraries, you may want to install binutils
10008 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10009 *** You will then need to restart the configuration process.
10011 _LT_EOF
10015 amigaos*)
10016 case $host_cpu in
10017 powerpc)
10018 # see comment about AmigaOS4 .so support
10019 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10020 archive_expsym_cmds=''
10022 m68k)
10023 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)'
10024 hardcode_libdir_flag_spec='-L$libdir'
10025 hardcode_minus_L=yes
10027 esac
10030 beos*)
10031 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10032 allow_undefined_flag=unsupported
10033 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10034 # support --undefined. This deserves some investigation. FIXME
10035 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10036 else
10037 ld_shlibs=no
10041 cygwin* | mingw* | pw32* | cegcc*)
10042 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10043 # as there is no search path for DLLs.
10044 hardcode_libdir_flag_spec='-L$libdir'
10045 export_dynamic_flag_spec='${wl}--export-all-symbols'
10046 allow_undefined_flag=unsupported
10047 always_export_symbols=no
10048 enable_shared_with_static_runtimes=yes
10049 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10051 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10052 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10053 # If the export-symbols file already is a .def file (1st line
10054 # is EXPORTS), use it as is; otherwise, prepend...
10055 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10056 cp $export_symbols $output_objdir/$soname.def;
10057 else
10058 echo EXPORTS > $output_objdir/$soname.def;
10059 cat $export_symbols >> $output_objdir/$soname.def;
10061 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10062 else
10063 ld_shlibs=no
10067 haiku*)
10068 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10069 link_all_deplibs=yes
10072 interix[3-9]*)
10073 hardcode_direct=no
10074 hardcode_shlibpath_var=no
10075 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10076 export_dynamic_flag_spec='${wl}-E'
10077 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10078 # Instead, shared libraries are loaded at an image base (0x10000000 by
10079 # default) and relocated if they conflict, which is a slow very memory
10080 # consuming and fragmenting process. To avoid this, we pick a random,
10081 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10082 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10083 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10084 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'
10087 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10088 tmp_diet=no
10089 if test "$host_os" = linux-dietlibc; then
10090 case $cc_basename in
10091 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10092 esac
10094 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10095 && test "$tmp_diet" = no
10096 then
10097 tmp_addflag=
10098 tmp_sharedflag='-shared'
10099 case $cc_basename,$host_cpu in
10100 pgcc*) # Portland Group C compiler
10101 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'
10102 tmp_addflag=' $pic_flag'
10104 pgf77* | pgf90* | pgf95* | pgfortran*)
10105 # Portland Group f77 and f90 compilers
10106 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'
10107 tmp_addflag=' $pic_flag -Mnomain' ;;
10108 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10109 tmp_addflag=' -i_dynamic' ;;
10110 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10111 tmp_addflag=' -i_dynamic -nofor_main' ;;
10112 ifc* | ifort*) # Intel Fortran compiler
10113 tmp_addflag=' -nofor_main' ;;
10114 lf95*) # Lahey Fortran 8.1
10115 whole_archive_flag_spec=
10116 tmp_sharedflag='--shared' ;;
10117 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10118 tmp_sharedflag='-qmkshrobj'
10119 tmp_addflag= ;;
10120 nvcc*) # Cuda Compiler Driver 2.2
10121 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'
10122 compiler_needs_object=yes
10124 esac
10125 case `$CC -V 2>&1 | sed 5q` in
10126 *Sun\ C*) # Sun C 5.9
10127 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'
10128 compiler_needs_object=yes
10129 tmp_sharedflag='-G' ;;
10130 *Sun\ F*) # Sun Fortran 8.3
10131 tmp_sharedflag='-G' ;;
10132 esac
10133 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10135 if test "x$supports_anon_versioning" = xyes; then
10136 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10137 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10138 echo "local: *; };" >> $output_objdir/$libname.ver~
10139 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10142 case $cc_basename in
10143 xlf* | bgf* | bgxlf* | mpixlf*)
10144 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10145 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10146 hardcode_libdir_flag_spec=
10147 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10148 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10149 if test "x$supports_anon_versioning" = xyes; then
10150 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10151 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10152 echo "local: *; };" >> $output_objdir/$libname.ver~
10153 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10156 esac
10157 else
10158 ld_shlibs=no
10162 netbsd*)
10163 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10164 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10165 wlarc=
10166 else
10167 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10168 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10172 solaris*)
10173 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10174 ld_shlibs=no
10175 cat <<_LT_EOF 1>&2
10177 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10178 *** create shared libraries on Solaris systems. Therefore, libtool
10179 *** is disabling shared libraries support. We urge you to upgrade GNU
10180 *** binutils to release 2.9.1 or newer. Another option is to modify
10181 *** your PATH or compiler configuration so that the native linker is
10182 *** used, and then restart.
10184 _LT_EOF
10185 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10186 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10187 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10188 else
10189 ld_shlibs=no
10193 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10194 case `$LD -v 2>&1` in
10195 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10196 ld_shlibs=no
10197 cat <<_LT_EOF 1>&2
10199 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10200 *** reliably create shared libraries on SCO systems. Therefore, libtool
10201 *** is disabling shared libraries support. We urge you to upgrade GNU
10202 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10203 *** your PATH or compiler configuration so that the native linker is
10204 *** used, and then restart.
10206 _LT_EOF
10209 # For security reasons, it is highly recommended that you always
10210 # use absolute paths for naming shared libraries, and exclude the
10211 # DT_RUNPATH tag from executables and libraries. But doing so
10212 # requires that you compile everything twice, which is a pain.
10213 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10214 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10215 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10216 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10217 else
10218 ld_shlibs=no
10221 esac
10224 sunos4*)
10225 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10226 wlarc=
10227 hardcode_direct=yes
10228 hardcode_shlibpath_var=no
10232 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
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
10241 if test "$ld_shlibs" = no; then
10242 runpath_var=
10243 hardcode_libdir_flag_spec=
10244 export_dynamic_flag_spec=
10245 whole_archive_flag_spec=
10247 else
10248 # PORTME fill in a description of your system's linker (not GNU ld)
10249 case $host_os in
10250 aix3*)
10251 allow_undefined_flag=unsupported
10252 always_export_symbols=yes
10253 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'
10254 # Note: this linker hardcodes the directories in LIBPATH if there
10255 # are no directories specified by -L.
10256 hardcode_minus_L=yes
10257 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10258 # Neither direct hardcoding nor static linking is supported with a
10259 # broken collect2.
10260 hardcode_direct=unsupported
10264 aix[4-9]*)
10265 if test "$host_cpu" = ia64; then
10266 # On IA64, the linker does run time linking by default, so we don't
10267 # have to do anything special.
10268 aix_use_runtimelinking=no
10269 exp_sym_flag='-Bexport'
10270 no_entry_flag=""
10271 else
10272 # If we're using GNU nm, then we don't want the "-C" option.
10273 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10274 # Also, AIX nm treats weak defined symbols like other global
10275 # defined symbols, whereas GNU nm marks them as "W".
10276 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10277 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'
10278 else
10279 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'
10281 aix_use_runtimelinking=no
10283 # Test if we are trying to use run time linking or normal
10284 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10285 # need to do runtime linking.
10286 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10287 for ld_flag in $LDFLAGS; do
10288 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10289 aix_use_runtimelinking=yes
10290 break
10292 done
10294 esac
10296 exp_sym_flag='-bexport'
10297 no_entry_flag='-bnoentry'
10300 # When large executables or shared objects are built, AIX ld can
10301 # have problems creating the table of contents. If linking a library
10302 # or program results in "error TOC overflow" add -mminimal-toc to
10303 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10304 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10306 archive_cmds=''
10307 hardcode_direct=yes
10308 hardcode_direct_absolute=yes
10309 hardcode_libdir_separator=':'
10310 link_all_deplibs=yes
10311 file_list_spec='${wl}-f,'
10313 if test "$GCC" = yes; then
10314 case $host_os in aix4.[012]|aix4.[012].*)
10315 # We only want to do this on AIX 4.2 and lower, the check
10316 # below for broken collect2 doesn't work under 4.3+
10317 collect2name=`${CC} -print-prog-name=collect2`
10318 if test -f "$collect2name" &&
10319 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10320 then
10321 # We have reworked collect2
10323 else
10324 # We have old collect2
10325 hardcode_direct=unsupported
10326 # It fails to find uninstalled libraries when the uninstalled
10327 # path is not listed in the libpath. Setting hardcode_minus_L
10328 # to unsupported forces relinking
10329 hardcode_minus_L=yes
10330 hardcode_libdir_flag_spec='-L$libdir'
10331 hardcode_libdir_separator=
10334 esac
10335 shared_flag='-shared'
10336 if test "$aix_use_runtimelinking" = yes; then
10337 shared_flag="$shared_flag "'${wl}-G'
10339 else
10340 # not using gcc
10341 if test "$host_cpu" = ia64; then
10342 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10343 # chokes on -Wl,-G. The following line is correct:
10344 shared_flag='-G'
10345 else
10346 if test "$aix_use_runtimelinking" = yes; then
10347 shared_flag='${wl}-G'
10348 else
10349 shared_flag='${wl}-bM:SRE'
10354 export_dynamic_flag_spec='${wl}-bexpall'
10355 # It seems that -bexpall does not export symbols beginning with
10356 # underscore (_), so it is better to generate a list of symbols to export.
10357 always_export_symbols=yes
10358 if test "$aix_use_runtimelinking" = yes; then
10359 # Warning - without using the other runtime loading flags (-brtl),
10360 # -berok will link without error, but may produce a broken library.
10361 allow_undefined_flag='-berok'
10362 # Determine the default libpath from the value encoded in an
10363 # empty executable.
10364 if test x$gcc_no_link = xyes; then
10365 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10368 /* end confdefs.h. */
10371 main ()
10375 return 0;
10377 _ACEOF
10378 if ac_fn_c_try_link "$LINENO"; then :
10380 lt_aix_libpath_sed='
10381 /Import File Strings/,/^$/ {
10382 /^0/ {
10383 s/^0 *\(.*\)$/\1/
10387 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10388 # Check for a 64-bit object if we didn't find anything.
10389 if test -z "$aix_libpath"; then
10390 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10393 rm -f core conftest.err conftest.$ac_objext \
10394 conftest$ac_exeext conftest.$ac_ext
10395 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10397 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10398 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"
10399 else
10400 if test "$host_cpu" = ia64; then
10401 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10402 allow_undefined_flag="-z nodefs"
10403 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"
10404 else
10405 # Determine the default libpath from the value encoded in an
10406 # empty executable.
10407 if test x$gcc_no_link = xyes; then
10408 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10410 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10411 /* end confdefs.h. */
10414 main ()
10418 return 0;
10420 _ACEOF
10421 if ac_fn_c_try_link "$LINENO"; then :
10423 lt_aix_libpath_sed='
10424 /Import File Strings/,/^$/ {
10425 /^0/ {
10426 s/^0 *\(.*\)$/\1/
10430 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10431 # Check for a 64-bit object if we didn't find anything.
10432 if test -z "$aix_libpath"; then
10433 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10436 rm -f core conftest.err conftest.$ac_objext \
10437 conftest$ac_exeext conftest.$ac_ext
10438 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10440 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10441 # Warning - without using the other run time loading flags,
10442 # -berok will link without error, but may produce a broken library.
10443 no_undefined_flag=' ${wl}-bernotok'
10444 allow_undefined_flag=' ${wl}-berok'
10445 if test "$with_gnu_ld" = yes; then
10446 # We only use this code for GNU lds that support --whole-archive.
10447 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10448 else
10449 # Exported symbols can be pulled into shared objects from archives
10450 whole_archive_flag_spec='$convenience'
10452 archive_cmds_need_lc=yes
10453 # This is similar to how AIX traditionally builds its shared libraries.
10454 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'
10459 amigaos*)
10460 case $host_cpu in
10461 powerpc)
10462 # see comment about AmigaOS4 .so support
10463 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10464 archive_expsym_cmds=''
10466 m68k)
10467 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)'
10468 hardcode_libdir_flag_spec='-L$libdir'
10469 hardcode_minus_L=yes
10471 esac
10474 bsdi[45]*)
10475 export_dynamic_flag_spec=-rdynamic
10478 cygwin* | mingw* | pw32* | cegcc*)
10479 # When not using gcc, we currently assume that we are using
10480 # Microsoft Visual C++.
10481 # hardcode_libdir_flag_spec is actually meaningless, as there is
10482 # no search path for DLLs.
10483 hardcode_libdir_flag_spec=' '
10484 allow_undefined_flag=unsupported
10485 # Tell ltmain to make .lib files, not .a files.
10486 libext=lib
10487 # Tell ltmain to make .dll files, not .so files.
10488 shrext_cmds=".dll"
10489 # FIXME: Setting linknames here is a bad hack.
10490 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10491 # The linker will automatically build a .lib file if we build a DLL.
10492 old_archive_from_new_cmds='true'
10493 # FIXME: Should let the user specify the lib program.
10494 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10495 fix_srcfile_path='`cygpath -w "$srcfile"`'
10496 enable_shared_with_static_runtimes=yes
10499 darwin* | rhapsody*)
10502 archive_cmds_need_lc=no
10503 hardcode_direct=no
10504 hardcode_automatic=yes
10505 hardcode_shlibpath_var=unsupported
10506 if test "$lt_cv_ld_force_load" = "yes"; then
10507 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\"`'
10508 else
10509 whole_archive_flag_spec=''
10511 link_all_deplibs=yes
10512 allow_undefined_flag="$_lt_dar_allow_undefined"
10513 case $cc_basename in
10514 ifort*) _lt_dar_can_shared=yes ;;
10515 *) _lt_dar_can_shared=$GCC ;;
10516 esac
10517 if test "$_lt_dar_can_shared" = "yes"; then
10518 output_verbose_link_cmd=func_echo_all
10519 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10520 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10521 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}"
10522 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}"
10524 else
10525 ld_shlibs=no
10530 dgux*)
10531 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10532 hardcode_libdir_flag_spec='-L$libdir'
10533 hardcode_shlibpath_var=no
10536 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10537 # support. Future versions do this automatically, but an explicit c++rt0.o
10538 # does not break anything, and helps significantly (at the cost of a little
10539 # extra space).
10540 freebsd2.2*)
10541 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10542 hardcode_libdir_flag_spec='-R$libdir'
10543 hardcode_direct=yes
10544 hardcode_shlibpath_var=no
10547 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10548 freebsd2.*)
10549 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10550 hardcode_direct=yes
10551 hardcode_minus_L=yes
10552 hardcode_shlibpath_var=no
10555 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10556 freebsd* | dragonfly*)
10557 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10558 hardcode_libdir_flag_spec='-R$libdir'
10559 hardcode_direct=yes
10560 hardcode_shlibpath_var=no
10563 hpux9*)
10564 if test "$GCC" = yes; then
10565 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'
10566 else
10567 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'
10569 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10570 hardcode_libdir_separator=:
10571 hardcode_direct=yes
10573 # hardcode_minus_L: Not really in the search PATH,
10574 # but as the default location of the library.
10575 hardcode_minus_L=yes
10576 export_dynamic_flag_spec='${wl}-E'
10579 hpux10*)
10580 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10581 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10582 else
10583 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10585 if test "$with_gnu_ld" = no; then
10586 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10587 hardcode_libdir_flag_spec_ld='+b $libdir'
10588 hardcode_libdir_separator=:
10589 hardcode_direct=yes
10590 hardcode_direct_absolute=yes
10591 export_dynamic_flag_spec='${wl}-E'
10592 # hardcode_minus_L: Not really in the search PATH,
10593 # but as the default location of the library.
10594 hardcode_minus_L=yes
10598 hpux11*)
10599 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10600 case $host_cpu in
10601 hppa*64*)
10602 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10604 ia64*)
10605 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10608 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10610 esac
10611 else
10612 case $host_cpu in
10613 hppa*64*)
10614 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10616 ia64*)
10617 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10621 # Older versions of the 11.00 compiler do not understand -b yet
10622 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10624 $as_echo_n "checking if $CC understands -b... " >&6; }
10625 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10626 $as_echo_n "(cached) " >&6
10627 else
10628 lt_cv_prog_compiler__b=no
10629 save_LDFLAGS="$LDFLAGS"
10630 LDFLAGS="$LDFLAGS -b"
10631 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10632 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10633 # The linker can only warn and ignore the option if not recognized
10634 # So say no if there are warnings
10635 if test -s conftest.err; then
10636 # Append any errors to the config.log.
10637 cat conftest.err 1>&5
10638 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10639 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10640 if diff conftest.exp conftest.er2 >/dev/null; then
10641 lt_cv_prog_compiler__b=yes
10643 else
10644 lt_cv_prog_compiler__b=yes
10647 $RM -r conftest*
10648 LDFLAGS="$save_LDFLAGS"
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10652 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10654 if test x"$lt_cv_prog_compiler__b" = xyes; then
10655 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10656 else
10657 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10661 esac
10663 if test "$with_gnu_ld" = no; then
10664 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10665 hardcode_libdir_separator=:
10667 case $host_cpu in
10668 hppa*64*|ia64*)
10669 hardcode_direct=no
10670 hardcode_shlibpath_var=no
10673 hardcode_direct=yes
10674 hardcode_direct_absolute=yes
10675 export_dynamic_flag_spec='${wl}-E'
10677 # hardcode_minus_L: Not really in the search PATH,
10678 # but as the default location of the library.
10679 hardcode_minus_L=yes
10681 esac
10685 irix5* | irix6* | nonstopux*)
10686 if test "$GCC" = yes; then
10687 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'
10688 # Try to use the -exported_symbol ld option, if it does not
10689 # work, assume that -exports_file does not work either and
10690 # implicitly export all symbols.
10691 save_LDFLAGS="$LDFLAGS"
10692 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10693 if test x$gcc_no_link = xyes; then
10694 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10697 /* end confdefs.h. */
10698 int foo(void) {}
10699 _ACEOF
10700 if ac_fn_c_try_link "$LINENO"; then :
10701 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'
10704 rm -f core conftest.err conftest.$ac_objext \
10705 conftest$ac_exeext conftest.$ac_ext
10706 LDFLAGS="$save_LDFLAGS"
10707 else
10708 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'
10709 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'
10711 archive_cmds_need_lc='no'
10712 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10713 hardcode_libdir_separator=:
10714 inherit_rpath=yes
10715 link_all_deplibs=yes
10718 netbsd*)
10719 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10720 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10721 else
10722 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10724 hardcode_libdir_flag_spec='-R$libdir'
10725 hardcode_direct=yes
10726 hardcode_shlibpath_var=no
10729 newsos6)
10730 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10731 hardcode_direct=yes
10732 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10733 hardcode_libdir_separator=:
10734 hardcode_shlibpath_var=no
10737 *nto* | *qnx*)
10740 openbsd*)
10741 if test -f /usr/libexec/ld.so; then
10742 hardcode_direct=yes
10743 hardcode_shlibpath_var=no
10744 hardcode_direct_absolute=yes
10745 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10746 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10747 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10748 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10749 export_dynamic_flag_spec='${wl}-E'
10750 else
10751 case $host_os in
10752 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10753 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10754 hardcode_libdir_flag_spec='-R$libdir'
10757 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10758 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10760 esac
10762 else
10763 ld_shlibs=no
10767 os2*)
10768 hardcode_libdir_flag_spec='-L$libdir'
10769 hardcode_minus_L=yes
10770 allow_undefined_flag=unsupported
10771 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'
10772 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10775 osf3*)
10776 if test "$GCC" = yes; then
10777 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10778 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'
10779 else
10780 allow_undefined_flag=' -expect_unresolved \*'
10781 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'
10783 archive_cmds_need_lc='no'
10784 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10785 hardcode_libdir_separator=:
10788 osf4* | osf5*) # as osf3* with the addition of -msym flag
10789 if test "$GCC" = yes; then
10790 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10791 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'
10792 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10793 else
10794 allow_undefined_flag=' -expect_unresolved \*'
10795 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'
10796 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~
10797 $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'
10799 # Both c and cxx compiler support -rpath directly
10800 hardcode_libdir_flag_spec='-rpath $libdir'
10802 archive_cmds_need_lc='no'
10803 hardcode_libdir_separator=:
10806 solaris*)
10807 no_undefined_flag=' -z defs'
10808 if test "$GCC" = yes; then
10809 wlarc='${wl}'
10810 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10811 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10812 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10813 else
10814 case `$CC -V 2>&1` in
10815 *"Compilers 5.0"*)
10816 wlarc=''
10817 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10818 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10819 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10822 wlarc='${wl}'
10823 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10824 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10825 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10827 esac
10829 hardcode_libdir_flag_spec='-R$libdir'
10830 hardcode_shlibpath_var=no
10831 case $host_os in
10832 solaris2.[0-5] | solaris2.[0-5].*) ;;
10834 # The compiler driver will combine and reorder linker options,
10835 # but understands `-z linker_flag'. GCC discards it without `$wl',
10836 # but is careful enough not to reorder.
10837 # Supported since Solaris 2.6 (maybe 2.5.1?)
10838 if test "$GCC" = yes; then
10839 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10840 else
10841 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10844 esac
10845 link_all_deplibs=yes
10848 sunos4*)
10849 if test "x$host_vendor" = xsequent; then
10850 # Use $CC to link under sequent, because it throws in some extra .o
10851 # files that make .init and .fini sections work.
10852 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10853 else
10854 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10856 hardcode_libdir_flag_spec='-L$libdir'
10857 hardcode_direct=yes
10858 hardcode_minus_L=yes
10859 hardcode_shlibpath_var=no
10862 sysv4)
10863 case $host_vendor in
10864 sni)
10865 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10866 hardcode_direct=yes # is this really true???
10868 siemens)
10869 ## LD is ld it makes a PLAMLIB
10870 ## CC just makes a GrossModule.
10871 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10872 reload_cmds='$CC -r -o $output$reload_objs'
10873 hardcode_direct=no
10875 motorola)
10876 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10877 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10879 esac
10880 runpath_var='LD_RUN_PATH'
10881 hardcode_shlibpath_var=no
10884 sysv4.3*)
10885 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10886 hardcode_shlibpath_var=no
10887 export_dynamic_flag_spec='-Bexport'
10890 sysv4*MP*)
10891 if test -d /usr/nec; then
10892 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10893 hardcode_shlibpath_var=no
10894 runpath_var=LD_RUN_PATH
10895 hardcode_runpath_var=yes
10896 ld_shlibs=yes
10900 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10901 no_undefined_flag='${wl}-z,text'
10902 archive_cmds_need_lc=no
10903 hardcode_shlibpath_var=no
10904 runpath_var='LD_RUN_PATH'
10906 if test "$GCC" = yes; then
10907 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10908 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10909 else
10910 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10911 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10915 sysv5* | sco3.2v5* | sco5v6*)
10916 # Note: We can NOT use -z defs as we might desire, because we do not
10917 # link with -lc, and that would cause any symbols used from libc to
10918 # always be unresolved, which means just about no library would
10919 # ever link correctly. If we're not using GNU ld we use -z text
10920 # though, which does catch some bad symbols but isn't as heavy-handed
10921 # as -z defs.
10922 no_undefined_flag='${wl}-z,text'
10923 allow_undefined_flag='${wl}-z,nodefs'
10924 archive_cmds_need_lc=no
10925 hardcode_shlibpath_var=no
10926 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10927 hardcode_libdir_separator=':'
10928 link_all_deplibs=yes
10929 export_dynamic_flag_spec='${wl}-Bexport'
10930 runpath_var='LD_RUN_PATH'
10932 if test "$GCC" = yes; then
10933 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10934 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10935 else
10936 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10937 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10941 uts4*)
10942 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10943 hardcode_libdir_flag_spec='-L$libdir'
10944 hardcode_shlibpath_var=no
10948 ld_shlibs=no
10950 esac
10952 if test x$host_vendor = xsni; then
10953 case $host in
10954 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10955 export_dynamic_flag_spec='${wl}-Blargedynsym'
10957 esac
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10962 $as_echo "$ld_shlibs" >&6; }
10963 test "$ld_shlibs" = no && can_build_shared=no
10965 with_gnu_ld=$with_gnu_ld
10982 # Do we need to explicitly link libc?
10984 case "x$archive_cmds_need_lc" in
10985 x|xyes)
10986 # Assume -lc should be added
10987 archive_cmds_need_lc=yes
10989 if test "$enable_shared" = yes && test "$GCC" = yes; then
10990 case $archive_cmds in
10991 *'~'*)
10992 # FIXME: we may have to deal with multi-command sequences.
10994 '$CC '*)
10995 # Test whether the compiler implicitly links with -lc since on some
10996 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10997 # to ld, don't add -lc before -lgcc.
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10999 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11000 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
11001 $as_echo_n "(cached) " >&6
11002 else
11003 $RM conftest*
11004 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11006 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11007 (eval $ac_compile) 2>&5
11008 ac_status=$?
11009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11010 test $ac_status = 0; } 2>conftest.err; then
11011 soname=conftest
11012 lib=conftest
11013 libobjs=conftest.$ac_objext
11014 deplibs=
11015 wl=$lt_prog_compiler_wl
11016 pic_flag=$lt_prog_compiler_pic
11017 compiler_flags=-v
11018 linker_flags=-v
11019 verstring=
11020 output_objdir=.
11021 libname=conftest
11022 lt_save_allow_undefined_flag=$allow_undefined_flag
11023 allow_undefined_flag=
11024 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11025 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11026 ac_status=$?
11027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11028 test $ac_status = 0; }
11029 then
11030 lt_cv_archive_cmds_need_lc=no
11031 else
11032 lt_cv_archive_cmds_need_lc=yes
11034 allow_undefined_flag=$lt_save_allow_undefined_flag
11035 else
11036 cat conftest.err 1>&5
11038 $RM conftest*
11041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11042 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11043 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11045 esac
11048 esac
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11207 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11209 if test "$GCC" = yes; then
11210 case $host_os in
11211 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11212 *) lt_awk_arg="/^libraries:/" ;;
11213 esac
11214 case $host_os in
11215 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11216 *) lt_sed_strip_eq="s,=/,/,g" ;;
11217 esac
11218 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11219 case $lt_search_path_spec in
11220 *\;*)
11221 # if the path contains ";" then we assume it to be the separator
11222 # otherwise default to the standard path separator (i.e. ":") - it is
11223 # assumed that no part of a normal pathname contains ";" but that should
11224 # okay in the real world where ";" in dirpaths is itself problematic.
11225 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11228 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11230 esac
11231 # Ok, now we have the path, separated by spaces, we can step through it
11232 # and add multilib dir if necessary.
11233 lt_tmp_lt_search_path_spec=
11234 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11235 for lt_sys_path in $lt_search_path_spec; do
11236 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11237 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11238 else
11239 test -d "$lt_sys_path" && \
11240 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11242 done
11243 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11244 BEGIN {RS=" "; FS="/|\n";} {
11245 lt_foo="";
11246 lt_count=0;
11247 for (lt_i = NF; lt_i > 0; lt_i--) {
11248 if ($lt_i != "" && $lt_i != ".") {
11249 if ($lt_i == "..") {
11250 lt_count++;
11251 } else {
11252 if (lt_count == 0) {
11253 lt_foo="/" $lt_i lt_foo;
11254 } else {
11255 lt_count--;
11260 if (lt_foo != "") { lt_freq[lt_foo]++; }
11261 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11263 # AWK program above erroneously prepends '/' to C:/dos/paths
11264 # for these hosts.
11265 case $host_os in
11266 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11267 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11268 esac
11269 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11270 else
11271 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11273 library_names_spec=
11274 libname_spec='lib$name'
11275 soname_spec=
11276 shrext_cmds=".so"
11277 postinstall_cmds=
11278 postuninstall_cmds=
11279 finish_cmds=
11280 finish_eval=
11281 shlibpath_var=
11282 shlibpath_overrides_runpath=unknown
11283 version_type=none
11284 dynamic_linker="$host_os ld.so"
11285 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11286 need_lib_prefix=unknown
11287 hardcode_into_libs=no
11289 # when you set need_version to no, make sure it does not cause -set_version
11290 # flags to be left without arguments
11291 need_version=unknown
11293 case $host_os in
11294 aix3*)
11295 version_type=linux
11296 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11297 shlibpath_var=LIBPATH
11299 # AIX 3 has no versioning support, so we append a major version to the name.
11300 soname_spec='${libname}${release}${shared_ext}$major'
11303 aix[4-9]*)
11304 version_type=linux
11305 need_lib_prefix=no
11306 need_version=no
11307 hardcode_into_libs=yes
11308 if test "$host_cpu" = ia64; then
11309 # AIX 5 supports IA64
11310 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11311 shlibpath_var=LD_LIBRARY_PATH
11312 else
11313 # With GCC up to 2.95.x, collect2 would create an import file
11314 # for dependence libraries. The import file would start with
11315 # the line `#! .'. This would cause the generated library to
11316 # depend on `.', always an invalid library. This was fixed in
11317 # development snapshots of GCC prior to 3.0.
11318 case $host_os in
11319 aix4 | aix4.[01] | aix4.[01].*)
11320 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11321 echo ' yes '
11322 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11324 else
11325 can_build_shared=no
11328 esac
11329 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11330 # soname into executable. Probably we can add versioning support to
11331 # collect2, so additional links can be useful in future.
11332 if test "$aix_use_runtimelinking" = yes; then
11333 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11334 # instead of lib<name>.a to let people know that these are not
11335 # typical AIX shared libraries.
11336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11337 else
11338 # We preserve .a as extension for shared libraries through AIX4.2
11339 # and later when we are not doing run time linking.
11340 library_names_spec='${libname}${release}.a $libname.a'
11341 soname_spec='${libname}${release}${shared_ext}$major'
11343 shlibpath_var=LIBPATH
11347 amigaos*)
11348 case $host_cpu in
11349 powerpc)
11350 # Since July 2007 AmigaOS4 officially supports .so libraries.
11351 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11354 m68k)
11355 library_names_spec='$libname.ixlibrary $libname.a'
11356 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11357 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'
11359 esac
11362 beos*)
11363 library_names_spec='${libname}${shared_ext}'
11364 dynamic_linker="$host_os ld.so"
11365 shlibpath_var=LIBRARY_PATH
11368 bsdi[45]*)
11369 version_type=linux
11370 need_version=no
11371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11372 soname_spec='${libname}${release}${shared_ext}$major'
11373 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11374 shlibpath_var=LD_LIBRARY_PATH
11375 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11376 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11377 # the default ld.so.conf also contains /usr/contrib/lib and
11378 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11379 # libtool to hard-code these into programs
11382 cygwin* | mingw* | pw32* | cegcc*)
11383 version_type=windows
11384 shrext_cmds=".dll"
11385 need_version=no
11386 need_lib_prefix=no
11388 case $GCC,$host_os in
11389 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11390 library_names_spec='$libname.dll.a'
11391 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11392 postinstall_cmds='base_file=`basename \${file}`~
11393 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11394 dldir=$destdir/`dirname \$dlpath`~
11395 test -d \$dldir || mkdir -p \$dldir~
11396 $install_prog $dir/$dlname \$dldir/$dlname~
11397 chmod a+x \$dldir/$dlname~
11398 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11399 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11401 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11402 dlpath=$dir/\$dldll~
11403 $RM \$dlpath'
11404 shlibpath_overrides_runpath=yes
11406 case $host_os in
11407 cygwin*)
11408 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11409 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11411 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11413 mingw* | cegcc*)
11414 # MinGW DLLs use traditional 'lib' prefix
11415 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11417 pw32*)
11418 # pw32 DLLs use 'pw' prefix rather than 'lib'
11419 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11421 esac
11425 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11427 esac
11428 dynamic_linker='Win32 ld.exe'
11429 # FIXME: first we should search . and the directory the executable is in
11430 shlibpath_var=PATH
11433 darwin* | rhapsody*)
11434 dynamic_linker="$host_os dyld"
11435 version_type=darwin
11436 need_lib_prefix=no
11437 need_version=no
11438 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11439 soname_spec='${libname}${release}${major}$shared_ext'
11440 shlibpath_overrides_runpath=yes
11441 shlibpath_var=DYLD_LIBRARY_PATH
11442 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11444 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11445 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11448 dgux*)
11449 version_type=linux
11450 need_lib_prefix=no
11451 need_version=no
11452 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11453 soname_spec='${libname}${release}${shared_ext}$major'
11454 shlibpath_var=LD_LIBRARY_PATH
11457 freebsd* | dragonfly*)
11458 # DragonFly does not have aout. When/if they implement a new
11459 # versioning mechanism, adjust this.
11460 if test -x /usr/bin/objformat; then
11461 objformat=`/usr/bin/objformat`
11462 else
11463 case $host_os in
11464 freebsd[23].*) objformat=aout ;;
11465 *) objformat=elf ;;
11466 esac
11468 version_type=freebsd-$objformat
11469 case $version_type in
11470 freebsd-elf*)
11471 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11472 need_version=no
11473 need_lib_prefix=no
11475 freebsd-*)
11476 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11477 need_version=yes
11479 esac
11480 shlibpath_var=LD_LIBRARY_PATH
11481 case $host_os in
11482 freebsd2.*)
11483 shlibpath_overrides_runpath=yes
11485 freebsd3.[01]* | freebsdelf3.[01]*)
11486 shlibpath_overrides_runpath=yes
11487 hardcode_into_libs=yes
11489 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11490 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11491 shlibpath_overrides_runpath=no
11492 hardcode_into_libs=yes
11494 *) # from 4.6 on, and DragonFly
11495 shlibpath_overrides_runpath=yes
11496 hardcode_into_libs=yes
11498 esac
11501 gnu*)
11502 version_type=linux
11503 need_lib_prefix=no
11504 need_version=no
11505 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11506 soname_spec='${libname}${release}${shared_ext}$major'
11507 shlibpath_var=LD_LIBRARY_PATH
11508 hardcode_into_libs=yes
11511 haiku*)
11512 version_type=linux
11513 need_lib_prefix=no
11514 need_version=no
11515 dynamic_linker="$host_os runtime_loader"
11516 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11517 soname_spec='${libname}${release}${shared_ext}$major'
11518 shlibpath_var=LIBRARY_PATH
11519 shlibpath_overrides_runpath=yes
11520 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11521 hardcode_into_libs=yes
11524 hpux9* | hpux10* | hpux11*)
11525 # Give a soname corresponding to the major version so that dld.sl refuses to
11526 # link against other versions.
11527 version_type=sunos
11528 need_lib_prefix=no
11529 need_version=no
11530 case $host_cpu in
11531 ia64*)
11532 shrext_cmds='.so'
11533 hardcode_into_libs=yes
11534 dynamic_linker="$host_os dld.so"
11535 shlibpath_var=LD_LIBRARY_PATH
11536 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11537 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11538 soname_spec='${libname}${release}${shared_ext}$major'
11539 if test "X$HPUX_IA64_MODE" = X32; then
11540 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11541 else
11542 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11544 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11546 hppa*64*)
11547 shrext_cmds='.sl'
11548 hardcode_into_libs=yes
11549 dynamic_linker="$host_os dld.sl"
11550 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11551 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11553 soname_spec='${libname}${release}${shared_ext}$major'
11554 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11555 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11558 shrext_cmds='.sl'
11559 dynamic_linker="$host_os dld.sl"
11560 shlibpath_var=SHLIB_PATH
11561 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11563 soname_spec='${libname}${release}${shared_ext}$major'
11565 esac
11566 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11567 postinstall_cmds='chmod 555 $lib'
11568 # or fails outright, so override atomically:
11569 install_override_mode=555
11572 interix[3-9]*)
11573 version_type=linux
11574 need_lib_prefix=no
11575 need_version=no
11576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11577 soname_spec='${libname}${release}${shared_ext}$major'
11578 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11579 shlibpath_var=LD_LIBRARY_PATH
11580 shlibpath_overrides_runpath=no
11581 hardcode_into_libs=yes
11584 irix5* | irix6* | nonstopux*)
11585 case $host_os in
11586 nonstopux*) version_type=nonstopux ;;
11588 if test "$lt_cv_prog_gnu_ld" = yes; then
11589 version_type=linux
11590 else
11591 version_type=irix
11592 fi ;;
11593 esac
11594 need_lib_prefix=no
11595 need_version=no
11596 soname_spec='${libname}${release}${shared_ext}$major'
11597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11598 case $host_os in
11599 irix5* | nonstopux*)
11600 libsuff= shlibsuff=
11603 case $LD in # libtool.m4 will add one of these switches to LD
11604 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11605 libsuff= shlibsuff= libmagic=32-bit;;
11606 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11607 libsuff=32 shlibsuff=N32 libmagic=N32;;
11608 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11609 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11610 *) libsuff= shlibsuff= libmagic=never-match;;
11611 esac
11613 esac
11614 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11615 shlibpath_overrides_runpath=no
11616 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11617 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11618 hardcode_into_libs=yes
11621 # No shared lib support for Linux oldld, aout, or coff.
11622 linux*oldld* | linux*aout* | linux*coff*)
11623 dynamic_linker=no
11626 # This must be Linux ELF.
11627 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11628 version_type=linux
11629 need_lib_prefix=no
11630 need_version=no
11631 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11632 soname_spec='${libname}${release}${shared_ext}$major'
11633 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11634 shlibpath_var=LD_LIBRARY_PATH
11635 shlibpath_overrides_runpath=no
11637 # Some binutils ld are patched to set DT_RUNPATH
11638 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11639 $as_echo_n "(cached) " >&6
11640 else
11641 lt_cv_shlibpath_overrides_runpath=no
11642 save_LDFLAGS=$LDFLAGS
11643 save_libdir=$libdir
11644 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11645 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11646 if test x$gcc_no_link = xyes; then
11647 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11650 /* end confdefs.h. */
11653 main ()
11657 return 0;
11659 _ACEOF
11660 if ac_fn_c_try_link "$LINENO"; then :
11661 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11662 lt_cv_shlibpath_overrides_runpath=yes
11665 rm -f core conftest.err conftest.$ac_objext \
11666 conftest$ac_exeext conftest.$ac_ext
11667 LDFLAGS=$save_LDFLAGS
11668 libdir=$save_libdir
11672 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11674 # This implies no fast_install, which is unacceptable.
11675 # Some rework will be needed to allow for fast_install
11676 # before this can be enabled.
11677 hardcode_into_libs=yes
11679 # Append ld.so.conf contents to the search path
11680 if test -f /etc/ld.so.conf; then
11681 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' ' '`
11682 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11685 # We used to test for /lib/ld.so.1 and disable shared libraries on
11686 # powerpc, because MkLinux only supported shared libraries with the
11687 # GNU dynamic linker. Since this was broken with cross compilers,
11688 # most powerpc-linux boxes support dynamic linking these days and
11689 # people can always --disable-shared, the test was removed, and we
11690 # assume the GNU/Linux dynamic linker is in use.
11691 dynamic_linker='GNU/Linux ld.so'
11694 netbsd*)
11695 version_type=sunos
11696 need_lib_prefix=no
11697 need_version=no
11698 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11700 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11701 dynamic_linker='NetBSD (a.out) ld.so'
11702 else
11703 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11704 soname_spec='${libname}${release}${shared_ext}$major'
11705 dynamic_linker='NetBSD ld.elf_so'
11707 shlibpath_var=LD_LIBRARY_PATH
11708 shlibpath_overrides_runpath=yes
11709 hardcode_into_libs=yes
11712 newsos6)
11713 version_type=linux
11714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11715 shlibpath_var=LD_LIBRARY_PATH
11716 shlibpath_overrides_runpath=yes
11719 *nto* | *qnx*)
11720 version_type=qnx
11721 need_lib_prefix=no
11722 need_version=no
11723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11724 soname_spec='${libname}${release}${shared_ext}$major'
11725 shlibpath_var=LD_LIBRARY_PATH
11726 shlibpath_overrides_runpath=no
11727 hardcode_into_libs=yes
11728 dynamic_linker='ldqnx.so'
11731 openbsd*)
11732 version_type=sunos
11733 sys_lib_dlsearch_path_spec="/usr/lib"
11734 need_lib_prefix=no
11735 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11736 case $host_os in
11737 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11738 *) need_version=no ;;
11739 esac
11740 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11741 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11742 shlibpath_var=LD_LIBRARY_PATH
11743 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11744 case $host_os in
11745 openbsd2.[89] | openbsd2.[89].*)
11746 shlibpath_overrides_runpath=no
11749 shlibpath_overrides_runpath=yes
11751 esac
11752 else
11753 shlibpath_overrides_runpath=yes
11757 os2*)
11758 libname_spec='$name'
11759 shrext_cmds=".dll"
11760 need_lib_prefix=no
11761 library_names_spec='$libname${shared_ext} $libname.a'
11762 dynamic_linker='OS/2 ld.exe'
11763 shlibpath_var=LIBPATH
11766 osf3* | osf4* | osf5*)
11767 version_type=osf
11768 need_lib_prefix=no
11769 need_version=no
11770 soname_spec='${libname}${release}${shared_ext}$major'
11771 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11772 shlibpath_var=LD_LIBRARY_PATH
11773 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11774 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11777 rdos*)
11778 dynamic_linker=no
11781 solaris*)
11782 version_type=linux
11783 need_lib_prefix=no
11784 need_version=no
11785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11786 soname_spec='${libname}${release}${shared_ext}$major'
11787 shlibpath_var=LD_LIBRARY_PATH
11788 shlibpath_overrides_runpath=yes
11789 hardcode_into_libs=yes
11790 # ldd complains unless libraries are executable
11791 postinstall_cmds='chmod +x $lib'
11794 sunos4*)
11795 version_type=sunos
11796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11797 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11798 shlibpath_var=LD_LIBRARY_PATH
11799 shlibpath_overrides_runpath=yes
11800 if test "$with_gnu_ld" = yes; then
11801 need_lib_prefix=no
11803 need_version=yes
11806 sysv4 | sysv4.3*)
11807 version_type=linux
11808 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11809 soname_spec='${libname}${release}${shared_ext}$major'
11810 shlibpath_var=LD_LIBRARY_PATH
11811 case $host_vendor in
11812 sni)
11813 shlibpath_overrides_runpath=no
11814 need_lib_prefix=no
11815 runpath_var=LD_RUN_PATH
11817 siemens)
11818 need_lib_prefix=no
11820 motorola)
11821 need_lib_prefix=no
11822 need_version=no
11823 shlibpath_overrides_runpath=no
11824 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11826 esac
11829 sysv4*MP*)
11830 if test -d /usr/nec ;then
11831 version_type=linux
11832 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11833 soname_spec='$libname${shared_ext}.$major'
11834 shlibpath_var=LD_LIBRARY_PATH
11838 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11839 version_type=freebsd-elf
11840 need_lib_prefix=no
11841 need_version=no
11842 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11843 soname_spec='${libname}${release}${shared_ext}$major'
11844 shlibpath_var=LD_LIBRARY_PATH
11845 shlibpath_overrides_runpath=yes
11846 hardcode_into_libs=yes
11847 if test "$with_gnu_ld" = yes; then
11848 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11849 else
11850 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11851 case $host_os in
11852 sco3.2v5*)
11853 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11855 esac
11857 sys_lib_dlsearch_path_spec='/usr/lib'
11860 tpf*)
11861 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11862 version_type=linux
11863 need_lib_prefix=no
11864 need_version=no
11865 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11866 shlibpath_var=LD_LIBRARY_PATH
11867 shlibpath_overrides_runpath=no
11868 hardcode_into_libs=yes
11871 uts4*)
11872 version_type=linux
11873 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11874 soname_spec='${libname}${release}${shared_ext}$major'
11875 shlibpath_var=LD_LIBRARY_PATH
11879 dynamic_linker=no
11881 esac
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11883 $as_echo "$dynamic_linker" >&6; }
11884 test "$dynamic_linker" = no && can_build_shared=no
11886 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11887 if test "$GCC" = yes; then
11888 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11891 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11892 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11894 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11895 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11990 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11991 hardcode_action=
11992 if test -n "$hardcode_libdir_flag_spec" ||
11993 test -n "$runpath_var" ||
11994 test "X$hardcode_automatic" = "Xyes" ; then
11996 # We can hardcode non-existent directories.
11997 if test "$hardcode_direct" != no &&
11998 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11999 # have to relink, otherwise we might link with an installed library
12000 # when we should be linking with a yet-to-be-installed one
12001 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12002 test "$hardcode_minus_L" != no; then
12003 # Linking always hardcodes the temporary library directory.
12004 hardcode_action=relink
12005 else
12006 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12007 hardcode_action=immediate
12009 else
12010 # We cannot hardcode anything, or else we can only hardcode existing
12011 # directories.
12012 hardcode_action=unsupported
12014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12015 $as_echo "$hardcode_action" >&6; }
12017 if test "$hardcode_action" = relink ||
12018 test "$inherit_rpath" = yes; then
12019 # Fast installation is not supported
12020 enable_fast_install=no
12021 elif test "$shlibpath_overrides_runpath" = yes ||
12022 test "$enable_shared" = no; then
12023 # Fast installation is not necessary
12024 enable_fast_install=needless
12032 if test "x$enable_dlopen" != xyes; then
12033 enable_dlopen=unknown
12034 enable_dlopen_self=unknown
12035 enable_dlopen_self_static=unknown
12036 else
12037 lt_cv_dlopen=no
12038 lt_cv_dlopen_libs=
12040 case $host_os in
12041 beos*)
12042 lt_cv_dlopen="load_add_on"
12043 lt_cv_dlopen_libs=
12044 lt_cv_dlopen_self=yes
12047 mingw* | pw32* | cegcc*)
12048 lt_cv_dlopen="LoadLibrary"
12049 lt_cv_dlopen_libs=
12052 cygwin*)
12053 lt_cv_dlopen="dlopen"
12054 lt_cv_dlopen_libs=
12057 darwin*)
12058 # if libdl is installed we need to link against it
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12060 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12061 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12062 $as_echo_n "(cached) " >&6
12063 else
12064 ac_check_lib_save_LIBS=$LIBS
12065 LIBS="-ldl $LIBS"
12066 if test x$gcc_no_link = xyes; then
12067 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12070 /* end confdefs.h. */
12072 /* Override any GCC internal prototype to avoid an error.
12073 Use char because int might match the return type of a GCC
12074 builtin and then its argument prototype would still apply. */
12075 #ifdef __cplusplus
12076 extern "C"
12077 #endif
12078 char dlopen ();
12080 main ()
12082 return dlopen ();
12084 return 0;
12086 _ACEOF
12087 if ac_fn_c_try_link "$LINENO"; then :
12088 ac_cv_lib_dl_dlopen=yes
12089 else
12090 ac_cv_lib_dl_dlopen=no
12092 rm -f core conftest.err conftest.$ac_objext \
12093 conftest$ac_exeext conftest.$ac_ext
12094 LIBS=$ac_check_lib_save_LIBS
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12097 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12098 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12099 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12100 else
12102 lt_cv_dlopen="dyld"
12103 lt_cv_dlopen_libs=
12104 lt_cv_dlopen_self=yes
12111 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12112 if test "x$ac_cv_func_shl_load" = x""yes; then :
12113 lt_cv_dlopen="shl_load"
12114 else
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12116 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12117 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12118 $as_echo_n "(cached) " >&6
12119 else
12120 ac_check_lib_save_LIBS=$LIBS
12121 LIBS="-ldld $LIBS"
12122 if test x$gcc_no_link = xyes; then
12123 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12126 /* end confdefs.h. */
12128 /* Override any GCC internal prototype to avoid an error.
12129 Use char because int might match the return type of a GCC
12130 builtin and then its argument prototype would still apply. */
12131 #ifdef __cplusplus
12132 extern "C"
12133 #endif
12134 char shl_load ();
12136 main ()
12138 return shl_load ();
12140 return 0;
12142 _ACEOF
12143 if ac_fn_c_try_link "$LINENO"; then :
12144 ac_cv_lib_dld_shl_load=yes
12145 else
12146 ac_cv_lib_dld_shl_load=no
12148 rm -f core conftest.err conftest.$ac_objext \
12149 conftest$ac_exeext conftest.$ac_ext
12150 LIBS=$ac_check_lib_save_LIBS
12152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12153 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12154 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12155 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12156 else
12157 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12158 if test "x$ac_cv_func_dlopen" = x""yes; then :
12159 lt_cv_dlopen="dlopen"
12160 else
12161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12162 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12163 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12164 $as_echo_n "(cached) " >&6
12165 else
12166 ac_check_lib_save_LIBS=$LIBS
12167 LIBS="-ldl $LIBS"
12168 if test x$gcc_no_link = xyes; then
12169 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12172 /* end confdefs.h. */
12174 /* Override any GCC internal prototype to avoid an error.
12175 Use char because int might match the return type of a GCC
12176 builtin and then its argument prototype would still apply. */
12177 #ifdef __cplusplus
12178 extern "C"
12179 #endif
12180 char dlopen ();
12182 main ()
12184 return dlopen ();
12186 return 0;
12188 _ACEOF
12189 if ac_fn_c_try_link "$LINENO"; then :
12190 ac_cv_lib_dl_dlopen=yes
12191 else
12192 ac_cv_lib_dl_dlopen=no
12194 rm -f core conftest.err conftest.$ac_objext \
12195 conftest$ac_exeext conftest.$ac_ext
12196 LIBS=$ac_check_lib_save_LIBS
12198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12199 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12200 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12201 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12202 else
12203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12204 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12205 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12206 $as_echo_n "(cached) " >&6
12207 else
12208 ac_check_lib_save_LIBS=$LIBS
12209 LIBS="-lsvld $LIBS"
12210 if test x$gcc_no_link = xyes; then
12211 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12214 /* end confdefs.h. */
12216 /* Override any GCC internal prototype to avoid an error.
12217 Use char because int might match the return type of a GCC
12218 builtin and then its argument prototype would still apply. */
12219 #ifdef __cplusplus
12220 extern "C"
12221 #endif
12222 char dlopen ();
12224 main ()
12226 return dlopen ();
12228 return 0;
12230 _ACEOF
12231 if ac_fn_c_try_link "$LINENO"; then :
12232 ac_cv_lib_svld_dlopen=yes
12233 else
12234 ac_cv_lib_svld_dlopen=no
12236 rm -f core conftest.err conftest.$ac_objext \
12237 conftest$ac_exeext conftest.$ac_ext
12238 LIBS=$ac_check_lib_save_LIBS
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12241 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12242 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12243 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12244 else
12245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12246 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12247 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12248 $as_echo_n "(cached) " >&6
12249 else
12250 ac_check_lib_save_LIBS=$LIBS
12251 LIBS="-ldld $LIBS"
12252 if test x$gcc_no_link = xyes; then
12253 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12256 /* end confdefs.h. */
12258 /* Override any GCC internal prototype to avoid an error.
12259 Use char because int might match the return type of a GCC
12260 builtin and then its argument prototype would still apply. */
12261 #ifdef __cplusplus
12262 extern "C"
12263 #endif
12264 char dld_link ();
12266 main ()
12268 return dld_link ();
12270 return 0;
12272 _ACEOF
12273 if ac_fn_c_try_link "$LINENO"; then :
12274 ac_cv_lib_dld_dld_link=yes
12275 else
12276 ac_cv_lib_dld_dld_link=no
12278 rm -f core conftest.err conftest.$ac_objext \
12279 conftest$ac_exeext conftest.$ac_ext
12280 LIBS=$ac_check_lib_save_LIBS
12282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12283 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12284 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12285 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12304 esac
12306 if test "x$lt_cv_dlopen" != xno; then
12307 enable_dlopen=yes
12308 else
12309 enable_dlopen=no
12312 case $lt_cv_dlopen in
12313 dlopen)
12314 save_CPPFLAGS="$CPPFLAGS"
12315 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12317 save_LDFLAGS="$LDFLAGS"
12318 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12320 save_LIBS="$LIBS"
12321 LIBS="$lt_cv_dlopen_libs $LIBS"
12323 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12324 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12325 if test "${lt_cv_dlopen_self+set}" = set; then :
12326 $as_echo_n "(cached) " >&6
12327 else
12328 if test "$cross_compiling" = yes; then :
12329 lt_cv_dlopen_self=cross
12330 else
12331 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12332 lt_status=$lt_dlunknown
12333 cat > conftest.$ac_ext <<_LT_EOF
12334 #line 12334 "configure"
12335 #include "confdefs.h"
12337 #if HAVE_DLFCN_H
12338 #include <dlfcn.h>
12339 #endif
12341 #include <stdio.h>
12343 #ifdef RTLD_GLOBAL
12344 # define LT_DLGLOBAL RTLD_GLOBAL
12345 #else
12346 # ifdef DL_GLOBAL
12347 # define LT_DLGLOBAL DL_GLOBAL
12348 # else
12349 # define LT_DLGLOBAL 0
12350 # endif
12351 #endif
12353 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12354 find out it does not work in some platform. */
12355 #ifndef LT_DLLAZY_OR_NOW
12356 # ifdef RTLD_LAZY
12357 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12358 # else
12359 # ifdef DL_LAZY
12360 # define LT_DLLAZY_OR_NOW DL_LAZY
12361 # else
12362 # ifdef RTLD_NOW
12363 # define LT_DLLAZY_OR_NOW RTLD_NOW
12364 # else
12365 # ifdef DL_NOW
12366 # define LT_DLLAZY_OR_NOW DL_NOW
12367 # else
12368 # define LT_DLLAZY_OR_NOW 0
12369 # endif
12370 # endif
12371 # endif
12372 # endif
12373 #endif
12375 /* When -fvisbility=hidden is used, assume the code has been annotated
12376 correspondingly for the symbols needed. */
12377 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12378 void fnord () __attribute__((visibility("default")));
12379 #endif
12381 void fnord () { int i=42; }
12382 int main ()
12384 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12385 int status = $lt_dlunknown;
12387 if (self)
12389 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12390 else
12392 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12393 else puts (dlerror ());
12395 /* dlclose (self); */
12397 else
12398 puts (dlerror ());
12400 return status;
12402 _LT_EOF
12403 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12404 (eval $ac_link) 2>&5
12405 ac_status=$?
12406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12407 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12408 (./conftest; exit; ) >&5 2>/dev/null
12409 lt_status=$?
12410 case x$lt_status in
12411 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12412 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12413 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12414 esac
12415 else :
12416 # compilation failed
12417 lt_cv_dlopen_self=no
12420 rm -fr conftest*
12424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12425 $as_echo "$lt_cv_dlopen_self" >&6; }
12427 if test "x$lt_cv_dlopen_self" = xyes; then
12428 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12430 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12431 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12432 $as_echo_n "(cached) " >&6
12433 else
12434 if test "$cross_compiling" = yes; then :
12435 lt_cv_dlopen_self_static=cross
12436 else
12437 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12438 lt_status=$lt_dlunknown
12439 cat > conftest.$ac_ext <<_LT_EOF
12440 #line 12440 "configure"
12441 #include "confdefs.h"
12443 #if HAVE_DLFCN_H
12444 #include <dlfcn.h>
12445 #endif
12447 #include <stdio.h>
12449 #ifdef RTLD_GLOBAL
12450 # define LT_DLGLOBAL RTLD_GLOBAL
12451 #else
12452 # ifdef DL_GLOBAL
12453 # define LT_DLGLOBAL DL_GLOBAL
12454 # else
12455 # define LT_DLGLOBAL 0
12456 # endif
12457 #endif
12459 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12460 find out it does not work in some platform. */
12461 #ifndef LT_DLLAZY_OR_NOW
12462 # ifdef RTLD_LAZY
12463 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12464 # else
12465 # ifdef DL_LAZY
12466 # define LT_DLLAZY_OR_NOW DL_LAZY
12467 # else
12468 # ifdef RTLD_NOW
12469 # define LT_DLLAZY_OR_NOW RTLD_NOW
12470 # else
12471 # ifdef DL_NOW
12472 # define LT_DLLAZY_OR_NOW DL_NOW
12473 # else
12474 # define LT_DLLAZY_OR_NOW 0
12475 # endif
12476 # endif
12477 # endif
12478 # endif
12479 #endif
12481 /* When -fvisbility=hidden is used, assume the code has been annotated
12482 correspondingly for the symbols needed. */
12483 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12484 void fnord () __attribute__((visibility("default")));
12485 #endif
12487 void fnord () { int i=42; }
12488 int main ()
12490 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12491 int status = $lt_dlunknown;
12493 if (self)
12495 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12496 else
12498 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12499 else puts (dlerror ());
12501 /* dlclose (self); */
12503 else
12504 puts (dlerror ());
12506 return status;
12508 _LT_EOF
12509 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12510 (eval $ac_link) 2>&5
12511 ac_status=$?
12512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12513 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12514 (./conftest; exit; ) >&5 2>/dev/null
12515 lt_status=$?
12516 case x$lt_status in
12517 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12518 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12519 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12520 esac
12521 else :
12522 # compilation failed
12523 lt_cv_dlopen_self_static=no
12526 rm -fr conftest*
12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12531 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12534 CPPFLAGS="$save_CPPFLAGS"
12535 LDFLAGS="$save_LDFLAGS"
12536 LIBS="$save_LIBS"
12538 esac
12540 case $lt_cv_dlopen_self in
12541 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12542 *) enable_dlopen_self=unknown ;;
12543 esac
12545 case $lt_cv_dlopen_self_static in
12546 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12547 *) enable_dlopen_self_static=unknown ;;
12548 esac
12567 striplib=
12568 old_striplib=
12569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12570 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12571 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12572 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12573 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12575 $as_echo "yes" >&6; }
12576 else
12577 # FIXME - insert some real tests, host_os isn't really good enough
12578 case $host_os in
12579 darwin*)
12580 if test -n "$STRIP" ; then
12581 striplib="$STRIP -x"
12582 old_striplib="$STRIP -S"
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12584 $as_echo "yes" >&6; }
12585 else
12586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12587 $as_echo "no" >&6; }
12591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12592 $as_echo "no" >&6; }
12594 esac
12608 # Report which library types will actually be built
12609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12610 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12612 $as_echo "$can_build_shared" >&6; }
12614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12615 $as_echo_n "checking whether to build shared libraries... " >&6; }
12616 test "$can_build_shared" = "no" && enable_shared=no
12618 # On AIX, shared libraries and static libraries use the same namespace, and
12619 # are all built from PIC.
12620 case $host_os in
12621 aix3*)
12622 test "$enable_shared" = yes && enable_static=no
12623 if test -n "$RANLIB"; then
12624 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12625 postinstall_cmds='$RANLIB $lib'
12629 aix[4-9]*)
12630 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12631 test "$enable_shared" = yes && enable_static=no
12634 esac
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12636 $as_echo "$enable_shared" >&6; }
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12639 $as_echo_n "checking whether to build static libraries... " >&6; }
12640 # Make sure either enable_shared or enable_static is yes.
12641 test "$enable_shared" = yes || enable_static=yes
12642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12643 $as_echo "$enable_static" >&6; }
12649 ac_ext=c
12650 ac_cpp='$CPP $CPPFLAGS'
12651 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12652 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12653 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12655 CC="$lt_save_CC"
12669 ac_config_commands="$ac_config_commands libtool"
12674 # Only expand once:
12680 case $host in
12681 *-cygwin* | *-mingw*)
12682 # 'host' will be top-level target in the case of a target lib,
12683 # we must compare to with_cross_host to decide if this is a native
12684 # or cross-compiler and select where to install dlls appropriately.
12685 if test -n "$with_cross_host" &&
12686 test x"$with_cross_host" != x"no"; then
12687 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
12688 else
12689 lt_host_flags='-no-undefined -bindir "$(bindir)"';
12693 lt_host_flags=
12695 esac
12701 #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
12703 # We need gfortran to compile parts of the library
12704 #AC_PROG_FC(gfortran)
12705 FC="$GFORTRAN"
12706 ac_ext=${ac_fc_srcext-f}
12707 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
12708 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
12709 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12710 if test -n "$ac_tool_prefix"; then
12711 for ac_prog in gfortran
12713 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12714 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12716 $as_echo_n "checking for $ac_word... " >&6; }
12717 if test "${ac_cv_prog_FC+set}" = set; then :
12718 $as_echo_n "(cached) " >&6
12719 else
12720 if test -n "$FC"; then
12721 ac_cv_prog_FC="$FC" # Let the user override the test.
12722 else
12723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12724 for as_dir in $PATH
12726 IFS=$as_save_IFS
12727 test -z "$as_dir" && as_dir=.
12728 for ac_exec_ext in '' $ac_executable_extensions; do
12729 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12730 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
12731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12732 break 2
12734 done
12735 done
12736 IFS=$as_save_IFS
12740 FC=$ac_cv_prog_FC
12741 if test -n "$FC"; then
12742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
12743 $as_echo "$FC" >&6; }
12744 else
12745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12746 $as_echo "no" >&6; }
12750 test -n "$FC" && break
12751 done
12753 if test -z "$FC"; then
12754 ac_ct_FC=$FC
12755 for ac_prog in gfortran
12757 # Extract the first word of "$ac_prog", so it can be a program name with args.
12758 set dummy $ac_prog; ac_word=$2
12759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12760 $as_echo_n "checking for $ac_word... " >&6; }
12761 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
12762 $as_echo_n "(cached) " >&6
12763 else
12764 if test -n "$ac_ct_FC"; then
12765 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
12766 else
12767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12768 for as_dir in $PATH
12770 IFS=$as_save_IFS
12771 test -z "$as_dir" && as_dir=.
12772 for ac_exec_ext in '' $ac_executable_extensions; do
12773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12774 ac_cv_prog_ac_ct_FC="$ac_prog"
12775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12776 break 2
12778 done
12779 done
12780 IFS=$as_save_IFS
12784 ac_ct_FC=$ac_cv_prog_ac_ct_FC
12785 if test -n "$ac_ct_FC"; then
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
12787 $as_echo "$ac_ct_FC" >&6; }
12788 else
12789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12790 $as_echo "no" >&6; }
12794 test -n "$ac_ct_FC" && break
12795 done
12797 if test "x$ac_ct_FC" = x; then
12798 FC=""
12799 else
12800 case $cross_compiling:$ac_tool_warned in
12801 yes:)
12802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12803 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12804 ac_tool_warned=yes ;;
12805 esac
12806 FC=$ac_ct_FC
12811 # Provide some information about the compiler.
12812 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
12813 set X $ac_compile
12814 ac_compiler=$2
12815 for ac_option in --version -v -V -qversion; do
12816 { { ac_try="$ac_compiler $ac_option >&5"
12817 case "(($ac_try" in
12818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12819 *) ac_try_echo=$ac_try;;
12820 esac
12821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12822 $as_echo "$ac_try_echo"; } >&5
12823 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12824 ac_status=$?
12825 if test -s conftest.err; then
12826 sed '10a\
12827 ... rest of stderr output deleted ...
12828 10q' conftest.err >conftest.er1
12829 cat conftest.er1 >&5
12830 rm -f conftest.er1 conftest.err
12832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12833 test $ac_status = 0; }
12834 done
12835 rm -f a.out
12837 # If we don't use `.F' as extension, the preprocessor is not run on the
12838 # input file. (Note that this only needs to work for GNU compilers.)
12839 ac_save_ext=$ac_ext
12840 ac_ext=F
12841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
12842 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
12843 if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
12844 $as_echo_n "(cached) " >&6
12845 else
12846 cat > conftest.$ac_ext <<_ACEOF
12847 program main
12848 #ifndef __GNUC__
12849 choke me
12850 #endif
12853 _ACEOF
12854 if ac_fn_fc_try_compile "$LINENO"; then :
12855 ac_compiler_gnu=yes
12856 else
12857 ac_compiler_gnu=no
12859 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12860 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
12863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
12864 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
12865 ac_ext=$ac_save_ext
12866 ac_test_FCFLAGS=${FCFLAGS+set}
12867 ac_save_FCFLAGS=$FCFLAGS
12868 FCFLAGS=
12869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
12870 $as_echo_n "checking whether $FC accepts -g... " >&6; }
12871 if test "${ac_cv_prog_fc_g+set}" = set; then :
12872 $as_echo_n "(cached) " >&6
12873 else
12874 FCFLAGS=-g
12875 cat > conftest.$ac_ext <<_ACEOF
12876 program main
12879 _ACEOF
12880 if ac_fn_fc_try_compile "$LINENO"; then :
12881 ac_cv_prog_fc_g=yes
12882 else
12883 ac_cv_prog_fc_g=no
12885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
12889 $as_echo "$ac_cv_prog_fc_g" >&6; }
12890 if test "$ac_test_FCFLAGS" = set; then
12891 FCFLAGS=$ac_save_FCFLAGS
12892 elif test $ac_cv_prog_fc_g = yes; then
12893 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12894 FCFLAGS="-g -O2"
12895 else
12896 FCFLAGS="-g"
12898 else
12899 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12900 FCFLAGS="-O2"
12901 else
12902 FCFLAGS=
12906 ac_ext=c
12907 ac_cpp='$CPP $CPPFLAGS'
12908 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12909 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12910 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12912 ac_ext=${ac_fc_srcext-f}
12913 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
12914 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
12915 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12918 if test -z "$FC" || test "X$FC" = "Xno"; then
12919 _lt_disable_FC=yes
12922 archive_cmds_need_lc_FC=no
12923 allow_undefined_flag_FC=
12924 always_export_symbols_FC=no
12925 archive_expsym_cmds_FC=
12926 export_dynamic_flag_spec_FC=
12927 hardcode_direct_FC=no
12928 hardcode_direct_absolute_FC=no
12929 hardcode_libdir_flag_spec_FC=
12930 hardcode_libdir_flag_spec_ld_FC=
12931 hardcode_libdir_separator_FC=
12932 hardcode_minus_L_FC=no
12933 hardcode_automatic_FC=no
12934 inherit_rpath_FC=no
12935 module_cmds_FC=
12936 module_expsym_cmds_FC=
12937 link_all_deplibs_FC=unknown
12938 old_archive_cmds_FC=$old_archive_cmds
12939 reload_flag_FC=$reload_flag
12940 reload_cmds_FC=$reload_cmds
12941 no_undefined_flag_FC=
12942 whole_archive_flag_spec_FC=
12943 enable_shared_with_static_runtimes_FC=no
12945 # Source file extension for fc test sources.
12946 ac_ext=${ac_fc_srcext-f}
12948 # Object file extension for compiled fc test sources.
12949 objext=o
12950 objext_FC=$objext
12952 # No sense in running all these tests if we already determined that
12953 # the FC compiler isn't working. Some variables (like enable_shared)
12954 # are currently assumed to apply to all compilers on this platform,
12955 # and will be corrupted by setting them based on a non-working compiler.
12956 if test "$_lt_disable_FC" != yes; then
12957 # Code to be used in simple compile tests
12958 lt_simple_compile_test_code="\
12959 subroutine t
12960 return
12964 # Code to be used in simple link tests
12965 lt_simple_link_test_code="\
12966 program t
12970 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
12977 # If no C compiler was specified, use CC.
12978 LTCC=${LTCC-"$CC"}
12980 # If no C compiler flags were specified, use CFLAGS.
12981 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
12983 # Allow CC to be a program name with arguments.
12984 compiler=$CC
12987 # save warnings/boilerplate of simple test code
12988 ac_outfile=conftest.$ac_objext
12989 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
12990 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12991 _lt_compiler_boilerplate=`cat conftest.err`
12992 $RM conftest*
12994 ac_outfile=conftest.$ac_objext
12995 echo "$lt_simple_link_test_code" >conftest.$ac_ext
12996 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
12997 _lt_linker_boilerplate=`cat conftest.err`
12998 $RM -r conftest*
13001 # Allow CC to be a program name with arguments.
13002 lt_save_CC="$CC"
13003 lt_save_GCC=$GCC
13004 CC=${FC-"f95"}
13005 compiler=$CC
13006 GCC=$ac_cv_fc_compiler_gnu
13008 compiler_FC=$CC
13009 for cc_temp in $compiler""; do
13010 case $cc_temp in
13011 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13012 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13013 \-*) ;;
13014 *) break;;
13015 esac
13016 done
13017 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13020 if test -n "$compiler"; then
13021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13022 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13024 $as_echo "$can_build_shared" >&6; }
13026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13027 $as_echo_n "checking whether to build shared libraries... " >&6; }
13028 test "$can_build_shared" = "no" && enable_shared=no
13030 # On AIX, shared libraries and static libraries use the same namespace, and
13031 # are all built from PIC.
13032 case $host_os in
13033 aix3*)
13034 test "$enable_shared" = yes && enable_static=no
13035 if test -n "$RANLIB"; then
13036 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13037 postinstall_cmds='$RANLIB $lib'
13040 aix[4-9]*)
13041 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13042 test "$enable_shared" = yes && enable_static=no
13045 esac
13046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13047 $as_echo "$enable_shared" >&6; }
13049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13050 $as_echo_n "checking whether to build static libraries... " >&6; }
13051 # Make sure either enable_shared or enable_static is yes.
13052 test "$enable_shared" = yes || enable_static=yes
13053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13054 $as_echo "$enable_static" >&6; }
13056 GCC_FC="$ac_cv_fc_compiler_gnu"
13057 LD_FC="$LD"
13059 ## CAVEAT EMPTOR:
13060 ## There is no encapsulation within the following macros, do not change
13061 ## the running order or otherwise move them around unless you know exactly
13062 ## what you are doing...
13063 # Dependencies to place before and after the object being linked:
13064 predep_objects_FC=
13065 postdep_objects_FC=
13066 predeps_FC=
13067 postdeps_FC=
13068 compiler_lib_search_path_FC=
13070 cat > conftest.$ac_ext <<_LT_EOF
13071 subroutine foo
13072 implicit none
13073 integer a
13075 return
13077 _LT_EOF
13079 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13080 (eval $ac_compile) 2>&5
13081 ac_status=$?
13082 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13083 test $ac_status = 0; }; then
13084 # Parse the compiler output and extract the necessary
13085 # objects, libraries and library flags.
13087 # Sentinel used to keep track of whether or not we are before
13088 # the conftest object file.
13089 pre_test_object_deps_done=no
13091 for p in `eval "$output_verbose_link_cmd"`; do
13092 case $p in
13094 -L* | -R* | -l*)
13095 # Some compilers place space between "-{L,R}" and the path.
13096 # Remove the space.
13097 if test $p = "-L" ||
13098 test $p = "-R"; then
13099 prev=$p
13100 continue
13101 else
13102 prev=
13105 if test "$pre_test_object_deps_done" = no; then
13106 case $p in
13107 -L* | -R*)
13108 # Internal compiler library paths should come after those
13109 # provided the user. The postdeps already come after the
13110 # user supplied libs so there is no need to process them.
13111 if test -z "$compiler_lib_search_path_FC"; then
13112 compiler_lib_search_path_FC="${prev}${p}"
13113 else
13114 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
13117 # The "-l" case would never come before the object being
13118 # linked, so don't bother handling this case.
13119 esac
13120 else
13121 if test -z "$postdeps_FC"; then
13122 postdeps_FC="${prev}${p}"
13123 else
13124 postdeps_FC="${postdeps_FC} ${prev}${p}"
13129 *.$objext)
13130 # This assumes that the test object file only shows up
13131 # once in the compiler output.
13132 if test "$p" = "conftest.$objext"; then
13133 pre_test_object_deps_done=yes
13134 continue
13137 if test "$pre_test_object_deps_done" = no; then
13138 if test -z "$predep_objects_FC"; then
13139 predep_objects_FC="$p"
13140 else
13141 predep_objects_FC="$predep_objects_FC $p"
13143 else
13144 if test -z "$postdep_objects_FC"; then
13145 postdep_objects_FC="$p"
13146 else
13147 postdep_objects_FC="$postdep_objects_FC $p"
13152 *) ;; # Ignore the rest.
13154 esac
13155 done
13157 # Clean up.
13158 rm -f a.out a.exe
13159 else
13160 echo "libtool.m4: error: problem compiling FC test program"
13163 $RM -f confest.$objext
13165 # PORTME: override above test on systems where it is broken
13168 case " $postdeps_FC " in
13169 *" -lc "*) archive_cmds_need_lc_FC=no ;;
13170 esac
13171 compiler_lib_search_dirs_FC=
13172 if test -n "${compiler_lib_search_path_FC}"; then
13173 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13206 lt_prog_compiler_wl_FC=
13207 lt_prog_compiler_pic_FC=
13208 lt_prog_compiler_static_FC=
13210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13211 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13213 if test "$GCC" = yes; then
13214 lt_prog_compiler_wl_FC='-Wl,'
13215 lt_prog_compiler_static_FC='-static'
13217 case $host_os in
13218 aix*)
13219 # All AIX code is PIC.
13220 if test "$host_cpu" = ia64; then
13221 # AIX 5 now supports IA64 processor
13222 lt_prog_compiler_static_FC='-Bstatic'
13224 lt_prog_compiler_pic_FC='-fPIC'
13227 amigaos*)
13228 case $host_cpu in
13229 powerpc)
13230 # see comment about AmigaOS4 .so support
13231 lt_prog_compiler_pic_FC='-fPIC'
13233 m68k)
13234 # FIXME: we need at least 68020 code to build shared libraries, but
13235 # adding the `-m68020' flag to GCC prevents building anything better,
13236 # like `-m68040'.
13237 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
13239 esac
13242 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13243 # PIC is the default for these OSes.
13246 mingw* | cygwin* | pw32* | os2* | cegcc*)
13247 # This hack is so that the source file can tell whether it is being
13248 # built for inclusion in a dll (and should export symbols for example).
13249 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13250 # (--disable-auto-import) libraries
13251 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13254 darwin* | rhapsody*)
13255 # PIC is the default on this platform
13256 # Common symbols not allowed in MH_DYLIB files
13257 lt_prog_compiler_pic_FC='-fno-common'
13260 haiku*)
13261 # PIC is the default for Haiku.
13262 # The "-static" flag exists, but is broken.
13263 lt_prog_compiler_static_FC=
13266 hpux*)
13267 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13268 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13269 # sets the default TLS model and affects inlining.
13270 case $host_cpu in
13271 hppa*64*)
13272 # +Z the default
13275 lt_prog_compiler_pic_FC='-fPIC'
13277 esac
13280 interix[3-9]*)
13281 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13282 # Instead, we relocate shared libraries at runtime.
13285 msdosdjgpp*)
13286 # Just because we use GCC doesn't mean we suddenly get shared libraries
13287 # on systems that don't support them.
13288 lt_prog_compiler_can_build_shared_FC=no
13289 enable_shared=no
13292 *nto* | *qnx*)
13293 # QNX uses GNU C++, but need to define -shared option too, otherwise
13294 # it will coredump.
13295 lt_prog_compiler_pic_FC='-fPIC -shared'
13298 sysv4*MP*)
13299 if test -d /usr/nec; then
13300 lt_prog_compiler_pic_FC=-Kconform_pic
13305 lt_prog_compiler_pic_FC='-fPIC'
13307 esac
13309 case $cc_basename in
13310 nvcc*) # Cuda Compiler Driver 2.2
13311 lt_prog_compiler_wl_FC='-Xlinker '
13312 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
13314 esac
13315 else
13316 # PORTME Check for flag to pass linker flags through the system compiler.
13317 case $host_os in
13318 aix*)
13319 lt_prog_compiler_wl_FC='-Wl,'
13320 if test "$host_cpu" = ia64; then
13321 # AIX 5 now supports IA64 processor
13322 lt_prog_compiler_static_FC='-Bstatic'
13323 else
13324 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
13328 mingw* | cygwin* | pw32* | os2* | cegcc*)
13329 # This hack is so that the source file can tell whether it is being
13330 # built for inclusion in a dll (and should export symbols for example).
13331 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13334 hpux9* | hpux10* | hpux11*)
13335 lt_prog_compiler_wl_FC='-Wl,'
13336 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13337 # not for PA HP-UX.
13338 case $host_cpu in
13339 hppa*64*|ia64*)
13340 # +Z the default
13343 lt_prog_compiler_pic_FC='+Z'
13345 esac
13346 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13347 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
13350 irix5* | irix6* | nonstopux*)
13351 lt_prog_compiler_wl_FC='-Wl,'
13352 # PIC (with -KPIC) is the default.
13353 lt_prog_compiler_static_FC='-non_shared'
13356 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13357 case $cc_basename in
13358 # old Intel for x86_64 which still supported -KPIC.
13359 ecc*)
13360 lt_prog_compiler_wl_FC='-Wl,'
13361 lt_prog_compiler_pic_FC='-KPIC'
13362 lt_prog_compiler_static_FC='-static'
13364 # icc used to be incompatible with GCC.
13365 # ICC 10 doesn't accept -KPIC any more.
13366 icc* | ifort*)
13367 lt_prog_compiler_wl_FC='-Wl,'
13368 lt_prog_compiler_pic_FC='-fPIC'
13369 lt_prog_compiler_static_FC='-static'
13371 # Lahey Fortran 8.1.
13372 lf95*)
13373 lt_prog_compiler_wl_FC='-Wl,'
13374 lt_prog_compiler_pic_FC='--shared'
13375 lt_prog_compiler_static_FC='--static'
13377 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13378 # Portland Group compilers (*not* the Pentium gcc compiler,
13379 # which looks to be a dead project)
13380 lt_prog_compiler_wl_FC='-Wl,'
13381 lt_prog_compiler_pic_FC='-fpic'
13382 lt_prog_compiler_static_FC='-Bstatic'
13384 ccc*)
13385 lt_prog_compiler_wl_FC='-Wl,'
13386 # All Alpha code is PIC.
13387 lt_prog_compiler_static_FC='-non_shared'
13389 xl* | bgxl* | bgf* | mpixl*)
13390 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13391 lt_prog_compiler_wl_FC='-Wl,'
13392 lt_prog_compiler_pic_FC='-qpic'
13393 lt_prog_compiler_static_FC='-qstaticlink'
13396 case `$CC -V 2>&1 | sed 5q` in
13397 *Sun\ F* | *Sun*Fortran*)
13398 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13399 lt_prog_compiler_pic_FC='-KPIC'
13400 lt_prog_compiler_static_FC='-Bstatic'
13401 lt_prog_compiler_wl_FC=''
13403 *Sun\ C*)
13404 # Sun C 5.9
13405 lt_prog_compiler_pic_FC='-KPIC'
13406 lt_prog_compiler_static_FC='-Bstatic'
13407 lt_prog_compiler_wl_FC='-Wl,'
13409 esac
13411 esac
13414 newsos6)
13415 lt_prog_compiler_pic_FC='-KPIC'
13416 lt_prog_compiler_static_FC='-Bstatic'
13419 *nto* | *qnx*)
13420 # QNX uses GNU C++, but need to define -shared option too, otherwise
13421 # it will coredump.
13422 lt_prog_compiler_pic_FC='-fPIC -shared'
13425 osf3* | osf4* | osf5*)
13426 lt_prog_compiler_wl_FC='-Wl,'
13427 # All OSF/1 code is PIC.
13428 lt_prog_compiler_static_FC='-non_shared'
13431 rdos*)
13432 lt_prog_compiler_static_FC='-non_shared'
13435 solaris*)
13436 lt_prog_compiler_pic_FC='-KPIC'
13437 lt_prog_compiler_static_FC='-Bstatic'
13438 case $cc_basename in
13439 f77* | f90* | f95*)
13440 lt_prog_compiler_wl_FC='-Qoption ld ';;
13442 lt_prog_compiler_wl_FC='-Wl,';;
13443 esac
13446 sunos4*)
13447 lt_prog_compiler_wl_FC='-Qoption ld '
13448 lt_prog_compiler_pic_FC='-PIC'
13449 lt_prog_compiler_static_FC='-Bstatic'
13452 sysv4 | sysv4.2uw2* | sysv4.3*)
13453 lt_prog_compiler_wl_FC='-Wl,'
13454 lt_prog_compiler_pic_FC='-KPIC'
13455 lt_prog_compiler_static_FC='-Bstatic'
13458 sysv4*MP*)
13459 if test -d /usr/nec ;then
13460 lt_prog_compiler_pic_FC='-Kconform_pic'
13461 lt_prog_compiler_static_FC='-Bstatic'
13465 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13466 lt_prog_compiler_wl_FC='-Wl,'
13467 lt_prog_compiler_pic_FC='-KPIC'
13468 lt_prog_compiler_static_FC='-Bstatic'
13471 unicos*)
13472 lt_prog_compiler_wl_FC='-Wl,'
13473 lt_prog_compiler_can_build_shared_FC=no
13476 uts4*)
13477 lt_prog_compiler_pic_FC='-pic'
13478 lt_prog_compiler_static_FC='-Bstatic'
13482 lt_prog_compiler_can_build_shared_FC=no
13484 esac
13487 case $host_os in
13488 # For platforms which do not support PIC, -DPIC is meaningless:
13489 *djgpp*)
13490 lt_prog_compiler_pic_FC=
13493 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
13495 esac
13496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
13497 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
13502 # Check to make sure the PIC flag actually works.
13504 if test -n "$lt_prog_compiler_pic_FC"; then
13505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
13506 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
13507 if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then :
13508 $as_echo_n "(cached) " >&6
13509 else
13510 lt_cv_prog_compiler_pic_works_FC=no
13511 ac_outfile=conftest.$ac_objext
13512 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13513 lt_compiler_flag="$lt_prog_compiler_pic_FC"
13514 # Insert the option either (1) after the last *FLAGS variable, or
13515 # (2) before a word containing "conftest.", or (3) at the end.
13516 # Note that $ac_compile itself does not contain backslashes and begins
13517 # with a dollar sign (not a hyphen), so the echo should work correctly.
13518 # The option is referenced via a variable to avoid confusing sed.
13519 lt_compile=`echo "$ac_compile" | $SED \
13520 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13521 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13522 -e 's:$: $lt_compiler_flag:'`
13523 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13524 (eval "$lt_compile" 2>conftest.err)
13525 ac_status=$?
13526 cat conftest.err >&5
13527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13528 if (exit $ac_status) && test -s "$ac_outfile"; then
13529 # The compiler can only warn and ignore the option if not recognized
13530 # So say no if there are warnings other than the usual output.
13531 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13532 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13533 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13534 lt_cv_prog_compiler_pic_works_FC=yes
13537 $RM conftest*
13540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
13541 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
13543 if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
13544 case $lt_prog_compiler_pic_FC in
13545 "" | " "*) ;;
13546 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
13547 esac
13548 else
13549 lt_prog_compiler_pic_FC=
13550 lt_prog_compiler_can_build_shared_FC=no
13558 # Check to make sure the static flag actually works.
13560 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
13561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13562 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13563 if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then :
13564 $as_echo_n "(cached) " >&6
13565 else
13566 lt_cv_prog_compiler_static_works_FC=no
13567 save_LDFLAGS="$LDFLAGS"
13568 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13569 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13570 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13571 # The linker can only warn and ignore the option if not recognized
13572 # So say no if there are warnings
13573 if test -s conftest.err; then
13574 # Append any errors to the config.log.
13575 cat conftest.err 1>&5
13576 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13577 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13578 if diff conftest.exp conftest.er2 >/dev/null; then
13579 lt_cv_prog_compiler_static_works_FC=yes
13581 else
13582 lt_cv_prog_compiler_static_works_FC=yes
13585 $RM -r conftest*
13586 LDFLAGS="$save_LDFLAGS"
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
13590 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
13592 if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
13594 else
13595 lt_prog_compiler_static_FC=
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13602 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13603 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
13604 $as_echo_n "(cached) " >&6
13605 else
13606 lt_cv_prog_compiler_c_o_FC=no
13607 $RM -r conftest 2>/dev/null
13608 mkdir conftest
13609 cd conftest
13610 mkdir out
13611 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13613 lt_compiler_flag="-o out/conftest2.$ac_objext"
13614 # Insert the option either (1) after the last *FLAGS variable, or
13615 # (2) before a word containing "conftest.", or (3) at the end.
13616 # Note that $ac_compile itself does not contain backslashes and begins
13617 # with a dollar sign (not a hyphen), so the echo should work correctly.
13618 lt_compile=`echo "$ac_compile" | $SED \
13619 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13620 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13621 -e 's:$: $lt_compiler_flag:'`
13622 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13623 (eval "$lt_compile" 2>out/conftest.err)
13624 ac_status=$?
13625 cat out/conftest.err >&5
13626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13627 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13628 then
13629 # The compiler can only warn and ignore the option if not recognized
13630 # So say no if there are warnings
13631 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13632 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13633 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13634 lt_cv_prog_compiler_c_o_FC=yes
13637 chmod u+w . 2>&5
13638 $RM conftest*
13639 # SGI C++ compiler will create directory out/ii_files/ for
13640 # template instantiation
13641 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13642 $RM out/* && rmdir out
13643 cd ..
13644 $RM -r conftest
13645 $RM conftest*
13648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
13649 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
13653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13654 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13655 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
13656 $as_echo_n "(cached) " >&6
13657 else
13658 lt_cv_prog_compiler_c_o_FC=no
13659 $RM -r conftest 2>/dev/null
13660 mkdir conftest
13661 cd conftest
13662 mkdir out
13663 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13665 lt_compiler_flag="-o out/conftest2.$ac_objext"
13666 # Insert the option either (1) after the last *FLAGS variable, or
13667 # (2) before a word containing "conftest.", or (3) at the end.
13668 # Note that $ac_compile itself does not contain backslashes and begins
13669 # with a dollar sign (not a hyphen), so the echo should work correctly.
13670 lt_compile=`echo "$ac_compile" | $SED \
13671 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13672 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13673 -e 's:$: $lt_compiler_flag:'`
13674 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13675 (eval "$lt_compile" 2>out/conftest.err)
13676 ac_status=$?
13677 cat out/conftest.err >&5
13678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13679 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13680 then
13681 # The compiler can only warn and ignore the option if not recognized
13682 # So say no if there are warnings
13683 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13684 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13685 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13686 lt_cv_prog_compiler_c_o_FC=yes
13689 chmod u+w . 2>&5
13690 $RM conftest*
13691 # SGI C++ compiler will create directory out/ii_files/ for
13692 # template instantiation
13693 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13694 $RM out/* && rmdir out
13695 cd ..
13696 $RM -r conftest
13697 $RM conftest*
13700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
13701 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
13706 hard_links="nottested"
13707 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
13708 # do not overwrite the value of need_locks provided by the user
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13710 $as_echo_n "checking if we can lock with hard links... " >&6; }
13711 hard_links=yes
13712 $RM conftest*
13713 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13714 touch conftest.a
13715 ln conftest.a conftest.b 2>&5 || hard_links=no
13716 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13718 $as_echo "$hard_links" >&6; }
13719 if test "$hard_links" = no; then
13720 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13721 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13722 need_locks=warn
13724 else
13725 need_locks=no
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13731 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13733 runpath_var=
13734 allow_undefined_flag_FC=
13735 always_export_symbols_FC=no
13736 archive_cmds_FC=
13737 archive_expsym_cmds_FC=
13738 compiler_needs_object_FC=no
13739 enable_shared_with_static_runtimes_FC=no
13740 export_dynamic_flag_spec_FC=
13741 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13742 hardcode_automatic_FC=no
13743 hardcode_direct_FC=no
13744 hardcode_direct_absolute_FC=no
13745 hardcode_libdir_flag_spec_FC=
13746 hardcode_libdir_flag_spec_ld_FC=
13747 hardcode_libdir_separator_FC=
13748 hardcode_minus_L_FC=no
13749 hardcode_shlibpath_var_FC=unsupported
13750 inherit_rpath_FC=no
13751 link_all_deplibs_FC=unknown
13752 module_cmds_FC=
13753 module_expsym_cmds_FC=
13754 old_archive_from_new_cmds_FC=
13755 old_archive_from_expsyms_cmds_FC=
13756 thread_safe_flag_spec_FC=
13757 whole_archive_flag_spec_FC=
13758 # include_expsyms should be a list of space-separated symbols to be *always*
13759 # included in the symbol list
13760 include_expsyms_FC=
13761 # exclude_expsyms can be an extended regexp of symbols to exclude
13762 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13763 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13764 # as well as any symbol that contains `d'.
13765 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13766 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13767 # platforms (ab)use it in PIC code, but their linkers get confused if
13768 # the symbol is explicitly referenced. Since portable code cannot
13769 # rely on this symbol name, it's probably fine to never include it in
13770 # preloaded symbol tables.
13771 # Exclude shared library initialization/finalization symbols.
13772 extract_expsyms_cmds=
13774 case $host_os in
13775 cygwin* | mingw* | pw32* | cegcc*)
13776 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13777 # When not using gcc, we currently assume that we are using
13778 # Microsoft Visual C++.
13779 if test "$GCC" != yes; then
13780 with_gnu_ld=no
13783 interix*)
13784 # we just hope/assume this is gcc and not c89 (= MSVC++)
13785 with_gnu_ld=yes
13787 openbsd*)
13788 with_gnu_ld=no
13790 esac
13792 ld_shlibs_FC=yes
13794 # On some targets, GNU ld is compatible enough with the native linker
13795 # that we're better off using the native interface for both.
13796 lt_use_gnu_ld_interface=no
13797 if test "$with_gnu_ld" = yes; then
13798 case $host_os in
13799 aix*)
13800 # The AIX port of GNU ld has always aspired to compatibility
13801 # with the native linker. However, as the warning in the GNU ld
13802 # block says, versions before 2.19.5* couldn't really create working
13803 # shared libraries, regardless of the interface used.
13804 case `$LD -v 2>&1` in
13805 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13806 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13807 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13809 lt_use_gnu_ld_interface=yes
13811 esac
13814 lt_use_gnu_ld_interface=yes
13816 esac
13819 if test "$lt_use_gnu_ld_interface" = yes; then
13820 # If archive_cmds runs LD, not CC, wlarc should be empty
13821 wlarc='${wl}'
13823 # Set some defaults for GNU ld with shared library support. These
13824 # are reset later if shared libraries are not supported. Putting them
13825 # here allows them to be overridden if necessary.
13826 runpath_var=LD_RUN_PATH
13827 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13828 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
13829 # ancient GNU ld didn't support --whole-archive et. al.
13830 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13831 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13832 else
13833 whole_archive_flag_spec_FC=
13835 supports_anon_versioning=no
13836 case `$LD -v 2>&1` in
13837 *GNU\ gold*) supports_anon_versioning=yes ;;
13838 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13839 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13840 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13841 *\ 2.11.*) ;; # other 2.11 versions
13842 *) supports_anon_versioning=yes ;;
13843 esac
13845 # See if GNU ld supports shared libraries.
13846 case $host_os in
13847 aix[3-9]*)
13848 # On AIX/PPC, the GNU linker is very broken
13849 if test "$host_cpu" != ia64; then
13850 ld_shlibs_FC=no
13851 cat <<_LT_EOF 1>&2
13853 *** Warning: the GNU linker, at least up to release 2.19, is reported
13854 *** to be unable to reliably create shared libraries on AIX.
13855 *** Therefore, libtool is disabling shared libraries support. If you
13856 *** really care for shared libraries, you may want to install binutils
13857 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13858 *** You will then need to restart the configuration process.
13860 _LT_EOF
13864 amigaos*)
13865 case $host_cpu in
13866 powerpc)
13867 # see comment about AmigaOS4 .so support
13868 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13869 archive_expsym_cmds_FC=''
13871 m68k)
13872 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)'
13873 hardcode_libdir_flag_spec_FC='-L$libdir'
13874 hardcode_minus_L_FC=yes
13876 esac
13879 beos*)
13880 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13881 allow_undefined_flag_FC=unsupported
13882 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13883 # support --undefined. This deserves some investigation. FIXME
13884 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13885 else
13886 ld_shlibs_FC=no
13890 cygwin* | mingw* | pw32* | cegcc*)
13891 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
13892 # as there is no search path for DLLs.
13893 hardcode_libdir_flag_spec_FC='-L$libdir'
13894 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
13895 allow_undefined_flag_FC=unsupported
13896 always_export_symbols_FC=no
13897 enable_shared_with_static_runtimes_FC=yes
13898 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13900 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13901 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13902 # If the export-symbols file already is a .def file (1st line
13903 # is EXPORTS), use it as is; otherwise, prepend...
13904 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13905 cp $export_symbols $output_objdir/$soname.def;
13906 else
13907 echo EXPORTS > $output_objdir/$soname.def;
13908 cat $export_symbols >> $output_objdir/$soname.def;
13910 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13911 else
13912 ld_shlibs_FC=no
13916 haiku*)
13917 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13918 link_all_deplibs_FC=yes
13921 interix[3-9]*)
13922 hardcode_direct_FC=no
13923 hardcode_shlibpath_var_FC=no
13924 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13925 export_dynamic_flag_spec_FC='${wl}-E'
13926 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13927 # Instead, shared libraries are loaded at an image base (0x10000000 by
13928 # default) and relocated if they conflict, which is a slow very memory
13929 # consuming and fragmenting process. To avoid this, we pick a random,
13930 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13931 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13932 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'
13933 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'
13936 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
13937 tmp_diet=no
13938 if test "$host_os" = linux-dietlibc; then
13939 case $cc_basename in
13940 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13941 esac
13943 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13944 && test "$tmp_diet" = no
13945 then
13946 tmp_addflag=
13947 tmp_sharedflag='-shared'
13948 case $cc_basename,$host_cpu in
13949 pgcc*) # Portland Group C compiler
13950 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'
13951 tmp_addflag=' $pic_flag'
13953 pgf77* | pgf90* | pgf95* | pgfortran*)
13954 # Portland Group f77 and f90 compilers
13955 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'
13956 tmp_addflag=' $pic_flag -Mnomain' ;;
13957 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13958 tmp_addflag=' -i_dynamic' ;;
13959 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13960 tmp_addflag=' -i_dynamic -nofor_main' ;;
13961 ifc* | ifort*) # Intel Fortran compiler
13962 tmp_addflag=' -nofor_main' ;;
13963 lf95*) # Lahey Fortran 8.1
13964 whole_archive_flag_spec_FC=
13965 tmp_sharedflag='--shared' ;;
13966 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13967 tmp_sharedflag='-qmkshrobj'
13968 tmp_addflag= ;;
13969 nvcc*) # Cuda Compiler Driver 2.2
13970 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'
13971 compiler_needs_object_FC=yes
13973 esac
13974 case `$CC -V 2>&1 | sed 5q` in
13975 *Sun\ C*) # Sun C 5.9
13976 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'
13977 compiler_needs_object_FC=yes
13978 tmp_sharedflag='-G' ;;
13979 *Sun\ F*) # Sun Fortran 8.3
13980 tmp_sharedflag='-G' ;;
13981 esac
13982 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13984 if test "x$supports_anon_versioning" = xyes; then
13985 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
13986 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
13987 echo "local: *; };" >> $output_objdir/$libname.ver~
13988 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
13991 case $cc_basename in
13992 xlf* | bgf* | bgxlf* | mpixlf*)
13993 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
13994 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
13995 hardcode_libdir_flag_spec_FC=
13996 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
13997 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
13998 if test "x$supports_anon_versioning" = xyes; then
13999 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
14000 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14001 echo "local: *; };" >> $output_objdir/$libname.ver~
14002 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14005 esac
14006 else
14007 ld_shlibs_FC=no
14011 netbsd*)
14012 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14013 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14014 wlarc=
14015 else
14016 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14017 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14021 solaris*)
14022 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14023 ld_shlibs_FC=no
14024 cat <<_LT_EOF 1>&2
14026 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14027 *** create shared libraries on Solaris systems. Therefore, libtool
14028 *** is disabling shared libraries support. We urge you to upgrade GNU
14029 *** binutils to release 2.9.1 or newer. Another option is to modify
14030 *** your PATH or compiler configuration so that the native linker is
14031 *** used, and then restart.
14033 _LT_EOF
14034 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14035 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14036 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14037 else
14038 ld_shlibs_FC=no
14042 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14043 case `$LD -v 2>&1` in
14044 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14045 ld_shlibs_FC=no
14046 cat <<_LT_EOF 1>&2
14048 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14049 *** reliably create shared libraries on SCO systems. Therefore, libtool
14050 *** is disabling shared libraries support. We urge you to upgrade GNU
14051 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14052 *** your PATH or compiler configuration so that the native linker is
14053 *** used, and then restart.
14055 _LT_EOF
14058 # For security reasons, it is highly recommended that you always
14059 # use absolute paths for naming shared libraries, and exclude the
14060 # DT_RUNPATH tag from executables and libraries. But doing so
14061 # requires that you compile everything twice, which is a pain.
14062 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14063 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14064 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14065 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14066 else
14067 ld_shlibs_FC=no
14070 esac
14073 sunos4*)
14074 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14075 wlarc=
14076 hardcode_direct_FC=yes
14077 hardcode_shlibpath_var_FC=no
14081 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
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
14090 if test "$ld_shlibs_FC" = no; then
14091 runpath_var=
14092 hardcode_libdir_flag_spec_FC=
14093 export_dynamic_flag_spec_FC=
14094 whole_archive_flag_spec_FC=
14096 else
14097 # PORTME fill in a description of your system's linker (not GNU ld)
14098 case $host_os in
14099 aix3*)
14100 allow_undefined_flag_FC=unsupported
14101 always_export_symbols_FC=yes
14102 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'
14103 # Note: this linker hardcodes the directories in LIBPATH if there
14104 # are no directories specified by -L.
14105 hardcode_minus_L_FC=yes
14106 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14107 # Neither direct hardcoding nor static linking is supported with a
14108 # broken collect2.
14109 hardcode_direct_FC=unsupported
14113 aix[4-9]*)
14114 if test "$host_cpu" = ia64; then
14115 # On IA64, the linker does run time linking by default, so we don't
14116 # have to do anything special.
14117 aix_use_runtimelinking=no
14118 exp_sym_flag='-Bexport'
14119 no_entry_flag=""
14120 else
14121 # If we're using GNU nm, then we don't want the "-C" option.
14122 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14123 # Also, AIX nm treats weak defined symbols like other global
14124 # defined symbols, whereas GNU nm marks them as "W".
14125 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14126 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'
14127 else
14128 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'
14130 aix_use_runtimelinking=no
14132 # Test if we are trying to use run time linking or normal
14133 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14134 # need to do runtime linking.
14135 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14136 for ld_flag in $LDFLAGS; do
14137 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14138 aix_use_runtimelinking=yes
14139 break
14141 done
14143 esac
14145 exp_sym_flag='-bexport'
14146 no_entry_flag='-bnoentry'
14149 # When large executables or shared objects are built, AIX ld can
14150 # have problems creating the table of contents. If linking a library
14151 # or program results in "error TOC overflow" add -mminimal-toc to
14152 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14153 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14155 archive_cmds_FC=''
14156 hardcode_direct_FC=yes
14157 hardcode_direct_absolute_FC=yes
14158 hardcode_libdir_separator_FC=':'
14159 link_all_deplibs_FC=yes
14160 file_list_spec_FC='${wl}-f,'
14162 if test "$GCC" = yes; then
14163 case $host_os in aix4.[012]|aix4.[012].*)
14164 # We only want to do this on AIX 4.2 and lower, the check
14165 # below for broken collect2 doesn't work under 4.3+
14166 collect2name=`${CC} -print-prog-name=collect2`
14167 if test -f "$collect2name" &&
14168 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14169 then
14170 # We have reworked collect2
14172 else
14173 # We have old collect2
14174 hardcode_direct_FC=unsupported
14175 # It fails to find uninstalled libraries when the uninstalled
14176 # path is not listed in the libpath. Setting hardcode_minus_L
14177 # to unsupported forces relinking
14178 hardcode_minus_L_FC=yes
14179 hardcode_libdir_flag_spec_FC='-L$libdir'
14180 hardcode_libdir_separator_FC=
14183 esac
14184 shared_flag='-shared'
14185 if test "$aix_use_runtimelinking" = yes; then
14186 shared_flag="$shared_flag "'${wl}-G'
14188 else
14189 # not using gcc
14190 if test "$host_cpu" = ia64; then
14191 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14192 # chokes on -Wl,-G. The following line is correct:
14193 shared_flag='-G'
14194 else
14195 if test "$aix_use_runtimelinking" = yes; then
14196 shared_flag='${wl}-G'
14197 else
14198 shared_flag='${wl}-bM:SRE'
14203 export_dynamic_flag_spec_FC='${wl}-bexpall'
14204 # It seems that -bexpall does not export symbols beginning with
14205 # underscore (_), so it is better to generate a list of symbols to export.
14206 always_export_symbols_FC=yes
14207 if test "$aix_use_runtimelinking" = yes; then
14208 # Warning - without using the other runtime loading flags (-brtl),
14209 # -berok will link without error, but may produce a broken library.
14210 allow_undefined_flag_FC='-berok'
14211 # Determine the default libpath from the value encoded in an
14212 # empty executable.
14213 if test x$gcc_no_link = xyes; then
14214 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14216 cat > conftest.$ac_ext <<_ACEOF
14217 program main
14220 _ACEOF
14221 if ac_fn_fc_try_link "$LINENO"; then :
14223 lt_aix_libpath_sed='
14224 /Import File Strings/,/^$/ {
14225 /^0/ {
14226 s/^0 *\(.*\)$/\1/
14230 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14231 # Check for a 64-bit object if we didn't find anything.
14232 if test -z "$aix_libpath"; then
14233 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14236 rm -f core conftest.err conftest.$ac_objext \
14237 conftest$ac_exeext conftest.$ac_ext
14238 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14240 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
14241 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"
14242 else
14243 if test "$host_cpu" = ia64; then
14244 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
14245 allow_undefined_flag_FC="-z nodefs"
14246 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"
14247 else
14248 # Determine the default libpath from the value encoded in an
14249 # empty executable.
14250 if test x$gcc_no_link = xyes; then
14251 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14253 cat > conftest.$ac_ext <<_ACEOF
14254 program main
14257 _ACEOF
14258 if ac_fn_fc_try_link "$LINENO"; then :
14260 lt_aix_libpath_sed='
14261 /Import File Strings/,/^$/ {
14262 /^0/ {
14263 s/^0 *\(.*\)$/\1/
14267 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14268 # Check for a 64-bit object if we didn't find anything.
14269 if test -z "$aix_libpath"; then
14270 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14273 rm -f core conftest.err conftest.$ac_objext \
14274 conftest$ac_exeext conftest.$ac_ext
14275 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14277 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
14278 # Warning - without using the other run time loading flags,
14279 # -berok will link without error, but may produce a broken library.
14280 no_undefined_flag_FC=' ${wl}-bernotok'
14281 allow_undefined_flag_FC=' ${wl}-berok'
14282 if test "$with_gnu_ld" = yes; then
14283 # We only use this code for GNU lds that support --whole-archive.
14284 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14285 else
14286 # Exported symbols can be pulled into shared objects from archives
14287 whole_archive_flag_spec_FC='$convenience'
14289 archive_cmds_need_lc_FC=yes
14290 # This is similar to how AIX traditionally builds its shared libraries.
14291 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'
14296 amigaos*)
14297 case $host_cpu in
14298 powerpc)
14299 # see comment about AmigaOS4 .so support
14300 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14301 archive_expsym_cmds_FC=''
14303 m68k)
14304 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)'
14305 hardcode_libdir_flag_spec_FC='-L$libdir'
14306 hardcode_minus_L_FC=yes
14308 esac
14311 bsdi[45]*)
14312 export_dynamic_flag_spec_FC=-rdynamic
14315 cygwin* | mingw* | pw32* | cegcc*)
14316 # When not using gcc, we currently assume that we are using
14317 # Microsoft Visual C++.
14318 # hardcode_libdir_flag_spec is actually meaningless, as there is
14319 # no search path for DLLs.
14320 hardcode_libdir_flag_spec_FC=' '
14321 allow_undefined_flag_FC=unsupported
14322 # Tell ltmain to make .lib files, not .a files.
14323 libext=lib
14324 # Tell ltmain to make .dll files, not .so files.
14325 shrext_cmds=".dll"
14326 # FIXME: Setting linknames here is a bad hack.
14327 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14328 # The linker will automatically build a .lib file if we build a DLL.
14329 old_archive_from_new_cmds_FC='true'
14330 # FIXME: Should let the user specify the lib program.
14331 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
14332 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
14333 enable_shared_with_static_runtimes_FC=yes
14336 darwin* | rhapsody*)
14339 archive_cmds_need_lc_FC=no
14340 hardcode_direct_FC=no
14341 hardcode_automatic_FC=yes
14342 hardcode_shlibpath_var_FC=unsupported
14343 if test "$lt_cv_ld_force_load" = "yes"; then
14344 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\"`'
14345 else
14346 whole_archive_flag_spec_FC=''
14348 link_all_deplibs_FC=yes
14349 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
14350 case $cc_basename in
14351 ifort*) _lt_dar_can_shared=yes ;;
14352 *) _lt_dar_can_shared=$GCC ;;
14353 esac
14354 if test "$_lt_dar_can_shared" = "yes"; then
14355 output_verbose_link_cmd=func_echo_all
14356 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}"
14357 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14358 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}"
14359 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}"
14361 else
14362 ld_shlibs_FC=no
14367 dgux*)
14368 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14369 hardcode_libdir_flag_spec_FC='-L$libdir'
14370 hardcode_shlibpath_var_FC=no
14373 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14374 # support. Future versions do this automatically, but an explicit c++rt0.o
14375 # does not break anything, and helps significantly (at the cost of a little
14376 # extra space).
14377 freebsd2.2*)
14378 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14379 hardcode_libdir_flag_spec_FC='-R$libdir'
14380 hardcode_direct_FC=yes
14381 hardcode_shlibpath_var_FC=no
14384 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14385 freebsd2.*)
14386 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14387 hardcode_direct_FC=yes
14388 hardcode_minus_L_FC=yes
14389 hardcode_shlibpath_var_FC=no
14392 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14393 freebsd* | dragonfly*)
14394 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14395 hardcode_libdir_flag_spec_FC='-R$libdir'
14396 hardcode_direct_FC=yes
14397 hardcode_shlibpath_var_FC=no
14400 hpux9*)
14401 if test "$GCC" = yes; then
14402 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'
14403 else
14404 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'
14406 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14407 hardcode_libdir_separator_FC=:
14408 hardcode_direct_FC=yes
14410 # hardcode_minus_L: Not really in the search PATH,
14411 # but as the default location of the library.
14412 hardcode_minus_L_FC=yes
14413 export_dynamic_flag_spec_FC='${wl}-E'
14416 hpux10*)
14417 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14418 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14419 else
14420 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14422 if test "$with_gnu_ld" = no; then
14423 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14424 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
14425 hardcode_libdir_separator_FC=:
14426 hardcode_direct_FC=yes
14427 hardcode_direct_absolute_FC=yes
14428 export_dynamic_flag_spec_FC='${wl}-E'
14429 # hardcode_minus_L: Not really in the search PATH,
14430 # but as the default location of the library.
14431 hardcode_minus_L_FC=yes
14435 hpux11*)
14436 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14437 case $host_cpu in
14438 hppa*64*)
14439 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14441 ia64*)
14442 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14445 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14447 esac
14448 else
14449 case $host_cpu in
14450 hppa*64*)
14451 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14453 ia64*)
14454 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14457 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14459 esac
14461 if test "$with_gnu_ld" = no; then
14462 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14463 hardcode_libdir_separator_FC=:
14465 case $host_cpu in
14466 hppa*64*|ia64*)
14467 hardcode_direct_FC=no
14468 hardcode_shlibpath_var_FC=no
14471 hardcode_direct_FC=yes
14472 hardcode_direct_absolute_FC=yes
14473 export_dynamic_flag_spec_FC='${wl}-E'
14475 # hardcode_minus_L: Not really in the search PATH,
14476 # but as the default location of the library.
14477 hardcode_minus_L_FC=yes
14479 esac
14483 irix5* | irix6* | nonstopux*)
14484 if test "$GCC" = yes; then
14485 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'
14486 # Try to use the -exported_symbol ld option, if it does not
14487 # work, assume that -exports_file does not work either and
14488 # implicitly export all symbols.
14489 save_LDFLAGS="$LDFLAGS"
14490 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14491 if test x$gcc_no_link = xyes; then
14492 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14494 cat > conftest.$ac_ext <<_ACEOF
14495 int foo(void) {}
14496 _ACEOF
14497 if ac_fn_fc_try_link "$LINENO"; then :
14498 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'
14501 rm -f core conftest.err conftest.$ac_objext \
14502 conftest$ac_exeext conftest.$ac_ext
14503 LDFLAGS="$save_LDFLAGS"
14504 else
14505 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'
14506 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'
14508 archive_cmds_need_lc_FC='no'
14509 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14510 hardcode_libdir_separator_FC=:
14511 inherit_rpath_FC=yes
14512 link_all_deplibs_FC=yes
14515 netbsd*)
14516 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14517 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14518 else
14519 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14521 hardcode_libdir_flag_spec_FC='-R$libdir'
14522 hardcode_direct_FC=yes
14523 hardcode_shlibpath_var_FC=no
14526 newsos6)
14527 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14528 hardcode_direct_FC=yes
14529 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14530 hardcode_libdir_separator_FC=:
14531 hardcode_shlibpath_var_FC=no
14534 *nto* | *qnx*)
14537 openbsd*)
14538 if test -f /usr/libexec/ld.so; then
14539 hardcode_direct_FC=yes
14540 hardcode_shlibpath_var_FC=no
14541 hardcode_direct_absolute_FC=yes
14542 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14543 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14544 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14545 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14546 export_dynamic_flag_spec_FC='${wl}-E'
14547 else
14548 case $host_os in
14549 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14550 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14551 hardcode_libdir_flag_spec_FC='-R$libdir'
14554 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14555 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14557 esac
14559 else
14560 ld_shlibs_FC=no
14564 os2*)
14565 hardcode_libdir_flag_spec_FC='-L$libdir'
14566 hardcode_minus_L_FC=yes
14567 allow_undefined_flag_FC=unsupported
14568 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'
14569 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14572 osf3*)
14573 if test "$GCC" = yes; then
14574 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
14575 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'
14576 else
14577 allow_undefined_flag_FC=' -expect_unresolved \*'
14578 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'
14580 archive_cmds_need_lc_FC='no'
14581 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14582 hardcode_libdir_separator_FC=:
14585 osf4* | osf5*) # as osf3* with the addition of -msym flag
14586 if test "$GCC" = yes; then
14587 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
14588 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'
14589 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14590 else
14591 allow_undefined_flag_FC=' -expect_unresolved \*'
14592 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'
14593 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~
14594 $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'
14596 # Both c and cxx compiler support -rpath directly
14597 hardcode_libdir_flag_spec_FC='-rpath $libdir'
14599 archive_cmds_need_lc_FC='no'
14600 hardcode_libdir_separator_FC=:
14603 solaris*)
14604 no_undefined_flag_FC=' -z defs'
14605 if test "$GCC" = yes; then
14606 wlarc='${wl}'
14607 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14608 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14609 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14610 else
14611 case `$CC -V 2>&1` in
14612 *"Compilers 5.0"*)
14613 wlarc=''
14614 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14615 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14616 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14619 wlarc='${wl}'
14620 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14621 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14622 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14624 esac
14626 hardcode_libdir_flag_spec_FC='-R$libdir'
14627 hardcode_shlibpath_var_FC=no
14628 case $host_os in
14629 solaris2.[0-5] | solaris2.[0-5].*) ;;
14631 # The compiler driver will combine and reorder linker options,
14632 # but understands `-z linker_flag'. GCC discards it without `$wl',
14633 # but is careful enough not to reorder.
14634 # Supported since Solaris 2.6 (maybe 2.5.1?)
14635 if test "$GCC" = yes; then
14636 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14637 else
14638 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
14641 esac
14642 link_all_deplibs_FC=yes
14645 sunos4*)
14646 if test "x$host_vendor" = xsequent; then
14647 # Use $CC to link under sequent, because it throws in some extra .o
14648 # files that make .init and .fini sections work.
14649 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14650 else
14651 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14653 hardcode_libdir_flag_spec_FC='-L$libdir'
14654 hardcode_direct_FC=yes
14655 hardcode_minus_L_FC=yes
14656 hardcode_shlibpath_var_FC=no
14659 sysv4)
14660 case $host_vendor in
14661 sni)
14662 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14663 hardcode_direct_FC=yes # is this really true???
14665 siemens)
14666 ## LD is ld it makes a PLAMLIB
14667 ## CC just makes a GrossModule.
14668 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14669 reload_cmds_FC='$CC -r -o $output$reload_objs'
14670 hardcode_direct_FC=no
14672 motorola)
14673 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14674 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
14676 esac
14677 runpath_var='LD_RUN_PATH'
14678 hardcode_shlibpath_var_FC=no
14681 sysv4.3*)
14682 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14683 hardcode_shlibpath_var_FC=no
14684 export_dynamic_flag_spec_FC='-Bexport'
14687 sysv4*MP*)
14688 if test -d /usr/nec; then
14689 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14690 hardcode_shlibpath_var_FC=no
14691 runpath_var=LD_RUN_PATH
14692 hardcode_runpath_var=yes
14693 ld_shlibs_FC=yes
14697 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14698 no_undefined_flag_FC='${wl}-z,text'
14699 archive_cmds_need_lc_FC=no
14700 hardcode_shlibpath_var_FC=no
14701 runpath_var='LD_RUN_PATH'
14703 if test "$GCC" = yes; then
14704 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14705 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14706 else
14707 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14708 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14712 sysv5* | sco3.2v5* | sco5v6*)
14713 # Note: We can NOT use -z defs as we might desire, because we do not
14714 # link with -lc, and that would cause any symbols used from libc to
14715 # always be unresolved, which means just about no library would
14716 # ever link correctly. If we're not using GNU ld we use -z text
14717 # though, which does catch some bad symbols but isn't as heavy-handed
14718 # as -z defs.
14719 no_undefined_flag_FC='${wl}-z,text'
14720 allow_undefined_flag_FC='${wl}-z,nodefs'
14721 archive_cmds_need_lc_FC=no
14722 hardcode_shlibpath_var_FC=no
14723 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
14724 hardcode_libdir_separator_FC=':'
14725 link_all_deplibs_FC=yes
14726 export_dynamic_flag_spec_FC='${wl}-Bexport'
14727 runpath_var='LD_RUN_PATH'
14729 if test "$GCC" = yes; then
14730 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14731 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14732 else
14733 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14734 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14738 uts4*)
14739 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14740 hardcode_libdir_flag_spec_FC='-L$libdir'
14741 hardcode_shlibpath_var_FC=no
14745 ld_shlibs_FC=no
14747 esac
14749 if test x$host_vendor = xsni; then
14750 case $host in
14751 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14752 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
14754 esac
14758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
14759 $as_echo "$ld_shlibs_FC" >&6; }
14760 test "$ld_shlibs_FC" = no && can_build_shared=no
14762 with_gnu_ld_FC=$with_gnu_ld
14770 # Do we need to explicitly link libc?
14772 case "x$archive_cmds_need_lc_FC" in
14773 x|xyes)
14774 # Assume -lc should be added
14775 archive_cmds_need_lc_FC=yes
14777 if test "$enable_shared" = yes && test "$GCC" = yes; then
14778 case $archive_cmds_FC in
14779 *'~'*)
14780 # FIXME: we may have to deal with multi-command sequences.
14782 '$CC '*)
14783 # Test whether the compiler implicitly links with -lc since on some
14784 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14785 # to ld, don't add -lc before -lgcc.
14786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14787 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14788 if test "${lt_cv_archive_cmds_need_lc_FC+set}" = set; then :
14789 $as_echo_n "(cached) " >&6
14790 else
14791 $RM conftest*
14792 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14794 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14795 (eval $ac_compile) 2>&5
14796 ac_status=$?
14797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14798 test $ac_status = 0; } 2>conftest.err; then
14799 soname=conftest
14800 lib=conftest
14801 libobjs=conftest.$ac_objext
14802 deplibs=
14803 wl=$lt_prog_compiler_wl_FC
14804 pic_flag=$lt_prog_compiler_pic_FC
14805 compiler_flags=-v
14806 linker_flags=-v
14807 verstring=
14808 output_objdir=.
14809 libname=conftest
14810 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
14811 allow_undefined_flag_FC=
14812 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14813 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14814 ac_status=$?
14815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14816 test $ac_status = 0; }
14817 then
14818 lt_cv_archive_cmds_need_lc_FC=no
14819 else
14820 lt_cv_archive_cmds_need_lc_FC=yes
14822 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
14823 else
14824 cat conftest.err 1>&5
14826 $RM conftest*
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
14830 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
14831 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
14833 esac
14836 esac
14901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14902 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14904 library_names_spec=
14905 libname_spec='lib$name'
14906 soname_spec=
14907 shrext_cmds=".so"
14908 postinstall_cmds=
14909 postuninstall_cmds=
14910 finish_cmds=
14911 finish_eval=
14912 shlibpath_var=
14913 shlibpath_overrides_runpath=unknown
14914 version_type=none
14915 dynamic_linker="$host_os ld.so"
14916 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14917 need_lib_prefix=unknown
14918 hardcode_into_libs=no
14920 # when you set need_version to no, make sure it does not cause -set_version
14921 # flags to be left without arguments
14922 need_version=unknown
14924 case $host_os in
14925 aix3*)
14926 version_type=linux
14927 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14928 shlibpath_var=LIBPATH
14930 # AIX 3 has no versioning support, so we append a major version to the name.
14931 soname_spec='${libname}${release}${shared_ext}$major'
14934 aix[4-9]*)
14935 version_type=linux
14936 need_lib_prefix=no
14937 need_version=no
14938 hardcode_into_libs=yes
14939 if test "$host_cpu" = ia64; then
14940 # AIX 5 supports IA64
14941 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14942 shlibpath_var=LD_LIBRARY_PATH
14943 else
14944 # With GCC up to 2.95.x, collect2 would create an import file
14945 # for dependence libraries. The import file would start with
14946 # the line `#! .'. This would cause the generated library to
14947 # depend on `.', always an invalid library. This was fixed in
14948 # development snapshots of GCC prior to 3.0.
14949 case $host_os in
14950 aix4 | aix4.[01] | aix4.[01].*)
14951 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14952 echo ' yes '
14953 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14955 else
14956 can_build_shared=no
14959 esac
14960 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14961 # soname into executable. Probably we can add versioning support to
14962 # collect2, so additional links can be useful in future.
14963 if test "$aix_use_runtimelinking" = yes; then
14964 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14965 # instead of lib<name>.a to let people know that these are not
14966 # typical AIX shared libraries.
14967 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14968 else
14969 # We preserve .a as extension for shared libraries through AIX4.2
14970 # and later when we are not doing run time linking.
14971 library_names_spec='${libname}${release}.a $libname.a'
14972 soname_spec='${libname}${release}${shared_ext}$major'
14974 shlibpath_var=LIBPATH
14978 amigaos*)
14979 case $host_cpu in
14980 powerpc)
14981 # Since July 2007 AmigaOS4 officially supports .so libraries.
14982 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
14983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14985 m68k)
14986 library_names_spec='$libname.ixlibrary $libname.a'
14987 # Create ${libname}_ixlibrary.a entries in /sys/libs.
14988 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'
14990 esac
14993 beos*)
14994 library_names_spec='${libname}${shared_ext}'
14995 dynamic_linker="$host_os ld.so"
14996 shlibpath_var=LIBRARY_PATH
14999 bsdi[45]*)
15000 version_type=linux
15001 need_version=no
15002 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15003 soname_spec='${libname}${release}${shared_ext}$major'
15004 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15005 shlibpath_var=LD_LIBRARY_PATH
15006 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15007 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15008 # the default ld.so.conf also contains /usr/contrib/lib and
15009 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15010 # libtool to hard-code these into programs
15013 cygwin* | mingw* | pw32* | cegcc*)
15014 version_type=windows
15015 shrext_cmds=".dll"
15016 need_version=no
15017 need_lib_prefix=no
15019 case $GCC,$host_os in
15020 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15021 library_names_spec='$libname.dll.a'
15022 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15023 postinstall_cmds='base_file=`basename \${file}`~
15024 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15025 dldir=$destdir/`dirname \$dlpath`~
15026 test -d \$dldir || mkdir -p \$dldir~
15027 $install_prog $dir/$dlname \$dldir/$dlname~
15028 chmod a+x \$dldir/$dlname~
15029 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15030 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15032 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15033 dlpath=$dir/\$dldll~
15034 $RM \$dlpath'
15035 shlibpath_overrides_runpath=yes
15037 case $host_os in
15038 cygwin*)
15039 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15040 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15043 mingw* | cegcc*)
15044 # MinGW DLLs use traditional 'lib' prefix
15045 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15047 pw32*)
15048 # pw32 DLLs use 'pw' prefix rather than 'lib'
15049 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15051 esac
15055 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15057 esac
15058 dynamic_linker='Win32 ld.exe'
15059 # FIXME: first we should search . and the directory the executable is in
15060 shlibpath_var=PATH
15063 darwin* | rhapsody*)
15064 dynamic_linker="$host_os dyld"
15065 version_type=darwin
15066 need_lib_prefix=no
15067 need_version=no
15068 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15069 soname_spec='${libname}${release}${major}$shared_ext'
15070 shlibpath_overrides_runpath=yes
15071 shlibpath_var=DYLD_LIBRARY_PATH
15072 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15074 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15077 dgux*)
15078 version_type=linux
15079 need_lib_prefix=no
15080 need_version=no
15081 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15082 soname_spec='${libname}${release}${shared_ext}$major'
15083 shlibpath_var=LD_LIBRARY_PATH
15086 freebsd* | dragonfly*)
15087 # DragonFly does not have aout. When/if they implement a new
15088 # versioning mechanism, adjust this.
15089 if test -x /usr/bin/objformat; then
15090 objformat=`/usr/bin/objformat`
15091 else
15092 case $host_os in
15093 freebsd[23].*) objformat=aout ;;
15094 *) objformat=elf ;;
15095 esac
15097 version_type=freebsd-$objformat
15098 case $version_type in
15099 freebsd-elf*)
15100 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15101 need_version=no
15102 need_lib_prefix=no
15104 freebsd-*)
15105 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15106 need_version=yes
15108 esac
15109 shlibpath_var=LD_LIBRARY_PATH
15110 case $host_os in
15111 freebsd2.*)
15112 shlibpath_overrides_runpath=yes
15114 freebsd3.[01]* | freebsdelf3.[01]*)
15115 shlibpath_overrides_runpath=yes
15116 hardcode_into_libs=yes
15118 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15119 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15120 shlibpath_overrides_runpath=no
15121 hardcode_into_libs=yes
15123 *) # from 4.6 on, and DragonFly
15124 shlibpath_overrides_runpath=yes
15125 hardcode_into_libs=yes
15127 esac
15130 gnu*)
15131 version_type=linux
15132 need_lib_prefix=no
15133 need_version=no
15134 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15135 soname_spec='${libname}${release}${shared_ext}$major'
15136 shlibpath_var=LD_LIBRARY_PATH
15137 hardcode_into_libs=yes
15140 haiku*)
15141 version_type=linux
15142 need_lib_prefix=no
15143 need_version=no
15144 dynamic_linker="$host_os runtime_loader"
15145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15146 soname_spec='${libname}${release}${shared_ext}$major'
15147 shlibpath_var=LIBRARY_PATH
15148 shlibpath_overrides_runpath=yes
15149 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
15150 hardcode_into_libs=yes
15153 hpux9* | hpux10* | hpux11*)
15154 # Give a soname corresponding to the major version so that dld.sl refuses to
15155 # link against other versions.
15156 version_type=sunos
15157 need_lib_prefix=no
15158 need_version=no
15159 case $host_cpu in
15160 ia64*)
15161 shrext_cmds='.so'
15162 hardcode_into_libs=yes
15163 dynamic_linker="$host_os dld.so"
15164 shlibpath_var=LD_LIBRARY_PATH
15165 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15166 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15167 soname_spec='${libname}${release}${shared_ext}$major'
15168 if test "X$HPUX_IA64_MODE" = X32; then
15169 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15170 else
15171 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15173 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15175 hppa*64*)
15176 shrext_cmds='.sl'
15177 hardcode_into_libs=yes
15178 dynamic_linker="$host_os dld.sl"
15179 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15180 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15181 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15182 soname_spec='${libname}${release}${shared_ext}$major'
15183 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15184 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15187 shrext_cmds='.sl'
15188 dynamic_linker="$host_os dld.sl"
15189 shlibpath_var=SHLIB_PATH
15190 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15191 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15192 soname_spec='${libname}${release}${shared_ext}$major'
15194 esac
15195 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15196 postinstall_cmds='chmod 555 $lib'
15197 # or fails outright, so override atomically:
15198 install_override_mode=555
15201 interix[3-9]*)
15202 version_type=linux
15203 need_lib_prefix=no
15204 need_version=no
15205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15206 soname_spec='${libname}${release}${shared_ext}$major'
15207 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15208 shlibpath_var=LD_LIBRARY_PATH
15209 shlibpath_overrides_runpath=no
15210 hardcode_into_libs=yes
15213 irix5* | irix6* | nonstopux*)
15214 case $host_os in
15215 nonstopux*) version_type=nonstopux ;;
15217 if test "$lt_cv_prog_gnu_ld" = yes; then
15218 version_type=linux
15219 else
15220 version_type=irix
15221 fi ;;
15222 esac
15223 need_lib_prefix=no
15224 need_version=no
15225 soname_spec='${libname}${release}${shared_ext}$major'
15226 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15227 case $host_os in
15228 irix5* | nonstopux*)
15229 libsuff= shlibsuff=
15232 case $LD in # libtool.m4 will add one of these switches to LD
15233 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15234 libsuff= shlibsuff= libmagic=32-bit;;
15235 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15236 libsuff=32 shlibsuff=N32 libmagic=N32;;
15237 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15238 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15239 *) libsuff= shlibsuff= libmagic=never-match;;
15240 esac
15242 esac
15243 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15244 shlibpath_overrides_runpath=no
15245 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15246 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15247 hardcode_into_libs=yes
15250 # No shared lib support for Linux oldld, aout, or coff.
15251 linux*oldld* | linux*aout* | linux*coff*)
15252 dynamic_linker=no
15255 # This must be Linux ELF.
15256 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15257 version_type=linux
15258 need_lib_prefix=no
15259 need_version=no
15260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15261 soname_spec='${libname}${release}${shared_ext}$major'
15262 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15263 shlibpath_var=LD_LIBRARY_PATH
15264 shlibpath_overrides_runpath=no
15266 # Some binutils ld are patched to set DT_RUNPATH
15267 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
15268 $as_echo_n "(cached) " >&6
15269 else
15270 lt_cv_shlibpath_overrides_runpath=no
15271 save_LDFLAGS=$LDFLAGS
15272 save_libdir=$libdir
15273 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
15274 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
15275 if test x$gcc_no_link = xyes; then
15276 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
15278 cat > conftest.$ac_ext <<_ACEOF
15279 program main
15282 _ACEOF
15283 if ac_fn_fc_try_link "$LINENO"; then :
15284 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15285 lt_cv_shlibpath_overrides_runpath=yes
15288 rm -f core conftest.err conftest.$ac_objext \
15289 conftest$ac_exeext conftest.$ac_ext
15290 LDFLAGS=$save_LDFLAGS
15291 libdir=$save_libdir
15295 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15297 # This implies no fast_install, which is unacceptable.
15298 # Some rework will be needed to allow for fast_install
15299 # before this can be enabled.
15300 hardcode_into_libs=yes
15302 # Append ld.so.conf contents to the search path
15303 if test -f /etc/ld.so.conf; then
15304 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' ' '`
15305 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15308 # We used to test for /lib/ld.so.1 and disable shared libraries on
15309 # powerpc, because MkLinux only supported shared libraries with the
15310 # GNU dynamic linker. Since this was broken with cross compilers,
15311 # most powerpc-linux boxes support dynamic linking these days and
15312 # people can always --disable-shared, the test was removed, and we
15313 # assume the GNU/Linux dynamic linker is in use.
15314 dynamic_linker='GNU/Linux ld.so'
15317 netbsd*)
15318 version_type=sunos
15319 need_lib_prefix=no
15320 need_version=no
15321 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15323 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15324 dynamic_linker='NetBSD (a.out) ld.so'
15325 else
15326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15327 soname_spec='${libname}${release}${shared_ext}$major'
15328 dynamic_linker='NetBSD ld.elf_so'
15330 shlibpath_var=LD_LIBRARY_PATH
15331 shlibpath_overrides_runpath=yes
15332 hardcode_into_libs=yes
15335 newsos6)
15336 version_type=linux
15337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15338 shlibpath_var=LD_LIBRARY_PATH
15339 shlibpath_overrides_runpath=yes
15342 *nto* | *qnx*)
15343 version_type=qnx
15344 need_lib_prefix=no
15345 need_version=no
15346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15347 soname_spec='${libname}${release}${shared_ext}$major'
15348 shlibpath_var=LD_LIBRARY_PATH
15349 shlibpath_overrides_runpath=no
15350 hardcode_into_libs=yes
15351 dynamic_linker='ldqnx.so'
15354 openbsd*)
15355 version_type=sunos
15356 sys_lib_dlsearch_path_spec="/usr/lib"
15357 need_lib_prefix=no
15358 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15359 case $host_os in
15360 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15361 *) need_version=no ;;
15362 esac
15363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15364 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15365 shlibpath_var=LD_LIBRARY_PATH
15366 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15367 case $host_os in
15368 openbsd2.[89] | openbsd2.[89].*)
15369 shlibpath_overrides_runpath=no
15372 shlibpath_overrides_runpath=yes
15374 esac
15375 else
15376 shlibpath_overrides_runpath=yes
15380 os2*)
15381 libname_spec='$name'
15382 shrext_cmds=".dll"
15383 need_lib_prefix=no
15384 library_names_spec='$libname${shared_ext} $libname.a'
15385 dynamic_linker='OS/2 ld.exe'
15386 shlibpath_var=LIBPATH
15389 osf3* | osf4* | osf5*)
15390 version_type=osf
15391 need_lib_prefix=no
15392 need_version=no
15393 soname_spec='${libname}${release}${shared_ext}$major'
15394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15395 shlibpath_var=LD_LIBRARY_PATH
15396 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15397 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15400 rdos*)
15401 dynamic_linker=no
15404 solaris*)
15405 version_type=linux
15406 need_lib_prefix=no
15407 need_version=no
15408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15409 soname_spec='${libname}${release}${shared_ext}$major'
15410 shlibpath_var=LD_LIBRARY_PATH
15411 shlibpath_overrides_runpath=yes
15412 hardcode_into_libs=yes
15413 # ldd complains unless libraries are executable
15414 postinstall_cmds='chmod +x $lib'
15417 sunos4*)
15418 version_type=sunos
15419 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15420 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15421 shlibpath_var=LD_LIBRARY_PATH
15422 shlibpath_overrides_runpath=yes
15423 if test "$with_gnu_ld" = yes; then
15424 need_lib_prefix=no
15426 need_version=yes
15429 sysv4 | sysv4.3*)
15430 version_type=linux
15431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15432 soname_spec='${libname}${release}${shared_ext}$major'
15433 shlibpath_var=LD_LIBRARY_PATH
15434 case $host_vendor in
15435 sni)
15436 shlibpath_overrides_runpath=no
15437 need_lib_prefix=no
15438 runpath_var=LD_RUN_PATH
15440 siemens)
15441 need_lib_prefix=no
15443 motorola)
15444 need_lib_prefix=no
15445 need_version=no
15446 shlibpath_overrides_runpath=no
15447 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15449 esac
15452 sysv4*MP*)
15453 if test -d /usr/nec ;then
15454 version_type=linux
15455 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15456 soname_spec='$libname${shared_ext}.$major'
15457 shlibpath_var=LD_LIBRARY_PATH
15461 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15462 version_type=freebsd-elf
15463 need_lib_prefix=no
15464 need_version=no
15465 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15466 soname_spec='${libname}${release}${shared_ext}$major'
15467 shlibpath_var=LD_LIBRARY_PATH
15468 shlibpath_overrides_runpath=yes
15469 hardcode_into_libs=yes
15470 if test "$with_gnu_ld" = yes; then
15471 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15472 else
15473 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15474 case $host_os in
15475 sco3.2v5*)
15476 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15478 esac
15480 sys_lib_dlsearch_path_spec='/usr/lib'
15483 tpf*)
15484 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15485 version_type=linux
15486 need_lib_prefix=no
15487 need_version=no
15488 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15489 shlibpath_var=LD_LIBRARY_PATH
15490 shlibpath_overrides_runpath=no
15491 hardcode_into_libs=yes
15494 uts4*)
15495 version_type=linux
15496 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15497 soname_spec='${libname}${release}${shared_ext}$major'
15498 shlibpath_var=LD_LIBRARY_PATH
15502 dynamic_linker=no
15504 esac
15505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15506 $as_echo "$dynamic_linker" >&6; }
15507 test "$dynamic_linker" = no && can_build_shared=no
15509 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15510 if test "$GCC" = yes; then
15511 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15514 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15515 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15517 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15518 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15559 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15560 hardcode_action_FC=
15561 if test -n "$hardcode_libdir_flag_spec_FC" ||
15562 test -n "$runpath_var_FC" ||
15563 test "X$hardcode_automatic_FC" = "Xyes" ; then
15565 # We can hardcode non-existent directories.
15566 if test "$hardcode_direct_FC" != no &&
15567 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15568 # have to relink, otherwise we might link with an installed library
15569 # when we should be linking with a yet-to-be-installed one
15570 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
15571 test "$hardcode_minus_L_FC" != no; then
15572 # Linking always hardcodes the temporary library directory.
15573 hardcode_action_FC=relink
15574 else
15575 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15576 hardcode_action_FC=immediate
15578 else
15579 # We cannot hardcode anything, or else we can only hardcode existing
15580 # directories.
15581 hardcode_action_FC=unsupported
15583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
15584 $as_echo "$hardcode_action_FC" >&6; }
15586 if test "$hardcode_action_FC" = relink ||
15587 test "$inherit_rpath_FC" = yes; then
15588 # Fast installation is not supported
15589 enable_fast_install=no
15590 elif test "$shlibpath_overrides_runpath" = yes ||
15591 test "$enable_shared" = no; then
15592 # Fast installation is not necessary
15593 enable_fast_install=needless
15602 fi # test -n "$compiler"
15604 GCC=$lt_save_GCC
15605 CC="$lt_save_CC"
15606 fi # test "$_lt_disable_FC" != yes
15608 ac_ext=c
15609 ac_cpp='$CPP $CPPFLAGS'
15610 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15611 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15612 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15616 # extra LD Flags which are required for targets
15617 case "${host}" in
15618 *-darwin*)
15619 # Darwin needs -single_module when linking libgfortran
15620 extra_ldflags_libgfortran=-Wl,-single_module
15622 esac
15625 # We need a working compiler at that point, otherwise give a clear
15626 # error message and bail out.
15628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the GNU Fortran compiler is working" >&5
15629 $as_echo_n "checking whether the GNU Fortran compiler is working... " >&6; }
15630 ac_ext=${ac_fc_srcext-f}
15631 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
15632 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
15633 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
15635 cat > conftest.$ac_ext <<_ACEOF
15637 program foo
15638 real, parameter :: bar = sin (12.34 / 2.5)
15639 end program foo
15640 _ACEOF
15641 if ac_fn_fc_try_compile "$LINENO"; then :
15642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15643 $as_echo "yes" >&6; }
15644 else
15645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15646 $as_echo "no" >&6; }
15647 as_fn_error "GNU Fortran is not working; please report a bug in http://gcc.gnu.org/bugzilla, attaching $PWD/config.log" "$LINENO" 5
15650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15651 ac_ext=c
15652 ac_cpp='$CPP $CPPFLAGS'
15653 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15654 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15655 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15659 # Check whether --enable-largefile was given.
15660 if test "${enable_largefile+set}" = set; then :
15661 enableval=$enable_largefile;
15664 if test "$enable_largefile" != no; then
15666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15667 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15668 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
15669 $as_echo_n "(cached) " >&6
15670 else
15671 ac_cv_sys_largefile_CC=no
15672 if test "$GCC" != yes; then
15673 ac_save_CC=$CC
15674 while :; do
15675 # IRIX 6.2 and later do not support large files by default,
15676 # so use the C compiler's -n32 option if that helps.
15677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15678 /* end confdefs.h. */
15679 #include <sys/types.h>
15680 /* Check that off_t can represent 2**63 - 1 correctly.
15681 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15682 since some C++ compilers masquerading as C compilers
15683 incorrectly reject 9223372036854775807. */
15684 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15685 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15686 && LARGE_OFF_T % 2147483647 == 1)
15687 ? 1 : -1];
15689 main ()
15693 return 0;
15695 _ACEOF
15696 if ac_fn_c_try_compile "$LINENO"; then :
15697 break
15699 rm -f core conftest.err conftest.$ac_objext
15700 CC="$CC -n32"
15701 if ac_fn_c_try_compile "$LINENO"; then :
15702 ac_cv_sys_largefile_CC=' -n32'; break
15704 rm -f core conftest.err conftest.$ac_objext
15705 break
15706 done
15707 CC=$ac_save_CC
15708 rm -f conftest.$ac_ext
15711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15712 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15713 if test "$ac_cv_sys_largefile_CC" != no; then
15714 CC=$CC$ac_cv_sys_largefile_CC
15717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15718 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15719 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
15720 $as_echo_n "(cached) " >&6
15721 else
15722 while :; do
15723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15724 /* end confdefs.h. */
15725 #include <sys/types.h>
15726 /* Check that off_t can represent 2**63 - 1 correctly.
15727 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15728 since some C++ compilers masquerading as C compilers
15729 incorrectly reject 9223372036854775807. */
15730 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15731 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15732 && LARGE_OFF_T % 2147483647 == 1)
15733 ? 1 : -1];
15735 main ()
15739 return 0;
15741 _ACEOF
15742 if ac_fn_c_try_compile "$LINENO"; then :
15743 ac_cv_sys_file_offset_bits=no; break
15745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15747 /* end confdefs.h. */
15748 #define _FILE_OFFSET_BITS 64
15749 #include <sys/types.h>
15750 /* Check that off_t can represent 2**63 - 1 correctly.
15751 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15752 since some C++ compilers masquerading as C compilers
15753 incorrectly reject 9223372036854775807. */
15754 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15755 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15756 && LARGE_OFF_T % 2147483647 == 1)
15757 ? 1 : -1];
15759 main ()
15763 return 0;
15765 _ACEOF
15766 if ac_fn_c_try_compile "$LINENO"; then :
15767 ac_cv_sys_file_offset_bits=64; break
15769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15770 ac_cv_sys_file_offset_bits=unknown
15771 break
15772 done
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15775 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15776 case $ac_cv_sys_file_offset_bits in #(
15777 no | unknown) ;;
15779 cat >>confdefs.h <<_ACEOF
15780 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15781 _ACEOF
15783 esac
15784 rm -rf conftest*
15785 if test $ac_cv_sys_file_offset_bits = unknown; then
15786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15787 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15788 if test "${ac_cv_sys_large_files+set}" = set; then :
15789 $as_echo_n "(cached) " >&6
15790 else
15791 while :; do
15792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15793 /* end confdefs.h. */
15794 #include <sys/types.h>
15795 /* Check that off_t can represent 2**63 - 1 correctly.
15796 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15797 since some C++ compilers masquerading as C compilers
15798 incorrectly reject 9223372036854775807. */
15799 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15800 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15801 && LARGE_OFF_T % 2147483647 == 1)
15802 ? 1 : -1];
15804 main ()
15808 return 0;
15810 _ACEOF
15811 if ac_fn_c_try_compile "$LINENO"; then :
15812 ac_cv_sys_large_files=no; break
15814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15816 /* end confdefs.h. */
15817 #define _LARGE_FILES 1
15818 #include <sys/types.h>
15819 /* Check that off_t can represent 2**63 - 1 correctly.
15820 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15821 since some C++ compilers masquerading as C compilers
15822 incorrectly reject 9223372036854775807. */
15823 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15824 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15825 && LARGE_OFF_T % 2147483647 == 1)
15826 ? 1 : -1];
15828 main ()
15832 return 0;
15834 _ACEOF
15835 if ac_fn_c_try_compile "$LINENO"; then :
15836 ac_cv_sys_large_files=1; break
15838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15839 ac_cv_sys_large_files=unknown
15840 break
15841 done
15843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15844 $as_echo "$ac_cv_sys_large_files" >&6; }
15845 case $ac_cv_sys_large_files in #(
15846 no | unknown) ;;
15848 cat >>confdefs.h <<_ACEOF
15849 #define _LARGE_FILES $ac_cv_sys_large_files
15850 _ACEOF
15852 esac
15853 rm -rf conftest*
15858 # Types
15859 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
15860 if test "x$ac_cv_type_off_t" = x""yes; then :
15862 else
15864 cat >>confdefs.h <<_ACEOF
15865 #define off_t long int
15866 _ACEOF
15871 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
15872 if test "x$ac_cv_type_intptr_t" = x""yes; then :
15874 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
15876 else
15877 for ac_type in 'int' 'long int' 'long long int'; do
15878 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15879 /* end confdefs.h. */
15880 $ac_includes_default
15882 main ()
15884 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
15885 test_array [0] = 0
15888 return 0;
15890 _ACEOF
15891 if ac_fn_c_try_compile "$LINENO"; then :
15893 cat >>confdefs.h <<_ACEOF
15894 #define intptr_t $ac_type
15895 _ACEOF
15897 ac_type=
15899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15900 test -z "$ac_type" && break
15901 done
15906 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
15907 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
15909 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
15911 else
15912 for ac_type in 'unsigned int' 'unsigned long int' \
15913 'unsigned long long int'; do
15914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15915 /* end confdefs.h. */
15916 $ac_includes_default
15918 main ()
15920 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
15921 test_array [0] = 0
15924 return 0;
15926 _ACEOF
15927 if ac_fn_c_try_compile "$LINENO"; then :
15929 cat >>confdefs.h <<_ACEOF
15930 #define uintptr_t $ac_type
15931 _ACEOF
15933 ac_type=
15935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15936 test -z "$ac_type" && break
15937 done
15941 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
15942 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
15944 cat >>confdefs.h <<_ACEOF
15945 #define HAVE_PTRDIFF_T 1
15946 _ACEOF
15952 # check header files (we assume C89 is available, so don't check for that)
15956 for ac_header in $ac_header_list
15957 do :
15958 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15959 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15961 eval as_val=\$$as_ac_Header
15962 if test "x$as_val" = x""yes; then :
15963 cat >>confdefs.h <<_ACEOF
15964 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15965 _ACEOF
15969 done
16003 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
16005 acx_cv_header_stdint=stddef.h
16006 acx_cv_header_stdint_kind="(already complete)"
16007 for i in stdint.h $inttype_headers; do
16008 unset ac_cv_type_uintptr_t
16009 unset ac_cv_type_uintmax_t
16010 unset ac_cv_type_int_least32_t
16011 unset ac_cv_type_int_fast32_t
16012 unset ac_cv_type_uint64_t
16013 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
16014 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
16015 #include <$i>
16017 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
16018 acx_cv_header_stdint=$i
16019 else
16020 continue
16023 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16024 #include <$i>
16026 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
16028 else
16029 acx_cv_header_stdint_kind="(mostly complete)"
16032 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
16033 #include <$i>
16035 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
16037 else
16038 acx_cv_header_stdint_kind="(mostly complete)"
16041 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
16042 #include <$i>
16044 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
16046 else
16047 acx_cv_header_stdint_kind="(mostly complete)"
16050 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16051 #include <$i>
16053 if test "x$ac_cv_type_uint64_t" = x""yes; then :
16055 else
16056 acx_cv_header_stdint_kind="(lacks uint64_t)"
16059 break
16060 done
16061 if test "$acx_cv_header_stdint" = stddef.h; then
16062 acx_cv_header_stdint_kind="(lacks uintmax_t)"
16063 for i in stdint.h $inttype_headers; do
16064 unset ac_cv_type_uintptr_t
16065 unset ac_cv_type_uint32_t
16066 unset ac_cv_type_uint64_t
16067 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
16068 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
16069 #include <$i>
16071 if test "x$ac_cv_type_uint32_t" = x""yes; then :
16072 acx_cv_header_stdint=$i
16073 else
16074 continue
16077 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16078 #include <$i>
16080 if test "x$ac_cv_type_uint64_t" = x""yes; then :
16084 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16085 #include <$i>
16087 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
16091 break
16092 done
16094 if test "$acx_cv_header_stdint" = stddef.h; then
16095 acx_cv_header_stdint_kind="(u_intXX_t style)"
16096 for i in sys/types.h $inttype_headers; do
16097 unset ac_cv_type_u_int32_t
16098 unset ac_cv_type_u_int64_t
16099 $as_echo_n "looking for u_intXX_t types in $i, " >&6
16100 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
16101 #include <$i>
16103 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
16104 acx_cv_header_stdint=$i
16105 else
16106 continue
16109 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
16110 #include <$i>
16112 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
16116 break
16117 done
16119 if test "$acx_cv_header_stdint" = stddef.h; then
16120 acx_cv_header_stdint_kind="(using manual detection)"
16123 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
16124 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
16125 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
16126 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
16127 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
16129 # ----------------- Summarize what we found so far
16131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
16132 $as_echo_n "checking what to include in gstdint.h... " >&6; }
16134 case `$as_basename -- gstdint.h ||
16135 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
16136 Xgstdint.h : 'X\(//\)$' \| \
16137 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
16138 $as_echo X/gstdint.h |
16139 sed '/^.*\/\([^/][^/]*\)\/*$/{
16140 s//\1/
16143 /^X\/\(\/\/\)$/{
16144 s//\1/
16147 /^X\/\(\/\).*/{
16148 s//\1/
16151 s/.*/./; q'` in
16152 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16153 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16154 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16155 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16156 *) ;;
16157 esac
16159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
16160 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
16162 # ----------------- done included file, check C basic types --------
16164 # Lacking an uintptr_t? Test size of void *
16165 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
16166 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
16167 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16168 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16169 # This bug is HP SR number 8606223364.
16170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16171 $as_echo_n "checking size of void *... " >&6; }
16172 if test "${ac_cv_sizeof_void_p+set}" = set; then :
16173 $as_echo_n "(cached) " >&6
16174 else
16175 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
16177 else
16178 if test "$ac_cv_type_void_p" = yes; then
16179 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16180 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16181 { as_fn_set_status 77
16182 as_fn_error "cannot compute sizeof (void *)
16183 See \`config.log' for more details." "$LINENO" 5; }; }
16184 else
16185 ac_cv_sizeof_void_p=0
16190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16191 $as_echo "$ac_cv_sizeof_void_p" >&6; }
16195 cat >>confdefs.h <<_ACEOF
16196 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16197 _ACEOF
16200 esac
16202 # Lacking an uint64_t? Test size of long
16203 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
16204 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
16205 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16206 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16207 # This bug is HP SR number 8606223364.
16208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16209 $as_echo_n "checking size of long... " >&6; }
16210 if test "${ac_cv_sizeof_long+set}" = set; then :
16211 $as_echo_n "(cached) " >&6
16212 else
16213 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
16215 else
16216 if test "$ac_cv_type_long" = yes; then
16217 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16218 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16219 { as_fn_set_status 77
16220 as_fn_error "cannot compute sizeof (long)
16221 See \`config.log' for more details." "$LINENO" 5; }; }
16222 else
16223 ac_cv_sizeof_long=0
16228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16229 $as_echo "$ac_cv_sizeof_long" >&6; }
16233 cat >>confdefs.h <<_ACEOF
16234 #define SIZEOF_LONG $ac_cv_sizeof_long
16235 _ACEOF
16238 esac
16240 if test $acx_cv_header_stdint = stddef.h; then
16241 # Lacking a good header? Test size of everything and deduce all types.
16242 # The cast to long int works around a bug in the HP C Compiler
16243 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16244 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16245 # This bug is HP SR number 8606223364.
16246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16247 $as_echo_n "checking size of int... " >&6; }
16248 if test "${ac_cv_sizeof_int+set}" = set; then :
16249 $as_echo_n "(cached) " >&6
16250 else
16251 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
16253 else
16254 if test "$ac_cv_type_int" = yes; then
16255 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16256 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16257 { as_fn_set_status 77
16258 as_fn_error "cannot compute sizeof (int)
16259 See \`config.log' for more details." "$LINENO" 5; }; }
16260 else
16261 ac_cv_sizeof_int=0
16266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16267 $as_echo "$ac_cv_sizeof_int" >&6; }
16271 cat >>confdefs.h <<_ACEOF
16272 #define SIZEOF_INT $ac_cv_sizeof_int
16273 _ACEOF
16276 # The cast to long int works around a bug in the HP C Compiler
16277 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16278 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16279 # This bug is HP SR number 8606223364.
16280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16281 $as_echo_n "checking size of short... " >&6; }
16282 if test "${ac_cv_sizeof_short+set}" = set; then :
16283 $as_echo_n "(cached) " >&6
16284 else
16285 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
16287 else
16288 if test "$ac_cv_type_short" = yes; then
16289 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16290 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16291 { as_fn_set_status 77
16292 as_fn_error "cannot compute sizeof (short)
16293 See \`config.log' for more details." "$LINENO" 5; }; }
16294 else
16295 ac_cv_sizeof_short=0
16300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16301 $as_echo "$ac_cv_sizeof_short" >&6; }
16305 cat >>confdefs.h <<_ACEOF
16306 #define SIZEOF_SHORT $ac_cv_sizeof_short
16307 _ACEOF
16310 # The cast to long int works around a bug in the HP C Compiler
16311 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16312 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16313 # This bug is HP SR number 8606223364.
16314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
16315 $as_echo_n "checking size of char... " >&6; }
16316 if test "${ac_cv_sizeof_char+set}" = set; then :
16317 $as_echo_n "(cached) " >&6
16318 else
16319 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
16321 else
16322 if test "$ac_cv_type_char" = yes; then
16323 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16324 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16325 { as_fn_set_status 77
16326 as_fn_error "cannot compute sizeof (char)
16327 See \`config.log' for more details." "$LINENO" 5; }; }
16328 else
16329 ac_cv_sizeof_char=0
16334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16335 $as_echo "$ac_cv_sizeof_char" >&6; }
16339 cat >>confdefs.h <<_ACEOF
16340 #define SIZEOF_CHAR $ac_cv_sizeof_char
16341 _ACEOF
16345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
16346 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
16347 case "$ac_cv_sizeof_char" in
16348 1) acx_cv_type_int8_t=char ;;
16349 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
16350 esac
16351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
16352 $as_echo "$acx_cv_type_int8_t" >&6; }
16354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
16355 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
16356 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16357 2:*) acx_cv_type_int16_t=int ;;
16358 *:2) acx_cv_type_int16_t=short ;;
16359 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
16360 esac
16361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
16362 $as_echo "$acx_cv_type_int16_t" >&6; }
16364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
16365 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
16366 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16367 4:*) acx_cv_type_int32_t=int ;;
16368 *:4) acx_cv_type_int32_t=long ;;
16369 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
16370 esac
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
16372 $as_echo "$acx_cv_type_int32_t" >&6; }
16375 # These tests are here to make the output prettier
16377 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16378 case "$ac_cv_sizeof_long" in
16379 8) acx_cv_type_int64_t=long ;;
16380 esac
16381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
16382 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
16383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16384 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16387 # Now we can use the above types
16389 if test "$ac_cv_type_uintptr_t" != yes; then
16390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
16391 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
16392 case $ac_cv_sizeof_void_p in
16393 2) acx_cv_type_intptr_t=int16_t ;;
16394 4) acx_cv_type_intptr_t=int32_t ;;
16395 8) acx_cv_type_intptr_t=int64_t ;;
16396 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
16397 esac
16398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
16399 $as_echo "$acx_cv_type_intptr_t" >&6; }
16402 # ----------------- done all checks, emit header -------------
16403 ac_config_commands="$ac_config_commands gstdint.h"
16408 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
16409 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
16411 cat >>confdefs.h <<_ACEOF
16412 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
16413 _ACEOF
16417 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
16418 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
16420 cat >>confdefs.h <<_ACEOF
16421 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
16422 _ACEOF
16426 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
16427 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
16429 cat >>confdefs.h <<_ACEOF
16430 #define HAVE_STRUCT_STAT_ST_RDEV 1
16431 _ACEOF
16437 # Check for library functions.
16438 if test "x${with_newlib}" = "xyes"; then
16439 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
16440 # may not work correctly, because the compiler may not be able to
16441 # link executables.
16443 $as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h
16446 $as_echo "#define HAVE_STRTOF 1" >>confdefs.h
16449 $as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
16452 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
16455 $as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h
16458 $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
16461 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
16464 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
16466 else
16470 for ac_func in $ac_func_list
16471 do :
16472 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16473 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16474 eval as_val=\$$as_ac_var
16475 if test "x$as_val" = x""yes; then :
16476 cat >>confdefs.h <<_ACEOF
16477 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16478 _ACEOF
16481 done
16588 # Check strerror_r, cannot be above as versions with two and three arguments exist
16590 ac_save_CFLAGS="$CFLAGS"
16591 CFLAGS="-Wimplicit-function-declaration -Werror"
16592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16593 /* end confdefs.h. */
16594 #define _GNU_SOURCE 1
16595 #include <string.h>
16596 #include <locale.h>
16598 main ()
16600 char s[128]; strerror_r(5, s, 128);
16602 return 0;
16604 _ACEOF
16605 if ac_fn_c_try_compile "$LINENO"; then :
16607 $as_echo "#define HAVE_STRERROR_R 1" >>confdefs.h
16610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16611 CFLAGS="$ac_save_CFLAGS"
16613 ac_save_CFLAGS="$CFLAGS"
16614 CFLAGS="-Wimplicit-function-declaration -Werror"
16615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16616 /* end confdefs.h. */
16617 #define _GNU_SOURCE 1
16618 #include <string.h>
16619 #include <locale.h>
16621 main ()
16623 char s[128]; strerror_r(5, s);
16625 return 0;
16627 _ACEOF
16628 if ac_fn_c_try_compile "$LINENO"; then :
16630 $as_echo "#define HAVE_STRERROR_R_2ARGS 1" >>confdefs.h
16633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16634 CFLAGS="$ac_save_CFLAGS"
16637 # Check for C99 (and other IEEE) math functions
16638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
16639 $as_echo_n "checking for sin in -lm... " >&6; }
16640 if test "${ac_cv_lib_m_sin+set}" = set; then :
16641 $as_echo_n "(cached) " >&6
16642 else
16643 ac_check_lib_save_LIBS=$LIBS
16644 LIBS="-lm $LIBS"
16645 if test x$gcc_no_link = xyes; then
16646 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16649 /* end confdefs.h. */
16651 /* Override any GCC internal prototype to avoid an error.
16652 Use char because int might match the return type of a GCC
16653 builtin and then its argument prototype would still apply. */
16654 #ifdef __cplusplus
16655 extern "C"
16656 #endif
16657 char sin ();
16659 main ()
16661 return sin ();
16663 return 0;
16665 _ACEOF
16666 if ac_fn_c_try_link "$LINENO"; then :
16667 ac_cv_lib_m_sin=yes
16668 else
16669 ac_cv_lib_m_sin=no
16671 rm -f core conftest.err conftest.$ac_objext \
16672 conftest$ac_exeext conftest.$ac_ext
16673 LIBS=$ac_check_lib_save_LIBS
16675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
16676 $as_echo "$ac_cv_lib_m_sin" >&6; }
16677 if test "x$ac_cv_lib_m_sin" = x""yes; then :
16678 cat >>confdefs.h <<_ACEOF
16679 #define HAVE_LIBM 1
16680 _ACEOF
16682 LIBS="-lm $LIBS"
16692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosf" >&5
16693 $as_echo_n "checking for acosf... " >&6; }
16694 if test "${gcc_cv_math_func_acosf+set}" = set; then :
16695 $as_echo_n "(cached) " >&6
16696 else
16697 if test x$gcc_no_link = xyes; then
16698 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16701 /* end confdefs.h. */
16703 #ifdef HAVE_COMPLEX_H
16704 #include <complex.h>
16705 #endif
16706 #ifdef HAVE_MATH_H
16707 #include <math.h>
16708 #endif
16710 int (*ptr)() = (int (*)())acosf;
16713 main ()
16715 return 0;
16718 _ACEOF
16719 if ac_fn_c_try_link "$LINENO"; then :
16720 gcc_cv_math_func_acosf=yes
16721 else
16722 gcc_cv_math_func_acosf=no
16724 rm -f core conftest.err conftest.$ac_objext \
16725 conftest$ac_exeext conftest.$ac_ext
16727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosf" >&5
16728 $as_echo "$gcc_cv_math_func_acosf" >&6; }
16729 if test $gcc_cv_math_func_acosf = yes; then
16731 cat >>confdefs.h <<_ACEOF
16732 #define HAVE_ACOSF 1
16733 _ACEOF
16740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acos" >&5
16741 $as_echo_n "checking for acos... " >&6; }
16742 if test "${gcc_cv_math_func_acos+set}" = set; then :
16743 $as_echo_n "(cached) " >&6
16744 else
16745 if test x$gcc_no_link = xyes; then
16746 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16749 /* end confdefs.h. */
16751 #ifdef HAVE_COMPLEX_H
16752 #include <complex.h>
16753 #endif
16754 #ifdef HAVE_MATH_H
16755 #include <math.h>
16756 #endif
16758 int (*ptr)() = (int (*)())acos;
16761 main ()
16763 return 0;
16766 _ACEOF
16767 if ac_fn_c_try_link "$LINENO"; then :
16768 gcc_cv_math_func_acos=yes
16769 else
16770 gcc_cv_math_func_acos=no
16772 rm -f core conftest.err conftest.$ac_objext \
16773 conftest$ac_exeext conftest.$ac_ext
16775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acos" >&5
16776 $as_echo "$gcc_cv_math_func_acos" >&6; }
16777 if test $gcc_cv_math_func_acos = yes; then
16779 cat >>confdefs.h <<_ACEOF
16780 #define HAVE_ACOS 1
16781 _ACEOF
16788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosl" >&5
16789 $as_echo_n "checking for acosl... " >&6; }
16790 if test "${gcc_cv_math_func_acosl+set}" = set; then :
16791 $as_echo_n "(cached) " >&6
16792 else
16793 if test x$gcc_no_link = xyes; then
16794 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16797 /* end confdefs.h. */
16799 #ifdef HAVE_COMPLEX_H
16800 #include <complex.h>
16801 #endif
16802 #ifdef HAVE_MATH_H
16803 #include <math.h>
16804 #endif
16806 int (*ptr)() = (int (*)())acosl;
16809 main ()
16811 return 0;
16814 _ACEOF
16815 if ac_fn_c_try_link "$LINENO"; then :
16816 gcc_cv_math_func_acosl=yes
16817 else
16818 gcc_cv_math_func_acosl=no
16820 rm -f core conftest.err conftest.$ac_objext \
16821 conftest$ac_exeext conftest.$ac_ext
16823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosl" >&5
16824 $as_echo "$gcc_cv_math_func_acosl" >&6; }
16825 if test $gcc_cv_math_func_acosl = yes; then
16827 cat >>confdefs.h <<_ACEOF
16828 #define HAVE_ACOSL 1
16829 _ACEOF
16836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshf" >&5
16837 $as_echo_n "checking for acoshf... " >&6; }
16838 if test "${gcc_cv_math_func_acoshf+set}" = set; then :
16839 $as_echo_n "(cached) " >&6
16840 else
16841 if test x$gcc_no_link = xyes; then
16842 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16845 /* end confdefs.h. */
16847 #ifdef HAVE_COMPLEX_H
16848 #include <complex.h>
16849 #endif
16850 #ifdef HAVE_MATH_H
16851 #include <math.h>
16852 #endif
16854 int (*ptr)() = (int (*)())acoshf;
16857 main ()
16859 return 0;
16862 _ACEOF
16863 if ac_fn_c_try_link "$LINENO"; then :
16864 gcc_cv_math_func_acoshf=yes
16865 else
16866 gcc_cv_math_func_acoshf=no
16868 rm -f core conftest.err conftest.$ac_objext \
16869 conftest$ac_exeext conftest.$ac_ext
16871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshf" >&5
16872 $as_echo "$gcc_cv_math_func_acoshf" >&6; }
16873 if test $gcc_cv_math_func_acoshf = yes; then
16875 cat >>confdefs.h <<_ACEOF
16876 #define HAVE_ACOSHF 1
16877 _ACEOF
16884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosh" >&5
16885 $as_echo_n "checking for acosh... " >&6; }
16886 if test "${gcc_cv_math_func_acosh+set}" = set; then :
16887 $as_echo_n "(cached) " >&6
16888 else
16889 if test x$gcc_no_link = xyes; then
16890 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16893 /* end confdefs.h. */
16895 #ifdef HAVE_COMPLEX_H
16896 #include <complex.h>
16897 #endif
16898 #ifdef HAVE_MATH_H
16899 #include <math.h>
16900 #endif
16902 int (*ptr)() = (int (*)())acosh;
16905 main ()
16907 return 0;
16910 _ACEOF
16911 if ac_fn_c_try_link "$LINENO"; then :
16912 gcc_cv_math_func_acosh=yes
16913 else
16914 gcc_cv_math_func_acosh=no
16916 rm -f core conftest.err conftest.$ac_objext \
16917 conftest$ac_exeext conftest.$ac_ext
16919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosh" >&5
16920 $as_echo "$gcc_cv_math_func_acosh" >&6; }
16921 if test $gcc_cv_math_func_acosh = yes; then
16923 cat >>confdefs.h <<_ACEOF
16924 #define HAVE_ACOSH 1
16925 _ACEOF
16932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshl" >&5
16933 $as_echo_n "checking for acoshl... " >&6; }
16934 if test "${gcc_cv_math_func_acoshl+set}" = set; then :
16935 $as_echo_n "(cached) " >&6
16936 else
16937 if test x$gcc_no_link = xyes; then
16938 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16941 /* end confdefs.h. */
16943 #ifdef HAVE_COMPLEX_H
16944 #include <complex.h>
16945 #endif
16946 #ifdef HAVE_MATH_H
16947 #include <math.h>
16948 #endif
16950 int (*ptr)() = (int (*)())acoshl;
16953 main ()
16955 return 0;
16958 _ACEOF
16959 if ac_fn_c_try_link "$LINENO"; then :
16960 gcc_cv_math_func_acoshl=yes
16961 else
16962 gcc_cv_math_func_acoshl=no
16964 rm -f core conftest.err conftest.$ac_objext \
16965 conftest$ac_exeext conftest.$ac_ext
16967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshl" >&5
16968 $as_echo "$gcc_cv_math_func_acoshl" >&6; }
16969 if test $gcc_cv_math_func_acoshl = yes; then
16971 cat >>confdefs.h <<_ACEOF
16972 #define HAVE_ACOSHL 1
16973 _ACEOF
16980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinf" >&5
16981 $as_echo_n "checking for asinf... " >&6; }
16982 if test "${gcc_cv_math_func_asinf+set}" = set; then :
16983 $as_echo_n "(cached) " >&6
16984 else
16985 if test x$gcc_no_link = xyes; then
16986 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16989 /* end confdefs.h. */
16991 #ifdef HAVE_COMPLEX_H
16992 #include <complex.h>
16993 #endif
16994 #ifdef HAVE_MATH_H
16995 #include <math.h>
16996 #endif
16998 int (*ptr)() = (int (*)())asinf;
17001 main ()
17003 return 0;
17006 _ACEOF
17007 if ac_fn_c_try_link "$LINENO"; then :
17008 gcc_cv_math_func_asinf=yes
17009 else
17010 gcc_cv_math_func_asinf=no
17012 rm -f core conftest.err conftest.$ac_objext \
17013 conftest$ac_exeext conftest.$ac_ext
17015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinf" >&5
17016 $as_echo "$gcc_cv_math_func_asinf" >&6; }
17017 if test $gcc_cv_math_func_asinf = yes; then
17019 cat >>confdefs.h <<_ACEOF
17020 #define HAVE_ASINF 1
17021 _ACEOF
17028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin" >&5
17029 $as_echo_n "checking for asin... " >&6; }
17030 if test "${gcc_cv_math_func_asin+set}" = set; then :
17031 $as_echo_n "(cached) " >&6
17032 else
17033 if test x$gcc_no_link = xyes; then
17034 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17037 /* end confdefs.h. */
17039 #ifdef HAVE_COMPLEX_H
17040 #include <complex.h>
17041 #endif
17042 #ifdef HAVE_MATH_H
17043 #include <math.h>
17044 #endif
17046 int (*ptr)() = (int (*)())asin;
17049 main ()
17051 return 0;
17054 _ACEOF
17055 if ac_fn_c_try_link "$LINENO"; then :
17056 gcc_cv_math_func_asin=yes
17057 else
17058 gcc_cv_math_func_asin=no
17060 rm -f core conftest.err conftest.$ac_objext \
17061 conftest$ac_exeext conftest.$ac_ext
17063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asin" >&5
17064 $as_echo "$gcc_cv_math_func_asin" >&6; }
17065 if test $gcc_cv_math_func_asin = yes; then
17067 cat >>confdefs.h <<_ACEOF
17068 #define HAVE_ASIN 1
17069 _ACEOF
17076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinl" >&5
17077 $as_echo_n "checking for asinl... " >&6; }
17078 if test "${gcc_cv_math_func_asinl+set}" = set; then :
17079 $as_echo_n "(cached) " >&6
17080 else
17081 if test x$gcc_no_link = xyes; then
17082 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17085 /* end confdefs.h. */
17087 #ifdef HAVE_COMPLEX_H
17088 #include <complex.h>
17089 #endif
17090 #ifdef HAVE_MATH_H
17091 #include <math.h>
17092 #endif
17094 int (*ptr)() = (int (*)())asinl;
17097 main ()
17099 return 0;
17102 _ACEOF
17103 if ac_fn_c_try_link "$LINENO"; then :
17104 gcc_cv_math_func_asinl=yes
17105 else
17106 gcc_cv_math_func_asinl=no
17108 rm -f core conftest.err conftest.$ac_objext \
17109 conftest$ac_exeext conftest.$ac_ext
17111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinl" >&5
17112 $as_echo "$gcc_cv_math_func_asinl" >&6; }
17113 if test $gcc_cv_math_func_asinl = yes; then
17115 cat >>confdefs.h <<_ACEOF
17116 #define HAVE_ASINL 1
17117 _ACEOF
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhf" >&5
17125 $as_echo_n "checking for asinhf... " >&6; }
17126 if test "${gcc_cv_math_func_asinhf+set}" = set; then :
17127 $as_echo_n "(cached) " >&6
17128 else
17129 if test x$gcc_no_link = xyes; then
17130 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17133 /* end confdefs.h. */
17135 #ifdef HAVE_COMPLEX_H
17136 #include <complex.h>
17137 #endif
17138 #ifdef HAVE_MATH_H
17139 #include <math.h>
17140 #endif
17142 int (*ptr)() = (int (*)())asinhf;
17145 main ()
17147 return 0;
17150 _ACEOF
17151 if ac_fn_c_try_link "$LINENO"; then :
17152 gcc_cv_math_func_asinhf=yes
17153 else
17154 gcc_cv_math_func_asinhf=no
17156 rm -f core conftest.err conftest.$ac_objext \
17157 conftest$ac_exeext conftest.$ac_ext
17159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhf" >&5
17160 $as_echo "$gcc_cv_math_func_asinhf" >&6; }
17161 if test $gcc_cv_math_func_asinhf = yes; then
17163 cat >>confdefs.h <<_ACEOF
17164 #define HAVE_ASINHF 1
17165 _ACEOF
17172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinh" >&5
17173 $as_echo_n "checking for asinh... " >&6; }
17174 if test "${gcc_cv_math_func_asinh+set}" = set; then :
17175 $as_echo_n "(cached) " >&6
17176 else
17177 if test x$gcc_no_link = xyes; then
17178 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17181 /* end confdefs.h. */
17183 #ifdef HAVE_COMPLEX_H
17184 #include <complex.h>
17185 #endif
17186 #ifdef HAVE_MATH_H
17187 #include <math.h>
17188 #endif
17190 int (*ptr)() = (int (*)())asinh;
17193 main ()
17195 return 0;
17198 _ACEOF
17199 if ac_fn_c_try_link "$LINENO"; then :
17200 gcc_cv_math_func_asinh=yes
17201 else
17202 gcc_cv_math_func_asinh=no
17204 rm -f core conftest.err conftest.$ac_objext \
17205 conftest$ac_exeext conftest.$ac_ext
17207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinh" >&5
17208 $as_echo "$gcc_cv_math_func_asinh" >&6; }
17209 if test $gcc_cv_math_func_asinh = yes; then
17211 cat >>confdefs.h <<_ACEOF
17212 #define HAVE_ASINH 1
17213 _ACEOF
17220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhl" >&5
17221 $as_echo_n "checking for asinhl... " >&6; }
17222 if test "${gcc_cv_math_func_asinhl+set}" = set; then :
17223 $as_echo_n "(cached) " >&6
17224 else
17225 if test x$gcc_no_link = xyes; then
17226 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17229 /* end confdefs.h. */
17231 #ifdef HAVE_COMPLEX_H
17232 #include <complex.h>
17233 #endif
17234 #ifdef HAVE_MATH_H
17235 #include <math.h>
17236 #endif
17238 int (*ptr)() = (int (*)())asinhl;
17241 main ()
17243 return 0;
17246 _ACEOF
17247 if ac_fn_c_try_link "$LINENO"; then :
17248 gcc_cv_math_func_asinhl=yes
17249 else
17250 gcc_cv_math_func_asinhl=no
17252 rm -f core conftest.err conftest.$ac_objext \
17253 conftest$ac_exeext conftest.$ac_ext
17255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhl" >&5
17256 $as_echo "$gcc_cv_math_func_asinhl" >&6; }
17257 if test $gcc_cv_math_func_asinhl = yes; then
17259 cat >>confdefs.h <<_ACEOF
17260 #define HAVE_ASINHL 1
17261 _ACEOF
17268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f" >&5
17269 $as_echo_n "checking for atan2f... " >&6; }
17270 if test "${gcc_cv_math_func_atan2f+set}" = set; then :
17271 $as_echo_n "(cached) " >&6
17272 else
17273 if test x$gcc_no_link = xyes; then
17274 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17277 /* end confdefs.h. */
17279 #ifdef HAVE_COMPLEX_H
17280 #include <complex.h>
17281 #endif
17282 #ifdef HAVE_MATH_H
17283 #include <math.h>
17284 #endif
17286 int (*ptr)() = (int (*)())atan2f;
17289 main ()
17291 return 0;
17294 _ACEOF
17295 if ac_fn_c_try_link "$LINENO"; then :
17296 gcc_cv_math_func_atan2f=yes
17297 else
17298 gcc_cv_math_func_atan2f=no
17300 rm -f core conftest.err conftest.$ac_objext \
17301 conftest$ac_exeext conftest.$ac_ext
17303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2f" >&5
17304 $as_echo "$gcc_cv_math_func_atan2f" >&6; }
17305 if test $gcc_cv_math_func_atan2f = yes; then
17307 cat >>confdefs.h <<_ACEOF
17308 #define HAVE_ATAN2F 1
17309 _ACEOF
17316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2" >&5
17317 $as_echo_n "checking for atan2... " >&6; }
17318 if test "${gcc_cv_math_func_atan2+set}" = set; then :
17319 $as_echo_n "(cached) " >&6
17320 else
17321 if test x$gcc_no_link = xyes; then
17322 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17325 /* end confdefs.h. */
17327 #ifdef HAVE_COMPLEX_H
17328 #include <complex.h>
17329 #endif
17330 #ifdef HAVE_MATH_H
17331 #include <math.h>
17332 #endif
17334 int (*ptr)() = (int (*)())atan2;
17337 main ()
17339 return 0;
17342 _ACEOF
17343 if ac_fn_c_try_link "$LINENO"; then :
17344 gcc_cv_math_func_atan2=yes
17345 else
17346 gcc_cv_math_func_atan2=no
17348 rm -f core conftest.err conftest.$ac_objext \
17349 conftest$ac_exeext conftest.$ac_ext
17351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2" >&5
17352 $as_echo "$gcc_cv_math_func_atan2" >&6; }
17353 if test $gcc_cv_math_func_atan2 = yes; then
17355 cat >>confdefs.h <<_ACEOF
17356 #define HAVE_ATAN2 1
17357 _ACEOF
17364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l" >&5
17365 $as_echo_n "checking for atan2l... " >&6; }
17366 if test "${gcc_cv_math_func_atan2l+set}" = set; then :
17367 $as_echo_n "(cached) " >&6
17368 else
17369 if test x$gcc_no_link = xyes; then
17370 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17373 /* end confdefs.h. */
17375 #ifdef HAVE_COMPLEX_H
17376 #include <complex.h>
17377 #endif
17378 #ifdef HAVE_MATH_H
17379 #include <math.h>
17380 #endif
17382 int (*ptr)() = (int (*)())atan2l;
17385 main ()
17387 return 0;
17390 _ACEOF
17391 if ac_fn_c_try_link "$LINENO"; then :
17392 gcc_cv_math_func_atan2l=yes
17393 else
17394 gcc_cv_math_func_atan2l=no
17396 rm -f core conftest.err conftest.$ac_objext \
17397 conftest$ac_exeext conftest.$ac_ext
17399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2l" >&5
17400 $as_echo "$gcc_cv_math_func_atan2l" >&6; }
17401 if test $gcc_cv_math_func_atan2l = yes; then
17403 cat >>confdefs.h <<_ACEOF
17404 #define HAVE_ATAN2L 1
17405 _ACEOF
17412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanf" >&5
17413 $as_echo_n "checking for atanf... " >&6; }
17414 if test "${gcc_cv_math_func_atanf+set}" = set; then :
17415 $as_echo_n "(cached) " >&6
17416 else
17417 if test x$gcc_no_link = xyes; then
17418 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17421 /* end confdefs.h. */
17423 #ifdef HAVE_COMPLEX_H
17424 #include <complex.h>
17425 #endif
17426 #ifdef HAVE_MATH_H
17427 #include <math.h>
17428 #endif
17430 int (*ptr)() = (int (*)())atanf;
17433 main ()
17435 return 0;
17438 _ACEOF
17439 if ac_fn_c_try_link "$LINENO"; then :
17440 gcc_cv_math_func_atanf=yes
17441 else
17442 gcc_cv_math_func_atanf=no
17444 rm -f core conftest.err conftest.$ac_objext \
17445 conftest$ac_exeext conftest.$ac_ext
17447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanf" >&5
17448 $as_echo "$gcc_cv_math_func_atanf" >&6; }
17449 if test $gcc_cv_math_func_atanf = yes; then
17451 cat >>confdefs.h <<_ACEOF
17452 #define HAVE_ATANF 1
17453 _ACEOF
17460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan" >&5
17461 $as_echo_n "checking for atan... " >&6; }
17462 if test "${gcc_cv_math_func_atan+set}" = set; then :
17463 $as_echo_n "(cached) " >&6
17464 else
17465 if test x$gcc_no_link = xyes; then
17466 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17469 /* end confdefs.h. */
17471 #ifdef HAVE_COMPLEX_H
17472 #include <complex.h>
17473 #endif
17474 #ifdef HAVE_MATH_H
17475 #include <math.h>
17476 #endif
17478 int (*ptr)() = (int (*)())atan;
17481 main ()
17483 return 0;
17486 _ACEOF
17487 if ac_fn_c_try_link "$LINENO"; then :
17488 gcc_cv_math_func_atan=yes
17489 else
17490 gcc_cv_math_func_atan=no
17492 rm -f core conftest.err conftest.$ac_objext \
17493 conftest$ac_exeext conftest.$ac_ext
17495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan" >&5
17496 $as_echo "$gcc_cv_math_func_atan" >&6; }
17497 if test $gcc_cv_math_func_atan = yes; then
17499 cat >>confdefs.h <<_ACEOF
17500 #define HAVE_ATAN 1
17501 _ACEOF
17508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanl" >&5
17509 $as_echo_n "checking for atanl... " >&6; }
17510 if test "${gcc_cv_math_func_atanl+set}" = set; then :
17511 $as_echo_n "(cached) " >&6
17512 else
17513 if test x$gcc_no_link = xyes; then
17514 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17517 /* end confdefs.h. */
17519 #ifdef HAVE_COMPLEX_H
17520 #include <complex.h>
17521 #endif
17522 #ifdef HAVE_MATH_H
17523 #include <math.h>
17524 #endif
17526 int (*ptr)() = (int (*)())atanl;
17529 main ()
17531 return 0;
17534 _ACEOF
17535 if ac_fn_c_try_link "$LINENO"; then :
17536 gcc_cv_math_func_atanl=yes
17537 else
17538 gcc_cv_math_func_atanl=no
17540 rm -f core conftest.err conftest.$ac_objext \
17541 conftest$ac_exeext conftest.$ac_ext
17543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanl" >&5
17544 $as_echo "$gcc_cv_math_func_atanl" >&6; }
17545 if test $gcc_cv_math_func_atanl = yes; then
17547 cat >>confdefs.h <<_ACEOF
17548 #define HAVE_ATANL 1
17549 _ACEOF
17556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhf" >&5
17557 $as_echo_n "checking for atanhf... " >&6; }
17558 if test "${gcc_cv_math_func_atanhf+set}" = set; then :
17559 $as_echo_n "(cached) " >&6
17560 else
17561 if test x$gcc_no_link = xyes; then
17562 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17565 /* end confdefs.h. */
17567 #ifdef HAVE_COMPLEX_H
17568 #include <complex.h>
17569 #endif
17570 #ifdef HAVE_MATH_H
17571 #include <math.h>
17572 #endif
17574 int (*ptr)() = (int (*)())atanhf;
17577 main ()
17579 return 0;
17582 _ACEOF
17583 if ac_fn_c_try_link "$LINENO"; then :
17584 gcc_cv_math_func_atanhf=yes
17585 else
17586 gcc_cv_math_func_atanhf=no
17588 rm -f core conftest.err conftest.$ac_objext \
17589 conftest$ac_exeext conftest.$ac_ext
17591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhf" >&5
17592 $as_echo "$gcc_cv_math_func_atanhf" >&6; }
17593 if test $gcc_cv_math_func_atanhf = yes; then
17595 cat >>confdefs.h <<_ACEOF
17596 #define HAVE_ATANHF 1
17597 _ACEOF
17604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanh" >&5
17605 $as_echo_n "checking for atanh... " >&6; }
17606 if test "${gcc_cv_math_func_atanh+set}" = set; then :
17607 $as_echo_n "(cached) " >&6
17608 else
17609 if test x$gcc_no_link = xyes; then
17610 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17613 /* end confdefs.h. */
17615 #ifdef HAVE_COMPLEX_H
17616 #include <complex.h>
17617 #endif
17618 #ifdef HAVE_MATH_H
17619 #include <math.h>
17620 #endif
17622 int (*ptr)() = (int (*)())atanh;
17625 main ()
17627 return 0;
17630 _ACEOF
17631 if ac_fn_c_try_link "$LINENO"; then :
17632 gcc_cv_math_func_atanh=yes
17633 else
17634 gcc_cv_math_func_atanh=no
17636 rm -f core conftest.err conftest.$ac_objext \
17637 conftest$ac_exeext conftest.$ac_ext
17639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanh" >&5
17640 $as_echo "$gcc_cv_math_func_atanh" >&6; }
17641 if test $gcc_cv_math_func_atanh = yes; then
17643 cat >>confdefs.h <<_ACEOF
17644 #define HAVE_ATANH 1
17645 _ACEOF
17652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhl" >&5
17653 $as_echo_n "checking for atanhl... " >&6; }
17654 if test "${gcc_cv_math_func_atanhl+set}" = set; then :
17655 $as_echo_n "(cached) " >&6
17656 else
17657 if test x$gcc_no_link = xyes; then
17658 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17661 /* end confdefs.h. */
17663 #ifdef HAVE_COMPLEX_H
17664 #include <complex.h>
17665 #endif
17666 #ifdef HAVE_MATH_H
17667 #include <math.h>
17668 #endif
17670 int (*ptr)() = (int (*)())atanhl;
17673 main ()
17675 return 0;
17678 _ACEOF
17679 if ac_fn_c_try_link "$LINENO"; then :
17680 gcc_cv_math_func_atanhl=yes
17681 else
17682 gcc_cv_math_func_atanhl=no
17684 rm -f core conftest.err conftest.$ac_objext \
17685 conftest$ac_exeext conftest.$ac_ext
17687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhl" >&5
17688 $as_echo "$gcc_cv_math_func_atanhl" >&6; }
17689 if test $gcc_cv_math_func_atanhl = yes; then
17691 cat >>confdefs.h <<_ACEOF
17692 #define HAVE_ATANHL 1
17693 _ACEOF
17700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargf" >&5
17701 $as_echo_n "checking for cargf... " >&6; }
17702 if test "${gcc_cv_math_func_cargf+set}" = set; then :
17703 $as_echo_n "(cached) " >&6
17704 else
17705 if test x$gcc_no_link = xyes; then
17706 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17709 /* end confdefs.h. */
17711 #ifdef HAVE_COMPLEX_H
17712 #include <complex.h>
17713 #endif
17714 #ifdef HAVE_MATH_H
17715 #include <math.h>
17716 #endif
17718 int (*ptr)() = (int (*)())cargf;
17721 main ()
17723 return 0;
17726 _ACEOF
17727 if ac_fn_c_try_link "$LINENO"; then :
17728 gcc_cv_math_func_cargf=yes
17729 else
17730 gcc_cv_math_func_cargf=no
17732 rm -f core conftest.err conftest.$ac_objext \
17733 conftest$ac_exeext conftest.$ac_ext
17735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargf" >&5
17736 $as_echo "$gcc_cv_math_func_cargf" >&6; }
17737 if test $gcc_cv_math_func_cargf = yes; then
17739 cat >>confdefs.h <<_ACEOF
17740 #define HAVE_CARGF 1
17741 _ACEOF
17748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for carg" >&5
17749 $as_echo_n "checking for carg... " >&6; }
17750 if test "${gcc_cv_math_func_carg+set}" = set; then :
17751 $as_echo_n "(cached) " >&6
17752 else
17753 if test x$gcc_no_link = xyes; then
17754 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17757 /* end confdefs.h. */
17759 #ifdef HAVE_COMPLEX_H
17760 #include <complex.h>
17761 #endif
17762 #ifdef HAVE_MATH_H
17763 #include <math.h>
17764 #endif
17766 int (*ptr)() = (int (*)())carg;
17769 main ()
17771 return 0;
17774 _ACEOF
17775 if ac_fn_c_try_link "$LINENO"; then :
17776 gcc_cv_math_func_carg=yes
17777 else
17778 gcc_cv_math_func_carg=no
17780 rm -f core conftest.err conftest.$ac_objext \
17781 conftest$ac_exeext conftest.$ac_ext
17783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_carg" >&5
17784 $as_echo "$gcc_cv_math_func_carg" >&6; }
17785 if test $gcc_cv_math_func_carg = yes; then
17787 cat >>confdefs.h <<_ACEOF
17788 #define HAVE_CARG 1
17789 _ACEOF
17796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargl" >&5
17797 $as_echo_n "checking for cargl... " >&6; }
17798 if test "${gcc_cv_math_func_cargl+set}" = set; then :
17799 $as_echo_n "(cached) " >&6
17800 else
17801 if test x$gcc_no_link = xyes; then
17802 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17805 /* end confdefs.h. */
17807 #ifdef HAVE_COMPLEX_H
17808 #include <complex.h>
17809 #endif
17810 #ifdef HAVE_MATH_H
17811 #include <math.h>
17812 #endif
17814 int (*ptr)() = (int (*)())cargl;
17817 main ()
17819 return 0;
17822 _ACEOF
17823 if ac_fn_c_try_link "$LINENO"; then :
17824 gcc_cv_math_func_cargl=yes
17825 else
17826 gcc_cv_math_func_cargl=no
17828 rm -f core conftest.err conftest.$ac_objext \
17829 conftest$ac_exeext conftest.$ac_ext
17831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargl" >&5
17832 $as_echo "$gcc_cv_math_func_cargl" >&6; }
17833 if test $gcc_cv_math_func_cargl = yes; then
17835 cat >>confdefs.h <<_ACEOF
17836 #define HAVE_CARGL 1
17837 _ACEOF
17844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceilf" >&5
17845 $as_echo_n "checking for ceilf... " >&6; }
17846 if test "${gcc_cv_math_func_ceilf+set}" = set; then :
17847 $as_echo_n "(cached) " >&6
17848 else
17849 if test x$gcc_no_link = xyes; then
17850 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17853 /* end confdefs.h. */
17855 #ifdef HAVE_COMPLEX_H
17856 #include <complex.h>
17857 #endif
17858 #ifdef HAVE_MATH_H
17859 #include <math.h>
17860 #endif
17862 int (*ptr)() = (int (*)())ceilf;
17865 main ()
17867 return 0;
17870 _ACEOF
17871 if ac_fn_c_try_link "$LINENO"; then :
17872 gcc_cv_math_func_ceilf=yes
17873 else
17874 gcc_cv_math_func_ceilf=no
17876 rm -f core conftest.err conftest.$ac_objext \
17877 conftest$ac_exeext conftest.$ac_ext
17879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceilf" >&5
17880 $as_echo "$gcc_cv_math_func_ceilf" >&6; }
17881 if test $gcc_cv_math_func_ceilf = yes; then
17883 cat >>confdefs.h <<_ACEOF
17884 #define HAVE_CEILF 1
17885 _ACEOF
17892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceil" >&5
17893 $as_echo_n "checking for ceil... " >&6; }
17894 if test "${gcc_cv_math_func_ceil+set}" = set; then :
17895 $as_echo_n "(cached) " >&6
17896 else
17897 if test x$gcc_no_link = xyes; then
17898 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17901 /* end confdefs.h. */
17903 #ifdef HAVE_COMPLEX_H
17904 #include <complex.h>
17905 #endif
17906 #ifdef HAVE_MATH_H
17907 #include <math.h>
17908 #endif
17910 int (*ptr)() = (int (*)())ceil;
17913 main ()
17915 return 0;
17918 _ACEOF
17919 if ac_fn_c_try_link "$LINENO"; then :
17920 gcc_cv_math_func_ceil=yes
17921 else
17922 gcc_cv_math_func_ceil=no
17924 rm -f core conftest.err conftest.$ac_objext \
17925 conftest$ac_exeext conftest.$ac_ext
17927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceil" >&5
17928 $as_echo "$gcc_cv_math_func_ceil" >&6; }
17929 if test $gcc_cv_math_func_ceil = yes; then
17931 cat >>confdefs.h <<_ACEOF
17932 #define HAVE_CEIL 1
17933 _ACEOF
17940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceill" >&5
17941 $as_echo_n "checking for ceill... " >&6; }
17942 if test "${gcc_cv_math_func_ceill+set}" = set; then :
17943 $as_echo_n "(cached) " >&6
17944 else
17945 if test x$gcc_no_link = xyes; then
17946 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17949 /* end confdefs.h. */
17951 #ifdef HAVE_COMPLEX_H
17952 #include <complex.h>
17953 #endif
17954 #ifdef HAVE_MATH_H
17955 #include <math.h>
17956 #endif
17958 int (*ptr)() = (int (*)())ceill;
17961 main ()
17963 return 0;
17966 _ACEOF
17967 if ac_fn_c_try_link "$LINENO"; then :
17968 gcc_cv_math_func_ceill=yes
17969 else
17970 gcc_cv_math_func_ceill=no
17972 rm -f core conftest.err conftest.$ac_objext \
17973 conftest$ac_exeext conftest.$ac_ext
17975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceill" >&5
17976 $as_echo "$gcc_cv_math_func_ceill" >&6; }
17977 if test $gcc_cv_math_func_ceill = yes; then
17979 cat >>confdefs.h <<_ACEOF
17980 #define HAVE_CEILL 1
17981 _ACEOF
17988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignf" >&5
17989 $as_echo_n "checking for copysignf... " >&6; }
17990 if test "${gcc_cv_math_func_copysignf+set}" = set; then :
17991 $as_echo_n "(cached) " >&6
17992 else
17993 if test x$gcc_no_link = xyes; then
17994 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17997 /* end confdefs.h. */
17999 #ifdef HAVE_COMPLEX_H
18000 #include <complex.h>
18001 #endif
18002 #ifdef HAVE_MATH_H
18003 #include <math.h>
18004 #endif
18006 int (*ptr)() = (int (*)())copysignf;
18009 main ()
18011 return 0;
18014 _ACEOF
18015 if ac_fn_c_try_link "$LINENO"; then :
18016 gcc_cv_math_func_copysignf=yes
18017 else
18018 gcc_cv_math_func_copysignf=no
18020 rm -f core conftest.err conftest.$ac_objext \
18021 conftest$ac_exeext conftest.$ac_ext
18023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignf" >&5
18024 $as_echo "$gcc_cv_math_func_copysignf" >&6; }
18025 if test $gcc_cv_math_func_copysignf = yes; then
18027 cat >>confdefs.h <<_ACEOF
18028 #define HAVE_COPYSIGNF 1
18029 _ACEOF
18036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysign" >&5
18037 $as_echo_n "checking for copysign... " >&6; }
18038 if test "${gcc_cv_math_func_copysign+set}" = set; then :
18039 $as_echo_n "(cached) " >&6
18040 else
18041 if test x$gcc_no_link = xyes; then
18042 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18045 /* end confdefs.h. */
18047 #ifdef HAVE_COMPLEX_H
18048 #include <complex.h>
18049 #endif
18050 #ifdef HAVE_MATH_H
18051 #include <math.h>
18052 #endif
18054 int (*ptr)() = (int (*)())copysign;
18057 main ()
18059 return 0;
18062 _ACEOF
18063 if ac_fn_c_try_link "$LINENO"; then :
18064 gcc_cv_math_func_copysign=yes
18065 else
18066 gcc_cv_math_func_copysign=no
18068 rm -f core conftest.err conftest.$ac_objext \
18069 conftest$ac_exeext conftest.$ac_ext
18071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysign" >&5
18072 $as_echo "$gcc_cv_math_func_copysign" >&6; }
18073 if test $gcc_cv_math_func_copysign = yes; then
18075 cat >>confdefs.h <<_ACEOF
18076 #define HAVE_COPYSIGN 1
18077 _ACEOF
18084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignl" >&5
18085 $as_echo_n "checking for copysignl... " >&6; }
18086 if test "${gcc_cv_math_func_copysignl+set}" = set; then :
18087 $as_echo_n "(cached) " >&6
18088 else
18089 if test x$gcc_no_link = xyes; then
18090 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18093 /* end confdefs.h. */
18095 #ifdef HAVE_COMPLEX_H
18096 #include <complex.h>
18097 #endif
18098 #ifdef HAVE_MATH_H
18099 #include <math.h>
18100 #endif
18102 int (*ptr)() = (int (*)())copysignl;
18105 main ()
18107 return 0;
18110 _ACEOF
18111 if ac_fn_c_try_link "$LINENO"; then :
18112 gcc_cv_math_func_copysignl=yes
18113 else
18114 gcc_cv_math_func_copysignl=no
18116 rm -f core conftest.err conftest.$ac_objext \
18117 conftest$ac_exeext conftest.$ac_ext
18119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignl" >&5
18120 $as_echo "$gcc_cv_math_func_copysignl" >&6; }
18121 if test $gcc_cv_math_func_copysignl = yes; then
18123 cat >>confdefs.h <<_ACEOF
18124 #define HAVE_COPYSIGNL 1
18125 _ACEOF
18132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosf" >&5
18133 $as_echo_n "checking for cosf... " >&6; }
18134 if test "${gcc_cv_math_func_cosf+set}" = set; then :
18135 $as_echo_n "(cached) " >&6
18136 else
18137 if test x$gcc_no_link = xyes; then
18138 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18141 /* end confdefs.h. */
18143 #ifdef HAVE_COMPLEX_H
18144 #include <complex.h>
18145 #endif
18146 #ifdef HAVE_MATH_H
18147 #include <math.h>
18148 #endif
18150 int (*ptr)() = (int (*)())cosf;
18153 main ()
18155 return 0;
18158 _ACEOF
18159 if ac_fn_c_try_link "$LINENO"; then :
18160 gcc_cv_math_func_cosf=yes
18161 else
18162 gcc_cv_math_func_cosf=no
18164 rm -f core conftest.err conftest.$ac_objext \
18165 conftest$ac_exeext conftest.$ac_ext
18167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosf" >&5
18168 $as_echo "$gcc_cv_math_func_cosf" >&6; }
18169 if test $gcc_cv_math_func_cosf = yes; then
18171 cat >>confdefs.h <<_ACEOF
18172 #define HAVE_COSF 1
18173 _ACEOF
18180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos" >&5
18181 $as_echo_n "checking for cos... " >&6; }
18182 if test "${gcc_cv_math_func_cos+set}" = set; then :
18183 $as_echo_n "(cached) " >&6
18184 else
18185 if test x$gcc_no_link = xyes; then
18186 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18189 /* end confdefs.h. */
18191 #ifdef HAVE_COMPLEX_H
18192 #include <complex.h>
18193 #endif
18194 #ifdef HAVE_MATH_H
18195 #include <math.h>
18196 #endif
18198 int (*ptr)() = (int (*)())cos;
18201 main ()
18203 return 0;
18206 _ACEOF
18207 if ac_fn_c_try_link "$LINENO"; then :
18208 gcc_cv_math_func_cos=yes
18209 else
18210 gcc_cv_math_func_cos=no
18212 rm -f core conftest.err conftest.$ac_objext \
18213 conftest$ac_exeext conftest.$ac_ext
18215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cos" >&5
18216 $as_echo "$gcc_cv_math_func_cos" >&6; }
18217 if test $gcc_cv_math_func_cos = yes; then
18219 cat >>confdefs.h <<_ACEOF
18220 #define HAVE_COS 1
18221 _ACEOF
18228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosl" >&5
18229 $as_echo_n "checking for cosl... " >&6; }
18230 if test "${gcc_cv_math_func_cosl+set}" = set; then :
18231 $as_echo_n "(cached) " >&6
18232 else
18233 if test x$gcc_no_link = xyes; then
18234 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18237 /* end confdefs.h. */
18239 #ifdef HAVE_COMPLEX_H
18240 #include <complex.h>
18241 #endif
18242 #ifdef HAVE_MATH_H
18243 #include <math.h>
18244 #endif
18246 int (*ptr)() = (int (*)())cosl;
18249 main ()
18251 return 0;
18254 _ACEOF
18255 if ac_fn_c_try_link "$LINENO"; then :
18256 gcc_cv_math_func_cosl=yes
18257 else
18258 gcc_cv_math_func_cosl=no
18260 rm -f core conftest.err conftest.$ac_objext \
18261 conftest$ac_exeext conftest.$ac_ext
18263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosl" >&5
18264 $as_echo "$gcc_cv_math_func_cosl" >&6; }
18265 if test $gcc_cv_math_func_cosl = yes; then
18267 cat >>confdefs.h <<_ACEOF
18268 #define HAVE_COSL 1
18269 _ACEOF
18276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosf" >&5
18277 $as_echo_n "checking for ccosf... " >&6; }
18278 if test "${gcc_cv_math_func_ccosf+set}" = set; then :
18279 $as_echo_n "(cached) " >&6
18280 else
18281 if test x$gcc_no_link = xyes; then
18282 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18285 /* end confdefs.h. */
18287 #ifdef HAVE_COMPLEX_H
18288 #include <complex.h>
18289 #endif
18290 #ifdef HAVE_MATH_H
18291 #include <math.h>
18292 #endif
18294 int (*ptr)() = (int (*)())ccosf;
18297 main ()
18299 return 0;
18302 _ACEOF
18303 if ac_fn_c_try_link "$LINENO"; then :
18304 gcc_cv_math_func_ccosf=yes
18305 else
18306 gcc_cv_math_func_ccosf=no
18308 rm -f core conftest.err conftest.$ac_objext \
18309 conftest$ac_exeext conftest.$ac_ext
18311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosf" >&5
18312 $as_echo "$gcc_cv_math_func_ccosf" >&6; }
18313 if test $gcc_cv_math_func_ccosf = yes; then
18315 cat >>confdefs.h <<_ACEOF
18316 #define HAVE_CCOSF 1
18317 _ACEOF
18324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccos" >&5
18325 $as_echo_n "checking for ccos... " >&6; }
18326 if test "${gcc_cv_math_func_ccos+set}" = set; then :
18327 $as_echo_n "(cached) " >&6
18328 else
18329 if test x$gcc_no_link = xyes; then
18330 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18333 /* end confdefs.h. */
18335 #ifdef HAVE_COMPLEX_H
18336 #include <complex.h>
18337 #endif
18338 #ifdef HAVE_MATH_H
18339 #include <math.h>
18340 #endif
18342 int (*ptr)() = (int (*)())ccos;
18345 main ()
18347 return 0;
18350 _ACEOF
18351 if ac_fn_c_try_link "$LINENO"; then :
18352 gcc_cv_math_func_ccos=yes
18353 else
18354 gcc_cv_math_func_ccos=no
18356 rm -f core conftest.err conftest.$ac_objext \
18357 conftest$ac_exeext conftest.$ac_ext
18359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccos" >&5
18360 $as_echo "$gcc_cv_math_func_ccos" >&6; }
18361 if test $gcc_cv_math_func_ccos = yes; then
18363 cat >>confdefs.h <<_ACEOF
18364 #define HAVE_CCOS 1
18365 _ACEOF
18372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosl" >&5
18373 $as_echo_n "checking for ccosl... " >&6; }
18374 if test "${gcc_cv_math_func_ccosl+set}" = set; then :
18375 $as_echo_n "(cached) " >&6
18376 else
18377 if test x$gcc_no_link = xyes; then
18378 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18381 /* end confdefs.h. */
18383 #ifdef HAVE_COMPLEX_H
18384 #include <complex.h>
18385 #endif
18386 #ifdef HAVE_MATH_H
18387 #include <math.h>
18388 #endif
18390 int (*ptr)() = (int (*)())ccosl;
18393 main ()
18395 return 0;
18398 _ACEOF
18399 if ac_fn_c_try_link "$LINENO"; then :
18400 gcc_cv_math_func_ccosl=yes
18401 else
18402 gcc_cv_math_func_ccosl=no
18404 rm -f core conftest.err conftest.$ac_objext \
18405 conftest$ac_exeext conftest.$ac_ext
18407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosl" >&5
18408 $as_echo "$gcc_cv_math_func_ccosl" >&6; }
18409 if test $gcc_cv_math_func_ccosl = yes; then
18411 cat >>confdefs.h <<_ACEOF
18412 #define HAVE_CCOSL 1
18413 _ACEOF
18420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshf" >&5
18421 $as_echo_n "checking for coshf... " >&6; }
18422 if test "${gcc_cv_math_func_coshf+set}" = set; then :
18423 $as_echo_n "(cached) " >&6
18424 else
18425 if test x$gcc_no_link = xyes; then
18426 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18429 /* end confdefs.h. */
18431 #ifdef HAVE_COMPLEX_H
18432 #include <complex.h>
18433 #endif
18434 #ifdef HAVE_MATH_H
18435 #include <math.h>
18436 #endif
18438 int (*ptr)() = (int (*)())coshf;
18441 main ()
18443 return 0;
18446 _ACEOF
18447 if ac_fn_c_try_link "$LINENO"; then :
18448 gcc_cv_math_func_coshf=yes
18449 else
18450 gcc_cv_math_func_coshf=no
18452 rm -f core conftest.err conftest.$ac_objext \
18453 conftest$ac_exeext conftest.$ac_ext
18455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshf" >&5
18456 $as_echo "$gcc_cv_math_func_coshf" >&6; }
18457 if test $gcc_cv_math_func_coshf = yes; then
18459 cat >>confdefs.h <<_ACEOF
18460 #define HAVE_COSHF 1
18461 _ACEOF
18468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosh" >&5
18469 $as_echo_n "checking for cosh... " >&6; }
18470 if test "${gcc_cv_math_func_cosh+set}" = set; then :
18471 $as_echo_n "(cached) " >&6
18472 else
18473 if test x$gcc_no_link = xyes; then
18474 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18477 /* end confdefs.h. */
18479 #ifdef HAVE_COMPLEX_H
18480 #include <complex.h>
18481 #endif
18482 #ifdef HAVE_MATH_H
18483 #include <math.h>
18484 #endif
18486 int (*ptr)() = (int (*)())cosh;
18489 main ()
18491 return 0;
18494 _ACEOF
18495 if ac_fn_c_try_link "$LINENO"; then :
18496 gcc_cv_math_func_cosh=yes
18497 else
18498 gcc_cv_math_func_cosh=no
18500 rm -f core conftest.err conftest.$ac_objext \
18501 conftest$ac_exeext conftest.$ac_ext
18503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosh" >&5
18504 $as_echo "$gcc_cv_math_func_cosh" >&6; }
18505 if test $gcc_cv_math_func_cosh = yes; then
18507 cat >>confdefs.h <<_ACEOF
18508 #define HAVE_COSH 1
18509 _ACEOF
18516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshl" >&5
18517 $as_echo_n "checking for coshl... " >&6; }
18518 if test "${gcc_cv_math_func_coshl+set}" = set; then :
18519 $as_echo_n "(cached) " >&6
18520 else
18521 if test x$gcc_no_link = xyes; then
18522 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18525 /* end confdefs.h. */
18527 #ifdef HAVE_COMPLEX_H
18528 #include <complex.h>
18529 #endif
18530 #ifdef HAVE_MATH_H
18531 #include <math.h>
18532 #endif
18534 int (*ptr)() = (int (*)())coshl;
18537 main ()
18539 return 0;
18542 _ACEOF
18543 if ac_fn_c_try_link "$LINENO"; then :
18544 gcc_cv_math_func_coshl=yes
18545 else
18546 gcc_cv_math_func_coshl=no
18548 rm -f core conftest.err conftest.$ac_objext \
18549 conftest$ac_exeext conftest.$ac_ext
18551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshl" >&5
18552 $as_echo "$gcc_cv_math_func_coshl" >&6; }
18553 if test $gcc_cv_math_func_coshl = yes; then
18555 cat >>confdefs.h <<_ACEOF
18556 #define HAVE_COSHL 1
18557 _ACEOF
18564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshf" >&5
18565 $as_echo_n "checking for ccoshf... " >&6; }
18566 if test "${gcc_cv_math_func_ccoshf+set}" = set; then :
18567 $as_echo_n "(cached) " >&6
18568 else
18569 if test x$gcc_no_link = xyes; then
18570 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18573 /* end confdefs.h. */
18575 #ifdef HAVE_COMPLEX_H
18576 #include <complex.h>
18577 #endif
18578 #ifdef HAVE_MATH_H
18579 #include <math.h>
18580 #endif
18582 int (*ptr)() = (int (*)())ccoshf;
18585 main ()
18587 return 0;
18590 _ACEOF
18591 if ac_fn_c_try_link "$LINENO"; then :
18592 gcc_cv_math_func_ccoshf=yes
18593 else
18594 gcc_cv_math_func_ccoshf=no
18596 rm -f core conftest.err conftest.$ac_objext \
18597 conftest$ac_exeext conftest.$ac_ext
18599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshf" >&5
18600 $as_echo "$gcc_cv_math_func_ccoshf" >&6; }
18601 if test $gcc_cv_math_func_ccoshf = yes; then
18603 cat >>confdefs.h <<_ACEOF
18604 #define HAVE_CCOSHF 1
18605 _ACEOF
18612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosh" >&5
18613 $as_echo_n "checking for ccosh... " >&6; }
18614 if test "${gcc_cv_math_func_ccosh+set}" = set; then :
18615 $as_echo_n "(cached) " >&6
18616 else
18617 if test x$gcc_no_link = xyes; then
18618 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18621 /* end confdefs.h. */
18623 #ifdef HAVE_COMPLEX_H
18624 #include <complex.h>
18625 #endif
18626 #ifdef HAVE_MATH_H
18627 #include <math.h>
18628 #endif
18630 int (*ptr)() = (int (*)())ccosh;
18633 main ()
18635 return 0;
18638 _ACEOF
18639 if ac_fn_c_try_link "$LINENO"; then :
18640 gcc_cv_math_func_ccosh=yes
18641 else
18642 gcc_cv_math_func_ccosh=no
18644 rm -f core conftest.err conftest.$ac_objext \
18645 conftest$ac_exeext conftest.$ac_ext
18647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosh" >&5
18648 $as_echo "$gcc_cv_math_func_ccosh" >&6; }
18649 if test $gcc_cv_math_func_ccosh = yes; then
18651 cat >>confdefs.h <<_ACEOF
18652 #define HAVE_CCOSH 1
18653 _ACEOF
18660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshl" >&5
18661 $as_echo_n "checking for ccoshl... " >&6; }
18662 if test "${gcc_cv_math_func_ccoshl+set}" = set; then :
18663 $as_echo_n "(cached) " >&6
18664 else
18665 if test x$gcc_no_link = xyes; then
18666 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18669 /* end confdefs.h. */
18671 #ifdef HAVE_COMPLEX_H
18672 #include <complex.h>
18673 #endif
18674 #ifdef HAVE_MATH_H
18675 #include <math.h>
18676 #endif
18678 int (*ptr)() = (int (*)())ccoshl;
18681 main ()
18683 return 0;
18686 _ACEOF
18687 if ac_fn_c_try_link "$LINENO"; then :
18688 gcc_cv_math_func_ccoshl=yes
18689 else
18690 gcc_cv_math_func_ccoshl=no
18692 rm -f core conftest.err conftest.$ac_objext \
18693 conftest$ac_exeext conftest.$ac_ext
18695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshl" >&5
18696 $as_echo "$gcc_cv_math_func_ccoshl" >&6; }
18697 if test $gcc_cv_math_func_ccoshl = yes; then
18699 cat >>confdefs.h <<_ACEOF
18700 #define HAVE_CCOSHL 1
18701 _ACEOF
18708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf" >&5
18709 $as_echo_n "checking for expf... " >&6; }
18710 if test "${gcc_cv_math_func_expf+set}" = set; then :
18711 $as_echo_n "(cached) " >&6
18712 else
18713 if test x$gcc_no_link = xyes; then
18714 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18717 /* end confdefs.h. */
18719 #ifdef HAVE_COMPLEX_H
18720 #include <complex.h>
18721 #endif
18722 #ifdef HAVE_MATH_H
18723 #include <math.h>
18724 #endif
18726 int (*ptr)() = (int (*)())expf;
18729 main ()
18731 return 0;
18734 _ACEOF
18735 if ac_fn_c_try_link "$LINENO"; then :
18736 gcc_cv_math_func_expf=yes
18737 else
18738 gcc_cv_math_func_expf=no
18740 rm -f core conftest.err conftest.$ac_objext \
18741 conftest$ac_exeext conftest.$ac_ext
18743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expf" >&5
18744 $as_echo "$gcc_cv_math_func_expf" >&6; }
18745 if test $gcc_cv_math_func_expf = yes; then
18747 cat >>confdefs.h <<_ACEOF
18748 #define HAVE_EXPF 1
18749 _ACEOF
18756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp" >&5
18757 $as_echo_n "checking for exp... " >&6; }
18758 if test "${gcc_cv_math_func_exp+set}" = set; then :
18759 $as_echo_n "(cached) " >&6
18760 else
18761 if test x$gcc_no_link = xyes; then
18762 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18765 /* end confdefs.h. */
18767 #ifdef HAVE_COMPLEX_H
18768 #include <complex.h>
18769 #endif
18770 #ifdef HAVE_MATH_H
18771 #include <math.h>
18772 #endif
18774 int (*ptr)() = (int (*)())exp;
18777 main ()
18779 return 0;
18782 _ACEOF
18783 if ac_fn_c_try_link "$LINENO"; then :
18784 gcc_cv_math_func_exp=yes
18785 else
18786 gcc_cv_math_func_exp=no
18788 rm -f core conftest.err conftest.$ac_objext \
18789 conftest$ac_exeext conftest.$ac_ext
18791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_exp" >&5
18792 $as_echo "$gcc_cv_math_func_exp" >&6; }
18793 if test $gcc_cv_math_func_exp = yes; then
18795 cat >>confdefs.h <<_ACEOF
18796 #define HAVE_EXP 1
18797 _ACEOF
18804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl" >&5
18805 $as_echo_n "checking for expl... " >&6; }
18806 if test "${gcc_cv_math_func_expl+set}" = set; then :
18807 $as_echo_n "(cached) " >&6
18808 else
18809 if test x$gcc_no_link = xyes; then
18810 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18812 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18813 /* end confdefs.h. */
18815 #ifdef HAVE_COMPLEX_H
18816 #include <complex.h>
18817 #endif
18818 #ifdef HAVE_MATH_H
18819 #include <math.h>
18820 #endif
18822 int (*ptr)() = (int (*)())expl;
18825 main ()
18827 return 0;
18830 _ACEOF
18831 if ac_fn_c_try_link "$LINENO"; then :
18832 gcc_cv_math_func_expl=yes
18833 else
18834 gcc_cv_math_func_expl=no
18836 rm -f core conftest.err conftest.$ac_objext \
18837 conftest$ac_exeext conftest.$ac_ext
18839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expl" >&5
18840 $as_echo "$gcc_cv_math_func_expl" >&6; }
18841 if test $gcc_cv_math_func_expl = yes; then
18843 cat >>confdefs.h <<_ACEOF
18844 #define HAVE_EXPL 1
18845 _ACEOF
18852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpf" >&5
18853 $as_echo_n "checking for cexpf... " >&6; }
18854 if test "${gcc_cv_math_func_cexpf+set}" = set; then :
18855 $as_echo_n "(cached) " >&6
18856 else
18857 if test x$gcc_no_link = xyes; then
18858 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18861 /* end confdefs.h. */
18863 #ifdef HAVE_COMPLEX_H
18864 #include <complex.h>
18865 #endif
18866 #ifdef HAVE_MATH_H
18867 #include <math.h>
18868 #endif
18870 int (*ptr)() = (int (*)())cexpf;
18873 main ()
18875 return 0;
18878 _ACEOF
18879 if ac_fn_c_try_link "$LINENO"; then :
18880 gcc_cv_math_func_cexpf=yes
18881 else
18882 gcc_cv_math_func_cexpf=no
18884 rm -f core conftest.err conftest.$ac_objext \
18885 conftest$ac_exeext conftest.$ac_ext
18887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpf" >&5
18888 $as_echo "$gcc_cv_math_func_cexpf" >&6; }
18889 if test $gcc_cv_math_func_cexpf = yes; then
18891 cat >>confdefs.h <<_ACEOF
18892 #define HAVE_CEXPF 1
18893 _ACEOF
18900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexp" >&5
18901 $as_echo_n "checking for cexp... " >&6; }
18902 if test "${gcc_cv_math_func_cexp+set}" = set; then :
18903 $as_echo_n "(cached) " >&6
18904 else
18905 if test x$gcc_no_link = xyes; then
18906 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18908 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18909 /* end confdefs.h. */
18911 #ifdef HAVE_COMPLEX_H
18912 #include <complex.h>
18913 #endif
18914 #ifdef HAVE_MATH_H
18915 #include <math.h>
18916 #endif
18918 int (*ptr)() = (int (*)())cexp;
18921 main ()
18923 return 0;
18926 _ACEOF
18927 if ac_fn_c_try_link "$LINENO"; then :
18928 gcc_cv_math_func_cexp=yes
18929 else
18930 gcc_cv_math_func_cexp=no
18932 rm -f core conftest.err conftest.$ac_objext \
18933 conftest$ac_exeext conftest.$ac_ext
18935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexp" >&5
18936 $as_echo "$gcc_cv_math_func_cexp" >&6; }
18937 if test $gcc_cv_math_func_cexp = yes; then
18939 cat >>confdefs.h <<_ACEOF
18940 #define HAVE_CEXP 1
18941 _ACEOF
18948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpl" >&5
18949 $as_echo_n "checking for cexpl... " >&6; }
18950 if test "${gcc_cv_math_func_cexpl+set}" = set; then :
18951 $as_echo_n "(cached) " >&6
18952 else
18953 if test x$gcc_no_link = xyes; then
18954 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18957 /* end confdefs.h. */
18959 #ifdef HAVE_COMPLEX_H
18960 #include <complex.h>
18961 #endif
18962 #ifdef HAVE_MATH_H
18963 #include <math.h>
18964 #endif
18966 int (*ptr)() = (int (*)())cexpl;
18969 main ()
18971 return 0;
18974 _ACEOF
18975 if ac_fn_c_try_link "$LINENO"; then :
18976 gcc_cv_math_func_cexpl=yes
18977 else
18978 gcc_cv_math_func_cexpl=no
18980 rm -f core conftest.err conftest.$ac_objext \
18981 conftest$ac_exeext conftest.$ac_ext
18983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpl" >&5
18984 $as_echo "$gcc_cv_math_func_cexpl" >&6; }
18985 if test $gcc_cv_math_func_cexpl = yes; then
18987 cat >>confdefs.h <<_ACEOF
18988 #define HAVE_CEXPL 1
18989 _ACEOF
18996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf" >&5
18997 $as_echo_n "checking for fabsf... " >&6; }
18998 if test "${gcc_cv_math_func_fabsf+set}" = set; then :
18999 $as_echo_n "(cached) " >&6
19000 else
19001 if test x$gcc_no_link = xyes; then
19002 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19005 /* end confdefs.h. */
19007 #ifdef HAVE_COMPLEX_H
19008 #include <complex.h>
19009 #endif
19010 #ifdef HAVE_MATH_H
19011 #include <math.h>
19012 #endif
19014 int (*ptr)() = (int (*)())fabsf;
19017 main ()
19019 return 0;
19022 _ACEOF
19023 if ac_fn_c_try_link "$LINENO"; then :
19024 gcc_cv_math_func_fabsf=yes
19025 else
19026 gcc_cv_math_func_fabsf=no
19028 rm -f core conftest.err conftest.$ac_objext \
19029 conftest$ac_exeext conftest.$ac_ext
19031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsf" >&5
19032 $as_echo "$gcc_cv_math_func_fabsf" >&6; }
19033 if test $gcc_cv_math_func_fabsf = yes; then
19035 cat >>confdefs.h <<_ACEOF
19036 #define HAVE_FABSF 1
19037 _ACEOF
19044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs" >&5
19045 $as_echo_n "checking for fabs... " >&6; }
19046 if test "${gcc_cv_math_func_fabs+set}" = set; then :
19047 $as_echo_n "(cached) " >&6
19048 else
19049 if test x$gcc_no_link = xyes; then
19050 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19053 /* end confdefs.h. */
19055 #ifdef HAVE_COMPLEX_H
19056 #include <complex.h>
19057 #endif
19058 #ifdef HAVE_MATH_H
19059 #include <math.h>
19060 #endif
19062 int (*ptr)() = (int (*)())fabs;
19065 main ()
19067 return 0;
19070 _ACEOF
19071 if ac_fn_c_try_link "$LINENO"; then :
19072 gcc_cv_math_func_fabs=yes
19073 else
19074 gcc_cv_math_func_fabs=no
19076 rm -f core conftest.err conftest.$ac_objext \
19077 conftest$ac_exeext conftest.$ac_ext
19079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabs" >&5
19080 $as_echo "$gcc_cv_math_func_fabs" >&6; }
19081 if test $gcc_cv_math_func_fabs = yes; then
19083 cat >>confdefs.h <<_ACEOF
19084 #define HAVE_FABS 1
19085 _ACEOF
19092 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl" >&5
19093 $as_echo_n "checking for fabsl... " >&6; }
19094 if test "${gcc_cv_math_func_fabsl+set}" = set; then :
19095 $as_echo_n "(cached) " >&6
19096 else
19097 if test x$gcc_no_link = xyes; then
19098 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19101 /* end confdefs.h. */
19103 #ifdef HAVE_COMPLEX_H
19104 #include <complex.h>
19105 #endif
19106 #ifdef HAVE_MATH_H
19107 #include <math.h>
19108 #endif
19110 int (*ptr)() = (int (*)())fabsl;
19113 main ()
19115 return 0;
19118 _ACEOF
19119 if ac_fn_c_try_link "$LINENO"; then :
19120 gcc_cv_math_func_fabsl=yes
19121 else
19122 gcc_cv_math_func_fabsl=no
19124 rm -f core conftest.err conftest.$ac_objext \
19125 conftest$ac_exeext conftest.$ac_ext
19127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsl" >&5
19128 $as_echo "$gcc_cv_math_func_fabsl" >&6; }
19129 if test $gcc_cv_math_func_fabsl = yes; then
19131 cat >>confdefs.h <<_ACEOF
19132 #define HAVE_FABSL 1
19133 _ACEOF
19140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsf" >&5
19141 $as_echo_n "checking for cabsf... " >&6; }
19142 if test "${gcc_cv_math_func_cabsf+set}" = set; then :
19143 $as_echo_n "(cached) " >&6
19144 else
19145 if test x$gcc_no_link = xyes; then
19146 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19149 /* end confdefs.h. */
19151 #ifdef HAVE_COMPLEX_H
19152 #include <complex.h>
19153 #endif
19154 #ifdef HAVE_MATH_H
19155 #include <math.h>
19156 #endif
19158 int (*ptr)() = (int (*)())cabsf;
19161 main ()
19163 return 0;
19166 _ACEOF
19167 if ac_fn_c_try_link "$LINENO"; then :
19168 gcc_cv_math_func_cabsf=yes
19169 else
19170 gcc_cv_math_func_cabsf=no
19172 rm -f core conftest.err conftest.$ac_objext \
19173 conftest$ac_exeext conftest.$ac_ext
19175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsf" >&5
19176 $as_echo "$gcc_cv_math_func_cabsf" >&6; }
19177 if test $gcc_cv_math_func_cabsf = yes; then
19179 cat >>confdefs.h <<_ACEOF
19180 #define HAVE_CABSF 1
19181 _ACEOF
19188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabs" >&5
19189 $as_echo_n "checking for cabs... " >&6; }
19190 if test "${gcc_cv_math_func_cabs+set}" = set; then :
19191 $as_echo_n "(cached) " >&6
19192 else
19193 if test x$gcc_no_link = xyes; then
19194 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19197 /* end confdefs.h. */
19199 #ifdef HAVE_COMPLEX_H
19200 #include <complex.h>
19201 #endif
19202 #ifdef HAVE_MATH_H
19203 #include <math.h>
19204 #endif
19206 int (*ptr)() = (int (*)())cabs;
19209 main ()
19211 return 0;
19214 _ACEOF
19215 if ac_fn_c_try_link "$LINENO"; then :
19216 gcc_cv_math_func_cabs=yes
19217 else
19218 gcc_cv_math_func_cabs=no
19220 rm -f core conftest.err conftest.$ac_objext \
19221 conftest$ac_exeext conftest.$ac_ext
19223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabs" >&5
19224 $as_echo "$gcc_cv_math_func_cabs" >&6; }
19225 if test $gcc_cv_math_func_cabs = yes; then
19227 cat >>confdefs.h <<_ACEOF
19228 #define HAVE_CABS 1
19229 _ACEOF
19236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsl" >&5
19237 $as_echo_n "checking for cabsl... " >&6; }
19238 if test "${gcc_cv_math_func_cabsl+set}" = set; then :
19239 $as_echo_n "(cached) " >&6
19240 else
19241 if test x$gcc_no_link = xyes; then
19242 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19245 /* end confdefs.h. */
19247 #ifdef HAVE_COMPLEX_H
19248 #include <complex.h>
19249 #endif
19250 #ifdef HAVE_MATH_H
19251 #include <math.h>
19252 #endif
19254 int (*ptr)() = (int (*)())cabsl;
19257 main ()
19259 return 0;
19262 _ACEOF
19263 if ac_fn_c_try_link "$LINENO"; then :
19264 gcc_cv_math_func_cabsl=yes
19265 else
19266 gcc_cv_math_func_cabsl=no
19268 rm -f core conftest.err conftest.$ac_objext \
19269 conftest$ac_exeext conftest.$ac_ext
19271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsl" >&5
19272 $as_echo "$gcc_cv_math_func_cabsl" >&6; }
19273 if test $gcc_cv_math_func_cabsl = yes; then
19275 cat >>confdefs.h <<_ACEOF
19276 #define HAVE_CABSL 1
19277 _ACEOF
19284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorf" >&5
19285 $as_echo_n "checking for floorf... " >&6; }
19286 if test "${gcc_cv_math_func_floorf+set}" = set; then :
19287 $as_echo_n "(cached) " >&6
19288 else
19289 if test x$gcc_no_link = xyes; then
19290 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19293 /* end confdefs.h. */
19295 #ifdef HAVE_COMPLEX_H
19296 #include <complex.h>
19297 #endif
19298 #ifdef HAVE_MATH_H
19299 #include <math.h>
19300 #endif
19302 int (*ptr)() = (int (*)())floorf;
19305 main ()
19307 return 0;
19310 _ACEOF
19311 if ac_fn_c_try_link "$LINENO"; then :
19312 gcc_cv_math_func_floorf=yes
19313 else
19314 gcc_cv_math_func_floorf=no
19316 rm -f core conftest.err conftest.$ac_objext \
19317 conftest$ac_exeext conftest.$ac_ext
19319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorf" >&5
19320 $as_echo "$gcc_cv_math_func_floorf" >&6; }
19321 if test $gcc_cv_math_func_floorf = yes; then
19323 cat >>confdefs.h <<_ACEOF
19324 #define HAVE_FLOORF 1
19325 _ACEOF
19332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor" >&5
19333 $as_echo_n "checking for floor... " >&6; }
19334 if test "${gcc_cv_math_func_floor+set}" = set; then :
19335 $as_echo_n "(cached) " >&6
19336 else
19337 if test x$gcc_no_link = xyes; then
19338 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19341 /* end confdefs.h. */
19343 #ifdef HAVE_COMPLEX_H
19344 #include <complex.h>
19345 #endif
19346 #ifdef HAVE_MATH_H
19347 #include <math.h>
19348 #endif
19350 int (*ptr)() = (int (*)())floor;
19353 main ()
19355 return 0;
19358 _ACEOF
19359 if ac_fn_c_try_link "$LINENO"; then :
19360 gcc_cv_math_func_floor=yes
19361 else
19362 gcc_cv_math_func_floor=no
19364 rm -f core conftest.err conftest.$ac_objext \
19365 conftest$ac_exeext conftest.$ac_ext
19367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floor" >&5
19368 $as_echo "$gcc_cv_math_func_floor" >&6; }
19369 if test $gcc_cv_math_func_floor = yes; then
19371 cat >>confdefs.h <<_ACEOF
19372 #define HAVE_FLOOR 1
19373 _ACEOF
19380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorl" >&5
19381 $as_echo_n "checking for floorl... " >&6; }
19382 if test "${gcc_cv_math_func_floorl+set}" = set; then :
19383 $as_echo_n "(cached) " >&6
19384 else
19385 if test x$gcc_no_link = xyes; then
19386 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19389 /* end confdefs.h. */
19391 #ifdef HAVE_COMPLEX_H
19392 #include <complex.h>
19393 #endif
19394 #ifdef HAVE_MATH_H
19395 #include <math.h>
19396 #endif
19398 int (*ptr)() = (int (*)())floorl;
19401 main ()
19403 return 0;
19406 _ACEOF
19407 if ac_fn_c_try_link "$LINENO"; then :
19408 gcc_cv_math_func_floorl=yes
19409 else
19410 gcc_cv_math_func_floorl=no
19412 rm -f core conftest.err conftest.$ac_objext \
19413 conftest$ac_exeext conftest.$ac_ext
19415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorl" >&5
19416 $as_echo "$gcc_cv_math_func_floorl" >&6; }
19417 if test $gcc_cv_math_func_floorl = yes; then
19419 cat >>confdefs.h <<_ACEOF
19420 #define HAVE_FLOORL 1
19421 _ACEOF
19428 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf" >&5
19429 $as_echo_n "checking for fmodf... " >&6; }
19430 if test "${gcc_cv_math_func_fmodf+set}" = set; then :
19431 $as_echo_n "(cached) " >&6
19432 else
19433 if test x$gcc_no_link = xyes; then
19434 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19436 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19437 /* end confdefs.h. */
19439 #ifdef HAVE_COMPLEX_H
19440 #include <complex.h>
19441 #endif
19442 #ifdef HAVE_MATH_H
19443 #include <math.h>
19444 #endif
19446 int (*ptr)() = (int (*)())fmodf;
19449 main ()
19451 return 0;
19454 _ACEOF
19455 if ac_fn_c_try_link "$LINENO"; then :
19456 gcc_cv_math_func_fmodf=yes
19457 else
19458 gcc_cv_math_func_fmodf=no
19460 rm -f core conftest.err conftest.$ac_objext \
19461 conftest$ac_exeext conftest.$ac_ext
19463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodf" >&5
19464 $as_echo "$gcc_cv_math_func_fmodf" >&6; }
19465 if test $gcc_cv_math_func_fmodf = yes; then
19467 cat >>confdefs.h <<_ACEOF
19468 #define HAVE_FMODF 1
19469 _ACEOF
19476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod" >&5
19477 $as_echo_n "checking for fmod... " >&6; }
19478 if test "${gcc_cv_math_func_fmod+set}" = set; then :
19479 $as_echo_n "(cached) " >&6
19480 else
19481 if test x$gcc_no_link = xyes; then
19482 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19485 /* end confdefs.h. */
19487 #ifdef HAVE_COMPLEX_H
19488 #include <complex.h>
19489 #endif
19490 #ifdef HAVE_MATH_H
19491 #include <math.h>
19492 #endif
19494 int (*ptr)() = (int (*)())fmod;
19497 main ()
19499 return 0;
19502 _ACEOF
19503 if ac_fn_c_try_link "$LINENO"; then :
19504 gcc_cv_math_func_fmod=yes
19505 else
19506 gcc_cv_math_func_fmod=no
19508 rm -f core conftest.err conftest.$ac_objext \
19509 conftest$ac_exeext conftest.$ac_ext
19511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmod" >&5
19512 $as_echo "$gcc_cv_math_func_fmod" >&6; }
19513 if test $gcc_cv_math_func_fmod = yes; then
19515 cat >>confdefs.h <<_ACEOF
19516 #define HAVE_FMOD 1
19517 _ACEOF
19524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl" >&5
19525 $as_echo_n "checking for fmodl... " >&6; }
19526 if test "${gcc_cv_math_func_fmodl+set}" = set; then :
19527 $as_echo_n "(cached) " >&6
19528 else
19529 if test x$gcc_no_link = xyes; then
19530 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19533 /* end confdefs.h. */
19535 #ifdef HAVE_COMPLEX_H
19536 #include <complex.h>
19537 #endif
19538 #ifdef HAVE_MATH_H
19539 #include <math.h>
19540 #endif
19542 int (*ptr)() = (int (*)())fmodl;
19545 main ()
19547 return 0;
19550 _ACEOF
19551 if ac_fn_c_try_link "$LINENO"; then :
19552 gcc_cv_math_func_fmodl=yes
19553 else
19554 gcc_cv_math_func_fmodl=no
19556 rm -f core conftest.err conftest.$ac_objext \
19557 conftest$ac_exeext conftest.$ac_ext
19559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodl" >&5
19560 $as_echo "$gcc_cv_math_func_fmodl" >&6; }
19561 if test $gcc_cv_math_func_fmodl = yes; then
19563 cat >>confdefs.h <<_ACEOF
19564 #define HAVE_FMODL 1
19565 _ACEOF
19572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf" >&5
19573 $as_echo_n "checking for frexpf... " >&6; }
19574 if test "${gcc_cv_math_func_frexpf+set}" = set; then :
19575 $as_echo_n "(cached) " >&6
19576 else
19577 if test x$gcc_no_link = xyes; then
19578 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19581 /* end confdefs.h. */
19583 #ifdef HAVE_COMPLEX_H
19584 #include <complex.h>
19585 #endif
19586 #ifdef HAVE_MATH_H
19587 #include <math.h>
19588 #endif
19590 int (*ptr)() = (int (*)())frexpf;
19593 main ()
19595 return 0;
19598 _ACEOF
19599 if ac_fn_c_try_link "$LINENO"; then :
19600 gcc_cv_math_func_frexpf=yes
19601 else
19602 gcc_cv_math_func_frexpf=no
19604 rm -f core conftest.err conftest.$ac_objext \
19605 conftest$ac_exeext conftest.$ac_ext
19607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpf" >&5
19608 $as_echo "$gcc_cv_math_func_frexpf" >&6; }
19609 if test $gcc_cv_math_func_frexpf = yes; then
19611 cat >>confdefs.h <<_ACEOF
19612 #define HAVE_FREXPF 1
19613 _ACEOF
19620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexp" >&5
19621 $as_echo_n "checking for frexp... " >&6; }
19622 if test "${gcc_cv_math_func_frexp+set}" = set; then :
19623 $as_echo_n "(cached) " >&6
19624 else
19625 if test x$gcc_no_link = xyes; then
19626 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19629 /* end confdefs.h. */
19631 #ifdef HAVE_COMPLEX_H
19632 #include <complex.h>
19633 #endif
19634 #ifdef HAVE_MATH_H
19635 #include <math.h>
19636 #endif
19638 int (*ptr)() = (int (*)())frexp;
19641 main ()
19643 return 0;
19646 _ACEOF
19647 if ac_fn_c_try_link "$LINENO"; then :
19648 gcc_cv_math_func_frexp=yes
19649 else
19650 gcc_cv_math_func_frexp=no
19652 rm -f core conftest.err conftest.$ac_objext \
19653 conftest$ac_exeext conftest.$ac_ext
19655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexp" >&5
19656 $as_echo "$gcc_cv_math_func_frexp" >&6; }
19657 if test $gcc_cv_math_func_frexp = yes; then
19659 cat >>confdefs.h <<_ACEOF
19660 #define HAVE_FREXP 1
19661 _ACEOF
19668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl" >&5
19669 $as_echo_n "checking for frexpl... " >&6; }
19670 if test "${gcc_cv_math_func_frexpl+set}" = set; then :
19671 $as_echo_n "(cached) " >&6
19672 else
19673 if test x$gcc_no_link = xyes; then
19674 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19677 /* end confdefs.h. */
19679 #ifdef HAVE_COMPLEX_H
19680 #include <complex.h>
19681 #endif
19682 #ifdef HAVE_MATH_H
19683 #include <math.h>
19684 #endif
19686 int (*ptr)() = (int (*)())frexpl;
19689 main ()
19691 return 0;
19694 _ACEOF
19695 if ac_fn_c_try_link "$LINENO"; then :
19696 gcc_cv_math_func_frexpl=yes
19697 else
19698 gcc_cv_math_func_frexpl=no
19700 rm -f core conftest.err conftest.$ac_objext \
19701 conftest$ac_exeext conftest.$ac_ext
19703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpl" >&5
19704 $as_echo "$gcc_cv_math_func_frexpl" >&6; }
19705 if test $gcc_cv_math_func_frexpl = yes; then
19707 cat >>confdefs.h <<_ACEOF
19708 #define HAVE_FREXPL 1
19709 _ACEOF
19716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf" >&5
19717 $as_echo_n "checking for hypotf... " >&6; }
19718 if test "${gcc_cv_math_func_hypotf+set}" = set; then :
19719 $as_echo_n "(cached) " >&6
19720 else
19721 if test x$gcc_no_link = xyes; then
19722 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19725 /* end confdefs.h. */
19727 #ifdef HAVE_COMPLEX_H
19728 #include <complex.h>
19729 #endif
19730 #ifdef HAVE_MATH_H
19731 #include <math.h>
19732 #endif
19734 int (*ptr)() = (int (*)())hypotf;
19737 main ()
19739 return 0;
19742 _ACEOF
19743 if ac_fn_c_try_link "$LINENO"; then :
19744 gcc_cv_math_func_hypotf=yes
19745 else
19746 gcc_cv_math_func_hypotf=no
19748 rm -f core conftest.err conftest.$ac_objext \
19749 conftest$ac_exeext conftest.$ac_ext
19751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotf" >&5
19752 $as_echo "$gcc_cv_math_func_hypotf" >&6; }
19753 if test $gcc_cv_math_func_hypotf = yes; then
19755 cat >>confdefs.h <<_ACEOF
19756 #define HAVE_HYPOTF 1
19757 _ACEOF
19764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot" >&5
19765 $as_echo_n "checking for hypot... " >&6; }
19766 if test "${gcc_cv_math_func_hypot+set}" = set; then :
19767 $as_echo_n "(cached) " >&6
19768 else
19769 if test x$gcc_no_link = xyes; then
19770 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19773 /* end confdefs.h. */
19775 #ifdef HAVE_COMPLEX_H
19776 #include <complex.h>
19777 #endif
19778 #ifdef HAVE_MATH_H
19779 #include <math.h>
19780 #endif
19782 int (*ptr)() = (int (*)())hypot;
19785 main ()
19787 return 0;
19790 _ACEOF
19791 if ac_fn_c_try_link "$LINENO"; then :
19792 gcc_cv_math_func_hypot=yes
19793 else
19794 gcc_cv_math_func_hypot=no
19796 rm -f core conftest.err conftest.$ac_objext \
19797 conftest$ac_exeext conftest.$ac_ext
19799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypot" >&5
19800 $as_echo "$gcc_cv_math_func_hypot" >&6; }
19801 if test $gcc_cv_math_func_hypot = yes; then
19803 cat >>confdefs.h <<_ACEOF
19804 #define HAVE_HYPOT 1
19805 _ACEOF
19812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl" >&5
19813 $as_echo_n "checking for hypotl... " >&6; }
19814 if test "${gcc_cv_math_func_hypotl+set}" = set; then :
19815 $as_echo_n "(cached) " >&6
19816 else
19817 if test x$gcc_no_link = xyes; then
19818 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19821 /* end confdefs.h. */
19823 #ifdef HAVE_COMPLEX_H
19824 #include <complex.h>
19825 #endif
19826 #ifdef HAVE_MATH_H
19827 #include <math.h>
19828 #endif
19830 int (*ptr)() = (int (*)())hypotl;
19833 main ()
19835 return 0;
19838 _ACEOF
19839 if ac_fn_c_try_link "$LINENO"; then :
19840 gcc_cv_math_func_hypotl=yes
19841 else
19842 gcc_cv_math_func_hypotl=no
19844 rm -f core conftest.err conftest.$ac_objext \
19845 conftest$ac_exeext conftest.$ac_ext
19847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotl" >&5
19848 $as_echo "$gcc_cv_math_func_hypotl" >&6; }
19849 if test $gcc_cv_math_func_hypotl = yes; then
19851 cat >>confdefs.h <<_ACEOF
19852 #define HAVE_HYPOTL 1
19853 _ACEOF
19860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf" >&5
19861 $as_echo_n "checking for ldexpf... " >&6; }
19862 if test "${gcc_cv_math_func_ldexpf+set}" = set; then :
19863 $as_echo_n "(cached) " >&6
19864 else
19865 if test x$gcc_no_link = xyes; then
19866 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19869 /* end confdefs.h. */
19871 #ifdef HAVE_COMPLEX_H
19872 #include <complex.h>
19873 #endif
19874 #ifdef HAVE_MATH_H
19875 #include <math.h>
19876 #endif
19878 int (*ptr)() = (int (*)())ldexpf;
19881 main ()
19883 return 0;
19886 _ACEOF
19887 if ac_fn_c_try_link "$LINENO"; then :
19888 gcc_cv_math_func_ldexpf=yes
19889 else
19890 gcc_cv_math_func_ldexpf=no
19892 rm -f core conftest.err conftest.$ac_objext \
19893 conftest$ac_exeext conftest.$ac_ext
19895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpf" >&5
19896 $as_echo "$gcc_cv_math_func_ldexpf" >&6; }
19897 if test $gcc_cv_math_func_ldexpf = yes; then
19899 cat >>confdefs.h <<_ACEOF
19900 #define HAVE_LDEXPF 1
19901 _ACEOF
19908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexp" >&5
19909 $as_echo_n "checking for ldexp... " >&6; }
19910 if test "${gcc_cv_math_func_ldexp+set}" = set; then :
19911 $as_echo_n "(cached) " >&6
19912 else
19913 if test x$gcc_no_link = xyes; then
19914 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19917 /* end confdefs.h. */
19919 #ifdef HAVE_COMPLEX_H
19920 #include <complex.h>
19921 #endif
19922 #ifdef HAVE_MATH_H
19923 #include <math.h>
19924 #endif
19926 int (*ptr)() = (int (*)())ldexp;
19929 main ()
19931 return 0;
19934 _ACEOF
19935 if ac_fn_c_try_link "$LINENO"; then :
19936 gcc_cv_math_func_ldexp=yes
19937 else
19938 gcc_cv_math_func_ldexp=no
19940 rm -f core conftest.err conftest.$ac_objext \
19941 conftest$ac_exeext conftest.$ac_ext
19943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexp" >&5
19944 $as_echo "$gcc_cv_math_func_ldexp" >&6; }
19945 if test $gcc_cv_math_func_ldexp = yes; then
19947 cat >>confdefs.h <<_ACEOF
19948 #define HAVE_LDEXP 1
19949 _ACEOF
19956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl" >&5
19957 $as_echo_n "checking for ldexpl... " >&6; }
19958 if test "${gcc_cv_math_func_ldexpl+set}" = set; then :
19959 $as_echo_n "(cached) " >&6
19960 else
19961 if test x$gcc_no_link = xyes; then
19962 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19965 /* end confdefs.h. */
19967 #ifdef HAVE_COMPLEX_H
19968 #include <complex.h>
19969 #endif
19970 #ifdef HAVE_MATH_H
19971 #include <math.h>
19972 #endif
19974 int (*ptr)() = (int (*)())ldexpl;
19977 main ()
19979 return 0;
19982 _ACEOF
19983 if ac_fn_c_try_link "$LINENO"; then :
19984 gcc_cv_math_func_ldexpl=yes
19985 else
19986 gcc_cv_math_func_ldexpl=no
19988 rm -f core conftest.err conftest.$ac_objext \
19989 conftest$ac_exeext conftest.$ac_ext
19991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpl" >&5
19992 $as_echo "$gcc_cv_math_func_ldexpl" >&6; }
19993 if test $gcc_cv_math_func_ldexpl = yes; then
19995 cat >>confdefs.h <<_ACEOF
19996 #define HAVE_LDEXPL 1
19997 _ACEOF
20004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf" >&5
20005 $as_echo_n "checking for logf... " >&6; }
20006 if test "${gcc_cv_math_func_logf+set}" = set; then :
20007 $as_echo_n "(cached) " >&6
20008 else
20009 if test x$gcc_no_link = xyes; then
20010 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20013 /* end confdefs.h. */
20015 #ifdef HAVE_COMPLEX_H
20016 #include <complex.h>
20017 #endif
20018 #ifdef HAVE_MATH_H
20019 #include <math.h>
20020 #endif
20022 int (*ptr)() = (int (*)())logf;
20025 main ()
20027 return 0;
20030 _ACEOF
20031 if ac_fn_c_try_link "$LINENO"; then :
20032 gcc_cv_math_func_logf=yes
20033 else
20034 gcc_cv_math_func_logf=no
20036 rm -f core conftest.err conftest.$ac_objext \
20037 conftest$ac_exeext conftest.$ac_ext
20039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logf" >&5
20040 $as_echo "$gcc_cv_math_func_logf" >&6; }
20041 if test $gcc_cv_math_func_logf = yes; then
20043 cat >>confdefs.h <<_ACEOF
20044 #define HAVE_LOGF 1
20045 _ACEOF
20052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log" >&5
20053 $as_echo_n "checking for log... " >&6; }
20054 if test "${gcc_cv_math_func_log+set}" = set; then :
20055 $as_echo_n "(cached) " >&6
20056 else
20057 if test x$gcc_no_link = xyes; then
20058 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20061 /* end confdefs.h. */
20063 #ifdef HAVE_COMPLEX_H
20064 #include <complex.h>
20065 #endif
20066 #ifdef HAVE_MATH_H
20067 #include <math.h>
20068 #endif
20070 int (*ptr)() = (int (*)())log;
20073 main ()
20075 return 0;
20078 _ACEOF
20079 if ac_fn_c_try_link "$LINENO"; then :
20080 gcc_cv_math_func_log=yes
20081 else
20082 gcc_cv_math_func_log=no
20084 rm -f core conftest.err conftest.$ac_objext \
20085 conftest$ac_exeext conftest.$ac_ext
20087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log" >&5
20088 $as_echo "$gcc_cv_math_func_log" >&6; }
20089 if test $gcc_cv_math_func_log = yes; then
20091 cat >>confdefs.h <<_ACEOF
20092 #define HAVE_LOG 1
20093 _ACEOF
20100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl" >&5
20101 $as_echo_n "checking for logl... " >&6; }
20102 if test "${gcc_cv_math_func_logl+set}" = set; then :
20103 $as_echo_n "(cached) " >&6
20104 else
20105 if test x$gcc_no_link = xyes; then
20106 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20109 /* end confdefs.h. */
20111 #ifdef HAVE_COMPLEX_H
20112 #include <complex.h>
20113 #endif
20114 #ifdef HAVE_MATH_H
20115 #include <math.h>
20116 #endif
20118 int (*ptr)() = (int (*)())logl;
20121 main ()
20123 return 0;
20126 _ACEOF
20127 if ac_fn_c_try_link "$LINENO"; then :
20128 gcc_cv_math_func_logl=yes
20129 else
20130 gcc_cv_math_func_logl=no
20132 rm -f core conftest.err conftest.$ac_objext \
20133 conftest$ac_exeext conftest.$ac_ext
20135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logl" >&5
20136 $as_echo "$gcc_cv_math_func_logl" >&6; }
20137 if test $gcc_cv_math_func_logl = yes; then
20139 cat >>confdefs.h <<_ACEOF
20140 #define HAVE_LOGL 1
20141 _ACEOF
20148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogf" >&5
20149 $as_echo_n "checking for clogf... " >&6; }
20150 if test "${gcc_cv_math_func_clogf+set}" = set; then :
20151 $as_echo_n "(cached) " >&6
20152 else
20153 if test x$gcc_no_link = xyes; then
20154 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20156 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20157 /* end confdefs.h. */
20159 #ifdef HAVE_COMPLEX_H
20160 #include <complex.h>
20161 #endif
20162 #ifdef HAVE_MATH_H
20163 #include <math.h>
20164 #endif
20166 int (*ptr)() = (int (*)())clogf;
20169 main ()
20171 return 0;
20174 _ACEOF
20175 if ac_fn_c_try_link "$LINENO"; then :
20176 gcc_cv_math_func_clogf=yes
20177 else
20178 gcc_cv_math_func_clogf=no
20180 rm -f core conftest.err conftest.$ac_objext \
20181 conftest$ac_exeext conftest.$ac_ext
20183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogf" >&5
20184 $as_echo "$gcc_cv_math_func_clogf" >&6; }
20185 if test $gcc_cv_math_func_clogf = yes; then
20187 cat >>confdefs.h <<_ACEOF
20188 #define HAVE_CLOGF 1
20189 _ACEOF
20196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog" >&5
20197 $as_echo_n "checking for clog... " >&6; }
20198 if test "${gcc_cv_math_func_clog+set}" = set; then :
20199 $as_echo_n "(cached) " >&6
20200 else
20201 if test x$gcc_no_link = xyes; then
20202 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20205 /* end confdefs.h. */
20207 #ifdef HAVE_COMPLEX_H
20208 #include <complex.h>
20209 #endif
20210 #ifdef HAVE_MATH_H
20211 #include <math.h>
20212 #endif
20214 int (*ptr)() = (int (*)())clog;
20217 main ()
20219 return 0;
20222 _ACEOF
20223 if ac_fn_c_try_link "$LINENO"; then :
20224 gcc_cv_math_func_clog=yes
20225 else
20226 gcc_cv_math_func_clog=no
20228 rm -f core conftest.err conftest.$ac_objext \
20229 conftest$ac_exeext conftest.$ac_ext
20231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog" >&5
20232 $as_echo "$gcc_cv_math_func_clog" >&6; }
20233 if test $gcc_cv_math_func_clog = yes; then
20235 cat >>confdefs.h <<_ACEOF
20236 #define HAVE_CLOG 1
20237 _ACEOF
20244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogl" >&5
20245 $as_echo_n "checking for clogl... " >&6; }
20246 if test "${gcc_cv_math_func_clogl+set}" = set; then :
20247 $as_echo_n "(cached) " >&6
20248 else
20249 if test x$gcc_no_link = xyes; then
20250 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20253 /* end confdefs.h. */
20255 #ifdef HAVE_COMPLEX_H
20256 #include <complex.h>
20257 #endif
20258 #ifdef HAVE_MATH_H
20259 #include <math.h>
20260 #endif
20262 int (*ptr)() = (int (*)())clogl;
20265 main ()
20267 return 0;
20270 _ACEOF
20271 if ac_fn_c_try_link "$LINENO"; then :
20272 gcc_cv_math_func_clogl=yes
20273 else
20274 gcc_cv_math_func_clogl=no
20276 rm -f core conftest.err conftest.$ac_objext \
20277 conftest$ac_exeext conftest.$ac_ext
20279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogl" >&5
20280 $as_echo "$gcc_cv_math_func_clogl" >&6; }
20281 if test $gcc_cv_math_func_clogl = yes; then
20283 cat >>confdefs.h <<_ACEOF
20284 #define HAVE_CLOGL 1
20285 _ACEOF
20292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f" >&5
20293 $as_echo_n "checking for log10f... " >&6; }
20294 if test "${gcc_cv_math_func_log10f+set}" = set; then :
20295 $as_echo_n "(cached) " >&6
20296 else
20297 if test x$gcc_no_link = xyes; then
20298 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20301 /* end confdefs.h. */
20303 #ifdef HAVE_COMPLEX_H
20304 #include <complex.h>
20305 #endif
20306 #ifdef HAVE_MATH_H
20307 #include <math.h>
20308 #endif
20310 int (*ptr)() = (int (*)())log10f;
20313 main ()
20315 return 0;
20318 _ACEOF
20319 if ac_fn_c_try_link "$LINENO"; then :
20320 gcc_cv_math_func_log10f=yes
20321 else
20322 gcc_cv_math_func_log10f=no
20324 rm -f core conftest.err conftest.$ac_objext \
20325 conftest$ac_exeext conftest.$ac_ext
20327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10f" >&5
20328 $as_echo "$gcc_cv_math_func_log10f" >&6; }
20329 if test $gcc_cv_math_func_log10f = yes; then
20331 cat >>confdefs.h <<_ACEOF
20332 #define HAVE_LOG10F 1
20333 _ACEOF
20340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10" >&5
20341 $as_echo_n "checking for log10... " >&6; }
20342 if test "${gcc_cv_math_func_log10+set}" = set; then :
20343 $as_echo_n "(cached) " >&6
20344 else
20345 if test x$gcc_no_link = xyes; then
20346 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20349 /* end confdefs.h. */
20351 #ifdef HAVE_COMPLEX_H
20352 #include <complex.h>
20353 #endif
20354 #ifdef HAVE_MATH_H
20355 #include <math.h>
20356 #endif
20358 int (*ptr)() = (int (*)())log10;
20361 main ()
20363 return 0;
20366 _ACEOF
20367 if ac_fn_c_try_link "$LINENO"; then :
20368 gcc_cv_math_func_log10=yes
20369 else
20370 gcc_cv_math_func_log10=no
20372 rm -f core conftest.err conftest.$ac_objext \
20373 conftest$ac_exeext conftest.$ac_ext
20375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10" >&5
20376 $as_echo "$gcc_cv_math_func_log10" >&6; }
20377 if test $gcc_cv_math_func_log10 = yes; then
20379 cat >>confdefs.h <<_ACEOF
20380 #define HAVE_LOG10 1
20381 _ACEOF
20388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l" >&5
20389 $as_echo_n "checking for log10l... " >&6; }
20390 if test "${gcc_cv_math_func_log10l+set}" = set; then :
20391 $as_echo_n "(cached) " >&6
20392 else
20393 if test x$gcc_no_link = xyes; then
20394 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20397 /* end confdefs.h. */
20399 #ifdef HAVE_COMPLEX_H
20400 #include <complex.h>
20401 #endif
20402 #ifdef HAVE_MATH_H
20403 #include <math.h>
20404 #endif
20406 int (*ptr)() = (int (*)())log10l;
20409 main ()
20411 return 0;
20414 _ACEOF
20415 if ac_fn_c_try_link "$LINENO"; then :
20416 gcc_cv_math_func_log10l=yes
20417 else
20418 gcc_cv_math_func_log10l=no
20420 rm -f core conftest.err conftest.$ac_objext \
20421 conftest$ac_exeext conftest.$ac_ext
20423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10l" >&5
20424 $as_echo "$gcc_cv_math_func_log10l" >&6; }
20425 if test $gcc_cv_math_func_log10l = yes; then
20427 cat >>confdefs.h <<_ACEOF
20428 #define HAVE_LOG10L 1
20429 _ACEOF
20436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10f" >&5
20437 $as_echo_n "checking for clog10f... " >&6; }
20438 if test "${gcc_cv_math_func_clog10f+set}" = set; then :
20439 $as_echo_n "(cached) " >&6
20440 else
20441 if test x$gcc_no_link = xyes; then
20442 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20445 /* end confdefs.h. */
20447 #ifdef HAVE_COMPLEX_H
20448 #include <complex.h>
20449 #endif
20450 #ifdef HAVE_MATH_H
20451 #include <math.h>
20452 #endif
20454 int (*ptr)() = (int (*)())clog10f;
20457 main ()
20459 return 0;
20462 _ACEOF
20463 if ac_fn_c_try_link "$LINENO"; then :
20464 gcc_cv_math_func_clog10f=yes
20465 else
20466 gcc_cv_math_func_clog10f=no
20468 rm -f core conftest.err conftest.$ac_objext \
20469 conftest$ac_exeext conftest.$ac_ext
20471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10f" >&5
20472 $as_echo "$gcc_cv_math_func_clog10f" >&6; }
20473 if test $gcc_cv_math_func_clog10f = yes; then
20475 cat >>confdefs.h <<_ACEOF
20476 #define HAVE_CLOG10F 1
20477 _ACEOF
20484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10" >&5
20485 $as_echo_n "checking for clog10... " >&6; }
20486 if test "${gcc_cv_math_func_clog10+set}" = set; then :
20487 $as_echo_n "(cached) " >&6
20488 else
20489 if test x$gcc_no_link = xyes; then
20490 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20493 /* end confdefs.h. */
20495 #ifdef HAVE_COMPLEX_H
20496 #include <complex.h>
20497 #endif
20498 #ifdef HAVE_MATH_H
20499 #include <math.h>
20500 #endif
20502 int (*ptr)() = (int (*)())clog10;
20505 main ()
20507 return 0;
20510 _ACEOF
20511 if ac_fn_c_try_link "$LINENO"; then :
20512 gcc_cv_math_func_clog10=yes
20513 else
20514 gcc_cv_math_func_clog10=no
20516 rm -f core conftest.err conftest.$ac_objext \
20517 conftest$ac_exeext conftest.$ac_ext
20519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10" >&5
20520 $as_echo "$gcc_cv_math_func_clog10" >&6; }
20521 if test $gcc_cv_math_func_clog10 = yes; then
20523 cat >>confdefs.h <<_ACEOF
20524 #define HAVE_CLOG10 1
20525 _ACEOF
20532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10l" >&5
20533 $as_echo_n "checking for clog10l... " >&6; }
20534 if test "${gcc_cv_math_func_clog10l+set}" = set; then :
20535 $as_echo_n "(cached) " >&6
20536 else
20537 if test x$gcc_no_link = xyes; then
20538 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20541 /* end confdefs.h. */
20543 #ifdef HAVE_COMPLEX_H
20544 #include <complex.h>
20545 #endif
20546 #ifdef HAVE_MATH_H
20547 #include <math.h>
20548 #endif
20550 int (*ptr)() = (int (*)())clog10l;
20553 main ()
20555 return 0;
20558 _ACEOF
20559 if ac_fn_c_try_link "$LINENO"; then :
20560 gcc_cv_math_func_clog10l=yes
20561 else
20562 gcc_cv_math_func_clog10l=no
20564 rm -f core conftest.err conftest.$ac_objext \
20565 conftest$ac_exeext conftest.$ac_ext
20567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10l" >&5
20568 $as_echo "$gcc_cv_math_func_clog10l" >&6; }
20569 if test $gcc_cv_math_func_clog10l = yes; then
20571 cat >>confdefs.h <<_ACEOF
20572 #define HAVE_CLOG10L 1
20573 _ACEOF
20580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterf" >&5
20581 $as_echo_n "checking for nextafterf... " >&6; }
20582 if test "${gcc_cv_math_func_nextafterf+set}" = set; then :
20583 $as_echo_n "(cached) " >&6
20584 else
20585 if test x$gcc_no_link = xyes; then
20586 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20589 /* end confdefs.h. */
20591 #ifdef HAVE_COMPLEX_H
20592 #include <complex.h>
20593 #endif
20594 #ifdef HAVE_MATH_H
20595 #include <math.h>
20596 #endif
20598 int (*ptr)() = (int (*)())nextafterf;
20601 main ()
20603 return 0;
20606 _ACEOF
20607 if ac_fn_c_try_link "$LINENO"; then :
20608 gcc_cv_math_func_nextafterf=yes
20609 else
20610 gcc_cv_math_func_nextafterf=no
20612 rm -f core conftest.err conftest.$ac_objext \
20613 conftest$ac_exeext conftest.$ac_ext
20615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterf" >&5
20616 $as_echo "$gcc_cv_math_func_nextafterf" >&6; }
20617 if test $gcc_cv_math_func_nextafterf = yes; then
20619 cat >>confdefs.h <<_ACEOF
20620 #define HAVE_NEXTAFTERF 1
20621 _ACEOF
20628 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafter" >&5
20629 $as_echo_n "checking for nextafter... " >&6; }
20630 if test "${gcc_cv_math_func_nextafter+set}" = set; then :
20631 $as_echo_n "(cached) " >&6
20632 else
20633 if test x$gcc_no_link = xyes; then
20634 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20637 /* end confdefs.h. */
20639 #ifdef HAVE_COMPLEX_H
20640 #include <complex.h>
20641 #endif
20642 #ifdef HAVE_MATH_H
20643 #include <math.h>
20644 #endif
20646 int (*ptr)() = (int (*)())nextafter;
20649 main ()
20651 return 0;
20654 _ACEOF
20655 if ac_fn_c_try_link "$LINENO"; then :
20656 gcc_cv_math_func_nextafter=yes
20657 else
20658 gcc_cv_math_func_nextafter=no
20660 rm -f core conftest.err conftest.$ac_objext \
20661 conftest$ac_exeext conftest.$ac_ext
20663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafter" >&5
20664 $as_echo "$gcc_cv_math_func_nextafter" >&6; }
20665 if test $gcc_cv_math_func_nextafter = yes; then
20667 cat >>confdefs.h <<_ACEOF
20668 #define HAVE_NEXTAFTER 1
20669 _ACEOF
20676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterl" >&5
20677 $as_echo_n "checking for nextafterl... " >&6; }
20678 if test "${gcc_cv_math_func_nextafterl+set}" = set; then :
20679 $as_echo_n "(cached) " >&6
20680 else
20681 if test x$gcc_no_link = xyes; then
20682 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20685 /* end confdefs.h. */
20687 #ifdef HAVE_COMPLEX_H
20688 #include <complex.h>
20689 #endif
20690 #ifdef HAVE_MATH_H
20691 #include <math.h>
20692 #endif
20694 int (*ptr)() = (int (*)())nextafterl;
20697 main ()
20699 return 0;
20702 _ACEOF
20703 if ac_fn_c_try_link "$LINENO"; then :
20704 gcc_cv_math_func_nextafterl=yes
20705 else
20706 gcc_cv_math_func_nextafterl=no
20708 rm -f core conftest.err conftest.$ac_objext \
20709 conftest$ac_exeext conftest.$ac_ext
20711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterl" >&5
20712 $as_echo "$gcc_cv_math_func_nextafterl" >&6; }
20713 if test $gcc_cv_math_func_nextafterl = yes; then
20715 cat >>confdefs.h <<_ACEOF
20716 #define HAVE_NEXTAFTERL 1
20717 _ACEOF
20724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf" >&5
20725 $as_echo_n "checking for powf... " >&6; }
20726 if test "${gcc_cv_math_func_powf+set}" = set; then :
20727 $as_echo_n "(cached) " >&6
20728 else
20729 if test x$gcc_no_link = xyes; then
20730 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20733 /* end confdefs.h. */
20735 #ifdef HAVE_COMPLEX_H
20736 #include <complex.h>
20737 #endif
20738 #ifdef HAVE_MATH_H
20739 #include <math.h>
20740 #endif
20742 int (*ptr)() = (int (*)())powf;
20745 main ()
20747 return 0;
20750 _ACEOF
20751 if ac_fn_c_try_link "$LINENO"; then :
20752 gcc_cv_math_func_powf=yes
20753 else
20754 gcc_cv_math_func_powf=no
20756 rm -f core conftest.err conftest.$ac_objext \
20757 conftest$ac_exeext conftest.$ac_ext
20759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_powf" >&5
20760 $as_echo "$gcc_cv_math_func_powf" >&6; }
20761 if test $gcc_cv_math_func_powf = yes; then
20763 cat >>confdefs.h <<_ACEOF
20764 #define HAVE_POWF 1
20765 _ACEOF
20772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow" >&5
20773 $as_echo_n "checking for pow... " >&6; }
20774 if test "${gcc_cv_math_func_pow+set}" = set; then :
20775 $as_echo_n "(cached) " >&6
20776 else
20777 if test x$gcc_no_link = xyes; then
20778 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20781 /* end confdefs.h. */
20783 #ifdef HAVE_COMPLEX_H
20784 #include <complex.h>
20785 #endif
20786 #ifdef HAVE_MATH_H
20787 #include <math.h>
20788 #endif
20790 int (*ptr)() = (int (*)())pow;
20793 main ()
20795 return 0;
20798 _ACEOF
20799 if ac_fn_c_try_link "$LINENO"; then :
20800 gcc_cv_math_func_pow=yes
20801 else
20802 gcc_cv_math_func_pow=no
20804 rm -f core conftest.err conftest.$ac_objext \
20805 conftest$ac_exeext conftest.$ac_ext
20807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_pow" >&5
20808 $as_echo "$gcc_cv_math_func_pow" >&6; }
20809 if test $gcc_cv_math_func_pow = yes; then
20811 cat >>confdefs.h <<_ACEOF
20812 #define HAVE_POW 1
20813 _ACEOF
20820 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powl" >&5
20821 $as_echo_n "checking for powl... " >&6; }
20822 if test "${gcc_cv_math_func_powl+set}" = set; then :
20823 $as_echo_n "(cached) " >&6
20824 else
20825 if test x$gcc_no_link = xyes; then
20826 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20829 /* end confdefs.h. */
20831 #ifdef HAVE_COMPLEX_H
20832 #include <complex.h>
20833 #endif
20834 #ifdef HAVE_MATH_H
20835 #include <math.h>
20836 #endif
20838 int (*ptr)() = (int (*)())powl;
20841 main ()
20843 return 0;
20846 _ACEOF
20847 if ac_fn_c_try_link "$LINENO"; then :
20848 gcc_cv_math_func_powl=yes
20849 else
20850 gcc_cv_math_func_powl=no
20852 rm -f core conftest.err conftest.$ac_objext \
20853 conftest$ac_exeext conftest.$ac_ext
20855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_powl" >&5
20856 $as_echo "$gcc_cv_math_func_powl" >&6; }
20857 if test $gcc_cv_math_func_powl = yes; then
20859 cat >>confdefs.h <<_ACEOF
20860 #define HAVE_POWL 1
20861 _ACEOF
20868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowf" >&5
20869 $as_echo_n "checking for cpowf... " >&6; }
20870 if test "${gcc_cv_math_func_cpowf+set}" = set; then :
20871 $as_echo_n "(cached) " >&6
20872 else
20873 if test x$gcc_no_link = xyes; then
20874 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20876 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20877 /* end confdefs.h. */
20879 #ifdef HAVE_COMPLEX_H
20880 #include <complex.h>
20881 #endif
20882 #ifdef HAVE_MATH_H
20883 #include <math.h>
20884 #endif
20886 int (*ptr)() = (int (*)())cpowf;
20889 main ()
20891 return 0;
20894 _ACEOF
20895 if ac_fn_c_try_link "$LINENO"; then :
20896 gcc_cv_math_func_cpowf=yes
20897 else
20898 gcc_cv_math_func_cpowf=no
20900 rm -f core conftest.err conftest.$ac_objext \
20901 conftest$ac_exeext conftest.$ac_ext
20903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowf" >&5
20904 $as_echo "$gcc_cv_math_func_cpowf" >&6; }
20905 if test $gcc_cv_math_func_cpowf = yes; then
20907 cat >>confdefs.h <<_ACEOF
20908 #define HAVE_CPOWF 1
20909 _ACEOF
20916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpow" >&5
20917 $as_echo_n "checking for cpow... " >&6; }
20918 if test "${gcc_cv_math_func_cpow+set}" = set; then :
20919 $as_echo_n "(cached) " >&6
20920 else
20921 if test x$gcc_no_link = xyes; then
20922 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20925 /* end confdefs.h. */
20927 #ifdef HAVE_COMPLEX_H
20928 #include <complex.h>
20929 #endif
20930 #ifdef HAVE_MATH_H
20931 #include <math.h>
20932 #endif
20934 int (*ptr)() = (int (*)())cpow;
20937 main ()
20939 return 0;
20942 _ACEOF
20943 if ac_fn_c_try_link "$LINENO"; then :
20944 gcc_cv_math_func_cpow=yes
20945 else
20946 gcc_cv_math_func_cpow=no
20948 rm -f core conftest.err conftest.$ac_objext \
20949 conftest$ac_exeext conftest.$ac_ext
20951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpow" >&5
20952 $as_echo "$gcc_cv_math_func_cpow" >&6; }
20953 if test $gcc_cv_math_func_cpow = yes; then
20955 cat >>confdefs.h <<_ACEOF
20956 #define HAVE_CPOW 1
20957 _ACEOF
20964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowl" >&5
20965 $as_echo_n "checking for cpowl... " >&6; }
20966 if test "${gcc_cv_math_func_cpowl+set}" = set; then :
20967 $as_echo_n "(cached) " >&6
20968 else
20969 if test x$gcc_no_link = xyes; then
20970 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20973 /* end confdefs.h. */
20975 #ifdef HAVE_COMPLEX_H
20976 #include <complex.h>
20977 #endif
20978 #ifdef HAVE_MATH_H
20979 #include <math.h>
20980 #endif
20982 int (*ptr)() = (int (*)())cpowl;
20985 main ()
20987 return 0;
20990 _ACEOF
20991 if ac_fn_c_try_link "$LINENO"; then :
20992 gcc_cv_math_func_cpowl=yes
20993 else
20994 gcc_cv_math_func_cpowl=no
20996 rm -f core conftest.err conftest.$ac_objext \
20997 conftest$ac_exeext conftest.$ac_ext
20999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowl" >&5
21000 $as_echo "$gcc_cv_math_func_cpowl" >&6; }
21001 if test $gcc_cv_math_func_cpowl = yes; then
21003 cat >>confdefs.h <<_ACEOF
21004 #define HAVE_CPOWL 1
21005 _ACEOF
21012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundf" >&5
21013 $as_echo_n "checking for roundf... " >&6; }
21014 if test "${gcc_cv_math_func_roundf+set}" = set; then :
21015 $as_echo_n "(cached) " >&6
21016 else
21017 if test x$gcc_no_link = xyes; then
21018 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21020 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21021 /* end confdefs.h. */
21023 #ifdef HAVE_COMPLEX_H
21024 #include <complex.h>
21025 #endif
21026 #ifdef HAVE_MATH_H
21027 #include <math.h>
21028 #endif
21030 int (*ptr)() = (int (*)())roundf;
21033 main ()
21035 return 0;
21038 _ACEOF
21039 if ac_fn_c_try_link "$LINENO"; then :
21040 gcc_cv_math_func_roundf=yes
21041 else
21042 gcc_cv_math_func_roundf=no
21044 rm -f core conftest.err conftest.$ac_objext \
21045 conftest$ac_exeext conftest.$ac_ext
21047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundf" >&5
21048 $as_echo "$gcc_cv_math_func_roundf" >&6; }
21049 if test $gcc_cv_math_func_roundf = yes; then
21051 cat >>confdefs.h <<_ACEOF
21052 #define HAVE_ROUNDF 1
21053 _ACEOF
21060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for round" >&5
21061 $as_echo_n "checking for round... " >&6; }
21062 if test "${gcc_cv_math_func_round+set}" = set; then :
21063 $as_echo_n "(cached) " >&6
21064 else
21065 if test x$gcc_no_link = xyes; then
21066 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21069 /* end confdefs.h. */
21071 #ifdef HAVE_COMPLEX_H
21072 #include <complex.h>
21073 #endif
21074 #ifdef HAVE_MATH_H
21075 #include <math.h>
21076 #endif
21078 int (*ptr)() = (int (*)())round;
21081 main ()
21083 return 0;
21086 _ACEOF
21087 if ac_fn_c_try_link "$LINENO"; then :
21088 gcc_cv_math_func_round=yes
21089 else
21090 gcc_cv_math_func_round=no
21092 rm -f core conftest.err conftest.$ac_objext \
21093 conftest$ac_exeext conftest.$ac_ext
21095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_round" >&5
21096 $as_echo "$gcc_cv_math_func_round" >&6; }
21097 if test $gcc_cv_math_func_round = yes; then
21099 cat >>confdefs.h <<_ACEOF
21100 #define HAVE_ROUND 1
21101 _ACEOF
21108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundl" >&5
21109 $as_echo_n "checking for roundl... " >&6; }
21110 if test "${gcc_cv_math_func_roundl+set}" = set; then :
21111 $as_echo_n "(cached) " >&6
21112 else
21113 if test x$gcc_no_link = xyes; then
21114 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21117 /* end confdefs.h. */
21119 #ifdef HAVE_COMPLEX_H
21120 #include <complex.h>
21121 #endif
21122 #ifdef HAVE_MATH_H
21123 #include <math.h>
21124 #endif
21126 int (*ptr)() = (int (*)())roundl;
21129 main ()
21131 return 0;
21134 _ACEOF
21135 if ac_fn_c_try_link "$LINENO"; then :
21136 gcc_cv_math_func_roundl=yes
21137 else
21138 gcc_cv_math_func_roundl=no
21140 rm -f core conftest.err conftest.$ac_objext \
21141 conftest$ac_exeext conftest.$ac_ext
21143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundl" >&5
21144 $as_echo "$gcc_cv_math_func_roundl" >&6; }
21145 if test $gcc_cv_math_func_roundl = yes; then
21147 cat >>confdefs.h <<_ACEOF
21148 #define HAVE_ROUNDL 1
21149 _ACEOF
21156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundf" >&5
21157 $as_echo_n "checking for lroundf... " >&6; }
21158 if test "${gcc_cv_math_func_lroundf+set}" = set; then :
21159 $as_echo_n "(cached) " >&6
21160 else
21161 if test x$gcc_no_link = xyes; then
21162 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21165 /* end confdefs.h. */
21167 #ifdef HAVE_COMPLEX_H
21168 #include <complex.h>
21169 #endif
21170 #ifdef HAVE_MATH_H
21171 #include <math.h>
21172 #endif
21174 int (*ptr)() = (int (*)())lroundf;
21177 main ()
21179 return 0;
21182 _ACEOF
21183 if ac_fn_c_try_link "$LINENO"; then :
21184 gcc_cv_math_func_lroundf=yes
21185 else
21186 gcc_cv_math_func_lroundf=no
21188 rm -f core conftest.err conftest.$ac_objext \
21189 conftest$ac_exeext conftest.$ac_ext
21191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundf" >&5
21192 $as_echo "$gcc_cv_math_func_lroundf" >&6; }
21193 if test $gcc_cv_math_func_lroundf = yes; then
21195 cat >>confdefs.h <<_ACEOF
21196 #define HAVE_LROUNDF 1
21197 _ACEOF
21204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lround" >&5
21205 $as_echo_n "checking for lround... " >&6; }
21206 if test "${gcc_cv_math_func_lround+set}" = set; then :
21207 $as_echo_n "(cached) " >&6
21208 else
21209 if test x$gcc_no_link = xyes; then
21210 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21213 /* end confdefs.h. */
21215 #ifdef HAVE_COMPLEX_H
21216 #include <complex.h>
21217 #endif
21218 #ifdef HAVE_MATH_H
21219 #include <math.h>
21220 #endif
21222 int (*ptr)() = (int (*)())lround;
21225 main ()
21227 return 0;
21230 _ACEOF
21231 if ac_fn_c_try_link "$LINENO"; then :
21232 gcc_cv_math_func_lround=yes
21233 else
21234 gcc_cv_math_func_lround=no
21236 rm -f core conftest.err conftest.$ac_objext \
21237 conftest$ac_exeext conftest.$ac_ext
21239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lround" >&5
21240 $as_echo "$gcc_cv_math_func_lround" >&6; }
21241 if test $gcc_cv_math_func_lround = yes; then
21243 cat >>confdefs.h <<_ACEOF
21244 #define HAVE_LROUND 1
21245 _ACEOF
21252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundl" >&5
21253 $as_echo_n "checking for lroundl... " >&6; }
21254 if test "${gcc_cv_math_func_lroundl+set}" = set; then :
21255 $as_echo_n "(cached) " >&6
21256 else
21257 if test x$gcc_no_link = xyes; then
21258 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21261 /* end confdefs.h. */
21263 #ifdef HAVE_COMPLEX_H
21264 #include <complex.h>
21265 #endif
21266 #ifdef HAVE_MATH_H
21267 #include <math.h>
21268 #endif
21270 int (*ptr)() = (int (*)())lroundl;
21273 main ()
21275 return 0;
21278 _ACEOF
21279 if ac_fn_c_try_link "$LINENO"; then :
21280 gcc_cv_math_func_lroundl=yes
21281 else
21282 gcc_cv_math_func_lroundl=no
21284 rm -f core conftest.err conftest.$ac_objext \
21285 conftest$ac_exeext conftest.$ac_ext
21287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundl" >&5
21288 $as_echo "$gcc_cv_math_func_lroundl" >&6; }
21289 if test $gcc_cv_math_func_lroundl = yes; then
21291 cat >>confdefs.h <<_ACEOF
21292 #define HAVE_LROUNDL 1
21293 _ACEOF
21300 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundf" >&5
21301 $as_echo_n "checking for llroundf... " >&6; }
21302 if test "${gcc_cv_math_func_llroundf+set}" = set; then :
21303 $as_echo_n "(cached) " >&6
21304 else
21305 if test x$gcc_no_link = xyes; then
21306 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21308 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21309 /* end confdefs.h. */
21311 #ifdef HAVE_COMPLEX_H
21312 #include <complex.h>
21313 #endif
21314 #ifdef HAVE_MATH_H
21315 #include <math.h>
21316 #endif
21318 int (*ptr)() = (int (*)())llroundf;
21321 main ()
21323 return 0;
21326 _ACEOF
21327 if ac_fn_c_try_link "$LINENO"; then :
21328 gcc_cv_math_func_llroundf=yes
21329 else
21330 gcc_cv_math_func_llroundf=no
21332 rm -f core conftest.err conftest.$ac_objext \
21333 conftest$ac_exeext conftest.$ac_ext
21335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundf" >&5
21336 $as_echo "$gcc_cv_math_func_llroundf" >&6; }
21337 if test $gcc_cv_math_func_llroundf = yes; then
21339 cat >>confdefs.h <<_ACEOF
21340 #define HAVE_LLROUNDF 1
21341 _ACEOF
21348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llround" >&5
21349 $as_echo_n "checking for llround... " >&6; }
21350 if test "${gcc_cv_math_func_llround+set}" = set; then :
21351 $as_echo_n "(cached) " >&6
21352 else
21353 if test x$gcc_no_link = xyes; then
21354 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21356 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21357 /* end confdefs.h. */
21359 #ifdef HAVE_COMPLEX_H
21360 #include <complex.h>
21361 #endif
21362 #ifdef HAVE_MATH_H
21363 #include <math.h>
21364 #endif
21366 int (*ptr)() = (int (*)())llround;
21369 main ()
21371 return 0;
21374 _ACEOF
21375 if ac_fn_c_try_link "$LINENO"; then :
21376 gcc_cv_math_func_llround=yes
21377 else
21378 gcc_cv_math_func_llround=no
21380 rm -f core conftest.err conftest.$ac_objext \
21381 conftest$ac_exeext conftest.$ac_ext
21383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llround" >&5
21384 $as_echo "$gcc_cv_math_func_llround" >&6; }
21385 if test $gcc_cv_math_func_llround = yes; then
21387 cat >>confdefs.h <<_ACEOF
21388 #define HAVE_LLROUND 1
21389 _ACEOF
21396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundl" >&5
21397 $as_echo_n "checking for llroundl... " >&6; }
21398 if test "${gcc_cv_math_func_llroundl+set}" = set; then :
21399 $as_echo_n "(cached) " >&6
21400 else
21401 if test x$gcc_no_link = xyes; then
21402 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21405 /* end confdefs.h. */
21407 #ifdef HAVE_COMPLEX_H
21408 #include <complex.h>
21409 #endif
21410 #ifdef HAVE_MATH_H
21411 #include <math.h>
21412 #endif
21414 int (*ptr)() = (int (*)())llroundl;
21417 main ()
21419 return 0;
21422 _ACEOF
21423 if ac_fn_c_try_link "$LINENO"; then :
21424 gcc_cv_math_func_llroundl=yes
21425 else
21426 gcc_cv_math_func_llroundl=no
21428 rm -f core conftest.err conftest.$ac_objext \
21429 conftest$ac_exeext conftest.$ac_ext
21431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundl" >&5
21432 $as_echo "$gcc_cv_math_func_llroundl" >&6; }
21433 if test $gcc_cv_math_func_llroundl = yes; then
21435 cat >>confdefs.h <<_ACEOF
21436 #define HAVE_LLROUNDL 1
21437 _ACEOF
21444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnf" >&5
21445 $as_echo_n "checking for scalbnf... " >&6; }
21446 if test "${gcc_cv_math_func_scalbnf+set}" = set; then :
21447 $as_echo_n "(cached) " >&6
21448 else
21449 if test x$gcc_no_link = xyes; then
21450 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21453 /* end confdefs.h. */
21455 #ifdef HAVE_COMPLEX_H
21456 #include <complex.h>
21457 #endif
21458 #ifdef HAVE_MATH_H
21459 #include <math.h>
21460 #endif
21462 int (*ptr)() = (int (*)())scalbnf;
21465 main ()
21467 return 0;
21470 _ACEOF
21471 if ac_fn_c_try_link "$LINENO"; then :
21472 gcc_cv_math_func_scalbnf=yes
21473 else
21474 gcc_cv_math_func_scalbnf=no
21476 rm -f core conftest.err conftest.$ac_objext \
21477 conftest$ac_exeext conftest.$ac_ext
21479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnf" >&5
21480 $as_echo "$gcc_cv_math_func_scalbnf" >&6; }
21481 if test $gcc_cv_math_func_scalbnf = yes; then
21483 cat >>confdefs.h <<_ACEOF
21484 #define HAVE_SCALBNF 1
21485 _ACEOF
21492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbn" >&5
21493 $as_echo_n "checking for scalbn... " >&6; }
21494 if test "${gcc_cv_math_func_scalbn+set}" = set; then :
21495 $as_echo_n "(cached) " >&6
21496 else
21497 if test x$gcc_no_link = xyes; then
21498 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21501 /* end confdefs.h. */
21503 #ifdef HAVE_COMPLEX_H
21504 #include <complex.h>
21505 #endif
21506 #ifdef HAVE_MATH_H
21507 #include <math.h>
21508 #endif
21510 int (*ptr)() = (int (*)())scalbn;
21513 main ()
21515 return 0;
21518 _ACEOF
21519 if ac_fn_c_try_link "$LINENO"; then :
21520 gcc_cv_math_func_scalbn=yes
21521 else
21522 gcc_cv_math_func_scalbn=no
21524 rm -f core conftest.err conftest.$ac_objext \
21525 conftest$ac_exeext conftest.$ac_ext
21527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbn" >&5
21528 $as_echo "$gcc_cv_math_func_scalbn" >&6; }
21529 if test $gcc_cv_math_func_scalbn = yes; then
21531 cat >>confdefs.h <<_ACEOF
21532 #define HAVE_SCALBN 1
21533 _ACEOF
21540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnl" >&5
21541 $as_echo_n "checking for scalbnl... " >&6; }
21542 if test "${gcc_cv_math_func_scalbnl+set}" = set; then :
21543 $as_echo_n "(cached) " >&6
21544 else
21545 if test x$gcc_no_link = xyes; then
21546 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21548 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21549 /* end confdefs.h. */
21551 #ifdef HAVE_COMPLEX_H
21552 #include <complex.h>
21553 #endif
21554 #ifdef HAVE_MATH_H
21555 #include <math.h>
21556 #endif
21558 int (*ptr)() = (int (*)())scalbnl;
21561 main ()
21563 return 0;
21566 _ACEOF
21567 if ac_fn_c_try_link "$LINENO"; then :
21568 gcc_cv_math_func_scalbnl=yes
21569 else
21570 gcc_cv_math_func_scalbnl=no
21572 rm -f core conftest.err conftest.$ac_objext \
21573 conftest$ac_exeext conftest.$ac_ext
21575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnl" >&5
21576 $as_echo "$gcc_cv_math_func_scalbnl" >&6; }
21577 if test $gcc_cv_math_func_scalbnl = yes; then
21579 cat >>confdefs.h <<_ACEOF
21580 #define HAVE_SCALBNL 1
21581 _ACEOF
21588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinf" >&5
21589 $as_echo_n "checking for sinf... " >&6; }
21590 if test "${gcc_cv_math_func_sinf+set}" = set; then :
21591 $as_echo_n "(cached) " >&6
21592 else
21593 if test x$gcc_no_link = xyes; then
21594 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21597 /* end confdefs.h. */
21599 #ifdef HAVE_COMPLEX_H
21600 #include <complex.h>
21601 #endif
21602 #ifdef HAVE_MATH_H
21603 #include <math.h>
21604 #endif
21606 int (*ptr)() = (int (*)())sinf;
21609 main ()
21611 return 0;
21614 _ACEOF
21615 if ac_fn_c_try_link "$LINENO"; then :
21616 gcc_cv_math_func_sinf=yes
21617 else
21618 gcc_cv_math_func_sinf=no
21620 rm -f core conftest.err conftest.$ac_objext \
21621 conftest$ac_exeext conftest.$ac_ext
21623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinf" >&5
21624 $as_echo "$gcc_cv_math_func_sinf" >&6; }
21625 if test $gcc_cv_math_func_sinf = yes; then
21627 cat >>confdefs.h <<_ACEOF
21628 #define HAVE_SINF 1
21629 _ACEOF
21636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin" >&5
21637 $as_echo_n "checking for sin... " >&6; }
21638 if test "${gcc_cv_math_func_sin+set}" = set; then :
21639 $as_echo_n "(cached) " >&6
21640 else
21641 if test x$gcc_no_link = xyes; then
21642 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21644 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21645 /* end confdefs.h. */
21647 #ifdef HAVE_COMPLEX_H
21648 #include <complex.h>
21649 #endif
21650 #ifdef HAVE_MATH_H
21651 #include <math.h>
21652 #endif
21654 int (*ptr)() = (int (*)())sin;
21657 main ()
21659 return 0;
21662 _ACEOF
21663 if ac_fn_c_try_link "$LINENO"; then :
21664 gcc_cv_math_func_sin=yes
21665 else
21666 gcc_cv_math_func_sin=no
21668 rm -f core conftest.err conftest.$ac_objext \
21669 conftest$ac_exeext conftest.$ac_ext
21671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sin" >&5
21672 $as_echo "$gcc_cv_math_func_sin" >&6; }
21673 if test $gcc_cv_math_func_sin = yes; then
21675 cat >>confdefs.h <<_ACEOF
21676 #define HAVE_SIN 1
21677 _ACEOF
21684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinl" >&5
21685 $as_echo_n "checking for sinl... " >&6; }
21686 if test "${gcc_cv_math_func_sinl+set}" = set; then :
21687 $as_echo_n "(cached) " >&6
21688 else
21689 if test x$gcc_no_link = xyes; then
21690 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21693 /* end confdefs.h. */
21695 #ifdef HAVE_COMPLEX_H
21696 #include <complex.h>
21697 #endif
21698 #ifdef HAVE_MATH_H
21699 #include <math.h>
21700 #endif
21702 int (*ptr)() = (int (*)())sinl;
21705 main ()
21707 return 0;
21710 _ACEOF
21711 if ac_fn_c_try_link "$LINENO"; then :
21712 gcc_cv_math_func_sinl=yes
21713 else
21714 gcc_cv_math_func_sinl=no
21716 rm -f core conftest.err conftest.$ac_objext \
21717 conftest$ac_exeext conftest.$ac_ext
21719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinl" >&5
21720 $as_echo "$gcc_cv_math_func_sinl" >&6; }
21721 if test $gcc_cv_math_func_sinl = yes; then
21723 cat >>confdefs.h <<_ACEOF
21724 #define HAVE_SINL 1
21725 _ACEOF
21732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinf" >&5
21733 $as_echo_n "checking for csinf... " >&6; }
21734 if test "${gcc_cv_math_func_csinf+set}" = set; then :
21735 $as_echo_n "(cached) " >&6
21736 else
21737 if test x$gcc_no_link = xyes; then
21738 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21741 /* end confdefs.h. */
21743 #ifdef HAVE_COMPLEX_H
21744 #include <complex.h>
21745 #endif
21746 #ifdef HAVE_MATH_H
21747 #include <math.h>
21748 #endif
21750 int (*ptr)() = (int (*)())csinf;
21753 main ()
21755 return 0;
21758 _ACEOF
21759 if ac_fn_c_try_link "$LINENO"; then :
21760 gcc_cv_math_func_csinf=yes
21761 else
21762 gcc_cv_math_func_csinf=no
21764 rm -f core conftest.err conftest.$ac_objext \
21765 conftest$ac_exeext conftest.$ac_ext
21767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinf" >&5
21768 $as_echo "$gcc_cv_math_func_csinf" >&6; }
21769 if test $gcc_cv_math_func_csinf = yes; then
21771 cat >>confdefs.h <<_ACEOF
21772 #define HAVE_CSINF 1
21773 _ACEOF
21780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csin" >&5
21781 $as_echo_n "checking for csin... " >&6; }
21782 if test "${gcc_cv_math_func_csin+set}" = set; then :
21783 $as_echo_n "(cached) " >&6
21784 else
21785 if test x$gcc_no_link = xyes; then
21786 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21789 /* end confdefs.h. */
21791 #ifdef HAVE_COMPLEX_H
21792 #include <complex.h>
21793 #endif
21794 #ifdef HAVE_MATH_H
21795 #include <math.h>
21796 #endif
21798 int (*ptr)() = (int (*)())csin;
21801 main ()
21803 return 0;
21806 _ACEOF
21807 if ac_fn_c_try_link "$LINENO"; then :
21808 gcc_cv_math_func_csin=yes
21809 else
21810 gcc_cv_math_func_csin=no
21812 rm -f core conftest.err conftest.$ac_objext \
21813 conftest$ac_exeext conftest.$ac_ext
21815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csin" >&5
21816 $as_echo "$gcc_cv_math_func_csin" >&6; }
21817 if test $gcc_cv_math_func_csin = yes; then
21819 cat >>confdefs.h <<_ACEOF
21820 #define HAVE_CSIN 1
21821 _ACEOF
21828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinl" >&5
21829 $as_echo_n "checking for csinl... " >&6; }
21830 if test "${gcc_cv_math_func_csinl+set}" = set; then :
21831 $as_echo_n "(cached) " >&6
21832 else
21833 if test x$gcc_no_link = xyes; then
21834 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21837 /* end confdefs.h. */
21839 #ifdef HAVE_COMPLEX_H
21840 #include <complex.h>
21841 #endif
21842 #ifdef HAVE_MATH_H
21843 #include <math.h>
21844 #endif
21846 int (*ptr)() = (int (*)())csinl;
21849 main ()
21851 return 0;
21854 _ACEOF
21855 if ac_fn_c_try_link "$LINENO"; then :
21856 gcc_cv_math_func_csinl=yes
21857 else
21858 gcc_cv_math_func_csinl=no
21860 rm -f core conftest.err conftest.$ac_objext \
21861 conftest$ac_exeext conftest.$ac_ext
21863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinl" >&5
21864 $as_echo "$gcc_cv_math_func_csinl" >&6; }
21865 if test $gcc_cv_math_func_csinl = yes; then
21867 cat >>confdefs.h <<_ACEOF
21868 #define HAVE_CSINL 1
21869 _ACEOF
21876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhf" >&5
21877 $as_echo_n "checking for sinhf... " >&6; }
21878 if test "${gcc_cv_math_func_sinhf+set}" = set; then :
21879 $as_echo_n "(cached) " >&6
21880 else
21881 if test x$gcc_no_link = xyes; then
21882 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21885 /* end confdefs.h. */
21887 #ifdef HAVE_COMPLEX_H
21888 #include <complex.h>
21889 #endif
21890 #ifdef HAVE_MATH_H
21891 #include <math.h>
21892 #endif
21894 int (*ptr)() = (int (*)())sinhf;
21897 main ()
21899 return 0;
21902 _ACEOF
21903 if ac_fn_c_try_link "$LINENO"; then :
21904 gcc_cv_math_func_sinhf=yes
21905 else
21906 gcc_cv_math_func_sinhf=no
21908 rm -f core conftest.err conftest.$ac_objext \
21909 conftest$ac_exeext conftest.$ac_ext
21911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhf" >&5
21912 $as_echo "$gcc_cv_math_func_sinhf" >&6; }
21913 if test $gcc_cv_math_func_sinhf = yes; then
21915 cat >>confdefs.h <<_ACEOF
21916 #define HAVE_SINHF 1
21917 _ACEOF
21924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinh" >&5
21925 $as_echo_n "checking for sinh... " >&6; }
21926 if test "${gcc_cv_math_func_sinh+set}" = set; then :
21927 $as_echo_n "(cached) " >&6
21928 else
21929 if test x$gcc_no_link = xyes; then
21930 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21933 /* end confdefs.h. */
21935 #ifdef HAVE_COMPLEX_H
21936 #include <complex.h>
21937 #endif
21938 #ifdef HAVE_MATH_H
21939 #include <math.h>
21940 #endif
21942 int (*ptr)() = (int (*)())sinh;
21945 main ()
21947 return 0;
21950 _ACEOF
21951 if ac_fn_c_try_link "$LINENO"; then :
21952 gcc_cv_math_func_sinh=yes
21953 else
21954 gcc_cv_math_func_sinh=no
21956 rm -f core conftest.err conftest.$ac_objext \
21957 conftest$ac_exeext conftest.$ac_ext
21959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinh" >&5
21960 $as_echo "$gcc_cv_math_func_sinh" >&6; }
21961 if test $gcc_cv_math_func_sinh = yes; then
21963 cat >>confdefs.h <<_ACEOF
21964 #define HAVE_SINH 1
21965 _ACEOF
21972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhl" >&5
21973 $as_echo_n "checking for sinhl... " >&6; }
21974 if test "${gcc_cv_math_func_sinhl+set}" = set; then :
21975 $as_echo_n "(cached) " >&6
21976 else
21977 if test x$gcc_no_link = xyes; then
21978 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21981 /* end confdefs.h. */
21983 #ifdef HAVE_COMPLEX_H
21984 #include <complex.h>
21985 #endif
21986 #ifdef HAVE_MATH_H
21987 #include <math.h>
21988 #endif
21990 int (*ptr)() = (int (*)())sinhl;
21993 main ()
21995 return 0;
21998 _ACEOF
21999 if ac_fn_c_try_link "$LINENO"; then :
22000 gcc_cv_math_func_sinhl=yes
22001 else
22002 gcc_cv_math_func_sinhl=no
22004 rm -f core conftest.err conftest.$ac_objext \
22005 conftest$ac_exeext conftest.$ac_ext
22007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhl" >&5
22008 $as_echo "$gcc_cv_math_func_sinhl" >&6; }
22009 if test $gcc_cv_math_func_sinhl = yes; then
22011 cat >>confdefs.h <<_ACEOF
22012 #define HAVE_SINHL 1
22013 _ACEOF
22020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhf" >&5
22021 $as_echo_n "checking for csinhf... " >&6; }
22022 if test "${gcc_cv_math_func_csinhf+set}" = set; then :
22023 $as_echo_n "(cached) " >&6
22024 else
22025 if test x$gcc_no_link = xyes; then
22026 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22029 /* end confdefs.h. */
22031 #ifdef HAVE_COMPLEX_H
22032 #include <complex.h>
22033 #endif
22034 #ifdef HAVE_MATH_H
22035 #include <math.h>
22036 #endif
22038 int (*ptr)() = (int (*)())csinhf;
22041 main ()
22043 return 0;
22046 _ACEOF
22047 if ac_fn_c_try_link "$LINENO"; then :
22048 gcc_cv_math_func_csinhf=yes
22049 else
22050 gcc_cv_math_func_csinhf=no
22052 rm -f core conftest.err conftest.$ac_objext \
22053 conftest$ac_exeext conftest.$ac_ext
22055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhf" >&5
22056 $as_echo "$gcc_cv_math_func_csinhf" >&6; }
22057 if test $gcc_cv_math_func_csinhf = yes; then
22059 cat >>confdefs.h <<_ACEOF
22060 #define HAVE_CSINHF 1
22061 _ACEOF
22068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinh" >&5
22069 $as_echo_n "checking for csinh... " >&6; }
22070 if test "${gcc_cv_math_func_csinh+set}" = set; then :
22071 $as_echo_n "(cached) " >&6
22072 else
22073 if test x$gcc_no_link = xyes; then
22074 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22077 /* end confdefs.h. */
22079 #ifdef HAVE_COMPLEX_H
22080 #include <complex.h>
22081 #endif
22082 #ifdef HAVE_MATH_H
22083 #include <math.h>
22084 #endif
22086 int (*ptr)() = (int (*)())csinh;
22089 main ()
22091 return 0;
22094 _ACEOF
22095 if ac_fn_c_try_link "$LINENO"; then :
22096 gcc_cv_math_func_csinh=yes
22097 else
22098 gcc_cv_math_func_csinh=no
22100 rm -f core conftest.err conftest.$ac_objext \
22101 conftest$ac_exeext conftest.$ac_ext
22103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinh" >&5
22104 $as_echo "$gcc_cv_math_func_csinh" >&6; }
22105 if test $gcc_cv_math_func_csinh = yes; then
22107 cat >>confdefs.h <<_ACEOF
22108 #define HAVE_CSINH 1
22109 _ACEOF
22116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhl" >&5
22117 $as_echo_n "checking for csinhl... " >&6; }
22118 if test "${gcc_cv_math_func_csinhl+set}" = set; then :
22119 $as_echo_n "(cached) " >&6
22120 else
22121 if test x$gcc_no_link = xyes; then
22122 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22125 /* end confdefs.h. */
22127 #ifdef HAVE_COMPLEX_H
22128 #include <complex.h>
22129 #endif
22130 #ifdef HAVE_MATH_H
22131 #include <math.h>
22132 #endif
22134 int (*ptr)() = (int (*)())csinhl;
22137 main ()
22139 return 0;
22142 _ACEOF
22143 if ac_fn_c_try_link "$LINENO"; then :
22144 gcc_cv_math_func_csinhl=yes
22145 else
22146 gcc_cv_math_func_csinhl=no
22148 rm -f core conftest.err conftest.$ac_objext \
22149 conftest$ac_exeext conftest.$ac_ext
22151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhl" >&5
22152 $as_echo "$gcc_cv_math_func_csinhl" >&6; }
22153 if test $gcc_cv_math_func_csinhl = yes; then
22155 cat >>confdefs.h <<_ACEOF
22156 #define HAVE_CSINHL 1
22157 _ACEOF
22164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf" >&5
22165 $as_echo_n "checking for sqrtf... " >&6; }
22166 if test "${gcc_cv_math_func_sqrtf+set}" = set; then :
22167 $as_echo_n "(cached) " >&6
22168 else
22169 if test x$gcc_no_link = xyes; then
22170 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22173 /* end confdefs.h. */
22175 #ifdef HAVE_COMPLEX_H
22176 #include <complex.h>
22177 #endif
22178 #ifdef HAVE_MATH_H
22179 #include <math.h>
22180 #endif
22182 int (*ptr)() = (int (*)())sqrtf;
22185 main ()
22187 return 0;
22190 _ACEOF
22191 if ac_fn_c_try_link "$LINENO"; then :
22192 gcc_cv_math_func_sqrtf=yes
22193 else
22194 gcc_cv_math_func_sqrtf=no
22196 rm -f core conftest.err conftest.$ac_objext \
22197 conftest$ac_exeext conftest.$ac_ext
22199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtf" >&5
22200 $as_echo "$gcc_cv_math_func_sqrtf" >&6; }
22201 if test $gcc_cv_math_func_sqrtf = yes; then
22203 cat >>confdefs.h <<_ACEOF
22204 #define HAVE_SQRTF 1
22205 _ACEOF
22212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt" >&5
22213 $as_echo_n "checking for sqrt... " >&6; }
22214 if test "${gcc_cv_math_func_sqrt+set}" = set; then :
22215 $as_echo_n "(cached) " >&6
22216 else
22217 if test x$gcc_no_link = xyes; then
22218 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22221 /* end confdefs.h. */
22223 #ifdef HAVE_COMPLEX_H
22224 #include <complex.h>
22225 #endif
22226 #ifdef HAVE_MATH_H
22227 #include <math.h>
22228 #endif
22230 int (*ptr)() = (int (*)())sqrt;
22233 main ()
22235 return 0;
22238 _ACEOF
22239 if ac_fn_c_try_link "$LINENO"; then :
22240 gcc_cv_math_func_sqrt=yes
22241 else
22242 gcc_cv_math_func_sqrt=no
22244 rm -f core conftest.err conftest.$ac_objext \
22245 conftest$ac_exeext conftest.$ac_ext
22247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrt" >&5
22248 $as_echo "$gcc_cv_math_func_sqrt" >&6; }
22249 if test $gcc_cv_math_func_sqrt = yes; then
22251 cat >>confdefs.h <<_ACEOF
22252 #define HAVE_SQRT 1
22253 _ACEOF
22260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl" >&5
22261 $as_echo_n "checking for sqrtl... " >&6; }
22262 if test "${gcc_cv_math_func_sqrtl+set}" = set; then :
22263 $as_echo_n "(cached) " >&6
22264 else
22265 if test x$gcc_no_link = xyes; then
22266 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22269 /* end confdefs.h. */
22271 #ifdef HAVE_COMPLEX_H
22272 #include <complex.h>
22273 #endif
22274 #ifdef HAVE_MATH_H
22275 #include <math.h>
22276 #endif
22278 int (*ptr)() = (int (*)())sqrtl;
22281 main ()
22283 return 0;
22286 _ACEOF
22287 if ac_fn_c_try_link "$LINENO"; then :
22288 gcc_cv_math_func_sqrtl=yes
22289 else
22290 gcc_cv_math_func_sqrtl=no
22292 rm -f core conftest.err conftest.$ac_objext \
22293 conftest$ac_exeext conftest.$ac_ext
22295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtl" >&5
22296 $as_echo "$gcc_cv_math_func_sqrtl" >&6; }
22297 if test $gcc_cv_math_func_sqrtl = yes; then
22299 cat >>confdefs.h <<_ACEOF
22300 #define HAVE_SQRTL 1
22301 _ACEOF
22308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtf" >&5
22309 $as_echo_n "checking for csqrtf... " >&6; }
22310 if test "${gcc_cv_math_func_csqrtf+set}" = set; then :
22311 $as_echo_n "(cached) " >&6
22312 else
22313 if test x$gcc_no_link = xyes; then
22314 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22317 /* end confdefs.h. */
22319 #ifdef HAVE_COMPLEX_H
22320 #include <complex.h>
22321 #endif
22322 #ifdef HAVE_MATH_H
22323 #include <math.h>
22324 #endif
22326 int (*ptr)() = (int (*)())csqrtf;
22329 main ()
22331 return 0;
22334 _ACEOF
22335 if ac_fn_c_try_link "$LINENO"; then :
22336 gcc_cv_math_func_csqrtf=yes
22337 else
22338 gcc_cv_math_func_csqrtf=no
22340 rm -f core conftest.err conftest.$ac_objext \
22341 conftest$ac_exeext conftest.$ac_ext
22343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtf" >&5
22344 $as_echo "$gcc_cv_math_func_csqrtf" >&6; }
22345 if test $gcc_cv_math_func_csqrtf = yes; then
22347 cat >>confdefs.h <<_ACEOF
22348 #define HAVE_CSQRTF 1
22349 _ACEOF
22356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrt" >&5
22357 $as_echo_n "checking for csqrt... " >&6; }
22358 if test "${gcc_cv_math_func_csqrt+set}" = set; then :
22359 $as_echo_n "(cached) " >&6
22360 else
22361 if test x$gcc_no_link = xyes; then
22362 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22365 /* end confdefs.h. */
22367 #ifdef HAVE_COMPLEX_H
22368 #include <complex.h>
22369 #endif
22370 #ifdef HAVE_MATH_H
22371 #include <math.h>
22372 #endif
22374 int (*ptr)() = (int (*)())csqrt;
22377 main ()
22379 return 0;
22382 _ACEOF
22383 if ac_fn_c_try_link "$LINENO"; then :
22384 gcc_cv_math_func_csqrt=yes
22385 else
22386 gcc_cv_math_func_csqrt=no
22388 rm -f core conftest.err conftest.$ac_objext \
22389 conftest$ac_exeext conftest.$ac_ext
22391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrt" >&5
22392 $as_echo "$gcc_cv_math_func_csqrt" >&6; }
22393 if test $gcc_cv_math_func_csqrt = yes; then
22395 cat >>confdefs.h <<_ACEOF
22396 #define HAVE_CSQRT 1
22397 _ACEOF
22404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtl" >&5
22405 $as_echo_n "checking for csqrtl... " >&6; }
22406 if test "${gcc_cv_math_func_csqrtl+set}" = set; then :
22407 $as_echo_n "(cached) " >&6
22408 else
22409 if test x$gcc_no_link = xyes; then
22410 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22413 /* end confdefs.h. */
22415 #ifdef HAVE_COMPLEX_H
22416 #include <complex.h>
22417 #endif
22418 #ifdef HAVE_MATH_H
22419 #include <math.h>
22420 #endif
22422 int (*ptr)() = (int (*)())csqrtl;
22425 main ()
22427 return 0;
22430 _ACEOF
22431 if ac_fn_c_try_link "$LINENO"; then :
22432 gcc_cv_math_func_csqrtl=yes
22433 else
22434 gcc_cv_math_func_csqrtl=no
22436 rm -f core conftest.err conftest.$ac_objext \
22437 conftest$ac_exeext conftest.$ac_ext
22439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtl" >&5
22440 $as_echo "$gcc_cv_math_func_csqrtl" >&6; }
22441 if test $gcc_cv_math_func_csqrtl = yes; then
22443 cat >>confdefs.h <<_ACEOF
22444 #define HAVE_CSQRTL 1
22445 _ACEOF
22452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanf" >&5
22453 $as_echo_n "checking for tanf... " >&6; }
22454 if test "${gcc_cv_math_func_tanf+set}" = set; then :
22455 $as_echo_n "(cached) " >&6
22456 else
22457 if test x$gcc_no_link = xyes; then
22458 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22461 /* end confdefs.h. */
22463 #ifdef HAVE_COMPLEX_H
22464 #include <complex.h>
22465 #endif
22466 #ifdef HAVE_MATH_H
22467 #include <math.h>
22468 #endif
22470 int (*ptr)() = (int (*)())tanf;
22473 main ()
22475 return 0;
22478 _ACEOF
22479 if ac_fn_c_try_link "$LINENO"; then :
22480 gcc_cv_math_func_tanf=yes
22481 else
22482 gcc_cv_math_func_tanf=no
22484 rm -f core conftest.err conftest.$ac_objext \
22485 conftest$ac_exeext conftest.$ac_ext
22487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanf" >&5
22488 $as_echo "$gcc_cv_math_func_tanf" >&6; }
22489 if test $gcc_cv_math_func_tanf = yes; then
22491 cat >>confdefs.h <<_ACEOF
22492 #define HAVE_TANF 1
22493 _ACEOF
22500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tan" >&5
22501 $as_echo_n "checking for tan... " >&6; }
22502 if test "${gcc_cv_math_func_tan+set}" = set; then :
22503 $as_echo_n "(cached) " >&6
22504 else
22505 if test x$gcc_no_link = xyes; then
22506 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22509 /* end confdefs.h. */
22511 #ifdef HAVE_COMPLEX_H
22512 #include <complex.h>
22513 #endif
22514 #ifdef HAVE_MATH_H
22515 #include <math.h>
22516 #endif
22518 int (*ptr)() = (int (*)())tan;
22521 main ()
22523 return 0;
22526 _ACEOF
22527 if ac_fn_c_try_link "$LINENO"; then :
22528 gcc_cv_math_func_tan=yes
22529 else
22530 gcc_cv_math_func_tan=no
22532 rm -f core conftest.err conftest.$ac_objext \
22533 conftest$ac_exeext conftest.$ac_ext
22535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tan" >&5
22536 $as_echo "$gcc_cv_math_func_tan" >&6; }
22537 if test $gcc_cv_math_func_tan = yes; then
22539 cat >>confdefs.h <<_ACEOF
22540 #define HAVE_TAN 1
22541 _ACEOF
22548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanl" >&5
22549 $as_echo_n "checking for tanl... " >&6; }
22550 if test "${gcc_cv_math_func_tanl+set}" = set; then :
22551 $as_echo_n "(cached) " >&6
22552 else
22553 if test x$gcc_no_link = xyes; then
22554 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22557 /* end confdefs.h. */
22559 #ifdef HAVE_COMPLEX_H
22560 #include <complex.h>
22561 #endif
22562 #ifdef HAVE_MATH_H
22563 #include <math.h>
22564 #endif
22566 int (*ptr)() = (int (*)())tanl;
22569 main ()
22571 return 0;
22574 _ACEOF
22575 if ac_fn_c_try_link "$LINENO"; then :
22576 gcc_cv_math_func_tanl=yes
22577 else
22578 gcc_cv_math_func_tanl=no
22580 rm -f core conftest.err conftest.$ac_objext \
22581 conftest$ac_exeext conftest.$ac_ext
22583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanl" >&5
22584 $as_echo "$gcc_cv_math_func_tanl" >&6; }
22585 if test $gcc_cv_math_func_tanl = yes; then
22587 cat >>confdefs.h <<_ACEOF
22588 #define HAVE_TANL 1
22589 _ACEOF
22596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanf" >&5
22597 $as_echo_n "checking for ctanf... " >&6; }
22598 if test "${gcc_cv_math_func_ctanf+set}" = set; then :
22599 $as_echo_n "(cached) " >&6
22600 else
22601 if test x$gcc_no_link = xyes; then
22602 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22605 /* end confdefs.h. */
22607 #ifdef HAVE_COMPLEX_H
22608 #include <complex.h>
22609 #endif
22610 #ifdef HAVE_MATH_H
22611 #include <math.h>
22612 #endif
22614 int (*ptr)() = (int (*)())ctanf;
22617 main ()
22619 return 0;
22622 _ACEOF
22623 if ac_fn_c_try_link "$LINENO"; then :
22624 gcc_cv_math_func_ctanf=yes
22625 else
22626 gcc_cv_math_func_ctanf=no
22628 rm -f core conftest.err conftest.$ac_objext \
22629 conftest$ac_exeext conftest.$ac_ext
22631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanf" >&5
22632 $as_echo "$gcc_cv_math_func_ctanf" >&6; }
22633 if test $gcc_cv_math_func_ctanf = yes; then
22635 cat >>confdefs.h <<_ACEOF
22636 #define HAVE_CTANF 1
22637 _ACEOF
22644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctan" >&5
22645 $as_echo_n "checking for ctan... " >&6; }
22646 if test "${gcc_cv_math_func_ctan+set}" = set; then :
22647 $as_echo_n "(cached) " >&6
22648 else
22649 if test x$gcc_no_link = xyes; then
22650 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22653 /* end confdefs.h. */
22655 #ifdef HAVE_COMPLEX_H
22656 #include <complex.h>
22657 #endif
22658 #ifdef HAVE_MATH_H
22659 #include <math.h>
22660 #endif
22662 int (*ptr)() = (int (*)())ctan;
22665 main ()
22667 return 0;
22670 _ACEOF
22671 if ac_fn_c_try_link "$LINENO"; then :
22672 gcc_cv_math_func_ctan=yes
22673 else
22674 gcc_cv_math_func_ctan=no
22676 rm -f core conftest.err conftest.$ac_objext \
22677 conftest$ac_exeext conftest.$ac_ext
22679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctan" >&5
22680 $as_echo "$gcc_cv_math_func_ctan" >&6; }
22681 if test $gcc_cv_math_func_ctan = yes; then
22683 cat >>confdefs.h <<_ACEOF
22684 #define HAVE_CTAN 1
22685 _ACEOF
22692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanl" >&5
22693 $as_echo_n "checking for ctanl... " >&6; }
22694 if test "${gcc_cv_math_func_ctanl+set}" = set; then :
22695 $as_echo_n "(cached) " >&6
22696 else
22697 if test x$gcc_no_link = xyes; then
22698 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22701 /* end confdefs.h. */
22703 #ifdef HAVE_COMPLEX_H
22704 #include <complex.h>
22705 #endif
22706 #ifdef HAVE_MATH_H
22707 #include <math.h>
22708 #endif
22710 int (*ptr)() = (int (*)())ctanl;
22713 main ()
22715 return 0;
22718 _ACEOF
22719 if ac_fn_c_try_link "$LINENO"; then :
22720 gcc_cv_math_func_ctanl=yes
22721 else
22722 gcc_cv_math_func_ctanl=no
22724 rm -f core conftest.err conftest.$ac_objext \
22725 conftest$ac_exeext conftest.$ac_ext
22727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanl" >&5
22728 $as_echo "$gcc_cv_math_func_ctanl" >&6; }
22729 if test $gcc_cv_math_func_ctanl = yes; then
22731 cat >>confdefs.h <<_ACEOF
22732 #define HAVE_CTANL 1
22733 _ACEOF
22740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhf" >&5
22741 $as_echo_n "checking for tanhf... " >&6; }
22742 if test "${gcc_cv_math_func_tanhf+set}" = set; then :
22743 $as_echo_n "(cached) " >&6
22744 else
22745 if test x$gcc_no_link = xyes; then
22746 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22749 /* end confdefs.h. */
22751 #ifdef HAVE_COMPLEX_H
22752 #include <complex.h>
22753 #endif
22754 #ifdef HAVE_MATH_H
22755 #include <math.h>
22756 #endif
22758 int (*ptr)() = (int (*)())tanhf;
22761 main ()
22763 return 0;
22766 _ACEOF
22767 if ac_fn_c_try_link "$LINENO"; then :
22768 gcc_cv_math_func_tanhf=yes
22769 else
22770 gcc_cv_math_func_tanhf=no
22772 rm -f core conftest.err conftest.$ac_objext \
22773 conftest$ac_exeext conftest.$ac_ext
22775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhf" >&5
22776 $as_echo "$gcc_cv_math_func_tanhf" >&6; }
22777 if test $gcc_cv_math_func_tanhf = yes; then
22779 cat >>confdefs.h <<_ACEOF
22780 #define HAVE_TANHF 1
22781 _ACEOF
22788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanh" >&5
22789 $as_echo_n "checking for tanh... " >&6; }
22790 if test "${gcc_cv_math_func_tanh+set}" = set; then :
22791 $as_echo_n "(cached) " >&6
22792 else
22793 if test x$gcc_no_link = xyes; then
22794 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22797 /* end confdefs.h. */
22799 #ifdef HAVE_COMPLEX_H
22800 #include <complex.h>
22801 #endif
22802 #ifdef HAVE_MATH_H
22803 #include <math.h>
22804 #endif
22806 int (*ptr)() = (int (*)())tanh;
22809 main ()
22811 return 0;
22814 _ACEOF
22815 if ac_fn_c_try_link "$LINENO"; then :
22816 gcc_cv_math_func_tanh=yes
22817 else
22818 gcc_cv_math_func_tanh=no
22820 rm -f core conftest.err conftest.$ac_objext \
22821 conftest$ac_exeext conftest.$ac_ext
22823 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanh" >&5
22824 $as_echo "$gcc_cv_math_func_tanh" >&6; }
22825 if test $gcc_cv_math_func_tanh = yes; then
22827 cat >>confdefs.h <<_ACEOF
22828 #define HAVE_TANH 1
22829 _ACEOF
22836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhl" >&5
22837 $as_echo_n "checking for tanhl... " >&6; }
22838 if test "${gcc_cv_math_func_tanhl+set}" = set; then :
22839 $as_echo_n "(cached) " >&6
22840 else
22841 if test x$gcc_no_link = xyes; then
22842 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22845 /* end confdefs.h. */
22847 #ifdef HAVE_COMPLEX_H
22848 #include <complex.h>
22849 #endif
22850 #ifdef HAVE_MATH_H
22851 #include <math.h>
22852 #endif
22854 int (*ptr)() = (int (*)())tanhl;
22857 main ()
22859 return 0;
22862 _ACEOF
22863 if ac_fn_c_try_link "$LINENO"; then :
22864 gcc_cv_math_func_tanhl=yes
22865 else
22866 gcc_cv_math_func_tanhl=no
22868 rm -f core conftest.err conftest.$ac_objext \
22869 conftest$ac_exeext conftest.$ac_ext
22871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhl" >&5
22872 $as_echo "$gcc_cv_math_func_tanhl" >&6; }
22873 if test $gcc_cv_math_func_tanhl = yes; then
22875 cat >>confdefs.h <<_ACEOF
22876 #define HAVE_TANHL 1
22877 _ACEOF
22884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhf" >&5
22885 $as_echo_n "checking for ctanhf... " >&6; }
22886 if test "${gcc_cv_math_func_ctanhf+set}" = set; then :
22887 $as_echo_n "(cached) " >&6
22888 else
22889 if test x$gcc_no_link = xyes; then
22890 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22893 /* end confdefs.h. */
22895 #ifdef HAVE_COMPLEX_H
22896 #include <complex.h>
22897 #endif
22898 #ifdef HAVE_MATH_H
22899 #include <math.h>
22900 #endif
22902 int (*ptr)() = (int (*)())ctanhf;
22905 main ()
22907 return 0;
22910 _ACEOF
22911 if ac_fn_c_try_link "$LINENO"; then :
22912 gcc_cv_math_func_ctanhf=yes
22913 else
22914 gcc_cv_math_func_ctanhf=no
22916 rm -f core conftest.err conftest.$ac_objext \
22917 conftest$ac_exeext conftest.$ac_ext
22919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhf" >&5
22920 $as_echo "$gcc_cv_math_func_ctanhf" >&6; }
22921 if test $gcc_cv_math_func_ctanhf = yes; then
22923 cat >>confdefs.h <<_ACEOF
22924 #define HAVE_CTANHF 1
22925 _ACEOF
22932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanh" >&5
22933 $as_echo_n "checking for ctanh... " >&6; }
22934 if test "${gcc_cv_math_func_ctanh+set}" = set; then :
22935 $as_echo_n "(cached) " >&6
22936 else
22937 if test x$gcc_no_link = xyes; then
22938 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22941 /* end confdefs.h. */
22943 #ifdef HAVE_COMPLEX_H
22944 #include <complex.h>
22945 #endif
22946 #ifdef HAVE_MATH_H
22947 #include <math.h>
22948 #endif
22950 int (*ptr)() = (int (*)())ctanh;
22953 main ()
22955 return 0;
22958 _ACEOF
22959 if ac_fn_c_try_link "$LINENO"; then :
22960 gcc_cv_math_func_ctanh=yes
22961 else
22962 gcc_cv_math_func_ctanh=no
22964 rm -f core conftest.err conftest.$ac_objext \
22965 conftest$ac_exeext conftest.$ac_ext
22967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanh" >&5
22968 $as_echo "$gcc_cv_math_func_ctanh" >&6; }
22969 if test $gcc_cv_math_func_ctanh = yes; then
22971 cat >>confdefs.h <<_ACEOF
22972 #define HAVE_CTANH 1
22973 _ACEOF
22980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhl" >&5
22981 $as_echo_n "checking for ctanhl... " >&6; }
22982 if test "${gcc_cv_math_func_ctanhl+set}" = set; then :
22983 $as_echo_n "(cached) " >&6
22984 else
22985 if test x$gcc_no_link = xyes; then
22986 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22989 /* end confdefs.h. */
22991 #ifdef HAVE_COMPLEX_H
22992 #include <complex.h>
22993 #endif
22994 #ifdef HAVE_MATH_H
22995 #include <math.h>
22996 #endif
22998 int (*ptr)() = (int (*)())ctanhl;
23001 main ()
23003 return 0;
23006 _ACEOF
23007 if ac_fn_c_try_link "$LINENO"; then :
23008 gcc_cv_math_func_ctanhl=yes
23009 else
23010 gcc_cv_math_func_ctanhl=no
23012 rm -f core conftest.err conftest.$ac_objext \
23013 conftest$ac_exeext conftest.$ac_ext
23015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhl" >&5
23016 $as_echo "$gcc_cv_math_func_ctanhl" >&6; }
23017 if test $gcc_cv_math_func_ctanhl = yes; then
23019 cat >>confdefs.h <<_ACEOF
23020 #define HAVE_CTANHL 1
23021 _ACEOF
23028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncf" >&5
23029 $as_echo_n "checking for truncf... " >&6; }
23030 if test "${gcc_cv_math_func_truncf+set}" = set; then :
23031 $as_echo_n "(cached) " >&6
23032 else
23033 if test x$gcc_no_link = xyes; then
23034 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23037 /* end confdefs.h. */
23039 #ifdef HAVE_COMPLEX_H
23040 #include <complex.h>
23041 #endif
23042 #ifdef HAVE_MATH_H
23043 #include <math.h>
23044 #endif
23046 int (*ptr)() = (int (*)())truncf;
23049 main ()
23051 return 0;
23054 _ACEOF
23055 if ac_fn_c_try_link "$LINENO"; then :
23056 gcc_cv_math_func_truncf=yes
23057 else
23058 gcc_cv_math_func_truncf=no
23060 rm -f core conftest.err conftest.$ac_objext \
23061 conftest$ac_exeext conftest.$ac_ext
23063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncf" >&5
23064 $as_echo "$gcc_cv_math_func_truncf" >&6; }
23065 if test $gcc_cv_math_func_truncf = yes; then
23067 cat >>confdefs.h <<_ACEOF
23068 #define HAVE_TRUNCF 1
23069 _ACEOF
23076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for trunc" >&5
23077 $as_echo_n "checking for trunc... " >&6; }
23078 if test "${gcc_cv_math_func_trunc+set}" = set; then :
23079 $as_echo_n "(cached) " >&6
23080 else
23081 if test x$gcc_no_link = xyes; then
23082 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23085 /* end confdefs.h. */
23087 #ifdef HAVE_COMPLEX_H
23088 #include <complex.h>
23089 #endif
23090 #ifdef HAVE_MATH_H
23091 #include <math.h>
23092 #endif
23094 int (*ptr)() = (int (*)())trunc;
23097 main ()
23099 return 0;
23102 _ACEOF
23103 if ac_fn_c_try_link "$LINENO"; then :
23104 gcc_cv_math_func_trunc=yes
23105 else
23106 gcc_cv_math_func_trunc=no
23108 rm -f core conftest.err conftest.$ac_objext \
23109 conftest$ac_exeext conftest.$ac_ext
23111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_trunc" >&5
23112 $as_echo "$gcc_cv_math_func_trunc" >&6; }
23113 if test $gcc_cv_math_func_trunc = yes; then
23115 cat >>confdefs.h <<_ACEOF
23116 #define HAVE_TRUNC 1
23117 _ACEOF
23124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncl" >&5
23125 $as_echo_n "checking for truncl... " >&6; }
23126 if test "${gcc_cv_math_func_truncl+set}" = set; then :
23127 $as_echo_n "(cached) " >&6
23128 else
23129 if test x$gcc_no_link = xyes; then
23130 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23133 /* end confdefs.h. */
23135 #ifdef HAVE_COMPLEX_H
23136 #include <complex.h>
23137 #endif
23138 #ifdef HAVE_MATH_H
23139 #include <math.h>
23140 #endif
23142 int (*ptr)() = (int (*)())truncl;
23145 main ()
23147 return 0;
23150 _ACEOF
23151 if ac_fn_c_try_link "$LINENO"; then :
23152 gcc_cv_math_func_truncl=yes
23153 else
23154 gcc_cv_math_func_truncl=no
23156 rm -f core conftest.err conftest.$ac_objext \
23157 conftest$ac_exeext conftest.$ac_ext
23159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncl" >&5
23160 $as_echo "$gcc_cv_math_func_truncl" >&6; }
23161 if test $gcc_cv_math_func_truncl = yes; then
23163 cat >>confdefs.h <<_ACEOF
23164 #define HAVE_TRUNCL 1
23165 _ACEOF
23172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erff" >&5
23173 $as_echo_n "checking for erff... " >&6; }
23174 if test "${gcc_cv_math_func_erff+set}" = set; then :
23175 $as_echo_n "(cached) " >&6
23176 else
23177 if test x$gcc_no_link = xyes; then
23178 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23181 /* end confdefs.h. */
23183 #ifdef HAVE_COMPLEX_H
23184 #include <complex.h>
23185 #endif
23186 #ifdef HAVE_MATH_H
23187 #include <math.h>
23188 #endif
23190 int (*ptr)() = (int (*)())erff;
23193 main ()
23195 return 0;
23198 _ACEOF
23199 if ac_fn_c_try_link "$LINENO"; then :
23200 gcc_cv_math_func_erff=yes
23201 else
23202 gcc_cv_math_func_erff=no
23204 rm -f core conftest.err conftest.$ac_objext \
23205 conftest$ac_exeext conftest.$ac_ext
23207 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erff" >&5
23208 $as_echo "$gcc_cv_math_func_erff" >&6; }
23209 if test $gcc_cv_math_func_erff = yes; then
23211 cat >>confdefs.h <<_ACEOF
23212 #define HAVE_ERFF 1
23213 _ACEOF
23220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erf" >&5
23221 $as_echo_n "checking for erf... " >&6; }
23222 if test "${gcc_cv_math_func_erf+set}" = set; then :
23223 $as_echo_n "(cached) " >&6
23224 else
23225 if test x$gcc_no_link = xyes; then
23226 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23229 /* end confdefs.h. */
23231 #ifdef HAVE_COMPLEX_H
23232 #include <complex.h>
23233 #endif
23234 #ifdef HAVE_MATH_H
23235 #include <math.h>
23236 #endif
23238 int (*ptr)() = (int (*)())erf;
23241 main ()
23243 return 0;
23246 _ACEOF
23247 if ac_fn_c_try_link "$LINENO"; then :
23248 gcc_cv_math_func_erf=yes
23249 else
23250 gcc_cv_math_func_erf=no
23252 rm -f core conftest.err conftest.$ac_objext \
23253 conftest$ac_exeext conftest.$ac_ext
23255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erf" >&5
23256 $as_echo "$gcc_cv_math_func_erf" >&6; }
23257 if test $gcc_cv_math_func_erf = yes; then
23259 cat >>confdefs.h <<_ACEOF
23260 #define HAVE_ERF 1
23261 _ACEOF
23268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfl" >&5
23269 $as_echo_n "checking for erfl... " >&6; }
23270 if test "${gcc_cv_math_func_erfl+set}" = set; then :
23271 $as_echo_n "(cached) " >&6
23272 else
23273 if test x$gcc_no_link = xyes; then
23274 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23277 /* end confdefs.h. */
23279 #ifdef HAVE_COMPLEX_H
23280 #include <complex.h>
23281 #endif
23282 #ifdef HAVE_MATH_H
23283 #include <math.h>
23284 #endif
23286 int (*ptr)() = (int (*)())erfl;
23289 main ()
23291 return 0;
23294 _ACEOF
23295 if ac_fn_c_try_link "$LINENO"; then :
23296 gcc_cv_math_func_erfl=yes
23297 else
23298 gcc_cv_math_func_erfl=no
23300 rm -f core conftest.err conftest.$ac_objext \
23301 conftest$ac_exeext conftest.$ac_ext
23303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfl" >&5
23304 $as_echo "$gcc_cv_math_func_erfl" >&6; }
23305 if test $gcc_cv_math_func_erfl = yes; then
23307 cat >>confdefs.h <<_ACEOF
23308 #define HAVE_ERFL 1
23309 _ACEOF
23316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcf" >&5
23317 $as_echo_n "checking for erfcf... " >&6; }
23318 if test "${gcc_cv_math_func_erfcf+set}" = set; then :
23319 $as_echo_n "(cached) " >&6
23320 else
23321 if test x$gcc_no_link = xyes; then
23322 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23325 /* end confdefs.h. */
23327 #ifdef HAVE_COMPLEX_H
23328 #include <complex.h>
23329 #endif
23330 #ifdef HAVE_MATH_H
23331 #include <math.h>
23332 #endif
23334 int (*ptr)() = (int (*)())erfcf;
23337 main ()
23339 return 0;
23342 _ACEOF
23343 if ac_fn_c_try_link "$LINENO"; then :
23344 gcc_cv_math_func_erfcf=yes
23345 else
23346 gcc_cv_math_func_erfcf=no
23348 rm -f core conftest.err conftest.$ac_objext \
23349 conftest$ac_exeext conftest.$ac_ext
23351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcf" >&5
23352 $as_echo "$gcc_cv_math_func_erfcf" >&6; }
23353 if test $gcc_cv_math_func_erfcf = yes; then
23355 cat >>confdefs.h <<_ACEOF
23356 #define HAVE_ERFCF 1
23357 _ACEOF
23364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfc" >&5
23365 $as_echo_n "checking for erfc... " >&6; }
23366 if test "${gcc_cv_math_func_erfc+set}" = set; then :
23367 $as_echo_n "(cached) " >&6
23368 else
23369 if test x$gcc_no_link = xyes; then
23370 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23373 /* end confdefs.h. */
23375 #ifdef HAVE_COMPLEX_H
23376 #include <complex.h>
23377 #endif
23378 #ifdef HAVE_MATH_H
23379 #include <math.h>
23380 #endif
23382 int (*ptr)() = (int (*)())erfc;
23385 main ()
23387 return 0;
23390 _ACEOF
23391 if ac_fn_c_try_link "$LINENO"; then :
23392 gcc_cv_math_func_erfc=yes
23393 else
23394 gcc_cv_math_func_erfc=no
23396 rm -f core conftest.err conftest.$ac_objext \
23397 conftest$ac_exeext conftest.$ac_ext
23399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfc" >&5
23400 $as_echo "$gcc_cv_math_func_erfc" >&6; }
23401 if test $gcc_cv_math_func_erfc = yes; then
23403 cat >>confdefs.h <<_ACEOF
23404 #define HAVE_ERFC 1
23405 _ACEOF
23412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcl" >&5
23413 $as_echo_n "checking for erfcl... " >&6; }
23414 if test "${gcc_cv_math_func_erfcl+set}" = set; then :
23415 $as_echo_n "(cached) " >&6
23416 else
23417 if test x$gcc_no_link = xyes; then
23418 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23420 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23421 /* end confdefs.h. */
23423 #ifdef HAVE_COMPLEX_H
23424 #include <complex.h>
23425 #endif
23426 #ifdef HAVE_MATH_H
23427 #include <math.h>
23428 #endif
23430 int (*ptr)() = (int (*)())erfcl;
23433 main ()
23435 return 0;
23438 _ACEOF
23439 if ac_fn_c_try_link "$LINENO"; then :
23440 gcc_cv_math_func_erfcl=yes
23441 else
23442 gcc_cv_math_func_erfcl=no
23444 rm -f core conftest.err conftest.$ac_objext \
23445 conftest$ac_exeext conftest.$ac_ext
23447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcl" >&5
23448 $as_echo "$gcc_cv_math_func_erfcl" >&6; }
23449 if test $gcc_cv_math_func_erfcl = yes; then
23451 cat >>confdefs.h <<_ACEOF
23452 #define HAVE_ERFCL 1
23453 _ACEOF
23460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0f" >&5
23461 $as_echo_n "checking for j0f... " >&6; }
23462 if test "${gcc_cv_math_func_j0f+set}" = set; then :
23463 $as_echo_n "(cached) " >&6
23464 else
23465 if test x$gcc_no_link = xyes; then
23466 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23469 /* end confdefs.h. */
23471 #ifdef HAVE_COMPLEX_H
23472 #include <complex.h>
23473 #endif
23474 #ifdef HAVE_MATH_H
23475 #include <math.h>
23476 #endif
23478 int (*ptr)() = (int (*)())j0f;
23481 main ()
23483 return 0;
23486 _ACEOF
23487 if ac_fn_c_try_link "$LINENO"; then :
23488 gcc_cv_math_func_j0f=yes
23489 else
23490 gcc_cv_math_func_j0f=no
23492 rm -f core conftest.err conftest.$ac_objext \
23493 conftest$ac_exeext conftest.$ac_ext
23495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0f" >&5
23496 $as_echo "$gcc_cv_math_func_j0f" >&6; }
23497 if test $gcc_cv_math_func_j0f = yes; then
23499 cat >>confdefs.h <<_ACEOF
23500 #define HAVE_J0F 1
23501 _ACEOF
23508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0" >&5
23509 $as_echo_n "checking for j0... " >&6; }
23510 if test "${gcc_cv_math_func_j0+set}" = set; then :
23511 $as_echo_n "(cached) " >&6
23512 else
23513 if test x$gcc_no_link = xyes; then
23514 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23517 /* end confdefs.h. */
23519 #ifdef HAVE_COMPLEX_H
23520 #include <complex.h>
23521 #endif
23522 #ifdef HAVE_MATH_H
23523 #include <math.h>
23524 #endif
23526 int (*ptr)() = (int (*)())j0;
23529 main ()
23531 return 0;
23534 _ACEOF
23535 if ac_fn_c_try_link "$LINENO"; then :
23536 gcc_cv_math_func_j0=yes
23537 else
23538 gcc_cv_math_func_j0=no
23540 rm -f core conftest.err conftest.$ac_objext \
23541 conftest$ac_exeext conftest.$ac_ext
23543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0" >&5
23544 $as_echo "$gcc_cv_math_func_j0" >&6; }
23545 if test $gcc_cv_math_func_j0 = yes; then
23547 cat >>confdefs.h <<_ACEOF
23548 #define HAVE_J0 1
23549 _ACEOF
23556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0l" >&5
23557 $as_echo_n "checking for j0l... " >&6; }
23558 if test "${gcc_cv_math_func_j0l+set}" = set; then :
23559 $as_echo_n "(cached) " >&6
23560 else
23561 if test x$gcc_no_link = xyes; then
23562 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23565 /* end confdefs.h. */
23567 #ifdef HAVE_COMPLEX_H
23568 #include <complex.h>
23569 #endif
23570 #ifdef HAVE_MATH_H
23571 #include <math.h>
23572 #endif
23574 int (*ptr)() = (int (*)())j0l;
23577 main ()
23579 return 0;
23582 _ACEOF
23583 if ac_fn_c_try_link "$LINENO"; then :
23584 gcc_cv_math_func_j0l=yes
23585 else
23586 gcc_cv_math_func_j0l=no
23588 rm -f core conftest.err conftest.$ac_objext \
23589 conftest$ac_exeext conftest.$ac_ext
23591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0l" >&5
23592 $as_echo "$gcc_cv_math_func_j0l" >&6; }
23593 if test $gcc_cv_math_func_j0l = yes; then
23595 cat >>confdefs.h <<_ACEOF
23596 #define HAVE_J0L 1
23597 _ACEOF
23604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1f" >&5
23605 $as_echo_n "checking for j1f... " >&6; }
23606 if test "${gcc_cv_math_func_j1f+set}" = set; then :
23607 $as_echo_n "(cached) " >&6
23608 else
23609 if test x$gcc_no_link = xyes; then
23610 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23613 /* end confdefs.h. */
23615 #ifdef HAVE_COMPLEX_H
23616 #include <complex.h>
23617 #endif
23618 #ifdef HAVE_MATH_H
23619 #include <math.h>
23620 #endif
23622 int (*ptr)() = (int (*)())j1f;
23625 main ()
23627 return 0;
23630 _ACEOF
23631 if ac_fn_c_try_link "$LINENO"; then :
23632 gcc_cv_math_func_j1f=yes
23633 else
23634 gcc_cv_math_func_j1f=no
23636 rm -f core conftest.err conftest.$ac_objext \
23637 conftest$ac_exeext conftest.$ac_ext
23639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1f" >&5
23640 $as_echo "$gcc_cv_math_func_j1f" >&6; }
23641 if test $gcc_cv_math_func_j1f = yes; then
23643 cat >>confdefs.h <<_ACEOF
23644 #define HAVE_J1F 1
23645 _ACEOF
23652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1" >&5
23653 $as_echo_n "checking for j1... " >&6; }
23654 if test "${gcc_cv_math_func_j1+set}" = set; then :
23655 $as_echo_n "(cached) " >&6
23656 else
23657 if test x$gcc_no_link = xyes; then
23658 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23661 /* end confdefs.h. */
23663 #ifdef HAVE_COMPLEX_H
23664 #include <complex.h>
23665 #endif
23666 #ifdef HAVE_MATH_H
23667 #include <math.h>
23668 #endif
23670 int (*ptr)() = (int (*)())j1;
23673 main ()
23675 return 0;
23678 _ACEOF
23679 if ac_fn_c_try_link "$LINENO"; then :
23680 gcc_cv_math_func_j1=yes
23681 else
23682 gcc_cv_math_func_j1=no
23684 rm -f core conftest.err conftest.$ac_objext \
23685 conftest$ac_exeext conftest.$ac_ext
23687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1" >&5
23688 $as_echo "$gcc_cv_math_func_j1" >&6; }
23689 if test $gcc_cv_math_func_j1 = yes; then
23691 cat >>confdefs.h <<_ACEOF
23692 #define HAVE_J1 1
23693 _ACEOF
23700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1l" >&5
23701 $as_echo_n "checking for j1l... " >&6; }
23702 if test "${gcc_cv_math_func_j1l+set}" = set; then :
23703 $as_echo_n "(cached) " >&6
23704 else
23705 if test x$gcc_no_link = xyes; then
23706 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23709 /* end confdefs.h. */
23711 #ifdef HAVE_COMPLEX_H
23712 #include <complex.h>
23713 #endif
23714 #ifdef HAVE_MATH_H
23715 #include <math.h>
23716 #endif
23718 int (*ptr)() = (int (*)())j1l;
23721 main ()
23723 return 0;
23726 _ACEOF
23727 if ac_fn_c_try_link "$LINENO"; then :
23728 gcc_cv_math_func_j1l=yes
23729 else
23730 gcc_cv_math_func_j1l=no
23732 rm -f core conftest.err conftest.$ac_objext \
23733 conftest$ac_exeext conftest.$ac_ext
23735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1l" >&5
23736 $as_echo "$gcc_cv_math_func_j1l" >&6; }
23737 if test $gcc_cv_math_func_j1l = yes; then
23739 cat >>confdefs.h <<_ACEOF
23740 #define HAVE_J1L 1
23741 _ACEOF
23748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnf" >&5
23749 $as_echo_n "checking for jnf... " >&6; }
23750 if test "${gcc_cv_math_func_jnf+set}" = set; then :
23751 $as_echo_n "(cached) " >&6
23752 else
23753 if test x$gcc_no_link = xyes; then
23754 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23757 /* end confdefs.h. */
23759 #ifdef HAVE_COMPLEX_H
23760 #include <complex.h>
23761 #endif
23762 #ifdef HAVE_MATH_H
23763 #include <math.h>
23764 #endif
23766 int (*ptr)() = (int (*)())jnf;
23769 main ()
23771 return 0;
23774 _ACEOF
23775 if ac_fn_c_try_link "$LINENO"; then :
23776 gcc_cv_math_func_jnf=yes
23777 else
23778 gcc_cv_math_func_jnf=no
23780 rm -f core conftest.err conftest.$ac_objext \
23781 conftest$ac_exeext conftest.$ac_ext
23783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnf" >&5
23784 $as_echo "$gcc_cv_math_func_jnf" >&6; }
23785 if test $gcc_cv_math_func_jnf = yes; then
23787 cat >>confdefs.h <<_ACEOF
23788 #define HAVE_JNF 1
23789 _ACEOF
23796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jn" >&5
23797 $as_echo_n "checking for jn... " >&6; }
23798 if test "${gcc_cv_math_func_jn+set}" = set; then :
23799 $as_echo_n "(cached) " >&6
23800 else
23801 if test x$gcc_no_link = xyes; then
23802 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23805 /* end confdefs.h. */
23807 #ifdef HAVE_COMPLEX_H
23808 #include <complex.h>
23809 #endif
23810 #ifdef HAVE_MATH_H
23811 #include <math.h>
23812 #endif
23814 int (*ptr)() = (int (*)())jn;
23817 main ()
23819 return 0;
23822 _ACEOF
23823 if ac_fn_c_try_link "$LINENO"; then :
23824 gcc_cv_math_func_jn=yes
23825 else
23826 gcc_cv_math_func_jn=no
23828 rm -f core conftest.err conftest.$ac_objext \
23829 conftest$ac_exeext conftest.$ac_ext
23831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jn" >&5
23832 $as_echo "$gcc_cv_math_func_jn" >&6; }
23833 if test $gcc_cv_math_func_jn = yes; then
23835 cat >>confdefs.h <<_ACEOF
23836 #define HAVE_JN 1
23837 _ACEOF
23844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnl" >&5
23845 $as_echo_n "checking for jnl... " >&6; }
23846 if test "${gcc_cv_math_func_jnl+set}" = set; then :
23847 $as_echo_n "(cached) " >&6
23848 else
23849 if test x$gcc_no_link = xyes; then
23850 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23853 /* end confdefs.h. */
23855 #ifdef HAVE_COMPLEX_H
23856 #include <complex.h>
23857 #endif
23858 #ifdef HAVE_MATH_H
23859 #include <math.h>
23860 #endif
23862 int (*ptr)() = (int (*)())jnl;
23865 main ()
23867 return 0;
23870 _ACEOF
23871 if ac_fn_c_try_link "$LINENO"; then :
23872 gcc_cv_math_func_jnl=yes
23873 else
23874 gcc_cv_math_func_jnl=no
23876 rm -f core conftest.err conftest.$ac_objext \
23877 conftest$ac_exeext conftest.$ac_ext
23879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnl" >&5
23880 $as_echo "$gcc_cv_math_func_jnl" >&6; }
23881 if test $gcc_cv_math_func_jnl = yes; then
23883 cat >>confdefs.h <<_ACEOF
23884 #define HAVE_JNL 1
23885 _ACEOF
23892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0f" >&5
23893 $as_echo_n "checking for y0f... " >&6; }
23894 if test "${gcc_cv_math_func_y0f+set}" = set; then :
23895 $as_echo_n "(cached) " >&6
23896 else
23897 if test x$gcc_no_link = xyes; then
23898 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23900 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23901 /* end confdefs.h. */
23903 #ifdef HAVE_COMPLEX_H
23904 #include <complex.h>
23905 #endif
23906 #ifdef HAVE_MATH_H
23907 #include <math.h>
23908 #endif
23910 int (*ptr)() = (int (*)())y0f;
23913 main ()
23915 return 0;
23918 _ACEOF
23919 if ac_fn_c_try_link "$LINENO"; then :
23920 gcc_cv_math_func_y0f=yes
23921 else
23922 gcc_cv_math_func_y0f=no
23924 rm -f core conftest.err conftest.$ac_objext \
23925 conftest$ac_exeext conftest.$ac_ext
23927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0f" >&5
23928 $as_echo "$gcc_cv_math_func_y0f" >&6; }
23929 if test $gcc_cv_math_func_y0f = yes; then
23931 cat >>confdefs.h <<_ACEOF
23932 #define HAVE_Y0F 1
23933 _ACEOF
23940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0" >&5
23941 $as_echo_n "checking for y0... " >&6; }
23942 if test "${gcc_cv_math_func_y0+set}" = set; then :
23943 $as_echo_n "(cached) " >&6
23944 else
23945 if test x$gcc_no_link = xyes; then
23946 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23949 /* end confdefs.h. */
23951 #ifdef HAVE_COMPLEX_H
23952 #include <complex.h>
23953 #endif
23954 #ifdef HAVE_MATH_H
23955 #include <math.h>
23956 #endif
23958 int (*ptr)() = (int (*)())y0;
23961 main ()
23963 return 0;
23966 _ACEOF
23967 if ac_fn_c_try_link "$LINENO"; then :
23968 gcc_cv_math_func_y0=yes
23969 else
23970 gcc_cv_math_func_y0=no
23972 rm -f core conftest.err conftest.$ac_objext \
23973 conftest$ac_exeext conftest.$ac_ext
23975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0" >&5
23976 $as_echo "$gcc_cv_math_func_y0" >&6; }
23977 if test $gcc_cv_math_func_y0 = yes; then
23979 cat >>confdefs.h <<_ACEOF
23980 #define HAVE_Y0 1
23981 _ACEOF
23988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0l" >&5
23989 $as_echo_n "checking for y0l... " >&6; }
23990 if test "${gcc_cv_math_func_y0l+set}" = set; then :
23991 $as_echo_n "(cached) " >&6
23992 else
23993 if test x$gcc_no_link = xyes; then
23994 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23997 /* end confdefs.h. */
23999 #ifdef HAVE_COMPLEX_H
24000 #include <complex.h>
24001 #endif
24002 #ifdef HAVE_MATH_H
24003 #include <math.h>
24004 #endif
24006 int (*ptr)() = (int (*)())y0l;
24009 main ()
24011 return 0;
24014 _ACEOF
24015 if ac_fn_c_try_link "$LINENO"; then :
24016 gcc_cv_math_func_y0l=yes
24017 else
24018 gcc_cv_math_func_y0l=no
24020 rm -f core conftest.err conftest.$ac_objext \
24021 conftest$ac_exeext conftest.$ac_ext
24023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0l" >&5
24024 $as_echo "$gcc_cv_math_func_y0l" >&6; }
24025 if test $gcc_cv_math_func_y0l = yes; then
24027 cat >>confdefs.h <<_ACEOF
24028 #define HAVE_Y0L 1
24029 _ACEOF
24036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1f" >&5
24037 $as_echo_n "checking for y1f... " >&6; }
24038 if test "${gcc_cv_math_func_y1f+set}" = set; then :
24039 $as_echo_n "(cached) " >&6
24040 else
24041 if test x$gcc_no_link = xyes; then
24042 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24045 /* end confdefs.h. */
24047 #ifdef HAVE_COMPLEX_H
24048 #include <complex.h>
24049 #endif
24050 #ifdef HAVE_MATH_H
24051 #include <math.h>
24052 #endif
24054 int (*ptr)() = (int (*)())y1f;
24057 main ()
24059 return 0;
24062 _ACEOF
24063 if ac_fn_c_try_link "$LINENO"; then :
24064 gcc_cv_math_func_y1f=yes
24065 else
24066 gcc_cv_math_func_y1f=no
24068 rm -f core conftest.err conftest.$ac_objext \
24069 conftest$ac_exeext conftest.$ac_ext
24071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1f" >&5
24072 $as_echo "$gcc_cv_math_func_y1f" >&6; }
24073 if test $gcc_cv_math_func_y1f = yes; then
24075 cat >>confdefs.h <<_ACEOF
24076 #define HAVE_Y1F 1
24077 _ACEOF
24084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1" >&5
24085 $as_echo_n "checking for y1... " >&6; }
24086 if test "${gcc_cv_math_func_y1+set}" = set; then :
24087 $as_echo_n "(cached) " >&6
24088 else
24089 if test x$gcc_no_link = xyes; then
24090 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24092 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24093 /* end confdefs.h. */
24095 #ifdef HAVE_COMPLEX_H
24096 #include <complex.h>
24097 #endif
24098 #ifdef HAVE_MATH_H
24099 #include <math.h>
24100 #endif
24102 int (*ptr)() = (int (*)())y1;
24105 main ()
24107 return 0;
24110 _ACEOF
24111 if ac_fn_c_try_link "$LINENO"; then :
24112 gcc_cv_math_func_y1=yes
24113 else
24114 gcc_cv_math_func_y1=no
24116 rm -f core conftest.err conftest.$ac_objext \
24117 conftest$ac_exeext conftest.$ac_ext
24119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1" >&5
24120 $as_echo "$gcc_cv_math_func_y1" >&6; }
24121 if test $gcc_cv_math_func_y1 = yes; then
24123 cat >>confdefs.h <<_ACEOF
24124 #define HAVE_Y1 1
24125 _ACEOF
24132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1l" >&5
24133 $as_echo_n "checking for y1l... " >&6; }
24134 if test "${gcc_cv_math_func_y1l+set}" = set; then :
24135 $as_echo_n "(cached) " >&6
24136 else
24137 if test x$gcc_no_link = xyes; then
24138 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24140 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24141 /* end confdefs.h. */
24143 #ifdef HAVE_COMPLEX_H
24144 #include <complex.h>
24145 #endif
24146 #ifdef HAVE_MATH_H
24147 #include <math.h>
24148 #endif
24150 int (*ptr)() = (int (*)())y1l;
24153 main ()
24155 return 0;
24158 _ACEOF
24159 if ac_fn_c_try_link "$LINENO"; then :
24160 gcc_cv_math_func_y1l=yes
24161 else
24162 gcc_cv_math_func_y1l=no
24164 rm -f core conftest.err conftest.$ac_objext \
24165 conftest$ac_exeext conftest.$ac_ext
24167 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1l" >&5
24168 $as_echo "$gcc_cv_math_func_y1l" >&6; }
24169 if test $gcc_cv_math_func_y1l = yes; then
24171 cat >>confdefs.h <<_ACEOF
24172 #define HAVE_Y1L 1
24173 _ACEOF
24180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynf" >&5
24181 $as_echo_n "checking for ynf... " >&6; }
24182 if test "${gcc_cv_math_func_ynf+set}" = set; then :
24183 $as_echo_n "(cached) " >&6
24184 else
24185 if test x$gcc_no_link = xyes; then
24186 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24189 /* end confdefs.h. */
24191 #ifdef HAVE_COMPLEX_H
24192 #include <complex.h>
24193 #endif
24194 #ifdef HAVE_MATH_H
24195 #include <math.h>
24196 #endif
24198 int (*ptr)() = (int (*)())ynf;
24201 main ()
24203 return 0;
24206 _ACEOF
24207 if ac_fn_c_try_link "$LINENO"; then :
24208 gcc_cv_math_func_ynf=yes
24209 else
24210 gcc_cv_math_func_ynf=no
24212 rm -f core conftest.err conftest.$ac_objext \
24213 conftest$ac_exeext conftest.$ac_ext
24215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynf" >&5
24216 $as_echo "$gcc_cv_math_func_ynf" >&6; }
24217 if test $gcc_cv_math_func_ynf = yes; then
24219 cat >>confdefs.h <<_ACEOF
24220 #define HAVE_YNF 1
24221 _ACEOF
24228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yn" >&5
24229 $as_echo_n "checking for yn... " >&6; }
24230 if test "${gcc_cv_math_func_yn+set}" = set; then :
24231 $as_echo_n "(cached) " >&6
24232 else
24233 if test x$gcc_no_link = xyes; then
24234 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24237 /* end confdefs.h. */
24239 #ifdef HAVE_COMPLEX_H
24240 #include <complex.h>
24241 #endif
24242 #ifdef HAVE_MATH_H
24243 #include <math.h>
24244 #endif
24246 int (*ptr)() = (int (*)())yn;
24249 main ()
24251 return 0;
24254 _ACEOF
24255 if ac_fn_c_try_link "$LINENO"; then :
24256 gcc_cv_math_func_yn=yes
24257 else
24258 gcc_cv_math_func_yn=no
24260 rm -f core conftest.err conftest.$ac_objext \
24261 conftest$ac_exeext conftest.$ac_ext
24263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_yn" >&5
24264 $as_echo "$gcc_cv_math_func_yn" >&6; }
24265 if test $gcc_cv_math_func_yn = yes; then
24267 cat >>confdefs.h <<_ACEOF
24268 #define HAVE_YN 1
24269 _ACEOF
24276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynl" >&5
24277 $as_echo_n "checking for ynl... " >&6; }
24278 if test "${gcc_cv_math_func_ynl+set}" = set; then :
24279 $as_echo_n "(cached) " >&6
24280 else
24281 if test x$gcc_no_link = xyes; then
24282 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24284 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24285 /* end confdefs.h. */
24287 #ifdef HAVE_COMPLEX_H
24288 #include <complex.h>
24289 #endif
24290 #ifdef HAVE_MATH_H
24291 #include <math.h>
24292 #endif
24294 int (*ptr)() = (int (*)())ynl;
24297 main ()
24299 return 0;
24302 _ACEOF
24303 if ac_fn_c_try_link "$LINENO"; then :
24304 gcc_cv_math_func_ynl=yes
24305 else
24306 gcc_cv_math_func_ynl=no
24308 rm -f core conftest.err conftest.$ac_objext \
24309 conftest$ac_exeext conftest.$ac_ext
24311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynl" >&5
24312 $as_echo "$gcc_cv_math_func_ynl" >&6; }
24313 if test $gcc_cv_math_func_ynl = yes; then
24315 cat >>confdefs.h <<_ACEOF
24316 #define HAVE_YNL 1
24317 _ACEOF
24324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgamma" >&5
24325 $as_echo_n "checking for tgamma... " >&6; }
24326 if test "${gcc_cv_math_func_tgamma+set}" = set; then :
24327 $as_echo_n "(cached) " >&6
24328 else
24329 if test x$gcc_no_link = xyes; then
24330 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24332 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24333 /* end confdefs.h. */
24335 #ifdef HAVE_COMPLEX_H
24336 #include <complex.h>
24337 #endif
24338 #ifdef HAVE_MATH_H
24339 #include <math.h>
24340 #endif
24342 int (*ptr)() = (int (*)())tgamma;
24345 main ()
24347 return 0;
24350 _ACEOF
24351 if ac_fn_c_try_link "$LINENO"; then :
24352 gcc_cv_math_func_tgamma=yes
24353 else
24354 gcc_cv_math_func_tgamma=no
24356 rm -f core conftest.err conftest.$ac_objext \
24357 conftest$ac_exeext conftest.$ac_ext
24359 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgamma" >&5
24360 $as_echo "$gcc_cv_math_func_tgamma" >&6; }
24361 if test $gcc_cv_math_func_tgamma = yes; then
24363 cat >>confdefs.h <<_ACEOF
24364 #define HAVE_TGAMMA 1
24365 _ACEOF
24372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammaf" >&5
24373 $as_echo_n "checking for tgammaf... " >&6; }
24374 if test "${gcc_cv_math_func_tgammaf+set}" = set; then :
24375 $as_echo_n "(cached) " >&6
24376 else
24377 if test x$gcc_no_link = xyes; then
24378 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24381 /* end confdefs.h. */
24383 #ifdef HAVE_COMPLEX_H
24384 #include <complex.h>
24385 #endif
24386 #ifdef HAVE_MATH_H
24387 #include <math.h>
24388 #endif
24390 int (*ptr)() = (int (*)())tgammaf;
24393 main ()
24395 return 0;
24398 _ACEOF
24399 if ac_fn_c_try_link "$LINENO"; then :
24400 gcc_cv_math_func_tgammaf=yes
24401 else
24402 gcc_cv_math_func_tgammaf=no
24404 rm -f core conftest.err conftest.$ac_objext \
24405 conftest$ac_exeext conftest.$ac_ext
24407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgammaf" >&5
24408 $as_echo "$gcc_cv_math_func_tgammaf" >&6; }
24409 if test $gcc_cv_math_func_tgammaf = yes; then
24411 cat >>confdefs.h <<_ACEOF
24412 #define HAVE_TGAMMAF 1
24413 _ACEOF
24420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammal" >&5
24421 $as_echo_n "checking for tgammal... " >&6; }
24422 if test "${gcc_cv_math_func_tgammal+set}" = set; then :
24423 $as_echo_n "(cached) " >&6
24424 else
24425 if test x$gcc_no_link = xyes; then
24426 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24428 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24429 /* end confdefs.h. */
24431 #ifdef HAVE_COMPLEX_H
24432 #include <complex.h>
24433 #endif
24434 #ifdef HAVE_MATH_H
24435 #include <math.h>
24436 #endif
24438 int (*ptr)() = (int (*)())tgammal;
24441 main ()
24443 return 0;
24446 _ACEOF
24447 if ac_fn_c_try_link "$LINENO"; then :
24448 gcc_cv_math_func_tgammal=yes
24449 else
24450 gcc_cv_math_func_tgammal=no
24452 rm -f core conftest.err conftest.$ac_objext \
24453 conftest$ac_exeext conftest.$ac_ext
24455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgammal" >&5
24456 $as_echo "$gcc_cv_math_func_tgammal" >&6; }
24457 if test $gcc_cv_math_func_tgammal = yes; then
24459 cat >>confdefs.h <<_ACEOF
24460 #define HAVE_TGAMMAL 1
24461 _ACEOF
24468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgamma" >&5
24469 $as_echo_n "checking for lgamma... " >&6; }
24470 if test "${gcc_cv_math_func_lgamma+set}" = set; then :
24471 $as_echo_n "(cached) " >&6
24472 else
24473 if test x$gcc_no_link = xyes; then
24474 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24477 /* end confdefs.h. */
24479 #ifdef HAVE_COMPLEX_H
24480 #include <complex.h>
24481 #endif
24482 #ifdef HAVE_MATH_H
24483 #include <math.h>
24484 #endif
24486 int (*ptr)() = (int (*)())lgamma;
24489 main ()
24491 return 0;
24494 _ACEOF
24495 if ac_fn_c_try_link "$LINENO"; then :
24496 gcc_cv_math_func_lgamma=yes
24497 else
24498 gcc_cv_math_func_lgamma=no
24500 rm -f core conftest.err conftest.$ac_objext \
24501 conftest$ac_exeext conftest.$ac_ext
24503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgamma" >&5
24504 $as_echo "$gcc_cv_math_func_lgamma" >&6; }
24505 if test $gcc_cv_math_func_lgamma = yes; then
24507 cat >>confdefs.h <<_ACEOF
24508 #define HAVE_LGAMMA 1
24509 _ACEOF
24516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammaf" >&5
24517 $as_echo_n "checking for lgammaf... " >&6; }
24518 if test "${gcc_cv_math_func_lgammaf+set}" = set; then :
24519 $as_echo_n "(cached) " >&6
24520 else
24521 if test x$gcc_no_link = xyes; then
24522 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24525 /* end confdefs.h. */
24527 #ifdef HAVE_COMPLEX_H
24528 #include <complex.h>
24529 #endif
24530 #ifdef HAVE_MATH_H
24531 #include <math.h>
24532 #endif
24534 int (*ptr)() = (int (*)())lgammaf;
24537 main ()
24539 return 0;
24542 _ACEOF
24543 if ac_fn_c_try_link "$LINENO"; then :
24544 gcc_cv_math_func_lgammaf=yes
24545 else
24546 gcc_cv_math_func_lgammaf=no
24548 rm -f core conftest.err conftest.$ac_objext \
24549 conftest$ac_exeext conftest.$ac_ext
24551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgammaf" >&5
24552 $as_echo "$gcc_cv_math_func_lgammaf" >&6; }
24553 if test $gcc_cv_math_func_lgammaf = yes; then
24555 cat >>confdefs.h <<_ACEOF
24556 #define HAVE_LGAMMAF 1
24557 _ACEOF
24564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammal" >&5
24565 $as_echo_n "checking for lgammal... " >&6; }
24566 if test "${gcc_cv_math_func_lgammal+set}" = set; then :
24567 $as_echo_n "(cached) " >&6
24568 else
24569 if test x$gcc_no_link = xyes; then
24570 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24573 /* end confdefs.h. */
24575 #ifdef HAVE_COMPLEX_H
24576 #include <complex.h>
24577 #endif
24578 #ifdef HAVE_MATH_H
24579 #include <math.h>
24580 #endif
24582 int (*ptr)() = (int (*)())lgammal;
24585 main ()
24587 return 0;
24590 _ACEOF
24591 if ac_fn_c_try_link "$LINENO"; then :
24592 gcc_cv_math_func_lgammal=yes
24593 else
24594 gcc_cv_math_func_lgammal=no
24596 rm -f core conftest.err conftest.$ac_objext \
24597 conftest$ac_exeext conftest.$ac_ext
24599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgammal" >&5
24600 $as_echo "$gcc_cv_math_func_lgammal" >&6; }
24601 if test $gcc_cv_math_func_lgammal = yes; then
24603 cat >>confdefs.h <<_ACEOF
24604 #define HAVE_LGAMMAL 1
24605 _ACEOF
24610 # Check for GFORTRAN_C99_1.1 funcs
24614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacos" >&5
24615 $as_echo_n "checking for cacos... " >&6; }
24616 if test "${gcc_cv_math_func_cacos+set}" = set; then :
24617 $as_echo_n "(cached) " >&6
24618 else
24619 if test x$gcc_no_link = xyes; then
24620 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24622 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24623 /* end confdefs.h. */
24625 #ifdef HAVE_COMPLEX_H
24626 #include <complex.h>
24627 #endif
24628 #ifdef HAVE_MATH_H
24629 #include <math.h>
24630 #endif
24632 int (*ptr)() = (int (*)())cacos;
24635 main ()
24637 return 0;
24640 _ACEOF
24641 if ac_fn_c_try_link "$LINENO"; then :
24642 gcc_cv_math_func_cacos=yes
24643 else
24644 gcc_cv_math_func_cacos=no
24646 rm -f core conftest.err conftest.$ac_objext \
24647 conftest$ac_exeext conftest.$ac_ext
24649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacos" >&5
24650 $as_echo "$gcc_cv_math_func_cacos" >&6; }
24651 if test $gcc_cv_math_func_cacos = yes; then
24653 cat >>confdefs.h <<_ACEOF
24654 #define HAVE_CACOS 1
24655 _ACEOF
24662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosf" >&5
24663 $as_echo_n "checking for cacosf... " >&6; }
24664 if test "${gcc_cv_math_func_cacosf+set}" = set; then :
24665 $as_echo_n "(cached) " >&6
24666 else
24667 if test x$gcc_no_link = xyes; then
24668 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24671 /* end confdefs.h. */
24673 #ifdef HAVE_COMPLEX_H
24674 #include <complex.h>
24675 #endif
24676 #ifdef HAVE_MATH_H
24677 #include <math.h>
24678 #endif
24680 int (*ptr)() = (int (*)())cacosf;
24683 main ()
24685 return 0;
24688 _ACEOF
24689 if ac_fn_c_try_link "$LINENO"; then :
24690 gcc_cv_math_func_cacosf=yes
24691 else
24692 gcc_cv_math_func_cacosf=no
24694 rm -f core conftest.err conftest.$ac_objext \
24695 conftest$ac_exeext conftest.$ac_ext
24697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosf" >&5
24698 $as_echo "$gcc_cv_math_func_cacosf" >&6; }
24699 if test $gcc_cv_math_func_cacosf = yes; then
24701 cat >>confdefs.h <<_ACEOF
24702 #define HAVE_CACOSF 1
24703 _ACEOF
24710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosh" >&5
24711 $as_echo_n "checking for cacosh... " >&6; }
24712 if test "${gcc_cv_math_func_cacosh+set}" = set; then :
24713 $as_echo_n "(cached) " >&6
24714 else
24715 if test x$gcc_no_link = xyes; then
24716 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24719 /* end confdefs.h. */
24721 #ifdef HAVE_COMPLEX_H
24722 #include <complex.h>
24723 #endif
24724 #ifdef HAVE_MATH_H
24725 #include <math.h>
24726 #endif
24728 int (*ptr)() = (int (*)())cacosh;
24731 main ()
24733 return 0;
24736 _ACEOF
24737 if ac_fn_c_try_link "$LINENO"; then :
24738 gcc_cv_math_func_cacosh=yes
24739 else
24740 gcc_cv_math_func_cacosh=no
24742 rm -f core conftest.err conftest.$ac_objext \
24743 conftest$ac_exeext conftest.$ac_ext
24745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosh" >&5
24746 $as_echo "$gcc_cv_math_func_cacosh" >&6; }
24747 if test $gcc_cv_math_func_cacosh = yes; then
24749 cat >>confdefs.h <<_ACEOF
24750 #define HAVE_CACOSH 1
24751 _ACEOF
24758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshf" >&5
24759 $as_echo_n "checking for cacoshf... " >&6; }
24760 if test "${gcc_cv_math_func_cacoshf+set}" = set; then :
24761 $as_echo_n "(cached) " >&6
24762 else
24763 if test x$gcc_no_link = xyes; then
24764 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24767 /* end confdefs.h. */
24769 #ifdef HAVE_COMPLEX_H
24770 #include <complex.h>
24771 #endif
24772 #ifdef HAVE_MATH_H
24773 #include <math.h>
24774 #endif
24776 int (*ptr)() = (int (*)())cacoshf;
24779 main ()
24781 return 0;
24784 _ACEOF
24785 if ac_fn_c_try_link "$LINENO"; then :
24786 gcc_cv_math_func_cacoshf=yes
24787 else
24788 gcc_cv_math_func_cacoshf=no
24790 rm -f core conftest.err conftest.$ac_objext \
24791 conftest$ac_exeext conftest.$ac_ext
24793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshf" >&5
24794 $as_echo "$gcc_cv_math_func_cacoshf" >&6; }
24795 if test $gcc_cv_math_func_cacoshf = yes; then
24797 cat >>confdefs.h <<_ACEOF
24798 #define HAVE_CACOSHF 1
24799 _ACEOF
24806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshl" >&5
24807 $as_echo_n "checking for cacoshl... " >&6; }
24808 if test "${gcc_cv_math_func_cacoshl+set}" = set; then :
24809 $as_echo_n "(cached) " >&6
24810 else
24811 if test x$gcc_no_link = xyes; then
24812 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24814 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24815 /* end confdefs.h. */
24817 #ifdef HAVE_COMPLEX_H
24818 #include <complex.h>
24819 #endif
24820 #ifdef HAVE_MATH_H
24821 #include <math.h>
24822 #endif
24824 int (*ptr)() = (int (*)())cacoshl;
24827 main ()
24829 return 0;
24832 _ACEOF
24833 if ac_fn_c_try_link "$LINENO"; then :
24834 gcc_cv_math_func_cacoshl=yes
24835 else
24836 gcc_cv_math_func_cacoshl=no
24838 rm -f core conftest.err conftest.$ac_objext \
24839 conftest$ac_exeext conftest.$ac_ext
24841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshl" >&5
24842 $as_echo "$gcc_cv_math_func_cacoshl" >&6; }
24843 if test $gcc_cv_math_func_cacoshl = yes; then
24845 cat >>confdefs.h <<_ACEOF
24846 #define HAVE_CACOSHL 1
24847 _ACEOF
24854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosl" >&5
24855 $as_echo_n "checking for cacosl... " >&6; }
24856 if test "${gcc_cv_math_func_cacosl+set}" = set; then :
24857 $as_echo_n "(cached) " >&6
24858 else
24859 if test x$gcc_no_link = xyes; then
24860 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24862 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24863 /* end confdefs.h. */
24865 #ifdef HAVE_COMPLEX_H
24866 #include <complex.h>
24867 #endif
24868 #ifdef HAVE_MATH_H
24869 #include <math.h>
24870 #endif
24872 int (*ptr)() = (int (*)())cacosl;
24875 main ()
24877 return 0;
24880 _ACEOF
24881 if ac_fn_c_try_link "$LINENO"; then :
24882 gcc_cv_math_func_cacosl=yes
24883 else
24884 gcc_cv_math_func_cacosl=no
24886 rm -f core conftest.err conftest.$ac_objext \
24887 conftest$ac_exeext conftest.$ac_ext
24889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosl" >&5
24890 $as_echo "$gcc_cv_math_func_cacosl" >&6; }
24891 if test $gcc_cv_math_func_cacosl = yes; then
24893 cat >>confdefs.h <<_ACEOF
24894 #define HAVE_CACOSL 1
24895 _ACEOF
24902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casin" >&5
24903 $as_echo_n "checking for casin... " >&6; }
24904 if test "${gcc_cv_math_func_casin+set}" = set; then :
24905 $as_echo_n "(cached) " >&6
24906 else
24907 if test x$gcc_no_link = xyes; then
24908 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24911 /* end confdefs.h. */
24913 #ifdef HAVE_COMPLEX_H
24914 #include <complex.h>
24915 #endif
24916 #ifdef HAVE_MATH_H
24917 #include <math.h>
24918 #endif
24920 int (*ptr)() = (int (*)())casin;
24923 main ()
24925 return 0;
24928 _ACEOF
24929 if ac_fn_c_try_link "$LINENO"; then :
24930 gcc_cv_math_func_casin=yes
24931 else
24932 gcc_cv_math_func_casin=no
24934 rm -f core conftest.err conftest.$ac_objext \
24935 conftest$ac_exeext conftest.$ac_ext
24937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casin" >&5
24938 $as_echo "$gcc_cv_math_func_casin" >&6; }
24939 if test $gcc_cv_math_func_casin = yes; then
24941 cat >>confdefs.h <<_ACEOF
24942 #define HAVE_CASIN 1
24943 _ACEOF
24950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinf" >&5
24951 $as_echo_n "checking for casinf... " >&6; }
24952 if test "${gcc_cv_math_func_casinf+set}" = set; then :
24953 $as_echo_n "(cached) " >&6
24954 else
24955 if test x$gcc_no_link = xyes; then
24956 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24958 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24959 /* end confdefs.h. */
24961 #ifdef HAVE_COMPLEX_H
24962 #include <complex.h>
24963 #endif
24964 #ifdef HAVE_MATH_H
24965 #include <math.h>
24966 #endif
24968 int (*ptr)() = (int (*)())casinf;
24971 main ()
24973 return 0;
24976 _ACEOF
24977 if ac_fn_c_try_link "$LINENO"; then :
24978 gcc_cv_math_func_casinf=yes
24979 else
24980 gcc_cv_math_func_casinf=no
24982 rm -f core conftest.err conftest.$ac_objext \
24983 conftest$ac_exeext conftest.$ac_ext
24985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinf" >&5
24986 $as_echo "$gcc_cv_math_func_casinf" >&6; }
24987 if test $gcc_cv_math_func_casinf = yes; then
24989 cat >>confdefs.h <<_ACEOF
24990 #define HAVE_CASINF 1
24991 _ACEOF
24998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinh" >&5
24999 $as_echo_n "checking for casinh... " >&6; }
25000 if test "${gcc_cv_math_func_casinh+set}" = set; then :
25001 $as_echo_n "(cached) " >&6
25002 else
25003 if test x$gcc_no_link = xyes; then
25004 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25007 /* end confdefs.h. */
25009 #ifdef HAVE_COMPLEX_H
25010 #include <complex.h>
25011 #endif
25012 #ifdef HAVE_MATH_H
25013 #include <math.h>
25014 #endif
25016 int (*ptr)() = (int (*)())casinh;
25019 main ()
25021 return 0;
25024 _ACEOF
25025 if ac_fn_c_try_link "$LINENO"; then :
25026 gcc_cv_math_func_casinh=yes
25027 else
25028 gcc_cv_math_func_casinh=no
25030 rm -f core conftest.err conftest.$ac_objext \
25031 conftest$ac_exeext conftest.$ac_ext
25033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinh" >&5
25034 $as_echo "$gcc_cv_math_func_casinh" >&6; }
25035 if test $gcc_cv_math_func_casinh = yes; then
25037 cat >>confdefs.h <<_ACEOF
25038 #define HAVE_CASINH 1
25039 _ACEOF
25046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhf" >&5
25047 $as_echo_n "checking for casinhf... " >&6; }
25048 if test "${gcc_cv_math_func_casinhf+set}" = set; then :
25049 $as_echo_n "(cached) " >&6
25050 else
25051 if test x$gcc_no_link = xyes; then
25052 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25055 /* end confdefs.h. */
25057 #ifdef HAVE_COMPLEX_H
25058 #include <complex.h>
25059 #endif
25060 #ifdef HAVE_MATH_H
25061 #include <math.h>
25062 #endif
25064 int (*ptr)() = (int (*)())casinhf;
25067 main ()
25069 return 0;
25072 _ACEOF
25073 if ac_fn_c_try_link "$LINENO"; then :
25074 gcc_cv_math_func_casinhf=yes
25075 else
25076 gcc_cv_math_func_casinhf=no
25078 rm -f core conftest.err conftest.$ac_objext \
25079 conftest$ac_exeext conftest.$ac_ext
25081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhf" >&5
25082 $as_echo "$gcc_cv_math_func_casinhf" >&6; }
25083 if test $gcc_cv_math_func_casinhf = yes; then
25085 cat >>confdefs.h <<_ACEOF
25086 #define HAVE_CASINHF 1
25087 _ACEOF
25094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhl" >&5
25095 $as_echo_n "checking for casinhl... " >&6; }
25096 if test "${gcc_cv_math_func_casinhl+set}" = set; then :
25097 $as_echo_n "(cached) " >&6
25098 else
25099 if test x$gcc_no_link = xyes; then
25100 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25102 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25103 /* end confdefs.h. */
25105 #ifdef HAVE_COMPLEX_H
25106 #include <complex.h>
25107 #endif
25108 #ifdef HAVE_MATH_H
25109 #include <math.h>
25110 #endif
25112 int (*ptr)() = (int (*)())casinhl;
25115 main ()
25117 return 0;
25120 _ACEOF
25121 if ac_fn_c_try_link "$LINENO"; then :
25122 gcc_cv_math_func_casinhl=yes
25123 else
25124 gcc_cv_math_func_casinhl=no
25126 rm -f core conftest.err conftest.$ac_objext \
25127 conftest$ac_exeext conftest.$ac_ext
25129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhl" >&5
25130 $as_echo "$gcc_cv_math_func_casinhl" >&6; }
25131 if test $gcc_cv_math_func_casinhl = yes; then
25133 cat >>confdefs.h <<_ACEOF
25134 #define HAVE_CASINHL 1
25135 _ACEOF
25142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinl" >&5
25143 $as_echo_n "checking for casinl... " >&6; }
25144 if test "${gcc_cv_math_func_casinl+set}" = set; then :
25145 $as_echo_n "(cached) " >&6
25146 else
25147 if test x$gcc_no_link = xyes; then
25148 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25151 /* end confdefs.h. */
25153 #ifdef HAVE_COMPLEX_H
25154 #include <complex.h>
25155 #endif
25156 #ifdef HAVE_MATH_H
25157 #include <math.h>
25158 #endif
25160 int (*ptr)() = (int (*)())casinl;
25163 main ()
25165 return 0;
25168 _ACEOF
25169 if ac_fn_c_try_link "$LINENO"; then :
25170 gcc_cv_math_func_casinl=yes
25171 else
25172 gcc_cv_math_func_casinl=no
25174 rm -f core conftest.err conftest.$ac_objext \
25175 conftest$ac_exeext conftest.$ac_ext
25177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinl" >&5
25178 $as_echo "$gcc_cv_math_func_casinl" >&6; }
25179 if test $gcc_cv_math_func_casinl = yes; then
25181 cat >>confdefs.h <<_ACEOF
25182 #define HAVE_CASINL 1
25183 _ACEOF
25190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catan" >&5
25191 $as_echo_n "checking for catan... " >&6; }
25192 if test "${gcc_cv_math_func_catan+set}" = set; then :
25193 $as_echo_n "(cached) " >&6
25194 else
25195 if test x$gcc_no_link = xyes; then
25196 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25199 /* end confdefs.h. */
25201 #ifdef HAVE_COMPLEX_H
25202 #include <complex.h>
25203 #endif
25204 #ifdef HAVE_MATH_H
25205 #include <math.h>
25206 #endif
25208 int (*ptr)() = (int (*)())catan;
25211 main ()
25213 return 0;
25216 _ACEOF
25217 if ac_fn_c_try_link "$LINENO"; then :
25218 gcc_cv_math_func_catan=yes
25219 else
25220 gcc_cv_math_func_catan=no
25222 rm -f core conftest.err conftest.$ac_objext \
25223 conftest$ac_exeext conftest.$ac_ext
25225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catan" >&5
25226 $as_echo "$gcc_cv_math_func_catan" >&6; }
25227 if test $gcc_cv_math_func_catan = yes; then
25229 cat >>confdefs.h <<_ACEOF
25230 #define HAVE_CATAN 1
25231 _ACEOF
25238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanf" >&5
25239 $as_echo_n "checking for catanf... " >&6; }
25240 if test "${gcc_cv_math_func_catanf+set}" = set; then :
25241 $as_echo_n "(cached) " >&6
25242 else
25243 if test x$gcc_no_link = xyes; then
25244 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25247 /* end confdefs.h. */
25249 #ifdef HAVE_COMPLEX_H
25250 #include <complex.h>
25251 #endif
25252 #ifdef HAVE_MATH_H
25253 #include <math.h>
25254 #endif
25256 int (*ptr)() = (int (*)())catanf;
25259 main ()
25261 return 0;
25264 _ACEOF
25265 if ac_fn_c_try_link "$LINENO"; then :
25266 gcc_cv_math_func_catanf=yes
25267 else
25268 gcc_cv_math_func_catanf=no
25270 rm -f core conftest.err conftest.$ac_objext \
25271 conftest$ac_exeext conftest.$ac_ext
25273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanf" >&5
25274 $as_echo "$gcc_cv_math_func_catanf" >&6; }
25275 if test $gcc_cv_math_func_catanf = yes; then
25277 cat >>confdefs.h <<_ACEOF
25278 #define HAVE_CATANF 1
25279 _ACEOF
25286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanh" >&5
25287 $as_echo_n "checking for catanh... " >&6; }
25288 if test "${gcc_cv_math_func_catanh+set}" = set; then :
25289 $as_echo_n "(cached) " >&6
25290 else
25291 if test x$gcc_no_link = xyes; then
25292 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25295 /* end confdefs.h. */
25297 #ifdef HAVE_COMPLEX_H
25298 #include <complex.h>
25299 #endif
25300 #ifdef HAVE_MATH_H
25301 #include <math.h>
25302 #endif
25304 int (*ptr)() = (int (*)())catanh;
25307 main ()
25309 return 0;
25312 _ACEOF
25313 if ac_fn_c_try_link "$LINENO"; then :
25314 gcc_cv_math_func_catanh=yes
25315 else
25316 gcc_cv_math_func_catanh=no
25318 rm -f core conftest.err conftest.$ac_objext \
25319 conftest$ac_exeext conftest.$ac_ext
25321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanh" >&5
25322 $as_echo "$gcc_cv_math_func_catanh" >&6; }
25323 if test $gcc_cv_math_func_catanh = yes; then
25325 cat >>confdefs.h <<_ACEOF
25326 #define HAVE_CATANH 1
25327 _ACEOF
25334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhf" >&5
25335 $as_echo_n "checking for catanhf... " >&6; }
25336 if test "${gcc_cv_math_func_catanhf+set}" = set; then :
25337 $as_echo_n "(cached) " >&6
25338 else
25339 if test x$gcc_no_link = xyes; then
25340 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25343 /* end confdefs.h. */
25345 #ifdef HAVE_COMPLEX_H
25346 #include <complex.h>
25347 #endif
25348 #ifdef HAVE_MATH_H
25349 #include <math.h>
25350 #endif
25352 int (*ptr)() = (int (*)())catanhf;
25355 main ()
25357 return 0;
25360 _ACEOF
25361 if ac_fn_c_try_link "$LINENO"; then :
25362 gcc_cv_math_func_catanhf=yes
25363 else
25364 gcc_cv_math_func_catanhf=no
25366 rm -f core conftest.err conftest.$ac_objext \
25367 conftest$ac_exeext conftest.$ac_ext
25369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhf" >&5
25370 $as_echo "$gcc_cv_math_func_catanhf" >&6; }
25371 if test $gcc_cv_math_func_catanhf = yes; then
25373 cat >>confdefs.h <<_ACEOF
25374 #define HAVE_CATANHF 1
25375 _ACEOF
25382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhl" >&5
25383 $as_echo_n "checking for catanhl... " >&6; }
25384 if test "${gcc_cv_math_func_catanhl+set}" = set; then :
25385 $as_echo_n "(cached) " >&6
25386 else
25387 if test x$gcc_no_link = xyes; then
25388 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25391 /* end confdefs.h. */
25393 #ifdef HAVE_COMPLEX_H
25394 #include <complex.h>
25395 #endif
25396 #ifdef HAVE_MATH_H
25397 #include <math.h>
25398 #endif
25400 int (*ptr)() = (int (*)())catanhl;
25403 main ()
25405 return 0;
25408 _ACEOF
25409 if ac_fn_c_try_link "$LINENO"; then :
25410 gcc_cv_math_func_catanhl=yes
25411 else
25412 gcc_cv_math_func_catanhl=no
25414 rm -f core conftest.err conftest.$ac_objext \
25415 conftest$ac_exeext conftest.$ac_ext
25417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhl" >&5
25418 $as_echo "$gcc_cv_math_func_catanhl" >&6; }
25419 if test $gcc_cv_math_func_catanhl = yes; then
25421 cat >>confdefs.h <<_ACEOF
25422 #define HAVE_CATANHL 1
25423 _ACEOF
25430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanl" >&5
25431 $as_echo_n "checking for catanl... " >&6; }
25432 if test "${gcc_cv_math_func_catanl+set}" = set; then :
25433 $as_echo_n "(cached) " >&6
25434 else
25435 if test x$gcc_no_link = xyes; then
25436 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25439 /* end confdefs.h. */
25441 #ifdef HAVE_COMPLEX_H
25442 #include <complex.h>
25443 #endif
25444 #ifdef HAVE_MATH_H
25445 #include <math.h>
25446 #endif
25448 int (*ptr)() = (int (*)())catanl;
25451 main ()
25453 return 0;
25456 _ACEOF
25457 if ac_fn_c_try_link "$LINENO"; then :
25458 gcc_cv_math_func_catanl=yes
25459 else
25460 gcc_cv_math_func_catanl=no
25462 rm -f core conftest.err conftest.$ac_objext \
25463 conftest$ac_exeext conftest.$ac_ext
25465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanl" >&5
25466 $as_echo "$gcc_cv_math_func_catanl" >&6; }
25467 if test $gcc_cv_math_func_catanl = yes; then
25469 cat >>confdefs.h <<_ACEOF
25470 #define HAVE_CATANL 1
25471 _ACEOF
25476 # On AIX, clog is present in libm as __clog
25477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __clog in -lm" >&5
25478 $as_echo_n "checking for __clog in -lm... " >&6; }
25479 if test "${ac_cv_lib_m___clog+set}" = set; then :
25480 $as_echo_n "(cached) " >&6
25481 else
25482 ac_check_lib_save_LIBS=$LIBS
25483 LIBS="-lm $LIBS"
25484 if test x$gcc_no_link = xyes; then
25485 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25488 /* end confdefs.h. */
25490 /* Override any GCC internal prototype to avoid an error.
25491 Use char because int might match the return type of a GCC
25492 builtin and then its argument prototype would still apply. */
25493 #ifdef __cplusplus
25494 extern "C"
25495 #endif
25496 char __clog ();
25498 main ()
25500 return __clog ();
25502 return 0;
25504 _ACEOF
25505 if ac_fn_c_try_link "$LINENO"; then :
25506 ac_cv_lib_m___clog=yes
25507 else
25508 ac_cv_lib_m___clog=no
25510 rm -f core conftest.err conftest.$ac_objext \
25511 conftest$ac_exeext conftest.$ac_ext
25512 LIBS=$ac_check_lib_save_LIBS
25514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m___clog" >&5
25515 $as_echo "$ac_cv_lib_m___clog" >&6; }
25516 if test "x$ac_cv_lib_m___clog" = x""yes; then :
25518 $as_echo "#define HAVE_CLOG 1" >>confdefs.h
25523 # Check whether the system has a working stat()
25525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target stat is reliable" >&5
25526 $as_echo_n "checking whether the target stat is reliable... " >&6; }
25527 if test "${libgfor_cv_have_working_stat+set}" = set; then :
25528 $as_echo_n "(cached) " >&6
25529 else
25531 if test "$cross_compiling" = yes; then :
25533 case "${target}" in
25534 *mingw*) libgfor_cv_have_working_stat=no ;;
25535 *) libgfor_cv_have_working_stat=yes;;
25536 esac
25537 else
25538 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25539 /* end confdefs.h. */
25541 #include <stdio.h>
25542 #include <sys/types.h>
25543 #include <sys/stat.h>
25544 #include <unistd.h>
25546 int main ()
25548 FILE *f, *g;
25549 struct stat st1, st2;
25551 f = fopen ("foo", "w");
25552 g = fopen ("bar", "w");
25553 if (stat ("foo", &st1) != 0 || stat ("bar", &st2))
25554 return 1;
25555 if (st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino)
25556 return 1;
25557 fclose(f);
25558 fclose(g);
25559 return 0;
25561 _ACEOF
25562 if ac_fn_c_try_run "$LINENO"; then :
25563 libgfor_cv_have_working_stat=yes
25564 else
25565 libgfor_cv_have_working_stat=no
25567 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25568 conftest.$ac_objext conftest.beam conftest.$ac_ext
25572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_working_stat" >&5
25573 $as_echo "$libgfor_cv_have_working_stat" >&6; }
25574 if test x"$libgfor_cv_have_working_stat" = xyes; then
25576 $as_echo "#define HAVE_WORKING_STAT 1" >>confdefs.h
25580 # Check whether __mingw_snprintf() is present
25582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __mingw_snprintf is present" >&5
25583 $as_echo_n "checking whether __mingw_snprintf is present... " >&6; }
25584 if test "${libgfor_cv_have_mingw_snprintf+set}" = set; then :
25585 $as_echo_n "(cached) " >&6
25586 else
25588 if test x$gcc_no_link = xyes; then
25589 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25592 /* end confdefs.h. */
25594 #include <stdio.h>
25595 extern int __mingw_snprintf (char *, size_t, const char *, ...);
25598 main ()
25601 __mingw_snprintf (NULL, 0, "%d\n", 1);
25604 return 0;
25606 _ACEOF
25607 if ac_fn_c_try_link "$LINENO"; then :
25608 eval "libgfor_cv_have_mingw_snprintf=yes"
25609 else
25610 eval "libgfor_cv_have_mingw_snprintf=no"
25612 rm -f core conftest.err conftest.$ac_objext \
25613 conftest$ac_exeext conftest.$ac_ext
25616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_mingw_snprintf" >&5
25617 $as_echo "$libgfor_cv_have_mingw_snprintf" >&6; }
25618 if test x"$libgfor_cv_have_mingw_snprintf" = xyes; then
25620 $as_echo "#define HAVE_MINGW_SNPRINTF 1" >>confdefs.h
25625 # Check whether libquadmath should be used
25626 # Check whether --enable-libquadmath-support was given.
25627 if test "${enable_libquadmath_support+set}" = set; then :
25628 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
25629 else
25630 ENABLE_LIBQUADMATH_SUPPORT=yes
25633 enable_libquadmath_support=
25634 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
25635 enable_libquadmath_support=no
25638 # Check whether we have a __float128 type, depends on enable_libquadmath_support
25640 LIBQUADSPEC=
25642 if test "x$enable_libquadmath_support" != xno; then
25644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a usable __float128 type" >&5
25645 $as_echo_n "checking whether we have a usable __float128 type... " >&6; }
25646 if test "${libgfor_cv_have_float128+set}" = set; then :
25647 $as_echo_n "(cached) " >&6
25648 else
25650 if test x$gcc_no_link = xyes; then
25651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25652 /* end confdefs.h. */
25654 typedef _Complex float __attribute__((mode(TC))) __complex128;
25656 __float128 foo (__float128 x)
25659 __complex128 z1, z2;
25661 z1 = x;
25662 z2 = x / 7.Q;
25663 z2 /= z1;
25665 return (__float128) z2;
25668 __float128 bar (__float128 x)
25670 return x * __builtin_huge_valq ();
25674 main ()
25677 foo (1.2Q);
25678 bar (1.2Q);
25681 return 0;
25683 _ACEOF
25684 if ac_fn_c_try_compile "$LINENO"; then :
25686 libgfor_cv_have_float128=yes
25688 else
25690 libgfor_cv_have_float128=no
25693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25694 else
25695 if test x$gcc_no_link = xyes; then
25696 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25699 /* end confdefs.h. */
25701 typedef _Complex float __attribute__((mode(TC))) __complex128;
25703 __float128 foo (__float128 x)
25706 __complex128 z1, z2;
25708 z1 = x;
25709 z2 = x / 7.Q;
25710 z2 /= z1;
25712 return (__float128) z2;
25715 __float128 bar (__float128 x)
25717 return x * __builtin_huge_valq ();
25721 main ()
25724 foo (1.2Q);
25725 bar (1.2Q);
25728 return 0;
25730 _ACEOF
25731 if ac_fn_c_try_link "$LINENO"; then :
25733 libgfor_cv_have_float128=yes
25735 else
25737 libgfor_cv_have_float128=no
25740 rm -f core conftest.err conftest.$ac_objext \
25741 conftest$ac_exeext conftest.$ac_ext
25744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_float128" >&5
25745 $as_echo "$libgfor_cv_have_float128" >&6; }
25747 if test "x$libgfor_cv_have_float128" = xyes; then
25749 $as_echo "#define HAVE_FLOAT128 1" >>confdefs.h
25752 ac_xsave_c_werror_flag=$ac_c_werror_flag
25753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --as-needed/-z ignore works" >&5
25754 $as_echo_n "checking whether --as-needed/-z ignore works... " >&6; }
25755 if test "${libgfor_cv_have_as_needed+set}" = set; then :
25756 $as_echo_n "(cached) " >&6
25757 else
25759 # Test for native Solaris options first.
25760 # No whitespace after -z to pass it through -Wl.
25761 libgfor_cv_as_needed_option="-zignore"
25762 libgfor_cv_no_as_needed_option="-zrecord"
25763 save_LDFLAGS="$LDFLAGS"
25764 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
25765 libgfor_cv_have_as_needed=no
25767 ac_c_werror_flag=yes
25768 if test x$gcc_no_link = xyes; then
25769 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25772 /* end confdefs.h. */
25775 main ()
25779 return 0;
25781 _ACEOF
25782 if ac_fn_c_try_link "$LINENO"; then :
25783 libgfor_cv_have_as_needed=yes
25784 else
25785 libgfor_cv_have_as_needed=no
25787 rm -f core conftest.err conftest.$ac_objext \
25788 conftest$ac_exeext conftest.$ac_ext
25789 LDFLAGS="$save_LDFLAGS"
25790 if test "x$libgfor_cv_have_as_needed" = xno; then
25791 libgfor_cv_as_needed_option="--as-needed"
25792 libgfor_cv_no_as_needed_option="--no-as-needed"
25793 save_LDFLAGS="$LDFLAGS"
25794 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
25795 libgfor_cv_have_as_needed=no
25797 ac_c_werror_flag=yes
25798 if test x$gcc_no_link = xyes; then
25799 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25802 /* end confdefs.h. */
25805 main ()
25809 return 0;
25811 _ACEOF
25812 if ac_fn_c_try_link "$LINENO"; then :
25813 libgfor_cv_have_as_needed=yes
25814 else
25815 libgfor_cv_have_as_needed=no
25817 rm -f core conftest.err conftest.$ac_objext \
25818 conftest$ac_exeext conftest.$ac_ext
25819 LDFLAGS="$save_LDFLAGS"
25821 ac_c_werror_flag=$ac_xsave_c_werror_flag
25824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_as_needed" >&5
25825 $as_echo "$libgfor_cv_have_as_needed" >&6; }
25827 if test "x$libgfor_cv_have_as_needed" = xyes; then
25828 LIBQUADSPEC="%{static-libgfortran:$libgfor_cv_as_needed_option} -lquadmath %{static-libgfortran:$libgfor_cv_no_as_needed_option}"
25829 else
25830 LIBQUADSPEC="-lquadmath"
25832 if test -f ../libquadmath/libquadmath.la; then
25833 LIBQUADLIB=../libquadmath/libquadmath.la
25834 LIBQUADLIB_DEP=../libquadmath/libquadmath.la
25835 LIBQUADINCLUDE='-I$(srcdir)/../libquadmath'
25836 else
25837 LIBQUADLIB="-lquadmath"
25838 LIBQUADLIB_DEP=
25839 LIBQUADINCLUDE=
25842 else
25843 # for --disable-quadmath
25844 LIBQUADLIB=
25845 LIBQUADLIB_DEP=
25846 LIBQUADINCLUDE=
25854 if test "x$libgfor_cv_have_float128" = xyes; then
25855 LIBGFOR_BUILD_QUAD_TRUE=
25856 LIBGFOR_BUILD_QUAD_FALSE='#'
25857 else
25858 LIBGFOR_BUILD_QUAD_TRUE='#'
25859 LIBGFOR_BUILD_QUAD_FALSE=
25864 # Check for GNU libc feenableexcept
25865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5
25866 $as_echo_n "checking for feenableexcept in -lm... " >&6; }
25867 if test "${ac_cv_lib_m_feenableexcept+set}" = set; then :
25868 $as_echo_n "(cached) " >&6
25869 else
25870 ac_check_lib_save_LIBS=$LIBS
25871 LIBS="-lm $LIBS"
25872 if test x$gcc_no_link = xyes; then
25873 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25876 /* end confdefs.h. */
25878 /* Override any GCC internal prototype to avoid an error.
25879 Use char because int might match the return type of a GCC
25880 builtin and then its argument prototype would still apply. */
25881 #ifdef __cplusplus
25882 extern "C"
25883 #endif
25884 char feenableexcept ();
25886 main ()
25888 return feenableexcept ();
25890 return 0;
25892 _ACEOF
25893 if ac_fn_c_try_link "$LINENO"; then :
25894 ac_cv_lib_m_feenableexcept=yes
25895 else
25896 ac_cv_lib_m_feenableexcept=no
25898 rm -f core conftest.err conftest.$ac_objext \
25899 conftest$ac_exeext conftest.$ac_ext
25900 LIBS=$ac_check_lib_save_LIBS
25902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5
25903 $as_echo "$ac_cv_lib_m_feenableexcept" >&6; }
25904 if test "x$ac_cv_lib_m_feenableexcept" = x""yes; then :
25905 have_feenableexcept=yes
25906 $as_echo "#define HAVE_FEENABLEEXCEPT 1" >>confdefs.h
25911 # At least for glibc, clock_gettime is in librt. But don't
25912 # pull that in if it still doesn't give us the function we want. This
25913 # test is copied from libgomp, and modified to not link in -lrt as
25914 # libgfortran calls clock_gettime via a weak reference if it's found
25915 # in librt.
25916 if test $ac_cv_func_clock_gettime = no; then
25917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
25918 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
25919 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
25920 $as_echo_n "(cached) " >&6
25921 else
25922 ac_check_lib_save_LIBS=$LIBS
25923 LIBS="-lrt $LIBS"
25924 if test x$gcc_no_link = xyes; then
25925 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25928 /* end confdefs.h. */
25930 /* Override any GCC internal prototype to avoid an error.
25931 Use char because int might match the return type of a GCC
25932 builtin and then its argument prototype would still apply. */
25933 #ifdef __cplusplus
25934 extern "C"
25935 #endif
25936 char clock_gettime ();
25938 main ()
25940 return clock_gettime ();
25942 return 0;
25944 _ACEOF
25945 if ac_fn_c_try_link "$LINENO"; then :
25946 ac_cv_lib_rt_clock_gettime=yes
25947 else
25948 ac_cv_lib_rt_clock_gettime=no
25950 rm -f core conftest.err conftest.$ac_objext \
25951 conftest$ac_exeext conftest.$ac_ext
25952 LIBS=$ac_check_lib_save_LIBS
25954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
25955 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
25956 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
25958 $as_echo "#define HAVE_CLOCK_GETTIME_LIBRT 1" >>confdefs.h
25964 # Check for SysV fpsetmask
25966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fpsetmask is present" >&5
25967 $as_echo_n "checking whether fpsetmask is present... " >&6; }
25968 if test "${libgfor_cv_have_fpsetmask+set}" = set; then :
25969 $as_echo_n "(cached) " >&6
25970 else
25972 if test x$gcc_no_link = xyes; then
25973 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25976 /* end confdefs.h. */
25978 #if HAVE_FLOATINGPOINT_H
25979 # include <floatingpoint.h>
25980 #endif /* HAVE_FLOATINGPOINT_H */
25981 #if HAVE_IEEEFP_H
25982 # include <ieeefp.h>
25983 #endif /* HAVE_IEEEFP_H */
25985 main ()
25987 fpsetmask(0);
25989 return 0;
25991 _ACEOF
25992 if ac_fn_c_try_link "$LINENO"; then :
25993 eval "libgfor_cv_have_fpsetmask=yes"
25994 else
25995 eval "libgfor_cv_have_fpsetmask=no"
25997 rm -f core conftest.err conftest.$ac_objext \
25998 conftest$ac_exeext conftest.$ac_ext
26001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_fpsetmask" >&5
26002 $as_echo "$libgfor_cv_have_fpsetmask" >&6; }
26003 if test x"$libgfor_cv_have_fpsetmask" = xyes; then
26004 have_fpsetmask=yes
26006 $as_echo "#define HAVE_FPSETMASK 1" >>confdefs.h
26010 ac_fn_c_check_type "$LINENO" "fp_except" "ac_cv_type_fp_except" "#include <ieeefp.h>
26012 if test "x$ac_cv_type_fp_except" = x""yes; then :
26014 cat >>confdefs.h <<_ACEOF
26015 #define HAVE_FP_EXCEPT 1
26016 _ACEOF
26020 ac_fn_c_check_type "$LINENO" "fp_except_t" "ac_cv_type_fp_except_t" "#include <ieeefp.h>
26022 if test "x$ac_cv_type_fp_except_t" = x""yes; then :
26024 cat >>confdefs.h <<_ACEOF
26025 #define HAVE_FP_EXCEPT_T 1
26026 _ACEOF
26031 ac_fn_c_check_type "$LINENO" "fp_rnd" "ac_cv_type_fp_rnd" "#include <ieeefp.h>
26033 if test "x$ac_cv_type_fp_rnd" = x""yes; then :
26035 cat >>confdefs.h <<_ACEOF
26036 #define HAVE_FP_RND 1
26037 _ACEOF
26041 ac_fn_c_check_type "$LINENO" "fp_rnd_t" "ac_cv_type_fp_rnd_t" "#include <ieeefp.h>
26043 if test "x$ac_cv_type_fp_rnd_t" = x""yes; then :
26045 cat >>confdefs.h <<_ACEOF
26046 #define HAVE_FP_RND_T 1
26047 _ACEOF
26053 # Check for AIX fp_trap and fp_enable
26054 ac_fn_c_check_func "$LINENO" "fp_trap" "ac_cv_func_fp_trap"
26055 if test "x$ac_cv_func_fp_trap" = x""yes; then :
26056 have_fp_trap=yes
26057 $as_echo "#define HAVE_FP_TRAP 1" >>confdefs.h
26061 ac_fn_c_check_func "$LINENO" "fp_enable" "ac_cv_func_fp_enable"
26062 if test "x$ac_cv_func_fp_enable" = x""yes; then :
26063 have_fp_enable=yes
26064 $as_echo "#define HAVE_FP_ENABLE 1" >>confdefs.h
26069 # Runs configure.host to set up necessary host-dependent shell variables.
26070 # We then display a message about it, and propagate them through the
26071 # build chain.
26072 . ${srcdir}/configure.host
26073 { $as_echo "$as_me:${as_lineno-$LINENO}: FPU dependent file will be ${fpu_host}.h" >&5
26074 $as_echo "$as_me: FPU dependent file will be ${fpu_host}.h" >&6;}
26075 FPU_HOST_HEADER=config/${fpu_host}.h
26078 # Some targets require additional compiler options for IEEE compatibility.
26079 IEEE_FLAGS="${ieee_flags}"
26083 # Check for POSIX getpwuid_r
26085 # There are two versions of getpwuid_r, the POSIX one with 5
26086 # arguments, and another one with 4 arguments used by at least HP-UX
26087 # 10.2.
26088 if test "$ac_cv_func_getpwuid_r" = "yes"; then
26089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX version of getpwuid_r with 5 arguments" >&5
26090 $as_echo_n "checking POSIX version of getpwuid_r with 5 arguments... " >&6; }
26091 if test "${libgfor_cv_posix_getpwuid_r+set}" = set; then :
26092 $as_echo_n "(cached) " >&6
26093 else
26095 if test x$gcc_no_link = xyes; then
26096 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26099 /* end confdefs.h. */
26101 #include <stdio.h>
26102 #include <sys/types.h>
26103 #include <pwd.h>
26105 main ()
26108 getpwuid_r(0, NULL, NULL, 0, NULL);
26111 return 0;
26113 _ACEOF
26114 if ac_fn_c_try_link "$LINENO"; then :
26115 libgfor_cv_posix_getpwuid_r="yes"
26116 else
26117 libgfor_cv_posix_getpwuid_r="no"
26119 rm -f core conftest.err conftest.$ac_objext \
26120 conftest$ac_exeext conftest.$ac_ext
26122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_posix_getpwuid_r" >&5
26123 $as_echo "$libgfor_cv_posix_getpwuid_r" >&6; }
26125 if test "$libgfor_cv_posix_getpwuid_r" = "yes"; then
26127 $as_echo "#define HAVE_POSIX_GETPWUID_R 1" >>confdefs.h
26132 # Check out attribute support.
26134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
26135 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
26136 if test "${libgfor_cv_have_attribute_visibility+set}" = set; then :
26137 $as_echo_n "(cached) " >&6
26138 else
26140 save_CFLAGS="$CFLAGS"
26141 CFLAGS="$CFLAGS -Werror"
26142 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26143 /* end confdefs.h. */
26144 void __attribute__((visibility("hidden"))) foo(void) { }
26146 main ()
26150 return 0;
26152 _ACEOF
26153 if ac_fn_c_try_compile "$LINENO"; then :
26154 libgfor_cv_have_attribute_visibility=yes
26155 else
26156 libgfor_cv_have_attribute_visibility=no
26158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26159 CFLAGS="$save_CFLAGS"
26161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_visibility" >&5
26162 $as_echo "$libgfor_cv_have_attribute_visibility" >&6; }
26163 if test $libgfor_cv_have_attribute_visibility = yes; then
26165 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
26169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
26170 $as_echo_n "checking whether the target supports dllexport... " >&6; }
26171 if test "${libgfor_cv_have_attribute_dllexport+set}" = set; then :
26172 $as_echo_n "(cached) " >&6
26173 else
26175 save_CFLAGS="$CFLAGS"
26176 CFLAGS="$CFLAGS -Werror"
26177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26178 /* end confdefs.h. */
26179 void __attribute__((dllexport)) foo(void) { }
26181 main ()
26185 return 0;
26187 _ACEOF
26188 if ac_fn_c_try_compile "$LINENO"; then :
26189 libgfor_cv_have_attribute_dllexport=yes
26190 else
26191 libgfor_cv_have_attribute_dllexport=no
26193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26194 CFLAGS="$save_CFLAGS"
26196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_dllexport" >&5
26197 $as_echo "$libgfor_cv_have_attribute_dllexport" >&6; }
26198 if test $libgfor_cv_have_attribute_dllexport = yes; then
26200 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
26204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
26205 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
26206 if test "${libgfor_cv_have_attribute_alias+set}" = set; then :
26207 $as_echo_n "(cached) " >&6
26208 else
26210 if test x$gcc_no_link = xyes; then
26211 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26213 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26214 /* end confdefs.h. */
26216 void foo(void) { }
26217 extern void bar(void) __attribute__((alias("foo")));
26219 main ()
26221 bar();
26223 return 0;
26225 _ACEOF
26226 if ac_fn_c_try_link "$LINENO"; then :
26227 libgfor_cv_have_attribute_alias=yes
26228 else
26229 libgfor_cv_have_attribute_alias=no
26231 rm -f core conftest.err conftest.$ac_objext \
26232 conftest$ac_exeext conftest.$ac_ext
26234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_alias" >&5
26235 $as_echo "$libgfor_cv_have_attribute_alias" >&6; }
26236 if test $libgfor_cv_have_attribute_alias = yes; then
26238 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
26242 # Check out sync builtins support.
26244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_fetch_and_add" >&5
26245 $as_echo_n "checking whether the target supports __sync_fetch_and_add... " >&6; }
26246 if test "${libgfor_cv_have_sync_fetch_and_add+set}" = set; then :
26247 $as_echo_n "(cached) " >&6
26248 else
26250 if test x$gcc_no_link = xyes; then
26251 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26254 /* end confdefs.h. */
26255 int foovar = 0;
26257 main ()
26260 if (foovar <= 0) return __sync_fetch_and_add (&foovar, 1);
26261 if (foovar > 10) return __sync_add_and_fetch (&foovar, -1);
26263 return 0;
26265 _ACEOF
26266 if ac_fn_c_try_link "$LINENO"; then :
26267 libgfor_cv_have_sync_fetch_and_add=yes
26268 else
26269 libgfor_cv_have_sync_fetch_and_add=no
26271 rm -f core conftest.err conftest.$ac_objext \
26272 conftest$ac_exeext conftest.$ac_ext
26274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_sync_fetch_and_add" >&5
26275 $as_echo "$libgfor_cv_have_sync_fetch_and_add" >&6; }
26276 if test $libgfor_cv_have_sync_fetch_and_add = yes; then
26278 $as_echo "#define HAVE_SYNC_FETCH_AND_ADD 1" >>confdefs.h
26282 # Check out #pragma weak.
26284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pragma weak works" >&5
26285 $as_echo_n "checking whether pragma weak works... " >&6; }
26286 if test "${libgfor_cv_have_pragma_weak+set}" = set; then :
26287 $as_echo_n "(cached) " >&6
26288 else
26290 gfor_save_CFLAGS="$CFLAGS"
26291 CFLAGS="$CFLAGS -Wunknown-pragmas"
26292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26293 /* end confdefs.h. */
26295 void foo (void);
26296 #pragma weak foo
26299 main ()
26301 if (foo) foo ();
26303 return 0;
26305 _ACEOF
26306 if ac_fn_c_try_compile "$LINENO"; then :
26307 libgfor_cv_have_pragma_weak=yes
26308 else
26309 libgfor_cv_have_pragma_weak=no
26311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_pragma_weak" >&5
26314 $as_echo "$libgfor_cv_have_pragma_weak" >&6; }
26315 if test $libgfor_cv_have_pragma_weak = yes; then
26317 $as_echo "#define SUPPORTS_WEAK 1" >>confdefs.h
26320 case "$host" in
26321 *-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-mingw* )
26323 $as_echo "#define GTHREAD_USE_WEAK 0" >>confdefs.h
26326 esac
26328 # Various other checks on target
26330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target can unlink an open file" >&5
26331 $as_echo_n "checking whether the target can unlink an open file... " >&6; }
26332 if test "${libgfor_cv_have_unlink_open_file+set}" = set; then :
26333 $as_echo_n "(cached) " >&6
26334 else
26336 if test "$cross_compiling" = yes; then :
26338 case "${target}" in
26339 *mingw*) libgfor_cv_have_unlink_open_file=no ;;
26340 *) libgfor_cv_have_unlink_open_file=yes;;
26341 esac
26342 else
26343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26344 /* end confdefs.h. */
26346 #include <errno.h>
26347 #include <fcntl.h>
26348 #include <unistd.h>
26349 #include <sys/stat.h>
26351 int main ()
26353 int fd;
26355 fd = open ("testfile", O_RDWR | O_CREAT, S_IWUSR | S_IRUSR);
26356 if (fd <= 0)
26357 return 0;
26358 if (unlink ("testfile") == -1)
26359 return 1;
26360 write (fd, "This is a test\n", 15);
26361 close (fd);
26363 if (open ("testfile", O_RDONLY) == -1 && errno == ENOENT)
26364 return 0;
26365 else
26366 return 1;
26368 _ACEOF
26369 if ac_fn_c_try_run "$LINENO"; then :
26370 libgfor_cv_have_unlink_open_file=yes
26371 else
26372 libgfor_cv_have_unlink_open_file=no
26374 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26375 conftest.$ac_objext conftest.beam conftest.$ac_ext
26379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_unlink_open_file" >&5
26380 $as_echo "$libgfor_cv_have_unlink_open_file" >&6; }
26381 if test x"$libgfor_cv_have_unlink_open_file" = xyes; then
26383 $as_echo "#define HAVE_UNLINK_OPEN_FILE 1" >>confdefs.h
26387 # Check whether line terminator is LF or CRLF
26389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target has CRLF as line terminator" >&5
26390 $as_echo_n "checking whether the target has CRLF as line terminator... " >&6; }
26391 if test "${libgfor_cv_have_crlf+set}" = set; then :
26392 $as_echo_n "(cached) " >&6
26393 else
26395 if test "$cross_compiling" = yes; then :
26397 case "${target}" in
26398 *mingw*) libgfor_cv_have_crlf=yes ;;
26399 *) libgfor_cv_have_crlf=no;;
26400 esac
26401 else
26402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26403 /* end confdefs.h. */
26405 /* This test program should exit with status 0 if system uses a CRLF as
26406 line terminator, and status 1 otherwise.
26407 Since it is used to check for mingw systems, and should return 0 in any
26408 other case, in case of a failure we will not use CRLF. */
26409 #include <sys/stat.h>
26410 #include <stdlib.h>
26411 #include <fcntl.h>
26412 #include <stdio.h>
26414 int main ()
26416 #ifndef O_BINARY
26417 exit(1);
26418 #else
26419 int fd, bytes;
26420 char buff[5];
26422 fd = open ("foo", O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU);
26423 if (fd < 0)
26424 exit(1);
26425 if (write (fd, "\n", 1) < 0)
26426 perror ("write");
26428 close (fd);
26430 if ((fd = open ("foo", O_RDONLY | O_BINARY, S_IRWXU)) < 0)
26431 exit(1);
26432 bytes = read (fd, buff, 5);
26433 if (bytes == 2 && buff[0] == '\r' && buff[1] == '\n')
26434 exit(0);
26435 else
26436 exit(1);
26437 #endif
26439 _ACEOF
26440 if ac_fn_c_try_run "$LINENO"; then :
26441 libgfor_cv_have_crlf=yes
26442 else
26443 libgfor_cv_have_crlf=no
26445 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26446 conftest.$ac_objext conftest.beam conftest.$ac_ext
26450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_crlf" >&5
26451 $as_echo "$libgfor_cv_have_crlf" >&6; }
26452 if test x"$libgfor_cv_have_crlf" = xyes; then
26454 $as_echo "#define HAVE_CRLF 1" >>confdefs.h
26458 # Check whether we have _Unwind_GetIPInfo for backtrace
26461 # Check whether --with-system-libunwind was given.
26462 if test "${with_system_libunwind+set}" = set; then :
26463 withval=$with_system_libunwind;
26466 # If system-libunwind was not specifically set, pick a default setting.
26467 if test x$with_system_libunwind = x; then
26468 case ${target} in
26469 ia64-*-hpux*) with_system_libunwind=yes ;;
26470 *) with_system_libunwind=no ;;
26471 esac
26473 # Based on system-libunwind and target, do we have ipinfo?
26474 if test x$with_system_libunwind = xyes; then
26475 case ${target} in
26476 ia64-*-*) have_unwind_getipinfo=no ;;
26477 *) have_unwind_getipinfo=yes ;;
26478 esac
26479 else
26480 # Darwin before version 9 does not have _Unwind_GetIPInfo.
26482 case ${target} in
26483 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
26484 *) have_unwind_getipinfo=yes ;;
26485 esac
26489 if test x$have_unwind_getipinfo = xyes; then
26491 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
26496 cat >confcache <<\_ACEOF
26497 # This file is a shell script that caches the results of configure
26498 # tests run on this system so they can be shared between configure
26499 # scripts and configure runs, see configure's option --config-cache.
26500 # It is not useful on other systems. If it contains results you don't
26501 # want to keep, you may remove or edit it.
26503 # config.status only pays attention to the cache file if you give it
26504 # the --recheck option to rerun configure.
26506 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26507 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26508 # following values.
26510 _ACEOF
26512 # The following way of writing the cache mishandles newlines in values,
26513 # but we know of no workaround that is simple, portable, and efficient.
26514 # So, we kill variables containing newlines.
26515 # Ultrix sh set writes to stderr and can't be redirected directly,
26516 # and sets the high bit in the cache file unless we assign to the vars.
26518 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26519 eval ac_val=\$$ac_var
26520 case $ac_val in #(
26521 *${as_nl}*)
26522 case $ac_var in #(
26523 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26524 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26525 esac
26526 case $ac_var in #(
26527 _ | IFS | as_nl) ;; #(
26528 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26529 *) { eval $ac_var=; unset $ac_var;} ;;
26530 esac ;;
26531 esac
26532 done
26534 (set) 2>&1 |
26535 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26536 *${as_nl}ac_space=\ *)
26537 # `set' does not quote correctly, so add quotes: double-quote
26538 # substitution turns \\\\ into \\, and sed turns \\ into \.
26539 sed -n \
26540 "s/'/'\\\\''/g;
26541 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26542 ;; #(
26544 # `set' quotes correctly as required by POSIX, so do not add quotes.
26545 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26547 esac |
26548 sort
26550 sed '
26551 /^ac_cv_env_/b end
26552 t clear
26553 :clear
26554 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26555 t end
26556 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26557 :end' >>confcache
26558 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26559 if test -w "$cache_file"; then
26560 test "x$cache_file" != "x/dev/null" &&
26561 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26562 $as_echo "$as_me: updating cache $cache_file" >&6;}
26563 cat confcache >$cache_file
26564 else
26565 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26566 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26569 rm -f confcache
26571 if test ${multilib} = yes; then
26572 multilib_arg="--enable-multilib"
26573 else
26574 multilib_arg=
26577 # Write our Makefile and spec file.
26578 ac_config_files="$ac_config_files Makefile libgfortran.spec"
26580 cat >confcache <<\_ACEOF
26581 # This file is a shell script that caches the results of configure
26582 # tests run on this system so they can be shared between configure
26583 # scripts and configure runs, see configure's option --config-cache.
26584 # It is not useful on other systems. If it contains results you don't
26585 # want to keep, you may remove or edit it.
26587 # config.status only pays attention to the cache file if you give it
26588 # the --recheck option to rerun configure.
26590 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26591 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26592 # following values.
26594 _ACEOF
26596 # The following way of writing the cache mishandles newlines in values,
26597 # but we know of no workaround that is simple, portable, and efficient.
26598 # So, we kill variables containing newlines.
26599 # Ultrix sh set writes to stderr and can't be redirected directly,
26600 # and sets the high bit in the cache file unless we assign to the vars.
26602 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26603 eval ac_val=\$$ac_var
26604 case $ac_val in #(
26605 *${as_nl}*)
26606 case $ac_var in #(
26607 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26608 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26609 esac
26610 case $ac_var in #(
26611 _ | IFS | as_nl) ;; #(
26612 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26613 *) { eval $ac_var=; unset $ac_var;} ;;
26614 esac ;;
26615 esac
26616 done
26618 (set) 2>&1 |
26619 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26620 *${as_nl}ac_space=\ *)
26621 # `set' does not quote correctly, so add quotes: double-quote
26622 # substitution turns \\\\ into \\, and sed turns \\ into \.
26623 sed -n \
26624 "s/'/'\\\\''/g;
26625 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26626 ;; #(
26628 # `set' quotes correctly as required by POSIX, so do not add quotes.
26629 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26631 esac |
26632 sort
26634 sed '
26635 /^ac_cv_env_/b end
26636 t clear
26637 :clear
26638 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26639 t end
26640 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26641 :end' >>confcache
26642 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26643 if test -w "$cache_file"; then
26644 test "x$cache_file" != "x/dev/null" &&
26645 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26646 $as_echo "$as_me: updating cache $cache_file" >&6;}
26647 cat confcache >$cache_file
26648 else
26649 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26650 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26653 rm -f confcache
26655 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26656 # Let make expand exec_prefix.
26657 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26659 DEFS=-DHAVE_CONFIG_H
26661 ac_libobjs=
26662 ac_ltlibobjs=
26663 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26664 # 1. Remove the extension, and $U if already installed.
26665 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26666 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26667 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26668 # will be set to the directory where LIBOBJS objects are built.
26669 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26670 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26671 done
26672 LIBOBJS=$ac_libobjs
26674 LTLIBOBJS=$ac_ltlibobjs
26677 if test -z "${onestep_TRUE}" && test -z "${onestep_FALSE}"; then
26678 as_fn_error "conditional \"onestep\" was never defined.
26679 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26681 if test -n "$EXEEXT"; then
26682 am__EXEEXT_TRUE=
26683 am__EXEEXT_FALSE='#'
26684 else
26685 am__EXEEXT_TRUE='#'
26686 am__EXEEXT_FALSE=
26689 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26690 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
26691 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26693 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26694 as_fn_error "conditional \"AMDEP\" was never defined.
26695 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26697 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26698 as_fn_error "conditional \"am__fastdepCC\" was never defined.
26699 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26701 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26702 as_fn_error "conditional \"am__fastdepCC\" was never defined.
26703 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26705 if test -z "${LIBGFOR_USE_SYMVER_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_FALSE}"; then
26706 as_fn_error "conditional \"LIBGFOR_USE_SYMVER\" was never defined.
26707 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26709 if test -z "${LIBGFOR_USE_SYMVER_GNU_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_GNU_FALSE}"; then
26710 as_fn_error "conditional \"LIBGFOR_USE_SYMVER_GNU\" was never defined.
26711 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26713 if test -z "${LIBGFOR_USE_SYMVER_SUN_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_SUN_FALSE}"; then
26714 as_fn_error "conditional \"LIBGFOR_USE_SYMVER_SUN\" was never defined.
26715 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26717 if test -z "${LIBGFOR_BUILD_QUAD_TRUE}" && test -z "${LIBGFOR_BUILD_QUAD_FALSE}"; then
26718 as_fn_error "conditional \"LIBGFOR_BUILD_QUAD\" was never defined.
26719 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26722 : ${CONFIG_STATUS=./config.status}
26723 ac_write_fail=0
26724 ac_clean_files_save=$ac_clean_files
26725 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26726 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26727 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26728 as_write_fail=0
26729 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26730 #! $SHELL
26731 # Generated by $as_me.
26732 # Run this file to recreate the current configuration.
26733 # Compiler output produced by configure, useful for debugging
26734 # configure, is in config.log if it exists.
26736 debug=false
26737 ac_cs_recheck=false
26738 ac_cs_silent=false
26740 SHELL=\${CONFIG_SHELL-$SHELL}
26741 export SHELL
26742 _ASEOF
26743 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26744 ## -------------------- ##
26745 ## M4sh Initialization. ##
26746 ## -------------------- ##
26748 # Be more Bourne compatible
26749 DUALCASE=1; export DUALCASE # for MKS sh
26750 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26751 emulate sh
26752 NULLCMD=:
26753 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26754 # is contrary to our usage. Disable this feature.
26755 alias -g '${1+"$@"}'='"$@"'
26756 setopt NO_GLOB_SUBST
26757 else
26758 case `(set -o) 2>/dev/null` in #(
26759 *posix*) :
26760 set -o posix ;; #(
26761 *) :
26763 esac
26767 as_nl='
26769 export as_nl
26770 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26771 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26772 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26773 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26774 # Prefer a ksh shell builtin over an external printf program on Solaris,
26775 # but without wasting forks for bash or zsh.
26776 if test -z "$BASH_VERSION$ZSH_VERSION" \
26777 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26778 as_echo='print -r --'
26779 as_echo_n='print -rn --'
26780 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26781 as_echo='printf %s\n'
26782 as_echo_n='printf %s'
26783 else
26784 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26785 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26786 as_echo_n='/usr/ucb/echo -n'
26787 else
26788 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26789 as_echo_n_body='eval
26790 arg=$1;
26791 case $arg in #(
26792 *"$as_nl"*)
26793 expr "X$arg" : "X\\(.*\\)$as_nl";
26794 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26795 esac;
26796 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26798 export as_echo_n_body
26799 as_echo_n='sh -c $as_echo_n_body as_echo'
26801 export as_echo_body
26802 as_echo='sh -c $as_echo_body as_echo'
26805 # The user is always right.
26806 if test "${PATH_SEPARATOR+set}" != set; then
26807 PATH_SEPARATOR=:
26808 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26809 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26810 PATH_SEPARATOR=';'
26815 # IFS
26816 # We need space, tab and new line, in precisely that order. Quoting is
26817 # there to prevent editors from complaining about space-tab.
26818 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26819 # splitting by setting IFS to empty value.)
26820 IFS=" "" $as_nl"
26822 # Find who we are. Look in the path if we contain no directory separator.
26823 case $0 in #((
26824 *[\\/]* ) as_myself=$0 ;;
26825 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26826 for as_dir in $PATH
26828 IFS=$as_save_IFS
26829 test -z "$as_dir" && as_dir=.
26830 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26831 done
26832 IFS=$as_save_IFS
26835 esac
26836 # We did not find ourselves, most probably we were run as `sh COMMAND'
26837 # in which case we are not to be found in the path.
26838 if test "x$as_myself" = x; then
26839 as_myself=$0
26841 if test ! -f "$as_myself"; then
26842 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26843 exit 1
26846 # Unset variables that we do not need and which cause bugs (e.g. in
26847 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26848 # suppresses any "Segmentation fault" message there. '((' could
26849 # trigger a bug in pdksh 5.2.14.
26850 for as_var in BASH_ENV ENV MAIL MAILPATH
26851 do eval test x\${$as_var+set} = xset \
26852 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26853 done
26854 PS1='$ '
26855 PS2='> '
26856 PS4='+ '
26858 # NLS nuisances.
26859 LC_ALL=C
26860 export LC_ALL
26861 LANGUAGE=C
26862 export LANGUAGE
26864 # CDPATH.
26865 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26868 # as_fn_error ERROR [LINENO LOG_FD]
26869 # ---------------------------------
26870 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26871 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26872 # script with status $?, using 1 if that was 0.
26873 as_fn_error ()
26875 as_status=$?; test $as_status -eq 0 && as_status=1
26876 if test "$3"; then
26877 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26878 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
26880 $as_echo "$as_me: error: $1" >&2
26881 as_fn_exit $as_status
26882 } # as_fn_error
26885 # as_fn_set_status STATUS
26886 # -----------------------
26887 # Set $? to STATUS, without forking.
26888 as_fn_set_status ()
26890 return $1
26891 } # as_fn_set_status
26893 # as_fn_exit STATUS
26894 # -----------------
26895 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
26896 as_fn_exit ()
26898 set +e
26899 as_fn_set_status $1
26900 exit $1
26901 } # as_fn_exit
26903 # as_fn_unset VAR
26904 # ---------------
26905 # Portably unset VAR.
26906 as_fn_unset ()
26908 { eval $1=; unset $1;}
26910 as_unset=as_fn_unset
26911 # as_fn_append VAR VALUE
26912 # ----------------------
26913 # Append the text in VALUE to the end of the definition contained in VAR. Take
26914 # advantage of any shell optimizations that allow amortized linear growth over
26915 # repeated appends, instead of the typical quadratic growth present in naive
26916 # implementations.
26917 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
26918 eval 'as_fn_append ()
26920 eval $1+=\$2
26922 else
26923 as_fn_append ()
26925 eval $1=\$$1\$2
26927 fi # as_fn_append
26929 # as_fn_arith ARG...
26930 # ------------------
26931 # Perform arithmetic evaluation on the ARGs, and store the result in the
26932 # global $as_val. Take advantage of shells that can avoid forks. The arguments
26933 # must be portable across $(()) and expr.
26934 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
26935 eval 'as_fn_arith ()
26937 as_val=$(( $* ))
26939 else
26940 as_fn_arith ()
26942 as_val=`expr "$@" || test $? -eq 1`
26944 fi # as_fn_arith
26947 if expr a : '\(a\)' >/dev/null 2>&1 &&
26948 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26949 as_expr=expr
26950 else
26951 as_expr=false
26954 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26955 as_basename=basename
26956 else
26957 as_basename=false
26960 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26961 as_dirname=dirname
26962 else
26963 as_dirname=false
26966 as_me=`$as_basename -- "$0" ||
26967 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26968 X"$0" : 'X\(//\)$' \| \
26969 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26970 $as_echo X/"$0" |
26971 sed '/^.*\/\([^/][^/]*\)\/*$/{
26972 s//\1/
26975 /^X\/\(\/\/\)$/{
26976 s//\1/
26979 /^X\/\(\/\).*/{
26980 s//\1/
26983 s/.*/./; q'`
26985 # Avoid depending upon Character Ranges.
26986 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26987 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26988 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26989 as_cr_digits='0123456789'
26990 as_cr_alnum=$as_cr_Letters$as_cr_digits
26992 ECHO_C= ECHO_N= ECHO_T=
26993 case `echo -n x` in #(((((
26994 -n*)
26995 case `echo 'xy\c'` in
26996 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26997 xy) ECHO_C='\c';;
26998 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
26999 ECHO_T=' ';;
27000 esac;;
27002 ECHO_N='-n';;
27003 esac
27005 rm -f conf$$ conf$$.exe conf$$.file
27006 if test -d conf$$.dir; then
27007 rm -f conf$$.dir/conf$$.file
27008 else
27009 rm -f conf$$.dir
27010 mkdir conf$$.dir 2>/dev/null
27012 if (echo >conf$$.file) 2>/dev/null; then
27013 if ln -s conf$$.file conf$$ 2>/dev/null; then
27014 as_ln_s='ln -s'
27015 # ... but there are two gotchas:
27016 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27017 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27018 # In both cases, we have to default to `cp -p'.
27019 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27020 as_ln_s='cp -p'
27021 elif ln conf$$.file conf$$ 2>/dev/null; then
27022 as_ln_s=ln
27023 else
27024 as_ln_s='cp -p'
27026 else
27027 as_ln_s='cp -p'
27029 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27030 rmdir conf$$.dir 2>/dev/null
27033 # as_fn_mkdir_p
27034 # -------------
27035 # Create "$as_dir" as a directory, including parents if necessary.
27036 as_fn_mkdir_p ()
27039 case $as_dir in #(
27040 -*) as_dir=./$as_dir;;
27041 esac
27042 test -d "$as_dir" || eval $as_mkdir_p || {
27043 as_dirs=
27044 while :; do
27045 case $as_dir in #(
27046 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27047 *) as_qdir=$as_dir;;
27048 esac
27049 as_dirs="'$as_qdir' $as_dirs"
27050 as_dir=`$as_dirname -- "$as_dir" ||
27051 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27052 X"$as_dir" : 'X\(//\)[^/]' \| \
27053 X"$as_dir" : 'X\(//\)$' \| \
27054 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27055 $as_echo X"$as_dir" |
27056 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27057 s//\1/
27060 /^X\(\/\/\)[^/].*/{
27061 s//\1/
27064 /^X\(\/\/\)$/{
27065 s//\1/
27068 /^X\(\/\).*/{
27069 s//\1/
27072 s/.*/./; q'`
27073 test -d "$as_dir" && break
27074 done
27075 test -z "$as_dirs" || eval "mkdir $as_dirs"
27076 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27079 } # as_fn_mkdir_p
27080 if mkdir -p . 2>/dev/null; then
27081 as_mkdir_p='mkdir -p "$as_dir"'
27082 else
27083 test -d ./-p && rmdir ./-p
27084 as_mkdir_p=false
27087 if test -x / >/dev/null 2>&1; then
27088 as_test_x='test -x'
27089 else
27090 if ls -dL / >/dev/null 2>&1; then
27091 as_ls_L_option=L
27092 else
27093 as_ls_L_option=
27095 as_test_x='
27096 eval sh -c '\''
27097 if test -d "$1"; then
27098 test -d "$1/.";
27099 else
27100 case $1 in #(
27101 -*)set "./$1";;
27102 esac;
27103 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27104 ???[sx]*):;;*)false;;esac;fi
27105 '\'' sh
27108 as_executable_p=$as_test_x
27110 # Sed expression to map a string onto a valid CPP name.
27111 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27113 # Sed expression to map a string onto a valid variable name.
27114 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27117 exec 6>&1
27118 ## ----------------------------------- ##
27119 ## Main body of $CONFIG_STATUS script. ##
27120 ## ----------------------------------- ##
27121 _ASEOF
27122 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27124 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27125 # Save the log message, to keep $0 and so on meaningful, and to
27126 # report actual input values of CONFIG_FILES etc. instead of their
27127 # values after options handling.
27128 ac_log="
27129 This file was extended by GNU Fortran Runtime Library $as_me 0.3, which was
27130 generated by GNU Autoconf 2.64. Invocation command line was
27132 CONFIG_FILES = $CONFIG_FILES
27133 CONFIG_HEADERS = $CONFIG_HEADERS
27134 CONFIG_LINKS = $CONFIG_LINKS
27135 CONFIG_COMMANDS = $CONFIG_COMMANDS
27136 $ $0 $@
27138 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27141 _ACEOF
27143 case $ac_config_files in *"
27144 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27145 esac
27147 case $ac_config_headers in *"
27148 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27149 esac
27152 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27153 # Files that config.status was made for.
27154 config_files="$ac_config_files"
27155 config_headers="$ac_config_headers"
27156 config_commands="$ac_config_commands"
27158 _ACEOF
27160 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27161 ac_cs_usage="\
27162 \`$as_me' instantiates files and other configuration actions
27163 from templates according to the current configuration. Unless the files
27164 and actions are specified as TAGs, all are instantiated by default.
27166 Usage: $0 [OPTION]... [TAG]...
27168 -h, --help print this help, then exit
27169 -V, --version print version number and configuration settings, then exit
27170 -q, --quiet, --silent
27171 do not print progress messages
27172 -d, --debug don't remove temporary files
27173 --recheck update $as_me by reconfiguring in the same conditions
27174 --file=FILE[:TEMPLATE]
27175 instantiate the configuration file FILE
27176 --header=FILE[:TEMPLATE]
27177 instantiate the configuration header FILE
27179 Configuration files:
27180 $config_files
27182 Configuration headers:
27183 $config_headers
27185 Configuration commands:
27186 $config_commands
27188 Report bugs to the package provider.
27189 GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
27190 General help using GNU software: <http://www.gnu.org/gethelp/>."
27192 _ACEOF
27193 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27194 ac_cs_version="\\
27195 GNU Fortran Runtime Library config.status 0.3
27196 configured by $0, generated by GNU Autoconf 2.64,
27197 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27199 Copyright (C) 2009 Free Software Foundation, Inc.
27200 This config.status script is free software; the Free Software Foundation
27201 gives unlimited permission to copy, distribute and modify it."
27203 ac_pwd='$ac_pwd'
27204 srcdir='$srcdir'
27205 INSTALL='$INSTALL'
27206 MKDIR_P='$MKDIR_P'
27207 AWK='$AWK'
27208 test -n "\$AWK" || AWK=awk
27209 _ACEOF
27211 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27212 # The default lists apply if the user does not specify any file.
27213 ac_need_defaults=:
27214 while test $# != 0
27216 case $1 in
27217 --*=*)
27218 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27219 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27220 ac_shift=:
27223 ac_option=$1
27224 ac_optarg=$2
27225 ac_shift=shift
27227 esac
27229 case $ac_option in
27230 # Handling of the options.
27231 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27232 ac_cs_recheck=: ;;
27233 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27234 $as_echo "$ac_cs_version"; exit ;;
27235 --debug | --debu | --deb | --de | --d | -d )
27236 debug=: ;;
27237 --file | --fil | --fi | --f )
27238 $ac_shift
27239 case $ac_optarg in
27240 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27241 esac
27242 as_fn_append CONFIG_FILES " '$ac_optarg'"
27243 ac_need_defaults=false;;
27244 --header | --heade | --head | --hea )
27245 $ac_shift
27246 case $ac_optarg in
27247 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27248 esac
27249 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27250 ac_need_defaults=false;;
27251 --he | --h)
27252 # Conflict between --help and --header
27253 as_fn_error "ambiguous option: \`$1'
27254 Try \`$0 --help' for more information.";;
27255 --help | --hel | -h )
27256 $as_echo "$ac_cs_usage"; exit ;;
27257 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27258 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27259 ac_cs_silent=: ;;
27261 # This is an error.
27262 -*) as_fn_error "unrecognized option: \`$1'
27263 Try \`$0 --help' for more information." ;;
27265 *) as_fn_append ac_config_targets " $1"
27266 ac_need_defaults=false ;;
27268 esac
27269 shift
27270 done
27272 ac_configure_extra_args=
27274 if $ac_cs_silent; then
27275 exec 6>/dev/null
27276 ac_configure_extra_args="$ac_configure_extra_args --silent"
27279 _ACEOF
27280 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27281 if \$ac_cs_recheck; then
27282 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27283 shift
27284 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27285 CONFIG_SHELL='$SHELL'
27286 export CONFIG_SHELL
27287 exec "\$@"
27290 _ACEOF
27291 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27292 exec 5>>config.log
27294 echo
27295 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27296 ## Running $as_me. ##
27297 _ASBOX
27298 $as_echo "$ac_log"
27299 } >&5
27301 _ACEOF
27302 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27304 # INIT-COMMANDS
27307 srcdir="$srcdir"
27308 host="$host"
27309 target="$target"
27310 with_multisubdir="$with_multisubdir"
27311 with_multisrctop="$with_multisrctop"
27312 with_target_subdir="$with_target_subdir"
27313 ac_configure_args="${multilib_arg} ${ac_configure_args}"
27314 multi_basedir="$multi_basedir"
27315 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
27316 CC="$CC"
27317 CXX="$CXX"
27318 GFORTRAN="$GFORTRAN"
27319 GCJ="$GCJ"
27320 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27323 # The HP-UX ksh and POSIX shell print the target directory to stdout
27324 # if CDPATH is set.
27325 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27327 sed_quote_subst='$sed_quote_subst'
27328 double_quote_subst='$double_quote_subst'
27329 delay_variable_subst='$delay_variable_subst'
27330 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
27331 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
27332 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
27333 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
27334 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
27335 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
27336 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
27337 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
27338 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
27339 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
27340 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
27341 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
27342 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
27343 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
27344 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
27345 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
27346 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
27347 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
27348 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
27349 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
27350 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
27351 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
27352 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
27353 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
27354 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
27355 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
27356 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
27357 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
27358 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
27359 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
27360 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
27361 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
27362 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
27363 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
27364 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
27365 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
27366 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
27367 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27368 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27369 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
27370 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
27371 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
27372 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
27373 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
27374 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
27375 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
27376 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
27377 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
27378 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"`'
27379 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
27380 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
27381 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
27382 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
27383 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
27384 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
27385 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
27386 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
27387 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
27388 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
27389 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
27390 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
27391 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
27392 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
27393 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
27394 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27395 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
27396 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
27397 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
27398 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
27399 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
27400 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
27401 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27402 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
27403 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27404 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
27405 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27406 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
27407 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
27408 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
27409 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
27410 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
27411 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
27412 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
27413 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
27414 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
27415 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
27416 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
27417 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
27418 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
27419 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
27420 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
27421 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
27422 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
27423 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
27424 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
27425 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
27426 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
27427 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
27428 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
27429 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
27430 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
27431 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
27432 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
27433 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
27434 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
27435 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
27436 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
27437 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27438 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27439 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
27440 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
27441 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
27442 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
27443 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
27444 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
27445 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
27446 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
27447 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
27448 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
27449 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
27450 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
27451 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
27452 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
27453 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
27454 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
27455 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
27456 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
27457 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
27458 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
27459 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
27460 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
27461 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
27462 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
27463 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
27464 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
27465 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
27466 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
27467 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
27468 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
27469 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27470 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27471 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
27472 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
27473 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
27474 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
27475 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
27476 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
27477 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
27478 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
27479 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
27480 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
27481 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27482 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
27483 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
27484 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
27485 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
27486 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
27487 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
27488 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
27489 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
27490 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
27491 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
27492 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
27493 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
27494 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
27495 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
27496 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
27497 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
27498 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
27499 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
27500 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
27501 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
27502 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
27503 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
27504 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
27506 LTCC='$LTCC'
27507 LTCFLAGS='$LTCFLAGS'
27508 compiler='$compiler_DEFAULT'
27510 # A function that is used when there is no print builtin or printf.
27511 func_fallback_echo ()
27513 eval 'cat <<_LTECHO_EOF
27515 _LTECHO_EOF'
27518 # Quote evaled strings.
27519 for var in SHELL \
27520 ECHO \
27521 SED \
27522 GREP \
27523 EGREP \
27524 FGREP \
27525 LD \
27526 NM \
27527 LN_S \
27528 lt_SP2NL \
27529 lt_NL2SP \
27530 reload_flag \
27531 OBJDUMP \
27532 deplibs_check_method \
27533 file_magic_cmd \
27534 AR \
27535 AR_FLAGS \
27536 STRIP \
27537 RANLIB \
27538 CC \
27539 CFLAGS \
27540 compiler \
27541 lt_cv_sys_global_symbol_pipe \
27542 lt_cv_sys_global_symbol_to_cdecl \
27543 lt_cv_sys_global_symbol_to_c_name_address \
27544 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
27545 lt_prog_compiler_no_builtin_flag \
27546 lt_prog_compiler_wl \
27547 lt_prog_compiler_pic \
27548 lt_prog_compiler_static \
27549 lt_cv_prog_compiler_c_o \
27550 need_locks \
27551 DSYMUTIL \
27552 NMEDIT \
27553 LIPO \
27554 OTOOL \
27555 OTOOL64 \
27556 shrext_cmds \
27557 export_dynamic_flag_spec \
27558 whole_archive_flag_spec \
27559 compiler_needs_object \
27560 with_gnu_ld \
27561 allow_undefined_flag \
27562 no_undefined_flag \
27563 hardcode_libdir_flag_spec \
27564 hardcode_libdir_flag_spec_ld \
27565 hardcode_libdir_separator \
27566 fix_srcfile_path \
27567 exclude_expsyms \
27568 include_expsyms \
27569 file_list_spec \
27570 variables_saved_for_relink \
27571 libname_spec \
27572 library_names_spec \
27573 soname_spec \
27574 install_override_mode \
27575 finish_eval \
27576 old_striplib \
27577 striplib \
27578 compiler_lib_search_dirs \
27579 predep_objects \
27580 postdep_objects \
27581 predeps \
27582 postdeps \
27583 compiler_lib_search_path \
27584 LD_FC \
27585 reload_flag_FC \
27586 compiler_FC \
27587 lt_prog_compiler_no_builtin_flag_FC \
27588 lt_prog_compiler_wl_FC \
27589 lt_prog_compiler_pic_FC \
27590 lt_prog_compiler_static_FC \
27591 lt_cv_prog_compiler_c_o_FC \
27592 export_dynamic_flag_spec_FC \
27593 whole_archive_flag_spec_FC \
27594 compiler_needs_object_FC \
27595 with_gnu_ld_FC \
27596 allow_undefined_flag_FC \
27597 no_undefined_flag_FC \
27598 hardcode_libdir_flag_spec_FC \
27599 hardcode_libdir_flag_spec_ld_FC \
27600 hardcode_libdir_separator_FC \
27601 fix_srcfile_path_FC \
27602 exclude_expsyms_FC \
27603 include_expsyms_FC \
27604 file_list_spec_FC \
27605 compiler_lib_search_dirs_FC \
27606 predep_objects_FC \
27607 postdep_objects_FC \
27608 predeps_FC \
27609 postdeps_FC \
27610 compiler_lib_search_path_FC; do
27611 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27612 *[\\\\\\\`\\"\\\$]*)
27613 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
27616 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27618 esac
27619 done
27621 # Double-quote double-evaled strings.
27622 for var in reload_cmds \
27623 old_postinstall_cmds \
27624 old_postuninstall_cmds \
27625 old_archive_cmds \
27626 extract_expsyms_cmds \
27627 old_archive_from_new_cmds \
27628 old_archive_from_expsyms_cmds \
27629 archive_cmds \
27630 archive_expsym_cmds \
27631 module_cmds \
27632 module_expsym_cmds \
27633 export_symbols_cmds \
27634 prelink_cmds \
27635 postinstall_cmds \
27636 postuninstall_cmds \
27637 finish_cmds \
27638 sys_lib_search_path_spec \
27639 sys_lib_dlsearch_path_spec \
27640 reload_cmds_FC \
27641 old_archive_cmds_FC \
27642 old_archive_from_new_cmds_FC \
27643 old_archive_from_expsyms_cmds_FC \
27644 archive_cmds_FC \
27645 archive_expsym_cmds_FC \
27646 module_cmds_FC \
27647 module_expsym_cmds_FC \
27648 export_symbols_cmds_FC \
27649 prelink_cmds_FC; do
27650 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27651 *[\\\\\\\`\\"\\\$]*)
27652 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
27655 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27657 esac
27658 done
27660 ac_aux_dir='$ac_aux_dir'
27661 xsi_shell='$xsi_shell'
27662 lt_shell_append='$lt_shell_append'
27664 # See if we are running on zsh, and set the options which allow our
27665 # commands through without removal of \ escapes INIT.
27666 if test -n "\${ZSH_VERSION+set}" ; then
27667 setopt NO_GLOB_SUBST
27671 PACKAGE='$PACKAGE'
27672 VERSION='$VERSION'
27673 TIMESTAMP='$TIMESTAMP'
27674 RM='$RM'
27675 ofile='$ofile'
27682 GCC="$GCC"
27683 CC="$CC"
27684 acx_cv_header_stdint="$acx_cv_header_stdint"
27685 acx_cv_type_int8_t="$acx_cv_type_int8_t"
27686 acx_cv_type_int16_t="$acx_cv_type_int16_t"
27687 acx_cv_type_int32_t="$acx_cv_type_int32_t"
27688 acx_cv_type_int64_t="$acx_cv_type_int64_t"
27689 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
27690 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
27691 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
27692 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
27693 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
27694 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
27695 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
27696 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
27697 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
27700 _ACEOF
27702 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27704 # Handling of arguments.
27705 for ac_config_target in $ac_config_targets
27707 case $ac_config_target in
27708 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
27709 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
27710 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27711 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
27712 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
27713 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27714 "libgfortran.spec") CONFIG_FILES="$CONFIG_FILES libgfortran.spec" ;;
27716 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27717 esac
27718 done
27721 # If the user did not use the arguments to specify the items to instantiate,
27722 # then the envvar interface is used. Set only those that are not.
27723 # We use the long form for the default assignment because of an extremely
27724 # bizarre bug on SunOS 4.1.3.
27725 if $ac_need_defaults; then
27726 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27727 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27728 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27731 # Have a temporary directory for convenience. Make it in the build tree
27732 # simply because there is no reason against having it here, and in addition,
27733 # creating and moving files from /tmp can sometimes cause problems.
27734 # Hook for its removal unless debugging.
27735 # Note that there is a small window in which the directory will not be cleaned:
27736 # after its creation but before its name has been assigned to `$tmp'.
27737 $debug ||
27739 tmp=
27740 trap 'exit_status=$?
27741 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27743 trap 'as_fn_exit 1' 1 2 13 15
27745 # Create a (secure) tmp directory for tmp files.
27748 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27749 test -n "$tmp" && test -d "$tmp"
27750 } ||
27752 tmp=./conf$$-$RANDOM
27753 (umask 077 && mkdir "$tmp")
27754 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
27756 # Set up the scripts for CONFIG_FILES section.
27757 # No need to generate them if there are no CONFIG_FILES.
27758 # This happens for instance with `./config.status config.h'.
27759 if test -n "$CONFIG_FILES"; then
27762 ac_cr=`echo X | tr X '\015'`
27763 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27764 # But we know of no other shell where ac_cr would be empty at this
27765 # point, so we can use a bashism as a fallback.
27766 if test "x$ac_cr" = x; then
27767 eval ac_cr=\$\'\\r\'
27769 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27770 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27771 ac_cs_awk_cr='\r'
27772 else
27773 ac_cs_awk_cr=$ac_cr
27776 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27777 _ACEOF
27781 echo "cat >conf$$subs.awk <<_ACEOF" &&
27782 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27783 echo "_ACEOF"
27784 } >conf$$subs.sh ||
27785 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27786 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27787 ac_delim='%!_!# '
27788 for ac_last_try in false false false false false :; do
27789 . ./conf$$subs.sh ||
27790 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27792 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27793 if test $ac_delim_n = $ac_delim_num; then
27794 break
27795 elif $ac_last_try; then
27796 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27797 else
27798 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27800 done
27801 rm -f conf$$subs.sh
27803 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27804 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27805 _ACEOF
27806 sed -n '
27808 s/^/S["/; s/!.*/"]=/
27811 s/^[^!]*!//
27812 :repl
27813 t repl
27814 s/'"$ac_delim"'$//
27815 t delim
27818 s/\(.\{148\}\).*/\1/
27819 t more1
27820 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27823 b repl
27824 :more1
27825 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27828 s/.\{148\}//
27829 t nl
27830 :delim
27832 s/\(.\{148\}\).*/\1/
27833 t more2
27834 s/["\\]/\\&/g; s/^/"/; s/$/"/
27837 :more2
27838 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27841 s/.\{148\}//
27842 t delim
27843 ' <conf$$subs.awk | sed '
27844 /^[^""]/{
27846 s/\n//
27848 ' >>$CONFIG_STATUS || ac_write_fail=1
27849 rm -f conf$$subs.awk
27850 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27851 _ACAWK
27852 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27853 for (key in S) S_is_set[key] = 1
27854 FS = "\a"
27858 line = $ 0
27859 nfields = split(line, field, "@")
27860 substed = 0
27861 len = length(field[1])
27862 for (i = 2; i < nfields; i++) {
27863 key = field[i]
27864 keylen = length(key)
27865 if (S_is_set[key]) {
27866 value = S[key]
27867 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27868 len += length(value) + length(field[++i])
27869 substed = 1
27870 } else
27871 len += 1 + keylen
27874 print line
27877 _ACAWK
27878 _ACEOF
27879 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27880 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27881 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27882 else
27884 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27885 || as_fn_error "could not setup config files machinery" "$LINENO" 5
27886 _ACEOF
27888 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27889 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27890 # trailing colons and then remove the whole line if VPATH becomes empty
27891 # (actually we leave an empty line to preserve line numbers).
27892 if test "x$srcdir" = x.; then
27893 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27894 s/:*\$(srcdir):*/:/
27895 s/:*\${srcdir}:*/:/
27896 s/:*@srcdir@:*/:/
27897 s/^\([^=]*=[ ]*\):*/\1/
27898 s/:*$//
27899 s/^[^=]*=[ ]*$//
27903 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27904 fi # test -n "$CONFIG_FILES"
27906 # Set up the scripts for CONFIG_HEADERS section.
27907 # No need to generate them if there are no CONFIG_HEADERS.
27908 # This happens for instance with `./config.status Makefile'.
27909 if test -n "$CONFIG_HEADERS"; then
27910 cat >"$tmp/defines.awk" <<\_ACAWK ||
27911 BEGIN {
27912 _ACEOF
27914 # Transform confdefs.h into an awk script `defines.awk', embedded as
27915 # here-document in config.status, that substitutes the proper values into
27916 # config.h.in to produce config.h.
27918 # Create a delimiter string that does not exist in confdefs.h, to ease
27919 # handling of long lines.
27920 ac_delim='%!_!# '
27921 for ac_last_try in false false :; do
27922 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
27923 if test -z "$ac_t"; then
27924 break
27925 elif $ac_last_try; then
27926 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
27927 else
27928 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27930 done
27932 # For the awk script, D is an array of macro values keyed by name,
27933 # likewise P contains macro parameters if any. Preserve backslash
27934 # newline sequences.
27936 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27937 sed -n '
27938 s/.\{148\}/&'"$ac_delim"'/g
27939 t rset
27940 :rset
27941 s/^[ ]*#[ ]*define[ ][ ]*/ /
27942 t def
27944 :def
27945 s/\\$//
27946 t bsnl
27947 s/["\\]/\\&/g
27948 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27949 D["\1"]=" \3"/p
27950 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
27952 :bsnl
27953 s/["\\]/\\&/g
27954 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
27955 D["\1"]=" \3\\\\\\n"\\/p
27956 t cont
27957 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
27958 t cont
27960 :cont
27962 s/.\{148\}/&'"$ac_delim"'/g
27963 t clear
27964 :clear
27965 s/\\$//
27966 t bsnlc
27967 s/["\\]/\\&/g; s/^/"/; s/$/"/p
27969 :bsnlc
27970 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
27971 b cont
27972 ' <confdefs.h | sed '
27973 s/'"$ac_delim"'/"\\\
27974 "/g' >>$CONFIG_STATUS || ac_write_fail=1
27976 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27977 for (key in D) D_is_set[key] = 1
27978 FS = "\a"
27980 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
27981 line = \$ 0
27982 split(line, arg, " ")
27983 if (arg[1] == "#") {
27984 defundef = arg[2]
27985 mac1 = arg[3]
27986 } else {
27987 defundef = substr(arg[1], 2)
27988 mac1 = arg[2]
27990 split(mac1, mac2, "(") #)
27991 macro = mac2[1]
27992 prefix = substr(line, 1, index(line, defundef) - 1)
27993 if (D_is_set[macro]) {
27994 # Preserve the white space surrounding the "#".
27995 print prefix "define", macro P[macro] D[macro]
27996 next
27997 } else {
27998 # Replace #undef with comments. This is necessary, for example,
27999 # in the case of _POSIX_SOURCE, which is predefined and required
28000 # on some systems where configure will not decide to define it.
28001 if (defundef == "undef") {
28002 print "/*", prefix defundef, macro, "*/"
28003 next
28007 { print }
28008 _ACAWK
28009 _ACEOF
28010 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28011 as_fn_error "could not setup config headers machinery" "$LINENO" 5
28012 fi # test -n "$CONFIG_HEADERS"
28015 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28016 shift
28017 for ac_tag
28019 case $ac_tag in
28020 :[FHLC]) ac_mode=$ac_tag; continue;;
28021 esac
28022 case $ac_mode$ac_tag in
28023 :[FHL]*:*);;
28024 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28025 :[FH]-) ac_tag=-:-;;
28026 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28027 esac
28028 ac_save_IFS=$IFS
28029 IFS=:
28030 set x $ac_tag
28031 IFS=$ac_save_IFS
28032 shift
28033 ac_file=$1
28034 shift
28036 case $ac_mode in
28037 :L) ac_source=$1;;
28038 :[FH])
28039 ac_file_inputs=
28040 for ac_f
28042 case $ac_f in
28043 -) ac_f="$tmp/stdin";;
28044 *) # Look for the file first in the build tree, then in the source tree
28045 # (if the path is not absolute). The absolute path cannot be DOS-style,
28046 # because $ac_f cannot contain `:'.
28047 test -f "$ac_f" ||
28048 case $ac_f in
28049 [\\/$]*) false;;
28050 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28051 esac ||
28052 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28053 esac
28054 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28055 as_fn_append ac_file_inputs " '$ac_f'"
28056 done
28058 # Let's still pretend it is `configure' which instantiates (i.e., don't
28059 # use $as_me), people would be surprised to read:
28060 # /* config.h. Generated by config.status. */
28061 configure_input='Generated from '`
28062 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28063 `' by configure.'
28064 if test x"$ac_file" != x-; then
28065 configure_input="$ac_file. $configure_input"
28066 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28067 $as_echo "$as_me: creating $ac_file" >&6;}
28069 # Neutralize special characters interpreted by sed in replacement strings.
28070 case $configure_input in #(
28071 *\&* | *\|* | *\\* )
28072 ac_sed_conf_input=`$as_echo "$configure_input" |
28073 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28074 *) ac_sed_conf_input=$configure_input;;
28075 esac
28077 case $ac_tag in
28078 *:-:* | *:-) cat >"$tmp/stdin" \
28079 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28080 esac
28082 esac
28084 ac_dir=`$as_dirname -- "$ac_file" ||
28085 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28086 X"$ac_file" : 'X\(//\)[^/]' \| \
28087 X"$ac_file" : 'X\(//\)$' \| \
28088 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28089 $as_echo X"$ac_file" |
28090 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28091 s//\1/
28094 /^X\(\/\/\)[^/].*/{
28095 s//\1/
28098 /^X\(\/\/\)$/{
28099 s//\1/
28102 /^X\(\/\).*/{
28103 s//\1/
28106 s/.*/./; q'`
28107 as_dir="$ac_dir"; as_fn_mkdir_p
28108 ac_builddir=.
28110 case "$ac_dir" in
28111 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28113 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28114 # A ".." for each directory in $ac_dir_suffix.
28115 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28116 case $ac_top_builddir_sub in
28117 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28118 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28119 esac ;;
28120 esac
28121 ac_abs_top_builddir=$ac_pwd
28122 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28123 # for backward compatibility:
28124 ac_top_builddir=$ac_top_build_prefix
28126 case $srcdir in
28127 .) # We are building in place.
28128 ac_srcdir=.
28129 ac_top_srcdir=$ac_top_builddir_sub
28130 ac_abs_top_srcdir=$ac_pwd ;;
28131 [\\/]* | ?:[\\/]* ) # Absolute name.
28132 ac_srcdir=$srcdir$ac_dir_suffix;
28133 ac_top_srcdir=$srcdir
28134 ac_abs_top_srcdir=$srcdir ;;
28135 *) # Relative name.
28136 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28137 ac_top_srcdir=$ac_top_build_prefix$srcdir
28138 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28139 esac
28140 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28143 case $ac_mode in
28146 # CONFIG_FILE
28149 case $INSTALL in
28150 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28151 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28152 esac
28153 ac_MKDIR_P=$MKDIR_P
28154 case $MKDIR_P in
28155 [\\/$]* | ?:[\\/]* ) ;;
28156 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28157 esac
28158 _ACEOF
28160 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28161 # If the template does not know about datarootdir, expand it.
28162 # FIXME: This hack should be removed a few years after 2.60.
28163 ac_datarootdir_hack=; ac_datarootdir_seen=
28164 ac_sed_dataroot='
28165 /datarootdir/ {
28169 /@datadir@/p
28170 /@docdir@/p
28171 /@infodir@/p
28172 /@localedir@/p
28173 /@mandir@/p'
28174 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28175 *datarootdir*) ac_datarootdir_seen=yes;;
28176 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28178 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28179 _ACEOF
28180 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28181 ac_datarootdir_hack='
28182 s&@datadir@&$datadir&g
28183 s&@docdir@&$docdir&g
28184 s&@infodir@&$infodir&g
28185 s&@localedir@&$localedir&g
28186 s&@mandir@&$mandir&g
28187 s&\\\${datarootdir}&$datarootdir&g' ;;
28188 esac
28189 _ACEOF
28191 # Neutralize VPATH when `$srcdir' = `.'.
28192 # Shell code in configure.ac might set extrasub.
28193 # FIXME: do we really want to maintain this feature?
28194 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28195 ac_sed_extra="$ac_vpsub
28196 $extrasub
28197 _ACEOF
28198 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28200 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28201 s|@configure_input@|$ac_sed_conf_input|;t t
28202 s&@top_builddir@&$ac_top_builddir_sub&;t t
28203 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28204 s&@srcdir@&$ac_srcdir&;t t
28205 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28206 s&@top_srcdir@&$ac_top_srcdir&;t t
28207 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28208 s&@builddir@&$ac_builddir&;t t
28209 s&@abs_builddir@&$ac_abs_builddir&;t t
28210 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28211 s&@INSTALL@&$ac_INSTALL&;t t
28212 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28213 $ac_datarootdir_hack
28215 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
28216 || as_fn_error "could not create $ac_file" "$LINENO" 5
28218 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28219 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28220 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28221 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28222 which seems to be undefined. Please make sure it is defined." >&5
28223 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28224 which seems to be undefined. Please make sure it is defined." >&2;}
28226 rm -f "$tmp/stdin"
28227 case $ac_file in
28228 -) cat "$tmp/out" && rm -f "$tmp/out";;
28229 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28230 esac \
28231 || as_fn_error "could not create $ac_file" "$LINENO" 5
28235 # CONFIG_HEADER
28237 if test x"$ac_file" != x-; then
28239 $as_echo "/* $configure_input */" \
28240 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28241 } >"$tmp/config.h" \
28242 || as_fn_error "could not create $ac_file" "$LINENO" 5
28243 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28244 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28245 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28246 else
28247 rm -f "$ac_file"
28248 mv "$tmp/config.h" "$ac_file" \
28249 || as_fn_error "could not create $ac_file" "$LINENO" 5
28251 else
28252 $as_echo "/* $configure_input */" \
28253 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28254 || as_fn_error "could not create -" "$LINENO" 5
28256 # Compute "$ac_file"'s index in $config_headers.
28257 _am_arg="$ac_file"
28258 _am_stamp_count=1
28259 for _am_header in $config_headers :; do
28260 case $_am_header in
28261 $_am_arg | $_am_arg:* )
28262 break ;;
28264 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28265 esac
28266 done
28267 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28268 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28269 X"$_am_arg" : 'X\(//\)[^/]' \| \
28270 X"$_am_arg" : 'X\(//\)$' \| \
28271 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28272 $as_echo X"$_am_arg" |
28273 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28274 s//\1/
28277 /^X\(\/\/\)[^/].*/{
28278 s//\1/
28281 /^X\(\/\/\)$/{
28282 s//\1/
28285 /^X\(\/\).*/{
28286 s//\1/
28289 s/.*/./; q'`/stamp-h$_am_stamp_count
28292 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28293 $as_echo "$as_me: executing $ac_file commands" >&6;}
28295 esac
28298 case $ac_file$ac_mode in
28299 "default-1":C)
28300 # Only add multilib support code if we just rebuilt the top-level
28301 # Makefile.
28302 case " $CONFIG_FILES " in
28303 *" Makefile "*)
28304 ac_file=Makefile . ${multi_basedir}/config-ml.in
28306 esac ;;
28307 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
28308 # Autoconf 2.62 quotes --file arguments for eval, but not when files
28309 # are listed without --file. Let's play safe and only enable the eval
28310 # if we detect the quoting.
28311 case $CONFIG_FILES in
28312 *\'*) eval set x "$CONFIG_FILES" ;;
28313 *) set x $CONFIG_FILES ;;
28314 esac
28315 shift
28316 for mf
28318 # Strip MF so we end up with the name of the file.
28319 mf=`echo "$mf" | sed -e 's/:.*$//'`
28320 # Check whether this is an Automake generated Makefile or not.
28321 # We used to match only the files named `Makefile.in', but
28322 # some people rename them; so instead we look at the file content.
28323 # Grep'ing the first line is not enough: some people post-process
28324 # each Makefile.in and add a new line on top of each file to say so.
28325 # Grep'ing the whole file is not good either: AIX grep has a line
28326 # limit of 2048, but all sed's we know have understand at least 4000.
28327 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
28328 dirpart=`$as_dirname -- "$mf" ||
28329 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28330 X"$mf" : 'X\(//\)[^/]' \| \
28331 X"$mf" : 'X\(//\)$' \| \
28332 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28333 $as_echo X"$mf" |
28334 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28335 s//\1/
28338 /^X\(\/\/\)[^/].*/{
28339 s//\1/
28342 /^X\(\/\/\)$/{
28343 s//\1/
28346 /^X\(\/\).*/{
28347 s//\1/
28350 s/.*/./; q'`
28351 else
28352 continue
28354 # Extract the definition of DEPDIR, am__include, and am__quote
28355 # from the Makefile without running `make'.
28356 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28357 test -z "$DEPDIR" && continue
28358 am__include=`sed -n 's/^am__include = //p' < "$mf"`
28359 test -z "am__include" && continue
28360 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28361 # When using ansi2knr, U may be empty or an underscore; expand it
28362 U=`sed -n 's/^U = //p' < "$mf"`
28363 # Find all dependency output files, they are included files with
28364 # $(DEPDIR) in their names. We invoke sed twice because it is the
28365 # simplest approach to changing $(DEPDIR) to its actual value in the
28366 # expansion.
28367 for file in `sed -n "
28368 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28369 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28370 # Make sure the directory exists.
28371 test -f "$dirpart/$file" && continue
28372 fdir=`$as_dirname -- "$file" ||
28373 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28374 X"$file" : 'X\(//\)[^/]' \| \
28375 X"$file" : 'X\(//\)$' \| \
28376 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28377 $as_echo X"$file" |
28378 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28379 s//\1/
28382 /^X\(\/\/\)[^/].*/{
28383 s//\1/
28386 /^X\(\/\/\)$/{
28387 s//\1/
28390 /^X\(\/\).*/{
28391 s//\1/
28394 s/.*/./; q'`
28395 as_dir=$dirpart/$fdir; as_fn_mkdir_p
28396 # echo "creating $dirpart/$file"
28397 echo '# dummy' > "$dirpart/$file"
28398 done
28399 done
28402 "libtool":C)
28404 # See if we are running on zsh, and set the options which allow our
28405 # commands through without removal of \ escapes.
28406 if test -n "${ZSH_VERSION+set}" ; then
28407 setopt NO_GLOB_SUBST
28410 cfgfile="${ofile}T"
28411 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
28412 $RM "$cfgfile"
28414 cat <<_LT_EOF >> "$cfgfile"
28415 #! $SHELL
28417 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
28418 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
28419 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
28420 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
28422 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
28423 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
28424 # Written by Gordon Matzigkeit, 1996
28426 # This file is part of GNU Libtool.
28428 # GNU Libtool is free software; you can redistribute it and/or
28429 # modify it under the terms of the GNU General Public License as
28430 # published by the Free Software Foundation; either version 2 of
28431 # the License, or (at your option) any later version.
28433 # As a special exception to the GNU General Public License,
28434 # if you distribute this file as part of a program or library that
28435 # is built using GNU Libtool, you may include this file under the
28436 # same distribution terms that you use for the rest of that program.
28438 # GNU Libtool is distributed in the hope that it will be useful,
28439 # but WITHOUT ANY WARRANTY; without even the implied warranty of
28440 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28441 # GNU General Public License for more details.
28443 # You should have received a copy of the GNU General Public License
28444 # along with GNU Libtool; see the file COPYING. If not, a copy
28445 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
28446 # obtained by writing to the Free Software Foundation, Inc.,
28447 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
28450 # The names of the tagged configurations supported by this script.
28451 available_tags="FC "
28453 # ### BEGIN LIBTOOL CONFIG
28455 # Which release of libtool.m4 was used?
28456 macro_version=$macro_version
28457 macro_revision=$macro_revision
28459 # Whether or not to build shared libraries.
28460 build_libtool_libs=$enable_shared
28462 # Whether or not to build static libraries.
28463 build_old_libs=$enable_static
28465 # What type of objects to build.
28466 pic_mode=$pic_mode
28468 # Whether or not to optimize for fast installation.
28469 fast_install=$enable_fast_install
28471 # Shell to use when invoking shell scripts.
28472 SHELL=$lt_SHELL
28474 # An echo program that protects backslashes.
28475 ECHO=$lt_ECHO
28477 # The host system.
28478 host_alias=$host_alias
28479 host=$host
28480 host_os=$host_os
28482 # The build system.
28483 build_alias=$build_alias
28484 build=$build
28485 build_os=$build_os
28487 # A sed program that does not truncate output.
28488 SED=$lt_SED
28490 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
28491 Xsed="\$SED -e 1s/^X//"
28493 # A grep program that handles long lines.
28494 GREP=$lt_GREP
28496 # An ERE matcher.
28497 EGREP=$lt_EGREP
28499 # A literal string matcher.
28500 FGREP=$lt_FGREP
28502 # A BSD- or MS-compatible name lister.
28503 NM=$lt_NM
28505 # Whether we need soft or hard links.
28506 LN_S=$lt_LN_S
28508 # What is the maximum length of a command?
28509 max_cmd_len=$max_cmd_len
28511 # Object file suffix (normally "o").
28512 objext=$ac_objext
28514 # Executable file suffix (normally "").
28515 exeext=$exeext
28517 # whether the shell understands "unset".
28518 lt_unset=$lt_unset
28520 # turn spaces into newlines.
28521 SP2NL=$lt_lt_SP2NL
28523 # turn newlines into spaces.
28524 NL2SP=$lt_lt_NL2SP
28526 # An object symbol dumper.
28527 OBJDUMP=$lt_OBJDUMP
28529 # Method to check whether dependent libraries are shared objects.
28530 deplibs_check_method=$lt_deplibs_check_method
28532 # Command to use when deplibs_check_method == "file_magic".
28533 file_magic_cmd=$lt_file_magic_cmd
28535 # The archiver.
28536 AR=$lt_AR
28537 AR_FLAGS=$lt_AR_FLAGS
28539 # A symbol stripping program.
28540 STRIP=$lt_STRIP
28542 # Commands used to install an old-style archive.
28543 RANLIB=$lt_RANLIB
28544 old_postinstall_cmds=$lt_old_postinstall_cmds
28545 old_postuninstall_cmds=$lt_old_postuninstall_cmds
28547 # Whether to use a lock for old archive extraction.
28548 lock_old_archive_extraction=$lock_old_archive_extraction
28550 # A C compiler.
28551 LTCC=$lt_CC
28553 # LTCC compiler flags.
28554 LTCFLAGS=$lt_CFLAGS
28556 # Take the output of nm and produce a listing of raw symbols and C names.
28557 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28559 # Transform the output of nm in a proper C declaration.
28560 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28562 # Transform the output of nm in a C name address pair.
28563 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28565 # Transform the output of nm in a C name address pair when lib prefix is needed.
28566 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28568 # The name of the directory that contains temporary libtool files.
28569 objdir=$objdir
28571 # Used to examine libraries when file_magic_cmd begins with "file".
28572 MAGIC_CMD=$MAGIC_CMD
28574 # Must we lock files when doing compilation?
28575 need_locks=$lt_need_locks
28577 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28578 DSYMUTIL=$lt_DSYMUTIL
28580 # Tool to change global to local symbols on Mac OS X.
28581 NMEDIT=$lt_NMEDIT
28583 # Tool to manipulate fat objects and archives on Mac OS X.
28584 LIPO=$lt_LIPO
28586 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
28587 OTOOL=$lt_OTOOL
28589 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28590 OTOOL64=$lt_OTOOL64
28592 # Old archive suffix (normally "a").
28593 libext=$libext
28595 # Shared library suffix (normally ".so").
28596 shrext_cmds=$lt_shrext_cmds
28598 # The commands to extract the exported symbol list from a shared archive.
28599 extract_expsyms_cmds=$lt_extract_expsyms_cmds
28601 # Variables whose values should be saved in libtool wrapper scripts and
28602 # restored at link time.
28603 variables_saved_for_relink=$lt_variables_saved_for_relink
28605 # Do we need the "lib" prefix for modules?
28606 need_lib_prefix=$need_lib_prefix
28608 # Do we need a version for libraries?
28609 need_version=$need_version
28611 # Library versioning type.
28612 version_type=$version_type
28614 # Shared library runtime path variable.
28615 runpath_var=$runpath_var
28617 # Shared library path variable.
28618 shlibpath_var=$shlibpath_var
28620 # Is shlibpath searched before the hard-coded library search path?
28621 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28623 # Format of library name prefix.
28624 libname_spec=$lt_libname_spec
28626 # List of archive names. First name is the real one, the rest are links.
28627 # The last name is the one that the linker finds with -lNAME
28628 library_names_spec=$lt_library_names_spec
28630 # The coded name of the library, if different from the real name.
28631 soname_spec=$lt_soname_spec
28633 # Permission mode override for installation of shared libraries.
28634 install_override_mode=$lt_install_override_mode
28636 # Command to use after installation of a shared archive.
28637 postinstall_cmds=$lt_postinstall_cmds
28639 # Command to use after uninstallation of a shared archive.
28640 postuninstall_cmds=$lt_postuninstall_cmds
28642 # Commands used to finish a libtool library installation in a directory.
28643 finish_cmds=$lt_finish_cmds
28645 # As "finish_cmds", except a single script fragment to be evaled but
28646 # not shown.
28647 finish_eval=$lt_finish_eval
28649 # Whether we should hardcode library paths into libraries.
28650 hardcode_into_libs=$hardcode_into_libs
28652 # Compile-time system search path for libraries.
28653 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28655 # Run-time system search path for libraries.
28656 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
28658 # Whether dlopen is supported.
28659 dlopen_support=$enable_dlopen
28661 # Whether dlopen of programs is supported.
28662 dlopen_self=$enable_dlopen_self
28664 # Whether dlopen of statically linked programs is supported.
28665 dlopen_self_static=$enable_dlopen_self_static
28667 # Commands to strip libraries.
28668 old_striplib=$lt_old_striplib
28669 striplib=$lt_striplib
28672 # The linker used to build libraries.
28673 LD=$lt_LD
28675 # How to create reloadable object files.
28676 reload_flag=$lt_reload_flag
28677 reload_cmds=$lt_reload_cmds
28679 # Commands used to build an old-style archive.
28680 old_archive_cmds=$lt_old_archive_cmds
28682 # A language specific compiler.
28683 CC=$lt_compiler
28685 # Is the compiler the GNU compiler?
28686 with_gcc=$GCC
28688 # Compiler flag to turn off builtin functions.
28689 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
28691 # How to pass a linker flag through the compiler.
28692 wl=$lt_lt_prog_compiler_wl
28694 # Additional compiler flags for building library objects.
28695 pic_flag=$lt_lt_prog_compiler_pic
28697 # Compiler flag to prevent dynamic linking.
28698 link_static_flag=$lt_lt_prog_compiler_static
28700 # Does compiler simultaneously support -c and -o options?
28701 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
28703 # Whether or not to add -lc for building shared libraries.
28704 build_libtool_need_lc=$archive_cmds_need_lc
28706 # Whether or not to disallow shared libs when runtime libs are static.
28707 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
28709 # Compiler flag to allow reflexive dlopens.
28710 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
28712 # Compiler flag to generate shared objects directly from archives.
28713 whole_archive_flag_spec=$lt_whole_archive_flag_spec
28715 # Whether the compiler copes with passing no objects directly.
28716 compiler_needs_object=$lt_compiler_needs_object
28718 # Create an old-style archive from a shared archive.
28719 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
28721 # Create a temporary old-style archive to link instead of a shared archive.
28722 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
28724 # Commands used to build a shared archive.
28725 archive_cmds=$lt_archive_cmds
28726 archive_expsym_cmds=$lt_archive_expsym_cmds
28728 # Commands used to build a loadable module if different from building
28729 # a shared archive.
28730 module_cmds=$lt_module_cmds
28731 module_expsym_cmds=$lt_module_expsym_cmds
28733 # Whether we are building with GNU ld or not.
28734 with_gnu_ld=$lt_with_gnu_ld
28736 # Flag that allows shared libraries with undefined symbols to be built.
28737 allow_undefined_flag=$lt_allow_undefined_flag
28739 # Flag that enforces no undefined symbols.
28740 no_undefined_flag=$lt_no_undefined_flag
28742 # Flag to hardcode \$libdir into a binary during linking.
28743 # This must work even if \$libdir does not exist
28744 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
28746 # If ld is used when linking, flag to hardcode \$libdir into a binary
28747 # during linking. This must work even if \$libdir does not exist.
28748 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
28750 # Whether we need a single "-rpath" flag with a separated argument.
28751 hardcode_libdir_separator=$lt_hardcode_libdir_separator
28753 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28754 # DIR into the resulting binary.
28755 hardcode_direct=$hardcode_direct
28757 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28758 # DIR into the resulting binary and the resulting library dependency is
28759 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28760 # library is relocated.
28761 hardcode_direct_absolute=$hardcode_direct_absolute
28763 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28764 # into the resulting binary.
28765 hardcode_minus_L=$hardcode_minus_L
28767 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28768 # into the resulting binary.
28769 hardcode_shlibpath_var=$hardcode_shlibpath_var
28771 # Set to "yes" if building a shared library automatically hardcodes DIR
28772 # into the library and all subsequent libraries and executables linked
28773 # against it.
28774 hardcode_automatic=$hardcode_automatic
28776 # Set to yes if linker adds runtime paths of dependent libraries
28777 # to runtime path list.
28778 inherit_rpath=$inherit_rpath
28780 # Whether libtool must link a program against all its dependency libraries.
28781 link_all_deplibs=$link_all_deplibs
28783 # Fix the shell variable \$srcfile for the compiler.
28784 fix_srcfile_path=$lt_fix_srcfile_path
28786 # Set to "yes" if exported symbols are required.
28787 always_export_symbols=$always_export_symbols
28789 # The commands to list exported symbols.
28790 export_symbols_cmds=$lt_export_symbols_cmds
28792 # Symbols that should not be listed in the preloaded symbols.
28793 exclude_expsyms=$lt_exclude_expsyms
28795 # Symbols that must always be exported.
28796 include_expsyms=$lt_include_expsyms
28798 # Commands necessary for linking programs (against libraries) with templates.
28799 prelink_cmds=$lt_prelink_cmds
28801 # Specify filename containing input files.
28802 file_list_spec=$lt_file_list_spec
28804 # How to hardcode a shared library path into an executable.
28805 hardcode_action=$hardcode_action
28807 # The directories searched by this compiler when creating a shared library.
28808 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
28810 # Dependencies to place before and after the objects being linked to
28811 # create a shared library.
28812 predep_objects=$lt_predep_objects
28813 postdep_objects=$lt_postdep_objects
28814 predeps=$lt_predeps
28815 postdeps=$lt_postdeps
28817 # The library search path used internally by the compiler when linking
28818 # a shared library.
28819 compiler_lib_search_path=$lt_compiler_lib_search_path
28821 # ### END LIBTOOL CONFIG
28823 _LT_EOF
28825 case $host_os in
28826 aix3*)
28827 cat <<\_LT_EOF >> "$cfgfile"
28828 # AIX sometimes has problems with the GCC collect2 program. For some
28829 # reason, if we set the COLLECT_NAMES environment variable, the problems
28830 # vanish in a puff of smoke.
28831 if test "X${COLLECT_NAMES+set}" != Xset; then
28832 COLLECT_NAMES=
28833 export COLLECT_NAMES
28835 _LT_EOF
28837 esac
28840 ltmain="$ac_aux_dir/ltmain.sh"
28843 # We use sed instead of cat because bash on DJGPP gets confused if
28844 # if finds mixed CR/LF and LF-only lines. Since sed operates in
28845 # text mode, it properly converts lines to CR/LF. This bash problem
28846 # is reportedly fixed, but why not run on old versions too?
28847 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
28848 || (rm -f "$cfgfile"; exit 1)
28850 case $xsi_shell in
28851 yes)
28852 cat << \_LT_EOF >> "$cfgfile"
28854 # func_dirname file append nondir_replacement
28855 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
28856 # otherwise set result to NONDIR_REPLACEMENT.
28857 func_dirname ()
28859 case ${1} in
28860 */*) func_dirname_result="${1%/*}${2}" ;;
28861 * ) func_dirname_result="${3}" ;;
28862 esac
28865 # func_basename file
28866 func_basename ()
28868 func_basename_result="${1##*/}"
28871 # func_dirname_and_basename file append nondir_replacement
28872 # perform func_basename and func_dirname in a single function
28873 # call:
28874 # dirname: Compute the dirname of FILE. If nonempty,
28875 # add APPEND to the result, otherwise set result
28876 # to NONDIR_REPLACEMENT.
28877 # value returned in "$func_dirname_result"
28878 # basename: Compute filename of FILE.
28879 # value retuned in "$func_basename_result"
28880 # Implementation must be kept synchronized with func_dirname
28881 # and func_basename. For efficiency, we do not delegate to
28882 # those functions but instead duplicate the functionality here.
28883 func_dirname_and_basename ()
28885 case ${1} in
28886 */*) func_dirname_result="${1%/*}${2}" ;;
28887 * ) func_dirname_result="${3}" ;;
28888 esac
28889 func_basename_result="${1##*/}"
28892 # func_stripname prefix suffix name
28893 # strip PREFIX and SUFFIX off of NAME.
28894 # PREFIX and SUFFIX must not contain globbing or regex special
28895 # characters, hashes, percent signs, but SUFFIX may contain a leading
28896 # dot (in which case that matches only a dot).
28897 func_stripname ()
28899 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
28900 # positional parameters, so assign one to ordinary parameter first.
28901 func_stripname_result=${3}
28902 func_stripname_result=${func_stripname_result#"${1}"}
28903 func_stripname_result=${func_stripname_result%"${2}"}
28906 # func_opt_split
28907 func_opt_split ()
28909 func_opt_split_opt=${1%%=*}
28910 func_opt_split_arg=${1#*=}
28913 # func_lo2o object
28914 func_lo2o ()
28916 case ${1} in
28917 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
28918 *) func_lo2o_result=${1} ;;
28919 esac
28922 # func_xform libobj-or-source
28923 func_xform ()
28925 func_xform_result=${1%.*}.lo
28928 # func_arith arithmetic-term...
28929 func_arith ()
28931 func_arith_result=$(( $* ))
28934 # func_len string
28935 # STRING may not start with a hyphen.
28936 func_len ()
28938 func_len_result=${#1}
28941 _LT_EOF
28943 *) # Bourne compatible functions.
28944 cat << \_LT_EOF >> "$cfgfile"
28946 # func_dirname file append nondir_replacement
28947 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
28948 # otherwise set result to NONDIR_REPLACEMENT.
28949 func_dirname ()
28951 # Extract subdirectory from the argument.
28952 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
28953 if test "X$func_dirname_result" = "X${1}"; then
28954 func_dirname_result="${3}"
28955 else
28956 func_dirname_result="$func_dirname_result${2}"
28960 # func_basename file
28961 func_basename ()
28963 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
28967 # func_stripname prefix suffix name
28968 # strip PREFIX and SUFFIX off of NAME.
28969 # PREFIX and SUFFIX must not contain globbing or regex special
28970 # characters, hashes, percent signs, but SUFFIX may contain a leading
28971 # dot (in which case that matches only a dot).
28972 # func_strip_suffix prefix name
28973 func_stripname ()
28975 case ${2} in
28976 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
28977 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
28978 esac
28981 # sed scripts:
28982 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
28983 my_sed_long_arg='1s/^-[^=]*=//'
28985 # func_opt_split
28986 func_opt_split ()
28988 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
28989 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
28992 # func_lo2o object
28993 func_lo2o ()
28995 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
28998 # func_xform libobj-or-source
28999 func_xform ()
29001 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
29004 # func_arith arithmetic-term...
29005 func_arith ()
29007 func_arith_result=`expr "$@"`
29010 # func_len string
29011 # STRING may not start with a hyphen.
29012 func_len ()
29014 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
29017 _LT_EOF
29018 esac
29020 case $lt_shell_append in
29021 yes)
29022 cat << \_LT_EOF >> "$cfgfile"
29024 # func_append var value
29025 # Append VALUE to the end of shell variable VAR.
29026 func_append ()
29028 eval "$1+=\$2"
29030 _LT_EOF
29033 cat << \_LT_EOF >> "$cfgfile"
29035 # func_append var value
29036 # Append VALUE to the end of shell variable VAR.
29037 func_append ()
29039 eval "$1=\$$1\$2"
29042 _LT_EOF
29044 esac
29047 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
29048 || (rm -f "$cfgfile"; exit 1)
29050 mv -f "$cfgfile" "$ofile" ||
29051 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
29052 chmod +x "$ofile"
29055 cat <<_LT_EOF >> "$ofile"
29057 # ### BEGIN LIBTOOL TAG CONFIG: FC
29059 # The linker used to build libraries.
29060 LD=$lt_LD_FC
29062 # How to create reloadable object files.
29063 reload_flag=$lt_reload_flag_FC
29064 reload_cmds=$lt_reload_cmds_FC
29066 # Commands used to build an old-style archive.
29067 old_archive_cmds=$lt_old_archive_cmds_FC
29069 # A language specific compiler.
29070 CC=$lt_compiler_FC
29072 # Is the compiler the GNU compiler?
29073 with_gcc=$GCC_FC
29075 # Compiler flag to turn off builtin functions.
29076 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
29078 # How to pass a linker flag through the compiler.
29079 wl=$lt_lt_prog_compiler_wl_FC
29081 # Additional compiler flags for building library objects.
29082 pic_flag=$lt_lt_prog_compiler_pic_FC
29084 # Compiler flag to prevent dynamic linking.
29085 link_static_flag=$lt_lt_prog_compiler_static_FC
29087 # Does compiler simultaneously support -c and -o options?
29088 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
29090 # Whether or not to add -lc for building shared libraries.
29091 build_libtool_need_lc=$archive_cmds_need_lc_FC
29093 # Whether or not to disallow shared libs when runtime libs are static.
29094 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
29096 # Compiler flag to allow reflexive dlopens.
29097 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
29099 # Compiler flag to generate shared objects directly from archives.
29100 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
29102 # Whether the compiler copes with passing no objects directly.
29103 compiler_needs_object=$lt_compiler_needs_object_FC
29105 # Create an old-style archive from a shared archive.
29106 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
29108 # Create a temporary old-style archive to link instead of a shared archive.
29109 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
29111 # Commands used to build a shared archive.
29112 archive_cmds=$lt_archive_cmds_FC
29113 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
29115 # Commands used to build a loadable module if different from building
29116 # a shared archive.
29117 module_cmds=$lt_module_cmds_FC
29118 module_expsym_cmds=$lt_module_expsym_cmds_FC
29120 # Whether we are building with GNU ld or not.
29121 with_gnu_ld=$lt_with_gnu_ld_FC
29123 # Flag that allows shared libraries with undefined symbols to be built.
29124 allow_undefined_flag=$lt_allow_undefined_flag_FC
29126 # Flag that enforces no undefined symbols.
29127 no_undefined_flag=$lt_no_undefined_flag_FC
29129 # Flag to hardcode \$libdir into a binary during linking.
29130 # This must work even if \$libdir does not exist
29131 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
29133 # If ld is used when linking, flag to hardcode \$libdir into a binary
29134 # during linking. This must work even if \$libdir does not exist.
29135 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
29137 # Whether we need a single "-rpath" flag with a separated argument.
29138 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
29140 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29141 # DIR into the resulting binary.
29142 hardcode_direct=$hardcode_direct_FC
29144 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29145 # DIR into the resulting binary and the resulting library dependency is
29146 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29147 # library is relocated.
29148 hardcode_direct_absolute=$hardcode_direct_absolute_FC
29150 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29151 # into the resulting binary.
29152 hardcode_minus_L=$hardcode_minus_L_FC
29154 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29155 # into the resulting binary.
29156 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
29158 # Set to "yes" if building a shared library automatically hardcodes DIR
29159 # into the library and all subsequent libraries and executables linked
29160 # against it.
29161 hardcode_automatic=$hardcode_automatic_FC
29163 # Set to yes if linker adds runtime paths of dependent libraries
29164 # to runtime path list.
29165 inherit_rpath=$inherit_rpath_FC
29167 # Whether libtool must link a program against all its dependency libraries.
29168 link_all_deplibs=$link_all_deplibs_FC
29170 # Fix the shell variable \$srcfile for the compiler.
29171 fix_srcfile_path=$lt_fix_srcfile_path_FC
29173 # Set to "yes" if exported symbols are required.
29174 always_export_symbols=$always_export_symbols_FC
29176 # The commands to list exported symbols.
29177 export_symbols_cmds=$lt_export_symbols_cmds_FC
29179 # Symbols that should not be listed in the preloaded symbols.
29180 exclude_expsyms=$lt_exclude_expsyms_FC
29182 # Symbols that must always be exported.
29183 include_expsyms=$lt_include_expsyms_FC
29185 # Commands necessary for linking programs (against libraries) with templates.
29186 prelink_cmds=$lt_prelink_cmds_FC
29188 # Specify filename containing input files.
29189 file_list_spec=$lt_file_list_spec_FC
29191 # How to hardcode a shared library path into an executable.
29192 hardcode_action=$hardcode_action_FC
29194 # The directories searched by this compiler when creating a shared library.
29195 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
29197 # Dependencies to place before and after the objects being linked to
29198 # create a shared library.
29199 predep_objects=$lt_predep_objects_FC
29200 postdep_objects=$lt_postdep_objects_FC
29201 predeps=$lt_predeps_FC
29202 postdeps=$lt_postdeps_FC
29204 # The library search path used internally by the compiler when linking
29205 # a shared library.
29206 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
29208 # ### END LIBTOOL TAG CONFIG: FC
29209 _LT_EOF
29212 "gstdint.h":C)
29213 if test "$GCC" = yes; then
29214 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
29215 else
29216 echo "/* generated for $CC */" > tmp-stdint.h
29219 sed 's/^ *//' >> tmp-stdint.h <<EOF
29221 #ifndef GCC_GENERATED_STDINT_H
29222 #define GCC_GENERATED_STDINT_H 1
29224 #include <sys/types.h>
29227 if test "$acx_cv_header_stdint" != stdint.h; then
29228 echo "#include <stddef.h>" >> tmp-stdint.h
29230 if test "$acx_cv_header_stdint" != stddef.h; then
29231 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
29234 sed 's/^ *//' >> tmp-stdint.h <<EOF
29235 /* glibc uses these symbols as guards to prevent redefinitions. */
29236 #ifdef __int8_t_defined
29237 #define _INT8_T
29238 #define _INT16_T
29239 #define _INT32_T
29240 #endif
29241 #ifdef __uint32_t_defined
29242 #define _UINT32_T
29243 #endif
29247 # ----------------- done header, emit basic int types -------------
29248 if test "$acx_cv_header_stdint" = stddef.h; then
29249 sed 's/^ *//' >> tmp-stdint.h <<EOF
29251 #ifndef _UINT8_T
29252 #define _UINT8_T
29253 #ifndef __uint8_t_defined
29254 #define __uint8_t_defined
29255 #ifndef uint8_t
29256 typedef unsigned $acx_cv_type_int8_t uint8_t;
29257 #endif
29258 #endif
29259 #endif
29261 #ifndef _UINT16_T
29262 #define _UINT16_T
29263 #ifndef __uint16_t_defined
29264 #define __uint16_t_defined
29265 #ifndef uint16_t
29266 typedef unsigned $acx_cv_type_int16_t uint16_t;
29267 #endif
29268 #endif
29269 #endif
29271 #ifndef _UINT32_T
29272 #define _UINT32_T
29273 #ifndef __uint32_t_defined
29274 #define __uint32_t_defined
29275 #ifndef uint32_t
29276 typedef unsigned $acx_cv_type_int32_t uint32_t;
29277 #endif
29278 #endif
29279 #endif
29281 #ifndef _INT8_T
29282 #define _INT8_T
29283 #ifndef __int8_t_defined
29284 #define __int8_t_defined
29285 #ifndef int8_t
29286 typedef $acx_cv_type_int8_t int8_t;
29287 #endif
29288 #endif
29289 #endif
29291 #ifndef _INT16_T
29292 #define _INT16_T
29293 #ifndef __int16_t_defined
29294 #define __int16_t_defined
29295 #ifndef int16_t
29296 typedef $acx_cv_type_int16_t int16_t;
29297 #endif
29298 #endif
29299 #endif
29301 #ifndef _INT32_T
29302 #define _INT32_T
29303 #ifndef __int32_t_defined
29304 #define __int32_t_defined
29305 #ifndef int32_t
29306 typedef $acx_cv_type_int32_t int32_t;
29307 #endif
29308 #endif
29309 #endif
29311 elif test "$ac_cv_type_u_int32_t" = yes; then
29312 sed 's/^ *//' >> tmp-stdint.h <<EOF
29314 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
29315 #ifndef _INT8_T
29316 #define _INT8_T
29317 #endif
29318 #ifndef _INT16_T
29319 #define _INT16_T
29320 #endif
29321 #ifndef _INT32_T
29322 #define _INT32_T
29323 #endif
29325 #ifndef _UINT8_T
29326 #define _UINT8_T
29327 #ifndef __uint8_t_defined
29328 #define __uint8_t_defined
29329 #ifndef uint8_t
29330 typedef u_int8_t uint8_t;
29331 #endif
29332 #endif
29333 #endif
29335 #ifndef _UINT16_T
29336 #define _UINT16_T
29337 #ifndef __uint16_t_defined
29338 #define __uint16_t_defined
29339 #ifndef uint16_t
29340 typedef u_int16_t uint16_t;
29341 #endif
29342 #endif
29343 #endif
29345 #ifndef _UINT32_T
29346 #define _UINT32_T
29347 #ifndef __uint32_t_defined
29348 #define __uint32_t_defined
29349 #ifndef uint32_t
29350 typedef u_int32_t uint32_t;
29351 #endif
29352 #endif
29353 #endif
29355 else
29356 sed 's/^ *//' >> tmp-stdint.h <<EOF
29358 /* Some systems have guard macros to prevent redefinitions, define them. */
29359 #ifndef _INT8_T
29360 #define _INT8_T
29361 #endif
29362 #ifndef _INT16_T
29363 #define _INT16_T
29364 #endif
29365 #ifndef _INT32_T
29366 #define _INT32_T
29367 #endif
29368 #ifndef _UINT8_T
29369 #define _UINT8_T
29370 #endif
29371 #ifndef _UINT16_T
29372 #define _UINT16_T
29373 #endif
29374 #ifndef _UINT32_T
29375 #define _UINT32_T
29376 #endif
29380 # ------------- done basic int types, emit int64_t types ------------
29381 if test "$ac_cv_type_uint64_t" = yes; then
29382 sed 's/^ *//' >> tmp-stdint.h <<EOF
29384 /* system headers have good uint64_t and int64_t */
29385 #ifndef _INT64_T
29386 #define _INT64_T
29387 #endif
29388 #ifndef _UINT64_T
29389 #define _UINT64_T
29390 #endif
29392 elif test "$ac_cv_type_u_int64_t" = yes; then
29393 sed 's/^ *//' >> tmp-stdint.h <<EOF
29395 /* system headers have an u_int64_t (and int64_t) */
29396 #ifndef _INT64_T
29397 #define _INT64_T
29398 #endif
29399 #ifndef _UINT64_T
29400 #define _UINT64_T
29401 #ifndef __uint64_t_defined
29402 #define __uint64_t_defined
29403 #ifndef uint64_t
29404 typedef u_int64_t uint64_t;
29405 #endif
29406 #endif
29407 #endif
29409 elif test -n "$acx_cv_type_int64_t"; then
29410 sed 's/^ *//' >> tmp-stdint.h <<EOF
29412 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
29413 #ifndef _INT64_T
29414 #define _INT64_T
29415 #ifndef int64_t
29416 typedef $acx_cv_type_int64_t int64_t;
29417 #endif
29418 #endif
29419 #ifndef _UINT64_T
29420 #define _UINT64_T
29421 #ifndef __uint64_t_defined
29422 #define __uint64_t_defined
29423 #ifndef uint64_t
29424 typedef unsigned $acx_cv_type_int64_t uint64_t;
29425 #endif
29426 #endif
29427 #endif
29429 else
29430 sed 's/^ *//' >> tmp-stdint.h <<EOF
29432 /* some common heuristics for int64_t, using compiler-specific tests */
29433 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
29434 #ifndef _INT64_T
29435 #define _INT64_T
29436 #ifndef __int64_t_defined
29437 #ifndef int64_t
29438 typedef long long int64_t;
29439 #endif
29440 #endif
29441 #endif
29442 #ifndef _UINT64_T
29443 #define _UINT64_T
29444 #ifndef uint64_t
29445 typedef unsigned long long uint64_t;
29446 #endif
29447 #endif
29449 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
29450 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
29451 does not implement __extension__. But that compiler doesn't define
29452 __GNUC_MINOR__. */
29453 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
29454 # define __extension__
29455 # endif
29457 # ifndef _INT64_T
29458 # define _INT64_T
29459 # ifndef int64_t
29460 __extension__ typedef long long int64_t;
29461 # endif
29462 # endif
29463 # ifndef _UINT64_T
29464 # define _UINT64_T
29465 # ifndef uint64_t
29466 __extension__ typedef unsigned long long uint64_t;
29467 # endif
29468 # endif
29470 #elif !defined __STRICT_ANSI__
29471 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
29473 # ifndef _INT64_T
29474 # define _INT64_T
29475 # ifndef int64_t
29476 typedef __int64 int64_t;
29477 # endif
29478 # endif
29479 # ifndef _UINT64_T
29480 # define _UINT64_T
29481 # ifndef uint64_t
29482 typedef unsigned __int64 uint64_t;
29483 # endif
29484 # endif
29485 # endif /* compiler */
29487 #endif /* ANSI version */
29491 # ------------- done int64_t types, emit intptr types ------------
29492 if test "$ac_cv_type_uintptr_t" != yes; then
29493 sed 's/^ *//' >> tmp-stdint.h <<EOF
29495 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
29496 #ifndef __uintptr_t_defined
29497 #ifndef uintptr_t
29498 typedef u$acx_cv_type_intptr_t uintptr_t;
29499 #endif
29500 #endif
29501 #ifndef __intptr_t_defined
29502 #ifndef intptr_t
29503 typedef $acx_cv_type_intptr_t intptr_t;
29504 #endif
29505 #endif
29509 # ------------- done intptr types, emit int_least types ------------
29510 if test "$ac_cv_type_int_least32_t" != yes; then
29511 sed 's/^ *//' >> tmp-stdint.h <<EOF
29513 /* Define int_least types */
29514 typedef int8_t int_least8_t;
29515 typedef int16_t int_least16_t;
29516 typedef int32_t int_least32_t;
29517 #ifdef _INT64_T
29518 typedef int64_t int_least64_t;
29519 #endif
29521 typedef uint8_t uint_least8_t;
29522 typedef uint16_t uint_least16_t;
29523 typedef uint32_t uint_least32_t;
29524 #ifdef _UINT64_T
29525 typedef uint64_t uint_least64_t;
29526 #endif
29530 # ------------- done intptr types, emit int_fast types ------------
29531 if test "$ac_cv_type_int_fast32_t" != yes; then
29532 sed 's/^ *//' >> tmp-stdint.h <<EOF
29534 /* Define int_fast types. short is often slow */
29535 typedef int8_t int_fast8_t;
29536 typedef int int_fast16_t;
29537 typedef int32_t int_fast32_t;
29538 #ifdef _INT64_T
29539 typedef int64_t int_fast64_t;
29540 #endif
29542 typedef uint8_t uint_fast8_t;
29543 typedef unsigned int uint_fast16_t;
29544 typedef uint32_t uint_fast32_t;
29545 #ifdef _UINT64_T
29546 typedef uint64_t uint_fast64_t;
29547 #endif
29551 if test "$ac_cv_type_uintmax_t" != yes; then
29552 sed 's/^ *//' >> tmp-stdint.h <<EOF
29554 /* Define intmax based on what we found */
29555 #ifndef intmax_t
29556 #ifdef _INT64_T
29557 typedef int64_t intmax_t;
29558 #else
29559 typedef long intmax_t;
29560 #endif
29561 #endif
29562 #ifndef uintmax_t
29563 #ifdef _UINT64_T
29564 typedef uint64_t uintmax_t;
29565 #else
29566 typedef unsigned long uintmax_t;
29567 #endif
29568 #endif
29572 sed 's/^ *//' >> tmp-stdint.h <<EOF
29574 #endif /* GCC_GENERATED_STDINT_H */
29577 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
29578 rm -f tmp-stdint.h
29579 else
29580 mv -f tmp-stdint.h gstdint.h
29585 esac
29586 done # for ac_tag
29589 as_fn_exit 0
29590 _ACEOF
29591 ac_clean_files=$ac_clean_files_save
29593 test $ac_write_fail = 0 ||
29594 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29597 # configure is writing to config.log, and then calls config.status.
29598 # config.status does its own redirection, appending to config.log.
29599 # Unfortunately, on DOS this fails, as config.log is still kept open
29600 # by configure, so config.status won't be able to write to it; its
29601 # output is simply discarded. So we exec the FD to /dev/null,
29602 # effectively closing config.log, so it can be properly (re)opened and
29603 # appended to by config.status. When coming back to configure, we
29604 # need to make the FD available again.
29605 if test "$no_create" != yes; then
29606 ac_cs_success=:
29607 ac_config_status_args=
29608 test "$silent" = yes &&
29609 ac_config_status_args="$ac_config_status_args --quiet"
29610 exec 5>/dev/null
29611 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29612 exec 5>>config.log
29613 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29614 # would make configure fail if this is the last instruction.
29615 $ac_cs_success || as_fn_exit $?
29617 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29618 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29619 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}