2014-11-21 Michael Meissner <meissner@linux.vnet.ibm.com>
[official-gcc.git] / libgfortran / configure
blobdc68af54dbd14da307608a136fc41a394201be44
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for GNU Fortran Runtime Library 0.3.
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
7 # Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 case $0 in #((
91 *[\\/]* ) as_myself=$0 ;;
92 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
93 for as_dir in $PATH
95 IFS=$as_save_IFS
96 test -z "$as_dir" && as_dir=.
97 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
98 done
99 IFS=$as_save_IFS
102 esac
103 # We did not find ourselves, most probably we were run as `sh COMMAND'
104 # in which case we are not to be found in the path.
105 if test "x$as_myself" = x; then
106 as_myself=$0
108 if test ! -f "$as_myself"; then
109 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
110 exit 1
113 # Unset variables that we do not need and which cause bugs (e.g. in
114 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
115 # suppresses any "Segmentation fault" message there. '((' could
116 # trigger a bug in pdksh 5.2.14.
117 for as_var in BASH_ENV ENV MAIL MAILPATH
118 do eval test x\${$as_var+set} = xset \
119 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
120 done
121 PS1='$ '
122 PS2='> '
123 PS4='+ '
125 # NLS nuisances.
126 LC_ALL=C
127 export LC_ALL
128 LANGUAGE=C
129 export LANGUAGE
131 # CDPATH.
132 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
134 if test "x$CONFIG_SHELL" = x; then
135 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
136 emulate sh
137 NULLCMD=:
138 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
139 # is contrary to our usage. Disable this feature.
140 alias -g '\${1+\"\$@\"}'='\"\$@\"'
141 setopt NO_GLOB_SUBST
142 else
143 case \`(set -o) 2>/dev/null\` in #(
144 *posix*) :
145 set -o posix ;; #(
146 *) :
148 esac
151 as_required="as_fn_return () { (exit \$1); }
152 as_fn_success () { as_fn_return 0; }
153 as_fn_failure () { as_fn_return 1; }
154 as_fn_ret_success () { return 0; }
155 as_fn_ret_failure () { return 1; }
157 exitcode=0
158 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
159 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
160 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
161 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
162 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
164 else
165 exitcode=1; echo positional parameters were not saved.
167 test x\$exitcode = x0 || exit 1"
168 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
169 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
170 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
171 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
172 test \$(( 1 + 1 )) = 2 || exit 1
174 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
175 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
176 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
177 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
178 PATH=/empty FPATH=/empty; export PATH FPATH
179 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
180 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
181 if (eval "$as_required") 2>/dev/null; then :
182 as_have_required=yes
183 else
184 as_have_required=no
186 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
188 else
189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
190 as_found=false
191 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
193 IFS=$as_save_IFS
194 test -z "$as_dir" && as_dir=.
195 as_found=:
196 case $as_dir in #(
198 for as_base in sh bash ksh sh5; do
199 # Try only shells that exist, to save several forks.
200 as_shell=$as_dir/$as_base
201 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
202 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
203 CONFIG_SHELL=$as_shell as_have_required=yes
204 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
205 break 2
208 done;;
209 esac
210 as_found=false
211 done
212 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
213 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
214 CONFIG_SHELL=$SHELL as_have_required=yes
215 fi; }
216 IFS=$as_save_IFS
219 if test "x$CONFIG_SHELL" != x; then :
220 # We cannot yet assume a decent shell, so we have to provide a
221 # neutralization value for shells without unset; and this also
222 # works around shells that cannot unset nonexistent variables.
223 BASH_ENV=/dev/null
224 ENV=/dev/null
225 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
226 export CONFIG_SHELL
227 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
230 if test x$as_have_required = xno; then :
231 $as_echo "$0: This script requires a shell more modern than all"
232 $as_echo "$0: the shells that I found on your system."
233 if test x${ZSH_VERSION+set} = xset ; then
234 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
235 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
236 else
237 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
238 $0: including any error possibly output before this
239 $0: message. Then install a modern shell, or manually run
240 $0: the script under such a shell if you do have one."
242 exit 1
246 SHELL=${CONFIG_SHELL-/bin/sh}
247 export SHELL
248 # Unset more variables known to interfere with behavior of common tools.
249 CLICOLOR_FORCE= GREP_OPTIONS=
250 unset CLICOLOR_FORCE GREP_OPTIONS
252 ## --------------------- ##
253 ## M4sh Shell Functions. ##
254 ## --------------------- ##
255 # as_fn_unset VAR
256 # ---------------
257 # Portably unset VAR.
258 as_fn_unset ()
260 { eval $1=; unset $1;}
262 as_unset=as_fn_unset
264 # as_fn_set_status STATUS
265 # -----------------------
266 # Set $? to STATUS, without forking.
267 as_fn_set_status ()
269 return $1
270 } # as_fn_set_status
272 # as_fn_exit STATUS
273 # -----------------
274 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
275 as_fn_exit ()
277 set +e
278 as_fn_set_status $1
279 exit $1
280 } # as_fn_exit
282 # as_fn_mkdir_p
283 # -------------
284 # Create "$as_dir" as a directory, including parents if necessary.
285 as_fn_mkdir_p ()
288 case $as_dir in #(
289 -*) as_dir=./$as_dir;;
290 esac
291 test -d "$as_dir" || eval $as_mkdir_p || {
292 as_dirs=
293 while :; do
294 case $as_dir in #(
295 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
296 *) as_qdir=$as_dir;;
297 esac
298 as_dirs="'$as_qdir' $as_dirs"
299 as_dir=`$as_dirname -- "$as_dir" ||
300 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
301 X"$as_dir" : 'X\(//\)[^/]' \| \
302 X"$as_dir" : 'X\(//\)$' \| \
303 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
304 $as_echo X"$as_dir" |
305 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
306 s//\1/
309 /^X\(\/\/\)[^/].*/{
310 s//\1/
313 /^X\(\/\/\)$/{
314 s//\1/
317 /^X\(\/\).*/{
318 s//\1/
321 s/.*/./; q'`
322 test -d "$as_dir" && break
323 done
324 test -z "$as_dirs" || eval "mkdir $as_dirs"
325 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
328 } # as_fn_mkdir_p
329 # as_fn_append VAR VALUE
330 # ----------------------
331 # Append the text in VALUE to the end of the definition contained in VAR. Take
332 # advantage of any shell optimizations that allow amortized linear growth over
333 # repeated appends, instead of the typical quadratic growth present in naive
334 # implementations.
335 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
336 eval 'as_fn_append ()
338 eval $1+=\$2
340 else
341 as_fn_append ()
343 eval $1=\$$1\$2
345 fi # as_fn_append
347 # as_fn_arith ARG...
348 # ------------------
349 # Perform arithmetic evaluation on the ARGs, and store the result in the
350 # global $as_val. Take advantage of shells that can avoid forks. The arguments
351 # must be portable across $(()) and expr.
352 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
353 eval 'as_fn_arith ()
355 as_val=$(( $* ))
357 else
358 as_fn_arith ()
360 as_val=`expr "$@" || test $? -eq 1`
362 fi # as_fn_arith
365 # as_fn_error ERROR [LINENO LOG_FD]
366 # ---------------------------------
367 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
368 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
369 # script with status $?, using 1 if that was 0.
370 as_fn_error ()
372 as_status=$?; test $as_status -eq 0 && as_status=1
373 if test "$3"; then
374 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
375 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
377 $as_echo "$as_me: error: $1" >&2
378 as_fn_exit $as_status
379 } # as_fn_error
381 if expr a : '\(a\)' >/dev/null 2>&1 &&
382 test "X`expr 00001 : '.*\(...\)'`" = X001; then
383 as_expr=expr
384 else
385 as_expr=false
388 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
389 as_basename=basename
390 else
391 as_basename=false
394 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
395 as_dirname=dirname
396 else
397 as_dirname=false
400 as_me=`$as_basename -- "$0" ||
401 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
402 X"$0" : 'X\(//\)$' \| \
403 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
404 $as_echo X/"$0" |
405 sed '/^.*\/\([^/][^/]*\)\/*$/{
406 s//\1/
409 /^X\/\(\/\/\)$/{
410 s//\1/
413 /^X\/\(\/\).*/{
414 s//\1/
417 s/.*/./; q'`
419 # Avoid depending upon Character Ranges.
420 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
421 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
422 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
423 as_cr_digits='0123456789'
424 as_cr_alnum=$as_cr_Letters$as_cr_digits
427 as_lineno_1=$LINENO as_lineno_1a=$LINENO
428 as_lineno_2=$LINENO as_lineno_2a=$LINENO
429 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
430 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
431 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
440 :lineno
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
450 # Don't try to exec as it changes $[0], causing all sort of problems
451 # (the dirname of $[0] is not the place where we might find the
452 # original and so on. Autoconf is especially sensitive to this).
453 . "./$as_me.lineno"
454 # Exit status is that of the last command.
455 exit
458 ECHO_C= ECHO_N= ECHO_T=
459 case `echo -n x` in #(((((
460 -n*)
461 case `echo 'xy\c'` in
462 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
463 xy) ECHO_C='\c';;
464 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
465 ECHO_T=' ';;
466 esac;;
468 ECHO_N='-n';;
469 esac
471 rm -f conf$$ conf$$.exe conf$$.file
472 if test -d conf$$.dir; then
473 rm -f conf$$.dir/conf$$.file
474 else
475 rm -f conf$$.dir
476 mkdir conf$$.dir 2>/dev/null
478 if (echo >conf$$.file) 2>/dev/null; then
479 if ln -s conf$$.file conf$$ 2>/dev/null; then
480 as_ln_s='ln -s'
481 # ... but there are two gotchas:
482 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
483 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
484 # In both cases, we have to default to `cp -p'.
485 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
486 as_ln_s='cp -p'
487 elif ln conf$$.file conf$$ 2>/dev/null; then
488 as_ln_s=ln
489 else
490 as_ln_s='cp -p'
492 else
493 as_ln_s='cp -p'
495 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
496 rmdir conf$$.dir 2>/dev/null
498 if mkdir -p . 2>/dev/null; then
499 as_mkdir_p='mkdir -p "$as_dir"'
500 else
501 test -d ./-p && rmdir ./-p
502 as_mkdir_p=false
505 if test -x / >/dev/null 2>&1; then
506 as_test_x='test -x'
507 else
508 if ls -dL / >/dev/null 2>&1; then
509 as_ls_L_option=L
510 else
511 as_ls_L_option=
513 as_test_x='
514 eval sh -c '\''
515 if test -d "$1"; then
516 test -d "$1/.";
517 else
518 case $1 in #(
519 -*)set "./$1";;
520 esac;
521 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
522 ???[sx]*):;;*)false;;esac;fi
523 '\'' sh
526 as_executable_p=$as_test_x
528 # Sed expression to map a string onto a valid CPP name.
529 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531 # Sed expression to map a string onto a valid variable name.
532 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534 SHELL=${CONFIG_SHELL-/bin/sh}
537 exec 7<&0 </dev/null 6>&1
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545 # Initializations.
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
556 # Identity of this package.
557 PACKAGE_NAME='GNU Fortran Runtime Library'
558 PACKAGE_TARNAME='libgfortran'
559 PACKAGE_VERSION='0.3'
560 PACKAGE_STRING='GNU Fortran Runtime Library 0.3'
561 PACKAGE_BUGREPORT=''
562 PACKAGE_URL='http://www.gnu.org/software/libgfortran/'
564 # Factoring default headers for most tests.
565 ac_includes_default="\
566 #include <stdio.h>
567 #ifdef HAVE_SYS_TYPES_H
568 # include <sys/types.h>
569 #endif
570 #ifdef HAVE_SYS_STAT_H
571 # include <sys/stat.h>
572 #endif
573 #ifdef STDC_HEADERS
574 # include <stdlib.h>
575 # include <stddef.h>
576 #else
577 # ifdef HAVE_STDLIB_H
578 # include <stdlib.h>
579 # endif
580 #endif
581 #ifdef HAVE_STRING_H
582 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
583 # include <memory.h>
584 # endif
585 # include <string.h>
586 #endif
587 #ifdef HAVE_STRINGS_H
588 # include <strings.h>
589 #endif
590 #ifdef HAVE_INTTYPES_H
591 # include <inttypes.h>
592 #endif
593 #ifdef HAVE_STDINT_H
594 # include <stdint.h>
595 #endif
596 #ifdef HAVE_UNISTD_H
597 # include <unistd.h>
598 #endif"
600 ac_header_list=
601 ac_func_list=
602 ac_c_werror_flag=
603 ac_c_werror_flag=
604 ac_subst_vars='am__EXEEXT_FALSE
605 am__EXEEXT_TRUE
606 LTLIBOBJS
607 LIBOBJS
608 IEEE_FLAGS
609 IEEE_SUPPORT
610 IEEE_SUPPORT_FALSE
611 IEEE_SUPPORT_TRUE
612 FPU_HOST_HEADER
613 LIBGFOR_BUILD_QUAD_FALSE
614 LIBGFOR_BUILD_QUAD_TRUE
615 LIBQUADINCLUDE
616 LIBQUADLIB_DEP
617 LIBQUADLIB
618 LIBQUADSPEC
619 extra_ldflags_libgfortran
620 ac_ct_FC
621 FCFLAGS
623 enable_static
624 enable_shared
625 lt_host_flags
626 OTOOL64
627 OTOOL
628 LIPO
629 NMEDIT
630 DSYMUTIL
631 OBJDUMP
632 LN_S
634 ac_ct_DUMPBIN
635 DUMPBIN
637 FGREP
639 LIBTOOL
640 RANLIB
643 SECTION_FLAGS
644 LIBGFOR_USE_SYMVER_SUN_FALSE
645 LIBGFOR_USE_SYMVER_SUN_TRUE
646 LIBGFOR_USE_SYMVER_GNU_FALSE
647 LIBGFOR_USE_SYMVER_GNU_TRUE
648 LIBGFOR_USE_SYMVER_FALSE
649 LIBGFOR_USE_SYMVER_TRUE
650 AM_CFLAGS
651 AM_FCFLAGS
652 toolexeclibdir
653 toolexecdir
654 EGREP
655 GREP
657 am__fastdepCC_FALSE
658 am__fastdepCC_TRUE
659 CCDEPMODE
660 am__nodep
661 AMDEPBACKSLASH
662 AMDEP_FALSE
663 AMDEP_TRUE
664 am__quote
665 am__include
666 DEPDIR
667 OBJEXT
668 EXEEXT
669 ac_ct_CC
670 CPPFLAGS
671 LDFLAGS
672 CFLAGS
674 multi_basedir
675 MAINT
676 MAINTAINER_MODE_FALSE
677 MAINTAINER_MODE_TRUE
678 am__untar
679 am__tar
680 AMTAR
681 am__leading_dot
682 SET_MAKE
684 mkdir_p
685 MKDIR_P
686 INSTALL_STRIP_PROGRAM
687 STRIP
688 install_sh
689 MAKEINFO
690 AUTOHEADER
691 AUTOMAKE
692 AUTOCONF
693 ACLOCAL
694 VERSION
695 PACKAGE
696 CYGPATH_W
697 am__isrc
698 INSTALL_DATA
699 INSTALL_SCRIPT
700 INSTALL_PROGRAM
701 target_noncanonical
702 target_os
703 target_vendor
704 target_cpu
705 target
706 host_os
707 host_vendor
708 host_cpu
709 host
710 onestep
711 onestep_FALSE
712 onestep_TRUE
713 target_subdir
714 host_subdir
715 build_subdir
716 build_libsubdir
717 build_os
718 build_vendor
719 build_cpu
720 build
721 target_alias
722 host_alias
723 build_alias
724 LIBS
725 ECHO_T
726 ECHO_N
727 ECHO_C
728 DEFS
729 mandir
730 localedir
731 libdir
732 psdir
733 pdfdir
734 dvidir
735 htmldir
736 infodir
737 docdir
738 oldincludedir
739 includedir
740 localstatedir
741 sharedstatedir
742 sysconfdir
743 datadir
744 datarootdir
745 libexecdir
746 sbindir
747 bindir
748 program_transform_name
749 prefix
750 exec_prefix
751 PACKAGE_URL
752 PACKAGE_BUGREPORT
753 PACKAGE_STRING
754 PACKAGE_VERSION
755 PACKAGE_TARNAME
756 PACKAGE_NAME
757 PATH_SEPARATOR
758 SHELL'
759 ac_subst_files=''
760 ac_user_opts='
761 enable_option_checking
762 with_build_libsubdir
763 enable_version_specific_runtime_libs
764 enable_intermodule
765 enable_maintainer_mode
766 enable_multilib
767 enable_dependency_tracking
768 enable_symvers
769 enable_shared
770 enable_static
771 with_pic
772 enable_fast_install
773 with_gnu_ld
774 enable_libtool_lock
775 enable_largefile
776 enable_libquadmath_support
777 with_system_libunwind
779 ac_precious_vars='build_alias
780 host_alias
781 target_alias
783 CFLAGS
784 LDFLAGS
785 LIBS
786 CPPFLAGS
789 FCFLAGS'
792 # Initialize some variables set by options.
793 ac_init_help=
794 ac_init_version=false
795 ac_unrecognized_opts=
796 ac_unrecognized_sep=
797 # The variables have the same names as the options, with
798 # dashes changed to underlines.
799 cache_file=/dev/null
800 exec_prefix=NONE
801 no_create=
802 no_recursion=
803 prefix=NONE
804 program_prefix=NONE
805 program_suffix=NONE
806 program_transform_name=s,x,x,
807 silent=
808 site=
809 srcdir=
810 verbose=
811 x_includes=NONE
812 x_libraries=NONE
814 # Installation directory options.
815 # These are left unexpanded so users can "make install exec_prefix=/foo"
816 # and all the variables that are supposed to be based on exec_prefix
817 # by default will actually change.
818 # Use braces instead of parens because sh, perl, etc. also accept them.
819 # (The list follows the same order as the GNU Coding Standards.)
820 bindir='${exec_prefix}/bin'
821 sbindir='${exec_prefix}/sbin'
822 libexecdir='${exec_prefix}/libexec'
823 datarootdir='${prefix}/share'
824 datadir='${datarootdir}'
825 sysconfdir='${prefix}/etc'
826 sharedstatedir='${prefix}/com'
827 localstatedir='${prefix}/var'
828 includedir='${prefix}/include'
829 oldincludedir='/usr/include'
830 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
831 infodir='${datarootdir}/info'
832 htmldir='${docdir}'
833 dvidir='${docdir}'
834 pdfdir='${docdir}'
835 psdir='${docdir}'
836 libdir='${exec_prefix}/lib'
837 localedir='${datarootdir}/locale'
838 mandir='${datarootdir}/man'
840 ac_prev=
841 ac_dashdash=
842 for ac_option
844 # If the previous option needs an argument, assign it.
845 if test -n "$ac_prev"; then
846 eval $ac_prev=\$ac_option
847 ac_prev=
848 continue
851 case $ac_option in
852 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
853 *) ac_optarg=yes ;;
854 esac
856 # Accept the important Cygnus configure options, so we can diagnose typos.
858 case $ac_dashdash$ac_option in
860 ac_dashdash=yes ;;
862 -bindir | --bindir | --bindi | --bind | --bin | --bi)
863 ac_prev=bindir ;;
864 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
865 bindir=$ac_optarg ;;
867 -build | --build | --buil | --bui | --bu)
868 ac_prev=build_alias ;;
869 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
870 build_alias=$ac_optarg ;;
872 -cache-file | --cache-file | --cache-fil | --cache-fi \
873 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
874 ac_prev=cache_file ;;
875 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
876 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
877 cache_file=$ac_optarg ;;
879 --config-cache | -C)
880 cache_file=config.cache ;;
882 -datadir | --datadir | --datadi | --datad)
883 ac_prev=datadir ;;
884 -datadir=* | --datadir=* | --datadi=* | --datad=*)
885 datadir=$ac_optarg ;;
887 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
888 | --dataroo | --dataro | --datar)
889 ac_prev=datarootdir ;;
890 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
891 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
892 datarootdir=$ac_optarg ;;
894 -disable-* | --disable-*)
895 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
896 # Reject names that are not valid shell variable names.
897 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
898 as_fn_error "invalid feature name: $ac_useropt"
899 ac_useropt_orig=$ac_useropt
900 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
901 case $ac_user_opts in
903 "enable_$ac_useropt"
904 "*) ;;
905 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
906 ac_unrecognized_sep=', ';;
907 esac
908 eval enable_$ac_useropt=no ;;
910 -docdir | --docdir | --docdi | --doc | --do)
911 ac_prev=docdir ;;
912 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
913 docdir=$ac_optarg ;;
915 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
916 ac_prev=dvidir ;;
917 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
918 dvidir=$ac_optarg ;;
920 -enable-* | --enable-*)
921 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
922 # Reject names that are not valid shell variable names.
923 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
924 as_fn_error "invalid feature name: $ac_useropt"
925 ac_useropt_orig=$ac_useropt
926 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
927 case $ac_user_opts in
929 "enable_$ac_useropt"
930 "*) ;;
931 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
932 ac_unrecognized_sep=', ';;
933 esac
934 eval enable_$ac_useropt=\$ac_optarg ;;
936 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
937 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
938 | --exec | --exe | --ex)
939 ac_prev=exec_prefix ;;
940 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
941 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
942 | --exec=* | --exe=* | --ex=*)
943 exec_prefix=$ac_optarg ;;
945 -gas | --gas | --ga | --g)
946 # Obsolete; use --with-gas.
947 with_gas=yes ;;
949 -help | --help | --hel | --he | -h)
950 ac_init_help=long ;;
951 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
952 ac_init_help=recursive ;;
953 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
954 ac_init_help=short ;;
956 -host | --host | --hos | --ho)
957 ac_prev=host_alias ;;
958 -host=* | --host=* | --hos=* | --ho=*)
959 host_alias=$ac_optarg ;;
961 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
962 ac_prev=htmldir ;;
963 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
964 | --ht=*)
965 htmldir=$ac_optarg ;;
967 -includedir | --includedir | --includedi | --included | --include \
968 | --includ | --inclu | --incl | --inc)
969 ac_prev=includedir ;;
970 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
971 | --includ=* | --inclu=* | --incl=* | --inc=*)
972 includedir=$ac_optarg ;;
974 -infodir | --infodir | --infodi | --infod | --info | --inf)
975 ac_prev=infodir ;;
976 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
977 infodir=$ac_optarg ;;
979 -libdir | --libdir | --libdi | --libd)
980 ac_prev=libdir ;;
981 -libdir=* | --libdir=* | --libdi=* | --libd=*)
982 libdir=$ac_optarg ;;
984 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
985 | --libexe | --libex | --libe)
986 ac_prev=libexecdir ;;
987 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
988 | --libexe=* | --libex=* | --libe=*)
989 libexecdir=$ac_optarg ;;
991 -localedir | --localedir | --localedi | --localed | --locale)
992 ac_prev=localedir ;;
993 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
994 localedir=$ac_optarg ;;
996 -localstatedir | --localstatedir | --localstatedi | --localstated \
997 | --localstate | --localstat | --localsta | --localst | --locals)
998 ac_prev=localstatedir ;;
999 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1000 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1001 localstatedir=$ac_optarg ;;
1003 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1004 ac_prev=mandir ;;
1005 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1006 mandir=$ac_optarg ;;
1008 -nfp | --nfp | --nf)
1009 # Obsolete; use --without-fp.
1010 with_fp=no ;;
1012 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1013 | --no-cr | --no-c | -n)
1014 no_create=yes ;;
1016 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1017 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1018 no_recursion=yes ;;
1020 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1021 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1022 | --oldin | --oldi | --old | --ol | --o)
1023 ac_prev=oldincludedir ;;
1024 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1025 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1026 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1027 oldincludedir=$ac_optarg ;;
1029 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1030 ac_prev=prefix ;;
1031 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1032 prefix=$ac_optarg ;;
1034 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1035 | --program-pre | --program-pr | --program-p)
1036 ac_prev=program_prefix ;;
1037 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1038 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1039 program_prefix=$ac_optarg ;;
1041 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1042 | --program-suf | --program-su | --program-s)
1043 ac_prev=program_suffix ;;
1044 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1045 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1046 program_suffix=$ac_optarg ;;
1048 -program-transform-name | --program-transform-name \
1049 | --program-transform-nam | --program-transform-na \
1050 | --program-transform-n | --program-transform- \
1051 | --program-transform | --program-transfor \
1052 | --program-transfo | --program-transf \
1053 | --program-trans | --program-tran \
1054 | --progr-tra | --program-tr | --program-t)
1055 ac_prev=program_transform_name ;;
1056 -program-transform-name=* | --program-transform-name=* \
1057 | --program-transform-nam=* | --program-transform-na=* \
1058 | --program-transform-n=* | --program-transform-=* \
1059 | --program-transform=* | --program-transfor=* \
1060 | --program-transfo=* | --program-transf=* \
1061 | --program-trans=* | --program-tran=* \
1062 | --progr-tra=* | --program-tr=* | --program-t=*)
1063 program_transform_name=$ac_optarg ;;
1065 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1066 ac_prev=pdfdir ;;
1067 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1068 pdfdir=$ac_optarg ;;
1070 -psdir | --psdir | --psdi | --psd | --ps)
1071 ac_prev=psdir ;;
1072 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1073 psdir=$ac_optarg ;;
1075 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1076 | -silent | --silent | --silen | --sile | --sil)
1077 silent=yes ;;
1079 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1080 ac_prev=sbindir ;;
1081 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1082 | --sbi=* | --sb=*)
1083 sbindir=$ac_optarg ;;
1085 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1086 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1087 | --sharedst | --shareds | --shared | --share | --shar \
1088 | --sha | --sh)
1089 ac_prev=sharedstatedir ;;
1090 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1091 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1092 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1093 | --sha=* | --sh=*)
1094 sharedstatedir=$ac_optarg ;;
1096 -site | --site | --sit)
1097 ac_prev=site ;;
1098 -site=* | --site=* | --sit=*)
1099 site=$ac_optarg ;;
1101 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1102 ac_prev=srcdir ;;
1103 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1104 srcdir=$ac_optarg ;;
1106 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1107 | --syscon | --sysco | --sysc | --sys | --sy)
1108 ac_prev=sysconfdir ;;
1109 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1110 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1111 sysconfdir=$ac_optarg ;;
1113 -target | --target | --targe | --targ | --tar | --ta | --t)
1114 ac_prev=target_alias ;;
1115 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1116 target_alias=$ac_optarg ;;
1118 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1119 verbose=yes ;;
1121 -version | --version | --versio | --versi | --vers | -V)
1122 ac_init_version=: ;;
1124 -with-* | --with-*)
1125 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1126 # Reject names that are not valid shell variable names.
1127 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1128 as_fn_error "invalid package name: $ac_useropt"
1129 ac_useropt_orig=$ac_useropt
1130 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1131 case $ac_user_opts in
1133 "with_$ac_useropt"
1134 "*) ;;
1135 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1136 ac_unrecognized_sep=', ';;
1137 esac
1138 eval with_$ac_useropt=\$ac_optarg ;;
1140 -without-* | --without-*)
1141 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1142 # Reject names that are not valid shell variable names.
1143 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1144 as_fn_error "invalid package name: $ac_useropt"
1145 ac_useropt_orig=$ac_useropt
1146 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1147 case $ac_user_opts in
1149 "with_$ac_useropt"
1150 "*) ;;
1151 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1152 ac_unrecognized_sep=', ';;
1153 esac
1154 eval with_$ac_useropt=no ;;
1156 --x)
1157 # Obsolete; use --with-x.
1158 with_x=yes ;;
1160 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1161 | --x-incl | --x-inc | --x-in | --x-i)
1162 ac_prev=x_includes ;;
1163 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1164 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1165 x_includes=$ac_optarg ;;
1167 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1168 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1169 ac_prev=x_libraries ;;
1170 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1171 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1172 x_libraries=$ac_optarg ;;
1174 -*) as_fn_error "unrecognized option: \`$ac_option'
1175 Try \`$0 --help' for more information."
1178 *=*)
1179 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1180 # Reject names that are not valid shell variable names.
1181 case $ac_envvar in #(
1182 '' | [0-9]* | *[!_$as_cr_alnum]* )
1183 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1184 esac
1185 eval $ac_envvar=\$ac_optarg
1186 export $ac_envvar ;;
1189 # FIXME: should be removed in autoconf 3.0.
1190 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1191 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1192 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1193 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1196 esac
1197 done
1199 if test -n "$ac_prev"; then
1200 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1201 as_fn_error "missing argument to $ac_option"
1204 if test -n "$ac_unrecognized_opts"; then
1205 case $enable_option_checking in
1206 no) ;;
1207 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1208 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1209 esac
1212 # Check all directory arguments for consistency.
1213 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1214 datadir sysconfdir sharedstatedir localstatedir includedir \
1215 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1216 libdir localedir mandir
1218 eval ac_val=\$$ac_var
1219 # Remove trailing slashes.
1220 case $ac_val in
1221 */ )
1222 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1223 eval $ac_var=\$ac_val;;
1224 esac
1225 # Be sure to have absolute directory names.
1226 case $ac_val in
1227 [\\/$]* | ?:[\\/]* ) continue;;
1228 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1229 esac
1230 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1231 done
1233 # There might be people who depend on the old broken behavior: `$host'
1234 # used to hold the argument of --host etc.
1235 # FIXME: To remove some day.
1236 build=$build_alias
1237 host=$host_alias
1238 target=$target_alias
1240 # FIXME: To remove some day.
1241 if test "x$host_alias" != x; then
1242 if test "x$build_alias" = x; then
1243 cross_compiling=maybe
1244 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1245 If a cross compiler is detected then cross compile mode will be used." >&2
1246 elif test "x$build_alias" != "x$host_alias"; then
1247 cross_compiling=yes
1251 ac_tool_prefix=
1252 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1254 test "$silent" = yes && exec 6>/dev/null
1257 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1258 ac_ls_di=`ls -di .` &&
1259 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1260 as_fn_error "working directory cannot be determined"
1261 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1262 as_fn_error "pwd does not report name of working directory"
1265 # Find the source files, if location was not specified.
1266 if test -z "$srcdir"; then
1267 ac_srcdir_defaulted=yes
1268 # Try the directory containing this script, then the parent directory.
1269 ac_confdir=`$as_dirname -- "$as_myself" ||
1270 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1271 X"$as_myself" : 'X\(//\)[^/]' \| \
1272 X"$as_myself" : 'X\(//\)$' \| \
1273 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1274 $as_echo X"$as_myself" |
1275 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1276 s//\1/
1279 /^X\(\/\/\)[^/].*/{
1280 s//\1/
1283 /^X\(\/\/\)$/{
1284 s//\1/
1287 /^X\(\/\).*/{
1288 s//\1/
1291 s/.*/./; q'`
1292 srcdir=$ac_confdir
1293 if test ! -r "$srcdir/$ac_unique_file"; then
1294 srcdir=..
1296 else
1297 ac_srcdir_defaulted=no
1299 if test ! -r "$srcdir/$ac_unique_file"; then
1300 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1301 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1303 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1304 ac_abs_confdir=`(
1305 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1306 pwd)`
1307 # When building in place, set srcdir=.
1308 if test "$ac_abs_confdir" = "$ac_pwd"; then
1309 srcdir=.
1311 # Remove unnecessary trailing slashes from srcdir.
1312 # Double slashes in file names in object file debugging info
1313 # mess up M-x gdb in Emacs.
1314 case $srcdir in
1315 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1316 esac
1317 for ac_var in $ac_precious_vars; do
1318 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1319 eval ac_env_${ac_var}_value=\$${ac_var}
1320 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1321 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1322 done
1325 # Report the --help message.
1327 if test "$ac_init_help" = "long"; then
1328 # Omit some internal or obsolete options to make the list less imposing.
1329 # This message is too long to be a string in the A/UX 3.1 sh.
1330 cat <<_ACEOF
1331 \`configure' configures GNU Fortran Runtime Library 0.3 to adapt to many kinds of systems.
1333 Usage: $0 [OPTION]... [VAR=VALUE]...
1335 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1336 VAR=VALUE. See below for descriptions of some of the useful variables.
1338 Defaults for the options are specified in brackets.
1340 Configuration:
1341 -h, --help display this help and exit
1342 --help=short display options specific to this package
1343 --help=recursive display the short help of all the included packages
1344 -V, --version display version information and exit
1345 -q, --quiet, --silent do not print \`checking...' messages
1346 --cache-file=FILE cache test results in FILE [disabled]
1347 -C, --config-cache alias for \`--cache-file=config.cache'
1348 -n, --no-create do not create output files
1349 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1351 Installation directories:
1352 --prefix=PREFIX install architecture-independent files in PREFIX
1353 [$ac_default_prefix]
1354 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1355 [PREFIX]
1357 By default, \`make install' will install all the files in
1358 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1359 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1360 for instance \`--prefix=\$HOME'.
1362 For better control, use the options below.
1364 Fine tuning of the installation directories:
1365 --bindir=DIR user executables [EPREFIX/bin]
1366 --sbindir=DIR system admin executables [EPREFIX/sbin]
1367 --libexecdir=DIR program executables [EPREFIX/libexec]
1368 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1369 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1370 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1371 --libdir=DIR object code libraries [EPREFIX/lib]
1372 --includedir=DIR C header files [PREFIX/include]
1373 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1374 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1375 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1376 --infodir=DIR info documentation [DATAROOTDIR/info]
1377 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1378 --mandir=DIR man documentation [DATAROOTDIR/man]
1379 --docdir=DIR documentation root [DATAROOTDIR/doc/libgfortran]
1380 --htmldir=DIR html documentation [DOCDIR]
1381 --dvidir=DIR dvi documentation [DOCDIR]
1382 --pdfdir=DIR pdf documentation [DOCDIR]
1383 --psdir=DIR ps documentation [DOCDIR]
1384 _ACEOF
1386 cat <<\_ACEOF
1388 Program names:
1389 --program-prefix=PREFIX prepend PREFIX to installed program names
1390 --program-suffix=SUFFIX append SUFFIX to installed program names
1391 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1393 System types:
1394 --build=BUILD configure for building on BUILD [guessed]
1395 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1396 --target=TARGET configure for building compilers for TARGET [HOST]
1397 _ACEOF
1400 if test -n "$ac_init_help"; then
1401 case $ac_init_help in
1402 short | recursive ) echo "Configuration of GNU Fortran Runtime Library 0.3:";;
1403 esac
1404 cat <<\_ACEOF
1406 Optional Features:
1407 --disable-option-checking ignore unrecognized --enable/--with options
1408 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1409 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1410 --enable-version-specific-runtime-libs
1411 specify that runtime libraries should be installed
1412 in a compiler-specific directory
1413 --enable-intermodule build the library in one step
1414 --enable-maintainer-mode enable make rules and dependencies not useful
1415 (and sometimes confusing) to the casual installer
1416 --enable-multilib build many library versions (default)
1417 --disable-dependency-tracking speeds up one-time build
1418 --enable-dependency-tracking do not reject slow dependency extractors
1419 --disable-symvers disable symbol versioning for libgfortran
1420 --enable-shared[=PKGS] build shared libraries [default=yes]
1421 --enable-static[=PKGS] build static libraries [default=yes]
1422 --enable-fast-install[=PKGS]
1423 optimize for fast installation [default=yes]
1424 --disable-libtool-lock avoid locking (might break parallel builds)
1425 --disable-largefile omit support for large files
1426 --disable-libquadmath-support
1427 disable libquadmath support for Fortran
1429 Optional Packages:
1430 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1431 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1432 --with-build-libsubdir=DIR Directory where to find libraries for build system
1433 --with-pic try to use only PIC/non-PIC objects [default=use
1434 both]
1435 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1436 --with-system-libunwind use installed libunwind
1438 Some influential environment variables:
1439 CC C compiler command
1440 CFLAGS C compiler flags
1441 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1442 nonstandard directory <lib dir>
1443 LIBS libraries to pass to the linker, e.g. -l<library>
1444 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1445 you have headers in a nonstandard directory <include dir>
1446 CPP C preprocessor
1447 FC Fortran compiler command
1448 FCFLAGS Fortran compiler flags
1450 Use these variables to override the choices made by `configure' or to help
1451 it to find libraries and programs with nonstandard names/locations.
1453 Report bugs to the package provider.
1454 GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
1455 General help using GNU software: <http://www.gnu.org/gethelp/>.
1456 _ACEOF
1457 ac_status=$?
1460 if test "$ac_init_help" = "recursive"; then
1461 # If there are subdirs, report their specific --help.
1462 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1463 test -d "$ac_dir" ||
1464 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1465 continue
1466 ac_builddir=.
1468 case "$ac_dir" in
1469 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1471 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1472 # A ".." for each directory in $ac_dir_suffix.
1473 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1474 case $ac_top_builddir_sub in
1475 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1476 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1477 esac ;;
1478 esac
1479 ac_abs_top_builddir=$ac_pwd
1480 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1481 # for backward compatibility:
1482 ac_top_builddir=$ac_top_build_prefix
1484 case $srcdir in
1485 .) # We are building in place.
1486 ac_srcdir=.
1487 ac_top_srcdir=$ac_top_builddir_sub
1488 ac_abs_top_srcdir=$ac_pwd ;;
1489 [\\/]* | ?:[\\/]* ) # Absolute name.
1490 ac_srcdir=$srcdir$ac_dir_suffix;
1491 ac_top_srcdir=$srcdir
1492 ac_abs_top_srcdir=$srcdir ;;
1493 *) # Relative name.
1494 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1495 ac_top_srcdir=$ac_top_build_prefix$srcdir
1496 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1497 esac
1498 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1500 cd "$ac_dir" || { ac_status=$?; continue; }
1501 # Check for guested configure.
1502 if test -f "$ac_srcdir/configure.gnu"; then
1503 echo &&
1504 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1505 elif test -f "$ac_srcdir/configure"; then
1506 echo &&
1507 $SHELL "$ac_srcdir/configure" --help=recursive
1508 else
1509 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1510 fi || ac_status=$?
1511 cd "$ac_pwd" || { ac_status=$?; break; }
1512 done
1515 test -n "$ac_init_help" && exit $ac_status
1516 if $ac_init_version; then
1517 cat <<\_ACEOF
1518 GNU Fortran Runtime Library configure 0.3
1519 generated by GNU Autoconf 2.64
1521 Copyright (C) 2009 Free Software Foundation, Inc.
1522 This configure script is free software; the Free Software Foundation
1523 gives unlimited permission to copy, distribute and modify it.
1524 _ACEOF
1525 exit
1528 ## ------------------------ ##
1529 ## Autoconf initialization. ##
1530 ## ------------------------ ##
1532 # ac_fn_c_try_compile LINENO
1533 # --------------------------
1534 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1535 ac_fn_c_try_compile ()
1537 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1538 rm -f conftest.$ac_objext
1539 if { { ac_try="$ac_compile"
1540 case "(($ac_try" in
1541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1542 *) ac_try_echo=$ac_try;;
1543 esac
1544 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1545 $as_echo "$ac_try_echo"; } >&5
1546 (eval "$ac_compile") 2>conftest.err
1547 ac_status=$?
1548 if test -s conftest.err; then
1549 grep -v '^ *+' conftest.err >conftest.er1
1550 cat conftest.er1 >&5
1551 mv -f conftest.er1 conftest.err
1553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1554 test $ac_status = 0; } && {
1555 test -z "$ac_c_werror_flag" ||
1556 test ! -s conftest.err
1557 } && test -s conftest.$ac_objext; then :
1558 ac_retval=0
1559 else
1560 $as_echo "$as_me: failed program was:" >&5
1561 sed 's/^/| /' conftest.$ac_ext >&5
1563 ac_retval=1
1565 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1566 return $ac_retval
1568 } # ac_fn_c_try_compile
1570 # ac_fn_c_try_cpp LINENO
1571 # ----------------------
1572 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1573 ac_fn_c_try_cpp ()
1575 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576 if { { ac_try="$ac_cpp conftest.$ac_ext"
1577 case "(($ac_try" in
1578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1579 *) ac_try_echo=$ac_try;;
1580 esac
1581 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1582 $as_echo "$ac_try_echo"; } >&5
1583 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1584 ac_status=$?
1585 if test -s conftest.err; then
1586 grep -v '^ *+' conftest.err >conftest.er1
1587 cat conftest.er1 >&5
1588 mv -f conftest.er1 conftest.err
1590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1591 test $ac_status = 0; } >/dev/null && {
1592 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1593 test ! -s conftest.err
1594 }; then :
1595 ac_retval=0
1596 else
1597 $as_echo "$as_me: failed program was:" >&5
1598 sed 's/^/| /' conftest.$ac_ext >&5
1600 ac_retval=1
1602 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1603 return $ac_retval
1605 } # ac_fn_c_try_cpp
1607 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1608 # -------------------------------------------------------
1609 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1610 # the include files in INCLUDES and setting the cache variable VAR
1611 # accordingly.
1612 ac_fn_c_check_header_mongrel ()
1614 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1615 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1617 $as_echo_n "checking for $2... " >&6; }
1618 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1619 $as_echo_n "(cached) " >&6
1621 eval ac_res=\$$3
1622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1623 $as_echo "$ac_res" >&6; }
1624 else
1625 # Is the header compilable?
1626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1627 $as_echo_n "checking $2 usability... " >&6; }
1628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1629 /* end confdefs.h. */
1631 #include <$2>
1632 _ACEOF
1633 if ac_fn_c_try_compile "$LINENO"; then :
1634 ac_header_compiler=yes
1635 else
1636 ac_header_compiler=no
1638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1640 $as_echo "$ac_header_compiler" >&6; }
1642 # Is the header present?
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1644 $as_echo_n "checking $2 presence... " >&6; }
1645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1646 /* end confdefs.h. */
1647 #include <$2>
1648 _ACEOF
1649 if ac_fn_c_try_cpp "$LINENO"; then :
1650 ac_header_preproc=yes
1651 else
1652 ac_header_preproc=no
1654 rm -f conftest.err conftest.$ac_ext
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1656 $as_echo "$ac_header_preproc" >&6; }
1658 # So? What about this header?
1659 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1660 yes:no: )
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1662 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1664 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1666 no:yes:* )
1667 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1668 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1670 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1671 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1672 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1673 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1674 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1675 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1676 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1678 esac
1679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1680 $as_echo_n "checking for $2... " >&6; }
1681 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1682 $as_echo_n "(cached) " >&6
1683 else
1684 eval "$3=\$ac_header_compiler"
1686 eval ac_res=\$$3
1687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1688 $as_echo "$ac_res" >&6; }
1690 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1692 } # ac_fn_c_check_header_mongrel
1694 # ac_fn_c_try_run LINENO
1695 # ----------------------
1696 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1697 # that executables *can* be run.
1698 ac_fn_c_try_run ()
1700 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1701 if { { ac_try="$ac_link"
1702 case "(($ac_try" in
1703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1704 *) ac_try_echo=$ac_try;;
1705 esac
1706 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1707 $as_echo "$ac_try_echo"; } >&5
1708 (eval "$ac_link") 2>&5
1709 ac_status=$?
1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1711 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1712 { { case "(($ac_try" in
1713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1714 *) ac_try_echo=$ac_try;;
1715 esac
1716 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1717 $as_echo "$ac_try_echo"; } >&5
1718 (eval "$ac_try") 2>&5
1719 ac_status=$?
1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721 test $ac_status = 0; }; }; then :
1722 ac_retval=0
1723 else
1724 $as_echo "$as_me: program exited with status $ac_status" >&5
1725 $as_echo "$as_me: failed program was:" >&5
1726 sed 's/^/| /' conftest.$ac_ext >&5
1728 ac_retval=$ac_status
1730 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1731 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1732 return $ac_retval
1734 } # ac_fn_c_try_run
1736 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1737 # -------------------------------------------------------
1738 # Tests whether HEADER exists and can be compiled using the include files in
1739 # INCLUDES, setting the cache variable VAR accordingly.
1740 ac_fn_c_check_header_compile ()
1742 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1744 $as_echo_n "checking for $2... " >&6; }
1745 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1746 $as_echo_n "(cached) " >&6
1747 else
1748 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1749 /* end confdefs.h. */
1751 #include <$2>
1752 _ACEOF
1753 if ac_fn_c_try_compile "$LINENO"; then :
1754 eval "$3=yes"
1755 else
1756 eval "$3=no"
1758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1760 eval ac_res=\$$3
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1762 $as_echo "$ac_res" >&6; }
1763 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1765 } # ac_fn_c_check_header_compile
1767 # ac_fn_c_try_link LINENO
1768 # -----------------------
1769 # Try to link conftest.$ac_ext, and return whether this succeeded.
1770 ac_fn_c_try_link ()
1772 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1773 rm -f conftest.$ac_objext conftest$ac_exeext
1774 if { { ac_try="$ac_link"
1775 case "(($ac_try" in
1776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1777 *) ac_try_echo=$ac_try;;
1778 esac
1779 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1780 $as_echo "$ac_try_echo"; } >&5
1781 (eval "$ac_link") 2>conftest.err
1782 ac_status=$?
1783 if test -s conftest.err; then
1784 grep -v '^ *+' conftest.err >conftest.er1
1785 cat conftest.er1 >&5
1786 mv -f conftest.er1 conftest.err
1788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1789 test $ac_status = 0; } && {
1790 test -z "$ac_c_werror_flag" ||
1791 test ! -s conftest.err
1792 } && test -s conftest$ac_exeext && {
1793 test "$cross_compiling" = yes ||
1794 $as_test_x conftest$ac_exeext
1795 }; then :
1796 ac_retval=0
1797 else
1798 $as_echo "$as_me: failed program was:" >&5
1799 sed 's/^/| /' conftest.$ac_ext >&5
1801 ac_retval=1
1803 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1804 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1805 # interfere with the next link command; also delete a directory that is
1806 # left behind by Apple's compiler. We do this before executing the actions.
1807 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1808 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1809 return $ac_retval
1811 } # ac_fn_c_try_link
1813 # ac_fn_c_check_func LINENO FUNC VAR
1814 # ----------------------------------
1815 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1816 ac_fn_c_check_func ()
1818 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1820 $as_echo_n "checking for $2... " >&6; }
1821 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1822 $as_echo_n "(cached) " >&6
1823 else
1824 if test x$gcc_no_link = xyes; then
1825 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
1827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1828 /* end confdefs.h. */
1829 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1830 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1831 #define $2 innocuous_$2
1833 /* System header to define __stub macros and hopefully few prototypes,
1834 which can conflict with char $2 (); below.
1835 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1836 <limits.h> exists even on freestanding compilers. */
1838 #ifdef __STDC__
1839 # include <limits.h>
1840 #else
1841 # include <assert.h>
1842 #endif
1844 #undef $2
1846 /* Override any GCC internal prototype to avoid an error.
1847 Use char because int might match the return type of a GCC
1848 builtin and then its argument prototype would still apply. */
1849 #ifdef __cplusplus
1850 extern "C"
1851 #endif
1852 char $2 ();
1853 /* The GNU C library defines this for functions which it implements
1854 to always fail with ENOSYS. Some functions are actually named
1855 something starting with __ and the normal name is an alias. */
1856 #if defined __stub_$2 || defined __stub___$2
1857 choke me
1858 #endif
1861 main ()
1863 return $2 ();
1865 return 0;
1867 _ACEOF
1868 if ac_fn_c_try_link "$LINENO"; then :
1869 eval "$3=yes"
1870 else
1871 eval "$3=no"
1873 rm -f core conftest.err conftest.$ac_objext \
1874 conftest$ac_exeext conftest.$ac_ext
1876 eval ac_res=\$$3
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1878 $as_echo "$ac_res" >&6; }
1879 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1881 } # ac_fn_c_check_func
1883 # ac_fn_fc_try_compile LINENO
1884 # ---------------------------
1885 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1886 ac_fn_fc_try_compile ()
1888 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1889 rm -f conftest.$ac_objext
1890 if { { ac_try="$ac_compile"
1891 case "(($ac_try" in
1892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1893 *) ac_try_echo=$ac_try;;
1894 esac
1895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1896 $as_echo "$ac_try_echo"; } >&5
1897 (eval "$ac_compile") 2>conftest.err
1898 ac_status=$?
1899 if test -s conftest.err; then
1900 grep -v '^ *+' conftest.err >conftest.er1
1901 cat conftest.er1 >&5
1902 mv -f conftest.er1 conftest.err
1904 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1905 test $ac_status = 0; } && {
1906 test -z "$ac_fc_werror_flag" ||
1907 test ! -s conftest.err
1908 } && test -s conftest.$ac_objext; then :
1909 ac_retval=0
1910 else
1911 $as_echo "$as_me: failed program was:" >&5
1912 sed 's/^/| /' conftest.$ac_ext >&5
1914 ac_retval=1
1916 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1917 return $ac_retval
1919 } # ac_fn_fc_try_compile
1921 # ac_fn_fc_try_link LINENO
1922 # ------------------------
1923 # Try to link conftest.$ac_ext, and return whether this succeeded.
1924 ac_fn_fc_try_link ()
1926 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1927 rm -f conftest.$ac_objext conftest$ac_exeext
1928 if { { ac_try="$ac_link"
1929 case "(($ac_try" in
1930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1931 *) ac_try_echo=$ac_try;;
1932 esac
1933 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1934 $as_echo "$ac_try_echo"; } >&5
1935 (eval "$ac_link") 2>conftest.err
1936 ac_status=$?
1937 if test -s conftest.err; then
1938 grep -v '^ *+' conftest.err >conftest.er1
1939 cat conftest.er1 >&5
1940 mv -f conftest.er1 conftest.err
1942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1943 test $ac_status = 0; } && {
1944 test -z "$ac_fc_werror_flag" ||
1945 test ! -s conftest.err
1946 } && test -s conftest$ac_exeext && {
1947 test "$cross_compiling" = yes ||
1948 $as_test_x conftest$ac_exeext
1949 }; then :
1950 ac_retval=0
1951 else
1952 $as_echo "$as_me: failed program was:" >&5
1953 sed 's/^/| /' conftest.$ac_ext >&5
1955 ac_retval=1
1957 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1958 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1959 # interfere with the next link command; also delete a directory that is
1960 # left behind by Apple's compiler. We do this before executing the actions.
1961 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1962 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1963 return $ac_retval
1965 } # ac_fn_fc_try_link
1967 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1968 # -------------------------------------------
1969 # Tests whether TYPE exists after having included INCLUDES, setting cache
1970 # variable VAR accordingly.
1971 ac_fn_c_check_type ()
1973 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1975 $as_echo_n "checking for $2... " >&6; }
1976 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1977 $as_echo_n "(cached) " >&6
1978 else
1979 eval "$3=no"
1980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1981 /* end confdefs.h. */
1984 main ()
1986 if (sizeof ($2))
1987 return 0;
1989 return 0;
1991 _ACEOF
1992 if ac_fn_c_try_compile "$LINENO"; then :
1993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1994 /* end confdefs.h. */
1997 main ()
1999 if (sizeof (($2)))
2000 return 0;
2002 return 0;
2004 _ACEOF
2005 if ac_fn_c_try_compile "$LINENO"; then :
2007 else
2008 eval "$3=yes"
2010 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2014 eval ac_res=\$$3
2015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2016 $as_echo "$ac_res" >&6; }
2017 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2019 } # ac_fn_c_check_type
2021 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2022 # --------------------------------------------
2023 # Tries to find the compile-time value of EXPR in a program that includes
2024 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2025 # computed
2026 ac_fn_c_compute_int ()
2028 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2029 if test "$cross_compiling" = yes; then
2030 # Depending upon the size, compute the lo and hi bounds.
2031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2032 /* end confdefs.h. */
2035 main ()
2037 static int test_array [1 - 2 * !(($2) >= 0)];
2038 test_array [0] = 0
2041 return 0;
2043 _ACEOF
2044 if ac_fn_c_try_compile "$LINENO"; then :
2045 ac_lo=0 ac_mid=0
2046 while :; do
2047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2048 /* end confdefs.h. */
2051 main ()
2053 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2054 test_array [0] = 0
2057 return 0;
2059 _ACEOF
2060 if ac_fn_c_try_compile "$LINENO"; then :
2061 ac_hi=$ac_mid; break
2062 else
2063 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2064 if test $ac_lo -le $ac_mid; then
2065 ac_lo= ac_hi=
2066 break
2068 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2071 done
2072 else
2073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2074 /* end confdefs.h. */
2077 main ()
2079 static int test_array [1 - 2 * !(($2) < 0)];
2080 test_array [0] = 0
2083 return 0;
2085 _ACEOF
2086 if ac_fn_c_try_compile "$LINENO"; then :
2087 ac_hi=-1 ac_mid=-1
2088 while :; do
2089 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2090 /* end confdefs.h. */
2093 main ()
2095 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2096 test_array [0] = 0
2099 return 0;
2101 _ACEOF
2102 if ac_fn_c_try_compile "$LINENO"; then :
2103 ac_lo=$ac_mid; break
2104 else
2105 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2106 if test $ac_mid -le $ac_hi; then
2107 ac_lo= ac_hi=
2108 break
2110 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2112 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2113 done
2114 else
2115 ac_lo= ac_hi=
2117 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2120 # Binary search between lo and hi bounds.
2121 while test "x$ac_lo" != "x$ac_hi"; do
2122 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2124 /* end confdefs.h. */
2127 main ()
2129 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2130 test_array [0] = 0
2133 return 0;
2135 _ACEOF
2136 if ac_fn_c_try_compile "$LINENO"; then :
2137 ac_hi=$ac_mid
2138 else
2139 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2141 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2142 done
2143 case $ac_lo in #((
2144 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2145 '') ac_retval=1 ;;
2146 esac
2147 else
2148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2149 /* end confdefs.h. */
2151 static long int longval () { return $2; }
2152 static unsigned long int ulongval () { return $2; }
2153 #include <stdio.h>
2154 #include <stdlib.h>
2156 main ()
2159 FILE *f = fopen ("conftest.val", "w");
2160 if (! f)
2161 return 1;
2162 if (($2) < 0)
2164 long int i = longval ();
2165 if (i != ($2))
2166 return 1;
2167 fprintf (f, "%ld", i);
2169 else
2171 unsigned long int i = ulongval ();
2172 if (i != ($2))
2173 return 1;
2174 fprintf (f, "%lu", i);
2176 /* Do not output a trailing newline, as this causes \r\n confusion
2177 on some platforms. */
2178 return ferror (f) || fclose (f) != 0;
2181 return 0;
2183 _ACEOF
2184 if ac_fn_c_try_run "$LINENO"; then :
2185 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2186 else
2187 ac_retval=1
2189 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2190 conftest.$ac_objext conftest.beam conftest.$ac_ext
2191 rm -f conftest.val
2194 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2195 return $ac_retval
2197 } # ac_fn_c_compute_int
2199 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2200 # ----------------------------------------------------
2201 # Tries to find if the field MEMBER exists in type AGGR, after including
2202 # INCLUDES, setting cache variable VAR accordingly.
2203 ac_fn_c_check_member ()
2205 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2207 $as_echo_n "checking for $2.$3... " >&6; }
2208 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2209 $as_echo_n "(cached) " >&6
2210 else
2211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2212 /* end confdefs.h. */
2215 main ()
2217 static $2 ac_aggr;
2218 if (ac_aggr.$3)
2219 return 0;
2221 return 0;
2223 _ACEOF
2224 if ac_fn_c_try_compile "$LINENO"; then :
2225 eval "$4=yes"
2226 else
2227 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2228 /* end confdefs.h. */
2231 main ()
2233 static $2 ac_aggr;
2234 if (sizeof ac_aggr.$3)
2235 return 0;
2237 return 0;
2239 _ACEOF
2240 if ac_fn_c_try_compile "$LINENO"; then :
2241 eval "$4=yes"
2242 else
2243 eval "$4=no"
2245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2249 eval ac_res=\$$4
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2251 $as_echo "$ac_res" >&6; }
2252 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2254 } # ac_fn_c_check_member
2255 cat >config.log <<_ACEOF
2256 This file contains any messages produced by compilers while
2257 running configure, to aid debugging if configure makes a mistake.
2259 It was created by GNU Fortran Runtime Library $as_me 0.3, which was
2260 generated by GNU Autoconf 2.64. Invocation command line was
2262 $ $0 $@
2264 _ACEOF
2265 exec 5>>config.log
2267 cat <<_ASUNAME
2268 ## --------- ##
2269 ## Platform. ##
2270 ## --------- ##
2272 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2273 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2274 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2275 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2276 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2278 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2279 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2281 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2282 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2283 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2284 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2285 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2286 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2287 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2289 _ASUNAME
2291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2292 for as_dir in $PATH
2294 IFS=$as_save_IFS
2295 test -z "$as_dir" && as_dir=.
2296 $as_echo "PATH: $as_dir"
2297 done
2298 IFS=$as_save_IFS
2300 } >&5
2302 cat >&5 <<_ACEOF
2305 ## ----------- ##
2306 ## Core tests. ##
2307 ## ----------- ##
2309 _ACEOF
2312 # Keep a trace of the command line.
2313 # Strip out --no-create and --no-recursion so they do not pile up.
2314 # Strip out --silent because we don't want to record it for future runs.
2315 # Also quote any args containing shell meta-characters.
2316 # Make two passes to allow for proper duplicate-argument suppression.
2317 ac_configure_args=
2318 ac_configure_args0=
2319 ac_configure_args1=
2320 ac_must_keep_next=false
2321 for ac_pass in 1 2
2323 for ac_arg
2325 case $ac_arg in
2326 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2327 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2328 | -silent | --silent | --silen | --sile | --sil)
2329 continue ;;
2330 *\'*)
2331 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2332 esac
2333 case $ac_pass in
2334 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2336 as_fn_append ac_configure_args1 " '$ac_arg'"
2337 if test $ac_must_keep_next = true; then
2338 ac_must_keep_next=false # Got value, back to normal.
2339 else
2340 case $ac_arg in
2341 *=* | --config-cache | -C | -disable-* | --disable-* \
2342 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2343 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2344 | -with-* | --with-* | -without-* | --without-* | --x)
2345 case "$ac_configure_args0 " in
2346 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2347 esac
2349 -* ) ac_must_keep_next=true ;;
2350 esac
2352 as_fn_append ac_configure_args " '$ac_arg'"
2354 esac
2355 done
2356 done
2357 { ac_configure_args0=; unset ac_configure_args0;}
2358 { ac_configure_args1=; unset ac_configure_args1;}
2360 # When interrupted or exit'd, cleanup temporary files, and complete
2361 # config.log. We remove comments because anyway the quotes in there
2362 # would cause problems or look ugly.
2363 # WARNING: Use '\'' to represent an apostrophe within the trap.
2364 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2365 trap 'exit_status=$?
2366 # Save into config.log some information that might help in debugging.
2368 echo
2370 cat <<\_ASBOX
2371 ## ---------------- ##
2372 ## Cache variables. ##
2373 ## ---------------- ##
2374 _ASBOX
2375 echo
2376 # The following way of writing the cache mishandles newlines in values,
2378 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2379 eval ac_val=\$$ac_var
2380 case $ac_val in #(
2381 *${as_nl}*)
2382 case $ac_var in #(
2383 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2384 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2385 esac
2386 case $ac_var in #(
2387 _ | IFS | as_nl) ;; #(
2388 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2389 *) { eval $ac_var=; unset $ac_var;} ;;
2390 esac ;;
2391 esac
2392 done
2393 (set) 2>&1 |
2394 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2395 *${as_nl}ac_space=\ *)
2396 sed -n \
2397 "s/'\''/'\''\\\\'\'''\''/g;
2398 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2399 ;; #(
2401 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2403 esac |
2404 sort
2406 echo
2408 cat <<\_ASBOX
2409 ## ----------------- ##
2410 ## Output variables. ##
2411 ## ----------------- ##
2412 _ASBOX
2413 echo
2414 for ac_var in $ac_subst_vars
2416 eval ac_val=\$$ac_var
2417 case $ac_val in
2418 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2419 esac
2420 $as_echo "$ac_var='\''$ac_val'\''"
2421 done | sort
2422 echo
2424 if test -n "$ac_subst_files"; then
2425 cat <<\_ASBOX
2426 ## ------------------- ##
2427 ## File substitutions. ##
2428 ## ------------------- ##
2429 _ASBOX
2430 echo
2431 for ac_var in $ac_subst_files
2433 eval ac_val=\$$ac_var
2434 case $ac_val in
2435 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2436 esac
2437 $as_echo "$ac_var='\''$ac_val'\''"
2438 done | sort
2439 echo
2442 if test -s confdefs.h; then
2443 cat <<\_ASBOX
2444 ## ----------- ##
2445 ## confdefs.h. ##
2446 ## ----------- ##
2447 _ASBOX
2448 echo
2449 cat confdefs.h
2450 echo
2452 test "$ac_signal" != 0 &&
2453 $as_echo "$as_me: caught signal $ac_signal"
2454 $as_echo "$as_me: exit $exit_status"
2455 } >&5
2456 rm -f core *.core core.conftest.* &&
2457 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2458 exit $exit_status
2460 for ac_signal in 1 2 13 15; do
2461 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2462 done
2463 ac_signal=0
2465 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2466 rm -f -r conftest* confdefs.h
2468 $as_echo "/* confdefs.h */" > confdefs.h
2470 # Predefined preprocessor variables.
2472 cat >>confdefs.h <<_ACEOF
2473 #define PACKAGE_NAME "$PACKAGE_NAME"
2474 _ACEOF
2476 cat >>confdefs.h <<_ACEOF
2477 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2478 _ACEOF
2480 cat >>confdefs.h <<_ACEOF
2481 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2482 _ACEOF
2484 cat >>confdefs.h <<_ACEOF
2485 #define PACKAGE_STRING "$PACKAGE_STRING"
2486 _ACEOF
2488 cat >>confdefs.h <<_ACEOF
2489 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2490 _ACEOF
2492 cat >>confdefs.h <<_ACEOF
2493 #define PACKAGE_URL "$PACKAGE_URL"
2494 _ACEOF
2497 # Let the site file select an alternate cache file if it wants to.
2498 # Prefer an explicitly selected file to automatically selected ones.
2499 ac_site_file1=NONE
2500 ac_site_file2=NONE
2501 if test -n "$CONFIG_SITE"; then
2502 ac_site_file1=$CONFIG_SITE
2503 elif test "x$prefix" != xNONE; then
2504 ac_site_file1=$prefix/share/config.site
2505 ac_site_file2=$prefix/etc/config.site
2506 else
2507 ac_site_file1=$ac_default_prefix/share/config.site
2508 ac_site_file2=$ac_default_prefix/etc/config.site
2510 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2512 test "x$ac_site_file" = xNONE && continue
2513 if test -r "$ac_site_file"; then
2514 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2515 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2516 sed 's/^/| /' "$ac_site_file" >&5
2517 . "$ac_site_file"
2519 done
2521 if test -r "$cache_file"; then
2522 # Some versions of bash will fail to source /dev/null (special
2523 # files actually), so we avoid doing that.
2524 if test -f "$cache_file"; then
2525 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2526 $as_echo "$as_me: loading cache $cache_file" >&6;}
2527 case $cache_file in
2528 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2529 *) . "./$cache_file";;
2530 esac
2532 else
2533 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2534 $as_echo "$as_me: creating cache $cache_file" >&6;}
2535 >$cache_file
2538 as_fn_append ac_header_list " unistd.h"
2539 as_fn_append ac_header_list " sys/time.h"
2540 as_fn_append ac_header_list " sys/times.h"
2541 as_fn_append ac_header_list " sys/resource.h"
2542 as_fn_append ac_header_list " sys/types.h"
2543 as_fn_append ac_header_list " sys/stat.h"
2544 as_fn_append ac_header_list " sys/wait.h"
2545 as_fn_append ac_header_list " floatingpoint.h"
2546 as_fn_append ac_header_list " ieeefp.h"
2547 as_fn_append ac_header_list " fenv.h"
2548 as_fn_append ac_header_list " fptrap.h"
2549 as_fn_append ac_header_list " fpxcp.h"
2550 as_fn_append ac_header_list " pwd.h"
2551 as_fn_append ac_header_list " complex.h"
2552 as_fn_append ac_header_list " xlocale.h"
2553 as_fn_append ac_func_list " getrusage"
2554 as_fn_append ac_func_list " times"
2555 as_fn_append ac_func_list " mkstemp"
2556 as_fn_append ac_func_list " strtof"
2557 as_fn_append ac_func_list " strtold"
2558 as_fn_append ac_func_list " snprintf"
2559 as_fn_append ac_func_list " ftruncate"
2560 as_fn_append ac_func_list " chsize"
2561 as_fn_append ac_func_list " chdir"
2562 as_fn_append ac_func_list " getlogin"
2563 as_fn_append ac_func_list " gethostname"
2564 as_fn_append ac_func_list " kill"
2565 as_fn_append ac_func_list " link"
2566 as_fn_append ac_func_list " symlink"
2567 as_fn_append ac_func_list " sleep"
2568 as_fn_append ac_func_list " ttyname"
2569 as_fn_append ac_func_list " alarm"
2570 as_fn_append ac_func_list " access"
2571 as_fn_append ac_func_list " fork"
2572 as_fn_append ac_func_list " execl"
2573 as_fn_append ac_func_list " wait"
2574 as_fn_append ac_func_list " setmode"
2575 as_fn_append ac_func_list " execve"
2576 as_fn_append ac_func_list " pipe"
2577 as_fn_append ac_func_list " dup2"
2578 as_fn_append ac_func_list " close"
2579 as_fn_append ac_func_list " fcntl"
2580 as_fn_append ac_func_list " strcasestr"
2581 as_fn_append ac_func_list " getrlimit"
2582 as_fn_append ac_func_list " gettimeofday"
2583 as_fn_append ac_func_list " stat"
2584 as_fn_append ac_func_list " fstat"
2585 as_fn_append ac_func_list " lstat"
2586 as_fn_append ac_func_list " getpwuid"
2587 as_fn_append ac_func_list " vsnprintf"
2588 as_fn_append ac_func_list " dup"
2589 as_fn_append ac_func_list " getcwd"
2590 as_fn_append ac_func_list " localtime_r"
2591 as_fn_append ac_func_list " gmtime_r"
2592 as_fn_append ac_func_list " getpwuid_r"
2593 as_fn_append ac_func_list " ttyname_r"
2594 as_fn_append ac_func_list " clock_gettime"
2595 as_fn_append ac_func_list " readlink"
2596 as_fn_append ac_func_list " getgid"
2597 as_fn_append ac_func_list " getpid"
2598 as_fn_append ac_func_list " getppid"
2599 as_fn_append ac_func_list " getuid"
2600 as_fn_append ac_func_list " geteuid"
2601 as_fn_append ac_func_list " umask"
2602 as_fn_append ac_func_list " getegid"
2603 as_fn_append ac_func_list " secure_getenv"
2604 as_fn_append ac_func_list " __secure_getenv"
2605 as_fn_append ac_func_list " mkostemp"
2606 as_fn_append ac_func_list " strnlen"
2607 as_fn_append ac_func_list " strndup"
2608 as_fn_append ac_func_list " strtok_r"
2609 as_fn_append ac_func_list " newlocale"
2610 as_fn_append ac_func_list " freelocale"
2611 as_fn_append ac_func_list " uselocale"
2612 as_fn_append ac_func_list " strerror_l"
2613 as_fn_append ac_header_list " math.h"
2614 # Check that the precious variables saved in the cache have kept the same
2615 # value.
2616 ac_cache_corrupted=false
2617 for ac_var in $ac_precious_vars; do
2618 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2619 eval ac_new_set=\$ac_env_${ac_var}_set
2620 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2621 eval ac_new_val=\$ac_env_${ac_var}_value
2622 case $ac_old_set,$ac_new_set in
2623 set,)
2624 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2625 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2626 ac_cache_corrupted=: ;;
2627 ,set)
2628 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2629 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2630 ac_cache_corrupted=: ;;
2631 ,);;
2633 if test "x$ac_old_val" != "x$ac_new_val"; then
2634 # differences in whitespace do not lead to failure.
2635 ac_old_val_w=`echo x $ac_old_val`
2636 ac_new_val_w=`echo x $ac_new_val`
2637 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2638 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2639 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2640 ac_cache_corrupted=:
2641 else
2642 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2643 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2644 eval $ac_var=\$ac_old_val
2646 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2647 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2648 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2649 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2650 fi;;
2651 esac
2652 # Pass precious variables to config.status.
2653 if test "$ac_new_set" = set; then
2654 case $ac_new_val in
2655 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2656 *) ac_arg=$ac_var=$ac_new_val ;;
2657 esac
2658 case " $ac_configure_args " in
2659 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2660 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2661 esac
2663 done
2664 if $ac_cache_corrupted; then
2665 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2666 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2668 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2669 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2671 ## -------------------- ##
2672 ## Main body of script. ##
2673 ## -------------------- ##
2675 ac_ext=c
2676 ac_cpp='$CPP $CPPFLAGS'
2677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2685 ac_config_headers="$ac_config_headers config.h"
2687 ac_aux_dir=
2688 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2689 for ac_t in install-sh install.sh shtool; do
2690 if test -f "$ac_dir/$ac_t"; then
2691 ac_aux_dir=$ac_dir
2692 ac_install_sh="$ac_aux_dir/$ac_t -c"
2693 break 2
2695 done
2696 done
2697 if test -z "$ac_aux_dir"; then
2698 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2701 # These three variables are undocumented and unsupported,
2702 # and are intended to be withdrawn in a future Autoconf release.
2703 # They can cause serious problems if a builder's source tree is in a directory
2704 # whose full name contains unusual characters.
2705 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2706 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2707 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2710 # Make sure we can run config.sub.
2711 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2712 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2715 $as_echo_n "checking build system type... " >&6; }
2716 if test "${ac_cv_build+set}" = set; then :
2717 $as_echo_n "(cached) " >&6
2718 else
2719 ac_build_alias=$build_alias
2720 test "x$ac_build_alias" = x &&
2721 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2722 test "x$ac_build_alias" = x &&
2723 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
2724 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2725 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2729 $as_echo "$ac_cv_build" >&6; }
2730 case $ac_cv_build in
2731 *-*-*) ;;
2732 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
2733 esac
2734 build=$ac_cv_build
2735 ac_save_IFS=$IFS; IFS='-'
2736 set x $ac_cv_build
2737 shift
2738 build_cpu=$1
2739 build_vendor=$2
2740 shift; shift
2741 # Remember, the first character of IFS is used to create $*,
2742 # except with old shells:
2743 build_os=$*
2744 IFS=$ac_save_IFS
2745 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2748 case ${build_alias} in
2749 "") build_noncanonical=${build} ;;
2750 *) build_noncanonical=${build_alias} ;;
2751 esac
2753 case ${host_alias} in
2754 "") host_noncanonical=${build_noncanonical} ;;
2755 *) host_noncanonical=${host_alias} ;;
2756 esac
2758 case ${target_alias} in
2759 "") target_noncanonical=${host_noncanonical} ;;
2760 *) target_noncanonical=${target_alias} ;;
2761 esac
2764 # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
2765 # have matching libraries, they should use host libraries: Makefile.tpl
2766 # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
2767 # However, they still use the build modules, because the corresponding
2768 # host modules (e.g. bison) are only built for the host when bootstrap
2769 # finishes. So:
2770 # - build_subdir is where we find build modules, and never changes.
2771 # - build_libsubdir is where we find build libraries, and can be overridden.
2773 # Prefix 'build-' so this never conflicts with target_subdir.
2774 build_subdir="build-${build_noncanonical}"
2776 # Check whether --with-build-libsubdir was given.
2777 if test "${with_build_libsubdir+set}" = set; then :
2778 withval=$with_build_libsubdir; build_libsubdir="$withval"
2779 else
2780 build_libsubdir="$build_subdir"
2783 # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
2784 if ( test $srcdir = . && test -d gcc ) \
2785 || test -d $srcdir/../host-${host_noncanonical}; then
2786 host_subdir="host-${host_noncanonical}"
2787 else
2788 host_subdir=.
2790 # No prefix.
2791 target_subdir=${target_noncanonical}
2794 # -------
2795 # Options
2796 # -------
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5
2799 $as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; }
2800 # Check whether --enable-version-specific-runtime-libs was given.
2801 if test "${enable_version_specific_runtime_libs+set}" = set; then :
2802 enableval=$enable_version_specific_runtime_libs; case "$enableval" in
2803 yes) version_specific_libs=yes ;;
2804 no) version_specific_libs=no ;;
2805 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;;
2806 esac
2807 else
2808 version_specific_libs=no
2811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5
2812 $as_echo "$version_specific_libs" >&6; }
2814 # Build with intermodule optimisations
2815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-intermodule" >&5
2816 $as_echo_n "checking for --enable-intermodule... " >&6; }
2817 # Check whether --enable-intermodule was given.
2818 if test "${enable_intermodule+set}" = set; then :
2819 enableval=$enable_intermodule; case "$enable_intermodule" in
2820 yes) onestep="-onestep";;
2821 *) onestep="";;
2822 esac
2823 else
2824 onestep=""
2827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_intermodule" >&5
2828 $as_echo "$enable_intermodule" >&6; }
2829 if test x$onestep = x-onestep; then
2830 onestep_TRUE=
2831 onestep_FALSE='#'
2832 else
2833 onestep_TRUE='#'
2834 onestep_FALSE=
2839 # Gets build, host, target, *_vendor, *_cpu, *_os, etc.
2841 # You will slowly go insane if you do not grok the following fact: when
2842 # building this library, the top-level /target/ becomes the library's /host/.
2844 # configure then causes --target to default to --host, exactly like any
2845 # other package using autoconf. Therefore, 'target' and 'host' will
2846 # always be the same. This makes sense both for native and cross compilers
2847 # just think about it for a little while. :-)
2849 # Also, if this library is being configured as part of a cross compiler, the
2850 # top-level configure script will pass the "real" host as $with_cross_host.
2852 # Do not delete or change the following two lines. For why, see
2853 # http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html
2854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2855 $as_echo_n "checking host system type... " >&6; }
2856 if test "${ac_cv_host+set}" = set; then :
2857 $as_echo_n "(cached) " >&6
2858 else
2859 if test "x$host_alias" = x; then
2860 ac_cv_host=$ac_cv_build
2861 else
2862 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2863 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2868 $as_echo "$ac_cv_host" >&6; }
2869 case $ac_cv_host in
2870 *-*-*) ;;
2871 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
2872 esac
2873 host=$ac_cv_host
2874 ac_save_IFS=$IFS; IFS='-'
2875 set x $ac_cv_host
2876 shift
2877 host_cpu=$1
2878 host_vendor=$2
2879 shift; shift
2880 # Remember, the first character of IFS is used to create $*,
2881 # except with old shells:
2882 host_os=$*
2883 IFS=$ac_save_IFS
2884 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2888 $as_echo_n "checking target system type... " >&6; }
2889 if test "${ac_cv_target+set}" = set; then :
2890 $as_echo_n "(cached) " >&6
2891 else
2892 if test "x$target_alias" = x; then
2893 ac_cv_target=$ac_cv_host
2894 else
2895 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2896 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2901 $as_echo "$ac_cv_target" >&6; }
2902 case $ac_cv_target in
2903 *-*-*) ;;
2904 *) as_fn_error "invalid value of canonical target" "$LINENO" 5;;
2905 esac
2906 target=$ac_cv_target
2907 ac_save_IFS=$IFS; IFS='-'
2908 set x $ac_cv_target
2909 shift
2910 target_cpu=$1
2911 target_vendor=$2
2912 shift; shift
2913 # Remember, the first character of IFS is used to create $*,
2914 # except with old shells:
2915 target_os=$*
2916 IFS=$ac_save_IFS
2917 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2920 # The aliases save the names the user supplied, while $host etc.
2921 # will get canonicalized.
2922 test -n "$target_alias" &&
2923 test "$program_prefix$program_suffix$program_transform_name" = \
2924 NONENONEs,x,x, &&
2925 program_prefix=${target_alias}-
2930 target_alias=${target_alias-$host_alias}
2933 # Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the
2934 # following is magically included in AUTOMAKE_OPTIONS in each Makefile.am.
2935 # 1.9.6: minimum required version
2936 # no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch
2937 # of other PACKAGE_* variables will, however, and there's nothing
2938 # we can do about that; they come from AC_INIT).
2939 # foreign: we don't follow the normal rules for GNU packages (no COPYING
2940 # file in the top srcdir, etc, etc), so stop complaining.
2941 # no-dist: we don't want 'dist' and related rules.
2942 # -Wall: turns on all automake warnings...
2943 # -Wno-portability: ...except this one, since GNU make is required.
2944 am__api_version='1.11'
2946 # Find a good install program. We prefer a C program (faster),
2947 # so one script is as good as another. But avoid the broken or
2948 # incompatible versions:
2949 # SysV /etc/install, /usr/sbin/install
2950 # SunOS /usr/etc/install
2951 # IRIX /sbin/install
2952 # AIX /bin/install
2953 # AmigaOS /C/install, which installs bootblocks on floppy discs
2954 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2955 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2956 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2957 # OS/2's system install, which has a completely different semantic
2958 # ./install, which can be erroneously created by make from ./install.sh.
2959 # Reject install programs that cannot install multiple files.
2960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2961 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2962 if test -z "$INSTALL"; then
2963 if test "${ac_cv_path_install+set}" = set; then :
2964 $as_echo_n "(cached) " >&6
2965 else
2966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2967 for as_dir in $PATH
2969 IFS=$as_save_IFS
2970 test -z "$as_dir" && as_dir=.
2971 # Account for people who put trailing slashes in PATH elements.
2972 case $as_dir/ in #((
2973 ./ | .// | /[cC]/* | \
2974 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2975 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2976 /usr/ucb/* ) ;;
2978 # OSF1 and SCO ODT 3.0 have their own names for install.
2979 # Don't use installbsd from OSF since it installs stuff as root
2980 # by default.
2981 for ac_prog in ginstall scoinst install; do
2982 for ac_exec_ext in '' $ac_executable_extensions; do
2983 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2984 if test $ac_prog = install &&
2985 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2986 # AIX install. It has an incompatible calling convention.
2988 elif test $ac_prog = install &&
2989 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2990 # program-specific install script used by HP pwplus--don't use.
2992 else
2993 rm -rf conftest.one conftest.two conftest.dir
2994 echo one > conftest.one
2995 echo two > conftest.two
2996 mkdir conftest.dir
2997 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2998 test -s conftest.one && test -s conftest.two &&
2999 test -s conftest.dir/conftest.one &&
3000 test -s conftest.dir/conftest.two
3001 then
3002 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3003 break 3
3007 done
3008 done
3010 esac
3012 done
3013 IFS=$as_save_IFS
3015 rm -rf conftest.one conftest.two conftest.dir
3018 if test "${ac_cv_path_install+set}" = set; then
3019 INSTALL=$ac_cv_path_install
3020 else
3021 # As a last resort, use the slow shell script. Don't cache a
3022 # value for INSTALL within a source directory, because that will
3023 # break other packages using the cache if that directory is
3024 # removed, or if the value is a relative name.
3025 INSTALL=$ac_install_sh
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3029 $as_echo "$INSTALL" >&6; }
3031 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3032 # It thinks the first close brace ends the variable substitution.
3033 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3035 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3037 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3040 $as_echo_n "checking whether build environment is sane... " >&6; }
3041 # Just in case
3042 sleep 1
3043 echo timestamp > conftest.file
3044 # Reject unsafe characters in $srcdir or the absolute working directory
3045 # name. Accept space and tab only in the latter.
3046 am_lf='
3048 case `pwd` in
3049 *[\\\"\#\$\&\'\`$am_lf]*)
3050 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3051 esac
3052 case $srcdir in
3053 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3054 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3055 esac
3057 # Do `set' in a subshell so we don't clobber the current shell's
3058 # arguments. Must try -L first in case configure is actually a
3059 # symlink; some systems play weird games with the mod time of symlinks
3060 # (eg FreeBSD returns the mod time of the symlink's containing
3061 # directory).
3062 if (
3063 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3064 if test "$*" = "X"; then
3065 # -L didn't work.
3066 set X `ls -t "$srcdir/configure" conftest.file`
3068 rm -f conftest.file
3069 if test "$*" != "X $srcdir/configure conftest.file" \
3070 && test "$*" != "X conftest.file $srcdir/configure"; then
3072 # If neither matched, then we have a broken ls. This can happen
3073 # if, for instance, CONFIG_SHELL is bash and it inherits a
3074 # broken ls alias from the environment. This has actually
3075 # happened. Such a system could not be considered "sane".
3076 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3077 alias in your environment" "$LINENO" 5
3080 test "$2" = conftest.file
3082 then
3083 # Ok.
3085 else
3086 as_fn_error "newly created file is older than distributed files!
3087 Check your system clock" "$LINENO" 5
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3090 $as_echo "yes" >&6; }
3091 test "$program_prefix" != NONE &&
3092 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3093 # Use a double $ so make ignores it.
3094 test "$program_suffix" != NONE &&
3095 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3096 # Double any \ or $.
3097 # By default was `s,x,x', remove it if useless.
3098 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3099 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3101 # expand $ac_aux_dir to an absolute path
3102 am_aux_dir=`cd $ac_aux_dir && pwd`
3104 if test x"${MISSING+set}" != xset; then
3105 case $am_aux_dir in
3106 *\ * | *\ *)
3107 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3109 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3110 esac
3112 # Use eval to expand $SHELL
3113 if eval "$MISSING --run true"; then
3114 am_missing_run="$MISSING --run "
3115 else
3116 am_missing_run=
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3118 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3121 if test x"${install_sh}" != xset; then
3122 case $am_aux_dir in
3123 *\ * | *\ *)
3124 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3126 install_sh="\${SHELL} $am_aux_dir/install-sh"
3127 esac
3130 # Installed binaries are usually stripped using `strip' when the user
3131 # run `make install-strip'. However `strip' might not be the right
3132 # tool to use in cross-compilation environments, therefore Automake
3133 # will honor the `STRIP' environment variable to overrule this program.
3134 if test "$cross_compiling" != no; then
3135 if test -n "$ac_tool_prefix"; then
3136 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3137 set dummy ${ac_tool_prefix}strip; ac_word=$2
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3139 $as_echo_n "checking for $ac_word... " >&6; }
3140 if test "${ac_cv_prog_STRIP+set}" = set; then :
3141 $as_echo_n "(cached) " >&6
3142 else
3143 if test -n "$STRIP"; then
3144 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3145 else
3146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3147 for as_dir in $PATH
3149 IFS=$as_save_IFS
3150 test -z "$as_dir" && as_dir=.
3151 for ac_exec_ext in '' $ac_executable_extensions; do
3152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3153 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3155 break 2
3157 done
3158 done
3159 IFS=$as_save_IFS
3163 STRIP=$ac_cv_prog_STRIP
3164 if test -n "$STRIP"; then
3165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3166 $as_echo "$STRIP" >&6; }
3167 else
3168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3169 $as_echo "no" >&6; }
3174 if test -z "$ac_cv_prog_STRIP"; then
3175 ac_ct_STRIP=$STRIP
3176 # Extract the first word of "strip", so it can be a program name with args.
3177 set dummy strip; ac_word=$2
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3179 $as_echo_n "checking for $ac_word... " >&6; }
3180 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3181 $as_echo_n "(cached) " >&6
3182 else
3183 if test -n "$ac_ct_STRIP"; then
3184 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3185 else
3186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3187 for as_dir in $PATH
3189 IFS=$as_save_IFS
3190 test -z "$as_dir" && as_dir=.
3191 for ac_exec_ext in '' $ac_executable_extensions; do
3192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3193 ac_cv_prog_ac_ct_STRIP="strip"
3194 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3195 break 2
3197 done
3198 done
3199 IFS=$as_save_IFS
3203 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3204 if test -n "$ac_ct_STRIP"; then
3205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3206 $as_echo "$ac_ct_STRIP" >&6; }
3207 else
3208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3209 $as_echo "no" >&6; }
3212 if test "x$ac_ct_STRIP" = x; then
3213 STRIP=":"
3214 else
3215 case $cross_compiling:$ac_tool_warned in
3216 yes:)
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3218 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3219 ac_tool_warned=yes ;;
3220 esac
3221 STRIP=$ac_ct_STRIP
3223 else
3224 STRIP="$ac_cv_prog_STRIP"
3228 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3231 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3232 if test -z "$MKDIR_P"; then
3233 if test "${ac_cv_path_mkdir+set}" = set; then :
3234 $as_echo_n "(cached) " >&6
3235 else
3236 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3237 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3239 IFS=$as_save_IFS
3240 test -z "$as_dir" && as_dir=.
3241 for ac_prog in mkdir gmkdir; do
3242 for ac_exec_ext in '' $ac_executable_extensions; do
3243 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3244 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3245 'mkdir (GNU coreutils) '* | \
3246 'mkdir (coreutils) '* | \
3247 'mkdir (fileutils) '4.1*)
3248 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3249 break 3;;
3250 esac
3251 done
3252 done
3253 done
3254 IFS=$as_save_IFS
3258 if test "${ac_cv_path_mkdir+set}" = set; then
3259 MKDIR_P="$ac_cv_path_mkdir -p"
3260 else
3261 # As a last resort, use the slow shell script. Don't cache a
3262 # value for MKDIR_P within a source directory, because that will
3263 # break other packages using the cache if that directory is
3264 # removed, or if the value is a relative name.
3265 test -d ./--version && rmdir ./--version
3266 MKDIR_P="$ac_install_sh -d"
3269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3270 $as_echo "$MKDIR_P" >&6; }
3272 mkdir_p="$MKDIR_P"
3273 case $mkdir_p in
3274 [\\/$]* | ?:[\\/]*) ;;
3275 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3276 esac
3278 for ac_prog in gawk mawk nawk awk
3280 # Extract the first word of "$ac_prog", so it can be a program name with args.
3281 set dummy $ac_prog; ac_word=$2
3282 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3283 $as_echo_n "checking for $ac_word... " >&6; }
3284 if test "${ac_cv_prog_AWK+set}" = set; then :
3285 $as_echo_n "(cached) " >&6
3286 else
3287 if test -n "$AWK"; then
3288 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3289 else
3290 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3291 for as_dir in $PATH
3293 IFS=$as_save_IFS
3294 test -z "$as_dir" && as_dir=.
3295 for ac_exec_ext in '' $ac_executable_extensions; do
3296 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3297 ac_cv_prog_AWK="$ac_prog"
3298 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3299 break 2
3301 done
3302 done
3303 IFS=$as_save_IFS
3307 AWK=$ac_cv_prog_AWK
3308 if test -n "$AWK"; then
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3310 $as_echo "$AWK" >&6; }
3311 else
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3313 $as_echo "no" >&6; }
3317 test -n "$AWK" && break
3318 done
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3321 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3322 set x ${MAKE-make}
3323 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3324 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3325 $as_echo_n "(cached) " >&6
3326 else
3327 cat >conftest.make <<\_ACEOF
3328 SHELL = /bin/sh
3329 all:
3330 @echo '@@@%%%=$(MAKE)=@@@%%%'
3331 _ACEOF
3332 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3333 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3334 *@@@%%%=?*=@@@%%%*)
3335 eval ac_cv_prog_make_${ac_make}_set=yes;;
3337 eval ac_cv_prog_make_${ac_make}_set=no;;
3338 esac
3339 rm -f conftest.make
3341 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3343 $as_echo "yes" >&6; }
3344 SET_MAKE=
3345 else
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3347 $as_echo "no" >&6; }
3348 SET_MAKE="MAKE=${MAKE-make}"
3351 rm -rf .tst 2>/dev/null
3352 mkdir .tst 2>/dev/null
3353 if test -d .tst; then
3354 am__leading_dot=.
3355 else
3356 am__leading_dot=_
3358 rmdir .tst 2>/dev/null
3360 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3361 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3362 # is not polluted with repeated "-I."
3363 am__isrc=' -I$(srcdir)'
3364 # test to see if srcdir already configured
3365 if test -f $srcdir/config.status; then
3366 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3370 # test whether we have cygpath
3371 if test -z "$CYGPATH_W"; then
3372 if (cygpath --version) >/dev/null 2>/dev/null; then
3373 CYGPATH_W='cygpath -w'
3374 else
3375 CYGPATH_W=echo
3380 # Define the identity of the package.
3381 PACKAGE='libgfortran'
3382 VERSION='0.3'
3385 # Some tools Automake needs.
3387 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3390 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3393 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3396 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3399 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3401 # We need awk for the "check" target. The system "awk" is bad on
3402 # some platforms.
3403 # Always define AMTAR for backward compatibility. Yes, it's still used
3404 # in the wild :-( We should find a proper way to deprecate it ...
3405 AMTAR='$${TAR-tar}'
3407 am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
3415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3416 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3417 # Check whether --enable-maintainer-mode was given.
3418 if test "${enable_maintainer_mode+set}" = set; then :
3419 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3420 else
3421 USE_MAINTAINER_MODE=no
3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3425 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3426 if test $USE_MAINTAINER_MODE = yes; then
3427 MAINTAINER_MODE_TRUE=
3428 MAINTAINER_MODE_FALSE='#'
3429 else
3430 MAINTAINER_MODE_TRUE='#'
3431 MAINTAINER_MODE_FALSE=
3434 MAINT=$MAINTAINER_MODE_TRUE
3437 # Default to --enable-multilib
3438 # Check whether --enable-multilib was given.
3439 if test "${enable_multilib+set}" = set; then :
3440 enableval=$enable_multilib; case "$enableval" in
3441 yes) multilib=yes ;;
3442 no) multilib=no ;;
3443 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;;
3444 esac
3445 else
3446 multilib=yes
3450 # We may get other options which we leave undocumented:
3451 # --with-target-subdir, --with-multisrctop, --with-multisubdir
3452 # See config-ml.in if you want the gory details.
3454 if test "$srcdir" = "."; then
3455 if test "$with_target_subdir" != "."; then
3456 multi_basedir="$srcdir/$with_multisrctop../.."
3457 else
3458 multi_basedir="$srcdir/$with_multisrctop.."
3460 else
3461 multi_basedir="$srcdir/.."
3465 # Even if the default multilib is not a cross compilation,
3466 # it may be that some of the other multilibs are.
3467 if test $cross_compiling = no && test $multilib = yes \
3468 && test "x${with_multisubdir}" != x ; then
3469 cross_compiling=maybe
3472 ac_config_commands="$ac_config_commands default-1"
3475 # Handy for debugging:
3476 #AC_MSG_NOTICE($build / $host / $target / $host_alias / $target_alias); sleep 5
3478 # Are we being configured with some form of cross compiler?
3479 # NB: We don't actually need to know this just now, but when, say, a test
3480 # suite is included, we'll have to know.
3481 if test "$build" != "$host"; then
3482 LIBGFOR_IS_NATIVE=false
3484 else
3485 LIBGFOR_IS_NATIVE=true
3488 DEPDIR="${am__leading_dot}deps"
3490 ac_config_commands="$ac_config_commands depfiles"
3493 am_make=${MAKE-make}
3494 cat > confinc << 'END'
3495 am__doit:
3496 @echo this is the am__doit target
3497 .PHONY: am__doit
3499 # If we don't find an include directive, just comment out the code.
3500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3501 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3502 am__include="#"
3503 am__quote=
3504 _am_result=none
3505 # First try GNU make style include.
3506 echo "include confinc" > confmf
3507 # Ignore all kinds of additional output from `make'.
3508 case `$am_make -s -f confmf 2> /dev/null` in #(
3509 *the\ am__doit\ target*)
3510 am__include=include
3511 am__quote=
3512 _am_result=GNU
3514 esac
3515 # Now try BSD make style include.
3516 if test "$am__include" = "#"; then
3517 echo '.include "confinc"' > confmf
3518 case `$am_make -s -f confmf 2> /dev/null` in #(
3519 *the\ am__doit\ target*)
3520 am__include=.include
3521 am__quote="\""
3522 _am_result=BSD
3524 esac
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3529 $as_echo "$_am_result" >&6; }
3530 rm -f confinc confmf
3532 # Check whether --enable-dependency-tracking was given.
3533 if test "${enable_dependency_tracking+set}" = set; then :
3534 enableval=$enable_dependency_tracking;
3537 if test "x$enable_dependency_tracking" != xno; then
3538 am_depcomp="$ac_aux_dir/depcomp"
3539 AMDEPBACKSLASH='\'
3540 am__nodep='_no'
3542 if test "x$enable_dependency_tracking" != xno; then
3543 AMDEP_TRUE=
3544 AMDEP_FALSE='#'
3545 else
3546 AMDEP_TRUE='#'
3547 AMDEP_FALSE=
3551 ac_ext=c
3552 ac_cpp='$CPP $CPPFLAGS'
3553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3556 if test -n "$ac_tool_prefix"; then
3557 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3558 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3560 $as_echo_n "checking for $ac_word... " >&6; }
3561 if test "${ac_cv_prog_CC+set}" = set; then :
3562 $as_echo_n "(cached) " >&6
3563 else
3564 if test -n "$CC"; then
3565 ac_cv_prog_CC="$CC" # Let the user override the test.
3566 else
3567 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3568 for as_dir in $PATH
3570 IFS=$as_save_IFS
3571 test -z "$as_dir" && as_dir=.
3572 for ac_exec_ext in '' $ac_executable_extensions; do
3573 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3574 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3575 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3576 break 2
3578 done
3579 done
3580 IFS=$as_save_IFS
3584 CC=$ac_cv_prog_CC
3585 if test -n "$CC"; then
3586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3587 $as_echo "$CC" >&6; }
3588 else
3589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3590 $as_echo "no" >&6; }
3595 if test -z "$ac_cv_prog_CC"; then
3596 ac_ct_CC=$CC
3597 # Extract the first word of "gcc", so it can be a program name with args.
3598 set dummy gcc; ac_word=$2
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3600 $as_echo_n "checking for $ac_word... " >&6; }
3601 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3602 $as_echo_n "(cached) " >&6
3603 else
3604 if test -n "$ac_ct_CC"; then
3605 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3606 else
3607 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3608 for as_dir in $PATH
3610 IFS=$as_save_IFS
3611 test -z "$as_dir" && as_dir=.
3612 for ac_exec_ext in '' $ac_executable_extensions; do
3613 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3614 ac_cv_prog_ac_ct_CC="gcc"
3615 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3616 break 2
3618 done
3619 done
3620 IFS=$as_save_IFS
3624 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3625 if test -n "$ac_ct_CC"; then
3626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3627 $as_echo "$ac_ct_CC" >&6; }
3628 else
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3630 $as_echo "no" >&6; }
3633 if test "x$ac_ct_CC" = x; then
3634 CC=""
3635 else
3636 case $cross_compiling:$ac_tool_warned in
3637 yes:)
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3639 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3640 ac_tool_warned=yes ;;
3641 esac
3642 CC=$ac_ct_CC
3644 else
3645 CC="$ac_cv_prog_CC"
3648 if test -z "$CC"; then
3649 if test -n "$ac_tool_prefix"; then
3650 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3651 set dummy ${ac_tool_prefix}cc; ac_word=$2
3652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3653 $as_echo_n "checking for $ac_word... " >&6; }
3654 if test "${ac_cv_prog_CC+set}" = set; then :
3655 $as_echo_n "(cached) " >&6
3656 else
3657 if test -n "$CC"; then
3658 ac_cv_prog_CC="$CC" # Let the user override the test.
3659 else
3660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3661 for as_dir in $PATH
3663 IFS=$as_save_IFS
3664 test -z "$as_dir" && as_dir=.
3665 for ac_exec_ext in '' $ac_executable_extensions; do
3666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3667 ac_cv_prog_CC="${ac_tool_prefix}cc"
3668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3669 break 2
3671 done
3672 done
3673 IFS=$as_save_IFS
3677 CC=$ac_cv_prog_CC
3678 if test -n "$CC"; then
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3680 $as_echo "$CC" >&6; }
3681 else
3682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3683 $as_echo "no" >&6; }
3689 if test -z "$CC"; then
3690 # Extract the first word of "cc", so it can be a program name with args.
3691 set dummy cc; ac_word=$2
3692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3693 $as_echo_n "checking for $ac_word... " >&6; }
3694 if test "${ac_cv_prog_CC+set}" = set; then :
3695 $as_echo_n "(cached) " >&6
3696 else
3697 if test -n "$CC"; then
3698 ac_cv_prog_CC="$CC" # Let the user override the test.
3699 else
3700 ac_prog_rejected=no
3701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3702 for as_dir in $PATH
3704 IFS=$as_save_IFS
3705 test -z "$as_dir" && as_dir=.
3706 for ac_exec_ext in '' $ac_executable_extensions; do
3707 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3708 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3709 ac_prog_rejected=yes
3710 continue
3712 ac_cv_prog_CC="cc"
3713 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3714 break 2
3716 done
3717 done
3718 IFS=$as_save_IFS
3720 if test $ac_prog_rejected = yes; then
3721 # We found a bogon in the path, so make sure we never use it.
3722 set dummy $ac_cv_prog_CC
3723 shift
3724 if test $# != 0; then
3725 # We chose a different compiler from the bogus one.
3726 # However, it has the same basename, so the bogon will be chosen
3727 # first if we set CC to just the basename; use the full file name.
3728 shift
3729 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3734 CC=$ac_cv_prog_CC
3735 if test -n "$CC"; then
3736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3737 $as_echo "$CC" >&6; }
3738 else
3739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3740 $as_echo "no" >&6; }
3745 if test -z "$CC"; then
3746 if test -n "$ac_tool_prefix"; then
3747 for ac_prog in cl.exe
3749 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3750 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3752 $as_echo_n "checking for $ac_word... " >&6; }
3753 if test "${ac_cv_prog_CC+set}" = set; then :
3754 $as_echo_n "(cached) " >&6
3755 else
3756 if test -n "$CC"; then
3757 ac_cv_prog_CC="$CC" # Let the user override the test.
3758 else
3759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3760 for as_dir in $PATH
3762 IFS=$as_save_IFS
3763 test -z "$as_dir" && as_dir=.
3764 for ac_exec_ext in '' $ac_executable_extensions; do
3765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3766 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3767 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3768 break 2
3770 done
3771 done
3772 IFS=$as_save_IFS
3776 CC=$ac_cv_prog_CC
3777 if test -n "$CC"; then
3778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3779 $as_echo "$CC" >&6; }
3780 else
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3782 $as_echo "no" >&6; }
3786 test -n "$CC" && break
3787 done
3789 if test -z "$CC"; then
3790 ac_ct_CC=$CC
3791 for ac_prog in cl.exe
3793 # Extract the first word of "$ac_prog", so it can be a program name with args.
3794 set dummy $ac_prog; ac_word=$2
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3796 $as_echo_n "checking for $ac_word... " >&6; }
3797 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3798 $as_echo_n "(cached) " >&6
3799 else
3800 if test -n "$ac_ct_CC"; then
3801 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3802 else
3803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3804 for as_dir in $PATH
3806 IFS=$as_save_IFS
3807 test -z "$as_dir" && as_dir=.
3808 for ac_exec_ext in '' $ac_executable_extensions; do
3809 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3810 ac_cv_prog_ac_ct_CC="$ac_prog"
3811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3812 break 2
3814 done
3815 done
3816 IFS=$as_save_IFS
3820 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3821 if test -n "$ac_ct_CC"; then
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3823 $as_echo "$ac_ct_CC" >&6; }
3824 else
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3826 $as_echo "no" >&6; }
3830 test -n "$ac_ct_CC" && break
3831 done
3833 if test "x$ac_ct_CC" = x; then
3834 CC=""
3835 else
3836 case $cross_compiling:$ac_tool_warned in
3837 yes:)
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3839 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3840 ac_tool_warned=yes ;;
3841 esac
3842 CC=$ac_ct_CC
3849 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3850 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3851 as_fn_error "no acceptable C compiler found in \$PATH
3852 See \`config.log' for more details." "$LINENO" 5; }
3854 # Provide some information about the compiler.
3855 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3856 set X $ac_compile
3857 ac_compiler=$2
3858 for ac_option in --version -v -V -qversion; do
3859 { { ac_try="$ac_compiler $ac_option >&5"
3860 case "(($ac_try" in
3861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3862 *) ac_try_echo=$ac_try;;
3863 esac
3864 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3865 $as_echo "$ac_try_echo"; } >&5
3866 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3867 ac_status=$?
3868 if test -s conftest.err; then
3869 sed '10a\
3870 ... rest of stderr output deleted ...
3871 10q' conftest.err >conftest.er1
3872 cat conftest.er1 >&5
3873 rm -f conftest.er1 conftest.err
3875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3876 test $ac_status = 0; }
3877 done
3879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3880 /* end confdefs.h. */
3883 main ()
3887 return 0;
3889 _ACEOF
3890 # FIXME: Cleanup?
3891 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
3892 (eval $ac_link) 2>&5
3893 ac_status=$?
3894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3895 test $ac_status = 0; }; then :
3896 gcc_no_link=no
3897 else
3898 gcc_no_link=yes
3900 if test x$gcc_no_link = xyes; then
3901 # Setting cross_compile will disable run tests; it will
3902 # also disable AC_CHECK_FILE but that's generally
3903 # correct if we can't link.
3904 cross_compiling=yes
3905 EXEEXT=
3906 else
3907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3908 /* end confdefs.h. */
3911 main ()
3915 return 0;
3917 _ACEOF
3918 ac_clean_files_save=$ac_clean_files
3919 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
3920 # Try to create an executable without -o first, disregard a.out.
3921 # It will help us diagnose broken compilers, and finding out an intuition
3922 # of exeext.
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3924 $as_echo_n "checking for C compiler default output file name... " >&6; }
3925 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3927 # The possible output files:
3928 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3930 ac_rmfiles=
3931 for ac_file in $ac_files
3933 case $ac_file in
3934 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3935 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3936 esac
3937 done
3938 rm -f $ac_rmfiles
3940 if { { ac_try="$ac_link_default"
3941 case "(($ac_try" in
3942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3943 *) ac_try_echo=$ac_try;;
3944 esac
3945 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3946 $as_echo "$ac_try_echo"; } >&5
3947 (eval "$ac_link_default") 2>&5
3948 ac_status=$?
3949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3950 test $ac_status = 0; }; then :
3951 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3952 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3953 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3954 # so that the user can short-circuit this test for compilers unknown to
3955 # Autoconf.
3956 for ac_file in $ac_files ''
3958 test -f "$ac_file" || continue
3959 case $ac_file in
3960 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3962 [ab].out )
3963 # We found the default executable, but exeext='' is most
3964 # certainly right.
3965 break;;
3966 *.* )
3967 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3968 then :; else
3969 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3971 # We set ac_cv_exeext here because the later test for it is not
3972 # safe: cross compilers may not add the suffix if given an `-o'
3973 # argument, so we may need to know it at that point already.
3974 # Even if this section looks crufty: it has the advantage of
3975 # actually working.
3976 break;;
3978 break;;
3979 esac
3980 done
3981 test "$ac_cv_exeext" = no && ac_cv_exeext=
3983 else
3984 ac_file=''
3986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3987 $as_echo "$ac_file" >&6; }
3988 if test -z "$ac_file"; then :
3989 $as_echo "$as_me: failed program was:" >&5
3990 sed 's/^/| /' conftest.$ac_ext >&5
3992 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3993 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3994 { as_fn_set_status 77
3995 as_fn_error "C compiler cannot create executables
3996 See \`config.log' for more details." "$LINENO" 5; }; }
3998 ac_exeext=$ac_cv_exeext
4000 # Check that the compiler produces executables we can run. If not, either
4001 # the compiler is broken, or we cross compile.
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4003 $as_echo_n "checking whether the C compiler works... " >&6; }
4004 # If not cross compiling, check that we can run a simple program.
4005 if test "$cross_compiling" != yes; then
4006 if { ac_try='./$ac_file'
4007 { { case "(($ac_try" in
4008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4009 *) ac_try_echo=$ac_try;;
4010 esac
4011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4012 $as_echo "$ac_try_echo"; } >&5
4013 (eval "$ac_try") 2>&5
4014 ac_status=$?
4015 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4016 test $ac_status = 0; }; }; then
4017 cross_compiling=no
4018 else
4019 if test "$cross_compiling" = maybe; then
4020 cross_compiling=yes
4021 else
4022 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4023 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4024 as_fn_error "cannot run C compiled programs.
4025 If you meant to cross compile, use \`--host'.
4026 See \`config.log' for more details." "$LINENO" 5; }
4030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4031 $as_echo "yes" >&6; }
4033 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4034 ac_clean_files=$ac_clean_files_save
4035 # Check that the compiler produces executables we can run. If not, either
4036 # the compiler is broken, or we cross compile.
4037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4038 $as_echo_n "checking whether we are cross compiling... " >&6; }
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4040 $as_echo "$cross_compiling" >&6; }
4042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4043 $as_echo_n "checking for suffix of executables... " >&6; }
4044 if { { ac_try="$ac_link"
4045 case "(($ac_try" in
4046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4047 *) ac_try_echo=$ac_try;;
4048 esac
4049 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4050 $as_echo "$ac_try_echo"; } >&5
4051 (eval "$ac_link") 2>&5
4052 ac_status=$?
4053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4054 test $ac_status = 0; }; then :
4055 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4056 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4057 # work properly (i.e., refer to `conftest.exe'), while it won't with
4058 # `rm'.
4059 for ac_file in conftest.exe conftest conftest.*; do
4060 test -f "$ac_file" || continue
4061 case $ac_file in
4062 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4063 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4064 break;;
4065 * ) break;;
4066 esac
4067 done
4068 else
4069 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4070 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4071 as_fn_error "cannot compute suffix of executables: cannot compile and link
4072 See \`config.log' for more details." "$LINENO" 5; }
4074 rm -f conftest$ac_cv_exeext
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4076 $as_echo "$ac_cv_exeext" >&6; }
4078 rm -f conftest.$ac_ext
4079 EXEEXT=$ac_cv_exeext
4080 ac_exeext=$EXEEXT
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4083 $as_echo_n "checking for suffix of object files... " >&6; }
4084 if test "${ac_cv_objext+set}" = set; then :
4085 $as_echo_n "(cached) " >&6
4086 else
4087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088 /* end confdefs.h. */
4091 main ()
4095 return 0;
4097 _ACEOF
4098 rm -f conftest.o conftest.obj
4099 if { { ac_try="$ac_compile"
4100 case "(($ac_try" in
4101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4102 *) ac_try_echo=$ac_try;;
4103 esac
4104 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4105 $as_echo "$ac_try_echo"; } >&5
4106 (eval "$ac_compile") 2>&5
4107 ac_status=$?
4108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4109 test $ac_status = 0; }; then :
4110 for ac_file in conftest.o conftest.obj conftest.*; do
4111 test -f "$ac_file" || continue;
4112 case $ac_file in
4113 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4114 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4115 break;;
4116 esac
4117 done
4118 else
4119 $as_echo "$as_me: failed program was:" >&5
4120 sed 's/^/| /' conftest.$ac_ext >&5
4122 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4123 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4124 as_fn_error "cannot compute suffix of object files: cannot compile
4125 See \`config.log' for more details." "$LINENO" 5; }
4127 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4130 $as_echo "$ac_cv_objext" >&6; }
4131 OBJEXT=$ac_cv_objext
4132 ac_objext=$OBJEXT
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4134 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4135 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4136 $as_echo_n "(cached) " >&6
4137 else
4138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4139 /* end confdefs.h. */
4142 main ()
4144 #ifndef __GNUC__
4145 choke me
4146 #endif
4149 return 0;
4151 _ACEOF
4152 if ac_fn_c_try_compile "$LINENO"; then :
4153 ac_compiler_gnu=yes
4154 else
4155 ac_compiler_gnu=no
4157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4158 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4162 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4163 if test $ac_compiler_gnu = yes; then
4164 GCC=yes
4165 else
4166 GCC=
4168 ac_test_CFLAGS=${CFLAGS+set}
4169 ac_save_CFLAGS=$CFLAGS
4170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4171 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4172 if test "${ac_cv_prog_cc_g+set}" = set; then :
4173 $as_echo_n "(cached) " >&6
4174 else
4175 ac_save_c_werror_flag=$ac_c_werror_flag
4176 ac_c_werror_flag=yes
4177 ac_cv_prog_cc_g=no
4178 CFLAGS="-g"
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 :
4191 ac_cv_prog_cc_g=yes
4192 else
4193 CFLAGS=""
4194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4195 /* end confdefs.h. */
4198 main ()
4202 return 0;
4204 _ACEOF
4205 if ac_fn_c_try_compile "$LINENO"; then :
4207 else
4208 ac_c_werror_flag=$ac_save_c_werror_flag
4209 CFLAGS="-g"
4210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4211 /* end confdefs.h. */
4214 main ()
4218 return 0;
4220 _ACEOF
4221 if ac_fn_c_try_compile "$LINENO"; then :
4222 ac_cv_prog_cc_g=yes
4224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4229 ac_c_werror_flag=$ac_save_c_werror_flag
4231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4232 $as_echo "$ac_cv_prog_cc_g" >&6; }
4233 if test "$ac_test_CFLAGS" = set; then
4234 CFLAGS=$ac_save_CFLAGS
4235 elif test $ac_cv_prog_cc_g = yes; then
4236 if test "$GCC" = yes; then
4237 CFLAGS="-g -O2"
4238 else
4239 CFLAGS="-g"
4241 else
4242 if test "$GCC" = yes; then
4243 CFLAGS="-O2"
4244 else
4245 CFLAGS=
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4249 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4250 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4251 $as_echo_n "(cached) " >&6
4252 else
4253 ac_cv_prog_cc_c89=no
4254 ac_save_CC=$CC
4255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4256 /* end confdefs.h. */
4257 #include <stdarg.h>
4258 #include <stdio.h>
4259 #include <sys/types.h>
4260 #include <sys/stat.h>
4261 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4262 struct buf { int x; };
4263 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4264 static char *e (p, i)
4265 char **p;
4266 int i;
4268 return p[i];
4270 static char *f (char * (*g) (char **, int), char **p, ...)
4272 char *s;
4273 va_list v;
4274 va_start (v,p);
4275 s = g (p, va_arg (v,int));
4276 va_end (v);
4277 return s;
4280 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4281 function prototypes and stuff, but not '\xHH' hex character constants.
4282 These don't provoke an error unfortunately, instead are silently treated
4283 as 'x'. The following induces an error, until -std is added to get
4284 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4285 array size at least. It's necessary to write '\x00'==0 to get something
4286 that's true only with -std. */
4287 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4289 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4290 inside strings and character constants. */
4291 #define FOO(x) 'x'
4292 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4294 int test (int i, double x);
4295 struct s1 {int (*f) (int a);};
4296 struct s2 {int (*f) (double a);};
4297 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4298 int argc;
4299 char **argv;
4301 main ()
4303 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4305 return 0;
4307 _ACEOF
4308 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4309 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4311 CC="$ac_save_CC $ac_arg"
4312 if ac_fn_c_try_compile "$LINENO"; then :
4313 ac_cv_prog_cc_c89=$ac_arg
4315 rm -f core conftest.err conftest.$ac_objext
4316 test "x$ac_cv_prog_cc_c89" != "xno" && break
4317 done
4318 rm -f conftest.$ac_ext
4319 CC=$ac_save_CC
4322 # AC_CACHE_VAL
4323 case "x$ac_cv_prog_cc_c89" in
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4326 $as_echo "none needed" >&6; } ;;
4327 xno)
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4329 $as_echo "unsupported" >&6; } ;;
4331 CC="$CC $ac_cv_prog_cc_c89"
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4333 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4334 esac
4335 if test "x$ac_cv_prog_cc_c89" != xno; then :
4339 ac_ext=c
4340 ac_cpp='$CPP $CPPFLAGS'
4341 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4342 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4343 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4345 depcc="$CC" am_compiler_list=
4347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4348 $as_echo_n "checking dependency style of $depcc... " >&6; }
4349 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4350 $as_echo_n "(cached) " >&6
4351 else
4352 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4353 # We make a subdir and do the tests there. Otherwise we can end up
4354 # making bogus files that we don't know about and never remove. For
4355 # instance it was reported that on HP-UX the gcc test will end up
4356 # making a dummy file named `D' -- because `-MD' means `put the output
4357 # in D'.
4358 rm -rf conftest.dir
4359 mkdir conftest.dir
4360 # Copy depcomp to subdir because otherwise we won't find it if we're
4361 # using a relative directory.
4362 cp "$am_depcomp" conftest.dir
4363 cd conftest.dir
4364 # We will build objects and dependencies in a subdirectory because
4365 # it helps to detect inapplicable dependency modes. For instance
4366 # both Tru64's cc and ICC support -MD to output dependencies as a
4367 # side effect of compilation, but ICC will put the dependencies in
4368 # the current directory while Tru64 will put them in the object
4369 # directory.
4370 mkdir sub
4372 am_cv_CC_dependencies_compiler_type=none
4373 if test "$am_compiler_list" = ""; then
4374 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4376 am__universal=false
4377 case " $depcc " in #(
4378 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4379 esac
4381 for depmode in $am_compiler_list; do
4382 # Setup a source with many dependencies, because some compilers
4383 # like to wrap large dependency lists on column 80 (with \), and
4384 # we should not choose a depcomp mode which is confused by this.
4386 # We need to recreate these files for each test, as the compiler may
4387 # overwrite some of them when testing with obscure command lines.
4388 # This happens at least with the AIX C compiler.
4389 : > sub/conftest.c
4390 for i in 1 2 3 4 5 6; do
4391 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4392 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4393 # Solaris 8's {/usr,}/bin/sh.
4394 touch sub/conftst$i.h
4395 done
4396 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4398 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4399 # mode. It turns out that the SunPro C++ compiler does not properly
4400 # handle `-M -o', and we need to detect this. Also, some Intel
4401 # versions had trouble with output in subdirs
4402 am__obj=sub/conftest.${OBJEXT-o}
4403 am__minus_obj="-o $am__obj"
4404 case $depmode in
4405 gcc)
4406 # This depmode causes a compiler race in universal mode.
4407 test "$am__universal" = false || continue
4409 nosideeffect)
4410 # after this tag, mechanisms are not by side-effect, so they'll
4411 # only be used when explicitly requested
4412 if test "x$enable_dependency_tracking" = xyes; then
4413 continue
4414 else
4415 break
4418 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4419 # This compiler won't grok `-c -o', but also, the minuso test has
4420 # not run yet. These depmodes are late enough in the game, and
4421 # so weak that their functioning should not be impacted.
4422 am__obj=conftest.${OBJEXT-o}
4423 am__minus_obj=
4425 none) break ;;
4426 esac
4427 if depmode=$depmode \
4428 source=sub/conftest.c object=$am__obj \
4429 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4430 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4431 >/dev/null 2>conftest.err &&
4432 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4433 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4434 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4435 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4436 # icc doesn't choke on unknown options, it will just issue warnings
4437 # or remarks (even with -Werror). So we grep stderr for any message
4438 # that says an option was ignored or not supported.
4439 # When given -MP, icc 7.0 and 7.1 complain thusly:
4440 # icc: Command line warning: ignoring option '-M'; no argument required
4441 # The diagnosis changed in icc 8.0:
4442 # icc: Command line remark: option '-MP' not supported
4443 if (grep 'ignoring option' conftest.err ||
4444 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4445 am_cv_CC_dependencies_compiler_type=$depmode
4446 break
4449 done
4451 cd ..
4452 rm -rf conftest.dir
4453 else
4454 am_cv_CC_dependencies_compiler_type=none
4458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4459 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4460 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4463 test "x$enable_dependency_tracking" != xno \
4464 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4465 am__fastdepCC_TRUE=
4466 am__fastdepCC_FALSE='#'
4467 else
4468 am__fastdepCC_TRUE='#'
4469 am__fastdepCC_FALSE=
4474 ac_ext=c
4475 ac_cpp='$CPP $CPPFLAGS'
4476 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4477 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4478 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4480 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4481 # On Suns, sometimes $CPP names a directory.
4482 if test -n "$CPP" && test -d "$CPP"; then
4483 CPP=
4485 if test -z "$CPP"; then
4486 if test "${ac_cv_prog_CPP+set}" = set; then :
4487 $as_echo_n "(cached) " >&6
4488 else
4489 # Double quotes because CPP needs to be expanded
4490 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4492 ac_preproc_ok=false
4493 for ac_c_preproc_warn_flag in '' yes
4495 # Use a header file that comes with gcc, so configuring glibc
4496 # with a fresh cross-compiler works.
4497 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4498 # <limits.h> exists even on freestanding compilers.
4499 # On the NeXT, cc -E runs the code through the compiler's parser,
4500 # not just through cpp. "Syntax error" is here to catch this case.
4501 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4502 /* end confdefs.h. */
4503 #ifdef __STDC__
4504 # include <limits.h>
4505 #else
4506 # include <assert.h>
4507 #endif
4508 Syntax error
4509 _ACEOF
4510 if ac_fn_c_try_cpp "$LINENO"; then :
4512 else
4513 # Broken: fails on valid input.
4514 continue
4516 rm -f conftest.err conftest.$ac_ext
4518 # OK, works on sane cases. Now check whether nonexistent headers
4519 # can be detected and how.
4520 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4521 /* end confdefs.h. */
4522 #include <ac_nonexistent.h>
4523 _ACEOF
4524 if ac_fn_c_try_cpp "$LINENO"; then :
4525 # Broken: success on invalid input.
4526 continue
4527 else
4528 # Passes both tests.
4529 ac_preproc_ok=:
4530 break
4532 rm -f conftest.err conftest.$ac_ext
4534 done
4535 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4536 rm -f conftest.err conftest.$ac_ext
4537 if $ac_preproc_ok; then :
4538 break
4541 done
4542 ac_cv_prog_CPP=$CPP
4545 CPP=$ac_cv_prog_CPP
4546 else
4547 ac_cv_prog_CPP=$CPP
4549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4550 $as_echo "$CPP" >&6; }
4551 ac_preproc_ok=false
4552 for ac_c_preproc_warn_flag in '' yes
4554 # Use a header file that comes with gcc, so configuring glibc
4555 # with a fresh cross-compiler works.
4556 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4557 # <limits.h> exists even on freestanding compilers.
4558 # On the NeXT, cc -E runs the code through the compiler's parser,
4559 # not just through cpp. "Syntax error" is here to catch this case.
4560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4561 /* end confdefs.h. */
4562 #ifdef __STDC__
4563 # include <limits.h>
4564 #else
4565 # include <assert.h>
4566 #endif
4567 Syntax error
4568 _ACEOF
4569 if ac_fn_c_try_cpp "$LINENO"; then :
4571 else
4572 # Broken: fails on valid input.
4573 continue
4575 rm -f conftest.err conftest.$ac_ext
4577 # OK, works on sane cases. Now check whether nonexistent headers
4578 # can be detected and how.
4579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4580 /* end confdefs.h. */
4581 #include <ac_nonexistent.h>
4582 _ACEOF
4583 if ac_fn_c_try_cpp "$LINENO"; then :
4584 # Broken: success on invalid input.
4585 continue
4586 else
4587 # Passes both tests.
4588 ac_preproc_ok=:
4589 break
4591 rm -f conftest.err conftest.$ac_ext
4593 done
4594 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4595 rm -f conftest.err conftest.$ac_ext
4596 if $ac_preproc_ok; then :
4598 else
4599 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4600 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4601 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4602 See \`config.log' for more details." "$LINENO" 5; }
4605 ac_ext=c
4606 ac_cpp='$CPP $CPPFLAGS'
4607 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4608 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4609 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4613 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4614 if test "${ac_cv_path_GREP+set}" = set; then :
4615 $as_echo_n "(cached) " >&6
4616 else
4617 if test -z "$GREP"; then
4618 ac_path_GREP_found=false
4619 # Loop through the user's path and test for each of PROGNAME-LIST
4620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4623 IFS=$as_save_IFS
4624 test -z "$as_dir" && as_dir=.
4625 for ac_prog in grep ggrep; do
4626 for ac_exec_ext in '' $ac_executable_extensions; do
4627 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4628 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4629 # Check for GNU ac_path_GREP and select it if it is found.
4630 # Check for GNU $ac_path_GREP
4631 case `"$ac_path_GREP" --version 2>&1` in
4632 *GNU*)
4633 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4635 ac_count=0
4636 $as_echo_n 0123456789 >"conftest.in"
4637 while :
4639 cat "conftest.in" "conftest.in" >"conftest.tmp"
4640 mv "conftest.tmp" "conftest.in"
4641 cp "conftest.in" "conftest.nl"
4642 $as_echo 'GREP' >> "conftest.nl"
4643 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4644 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4645 as_fn_arith $ac_count + 1 && ac_count=$as_val
4646 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4647 # Best one so far, save it but keep looking for a better one
4648 ac_cv_path_GREP="$ac_path_GREP"
4649 ac_path_GREP_max=$ac_count
4651 # 10*(2^10) chars as input seems more than enough
4652 test $ac_count -gt 10 && break
4653 done
4654 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4655 esac
4657 $ac_path_GREP_found && break 3
4658 done
4659 done
4660 done
4661 IFS=$as_save_IFS
4662 if test -z "$ac_cv_path_GREP"; then
4663 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4665 else
4666 ac_cv_path_GREP=$GREP
4670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4671 $as_echo "$ac_cv_path_GREP" >&6; }
4672 GREP="$ac_cv_path_GREP"
4675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4676 $as_echo_n "checking for egrep... " >&6; }
4677 if test "${ac_cv_path_EGREP+set}" = set; then :
4678 $as_echo_n "(cached) " >&6
4679 else
4680 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4681 then ac_cv_path_EGREP="$GREP -E"
4682 else
4683 if test -z "$EGREP"; then
4684 ac_path_EGREP_found=false
4685 # Loop through the user's path and test for each of PROGNAME-LIST
4686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4689 IFS=$as_save_IFS
4690 test -z "$as_dir" && as_dir=.
4691 for ac_prog in egrep; do
4692 for ac_exec_ext in '' $ac_executable_extensions; do
4693 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4694 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4695 # Check for GNU ac_path_EGREP and select it if it is found.
4696 # Check for GNU $ac_path_EGREP
4697 case `"$ac_path_EGREP" --version 2>&1` in
4698 *GNU*)
4699 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4701 ac_count=0
4702 $as_echo_n 0123456789 >"conftest.in"
4703 while :
4705 cat "conftest.in" "conftest.in" >"conftest.tmp"
4706 mv "conftest.tmp" "conftest.in"
4707 cp "conftest.in" "conftest.nl"
4708 $as_echo 'EGREP' >> "conftest.nl"
4709 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4710 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4711 as_fn_arith $ac_count + 1 && ac_count=$as_val
4712 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4713 # Best one so far, save it but keep looking for a better one
4714 ac_cv_path_EGREP="$ac_path_EGREP"
4715 ac_path_EGREP_max=$ac_count
4717 # 10*(2^10) chars as input seems more than enough
4718 test $ac_count -gt 10 && break
4719 done
4720 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4721 esac
4723 $ac_path_EGREP_found && break 3
4724 done
4725 done
4726 done
4727 IFS=$as_save_IFS
4728 if test -z "$ac_cv_path_EGREP"; then
4729 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4731 else
4732 ac_cv_path_EGREP=$EGREP
4737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4738 $as_echo "$ac_cv_path_EGREP" >&6; }
4739 EGREP="$ac_cv_path_EGREP"
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4743 $as_echo_n "checking for ANSI C header files... " >&6; }
4744 if test "${ac_cv_header_stdc+set}" = set; then :
4745 $as_echo_n "(cached) " >&6
4746 else
4747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4748 /* end confdefs.h. */
4749 #include <stdlib.h>
4750 #include <stdarg.h>
4751 #include <string.h>
4752 #include <float.h>
4755 main ()
4759 return 0;
4761 _ACEOF
4762 if ac_fn_c_try_compile "$LINENO"; then :
4763 ac_cv_header_stdc=yes
4764 else
4765 ac_cv_header_stdc=no
4767 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4769 if test $ac_cv_header_stdc = yes; then
4770 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4772 /* end confdefs.h. */
4773 #include <string.h>
4775 _ACEOF
4776 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4777 $EGREP "memchr" >/dev/null 2>&1; then :
4779 else
4780 ac_cv_header_stdc=no
4782 rm -f conftest*
4786 if test $ac_cv_header_stdc = yes; then
4787 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4789 /* end confdefs.h. */
4790 #include <stdlib.h>
4792 _ACEOF
4793 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4794 $EGREP "free" >/dev/null 2>&1; then :
4796 else
4797 ac_cv_header_stdc=no
4799 rm -f conftest*
4803 if test $ac_cv_header_stdc = yes; then
4804 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4805 if test "$cross_compiling" = yes; then :
4807 else
4808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4809 /* end confdefs.h. */
4810 #include <ctype.h>
4811 #include <stdlib.h>
4812 #if ((' ' & 0x0FF) == 0x020)
4813 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4814 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4815 #else
4816 # define ISLOWER(c) \
4817 (('a' <= (c) && (c) <= 'i') \
4818 || ('j' <= (c) && (c) <= 'r') \
4819 || ('s' <= (c) && (c) <= 'z'))
4820 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4821 #endif
4823 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4825 main ()
4827 int i;
4828 for (i = 0; i < 256; i++)
4829 if (XOR (islower (i), ISLOWER (i))
4830 || toupper (i) != TOUPPER (i))
4831 return 2;
4832 return 0;
4834 _ACEOF
4835 if ac_fn_c_try_run "$LINENO"; then :
4837 else
4838 ac_cv_header_stdc=no
4840 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4841 conftest.$ac_objext conftest.beam conftest.$ac_ext
4846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4847 $as_echo "$ac_cv_header_stdc" >&6; }
4848 if test $ac_cv_header_stdc = yes; then
4850 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4854 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4855 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4856 inttypes.h stdint.h unistd.h
4857 do :
4858 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
4859 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
4861 eval as_val=\$$as_ac_Header
4862 if test "x$as_val" = x""yes; then :
4863 cat >>confdefs.h <<_ACEOF
4864 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
4865 _ACEOF
4869 done
4873 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
4874 if test "x$ac_cv_header_minix_config_h" = x""yes; then :
4875 MINIX=yes
4876 else
4877 MINIX=
4881 if test "$MINIX" = yes; then
4883 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
4886 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
4889 $as_echo "#define _MINIX 1" >>confdefs.h
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
4895 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
4896 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then :
4897 $as_echo_n "(cached) " >&6
4898 else
4899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4900 /* end confdefs.h. */
4902 # define __EXTENSIONS__ 1
4903 $ac_includes_default
4905 main ()
4909 return 0;
4911 _ACEOF
4912 if ac_fn_c_try_compile "$LINENO"; then :
4913 ac_cv_safe_to_define___extensions__=yes
4914 else
4915 ac_cv_safe_to_define___extensions__=no
4917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
4920 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
4921 test $ac_cv_safe_to_define___extensions__ = yes &&
4922 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
4924 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
4926 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
4928 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
4930 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
4934 # Calculate toolexeclibdir
4935 # Also toolexecdir, though it's only used in toolexeclibdir
4936 case ${version_specific_libs} in
4937 yes)
4938 # Need the gcc compiler version to know where to install libraries
4939 # and header files if --enable-version-specific-runtime-libs option
4940 # is selected.
4941 toolexecdir='$(libdir)/gcc/$(target_alias)'
4942 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)'
4945 if test -n "$with_cross_host" &&
4946 test x"$with_cross_host" != x"no"; then
4947 # Install a library built with a cross compiler in tooldir, not libdir.
4948 toolexecdir='$(exec_prefix)/$(target_alias)'
4949 toolexeclibdir='$(toolexecdir)/lib'
4950 else
4951 toolexecdir='$(libdir)/gcc-lib/$(target_alias)'
4952 toolexeclibdir='$(libdir)'
4954 multi_os_directory=`$CC -print-multi-os-directory`
4955 case $multi_os_directory in
4956 .) ;; # Avoid trailing /.
4957 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;;
4958 esac
4960 esac
4964 # Create a spec file, so that compile/link tests don't fail
4965 test -f libgfortran.spec || touch libgfortran.spec
4967 ac_ext=c
4968 ac_cpp='$CPP $CPPFLAGS'
4969 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4970 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4971 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4973 # Check the compiler.
4974 # The same as in boehm-gc and libstdc++. Have to borrow it from there.
4975 # We must force CC to /not/ be precious variables; otherwise
4976 # the wrong, non-multilib-adjusted value will be used in multilibs.
4977 # As a side effect, we have to subst CFLAGS ourselves.
4981 ac_ext=c
4982 ac_cpp='$CPP $CPPFLAGS'
4983 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4984 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4985 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4986 if test -n "$ac_tool_prefix"; then
4987 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
4988 set dummy ${ac_tool_prefix}gcc; ac_word=$2
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4990 $as_echo_n "checking for $ac_word... " >&6; }
4991 if test "${ac_cv_prog_CC+set}" = set; then :
4992 $as_echo_n "(cached) " >&6
4993 else
4994 if test -n "$CC"; then
4995 ac_cv_prog_CC="$CC" # Let the user override the test.
4996 else
4997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4998 for as_dir in $PATH
5000 IFS=$as_save_IFS
5001 test -z "$as_dir" && as_dir=.
5002 for ac_exec_ext in '' $ac_executable_extensions; do
5003 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5004 ac_cv_prog_CC="${ac_tool_prefix}gcc"
5005 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5006 break 2
5008 done
5009 done
5010 IFS=$as_save_IFS
5014 CC=$ac_cv_prog_CC
5015 if test -n "$CC"; then
5016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5017 $as_echo "$CC" >&6; }
5018 else
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5020 $as_echo "no" >&6; }
5025 if test -z "$ac_cv_prog_CC"; then
5026 ac_ct_CC=$CC
5027 # Extract the first word of "gcc", so it can be a program name with args.
5028 set dummy gcc; ac_word=$2
5029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5030 $as_echo_n "checking for $ac_word... " >&6; }
5031 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5032 $as_echo_n "(cached) " >&6
5033 else
5034 if test -n "$ac_ct_CC"; then
5035 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5036 else
5037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5038 for as_dir in $PATH
5040 IFS=$as_save_IFS
5041 test -z "$as_dir" && as_dir=.
5042 for ac_exec_ext in '' $ac_executable_extensions; do
5043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5044 ac_cv_prog_ac_ct_CC="gcc"
5045 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5046 break 2
5048 done
5049 done
5050 IFS=$as_save_IFS
5054 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5055 if test -n "$ac_ct_CC"; then
5056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5057 $as_echo "$ac_ct_CC" >&6; }
5058 else
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5060 $as_echo "no" >&6; }
5063 if test "x$ac_ct_CC" = x; then
5064 CC=""
5065 else
5066 case $cross_compiling:$ac_tool_warned in
5067 yes:)
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5069 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5070 ac_tool_warned=yes ;;
5071 esac
5072 CC=$ac_ct_CC
5074 else
5075 CC="$ac_cv_prog_CC"
5078 if test -z "$CC"; then
5079 if test -n "$ac_tool_prefix"; then
5080 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
5081 set dummy ${ac_tool_prefix}cc; ac_word=$2
5082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5083 $as_echo_n "checking for $ac_word... " >&6; }
5084 if test "${ac_cv_prog_CC+set}" = set; then :
5085 $as_echo_n "(cached) " >&6
5086 else
5087 if test -n "$CC"; then
5088 ac_cv_prog_CC="$CC" # Let the user override the test.
5089 else
5090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5091 for as_dir in $PATH
5093 IFS=$as_save_IFS
5094 test -z "$as_dir" && as_dir=.
5095 for ac_exec_ext in '' $ac_executable_extensions; do
5096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5097 ac_cv_prog_CC="${ac_tool_prefix}cc"
5098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5099 break 2
5101 done
5102 done
5103 IFS=$as_save_IFS
5107 CC=$ac_cv_prog_CC
5108 if test -n "$CC"; then
5109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5110 $as_echo "$CC" >&6; }
5111 else
5112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5113 $as_echo "no" >&6; }
5119 if test -z "$CC"; then
5120 # Extract the first word of "cc", so it can be a program name with args.
5121 set dummy cc; ac_word=$2
5122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5123 $as_echo_n "checking for $ac_word... " >&6; }
5124 if test "${ac_cv_prog_CC+set}" = set; then :
5125 $as_echo_n "(cached) " >&6
5126 else
5127 if test -n "$CC"; then
5128 ac_cv_prog_CC="$CC" # Let the user override the test.
5129 else
5130 ac_prog_rejected=no
5131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5132 for as_dir in $PATH
5134 IFS=$as_save_IFS
5135 test -z "$as_dir" && as_dir=.
5136 for ac_exec_ext in '' $ac_executable_extensions; do
5137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5138 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
5139 ac_prog_rejected=yes
5140 continue
5142 ac_cv_prog_CC="cc"
5143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5144 break 2
5146 done
5147 done
5148 IFS=$as_save_IFS
5150 if test $ac_prog_rejected = yes; then
5151 # We found a bogon in the path, so make sure we never use it.
5152 set dummy $ac_cv_prog_CC
5153 shift
5154 if test $# != 0; then
5155 # We chose a different compiler from the bogus one.
5156 # However, it has the same basename, so the bogon will be chosen
5157 # first if we set CC to just the basename; use the full file name.
5158 shift
5159 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
5164 CC=$ac_cv_prog_CC
5165 if test -n "$CC"; then
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5167 $as_echo "$CC" >&6; }
5168 else
5169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5170 $as_echo "no" >&6; }
5175 if test -z "$CC"; then
5176 if test -n "$ac_tool_prefix"; then
5177 for ac_prog in cl.exe
5179 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5180 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5182 $as_echo_n "checking for $ac_word... " >&6; }
5183 if test "${ac_cv_prog_CC+set}" = set; then :
5184 $as_echo_n "(cached) " >&6
5185 else
5186 if test -n "$CC"; then
5187 ac_cv_prog_CC="$CC" # Let the user override the test.
5188 else
5189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5190 for as_dir in $PATH
5192 IFS=$as_save_IFS
5193 test -z "$as_dir" && as_dir=.
5194 for ac_exec_ext in '' $ac_executable_extensions; do
5195 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5196 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5198 break 2
5200 done
5201 done
5202 IFS=$as_save_IFS
5206 CC=$ac_cv_prog_CC
5207 if test -n "$CC"; then
5208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
5209 $as_echo "$CC" >&6; }
5210 else
5211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5212 $as_echo "no" >&6; }
5216 test -n "$CC" && break
5217 done
5219 if test -z "$CC"; then
5220 ac_ct_CC=$CC
5221 for ac_prog in cl.exe
5223 # Extract the first word of "$ac_prog", so it can be a program name with args.
5224 set dummy $ac_prog; ac_word=$2
5225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5226 $as_echo_n "checking for $ac_word... " >&6; }
5227 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
5228 $as_echo_n "(cached) " >&6
5229 else
5230 if test -n "$ac_ct_CC"; then
5231 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5232 else
5233 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5234 for as_dir in $PATH
5236 IFS=$as_save_IFS
5237 test -z "$as_dir" && as_dir=.
5238 for ac_exec_ext in '' $ac_executable_extensions; do
5239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5240 ac_cv_prog_ac_ct_CC="$ac_prog"
5241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5242 break 2
5244 done
5245 done
5246 IFS=$as_save_IFS
5250 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5251 if test -n "$ac_ct_CC"; then
5252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
5253 $as_echo "$ac_ct_CC" >&6; }
5254 else
5255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5256 $as_echo "no" >&6; }
5260 test -n "$ac_ct_CC" && break
5261 done
5263 if test "x$ac_ct_CC" = x; then
5264 CC=""
5265 else
5266 case $cross_compiling:$ac_tool_warned in
5267 yes:)
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5269 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5270 ac_tool_warned=yes ;;
5271 esac
5272 CC=$ac_ct_CC
5279 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5280 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5281 as_fn_error "no acceptable C compiler found in \$PATH
5282 See \`config.log' for more details." "$LINENO" 5; }
5284 # Provide some information about the compiler.
5285 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
5286 set X $ac_compile
5287 ac_compiler=$2
5288 for ac_option in --version -v -V -qversion; do
5289 { { ac_try="$ac_compiler $ac_option >&5"
5290 case "(($ac_try" in
5291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5292 *) ac_try_echo=$ac_try;;
5293 esac
5294 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5295 $as_echo "$ac_try_echo"; } >&5
5296 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
5297 ac_status=$?
5298 if test -s conftest.err; then
5299 sed '10a\
5300 ... rest of stderr output deleted ...
5301 10q' conftest.err >conftest.er1
5302 cat conftest.er1 >&5
5303 rm -f conftest.er1 conftest.err
5305 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5306 test $ac_status = 0; }
5307 done
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
5310 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
5311 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
5312 $as_echo_n "(cached) " >&6
5313 else
5314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5315 /* end confdefs.h. */
5318 main ()
5320 #ifndef __GNUC__
5321 choke me
5322 #endif
5325 return 0;
5327 _ACEOF
5328 if ac_fn_c_try_compile "$LINENO"; then :
5329 ac_compiler_gnu=yes
5330 else
5331 ac_compiler_gnu=no
5333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5334 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
5338 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
5339 if test $ac_compiler_gnu = yes; then
5340 GCC=yes
5341 else
5342 GCC=
5344 ac_test_CFLAGS=${CFLAGS+set}
5345 ac_save_CFLAGS=$CFLAGS
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
5347 $as_echo_n "checking whether $CC accepts -g... " >&6; }
5348 if test "${ac_cv_prog_cc_g+set}" = set; then :
5349 $as_echo_n "(cached) " >&6
5350 else
5351 ac_save_c_werror_flag=$ac_c_werror_flag
5352 ac_c_werror_flag=yes
5353 ac_cv_prog_cc_g=no
5354 CFLAGS="-g"
5355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5356 /* end confdefs.h. */
5359 main ()
5363 return 0;
5365 _ACEOF
5366 if ac_fn_c_try_compile "$LINENO"; then :
5367 ac_cv_prog_cc_g=yes
5368 else
5369 CFLAGS=""
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 :
5383 else
5384 ac_c_werror_flag=$ac_save_c_werror_flag
5385 CFLAGS="-g"
5386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5387 /* end confdefs.h. */
5390 main ()
5394 return 0;
5396 _ACEOF
5397 if ac_fn_c_try_compile "$LINENO"; then :
5398 ac_cv_prog_cc_g=yes
5400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5402 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5405 ac_c_werror_flag=$ac_save_c_werror_flag
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
5408 $as_echo "$ac_cv_prog_cc_g" >&6; }
5409 if test "$ac_test_CFLAGS" = set; then
5410 CFLAGS=$ac_save_CFLAGS
5411 elif test $ac_cv_prog_cc_g = yes; then
5412 if test "$GCC" = yes; then
5413 CFLAGS="-g -O2"
5414 else
5415 CFLAGS="-g"
5417 else
5418 if test "$GCC" = yes; then
5419 CFLAGS="-O2"
5420 else
5421 CFLAGS=
5424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
5425 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
5426 if test "${ac_cv_prog_cc_c89+set}" = set; then :
5427 $as_echo_n "(cached) " >&6
5428 else
5429 ac_cv_prog_cc_c89=no
5430 ac_save_CC=$CC
5431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5432 /* end confdefs.h. */
5433 #include <stdarg.h>
5434 #include <stdio.h>
5435 #include <sys/types.h>
5436 #include <sys/stat.h>
5437 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
5438 struct buf { int x; };
5439 FILE * (*rcsopen) (struct buf *, struct stat *, int);
5440 static char *e (p, i)
5441 char **p;
5442 int i;
5444 return p[i];
5446 static char *f (char * (*g) (char **, int), char **p, ...)
5448 char *s;
5449 va_list v;
5450 va_start (v,p);
5451 s = g (p, va_arg (v,int));
5452 va_end (v);
5453 return s;
5456 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
5457 function prototypes and stuff, but not '\xHH' hex character constants.
5458 These don't provoke an error unfortunately, instead are silently treated
5459 as 'x'. The following induces an error, until -std is added to get
5460 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
5461 array size at least. It's necessary to write '\x00'==0 to get something
5462 that's true only with -std. */
5463 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
5465 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
5466 inside strings and character constants. */
5467 #define FOO(x) 'x'
5468 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
5470 int test (int i, double x);
5471 struct s1 {int (*f) (int a);};
5472 struct s2 {int (*f) (double a);};
5473 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
5474 int argc;
5475 char **argv;
5477 main ()
5479 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
5481 return 0;
5483 _ACEOF
5484 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
5485 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
5487 CC="$ac_save_CC $ac_arg"
5488 if ac_fn_c_try_compile "$LINENO"; then :
5489 ac_cv_prog_cc_c89=$ac_arg
5491 rm -f core conftest.err conftest.$ac_objext
5492 test "x$ac_cv_prog_cc_c89" != "xno" && break
5493 done
5494 rm -f conftest.$ac_ext
5495 CC=$ac_save_CC
5498 # AC_CACHE_VAL
5499 case "x$ac_cv_prog_cc_c89" in
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
5502 $as_echo "none needed" >&6; } ;;
5503 xno)
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
5505 $as_echo "unsupported" >&6; } ;;
5507 CC="$CC $ac_cv_prog_cc_c89"
5508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
5509 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
5510 esac
5511 if test "x$ac_cv_prog_cc_c89" != xno; then :
5515 ac_ext=c
5516 ac_cpp='$CPP $CPPFLAGS'
5517 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5518 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5519 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5521 depcc="$CC" am_compiler_list=
5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
5524 $as_echo_n "checking dependency style of $depcc... " >&6; }
5525 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
5526 $as_echo_n "(cached) " >&6
5527 else
5528 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
5529 # We make a subdir and do the tests there. Otherwise we can end up
5530 # making bogus files that we don't know about and never remove. For
5531 # instance it was reported that on HP-UX the gcc test will end up
5532 # making a dummy file named `D' -- because `-MD' means `put the output
5533 # in D'.
5534 rm -rf conftest.dir
5535 mkdir conftest.dir
5536 # Copy depcomp to subdir because otherwise we won't find it if we're
5537 # using a relative directory.
5538 cp "$am_depcomp" conftest.dir
5539 cd conftest.dir
5540 # We will build objects and dependencies in a subdirectory because
5541 # it helps to detect inapplicable dependency modes. For instance
5542 # both Tru64's cc and ICC support -MD to output dependencies as a
5543 # side effect of compilation, but ICC will put the dependencies in
5544 # the current directory while Tru64 will put them in the object
5545 # directory.
5546 mkdir sub
5548 am_cv_CC_dependencies_compiler_type=none
5549 if test "$am_compiler_list" = ""; then
5550 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
5552 am__universal=false
5553 case " $depcc " in #(
5554 *\ -arch\ *\ -arch\ *) am__universal=true ;;
5555 esac
5557 for depmode in $am_compiler_list; do
5558 # Setup a source with many dependencies, because some compilers
5559 # like to wrap large dependency lists on column 80 (with \), and
5560 # we should not choose a depcomp mode which is confused by this.
5562 # We need to recreate these files for each test, as the compiler may
5563 # overwrite some of them when testing with obscure command lines.
5564 # This happens at least with the AIX C compiler.
5565 : > sub/conftest.c
5566 for i in 1 2 3 4 5 6; do
5567 echo '#include "conftst'$i'.h"' >> sub/conftest.c
5568 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
5569 # Solaris 8's {/usr,}/bin/sh.
5570 touch sub/conftst$i.h
5571 done
5572 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
5574 # We check with `-c' and `-o' for the sake of the "dashmstdout"
5575 # mode. It turns out that the SunPro C++ compiler does not properly
5576 # handle `-M -o', and we need to detect this. Also, some Intel
5577 # versions had trouble with output in subdirs
5578 am__obj=sub/conftest.${OBJEXT-o}
5579 am__minus_obj="-o $am__obj"
5580 case $depmode in
5581 gcc)
5582 # This depmode causes a compiler race in universal mode.
5583 test "$am__universal" = false || continue
5585 nosideeffect)
5586 # after this tag, mechanisms are not by side-effect, so they'll
5587 # only be used when explicitly requested
5588 if test "x$enable_dependency_tracking" = xyes; then
5589 continue
5590 else
5591 break
5594 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
5595 # This compiler won't grok `-c -o', but also, the minuso test has
5596 # not run yet. These depmodes are late enough in the game, and
5597 # so weak that their functioning should not be impacted.
5598 am__obj=conftest.${OBJEXT-o}
5599 am__minus_obj=
5601 none) break ;;
5602 esac
5603 if depmode=$depmode \
5604 source=sub/conftest.c object=$am__obj \
5605 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
5606 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
5607 >/dev/null 2>conftest.err &&
5608 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
5609 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
5610 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
5611 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
5612 # icc doesn't choke on unknown options, it will just issue warnings
5613 # or remarks (even with -Werror). So we grep stderr for any message
5614 # that says an option was ignored or not supported.
5615 # When given -MP, icc 7.0 and 7.1 complain thusly:
5616 # icc: Command line warning: ignoring option '-M'; no argument required
5617 # The diagnosis changed in icc 8.0:
5618 # icc: Command line remark: option '-MP' not supported
5619 if (grep 'ignoring option' conftest.err ||
5620 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
5621 am_cv_CC_dependencies_compiler_type=$depmode
5622 break
5625 done
5627 cd ..
5628 rm -rf conftest.dir
5629 else
5630 am_cv_CC_dependencies_compiler_type=none
5634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
5635 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
5636 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
5639 test "x$enable_dependency_tracking" != xno \
5640 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
5641 am__fastdepCC_TRUE=
5642 am__fastdepCC_FALSE='#'
5643 else
5644 am__fastdepCC_TRUE='#'
5645 am__fastdepCC_FALSE=
5653 if test "x$CC" != xcc; then
5654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5655 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5656 else
5657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5658 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5660 set dummy $CC; ac_cc=`$as_echo "$2" |
5661 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5662 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5663 $as_echo_n "(cached) " >&6
5664 else
5665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5666 /* end confdefs.h. */
5669 main ()
5673 return 0;
5675 _ACEOF
5676 # Make sure it works both with $CC and with simple cc.
5677 # We do the test twice because some compilers refuse to overwrite an
5678 # existing .o file with -o, though they will create one.
5679 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5680 rm -f conftest2.*
5681 if { { case "(($ac_try" in
5682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5683 *) ac_try_echo=$ac_try;;
5684 esac
5685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5686 $as_echo "$ac_try_echo"; } >&5
5687 (eval "$ac_try") 2>&5
5688 ac_status=$?
5689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5690 test $ac_status = 0; } &&
5691 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5693 *) ac_try_echo=$ac_try;;
5694 esac
5695 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5696 $as_echo "$ac_try_echo"; } >&5
5697 (eval "$ac_try") 2>&5
5698 ac_status=$?
5699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5700 test $ac_status = 0; };
5701 then
5702 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5703 if test "x$CC" != xcc; then
5704 # Test first that cc exists at all.
5705 if { ac_try='cc -c conftest.$ac_ext >&5'
5706 { { case "(($ac_try" in
5707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5708 *) ac_try_echo=$ac_try;;
5709 esac
5710 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5711 $as_echo "$ac_try_echo"; } >&5
5712 (eval "$ac_try") 2>&5
5713 ac_status=$?
5714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5715 test $ac_status = 0; }; }; then
5716 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5717 rm -f conftest2.*
5718 if { { case "(($ac_try" in
5719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5720 *) ac_try_echo=$ac_try;;
5721 esac
5722 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5723 $as_echo "$ac_try_echo"; } >&5
5724 (eval "$ac_try") 2>&5
5725 ac_status=$?
5726 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5727 test $ac_status = 0; } &&
5728 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5730 *) ac_try_echo=$ac_try;;
5731 esac
5732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5733 $as_echo "$ac_try_echo"; } >&5
5734 (eval "$ac_try") 2>&5
5735 ac_status=$?
5736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5737 test $ac_status = 0; };
5738 then
5739 # cc works too.
5741 else
5742 # cc exists but doesn't like -o.
5743 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5747 else
5748 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5750 rm -f core conftest*
5753 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5755 $as_echo "yes" >&6; }
5756 else
5757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5758 $as_echo "no" >&6; }
5760 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5764 # FIXME: we rely on the cache variable name because
5765 # there is no other way.
5766 set dummy $CC
5767 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5768 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5769 if test "$am_t" != yes; then
5770 # Losing compiler, so override with the script.
5771 # FIXME: It is wrong to rewrite CC.
5772 # But if we don't then we get into trouble of one sort or another.
5773 # A longer-term fix would be to have automake use am__CC in this case,
5774 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5775 CC="$am_aux_dir/compile $CC"
5780 # Add -Wall -fno-repack-arrays -fno-underscoring if we are using GCC.
5781 if test "x$GCC" = "xyes"; then
5782 AM_FCFLAGS="-I . -Wall -Werror -fimplicit-none -fno-repack-arrays -fno-underscoring"
5783 ## We like to use C11 and C99 routines when available. This makes
5784 ## sure that
5785 ## __STDC_VERSION__ is set such that libc includes make them available.
5786 AM_CFLAGS="-std=gnu11 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -Wextra -Wwrite-strings -Werror=implicit-function-declaration -Werror=vla"
5787 ## Compile the following tests with the same system header contents
5788 ## that we'll encounter when compiling our own source files.
5789 CFLAGS="-std=gnu11 $CFLAGS"
5795 # Check for symbol versioning (copied from libssp).
5796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
5797 $as_echo_n "checking whether symbol versioning is supported... " >&6; }
5798 # Check whether --enable-symvers was given.
5799 if test "${enable_symvers+set}" = set; then :
5800 enableval=$enable_symvers; gfortran_use_symver=$enableval
5801 else
5802 gfortran_use_symver=yes
5805 if test "x$gfortran_use_symver" != xno; then
5806 save_LDFLAGS="$LDFLAGS"
5807 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
5808 cat > conftest.map <<EOF
5809 FOO_1.0 {
5810 global: *foo*; bar; local: *;
5813 if test x$gcc_no_link = xyes; then
5814 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5817 /* end confdefs.h. */
5818 int foo;
5820 main ()
5824 return 0;
5826 _ACEOF
5827 if ac_fn_c_try_link "$LINENO"; then :
5828 gfortran_use_symver=gnu
5829 else
5830 gfortran_use_symver=no
5832 rm -f core conftest.err conftest.$ac_objext \
5833 conftest$ac_exeext conftest.$ac_ext
5834 if test x$gfortran_use_symver = xno; then
5835 case "$target_os" in
5836 solaris2*)
5837 LDFLAGS="$save_LDFLAGS"
5838 LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
5839 # Sun ld cannot handle wildcards and treats all entries as undefined.
5840 cat > conftest.map <<EOF
5841 FOO_1.0 {
5842 global: foo; local: *;
5845 if test x$gcc_no_link = xyes; then
5846 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
5848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5849 /* end confdefs.h. */
5850 int foo;
5852 main ()
5856 return 0;
5858 _ACEOF
5859 if ac_fn_c_try_link "$LINENO"; then :
5860 gfortran_use_symver=sun
5861 else
5862 gfortran_use_symver=no
5864 rm -f core conftest.err conftest.$ac_objext \
5865 conftest$ac_exeext conftest.$ac_ext
5867 esac
5869 LDFLAGS="$save_LDFLAGS"
5871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gfortran_use_symver" >&5
5872 $as_echo "$gfortran_use_symver" >&6; }
5873 if test "x$gfortran_use_symver" != xno; then
5874 LIBGFOR_USE_SYMVER_TRUE=
5875 LIBGFOR_USE_SYMVER_FALSE='#'
5876 else
5877 LIBGFOR_USE_SYMVER_TRUE='#'
5878 LIBGFOR_USE_SYMVER_FALSE=
5881 if test "x$gfortran_use_symver" = xgnu; then
5882 LIBGFOR_USE_SYMVER_GNU_TRUE=
5883 LIBGFOR_USE_SYMVER_GNU_FALSE='#'
5884 else
5885 LIBGFOR_USE_SYMVER_GNU_TRUE='#'
5886 LIBGFOR_USE_SYMVER_GNU_FALSE=
5889 if test "x$gfortran_use_symver" = xsun; then
5890 LIBGFOR_USE_SYMVER_SUN_TRUE=
5891 LIBGFOR_USE_SYMVER_SUN_FALSE='#'
5892 else
5893 LIBGFOR_USE_SYMVER_SUN_TRUE='#'
5894 LIBGFOR_USE_SYMVER_SUN_FALSE=
5898 # Figure out whether the compiler supports "-ffunction-sections -fdata-sections",
5899 # similarly to how libstdc++ does it
5900 ac_test_CFLAGS="${CFLAGS+set}"
5901 ac_save_CFLAGS="$CFLAGS"
5903 # Check for -ffunction-sections -fdata-sections
5904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc that supports -ffunction-sections -fdata-sections" >&5
5905 $as_echo_n "checking for gcc that supports -ffunction-sections -fdata-sections... " >&6; }
5906 CFLAGS='-Werror -ffunction-sections -fdata-sections'
5907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5908 /* end confdefs.h. */
5911 main ()
5913 int foo;
5915 return 0;
5917 _ACEOF
5918 if ac_fn_c_try_compile "$LINENO"; then :
5919 ac_fdsections=yes
5920 else
5921 ac_fdsections=no
5923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5924 if test "$ac_test_CFLAGS" = set; then
5925 CFLAGS="$ac_save_CFLAGS"
5926 else
5927 # this is the suspicious part
5928 CFLAGS=""
5930 if test x"$ac_fdsections" = x"yes"; then
5931 SECTION_FLAGS='-ffunction-sections -fdata-sections'
5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_fdsections" >&5
5934 $as_echo "$ac_fdsections" >&6; }
5937 # Find other programs we need.
5938 if test -n "$ac_tool_prefix"; then
5939 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
5940 set dummy ${ac_tool_prefix}as; ac_word=$2
5941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5942 $as_echo_n "checking for $ac_word... " >&6; }
5943 if test "${ac_cv_prog_AS+set}" = set; then :
5944 $as_echo_n "(cached) " >&6
5945 else
5946 if test -n "$AS"; then
5947 ac_cv_prog_AS="$AS" # Let the user override the test.
5948 else
5949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5950 for as_dir in $PATH
5952 IFS=$as_save_IFS
5953 test -z "$as_dir" && as_dir=.
5954 for ac_exec_ext in '' $ac_executable_extensions; do
5955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5956 ac_cv_prog_AS="${ac_tool_prefix}as"
5957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5958 break 2
5960 done
5961 done
5962 IFS=$as_save_IFS
5966 AS=$ac_cv_prog_AS
5967 if test -n "$AS"; then
5968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
5969 $as_echo "$AS" >&6; }
5970 else
5971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5972 $as_echo "no" >&6; }
5977 if test -z "$ac_cv_prog_AS"; then
5978 ac_ct_AS=$AS
5979 # Extract the first word of "as", so it can be a program name with args.
5980 set dummy as; ac_word=$2
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5982 $as_echo_n "checking for $ac_word... " >&6; }
5983 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
5984 $as_echo_n "(cached) " >&6
5985 else
5986 if test -n "$ac_ct_AS"; then
5987 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
5988 else
5989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5990 for as_dir in $PATH
5992 IFS=$as_save_IFS
5993 test -z "$as_dir" && as_dir=.
5994 for ac_exec_ext in '' $ac_executable_extensions; do
5995 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5996 ac_cv_prog_ac_ct_AS="as"
5997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5998 break 2
6000 done
6001 done
6002 IFS=$as_save_IFS
6006 ac_ct_AS=$ac_cv_prog_ac_ct_AS
6007 if test -n "$ac_ct_AS"; then
6008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
6009 $as_echo "$ac_ct_AS" >&6; }
6010 else
6011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6012 $as_echo "no" >&6; }
6015 if test "x$ac_ct_AS" = x; then
6016 AS=""
6017 else
6018 case $cross_compiling:$ac_tool_warned in
6019 yes:)
6020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6021 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6022 ac_tool_warned=yes ;;
6023 esac
6024 AS=$ac_ct_AS
6026 else
6027 AS="$ac_cv_prog_AS"
6030 if test -n "$ac_tool_prefix"; then
6031 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
6032 set dummy ${ac_tool_prefix}ar; ac_word=$2
6033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6034 $as_echo_n "checking for $ac_word... " >&6; }
6035 if test "${ac_cv_prog_AR+set}" = set; then :
6036 $as_echo_n "(cached) " >&6
6037 else
6038 if test -n "$AR"; then
6039 ac_cv_prog_AR="$AR" # Let the user override the test.
6040 else
6041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6042 for as_dir in $PATH
6044 IFS=$as_save_IFS
6045 test -z "$as_dir" && as_dir=.
6046 for ac_exec_ext in '' $ac_executable_extensions; do
6047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6048 ac_cv_prog_AR="${ac_tool_prefix}ar"
6049 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6050 break 2
6052 done
6053 done
6054 IFS=$as_save_IFS
6058 AR=$ac_cv_prog_AR
6059 if test -n "$AR"; then
6060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
6061 $as_echo "$AR" >&6; }
6062 else
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6064 $as_echo "no" >&6; }
6069 if test -z "$ac_cv_prog_AR"; then
6070 ac_ct_AR=$AR
6071 # Extract the first word of "ar", so it can be a program name with args.
6072 set dummy ar; ac_word=$2
6073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6074 $as_echo_n "checking for $ac_word... " >&6; }
6075 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
6076 $as_echo_n "(cached) " >&6
6077 else
6078 if test -n "$ac_ct_AR"; then
6079 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
6080 else
6081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6082 for as_dir in $PATH
6084 IFS=$as_save_IFS
6085 test -z "$as_dir" && as_dir=.
6086 for ac_exec_ext in '' $ac_executable_extensions; do
6087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6088 ac_cv_prog_ac_ct_AR="ar"
6089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6090 break 2
6092 done
6093 done
6094 IFS=$as_save_IFS
6098 ac_ct_AR=$ac_cv_prog_ac_ct_AR
6099 if test -n "$ac_ct_AR"; then
6100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
6101 $as_echo "$ac_ct_AR" >&6; }
6102 else
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6104 $as_echo "no" >&6; }
6107 if test "x$ac_ct_AR" = x; then
6108 AR=""
6109 else
6110 case $cross_compiling:$ac_tool_warned in
6111 yes:)
6112 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6113 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6114 ac_tool_warned=yes ;;
6115 esac
6116 AR=$ac_ct_AR
6118 else
6119 AR="$ac_cv_prog_AR"
6122 if test -n "$ac_tool_prefix"; then
6123 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6124 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6126 $as_echo_n "checking for $ac_word... " >&6; }
6127 if test "${ac_cv_prog_RANLIB+set}" = set; then :
6128 $as_echo_n "(cached) " >&6
6129 else
6130 if test -n "$RANLIB"; then
6131 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6132 else
6133 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6134 for as_dir in $PATH
6136 IFS=$as_save_IFS
6137 test -z "$as_dir" && as_dir=.
6138 for ac_exec_ext in '' $ac_executable_extensions; do
6139 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6140 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6141 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6142 break 2
6144 done
6145 done
6146 IFS=$as_save_IFS
6150 RANLIB=$ac_cv_prog_RANLIB
6151 if test -n "$RANLIB"; then
6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6153 $as_echo "$RANLIB" >&6; }
6154 else
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6156 $as_echo "no" >&6; }
6161 if test -z "$ac_cv_prog_RANLIB"; then
6162 ac_ct_RANLIB=$RANLIB
6163 # Extract the first word of "ranlib", so it can be a program name with args.
6164 set dummy ranlib; ac_word=$2
6165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6166 $as_echo_n "checking for $ac_word... " >&6; }
6167 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
6168 $as_echo_n "(cached) " >&6
6169 else
6170 if test -n "$ac_ct_RANLIB"; then
6171 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6172 else
6173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6174 for as_dir in $PATH
6176 IFS=$as_save_IFS
6177 test -z "$as_dir" && as_dir=.
6178 for ac_exec_ext in '' $ac_executable_extensions; do
6179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6180 ac_cv_prog_ac_ct_RANLIB="ranlib"
6181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6182 break 2
6184 done
6185 done
6186 IFS=$as_save_IFS
6190 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6191 if test -n "$ac_ct_RANLIB"; then
6192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6193 $as_echo "$ac_ct_RANLIB" >&6; }
6194 else
6195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6196 $as_echo "no" >&6; }
6199 if test "x$ac_ct_RANLIB" = x; then
6200 RANLIB="ranlib-not-found-in-path-error"
6201 else
6202 case $cross_compiling:$ac_tool_warned in
6203 yes:)
6204 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6205 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6206 ac_tool_warned=yes ;;
6207 esac
6208 RANLIB=$ac_ct_RANLIB
6210 else
6211 RANLIB="$ac_cv_prog_RANLIB"
6214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
6215 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
6216 set x ${MAKE-make}
6217 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
6218 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
6219 $as_echo_n "(cached) " >&6
6220 else
6221 cat >conftest.make <<\_ACEOF
6222 SHELL = /bin/sh
6223 all:
6224 @echo '@@@%%%=$(MAKE)=@@@%%%'
6225 _ACEOF
6226 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
6227 case `${MAKE-make} -f conftest.make 2>/dev/null` in
6228 *@@@%%%=?*=@@@%%%*)
6229 eval ac_cv_prog_make_${ac_make}_set=yes;;
6231 eval ac_cv_prog_make_${ac_make}_set=no;;
6232 esac
6233 rm -f conftest.make
6235 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
6236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6237 $as_echo "yes" >&6; }
6238 SET_MAKE=
6239 else
6240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6241 $as_echo "no" >&6; }
6242 SET_MAKE="MAKE=${MAKE-make}"
6247 # Configure libtool
6248 #AC_MSG_NOTICE([====== Starting libtool configuration])
6249 enable_dlopen=yes
6253 case `pwd` in
6254 *\ * | *\ *)
6255 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
6256 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
6257 esac
6261 macro_version='2.2.7a'
6262 macro_revision='1.3134'
6276 ltmain="$ac_aux_dir/ltmain.sh"
6278 # Backslashify metacharacters that are still active within
6279 # double-quoted strings.
6280 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
6282 # Same as above, but do not quote variable references.
6283 double_quote_subst='s/\(["`\\]\)/\\\1/g'
6285 # Sed substitution to delay expansion of an escaped shell variable in a
6286 # double_quote_subst'ed string.
6287 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
6289 # Sed substitution to delay expansion of an escaped single quote.
6290 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
6292 # Sed substitution to avoid accidental globbing in evaled expressions
6293 no_glob_subst='s/\*/\\\*/g'
6295 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6296 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
6297 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
6300 $as_echo_n "checking how to print strings... " >&6; }
6301 # Test print first, because it will be a builtin if present.
6302 if test "X`print -r -- -n 2>/dev/null`" = X-n && \
6303 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
6304 ECHO='print -r --'
6305 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
6306 ECHO='printf %s\n'
6307 else
6308 # Use this function as a fallback that always works.
6309 func_fallback_echo ()
6311 eval 'cat <<_LTECHO_EOF
6313 _LTECHO_EOF'
6315 ECHO='func_fallback_echo'
6318 # func_echo_all arg...
6319 # Invoke $ECHO with all args, space-separated.
6320 func_echo_all ()
6322 $ECHO ""
6325 case "$ECHO" in
6326 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
6327 $as_echo "printf" >&6; } ;;
6328 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
6329 $as_echo "print -r" >&6; } ;;
6330 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
6331 $as_echo "cat" >&6; } ;;
6332 esac
6347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
6348 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
6349 if test "${ac_cv_path_SED+set}" = set; then :
6350 $as_echo_n "(cached) " >&6
6351 else
6352 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
6353 for ac_i in 1 2 3 4 5 6 7; do
6354 ac_script="$ac_script$as_nl$ac_script"
6355 done
6356 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
6357 { ac_script=; unset ac_script;}
6358 if test -z "$SED"; then
6359 ac_path_SED_found=false
6360 # Loop through the user's path and test for each of PROGNAME-LIST
6361 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6362 for as_dir in $PATH
6364 IFS=$as_save_IFS
6365 test -z "$as_dir" && as_dir=.
6366 for ac_prog in sed gsed; do
6367 for ac_exec_ext in '' $ac_executable_extensions; do
6368 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
6369 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
6370 # Check for GNU ac_path_SED and select it if it is found.
6371 # Check for GNU $ac_path_SED
6372 case `"$ac_path_SED" --version 2>&1` in
6373 *GNU*)
6374 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
6376 ac_count=0
6377 $as_echo_n 0123456789 >"conftest.in"
6378 while :
6380 cat "conftest.in" "conftest.in" >"conftest.tmp"
6381 mv "conftest.tmp" "conftest.in"
6382 cp "conftest.in" "conftest.nl"
6383 $as_echo '' >> "conftest.nl"
6384 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
6385 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6386 as_fn_arith $ac_count + 1 && ac_count=$as_val
6387 if test $ac_count -gt ${ac_path_SED_max-0}; then
6388 # Best one so far, save it but keep looking for a better one
6389 ac_cv_path_SED="$ac_path_SED"
6390 ac_path_SED_max=$ac_count
6392 # 10*(2^10) chars as input seems more than enough
6393 test $ac_count -gt 10 && break
6394 done
6395 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6396 esac
6398 $ac_path_SED_found && break 3
6399 done
6400 done
6401 done
6402 IFS=$as_save_IFS
6403 if test -z "$ac_cv_path_SED"; then
6404 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
6406 else
6407 ac_cv_path_SED=$SED
6411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
6412 $as_echo "$ac_cv_path_SED" >&6; }
6413 SED="$ac_cv_path_SED"
6414 rm -f conftest.sed
6416 test -z "$SED" && SED=sed
6417 Xsed="$SED -e 1s/^X//"
6429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
6430 $as_echo_n "checking for fgrep... " >&6; }
6431 if test "${ac_cv_path_FGREP+set}" = set; then :
6432 $as_echo_n "(cached) " >&6
6433 else
6434 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
6435 then ac_cv_path_FGREP="$GREP -F"
6436 else
6437 if test -z "$FGREP"; then
6438 ac_path_FGREP_found=false
6439 # Loop through the user's path and test for each of PROGNAME-LIST
6440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6441 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
6443 IFS=$as_save_IFS
6444 test -z "$as_dir" && as_dir=.
6445 for ac_prog in fgrep; do
6446 for ac_exec_ext in '' $ac_executable_extensions; do
6447 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
6448 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
6449 # Check for GNU ac_path_FGREP and select it if it is found.
6450 # Check for GNU $ac_path_FGREP
6451 case `"$ac_path_FGREP" --version 2>&1` in
6452 *GNU*)
6453 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
6455 ac_count=0
6456 $as_echo_n 0123456789 >"conftest.in"
6457 while :
6459 cat "conftest.in" "conftest.in" >"conftest.tmp"
6460 mv "conftest.tmp" "conftest.in"
6461 cp "conftest.in" "conftest.nl"
6462 $as_echo 'FGREP' >> "conftest.nl"
6463 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
6464 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
6465 as_fn_arith $ac_count + 1 && ac_count=$as_val
6466 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
6467 # Best one so far, save it but keep looking for a better one
6468 ac_cv_path_FGREP="$ac_path_FGREP"
6469 ac_path_FGREP_max=$ac_count
6471 # 10*(2^10) chars as input seems more than enough
6472 test $ac_count -gt 10 && break
6473 done
6474 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
6475 esac
6477 $ac_path_FGREP_found && break 3
6478 done
6479 done
6480 done
6481 IFS=$as_save_IFS
6482 if test -z "$ac_cv_path_FGREP"; then
6483 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
6485 else
6486 ac_cv_path_FGREP=$FGREP
6491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
6492 $as_echo "$ac_cv_path_FGREP" >&6; }
6493 FGREP="$ac_cv_path_FGREP"
6496 test -z "$GREP" && GREP=grep
6516 # Check whether --with-gnu-ld was given.
6517 if test "${with_gnu_ld+set}" = set; then :
6518 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
6519 else
6520 with_gnu_ld=no
6523 ac_prog=ld
6524 if test "$GCC" = yes; then
6525 # Check if gcc -print-prog-name=ld gives a path.
6526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
6527 $as_echo_n "checking for ld used by $CC... " >&6; }
6528 case $host in
6529 *-*-mingw*)
6530 # gcc leaves a trailing carriage return which upsets mingw
6531 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
6533 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
6534 esac
6535 case $ac_prog in
6536 # Accept absolute paths.
6537 [\\/]* | ?:[\\/]*)
6538 re_direlt='/[^/][^/]*/\.\./'
6539 # Canonicalize the pathname of ld
6540 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
6541 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
6542 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
6543 done
6544 test -z "$LD" && LD="$ac_prog"
6547 # If it fails, then pretend we aren't using GCC.
6548 ac_prog=ld
6551 # If it is relative, then search for the first ld in PATH.
6552 with_gnu_ld=unknown
6554 esac
6555 elif test "$with_gnu_ld" = yes; then
6556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
6557 $as_echo_n "checking for GNU ld... " >&6; }
6558 else
6559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
6560 $as_echo_n "checking for non-GNU ld... " >&6; }
6562 if test "${lt_cv_path_LD+set}" = set; then :
6563 $as_echo_n "(cached) " >&6
6564 else
6565 if test -z "$LD"; then
6566 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6567 for ac_dir in $PATH; do
6568 IFS="$lt_save_ifs"
6569 test -z "$ac_dir" && ac_dir=.
6570 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
6571 lt_cv_path_LD="$ac_dir/$ac_prog"
6572 # Check to see if the program is GNU ld. I'd rather use --version,
6573 # but apparently some variants of GNU ld only accept -v.
6574 # Break only if it was the GNU/non-GNU ld that we prefer.
6575 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
6576 *GNU* | *'with BFD'*)
6577 test "$with_gnu_ld" != no && break
6580 test "$with_gnu_ld" != yes && break
6582 esac
6584 done
6585 IFS="$lt_save_ifs"
6586 else
6587 lt_cv_path_LD="$LD" # Let the user override the test with a path.
6591 LD="$lt_cv_path_LD"
6592 if test -n "$LD"; then
6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
6594 $as_echo "$LD" >&6; }
6595 else
6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6597 $as_echo "no" >&6; }
6599 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
6600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
6601 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
6602 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
6603 $as_echo_n "(cached) " >&6
6604 else
6605 # I'd rather use --version here, but apparently some GNU lds only accept -v.
6606 case `$LD -v 2>&1 </dev/null` in
6607 *GNU* | *'with BFD'*)
6608 lt_cv_prog_gnu_ld=yes
6611 lt_cv_prog_gnu_ld=no
6613 esac
6615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
6616 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
6617 with_gnu_ld=$lt_cv_prog_gnu_ld
6627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
6628 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
6629 if test "${lt_cv_path_NM+set}" = set; then :
6630 $as_echo_n "(cached) " >&6
6631 else
6632 if test -n "$NM"; then
6633 # Let the user override the test.
6634 lt_cv_path_NM="$NM"
6635 else
6636 lt_nm_to_check="${ac_tool_prefix}nm"
6637 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6638 lt_nm_to_check="$lt_nm_to_check nm"
6640 for lt_tmp_nm in $lt_nm_to_check; do
6641 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6642 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6643 IFS="$lt_save_ifs"
6644 test -z "$ac_dir" && ac_dir=.
6645 tmp_nm="$ac_dir/$lt_tmp_nm"
6646 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6647 # Check to see if the nm accepts a BSD-compat flag.
6648 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6649 # nm: unknown option "B" ignored
6650 # Tru64's nm complains that /dev/null is an invalid object file
6651 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6652 */dev/null* | *'Invalid file or object type'*)
6653 lt_cv_path_NM="$tmp_nm -B"
6654 break
6657 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6658 */dev/null*)
6659 lt_cv_path_NM="$tmp_nm -p"
6660 break
6663 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6664 continue # so that we can try to find one that supports BSD flags
6666 esac
6668 esac
6670 done
6671 IFS="$lt_save_ifs"
6672 done
6673 : ${lt_cv_path_NM=no}
6676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
6677 $as_echo "$lt_cv_path_NM" >&6; }
6678 if test "$lt_cv_path_NM" != "no"; then
6679 NM="$lt_cv_path_NM"
6680 else
6681 # Didn't find any BSD compatible name lister, look for dumpbin.
6682 if test -n "$DUMPBIN"; then :
6683 # Let the user override the test.
6684 else
6685 if test -n "$ac_tool_prefix"; then
6686 for ac_prog in dumpbin "link -dump"
6688 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6689 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6691 $as_echo_n "checking for $ac_word... " >&6; }
6692 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
6693 $as_echo_n "(cached) " >&6
6694 else
6695 if test -n "$DUMPBIN"; then
6696 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
6697 else
6698 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6699 for as_dir in $PATH
6701 IFS=$as_save_IFS
6702 test -z "$as_dir" && as_dir=.
6703 for ac_exec_ext in '' $ac_executable_extensions; do
6704 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6705 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
6706 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6707 break 2
6709 done
6710 done
6711 IFS=$as_save_IFS
6715 DUMPBIN=$ac_cv_prog_DUMPBIN
6716 if test -n "$DUMPBIN"; then
6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
6718 $as_echo "$DUMPBIN" >&6; }
6719 else
6720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6721 $as_echo "no" >&6; }
6725 test -n "$DUMPBIN" && break
6726 done
6728 if test -z "$DUMPBIN"; then
6729 ac_ct_DUMPBIN=$DUMPBIN
6730 for ac_prog in dumpbin "link -dump"
6732 # Extract the first word of "$ac_prog", so it can be a program name with args.
6733 set dummy $ac_prog; ac_word=$2
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6735 $as_echo_n "checking for $ac_word... " >&6; }
6736 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
6737 $as_echo_n "(cached) " >&6
6738 else
6739 if test -n "$ac_ct_DUMPBIN"; then
6740 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
6741 else
6742 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6743 for as_dir in $PATH
6745 IFS=$as_save_IFS
6746 test -z "$as_dir" && as_dir=.
6747 for ac_exec_ext in '' $ac_executable_extensions; do
6748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6749 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
6750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6751 break 2
6753 done
6754 done
6755 IFS=$as_save_IFS
6759 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
6760 if test -n "$ac_ct_DUMPBIN"; then
6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
6762 $as_echo "$ac_ct_DUMPBIN" >&6; }
6763 else
6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6765 $as_echo "no" >&6; }
6769 test -n "$ac_ct_DUMPBIN" && break
6770 done
6772 if test "x$ac_ct_DUMPBIN" = x; then
6773 DUMPBIN=":"
6774 else
6775 case $cross_compiling:$ac_tool_warned in
6776 yes:)
6777 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6778 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6779 ac_tool_warned=yes ;;
6780 esac
6781 DUMPBIN=$ac_ct_DUMPBIN
6785 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
6786 *COFF*)
6787 DUMPBIN="$DUMPBIN -symbols"
6790 DUMPBIN=:
6792 esac
6795 if test "$DUMPBIN" != ":"; then
6796 NM="$DUMPBIN"
6799 test -z "$NM" && NM=nm
6806 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
6807 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
6808 if test "${lt_cv_nm_interface+set}" = set; then :
6809 $as_echo_n "(cached) " >&6
6810 else
6811 lt_cv_nm_interface="BSD nm"
6812 echo "int some_variable = 0;" > conftest.$ac_ext
6813 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
6814 (eval "$ac_compile" 2>conftest.err)
6815 cat conftest.err >&5
6816 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
6817 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
6818 cat conftest.err >&5
6819 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
6820 cat conftest.out >&5
6821 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
6822 lt_cv_nm_interface="MS dumpbin"
6824 rm -f conftest*
6826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
6827 $as_echo "$lt_cv_nm_interface" >&6; }
6829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
6830 $as_echo_n "checking whether ln -s works... " >&6; }
6831 LN_S=$as_ln_s
6832 if test "$LN_S" = "ln -s"; then
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6834 $as_echo "yes" >&6; }
6835 else
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
6837 $as_echo "no, using $LN_S" >&6; }
6840 # find the maximum length of command line arguments
6841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
6842 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
6843 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
6844 $as_echo_n "(cached) " >&6
6845 else
6847 teststring="ABCD"
6849 case $build_os in
6850 msdosdjgpp*)
6851 # On DJGPP, this test can blow up pretty badly due to problems in libc
6852 # (any single argument exceeding 2000 bytes causes a buffer overrun
6853 # during glob expansion). Even if it were fixed, the result of this
6854 # check would be larger than it should be.
6855 lt_cv_sys_max_cmd_len=12288; # 12K is about right
6858 gnu*)
6859 # Under GNU Hurd, this test is not required because there is
6860 # no limit to the length of command line arguments.
6861 # Libtool will interpret -1 as no limit whatsoever
6862 lt_cv_sys_max_cmd_len=-1;
6865 cygwin* | mingw* | cegcc*)
6866 # On Win9x/ME, this test blows up -- it succeeds, but takes
6867 # about 5 minutes as the teststring grows exponentially.
6868 # Worse, since 9x/ME are not pre-emptively multitasking,
6869 # you end up with a "frozen" computer, even though with patience
6870 # the test eventually succeeds (with a max line length of 256k).
6871 # Instead, let's just punt: use the minimum linelength reported by
6872 # all of the supported platforms: 8192 (on NT/2K/XP).
6873 lt_cv_sys_max_cmd_len=8192;
6876 mint*)
6877 # On MiNT this can take a long time and run out of memory.
6878 lt_cv_sys_max_cmd_len=8192;
6881 amigaos*)
6882 # On AmigaOS with pdksh, this test takes hours, literally.
6883 # So we just punt and use a minimum line length of 8192.
6884 lt_cv_sys_max_cmd_len=8192;
6887 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
6888 # This has been around since 386BSD, at least. Likely further.
6889 if test -x /sbin/sysctl; then
6890 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
6891 elif test -x /usr/sbin/sysctl; then
6892 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
6893 else
6894 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
6896 # And add a safety zone
6897 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6898 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6901 interix*)
6902 # We know the value 262144 and hardcode it with a safety zone (like BSD)
6903 lt_cv_sys_max_cmd_len=196608
6906 osf*)
6907 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
6908 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
6909 # nice to cause kernel panics so lets avoid the loop below.
6910 # First set a reasonable default.
6911 lt_cv_sys_max_cmd_len=16384
6913 if test -x /sbin/sysconfig; then
6914 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
6915 *1*) lt_cv_sys_max_cmd_len=-1 ;;
6916 esac
6919 sco3.2v5*)
6920 lt_cv_sys_max_cmd_len=102400
6922 sysv5* | sco5v6* | sysv4.2uw2*)
6923 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
6924 if test -n "$kargmax"; then
6925 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
6926 else
6927 lt_cv_sys_max_cmd_len=32768
6931 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
6932 if test -n "$lt_cv_sys_max_cmd_len"; then
6933 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
6934 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
6935 else
6936 # Make teststring a little bigger before we do anything with it.
6937 # a 1K string should be a reasonable start.
6938 for i in 1 2 3 4 5 6 7 8 ; do
6939 teststring=$teststring$teststring
6940 done
6941 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
6942 # If test is not a shell built-in, we'll probably end up computing a
6943 # maximum length that is only half of the actual maximum length, but
6944 # we can't tell.
6945 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
6946 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
6947 test $i != 17 # 1/2 MB should be enough
6949 i=`expr $i + 1`
6950 teststring=$teststring$teststring
6951 done
6952 # Only check the string length outside the loop.
6953 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
6954 teststring=
6955 # Add a significant safety factor because C++ compilers can tack on
6956 # massive amounts of additional arguments before passing them to the
6957 # linker. It appears as though 1/2 is a usable value.
6958 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
6961 esac
6965 if test -n $lt_cv_sys_max_cmd_len ; then
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
6967 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
6968 else
6969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
6970 $as_echo "none" >&6; }
6972 max_cmd_len=$lt_cv_sys_max_cmd_len
6979 : ${CP="cp -f"}
6980 : ${MV="mv -f"}
6981 : ${RM="rm -f"}
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
6984 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
6985 # Try some XSI features
6986 xsi_shell=no
6987 ( _lt_dummy="a/b/c"
6988 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
6989 = c,a/b,, \
6990 && eval 'test $(( 1 + 1 )) -eq 2 \
6991 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
6992 && xsi_shell=yes
6993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
6994 $as_echo "$xsi_shell" >&6; }
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
6998 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
6999 lt_shell_append=no
7000 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
7001 >/dev/null 2>&1 \
7002 && lt_shell_append=yes
7003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
7004 $as_echo "$lt_shell_append" >&6; }
7007 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
7008 lt_unset=unset
7009 else
7010 lt_unset=false
7017 # test EBCDIC or ASCII
7018 case `echo X|tr X '\101'` in
7019 A) # ASCII based system
7020 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
7021 lt_SP2NL='tr \040 \012'
7022 lt_NL2SP='tr \015\012 \040\040'
7024 *) # EBCDIC based system
7025 lt_SP2NL='tr \100 \n'
7026 lt_NL2SP='tr \r\n \100\100'
7028 esac
7038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
7039 $as_echo_n "checking for $LD option to reload object files... " >&6; }
7040 if test "${lt_cv_ld_reload_flag+set}" = set; then :
7041 $as_echo_n "(cached) " >&6
7042 else
7043 lt_cv_ld_reload_flag='-r'
7045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
7046 $as_echo "$lt_cv_ld_reload_flag" >&6; }
7047 reload_flag=$lt_cv_ld_reload_flag
7048 case $reload_flag in
7049 "" | " "*) ;;
7050 *) reload_flag=" $reload_flag" ;;
7051 esac
7052 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7053 case $host_os in
7054 darwin*)
7055 if test "$GCC" = yes; then
7056 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
7057 else
7058 reload_cmds='$LD$reload_flag -o $output$reload_objs'
7061 esac
7071 if test -n "$ac_tool_prefix"; then
7072 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7073 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7075 $as_echo_n "checking for $ac_word... " >&6; }
7076 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7077 $as_echo_n "(cached) " >&6
7078 else
7079 if test -n "$OBJDUMP"; then
7080 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7081 else
7082 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7083 for as_dir in $PATH
7085 IFS=$as_save_IFS
7086 test -z "$as_dir" && as_dir=.
7087 for ac_exec_ext in '' $ac_executable_extensions; do
7088 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7089 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7090 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7091 break 2
7093 done
7094 done
7095 IFS=$as_save_IFS
7099 OBJDUMP=$ac_cv_prog_OBJDUMP
7100 if test -n "$OBJDUMP"; then
7101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7102 $as_echo "$OBJDUMP" >&6; }
7103 else
7104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7105 $as_echo "no" >&6; }
7110 if test -z "$ac_cv_prog_OBJDUMP"; then
7111 ac_ct_OBJDUMP=$OBJDUMP
7112 # Extract the first word of "objdump", so it can be a program name with args.
7113 set dummy objdump; ac_word=$2
7114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7115 $as_echo_n "checking for $ac_word... " >&6; }
7116 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7117 $as_echo_n "(cached) " >&6
7118 else
7119 if test -n "$ac_ct_OBJDUMP"; then
7120 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7121 else
7122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7123 for as_dir in $PATH
7125 IFS=$as_save_IFS
7126 test -z "$as_dir" && as_dir=.
7127 for ac_exec_ext in '' $ac_executable_extensions; do
7128 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7129 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7131 break 2
7133 done
7134 done
7135 IFS=$as_save_IFS
7139 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7140 if test -n "$ac_ct_OBJDUMP"; then
7141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7142 $as_echo "$ac_ct_OBJDUMP" >&6; }
7143 else
7144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7145 $as_echo "no" >&6; }
7148 if test "x$ac_ct_OBJDUMP" = x; then
7149 OBJDUMP="false"
7150 else
7151 case $cross_compiling:$ac_tool_warned in
7152 yes:)
7153 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7154 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7155 ac_tool_warned=yes ;;
7156 esac
7157 OBJDUMP=$ac_ct_OBJDUMP
7159 else
7160 OBJDUMP="$ac_cv_prog_OBJDUMP"
7163 test -z "$OBJDUMP" && OBJDUMP=objdump
7173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
7174 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
7175 if test "${lt_cv_deplibs_check_method+set}" = set; then :
7176 $as_echo_n "(cached) " >&6
7177 else
7178 lt_cv_file_magic_cmd='$MAGIC_CMD'
7179 lt_cv_file_magic_test_file=
7180 lt_cv_deplibs_check_method='unknown'
7181 # Need to set the preceding variable on all platforms that support
7182 # interlibrary dependencies.
7183 # 'none' -- dependencies not supported.
7184 # `unknown' -- same as none, but documents that we really don't know.
7185 # 'pass_all' -- all dependencies passed with no checks.
7186 # 'test_compile' -- check by making test program.
7187 # 'file_magic [[regex]]' -- check by looking for files in library path
7188 # which responds to the $file_magic_cmd with a given extended regex.
7189 # If you have `file' or equivalent on your system and you're not sure
7190 # whether `pass_all' will *always* work, you probably want this one.
7192 case $host_os in
7193 aix[4-9]*)
7194 lt_cv_deplibs_check_method=pass_all
7197 beos*)
7198 lt_cv_deplibs_check_method=pass_all
7201 bsdi[45]*)
7202 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
7203 lt_cv_file_magic_cmd='/usr/bin/file -L'
7204 lt_cv_file_magic_test_file=/shlib/libc.so
7207 cygwin*)
7208 # func_win32_libid is a shell function defined in ltmain.sh
7209 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7210 lt_cv_file_magic_cmd='func_win32_libid'
7213 mingw* | pw32*)
7214 # Base MSYS/MinGW do not provide the 'file' command needed by
7215 # func_win32_libid shell function, so use a weaker test based on 'objdump',
7216 # unless we find 'file', for example because we are cross-compiling.
7217 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
7218 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
7219 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
7220 lt_cv_file_magic_cmd='func_win32_libid'
7221 else
7222 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
7223 lt_cv_file_magic_cmd='$OBJDUMP -f'
7227 cegcc*)
7228 # use the weaker test based on 'objdump'. See mingw*.
7229 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
7230 lt_cv_file_magic_cmd='$OBJDUMP -f'
7233 darwin* | rhapsody*)
7234 lt_cv_deplibs_check_method=pass_all
7237 freebsd* | dragonfly*)
7238 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7239 case $host_cpu in
7240 i*86 )
7241 # Not sure whether the presence of OpenBSD here was a mistake.
7242 # Let's accept both of them until this is cleared up.
7243 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
7244 lt_cv_file_magic_cmd=/usr/bin/file
7245 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
7247 esac
7248 else
7249 lt_cv_deplibs_check_method=pass_all
7253 gnu*)
7254 lt_cv_deplibs_check_method=pass_all
7257 haiku*)
7258 lt_cv_deplibs_check_method=pass_all
7261 hpux10.20* | hpux11*)
7262 lt_cv_file_magic_cmd=/usr/bin/file
7263 case $host_cpu in
7264 ia64*)
7265 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
7266 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
7268 hppa*64*)
7269 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]'
7270 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
7273 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
7274 lt_cv_file_magic_test_file=/usr/lib/libc.sl
7276 esac
7279 interix[3-9]*)
7280 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
7281 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
7284 irix5* | irix6* | nonstopux*)
7285 case $LD in
7286 *-32|*"-32 ") libmagic=32-bit;;
7287 *-n32|*"-n32 ") libmagic=N32;;
7288 *-64|*"-64 ") libmagic=64-bit;;
7289 *) libmagic=never-match;;
7290 esac
7291 lt_cv_deplibs_check_method=pass_all
7294 # This must be Linux ELF.
7295 linux* | k*bsd*-gnu | kopensolaris*-gnu)
7296 lt_cv_deplibs_check_method=pass_all
7299 netbsd*)
7300 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
7301 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7302 else
7303 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
7307 newos6*)
7308 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
7309 lt_cv_file_magic_cmd=/usr/bin/file
7310 lt_cv_file_magic_test_file=/usr/lib/libnls.so
7313 *nto* | *qnx*)
7314 lt_cv_deplibs_check_method=pass_all
7317 openbsd*)
7318 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
7319 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
7320 else
7321 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
7325 osf3* | osf4* | osf5*)
7326 lt_cv_deplibs_check_method=pass_all
7329 rdos*)
7330 lt_cv_deplibs_check_method=pass_all
7333 solaris*)
7334 lt_cv_deplibs_check_method=pass_all
7337 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
7338 lt_cv_deplibs_check_method=pass_all
7341 sysv4 | sysv4.3*)
7342 case $host_vendor in
7343 motorola)
7344 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]'
7345 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
7347 ncr)
7348 lt_cv_deplibs_check_method=pass_all
7350 sequent)
7351 lt_cv_file_magic_cmd='/bin/file'
7352 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
7354 sni)
7355 lt_cv_file_magic_cmd='/bin/file'
7356 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
7357 lt_cv_file_magic_test_file=/lib/libc.so
7359 siemens)
7360 lt_cv_deplibs_check_method=pass_all
7363 lt_cv_deplibs_check_method=pass_all
7365 esac
7368 tpf*)
7369 lt_cv_deplibs_check_method=pass_all
7371 esac
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
7375 $as_echo "$lt_cv_deplibs_check_method" >&6; }
7376 file_magic_cmd=$lt_cv_file_magic_cmd
7377 deplibs_check_method=$lt_cv_deplibs_check_method
7378 test -z "$deplibs_check_method" && deplibs_check_method=unknown
7391 if test -n "$ac_tool_prefix"; then
7392 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7393 set dummy ${ac_tool_prefix}ar; ac_word=$2
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7395 $as_echo_n "checking for $ac_word... " >&6; }
7396 if test "${ac_cv_prog_AR+set}" = set; then :
7397 $as_echo_n "(cached) " >&6
7398 else
7399 if test -n "$AR"; then
7400 ac_cv_prog_AR="$AR" # Let the user override the test.
7401 else
7402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7403 for as_dir in $PATH
7405 IFS=$as_save_IFS
7406 test -z "$as_dir" && as_dir=.
7407 for ac_exec_ext in '' $ac_executable_extensions; do
7408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7409 ac_cv_prog_AR="${ac_tool_prefix}ar"
7410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7411 break 2
7413 done
7414 done
7415 IFS=$as_save_IFS
7419 AR=$ac_cv_prog_AR
7420 if test -n "$AR"; then
7421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
7422 $as_echo "$AR" >&6; }
7423 else
7424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7425 $as_echo "no" >&6; }
7430 if test -z "$ac_cv_prog_AR"; then
7431 ac_ct_AR=$AR
7432 # Extract the first word of "ar", so it can be a program name with args.
7433 set dummy ar; ac_word=$2
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7435 $as_echo_n "checking for $ac_word... " >&6; }
7436 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
7437 $as_echo_n "(cached) " >&6
7438 else
7439 if test -n "$ac_ct_AR"; then
7440 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7441 else
7442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7443 for as_dir in $PATH
7445 IFS=$as_save_IFS
7446 test -z "$as_dir" && as_dir=.
7447 for ac_exec_ext in '' $ac_executable_extensions; do
7448 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7449 ac_cv_prog_ac_ct_AR="ar"
7450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7451 break 2
7453 done
7454 done
7455 IFS=$as_save_IFS
7459 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7460 if test -n "$ac_ct_AR"; then
7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
7462 $as_echo "$ac_ct_AR" >&6; }
7463 else
7464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7465 $as_echo "no" >&6; }
7468 if test "x$ac_ct_AR" = x; then
7469 AR="false"
7470 else
7471 case $cross_compiling:$ac_tool_warned in
7472 yes:)
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7474 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7475 ac_tool_warned=yes ;;
7476 esac
7477 AR=$ac_ct_AR
7479 else
7480 AR="$ac_cv_prog_AR"
7483 test -z "$AR" && AR=ar
7484 test -z "$AR_FLAGS" && AR_FLAGS=cru
7496 if test -n "$ac_tool_prefix"; then
7497 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
7498 set dummy ${ac_tool_prefix}strip; ac_word=$2
7499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7500 $as_echo_n "checking for $ac_word... " >&6; }
7501 if test "${ac_cv_prog_STRIP+set}" = set; then :
7502 $as_echo_n "(cached) " >&6
7503 else
7504 if test -n "$STRIP"; then
7505 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
7506 else
7507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7508 for as_dir in $PATH
7510 IFS=$as_save_IFS
7511 test -z "$as_dir" && as_dir=.
7512 for ac_exec_ext in '' $ac_executable_extensions; do
7513 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7514 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
7515 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7516 break 2
7518 done
7519 done
7520 IFS=$as_save_IFS
7524 STRIP=$ac_cv_prog_STRIP
7525 if test -n "$STRIP"; then
7526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
7527 $as_echo "$STRIP" >&6; }
7528 else
7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7530 $as_echo "no" >&6; }
7535 if test -z "$ac_cv_prog_STRIP"; then
7536 ac_ct_STRIP=$STRIP
7537 # Extract the first word of "strip", so it can be a program name with args.
7538 set dummy strip; ac_word=$2
7539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7540 $as_echo_n "checking for $ac_word... " >&6; }
7541 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
7542 $as_echo_n "(cached) " >&6
7543 else
7544 if test -n "$ac_ct_STRIP"; then
7545 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
7546 else
7547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7548 for as_dir in $PATH
7550 IFS=$as_save_IFS
7551 test -z "$as_dir" && as_dir=.
7552 for ac_exec_ext in '' $ac_executable_extensions; do
7553 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7554 ac_cv_prog_ac_ct_STRIP="strip"
7555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7556 break 2
7558 done
7559 done
7560 IFS=$as_save_IFS
7564 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
7565 if test -n "$ac_ct_STRIP"; then
7566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
7567 $as_echo "$ac_ct_STRIP" >&6; }
7568 else
7569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7570 $as_echo "no" >&6; }
7573 if test "x$ac_ct_STRIP" = x; then
7574 STRIP=":"
7575 else
7576 case $cross_compiling:$ac_tool_warned in
7577 yes:)
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7579 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7580 ac_tool_warned=yes ;;
7581 esac
7582 STRIP=$ac_ct_STRIP
7584 else
7585 STRIP="$ac_cv_prog_STRIP"
7588 test -z "$STRIP" && STRIP=:
7595 if test -n "$ac_tool_prefix"; then
7596 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7597 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7599 $as_echo_n "checking for $ac_word... " >&6; }
7600 if test "${ac_cv_prog_RANLIB+set}" = set; then :
7601 $as_echo_n "(cached) " >&6
7602 else
7603 if test -n "$RANLIB"; then
7604 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7605 else
7606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7607 for as_dir in $PATH
7609 IFS=$as_save_IFS
7610 test -z "$as_dir" && as_dir=.
7611 for ac_exec_ext in '' $ac_executable_extensions; do
7612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7613 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7615 break 2
7617 done
7618 done
7619 IFS=$as_save_IFS
7623 RANLIB=$ac_cv_prog_RANLIB
7624 if test -n "$RANLIB"; then
7625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
7626 $as_echo "$RANLIB" >&6; }
7627 else
7628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7629 $as_echo "no" >&6; }
7634 if test -z "$ac_cv_prog_RANLIB"; then
7635 ac_ct_RANLIB=$RANLIB
7636 # Extract the first word of "ranlib", so it can be a program name with args.
7637 set dummy ranlib; ac_word=$2
7638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7639 $as_echo_n "checking for $ac_word... " >&6; }
7640 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
7641 $as_echo_n "(cached) " >&6
7642 else
7643 if test -n "$ac_ct_RANLIB"; then
7644 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7645 else
7646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7647 for as_dir in $PATH
7649 IFS=$as_save_IFS
7650 test -z "$as_dir" && as_dir=.
7651 for ac_exec_ext in '' $ac_executable_extensions; do
7652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7653 ac_cv_prog_ac_ct_RANLIB="ranlib"
7654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7655 break 2
7657 done
7658 done
7659 IFS=$as_save_IFS
7663 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7664 if test -n "$ac_ct_RANLIB"; then
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
7666 $as_echo "$ac_ct_RANLIB" >&6; }
7667 else
7668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7669 $as_echo "no" >&6; }
7672 if test "x$ac_ct_RANLIB" = x; then
7673 RANLIB=":"
7674 else
7675 case $cross_compiling:$ac_tool_warned in
7676 yes:)
7677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7678 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7679 ac_tool_warned=yes ;;
7680 esac
7681 RANLIB=$ac_ct_RANLIB
7683 else
7684 RANLIB="$ac_cv_prog_RANLIB"
7687 test -z "$RANLIB" && RANLIB=:
7694 # Determine commands to create old-style static archives.
7695 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
7696 old_postinstall_cmds='chmod 644 $oldlib'
7697 old_postuninstall_cmds=
7699 if test -n "$RANLIB"; then
7700 case $host_os in
7701 openbsd*)
7702 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
7705 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
7707 esac
7708 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
7711 case $host_os in
7712 darwin*)
7713 lock_old_archive_extraction=yes ;;
7715 lock_old_archive_extraction=no ;;
7716 esac
7756 # If no C compiler was specified, use CC.
7757 LTCC=${LTCC-"$CC"}
7759 # If no C compiler flags were specified, use CFLAGS.
7760 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
7762 # Allow CC to be a program name with arguments.
7763 compiler=$CC
7766 # Check for command to grab the raw symbol name followed by C symbol from nm.
7767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
7768 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
7769 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
7770 $as_echo_n "(cached) " >&6
7771 else
7773 # These are sane defaults that work on at least a few old systems.
7774 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
7776 # Character class describing NM global symbol codes.
7777 symcode='[BCDEGRST]'
7779 # Regexp to match symbols that can be accessed directly from C.
7780 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
7782 # Define system-specific variables.
7783 case $host_os in
7784 aix*)
7785 symcode='[BCDT]'
7787 cygwin* | mingw* | pw32* | cegcc*)
7788 symcode='[ABCDGISTW]'
7790 hpux*)
7791 if test "$host_cpu" = ia64; then
7792 symcode='[ABCDEGRST]'
7795 irix* | nonstopux*)
7796 symcode='[BCDEGRST]'
7798 osf*)
7799 symcode='[BCDEGQRST]'
7801 solaris*)
7802 symcode='[BDRT]'
7804 sco3.2v5*)
7805 symcode='[DT]'
7807 sysv4.2uw2*)
7808 symcode='[DT]'
7810 sysv5* | sco5v6* | unixware* | OpenUNIX*)
7811 symcode='[ABDT]'
7813 sysv4)
7814 symcode='[DFNSTU]'
7816 esac
7818 # If we're using GNU nm, then use its standard symbol codes.
7819 case `$NM -V 2>&1` in
7820 *GNU* | *'with BFD'*)
7821 symcode='[ABCDGIRSTW]' ;;
7822 esac
7824 # Transform an extracted symbol line into a proper C declaration.
7825 # Some systems (esp. on ia64) link data and code symbols differently,
7826 # so use this general approach.
7827 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
7829 # Transform an extracted symbol line into symbol name and symbol address
7830 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
7831 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'"
7833 # Handle CRLF in mingw tool chain
7834 opt_cr=
7835 case $build_os in
7836 mingw*)
7837 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
7839 esac
7841 # Try without a prefix underscore, then with it.
7842 for ac_symprfx in "" "_"; do
7844 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
7845 symxfrm="\\1 $ac_symprfx\\2 \\2"
7847 # Write the raw and C identifiers.
7848 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
7849 # Fake it for dumpbin and say T for any non-static function
7850 # and D for any global variable.
7851 # Also find C++ and __fastcall symbols from MSVC++,
7852 # which start with @ or ?.
7853 lt_cv_sys_global_symbol_pipe="$AWK '"\
7854 " {last_section=section; section=\$ 3};"\
7855 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
7856 " \$ 0!~/External *\|/{next};"\
7857 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
7858 " {if(hide[section]) next};"\
7859 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
7860 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
7861 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
7862 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
7863 " ' prfx=^$ac_symprfx"
7864 else
7865 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
7868 # Check to see that the pipe works correctly.
7869 pipe_works=no
7871 rm -f conftest*
7872 cat > conftest.$ac_ext <<_LT_EOF
7873 #ifdef __cplusplus
7874 extern "C" {
7875 #endif
7876 char nm_test_var;
7877 void nm_test_func(void);
7878 void nm_test_func(void){}
7879 #ifdef __cplusplus
7881 #endif
7882 int main(){nm_test_var='a';nm_test_func();return(0);}
7883 _LT_EOF
7885 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
7886 (eval $ac_compile) 2>&5
7887 ac_status=$?
7888 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7889 test $ac_status = 0; }; then
7890 # Now try to grab the symbols.
7891 nlist=conftest.nm
7892 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
7893 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
7894 ac_status=$?
7895 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7896 test $ac_status = 0; } && test -s "$nlist"; then
7897 # Try sorting and uniquifying the output.
7898 if sort "$nlist" | uniq > "$nlist"T; then
7899 mv -f "$nlist"T "$nlist"
7900 else
7901 rm -f "$nlist"T
7904 # Make sure that we snagged all the symbols we need.
7905 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
7906 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
7907 cat <<_LT_EOF > conftest.$ac_ext
7908 #ifdef __cplusplus
7909 extern "C" {
7910 #endif
7912 _LT_EOF
7913 # Now generate the symbol file.
7914 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
7916 cat <<_LT_EOF >> conftest.$ac_ext
7918 /* The mapping between symbol names and symbols. */
7919 const struct {
7920 const char *name;
7921 void *address;
7923 lt__PROGRAM__LTX_preloaded_symbols[] =
7925 { "@PROGRAM@", (void *) 0 },
7926 _LT_EOF
7927 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
7928 cat <<\_LT_EOF >> conftest.$ac_ext
7929 {0, (void *) 0}
7932 /* This works around a problem in FreeBSD linker */
7933 #ifdef FREEBSD_WORKAROUND
7934 static const void *lt_preloaded_setup() {
7935 return lt__PROGRAM__LTX_preloaded_symbols;
7937 #endif
7939 #ifdef __cplusplus
7941 #endif
7942 _LT_EOF
7943 # Now try linking the two files.
7944 mv conftest.$ac_objext conftstm.$ac_objext
7945 lt_save_LIBS="$LIBS"
7946 lt_save_CFLAGS="$CFLAGS"
7947 LIBS="conftstm.$ac_objext"
7948 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
7949 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
7950 (eval $ac_link) 2>&5
7951 ac_status=$?
7952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7953 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
7954 pipe_works=yes
7956 LIBS="$lt_save_LIBS"
7957 CFLAGS="$lt_save_CFLAGS"
7958 else
7959 echo "cannot find nm_test_func in $nlist" >&5
7961 else
7962 echo "cannot find nm_test_var in $nlist" >&5
7964 else
7965 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
7967 else
7968 echo "$progname: failed program was:" >&5
7969 cat conftest.$ac_ext >&5
7971 rm -rf conftest* conftst*
7973 # Do not use the global_symbol_pipe unless it works.
7974 if test "$pipe_works" = yes; then
7975 break
7976 else
7977 lt_cv_sys_global_symbol_pipe=
7979 done
7983 if test -z "$lt_cv_sys_global_symbol_pipe"; then
7984 lt_cv_sys_global_symbol_to_cdecl=
7986 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
7988 $as_echo "failed" >&6; }
7989 else
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
7991 $as_echo "ok" >&6; }
8015 # Check whether --enable-libtool-lock was given.
8016 if test "${enable_libtool_lock+set}" = set; then :
8017 enableval=$enable_libtool_lock;
8020 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
8022 # Some flags need to be propagated to the compiler or linker for good
8023 # libtool support.
8024 case $host in
8025 ia64-*-hpux*)
8026 # Find out which ABI we are using.
8027 echo 'int i;' > conftest.$ac_ext
8028 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8029 (eval $ac_compile) 2>&5
8030 ac_status=$?
8031 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8032 test $ac_status = 0; }; then
8033 case `/usr/bin/file conftest.$ac_objext` in
8034 *ELF-32*)
8035 HPUX_IA64_MODE="32"
8037 *ELF-64*)
8038 HPUX_IA64_MODE="64"
8040 esac
8042 rm -rf conftest*
8044 *-*-irix6*)
8045 # Find out which ABI we are using.
8046 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
8047 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8048 (eval $ac_compile) 2>&5
8049 ac_status=$?
8050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8051 test $ac_status = 0; }; then
8052 if test "$lt_cv_prog_gnu_ld" = yes; then
8053 case `/usr/bin/file conftest.$ac_objext` in
8054 *32-bit*)
8055 LD="${LD-ld} -melf32bsmip"
8057 *N32*)
8058 LD="${LD-ld} -melf32bmipn32"
8060 *64-bit*)
8061 LD="${LD-ld} -melf64bmip"
8063 esac
8064 else
8065 case `/usr/bin/file conftest.$ac_objext` in
8066 *32-bit*)
8067 LD="${LD-ld} -32"
8069 *N32*)
8070 LD="${LD-ld} -n32"
8072 *64-bit*)
8073 LD="${LD-ld} -64"
8075 esac
8078 rm -rf conftest*
8081 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
8082 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
8083 # Find out which ABI we are using.
8084 echo 'int i;' > conftest.$ac_ext
8085 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8086 (eval $ac_compile) 2>&5
8087 ac_status=$?
8088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8089 test $ac_status = 0; }; then
8090 case `/usr/bin/file conftest.o` in
8091 *32-bit*)
8092 case $host in
8093 x86_64-*kfreebsd*-gnu)
8094 LD="${LD-ld} -m elf_i386_fbsd"
8096 x86_64-*linux*)
8097 case `/usr/bin/file conftest.o` in
8098 *x86-64*)
8099 LD="${LD-ld} -m elf32_x86_64"
8102 LD="${LD-ld} -m elf_i386"
8104 esac
8106 powerpc64le-*linux*)
8107 LD="${LD-ld} -m elf32lppclinux"
8109 powerpc64-*linux*)
8110 LD="${LD-ld} -m elf32ppclinux"
8112 s390x-*linux*)
8113 LD="${LD-ld} -m elf_s390"
8115 sparc64-*linux*)
8116 LD="${LD-ld} -m elf32_sparc"
8118 esac
8120 *64-bit*)
8121 case $host in
8122 x86_64-*kfreebsd*-gnu)
8123 LD="${LD-ld} -m elf_x86_64_fbsd"
8125 x86_64-*linux*)
8126 LD="${LD-ld} -m elf_x86_64"
8128 powerpcle-*linux*)
8129 LD="${LD-ld} -m elf64lppc"
8131 powerpc-*linux*)
8132 LD="${LD-ld} -m elf64ppc"
8134 s390*-*linux*|s390*-*tpf*)
8135 LD="${LD-ld} -m elf64_s390"
8137 sparc*-*linux*)
8138 LD="${LD-ld} -m elf64_sparc"
8140 esac
8142 esac
8144 rm -rf conftest*
8147 *-*-sco3.2v5*)
8148 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
8149 SAVE_CFLAGS="$CFLAGS"
8150 CFLAGS="$CFLAGS -belf"
8151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
8152 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
8153 if test "${lt_cv_cc_needs_belf+set}" = set; then :
8154 $as_echo_n "(cached) " >&6
8155 else
8156 ac_ext=c
8157 ac_cpp='$CPP $CPPFLAGS'
8158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8162 if test x$gcc_no_link = xyes; then
8163 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8166 /* end confdefs.h. */
8169 main ()
8173 return 0;
8175 _ACEOF
8176 if ac_fn_c_try_link "$LINENO"; then :
8177 lt_cv_cc_needs_belf=yes
8178 else
8179 lt_cv_cc_needs_belf=no
8181 rm -f core conftest.err conftest.$ac_objext \
8182 conftest$ac_exeext conftest.$ac_ext
8183 ac_ext=c
8184 ac_cpp='$CPP $CPPFLAGS'
8185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
8191 $as_echo "$lt_cv_cc_needs_belf" >&6; }
8192 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
8193 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
8194 CFLAGS="$SAVE_CFLAGS"
8197 sparc*-*solaris*)
8198 # Find out which ABI we are using.
8199 echo 'int i;' > conftest.$ac_ext
8200 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
8201 (eval $ac_compile) 2>&5
8202 ac_status=$?
8203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8204 test $ac_status = 0; }; then
8205 case `/usr/bin/file conftest.o` in
8206 *64-bit*)
8207 case $lt_cv_prog_gnu_ld in
8208 yes*) LD="${LD-ld} -m elf64_sparc" ;;
8210 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
8211 LD="${LD-ld} -64"
8214 esac
8216 esac
8218 rm -rf conftest*
8220 esac
8222 need_locks="$enable_libtool_lock"
8225 case $host_os in
8226 rhapsody* | darwin*)
8227 if test -n "$ac_tool_prefix"; then
8228 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
8229 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
8230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8231 $as_echo_n "checking for $ac_word... " >&6; }
8232 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
8233 $as_echo_n "(cached) " >&6
8234 else
8235 if test -n "$DSYMUTIL"; then
8236 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
8237 else
8238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8239 for as_dir in $PATH
8241 IFS=$as_save_IFS
8242 test -z "$as_dir" && as_dir=.
8243 for ac_exec_ext in '' $ac_executable_extensions; do
8244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8245 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
8246 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8247 break 2
8249 done
8250 done
8251 IFS=$as_save_IFS
8255 DSYMUTIL=$ac_cv_prog_DSYMUTIL
8256 if test -n "$DSYMUTIL"; then
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
8258 $as_echo "$DSYMUTIL" >&6; }
8259 else
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8261 $as_echo "no" >&6; }
8266 if test -z "$ac_cv_prog_DSYMUTIL"; then
8267 ac_ct_DSYMUTIL=$DSYMUTIL
8268 # Extract the first word of "dsymutil", so it can be a program name with args.
8269 set dummy dsymutil; ac_word=$2
8270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8271 $as_echo_n "checking for $ac_word... " >&6; }
8272 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
8273 $as_echo_n "(cached) " >&6
8274 else
8275 if test -n "$ac_ct_DSYMUTIL"; then
8276 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
8277 else
8278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8279 for as_dir in $PATH
8281 IFS=$as_save_IFS
8282 test -z "$as_dir" && as_dir=.
8283 for ac_exec_ext in '' $ac_executable_extensions; do
8284 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8285 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
8286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8287 break 2
8289 done
8290 done
8291 IFS=$as_save_IFS
8295 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
8296 if test -n "$ac_ct_DSYMUTIL"; then
8297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
8298 $as_echo "$ac_ct_DSYMUTIL" >&6; }
8299 else
8300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8301 $as_echo "no" >&6; }
8304 if test "x$ac_ct_DSYMUTIL" = x; then
8305 DSYMUTIL=":"
8306 else
8307 case $cross_compiling:$ac_tool_warned in
8308 yes:)
8309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8310 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8311 ac_tool_warned=yes ;;
8312 esac
8313 DSYMUTIL=$ac_ct_DSYMUTIL
8315 else
8316 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
8319 if test -n "$ac_tool_prefix"; then
8320 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
8321 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
8322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8323 $as_echo_n "checking for $ac_word... " >&6; }
8324 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
8325 $as_echo_n "(cached) " >&6
8326 else
8327 if test -n "$NMEDIT"; then
8328 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
8329 else
8330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8331 for as_dir in $PATH
8333 IFS=$as_save_IFS
8334 test -z "$as_dir" && as_dir=.
8335 for ac_exec_ext in '' $ac_executable_extensions; do
8336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8337 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
8338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8339 break 2
8341 done
8342 done
8343 IFS=$as_save_IFS
8347 NMEDIT=$ac_cv_prog_NMEDIT
8348 if test -n "$NMEDIT"; then
8349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
8350 $as_echo "$NMEDIT" >&6; }
8351 else
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8353 $as_echo "no" >&6; }
8358 if test -z "$ac_cv_prog_NMEDIT"; then
8359 ac_ct_NMEDIT=$NMEDIT
8360 # Extract the first word of "nmedit", so it can be a program name with args.
8361 set dummy nmedit; ac_word=$2
8362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8363 $as_echo_n "checking for $ac_word... " >&6; }
8364 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
8365 $as_echo_n "(cached) " >&6
8366 else
8367 if test -n "$ac_ct_NMEDIT"; then
8368 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
8369 else
8370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8371 for as_dir in $PATH
8373 IFS=$as_save_IFS
8374 test -z "$as_dir" && as_dir=.
8375 for ac_exec_ext in '' $ac_executable_extensions; do
8376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8377 ac_cv_prog_ac_ct_NMEDIT="nmedit"
8378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8379 break 2
8381 done
8382 done
8383 IFS=$as_save_IFS
8387 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
8388 if test -n "$ac_ct_NMEDIT"; then
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
8390 $as_echo "$ac_ct_NMEDIT" >&6; }
8391 else
8392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8393 $as_echo "no" >&6; }
8396 if test "x$ac_ct_NMEDIT" = x; then
8397 NMEDIT=":"
8398 else
8399 case $cross_compiling:$ac_tool_warned in
8400 yes:)
8401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8402 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8403 ac_tool_warned=yes ;;
8404 esac
8405 NMEDIT=$ac_ct_NMEDIT
8407 else
8408 NMEDIT="$ac_cv_prog_NMEDIT"
8411 if test -n "$ac_tool_prefix"; then
8412 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
8413 set dummy ${ac_tool_prefix}lipo; ac_word=$2
8414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8415 $as_echo_n "checking for $ac_word... " >&6; }
8416 if test "${ac_cv_prog_LIPO+set}" = set; then :
8417 $as_echo_n "(cached) " >&6
8418 else
8419 if test -n "$LIPO"; then
8420 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
8421 else
8422 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8423 for as_dir in $PATH
8425 IFS=$as_save_IFS
8426 test -z "$as_dir" && as_dir=.
8427 for ac_exec_ext in '' $ac_executable_extensions; do
8428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8429 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
8430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8431 break 2
8433 done
8434 done
8435 IFS=$as_save_IFS
8439 LIPO=$ac_cv_prog_LIPO
8440 if test -n "$LIPO"; then
8441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
8442 $as_echo "$LIPO" >&6; }
8443 else
8444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8445 $as_echo "no" >&6; }
8450 if test -z "$ac_cv_prog_LIPO"; then
8451 ac_ct_LIPO=$LIPO
8452 # Extract the first word of "lipo", so it can be a program name with args.
8453 set dummy lipo; ac_word=$2
8454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8455 $as_echo_n "checking for $ac_word... " >&6; }
8456 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
8457 $as_echo_n "(cached) " >&6
8458 else
8459 if test -n "$ac_ct_LIPO"; then
8460 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
8461 else
8462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8463 for as_dir in $PATH
8465 IFS=$as_save_IFS
8466 test -z "$as_dir" && as_dir=.
8467 for ac_exec_ext in '' $ac_executable_extensions; do
8468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8469 ac_cv_prog_ac_ct_LIPO="lipo"
8470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8471 break 2
8473 done
8474 done
8475 IFS=$as_save_IFS
8479 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
8480 if test -n "$ac_ct_LIPO"; then
8481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
8482 $as_echo "$ac_ct_LIPO" >&6; }
8483 else
8484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8485 $as_echo "no" >&6; }
8488 if test "x$ac_ct_LIPO" = x; then
8489 LIPO=":"
8490 else
8491 case $cross_compiling:$ac_tool_warned in
8492 yes:)
8493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8494 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8495 ac_tool_warned=yes ;;
8496 esac
8497 LIPO=$ac_ct_LIPO
8499 else
8500 LIPO="$ac_cv_prog_LIPO"
8503 if test -n "$ac_tool_prefix"; then
8504 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
8505 set dummy ${ac_tool_prefix}otool; ac_word=$2
8506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8507 $as_echo_n "checking for $ac_word... " >&6; }
8508 if test "${ac_cv_prog_OTOOL+set}" = set; then :
8509 $as_echo_n "(cached) " >&6
8510 else
8511 if test -n "$OTOOL"; then
8512 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
8513 else
8514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8515 for as_dir in $PATH
8517 IFS=$as_save_IFS
8518 test -z "$as_dir" && as_dir=.
8519 for ac_exec_ext in '' $ac_executable_extensions; do
8520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8521 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
8522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8523 break 2
8525 done
8526 done
8527 IFS=$as_save_IFS
8531 OTOOL=$ac_cv_prog_OTOOL
8532 if test -n "$OTOOL"; then
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
8534 $as_echo "$OTOOL" >&6; }
8535 else
8536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8537 $as_echo "no" >&6; }
8542 if test -z "$ac_cv_prog_OTOOL"; then
8543 ac_ct_OTOOL=$OTOOL
8544 # Extract the first word of "otool", so it can be a program name with args.
8545 set dummy otool; ac_word=$2
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8547 $as_echo_n "checking for $ac_word... " >&6; }
8548 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
8549 $as_echo_n "(cached) " >&6
8550 else
8551 if test -n "$ac_ct_OTOOL"; then
8552 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
8553 else
8554 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8555 for as_dir in $PATH
8557 IFS=$as_save_IFS
8558 test -z "$as_dir" && as_dir=.
8559 for ac_exec_ext in '' $ac_executable_extensions; do
8560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8561 ac_cv_prog_ac_ct_OTOOL="otool"
8562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8563 break 2
8565 done
8566 done
8567 IFS=$as_save_IFS
8571 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
8572 if test -n "$ac_ct_OTOOL"; then
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
8574 $as_echo "$ac_ct_OTOOL" >&6; }
8575 else
8576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8577 $as_echo "no" >&6; }
8580 if test "x$ac_ct_OTOOL" = x; then
8581 OTOOL=":"
8582 else
8583 case $cross_compiling:$ac_tool_warned in
8584 yes:)
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8586 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8587 ac_tool_warned=yes ;;
8588 esac
8589 OTOOL=$ac_ct_OTOOL
8591 else
8592 OTOOL="$ac_cv_prog_OTOOL"
8595 if test -n "$ac_tool_prefix"; then
8596 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
8597 set dummy ${ac_tool_prefix}otool64; ac_word=$2
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8599 $as_echo_n "checking for $ac_word... " >&6; }
8600 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
8601 $as_echo_n "(cached) " >&6
8602 else
8603 if test -n "$OTOOL64"; then
8604 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
8605 else
8606 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8607 for as_dir in $PATH
8609 IFS=$as_save_IFS
8610 test -z "$as_dir" && as_dir=.
8611 for ac_exec_ext in '' $ac_executable_extensions; do
8612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8613 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
8614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8615 break 2
8617 done
8618 done
8619 IFS=$as_save_IFS
8623 OTOOL64=$ac_cv_prog_OTOOL64
8624 if test -n "$OTOOL64"; then
8625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
8626 $as_echo "$OTOOL64" >&6; }
8627 else
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8629 $as_echo "no" >&6; }
8634 if test -z "$ac_cv_prog_OTOOL64"; then
8635 ac_ct_OTOOL64=$OTOOL64
8636 # Extract the first word of "otool64", so it can be a program name with args.
8637 set dummy otool64; ac_word=$2
8638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8639 $as_echo_n "checking for $ac_word... " >&6; }
8640 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
8641 $as_echo_n "(cached) " >&6
8642 else
8643 if test -n "$ac_ct_OTOOL64"; then
8644 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
8645 else
8646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8647 for as_dir in $PATH
8649 IFS=$as_save_IFS
8650 test -z "$as_dir" && as_dir=.
8651 for ac_exec_ext in '' $ac_executable_extensions; do
8652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8653 ac_cv_prog_ac_ct_OTOOL64="otool64"
8654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8655 break 2
8657 done
8658 done
8659 IFS=$as_save_IFS
8663 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
8664 if test -n "$ac_ct_OTOOL64"; then
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
8666 $as_echo "$ac_ct_OTOOL64" >&6; }
8667 else
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8669 $as_echo "no" >&6; }
8672 if test "x$ac_ct_OTOOL64" = x; then
8673 OTOOL64=":"
8674 else
8675 case $cross_compiling:$ac_tool_warned in
8676 yes:)
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8678 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8679 ac_tool_warned=yes ;;
8680 esac
8681 OTOOL64=$ac_ct_OTOOL64
8683 else
8684 OTOOL64="$ac_cv_prog_OTOOL64"
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
8714 $as_echo_n "checking for -single_module linker flag... " >&6; }
8715 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
8716 $as_echo_n "(cached) " >&6
8717 else
8718 lt_cv_apple_cc_single_mod=no
8719 if test -z "${LT_MULTI_MODULE}"; then
8720 # By default we will add the -single_module flag. You can override
8721 # by either setting the environment variable LT_MULTI_MODULE
8722 # non-empty at configure time, or by adding -multi_module to the
8723 # link flags.
8724 rm -rf libconftest.dylib*
8725 echo "int foo(void){return 1;}" > conftest.c
8726 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8727 -dynamiclib -Wl,-single_module conftest.c" >&5
8728 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
8729 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
8730 _lt_result=$?
8731 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
8732 lt_cv_apple_cc_single_mod=yes
8733 else
8734 cat conftest.err >&5
8736 rm -rf libconftest.dylib*
8737 rm -f conftest.*
8740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
8741 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
8742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
8743 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
8744 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
8745 $as_echo_n "(cached) " >&6
8746 else
8747 lt_cv_ld_exported_symbols_list=no
8748 save_LDFLAGS=$LDFLAGS
8749 echo "_main" > conftest.sym
8750 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
8751 if test x$gcc_no_link = xyes; then
8752 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
8754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8755 /* end confdefs.h. */
8758 main ()
8762 return 0;
8764 _ACEOF
8765 if ac_fn_c_try_link "$LINENO"; then :
8766 lt_cv_ld_exported_symbols_list=yes
8767 else
8768 lt_cv_ld_exported_symbols_list=no
8770 rm -f core conftest.err conftest.$ac_objext \
8771 conftest$ac_exeext conftest.$ac_ext
8772 LDFLAGS="$save_LDFLAGS"
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
8776 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
8777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
8778 $as_echo_n "checking for -force_load linker flag... " >&6; }
8779 if test "${lt_cv_ld_force_load+set}" = set; then :
8780 $as_echo_n "(cached) " >&6
8781 else
8782 lt_cv_ld_force_load=no
8783 cat > conftest.c << _LT_EOF
8784 int forced_loaded() { return 2;}
8785 _LT_EOF
8786 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
8787 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
8788 echo "$AR cru libconftest.a conftest.o" >&5
8789 $AR cru libconftest.a conftest.o 2>&5
8790 cat > conftest.c << _LT_EOF
8791 int main() { return 0;}
8792 _LT_EOF
8793 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
8794 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
8795 _lt_result=$?
8796 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
8797 lt_cv_ld_force_load=yes
8798 else
8799 cat conftest.err >&5
8801 rm -f conftest.err libconftest.a conftest conftest.c
8802 rm -rf conftest.dSYM
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
8806 $as_echo "$lt_cv_ld_force_load" >&6; }
8807 case $host_os in
8808 rhapsody* | darwin1.[012])
8809 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
8810 darwin1.*)
8811 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8812 darwin*) # darwin 5.x on
8813 # if running on 10.5 or later, the deployment target defaults
8814 # to the OS version, if on x86, and 10.4, the deployment
8815 # target defaults to 10.4. Don't you love it?
8816 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
8817 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
8818 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8819 10.[012][,.]*)
8820 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
8821 10.*)
8822 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
8823 esac
8825 esac
8826 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
8827 _lt_dar_single_mod='$single_module'
8829 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
8830 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
8831 else
8832 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
8834 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
8835 _lt_dsymutil='~$DSYMUTIL $lib || :'
8836 else
8837 _lt_dsymutil=
8840 esac
8842 for ac_header in dlfcn.h
8843 do :
8844 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
8846 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
8847 cat >>confdefs.h <<_ACEOF
8848 #define HAVE_DLFCN_H 1
8849 _ACEOF
8853 done
8859 # Set options
8864 enable_win32_dll=no
8867 # Check whether --enable-shared was given.
8868 if test "${enable_shared+set}" = set; then :
8869 enableval=$enable_shared; p=${PACKAGE-default}
8870 case $enableval in
8871 yes) enable_shared=yes ;;
8872 no) enable_shared=no ;;
8874 enable_shared=no
8875 # Look at the argument we got. We use all the common list separators.
8876 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8877 for pkg in $enableval; do
8878 IFS="$lt_save_ifs"
8879 if test "X$pkg" = "X$p"; then
8880 enable_shared=yes
8882 done
8883 IFS="$lt_save_ifs"
8885 esac
8886 else
8887 enable_shared=yes
8898 # Check whether --enable-static was given.
8899 if test "${enable_static+set}" = set; then :
8900 enableval=$enable_static; p=${PACKAGE-default}
8901 case $enableval in
8902 yes) enable_static=yes ;;
8903 no) enable_static=no ;;
8905 enable_static=no
8906 # Look at the argument we got. We use all the common list separators.
8907 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8908 for pkg in $enableval; do
8909 IFS="$lt_save_ifs"
8910 if test "X$pkg" = "X$p"; then
8911 enable_static=yes
8913 done
8914 IFS="$lt_save_ifs"
8916 esac
8917 else
8918 enable_static=yes
8930 # Check whether --with-pic was given.
8931 if test "${with_pic+set}" = set; then :
8932 withval=$with_pic; pic_mode="$withval"
8933 else
8934 pic_mode=default
8938 test -z "$pic_mode" && pic_mode=default
8946 # Check whether --enable-fast-install was given.
8947 if test "${enable_fast_install+set}" = set; then :
8948 enableval=$enable_fast_install; p=${PACKAGE-default}
8949 case $enableval in
8950 yes) enable_fast_install=yes ;;
8951 no) enable_fast_install=no ;;
8953 enable_fast_install=no
8954 # Look at the argument we got. We use all the common list separators.
8955 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8956 for pkg in $enableval; do
8957 IFS="$lt_save_ifs"
8958 if test "X$pkg" = "X$p"; then
8959 enable_fast_install=yes
8961 done
8962 IFS="$lt_save_ifs"
8964 esac
8965 else
8966 enable_fast_install=yes
8979 # This can be used to rebuild libtool when needed
8980 LIBTOOL_DEPS="$ltmain"
8982 # Always use our own libtool.
8983 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
9010 test -z "$LN_S" && LN_S="ln -s"
9025 if test -n "${ZSH_VERSION+set}" ; then
9026 setopt NO_GLOB_SUBST
9029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
9030 $as_echo_n "checking for objdir... " >&6; }
9031 if test "${lt_cv_objdir+set}" = set; then :
9032 $as_echo_n "(cached) " >&6
9033 else
9034 rm -f .libs 2>/dev/null
9035 mkdir .libs 2>/dev/null
9036 if test -d .libs; then
9037 lt_cv_objdir=.libs
9038 else
9039 # MS-DOS does not allow filenames that begin with a dot.
9040 lt_cv_objdir=_libs
9042 rmdir .libs 2>/dev/null
9044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
9045 $as_echo "$lt_cv_objdir" >&6; }
9046 objdir=$lt_cv_objdir
9052 cat >>confdefs.h <<_ACEOF
9053 #define LT_OBJDIR "$lt_cv_objdir/"
9054 _ACEOF
9059 case $host_os in
9060 aix3*)
9061 # AIX sometimes has problems with the GCC collect2 program. For some
9062 # reason, if we set the COLLECT_NAMES environment variable, the problems
9063 # vanish in a puff of smoke.
9064 if test "X${COLLECT_NAMES+set}" != Xset; then
9065 COLLECT_NAMES=
9066 export COLLECT_NAMES
9069 esac
9071 # Global variables:
9072 ofile=libtool
9073 can_build_shared=yes
9075 # All known linkers require a `.a' archive for static linking (except MSVC,
9076 # which needs '.lib').
9077 libext=a
9079 with_gnu_ld="$lt_cv_prog_gnu_ld"
9081 old_CC="$CC"
9082 old_CFLAGS="$CFLAGS"
9084 # Set sane defaults for various variables
9085 test -z "$CC" && CC=cc
9086 test -z "$LTCC" && LTCC=$CC
9087 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
9088 test -z "$LD" && LD=ld
9089 test -z "$ac_objext" && ac_objext=o
9091 for cc_temp in $compiler""; do
9092 case $cc_temp in
9093 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
9094 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
9095 \-*) ;;
9096 *) break;;
9097 esac
9098 done
9099 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
9102 # Only perform the check for file, if the check method requires it
9103 test -z "$MAGIC_CMD" && MAGIC_CMD=file
9104 case $deplibs_check_method in
9105 file_magic*)
9106 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
9107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
9108 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
9109 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9110 $as_echo_n "(cached) " >&6
9111 else
9112 case $MAGIC_CMD in
9113 [\\/*] | ?:[\\/]*)
9114 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9117 lt_save_MAGIC_CMD="$MAGIC_CMD"
9118 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9119 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9120 for ac_dir in $ac_dummy; do
9121 IFS="$lt_save_ifs"
9122 test -z "$ac_dir" && ac_dir=.
9123 if test -f $ac_dir/${ac_tool_prefix}file; then
9124 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
9125 if test -n "$file_magic_test_file"; then
9126 case $deplibs_check_method in
9127 "file_magic "*)
9128 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9129 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9130 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9131 $EGREP "$file_magic_regex" > /dev/null; then
9133 else
9134 cat <<_LT_EOF 1>&2
9136 *** Warning: the command libtool uses to detect shared libraries,
9137 *** $file_magic_cmd, produces output that libtool cannot recognize.
9138 *** The result is that libtool may fail to recognize shared libraries
9139 *** as such. This will affect the creation of libtool libraries that
9140 *** depend on shared libraries, but programs linked with such libtool
9141 *** libraries will work regardless of this problem. Nevertheless, you
9142 *** may want to report the problem to your system manager and/or to
9143 *** bug-libtool@gnu.org
9145 _LT_EOF
9146 fi ;;
9147 esac
9149 break
9151 done
9152 IFS="$lt_save_ifs"
9153 MAGIC_CMD="$lt_save_MAGIC_CMD"
9155 esac
9158 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9159 if test -n "$MAGIC_CMD"; then
9160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9161 $as_echo "$MAGIC_CMD" >&6; }
9162 else
9163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9164 $as_echo "no" >&6; }
9171 if test -z "$lt_cv_path_MAGIC_CMD"; then
9172 if test -n "$ac_tool_prefix"; then
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
9174 $as_echo_n "checking for file... " >&6; }
9175 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
9176 $as_echo_n "(cached) " >&6
9177 else
9178 case $MAGIC_CMD in
9179 [\\/*] | ?:[\\/]*)
9180 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
9183 lt_save_MAGIC_CMD="$MAGIC_CMD"
9184 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9185 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
9186 for ac_dir in $ac_dummy; do
9187 IFS="$lt_save_ifs"
9188 test -z "$ac_dir" && ac_dir=.
9189 if test -f $ac_dir/file; then
9190 lt_cv_path_MAGIC_CMD="$ac_dir/file"
9191 if test -n "$file_magic_test_file"; then
9192 case $deplibs_check_method in
9193 "file_magic "*)
9194 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
9195 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9196 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
9197 $EGREP "$file_magic_regex" > /dev/null; then
9199 else
9200 cat <<_LT_EOF 1>&2
9202 *** Warning: the command libtool uses to detect shared libraries,
9203 *** $file_magic_cmd, produces output that libtool cannot recognize.
9204 *** The result is that libtool may fail to recognize shared libraries
9205 *** as such. This will affect the creation of libtool libraries that
9206 *** depend on shared libraries, but programs linked with such libtool
9207 *** libraries will work regardless of this problem. Nevertheless, you
9208 *** may want to report the problem to your system manager and/or to
9209 *** bug-libtool@gnu.org
9211 _LT_EOF
9212 fi ;;
9213 esac
9215 break
9217 done
9218 IFS="$lt_save_ifs"
9219 MAGIC_CMD="$lt_save_MAGIC_CMD"
9221 esac
9224 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
9225 if test -n "$MAGIC_CMD"; then
9226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
9227 $as_echo "$MAGIC_CMD" >&6; }
9228 else
9229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9230 $as_echo "no" >&6; }
9234 else
9235 MAGIC_CMD=:
9241 esac
9243 # Use C for the default configuration in the libtool script
9245 lt_save_CC="$CC"
9246 ac_ext=c
9247 ac_cpp='$CPP $CPPFLAGS'
9248 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9249 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9250 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9253 # Source file extension for C test sources.
9254 ac_ext=c
9256 # Object file extension for compiled C test sources.
9257 objext=o
9258 objext=$objext
9260 # Code to be used in simple compile tests
9261 lt_simple_compile_test_code="int some_variable = 0;"
9263 # Code to be used in simple link tests
9264 lt_simple_link_test_code='int main(){return(0);}'
9272 # If no C compiler was specified, use CC.
9273 LTCC=${LTCC-"$CC"}
9275 # If no C compiler flags were specified, use CFLAGS.
9276 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9278 # Allow CC to be a program name with arguments.
9279 compiler=$CC
9281 # Save the default compiler, since it gets overwritten when the other
9282 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
9283 compiler_DEFAULT=$CC
9285 # save warnings/boilerplate of simple test code
9286 ac_outfile=conftest.$ac_objext
9287 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
9288 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9289 _lt_compiler_boilerplate=`cat conftest.err`
9290 $RM conftest*
9292 ac_outfile=conftest.$ac_objext
9293 echo "$lt_simple_link_test_code" >conftest.$ac_ext
9294 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
9295 _lt_linker_boilerplate=`cat conftest.err`
9296 $RM -r conftest*
9299 ## CAVEAT EMPTOR:
9300 ## There is no encapsulation within the following macros, do not change
9301 ## the running order or otherwise move them around unless you know exactly
9302 ## what you are doing...
9303 if test -n "$compiler"; then
9305 lt_prog_compiler_no_builtin_flag=
9307 if test "$GCC" = yes; then
9308 case $cc_basename in
9309 nvcc*)
9310 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
9312 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
9313 esac
9315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
9316 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
9317 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
9318 $as_echo_n "(cached) " >&6
9319 else
9320 lt_cv_prog_compiler_rtti_exceptions=no
9321 ac_outfile=conftest.$ac_objext
9322 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9323 lt_compiler_flag="-fno-rtti -fno-exceptions"
9324 # Insert the option either (1) after the last *FLAGS variable, or
9325 # (2) before a word containing "conftest.", or (3) at the end.
9326 # Note that $ac_compile itself does not contain backslashes and begins
9327 # with a dollar sign (not a hyphen), so the echo should work correctly.
9328 # The option is referenced via a variable to avoid confusing sed.
9329 lt_compile=`echo "$ac_compile" | $SED \
9330 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9331 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9332 -e 's:$: $lt_compiler_flag:'`
9333 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9334 (eval "$lt_compile" 2>conftest.err)
9335 ac_status=$?
9336 cat conftest.err >&5
9337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9338 if (exit $ac_status) && test -s "$ac_outfile"; then
9339 # The compiler can only warn and ignore the option if not recognized
9340 # So say no if there are warnings other than the usual output.
9341 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9342 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9343 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9344 lt_cv_prog_compiler_rtti_exceptions=yes
9347 $RM conftest*
9350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
9351 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
9353 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
9354 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
9355 else
9366 lt_prog_compiler_wl=
9367 lt_prog_compiler_pic=
9368 lt_prog_compiler_static=
9370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
9371 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
9373 if test "$GCC" = yes; then
9374 lt_prog_compiler_wl='-Wl,'
9375 lt_prog_compiler_static='-static'
9377 case $host_os in
9378 aix*)
9379 # All AIX code is PIC.
9380 if test "$host_cpu" = ia64; then
9381 # AIX 5 now supports IA64 processor
9382 lt_prog_compiler_static='-Bstatic'
9384 lt_prog_compiler_pic='-fPIC'
9387 amigaos*)
9388 case $host_cpu in
9389 powerpc)
9390 # see comment about AmigaOS4 .so support
9391 lt_prog_compiler_pic='-fPIC'
9393 m68k)
9394 # FIXME: we need at least 68020 code to build shared libraries, but
9395 # adding the `-m68020' flag to GCC prevents building anything better,
9396 # like `-m68040'.
9397 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
9399 esac
9402 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
9403 # PIC is the default for these OSes.
9406 mingw* | cygwin* | pw32* | os2* | cegcc*)
9407 # This hack is so that the source file can tell whether it is being
9408 # built for inclusion in a dll (and should export symbols for example).
9409 # Although the cygwin gcc ignores -fPIC, still need this for old-style
9410 # (--disable-auto-import) libraries
9411 lt_prog_compiler_pic='-DDLL_EXPORT'
9414 darwin* | rhapsody*)
9415 # PIC is the default on this platform
9416 # Common symbols not allowed in MH_DYLIB files
9417 lt_prog_compiler_pic='-fno-common'
9420 haiku*)
9421 # PIC is the default for Haiku.
9422 # The "-static" flag exists, but is broken.
9423 lt_prog_compiler_static=
9426 hpux*)
9427 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
9428 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
9429 # sets the default TLS model and affects inlining.
9430 case $host_cpu in
9431 hppa*64*)
9432 # +Z the default
9435 lt_prog_compiler_pic='-fPIC'
9437 esac
9440 interix[3-9]*)
9441 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
9442 # Instead, we relocate shared libraries at runtime.
9445 msdosdjgpp*)
9446 # Just because we use GCC doesn't mean we suddenly get shared libraries
9447 # on systems that don't support them.
9448 lt_prog_compiler_can_build_shared=no
9449 enable_shared=no
9452 *nto* | *qnx*)
9453 # QNX uses GNU C++, but need to define -shared option too, otherwise
9454 # it will coredump.
9455 lt_prog_compiler_pic='-fPIC -shared'
9458 sysv4*MP*)
9459 if test -d /usr/nec; then
9460 lt_prog_compiler_pic=-Kconform_pic
9465 lt_prog_compiler_pic='-fPIC'
9467 esac
9469 case $cc_basename in
9470 nvcc*) # Cuda Compiler Driver 2.2
9471 lt_prog_compiler_wl='-Xlinker '
9472 lt_prog_compiler_pic='-Xcompiler -fPIC'
9474 esac
9475 else
9476 # PORTME Check for flag to pass linker flags through the system compiler.
9477 case $host_os in
9478 aix*)
9479 lt_prog_compiler_wl='-Wl,'
9480 if test "$host_cpu" = ia64; then
9481 # AIX 5 now supports IA64 processor
9482 lt_prog_compiler_static='-Bstatic'
9483 else
9484 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
9488 mingw* | cygwin* | pw32* | os2* | cegcc*)
9489 # This hack is so that the source file can tell whether it is being
9490 # built for inclusion in a dll (and should export symbols for example).
9491 lt_prog_compiler_pic='-DDLL_EXPORT'
9494 hpux9* | hpux10* | hpux11*)
9495 lt_prog_compiler_wl='-Wl,'
9496 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
9497 # not for PA HP-UX.
9498 case $host_cpu in
9499 hppa*64*|ia64*)
9500 # +Z the default
9503 lt_prog_compiler_pic='+Z'
9505 esac
9506 # Is there a better lt_prog_compiler_static that works with the bundled CC?
9507 lt_prog_compiler_static='${wl}-a ${wl}archive'
9510 irix5* | irix6* | nonstopux*)
9511 lt_prog_compiler_wl='-Wl,'
9512 # PIC (with -KPIC) is the default.
9513 lt_prog_compiler_static='-non_shared'
9516 linux* | k*bsd*-gnu | kopensolaris*-gnu)
9517 case $cc_basename in
9518 # old Intel for x86_64 which still supported -KPIC.
9519 ecc*)
9520 lt_prog_compiler_wl='-Wl,'
9521 lt_prog_compiler_pic='-KPIC'
9522 lt_prog_compiler_static='-static'
9524 # icc used to be incompatible with GCC.
9525 # ICC 10 doesn't accept -KPIC any more.
9526 icc* | ifort*)
9527 lt_prog_compiler_wl='-Wl,'
9528 lt_prog_compiler_pic='-fPIC'
9529 lt_prog_compiler_static='-static'
9531 # Lahey Fortran 8.1.
9532 lf95*)
9533 lt_prog_compiler_wl='-Wl,'
9534 lt_prog_compiler_pic='--shared'
9535 lt_prog_compiler_static='--static'
9537 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
9538 # Portland Group compilers (*not* the Pentium gcc compiler,
9539 # which looks to be a dead project)
9540 lt_prog_compiler_wl='-Wl,'
9541 lt_prog_compiler_pic='-fpic'
9542 lt_prog_compiler_static='-Bstatic'
9544 ccc*)
9545 lt_prog_compiler_wl='-Wl,'
9546 # All Alpha code is PIC.
9547 lt_prog_compiler_static='-non_shared'
9549 xl* | bgxl* | bgf* | mpixl*)
9550 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
9551 lt_prog_compiler_wl='-Wl,'
9552 lt_prog_compiler_pic='-qpic'
9553 lt_prog_compiler_static='-qstaticlink'
9556 case `$CC -V 2>&1 | sed 5q` in
9557 *Sun\ F* | *Sun*Fortran*)
9558 # Sun Fortran 8.3 passes all unrecognized flags to the linker
9559 lt_prog_compiler_pic='-KPIC'
9560 lt_prog_compiler_static='-Bstatic'
9561 lt_prog_compiler_wl=''
9563 *Sun\ C*)
9564 # Sun C 5.9
9565 lt_prog_compiler_pic='-KPIC'
9566 lt_prog_compiler_static='-Bstatic'
9567 lt_prog_compiler_wl='-Wl,'
9569 esac
9571 esac
9574 newsos6)
9575 lt_prog_compiler_pic='-KPIC'
9576 lt_prog_compiler_static='-Bstatic'
9579 *nto* | *qnx*)
9580 # QNX uses GNU C++, but need to define -shared option too, otherwise
9581 # it will coredump.
9582 lt_prog_compiler_pic='-fPIC -shared'
9585 osf3* | osf4* | osf5*)
9586 lt_prog_compiler_wl='-Wl,'
9587 # All OSF/1 code is PIC.
9588 lt_prog_compiler_static='-non_shared'
9591 rdos*)
9592 lt_prog_compiler_static='-non_shared'
9595 solaris*)
9596 lt_prog_compiler_pic='-KPIC'
9597 lt_prog_compiler_static='-Bstatic'
9598 case $cc_basename in
9599 f77* | f90* | f95*)
9600 lt_prog_compiler_wl='-Qoption ld ';;
9602 lt_prog_compiler_wl='-Wl,';;
9603 esac
9606 sunos4*)
9607 lt_prog_compiler_wl='-Qoption ld '
9608 lt_prog_compiler_pic='-PIC'
9609 lt_prog_compiler_static='-Bstatic'
9612 sysv4 | sysv4.2uw2* | sysv4.3*)
9613 lt_prog_compiler_wl='-Wl,'
9614 lt_prog_compiler_pic='-KPIC'
9615 lt_prog_compiler_static='-Bstatic'
9618 sysv4*MP*)
9619 if test -d /usr/nec ;then
9620 lt_prog_compiler_pic='-Kconform_pic'
9621 lt_prog_compiler_static='-Bstatic'
9625 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
9626 lt_prog_compiler_wl='-Wl,'
9627 lt_prog_compiler_pic='-KPIC'
9628 lt_prog_compiler_static='-Bstatic'
9631 unicos*)
9632 lt_prog_compiler_wl='-Wl,'
9633 lt_prog_compiler_can_build_shared=no
9636 uts4*)
9637 lt_prog_compiler_pic='-pic'
9638 lt_prog_compiler_static='-Bstatic'
9642 lt_prog_compiler_can_build_shared=no
9644 esac
9647 case $host_os in
9648 # For platforms which do not support PIC, -DPIC is meaningless:
9649 *djgpp*)
9650 lt_prog_compiler_pic=
9653 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
9655 esac
9656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
9657 $as_echo "$lt_prog_compiler_pic" >&6; }
9665 # Check to make sure the PIC flag actually works.
9667 if test -n "$lt_prog_compiler_pic"; then
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
9669 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
9670 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
9671 $as_echo_n "(cached) " >&6
9672 else
9673 lt_cv_prog_compiler_pic_works=no
9674 ac_outfile=conftest.$ac_objext
9675 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9676 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
9677 # Insert the option either (1) after the last *FLAGS variable, or
9678 # (2) before a word containing "conftest.", or (3) at the end.
9679 # Note that $ac_compile itself does not contain backslashes and begins
9680 # with a dollar sign (not a hyphen), so the echo should work correctly.
9681 # The option is referenced via a variable to avoid confusing sed.
9682 lt_compile=`echo "$ac_compile" | $SED \
9683 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9684 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9685 -e 's:$: $lt_compiler_flag:'`
9686 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9687 (eval "$lt_compile" 2>conftest.err)
9688 ac_status=$?
9689 cat conftest.err >&5
9690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9691 if (exit $ac_status) && test -s "$ac_outfile"; then
9692 # The compiler can only warn and ignore the option if not recognized
9693 # So say no if there are warnings other than the usual output.
9694 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
9695 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9696 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
9697 lt_cv_prog_compiler_pic_works=yes
9700 $RM conftest*
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
9704 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
9706 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
9707 case $lt_prog_compiler_pic in
9708 "" | " "*) ;;
9709 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
9710 esac
9711 else
9712 lt_prog_compiler_pic=
9713 lt_prog_compiler_can_build_shared=no
9724 # Check to make sure the static flag actually works.
9726 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
9728 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
9729 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
9730 $as_echo_n "(cached) " >&6
9731 else
9732 lt_cv_prog_compiler_static_works=no
9733 save_LDFLAGS="$LDFLAGS"
9734 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
9735 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9736 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9737 # The linker can only warn and ignore the option if not recognized
9738 # So say no if there are warnings
9739 if test -s conftest.err; then
9740 # Append any errors to the config.log.
9741 cat conftest.err 1>&5
9742 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9743 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9744 if diff conftest.exp conftest.er2 >/dev/null; then
9745 lt_cv_prog_compiler_static_works=yes
9747 else
9748 lt_cv_prog_compiler_static_works=yes
9751 $RM -r conftest*
9752 LDFLAGS="$save_LDFLAGS"
9755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
9756 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
9758 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
9760 else
9761 lt_prog_compiler_static=
9770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9771 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9772 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9773 $as_echo_n "(cached) " >&6
9774 else
9775 lt_cv_prog_compiler_c_o=no
9776 $RM -r conftest 2>/dev/null
9777 mkdir conftest
9778 cd conftest
9779 mkdir out
9780 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9782 lt_compiler_flag="-o out/conftest2.$ac_objext"
9783 # Insert the option either (1) after the last *FLAGS variable, or
9784 # (2) before a word containing "conftest.", or (3) at the end.
9785 # Note that $ac_compile itself does not contain backslashes and begins
9786 # with a dollar sign (not a hyphen), so the echo should work correctly.
9787 lt_compile=`echo "$ac_compile" | $SED \
9788 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9789 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9790 -e 's:$: $lt_compiler_flag:'`
9791 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9792 (eval "$lt_compile" 2>out/conftest.err)
9793 ac_status=$?
9794 cat out/conftest.err >&5
9795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9796 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9797 then
9798 # The compiler can only warn and ignore the option if not recognized
9799 # So say no if there are warnings
9800 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9801 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9802 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9803 lt_cv_prog_compiler_c_o=yes
9806 chmod u+w . 2>&5
9807 $RM conftest*
9808 # SGI C++ compiler will create directory out/ii_files/ for
9809 # template instantiation
9810 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9811 $RM out/* && rmdir out
9812 cd ..
9813 $RM -r conftest
9814 $RM conftest*
9817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9818 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
9826 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
9827 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
9828 $as_echo_n "(cached) " >&6
9829 else
9830 lt_cv_prog_compiler_c_o=no
9831 $RM -r conftest 2>/dev/null
9832 mkdir conftest
9833 cd conftest
9834 mkdir out
9835 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
9837 lt_compiler_flag="-o out/conftest2.$ac_objext"
9838 # Insert the option either (1) after the last *FLAGS variable, or
9839 # (2) before a word containing "conftest.", or (3) at the end.
9840 # Note that $ac_compile itself does not contain backslashes and begins
9841 # with a dollar sign (not a hyphen), so the echo should work correctly.
9842 lt_compile=`echo "$ac_compile" | $SED \
9843 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
9844 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
9845 -e 's:$: $lt_compiler_flag:'`
9846 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
9847 (eval "$lt_compile" 2>out/conftest.err)
9848 ac_status=$?
9849 cat out/conftest.err >&5
9850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9851 if (exit $ac_status) && test -s out/conftest2.$ac_objext
9852 then
9853 # The compiler can only warn and ignore the option if not recognized
9854 # So say no if there are warnings
9855 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
9856 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
9857 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
9858 lt_cv_prog_compiler_c_o=yes
9861 chmod u+w . 2>&5
9862 $RM conftest*
9863 # SGI C++ compiler will create directory out/ii_files/ for
9864 # template instantiation
9865 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
9866 $RM out/* && rmdir out
9867 cd ..
9868 $RM -r conftest
9869 $RM conftest*
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9873 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9878 hard_links="nottested"
9879 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9880 # do not overwrite the value of need_locks provided by the user
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9882 $as_echo_n "checking if we can lock with hard links... " >&6; }
9883 hard_links=yes
9884 $RM conftest*
9885 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9886 touch conftest.a
9887 ln conftest.a conftest.b 2>&5 || hard_links=no
9888 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9890 $as_echo "$hard_links" >&6; }
9891 if test "$hard_links" = no; then
9892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9893 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9894 need_locks=warn
9896 else
9897 need_locks=no
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9906 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9908 runpath_var=
9909 allow_undefined_flag=
9910 always_export_symbols=no
9911 archive_cmds=
9912 archive_expsym_cmds=
9913 compiler_needs_object=no
9914 enable_shared_with_static_runtimes=no
9915 export_dynamic_flag_spec=
9916 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9917 hardcode_automatic=no
9918 hardcode_direct=no
9919 hardcode_direct_absolute=no
9920 hardcode_libdir_flag_spec=
9921 hardcode_libdir_flag_spec_ld=
9922 hardcode_libdir_separator=
9923 hardcode_minus_L=no
9924 hardcode_shlibpath_var=unsupported
9925 inherit_rpath=no
9926 link_all_deplibs=unknown
9927 module_cmds=
9928 module_expsym_cmds=
9929 old_archive_from_new_cmds=
9930 old_archive_from_expsyms_cmds=
9931 thread_safe_flag_spec=
9932 whole_archive_flag_spec=
9933 # include_expsyms should be a list of space-separated symbols to be *always*
9934 # included in the symbol list
9935 include_expsyms=
9936 # exclude_expsyms can be an extended regexp of symbols to exclude
9937 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9938 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9939 # as well as any symbol that contains `d'.
9940 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9941 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9942 # platforms (ab)use it in PIC code, but their linkers get confused if
9943 # the symbol is explicitly referenced. Since portable code cannot
9944 # rely on this symbol name, it's probably fine to never include it in
9945 # preloaded symbol tables.
9946 # Exclude shared library initialization/finalization symbols.
9947 extract_expsyms_cmds=
9949 case $host_os in
9950 cygwin* | mingw* | pw32* | cegcc*)
9951 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9952 # When not using gcc, we currently assume that we are using
9953 # Microsoft Visual C++.
9954 if test "$GCC" != yes; then
9955 with_gnu_ld=no
9958 interix*)
9959 # we just hope/assume this is gcc and not c89 (= MSVC++)
9960 with_gnu_ld=yes
9962 openbsd*)
9963 with_gnu_ld=no
9965 esac
9967 ld_shlibs=yes
9969 # On some targets, GNU ld is compatible enough with the native linker
9970 # that we're better off using the native interface for both.
9971 lt_use_gnu_ld_interface=no
9972 if test "$with_gnu_ld" = yes; then
9973 case $host_os in
9974 aix*)
9975 # The AIX port of GNU ld has always aspired to compatibility
9976 # with the native linker. However, as the warning in the GNU ld
9977 # block says, versions before 2.19.5* couldn't really create working
9978 # shared libraries, regardless of the interface used.
9979 case `$LD -v 2>&1` in
9980 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9981 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9982 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9984 lt_use_gnu_ld_interface=yes
9986 esac
9989 lt_use_gnu_ld_interface=yes
9991 esac
9994 if test "$lt_use_gnu_ld_interface" = yes; then
9995 # If archive_cmds runs LD, not CC, wlarc should be empty
9996 wlarc='${wl}'
9998 # Set some defaults for GNU ld with shared library support. These
9999 # are reset later if shared libraries are not supported. Putting them
10000 # here allows them to be overridden if necessary.
10001 runpath_var=LD_RUN_PATH
10002 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10003 export_dynamic_flag_spec='${wl}--export-dynamic'
10004 # ancient GNU ld didn't support --whole-archive et. al.
10005 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
10006 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
10007 else
10008 whole_archive_flag_spec=
10010 supports_anon_versioning=no
10011 case `$LD -v 2>&1` in
10012 *GNU\ gold*) supports_anon_versioning=yes ;;
10013 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
10014 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
10015 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
10016 *\ 2.11.*) ;; # other 2.11 versions
10017 *) supports_anon_versioning=yes ;;
10018 esac
10020 # See if GNU ld supports shared libraries.
10021 case $host_os in
10022 aix[3-9]*)
10023 # On AIX/PPC, the GNU linker is very broken
10024 if test "$host_cpu" != ia64; then
10025 ld_shlibs=no
10026 cat <<_LT_EOF 1>&2
10028 *** Warning: the GNU linker, at least up to release 2.19, is reported
10029 *** to be unable to reliably create shared libraries on AIX.
10030 *** Therefore, libtool is disabling shared libraries support. If you
10031 *** really care for shared libraries, you may want to install binutils
10032 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
10033 *** You will then need to restart the configuration process.
10035 _LT_EOF
10039 amigaos*)
10040 case $host_cpu in
10041 powerpc)
10042 # see comment about AmigaOS4 .so support
10043 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10044 archive_expsym_cmds=''
10046 m68k)
10047 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)'
10048 hardcode_libdir_flag_spec='-L$libdir'
10049 hardcode_minus_L=yes
10051 esac
10054 beos*)
10055 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10056 allow_undefined_flag=unsupported
10057 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
10058 # support --undefined. This deserves some investigation. FIXME
10059 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10060 else
10061 ld_shlibs=no
10065 cygwin* | mingw* | pw32* | cegcc*)
10066 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
10067 # as there is no search path for DLLs.
10068 hardcode_libdir_flag_spec='-L$libdir'
10069 export_dynamic_flag_spec='${wl}--export-all-symbols'
10070 allow_undefined_flag=unsupported
10071 always_export_symbols=no
10072 enable_shared_with_static_runtimes=yes
10073 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
10075 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
10076 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10077 # If the export-symbols file already is a .def file (1st line
10078 # is EXPORTS), use it as is; otherwise, prepend...
10079 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
10080 cp $export_symbols $output_objdir/$soname.def;
10081 else
10082 echo EXPORTS > $output_objdir/$soname.def;
10083 cat $export_symbols >> $output_objdir/$soname.def;
10085 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
10086 else
10087 ld_shlibs=no
10091 haiku*)
10092 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10093 link_all_deplibs=yes
10096 interix[3-9]*)
10097 hardcode_direct=no
10098 hardcode_shlibpath_var=no
10099 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10100 export_dynamic_flag_spec='${wl}-E'
10101 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
10102 # Instead, shared libraries are loaded at an image base (0x10000000 by
10103 # default) and relocated if they conflict, which is a slow very memory
10104 # consuming and fragmenting process. To avoid this, we pick a random,
10105 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
10106 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
10107 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
10108 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'
10111 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
10112 tmp_diet=no
10113 if test "$host_os" = linux-dietlibc; then
10114 case $cc_basename in
10115 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
10116 esac
10118 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
10119 && test "$tmp_diet" = no
10120 then
10121 tmp_addflag=' $pic_flag'
10122 tmp_sharedflag='-shared'
10123 case $cc_basename,$host_cpu in
10124 pgcc*) # Portland Group C compiler
10125 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'
10126 tmp_addflag=' $pic_flag'
10128 pgf77* | pgf90* | pgf95* | pgfortran*)
10129 # Portland Group f77 and f90 compilers
10130 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'
10131 tmp_addflag=' $pic_flag -Mnomain' ;;
10132 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
10133 tmp_addflag=' -i_dynamic' ;;
10134 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
10135 tmp_addflag=' -i_dynamic -nofor_main' ;;
10136 ifc* | ifort*) # Intel Fortran compiler
10137 tmp_addflag=' -nofor_main' ;;
10138 lf95*) # Lahey Fortran 8.1
10139 whole_archive_flag_spec=
10140 tmp_sharedflag='--shared' ;;
10141 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
10142 tmp_sharedflag='-qmkshrobj'
10143 tmp_addflag= ;;
10144 nvcc*) # Cuda Compiler Driver 2.2
10145 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'
10146 compiler_needs_object=yes
10148 esac
10149 case `$CC -V 2>&1 | sed 5q` in
10150 *Sun\ C*) # Sun C 5.9
10151 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'
10152 compiler_needs_object=yes
10153 tmp_sharedflag='-G' ;;
10154 *Sun\ F*) # Sun Fortran 8.3
10155 tmp_sharedflag='-G' ;;
10156 esac
10157 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10159 if test "x$supports_anon_versioning" = xyes; then
10160 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10161 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10162 echo "local: *; };" >> $output_objdir/$libname.ver~
10163 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
10166 case $cc_basename in
10167 xlf* | bgf* | bgxlf* | mpixlf*)
10168 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
10169 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
10170 hardcode_libdir_flag_spec=
10171 hardcode_libdir_flag_spec_ld='-rpath $libdir'
10172 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
10173 if test "x$supports_anon_versioning" = xyes; then
10174 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
10175 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
10176 echo "local: *; };" >> $output_objdir/$libname.ver~
10177 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
10180 esac
10181 else
10182 ld_shlibs=no
10186 netbsd*)
10187 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10188 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
10189 wlarc=
10190 else
10191 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10192 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10196 solaris*)
10197 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
10198 ld_shlibs=no
10199 cat <<_LT_EOF 1>&2
10201 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
10202 *** create shared libraries on Solaris systems. Therefore, libtool
10203 *** is disabling shared libraries support. We urge you to upgrade GNU
10204 *** binutils to release 2.9.1 or newer. Another option is to modify
10205 *** your PATH or compiler configuration so that the native linker is
10206 *** used, and then restart.
10208 _LT_EOF
10209 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10210 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10211 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10212 else
10213 ld_shlibs=no
10217 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
10218 case `$LD -v 2>&1` in
10219 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
10220 ld_shlibs=no
10221 cat <<_LT_EOF 1>&2
10223 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
10224 *** reliably create shared libraries on SCO systems. Therefore, libtool
10225 *** is disabling shared libraries support. We urge you to upgrade GNU
10226 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
10227 *** your PATH or compiler configuration so that the native linker is
10228 *** used, and then restart.
10230 _LT_EOF
10233 # For security reasons, it is highly recommended that you always
10234 # use absolute paths for naming shared libraries, and exclude the
10235 # DT_RUNPATH tag from executables and libraries. But doing so
10236 # requires that you compile everything twice, which is a pain.
10237 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10238 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10239 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10240 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10241 else
10242 ld_shlibs=no
10245 esac
10248 sunos4*)
10249 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10250 wlarc=
10251 hardcode_direct=yes
10252 hardcode_shlibpath_var=no
10256 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
10257 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10258 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
10259 else
10260 ld_shlibs=no
10263 esac
10265 if test "$ld_shlibs" = no; then
10266 runpath_var=
10267 hardcode_libdir_flag_spec=
10268 export_dynamic_flag_spec=
10269 whole_archive_flag_spec=
10271 else
10272 # PORTME fill in a description of your system's linker (not GNU ld)
10273 case $host_os in
10274 aix3*)
10275 allow_undefined_flag=unsupported
10276 always_export_symbols=yes
10277 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'
10278 # Note: this linker hardcodes the directories in LIBPATH if there
10279 # are no directories specified by -L.
10280 hardcode_minus_L=yes
10281 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
10282 # Neither direct hardcoding nor static linking is supported with a
10283 # broken collect2.
10284 hardcode_direct=unsupported
10288 aix[4-9]*)
10289 if test "$host_cpu" = ia64; then
10290 # On IA64, the linker does run time linking by default, so we don't
10291 # have to do anything special.
10292 aix_use_runtimelinking=no
10293 exp_sym_flag='-Bexport'
10294 no_entry_flag=""
10295 else
10296 # If we're using GNU nm, then we don't want the "-C" option.
10297 # -C means demangle to AIX nm, but means don't demangle with GNU nm
10298 # Also, AIX nm treats weak defined symbols like other global
10299 # defined symbols, whereas GNU nm marks them as "W".
10300 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
10301 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'
10302 else
10303 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'
10305 aix_use_runtimelinking=no
10307 # Test if we are trying to use run time linking or normal
10308 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
10309 # need to do runtime linking.
10310 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
10311 for ld_flag in $LDFLAGS; do
10312 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
10313 aix_use_runtimelinking=yes
10314 break
10316 done
10318 esac
10320 exp_sym_flag='-bexport'
10321 no_entry_flag='-bnoentry'
10324 # When large executables or shared objects are built, AIX ld can
10325 # have problems creating the table of contents. If linking a library
10326 # or program results in "error TOC overflow" add -mminimal-toc to
10327 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
10328 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
10330 archive_cmds=''
10331 hardcode_direct=yes
10332 hardcode_direct_absolute=yes
10333 hardcode_libdir_separator=':'
10334 link_all_deplibs=yes
10335 file_list_spec='${wl}-f,'
10337 if test "$GCC" = yes; then
10338 case $host_os in aix4.[012]|aix4.[012].*)
10339 # We only want to do this on AIX 4.2 and lower, the check
10340 # below for broken collect2 doesn't work under 4.3+
10341 collect2name=`${CC} -print-prog-name=collect2`
10342 if test -f "$collect2name" &&
10343 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
10344 then
10345 # We have reworked collect2
10347 else
10348 # We have old collect2
10349 hardcode_direct=unsupported
10350 # It fails to find uninstalled libraries when the uninstalled
10351 # path is not listed in the libpath. Setting hardcode_minus_L
10352 # to unsupported forces relinking
10353 hardcode_minus_L=yes
10354 hardcode_libdir_flag_spec='-L$libdir'
10355 hardcode_libdir_separator=
10358 esac
10359 shared_flag='-shared'
10360 if test "$aix_use_runtimelinking" = yes; then
10361 shared_flag="$shared_flag "'${wl}-G'
10363 else
10364 # not using gcc
10365 if test "$host_cpu" = ia64; then
10366 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
10367 # chokes on -Wl,-G. The following line is correct:
10368 shared_flag='-G'
10369 else
10370 if test "$aix_use_runtimelinking" = yes; then
10371 shared_flag='${wl}-G'
10372 else
10373 shared_flag='${wl}-bM:SRE'
10378 export_dynamic_flag_spec='${wl}-bexpall'
10379 # It seems that -bexpall does not export symbols beginning with
10380 # underscore (_), so it is better to generate a list of symbols to export.
10381 always_export_symbols=yes
10382 if test "$aix_use_runtimelinking" = yes; then
10383 # Warning - without using the other runtime loading flags (-brtl),
10384 # -berok will link without error, but may produce a broken library.
10385 allow_undefined_flag='-berok'
10386 # Determine the default libpath from the value encoded in an
10387 # empty executable.
10388 if test x$gcc_no_link = xyes; then
10389 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10392 /* end confdefs.h. */
10395 main ()
10399 return 0;
10401 _ACEOF
10402 if ac_fn_c_try_link "$LINENO"; then :
10404 lt_aix_libpath_sed='
10405 /Import File Strings/,/^$/ {
10406 /^0/ {
10407 s/^0 *\(.*\)$/\1/
10411 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10412 # Check for a 64-bit object if we didn't find anything.
10413 if test -z "$aix_libpath"; then
10414 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10417 rm -f core conftest.err conftest.$ac_objext \
10418 conftest$ac_exeext conftest.$ac_ext
10419 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10421 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10422 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"
10423 else
10424 if test "$host_cpu" = ia64; then
10425 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
10426 allow_undefined_flag="-z nodefs"
10427 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"
10428 else
10429 # Determine the default libpath from the value encoded in an
10430 # empty executable.
10431 if test x$gcc_no_link = xyes; then
10432 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10435 /* end confdefs.h. */
10438 main ()
10442 return 0;
10444 _ACEOF
10445 if ac_fn_c_try_link "$LINENO"; then :
10447 lt_aix_libpath_sed='
10448 /Import File Strings/,/^$/ {
10449 /^0/ {
10450 s/^0 *\(.*\)$/\1/
10454 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10455 # Check for a 64-bit object if we didn't find anything.
10456 if test -z "$aix_libpath"; then
10457 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
10460 rm -f core conftest.err conftest.$ac_objext \
10461 conftest$ac_exeext conftest.$ac_ext
10462 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
10464 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
10465 # Warning - without using the other run time loading flags,
10466 # -berok will link without error, but may produce a broken library.
10467 no_undefined_flag=' ${wl}-bernotok'
10468 allow_undefined_flag=' ${wl}-berok'
10469 if test "$with_gnu_ld" = yes; then
10470 # We only use this code for GNU lds that support --whole-archive.
10471 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
10472 else
10473 # Exported symbols can be pulled into shared objects from archives
10474 whole_archive_flag_spec='$convenience'
10476 archive_cmds_need_lc=yes
10477 # This is similar to how AIX traditionally builds its shared libraries.
10478 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'
10483 amigaos*)
10484 case $host_cpu in
10485 powerpc)
10486 # see comment about AmigaOS4 .so support
10487 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
10488 archive_expsym_cmds=''
10490 m68k)
10491 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)'
10492 hardcode_libdir_flag_spec='-L$libdir'
10493 hardcode_minus_L=yes
10495 esac
10498 bsdi[45]*)
10499 export_dynamic_flag_spec=-rdynamic
10502 cygwin* | mingw* | pw32* | cegcc*)
10503 # When not using gcc, we currently assume that we are using
10504 # Microsoft Visual C++.
10505 # hardcode_libdir_flag_spec is actually meaningless, as there is
10506 # no search path for DLLs.
10507 hardcode_libdir_flag_spec=' '
10508 allow_undefined_flag=unsupported
10509 # Tell ltmain to make .lib files, not .a files.
10510 libext=lib
10511 # Tell ltmain to make .dll files, not .so files.
10512 shrext_cmds=".dll"
10513 # FIXME: Setting linknames here is a bad hack.
10514 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
10515 # The linker will automatically build a .lib file if we build a DLL.
10516 old_archive_from_new_cmds='true'
10517 # FIXME: Should let the user specify the lib program.
10518 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
10519 fix_srcfile_path='`cygpath -w "$srcfile"`'
10520 enable_shared_with_static_runtimes=yes
10523 darwin* | rhapsody*)
10526 archive_cmds_need_lc=no
10527 hardcode_direct=no
10528 hardcode_automatic=yes
10529 hardcode_shlibpath_var=unsupported
10530 if test "$lt_cv_ld_force_load" = "yes"; then
10531 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\"`'
10532 else
10533 whole_archive_flag_spec=''
10535 link_all_deplibs=yes
10536 allow_undefined_flag="$_lt_dar_allow_undefined"
10537 case $cc_basename in
10538 ifort*) _lt_dar_can_shared=yes ;;
10539 *) _lt_dar_can_shared=$GCC ;;
10540 esac
10541 if test "$_lt_dar_can_shared" = "yes"; then
10542 output_verbose_link_cmd=func_echo_all
10543 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
10544 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
10545 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}"
10546 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}"
10548 else
10549 ld_shlibs=no
10554 dgux*)
10555 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10556 hardcode_libdir_flag_spec='-L$libdir'
10557 hardcode_shlibpath_var=no
10560 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
10561 # support. Future versions do this automatically, but an explicit c++rt0.o
10562 # does not break anything, and helps significantly (at the cost of a little
10563 # extra space).
10564 freebsd2.2*)
10565 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
10566 hardcode_libdir_flag_spec='-R$libdir'
10567 hardcode_direct=yes
10568 hardcode_shlibpath_var=no
10571 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
10572 freebsd2.*)
10573 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10574 hardcode_direct=yes
10575 hardcode_minus_L=yes
10576 hardcode_shlibpath_var=no
10579 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
10580 freebsd* | dragonfly*)
10581 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
10582 hardcode_libdir_flag_spec='-R$libdir'
10583 hardcode_direct=yes
10584 hardcode_shlibpath_var=no
10587 hpux9*)
10588 if test "$GCC" = yes; then
10589 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'
10590 else
10591 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'
10593 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10594 hardcode_libdir_separator=:
10595 hardcode_direct=yes
10597 # hardcode_minus_L: Not really in the search PATH,
10598 # but as the default location of the library.
10599 hardcode_minus_L=yes
10600 export_dynamic_flag_spec='${wl}-E'
10603 hpux10*)
10604 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10605 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10606 else
10607 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10609 if test "$with_gnu_ld" = no; then
10610 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10611 hardcode_libdir_flag_spec_ld='+b $libdir'
10612 hardcode_libdir_separator=:
10613 hardcode_direct=yes
10614 hardcode_direct_absolute=yes
10615 export_dynamic_flag_spec='${wl}-E'
10616 # hardcode_minus_L: Not really in the search PATH,
10617 # but as the default location of the library.
10618 hardcode_minus_L=yes
10622 hpux11*)
10623 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
10624 case $host_cpu in
10625 hppa*64*)
10626 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10628 ia64*)
10629 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10632 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10634 esac
10635 else
10636 case $host_cpu in
10637 hppa*64*)
10638 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10640 ia64*)
10641 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
10645 # Older versions of the 11.00 compiler do not understand -b yet
10646 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
10648 $as_echo_n "checking if $CC understands -b... " >&6; }
10649 if test "${lt_cv_prog_compiler__b+set}" = set; then :
10650 $as_echo_n "(cached) " >&6
10651 else
10652 lt_cv_prog_compiler__b=no
10653 save_LDFLAGS="$LDFLAGS"
10654 LDFLAGS="$LDFLAGS -b"
10655 echo "$lt_simple_link_test_code" > conftest.$ac_ext
10656 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
10657 # The linker can only warn and ignore the option if not recognized
10658 # So say no if there are warnings
10659 if test -s conftest.err; then
10660 # Append any errors to the config.log.
10661 cat conftest.err 1>&5
10662 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
10663 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
10664 if diff conftest.exp conftest.er2 >/dev/null; then
10665 lt_cv_prog_compiler__b=yes
10667 else
10668 lt_cv_prog_compiler__b=yes
10671 $RM -r conftest*
10672 LDFLAGS="$save_LDFLAGS"
10675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
10676 $as_echo "$lt_cv_prog_compiler__b" >&6; }
10678 if test x"$lt_cv_prog_compiler__b" = xyes; then
10679 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
10680 else
10681 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
10685 esac
10687 if test "$with_gnu_ld" = no; then
10688 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
10689 hardcode_libdir_separator=:
10691 case $host_cpu in
10692 hppa*64*|ia64*)
10693 hardcode_direct=no
10694 hardcode_shlibpath_var=no
10697 hardcode_direct=yes
10698 hardcode_direct_absolute=yes
10699 export_dynamic_flag_spec='${wl}-E'
10701 # hardcode_minus_L: Not really in the search PATH,
10702 # but as the default location of the library.
10703 hardcode_minus_L=yes
10705 esac
10709 irix5* | irix6* | nonstopux*)
10710 if test "$GCC" = yes; then
10711 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'
10712 # Try to use the -exported_symbol ld option, if it does not
10713 # work, assume that -exports_file does not work either and
10714 # implicitly export all symbols.
10715 save_LDFLAGS="$LDFLAGS"
10716 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
10717 if test x$gcc_no_link = xyes; then
10718 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
10720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10721 /* end confdefs.h. */
10722 int foo(void) {}
10723 _ACEOF
10724 if ac_fn_c_try_link "$LINENO"; then :
10725 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'
10728 rm -f core conftest.err conftest.$ac_objext \
10729 conftest$ac_exeext conftest.$ac_ext
10730 LDFLAGS="$save_LDFLAGS"
10731 else
10732 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'
10733 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'
10735 archive_cmds_need_lc='no'
10736 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10737 hardcode_libdir_separator=:
10738 inherit_rpath=yes
10739 link_all_deplibs=yes
10742 netbsd*)
10743 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10744 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
10745 else
10746 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
10748 hardcode_libdir_flag_spec='-R$libdir'
10749 hardcode_direct=yes
10750 hardcode_shlibpath_var=no
10753 newsos6)
10754 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10755 hardcode_direct=yes
10756 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10757 hardcode_libdir_separator=:
10758 hardcode_shlibpath_var=no
10761 *nto* | *qnx*)
10764 openbsd*)
10765 if test -f /usr/libexec/ld.so; then
10766 hardcode_direct=yes
10767 hardcode_shlibpath_var=no
10768 hardcode_direct_absolute=yes
10769 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10770 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10771 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
10772 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10773 export_dynamic_flag_spec='${wl}-E'
10774 else
10775 case $host_os in
10776 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
10777 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
10778 hardcode_libdir_flag_spec='-R$libdir'
10781 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
10782 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
10784 esac
10786 else
10787 ld_shlibs=no
10791 os2*)
10792 hardcode_libdir_flag_spec='-L$libdir'
10793 hardcode_minus_L=yes
10794 allow_undefined_flag=unsupported
10795 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'
10796 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10799 osf3*)
10800 if test "$GCC" = yes; then
10801 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10802 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'
10803 else
10804 allow_undefined_flag=' -expect_unresolved \*'
10805 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'
10807 archive_cmds_need_lc='no'
10808 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10809 hardcode_libdir_separator=:
10812 osf4* | osf5*) # as osf3* with the addition of -msym flag
10813 if test "$GCC" = yes; then
10814 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10815 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'
10816 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10817 else
10818 allow_undefined_flag=' -expect_unresolved \*'
10819 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'
10820 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~
10821 $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'
10823 # Both c and cxx compiler support -rpath directly
10824 hardcode_libdir_flag_spec='-rpath $libdir'
10826 archive_cmds_need_lc='no'
10827 hardcode_libdir_separator=:
10830 solaris*)
10831 no_undefined_flag=' -z defs'
10832 if test "$GCC" = yes; then
10833 wlarc='${wl}'
10834 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10835 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10836 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10837 else
10838 case `$CC -V 2>&1` in
10839 *"Compilers 5.0"*)
10840 wlarc=''
10841 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10842 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10843 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10846 wlarc='${wl}'
10847 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10848 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10849 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10851 esac
10853 hardcode_libdir_flag_spec='-R$libdir'
10854 hardcode_shlibpath_var=no
10855 case $host_os in
10856 solaris2.[0-5] | solaris2.[0-5].*) ;;
10858 # The compiler driver will combine and reorder linker options,
10859 # but understands `-z linker_flag'. GCC discards it without `$wl',
10860 # but is careful enough not to reorder.
10861 # Supported since Solaris 2.6 (maybe 2.5.1?)
10862 if test "$GCC" = yes; then
10863 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10864 else
10865 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10868 esac
10869 link_all_deplibs=yes
10872 sunos4*)
10873 if test "x$host_vendor" = xsequent; then
10874 # Use $CC to link under sequent, because it throws in some extra .o
10875 # files that make .init and .fini sections work.
10876 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10877 else
10878 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10880 hardcode_libdir_flag_spec='-L$libdir'
10881 hardcode_direct=yes
10882 hardcode_minus_L=yes
10883 hardcode_shlibpath_var=no
10886 sysv4)
10887 case $host_vendor in
10888 sni)
10889 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10890 hardcode_direct=yes # is this really true???
10892 siemens)
10893 ## LD is ld it makes a PLAMLIB
10894 ## CC just makes a GrossModule.
10895 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10896 reload_cmds='$CC -r -o $output$reload_objs'
10897 hardcode_direct=no
10899 motorola)
10900 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10901 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10903 esac
10904 runpath_var='LD_RUN_PATH'
10905 hardcode_shlibpath_var=no
10908 sysv4.3*)
10909 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10910 hardcode_shlibpath_var=no
10911 export_dynamic_flag_spec='-Bexport'
10914 sysv4*MP*)
10915 if test -d /usr/nec; then
10916 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10917 hardcode_shlibpath_var=no
10918 runpath_var=LD_RUN_PATH
10919 hardcode_runpath_var=yes
10920 ld_shlibs=yes
10924 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10925 no_undefined_flag='${wl}-z,text'
10926 archive_cmds_need_lc=no
10927 hardcode_shlibpath_var=no
10928 runpath_var='LD_RUN_PATH'
10930 if test "$GCC" = yes; then
10931 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10932 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10933 else
10934 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10935 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10939 sysv5* | sco3.2v5* | sco5v6*)
10940 # Note: We can NOT use -z defs as we might desire, because we do not
10941 # link with -lc, and that would cause any symbols used from libc to
10942 # always be unresolved, which means just about no library would
10943 # ever link correctly. If we're not using GNU ld we use -z text
10944 # though, which does catch some bad symbols but isn't as heavy-handed
10945 # as -z defs.
10946 no_undefined_flag='${wl}-z,text'
10947 allow_undefined_flag='${wl}-z,nodefs'
10948 archive_cmds_need_lc=no
10949 hardcode_shlibpath_var=no
10950 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10951 hardcode_libdir_separator=':'
10952 link_all_deplibs=yes
10953 export_dynamic_flag_spec='${wl}-Bexport'
10954 runpath_var='LD_RUN_PATH'
10956 if test "$GCC" = yes; then
10957 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10958 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10959 else
10960 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10961 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10965 uts4*)
10966 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10967 hardcode_libdir_flag_spec='-L$libdir'
10968 hardcode_shlibpath_var=no
10972 ld_shlibs=no
10974 esac
10976 if test x$host_vendor = xsni; then
10977 case $host in
10978 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10979 export_dynamic_flag_spec='${wl}-Blargedynsym'
10981 esac
10985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10986 $as_echo "$ld_shlibs" >&6; }
10987 test "$ld_shlibs" = no && can_build_shared=no
10989 with_gnu_ld=$with_gnu_ld
11006 # Do we need to explicitly link libc?
11008 case "x$archive_cmds_need_lc" in
11009 x|xyes)
11010 # Assume -lc should be added
11011 archive_cmds_need_lc=yes
11013 if test "$enable_shared" = yes && test "$GCC" = yes; then
11014 case $archive_cmds in
11015 *'~'*)
11016 # FIXME: we may have to deal with multi-command sequences.
11018 '$CC '*)
11019 # Test whether the compiler implicitly links with -lc since on some
11020 # systems, -lgcc has to come before -lc. If gcc already passes -lc
11021 # to ld, don't add -lc before -lgcc.
11022 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
11023 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
11024 if test "${lt_cv_archive_cmds_need_lc+set}" = set; then :
11025 $as_echo_n "(cached) " >&6
11026 else
11027 $RM conftest*
11028 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11030 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
11031 (eval $ac_compile) 2>&5
11032 ac_status=$?
11033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11034 test $ac_status = 0; } 2>conftest.err; then
11035 soname=conftest
11036 lib=conftest
11037 libobjs=conftest.$ac_objext
11038 deplibs=
11039 wl=$lt_prog_compiler_wl
11040 pic_flag=$lt_prog_compiler_pic
11041 compiler_flags=-v
11042 linker_flags=-v
11043 verstring=
11044 output_objdir=.
11045 libname=conftest
11046 lt_save_allow_undefined_flag=$allow_undefined_flag
11047 allow_undefined_flag=
11048 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
11049 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
11050 ac_status=$?
11051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11052 test $ac_status = 0; }
11053 then
11054 lt_cv_archive_cmds_need_lc=no
11055 else
11056 lt_cv_archive_cmds_need_lc=yes
11058 allow_undefined_flag=$lt_save_allow_undefined_flag
11059 else
11060 cat conftest.err 1>&5
11062 $RM conftest*
11065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
11066 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
11067 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
11069 esac
11072 esac
11230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
11231 $as_echo_n "checking dynamic linker characteristics... " >&6; }
11233 if test "$GCC" = yes; then
11234 case $host_os in
11235 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
11236 *) lt_awk_arg="/^libraries:/" ;;
11237 esac
11238 case $host_os in
11239 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
11240 *) lt_sed_strip_eq="s,=/,/,g" ;;
11241 esac
11242 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
11243 case $lt_search_path_spec in
11244 *\;*)
11245 # if the path contains ";" then we assume it to be the separator
11246 # otherwise default to the standard path separator (i.e. ":") - it is
11247 # assumed that no part of a normal pathname contains ";" but that should
11248 # okay in the real world where ";" in dirpaths is itself problematic.
11249 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
11252 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
11254 esac
11255 # Ok, now we have the path, separated by spaces, we can step through it
11256 # and add multilib dir if necessary.
11257 lt_tmp_lt_search_path_spec=
11258 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
11259 for lt_sys_path in $lt_search_path_spec; do
11260 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
11261 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
11262 else
11263 test -d "$lt_sys_path" && \
11264 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
11266 done
11267 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
11268 BEGIN {RS=" "; FS="/|\n";} {
11269 lt_foo="";
11270 lt_count=0;
11271 for (lt_i = NF; lt_i > 0; lt_i--) {
11272 if ($lt_i != "" && $lt_i != ".") {
11273 if ($lt_i == "..") {
11274 lt_count++;
11275 } else {
11276 if (lt_count == 0) {
11277 lt_foo="/" $lt_i lt_foo;
11278 } else {
11279 lt_count--;
11284 if (lt_foo != "") { lt_freq[lt_foo]++; }
11285 if (lt_freq[lt_foo] == 1) { print lt_foo; }
11287 # AWK program above erroneously prepends '/' to C:/dos/paths
11288 # for these hosts.
11289 case $host_os in
11290 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
11291 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
11292 esac
11293 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
11294 else
11295 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
11297 library_names_spec=
11298 libname_spec='lib$name'
11299 soname_spec=
11300 shrext_cmds=".so"
11301 postinstall_cmds=
11302 postuninstall_cmds=
11303 finish_cmds=
11304 finish_eval=
11305 shlibpath_var=
11306 shlibpath_overrides_runpath=unknown
11307 version_type=none
11308 dynamic_linker="$host_os ld.so"
11309 sys_lib_dlsearch_path_spec="/lib /usr/lib"
11310 need_lib_prefix=unknown
11311 hardcode_into_libs=no
11313 # when you set need_version to no, make sure it does not cause -set_version
11314 # flags to be left without arguments
11315 need_version=unknown
11317 case $host_os in
11318 aix3*)
11319 version_type=linux
11320 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
11321 shlibpath_var=LIBPATH
11323 # AIX 3 has no versioning support, so we append a major version to the name.
11324 soname_spec='${libname}${release}${shared_ext}$major'
11327 aix[4-9]*)
11328 version_type=linux
11329 need_lib_prefix=no
11330 need_version=no
11331 hardcode_into_libs=yes
11332 if test "$host_cpu" = ia64; then
11333 # AIX 5 supports IA64
11334 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
11335 shlibpath_var=LD_LIBRARY_PATH
11336 else
11337 # With GCC up to 2.95.x, collect2 would create an import file
11338 # for dependence libraries. The import file would start with
11339 # the line `#! .'. This would cause the generated library to
11340 # depend on `.', always an invalid library. This was fixed in
11341 # development snapshots of GCC prior to 3.0.
11342 case $host_os in
11343 aix4 | aix4.[01] | aix4.[01].*)
11344 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
11345 echo ' yes '
11346 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
11348 else
11349 can_build_shared=no
11352 esac
11353 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
11354 # soname into executable. Probably we can add versioning support to
11355 # collect2, so additional links can be useful in future.
11356 if test "$aix_use_runtimelinking" = yes; then
11357 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
11358 # instead of lib<name>.a to let people know that these are not
11359 # typical AIX shared libraries.
11360 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11361 else
11362 # We preserve .a as extension for shared libraries through AIX4.2
11363 # and later when we are not doing run time linking.
11364 library_names_spec='${libname}${release}.a $libname.a'
11365 soname_spec='${libname}${release}${shared_ext}$major'
11367 shlibpath_var=LIBPATH
11371 amigaos*)
11372 case $host_cpu in
11373 powerpc)
11374 # Since July 2007 AmigaOS4 officially supports .so libraries.
11375 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
11376 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11378 m68k)
11379 library_names_spec='$libname.ixlibrary $libname.a'
11380 # Create ${libname}_ixlibrary.a entries in /sys/libs.
11381 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'
11383 esac
11386 beos*)
11387 library_names_spec='${libname}${shared_ext}'
11388 dynamic_linker="$host_os ld.so"
11389 shlibpath_var=LIBRARY_PATH
11392 bsdi[45]*)
11393 version_type=linux
11394 need_version=no
11395 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11396 soname_spec='${libname}${release}${shared_ext}$major'
11397 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
11398 shlibpath_var=LD_LIBRARY_PATH
11399 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
11400 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
11401 # the default ld.so.conf also contains /usr/contrib/lib and
11402 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
11403 # libtool to hard-code these into programs
11406 cygwin* | mingw* | pw32* | cegcc*)
11407 version_type=windows
11408 shrext_cmds=".dll"
11409 need_version=no
11410 need_lib_prefix=no
11412 case $GCC,$host_os in
11413 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
11414 library_names_spec='$libname.dll.a'
11415 # DLL is installed to $(libdir)/../bin by postinstall_cmds
11416 postinstall_cmds='base_file=`basename \${file}`~
11417 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
11418 dldir=$destdir/`dirname \$dlpath`~
11419 test -d \$dldir || mkdir -p \$dldir~
11420 $install_prog $dir/$dlname \$dldir/$dlname~
11421 chmod a+x \$dldir/$dlname~
11422 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
11423 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
11425 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
11426 dlpath=$dir/\$dldll~
11427 $RM \$dlpath'
11428 shlibpath_overrides_runpath=yes
11430 case $host_os in
11431 cygwin*)
11432 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
11433 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11435 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
11437 mingw* | cegcc*)
11438 # MinGW DLLs use traditional 'lib' prefix
11439 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11441 pw32*)
11442 # pw32 DLLs use 'pw' prefix rather than 'lib'
11443 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
11445 esac
11449 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
11451 esac
11452 dynamic_linker='Win32 ld.exe'
11453 # FIXME: first we should search . and the directory the executable is in
11454 shlibpath_var=PATH
11457 darwin* | rhapsody*)
11458 dynamic_linker="$host_os dyld"
11459 version_type=darwin
11460 need_lib_prefix=no
11461 need_version=no
11462 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
11463 soname_spec='${libname}${release}${major}$shared_ext'
11464 shlibpath_overrides_runpath=yes
11465 shlibpath_var=DYLD_LIBRARY_PATH
11466 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
11468 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
11469 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
11472 dgux*)
11473 version_type=linux
11474 need_lib_prefix=no
11475 need_version=no
11476 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
11477 soname_spec='${libname}${release}${shared_ext}$major'
11478 shlibpath_var=LD_LIBRARY_PATH
11481 freebsd* | dragonfly*)
11482 # DragonFly does not have aout. When/if they implement a new
11483 # versioning mechanism, adjust this.
11484 if test -x /usr/bin/objformat; then
11485 objformat=`/usr/bin/objformat`
11486 else
11487 case $host_os in
11488 freebsd[23].*) objformat=aout ;;
11489 *) objformat=elf ;;
11490 esac
11492 version_type=freebsd-$objformat
11493 case $version_type in
11494 freebsd-elf*)
11495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11496 need_version=no
11497 need_lib_prefix=no
11499 freebsd-*)
11500 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
11501 need_version=yes
11503 esac
11504 shlibpath_var=LD_LIBRARY_PATH
11505 case $host_os in
11506 freebsd2.*)
11507 shlibpath_overrides_runpath=yes
11509 freebsd3.[01]* | freebsdelf3.[01]*)
11510 shlibpath_overrides_runpath=yes
11511 hardcode_into_libs=yes
11513 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
11514 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
11515 shlibpath_overrides_runpath=no
11516 hardcode_into_libs=yes
11518 *) # from 4.6 on, and DragonFly
11519 shlibpath_overrides_runpath=yes
11520 hardcode_into_libs=yes
11522 esac
11525 gnu*)
11526 version_type=linux
11527 need_lib_prefix=no
11528 need_version=no
11529 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11530 soname_spec='${libname}${release}${shared_ext}$major'
11531 shlibpath_var=LD_LIBRARY_PATH
11532 hardcode_into_libs=yes
11535 haiku*)
11536 version_type=linux
11537 need_lib_prefix=no
11538 need_version=no
11539 dynamic_linker="$host_os runtime_loader"
11540 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
11541 soname_spec='${libname}${release}${shared_ext}$major'
11542 shlibpath_var=LIBRARY_PATH
11543 shlibpath_overrides_runpath=yes
11544 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
11545 hardcode_into_libs=yes
11548 hpux9* | hpux10* | hpux11*)
11549 # Give a soname corresponding to the major version so that dld.sl refuses to
11550 # link against other versions.
11551 version_type=sunos
11552 need_lib_prefix=no
11553 need_version=no
11554 case $host_cpu in
11555 ia64*)
11556 shrext_cmds='.so'
11557 hardcode_into_libs=yes
11558 dynamic_linker="$host_os dld.so"
11559 shlibpath_var=LD_LIBRARY_PATH
11560 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
11561 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11562 soname_spec='${libname}${release}${shared_ext}$major'
11563 if test "X$HPUX_IA64_MODE" = X32; then
11564 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
11565 else
11566 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
11568 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11570 hppa*64*)
11571 shrext_cmds='.sl'
11572 hardcode_into_libs=yes
11573 dynamic_linker="$host_os dld.sl"
11574 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
11575 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
11579 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
11582 shrext_cmds='.sl'
11583 dynamic_linker="$host_os dld.sl"
11584 shlibpath_var=SHLIB_PATH
11585 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
11586 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11587 soname_spec='${libname}${release}${shared_ext}$major'
11589 esac
11590 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
11591 postinstall_cmds='chmod 555 $lib'
11592 # or fails outright, so override atomically:
11593 install_override_mode=555
11596 interix[3-9]*)
11597 version_type=linux
11598 need_lib_prefix=no
11599 need_version=no
11600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11601 soname_spec='${libname}${release}${shared_ext}$major'
11602 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
11603 shlibpath_var=LD_LIBRARY_PATH
11604 shlibpath_overrides_runpath=no
11605 hardcode_into_libs=yes
11608 irix5* | irix6* | nonstopux*)
11609 case $host_os in
11610 nonstopux*) version_type=nonstopux ;;
11612 if test "$lt_cv_prog_gnu_ld" = yes; then
11613 version_type=linux
11614 else
11615 version_type=irix
11616 fi ;;
11617 esac
11618 need_lib_prefix=no
11619 need_version=no
11620 soname_spec='${libname}${release}${shared_ext}$major'
11621 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
11622 case $host_os in
11623 irix5* | nonstopux*)
11624 libsuff= shlibsuff=
11627 case $LD in # libtool.m4 will add one of these switches to LD
11628 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
11629 libsuff= shlibsuff= libmagic=32-bit;;
11630 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
11631 libsuff=32 shlibsuff=N32 libmagic=N32;;
11632 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
11633 libsuff=64 shlibsuff=64 libmagic=64-bit;;
11634 *) libsuff= shlibsuff= libmagic=never-match;;
11635 esac
11637 esac
11638 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
11639 shlibpath_overrides_runpath=no
11640 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
11641 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
11642 hardcode_into_libs=yes
11645 # No shared lib support for Linux oldld, aout, or coff.
11646 linux*oldld* | linux*aout* | linux*coff*)
11647 dynamic_linker=no
11650 # This must be Linux ELF.
11651 linux* | k*bsd*-gnu | kopensolaris*-gnu)
11652 version_type=linux
11653 need_lib_prefix=no
11654 need_version=no
11655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11656 soname_spec='${libname}${release}${shared_ext}$major'
11657 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
11658 shlibpath_var=LD_LIBRARY_PATH
11659 shlibpath_overrides_runpath=no
11661 # Some binutils ld are patched to set DT_RUNPATH
11662 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
11663 $as_echo_n "(cached) " >&6
11664 else
11665 lt_cv_shlibpath_overrides_runpath=no
11666 save_LDFLAGS=$LDFLAGS
11667 save_libdir=$libdir
11668 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
11669 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
11670 if test x$gcc_no_link = xyes; then
11671 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
11673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11674 /* end confdefs.h. */
11677 main ()
11681 return 0;
11683 _ACEOF
11684 if ac_fn_c_try_link "$LINENO"; then :
11685 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
11686 lt_cv_shlibpath_overrides_runpath=yes
11689 rm -f core conftest.err conftest.$ac_objext \
11690 conftest$ac_exeext conftest.$ac_ext
11691 LDFLAGS=$save_LDFLAGS
11692 libdir=$save_libdir
11696 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
11698 # This implies no fast_install, which is unacceptable.
11699 # Some rework will be needed to allow for fast_install
11700 # before this can be enabled.
11701 hardcode_into_libs=yes
11703 # Append ld.so.conf contents to the search path
11704 if test -f /etc/ld.so.conf; then
11705 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' ' '`
11706 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
11709 # We used to test for /lib/ld.so.1 and disable shared libraries on
11710 # powerpc, because MkLinux only supported shared libraries with the
11711 # GNU dynamic linker. Since this was broken with cross compilers,
11712 # most powerpc-linux boxes support dynamic linking these days and
11713 # people can always --disable-shared, the test was removed, and we
11714 # assume the GNU/Linux dynamic linker is in use.
11715 dynamic_linker='GNU/Linux ld.so'
11718 netbsd*)
11719 version_type=sunos
11720 need_lib_prefix=no
11721 need_version=no
11722 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
11723 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11724 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11725 dynamic_linker='NetBSD (a.out) ld.so'
11726 else
11727 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
11728 soname_spec='${libname}${release}${shared_ext}$major'
11729 dynamic_linker='NetBSD ld.elf_so'
11731 shlibpath_var=LD_LIBRARY_PATH
11732 shlibpath_overrides_runpath=yes
11733 hardcode_into_libs=yes
11736 newsos6)
11737 version_type=linux
11738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11739 shlibpath_var=LD_LIBRARY_PATH
11740 shlibpath_overrides_runpath=yes
11743 *nto* | *qnx*)
11744 version_type=qnx
11745 need_lib_prefix=no
11746 need_version=no
11747 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11748 soname_spec='${libname}${release}${shared_ext}$major'
11749 shlibpath_var=LD_LIBRARY_PATH
11750 shlibpath_overrides_runpath=no
11751 hardcode_into_libs=yes
11752 dynamic_linker='ldqnx.so'
11755 openbsd*)
11756 version_type=sunos
11757 sys_lib_dlsearch_path_spec="/usr/lib"
11758 need_lib_prefix=no
11759 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11760 case $host_os in
11761 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11762 *) need_version=no ;;
11763 esac
11764 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11765 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11766 shlibpath_var=LD_LIBRARY_PATH
11767 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11768 case $host_os in
11769 openbsd2.[89] | openbsd2.[89].*)
11770 shlibpath_overrides_runpath=no
11773 shlibpath_overrides_runpath=yes
11775 esac
11776 else
11777 shlibpath_overrides_runpath=yes
11781 os2*)
11782 libname_spec='$name'
11783 shrext_cmds=".dll"
11784 need_lib_prefix=no
11785 library_names_spec='$libname${shared_ext} $libname.a'
11786 dynamic_linker='OS/2 ld.exe'
11787 shlibpath_var=LIBPATH
11790 osf3* | osf4* | osf5*)
11791 version_type=osf
11792 need_lib_prefix=no
11793 need_version=no
11794 soname_spec='${libname}${release}${shared_ext}$major'
11795 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11796 shlibpath_var=LD_LIBRARY_PATH
11797 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11798 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11801 rdos*)
11802 dynamic_linker=no
11805 solaris*)
11806 version_type=linux
11807 need_lib_prefix=no
11808 need_version=no
11809 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11810 soname_spec='${libname}${release}${shared_ext}$major'
11811 shlibpath_var=LD_LIBRARY_PATH
11812 shlibpath_overrides_runpath=yes
11813 hardcode_into_libs=yes
11814 # ldd complains unless libraries are executable
11815 postinstall_cmds='chmod +x $lib'
11818 sunos4*)
11819 version_type=sunos
11820 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11821 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11822 shlibpath_var=LD_LIBRARY_PATH
11823 shlibpath_overrides_runpath=yes
11824 if test "$with_gnu_ld" = yes; then
11825 need_lib_prefix=no
11827 need_version=yes
11830 sysv4 | sysv4.3*)
11831 version_type=linux
11832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11833 soname_spec='${libname}${release}${shared_ext}$major'
11834 shlibpath_var=LD_LIBRARY_PATH
11835 case $host_vendor in
11836 sni)
11837 shlibpath_overrides_runpath=no
11838 need_lib_prefix=no
11839 runpath_var=LD_RUN_PATH
11841 siemens)
11842 need_lib_prefix=no
11844 motorola)
11845 need_lib_prefix=no
11846 need_version=no
11847 shlibpath_overrides_runpath=no
11848 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11850 esac
11853 sysv4*MP*)
11854 if test -d /usr/nec ;then
11855 version_type=linux
11856 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11857 soname_spec='$libname${shared_ext}.$major'
11858 shlibpath_var=LD_LIBRARY_PATH
11862 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11863 version_type=freebsd-elf
11864 need_lib_prefix=no
11865 need_version=no
11866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11867 soname_spec='${libname}${release}${shared_ext}$major'
11868 shlibpath_var=LD_LIBRARY_PATH
11869 shlibpath_overrides_runpath=yes
11870 hardcode_into_libs=yes
11871 if test "$with_gnu_ld" = yes; then
11872 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11873 else
11874 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11875 case $host_os in
11876 sco3.2v5*)
11877 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11879 esac
11881 sys_lib_dlsearch_path_spec='/usr/lib'
11884 tpf*)
11885 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11886 version_type=linux
11887 need_lib_prefix=no
11888 need_version=no
11889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11890 shlibpath_var=LD_LIBRARY_PATH
11891 shlibpath_overrides_runpath=no
11892 hardcode_into_libs=yes
11895 uts4*)
11896 version_type=linux
11897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11898 soname_spec='${libname}${release}${shared_ext}$major'
11899 shlibpath_var=LD_LIBRARY_PATH
11903 dynamic_linker=no
11905 esac
11906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11907 $as_echo "$dynamic_linker" >&6; }
11908 test "$dynamic_linker" = no && can_build_shared=no
11910 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11911 if test "$GCC" = yes; then
11912 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11915 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11916 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11918 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11919 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
12014 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
12015 hardcode_action=
12016 if test -n "$hardcode_libdir_flag_spec" ||
12017 test -n "$runpath_var" ||
12018 test "X$hardcode_automatic" = "Xyes" ; then
12020 # We can hardcode non-existent directories.
12021 if test "$hardcode_direct" != no &&
12022 # If the only mechanism to avoid hardcoding is shlibpath_var, we
12023 # have to relink, otherwise we might link with an installed library
12024 # when we should be linking with a yet-to-be-installed one
12025 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
12026 test "$hardcode_minus_L" != no; then
12027 # Linking always hardcodes the temporary library directory.
12028 hardcode_action=relink
12029 else
12030 # We can link without hardcoding, and we can hardcode nonexisting dirs.
12031 hardcode_action=immediate
12033 else
12034 # We cannot hardcode anything, or else we can only hardcode existing
12035 # directories.
12036 hardcode_action=unsupported
12038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
12039 $as_echo "$hardcode_action" >&6; }
12041 if test "$hardcode_action" = relink ||
12042 test "$inherit_rpath" = yes; then
12043 # Fast installation is not supported
12044 enable_fast_install=no
12045 elif test "$shlibpath_overrides_runpath" = yes ||
12046 test "$enable_shared" = no; then
12047 # Fast installation is not necessary
12048 enable_fast_install=needless
12056 if test "x$enable_dlopen" != xyes; then
12057 enable_dlopen=unknown
12058 enable_dlopen_self=unknown
12059 enable_dlopen_self_static=unknown
12060 else
12061 lt_cv_dlopen=no
12062 lt_cv_dlopen_libs=
12064 case $host_os in
12065 beos*)
12066 lt_cv_dlopen="load_add_on"
12067 lt_cv_dlopen_libs=
12068 lt_cv_dlopen_self=yes
12071 mingw* | pw32* | cegcc*)
12072 lt_cv_dlopen="LoadLibrary"
12073 lt_cv_dlopen_libs=
12076 cygwin*)
12077 lt_cv_dlopen="dlopen"
12078 lt_cv_dlopen_libs=
12081 darwin*)
12082 # if libdl is installed we need to link against it
12083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12084 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12085 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12086 $as_echo_n "(cached) " >&6
12087 else
12088 ac_check_lib_save_LIBS=$LIBS
12089 LIBS="-ldl $LIBS"
12090 if test x$gcc_no_link = xyes; then
12091 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12094 /* end confdefs.h. */
12096 /* Override any GCC internal prototype to avoid an error.
12097 Use char because int might match the return type of a GCC
12098 builtin and then its argument prototype would still apply. */
12099 #ifdef __cplusplus
12100 extern "C"
12101 #endif
12102 char dlopen ();
12104 main ()
12106 return dlopen ();
12108 return 0;
12110 _ACEOF
12111 if ac_fn_c_try_link "$LINENO"; then :
12112 ac_cv_lib_dl_dlopen=yes
12113 else
12114 ac_cv_lib_dl_dlopen=no
12116 rm -f core conftest.err conftest.$ac_objext \
12117 conftest$ac_exeext conftest.$ac_ext
12118 LIBS=$ac_check_lib_save_LIBS
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12121 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12122 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12123 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12124 else
12126 lt_cv_dlopen="dyld"
12127 lt_cv_dlopen_libs=
12128 lt_cv_dlopen_self=yes
12135 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12136 if test "x$ac_cv_func_shl_load" = x""yes; then :
12137 lt_cv_dlopen="shl_load"
12138 else
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12140 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12141 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
12142 $as_echo_n "(cached) " >&6
12143 else
12144 ac_check_lib_save_LIBS=$LIBS
12145 LIBS="-ldld $LIBS"
12146 if test x$gcc_no_link = xyes; then
12147 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12150 /* end confdefs.h. */
12152 /* Override any GCC internal prototype to avoid an error.
12153 Use char because int might match the return type of a GCC
12154 builtin and then its argument prototype would still apply. */
12155 #ifdef __cplusplus
12156 extern "C"
12157 #endif
12158 char shl_load ();
12160 main ()
12162 return shl_load ();
12164 return 0;
12166 _ACEOF
12167 if ac_fn_c_try_link "$LINENO"; then :
12168 ac_cv_lib_dld_shl_load=yes
12169 else
12170 ac_cv_lib_dld_shl_load=no
12172 rm -f core conftest.err conftest.$ac_objext \
12173 conftest$ac_exeext conftest.$ac_ext
12174 LIBS=$ac_check_lib_save_LIBS
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12177 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12178 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
12179 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
12180 else
12181 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12182 if test "x$ac_cv_func_dlopen" = x""yes; then :
12183 lt_cv_dlopen="dlopen"
12184 else
12185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12186 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12187 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
12188 $as_echo_n "(cached) " >&6
12189 else
12190 ac_check_lib_save_LIBS=$LIBS
12191 LIBS="-ldl $LIBS"
12192 if test x$gcc_no_link = xyes; then
12193 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12196 /* end confdefs.h. */
12198 /* Override any GCC internal prototype to avoid an error.
12199 Use char because int might match the return type of a GCC
12200 builtin and then its argument prototype would still apply. */
12201 #ifdef __cplusplus
12202 extern "C"
12203 #endif
12204 char dlopen ();
12206 main ()
12208 return dlopen ();
12210 return 0;
12212 _ACEOF
12213 if ac_fn_c_try_link "$LINENO"; then :
12214 ac_cv_lib_dl_dlopen=yes
12215 else
12216 ac_cv_lib_dl_dlopen=no
12218 rm -f core conftest.err conftest.$ac_objext \
12219 conftest$ac_exeext conftest.$ac_ext
12220 LIBS=$ac_check_lib_save_LIBS
12222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12223 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12224 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
12225 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
12226 else
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12228 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12229 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
12230 $as_echo_n "(cached) " >&6
12231 else
12232 ac_check_lib_save_LIBS=$LIBS
12233 LIBS="-lsvld $LIBS"
12234 if test x$gcc_no_link = xyes; then
12235 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12238 /* end confdefs.h. */
12240 /* Override any GCC internal prototype to avoid an error.
12241 Use char because int might match the return type of a GCC
12242 builtin and then its argument prototype would still apply. */
12243 #ifdef __cplusplus
12244 extern "C"
12245 #endif
12246 char dlopen ();
12248 main ()
12250 return dlopen ();
12252 return 0;
12254 _ACEOF
12255 if ac_fn_c_try_link "$LINENO"; then :
12256 ac_cv_lib_svld_dlopen=yes
12257 else
12258 ac_cv_lib_svld_dlopen=no
12260 rm -f core conftest.err conftest.$ac_objext \
12261 conftest$ac_exeext conftest.$ac_ext
12262 LIBS=$ac_check_lib_save_LIBS
12264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12265 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12266 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
12267 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
12268 else
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12270 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12271 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
12272 $as_echo_n "(cached) " >&6
12273 else
12274 ac_check_lib_save_LIBS=$LIBS
12275 LIBS="-ldld $LIBS"
12276 if test x$gcc_no_link = xyes; then
12277 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
12279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12280 /* end confdefs.h. */
12282 /* Override any GCC internal prototype to avoid an error.
12283 Use char because int might match the return type of a GCC
12284 builtin and then its argument prototype would still apply. */
12285 #ifdef __cplusplus
12286 extern "C"
12287 #endif
12288 char dld_link ();
12290 main ()
12292 return dld_link ();
12294 return 0;
12296 _ACEOF
12297 if ac_fn_c_try_link "$LINENO"; then :
12298 ac_cv_lib_dld_dld_link=yes
12299 else
12300 ac_cv_lib_dld_dld_link=no
12302 rm -f core conftest.err conftest.$ac_objext \
12303 conftest$ac_exeext conftest.$ac_ext
12304 LIBS=$ac_check_lib_save_LIBS
12306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12307 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12308 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
12309 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
12328 esac
12330 if test "x$lt_cv_dlopen" != xno; then
12331 enable_dlopen=yes
12332 else
12333 enable_dlopen=no
12336 case $lt_cv_dlopen in
12337 dlopen)
12338 save_CPPFLAGS="$CPPFLAGS"
12339 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
12341 save_LDFLAGS="$LDFLAGS"
12342 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
12344 save_LIBS="$LIBS"
12345 LIBS="$lt_cv_dlopen_libs $LIBS"
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
12348 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
12349 if test "${lt_cv_dlopen_self+set}" = set; then :
12350 $as_echo_n "(cached) " >&6
12351 else
12352 if test "$cross_compiling" = yes; then :
12353 lt_cv_dlopen_self=cross
12354 else
12355 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12356 lt_status=$lt_dlunknown
12357 cat > conftest.$ac_ext <<_LT_EOF
12358 #line 12358 "configure"
12359 #include "confdefs.h"
12361 #if HAVE_DLFCN_H
12362 #include <dlfcn.h>
12363 #endif
12365 #include <stdio.h>
12367 #ifdef RTLD_GLOBAL
12368 # define LT_DLGLOBAL RTLD_GLOBAL
12369 #else
12370 # ifdef DL_GLOBAL
12371 # define LT_DLGLOBAL DL_GLOBAL
12372 # else
12373 # define LT_DLGLOBAL 0
12374 # endif
12375 #endif
12377 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12378 find out it does not work in some platform. */
12379 #ifndef LT_DLLAZY_OR_NOW
12380 # ifdef RTLD_LAZY
12381 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12382 # else
12383 # ifdef DL_LAZY
12384 # define LT_DLLAZY_OR_NOW DL_LAZY
12385 # else
12386 # ifdef RTLD_NOW
12387 # define LT_DLLAZY_OR_NOW RTLD_NOW
12388 # else
12389 # ifdef DL_NOW
12390 # define LT_DLLAZY_OR_NOW DL_NOW
12391 # else
12392 # define LT_DLLAZY_OR_NOW 0
12393 # endif
12394 # endif
12395 # endif
12396 # endif
12397 #endif
12399 /* When -fvisbility=hidden is used, assume the code has been annotated
12400 correspondingly for the symbols needed. */
12401 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12402 void fnord () __attribute__((visibility("default")));
12403 #endif
12405 void fnord () { int i=42; }
12406 int main ()
12408 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12409 int status = $lt_dlunknown;
12411 if (self)
12413 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12414 else
12416 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12417 else puts (dlerror ());
12419 /* dlclose (self); */
12421 else
12422 puts (dlerror ());
12424 return status;
12426 _LT_EOF
12427 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12428 (eval $ac_link) 2>&5
12429 ac_status=$?
12430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12431 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12432 (./conftest; exit; ) >&5 2>/dev/null
12433 lt_status=$?
12434 case x$lt_status in
12435 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
12436 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
12437 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
12438 esac
12439 else :
12440 # compilation failed
12441 lt_cv_dlopen_self=no
12444 rm -fr conftest*
12448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
12449 $as_echo "$lt_cv_dlopen_self" >&6; }
12451 if test "x$lt_cv_dlopen_self" = xyes; then
12452 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
12454 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
12455 if test "${lt_cv_dlopen_self_static+set}" = set; then :
12456 $as_echo_n "(cached) " >&6
12457 else
12458 if test "$cross_compiling" = yes; then :
12459 lt_cv_dlopen_self_static=cross
12460 else
12461 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12462 lt_status=$lt_dlunknown
12463 cat > conftest.$ac_ext <<_LT_EOF
12464 #line 12464 "configure"
12465 #include "confdefs.h"
12467 #if HAVE_DLFCN_H
12468 #include <dlfcn.h>
12469 #endif
12471 #include <stdio.h>
12473 #ifdef RTLD_GLOBAL
12474 # define LT_DLGLOBAL RTLD_GLOBAL
12475 #else
12476 # ifdef DL_GLOBAL
12477 # define LT_DLGLOBAL DL_GLOBAL
12478 # else
12479 # define LT_DLGLOBAL 0
12480 # endif
12481 #endif
12483 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12484 find out it does not work in some platform. */
12485 #ifndef LT_DLLAZY_OR_NOW
12486 # ifdef RTLD_LAZY
12487 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12488 # else
12489 # ifdef DL_LAZY
12490 # define LT_DLLAZY_OR_NOW DL_LAZY
12491 # else
12492 # ifdef RTLD_NOW
12493 # define LT_DLLAZY_OR_NOW RTLD_NOW
12494 # else
12495 # ifdef DL_NOW
12496 # define LT_DLLAZY_OR_NOW DL_NOW
12497 # else
12498 # define LT_DLLAZY_OR_NOW 0
12499 # endif
12500 # endif
12501 # endif
12502 # endif
12503 #endif
12505 /* When -fvisbility=hidden is used, assume the code has been annotated
12506 correspondingly for the symbols needed. */
12507 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12508 void fnord () __attribute__((visibility("default")));
12509 #endif
12511 void fnord () { int i=42; }
12512 int main ()
12514 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12515 int status = $lt_dlunknown;
12517 if (self)
12519 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12520 else
12522 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12523 else puts (dlerror ());
12525 /* dlclose (self); */
12527 else
12528 puts (dlerror ());
12530 return status;
12532 _LT_EOF
12533 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12534 (eval $ac_link) 2>&5
12535 ac_status=$?
12536 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12537 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12538 (./conftest; exit; ) >&5 2>/dev/null
12539 lt_status=$?
12540 case x$lt_status in
12541 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
12542 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
12543 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
12544 esac
12545 else :
12546 # compilation failed
12547 lt_cv_dlopen_self_static=no
12550 rm -fr conftest*
12554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
12555 $as_echo "$lt_cv_dlopen_self_static" >&6; }
12558 CPPFLAGS="$save_CPPFLAGS"
12559 LDFLAGS="$save_LDFLAGS"
12560 LIBS="$save_LIBS"
12562 esac
12564 case $lt_cv_dlopen_self in
12565 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
12566 *) enable_dlopen_self=unknown ;;
12567 esac
12569 case $lt_cv_dlopen_self_static in
12570 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
12571 *) enable_dlopen_self_static=unknown ;;
12572 esac
12591 striplib=
12592 old_striplib=
12593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
12594 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
12595 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
12596 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
12597 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12599 $as_echo "yes" >&6; }
12600 else
12601 # FIXME - insert some real tests, host_os isn't really good enough
12602 case $host_os in
12603 darwin*)
12604 if test -n "$STRIP" ; then
12605 striplib="$STRIP -x"
12606 old_striplib="$STRIP -S"
12607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12608 $as_echo "yes" >&6; }
12609 else
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12611 $as_echo "no" >&6; }
12615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12616 $as_echo "no" >&6; }
12618 esac
12632 # Report which library types will actually be built
12633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
12634 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
12635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
12636 $as_echo "$can_build_shared" >&6; }
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
12639 $as_echo_n "checking whether to build shared libraries... " >&6; }
12640 test "$can_build_shared" = "no" && enable_shared=no
12642 # On AIX, shared libraries and static libraries use the same namespace, and
12643 # are all built from PIC.
12644 case $host_os in
12645 aix3*)
12646 test "$enable_shared" = yes && enable_static=no
12647 if test -n "$RANLIB"; then
12648 archive_cmds="$archive_cmds~\$RANLIB \$lib"
12649 postinstall_cmds='$RANLIB $lib'
12653 aix[4-9]*)
12654 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
12655 test "$enable_shared" = yes && enable_static=no
12658 esac
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
12660 $as_echo "$enable_shared" >&6; }
12662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
12663 $as_echo_n "checking whether to build static libraries... " >&6; }
12664 # Make sure either enable_shared or enable_static is yes.
12665 test "$enable_shared" = yes || enable_static=yes
12666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
12667 $as_echo "$enable_static" >&6; }
12673 ac_ext=c
12674 ac_cpp='$CPP $CPPFLAGS'
12675 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12676 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12677 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12679 CC="$lt_save_CC"
12693 ac_config_commands="$ac_config_commands libtool"
12698 # Only expand once:
12704 case $host in
12705 *-cygwin* | *-mingw*)
12706 # 'host' will be top-level target in the case of a target lib,
12707 # we must compare to with_cross_host to decide if this is a native
12708 # or cross-compiler and select where to install dlls appropriately.
12709 if test -n "$with_cross_host" &&
12710 test x"$with_cross_host" != x"no"; then
12711 lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
12712 else
12713 lt_host_flags='-no-undefined -bindir "$(bindir)"';
12717 lt_host_flags=
12719 esac
12725 #AC_MSG_NOTICE([====== Finished libtool configuration]) ; sleep 10
12727 # We need gfortran to compile parts of the library
12728 #AC_PROG_FC(gfortran)
12729 FC="$GFORTRAN"
12730 ac_ext=${ac_fc_srcext-f}
12731 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
12732 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
12733 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12734 if test -n "$ac_tool_prefix"; then
12735 for ac_prog in gfortran
12737 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
12738 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
12739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12740 $as_echo_n "checking for $ac_word... " >&6; }
12741 if test "${ac_cv_prog_FC+set}" = set; then :
12742 $as_echo_n "(cached) " >&6
12743 else
12744 if test -n "$FC"; then
12745 ac_cv_prog_FC="$FC" # Let the user override the test.
12746 else
12747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12748 for as_dir in $PATH
12750 IFS=$as_save_IFS
12751 test -z "$as_dir" && as_dir=.
12752 for ac_exec_ext in '' $ac_executable_extensions; do
12753 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12754 ac_cv_prog_FC="$ac_tool_prefix$ac_prog"
12755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12756 break 2
12758 done
12759 done
12760 IFS=$as_save_IFS
12764 FC=$ac_cv_prog_FC
12765 if test -n "$FC"; then
12766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FC" >&5
12767 $as_echo "$FC" >&6; }
12768 else
12769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12770 $as_echo "no" >&6; }
12774 test -n "$FC" && break
12775 done
12777 if test -z "$FC"; then
12778 ac_ct_FC=$FC
12779 for ac_prog in gfortran
12781 # Extract the first word of "$ac_prog", so it can be a program name with args.
12782 set dummy $ac_prog; ac_word=$2
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12784 $as_echo_n "checking for $ac_word... " >&6; }
12785 if test "${ac_cv_prog_ac_ct_FC+set}" = set; then :
12786 $as_echo_n "(cached) " >&6
12787 else
12788 if test -n "$ac_ct_FC"; then
12789 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test.
12790 else
12791 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12792 for as_dir in $PATH
12794 IFS=$as_save_IFS
12795 test -z "$as_dir" && as_dir=.
12796 for ac_exec_ext in '' $ac_executable_extensions; do
12797 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12798 ac_cv_prog_ac_ct_FC="$ac_prog"
12799 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12800 break 2
12802 done
12803 done
12804 IFS=$as_save_IFS
12808 ac_ct_FC=$ac_cv_prog_ac_ct_FC
12809 if test -n "$ac_ct_FC"; then
12810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_FC" >&5
12811 $as_echo "$ac_ct_FC" >&6; }
12812 else
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12814 $as_echo "no" >&6; }
12818 test -n "$ac_ct_FC" && break
12819 done
12821 if test "x$ac_ct_FC" = x; then
12822 FC=""
12823 else
12824 case $cross_compiling:$ac_tool_warned in
12825 yes:)
12826 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12827 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12828 ac_tool_warned=yes ;;
12829 esac
12830 FC=$ac_ct_FC
12835 # Provide some information about the compiler.
12836 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran compiler version" >&5
12837 set X $ac_compile
12838 ac_compiler=$2
12839 for ac_option in --version -v -V -qversion; do
12840 { { ac_try="$ac_compiler $ac_option >&5"
12841 case "(($ac_try" in
12842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12843 *) ac_try_echo=$ac_try;;
12844 esac
12845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
12846 $as_echo "$ac_try_echo"; } >&5
12847 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
12848 ac_status=$?
12849 if test -s conftest.err; then
12850 sed '10a\
12851 ... rest of stderr output deleted ...
12852 10q' conftest.err >conftest.er1
12853 cat conftest.er1 >&5
12854 rm -f conftest.er1 conftest.err
12856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12857 test $ac_status = 0; }
12858 done
12859 rm -f a.out
12861 # If we don't use `.F' as extension, the preprocessor is not run on the
12862 # input file. (Note that this only needs to work for GNU compilers.)
12863 ac_save_ext=$ac_ext
12864 ac_ext=F
12865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran compiler" >&5
12866 $as_echo_n "checking whether we are using the GNU Fortran compiler... " >&6; }
12867 if test "${ac_cv_fc_compiler_gnu+set}" = set; then :
12868 $as_echo_n "(cached) " >&6
12869 else
12870 cat > conftest.$ac_ext <<_ACEOF
12871 program main
12872 #ifndef __GNUC__
12873 choke me
12874 #endif
12877 _ACEOF
12878 if ac_fn_fc_try_compile "$LINENO"; then :
12879 ac_compiler_gnu=yes
12880 else
12881 ac_compiler_gnu=no
12883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12884 ac_cv_fc_compiler_gnu=$ac_compiler_gnu
12887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_fc_compiler_gnu" >&5
12888 $as_echo "$ac_cv_fc_compiler_gnu" >&6; }
12889 ac_ext=$ac_save_ext
12890 ac_test_FCFLAGS=${FCFLAGS+set}
12891 ac_save_FCFLAGS=$FCFLAGS
12892 FCFLAGS=
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $FC accepts -g" >&5
12894 $as_echo_n "checking whether $FC accepts -g... " >&6; }
12895 if test "${ac_cv_prog_fc_g+set}" = set; then :
12896 $as_echo_n "(cached) " >&6
12897 else
12898 FCFLAGS=-g
12899 cat > conftest.$ac_ext <<_ACEOF
12900 program main
12903 _ACEOF
12904 if ac_fn_fc_try_compile "$LINENO"; then :
12905 ac_cv_prog_fc_g=yes
12906 else
12907 ac_cv_prog_fc_g=no
12909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_fc_g" >&5
12913 $as_echo "$ac_cv_prog_fc_g" >&6; }
12914 if test "$ac_test_FCFLAGS" = set; then
12915 FCFLAGS=$ac_save_FCFLAGS
12916 elif test $ac_cv_prog_fc_g = yes; then
12917 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12918 FCFLAGS="-g -O2"
12919 else
12920 FCFLAGS="-g"
12922 else
12923 if test "x$ac_cv_fc_compiler_gnu" = xyes; then
12924 FCFLAGS="-O2"
12925 else
12926 FCFLAGS=
12930 ac_ext=c
12931 ac_cpp='$CPP $CPPFLAGS'
12932 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12933 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12934 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12936 ac_ext=${ac_fc_srcext-f}
12937 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
12938 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
12939 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
12942 if test -z "$FC" || test "X$FC" = "Xno"; then
12943 _lt_disable_FC=yes
12946 archive_cmds_need_lc_FC=no
12947 allow_undefined_flag_FC=
12948 always_export_symbols_FC=no
12949 archive_expsym_cmds_FC=
12950 export_dynamic_flag_spec_FC=
12951 hardcode_direct_FC=no
12952 hardcode_direct_absolute_FC=no
12953 hardcode_libdir_flag_spec_FC=
12954 hardcode_libdir_flag_spec_ld_FC=
12955 hardcode_libdir_separator_FC=
12956 hardcode_minus_L_FC=no
12957 hardcode_automatic_FC=no
12958 inherit_rpath_FC=no
12959 module_cmds_FC=
12960 module_expsym_cmds_FC=
12961 link_all_deplibs_FC=unknown
12962 old_archive_cmds_FC=$old_archive_cmds
12963 reload_flag_FC=$reload_flag
12964 reload_cmds_FC=$reload_cmds
12965 no_undefined_flag_FC=
12966 whole_archive_flag_spec_FC=
12967 enable_shared_with_static_runtimes_FC=no
12969 # Source file extension for fc test sources.
12970 ac_ext=${ac_fc_srcext-f}
12972 # Object file extension for compiled fc test sources.
12973 objext=o
12974 objext_FC=$objext
12976 # No sense in running all these tests if we already determined that
12977 # the FC compiler isn't working. Some variables (like enable_shared)
12978 # are currently assumed to apply to all compilers on this platform,
12979 # and will be corrupted by setting them based on a non-working compiler.
12980 if test "$_lt_disable_FC" != yes; then
12981 # Code to be used in simple compile tests
12982 lt_simple_compile_test_code="\
12983 subroutine t
12984 return
12988 # Code to be used in simple link tests
12989 lt_simple_link_test_code="\
12990 program t
12994 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
13001 # If no C compiler was specified, use CC.
13002 LTCC=${LTCC-"$CC"}
13004 # If no C compiler flags were specified, use CFLAGS.
13005 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13007 # Allow CC to be a program name with arguments.
13008 compiler=$CC
13011 # save warnings/boilerplate of simple test code
13012 ac_outfile=conftest.$ac_objext
13013 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
13014 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13015 _lt_compiler_boilerplate=`cat conftest.err`
13016 $RM conftest*
13018 ac_outfile=conftest.$ac_objext
13019 echo "$lt_simple_link_test_code" >conftest.$ac_ext
13020 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
13021 _lt_linker_boilerplate=`cat conftest.err`
13022 $RM -r conftest*
13025 # Allow CC to be a program name with arguments.
13026 lt_save_CC="$CC"
13027 lt_save_GCC=$GCC
13028 CC=${FC-"f95"}
13029 compiler=$CC
13030 GCC=$ac_cv_fc_compiler_gnu
13032 compiler_FC=$CC
13033 for cc_temp in $compiler""; do
13034 case $cc_temp in
13035 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
13036 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
13037 \-*) ;;
13038 *) break;;
13039 esac
13040 done
13041 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
13044 if test -n "$compiler"; then
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
13046 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
13047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
13048 $as_echo "$can_build_shared" >&6; }
13050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
13051 $as_echo_n "checking whether to build shared libraries... " >&6; }
13052 test "$can_build_shared" = "no" && enable_shared=no
13054 # On AIX, shared libraries and static libraries use the same namespace, and
13055 # are all built from PIC.
13056 case $host_os in
13057 aix3*)
13058 test "$enable_shared" = yes && enable_static=no
13059 if test -n "$RANLIB"; then
13060 archive_cmds="$archive_cmds~\$RANLIB \$lib"
13061 postinstall_cmds='$RANLIB $lib'
13064 aix[4-9]*)
13065 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
13066 test "$enable_shared" = yes && enable_static=no
13069 esac
13070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
13071 $as_echo "$enable_shared" >&6; }
13073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
13074 $as_echo_n "checking whether to build static libraries... " >&6; }
13075 # Make sure either enable_shared or enable_static is yes.
13076 test "$enable_shared" = yes || enable_static=yes
13077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
13078 $as_echo "$enable_static" >&6; }
13080 GCC_FC="$ac_cv_fc_compiler_gnu"
13081 LD_FC="$LD"
13083 ## CAVEAT EMPTOR:
13084 ## There is no encapsulation within the following macros, do not change
13085 ## the running order or otherwise move them around unless you know exactly
13086 ## what you are doing...
13087 # Dependencies to place before and after the object being linked:
13088 predep_objects_FC=
13089 postdep_objects_FC=
13090 predeps_FC=
13091 postdeps_FC=
13092 compiler_lib_search_path_FC=
13094 cat > conftest.$ac_ext <<_LT_EOF
13095 subroutine foo
13096 implicit none
13097 integer a
13099 return
13101 _LT_EOF
13103 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13104 (eval $ac_compile) 2>&5
13105 ac_status=$?
13106 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13107 test $ac_status = 0; }; then
13108 # Parse the compiler output and extract the necessary
13109 # objects, libraries and library flags.
13111 # Sentinel used to keep track of whether or not we are before
13112 # the conftest object file.
13113 pre_test_object_deps_done=no
13115 for p in `eval "$output_verbose_link_cmd"`; do
13116 case $p in
13118 -L* | -R* | -l*)
13119 # Some compilers place space between "-{L,R}" and the path.
13120 # Remove the space.
13121 if test $p = "-L" ||
13122 test $p = "-R"; then
13123 prev=$p
13124 continue
13125 else
13126 prev=
13129 if test "$pre_test_object_deps_done" = no; then
13130 case $p in
13131 -L* | -R*)
13132 # Internal compiler library paths should come after those
13133 # provided the user. The postdeps already come after the
13134 # user supplied libs so there is no need to process them.
13135 if test -z "$compiler_lib_search_path_FC"; then
13136 compiler_lib_search_path_FC="${prev}${p}"
13137 else
13138 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}"
13141 # The "-l" case would never come before the object being
13142 # linked, so don't bother handling this case.
13143 esac
13144 else
13145 if test -z "$postdeps_FC"; then
13146 postdeps_FC="${prev}${p}"
13147 else
13148 postdeps_FC="${postdeps_FC} ${prev}${p}"
13153 *.$objext)
13154 # This assumes that the test object file only shows up
13155 # once in the compiler output.
13156 if test "$p" = "conftest.$objext"; then
13157 pre_test_object_deps_done=yes
13158 continue
13161 if test "$pre_test_object_deps_done" = no; then
13162 if test -z "$predep_objects_FC"; then
13163 predep_objects_FC="$p"
13164 else
13165 predep_objects_FC="$predep_objects_FC $p"
13167 else
13168 if test -z "$postdep_objects_FC"; then
13169 postdep_objects_FC="$p"
13170 else
13171 postdep_objects_FC="$postdep_objects_FC $p"
13176 *) ;; # Ignore the rest.
13178 esac
13179 done
13181 # Clean up.
13182 rm -f a.out a.exe
13183 else
13184 echo "libtool.m4: error: problem compiling FC test program"
13187 $RM -f confest.$objext
13189 # PORTME: override above test on systems where it is broken
13192 case " $postdeps_FC " in
13193 *" -lc "*) archive_cmds_need_lc_FC=no ;;
13194 esac
13195 compiler_lib_search_dirs_FC=
13196 if test -n "${compiler_lib_search_path_FC}"; then
13197 compiler_lib_search_dirs_FC=`echo " ${compiler_lib_search_path_FC}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
13230 lt_prog_compiler_wl_FC=
13231 lt_prog_compiler_pic_FC=
13232 lt_prog_compiler_static_FC=
13234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
13235 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
13237 if test "$GCC" = yes; then
13238 lt_prog_compiler_wl_FC='-Wl,'
13239 lt_prog_compiler_static_FC='-static'
13241 case $host_os in
13242 aix*)
13243 # All AIX code is PIC.
13244 if test "$host_cpu" = ia64; then
13245 # AIX 5 now supports IA64 processor
13246 lt_prog_compiler_static_FC='-Bstatic'
13248 lt_prog_compiler_pic_FC='-fPIC'
13251 amigaos*)
13252 case $host_cpu in
13253 powerpc)
13254 # see comment about AmigaOS4 .so support
13255 lt_prog_compiler_pic_FC='-fPIC'
13257 m68k)
13258 # FIXME: we need at least 68020 code to build shared libraries, but
13259 # adding the `-m68020' flag to GCC prevents building anything better,
13260 # like `-m68040'.
13261 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4'
13263 esac
13266 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
13267 # PIC is the default for these OSes.
13270 mingw* | cygwin* | pw32* | os2* | cegcc*)
13271 # This hack is so that the source file can tell whether it is being
13272 # built for inclusion in a dll (and should export symbols for example).
13273 # Although the cygwin gcc ignores -fPIC, still need this for old-style
13274 # (--disable-auto-import) libraries
13275 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13278 darwin* | rhapsody*)
13279 # PIC is the default on this platform
13280 # Common symbols not allowed in MH_DYLIB files
13281 lt_prog_compiler_pic_FC='-fno-common'
13284 haiku*)
13285 # PIC is the default for Haiku.
13286 # The "-static" flag exists, but is broken.
13287 lt_prog_compiler_static_FC=
13290 hpux*)
13291 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
13292 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
13293 # sets the default TLS model and affects inlining.
13294 case $host_cpu in
13295 hppa*64*)
13296 # +Z the default
13299 lt_prog_compiler_pic_FC='-fPIC'
13301 esac
13304 interix[3-9]*)
13305 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
13306 # Instead, we relocate shared libraries at runtime.
13309 msdosdjgpp*)
13310 # Just because we use GCC doesn't mean we suddenly get shared libraries
13311 # on systems that don't support them.
13312 lt_prog_compiler_can_build_shared_FC=no
13313 enable_shared=no
13316 *nto* | *qnx*)
13317 # QNX uses GNU C++, but need to define -shared option too, otherwise
13318 # it will coredump.
13319 lt_prog_compiler_pic_FC='-fPIC -shared'
13322 sysv4*MP*)
13323 if test -d /usr/nec; then
13324 lt_prog_compiler_pic_FC=-Kconform_pic
13329 lt_prog_compiler_pic_FC='-fPIC'
13331 esac
13333 case $cc_basename in
13334 nvcc*) # Cuda Compiler Driver 2.2
13335 lt_prog_compiler_wl_FC='-Xlinker '
13336 lt_prog_compiler_pic_FC='-Xcompiler -fPIC'
13338 esac
13339 else
13340 # PORTME Check for flag to pass linker flags through the system compiler.
13341 case $host_os in
13342 aix*)
13343 lt_prog_compiler_wl_FC='-Wl,'
13344 if test "$host_cpu" = ia64; then
13345 # AIX 5 now supports IA64 processor
13346 lt_prog_compiler_static_FC='-Bstatic'
13347 else
13348 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp'
13352 mingw* | cygwin* | pw32* | os2* | cegcc*)
13353 # This hack is so that the source file can tell whether it is being
13354 # built for inclusion in a dll (and should export symbols for example).
13355 lt_prog_compiler_pic_FC='-DDLL_EXPORT'
13358 hpux9* | hpux10* | hpux11*)
13359 lt_prog_compiler_wl_FC='-Wl,'
13360 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
13361 # not for PA HP-UX.
13362 case $host_cpu in
13363 hppa*64*|ia64*)
13364 # +Z the default
13367 lt_prog_compiler_pic_FC='+Z'
13369 esac
13370 # Is there a better lt_prog_compiler_static that works with the bundled CC?
13371 lt_prog_compiler_static_FC='${wl}-a ${wl}archive'
13374 irix5* | irix6* | nonstopux*)
13375 lt_prog_compiler_wl_FC='-Wl,'
13376 # PIC (with -KPIC) is the default.
13377 lt_prog_compiler_static_FC='-non_shared'
13380 linux* | k*bsd*-gnu | kopensolaris*-gnu)
13381 case $cc_basename in
13382 # old Intel for x86_64 which still supported -KPIC.
13383 ecc*)
13384 lt_prog_compiler_wl_FC='-Wl,'
13385 lt_prog_compiler_pic_FC='-KPIC'
13386 lt_prog_compiler_static_FC='-static'
13388 # icc used to be incompatible with GCC.
13389 # ICC 10 doesn't accept -KPIC any more.
13390 icc* | ifort*)
13391 lt_prog_compiler_wl_FC='-Wl,'
13392 lt_prog_compiler_pic_FC='-fPIC'
13393 lt_prog_compiler_static_FC='-static'
13395 # Lahey Fortran 8.1.
13396 lf95*)
13397 lt_prog_compiler_wl_FC='-Wl,'
13398 lt_prog_compiler_pic_FC='--shared'
13399 lt_prog_compiler_static_FC='--static'
13401 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
13402 # Portland Group compilers (*not* the Pentium gcc compiler,
13403 # which looks to be a dead project)
13404 lt_prog_compiler_wl_FC='-Wl,'
13405 lt_prog_compiler_pic_FC='-fpic'
13406 lt_prog_compiler_static_FC='-Bstatic'
13408 ccc*)
13409 lt_prog_compiler_wl_FC='-Wl,'
13410 # All Alpha code is PIC.
13411 lt_prog_compiler_static_FC='-non_shared'
13413 xl* | bgxl* | bgf* | mpixl*)
13414 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
13415 lt_prog_compiler_wl_FC='-Wl,'
13416 lt_prog_compiler_pic_FC='-qpic'
13417 lt_prog_compiler_static_FC='-qstaticlink'
13420 case `$CC -V 2>&1 | sed 5q` in
13421 *Sun\ F* | *Sun*Fortran*)
13422 # Sun Fortran 8.3 passes all unrecognized flags to the linker
13423 lt_prog_compiler_pic_FC='-KPIC'
13424 lt_prog_compiler_static_FC='-Bstatic'
13425 lt_prog_compiler_wl_FC=''
13427 *Sun\ C*)
13428 # Sun C 5.9
13429 lt_prog_compiler_pic_FC='-KPIC'
13430 lt_prog_compiler_static_FC='-Bstatic'
13431 lt_prog_compiler_wl_FC='-Wl,'
13433 esac
13435 esac
13438 newsos6)
13439 lt_prog_compiler_pic_FC='-KPIC'
13440 lt_prog_compiler_static_FC='-Bstatic'
13443 *nto* | *qnx*)
13444 # QNX uses GNU C++, but need to define -shared option too, otherwise
13445 # it will coredump.
13446 lt_prog_compiler_pic_FC='-fPIC -shared'
13449 osf3* | osf4* | osf5*)
13450 lt_prog_compiler_wl_FC='-Wl,'
13451 # All OSF/1 code is PIC.
13452 lt_prog_compiler_static_FC='-non_shared'
13455 rdos*)
13456 lt_prog_compiler_static_FC='-non_shared'
13459 solaris*)
13460 lt_prog_compiler_pic_FC='-KPIC'
13461 lt_prog_compiler_static_FC='-Bstatic'
13462 case $cc_basename in
13463 f77* | f90* | f95*)
13464 lt_prog_compiler_wl_FC='-Qoption ld ';;
13466 lt_prog_compiler_wl_FC='-Wl,';;
13467 esac
13470 sunos4*)
13471 lt_prog_compiler_wl_FC='-Qoption ld '
13472 lt_prog_compiler_pic_FC='-PIC'
13473 lt_prog_compiler_static_FC='-Bstatic'
13476 sysv4 | sysv4.2uw2* | sysv4.3*)
13477 lt_prog_compiler_wl_FC='-Wl,'
13478 lt_prog_compiler_pic_FC='-KPIC'
13479 lt_prog_compiler_static_FC='-Bstatic'
13482 sysv4*MP*)
13483 if test -d /usr/nec ;then
13484 lt_prog_compiler_pic_FC='-Kconform_pic'
13485 lt_prog_compiler_static_FC='-Bstatic'
13489 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
13490 lt_prog_compiler_wl_FC='-Wl,'
13491 lt_prog_compiler_pic_FC='-KPIC'
13492 lt_prog_compiler_static_FC='-Bstatic'
13495 unicos*)
13496 lt_prog_compiler_wl_FC='-Wl,'
13497 lt_prog_compiler_can_build_shared_FC=no
13500 uts4*)
13501 lt_prog_compiler_pic_FC='-pic'
13502 lt_prog_compiler_static_FC='-Bstatic'
13506 lt_prog_compiler_can_build_shared_FC=no
13508 esac
13511 case $host_os in
13512 # For platforms which do not support PIC, -DPIC is meaningless:
13513 *djgpp*)
13514 lt_prog_compiler_pic_FC=
13517 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC"
13519 esac
13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_FC" >&5
13521 $as_echo "$lt_prog_compiler_pic_FC" >&6; }
13526 # Check to make sure the PIC flag actually works.
13528 if test -n "$lt_prog_compiler_pic_FC"; then
13529 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5
13530 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... " >&6; }
13531 if test "${lt_cv_prog_compiler_pic_works_FC+set}" = set; then :
13532 $as_echo_n "(cached) " >&6
13533 else
13534 lt_cv_prog_compiler_pic_works_FC=no
13535 ac_outfile=conftest.$ac_objext
13536 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13537 lt_compiler_flag="$lt_prog_compiler_pic_FC"
13538 # Insert the option either (1) after the last *FLAGS variable, or
13539 # (2) before a word containing "conftest.", or (3) at the end.
13540 # Note that $ac_compile itself does not contain backslashes and begins
13541 # with a dollar sign (not a hyphen), so the echo should work correctly.
13542 # The option is referenced via a variable to avoid confusing sed.
13543 lt_compile=`echo "$ac_compile" | $SED \
13544 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13545 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13546 -e 's:$: $lt_compiler_flag:'`
13547 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13548 (eval "$lt_compile" 2>conftest.err)
13549 ac_status=$?
13550 cat conftest.err >&5
13551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13552 if (exit $ac_status) && test -s "$ac_outfile"; then
13553 # The compiler can only warn and ignore the option if not recognized
13554 # So say no if there are warnings other than the usual output.
13555 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
13556 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13557 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
13558 lt_cv_prog_compiler_pic_works_FC=yes
13561 $RM conftest*
13564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_FC" >&5
13565 $as_echo "$lt_cv_prog_compiler_pic_works_FC" >&6; }
13567 if test x"$lt_cv_prog_compiler_pic_works_FC" = xyes; then
13568 case $lt_prog_compiler_pic_FC in
13569 "" | " "*) ;;
13570 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;;
13571 esac
13572 else
13573 lt_prog_compiler_pic_FC=
13574 lt_prog_compiler_can_build_shared_FC=no
13582 # Check to make sure the static flag actually works.
13584 wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\"
13585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
13586 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
13587 if test "${lt_cv_prog_compiler_static_works_FC+set}" = set; then :
13588 $as_echo_n "(cached) " >&6
13589 else
13590 lt_cv_prog_compiler_static_works_FC=no
13591 save_LDFLAGS="$LDFLAGS"
13592 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
13593 echo "$lt_simple_link_test_code" > conftest.$ac_ext
13594 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
13595 # The linker can only warn and ignore the option if not recognized
13596 # So say no if there are warnings
13597 if test -s conftest.err; then
13598 # Append any errors to the config.log.
13599 cat conftest.err 1>&5
13600 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
13601 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
13602 if diff conftest.exp conftest.er2 >/dev/null; then
13603 lt_cv_prog_compiler_static_works_FC=yes
13605 else
13606 lt_cv_prog_compiler_static_works_FC=yes
13609 $RM -r conftest*
13610 LDFLAGS="$save_LDFLAGS"
13613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_FC" >&5
13614 $as_echo "$lt_cv_prog_compiler_static_works_FC" >&6; }
13616 if test x"$lt_cv_prog_compiler_static_works_FC" = xyes; then
13618 else
13619 lt_prog_compiler_static_FC=
13625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13626 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13627 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
13628 $as_echo_n "(cached) " >&6
13629 else
13630 lt_cv_prog_compiler_c_o_FC=no
13631 $RM -r conftest 2>/dev/null
13632 mkdir conftest
13633 cd conftest
13634 mkdir out
13635 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13637 lt_compiler_flag="-o out/conftest2.$ac_objext"
13638 # Insert the option either (1) after the last *FLAGS variable, or
13639 # (2) before a word containing "conftest.", or (3) at the end.
13640 # Note that $ac_compile itself does not contain backslashes and begins
13641 # with a dollar sign (not a hyphen), so the echo should work correctly.
13642 lt_compile=`echo "$ac_compile" | $SED \
13643 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13644 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13645 -e 's:$: $lt_compiler_flag:'`
13646 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13647 (eval "$lt_compile" 2>out/conftest.err)
13648 ac_status=$?
13649 cat out/conftest.err >&5
13650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13651 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13652 then
13653 # The compiler can only warn and ignore the option if not recognized
13654 # So say no if there are warnings
13655 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13656 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13657 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13658 lt_cv_prog_compiler_c_o_FC=yes
13661 chmod u+w . 2>&5
13662 $RM conftest*
13663 # SGI C++ compiler will create directory out/ii_files/ for
13664 # template instantiation
13665 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13666 $RM out/* && rmdir out
13667 cd ..
13668 $RM -r conftest
13669 $RM conftest*
13672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
13673 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
13677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
13678 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
13679 if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then :
13680 $as_echo_n "(cached) " >&6
13681 else
13682 lt_cv_prog_compiler_c_o_FC=no
13683 $RM -r conftest 2>/dev/null
13684 mkdir conftest
13685 cd conftest
13686 mkdir out
13687 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13689 lt_compiler_flag="-o out/conftest2.$ac_objext"
13690 # Insert the option either (1) after the last *FLAGS variable, or
13691 # (2) before a word containing "conftest.", or (3) at the end.
13692 # Note that $ac_compile itself does not contain backslashes and begins
13693 # with a dollar sign (not a hyphen), so the echo should work correctly.
13694 lt_compile=`echo "$ac_compile" | $SED \
13695 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
13696 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
13697 -e 's:$: $lt_compiler_flag:'`
13698 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
13699 (eval "$lt_compile" 2>out/conftest.err)
13700 ac_status=$?
13701 cat out/conftest.err >&5
13702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13703 if (exit $ac_status) && test -s out/conftest2.$ac_objext
13704 then
13705 # The compiler can only warn and ignore the option if not recognized
13706 # So say no if there are warnings
13707 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
13708 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
13709 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
13710 lt_cv_prog_compiler_c_o_FC=yes
13713 chmod u+w . 2>&5
13714 $RM conftest*
13715 # SGI C++ compiler will create directory out/ii_files/ for
13716 # template instantiation
13717 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
13718 $RM out/* && rmdir out
13719 cd ..
13720 $RM -r conftest
13721 $RM conftest*
13724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_FC" >&5
13725 $as_echo "$lt_cv_prog_compiler_c_o_FC" >&6; }
13730 hard_links="nottested"
13731 if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then
13732 # do not overwrite the value of need_locks provided by the user
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
13734 $as_echo_n "checking if we can lock with hard links... " >&6; }
13735 hard_links=yes
13736 $RM conftest*
13737 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13738 touch conftest.a
13739 ln conftest.a conftest.b 2>&5 || hard_links=no
13740 ln conftest.a conftest.b 2>/dev/null && hard_links=no
13741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
13742 $as_echo "$hard_links" >&6; }
13743 if test "$hard_links" = no; then
13744 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
13745 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
13746 need_locks=warn
13748 else
13749 need_locks=no
13754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
13755 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
13757 runpath_var=
13758 allow_undefined_flag_FC=
13759 always_export_symbols_FC=no
13760 archive_cmds_FC=
13761 archive_expsym_cmds_FC=
13762 compiler_needs_object_FC=no
13763 enable_shared_with_static_runtimes_FC=no
13764 export_dynamic_flag_spec_FC=
13765 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
13766 hardcode_automatic_FC=no
13767 hardcode_direct_FC=no
13768 hardcode_direct_absolute_FC=no
13769 hardcode_libdir_flag_spec_FC=
13770 hardcode_libdir_flag_spec_ld_FC=
13771 hardcode_libdir_separator_FC=
13772 hardcode_minus_L_FC=no
13773 hardcode_shlibpath_var_FC=unsupported
13774 inherit_rpath_FC=no
13775 link_all_deplibs_FC=unknown
13776 module_cmds_FC=
13777 module_expsym_cmds_FC=
13778 old_archive_from_new_cmds_FC=
13779 old_archive_from_expsyms_cmds_FC=
13780 thread_safe_flag_spec_FC=
13781 whole_archive_flag_spec_FC=
13782 # include_expsyms should be a list of space-separated symbols to be *always*
13783 # included in the symbol list
13784 include_expsyms_FC=
13785 # exclude_expsyms can be an extended regexp of symbols to exclude
13786 # it will be wrapped by ` (' and `)$', so one must not match beginning or
13787 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
13788 # as well as any symbol that contains `d'.
13789 exclude_expsyms_FC='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
13790 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
13791 # platforms (ab)use it in PIC code, but their linkers get confused if
13792 # the symbol is explicitly referenced. Since portable code cannot
13793 # rely on this symbol name, it's probably fine to never include it in
13794 # preloaded symbol tables.
13795 # Exclude shared library initialization/finalization symbols.
13796 extract_expsyms_cmds=
13798 case $host_os in
13799 cygwin* | mingw* | pw32* | cegcc*)
13800 # FIXME: the MSVC++ port hasn't been tested in a loooong time
13801 # When not using gcc, we currently assume that we are using
13802 # Microsoft Visual C++.
13803 if test "$GCC" != yes; then
13804 with_gnu_ld=no
13807 interix*)
13808 # we just hope/assume this is gcc and not c89 (= MSVC++)
13809 with_gnu_ld=yes
13811 openbsd*)
13812 with_gnu_ld=no
13814 esac
13816 ld_shlibs_FC=yes
13818 # On some targets, GNU ld is compatible enough with the native linker
13819 # that we're better off using the native interface for both.
13820 lt_use_gnu_ld_interface=no
13821 if test "$with_gnu_ld" = yes; then
13822 case $host_os in
13823 aix*)
13824 # The AIX port of GNU ld has always aspired to compatibility
13825 # with the native linker. However, as the warning in the GNU ld
13826 # block says, versions before 2.19.5* couldn't really create working
13827 # shared libraries, regardless of the interface used.
13828 case `$LD -v 2>&1` in
13829 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
13830 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
13831 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
13833 lt_use_gnu_ld_interface=yes
13835 esac
13838 lt_use_gnu_ld_interface=yes
13840 esac
13843 if test "$lt_use_gnu_ld_interface" = yes; then
13844 # If archive_cmds runs LD, not CC, wlarc should be empty
13845 wlarc='${wl}'
13847 # Set some defaults for GNU ld with shared library support. These
13848 # are reset later if shared libraries are not supported. Putting them
13849 # here allows them to be overridden if necessary.
13850 runpath_var=LD_RUN_PATH
13851 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
13852 export_dynamic_flag_spec_FC='${wl}--export-dynamic'
13853 # ancient GNU ld didn't support --whole-archive et. al.
13854 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
13855 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
13856 else
13857 whole_archive_flag_spec_FC=
13859 supports_anon_versioning=no
13860 case `$LD -v 2>&1` in
13861 *GNU\ gold*) supports_anon_versioning=yes ;;
13862 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
13863 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
13864 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
13865 *\ 2.11.*) ;; # other 2.11 versions
13866 *) supports_anon_versioning=yes ;;
13867 esac
13869 # See if GNU ld supports shared libraries.
13870 case $host_os in
13871 aix[3-9]*)
13872 # On AIX/PPC, the GNU linker is very broken
13873 if test "$host_cpu" != ia64; then
13874 ld_shlibs_FC=no
13875 cat <<_LT_EOF 1>&2
13877 *** Warning: the GNU linker, at least up to release 2.19, is reported
13878 *** to be unable to reliably create shared libraries on AIX.
13879 *** Therefore, libtool is disabling shared libraries support. If you
13880 *** really care for shared libraries, you may want to install binutils
13881 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
13882 *** You will then need to restart the configuration process.
13884 _LT_EOF
13888 amigaos*)
13889 case $host_cpu in
13890 powerpc)
13891 # see comment about AmigaOS4 .so support
13892 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13893 archive_expsym_cmds_FC=''
13895 m68k)
13896 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)'
13897 hardcode_libdir_flag_spec_FC='-L$libdir'
13898 hardcode_minus_L_FC=yes
13900 esac
13903 beos*)
13904 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
13905 allow_undefined_flag_FC=unsupported
13906 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
13907 # support --undefined. This deserves some investigation. FIXME
13908 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13909 else
13910 ld_shlibs_FC=no
13914 cygwin* | mingw* | pw32* | cegcc*)
13915 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless,
13916 # as there is no search path for DLLs.
13917 hardcode_libdir_flag_spec_FC='-L$libdir'
13918 export_dynamic_flag_spec_FC='${wl}--export-all-symbols'
13919 allow_undefined_flag_FC=unsupported
13920 always_export_symbols_FC=no
13921 enable_shared_with_static_runtimes_FC=yes
13922 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
13924 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
13925 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13926 # If the export-symbols file already is a .def file (1st line
13927 # is EXPORTS), use it as is; otherwise, prepend...
13928 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
13929 cp $export_symbols $output_objdir/$soname.def;
13930 else
13931 echo EXPORTS > $output_objdir/$soname.def;
13932 cat $export_symbols >> $output_objdir/$soname.def;
13934 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
13935 else
13936 ld_shlibs_FC=no
13940 haiku*)
13941 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
13942 link_all_deplibs_FC=yes
13945 interix[3-9]*)
13946 hardcode_direct_FC=no
13947 hardcode_shlibpath_var_FC=no
13948 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
13949 export_dynamic_flag_spec_FC='${wl}-E'
13950 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
13951 # Instead, shared libraries are loaded at an image base (0x10000000 by
13952 # default) and relocated if they conflict, which is a slow very memory
13953 # consuming and fragmenting process. To avoid this, we pick a random,
13954 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
13955 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
13956 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'
13957 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'
13960 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
13961 tmp_diet=no
13962 if test "$host_os" = linux-dietlibc; then
13963 case $cc_basename in
13964 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
13965 esac
13967 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
13968 && test "$tmp_diet" = no
13969 then
13970 tmp_addflag=' $pic_flag'
13971 tmp_sharedflag='-shared'
13972 case $cc_basename,$host_cpu in
13973 pgcc*) # Portland Group C compiler
13974 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'
13975 tmp_addflag=' $pic_flag'
13977 pgf77* | pgf90* | pgf95* | pgfortran*)
13978 # Portland Group f77 and f90 compilers
13979 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'
13980 tmp_addflag=' $pic_flag -Mnomain' ;;
13981 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
13982 tmp_addflag=' -i_dynamic' ;;
13983 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
13984 tmp_addflag=' -i_dynamic -nofor_main' ;;
13985 ifc* | ifort*) # Intel Fortran compiler
13986 tmp_addflag=' -nofor_main' ;;
13987 lf95*) # Lahey Fortran 8.1
13988 whole_archive_flag_spec_FC=
13989 tmp_sharedflag='--shared' ;;
13990 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
13991 tmp_sharedflag='-qmkshrobj'
13992 tmp_addflag= ;;
13993 nvcc*) # Cuda Compiler Driver 2.2
13994 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'
13995 compiler_needs_object_FC=yes
13997 esac
13998 case `$CC -V 2>&1 | sed 5q` in
13999 *Sun\ C*) # Sun C 5.9
14000 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'
14001 compiler_needs_object_FC=yes
14002 tmp_sharedflag='-G' ;;
14003 *Sun\ F*) # Sun Fortran 8.3
14004 tmp_sharedflag='-G' ;;
14005 esac
14006 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14008 if test "x$supports_anon_versioning" = xyes; then
14009 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
14010 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14011 echo "local: *; };" >> $output_objdir/$libname.ver~
14012 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
14015 case $cc_basename in
14016 xlf* | bgf* | bgxlf* | mpixlf*)
14017 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
14018 whole_archive_flag_spec_FC='--whole-archive$convenience --no-whole-archive'
14019 hardcode_libdir_flag_spec_FC=
14020 hardcode_libdir_flag_spec_ld_FC='-rpath $libdir'
14021 archive_cmds_FC='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
14022 if test "x$supports_anon_versioning" = xyes; then
14023 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~
14024 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
14025 echo "local: *; };" >> $output_objdir/$libname.ver~
14026 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
14029 esac
14030 else
14031 ld_shlibs_FC=no
14035 netbsd*)
14036 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14037 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
14038 wlarc=
14039 else
14040 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14041 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14045 solaris*)
14046 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
14047 ld_shlibs_FC=no
14048 cat <<_LT_EOF 1>&2
14050 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
14051 *** create shared libraries on Solaris systems. Therefore, libtool
14052 *** is disabling shared libraries support. We urge you to upgrade GNU
14053 *** binutils to release 2.9.1 or newer. Another option is to modify
14054 *** your PATH or compiler configuration so that the native linker is
14055 *** used, and then restart.
14057 _LT_EOF
14058 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14059 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14060 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14061 else
14062 ld_shlibs_FC=no
14066 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
14067 case `$LD -v 2>&1` in
14068 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
14069 ld_shlibs_FC=no
14070 cat <<_LT_EOF 1>&2
14072 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
14073 *** reliably create shared libraries on SCO systems. Therefore, libtool
14074 *** is disabling shared libraries support. We urge you to upgrade GNU
14075 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
14076 *** your PATH or compiler configuration so that the native linker is
14077 *** used, and then restart.
14079 _LT_EOF
14082 # For security reasons, it is highly recommended that you always
14083 # use absolute paths for naming shared libraries, and exclude the
14084 # DT_RUNPATH tag from executables and libraries. But doing so
14085 # requires that you compile everything twice, which is a pain.
14086 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14087 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14088 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14089 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14090 else
14091 ld_shlibs_FC=no
14094 esac
14097 sunos4*)
14098 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14099 wlarc=
14100 hardcode_direct_FC=yes
14101 hardcode_shlibpath_var_FC=no
14105 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
14106 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14107 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
14108 else
14109 ld_shlibs_FC=no
14112 esac
14114 if test "$ld_shlibs_FC" = no; then
14115 runpath_var=
14116 hardcode_libdir_flag_spec_FC=
14117 export_dynamic_flag_spec_FC=
14118 whole_archive_flag_spec_FC=
14120 else
14121 # PORTME fill in a description of your system's linker (not GNU ld)
14122 case $host_os in
14123 aix3*)
14124 allow_undefined_flag_FC=unsupported
14125 always_export_symbols_FC=yes
14126 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'
14127 # Note: this linker hardcodes the directories in LIBPATH if there
14128 # are no directories specified by -L.
14129 hardcode_minus_L_FC=yes
14130 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
14131 # Neither direct hardcoding nor static linking is supported with a
14132 # broken collect2.
14133 hardcode_direct_FC=unsupported
14137 aix[4-9]*)
14138 if test "$host_cpu" = ia64; then
14139 # On IA64, the linker does run time linking by default, so we don't
14140 # have to do anything special.
14141 aix_use_runtimelinking=no
14142 exp_sym_flag='-Bexport'
14143 no_entry_flag=""
14144 else
14145 # If we're using GNU nm, then we don't want the "-C" option.
14146 # -C means demangle to AIX nm, but means don't demangle with GNU nm
14147 # Also, AIX nm treats weak defined symbols like other global
14148 # defined symbols, whereas GNU nm marks them as "W".
14149 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
14150 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'
14151 else
14152 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'
14154 aix_use_runtimelinking=no
14156 # Test if we are trying to use run time linking or normal
14157 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
14158 # need to do runtime linking.
14159 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
14160 for ld_flag in $LDFLAGS; do
14161 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
14162 aix_use_runtimelinking=yes
14163 break
14165 done
14167 esac
14169 exp_sym_flag='-bexport'
14170 no_entry_flag='-bnoentry'
14173 # When large executables or shared objects are built, AIX ld can
14174 # have problems creating the table of contents. If linking a library
14175 # or program results in "error TOC overflow" add -mminimal-toc to
14176 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
14177 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
14179 archive_cmds_FC=''
14180 hardcode_direct_FC=yes
14181 hardcode_direct_absolute_FC=yes
14182 hardcode_libdir_separator_FC=':'
14183 link_all_deplibs_FC=yes
14184 file_list_spec_FC='${wl}-f,'
14186 if test "$GCC" = yes; then
14187 case $host_os in aix4.[012]|aix4.[012].*)
14188 # We only want to do this on AIX 4.2 and lower, the check
14189 # below for broken collect2 doesn't work under 4.3+
14190 collect2name=`${CC} -print-prog-name=collect2`
14191 if test -f "$collect2name" &&
14192 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
14193 then
14194 # We have reworked collect2
14196 else
14197 # We have old collect2
14198 hardcode_direct_FC=unsupported
14199 # It fails to find uninstalled libraries when the uninstalled
14200 # path is not listed in the libpath. Setting hardcode_minus_L
14201 # to unsupported forces relinking
14202 hardcode_minus_L_FC=yes
14203 hardcode_libdir_flag_spec_FC='-L$libdir'
14204 hardcode_libdir_separator_FC=
14207 esac
14208 shared_flag='-shared'
14209 if test "$aix_use_runtimelinking" = yes; then
14210 shared_flag="$shared_flag "'${wl}-G'
14212 else
14213 # not using gcc
14214 if test "$host_cpu" = ia64; then
14215 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
14216 # chokes on -Wl,-G. The following line is correct:
14217 shared_flag='-G'
14218 else
14219 if test "$aix_use_runtimelinking" = yes; then
14220 shared_flag='${wl}-G'
14221 else
14222 shared_flag='${wl}-bM:SRE'
14227 export_dynamic_flag_spec_FC='${wl}-bexpall'
14228 # It seems that -bexpall does not export symbols beginning with
14229 # underscore (_), so it is better to generate a list of symbols to export.
14230 always_export_symbols_FC=yes
14231 if test "$aix_use_runtimelinking" = yes; then
14232 # Warning - without using the other runtime loading flags (-brtl),
14233 # -berok will link without error, but may produce a broken library.
14234 allow_undefined_flag_FC='-berok'
14235 # Determine the default libpath from the value encoded in an
14236 # empty executable.
14237 if test x$gcc_no_link = xyes; then
14238 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14240 cat > conftest.$ac_ext <<_ACEOF
14241 program main
14244 _ACEOF
14245 if ac_fn_fc_try_link "$LINENO"; then :
14247 lt_aix_libpath_sed='
14248 /Import File Strings/,/^$/ {
14249 /^0/ {
14250 s/^0 *\(.*\)$/\1/
14254 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14255 # Check for a 64-bit object if we didn't find anything.
14256 if test -z "$aix_libpath"; then
14257 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14260 rm -f core conftest.err conftest.$ac_objext \
14261 conftest$ac_exeext conftest.$ac_ext
14262 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14264 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
14265 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"
14266 else
14267 if test "$host_cpu" = ia64; then
14268 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib'
14269 allow_undefined_flag_FC="-z nodefs"
14270 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"
14271 else
14272 # Determine the default libpath from the value encoded in an
14273 # empty executable.
14274 if test x$gcc_no_link = xyes; then
14275 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14277 cat > conftest.$ac_ext <<_ACEOF
14278 program main
14281 _ACEOF
14282 if ac_fn_fc_try_link "$LINENO"; then :
14284 lt_aix_libpath_sed='
14285 /Import File Strings/,/^$/ {
14286 /^0/ {
14287 s/^0 *\(.*\)$/\1/
14291 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14292 # Check for a 64-bit object if we didn't find anything.
14293 if test -z "$aix_libpath"; then
14294 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
14297 rm -f core conftest.err conftest.$ac_objext \
14298 conftest$ac_exeext conftest.$ac_ext
14299 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
14301 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath"
14302 # Warning - without using the other run time loading flags,
14303 # -berok will link without error, but may produce a broken library.
14304 no_undefined_flag_FC=' ${wl}-bernotok'
14305 allow_undefined_flag_FC=' ${wl}-berok'
14306 if test "$with_gnu_ld" = yes; then
14307 # We only use this code for GNU lds that support --whole-archive.
14308 whole_archive_flag_spec_FC='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
14309 else
14310 # Exported symbols can be pulled into shared objects from archives
14311 whole_archive_flag_spec_FC='$convenience'
14313 archive_cmds_need_lc_FC=yes
14314 # This is similar to how AIX traditionally builds its shared libraries.
14315 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'
14320 amigaos*)
14321 case $host_cpu in
14322 powerpc)
14323 # see comment about AmigaOS4 .so support
14324 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
14325 archive_expsym_cmds_FC=''
14327 m68k)
14328 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)'
14329 hardcode_libdir_flag_spec_FC='-L$libdir'
14330 hardcode_minus_L_FC=yes
14332 esac
14335 bsdi[45]*)
14336 export_dynamic_flag_spec_FC=-rdynamic
14339 cygwin* | mingw* | pw32* | cegcc*)
14340 # When not using gcc, we currently assume that we are using
14341 # Microsoft Visual C++.
14342 # hardcode_libdir_flag_spec is actually meaningless, as there is
14343 # no search path for DLLs.
14344 hardcode_libdir_flag_spec_FC=' '
14345 allow_undefined_flag_FC=unsupported
14346 # Tell ltmain to make .lib files, not .a files.
14347 libext=lib
14348 # Tell ltmain to make .dll files, not .so files.
14349 shrext_cmds=".dll"
14350 # FIXME: Setting linknames here is a bad hack.
14351 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
14352 # The linker will automatically build a .lib file if we build a DLL.
14353 old_archive_from_new_cmds_FC='true'
14354 # FIXME: Should let the user specify the lib program.
14355 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs'
14356 fix_srcfile_path_FC='`cygpath -w "$srcfile"`'
14357 enable_shared_with_static_runtimes_FC=yes
14360 darwin* | rhapsody*)
14363 archive_cmds_need_lc_FC=no
14364 hardcode_direct_FC=no
14365 hardcode_automatic_FC=yes
14366 hardcode_shlibpath_var_FC=unsupported
14367 if test "$lt_cv_ld_force_load" = "yes"; then
14368 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\"`'
14369 else
14370 whole_archive_flag_spec_FC=''
14372 link_all_deplibs_FC=yes
14373 allow_undefined_flag_FC="$_lt_dar_allow_undefined"
14374 case $cc_basename in
14375 ifort*) _lt_dar_can_shared=yes ;;
14376 *) _lt_dar_can_shared=$GCC ;;
14377 esac
14378 if test "$_lt_dar_can_shared" = "yes"; then
14379 output_verbose_link_cmd=func_echo_all
14380 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}"
14381 module_cmds_FC="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
14382 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}"
14383 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}"
14385 else
14386 ld_shlibs_FC=no
14391 dgux*)
14392 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14393 hardcode_libdir_flag_spec_FC='-L$libdir'
14394 hardcode_shlibpath_var_FC=no
14397 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
14398 # support. Future versions do this automatically, but an explicit c++rt0.o
14399 # does not break anything, and helps significantly (at the cost of a little
14400 # extra space).
14401 freebsd2.2*)
14402 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
14403 hardcode_libdir_flag_spec_FC='-R$libdir'
14404 hardcode_direct_FC=yes
14405 hardcode_shlibpath_var_FC=no
14408 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
14409 freebsd2.*)
14410 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14411 hardcode_direct_FC=yes
14412 hardcode_minus_L_FC=yes
14413 hardcode_shlibpath_var_FC=no
14416 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
14417 freebsd* | dragonfly*)
14418 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
14419 hardcode_libdir_flag_spec_FC='-R$libdir'
14420 hardcode_direct_FC=yes
14421 hardcode_shlibpath_var_FC=no
14424 hpux9*)
14425 if test "$GCC" = yes; then
14426 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'
14427 else
14428 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'
14430 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14431 hardcode_libdir_separator_FC=:
14432 hardcode_direct_FC=yes
14434 # hardcode_minus_L: Not really in the search PATH,
14435 # but as the default location of the library.
14436 hardcode_minus_L_FC=yes
14437 export_dynamic_flag_spec_FC='${wl}-E'
14440 hpux10*)
14441 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14442 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14443 else
14444 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
14446 if test "$with_gnu_ld" = no; then
14447 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14448 hardcode_libdir_flag_spec_ld_FC='+b $libdir'
14449 hardcode_libdir_separator_FC=:
14450 hardcode_direct_FC=yes
14451 hardcode_direct_absolute_FC=yes
14452 export_dynamic_flag_spec_FC='${wl}-E'
14453 # hardcode_minus_L: Not really in the search PATH,
14454 # but as the default location of the library.
14455 hardcode_minus_L_FC=yes
14459 hpux11*)
14460 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
14461 case $host_cpu in
14462 hppa*64*)
14463 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14465 ia64*)
14466 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14469 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14471 esac
14472 else
14473 case $host_cpu in
14474 hppa*64*)
14475 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14477 ia64*)
14478 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
14481 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
14483 esac
14485 if test "$with_gnu_ld" = no; then
14486 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir'
14487 hardcode_libdir_separator_FC=:
14489 case $host_cpu in
14490 hppa*64*|ia64*)
14491 hardcode_direct_FC=no
14492 hardcode_shlibpath_var_FC=no
14495 hardcode_direct_FC=yes
14496 hardcode_direct_absolute_FC=yes
14497 export_dynamic_flag_spec_FC='${wl}-E'
14499 # hardcode_minus_L: Not really in the search PATH,
14500 # but as the default location of the library.
14501 hardcode_minus_L_FC=yes
14503 esac
14507 irix5* | irix6* | nonstopux*)
14508 if test "$GCC" = yes; then
14509 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'
14510 # Try to use the -exported_symbol ld option, if it does not
14511 # work, assume that -exports_file does not work either and
14512 # implicitly export all symbols.
14513 save_LDFLAGS="$LDFLAGS"
14514 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
14515 if test x$gcc_no_link = xyes; then
14516 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
14518 cat > conftest.$ac_ext <<_ACEOF
14519 int foo(void) {}
14520 _ACEOF
14521 if ac_fn_fc_try_link "$LINENO"; then :
14522 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'
14525 rm -f core conftest.err conftest.$ac_objext \
14526 conftest$ac_exeext conftest.$ac_ext
14527 LDFLAGS="$save_LDFLAGS"
14528 else
14529 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'
14530 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'
14532 archive_cmds_need_lc_FC='no'
14533 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14534 hardcode_libdir_separator_FC=:
14535 inherit_rpath_FC=yes
14536 link_all_deplibs_FC=yes
14539 netbsd*)
14540 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
14541 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
14542 else
14543 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
14545 hardcode_libdir_flag_spec_FC='-R$libdir'
14546 hardcode_direct_FC=yes
14547 hardcode_shlibpath_var_FC=no
14550 newsos6)
14551 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14552 hardcode_direct_FC=yes
14553 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14554 hardcode_libdir_separator_FC=:
14555 hardcode_shlibpath_var_FC=no
14558 *nto* | *qnx*)
14561 openbsd*)
14562 if test -f /usr/libexec/ld.so; then
14563 hardcode_direct_FC=yes
14564 hardcode_shlibpath_var_FC=no
14565 hardcode_direct_absolute_FC=yes
14566 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14567 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14568 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
14569 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14570 export_dynamic_flag_spec_FC='${wl}-E'
14571 else
14572 case $host_os in
14573 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
14574 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
14575 hardcode_libdir_flag_spec_FC='-R$libdir'
14578 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
14579 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir'
14581 esac
14583 else
14584 ld_shlibs_FC=no
14588 os2*)
14589 hardcode_libdir_flag_spec_FC='-L$libdir'
14590 hardcode_minus_L_FC=yes
14591 allow_undefined_flag_FC=unsupported
14592 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'
14593 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
14596 osf3*)
14597 if test "$GCC" = yes; then
14598 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
14599 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'
14600 else
14601 allow_undefined_flag_FC=' -expect_unresolved \*'
14602 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'
14604 archive_cmds_need_lc_FC='no'
14605 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14606 hardcode_libdir_separator_FC=:
14609 osf4* | osf5*) # as osf3* with the addition of -msym flag
14610 if test "$GCC" = yes; then
14611 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*'
14612 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'
14613 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir'
14614 else
14615 allow_undefined_flag_FC=' -expect_unresolved \*'
14616 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'
14617 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~
14618 $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'
14620 # Both c and cxx compiler support -rpath directly
14621 hardcode_libdir_flag_spec_FC='-rpath $libdir'
14623 archive_cmds_need_lc_FC='no'
14624 hardcode_libdir_separator_FC=:
14627 solaris*)
14628 no_undefined_flag_FC=' -z defs'
14629 if test "$GCC" = yes; then
14630 wlarc='${wl}'
14631 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
14632 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14633 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14634 else
14635 case `$CC -V 2>&1` in
14636 *"Compilers 5.0"*)
14637 wlarc=''
14638 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
14639 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14640 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
14643 wlarc='${wl}'
14644 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
14645 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
14646 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
14648 esac
14650 hardcode_libdir_flag_spec_FC='-R$libdir'
14651 hardcode_shlibpath_var_FC=no
14652 case $host_os in
14653 solaris2.[0-5] | solaris2.[0-5].*) ;;
14655 # The compiler driver will combine and reorder linker options,
14656 # but understands `-z linker_flag'. GCC discards it without `$wl',
14657 # but is careful enough not to reorder.
14658 # Supported since Solaris 2.6 (maybe 2.5.1?)
14659 if test "$GCC" = yes; then
14660 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
14661 else
14662 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract'
14665 esac
14666 link_all_deplibs_FC=yes
14669 sunos4*)
14670 if test "x$host_vendor" = xsequent; then
14671 # Use $CC to link under sequent, because it throws in some extra .o
14672 # files that make .init and .fini sections work.
14673 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
14674 else
14675 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
14677 hardcode_libdir_flag_spec_FC='-L$libdir'
14678 hardcode_direct_FC=yes
14679 hardcode_minus_L_FC=yes
14680 hardcode_shlibpath_var_FC=no
14683 sysv4)
14684 case $host_vendor in
14685 sni)
14686 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14687 hardcode_direct_FC=yes # is this really true???
14689 siemens)
14690 ## LD is ld it makes a PLAMLIB
14691 ## CC just makes a GrossModule.
14692 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags'
14693 reload_cmds_FC='$CC -r -o $output$reload_objs'
14694 hardcode_direct_FC=no
14696 motorola)
14697 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14698 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie
14700 esac
14701 runpath_var='LD_RUN_PATH'
14702 hardcode_shlibpath_var_FC=no
14705 sysv4.3*)
14706 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14707 hardcode_shlibpath_var_FC=no
14708 export_dynamic_flag_spec_FC='-Bexport'
14711 sysv4*MP*)
14712 if test -d /usr/nec; then
14713 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14714 hardcode_shlibpath_var_FC=no
14715 runpath_var=LD_RUN_PATH
14716 hardcode_runpath_var=yes
14717 ld_shlibs_FC=yes
14721 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
14722 no_undefined_flag_FC='${wl}-z,text'
14723 archive_cmds_need_lc_FC=no
14724 hardcode_shlibpath_var_FC=no
14725 runpath_var='LD_RUN_PATH'
14727 if test "$GCC" = yes; then
14728 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14729 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14730 else
14731 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14732 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14736 sysv5* | sco3.2v5* | sco5v6*)
14737 # Note: We can NOT use -z defs as we might desire, because we do not
14738 # link with -lc, and that would cause any symbols used from libc to
14739 # always be unresolved, which means just about no library would
14740 # ever link correctly. If we're not using GNU ld we use -z text
14741 # though, which does catch some bad symbols but isn't as heavy-handed
14742 # as -z defs.
14743 no_undefined_flag_FC='${wl}-z,text'
14744 allow_undefined_flag_FC='${wl}-z,nodefs'
14745 archive_cmds_need_lc_FC=no
14746 hardcode_shlibpath_var_FC=no
14747 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir'
14748 hardcode_libdir_separator_FC=':'
14749 link_all_deplibs_FC=yes
14750 export_dynamic_flag_spec_FC='${wl}-Bexport'
14751 runpath_var='LD_RUN_PATH'
14753 if test "$GCC" = yes; then
14754 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14755 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14756 else
14757 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14758 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
14762 uts4*)
14763 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
14764 hardcode_libdir_flag_spec_FC='-L$libdir'
14765 hardcode_shlibpath_var_FC=no
14769 ld_shlibs_FC=no
14771 esac
14773 if test x$host_vendor = xsni; then
14774 case $host in
14775 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
14776 export_dynamic_flag_spec_FC='${wl}-Blargedynsym'
14778 esac
14782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_FC" >&5
14783 $as_echo "$ld_shlibs_FC" >&6; }
14784 test "$ld_shlibs_FC" = no && can_build_shared=no
14786 with_gnu_ld_FC=$with_gnu_ld
14794 # Do we need to explicitly link libc?
14796 case "x$archive_cmds_need_lc_FC" in
14797 x|xyes)
14798 # Assume -lc should be added
14799 archive_cmds_need_lc_FC=yes
14801 if test "$enable_shared" = yes && test "$GCC" = yes; then
14802 case $archive_cmds_FC in
14803 *'~'*)
14804 # FIXME: we may have to deal with multi-command sequences.
14806 '$CC '*)
14807 # Test whether the compiler implicitly links with -lc since on some
14808 # systems, -lgcc has to come before -lc. If gcc already passes -lc
14809 # to ld, don't add -lc before -lgcc.
14810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
14811 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
14812 if test "${lt_cv_archive_cmds_need_lc_FC+set}" = set; then :
14813 $as_echo_n "(cached) " >&6
14814 else
14815 $RM conftest*
14816 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
14818 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
14819 (eval $ac_compile) 2>&5
14820 ac_status=$?
14821 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14822 test $ac_status = 0; } 2>conftest.err; then
14823 soname=conftest
14824 lib=conftest
14825 libobjs=conftest.$ac_objext
14826 deplibs=
14827 wl=$lt_prog_compiler_wl_FC
14828 pic_flag=$lt_prog_compiler_pic_FC
14829 compiler_flags=-v
14830 linker_flags=-v
14831 verstring=
14832 output_objdir=.
14833 libname=conftest
14834 lt_save_allow_undefined_flag=$allow_undefined_flag_FC
14835 allow_undefined_flag_FC=
14836 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
14837 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
14838 ac_status=$?
14839 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14840 test $ac_status = 0; }
14841 then
14842 lt_cv_archive_cmds_need_lc_FC=no
14843 else
14844 lt_cv_archive_cmds_need_lc_FC=yes
14846 allow_undefined_flag_FC=$lt_save_allow_undefined_flag
14847 else
14848 cat conftest.err 1>&5
14850 $RM conftest*
14853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_FC" >&5
14854 $as_echo "$lt_cv_archive_cmds_need_lc_FC" >&6; }
14855 archive_cmds_need_lc_FC=$lt_cv_archive_cmds_need_lc_FC
14857 esac
14860 esac
14925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
14926 $as_echo_n "checking dynamic linker characteristics... " >&6; }
14928 library_names_spec=
14929 libname_spec='lib$name'
14930 soname_spec=
14931 shrext_cmds=".so"
14932 postinstall_cmds=
14933 postuninstall_cmds=
14934 finish_cmds=
14935 finish_eval=
14936 shlibpath_var=
14937 shlibpath_overrides_runpath=unknown
14938 version_type=none
14939 dynamic_linker="$host_os ld.so"
14940 sys_lib_dlsearch_path_spec="/lib /usr/lib"
14941 need_lib_prefix=unknown
14942 hardcode_into_libs=no
14944 # when you set need_version to no, make sure it does not cause -set_version
14945 # flags to be left without arguments
14946 need_version=unknown
14948 case $host_os in
14949 aix3*)
14950 version_type=linux
14951 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
14952 shlibpath_var=LIBPATH
14954 # AIX 3 has no versioning support, so we append a major version to the name.
14955 soname_spec='${libname}${release}${shared_ext}$major'
14958 aix[4-9]*)
14959 version_type=linux
14960 need_lib_prefix=no
14961 need_version=no
14962 hardcode_into_libs=yes
14963 if test "$host_cpu" = ia64; then
14964 # AIX 5 supports IA64
14965 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
14966 shlibpath_var=LD_LIBRARY_PATH
14967 else
14968 # With GCC up to 2.95.x, collect2 would create an import file
14969 # for dependence libraries. The import file would start with
14970 # the line `#! .'. This would cause the generated library to
14971 # depend on `.', always an invalid library. This was fixed in
14972 # development snapshots of GCC prior to 3.0.
14973 case $host_os in
14974 aix4 | aix4.[01] | aix4.[01].*)
14975 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
14976 echo ' yes '
14977 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
14979 else
14980 can_build_shared=no
14983 esac
14984 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
14985 # soname into executable. Probably we can add versioning support to
14986 # collect2, so additional links can be useful in future.
14987 if test "$aix_use_runtimelinking" = yes; then
14988 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
14989 # instead of lib<name>.a to let people know that these are not
14990 # typical AIX shared libraries.
14991 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14992 else
14993 # We preserve .a as extension for shared libraries through AIX4.2
14994 # and later when we are not doing run time linking.
14995 library_names_spec='${libname}${release}.a $libname.a'
14996 soname_spec='${libname}${release}${shared_ext}$major'
14998 shlibpath_var=LIBPATH
15002 amigaos*)
15003 case $host_cpu in
15004 powerpc)
15005 # Since July 2007 AmigaOS4 officially supports .so libraries.
15006 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
15007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15009 m68k)
15010 library_names_spec='$libname.ixlibrary $libname.a'
15011 # Create ${libname}_ixlibrary.a entries in /sys/libs.
15012 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'
15014 esac
15017 beos*)
15018 library_names_spec='${libname}${shared_ext}'
15019 dynamic_linker="$host_os ld.so"
15020 shlibpath_var=LIBRARY_PATH
15023 bsdi[45]*)
15024 version_type=linux
15025 need_version=no
15026 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15027 soname_spec='${libname}${release}${shared_ext}$major'
15028 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
15029 shlibpath_var=LD_LIBRARY_PATH
15030 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
15031 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
15032 # the default ld.so.conf also contains /usr/contrib/lib and
15033 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
15034 # libtool to hard-code these into programs
15037 cygwin* | mingw* | pw32* | cegcc*)
15038 version_type=windows
15039 shrext_cmds=".dll"
15040 need_version=no
15041 need_lib_prefix=no
15043 case $GCC,$host_os in
15044 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
15045 library_names_spec='$libname.dll.a'
15046 # DLL is installed to $(libdir)/../bin by postinstall_cmds
15047 postinstall_cmds='base_file=`basename \${file}`~
15048 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
15049 dldir=$destdir/`dirname \$dlpath`~
15050 test -d \$dldir || mkdir -p \$dldir~
15051 $install_prog $dir/$dlname \$dldir/$dlname~
15052 chmod a+x \$dldir/$dlname~
15053 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
15054 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
15056 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
15057 dlpath=$dir/\$dldll~
15058 $RM \$dlpath'
15059 shlibpath_overrides_runpath=yes
15061 case $host_os in
15062 cygwin*)
15063 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
15064 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15067 mingw* | cegcc*)
15068 # MinGW DLLs use traditional 'lib' prefix
15069 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15071 pw32*)
15072 # pw32 DLLs use 'pw' prefix rather than 'lib'
15073 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
15075 esac
15079 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
15081 esac
15082 dynamic_linker='Win32 ld.exe'
15083 # FIXME: first we should search . and the directory the executable is in
15084 shlibpath_var=PATH
15087 darwin* | rhapsody*)
15088 dynamic_linker="$host_os dyld"
15089 version_type=darwin
15090 need_lib_prefix=no
15091 need_version=no
15092 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
15093 soname_spec='${libname}${release}${major}$shared_ext'
15094 shlibpath_overrides_runpath=yes
15095 shlibpath_var=DYLD_LIBRARY_PATH
15096 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
15098 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
15101 dgux*)
15102 version_type=linux
15103 need_lib_prefix=no
15104 need_version=no
15105 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
15106 soname_spec='${libname}${release}${shared_ext}$major'
15107 shlibpath_var=LD_LIBRARY_PATH
15110 freebsd* | dragonfly*)
15111 # DragonFly does not have aout. When/if they implement a new
15112 # versioning mechanism, adjust this.
15113 if test -x /usr/bin/objformat; then
15114 objformat=`/usr/bin/objformat`
15115 else
15116 case $host_os in
15117 freebsd[23].*) objformat=aout ;;
15118 *) objformat=elf ;;
15119 esac
15121 version_type=freebsd-$objformat
15122 case $version_type in
15123 freebsd-elf*)
15124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15125 need_version=no
15126 need_lib_prefix=no
15128 freebsd-*)
15129 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
15130 need_version=yes
15132 esac
15133 shlibpath_var=LD_LIBRARY_PATH
15134 case $host_os in
15135 freebsd2.*)
15136 shlibpath_overrides_runpath=yes
15138 freebsd3.[01]* | freebsdelf3.[01]*)
15139 shlibpath_overrides_runpath=yes
15140 hardcode_into_libs=yes
15142 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
15143 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
15144 shlibpath_overrides_runpath=no
15145 hardcode_into_libs=yes
15147 *) # from 4.6 on, and DragonFly
15148 shlibpath_overrides_runpath=yes
15149 hardcode_into_libs=yes
15151 esac
15154 gnu*)
15155 version_type=linux
15156 need_lib_prefix=no
15157 need_version=no
15158 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15159 soname_spec='${libname}${release}${shared_ext}$major'
15160 shlibpath_var=LD_LIBRARY_PATH
15161 hardcode_into_libs=yes
15164 haiku*)
15165 version_type=linux
15166 need_lib_prefix=no
15167 need_version=no
15168 dynamic_linker="$host_os runtime_loader"
15169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
15170 soname_spec='${libname}${release}${shared_ext}$major'
15171 shlibpath_var=LIBRARY_PATH
15172 shlibpath_overrides_runpath=yes
15173 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
15174 hardcode_into_libs=yes
15177 hpux9* | hpux10* | hpux11*)
15178 # Give a soname corresponding to the major version so that dld.sl refuses to
15179 # link against other versions.
15180 version_type=sunos
15181 need_lib_prefix=no
15182 need_version=no
15183 case $host_cpu in
15184 ia64*)
15185 shrext_cmds='.so'
15186 hardcode_into_libs=yes
15187 dynamic_linker="$host_os dld.so"
15188 shlibpath_var=LD_LIBRARY_PATH
15189 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
15190 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15191 soname_spec='${libname}${release}${shared_ext}$major'
15192 if test "X$HPUX_IA64_MODE" = X32; then
15193 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
15194 else
15195 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
15197 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15199 hppa*64*)
15200 shrext_cmds='.sl'
15201 hardcode_into_libs=yes
15202 dynamic_linker="$host_os dld.sl"
15203 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
15204 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
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 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
15208 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
15211 shrext_cmds='.sl'
15212 dynamic_linker="$host_os dld.sl"
15213 shlibpath_var=SHLIB_PATH
15214 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
15215 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15216 soname_spec='${libname}${release}${shared_ext}$major'
15218 esac
15219 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
15220 postinstall_cmds='chmod 555 $lib'
15221 # or fails outright, so override atomically:
15222 install_override_mode=555
15225 interix[3-9]*)
15226 version_type=linux
15227 need_lib_prefix=no
15228 need_version=no
15229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15230 soname_spec='${libname}${release}${shared_ext}$major'
15231 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
15232 shlibpath_var=LD_LIBRARY_PATH
15233 shlibpath_overrides_runpath=no
15234 hardcode_into_libs=yes
15237 irix5* | irix6* | nonstopux*)
15238 case $host_os in
15239 nonstopux*) version_type=nonstopux ;;
15241 if test "$lt_cv_prog_gnu_ld" = yes; then
15242 version_type=linux
15243 else
15244 version_type=irix
15245 fi ;;
15246 esac
15247 need_lib_prefix=no
15248 need_version=no
15249 soname_spec='${libname}${release}${shared_ext}$major'
15250 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
15251 case $host_os in
15252 irix5* | nonstopux*)
15253 libsuff= shlibsuff=
15256 case $LD in # libtool.m4 will add one of these switches to LD
15257 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
15258 libsuff= shlibsuff= libmagic=32-bit;;
15259 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
15260 libsuff=32 shlibsuff=N32 libmagic=N32;;
15261 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
15262 libsuff=64 shlibsuff=64 libmagic=64-bit;;
15263 *) libsuff= shlibsuff= libmagic=never-match;;
15264 esac
15266 esac
15267 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
15268 shlibpath_overrides_runpath=no
15269 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
15270 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
15271 hardcode_into_libs=yes
15274 # No shared lib support for Linux oldld, aout, or coff.
15275 linux*oldld* | linux*aout* | linux*coff*)
15276 dynamic_linker=no
15279 # This must be Linux ELF.
15280 linux* | k*bsd*-gnu | kopensolaris*-gnu)
15281 version_type=linux
15282 need_lib_prefix=no
15283 need_version=no
15284 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15285 soname_spec='${libname}${release}${shared_ext}$major'
15286 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
15287 shlibpath_var=LD_LIBRARY_PATH
15288 shlibpath_overrides_runpath=no
15290 # Some binutils ld are patched to set DT_RUNPATH
15291 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then :
15292 $as_echo_n "(cached) " >&6
15293 else
15294 lt_cv_shlibpath_overrides_runpath=no
15295 save_LDFLAGS=$LDFLAGS
15296 save_libdir=$libdir
15297 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \
15298 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\""
15299 if test x$gcc_no_link = xyes; then
15300 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
15302 cat > conftest.$ac_ext <<_ACEOF
15303 program main
15306 _ACEOF
15307 if ac_fn_fc_try_link "$LINENO"; then :
15308 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
15309 lt_cv_shlibpath_overrides_runpath=yes
15312 rm -f core conftest.err conftest.$ac_objext \
15313 conftest$ac_exeext conftest.$ac_ext
15314 LDFLAGS=$save_LDFLAGS
15315 libdir=$save_libdir
15319 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
15321 # This implies no fast_install, which is unacceptable.
15322 # Some rework will be needed to allow for fast_install
15323 # before this can be enabled.
15324 hardcode_into_libs=yes
15326 # Append ld.so.conf contents to the search path
15327 if test -f /etc/ld.so.conf; then
15328 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' ' '`
15329 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
15332 # We used to test for /lib/ld.so.1 and disable shared libraries on
15333 # powerpc, because MkLinux only supported shared libraries with the
15334 # GNU dynamic linker. Since this was broken with cross compilers,
15335 # most powerpc-linux boxes support dynamic linking these days and
15336 # people can always --disable-shared, the test was removed, and we
15337 # assume the GNU/Linux dynamic linker is in use.
15338 dynamic_linker='GNU/Linux ld.so'
15341 netbsd*)
15342 version_type=sunos
15343 need_lib_prefix=no
15344 need_version=no
15345 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15347 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15348 dynamic_linker='NetBSD (a.out) ld.so'
15349 else
15350 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
15351 soname_spec='${libname}${release}${shared_ext}$major'
15352 dynamic_linker='NetBSD ld.elf_so'
15354 shlibpath_var=LD_LIBRARY_PATH
15355 shlibpath_overrides_runpath=yes
15356 hardcode_into_libs=yes
15359 newsos6)
15360 version_type=linux
15361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15362 shlibpath_var=LD_LIBRARY_PATH
15363 shlibpath_overrides_runpath=yes
15366 *nto* | *qnx*)
15367 version_type=qnx
15368 need_lib_prefix=no
15369 need_version=no
15370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15371 soname_spec='${libname}${release}${shared_ext}$major'
15372 shlibpath_var=LD_LIBRARY_PATH
15373 shlibpath_overrides_runpath=no
15374 hardcode_into_libs=yes
15375 dynamic_linker='ldqnx.so'
15378 openbsd*)
15379 version_type=sunos
15380 sys_lib_dlsearch_path_spec="/usr/lib"
15381 need_lib_prefix=no
15382 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
15383 case $host_os in
15384 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
15385 *) need_version=no ;;
15386 esac
15387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15388 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
15389 shlibpath_var=LD_LIBRARY_PATH
15390 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15391 case $host_os in
15392 openbsd2.[89] | openbsd2.[89].*)
15393 shlibpath_overrides_runpath=no
15396 shlibpath_overrides_runpath=yes
15398 esac
15399 else
15400 shlibpath_overrides_runpath=yes
15404 os2*)
15405 libname_spec='$name'
15406 shrext_cmds=".dll"
15407 need_lib_prefix=no
15408 library_names_spec='$libname${shared_ext} $libname.a'
15409 dynamic_linker='OS/2 ld.exe'
15410 shlibpath_var=LIBPATH
15413 osf3* | osf4* | osf5*)
15414 version_type=osf
15415 need_lib_prefix=no
15416 need_version=no
15417 soname_spec='${libname}${release}${shared_ext}$major'
15418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15419 shlibpath_var=LD_LIBRARY_PATH
15420 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
15421 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
15424 rdos*)
15425 dynamic_linker=no
15428 solaris*)
15429 version_type=linux
15430 need_lib_prefix=no
15431 need_version=no
15432 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15433 soname_spec='${libname}${release}${shared_ext}$major'
15434 shlibpath_var=LD_LIBRARY_PATH
15435 shlibpath_overrides_runpath=yes
15436 hardcode_into_libs=yes
15437 # ldd complains unless libraries are executable
15438 postinstall_cmds='chmod +x $lib'
15441 sunos4*)
15442 version_type=sunos
15443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
15444 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
15445 shlibpath_var=LD_LIBRARY_PATH
15446 shlibpath_overrides_runpath=yes
15447 if test "$with_gnu_ld" = yes; then
15448 need_lib_prefix=no
15450 need_version=yes
15453 sysv4 | sysv4.3*)
15454 version_type=linux
15455 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15456 soname_spec='${libname}${release}${shared_ext}$major'
15457 shlibpath_var=LD_LIBRARY_PATH
15458 case $host_vendor in
15459 sni)
15460 shlibpath_overrides_runpath=no
15461 need_lib_prefix=no
15462 runpath_var=LD_RUN_PATH
15464 siemens)
15465 need_lib_prefix=no
15467 motorola)
15468 need_lib_prefix=no
15469 need_version=no
15470 shlibpath_overrides_runpath=no
15471 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
15473 esac
15476 sysv4*MP*)
15477 if test -d /usr/nec ;then
15478 version_type=linux
15479 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
15480 soname_spec='$libname${shared_ext}.$major'
15481 shlibpath_var=LD_LIBRARY_PATH
15485 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
15486 version_type=freebsd-elf
15487 need_lib_prefix=no
15488 need_version=no
15489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
15490 soname_spec='${libname}${release}${shared_ext}$major'
15491 shlibpath_var=LD_LIBRARY_PATH
15492 shlibpath_overrides_runpath=yes
15493 hardcode_into_libs=yes
15494 if test "$with_gnu_ld" = yes; then
15495 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
15496 else
15497 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
15498 case $host_os in
15499 sco3.2v5*)
15500 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
15502 esac
15504 sys_lib_dlsearch_path_spec='/usr/lib'
15507 tpf*)
15508 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
15509 version_type=linux
15510 need_lib_prefix=no
15511 need_version=no
15512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15513 shlibpath_var=LD_LIBRARY_PATH
15514 shlibpath_overrides_runpath=no
15515 hardcode_into_libs=yes
15518 uts4*)
15519 version_type=linux
15520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
15521 soname_spec='${libname}${release}${shared_ext}$major'
15522 shlibpath_var=LD_LIBRARY_PATH
15526 dynamic_linker=no
15528 esac
15529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
15530 $as_echo "$dynamic_linker" >&6; }
15531 test "$dynamic_linker" = no && can_build_shared=no
15533 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
15534 if test "$GCC" = yes; then
15535 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
15538 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
15539 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
15541 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
15542 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
15582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
15583 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
15584 hardcode_action_FC=
15585 if test -n "$hardcode_libdir_flag_spec_FC" ||
15586 test -n "$runpath_var_FC" ||
15587 test "X$hardcode_automatic_FC" = "Xyes" ; then
15589 # We can hardcode non-existent directories.
15590 if test "$hardcode_direct_FC" != no &&
15591 # If the only mechanism to avoid hardcoding is shlibpath_var, we
15592 # have to relink, otherwise we might link with an installed library
15593 # when we should be linking with a yet-to-be-installed one
15594 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no &&
15595 test "$hardcode_minus_L_FC" != no; then
15596 # Linking always hardcodes the temporary library directory.
15597 hardcode_action_FC=relink
15598 else
15599 # We can link without hardcoding, and we can hardcode nonexisting dirs.
15600 hardcode_action_FC=immediate
15602 else
15603 # We cannot hardcode anything, or else we can only hardcode existing
15604 # directories.
15605 hardcode_action_FC=unsupported
15607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_FC" >&5
15608 $as_echo "$hardcode_action_FC" >&6; }
15610 if test "$hardcode_action_FC" = relink ||
15611 test "$inherit_rpath_FC" = yes; then
15612 # Fast installation is not supported
15613 enable_fast_install=no
15614 elif test "$shlibpath_overrides_runpath" = yes ||
15615 test "$enable_shared" = no; then
15616 # Fast installation is not necessary
15617 enable_fast_install=needless
15626 fi # test -n "$compiler"
15628 GCC=$lt_save_GCC
15629 CC="$lt_save_CC"
15630 fi # test "$_lt_disable_FC" != yes
15632 ac_ext=c
15633 ac_cpp='$CPP $CPPFLAGS'
15634 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15635 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15636 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15640 # extra LD Flags which are required for targets
15641 case "${host}" in
15642 *-darwin*)
15643 # Darwin needs -single_module when linking libgfortran
15644 extra_ldflags_libgfortran=-Wl,-single_module
15646 esac
15649 # We need a working compiler at that point, otherwise give a clear
15650 # error message and bail out.
15652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the GNU Fortran compiler is working" >&5
15653 $as_echo_n "checking whether the GNU Fortran compiler is working... " >&6; }
15654 ac_ext=${ac_fc_srcext-f}
15655 ac_compile='$FC -c $FCFLAGS $ac_fcflags_srcext conftest.$ac_ext >&5'
15656 ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $ac_fcflags_srcext conftest.$ac_ext $LIBS >&5'
15657 ac_compiler_gnu=$ac_cv_fc_compiler_gnu
15659 cat > conftest.$ac_ext <<_ACEOF
15661 program foo
15662 real, parameter :: bar = sin (12.34 / 2.5)
15663 end program foo
15664 _ACEOF
15665 if ac_fn_fc_try_compile "$LINENO"; then :
15666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15667 $as_echo "yes" >&6; }
15668 else
15669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15670 $as_echo "no" >&6; }
15671 as_fn_error "GNU Fortran is not working; please report a bug in http://gcc.gnu.org/bugzilla, attaching $PWD/config.log" "$LINENO" 5
15674 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15675 ac_ext=c
15676 ac_cpp='$CPP $CPPFLAGS'
15677 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15678 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15679 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15683 # Check whether --enable-largefile was given.
15684 if test "${enable_largefile+set}" = set; then :
15685 enableval=$enable_largefile;
15688 if test "$enable_largefile" != no; then
15690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
15691 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
15692 if test "${ac_cv_sys_largefile_CC+set}" = set; then :
15693 $as_echo_n "(cached) " >&6
15694 else
15695 ac_cv_sys_largefile_CC=no
15696 if test "$GCC" != yes; then
15697 ac_save_CC=$CC
15698 while :; do
15699 # IRIX 6.2 and later do not support large files by default,
15700 # so use the C compiler's -n32 option if that helps.
15701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15702 /* end confdefs.h. */
15703 #include <sys/types.h>
15704 /* Check that off_t can represent 2**63 - 1 correctly.
15705 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15706 since some C++ compilers masquerading as C compilers
15707 incorrectly reject 9223372036854775807. */
15708 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15709 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15710 && LARGE_OFF_T % 2147483647 == 1)
15711 ? 1 : -1];
15713 main ()
15717 return 0;
15719 _ACEOF
15720 if ac_fn_c_try_compile "$LINENO"; then :
15721 break
15723 rm -f core conftest.err conftest.$ac_objext
15724 CC="$CC -n32"
15725 if ac_fn_c_try_compile "$LINENO"; then :
15726 ac_cv_sys_largefile_CC=' -n32'; break
15728 rm -f core conftest.err conftest.$ac_objext
15729 break
15730 done
15731 CC=$ac_save_CC
15732 rm -f conftest.$ac_ext
15735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
15736 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
15737 if test "$ac_cv_sys_largefile_CC" != no; then
15738 CC=$CC$ac_cv_sys_largefile_CC
15741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
15742 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
15743 if test "${ac_cv_sys_file_offset_bits+set}" = set; then :
15744 $as_echo_n "(cached) " >&6
15745 else
15746 while :; do
15747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15748 /* end confdefs.h. */
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=no; break
15769 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15771 /* end confdefs.h. */
15772 #define _FILE_OFFSET_BITS 64
15773 #include <sys/types.h>
15774 /* Check that off_t can represent 2**63 - 1 correctly.
15775 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15776 since some C++ compilers masquerading as C compilers
15777 incorrectly reject 9223372036854775807. */
15778 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15779 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15780 && LARGE_OFF_T % 2147483647 == 1)
15781 ? 1 : -1];
15783 main ()
15787 return 0;
15789 _ACEOF
15790 if ac_fn_c_try_compile "$LINENO"; then :
15791 ac_cv_sys_file_offset_bits=64; break
15793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15794 ac_cv_sys_file_offset_bits=unknown
15795 break
15796 done
15798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
15799 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
15800 case $ac_cv_sys_file_offset_bits in #(
15801 no | unknown) ;;
15803 cat >>confdefs.h <<_ACEOF
15804 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
15805 _ACEOF
15807 esac
15808 rm -rf conftest*
15809 if test $ac_cv_sys_file_offset_bits = unknown; then
15810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
15811 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
15812 if test "${ac_cv_sys_large_files+set}" = set; then :
15813 $as_echo_n "(cached) " >&6
15814 else
15815 while :; do
15816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15817 /* end confdefs.h. */
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=no; break
15838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15840 /* end confdefs.h. */
15841 #define _LARGE_FILES 1
15842 #include <sys/types.h>
15843 /* Check that off_t can represent 2**63 - 1 correctly.
15844 We can't simply define LARGE_OFF_T to be 9223372036854775807,
15845 since some C++ compilers masquerading as C compilers
15846 incorrectly reject 9223372036854775807. */
15847 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
15848 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
15849 && LARGE_OFF_T % 2147483647 == 1)
15850 ? 1 : -1];
15852 main ()
15856 return 0;
15858 _ACEOF
15859 if ac_fn_c_try_compile "$LINENO"; then :
15860 ac_cv_sys_large_files=1; break
15862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15863 ac_cv_sys_large_files=unknown
15864 break
15865 done
15867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
15868 $as_echo "$ac_cv_sys_large_files" >&6; }
15869 case $ac_cv_sys_large_files in #(
15870 no | unknown) ;;
15872 cat >>confdefs.h <<_ACEOF
15873 #define _LARGE_FILES $ac_cv_sys_large_files
15874 _ACEOF
15876 esac
15877 rm -rf conftest*
15882 # Types
15883 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
15884 if test "x$ac_cv_type_off_t" = x""yes; then :
15886 else
15888 cat >>confdefs.h <<_ACEOF
15889 #define off_t long int
15890 _ACEOF
15895 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
15896 if test "x$ac_cv_type_intptr_t" = x""yes; then :
15898 $as_echo "#define HAVE_INTPTR_T 1" >>confdefs.h
15900 else
15901 for ac_type in 'int' 'long int' 'long long int'; do
15902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15903 /* end confdefs.h. */
15904 $ac_includes_default
15906 main ()
15908 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
15909 test_array [0] = 0
15912 return 0;
15914 _ACEOF
15915 if ac_fn_c_try_compile "$LINENO"; then :
15917 cat >>confdefs.h <<_ACEOF
15918 #define intptr_t $ac_type
15919 _ACEOF
15921 ac_type=
15923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15924 test -z "$ac_type" && break
15925 done
15930 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "$ac_includes_default"
15931 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
15933 $as_echo "#define HAVE_UINTPTR_T 1" >>confdefs.h
15935 else
15936 for ac_type in 'unsigned int' 'unsigned long int' \
15937 'unsigned long long int'; do
15938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15939 /* end confdefs.h. */
15940 $ac_includes_default
15942 main ()
15944 static int test_array [1 - 2 * !(sizeof (void *) <= sizeof ($ac_type))];
15945 test_array [0] = 0
15948 return 0;
15950 _ACEOF
15951 if ac_fn_c_try_compile "$LINENO"; then :
15953 cat >>confdefs.h <<_ACEOF
15954 #define uintptr_t $ac_type
15955 _ACEOF
15957 ac_type=
15959 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15960 test -z "$ac_type" && break
15961 done
15965 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
15966 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
15968 cat >>confdefs.h <<_ACEOF
15969 #define HAVE_PTRDIFF_T 1
15970 _ACEOF
15976 # check header files (we assume C89 is available, so don't check for that)
15980 for ac_header in $ac_header_list
15981 do :
15982 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15983 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
15985 eval as_val=\$$as_ac_Header
15986 if test "x$as_val" = x""yes; then :
15987 cat >>confdefs.h <<_ACEOF
15988 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15989 _ACEOF
15993 done
16029 inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'`
16031 acx_cv_header_stdint=stddef.h
16032 acx_cv_header_stdint_kind="(already complete)"
16033 for i in stdint.h $inttype_headers; do
16034 unset ac_cv_type_uintptr_t
16035 unset ac_cv_type_uintmax_t
16036 unset ac_cv_type_int_least32_t
16037 unset ac_cv_type_int_fast32_t
16038 unset ac_cv_type_uint64_t
16039 $as_echo_n "looking for a compliant stdint.h in $i, " >&6
16040 ac_fn_c_check_type "$LINENO" "uintmax_t" "ac_cv_type_uintmax_t" "#include <sys/types.h>
16041 #include <$i>
16043 if test "x$ac_cv_type_uintmax_t" = x""yes; then :
16044 acx_cv_header_stdint=$i
16045 else
16046 continue
16049 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16050 #include <$i>
16052 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
16054 else
16055 acx_cv_header_stdint_kind="(mostly complete)"
16058 ac_fn_c_check_type "$LINENO" "int_least32_t" "ac_cv_type_int_least32_t" "#include <sys/types.h>
16059 #include <$i>
16061 if test "x$ac_cv_type_int_least32_t" = x""yes; then :
16063 else
16064 acx_cv_header_stdint_kind="(mostly complete)"
16067 ac_fn_c_check_type "$LINENO" "int_fast32_t" "ac_cv_type_int_fast32_t" "#include <sys/types.h>
16068 #include <$i>
16070 if test "x$ac_cv_type_int_fast32_t" = x""yes; then :
16072 else
16073 acx_cv_header_stdint_kind="(mostly complete)"
16076 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16077 #include <$i>
16079 if test "x$ac_cv_type_uint64_t" = x""yes; then :
16081 else
16082 acx_cv_header_stdint_kind="(lacks uint64_t)"
16085 break
16086 done
16087 if test "$acx_cv_header_stdint" = stddef.h; then
16088 acx_cv_header_stdint_kind="(lacks uintmax_t)"
16089 for i in stdint.h $inttype_headers; do
16090 unset ac_cv_type_uintptr_t
16091 unset ac_cv_type_uint32_t
16092 unset ac_cv_type_uint64_t
16093 $as_echo_n "looking for an incomplete stdint.h in $i, " >&6
16094 ac_fn_c_check_type "$LINENO" "uint32_t" "ac_cv_type_uint32_t" "#include <sys/types.h>
16095 #include <$i>
16097 if test "x$ac_cv_type_uint32_t" = x""yes; then :
16098 acx_cv_header_stdint=$i
16099 else
16100 continue
16103 ac_fn_c_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "#include <sys/types.h>
16104 #include <$i>
16106 if test "x$ac_cv_type_uint64_t" = x""yes; then :
16110 ac_fn_c_check_type "$LINENO" "uintptr_t" "ac_cv_type_uintptr_t" "#include <sys/types.h>
16111 #include <$i>
16113 if test "x$ac_cv_type_uintptr_t" = x""yes; then :
16117 break
16118 done
16120 if test "$acx_cv_header_stdint" = stddef.h; then
16121 acx_cv_header_stdint_kind="(u_intXX_t style)"
16122 for i in sys/types.h $inttype_headers; do
16123 unset ac_cv_type_u_int32_t
16124 unset ac_cv_type_u_int64_t
16125 $as_echo_n "looking for u_intXX_t types in $i, " >&6
16126 ac_fn_c_check_type "$LINENO" "u_int32_t" "ac_cv_type_u_int32_t" "#include <sys/types.h>
16127 #include <$i>
16129 if test "x$ac_cv_type_u_int32_t" = x""yes; then :
16130 acx_cv_header_stdint=$i
16131 else
16132 continue
16135 ac_fn_c_check_type "$LINENO" "u_int64_t" "ac_cv_type_u_int64_t" "#include <sys/types.h>
16136 #include <$i>
16138 if test "x$ac_cv_type_u_int64_t" = x""yes; then :
16142 break
16143 done
16145 if test "$acx_cv_header_stdint" = stddef.h; then
16146 acx_cv_header_stdint_kind="(using manual detection)"
16149 test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no
16150 test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no
16151 test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no
16152 test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no
16153 test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no
16155 # ----------------- Summarize what we found so far
16157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking what to include in gstdint.h" >&5
16158 $as_echo_n "checking what to include in gstdint.h... " >&6; }
16160 case `$as_basename -- gstdint.h ||
16161 $as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \
16162 Xgstdint.h : 'X\(//\)$' \| \
16163 Xgstdint.h : 'X\(/\)' \| . 2>/dev/null ||
16164 $as_echo X/gstdint.h |
16165 sed '/^.*\/\([^/][^/]*\)\/*$/{
16166 s//\1/
16169 /^X\/\(\/\/\)$/{
16170 s//\1/
16173 /^X\/\(\/\).*/{
16174 s//\1/
16177 s/.*/./; q'` in
16178 stdint.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16179 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16180 inttypes.h) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: are you sure you want it there?" >&5
16181 $as_echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;;
16182 *) ;;
16183 esac
16185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5
16186 $as_echo "$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6; }
16188 # ----------------- done included file, check C basic types --------
16190 # Lacking an uintptr_t? Test size of void *
16191 case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in
16192 stddef.h:* | *:no) # The cast to long int works around a bug in the HP C Compiler
16193 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16194 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16195 # This bug is HP SR number 8606223364.
16196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
16197 $as_echo_n "checking size of void *... " >&6; }
16198 if test "${ac_cv_sizeof_void_p+set}" = set; then :
16199 $as_echo_n "(cached) " >&6
16200 else
16201 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
16203 else
16204 if test "$ac_cv_type_void_p" = yes; then
16205 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16206 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16207 { as_fn_set_status 77
16208 as_fn_error "cannot compute sizeof (void *)
16209 See \`config.log' for more details." "$LINENO" 5; }; }
16210 else
16211 ac_cv_sizeof_void_p=0
16216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
16217 $as_echo "$ac_cv_sizeof_void_p" >&6; }
16221 cat >>confdefs.h <<_ACEOF
16222 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
16223 _ACEOF
16226 esac
16228 # Lacking an uint64_t? Test size of long
16229 case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in
16230 stddef.h:*:* | *:no:no) # The cast to long int works around a bug in the HP C Compiler
16231 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16232 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16233 # This bug is HP SR number 8606223364.
16234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
16235 $as_echo_n "checking size of long... " >&6; }
16236 if test "${ac_cv_sizeof_long+set}" = set; then :
16237 $as_echo_n "(cached) " >&6
16238 else
16239 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
16241 else
16242 if test "$ac_cv_type_long" = yes; then
16243 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16244 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16245 { as_fn_set_status 77
16246 as_fn_error "cannot compute sizeof (long)
16247 See \`config.log' for more details." "$LINENO" 5; }; }
16248 else
16249 ac_cv_sizeof_long=0
16254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
16255 $as_echo "$ac_cv_sizeof_long" >&6; }
16259 cat >>confdefs.h <<_ACEOF
16260 #define SIZEOF_LONG $ac_cv_sizeof_long
16261 _ACEOF
16264 esac
16266 if test $acx_cv_header_stdint = stddef.h; then
16267 # Lacking a good header? Test size of everything and deduce all types.
16268 # The cast to long int works around a bug in the HP C Compiler
16269 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16270 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16271 # This bug is HP SR number 8606223364.
16272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
16273 $as_echo_n "checking size of int... " >&6; }
16274 if test "${ac_cv_sizeof_int+set}" = set; then :
16275 $as_echo_n "(cached) " >&6
16276 else
16277 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
16279 else
16280 if test "$ac_cv_type_int" = yes; then
16281 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16282 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16283 { as_fn_set_status 77
16284 as_fn_error "cannot compute sizeof (int)
16285 See \`config.log' for more details." "$LINENO" 5; }; }
16286 else
16287 ac_cv_sizeof_int=0
16292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
16293 $as_echo "$ac_cv_sizeof_int" >&6; }
16297 cat >>confdefs.h <<_ACEOF
16298 #define SIZEOF_INT $ac_cv_sizeof_int
16299 _ACEOF
16302 # The cast to long int works around a bug in the HP C Compiler
16303 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16304 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16305 # This bug is HP SR number 8606223364.
16306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of short" >&5
16307 $as_echo_n "checking size of short... " >&6; }
16308 if test "${ac_cv_sizeof_short+set}" = set; then :
16309 $as_echo_n "(cached) " >&6
16310 else
16311 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (short))" "ac_cv_sizeof_short" "$ac_includes_default"; then :
16313 else
16314 if test "$ac_cv_type_short" = yes; then
16315 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16316 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16317 { as_fn_set_status 77
16318 as_fn_error "cannot compute sizeof (short)
16319 See \`config.log' for more details." "$LINENO" 5; }; }
16320 else
16321 ac_cv_sizeof_short=0
16326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_short" >&5
16327 $as_echo "$ac_cv_sizeof_short" >&6; }
16331 cat >>confdefs.h <<_ACEOF
16332 #define SIZEOF_SHORT $ac_cv_sizeof_short
16333 _ACEOF
16336 # The cast to long int works around a bug in the HP C Compiler
16337 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
16338 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
16339 # This bug is HP SR number 8606223364.
16340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of char" >&5
16341 $as_echo_n "checking size of char... " >&6; }
16342 if test "${ac_cv_sizeof_char+set}" = set; then :
16343 $as_echo_n "(cached) " >&6
16344 else
16345 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (char))" "ac_cv_sizeof_char" "$ac_includes_default"; then :
16347 else
16348 if test "$ac_cv_type_char" = yes; then
16349 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
16350 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
16351 { as_fn_set_status 77
16352 as_fn_error "cannot compute sizeof (char)
16353 See \`config.log' for more details." "$LINENO" 5; }; }
16354 else
16355 ac_cv_sizeof_char=0
16360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_char" >&5
16361 $as_echo "$ac_cv_sizeof_char" >&6; }
16365 cat >>confdefs.h <<_ACEOF
16366 #define SIZEOF_CHAR $ac_cv_sizeof_char
16367 _ACEOF
16371 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int8_t" >&5
16372 $as_echo_n "checking for type equivalent to int8_t... " >&6; }
16373 case "$ac_cv_sizeof_char" in
16374 1) acx_cv_type_int8_t=char ;;
16375 *) as_fn_error "no 8-bit type, please report a bug" "$LINENO" 5
16376 esac
16377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int8_t" >&5
16378 $as_echo "$acx_cv_type_int8_t" >&6; }
16380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int16_t" >&5
16381 $as_echo_n "checking for type equivalent to int16_t... " >&6; }
16382 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in
16383 2:*) acx_cv_type_int16_t=int ;;
16384 *:2) acx_cv_type_int16_t=short ;;
16385 *) as_fn_error "no 16-bit type, please report a bug" "$LINENO" 5
16386 esac
16387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int16_t" >&5
16388 $as_echo "$acx_cv_type_int16_t" >&6; }
16390 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int32_t" >&5
16391 $as_echo_n "checking for type equivalent to int32_t... " >&6; }
16392 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in
16393 4:*) acx_cv_type_int32_t=int ;;
16394 *:4) acx_cv_type_int32_t=long ;;
16395 *) as_fn_error "no 32-bit type, please report a bug" "$LINENO" 5
16396 esac
16397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_int32_t" >&5
16398 $as_echo "$acx_cv_type_int32_t" >&6; }
16401 # These tests are here to make the output prettier
16403 if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then
16404 case "$ac_cv_sizeof_long" in
16405 8) acx_cv_type_int64_t=long ;;
16406 esac
16407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to int64_t" >&5
16408 $as_echo_n "checking for type equivalent to int64_t... " >&6; }
16409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5
16410 $as_echo "${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6; }
16413 # Now we can use the above types
16415 if test "$ac_cv_type_uintptr_t" != yes; then
16416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for type equivalent to intptr_t" >&5
16417 $as_echo_n "checking for type equivalent to intptr_t... " >&6; }
16418 case $ac_cv_sizeof_void_p in
16419 2) acx_cv_type_intptr_t=int16_t ;;
16420 4) acx_cv_type_intptr_t=int32_t ;;
16421 8) acx_cv_type_intptr_t=int64_t ;;
16422 *) as_fn_error "no equivalent for intptr_t, please report a bug" "$LINENO" 5
16423 esac
16424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $acx_cv_type_intptr_t" >&5
16425 $as_echo "$acx_cv_type_intptr_t" >&6; }
16428 # ----------------- done all checks, emit header -------------
16429 ac_config_commands="$ac_config_commands gstdint.h"
16434 ac_fn_c_check_member "$LINENO" "struct stat" "st_blksize" "ac_cv_member_struct_stat_st_blksize" "$ac_includes_default"
16435 if test "x$ac_cv_member_struct_stat_st_blksize" = x""yes; then :
16437 cat >>confdefs.h <<_ACEOF
16438 #define HAVE_STRUCT_STAT_ST_BLKSIZE 1
16439 _ACEOF
16443 ac_fn_c_check_member "$LINENO" "struct stat" "st_blocks" "ac_cv_member_struct_stat_st_blocks" "$ac_includes_default"
16444 if test "x$ac_cv_member_struct_stat_st_blocks" = x""yes; then :
16446 cat >>confdefs.h <<_ACEOF
16447 #define HAVE_STRUCT_STAT_ST_BLOCKS 1
16448 _ACEOF
16452 ac_fn_c_check_member "$LINENO" "struct stat" "st_rdev" "ac_cv_member_struct_stat_st_rdev" "$ac_includes_default"
16453 if test "x$ac_cv_member_struct_stat_st_rdev" = x""yes; then :
16455 cat >>confdefs.h <<_ACEOF
16456 #define HAVE_STRUCT_STAT_ST_RDEV 1
16457 _ACEOF
16463 # Check for library functions.
16464 if test "x${with_newlib}" = "xyes"; then
16465 # We are being configured with a cross compiler. AC_REPLACE_FUNCS
16466 # may not work correctly, because the compiler may not be able to
16467 # link executables.
16469 $as_echo "#define HAVE_MKSTEMP 1" >>confdefs.h
16472 $as_echo "#define HAVE_STRTOF 1" >>confdefs.h
16475 $as_echo "#define HAVE_SNPRINTF 1" >>confdefs.h
16478 $as_echo "#define HAVE_STRCASESTR 1" >>confdefs.h
16481 $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
16484 $as_echo "#define HAVE_LOCALTIME_R 1" >>confdefs.h
16487 $as_echo "#define HAVE_GMTIME_R 1" >>confdefs.h
16490 $as_echo "#define HAVE_STRNLEN 1" >>confdefs.h
16493 $as_echo "#define HAVE_STRNDUP 1" >>confdefs.h
16496 $as_echo "#define HAVE_STRTOK_R 1" >>confdefs.h
16499 # At some point, we should differentiate between architectures
16500 # like x86, which have long double versions, and alpha/powerpc/etc.,
16501 # which don't. For the time being, punt.
16502 if test x"long_double_math_on_this_cpu" = x"yes"; then
16504 $as_echo "#define HAVE_STRTOLD 1" >>confdefs.h
16507 else
16511 for ac_func in $ac_func_list
16512 do :
16513 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
16514 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
16515 eval as_val=\$$as_ac_var
16516 if test "x$as_val" = x""yes; then :
16517 cat >>confdefs.h <<_ACEOF
16518 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
16519 _ACEOF
16522 done
16647 # Check strerror_r, cannot be above as versions with two and three arguments exist
16649 ac_save_CFLAGS="$CFLAGS"
16650 CFLAGS="-Wimplicit-function-declaration -Werror"
16651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16652 /* end confdefs.h. */
16653 #define _GNU_SOURCE 1
16654 #include <string.h>
16655 #include <locale.h>
16657 main ()
16659 char s[128]; strerror_r(5, s, 128);
16661 return 0;
16663 _ACEOF
16664 if ac_fn_c_try_compile "$LINENO"; then :
16666 $as_echo "#define HAVE_STRERROR_R 1" >>confdefs.h
16669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16670 CFLAGS="$ac_save_CFLAGS"
16672 ac_save_CFLAGS="$CFLAGS"
16673 CFLAGS="-Wimplicit-function-declaration -Werror"
16674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16675 /* end confdefs.h. */
16676 #define _GNU_SOURCE 1
16677 #include <string.h>
16678 #include <locale.h>
16680 main ()
16682 char s[128]; strerror_r(5, s);
16684 return 0;
16686 _ACEOF
16687 if ac_fn_c_try_compile "$LINENO"; then :
16689 $as_echo "#define HAVE_STRERROR_R_2ARGS 1" >>confdefs.h
16692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16693 CFLAGS="$ac_save_CFLAGS"
16696 # Check for C99 (and other IEEE) math functions
16697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin in -lm" >&5
16698 $as_echo_n "checking for sin in -lm... " >&6; }
16699 if test "${ac_cv_lib_m_sin+set}" = set; then :
16700 $as_echo_n "(cached) " >&6
16701 else
16702 ac_check_lib_save_LIBS=$LIBS
16703 LIBS="-lm $LIBS"
16704 if test x$gcc_no_link = xyes; then
16705 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16708 /* end confdefs.h. */
16710 /* Override any GCC internal prototype to avoid an error.
16711 Use char because int might match the return type of a GCC
16712 builtin and then its argument prototype would still apply. */
16713 #ifdef __cplusplus
16714 extern "C"
16715 #endif
16716 char sin ();
16718 main ()
16720 return sin ();
16722 return 0;
16724 _ACEOF
16725 if ac_fn_c_try_link "$LINENO"; then :
16726 ac_cv_lib_m_sin=yes
16727 else
16728 ac_cv_lib_m_sin=no
16730 rm -f core conftest.err conftest.$ac_objext \
16731 conftest$ac_exeext conftest.$ac_ext
16732 LIBS=$ac_check_lib_save_LIBS
16734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_sin" >&5
16735 $as_echo "$ac_cv_lib_m_sin" >&6; }
16736 if test "x$ac_cv_lib_m_sin" = x""yes; then :
16737 cat >>confdefs.h <<_ACEOF
16738 #define HAVE_LIBM 1
16739 _ACEOF
16741 LIBS="-lm $LIBS"
16751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosf" >&5
16752 $as_echo_n "checking for acosf... " >&6; }
16753 if test "${gcc_cv_math_func_acosf+set}" = set; then :
16754 $as_echo_n "(cached) " >&6
16755 else
16756 if test x$gcc_no_link = xyes; then
16757 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16760 /* end confdefs.h. */
16762 #ifdef HAVE_COMPLEX_H
16763 #include <complex.h>
16764 #endif
16765 #ifdef HAVE_MATH_H
16766 #include <math.h>
16767 #endif
16769 int (*ptr)() = (int (*)())acosf;
16772 main ()
16774 return 0;
16777 _ACEOF
16778 if ac_fn_c_try_link "$LINENO"; then :
16779 gcc_cv_math_func_acosf=yes
16780 else
16781 gcc_cv_math_func_acosf=no
16783 rm -f core conftest.err conftest.$ac_objext \
16784 conftest$ac_exeext conftest.$ac_ext
16786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosf" >&5
16787 $as_echo "$gcc_cv_math_func_acosf" >&6; }
16788 if test $gcc_cv_math_func_acosf = yes; then
16790 cat >>confdefs.h <<_ACEOF
16791 #define HAVE_ACOSF 1
16792 _ACEOF
16799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acos" >&5
16800 $as_echo_n "checking for acos... " >&6; }
16801 if test "${gcc_cv_math_func_acos+set}" = set; then :
16802 $as_echo_n "(cached) " >&6
16803 else
16804 if test x$gcc_no_link = xyes; then
16805 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16808 /* end confdefs.h. */
16810 #ifdef HAVE_COMPLEX_H
16811 #include <complex.h>
16812 #endif
16813 #ifdef HAVE_MATH_H
16814 #include <math.h>
16815 #endif
16817 int (*ptr)() = (int (*)())acos;
16820 main ()
16822 return 0;
16825 _ACEOF
16826 if ac_fn_c_try_link "$LINENO"; then :
16827 gcc_cv_math_func_acos=yes
16828 else
16829 gcc_cv_math_func_acos=no
16831 rm -f core conftest.err conftest.$ac_objext \
16832 conftest$ac_exeext conftest.$ac_ext
16834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acos" >&5
16835 $as_echo "$gcc_cv_math_func_acos" >&6; }
16836 if test $gcc_cv_math_func_acos = yes; then
16838 cat >>confdefs.h <<_ACEOF
16839 #define HAVE_ACOS 1
16840 _ACEOF
16847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosl" >&5
16848 $as_echo_n "checking for acosl... " >&6; }
16849 if test "${gcc_cv_math_func_acosl+set}" = set; then :
16850 $as_echo_n "(cached) " >&6
16851 else
16852 if test x$gcc_no_link = xyes; then
16853 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16856 /* end confdefs.h. */
16858 #ifdef HAVE_COMPLEX_H
16859 #include <complex.h>
16860 #endif
16861 #ifdef HAVE_MATH_H
16862 #include <math.h>
16863 #endif
16865 int (*ptr)() = (int (*)())acosl;
16868 main ()
16870 return 0;
16873 _ACEOF
16874 if ac_fn_c_try_link "$LINENO"; then :
16875 gcc_cv_math_func_acosl=yes
16876 else
16877 gcc_cv_math_func_acosl=no
16879 rm -f core conftest.err conftest.$ac_objext \
16880 conftest$ac_exeext conftest.$ac_ext
16882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosl" >&5
16883 $as_echo "$gcc_cv_math_func_acosl" >&6; }
16884 if test $gcc_cv_math_func_acosl = yes; then
16886 cat >>confdefs.h <<_ACEOF
16887 #define HAVE_ACOSL 1
16888 _ACEOF
16895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshf" >&5
16896 $as_echo_n "checking for acoshf... " >&6; }
16897 if test "${gcc_cv_math_func_acoshf+set}" = set; then :
16898 $as_echo_n "(cached) " >&6
16899 else
16900 if test x$gcc_no_link = xyes; then
16901 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16904 /* end confdefs.h. */
16906 #ifdef HAVE_COMPLEX_H
16907 #include <complex.h>
16908 #endif
16909 #ifdef HAVE_MATH_H
16910 #include <math.h>
16911 #endif
16913 int (*ptr)() = (int (*)())acoshf;
16916 main ()
16918 return 0;
16921 _ACEOF
16922 if ac_fn_c_try_link "$LINENO"; then :
16923 gcc_cv_math_func_acoshf=yes
16924 else
16925 gcc_cv_math_func_acoshf=no
16927 rm -f core conftest.err conftest.$ac_objext \
16928 conftest$ac_exeext conftest.$ac_ext
16930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshf" >&5
16931 $as_echo "$gcc_cv_math_func_acoshf" >&6; }
16932 if test $gcc_cv_math_func_acoshf = yes; then
16934 cat >>confdefs.h <<_ACEOF
16935 #define HAVE_ACOSHF 1
16936 _ACEOF
16943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acosh" >&5
16944 $as_echo_n "checking for acosh... " >&6; }
16945 if test "${gcc_cv_math_func_acosh+set}" = set; then :
16946 $as_echo_n "(cached) " >&6
16947 else
16948 if test x$gcc_no_link = xyes; then
16949 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16952 /* end confdefs.h. */
16954 #ifdef HAVE_COMPLEX_H
16955 #include <complex.h>
16956 #endif
16957 #ifdef HAVE_MATH_H
16958 #include <math.h>
16959 #endif
16961 int (*ptr)() = (int (*)())acosh;
16964 main ()
16966 return 0;
16969 _ACEOF
16970 if ac_fn_c_try_link "$LINENO"; then :
16971 gcc_cv_math_func_acosh=yes
16972 else
16973 gcc_cv_math_func_acosh=no
16975 rm -f core conftest.err conftest.$ac_objext \
16976 conftest$ac_exeext conftest.$ac_ext
16978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acosh" >&5
16979 $as_echo "$gcc_cv_math_func_acosh" >&6; }
16980 if test $gcc_cv_math_func_acosh = yes; then
16982 cat >>confdefs.h <<_ACEOF
16983 #define HAVE_ACOSH 1
16984 _ACEOF
16991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for acoshl" >&5
16992 $as_echo_n "checking for acoshl... " >&6; }
16993 if test "${gcc_cv_math_func_acoshl+set}" = set; then :
16994 $as_echo_n "(cached) " >&6
16995 else
16996 if test x$gcc_no_link = xyes; then
16997 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
16999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17000 /* end confdefs.h. */
17002 #ifdef HAVE_COMPLEX_H
17003 #include <complex.h>
17004 #endif
17005 #ifdef HAVE_MATH_H
17006 #include <math.h>
17007 #endif
17009 int (*ptr)() = (int (*)())acoshl;
17012 main ()
17014 return 0;
17017 _ACEOF
17018 if ac_fn_c_try_link "$LINENO"; then :
17019 gcc_cv_math_func_acoshl=yes
17020 else
17021 gcc_cv_math_func_acoshl=no
17023 rm -f core conftest.err conftest.$ac_objext \
17024 conftest$ac_exeext conftest.$ac_ext
17026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_acoshl" >&5
17027 $as_echo "$gcc_cv_math_func_acoshl" >&6; }
17028 if test $gcc_cv_math_func_acoshl = yes; then
17030 cat >>confdefs.h <<_ACEOF
17031 #define HAVE_ACOSHL 1
17032 _ACEOF
17039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinf" >&5
17040 $as_echo_n "checking for asinf... " >&6; }
17041 if test "${gcc_cv_math_func_asinf+set}" = set; then :
17042 $as_echo_n "(cached) " >&6
17043 else
17044 if test x$gcc_no_link = xyes; then
17045 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17048 /* end confdefs.h. */
17050 #ifdef HAVE_COMPLEX_H
17051 #include <complex.h>
17052 #endif
17053 #ifdef HAVE_MATH_H
17054 #include <math.h>
17055 #endif
17057 int (*ptr)() = (int (*)())asinf;
17060 main ()
17062 return 0;
17065 _ACEOF
17066 if ac_fn_c_try_link "$LINENO"; then :
17067 gcc_cv_math_func_asinf=yes
17068 else
17069 gcc_cv_math_func_asinf=no
17071 rm -f core conftest.err conftest.$ac_objext \
17072 conftest$ac_exeext conftest.$ac_ext
17074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinf" >&5
17075 $as_echo "$gcc_cv_math_func_asinf" >&6; }
17076 if test $gcc_cv_math_func_asinf = yes; then
17078 cat >>confdefs.h <<_ACEOF
17079 #define HAVE_ASINF 1
17080 _ACEOF
17087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asin" >&5
17088 $as_echo_n "checking for asin... " >&6; }
17089 if test "${gcc_cv_math_func_asin+set}" = set; then :
17090 $as_echo_n "(cached) " >&6
17091 else
17092 if test x$gcc_no_link = xyes; then
17093 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17096 /* end confdefs.h. */
17098 #ifdef HAVE_COMPLEX_H
17099 #include <complex.h>
17100 #endif
17101 #ifdef HAVE_MATH_H
17102 #include <math.h>
17103 #endif
17105 int (*ptr)() = (int (*)())asin;
17108 main ()
17110 return 0;
17113 _ACEOF
17114 if ac_fn_c_try_link "$LINENO"; then :
17115 gcc_cv_math_func_asin=yes
17116 else
17117 gcc_cv_math_func_asin=no
17119 rm -f core conftest.err conftest.$ac_objext \
17120 conftest$ac_exeext conftest.$ac_ext
17122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asin" >&5
17123 $as_echo "$gcc_cv_math_func_asin" >&6; }
17124 if test $gcc_cv_math_func_asin = yes; then
17126 cat >>confdefs.h <<_ACEOF
17127 #define HAVE_ASIN 1
17128 _ACEOF
17135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinl" >&5
17136 $as_echo_n "checking for asinl... " >&6; }
17137 if test "${gcc_cv_math_func_asinl+set}" = set; then :
17138 $as_echo_n "(cached) " >&6
17139 else
17140 if test x$gcc_no_link = xyes; then
17141 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17144 /* end confdefs.h. */
17146 #ifdef HAVE_COMPLEX_H
17147 #include <complex.h>
17148 #endif
17149 #ifdef HAVE_MATH_H
17150 #include <math.h>
17151 #endif
17153 int (*ptr)() = (int (*)())asinl;
17156 main ()
17158 return 0;
17161 _ACEOF
17162 if ac_fn_c_try_link "$LINENO"; then :
17163 gcc_cv_math_func_asinl=yes
17164 else
17165 gcc_cv_math_func_asinl=no
17167 rm -f core conftest.err conftest.$ac_objext \
17168 conftest$ac_exeext conftest.$ac_ext
17170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinl" >&5
17171 $as_echo "$gcc_cv_math_func_asinl" >&6; }
17172 if test $gcc_cv_math_func_asinl = yes; then
17174 cat >>confdefs.h <<_ACEOF
17175 #define HAVE_ASINL 1
17176 _ACEOF
17183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhf" >&5
17184 $as_echo_n "checking for asinhf... " >&6; }
17185 if test "${gcc_cv_math_func_asinhf+set}" = set; then :
17186 $as_echo_n "(cached) " >&6
17187 else
17188 if test x$gcc_no_link = xyes; then
17189 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17192 /* end confdefs.h. */
17194 #ifdef HAVE_COMPLEX_H
17195 #include <complex.h>
17196 #endif
17197 #ifdef HAVE_MATH_H
17198 #include <math.h>
17199 #endif
17201 int (*ptr)() = (int (*)())asinhf;
17204 main ()
17206 return 0;
17209 _ACEOF
17210 if ac_fn_c_try_link "$LINENO"; then :
17211 gcc_cv_math_func_asinhf=yes
17212 else
17213 gcc_cv_math_func_asinhf=no
17215 rm -f core conftest.err conftest.$ac_objext \
17216 conftest$ac_exeext conftest.$ac_ext
17218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhf" >&5
17219 $as_echo "$gcc_cv_math_func_asinhf" >&6; }
17220 if test $gcc_cv_math_func_asinhf = yes; then
17222 cat >>confdefs.h <<_ACEOF
17223 #define HAVE_ASINHF 1
17224 _ACEOF
17231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinh" >&5
17232 $as_echo_n "checking for asinh... " >&6; }
17233 if test "${gcc_cv_math_func_asinh+set}" = set; then :
17234 $as_echo_n "(cached) " >&6
17235 else
17236 if test x$gcc_no_link = xyes; then
17237 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17240 /* end confdefs.h. */
17242 #ifdef HAVE_COMPLEX_H
17243 #include <complex.h>
17244 #endif
17245 #ifdef HAVE_MATH_H
17246 #include <math.h>
17247 #endif
17249 int (*ptr)() = (int (*)())asinh;
17252 main ()
17254 return 0;
17257 _ACEOF
17258 if ac_fn_c_try_link "$LINENO"; then :
17259 gcc_cv_math_func_asinh=yes
17260 else
17261 gcc_cv_math_func_asinh=no
17263 rm -f core conftest.err conftest.$ac_objext \
17264 conftest$ac_exeext conftest.$ac_ext
17266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinh" >&5
17267 $as_echo "$gcc_cv_math_func_asinh" >&6; }
17268 if test $gcc_cv_math_func_asinh = yes; then
17270 cat >>confdefs.h <<_ACEOF
17271 #define HAVE_ASINH 1
17272 _ACEOF
17279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for asinhl" >&5
17280 $as_echo_n "checking for asinhl... " >&6; }
17281 if test "${gcc_cv_math_func_asinhl+set}" = set; then :
17282 $as_echo_n "(cached) " >&6
17283 else
17284 if test x$gcc_no_link = xyes; then
17285 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17288 /* end confdefs.h. */
17290 #ifdef HAVE_COMPLEX_H
17291 #include <complex.h>
17292 #endif
17293 #ifdef HAVE_MATH_H
17294 #include <math.h>
17295 #endif
17297 int (*ptr)() = (int (*)())asinhl;
17300 main ()
17302 return 0;
17305 _ACEOF
17306 if ac_fn_c_try_link "$LINENO"; then :
17307 gcc_cv_math_func_asinhl=yes
17308 else
17309 gcc_cv_math_func_asinhl=no
17311 rm -f core conftest.err conftest.$ac_objext \
17312 conftest$ac_exeext conftest.$ac_ext
17314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_asinhl" >&5
17315 $as_echo "$gcc_cv_math_func_asinhl" >&6; }
17316 if test $gcc_cv_math_func_asinhl = yes; then
17318 cat >>confdefs.h <<_ACEOF
17319 #define HAVE_ASINHL 1
17320 _ACEOF
17327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2f" >&5
17328 $as_echo_n "checking for atan2f... " >&6; }
17329 if test "${gcc_cv_math_func_atan2f+set}" = set; then :
17330 $as_echo_n "(cached) " >&6
17331 else
17332 if test x$gcc_no_link = xyes; then
17333 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17336 /* end confdefs.h. */
17338 #ifdef HAVE_COMPLEX_H
17339 #include <complex.h>
17340 #endif
17341 #ifdef HAVE_MATH_H
17342 #include <math.h>
17343 #endif
17345 int (*ptr)() = (int (*)())atan2f;
17348 main ()
17350 return 0;
17353 _ACEOF
17354 if ac_fn_c_try_link "$LINENO"; then :
17355 gcc_cv_math_func_atan2f=yes
17356 else
17357 gcc_cv_math_func_atan2f=no
17359 rm -f core conftest.err conftest.$ac_objext \
17360 conftest$ac_exeext conftest.$ac_ext
17362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2f" >&5
17363 $as_echo "$gcc_cv_math_func_atan2f" >&6; }
17364 if test $gcc_cv_math_func_atan2f = yes; then
17366 cat >>confdefs.h <<_ACEOF
17367 #define HAVE_ATAN2F 1
17368 _ACEOF
17375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2" >&5
17376 $as_echo_n "checking for atan2... " >&6; }
17377 if test "${gcc_cv_math_func_atan2+set}" = set; then :
17378 $as_echo_n "(cached) " >&6
17379 else
17380 if test x$gcc_no_link = xyes; then
17381 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17384 /* end confdefs.h. */
17386 #ifdef HAVE_COMPLEX_H
17387 #include <complex.h>
17388 #endif
17389 #ifdef HAVE_MATH_H
17390 #include <math.h>
17391 #endif
17393 int (*ptr)() = (int (*)())atan2;
17396 main ()
17398 return 0;
17401 _ACEOF
17402 if ac_fn_c_try_link "$LINENO"; then :
17403 gcc_cv_math_func_atan2=yes
17404 else
17405 gcc_cv_math_func_atan2=no
17407 rm -f core conftest.err conftest.$ac_objext \
17408 conftest$ac_exeext conftest.$ac_ext
17410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2" >&5
17411 $as_echo "$gcc_cv_math_func_atan2" >&6; }
17412 if test $gcc_cv_math_func_atan2 = yes; then
17414 cat >>confdefs.h <<_ACEOF
17415 #define HAVE_ATAN2 1
17416 _ACEOF
17423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan2l" >&5
17424 $as_echo_n "checking for atan2l... " >&6; }
17425 if test "${gcc_cv_math_func_atan2l+set}" = set; then :
17426 $as_echo_n "(cached) " >&6
17427 else
17428 if test x$gcc_no_link = xyes; then
17429 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17432 /* end confdefs.h. */
17434 #ifdef HAVE_COMPLEX_H
17435 #include <complex.h>
17436 #endif
17437 #ifdef HAVE_MATH_H
17438 #include <math.h>
17439 #endif
17441 int (*ptr)() = (int (*)())atan2l;
17444 main ()
17446 return 0;
17449 _ACEOF
17450 if ac_fn_c_try_link "$LINENO"; then :
17451 gcc_cv_math_func_atan2l=yes
17452 else
17453 gcc_cv_math_func_atan2l=no
17455 rm -f core conftest.err conftest.$ac_objext \
17456 conftest$ac_exeext conftest.$ac_ext
17458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan2l" >&5
17459 $as_echo "$gcc_cv_math_func_atan2l" >&6; }
17460 if test $gcc_cv_math_func_atan2l = yes; then
17462 cat >>confdefs.h <<_ACEOF
17463 #define HAVE_ATAN2L 1
17464 _ACEOF
17471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanf" >&5
17472 $as_echo_n "checking for atanf... " >&6; }
17473 if test "${gcc_cv_math_func_atanf+set}" = set; then :
17474 $as_echo_n "(cached) " >&6
17475 else
17476 if test x$gcc_no_link = xyes; then
17477 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17480 /* end confdefs.h. */
17482 #ifdef HAVE_COMPLEX_H
17483 #include <complex.h>
17484 #endif
17485 #ifdef HAVE_MATH_H
17486 #include <math.h>
17487 #endif
17489 int (*ptr)() = (int (*)())atanf;
17492 main ()
17494 return 0;
17497 _ACEOF
17498 if ac_fn_c_try_link "$LINENO"; then :
17499 gcc_cv_math_func_atanf=yes
17500 else
17501 gcc_cv_math_func_atanf=no
17503 rm -f core conftest.err conftest.$ac_objext \
17504 conftest$ac_exeext conftest.$ac_ext
17506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanf" >&5
17507 $as_echo "$gcc_cv_math_func_atanf" >&6; }
17508 if test $gcc_cv_math_func_atanf = yes; then
17510 cat >>confdefs.h <<_ACEOF
17511 #define HAVE_ATANF 1
17512 _ACEOF
17519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atan" >&5
17520 $as_echo_n "checking for atan... " >&6; }
17521 if test "${gcc_cv_math_func_atan+set}" = set; then :
17522 $as_echo_n "(cached) " >&6
17523 else
17524 if test x$gcc_no_link = xyes; then
17525 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17528 /* end confdefs.h. */
17530 #ifdef HAVE_COMPLEX_H
17531 #include <complex.h>
17532 #endif
17533 #ifdef HAVE_MATH_H
17534 #include <math.h>
17535 #endif
17537 int (*ptr)() = (int (*)())atan;
17540 main ()
17542 return 0;
17545 _ACEOF
17546 if ac_fn_c_try_link "$LINENO"; then :
17547 gcc_cv_math_func_atan=yes
17548 else
17549 gcc_cv_math_func_atan=no
17551 rm -f core conftest.err conftest.$ac_objext \
17552 conftest$ac_exeext conftest.$ac_ext
17554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atan" >&5
17555 $as_echo "$gcc_cv_math_func_atan" >&6; }
17556 if test $gcc_cv_math_func_atan = yes; then
17558 cat >>confdefs.h <<_ACEOF
17559 #define HAVE_ATAN 1
17560 _ACEOF
17567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanl" >&5
17568 $as_echo_n "checking for atanl... " >&6; }
17569 if test "${gcc_cv_math_func_atanl+set}" = set; then :
17570 $as_echo_n "(cached) " >&6
17571 else
17572 if test x$gcc_no_link = xyes; then
17573 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17576 /* end confdefs.h. */
17578 #ifdef HAVE_COMPLEX_H
17579 #include <complex.h>
17580 #endif
17581 #ifdef HAVE_MATH_H
17582 #include <math.h>
17583 #endif
17585 int (*ptr)() = (int (*)())atanl;
17588 main ()
17590 return 0;
17593 _ACEOF
17594 if ac_fn_c_try_link "$LINENO"; then :
17595 gcc_cv_math_func_atanl=yes
17596 else
17597 gcc_cv_math_func_atanl=no
17599 rm -f core conftest.err conftest.$ac_objext \
17600 conftest$ac_exeext conftest.$ac_ext
17602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanl" >&5
17603 $as_echo "$gcc_cv_math_func_atanl" >&6; }
17604 if test $gcc_cv_math_func_atanl = yes; then
17606 cat >>confdefs.h <<_ACEOF
17607 #define HAVE_ATANL 1
17608 _ACEOF
17615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhf" >&5
17616 $as_echo_n "checking for atanhf... " >&6; }
17617 if test "${gcc_cv_math_func_atanhf+set}" = set; then :
17618 $as_echo_n "(cached) " >&6
17619 else
17620 if test x$gcc_no_link = xyes; then
17621 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17624 /* end confdefs.h. */
17626 #ifdef HAVE_COMPLEX_H
17627 #include <complex.h>
17628 #endif
17629 #ifdef HAVE_MATH_H
17630 #include <math.h>
17631 #endif
17633 int (*ptr)() = (int (*)())atanhf;
17636 main ()
17638 return 0;
17641 _ACEOF
17642 if ac_fn_c_try_link "$LINENO"; then :
17643 gcc_cv_math_func_atanhf=yes
17644 else
17645 gcc_cv_math_func_atanhf=no
17647 rm -f core conftest.err conftest.$ac_objext \
17648 conftest$ac_exeext conftest.$ac_ext
17650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhf" >&5
17651 $as_echo "$gcc_cv_math_func_atanhf" >&6; }
17652 if test $gcc_cv_math_func_atanhf = yes; then
17654 cat >>confdefs.h <<_ACEOF
17655 #define HAVE_ATANHF 1
17656 _ACEOF
17663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanh" >&5
17664 $as_echo_n "checking for atanh... " >&6; }
17665 if test "${gcc_cv_math_func_atanh+set}" = set; then :
17666 $as_echo_n "(cached) " >&6
17667 else
17668 if test x$gcc_no_link = xyes; then
17669 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17672 /* end confdefs.h. */
17674 #ifdef HAVE_COMPLEX_H
17675 #include <complex.h>
17676 #endif
17677 #ifdef HAVE_MATH_H
17678 #include <math.h>
17679 #endif
17681 int (*ptr)() = (int (*)())atanh;
17684 main ()
17686 return 0;
17689 _ACEOF
17690 if ac_fn_c_try_link "$LINENO"; then :
17691 gcc_cv_math_func_atanh=yes
17692 else
17693 gcc_cv_math_func_atanh=no
17695 rm -f core conftest.err conftest.$ac_objext \
17696 conftest$ac_exeext conftest.$ac_ext
17698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanh" >&5
17699 $as_echo "$gcc_cv_math_func_atanh" >&6; }
17700 if test $gcc_cv_math_func_atanh = yes; then
17702 cat >>confdefs.h <<_ACEOF
17703 #define HAVE_ATANH 1
17704 _ACEOF
17711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for atanhl" >&5
17712 $as_echo_n "checking for atanhl... " >&6; }
17713 if test "${gcc_cv_math_func_atanhl+set}" = set; then :
17714 $as_echo_n "(cached) " >&6
17715 else
17716 if test x$gcc_no_link = xyes; then
17717 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17720 /* end confdefs.h. */
17722 #ifdef HAVE_COMPLEX_H
17723 #include <complex.h>
17724 #endif
17725 #ifdef HAVE_MATH_H
17726 #include <math.h>
17727 #endif
17729 int (*ptr)() = (int (*)())atanhl;
17732 main ()
17734 return 0;
17737 _ACEOF
17738 if ac_fn_c_try_link "$LINENO"; then :
17739 gcc_cv_math_func_atanhl=yes
17740 else
17741 gcc_cv_math_func_atanhl=no
17743 rm -f core conftest.err conftest.$ac_objext \
17744 conftest$ac_exeext conftest.$ac_ext
17746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_atanhl" >&5
17747 $as_echo "$gcc_cv_math_func_atanhl" >&6; }
17748 if test $gcc_cv_math_func_atanhl = yes; then
17750 cat >>confdefs.h <<_ACEOF
17751 #define HAVE_ATANHL 1
17752 _ACEOF
17759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargf" >&5
17760 $as_echo_n "checking for cargf... " >&6; }
17761 if test "${gcc_cv_math_func_cargf+set}" = set; then :
17762 $as_echo_n "(cached) " >&6
17763 else
17764 if test x$gcc_no_link = xyes; then
17765 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17768 /* end confdefs.h. */
17770 #ifdef HAVE_COMPLEX_H
17771 #include <complex.h>
17772 #endif
17773 #ifdef HAVE_MATH_H
17774 #include <math.h>
17775 #endif
17777 int (*ptr)() = (int (*)())cargf;
17780 main ()
17782 return 0;
17785 _ACEOF
17786 if ac_fn_c_try_link "$LINENO"; then :
17787 gcc_cv_math_func_cargf=yes
17788 else
17789 gcc_cv_math_func_cargf=no
17791 rm -f core conftest.err conftest.$ac_objext \
17792 conftest$ac_exeext conftest.$ac_ext
17794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargf" >&5
17795 $as_echo "$gcc_cv_math_func_cargf" >&6; }
17796 if test $gcc_cv_math_func_cargf = yes; then
17798 cat >>confdefs.h <<_ACEOF
17799 #define HAVE_CARGF 1
17800 _ACEOF
17807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for carg" >&5
17808 $as_echo_n "checking for carg... " >&6; }
17809 if test "${gcc_cv_math_func_carg+set}" = set; then :
17810 $as_echo_n "(cached) " >&6
17811 else
17812 if test x$gcc_no_link = xyes; then
17813 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17816 /* end confdefs.h. */
17818 #ifdef HAVE_COMPLEX_H
17819 #include <complex.h>
17820 #endif
17821 #ifdef HAVE_MATH_H
17822 #include <math.h>
17823 #endif
17825 int (*ptr)() = (int (*)())carg;
17828 main ()
17830 return 0;
17833 _ACEOF
17834 if ac_fn_c_try_link "$LINENO"; then :
17835 gcc_cv_math_func_carg=yes
17836 else
17837 gcc_cv_math_func_carg=no
17839 rm -f core conftest.err conftest.$ac_objext \
17840 conftest$ac_exeext conftest.$ac_ext
17842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_carg" >&5
17843 $as_echo "$gcc_cv_math_func_carg" >&6; }
17844 if test $gcc_cv_math_func_carg = yes; then
17846 cat >>confdefs.h <<_ACEOF
17847 #define HAVE_CARG 1
17848 _ACEOF
17855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cargl" >&5
17856 $as_echo_n "checking for cargl... " >&6; }
17857 if test "${gcc_cv_math_func_cargl+set}" = set; then :
17858 $as_echo_n "(cached) " >&6
17859 else
17860 if test x$gcc_no_link = xyes; then
17861 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17864 /* end confdefs.h. */
17866 #ifdef HAVE_COMPLEX_H
17867 #include <complex.h>
17868 #endif
17869 #ifdef HAVE_MATH_H
17870 #include <math.h>
17871 #endif
17873 int (*ptr)() = (int (*)())cargl;
17876 main ()
17878 return 0;
17881 _ACEOF
17882 if ac_fn_c_try_link "$LINENO"; then :
17883 gcc_cv_math_func_cargl=yes
17884 else
17885 gcc_cv_math_func_cargl=no
17887 rm -f core conftest.err conftest.$ac_objext \
17888 conftest$ac_exeext conftest.$ac_ext
17890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cargl" >&5
17891 $as_echo "$gcc_cv_math_func_cargl" >&6; }
17892 if test $gcc_cv_math_func_cargl = yes; then
17894 cat >>confdefs.h <<_ACEOF
17895 #define HAVE_CARGL 1
17896 _ACEOF
17903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceilf" >&5
17904 $as_echo_n "checking for ceilf... " >&6; }
17905 if test "${gcc_cv_math_func_ceilf+set}" = set; then :
17906 $as_echo_n "(cached) " >&6
17907 else
17908 if test x$gcc_no_link = xyes; then
17909 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17912 /* end confdefs.h. */
17914 #ifdef HAVE_COMPLEX_H
17915 #include <complex.h>
17916 #endif
17917 #ifdef HAVE_MATH_H
17918 #include <math.h>
17919 #endif
17921 int (*ptr)() = (int (*)())ceilf;
17924 main ()
17926 return 0;
17929 _ACEOF
17930 if ac_fn_c_try_link "$LINENO"; then :
17931 gcc_cv_math_func_ceilf=yes
17932 else
17933 gcc_cv_math_func_ceilf=no
17935 rm -f core conftest.err conftest.$ac_objext \
17936 conftest$ac_exeext conftest.$ac_ext
17938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceilf" >&5
17939 $as_echo "$gcc_cv_math_func_ceilf" >&6; }
17940 if test $gcc_cv_math_func_ceilf = yes; then
17942 cat >>confdefs.h <<_ACEOF
17943 #define HAVE_CEILF 1
17944 _ACEOF
17951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceil" >&5
17952 $as_echo_n "checking for ceil... " >&6; }
17953 if test "${gcc_cv_math_func_ceil+set}" = set; then :
17954 $as_echo_n "(cached) " >&6
17955 else
17956 if test x$gcc_no_link = xyes; then
17957 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
17959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17960 /* end confdefs.h. */
17962 #ifdef HAVE_COMPLEX_H
17963 #include <complex.h>
17964 #endif
17965 #ifdef HAVE_MATH_H
17966 #include <math.h>
17967 #endif
17969 int (*ptr)() = (int (*)())ceil;
17972 main ()
17974 return 0;
17977 _ACEOF
17978 if ac_fn_c_try_link "$LINENO"; then :
17979 gcc_cv_math_func_ceil=yes
17980 else
17981 gcc_cv_math_func_ceil=no
17983 rm -f core conftest.err conftest.$ac_objext \
17984 conftest$ac_exeext conftest.$ac_ext
17986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceil" >&5
17987 $as_echo "$gcc_cv_math_func_ceil" >&6; }
17988 if test $gcc_cv_math_func_ceil = yes; then
17990 cat >>confdefs.h <<_ACEOF
17991 #define HAVE_CEIL 1
17992 _ACEOF
17999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ceill" >&5
18000 $as_echo_n "checking for ceill... " >&6; }
18001 if test "${gcc_cv_math_func_ceill+set}" = set; then :
18002 $as_echo_n "(cached) " >&6
18003 else
18004 if test x$gcc_no_link = xyes; then
18005 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18008 /* end confdefs.h. */
18010 #ifdef HAVE_COMPLEX_H
18011 #include <complex.h>
18012 #endif
18013 #ifdef HAVE_MATH_H
18014 #include <math.h>
18015 #endif
18017 int (*ptr)() = (int (*)())ceill;
18020 main ()
18022 return 0;
18025 _ACEOF
18026 if ac_fn_c_try_link "$LINENO"; then :
18027 gcc_cv_math_func_ceill=yes
18028 else
18029 gcc_cv_math_func_ceill=no
18031 rm -f core conftest.err conftest.$ac_objext \
18032 conftest$ac_exeext conftest.$ac_ext
18034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ceill" >&5
18035 $as_echo "$gcc_cv_math_func_ceill" >&6; }
18036 if test $gcc_cv_math_func_ceill = yes; then
18038 cat >>confdefs.h <<_ACEOF
18039 #define HAVE_CEILL 1
18040 _ACEOF
18047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignf" >&5
18048 $as_echo_n "checking for copysignf... " >&6; }
18049 if test "${gcc_cv_math_func_copysignf+set}" = set; then :
18050 $as_echo_n "(cached) " >&6
18051 else
18052 if test x$gcc_no_link = xyes; then
18053 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18056 /* end confdefs.h. */
18058 #ifdef HAVE_COMPLEX_H
18059 #include <complex.h>
18060 #endif
18061 #ifdef HAVE_MATH_H
18062 #include <math.h>
18063 #endif
18065 int (*ptr)() = (int (*)())copysignf;
18068 main ()
18070 return 0;
18073 _ACEOF
18074 if ac_fn_c_try_link "$LINENO"; then :
18075 gcc_cv_math_func_copysignf=yes
18076 else
18077 gcc_cv_math_func_copysignf=no
18079 rm -f core conftest.err conftest.$ac_objext \
18080 conftest$ac_exeext conftest.$ac_ext
18082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignf" >&5
18083 $as_echo "$gcc_cv_math_func_copysignf" >&6; }
18084 if test $gcc_cv_math_func_copysignf = yes; then
18086 cat >>confdefs.h <<_ACEOF
18087 #define HAVE_COPYSIGNF 1
18088 _ACEOF
18095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysign" >&5
18096 $as_echo_n "checking for copysign... " >&6; }
18097 if test "${gcc_cv_math_func_copysign+set}" = set; then :
18098 $as_echo_n "(cached) " >&6
18099 else
18100 if test x$gcc_no_link = xyes; then
18101 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18104 /* end confdefs.h. */
18106 #ifdef HAVE_COMPLEX_H
18107 #include <complex.h>
18108 #endif
18109 #ifdef HAVE_MATH_H
18110 #include <math.h>
18111 #endif
18113 int (*ptr)() = (int (*)())copysign;
18116 main ()
18118 return 0;
18121 _ACEOF
18122 if ac_fn_c_try_link "$LINENO"; then :
18123 gcc_cv_math_func_copysign=yes
18124 else
18125 gcc_cv_math_func_copysign=no
18127 rm -f core conftest.err conftest.$ac_objext \
18128 conftest$ac_exeext conftest.$ac_ext
18130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysign" >&5
18131 $as_echo "$gcc_cv_math_func_copysign" >&6; }
18132 if test $gcc_cv_math_func_copysign = yes; then
18134 cat >>confdefs.h <<_ACEOF
18135 #define HAVE_COPYSIGN 1
18136 _ACEOF
18143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for copysignl" >&5
18144 $as_echo_n "checking for copysignl... " >&6; }
18145 if test "${gcc_cv_math_func_copysignl+set}" = set; then :
18146 $as_echo_n "(cached) " >&6
18147 else
18148 if test x$gcc_no_link = xyes; then
18149 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18152 /* end confdefs.h. */
18154 #ifdef HAVE_COMPLEX_H
18155 #include <complex.h>
18156 #endif
18157 #ifdef HAVE_MATH_H
18158 #include <math.h>
18159 #endif
18161 int (*ptr)() = (int (*)())copysignl;
18164 main ()
18166 return 0;
18169 _ACEOF
18170 if ac_fn_c_try_link "$LINENO"; then :
18171 gcc_cv_math_func_copysignl=yes
18172 else
18173 gcc_cv_math_func_copysignl=no
18175 rm -f core conftest.err conftest.$ac_objext \
18176 conftest$ac_exeext conftest.$ac_ext
18178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_copysignl" >&5
18179 $as_echo "$gcc_cv_math_func_copysignl" >&6; }
18180 if test $gcc_cv_math_func_copysignl = yes; then
18182 cat >>confdefs.h <<_ACEOF
18183 #define HAVE_COPYSIGNL 1
18184 _ACEOF
18191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosf" >&5
18192 $as_echo_n "checking for cosf... " >&6; }
18193 if test "${gcc_cv_math_func_cosf+set}" = set; then :
18194 $as_echo_n "(cached) " >&6
18195 else
18196 if test x$gcc_no_link = xyes; then
18197 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18200 /* end confdefs.h. */
18202 #ifdef HAVE_COMPLEX_H
18203 #include <complex.h>
18204 #endif
18205 #ifdef HAVE_MATH_H
18206 #include <math.h>
18207 #endif
18209 int (*ptr)() = (int (*)())cosf;
18212 main ()
18214 return 0;
18217 _ACEOF
18218 if ac_fn_c_try_link "$LINENO"; then :
18219 gcc_cv_math_func_cosf=yes
18220 else
18221 gcc_cv_math_func_cosf=no
18223 rm -f core conftest.err conftest.$ac_objext \
18224 conftest$ac_exeext conftest.$ac_ext
18226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosf" >&5
18227 $as_echo "$gcc_cv_math_func_cosf" >&6; }
18228 if test $gcc_cv_math_func_cosf = yes; then
18230 cat >>confdefs.h <<_ACEOF
18231 #define HAVE_COSF 1
18232 _ACEOF
18239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos" >&5
18240 $as_echo_n "checking for cos... " >&6; }
18241 if test "${gcc_cv_math_func_cos+set}" = set; then :
18242 $as_echo_n "(cached) " >&6
18243 else
18244 if test x$gcc_no_link = xyes; then
18245 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18248 /* end confdefs.h. */
18250 #ifdef HAVE_COMPLEX_H
18251 #include <complex.h>
18252 #endif
18253 #ifdef HAVE_MATH_H
18254 #include <math.h>
18255 #endif
18257 int (*ptr)() = (int (*)())cos;
18260 main ()
18262 return 0;
18265 _ACEOF
18266 if ac_fn_c_try_link "$LINENO"; then :
18267 gcc_cv_math_func_cos=yes
18268 else
18269 gcc_cv_math_func_cos=no
18271 rm -f core conftest.err conftest.$ac_objext \
18272 conftest$ac_exeext conftest.$ac_ext
18274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cos" >&5
18275 $as_echo "$gcc_cv_math_func_cos" >&6; }
18276 if test $gcc_cv_math_func_cos = yes; then
18278 cat >>confdefs.h <<_ACEOF
18279 #define HAVE_COS 1
18280 _ACEOF
18287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosl" >&5
18288 $as_echo_n "checking for cosl... " >&6; }
18289 if test "${gcc_cv_math_func_cosl+set}" = set; then :
18290 $as_echo_n "(cached) " >&6
18291 else
18292 if test x$gcc_no_link = xyes; then
18293 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18296 /* end confdefs.h. */
18298 #ifdef HAVE_COMPLEX_H
18299 #include <complex.h>
18300 #endif
18301 #ifdef HAVE_MATH_H
18302 #include <math.h>
18303 #endif
18305 int (*ptr)() = (int (*)())cosl;
18308 main ()
18310 return 0;
18313 _ACEOF
18314 if ac_fn_c_try_link "$LINENO"; then :
18315 gcc_cv_math_func_cosl=yes
18316 else
18317 gcc_cv_math_func_cosl=no
18319 rm -f core conftest.err conftest.$ac_objext \
18320 conftest$ac_exeext conftest.$ac_ext
18322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosl" >&5
18323 $as_echo "$gcc_cv_math_func_cosl" >&6; }
18324 if test $gcc_cv_math_func_cosl = yes; then
18326 cat >>confdefs.h <<_ACEOF
18327 #define HAVE_COSL 1
18328 _ACEOF
18335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosf" >&5
18336 $as_echo_n "checking for ccosf... " >&6; }
18337 if test "${gcc_cv_math_func_ccosf+set}" = set; then :
18338 $as_echo_n "(cached) " >&6
18339 else
18340 if test x$gcc_no_link = xyes; then
18341 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18344 /* end confdefs.h. */
18346 #ifdef HAVE_COMPLEX_H
18347 #include <complex.h>
18348 #endif
18349 #ifdef HAVE_MATH_H
18350 #include <math.h>
18351 #endif
18353 int (*ptr)() = (int (*)())ccosf;
18356 main ()
18358 return 0;
18361 _ACEOF
18362 if ac_fn_c_try_link "$LINENO"; then :
18363 gcc_cv_math_func_ccosf=yes
18364 else
18365 gcc_cv_math_func_ccosf=no
18367 rm -f core conftest.err conftest.$ac_objext \
18368 conftest$ac_exeext conftest.$ac_ext
18370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosf" >&5
18371 $as_echo "$gcc_cv_math_func_ccosf" >&6; }
18372 if test $gcc_cv_math_func_ccosf = yes; then
18374 cat >>confdefs.h <<_ACEOF
18375 #define HAVE_CCOSF 1
18376 _ACEOF
18383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccos" >&5
18384 $as_echo_n "checking for ccos... " >&6; }
18385 if test "${gcc_cv_math_func_ccos+set}" = set; then :
18386 $as_echo_n "(cached) " >&6
18387 else
18388 if test x$gcc_no_link = xyes; then
18389 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18392 /* end confdefs.h. */
18394 #ifdef HAVE_COMPLEX_H
18395 #include <complex.h>
18396 #endif
18397 #ifdef HAVE_MATH_H
18398 #include <math.h>
18399 #endif
18401 int (*ptr)() = (int (*)())ccos;
18404 main ()
18406 return 0;
18409 _ACEOF
18410 if ac_fn_c_try_link "$LINENO"; then :
18411 gcc_cv_math_func_ccos=yes
18412 else
18413 gcc_cv_math_func_ccos=no
18415 rm -f core conftest.err conftest.$ac_objext \
18416 conftest$ac_exeext conftest.$ac_ext
18418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccos" >&5
18419 $as_echo "$gcc_cv_math_func_ccos" >&6; }
18420 if test $gcc_cv_math_func_ccos = yes; then
18422 cat >>confdefs.h <<_ACEOF
18423 #define HAVE_CCOS 1
18424 _ACEOF
18431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosl" >&5
18432 $as_echo_n "checking for ccosl... " >&6; }
18433 if test "${gcc_cv_math_func_ccosl+set}" = set; then :
18434 $as_echo_n "(cached) " >&6
18435 else
18436 if test x$gcc_no_link = xyes; then
18437 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18440 /* end confdefs.h. */
18442 #ifdef HAVE_COMPLEX_H
18443 #include <complex.h>
18444 #endif
18445 #ifdef HAVE_MATH_H
18446 #include <math.h>
18447 #endif
18449 int (*ptr)() = (int (*)())ccosl;
18452 main ()
18454 return 0;
18457 _ACEOF
18458 if ac_fn_c_try_link "$LINENO"; then :
18459 gcc_cv_math_func_ccosl=yes
18460 else
18461 gcc_cv_math_func_ccosl=no
18463 rm -f core conftest.err conftest.$ac_objext \
18464 conftest$ac_exeext conftest.$ac_ext
18466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosl" >&5
18467 $as_echo "$gcc_cv_math_func_ccosl" >&6; }
18468 if test $gcc_cv_math_func_ccosl = yes; then
18470 cat >>confdefs.h <<_ACEOF
18471 #define HAVE_CCOSL 1
18472 _ACEOF
18479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshf" >&5
18480 $as_echo_n "checking for coshf... " >&6; }
18481 if test "${gcc_cv_math_func_coshf+set}" = set; then :
18482 $as_echo_n "(cached) " >&6
18483 else
18484 if test x$gcc_no_link = xyes; then
18485 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18488 /* end confdefs.h. */
18490 #ifdef HAVE_COMPLEX_H
18491 #include <complex.h>
18492 #endif
18493 #ifdef HAVE_MATH_H
18494 #include <math.h>
18495 #endif
18497 int (*ptr)() = (int (*)())coshf;
18500 main ()
18502 return 0;
18505 _ACEOF
18506 if ac_fn_c_try_link "$LINENO"; then :
18507 gcc_cv_math_func_coshf=yes
18508 else
18509 gcc_cv_math_func_coshf=no
18511 rm -f core conftest.err conftest.$ac_objext \
18512 conftest$ac_exeext conftest.$ac_ext
18514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshf" >&5
18515 $as_echo "$gcc_cv_math_func_coshf" >&6; }
18516 if test $gcc_cv_math_func_coshf = yes; then
18518 cat >>confdefs.h <<_ACEOF
18519 #define HAVE_COSHF 1
18520 _ACEOF
18527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cosh" >&5
18528 $as_echo_n "checking for cosh... " >&6; }
18529 if test "${gcc_cv_math_func_cosh+set}" = set; then :
18530 $as_echo_n "(cached) " >&6
18531 else
18532 if test x$gcc_no_link = xyes; then
18533 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18536 /* end confdefs.h. */
18538 #ifdef HAVE_COMPLEX_H
18539 #include <complex.h>
18540 #endif
18541 #ifdef HAVE_MATH_H
18542 #include <math.h>
18543 #endif
18545 int (*ptr)() = (int (*)())cosh;
18548 main ()
18550 return 0;
18553 _ACEOF
18554 if ac_fn_c_try_link "$LINENO"; then :
18555 gcc_cv_math_func_cosh=yes
18556 else
18557 gcc_cv_math_func_cosh=no
18559 rm -f core conftest.err conftest.$ac_objext \
18560 conftest$ac_exeext conftest.$ac_ext
18562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cosh" >&5
18563 $as_echo "$gcc_cv_math_func_cosh" >&6; }
18564 if test $gcc_cv_math_func_cosh = yes; then
18566 cat >>confdefs.h <<_ACEOF
18567 #define HAVE_COSH 1
18568 _ACEOF
18575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for coshl" >&5
18576 $as_echo_n "checking for coshl... " >&6; }
18577 if test "${gcc_cv_math_func_coshl+set}" = set; then :
18578 $as_echo_n "(cached) " >&6
18579 else
18580 if test x$gcc_no_link = xyes; then
18581 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18584 /* end confdefs.h. */
18586 #ifdef HAVE_COMPLEX_H
18587 #include <complex.h>
18588 #endif
18589 #ifdef HAVE_MATH_H
18590 #include <math.h>
18591 #endif
18593 int (*ptr)() = (int (*)())coshl;
18596 main ()
18598 return 0;
18601 _ACEOF
18602 if ac_fn_c_try_link "$LINENO"; then :
18603 gcc_cv_math_func_coshl=yes
18604 else
18605 gcc_cv_math_func_coshl=no
18607 rm -f core conftest.err conftest.$ac_objext \
18608 conftest$ac_exeext conftest.$ac_ext
18610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_coshl" >&5
18611 $as_echo "$gcc_cv_math_func_coshl" >&6; }
18612 if test $gcc_cv_math_func_coshl = yes; then
18614 cat >>confdefs.h <<_ACEOF
18615 #define HAVE_COSHL 1
18616 _ACEOF
18623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshf" >&5
18624 $as_echo_n "checking for ccoshf... " >&6; }
18625 if test "${gcc_cv_math_func_ccoshf+set}" = set; then :
18626 $as_echo_n "(cached) " >&6
18627 else
18628 if test x$gcc_no_link = xyes; then
18629 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18632 /* end confdefs.h. */
18634 #ifdef HAVE_COMPLEX_H
18635 #include <complex.h>
18636 #endif
18637 #ifdef HAVE_MATH_H
18638 #include <math.h>
18639 #endif
18641 int (*ptr)() = (int (*)())ccoshf;
18644 main ()
18646 return 0;
18649 _ACEOF
18650 if ac_fn_c_try_link "$LINENO"; then :
18651 gcc_cv_math_func_ccoshf=yes
18652 else
18653 gcc_cv_math_func_ccoshf=no
18655 rm -f core conftest.err conftest.$ac_objext \
18656 conftest$ac_exeext conftest.$ac_ext
18658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshf" >&5
18659 $as_echo "$gcc_cv_math_func_ccoshf" >&6; }
18660 if test $gcc_cv_math_func_ccoshf = yes; then
18662 cat >>confdefs.h <<_ACEOF
18663 #define HAVE_CCOSHF 1
18664 _ACEOF
18671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccosh" >&5
18672 $as_echo_n "checking for ccosh... " >&6; }
18673 if test "${gcc_cv_math_func_ccosh+set}" = set; then :
18674 $as_echo_n "(cached) " >&6
18675 else
18676 if test x$gcc_no_link = xyes; then
18677 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18680 /* end confdefs.h. */
18682 #ifdef HAVE_COMPLEX_H
18683 #include <complex.h>
18684 #endif
18685 #ifdef HAVE_MATH_H
18686 #include <math.h>
18687 #endif
18689 int (*ptr)() = (int (*)())ccosh;
18692 main ()
18694 return 0;
18697 _ACEOF
18698 if ac_fn_c_try_link "$LINENO"; then :
18699 gcc_cv_math_func_ccosh=yes
18700 else
18701 gcc_cv_math_func_ccosh=no
18703 rm -f core conftest.err conftest.$ac_objext \
18704 conftest$ac_exeext conftest.$ac_ext
18706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccosh" >&5
18707 $as_echo "$gcc_cv_math_func_ccosh" >&6; }
18708 if test $gcc_cv_math_func_ccosh = yes; then
18710 cat >>confdefs.h <<_ACEOF
18711 #define HAVE_CCOSH 1
18712 _ACEOF
18719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ccoshl" >&5
18720 $as_echo_n "checking for ccoshl... " >&6; }
18721 if test "${gcc_cv_math_func_ccoshl+set}" = set; then :
18722 $as_echo_n "(cached) " >&6
18723 else
18724 if test x$gcc_no_link = xyes; then
18725 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18728 /* end confdefs.h. */
18730 #ifdef HAVE_COMPLEX_H
18731 #include <complex.h>
18732 #endif
18733 #ifdef HAVE_MATH_H
18734 #include <math.h>
18735 #endif
18737 int (*ptr)() = (int (*)())ccoshl;
18740 main ()
18742 return 0;
18745 _ACEOF
18746 if ac_fn_c_try_link "$LINENO"; then :
18747 gcc_cv_math_func_ccoshl=yes
18748 else
18749 gcc_cv_math_func_ccoshl=no
18751 rm -f core conftest.err conftest.$ac_objext \
18752 conftest$ac_exeext conftest.$ac_ext
18754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ccoshl" >&5
18755 $as_echo "$gcc_cv_math_func_ccoshl" >&6; }
18756 if test $gcc_cv_math_func_ccoshl = yes; then
18758 cat >>confdefs.h <<_ACEOF
18759 #define HAVE_CCOSHL 1
18760 _ACEOF
18767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expf" >&5
18768 $as_echo_n "checking for expf... " >&6; }
18769 if test "${gcc_cv_math_func_expf+set}" = set; then :
18770 $as_echo_n "(cached) " >&6
18771 else
18772 if test x$gcc_no_link = xyes; then
18773 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18776 /* end confdefs.h. */
18778 #ifdef HAVE_COMPLEX_H
18779 #include <complex.h>
18780 #endif
18781 #ifdef HAVE_MATH_H
18782 #include <math.h>
18783 #endif
18785 int (*ptr)() = (int (*)())expf;
18788 main ()
18790 return 0;
18793 _ACEOF
18794 if ac_fn_c_try_link "$LINENO"; then :
18795 gcc_cv_math_func_expf=yes
18796 else
18797 gcc_cv_math_func_expf=no
18799 rm -f core conftest.err conftest.$ac_objext \
18800 conftest$ac_exeext conftest.$ac_ext
18802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expf" >&5
18803 $as_echo "$gcc_cv_math_func_expf" >&6; }
18804 if test $gcc_cv_math_func_expf = yes; then
18806 cat >>confdefs.h <<_ACEOF
18807 #define HAVE_EXPF 1
18808 _ACEOF
18815 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for exp" >&5
18816 $as_echo_n "checking for exp... " >&6; }
18817 if test "${gcc_cv_math_func_exp+set}" = set; then :
18818 $as_echo_n "(cached) " >&6
18819 else
18820 if test x$gcc_no_link = xyes; then
18821 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18824 /* end confdefs.h. */
18826 #ifdef HAVE_COMPLEX_H
18827 #include <complex.h>
18828 #endif
18829 #ifdef HAVE_MATH_H
18830 #include <math.h>
18831 #endif
18833 int (*ptr)() = (int (*)())exp;
18836 main ()
18838 return 0;
18841 _ACEOF
18842 if ac_fn_c_try_link "$LINENO"; then :
18843 gcc_cv_math_func_exp=yes
18844 else
18845 gcc_cv_math_func_exp=no
18847 rm -f core conftest.err conftest.$ac_objext \
18848 conftest$ac_exeext conftest.$ac_ext
18850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_exp" >&5
18851 $as_echo "$gcc_cv_math_func_exp" >&6; }
18852 if test $gcc_cv_math_func_exp = yes; then
18854 cat >>confdefs.h <<_ACEOF
18855 #define HAVE_EXP 1
18856 _ACEOF
18863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for expl" >&5
18864 $as_echo_n "checking for expl... " >&6; }
18865 if test "${gcc_cv_math_func_expl+set}" = set; then :
18866 $as_echo_n "(cached) " >&6
18867 else
18868 if test x$gcc_no_link = xyes; then
18869 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18872 /* end confdefs.h. */
18874 #ifdef HAVE_COMPLEX_H
18875 #include <complex.h>
18876 #endif
18877 #ifdef HAVE_MATH_H
18878 #include <math.h>
18879 #endif
18881 int (*ptr)() = (int (*)())expl;
18884 main ()
18886 return 0;
18889 _ACEOF
18890 if ac_fn_c_try_link "$LINENO"; then :
18891 gcc_cv_math_func_expl=yes
18892 else
18893 gcc_cv_math_func_expl=no
18895 rm -f core conftest.err conftest.$ac_objext \
18896 conftest$ac_exeext conftest.$ac_ext
18898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_expl" >&5
18899 $as_echo "$gcc_cv_math_func_expl" >&6; }
18900 if test $gcc_cv_math_func_expl = yes; then
18902 cat >>confdefs.h <<_ACEOF
18903 #define HAVE_EXPL 1
18904 _ACEOF
18911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpf" >&5
18912 $as_echo_n "checking for cexpf... " >&6; }
18913 if test "${gcc_cv_math_func_cexpf+set}" = set; then :
18914 $as_echo_n "(cached) " >&6
18915 else
18916 if test x$gcc_no_link = xyes; then
18917 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18920 /* end confdefs.h. */
18922 #ifdef HAVE_COMPLEX_H
18923 #include <complex.h>
18924 #endif
18925 #ifdef HAVE_MATH_H
18926 #include <math.h>
18927 #endif
18929 int (*ptr)() = (int (*)())cexpf;
18932 main ()
18934 return 0;
18937 _ACEOF
18938 if ac_fn_c_try_link "$LINENO"; then :
18939 gcc_cv_math_func_cexpf=yes
18940 else
18941 gcc_cv_math_func_cexpf=no
18943 rm -f core conftest.err conftest.$ac_objext \
18944 conftest$ac_exeext conftest.$ac_ext
18946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpf" >&5
18947 $as_echo "$gcc_cv_math_func_cexpf" >&6; }
18948 if test $gcc_cv_math_func_cexpf = yes; then
18950 cat >>confdefs.h <<_ACEOF
18951 #define HAVE_CEXPF 1
18952 _ACEOF
18959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexp" >&5
18960 $as_echo_n "checking for cexp... " >&6; }
18961 if test "${gcc_cv_math_func_cexp+set}" = set; then :
18962 $as_echo_n "(cached) " >&6
18963 else
18964 if test x$gcc_no_link = xyes; then
18965 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
18967 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18968 /* end confdefs.h. */
18970 #ifdef HAVE_COMPLEX_H
18971 #include <complex.h>
18972 #endif
18973 #ifdef HAVE_MATH_H
18974 #include <math.h>
18975 #endif
18977 int (*ptr)() = (int (*)())cexp;
18980 main ()
18982 return 0;
18985 _ACEOF
18986 if ac_fn_c_try_link "$LINENO"; then :
18987 gcc_cv_math_func_cexp=yes
18988 else
18989 gcc_cv_math_func_cexp=no
18991 rm -f core conftest.err conftest.$ac_objext \
18992 conftest$ac_exeext conftest.$ac_ext
18994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexp" >&5
18995 $as_echo "$gcc_cv_math_func_cexp" >&6; }
18996 if test $gcc_cv_math_func_cexp = yes; then
18998 cat >>confdefs.h <<_ACEOF
18999 #define HAVE_CEXP 1
19000 _ACEOF
19007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cexpl" >&5
19008 $as_echo_n "checking for cexpl... " >&6; }
19009 if test "${gcc_cv_math_func_cexpl+set}" = set; then :
19010 $as_echo_n "(cached) " >&6
19011 else
19012 if test x$gcc_no_link = xyes; then
19013 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19015 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19016 /* end confdefs.h. */
19018 #ifdef HAVE_COMPLEX_H
19019 #include <complex.h>
19020 #endif
19021 #ifdef HAVE_MATH_H
19022 #include <math.h>
19023 #endif
19025 int (*ptr)() = (int (*)())cexpl;
19028 main ()
19030 return 0;
19033 _ACEOF
19034 if ac_fn_c_try_link "$LINENO"; then :
19035 gcc_cv_math_func_cexpl=yes
19036 else
19037 gcc_cv_math_func_cexpl=no
19039 rm -f core conftest.err conftest.$ac_objext \
19040 conftest$ac_exeext conftest.$ac_ext
19042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cexpl" >&5
19043 $as_echo "$gcc_cv_math_func_cexpl" >&6; }
19044 if test $gcc_cv_math_func_cexpl = yes; then
19046 cat >>confdefs.h <<_ACEOF
19047 #define HAVE_CEXPL 1
19048 _ACEOF
19055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsf" >&5
19056 $as_echo_n "checking for fabsf... " >&6; }
19057 if test "${gcc_cv_math_func_fabsf+set}" = set; then :
19058 $as_echo_n "(cached) " >&6
19059 else
19060 if test x$gcc_no_link = xyes; then
19061 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19064 /* end confdefs.h. */
19066 #ifdef HAVE_COMPLEX_H
19067 #include <complex.h>
19068 #endif
19069 #ifdef HAVE_MATH_H
19070 #include <math.h>
19071 #endif
19073 int (*ptr)() = (int (*)())fabsf;
19076 main ()
19078 return 0;
19081 _ACEOF
19082 if ac_fn_c_try_link "$LINENO"; then :
19083 gcc_cv_math_func_fabsf=yes
19084 else
19085 gcc_cv_math_func_fabsf=no
19087 rm -f core conftest.err conftest.$ac_objext \
19088 conftest$ac_exeext conftest.$ac_ext
19090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsf" >&5
19091 $as_echo "$gcc_cv_math_func_fabsf" >&6; }
19092 if test $gcc_cv_math_func_fabsf = yes; then
19094 cat >>confdefs.h <<_ACEOF
19095 #define HAVE_FABSF 1
19096 _ACEOF
19103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabs" >&5
19104 $as_echo_n "checking for fabs... " >&6; }
19105 if test "${gcc_cv_math_func_fabs+set}" = set; then :
19106 $as_echo_n "(cached) " >&6
19107 else
19108 if test x$gcc_no_link = xyes; then
19109 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19112 /* end confdefs.h. */
19114 #ifdef HAVE_COMPLEX_H
19115 #include <complex.h>
19116 #endif
19117 #ifdef HAVE_MATH_H
19118 #include <math.h>
19119 #endif
19121 int (*ptr)() = (int (*)())fabs;
19124 main ()
19126 return 0;
19129 _ACEOF
19130 if ac_fn_c_try_link "$LINENO"; then :
19131 gcc_cv_math_func_fabs=yes
19132 else
19133 gcc_cv_math_func_fabs=no
19135 rm -f core conftest.err conftest.$ac_objext \
19136 conftest$ac_exeext conftest.$ac_ext
19138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabs" >&5
19139 $as_echo "$gcc_cv_math_func_fabs" >&6; }
19140 if test $gcc_cv_math_func_fabs = yes; then
19142 cat >>confdefs.h <<_ACEOF
19143 #define HAVE_FABS 1
19144 _ACEOF
19151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fabsl" >&5
19152 $as_echo_n "checking for fabsl... " >&6; }
19153 if test "${gcc_cv_math_func_fabsl+set}" = set; then :
19154 $as_echo_n "(cached) " >&6
19155 else
19156 if test x$gcc_no_link = xyes; then
19157 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19160 /* end confdefs.h. */
19162 #ifdef HAVE_COMPLEX_H
19163 #include <complex.h>
19164 #endif
19165 #ifdef HAVE_MATH_H
19166 #include <math.h>
19167 #endif
19169 int (*ptr)() = (int (*)())fabsl;
19172 main ()
19174 return 0;
19177 _ACEOF
19178 if ac_fn_c_try_link "$LINENO"; then :
19179 gcc_cv_math_func_fabsl=yes
19180 else
19181 gcc_cv_math_func_fabsl=no
19183 rm -f core conftest.err conftest.$ac_objext \
19184 conftest$ac_exeext conftest.$ac_ext
19186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fabsl" >&5
19187 $as_echo "$gcc_cv_math_func_fabsl" >&6; }
19188 if test $gcc_cv_math_func_fabsl = yes; then
19190 cat >>confdefs.h <<_ACEOF
19191 #define HAVE_FABSL 1
19192 _ACEOF
19199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsf" >&5
19200 $as_echo_n "checking for cabsf... " >&6; }
19201 if test "${gcc_cv_math_func_cabsf+set}" = set; then :
19202 $as_echo_n "(cached) " >&6
19203 else
19204 if test x$gcc_no_link = xyes; then
19205 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19208 /* end confdefs.h. */
19210 #ifdef HAVE_COMPLEX_H
19211 #include <complex.h>
19212 #endif
19213 #ifdef HAVE_MATH_H
19214 #include <math.h>
19215 #endif
19217 int (*ptr)() = (int (*)())cabsf;
19220 main ()
19222 return 0;
19225 _ACEOF
19226 if ac_fn_c_try_link "$LINENO"; then :
19227 gcc_cv_math_func_cabsf=yes
19228 else
19229 gcc_cv_math_func_cabsf=no
19231 rm -f core conftest.err conftest.$ac_objext \
19232 conftest$ac_exeext conftest.$ac_ext
19234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsf" >&5
19235 $as_echo "$gcc_cv_math_func_cabsf" >&6; }
19236 if test $gcc_cv_math_func_cabsf = yes; then
19238 cat >>confdefs.h <<_ACEOF
19239 #define HAVE_CABSF 1
19240 _ACEOF
19247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabs" >&5
19248 $as_echo_n "checking for cabs... " >&6; }
19249 if test "${gcc_cv_math_func_cabs+set}" = set; then :
19250 $as_echo_n "(cached) " >&6
19251 else
19252 if test x$gcc_no_link = xyes; then
19253 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19256 /* end confdefs.h. */
19258 #ifdef HAVE_COMPLEX_H
19259 #include <complex.h>
19260 #endif
19261 #ifdef HAVE_MATH_H
19262 #include <math.h>
19263 #endif
19265 int (*ptr)() = (int (*)())cabs;
19268 main ()
19270 return 0;
19273 _ACEOF
19274 if ac_fn_c_try_link "$LINENO"; then :
19275 gcc_cv_math_func_cabs=yes
19276 else
19277 gcc_cv_math_func_cabs=no
19279 rm -f core conftest.err conftest.$ac_objext \
19280 conftest$ac_exeext conftest.$ac_ext
19282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabs" >&5
19283 $as_echo "$gcc_cv_math_func_cabs" >&6; }
19284 if test $gcc_cv_math_func_cabs = yes; then
19286 cat >>confdefs.h <<_ACEOF
19287 #define HAVE_CABS 1
19288 _ACEOF
19295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cabsl" >&5
19296 $as_echo_n "checking for cabsl... " >&6; }
19297 if test "${gcc_cv_math_func_cabsl+set}" = set; then :
19298 $as_echo_n "(cached) " >&6
19299 else
19300 if test x$gcc_no_link = xyes; then
19301 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19304 /* end confdefs.h. */
19306 #ifdef HAVE_COMPLEX_H
19307 #include <complex.h>
19308 #endif
19309 #ifdef HAVE_MATH_H
19310 #include <math.h>
19311 #endif
19313 int (*ptr)() = (int (*)())cabsl;
19316 main ()
19318 return 0;
19321 _ACEOF
19322 if ac_fn_c_try_link "$LINENO"; then :
19323 gcc_cv_math_func_cabsl=yes
19324 else
19325 gcc_cv_math_func_cabsl=no
19327 rm -f core conftest.err conftest.$ac_objext \
19328 conftest$ac_exeext conftest.$ac_ext
19330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cabsl" >&5
19331 $as_echo "$gcc_cv_math_func_cabsl" >&6; }
19332 if test $gcc_cv_math_func_cabsl = yes; then
19334 cat >>confdefs.h <<_ACEOF
19335 #define HAVE_CABSL 1
19336 _ACEOF
19343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorf" >&5
19344 $as_echo_n "checking for floorf... " >&6; }
19345 if test "${gcc_cv_math_func_floorf+set}" = set; then :
19346 $as_echo_n "(cached) " >&6
19347 else
19348 if test x$gcc_no_link = xyes; then
19349 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19352 /* end confdefs.h. */
19354 #ifdef HAVE_COMPLEX_H
19355 #include <complex.h>
19356 #endif
19357 #ifdef HAVE_MATH_H
19358 #include <math.h>
19359 #endif
19361 int (*ptr)() = (int (*)())floorf;
19364 main ()
19366 return 0;
19369 _ACEOF
19370 if ac_fn_c_try_link "$LINENO"; then :
19371 gcc_cv_math_func_floorf=yes
19372 else
19373 gcc_cv_math_func_floorf=no
19375 rm -f core conftest.err conftest.$ac_objext \
19376 conftest$ac_exeext conftest.$ac_ext
19378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorf" >&5
19379 $as_echo "$gcc_cv_math_func_floorf" >&6; }
19380 if test $gcc_cv_math_func_floorf = yes; then
19382 cat >>confdefs.h <<_ACEOF
19383 #define HAVE_FLOORF 1
19384 _ACEOF
19391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floor" >&5
19392 $as_echo_n "checking for floor... " >&6; }
19393 if test "${gcc_cv_math_func_floor+set}" = set; then :
19394 $as_echo_n "(cached) " >&6
19395 else
19396 if test x$gcc_no_link = xyes; then
19397 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19400 /* end confdefs.h. */
19402 #ifdef HAVE_COMPLEX_H
19403 #include <complex.h>
19404 #endif
19405 #ifdef HAVE_MATH_H
19406 #include <math.h>
19407 #endif
19409 int (*ptr)() = (int (*)())floor;
19412 main ()
19414 return 0;
19417 _ACEOF
19418 if ac_fn_c_try_link "$LINENO"; then :
19419 gcc_cv_math_func_floor=yes
19420 else
19421 gcc_cv_math_func_floor=no
19423 rm -f core conftest.err conftest.$ac_objext \
19424 conftest$ac_exeext conftest.$ac_ext
19426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floor" >&5
19427 $as_echo "$gcc_cv_math_func_floor" >&6; }
19428 if test $gcc_cv_math_func_floor = yes; then
19430 cat >>confdefs.h <<_ACEOF
19431 #define HAVE_FLOOR 1
19432 _ACEOF
19439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for floorl" >&5
19440 $as_echo_n "checking for floorl... " >&6; }
19441 if test "${gcc_cv_math_func_floorl+set}" = set; then :
19442 $as_echo_n "(cached) " >&6
19443 else
19444 if test x$gcc_no_link = xyes; then
19445 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19448 /* end confdefs.h. */
19450 #ifdef HAVE_COMPLEX_H
19451 #include <complex.h>
19452 #endif
19453 #ifdef HAVE_MATH_H
19454 #include <math.h>
19455 #endif
19457 int (*ptr)() = (int (*)())floorl;
19460 main ()
19462 return 0;
19465 _ACEOF
19466 if ac_fn_c_try_link "$LINENO"; then :
19467 gcc_cv_math_func_floorl=yes
19468 else
19469 gcc_cv_math_func_floorl=no
19471 rm -f core conftest.err conftest.$ac_objext \
19472 conftest$ac_exeext conftest.$ac_ext
19474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_floorl" >&5
19475 $as_echo "$gcc_cv_math_func_floorl" >&6; }
19476 if test $gcc_cv_math_func_floorl = yes; then
19478 cat >>confdefs.h <<_ACEOF
19479 #define HAVE_FLOORL 1
19480 _ACEOF
19487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodf" >&5
19488 $as_echo_n "checking for fmodf... " >&6; }
19489 if test "${gcc_cv_math_func_fmodf+set}" = set; then :
19490 $as_echo_n "(cached) " >&6
19491 else
19492 if test x$gcc_no_link = xyes; then
19493 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19496 /* end confdefs.h. */
19498 #ifdef HAVE_COMPLEX_H
19499 #include <complex.h>
19500 #endif
19501 #ifdef HAVE_MATH_H
19502 #include <math.h>
19503 #endif
19505 int (*ptr)() = (int (*)())fmodf;
19508 main ()
19510 return 0;
19513 _ACEOF
19514 if ac_fn_c_try_link "$LINENO"; then :
19515 gcc_cv_math_func_fmodf=yes
19516 else
19517 gcc_cv_math_func_fmodf=no
19519 rm -f core conftest.err conftest.$ac_objext \
19520 conftest$ac_exeext conftest.$ac_ext
19522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodf" >&5
19523 $as_echo "$gcc_cv_math_func_fmodf" >&6; }
19524 if test $gcc_cv_math_func_fmodf = yes; then
19526 cat >>confdefs.h <<_ACEOF
19527 #define HAVE_FMODF 1
19528 _ACEOF
19535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmod" >&5
19536 $as_echo_n "checking for fmod... " >&6; }
19537 if test "${gcc_cv_math_func_fmod+set}" = set; then :
19538 $as_echo_n "(cached) " >&6
19539 else
19540 if test x$gcc_no_link = xyes; then
19541 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19544 /* end confdefs.h. */
19546 #ifdef HAVE_COMPLEX_H
19547 #include <complex.h>
19548 #endif
19549 #ifdef HAVE_MATH_H
19550 #include <math.h>
19551 #endif
19553 int (*ptr)() = (int (*)())fmod;
19556 main ()
19558 return 0;
19561 _ACEOF
19562 if ac_fn_c_try_link "$LINENO"; then :
19563 gcc_cv_math_func_fmod=yes
19564 else
19565 gcc_cv_math_func_fmod=no
19567 rm -f core conftest.err conftest.$ac_objext \
19568 conftest$ac_exeext conftest.$ac_ext
19570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmod" >&5
19571 $as_echo "$gcc_cv_math_func_fmod" >&6; }
19572 if test $gcc_cv_math_func_fmod = yes; then
19574 cat >>confdefs.h <<_ACEOF
19575 #define HAVE_FMOD 1
19576 _ACEOF
19583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fmodl" >&5
19584 $as_echo_n "checking for fmodl... " >&6; }
19585 if test "${gcc_cv_math_func_fmodl+set}" = set; then :
19586 $as_echo_n "(cached) " >&6
19587 else
19588 if test x$gcc_no_link = xyes; then
19589 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19592 /* end confdefs.h. */
19594 #ifdef HAVE_COMPLEX_H
19595 #include <complex.h>
19596 #endif
19597 #ifdef HAVE_MATH_H
19598 #include <math.h>
19599 #endif
19601 int (*ptr)() = (int (*)())fmodl;
19604 main ()
19606 return 0;
19609 _ACEOF
19610 if ac_fn_c_try_link "$LINENO"; then :
19611 gcc_cv_math_func_fmodl=yes
19612 else
19613 gcc_cv_math_func_fmodl=no
19615 rm -f core conftest.err conftest.$ac_objext \
19616 conftest$ac_exeext conftest.$ac_ext
19618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_fmodl" >&5
19619 $as_echo "$gcc_cv_math_func_fmodl" >&6; }
19620 if test $gcc_cv_math_func_fmodl = yes; then
19622 cat >>confdefs.h <<_ACEOF
19623 #define HAVE_FMODL 1
19624 _ACEOF
19631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpf" >&5
19632 $as_echo_n "checking for frexpf... " >&6; }
19633 if test "${gcc_cv_math_func_frexpf+set}" = set; then :
19634 $as_echo_n "(cached) " >&6
19635 else
19636 if test x$gcc_no_link = xyes; then
19637 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19640 /* end confdefs.h. */
19642 #ifdef HAVE_COMPLEX_H
19643 #include <complex.h>
19644 #endif
19645 #ifdef HAVE_MATH_H
19646 #include <math.h>
19647 #endif
19649 int (*ptr)() = (int (*)())frexpf;
19652 main ()
19654 return 0;
19657 _ACEOF
19658 if ac_fn_c_try_link "$LINENO"; then :
19659 gcc_cv_math_func_frexpf=yes
19660 else
19661 gcc_cv_math_func_frexpf=no
19663 rm -f core conftest.err conftest.$ac_objext \
19664 conftest$ac_exeext conftest.$ac_ext
19666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpf" >&5
19667 $as_echo "$gcc_cv_math_func_frexpf" >&6; }
19668 if test $gcc_cv_math_func_frexpf = yes; then
19670 cat >>confdefs.h <<_ACEOF
19671 #define HAVE_FREXPF 1
19672 _ACEOF
19679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexp" >&5
19680 $as_echo_n "checking for frexp... " >&6; }
19681 if test "${gcc_cv_math_func_frexp+set}" = set; then :
19682 $as_echo_n "(cached) " >&6
19683 else
19684 if test x$gcc_no_link = xyes; then
19685 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19688 /* end confdefs.h. */
19690 #ifdef HAVE_COMPLEX_H
19691 #include <complex.h>
19692 #endif
19693 #ifdef HAVE_MATH_H
19694 #include <math.h>
19695 #endif
19697 int (*ptr)() = (int (*)())frexp;
19700 main ()
19702 return 0;
19705 _ACEOF
19706 if ac_fn_c_try_link "$LINENO"; then :
19707 gcc_cv_math_func_frexp=yes
19708 else
19709 gcc_cv_math_func_frexp=no
19711 rm -f core conftest.err conftest.$ac_objext \
19712 conftest$ac_exeext conftest.$ac_ext
19714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexp" >&5
19715 $as_echo "$gcc_cv_math_func_frexp" >&6; }
19716 if test $gcc_cv_math_func_frexp = yes; then
19718 cat >>confdefs.h <<_ACEOF
19719 #define HAVE_FREXP 1
19720 _ACEOF
19727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for frexpl" >&5
19728 $as_echo_n "checking for frexpl... " >&6; }
19729 if test "${gcc_cv_math_func_frexpl+set}" = set; then :
19730 $as_echo_n "(cached) " >&6
19731 else
19732 if test x$gcc_no_link = xyes; then
19733 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19736 /* end confdefs.h. */
19738 #ifdef HAVE_COMPLEX_H
19739 #include <complex.h>
19740 #endif
19741 #ifdef HAVE_MATH_H
19742 #include <math.h>
19743 #endif
19745 int (*ptr)() = (int (*)())frexpl;
19748 main ()
19750 return 0;
19753 _ACEOF
19754 if ac_fn_c_try_link "$LINENO"; then :
19755 gcc_cv_math_func_frexpl=yes
19756 else
19757 gcc_cv_math_func_frexpl=no
19759 rm -f core conftest.err conftest.$ac_objext \
19760 conftest$ac_exeext conftest.$ac_ext
19762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_frexpl" >&5
19763 $as_echo "$gcc_cv_math_func_frexpl" >&6; }
19764 if test $gcc_cv_math_func_frexpl = yes; then
19766 cat >>confdefs.h <<_ACEOF
19767 #define HAVE_FREXPL 1
19768 _ACEOF
19775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotf" >&5
19776 $as_echo_n "checking for hypotf... " >&6; }
19777 if test "${gcc_cv_math_func_hypotf+set}" = set; then :
19778 $as_echo_n "(cached) " >&6
19779 else
19780 if test x$gcc_no_link = xyes; then
19781 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19783 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19784 /* end confdefs.h. */
19786 #ifdef HAVE_COMPLEX_H
19787 #include <complex.h>
19788 #endif
19789 #ifdef HAVE_MATH_H
19790 #include <math.h>
19791 #endif
19793 int (*ptr)() = (int (*)())hypotf;
19796 main ()
19798 return 0;
19801 _ACEOF
19802 if ac_fn_c_try_link "$LINENO"; then :
19803 gcc_cv_math_func_hypotf=yes
19804 else
19805 gcc_cv_math_func_hypotf=no
19807 rm -f core conftest.err conftest.$ac_objext \
19808 conftest$ac_exeext conftest.$ac_ext
19810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotf" >&5
19811 $as_echo "$gcc_cv_math_func_hypotf" >&6; }
19812 if test $gcc_cv_math_func_hypotf = yes; then
19814 cat >>confdefs.h <<_ACEOF
19815 #define HAVE_HYPOTF 1
19816 _ACEOF
19823 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypot" >&5
19824 $as_echo_n "checking for hypot... " >&6; }
19825 if test "${gcc_cv_math_func_hypot+set}" = set; then :
19826 $as_echo_n "(cached) " >&6
19827 else
19828 if test x$gcc_no_link = xyes; then
19829 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19832 /* end confdefs.h. */
19834 #ifdef HAVE_COMPLEX_H
19835 #include <complex.h>
19836 #endif
19837 #ifdef HAVE_MATH_H
19838 #include <math.h>
19839 #endif
19841 int (*ptr)() = (int (*)())hypot;
19844 main ()
19846 return 0;
19849 _ACEOF
19850 if ac_fn_c_try_link "$LINENO"; then :
19851 gcc_cv_math_func_hypot=yes
19852 else
19853 gcc_cv_math_func_hypot=no
19855 rm -f core conftest.err conftest.$ac_objext \
19856 conftest$ac_exeext conftest.$ac_ext
19858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypot" >&5
19859 $as_echo "$gcc_cv_math_func_hypot" >&6; }
19860 if test $gcc_cv_math_func_hypot = yes; then
19862 cat >>confdefs.h <<_ACEOF
19863 #define HAVE_HYPOT 1
19864 _ACEOF
19871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hypotl" >&5
19872 $as_echo_n "checking for hypotl... " >&6; }
19873 if test "${gcc_cv_math_func_hypotl+set}" = set; then :
19874 $as_echo_n "(cached) " >&6
19875 else
19876 if test x$gcc_no_link = xyes; then
19877 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19880 /* end confdefs.h. */
19882 #ifdef HAVE_COMPLEX_H
19883 #include <complex.h>
19884 #endif
19885 #ifdef HAVE_MATH_H
19886 #include <math.h>
19887 #endif
19889 int (*ptr)() = (int (*)())hypotl;
19892 main ()
19894 return 0;
19897 _ACEOF
19898 if ac_fn_c_try_link "$LINENO"; then :
19899 gcc_cv_math_func_hypotl=yes
19900 else
19901 gcc_cv_math_func_hypotl=no
19903 rm -f core conftest.err conftest.$ac_objext \
19904 conftest$ac_exeext conftest.$ac_ext
19906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_hypotl" >&5
19907 $as_echo "$gcc_cv_math_func_hypotl" >&6; }
19908 if test $gcc_cv_math_func_hypotl = yes; then
19910 cat >>confdefs.h <<_ACEOF
19911 #define HAVE_HYPOTL 1
19912 _ACEOF
19919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpf" >&5
19920 $as_echo_n "checking for ldexpf... " >&6; }
19921 if test "${gcc_cv_math_func_ldexpf+set}" = set; then :
19922 $as_echo_n "(cached) " >&6
19923 else
19924 if test x$gcc_no_link = xyes; then
19925 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19928 /* end confdefs.h. */
19930 #ifdef HAVE_COMPLEX_H
19931 #include <complex.h>
19932 #endif
19933 #ifdef HAVE_MATH_H
19934 #include <math.h>
19935 #endif
19937 int (*ptr)() = (int (*)())ldexpf;
19940 main ()
19942 return 0;
19945 _ACEOF
19946 if ac_fn_c_try_link "$LINENO"; then :
19947 gcc_cv_math_func_ldexpf=yes
19948 else
19949 gcc_cv_math_func_ldexpf=no
19951 rm -f core conftest.err conftest.$ac_objext \
19952 conftest$ac_exeext conftest.$ac_ext
19954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpf" >&5
19955 $as_echo "$gcc_cv_math_func_ldexpf" >&6; }
19956 if test $gcc_cv_math_func_ldexpf = yes; then
19958 cat >>confdefs.h <<_ACEOF
19959 #define HAVE_LDEXPF 1
19960 _ACEOF
19967 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexp" >&5
19968 $as_echo_n "checking for ldexp... " >&6; }
19969 if test "${gcc_cv_math_func_ldexp+set}" = set; then :
19970 $as_echo_n "(cached) " >&6
19971 else
19972 if test x$gcc_no_link = xyes; then
19973 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
19975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19976 /* end confdefs.h. */
19978 #ifdef HAVE_COMPLEX_H
19979 #include <complex.h>
19980 #endif
19981 #ifdef HAVE_MATH_H
19982 #include <math.h>
19983 #endif
19985 int (*ptr)() = (int (*)())ldexp;
19988 main ()
19990 return 0;
19993 _ACEOF
19994 if ac_fn_c_try_link "$LINENO"; then :
19995 gcc_cv_math_func_ldexp=yes
19996 else
19997 gcc_cv_math_func_ldexp=no
19999 rm -f core conftest.err conftest.$ac_objext \
20000 conftest$ac_exeext conftest.$ac_ext
20002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexp" >&5
20003 $as_echo "$gcc_cv_math_func_ldexp" >&6; }
20004 if test $gcc_cv_math_func_ldexp = yes; then
20006 cat >>confdefs.h <<_ACEOF
20007 #define HAVE_LDEXP 1
20008 _ACEOF
20015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldexpl" >&5
20016 $as_echo_n "checking for ldexpl... " >&6; }
20017 if test "${gcc_cv_math_func_ldexpl+set}" = set; then :
20018 $as_echo_n "(cached) " >&6
20019 else
20020 if test x$gcc_no_link = xyes; then
20021 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20024 /* end confdefs.h. */
20026 #ifdef HAVE_COMPLEX_H
20027 #include <complex.h>
20028 #endif
20029 #ifdef HAVE_MATH_H
20030 #include <math.h>
20031 #endif
20033 int (*ptr)() = (int (*)())ldexpl;
20036 main ()
20038 return 0;
20041 _ACEOF
20042 if ac_fn_c_try_link "$LINENO"; then :
20043 gcc_cv_math_func_ldexpl=yes
20044 else
20045 gcc_cv_math_func_ldexpl=no
20047 rm -f core conftest.err conftest.$ac_objext \
20048 conftest$ac_exeext conftest.$ac_ext
20050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ldexpl" >&5
20051 $as_echo "$gcc_cv_math_func_ldexpl" >&6; }
20052 if test $gcc_cv_math_func_ldexpl = yes; then
20054 cat >>confdefs.h <<_ACEOF
20055 #define HAVE_LDEXPL 1
20056 _ACEOF
20063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logf" >&5
20064 $as_echo_n "checking for logf... " >&6; }
20065 if test "${gcc_cv_math_func_logf+set}" = set; then :
20066 $as_echo_n "(cached) " >&6
20067 else
20068 if test x$gcc_no_link = xyes; then
20069 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20071 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20072 /* end confdefs.h. */
20074 #ifdef HAVE_COMPLEX_H
20075 #include <complex.h>
20076 #endif
20077 #ifdef HAVE_MATH_H
20078 #include <math.h>
20079 #endif
20081 int (*ptr)() = (int (*)())logf;
20084 main ()
20086 return 0;
20089 _ACEOF
20090 if ac_fn_c_try_link "$LINENO"; then :
20091 gcc_cv_math_func_logf=yes
20092 else
20093 gcc_cv_math_func_logf=no
20095 rm -f core conftest.err conftest.$ac_objext \
20096 conftest$ac_exeext conftest.$ac_ext
20098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logf" >&5
20099 $as_echo "$gcc_cv_math_func_logf" >&6; }
20100 if test $gcc_cv_math_func_logf = yes; then
20102 cat >>confdefs.h <<_ACEOF
20103 #define HAVE_LOGF 1
20104 _ACEOF
20111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log" >&5
20112 $as_echo_n "checking for log... " >&6; }
20113 if test "${gcc_cv_math_func_log+set}" = set; then :
20114 $as_echo_n "(cached) " >&6
20115 else
20116 if test x$gcc_no_link = xyes; then
20117 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20119 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20120 /* end confdefs.h. */
20122 #ifdef HAVE_COMPLEX_H
20123 #include <complex.h>
20124 #endif
20125 #ifdef HAVE_MATH_H
20126 #include <math.h>
20127 #endif
20129 int (*ptr)() = (int (*)())log;
20132 main ()
20134 return 0;
20137 _ACEOF
20138 if ac_fn_c_try_link "$LINENO"; then :
20139 gcc_cv_math_func_log=yes
20140 else
20141 gcc_cv_math_func_log=no
20143 rm -f core conftest.err conftest.$ac_objext \
20144 conftest$ac_exeext conftest.$ac_ext
20146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log" >&5
20147 $as_echo "$gcc_cv_math_func_log" >&6; }
20148 if test $gcc_cv_math_func_log = yes; then
20150 cat >>confdefs.h <<_ACEOF
20151 #define HAVE_LOG 1
20152 _ACEOF
20159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for logl" >&5
20160 $as_echo_n "checking for logl... " >&6; }
20161 if test "${gcc_cv_math_func_logl+set}" = set; then :
20162 $as_echo_n "(cached) " >&6
20163 else
20164 if test x$gcc_no_link = xyes; then
20165 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20167 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20168 /* end confdefs.h. */
20170 #ifdef HAVE_COMPLEX_H
20171 #include <complex.h>
20172 #endif
20173 #ifdef HAVE_MATH_H
20174 #include <math.h>
20175 #endif
20177 int (*ptr)() = (int (*)())logl;
20180 main ()
20182 return 0;
20185 _ACEOF
20186 if ac_fn_c_try_link "$LINENO"; then :
20187 gcc_cv_math_func_logl=yes
20188 else
20189 gcc_cv_math_func_logl=no
20191 rm -f core conftest.err conftest.$ac_objext \
20192 conftest$ac_exeext conftest.$ac_ext
20194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_logl" >&5
20195 $as_echo "$gcc_cv_math_func_logl" >&6; }
20196 if test $gcc_cv_math_func_logl = yes; then
20198 cat >>confdefs.h <<_ACEOF
20199 #define HAVE_LOGL 1
20200 _ACEOF
20207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogf" >&5
20208 $as_echo_n "checking for clogf... " >&6; }
20209 if test "${gcc_cv_math_func_clogf+set}" = set; then :
20210 $as_echo_n "(cached) " >&6
20211 else
20212 if test x$gcc_no_link = xyes; then
20213 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20215 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20216 /* end confdefs.h. */
20218 #ifdef HAVE_COMPLEX_H
20219 #include <complex.h>
20220 #endif
20221 #ifdef HAVE_MATH_H
20222 #include <math.h>
20223 #endif
20225 int (*ptr)() = (int (*)())clogf;
20228 main ()
20230 return 0;
20233 _ACEOF
20234 if ac_fn_c_try_link "$LINENO"; then :
20235 gcc_cv_math_func_clogf=yes
20236 else
20237 gcc_cv_math_func_clogf=no
20239 rm -f core conftest.err conftest.$ac_objext \
20240 conftest$ac_exeext conftest.$ac_ext
20242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogf" >&5
20243 $as_echo "$gcc_cv_math_func_clogf" >&6; }
20244 if test $gcc_cv_math_func_clogf = yes; then
20246 cat >>confdefs.h <<_ACEOF
20247 #define HAVE_CLOGF 1
20248 _ACEOF
20255 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog" >&5
20256 $as_echo_n "checking for clog... " >&6; }
20257 if test "${gcc_cv_math_func_clog+set}" = set; then :
20258 $as_echo_n "(cached) " >&6
20259 else
20260 if test x$gcc_no_link = xyes; then
20261 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20264 /* end confdefs.h. */
20266 #ifdef HAVE_COMPLEX_H
20267 #include <complex.h>
20268 #endif
20269 #ifdef HAVE_MATH_H
20270 #include <math.h>
20271 #endif
20273 int (*ptr)() = (int (*)())clog;
20276 main ()
20278 return 0;
20281 _ACEOF
20282 if ac_fn_c_try_link "$LINENO"; then :
20283 gcc_cv_math_func_clog=yes
20284 else
20285 gcc_cv_math_func_clog=no
20287 rm -f core conftest.err conftest.$ac_objext \
20288 conftest$ac_exeext conftest.$ac_ext
20290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog" >&5
20291 $as_echo "$gcc_cv_math_func_clog" >&6; }
20292 if test $gcc_cv_math_func_clog = yes; then
20294 cat >>confdefs.h <<_ACEOF
20295 #define HAVE_CLOG 1
20296 _ACEOF
20303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clogl" >&5
20304 $as_echo_n "checking for clogl... " >&6; }
20305 if test "${gcc_cv_math_func_clogl+set}" = set; then :
20306 $as_echo_n "(cached) " >&6
20307 else
20308 if test x$gcc_no_link = xyes; then
20309 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20312 /* end confdefs.h. */
20314 #ifdef HAVE_COMPLEX_H
20315 #include <complex.h>
20316 #endif
20317 #ifdef HAVE_MATH_H
20318 #include <math.h>
20319 #endif
20321 int (*ptr)() = (int (*)())clogl;
20324 main ()
20326 return 0;
20329 _ACEOF
20330 if ac_fn_c_try_link "$LINENO"; then :
20331 gcc_cv_math_func_clogl=yes
20332 else
20333 gcc_cv_math_func_clogl=no
20335 rm -f core conftest.err conftest.$ac_objext \
20336 conftest$ac_exeext conftest.$ac_ext
20338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clogl" >&5
20339 $as_echo "$gcc_cv_math_func_clogl" >&6; }
20340 if test $gcc_cv_math_func_clogl = yes; then
20342 cat >>confdefs.h <<_ACEOF
20343 #define HAVE_CLOGL 1
20344 _ACEOF
20351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10f" >&5
20352 $as_echo_n "checking for log10f... " >&6; }
20353 if test "${gcc_cv_math_func_log10f+set}" = set; then :
20354 $as_echo_n "(cached) " >&6
20355 else
20356 if test x$gcc_no_link = xyes; then
20357 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20360 /* end confdefs.h. */
20362 #ifdef HAVE_COMPLEX_H
20363 #include <complex.h>
20364 #endif
20365 #ifdef HAVE_MATH_H
20366 #include <math.h>
20367 #endif
20369 int (*ptr)() = (int (*)())log10f;
20372 main ()
20374 return 0;
20377 _ACEOF
20378 if ac_fn_c_try_link "$LINENO"; then :
20379 gcc_cv_math_func_log10f=yes
20380 else
20381 gcc_cv_math_func_log10f=no
20383 rm -f core conftest.err conftest.$ac_objext \
20384 conftest$ac_exeext conftest.$ac_ext
20386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10f" >&5
20387 $as_echo "$gcc_cv_math_func_log10f" >&6; }
20388 if test $gcc_cv_math_func_log10f = yes; then
20390 cat >>confdefs.h <<_ACEOF
20391 #define HAVE_LOG10F 1
20392 _ACEOF
20399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10" >&5
20400 $as_echo_n "checking for log10... " >&6; }
20401 if test "${gcc_cv_math_func_log10+set}" = set; then :
20402 $as_echo_n "(cached) " >&6
20403 else
20404 if test x$gcc_no_link = xyes; then
20405 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20408 /* end confdefs.h. */
20410 #ifdef HAVE_COMPLEX_H
20411 #include <complex.h>
20412 #endif
20413 #ifdef HAVE_MATH_H
20414 #include <math.h>
20415 #endif
20417 int (*ptr)() = (int (*)())log10;
20420 main ()
20422 return 0;
20425 _ACEOF
20426 if ac_fn_c_try_link "$LINENO"; then :
20427 gcc_cv_math_func_log10=yes
20428 else
20429 gcc_cv_math_func_log10=no
20431 rm -f core conftest.err conftest.$ac_objext \
20432 conftest$ac_exeext conftest.$ac_ext
20434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10" >&5
20435 $as_echo "$gcc_cv_math_func_log10" >&6; }
20436 if test $gcc_cv_math_func_log10 = yes; then
20438 cat >>confdefs.h <<_ACEOF
20439 #define HAVE_LOG10 1
20440 _ACEOF
20447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10l" >&5
20448 $as_echo_n "checking for log10l... " >&6; }
20449 if test "${gcc_cv_math_func_log10l+set}" = set; then :
20450 $as_echo_n "(cached) " >&6
20451 else
20452 if test x$gcc_no_link = xyes; then
20453 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20456 /* end confdefs.h. */
20458 #ifdef HAVE_COMPLEX_H
20459 #include <complex.h>
20460 #endif
20461 #ifdef HAVE_MATH_H
20462 #include <math.h>
20463 #endif
20465 int (*ptr)() = (int (*)())log10l;
20468 main ()
20470 return 0;
20473 _ACEOF
20474 if ac_fn_c_try_link "$LINENO"; then :
20475 gcc_cv_math_func_log10l=yes
20476 else
20477 gcc_cv_math_func_log10l=no
20479 rm -f core conftest.err conftest.$ac_objext \
20480 conftest$ac_exeext conftest.$ac_ext
20482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_log10l" >&5
20483 $as_echo "$gcc_cv_math_func_log10l" >&6; }
20484 if test $gcc_cv_math_func_log10l = yes; then
20486 cat >>confdefs.h <<_ACEOF
20487 #define HAVE_LOG10L 1
20488 _ACEOF
20495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10f" >&5
20496 $as_echo_n "checking for clog10f... " >&6; }
20497 if test "${gcc_cv_math_func_clog10f+set}" = set; then :
20498 $as_echo_n "(cached) " >&6
20499 else
20500 if test x$gcc_no_link = xyes; then
20501 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20503 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20504 /* end confdefs.h. */
20506 #ifdef HAVE_COMPLEX_H
20507 #include <complex.h>
20508 #endif
20509 #ifdef HAVE_MATH_H
20510 #include <math.h>
20511 #endif
20513 int (*ptr)() = (int (*)())clog10f;
20516 main ()
20518 return 0;
20521 _ACEOF
20522 if ac_fn_c_try_link "$LINENO"; then :
20523 gcc_cv_math_func_clog10f=yes
20524 else
20525 gcc_cv_math_func_clog10f=no
20527 rm -f core conftest.err conftest.$ac_objext \
20528 conftest$ac_exeext conftest.$ac_ext
20530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10f" >&5
20531 $as_echo "$gcc_cv_math_func_clog10f" >&6; }
20532 if test $gcc_cv_math_func_clog10f = yes; then
20534 cat >>confdefs.h <<_ACEOF
20535 #define HAVE_CLOG10F 1
20536 _ACEOF
20543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10" >&5
20544 $as_echo_n "checking for clog10... " >&6; }
20545 if test "${gcc_cv_math_func_clog10+set}" = set; then :
20546 $as_echo_n "(cached) " >&6
20547 else
20548 if test x$gcc_no_link = xyes; then
20549 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20551 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20552 /* end confdefs.h. */
20554 #ifdef HAVE_COMPLEX_H
20555 #include <complex.h>
20556 #endif
20557 #ifdef HAVE_MATH_H
20558 #include <math.h>
20559 #endif
20561 int (*ptr)() = (int (*)())clog10;
20564 main ()
20566 return 0;
20569 _ACEOF
20570 if ac_fn_c_try_link "$LINENO"; then :
20571 gcc_cv_math_func_clog10=yes
20572 else
20573 gcc_cv_math_func_clog10=no
20575 rm -f core conftest.err conftest.$ac_objext \
20576 conftest$ac_exeext conftest.$ac_ext
20578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10" >&5
20579 $as_echo "$gcc_cv_math_func_clog10" >&6; }
20580 if test $gcc_cv_math_func_clog10 = yes; then
20582 cat >>confdefs.h <<_ACEOF
20583 #define HAVE_CLOG10 1
20584 _ACEOF
20591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clog10l" >&5
20592 $as_echo_n "checking for clog10l... " >&6; }
20593 if test "${gcc_cv_math_func_clog10l+set}" = set; then :
20594 $as_echo_n "(cached) " >&6
20595 else
20596 if test x$gcc_no_link = xyes; then
20597 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20600 /* end confdefs.h. */
20602 #ifdef HAVE_COMPLEX_H
20603 #include <complex.h>
20604 #endif
20605 #ifdef HAVE_MATH_H
20606 #include <math.h>
20607 #endif
20609 int (*ptr)() = (int (*)())clog10l;
20612 main ()
20614 return 0;
20617 _ACEOF
20618 if ac_fn_c_try_link "$LINENO"; then :
20619 gcc_cv_math_func_clog10l=yes
20620 else
20621 gcc_cv_math_func_clog10l=no
20623 rm -f core conftest.err conftest.$ac_objext \
20624 conftest$ac_exeext conftest.$ac_ext
20626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_clog10l" >&5
20627 $as_echo "$gcc_cv_math_func_clog10l" >&6; }
20628 if test $gcc_cv_math_func_clog10l = yes; then
20630 cat >>confdefs.h <<_ACEOF
20631 #define HAVE_CLOG10L 1
20632 _ACEOF
20639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterf" >&5
20640 $as_echo_n "checking for nextafterf... " >&6; }
20641 if test "${gcc_cv_math_func_nextafterf+set}" = set; then :
20642 $as_echo_n "(cached) " >&6
20643 else
20644 if test x$gcc_no_link = xyes; then
20645 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20648 /* end confdefs.h. */
20650 #ifdef HAVE_COMPLEX_H
20651 #include <complex.h>
20652 #endif
20653 #ifdef HAVE_MATH_H
20654 #include <math.h>
20655 #endif
20657 int (*ptr)() = (int (*)())nextafterf;
20660 main ()
20662 return 0;
20665 _ACEOF
20666 if ac_fn_c_try_link "$LINENO"; then :
20667 gcc_cv_math_func_nextafterf=yes
20668 else
20669 gcc_cv_math_func_nextafterf=no
20671 rm -f core conftest.err conftest.$ac_objext \
20672 conftest$ac_exeext conftest.$ac_ext
20674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterf" >&5
20675 $as_echo "$gcc_cv_math_func_nextafterf" >&6; }
20676 if test $gcc_cv_math_func_nextafterf = yes; then
20678 cat >>confdefs.h <<_ACEOF
20679 #define HAVE_NEXTAFTERF 1
20680 _ACEOF
20687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafter" >&5
20688 $as_echo_n "checking for nextafter... " >&6; }
20689 if test "${gcc_cv_math_func_nextafter+set}" = set; then :
20690 $as_echo_n "(cached) " >&6
20691 else
20692 if test x$gcc_no_link = xyes; then
20693 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20696 /* end confdefs.h. */
20698 #ifdef HAVE_COMPLEX_H
20699 #include <complex.h>
20700 #endif
20701 #ifdef HAVE_MATH_H
20702 #include <math.h>
20703 #endif
20705 int (*ptr)() = (int (*)())nextafter;
20708 main ()
20710 return 0;
20713 _ACEOF
20714 if ac_fn_c_try_link "$LINENO"; then :
20715 gcc_cv_math_func_nextafter=yes
20716 else
20717 gcc_cv_math_func_nextafter=no
20719 rm -f core conftest.err conftest.$ac_objext \
20720 conftest$ac_exeext conftest.$ac_ext
20722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafter" >&5
20723 $as_echo "$gcc_cv_math_func_nextafter" >&6; }
20724 if test $gcc_cv_math_func_nextafter = yes; then
20726 cat >>confdefs.h <<_ACEOF
20727 #define HAVE_NEXTAFTER 1
20728 _ACEOF
20735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nextafterl" >&5
20736 $as_echo_n "checking for nextafterl... " >&6; }
20737 if test "${gcc_cv_math_func_nextafterl+set}" = set; then :
20738 $as_echo_n "(cached) " >&6
20739 else
20740 if test x$gcc_no_link = xyes; then
20741 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20744 /* end confdefs.h. */
20746 #ifdef HAVE_COMPLEX_H
20747 #include <complex.h>
20748 #endif
20749 #ifdef HAVE_MATH_H
20750 #include <math.h>
20751 #endif
20753 int (*ptr)() = (int (*)())nextafterl;
20756 main ()
20758 return 0;
20761 _ACEOF
20762 if ac_fn_c_try_link "$LINENO"; then :
20763 gcc_cv_math_func_nextafterl=yes
20764 else
20765 gcc_cv_math_func_nextafterl=no
20767 rm -f core conftest.err conftest.$ac_objext \
20768 conftest$ac_exeext conftest.$ac_ext
20770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_nextafterl" >&5
20771 $as_echo "$gcc_cv_math_func_nextafterl" >&6; }
20772 if test $gcc_cv_math_func_nextafterl = yes; then
20774 cat >>confdefs.h <<_ACEOF
20775 #define HAVE_NEXTAFTERL 1
20776 _ACEOF
20783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powf" >&5
20784 $as_echo_n "checking for powf... " >&6; }
20785 if test "${gcc_cv_math_func_powf+set}" = set; then :
20786 $as_echo_n "(cached) " >&6
20787 else
20788 if test x$gcc_no_link = xyes; then
20789 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20792 /* end confdefs.h. */
20794 #ifdef HAVE_COMPLEX_H
20795 #include <complex.h>
20796 #endif
20797 #ifdef HAVE_MATH_H
20798 #include <math.h>
20799 #endif
20801 int (*ptr)() = (int (*)())powf;
20804 main ()
20806 return 0;
20809 _ACEOF
20810 if ac_fn_c_try_link "$LINENO"; then :
20811 gcc_cv_math_func_powf=yes
20812 else
20813 gcc_cv_math_func_powf=no
20815 rm -f core conftest.err conftest.$ac_objext \
20816 conftest$ac_exeext conftest.$ac_ext
20818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_powf" >&5
20819 $as_echo "$gcc_cv_math_func_powf" >&6; }
20820 if test $gcc_cv_math_func_powf = yes; then
20822 cat >>confdefs.h <<_ACEOF
20823 #define HAVE_POWF 1
20824 _ACEOF
20831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow" >&5
20832 $as_echo_n "checking for pow... " >&6; }
20833 if test "${gcc_cv_math_func_pow+set}" = set; then :
20834 $as_echo_n "(cached) " >&6
20835 else
20836 if test x$gcc_no_link = xyes; then
20837 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20840 /* end confdefs.h. */
20842 #ifdef HAVE_COMPLEX_H
20843 #include <complex.h>
20844 #endif
20845 #ifdef HAVE_MATH_H
20846 #include <math.h>
20847 #endif
20849 int (*ptr)() = (int (*)())pow;
20852 main ()
20854 return 0;
20857 _ACEOF
20858 if ac_fn_c_try_link "$LINENO"; then :
20859 gcc_cv_math_func_pow=yes
20860 else
20861 gcc_cv_math_func_pow=no
20863 rm -f core conftest.err conftest.$ac_objext \
20864 conftest$ac_exeext conftest.$ac_ext
20866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_pow" >&5
20867 $as_echo "$gcc_cv_math_func_pow" >&6; }
20868 if test $gcc_cv_math_func_pow = yes; then
20870 cat >>confdefs.h <<_ACEOF
20871 #define HAVE_POW 1
20872 _ACEOF
20879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for powl" >&5
20880 $as_echo_n "checking for powl... " >&6; }
20881 if test "${gcc_cv_math_func_powl+set}" = set; then :
20882 $as_echo_n "(cached) " >&6
20883 else
20884 if test x$gcc_no_link = xyes; then
20885 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20888 /* end confdefs.h. */
20890 #ifdef HAVE_COMPLEX_H
20891 #include <complex.h>
20892 #endif
20893 #ifdef HAVE_MATH_H
20894 #include <math.h>
20895 #endif
20897 int (*ptr)() = (int (*)())powl;
20900 main ()
20902 return 0;
20905 _ACEOF
20906 if ac_fn_c_try_link "$LINENO"; then :
20907 gcc_cv_math_func_powl=yes
20908 else
20909 gcc_cv_math_func_powl=no
20911 rm -f core conftest.err conftest.$ac_objext \
20912 conftest$ac_exeext conftest.$ac_ext
20914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_powl" >&5
20915 $as_echo "$gcc_cv_math_func_powl" >&6; }
20916 if test $gcc_cv_math_func_powl = yes; then
20918 cat >>confdefs.h <<_ACEOF
20919 #define HAVE_POWL 1
20920 _ACEOF
20927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowf" >&5
20928 $as_echo_n "checking for cpowf... " >&6; }
20929 if test "${gcc_cv_math_func_cpowf+set}" = set; then :
20930 $as_echo_n "(cached) " >&6
20931 else
20932 if test x$gcc_no_link = xyes; then
20933 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20935 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20936 /* end confdefs.h. */
20938 #ifdef HAVE_COMPLEX_H
20939 #include <complex.h>
20940 #endif
20941 #ifdef HAVE_MATH_H
20942 #include <math.h>
20943 #endif
20945 int (*ptr)() = (int (*)())cpowf;
20948 main ()
20950 return 0;
20953 _ACEOF
20954 if ac_fn_c_try_link "$LINENO"; then :
20955 gcc_cv_math_func_cpowf=yes
20956 else
20957 gcc_cv_math_func_cpowf=no
20959 rm -f core conftest.err conftest.$ac_objext \
20960 conftest$ac_exeext conftest.$ac_ext
20962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowf" >&5
20963 $as_echo "$gcc_cv_math_func_cpowf" >&6; }
20964 if test $gcc_cv_math_func_cpowf = yes; then
20966 cat >>confdefs.h <<_ACEOF
20967 #define HAVE_CPOWF 1
20968 _ACEOF
20975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpow" >&5
20976 $as_echo_n "checking for cpow... " >&6; }
20977 if test "${gcc_cv_math_func_cpow+set}" = set; then :
20978 $as_echo_n "(cached) " >&6
20979 else
20980 if test x$gcc_no_link = xyes; then
20981 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
20983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20984 /* end confdefs.h. */
20986 #ifdef HAVE_COMPLEX_H
20987 #include <complex.h>
20988 #endif
20989 #ifdef HAVE_MATH_H
20990 #include <math.h>
20991 #endif
20993 int (*ptr)() = (int (*)())cpow;
20996 main ()
20998 return 0;
21001 _ACEOF
21002 if ac_fn_c_try_link "$LINENO"; then :
21003 gcc_cv_math_func_cpow=yes
21004 else
21005 gcc_cv_math_func_cpow=no
21007 rm -f core conftest.err conftest.$ac_objext \
21008 conftest$ac_exeext conftest.$ac_ext
21010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpow" >&5
21011 $as_echo "$gcc_cv_math_func_cpow" >&6; }
21012 if test $gcc_cv_math_func_cpow = yes; then
21014 cat >>confdefs.h <<_ACEOF
21015 #define HAVE_CPOW 1
21016 _ACEOF
21023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cpowl" >&5
21024 $as_echo_n "checking for cpowl... " >&6; }
21025 if test "${gcc_cv_math_func_cpowl+set}" = set; then :
21026 $as_echo_n "(cached) " >&6
21027 else
21028 if test x$gcc_no_link = xyes; then
21029 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21032 /* end confdefs.h. */
21034 #ifdef HAVE_COMPLEX_H
21035 #include <complex.h>
21036 #endif
21037 #ifdef HAVE_MATH_H
21038 #include <math.h>
21039 #endif
21041 int (*ptr)() = (int (*)())cpowl;
21044 main ()
21046 return 0;
21049 _ACEOF
21050 if ac_fn_c_try_link "$LINENO"; then :
21051 gcc_cv_math_func_cpowl=yes
21052 else
21053 gcc_cv_math_func_cpowl=no
21055 rm -f core conftest.err conftest.$ac_objext \
21056 conftest$ac_exeext conftest.$ac_ext
21058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cpowl" >&5
21059 $as_echo "$gcc_cv_math_func_cpowl" >&6; }
21060 if test $gcc_cv_math_func_cpowl = yes; then
21062 cat >>confdefs.h <<_ACEOF
21063 #define HAVE_CPOWL 1
21064 _ACEOF
21071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundf" >&5
21072 $as_echo_n "checking for roundf... " >&6; }
21073 if test "${gcc_cv_math_func_roundf+set}" = set; then :
21074 $as_echo_n "(cached) " >&6
21075 else
21076 if test x$gcc_no_link = xyes; then
21077 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21080 /* end confdefs.h. */
21082 #ifdef HAVE_COMPLEX_H
21083 #include <complex.h>
21084 #endif
21085 #ifdef HAVE_MATH_H
21086 #include <math.h>
21087 #endif
21089 int (*ptr)() = (int (*)())roundf;
21092 main ()
21094 return 0;
21097 _ACEOF
21098 if ac_fn_c_try_link "$LINENO"; then :
21099 gcc_cv_math_func_roundf=yes
21100 else
21101 gcc_cv_math_func_roundf=no
21103 rm -f core conftest.err conftest.$ac_objext \
21104 conftest$ac_exeext conftest.$ac_ext
21106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundf" >&5
21107 $as_echo "$gcc_cv_math_func_roundf" >&6; }
21108 if test $gcc_cv_math_func_roundf = yes; then
21110 cat >>confdefs.h <<_ACEOF
21111 #define HAVE_ROUNDF 1
21112 _ACEOF
21119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for round" >&5
21120 $as_echo_n "checking for round... " >&6; }
21121 if test "${gcc_cv_math_func_round+set}" = set; then :
21122 $as_echo_n "(cached) " >&6
21123 else
21124 if test x$gcc_no_link = xyes; then
21125 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21128 /* end confdefs.h. */
21130 #ifdef HAVE_COMPLEX_H
21131 #include <complex.h>
21132 #endif
21133 #ifdef HAVE_MATH_H
21134 #include <math.h>
21135 #endif
21137 int (*ptr)() = (int (*)())round;
21140 main ()
21142 return 0;
21145 _ACEOF
21146 if ac_fn_c_try_link "$LINENO"; then :
21147 gcc_cv_math_func_round=yes
21148 else
21149 gcc_cv_math_func_round=no
21151 rm -f core conftest.err conftest.$ac_objext \
21152 conftest$ac_exeext conftest.$ac_ext
21154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_round" >&5
21155 $as_echo "$gcc_cv_math_func_round" >&6; }
21156 if test $gcc_cv_math_func_round = yes; then
21158 cat >>confdefs.h <<_ACEOF
21159 #define HAVE_ROUND 1
21160 _ACEOF
21167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for roundl" >&5
21168 $as_echo_n "checking for roundl... " >&6; }
21169 if test "${gcc_cv_math_func_roundl+set}" = set; then :
21170 $as_echo_n "(cached) " >&6
21171 else
21172 if test x$gcc_no_link = xyes; then
21173 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21176 /* end confdefs.h. */
21178 #ifdef HAVE_COMPLEX_H
21179 #include <complex.h>
21180 #endif
21181 #ifdef HAVE_MATH_H
21182 #include <math.h>
21183 #endif
21185 int (*ptr)() = (int (*)())roundl;
21188 main ()
21190 return 0;
21193 _ACEOF
21194 if ac_fn_c_try_link "$LINENO"; then :
21195 gcc_cv_math_func_roundl=yes
21196 else
21197 gcc_cv_math_func_roundl=no
21199 rm -f core conftest.err conftest.$ac_objext \
21200 conftest$ac_exeext conftest.$ac_ext
21202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_roundl" >&5
21203 $as_echo "$gcc_cv_math_func_roundl" >&6; }
21204 if test $gcc_cv_math_func_roundl = yes; then
21206 cat >>confdefs.h <<_ACEOF
21207 #define HAVE_ROUNDL 1
21208 _ACEOF
21215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundf" >&5
21216 $as_echo_n "checking for lroundf... " >&6; }
21217 if test "${gcc_cv_math_func_lroundf+set}" = set; then :
21218 $as_echo_n "(cached) " >&6
21219 else
21220 if test x$gcc_no_link = xyes; then
21221 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21224 /* end confdefs.h. */
21226 #ifdef HAVE_COMPLEX_H
21227 #include <complex.h>
21228 #endif
21229 #ifdef HAVE_MATH_H
21230 #include <math.h>
21231 #endif
21233 int (*ptr)() = (int (*)())lroundf;
21236 main ()
21238 return 0;
21241 _ACEOF
21242 if ac_fn_c_try_link "$LINENO"; then :
21243 gcc_cv_math_func_lroundf=yes
21244 else
21245 gcc_cv_math_func_lroundf=no
21247 rm -f core conftest.err conftest.$ac_objext \
21248 conftest$ac_exeext conftest.$ac_ext
21250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundf" >&5
21251 $as_echo "$gcc_cv_math_func_lroundf" >&6; }
21252 if test $gcc_cv_math_func_lroundf = yes; then
21254 cat >>confdefs.h <<_ACEOF
21255 #define HAVE_LROUNDF 1
21256 _ACEOF
21263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lround" >&5
21264 $as_echo_n "checking for lround... " >&6; }
21265 if test "${gcc_cv_math_func_lround+set}" = set; then :
21266 $as_echo_n "(cached) " >&6
21267 else
21268 if test x$gcc_no_link = xyes; then
21269 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21272 /* end confdefs.h. */
21274 #ifdef HAVE_COMPLEX_H
21275 #include <complex.h>
21276 #endif
21277 #ifdef HAVE_MATH_H
21278 #include <math.h>
21279 #endif
21281 int (*ptr)() = (int (*)())lround;
21284 main ()
21286 return 0;
21289 _ACEOF
21290 if ac_fn_c_try_link "$LINENO"; then :
21291 gcc_cv_math_func_lround=yes
21292 else
21293 gcc_cv_math_func_lround=no
21295 rm -f core conftest.err conftest.$ac_objext \
21296 conftest$ac_exeext conftest.$ac_ext
21298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lround" >&5
21299 $as_echo "$gcc_cv_math_func_lround" >&6; }
21300 if test $gcc_cv_math_func_lround = yes; then
21302 cat >>confdefs.h <<_ACEOF
21303 #define HAVE_LROUND 1
21304 _ACEOF
21311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lroundl" >&5
21312 $as_echo_n "checking for lroundl... " >&6; }
21313 if test "${gcc_cv_math_func_lroundl+set}" = set; then :
21314 $as_echo_n "(cached) " >&6
21315 else
21316 if test x$gcc_no_link = xyes; then
21317 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21320 /* end confdefs.h. */
21322 #ifdef HAVE_COMPLEX_H
21323 #include <complex.h>
21324 #endif
21325 #ifdef HAVE_MATH_H
21326 #include <math.h>
21327 #endif
21329 int (*ptr)() = (int (*)())lroundl;
21332 main ()
21334 return 0;
21337 _ACEOF
21338 if ac_fn_c_try_link "$LINENO"; then :
21339 gcc_cv_math_func_lroundl=yes
21340 else
21341 gcc_cv_math_func_lroundl=no
21343 rm -f core conftest.err conftest.$ac_objext \
21344 conftest$ac_exeext conftest.$ac_ext
21346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lroundl" >&5
21347 $as_echo "$gcc_cv_math_func_lroundl" >&6; }
21348 if test $gcc_cv_math_func_lroundl = yes; then
21350 cat >>confdefs.h <<_ACEOF
21351 #define HAVE_LROUNDL 1
21352 _ACEOF
21359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundf" >&5
21360 $as_echo_n "checking for llroundf... " >&6; }
21361 if test "${gcc_cv_math_func_llroundf+set}" = set; then :
21362 $as_echo_n "(cached) " >&6
21363 else
21364 if test x$gcc_no_link = xyes; then
21365 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21368 /* end confdefs.h. */
21370 #ifdef HAVE_COMPLEX_H
21371 #include <complex.h>
21372 #endif
21373 #ifdef HAVE_MATH_H
21374 #include <math.h>
21375 #endif
21377 int (*ptr)() = (int (*)())llroundf;
21380 main ()
21382 return 0;
21385 _ACEOF
21386 if ac_fn_c_try_link "$LINENO"; then :
21387 gcc_cv_math_func_llroundf=yes
21388 else
21389 gcc_cv_math_func_llroundf=no
21391 rm -f core conftest.err conftest.$ac_objext \
21392 conftest$ac_exeext conftest.$ac_ext
21394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundf" >&5
21395 $as_echo "$gcc_cv_math_func_llroundf" >&6; }
21396 if test $gcc_cv_math_func_llroundf = yes; then
21398 cat >>confdefs.h <<_ACEOF
21399 #define HAVE_LLROUNDF 1
21400 _ACEOF
21407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llround" >&5
21408 $as_echo_n "checking for llround... " >&6; }
21409 if test "${gcc_cv_math_func_llround+set}" = set; then :
21410 $as_echo_n "(cached) " >&6
21411 else
21412 if test x$gcc_no_link = xyes; then
21413 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21415 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21416 /* end confdefs.h. */
21418 #ifdef HAVE_COMPLEX_H
21419 #include <complex.h>
21420 #endif
21421 #ifdef HAVE_MATH_H
21422 #include <math.h>
21423 #endif
21425 int (*ptr)() = (int (*)())llround;
21428 main ()
21430 return 0;
21433 _ACEOF
21434 if ac_fn_c_try_link "$LINENO"; then :
21435 gcc_cv_math_func_llround=yes
21436 else
21437 gcc_cv_math_func_llround=no
21439 rm -f core conftest.err conftest.$ac_objext \
21440 conftest$ac_exeext conftest.$ac_ext
21442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llround" >&5
21443 $as_echo "$gcc_cv_math_func_llround" >&6; }
21444 if test $gcc_cv_math_func_llround = yes; then
21446 cat >>confdefs.h <<_ACEOF
21447 #define HAVE_LLROUND 1
21448 _ACEOF
21455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for llroundl" >&5
21456 $as_echo_n "checking for llroundl... " >&6; }
21457 if test "${gcc_cv_math_func_llroundl+set}" = set; then :
21458 $as_echo_n "(cached) " >&6
21459 else
21460 if test x$gcc_no_link = xyes; then
21461 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21463 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21464 /* end confdefs.h. */
21466 #ifdef HAVE_COMPLEX_H
21467 #include <complex.h>
21468 #endif
21469 #ifdef HAVE_MATH_H
21470 #include <math.h>
21471 #endif
21473 int (*ptr)() = (int (*)())llroundl;
21476 main ()
21478 return 0;
21481 _ACEOF
21482 if ac_fn_c_try_link "$LINENO"; then :
21483 gcc_cv_math_func_llroundl=yes
21484 else
21485 gcc_cv_math_func_llroundl=no
21487 rm -f core conftest.err conftest.$ac_objext \
21488 conftest$ac_exeext conftest.$ac_ext
21490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_llroundl" >&5
21491 $as_echo "$gcc_cv_math_func_llroundl" >&6; }
21492 if test $gcc_cv_math_func_llroundl = yes; then
21494 cat >>confdefs.h <<_ACEOF
21495 #define HAVE_LLROUNDL 1
21496 _ACEOF
21503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnf" >&5
21504 $as_echo_n "checking for scalbnf... " >&6; }
21505 if test "${gcc_cv_math_func_scalbnf+set}" = set; then :
21506 $as_echo_n "(cached) " >&6
21507 else
21508 if test x$gcc_no_link = xyes; then
21509 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21512 /* end confdefs.h. */
21514 #ifdef HAVE_COMPLEX_H
21515 #include <complex.h>
21516 #endif
21517 #ifdef HAVE_MATH_H
21518 #include <math.h>
21519 #endif
21521 int (*ptr)() = (int (*)())scalbnf;
21524 main ()
21526 return 0;
21529 _ACEOF
21530 if ac_fn_c_try_link "$LINENO"; then :
21531 gcc_cv_math_func_scalbnf=yes
21532 else
21533 gcc_cv_math_func_scalbnf=no
21535 rm -f core conftest.err conftest.$ac_objext \
21536 conftest$ac_exeext conftest.$ac_ext
21538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnf" >&5
21539 $as_echo "$gcc_cv_math_func_scalbnf" >&6; }
21540 if test $gcc_cv_math_func_scalbnf = yes; then
21542 cat >>confdefs.h <<_ACEOF
21543 #define HAVE_SCALBNF 1
21544 _ACEOF
21551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbn" >&5
21552 $as_echo_n "checking for scalbn... " >&6; }
21553 if test "${gcc_cv_math_func_scalbn+set}" = set; then :
21554 $as_echo_n "(cached) " >&6
21555 else
21556 if test x$gcc_no_link = xyes; then
21557 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21560 /* end confdefs.h. */
21562 #ifdef HAVE_COMPLEX_H
21563 #include <complex.h>
21564 #endif
21565 #ifdef HAVE_MATH_H
21566 #include <math.h>
21567 #endif
21569 int (*ptr)() = (int (*)())scalbn;
21572 main ()
21574 return 0;
21577 _ACEOF
21578 if ac_fn_c_try_link "$LINENO"; then :
21579 gcc_cv_math_func_scalbn=yes
21580 else
21581 gcc_cv_math_func_scalbn=no
21583 rm -f core conftest.err conftest.$ac_objext \
21584 conftest$ac_exeext conftest.$ac_ext
21586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbn" >&5
21587 $as_echo "$gcc_cv_math_func_scalbn" >&6; }
21588 if test $gcc_cv_math_func_scalbn = yes; then
21590 cat >>confdefs.h <<_ACEOF
21591 #define HAVE_SCALBN 1
21592 _ACEOF
21599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for scalbnl" >&5
21600 $as_echo_n "checking for scalbnl... " >&6; }
21601 if test "${gcc_cv_math_func_scalbnl+set}" = set; then :
21602 $as_echo_n "(cached) " >&6
21603 else
21604 if test x$gcc_no_link = xyes; then
21605 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21608 /* end confdefs.h. */
21610 #ifdef HAVE_COMPLEX_H
21611 #include <complex.h>
21612 #endif
21613 #ifdef HAVE_MATH_H
21614 #include <math.h>
21615 #endif
21617 int (*ptr)() = (int (*)())scalbnl;
21620 main ()
21622 return 0;
21625 _ACEOF
21626 if ac_fn_c_try_link "$LINENO"; then :
21627 gcc_cv_math_func_scalbnl=yes
21628 else
21629 gcc_cv_math_func_scalbnl=no
21631 rm -f core conftest.err conftest.$ac_objext \
21632 conftest$ac_exeext conftest.$ac_ext
21634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_scalbnl" >&5
21635 $as_echo "$gcc_cv_math_func_scalbnl" >&6; }
21636 if test $gcc_cv_math_func_scalbnl = yes; then
21638 cat >>confdefs.h <<_ACEOF
21639 #define HAVE_SCALBNL 1
21640 _ACEOF
21647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinf" >&5
21648 $as_echo_n "checking for sinf... " >&6; }
21649 if test "${gcc_cv_math_func_sinf+set}" = set; then :
21650 $as_echo_n "(cached) " >&6
21651 else
21652 if test x$gcc_no_link = xyes; then
21653 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21655 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21656 /* end confdefs.h. */
21658 #ifdef HAVE_COMPLEX_H
21659 #include <complex.h>
21660 #endif
21661 #ifdef HAVE_MATH_H
21662 #include <math.h>
21663 #endif
21665 int (*ptr)() = (int (*)())sinf;
21668 main ()
21670 return 0;
21673 _ACEOF
21674 if ac_fn_c_try_link "$LINENO"; then :
21675 gcc_cv_math_func_sinf=yes
21676 else
21677 gcc_cv_math_func_sinf=no
21679 rm -f core conftest.err conftest.$ac_objext \
21680 conftest$ac_exeext conftest.$ac_ext
21682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinf" >&5
21683 $as_echo "$gcc_cv_math_func_sinf" >&6; }
21684 if test $gcc_cv_math_func_sinf = yes; then
21686 cat >>confdefs.h <<_ACEOF
21687 #define HAVE_SINF 1
21688 _ACEOF
21695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sin" >&5
21696 $as_echo_n "checking for sin... " >&6; }
21697 if test "${gcc_cv_math_func_sin+set}" = set; then :
21698 $as_echo_n "(cached) " >&6
21699 else
21700 if test x$gcc_no_link = xyes; then
21701 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21704 /* end confdefs.h. */
21706 #ifdef HAVE_COMPLEX_H
21707 #include <complex.h>
21708 #endif
21709 #ifdef HAVE_MATH_H
21710 #include <math.h>
21711 #endif
21713 int (*ptr)() = (int (*)())sin;
21716 main ()
21718 return 0;
21721 _ACEOF
21722 if ac_fn_c_try_link "$LINENO"; then :
21723 gcc_cv_math_func_sin=yes
21724 else
21725 gcc_cv_math_func_sin=no
21727 rm -f core conftest.err conftest.$ac_objext \
21728 conftest$ac_exeext conftest.$ac_ext
21730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sin" >&5
21731 $as_echo "$gcc_cv_math_func_sin" >&6; }
21732 if test $gcc_cv_math_func_sin = yes; then
21734 cat >>confdefs.h <<_ACEOF
21735 #define HAVE_SIN 1
21736 _ACEOF
21743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinl" >&5
21744 $as_echo_n "checking for sinl... " >&6; }
21745 if test "${gcc_cv_math_func_sinl+set}" = set; then :
21746 $as_echo_n "(cached) " >&6
21747 else
21748 if test x$gcc_no_link = xyes; then
21749 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21752 /* end confdefs.h. */
21754 #ifdef HAVE_COMPLEX_H
21755 #include <complex.h>
21756 #endif
21757 #ifdef HAVE_MATH_H
21758 #include <math.h>
21759 #endif
21761 int (*ptr)() = (int (*)())sinl;
21764 main ()
21766 return 0;
21769 _ACEOF
21770 if ac_fn_c_try_link "$LINENO"; then :
21771 gcc_cv_math_func_sinl=yes
21772 else
21773 gcc_cv_math_func_sinl=no
21775 rm -f core conftest.err conftest.$ac_objext \
21776 conftest$ac_exeext conftest.$ac_ext
21778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinl" >&5
21779 $as_echo "$gcc_cv_math_func_sinl" >&6; }
21780 if test $gcc_cv_math_func_sinl = yes; then
21782 cat >>confdefs.h <<_ACEOF
21783 #define HAVE_SINL 1
21784 _ACEOF
21791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinf" >&5
21792 $as_echo_n "checking for csinf... " >&6; }
21793 if test "${gcc_cv_math_func_csinf+set}" = set; then :
21794 $as_echo_n "(cached) " >&6
21795 else
21796 if test x$gcc_no_link = xyes; then
21797 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21800 /* end confdefs.h. */
21802 #ifdef HAVE_COMPLEX_H
21803 #include <complex.h>
21804 #endif
21805 #ifdef HAVE_MATH_H
21806 #include <math.h>
21807 #endif
21809 int (*ptr)() = (int (*)())csinf;
21812 main ()
21814 return 0;
21817 _ACEOF
21818 if ac_fn_c_try_link "$LINENO"; then :
21819 gcc_cv_math_func_csinf=yes
21820 else
21821 gcc_cv_math_func_csinf=no
21823 rm -f core conftest.err conftest.$ac_objext \
21824 conftest$ac_exeext conftest.$ac_ext
21826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinf" >&5
21827 $as_echo "$gcc_cv_math_func_csinf" >&6; }
21828 if test $gcc_cv_math_func_csinf = yes; then
21830 cat >>confdefs.h <<_ACEOF
21831 #define HAVE_CSINF 1
21832 _ACEOF
21839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csin" >&5
21840 $as_echo_n "checking for csin... " >&6; }
21841 if test "${gcc_cv_math_func_csin+set}" = set; then :
21842 $as_echo_n "(cached) " >&6
21843 else
21844 if test x$gcc_no_link = xyes; then
21845 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21848 /* end confdefs.h. */
21850 #ifdef HAVE_COMPLEX_H
21851 #include <complex.h>
21852 #endif
21853 #ifdef HAVE_MATH_H
21854 #include <math.h>
21855 #endif
21857 int (*ptr)() = (int (*)())csin;
21860 main ()
21862 return 0;
21865 _ACEOF
21866 if ac_fn_c_try_link "$LINENO"; then :
21867 gcc_cv_math_func_csin=yes
21868 else
21869 gcc_cv_math_func_csin=no
21871 rm -f core conftest.err conftest.$ac_objext \
21872 conftest$ac_exeext conftest.$ac_ext
21874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csin" >&5
21875 $as_echo "$gcc_cv_math_func_csin" >&6; }
21876 if test $gcc_cv_math_func_csin = yes; then
21878 cat >>confdefs.h <<_ACEOF
21879 #define HAVE_CSIN 1
21880 _ACEOF
21887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinl" >&5
21888 $as_echo_n "checking for csinl... " >&6; }
21889 if test "${gcc_cv_math_func_csinl+set}" = set; then :
21890 $as_echo_n "(cached) " >&6
21891 else
21892 if test x$gcc_no_link = xyes; then
21893 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21896 /* end confdefs.h. */
21898 #ifdef HAVE_COMPLEX_H
21899 #include <complex.h>
21900 #endif
21901 #ifdef HAVE_MATH_H
21902 #include <math.h>
21903 #endif
21905 int (*ptr)() = (int (*)())csinl;
21908 main ()
21910 return 0;
21913 _ACEOF
21914 if ac_fn_c_try_link "$LINENO"; then :
21915 gcc_cv_math_func_csinl=yes
21916 else
21917 gcc_cv_math_func_csinl=no
21919 rm -f core conftest.err conftest.$ac_objext \
21920 conftest$ac_exeext conftest.$ac_ext
21922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinl" >&5
21923 $as_echo "$gcc_cv_math_func_csinl" >&6; }
21924 if test $gcc_cv_math_func_csinl = yes; then
21926 cat >>confdefs.h <<_ACEOF
21927 #define HAVE_CSINL 1
21928 _ACEOF
21935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhf" >&5
21936 $as_echo_n "checking for sinhf... " >&6; }
21937 if test "${gcc_cv_math_func_sinhf+set}" = set; then :
21938 $as_echo_n "(cached) " >&6
21939 else
21940 if test x$gcc_no_link = xyes; then
21941 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21944 /* end confdefs.h. */
21946 #ifdef HAVE_COMPLEX_H
21947 #include <complex.h>
21948 #endif
21949 #ifdef HAVE_MATH_H
21950 #include <math.h>
21951 #endif
21953 int (*ptr)() = (int (*)())sinhf;
21956 main ()
21958 return 0;
21961 _ACEOF
21962 if ac_fn_c_try_link "$LINENO"; then :
21963 gcc_cv_math_func_sinhf=yes
21964 else
21965 gcc_cv_math_func_sinhf=no
21967 rm -f core conftest.err conftest.$ac_objext \
21968 conftest$ac_exeext conftest.$ac_ext
21970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhf" >&5
21971 $as_echo "$gcc_cv_math_func_sinhf" >&6; }
21972 if test $gcc_cv_math_func_sinhf = yes; then
21974 cat >>confdefs.h <<_ACEOF
21975 #define HAVE_SINHF 1
21976 _ACEOF
21983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinh" >&5
21984 $as_echo_n "checking for sinh... " >&6; }
21985 if test "${gcc_cv_math_func_sinh+set}" = set; then :
21986 $as_echo_n "(cached) " >&6
21987 else
21988 if test x$gcc_no_link = xyes; then
21989 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
21991 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21992 /* end confdefs.h. */
21994 #ifdef HAVE_COMPLEX_H
21995 #include <complex.h>
21996 #endif
21997 #ifdef HAVE_MATH_H
21998 #include <math.h>
21999 #endif
22001 int (*ptr)() = (int (*)())sinh;
22004 main ()
22006 return 0;
22009 _ACEOF
22010 if ac_fn_c_try_link "$LINENO"; then :
22011 gcc_cv_math_func_sinh=yes
22012 else
22013 gcc_cv_math_func_sinh=no
22015 rm -f core conftest.err conftest.$ac_objext \
22016 conftest$ac_exeext conftest.$ac_ext
22018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinh" >&5
22019 $as_echo "$gcc_cv_math_func_sinh" >&6; }
22020 if test $gcc_cv_math_func_sinh = yes; then
22022 cat >>confdefs.h <<_ACEOF
22023 #define HAVE_SINH 1
22024 _ACEOF
22031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sinhl" >&5
22032 $as_echo_n "checking for sinhl... " >&6; }
22033 if test "${gcc_cv_math_func_sinhl+set}" = set; then :
22034 $as_echo_n "(cached) " >&6
22035 else
22036 if test x$gcc_no_link = xyes; then
22037 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22040 /* end confdefs.h. */
22042 #ifdef HAVE_COMPLEX_H
22043 #include <complex.h>
22044 #endif
22045 #ifdef HAVE_MATH_H
22046 #include <math.h>
22047 #endif
22049 int (*ptr)() = (int (*)())sinhl;
22052 main ()
22054 return 0;
22057 _ACEOF
22058 if ac_fn_c_try_link "$LINENO"; then :
22059 gcc_cv_math_func_sinhl=yes
22060 else
22061 gcc_cv_math_func_sinhl=no
22063 rm -f core conftest.err conftest.$ac_objext \
22064 conftest$ac_exeext conftest.$ac_ext
22066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sinhl" >&5
22067 $as_echo "$gcc_cv_math_func_sinhl" >&6; }
22068 if test $gcc_cv_math_func_sinhl = yes; then
22070 cat >>confdefs.h <<_ACEOF
22071 #define HAVE_SINHL 1
22072 _ACEOF
22079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhf" >&5
22080 $as_echo_n "checking for csinhf... " >&6; }
22081 if test "${gcc_cv_math_func_csinhf+set}" = set; then :
22082 $as_echo_n "(cached) " >&6
22083 else
22084 if test x$gcc_no_link = xyes; then
22085 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22088 /* end confdefs.h. */
22090 #ifdef HAVE_COMPLEX_H
22091 #include <complex.h>
22092 #endif
22093 #ifdef HAVE_MATH_H
22094 #include <math.h>
22095 #endif
22097 int (*ptr)() = (int (*)())csinhf;
22100 main ()
22102 return 0;
22105 _ACEOF
22106 if ac_fn_c_try_link "$LINENO"; then :
22107 gcc_cv_math_func_csinhf=yes
22108 else
22109 gcc_cv_math_func_csinhf=no
22111 rm -f core conftest.err conftest.$ac_objext \
22112 conftest$ac_exeext conftest.$ac_ext
22114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhf" >&5
22115 $as_echo "$gcc_cv_math_func_csinhf" >&6; }
22116 if test $gcc_cv_math_func_csinhf = yes; then
22118 cat >>confdefs.h <<_ACEOF
22119 #define HAVE_CSINHF 1
22120 _ACEOF
22127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinh" >&5
22128 $as_echo_n "checking for csinh... " >&6; }
22129 if test "${gcc_cv_math_func_csinh+set}" = set; then :
22130 $as_echo_n "(cached) " >&6
22131 else
22132 if test x$gcc_no_link = xyes; then
22133 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22136 /* end confdefs.h. */
22138 #ifdef HAVE_COMPLEX_H
22139 #include <complex.h>
22140 #endif
22141 #ifdef HAVE_MATH_H
22142 #include <math.h>
22143 #endif
22145 int (*ptr)() = (int (*)())csinh;
22148 main ()
22150 return 0;
22153 _ACEOF
22154 if ac_fn_c_try_link "$LINENO"; then :
22155 gcc_cv_math_func_csinh=yes
22156 else
22157 gcc_cv_math_func_csinh=no
22159 rm -f core conftest.err conftest.$ac_objext \
22160 conftest$ac_exeext conftest.$ac_ext
22162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinh" >&5
22163 $as_echo "$gcc_cv_math_func_csinh" >&6; }
22164 if test $gcc_cv_math_func_csinh = yes; then
22166 cat >>confdefs.h <<_ACEOF
22167 #define HAVE_CSINH 1
22168 _ACEOF
22175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csinhl" >&5
22176 $as_echo_n "checking for csinhl... " >&6; }
22177 if test "${gcc_cv_math_func_csinhl+set}" = set; then :
22178 $as_echo_n "(cached) " >&6
22179 else
22180 if test x$gcc_no_link = xyes; then
22181 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22184 /* end confdefs.h. */
22186 #ifdef HAVE_COMPLEX_H
22187 #include <complex.h>
22188 #endif
22189 #ifdef HAVE_MATH_H
22190 #include <math.h>
22191 #endif
22193 int (*ptr)() = (int (*)())csinhl;
22196 main ()
22198 return 0;
22201 _ACEOF
22202 if ac_fn_c_try_link "$LINENO"; then :
22203 gcc_cv_math_func_csinhl=yes
22204 else
22205 gcc_cv_math_func_csinhl=no
22207 rm -f core conftest.err conftest.$ac_objext \
22208 conftest$ac_exeext conftest.$ac_ext
22210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csinhl" >&5
22211 $as_echo "$gcc_cv_math_func_csinhl" >&6; }
22212 if test $gcc_cv_math_func_csinhl = yes; then
22214 cat >>confdefs.h <<_ACEOF
22215 #define HAVE_CSINHL 1
22216 _ACEOF
22223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtf" >&5
22224 $as_echo_n "checking for sqrtf... " >&6; }
22225 if test "${gcc_cv_math_func_sqrtf+set}" = set; then :
22226 $as_echo_n "(cached) " >&6
22227 else
22228 if test x$gcc_no_link = xyes; then
22229 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22232 /* end confdefs.h. */
22234 #ifdef HAVE_COMPLEX_H
22235 #include <complex.h>
22236 #endif
22237 #ifdef HAVE_MATH_H
22238 #include <math.h>
22239 #endif
22241 int (*ptr)() = (int (*)())sqrtf;
22244 main ()
22246 return 0;
22249 _ACEOF
22250 if ac_fn_c_try_link "$LINENO"; then :
22251 gcc_cv_math_func_sqrtf=yes
22252 else
22253 gcc_cv_math_func_sqrtf=no
22255 rm -f core conftest.err conftest.$ac_objext \
22256 conftest$ac_exeext conftest.$ac_ext
22258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtf" >&5
22259 $as_echo "$gcc_cv_math_func_sqrtf" >&6; }
22260 if test $gcc_cv_math_func_sqrtf = yes; then
22262 cat >>confdefs.h <<_ACEOF
22263 #define HAVE_SQRTF 1
22264 _ACEOF
22271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrt" >&5
22272 $as_echo_n "checking for sqrt... " >&6; }
22273 if test "${gcc_cv_math_func_sqrt+set}" = set; then :
22274 $as_echo_n "(cached) " >&6
22275 else
22276 if test x$gcc_no_link = xyes; then
22277 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22280 /* end confdefs.h. */
22282 #ifdef HAVE_COMPLEX_H
22283 #include <complex.h>
22284 #endif
22285 #ifdef HAVE_MATH_H
22286 #include <math.h>
22287 #endif
22289 int (*ptr)() = (int (*)())sqrt;
22292 main ()
22294 return 0;
22297 _ACEOF
22298 if ac_fn_c_try_link "$LINENO"; then :
22299 gcc_cv_math_func_sqrt=yes
22300 else
22301 gcc_cv_math_func_sqrt=no
22303 rm -f core conftest.err conftest.$ac_objext \
22304 conftest$ac_exeext conftest.$ac_ext
22306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrt" >&5
22307 $as_echo "$gcc_cv_math_func_sqrt" >&6; }
22308 if test $gcc_cv_math_func_sqrt = yes; then
22310 cat >>confdefs.h <<_ACEOF
22311 #define HAVE_SQRT 1
22312 _ACEOF
22319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sqrtl" >&5
22320 $as_echo_n "checking for sqrtl... " >&6; }
22321 if test "${gcc_cv_math_func_sqrtl+set}" = set; then :
22322 $as_echo_n "(cached) " >&6
22323 else
22324 if test x$gcc_no_link = xyes; then
22325 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22327 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22328 /* end confdefs.h. */
22330 #ifdef HAVE_COMPLEX_H
22331 #include <complex.h>
22332 #endif
22333 #ifdef HAVE_MATH_H
22334 #include <math.h>
22335 #endif
22337 int (*ptr)() = (int (*)())sqrtl;
22340 main ()
22342 return 0;
22345 _ACEOF
22346 if ac_fn_c_try_link "$LINENO"; then :
22347 gcc_cv_math_func_sqrtl=yes
22348 else
22349 gcc_cv_math_func_sqrtl=no
22351 rm -f core conftest.err conftest.$ac_objext \
22352 conftest$ac_exeext conftest.$ac_ext
22354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_sqrtl" >&5
22355 $as_echo "$gcc_cv_math_func_sqrtl" >&6; }
22356 if test $gcc_cv_math_func_sqrtl = yes; then
22358 cat >>confdefs.h <<_ACEOF
22359 #define HAVE_SQRTL 1
22360 _ACEOF
22367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtf" >&5
22368 $as_echo_n "checking for csqrtf... " >&6; }
22369 if test "${gcc_cv_math_func_csqrtf+set}" = set; then :
22370 $as_echo_n "(cached) " >&6
22371 else
22372 if test x$gcc_no_link = xyes; then
22373 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22376 /* end confdefs.h. */
22378 #ifdef HAVE_COMPLEX_H
22379 #include <complex.h>
22380 #endif
22381 #ifdef HAVE_MATH_H
22382 #include <math.h>
22383 #endif
22385 int (*ptr)() = (int (*)())csqrtf;
22388 main ()
22390 return 0;
22393 _ACEOF
22394 if ac_fn_c_try_link "$LINENO"; then :
22395 gcc_cv_math_func_csqrtf=yes
22396 else
22397 gcc_cv_math_func_csqrtf=no
22399 rm -f core conftest.err conftest.$ac_objext \
22400 conftest$ac_exeext conftest.$ac_ext
22402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtf" >&5
22403 $as_echo "$gcc_cv_math_func_csqrtf" >&6; }
22404 if test $gcc_cv_math_func_csqrtf = yes; then
22406 cat >>confdefs.h <<_ACEOF
22407 #define HAVE_CSQRTF 1
22408 _ACEOF
22415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrt" >&5
22416 $as_echo_n "checking for csqrt... " >&6; }
22417 if test "${gcc_cv_math_func_csqrt+set}" = set; then :
22418 $as_echo_n "(cached) " >&6
22419 else
22420 if test x$gcc_no_link = xyes; then
22421 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22424 /* end confdefs.h. */
22426 #ifdef HAVE_COMPLEX_H
22427 #include <complex.h>
22428 #endif
22429 #ifdef HAVE_MATH_H
22430 #include <math.h>
22431 #endif
22433 int (*ptr)() = (int (*)())csqrt;
22436 main ()
22438 return 0;
22441 _ACEOF
22442 if ac_fn_c_try_link "$LINENO"; then :
22443 gcc_cv_math_func_csqrt=yes
22444 else
22445 gcc_cv_math_func_csqrt=no
22447 rm -f core conftest.err conftest.$ac_objext \
22448 conftest$ac_exeext conftest.$ac_ext
22450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrt" >&5
22451 $as_echo "$gcc_cv_math_func_csqrt" >&6; }
22452 if test $gcc_cv_math_func_csqrt = yes; then
22454 cat >>confdefs.h <<_ACEOF
22455 #define HAVE_CSQRT 1
22456 _ACEOF
22463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for csqrtl" >&5
22464 $as_echo_n "checking for csqrtl... " >&6; }
22465 if test "${gcc_cv_math_func_csqrtl+set}" = set; then :
22466 $as_echo_n "(cached) " >&6
22467 else
22468 if test x$gcc_no_link = xyes; then
22469 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22471 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22472 /* end confdefs.h. */
22474 #ifdef HAVE_COMPLEX_H
22475 #include <complex.h>
22476 #endif
22477 #ifdef HAVE_MATH_H
22478 #include <math.h>
22479 #endif
22481 int (*ptr)() = (int (*)())csqrtl;
22484 main ()
22486 return 0;
22489 _ACEOF
22490 if ac_fn_c_try_link "$LINENO"; then :
22491 gcc_cv_math_func_csqrtl=yes
22492 else
22493 gcc_cv_math_func_csqrtl=no
22495 rm -f core conftest.err conftest.$ac_objext \
22496 conftest$ac_exeext conftest.$ac_ext
22498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_csqrtl" >&5
22499 $as_echo "$gcc_cv_math_func_csqrtl" >&6; }
22500 if test $gcc_cv_math_func_csqrtl = yes; then
22502 cat >>confdefs.h <<_ACEOF
22503 #define HAVE_CSQRTL 1
22504 _ACEOF
22511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanf" >&5
22512 $as_echo_n "checking for tanf... " >&6; }
22513 if test "${gcc_cv_math_func_tanf+set}" = set; then :
22514 $as_echo_n "(cached) " >&6
22515 else
22516 if test x$gcc_no_link = xyes; then
22517 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22520 /* end confdefs.h. */
22522 #ifdef HAVE_COMPLEX_H
22523 #include <complex.h>
22524 #endif
22525 #ifdef HAVE_MATH_H
22526 #include <math.h>
22527 #endif
22529 int (*ptr)() = (int (*)())tanf;
22532 main ()
22534 return 0;
22537 _ACEOF
22538 if ac_fn_c_try_link "$LINENO"; then :
22539 gcc_cv_math_func_tanf=yes
22540 else
22541 gcc_cv_math_func_tanf=no
22543 rm -f core conftest.err conftest.$ac_objext \
22544 conftest$ac_exeext conftest.$ac_ext
22546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanf" >&5
22547 $as_echo "$gcc_cv_math_func_tanf" >&6; }
22548 if test $gcc_cv_math_func_tanf = yes; then
22550 cat >>confdefs.h <<_ACEOF
22551 #define HAVE_TANF 1
22552 _ACEOF
22559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tan" >&5
22560 $as_echo_n "checking for tan... " >&6; }
22561 if test "${gcc_cv_math_func_tan+set}" = set; then :
22562 $as_echo_n "(cached) " >&6
22563 else
22564 if test x$gcc_no_link = xyes; then
22565 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22568 /* end confdefs.h. */
22570 #ifdef HAVE_COMPLEX_H
22571 #include <complex.h>
22572 #endif
22573 #ifdef HAVE_MATH_H
22574 #include <math.h>
22575 #endif
22577 int (*ptr)() = (int (*)())tan;
22580 main ()
22582 return 0;
22585 _ACEOF
22586 if ac_fn_c_try_link "$LINENO"; then :
22587 gcc_cv_math_func_tan=yes
22588 else
22589 gcc_cv_math_func_tan=no
22591 rm -f core conftest.err conftest.$ac_objext \
22592 conftest$ac_exeext conftest.$ac_ext
22594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tan" >&5
22595 $as_echo "$gcc_cv_math_func_tan" >&6; }
22596 if test $gcc_cv_math_func_tan = yes; then
22598 cat >>confdefs.h <<_ACEOF
22599 #define HAVE_TAN 1
22600 _ACEOF
22607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanl" >&5
22608 $as_echo_n "checking for tanl... " >&6; }
22609 if test "${gcc_cv_math_func_tanl+set}" = set; then :
22610 $as_echo_n "(cached) " >&6
22611 else
22612 if test x$gcc_no_link = xyes; then
22613 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22616 /* end confdefs.h. */
22618 #ifdef HAVE_COMPLEX_H
22619 #include <complex.h>
22620 #endif
22621 #ifdef HAVE_MATH_H
22622 #include <math.h>
22623 #endif
22625 int (*ptr)() = (int (*)())tanl;
22628 main ()
22630 return 0;
22633 _ACEOF
22634 if ac_fn_c_try_link "$LINENO"; then :
22635 gcc_cv_math_func_tanl=yes
22636 else
22637 gcc_cv_math_func_tanl=no
22639 rm -f core conftest.err conftest.$ac_objext \
22640 conftest$ac_exeext conftest.$ac_ext
22642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanl" >&5
22643 $as_echo "$gcc_cv_math_func_tanl" >&6; }
22644 if test $gcc_cv_math_func_tanl = yes; then
22646 cat >>confdefs.h <<_ACEOF
22647 #define HAVE_TANL 1
22648 _ACEOF
22655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanf" >&5
22656 $as_echo_n "checking for ctanf... " >&6; }
22657 if test "${gcc_cv_math_func_ctanf+set}" = set; then :
22658 $as_echo_n "(cached) " >&6
22659 else
22660 if test x$gcc_no_link = xyes; then
22661 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22664 /* end confdefs.h. */
22666 #ifdef HAVE_COMPLEX_H
22667 #include <complex.h>
22668 #endif
22669 #ifdef HAVE_MATH_H
22670 #include <math.h>
22671 #endif
22673 int (*ptr)() = (int (*)())ctanf;
22676 main ()
22678 return 0;
22681 _ACEOF
22682 if ac_fn_c_try_link "$LINENO"; then :
22683 gcc_cv_math_func_ctanf=yes
22684 else
22685 gcc_cv_math_func_ctanf=no
22687 rm -f core conftest.err conftest.$ac_objext \
22688 conftest$ac_exeext conftest.$ac_ext
22690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanf" >&5
22691 $as_echo "$gcc_cv_math_func_ctanf" >&6; }
22692 if test $gcc_cv_math_func_ctanf = yes; then
22694 cat >>confdefs.h <<_ACEOF
22695 #define HAVE_CTANF 1
22696 _ACEOF
22703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctan" >&5
22704 $as_echo_n "checking for ctan... " >&6; }
22705 if test "${gcc_cv_math_func_ctan+set}" = set; then :
22706 $as_echo_n "(cached) " >&6
22707 else
22708 if test x$gcc_no_link = xyes; then
22709 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22712 /* end confdefs.h. */
22714 #ifdef HAVE_COMPLEX_H
22715 #include <complex.h>
22716 #endif
22717 #ifdef HAVE_MATH_H
22718 #include <math.h>
22719 #endif
22721 int (*ptr)() = (int (*)())ctan;
22724 main ()
22726 return 0;
22729 _ACEOF
22730 if ac_fn_c_try_link "$LINENO"; then :
22731 gcc_cv_math_func_ctan=yes
22732 else
22733 gcc_cv_math_func_ctan=no
22735 rm -f core conftest.err conftest.$ac_objext \
22736 conftest$ac_exeext conftest.$ac_ext
22738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctan" >&5
22739 $as_echo "$gcc_cv_math_func_ctan" >&6; }
22740 if test $gcc_cv_math_func_ctan = yes; then
22742 cat >>confdefs.h <<_ACEOF
22743 #define HAVE_CTAN 1
22744 _ACEOF
22751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanl" >&5
22752 $as_echo_n "checking for ctanl... " >&6; }
22753 if test "${gcc_cv_math_func_ctanl+set}" = set; then :
22754 $as_echo_n "(cached) " >&6
22755 else
22756 if test x$gcc_no_link = xyes; then
22757 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22760 /* end confdefs.h. */
22762 #ifdef HAVE_COMPLEX_H
22763 #include <complex.h>
22764 #endif
22765 #ifdef HAVE_MATH_H
22766 #include <math.h>
22767 #endif
22769 int (*ptr)() = (int (*)())ctanl;
22772 main ()
22774 return 0;
22777 _ACEOF
22778 if ac_fn_c_try_link "$LINENO"; then :
22779 gcc_cv_math_func_ctanl=yes
22780 else
22781 gcc_cv_math_func_ctanl=no
22783 rm -f core conftest.err conftest.$ac_objext \
22784 conftest$ac_exeext conftest.$ac_ext
22786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanl" >&5
22787 $as_echo "$gcc_cv_math_func_ctanl" >&6; }
22788 if test $gcc_cv_math_func_ctanl = yes; then
22790 cat >>confdefs.h <<_ACEOF
22791 #define HAVE_CTANL 1
22792 _ACEOF
22799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhf" >&5
22800 $as_echo_n "checking for tanhf... " >&6; }
22801 if test "${gcc_cv_math_func_tanhf+set}" = set; then :
22802 $as_echo_n "(cached) " >&6
22803 else
22804 if test x$gcc_no_link = xyes; then
22805 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22808 /* end confdefs.h. */
22810 #ifdef HAVE_COMPLEX_H
22811 #include <complex.h>
22812 #endif
22813 #ifdef HAVE_MATH_H
22814 #include <math.h>
22815 #endif
22817 int (*ptr)() = (int (*)())tanhf;
22820 main ()
22822 return 0;
22825 _ACEOF
22826 if ac_fn_c_try_link "$LINENO"; then :
22827 gcc_cv_math_func_tanhf=yes
22828 else
22829 gcc_cv_math_func_tanhf=no
22831 rm -f core conftest.err conftest.$ac_objext \
22832 conftest$ac_exeext conftest.$ac_ext
22834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhf" >&5
22835 $as_echo "$gcc_cv_math_func_tanhf" >&6; }
22836 if test $gcc_cv_math_func_tanhf = yes; then
22838 cat >>confdefs.h <<_ACEOF
22839 #define HAVE_TANHF 1
22840 _ACEOF
22847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanh" >&5
22848 $as_echo_n "checking for tanh... " >&6; }
22849 if test "${gcc_cv_math_func_tanh+set}" = set; then :
22850 $as_echo_n "(cached) " >&6
22851 else
22852 if test x$gcc_no_link = xyes; then
22853 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22856 /* end confdefs.h. */
22858 #ifdef HAVE_COMPLEX_H
22859 #include <complex.h>
22860 #endif
22861 #ifdef HAVE_MATH_H
22862 #include <math.h>
22863 #endif
22865 int (*ptr)() = (int (*)())tanh;
22868 main ()
22870 return 0;
22873 _ACEOF
22874 if ac_fn_c_try_link "$LINENO"; then :
22875 gcc_cv_math_func_tanh=yes
22876 else
22877 gcc_cv_math_func_tanh=no
22879 rm -f core conftest.err conftest.$ac_objext \
22880 conftest$ac_exeext conftest.$ac_ext
22882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanh" >&5
22883 $as_echo "$gcc_cv_math_func_tanh" >&6; }
22884 if test $gcc_cv_math_func_tanh = yes; then
22886 cat >>confdefs.h <<_ACEOF
22887 #define HAVE_TANH 1
22888 _ACEOF
22895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tanhl" >&5
22896 $as_echo_n "checking for tanhl... " >&6; }
22897 if test "${gcc_cv_math_func_tanhl+set}" = set; then :
22898 $as_echo_n "(cached) " >&6
22899 else
22900 if test x$gcc_no_link = xyes; then
22901 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22904 /* end confdefs.h. */
22906 #ifdef HAVE_COMPLEX_H
22907 #include <complex.h>
22908 #endif
22909 #ifdef HAVE_MATH_H
22910 #include <math.h>
22911 #endif
22913 int (*ptr)() = (int (*)())tanhl;
22916 main ()
22918 return 0;
22921 _ACEOF
22922 if ac_fn_c_try_link "$LINENO"; then :
22923 gcc_cv_math_func_tanhl=yes
22924 else
22925 gcc_cv_math_func_tanhl=no
22927 rm -f core conftest.err conftest.$ac_objext \
22928 conftest$ac_exeext conftest.$ac_ext
22930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tanhl" >&5
22931 $as_echo "$gcc_cv_math_func_tanhl" >&6; }
22932 if test $gcc_cv_math_func_tanhl = yes; then
22934 cat >>confdefs.h <<_ACEOF
22935 #define HAVE_TANHL 1
22936 _ACEOF
22943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhf" >&5
22944 $as_echo_n "checking for ctanhf... " >&6; }
22945 if test "${gcc_cv_math_func_ctanhf+set}" = set; then :
22946 $as_echo_n "(cached) " >&6
22947 else
22948 if test x$gcc_no_link = xyes; then
22949 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22951 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22952 /* end confdefs.h. */
22954 #ifdef HAVE_COMPLEX_H
22955 #include <complex.h>
22956 #endif
22957 #ifdef HAVE_MATH_H
22958 #include <math.h>
22959 #endif
22961 int (*ptr)() = (int (*)())ctanhf;
22964 main ()
22966 return 0;
22969 _ACEOF
22970 if ac_fn_c_try_link "$LINENO"; then :
22971 gcc_cv_math_func_ctanhf=yes
22972 else
22973 gcc_cv_math_func_ctanhf=no
22975 rm -f core conftest.err conftest.$ac_objext \
22976 conftest$ac_exeext conftest.$ac_ext
22978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhf" >&5
22979 $as_echo "$gcc_cv_math_func_ctanhf" >&6; }
22980 if test $gcc_cv_math_func_ctanhf = yes; then
22982 cat >>confdefs.h <<_ACEOF
22983 #define HAVE_CTANHF 1
22984 _ACEOF
22991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanh" >&5
22992 $as_echo_n "checking for ctanh... " >&6; }
22993 if test "${gcc_cv_math_func_ctanh+set}" = set; then :
22994 $as_echo_n "(cached) " >&6
22995 else
22996 if test x$gcc_no_link = xyes; then
22997 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
22999 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23000 /* end confdefs.h. */
23002 #ifdef HAVE_COMPLEX_H
23003 #include <complex.h>
23004 #endif
23005 #ifdef HAVE_MATH_H
23006 #include <math.h>
23007 #endif
23009 int (*ptr)() = (int (*)())ctanh;
23012 main ()
23014 return 0;
23017 _ACEOF
23018 if ac_fn_c_try_link "$LINENO"; then :
23019 gcc_cv_math_func_ctanh=yes
23020 else
23021 gcc_cv_math_func_ctanh=no
23023 rm -f core conftest.err conftest.$ac_objext \
23024 conftest$ac_exeext conftest.$ac_ext
23026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanh" >&5
23027 $as_echo "$gcc_cv_math_func_ctanh" >&6; }
23028 if test $gcc_cv_math_func_ctanh = yes; then
23030 cat >>confdefs.h <<_ACEOF
23031 #define HAVE_CTANH 1
23032 _ACEOF
23039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ctanhl" >&5
23040 $as_echo_n "checking for ctanhl... " >&6; }
23041 if test "${gcc_cv_math_func_ctanhl+set}" = set; then :
23042 $as_echo_n "(cached) " >&6
23043 else
23044 if test x$gcc_no_link = xyes; then
23045 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23048 /* end confdefs.h. */
23050 #ifdef HAVE_COMPLEX_H
23051 #include <complex.h>
23052 #endif
23053 #ifdef HAVE_MATH_H
23054 #include <math.h>
23055 #endif
23057 int (*ptr)() = (int (*)())ctanhl;
23060 main ()
23062 return 0;
23065 _ACEOF
23066 if ac_fn_c_try_link "$LINENO"; then :
23067 gcc_cv_math_func_ctanhl=yes
23068 else
23069 gcc_cv_math_func_ctanhl=no
23071 rm -f core conftest.err conftest.$ac_objext \
23072 conftest$ac_exeext conftest.$ac_ext
23074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ctanhl" >&5
23075 $as_echo "$gcc_cv_math_func_ctanhl" >&6; }
23076 if test $gcc_cv_math_func_ctanhl = yes; then
23078 cat >>confdefs.h <<_ACEOF
23079 #define HAVE_CTANHL 1
23080 _ACEOF
23087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncf" >&5
23088 $as_echo_n "checking for truncf... " >&6; }
23089 if test "${gcc_cv_math_func_truncf+set}" = set; then :
23090 $as_echo_n "(cached) " >&6
23091 else
23092 if test x$gcc_no_link = xyes; then
23093 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23095 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23096 /* end confdefs.h. */
23098 #ifdef HAVE_COMPLEX_H
23099 #include <complex.h>
23100 #endif
23101 #ifdef HAVE_MATH_H
23102 #include <math.h>
23103 #endif
23105 int (*ptr)() = (int (*)())truncf;
23108 main ()
23110 return 0;
23113 _ACEOF
23114 if ac_fn_c_try_link "$LINENO"; then :
23115 gcc_cv_math_func_truncf=yes
23116 else
23117 gcc_cv_math_func_truncf=no
23119 rm -f core conftest.err conftest.$ac_objext \
23120 conftest$ac_exeext conftest.$ac_ext
23122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncf" >&5
23123 $as_echo "$gcc_cv_math_func_truncf" >&6; }
23124 if test $gcc_cv_math_func_truncf = yes; then
23126 cat >>confdefs.h <<_ACEOF
23127 #define HAVE_TRUNCF 1
23128 _ACEOF
23135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for trunc" >&5
23136 $as_echo_n "checking for trunc... " >&6; }
23137 if test "${gcc_cv_math_func_trunc+set}" = set; then :
23138 $as_echo_n "(cached) " >&6
23139 else
23140 if test x$gcc_no_link = xyes; then
23141 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23143 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23144 /* end confdefs.h. */
23146 #ifdef HAVE_COMPLEX_H
23147 #include <complex.h>
23148 #endif
23149 #ifdef HAVE_MATH_H
23150 #include <math.h>
23151 #endif
23153 int (*ptr)() = (int (*)())trunc;
23156 main ()
23158 return 0;
23161 _ACEOF
23162 if ac_fn_c_try_link "$LINENO"; then :
23163 gcc_cv_math_func_trunc=yes
23164 else
23165 gcc_cv_math_func_trunc=no
23167 rm -f core conftest.err conftest.$ac_objext \
23168 conftest$ac_exeext conftest.$ac_ext
23170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_trunc" >&5
23171 $as_echo "$gcc_cv_math_func_trunc" >&6; }
23172 if test $gcc_cv_math_func_trunc = yes; then
23174 cat >>confdefs.h <<_ACEOF
23175 #define HAVE_TRUNC 1
23176 _ACEOF
23183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for truncl" >&5
23184 $as_echo_n "checking for truncl... " >&6; }
23185 if test "${gcc_cv_math_func_truncl+set}" = set; then :
23186 $as_echo_n "(cached) " >&6
23187 else
23188 if test x$gcc_no_link = xyes; then
23189 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23192 /* end confdefs.h. */
23194 #ifdef HAVE_COMPLEX_H
23195 #include <complex.h>
23196 #endif
23197 #ifdef HAVE_MATH_H
23198 #include <math.h>
23199 #endif
23201 int (*ptr)() = (int (*)())truncl;
23204 main ()
23206 return 0;
23209 _ACEOF
23210 if ac_fn_c_try_link "$LINENO"; then :
23211 gcc_cv_math_func_truncl=yes
23212 else
23213 gcc_cv_math_func_truncl=no
23215 rm -f core conftest.err conftest.$ac_objext \
23216 conftest$ac_exeext conftest.$ac_ext
23218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_truncl" >&5
23219 $as_echo "$gcc_cv_math_func_truncl" >&6; }
23220 if test $gcc_cv_math_func_truncl = yes; then
23222 cat >>confdefs.h <<_ACEOF
23223 #define HAVE_TRUNCL 1
23224 _ACEOF
23231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erff" >&5
23232 $as_echo_n "checking for erff... " >&6; }
23233 if test "${gcc_cv_math_func_erff+set}" = set; then :
23234 $as_echo_n "(cached) " >&6
23235 else
23236 if test x$gcc_no_link = xyes; then
23237 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23240 /* end confdefs.h. */
23242 #ifdef HAVE_COMPLEX_H
23243 #include <complex.h>
23244 #endif
23245 #ifdef HAVE_MATH_H
23246 #include <math.h>
23247 #endif
23249 int (*ptr)() = (int (*)())erff;
23252 main ()
23254 return 0;
23257 _ACEOF
23258 if ac_fn_c_try_link "$LINENO"; then :
23259 gcc_cv_math_func_erff=yes
23260 else
23261 gcc_cv_math_func_erff=no
23263 rm -f core conftest.err conftest.$ac_objext \
23264 conftest$ac_exeext conftest.$ac_ext
23266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erff" >&5
23267 $as_echo "$gcc_cv_math_func_erff" >&6; }
23268 if test $gcc_cv_math_func_erff = yes; then
23270 cat >>confdefs.h <<_ACEOF
23271 #define HAVE_ERFF 1
23272 _ACEOF
23279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erf" >&5
23280 $as_echo_n "checking for erf... " >&6; }
23281 if test "${gcc_cv_math_func_erf+set}" = set; then :
23282 $as_echo_n "(cached) " >&6
23283 else
23284 if test x$gcc_no_link = xyes; then
23285 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23288 /* end confdefs.h. */
23290 #ifdef HAVE_COMPLEX_H
23291 #include <complex.h>
23292 #endif
23293 #ifdef HAVE_MATH_H
23294 #include <math.h>
23295 #endif
23297 int (*ptr)() = (int (*)())erf;
23300 main ()
23302 return 0;
23305 _ACEOF
23306 if ac_fn_c_try_link "$LINENO"; then :
23307 gcc_cv_math_func_erf=yes
23308 else
23309 gcc_cv_math_func_erf=no
23311 rm -f core conftest.err conftest.$ac_objext \
23312 conftest$ac_exeext conftest.$ac_ext
23314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erf" >&5
23315 $as_echo "$gcc_cv_math_func_erf" >&6; }
23316 if test $gcc_cv_math_func_erf = yes; then
23318 cat >>confdefs.h <<_ACEOF
23319 #define HAVE_ERF 1
23320 _ACEOF
23327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfl" >&5
23328 $as_echo_n "checking for erfl... " >&6; }
23329 if test "${gcc_cv_math_func_erfl+set}" = set; then :
23330 $as_echo_n "(cached) " >&6
23331 else
23332 if test x$gcc_no_link = xyes; then
23333 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23336 /* end confdefs.h. */
23338 #ifdef HAVE_COMPLEX_H
23339 #include <complex.h>
23340 #endif
23341 #ifdef HAVE_MATH_H
23342 #include <math.h>
23343 #endif
23345 int (*ptr)() = (int (*)())erfl;
23348 main ()
23350 return 0;
23353 _ACEOF
23354 if ac_fn_c_try_link "$LINENO"; then :
23355 gcc_cv_math_func_erfl=yes
23356 else
23357 gcc_cv_math_func_erfl=no
23359 rm -f core conftest.err conftest.$ac_objext \
23360 conftest$ac_exeext conftest.$ac_ext
23362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfl" >&5
23363 $as_echo "$gcc_cv_math_func_erfl" >&6; }
23364 if test $gcc_cv_math_func_erfl = yes; then
23366 cat >>confdefs.h <<_ACEOF
23367 #define HAVE_ERFL 1
23368 _ACEOF
23375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcf" >&5
23376 $as_echo_n "checking for erfcf... " >&6; }
23377 if test "${gcc_cv_math_func_erfcf+set}" = set; then :
23378 $as_echo_n "(cached) " >&6
23379 else
23380 if test x$gcc_no_link = xyes; then
23381 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23384 /* end confdefs.h. */
23386 #ifdef HAVE_COMPLEX_H
23387 #include <complex.h>
23388 #endif
23389 #ifdef HAVE_MATH_H
23390 #include <math.h>
23391 #endif
23393 int (*ptr)() = (int (*)())erfcf;
23396 main ()
23398 return 0;
23401 _ACEOF
23402 if ac_fn_c_try_link "$LINENO"; then :
23403 gcc_cv_math_func_erfcf=yes
23404 else
23405 gcc_cv_math_func_erfcf=no
23407 rm -f core conftest.err conftest.$ac_objext \
23408 conftest$ac_exeext conftest.$ac_ext
23410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcf" >&5
23411 $as_echo "$gcc_cv_math_func_erfcf" >&6; }
23412 if test $gcc_cv_math_func_erfcf = yes; then
23414 cat >>confdefs.h <<_ACEOF
23415 #define HAVE_ERFCF 1
23416 _ACEOF
23423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfc" >&5
23424 $as_echo_n "checking for erfc... " >&6; }
23425 if test "${gcc_cv_math_func_erfc+set}" = set; then :
23426 $as_echo_n "(cached) " >&6
23427 else
23428 if test x$gcc_no_link = xyes; then
23429 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23431 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23432 /* end confdefs.h. */
23434 #ifdef HAVE_COMPLEX_H
23435 #include <complex.h>
23436 #endif
23437 #ifdef HAVE_MATH_H
23438 #include <math.h>
23439 #endif
23441 int (*ptr)() = (int (*)())erfc;
23444 main ()
23446 return 0;
23449 _ACEOF
23450 if ac_fn_c_try_link "$LINENO"; then :
23451 gcc_cv_math_func_erfc=yes
23452 else
23453 gcc_cv_math_func_erfc=no
23455 rm -f core conftest.err conftest.$ac_objext \
23456 conftest$ac_exeext conftest.$ac_ext
23458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfc" >&5
23459 $as_echo "$gcc_cv_math_func_erfc" >&6; }
23460 if test $gcc_cv_math_func_erfc = yes; then
23462 cat >>confdefs.h <<_ACEOF
23463 #define HAVE_ERFC 1
23464 _ACEOF
23471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for erfcl" >&5
23472 $as_echo_n "checking for erfcl... " >&6; }
23473 if test "${gcc_cv_math_func_erfcl+set}" = set; then :
23474 $as_echo_n "(cached) " >&6
23475 else
23476 if test x$gcc_no_link = xyes; then
23477 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23480 /* end confdefs.h. */
23482 #ifdef HAVE_COMPLEX_H
23483 #include <complex.h>
23484 #endif
23485 #ifdef HAVE_MATH_H
23486 #include <math.h>
23487 #endif
23489 int (*ptr)() = (int (*)())erfcl;
23492 main ()
23494 return 0;
23497 _ACEOF
23498 if ac_fn_c_try_link "$LINENO"; then :
23499 gcc_cv_math_func_erfcl=yes
23500 else
23501 gcc_cv_math_func_erfcl=no
23503 rm -f core conftest.err conftest.$ac_objext \
23504 conftest$ac_exeext conftest.$ac_ext
23506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_erfcl" >&5
23507 $as_echo "$gcc_cv_math_func_erfcl" >&6; }
23508 if test $gcc_cv_math_func_erfcl = yes; then
23510 cat >>confdefs.h <<_ACEOF
23511 #define HAVE_ERFCL 1
23512 _ACEOF
23519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0f" >&5
23520 $as_echo_n "checking for j0f... " >&6; }
23521 if test "${gcc_cv_math_func_j0f+set}" = set; then :
23522 $as_echo_n "(cached) " >&6
23523 else
23524 if test x$gcc_no_link = xyes; then
23525 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23528 /* end confdefs.h. */
23530 #ifdef HAVE_COMPLEX_H
23531 #include <complex.h>
23532 #endif
23533 #ifdef HAVE_MATH_H
23534 #include <math.h>
23535 #endif
23537 int (*ptr)() = (int (*)())j0f;
23540 main ()
23542 return 0;
23545 _ACEOF
23546 if ac_fn_c_try_link "$LINENO"; then :
23547 gcc_cv_math_func_j0f=yes
23548 else
23549 gcc_cv_math_func_j0f=no
23551 rm -f core conftest.err conftest.$ac_objext \
23552 conftest$ac_exeext conftest.$ac_ext
23554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0f" >&5
23555 $as_echo "$gcc_cv_math_func_j0f" >&6; }
23556 if test $gcc_cv_math_func_j0f = yes; then
23558 cat >>confdefs.h <<_ACEOF
23559 #define HAVE_J0F 1
23560 _ACEOF
23567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0" >&5
23568 $as_echo_n "checking for j0... " >&6; }
23569 if test "${gcc_cv_math_func_j0+set}" = set; then :
23570 $as_echo_n "(cached) " >&6
23571 else
23572 if test x$gcc_no_link = xyes; then
23573 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23575 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23576 /* end confdefs.h. */
23578 #ifdef HAVE_COMPLEX_H
23579 #include <complex.h>
23580 #endif
23581 #ifdef HAVE_MATH_H
23582 #include <math.h>
23583 #endif
23585 int (*ptr)() = (int (*)())j0;
23588 main ()
23590 return 0;
23593 _ACEOF
23594 if ac_fn_c_try_link "$LINENO"; then :
23595 gcc_cv_math_func_j0=yes
23596 else
23597 gcc_cv_math_func_j0=no
23599 rm -f core conftest.err conftest.$ac_objext \
23600 conftest$ac_exeext conftest.$ac_ext
23602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0" >&5
23603 $as_echo "$gcc_cv_math_func_j0" >&6; }
23604 if test $gcc_cv_math_func_j0 = yes; then
23606 cat >>confdefs.h <<_ACEOF
23607 #define HAVE_J0 1
23608 _ACEOF
23615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j0l" >&5
23616 $as_echo_n "checking for j0l... " >&6; }
23617 if test "${gcc_cv_math_func_j0l+set}" = set; then :
23618 $as_echo_n "(cached) " >&6
23619 else
23620 if test x$gcc_no_link = xyes; then
23621 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23623 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23624 /* end confdefs.h. */
23626 #ifdef HAVE_COMPLEX_H
23627 #include <complex.h>
23628 #endif
23629 #ifdef HAVE_MATH_H
23630 #include <math.h>
23631 #endif
23633 int (*ptr)() = (int (*)())j0l;
23636 main ()
23638 return 0;
23641 _ACEOF
23642 if ac_fn_c_try_link "$LINENO"; then :
23643 gcc_cv_math_func_j0l=yes
23644 else
23645 gcc_cv_math_func_j0l=no
23647 rm -f core conftest.err conftest.$ac_objext \
23648 conftest$ac_exeext conftest.$ac_ext
23650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j0l" >&5
23651 $as_echo "$gcc_cv_math_func_j0l" >&6; }
23652 if test $gcc_cv_math_func_j0l = yes; then
23654 cat >>confdefs.h <<_ACEOF
23655 #define HAVE_J0L 1
23656 _ACEOF
23663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1f" >&5
23664 $as_echo_n "checking for j1f... " >&6; }
23665 if test "${gcc_cv_math_func_j1f+set}" = set; then :
23666 $as_echo_n "(cached) " >&6
23667 else
23668 if test x$gcc_no_link = xyes; then
23669 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23672 /* end confdefs.h. */
23674 #ifdef HAVE_COMPLEX_H
23675 #include <complex.h>
23676 #endif
23677 #ifdef HAVE_MATH_H
23678 #include <math.h>
23679 #endif
23681 int (*ptr)() = (int (*)())j1f;
23684 main ()
23686 return 0;
23689 _ACEOF
23690 if ac_fn_c_try_link "$LINENO"; then :
23691 gcc_cv_math_func_j1f=yes
23692 else
23693 gcc_cv_math_func_j1f=no
23695 rm -f core conftest.err conftest.$ac_objext \
23696 conftest$ac_exeext conftest.$ac_ext
23698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1f" >&5
23699 $as_echo "$gcc_cv_math_func_j1f" >&6; }
23700 if test $gcc_cv_math_func_j1f = yes; then
23702 cat >>confdefs.h <<_ACEOF
23703 #define HAVE_J1F 1
23704 _ACEOF
23711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1" >&5
23712 $as_echo_n "checking for j1... " >&6; }
23713 if test "${gcc_cv_math_func_j1+set}" = set; then :
23714 $as_echo_n "(cached) " >&6
23715 else
23716 if test x$gcc_no_link = xyes; then
23717 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23720 /* end confdefs.h. */
23722 #ifdef HAVE_COMPLEX_H
23723 #include <complex.h>
23724 #endif
23725 #ifdef HAVE_MATH_H
23726 #include <math.h>
23727 #endif
23729 int (*ptr)() = (int (*)())j1;
23732 main ()
23734 return 0;
23737 _ACEOF
23738 if ac_fn_c_try_link "$LINENO"; then :
23739 gcc_cv_math_func_j1=yes
23740 else
23741 gcc_cv_math_func_j1=no
23743 rm -f core conftest.err conftest.$ac_objext \
23744 conftest$ac_exeext conftest.$ac_ext
23746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1" >&5
23747 $as_echo "$gcc_cv_math_func_j1" >&6; }
23748 if test $gcc_cv_math_func_j1 = yes; then
23750 cat >>confdefs.h <<_ACEOF
23751 #define HAVE_J1 1
23752 _ACEOF
23759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for j1l" >&5
23760 $as_echo_n "checking for j1l... " >&6; }
23761 if test "${gcc_cv_math_func_j1l+set}" = set; then :
23762 $as_echo_n "(cached) " >&6
23763 else
23764 if test x$gcc_no_link = xyes; then
23765 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23768 /* end confdefs.h. */
23770 #ifdef HAVE_COMPLEX_H
23771 #include <complex.h>
23772 #endif
23773 #ifdef HAVE_MATH_H
23774 #include <math.h>
23775 #endif
23777 int (*ptr)() = (int (*)())j1l;
23780 main ()
23782 return 0;
23785 _ACEOF
23786 if ac_fn_c_try_link "$LINENO"; then :
23787 gcc_cv_math_func_j1l=yes
23788 else
23789 gcc_cv_math_func_j1l=no
23791 rm -f core conftest.err conftest.$ac_objext \
23792 conftest$ac_exeext conftest.$ac_ext
23794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_j1l" >&5
23795 $as_echo "$gcc_cv_math_func_j1l" >&6; }
23796 if test $gcc_cv_math_func_j1l = yes; then
23798 cat >>confdefs.h <<_ACEOF
23799 #define HAVE_J1L 1
23800 _ACEOF
23807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnf" >&5
23808 $as_echo_n "checking for jnf... " >&6; }
23809 if test "${gcc_cv_math_func_jnf+set}" = set; then :
23810 $as_echo_n "(cached) " >&6
23811 else
23812 if test x$gcc_no_link = xyes; then
23813 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23816 /* end confdefs.h. */
23818 #ifdef HAVE_COMPLEX_H
23819 #include <complex.h>
23820 #endif
23821 #ifdef HAVE_MATH_H
23822 #include <math.h>
23823 #endif
23825 int (*ptr)() = (int (*)())jnf;
23828 main ()
23830 return 0;
23833 _ACEOF
23834 if ac_fn_c_try_link "$LINENO"; then :
23835 gcc_cv_math_func_jnf=yes
23836 else
23837 gcc_cv_math_func_jnf=no
23839 rm -f core conftest.err conftest.$ac_objext \
23840 conftest$ac_exeext conftest.$ac_ext
23842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnf" >&5
23843 $as_echo "$gcc_cv_math_func_jnf" >&6; }
23844 if test $gcc_cv_math_func_jnf = yes; then
23846 cat >>confdefs.h <<_ACEOF
23847 #define HAVE_JNF 1
23848 _ACEOF
23855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jn" >&5
23856 $as_echo_n "checking for jn... " >&6; }
23857 if test "${gcc_cv_math_func_jn+set}" = set; then :
23858 $as_echo_n "(cached) " >&6
23859 else
23860 if test x$gcc_no_link = xyes; then
23861 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23864 /* end confdefs.h. */
23866 #ifdef HAVE_COMPLEX_H
23867 #include <complex.h>
23868 #endif
23869 #ifdef HAVE_MATH_H
23870 #include <math.h>
23871 #endif
23873 int (*ptr)() = (int (*)())jn;
23876 main ()
23878 return 0;
23881 _ACEOF
23882 if ac_fn_c_try_link "$LINENO"; then :
23883 gcc_cv_math_func_jn=yes
23884 else
23885 gcc_cv_math_func_jn=no
23887 rm -f core conftest.err conftest.$ac_objext \
23888 conftest$ac_exeext conftest.$ac_ext
23890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jn" >&5
23891 $as_echo "$gcc_cv_math_func_jn" >&6; }
23892 if test $gcc_cv_math_func_jn = yes; then
23894 cat >>confdefs.h <<_ACEOF
23895 #define HAVE_JN 1
23896 _ACEOF
23903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jnl" >&5
23904 $as_echo_n "checking for jnl... " >&6; }
23905 if test "${gcc_cv_math_func_jnl+set}" = set; then :
23906 $as_echo_n "(cached) " >&6
23907 else
23908 if test x$gcc_no_link = xyes; then
23909 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23912 /* end confdefs.h. */
23914 #ifdef HAVE_COMPLEX_H
23915 #include <complex.h>
23916 #endif
23917 #ifdef HAVE_MATH_H
23918 #include <math.h>
23919 #endif
23921 int (*ptr)() = (int (*)())jnl;
23924 main ()
23926 return 0;
23929 _ACEOF
23930 if ac_fn_c_try_link "$LINENO"; then :
23931 gcc_cv_math_func_jnl=yes
23932 else
23933 gcc_cv_math_func_jnl=no
23935 rm -f core conftest.err conftest.$ac_objext \
23936 conftest$ac_exeext conftest.$ac_ext
23938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_jnl" >&5
23939 $as_echo "$gcc_cv_math_func_jnl" >&6; }
23940 if test $gcc_cv_math_func_jnl = yes; then
23942 cat >>confdefs.h <<_ACEOF
23943 #define HAVE_JNL 1
23944 _ACEOF
23951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0f" >&5
23952 $as_echo_n "checking for y0f... " >&6; }
23953 if test "${gcc_cv_math_func_y0f+set}" = set; then :
23954 $as_echo_n "(cached) " >&6
23955 else
23956 if test x$gcc_no_link = xyes; then
23957 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
23959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23960 /* end confdefs.h. */
23962 #ifdef HAVE_COMPLEX_H
23963 #include <complex.h>
23964 #endif
23965 #ifdef HAVE_MATH_H
23966 #include <math.h>
23967 #endif
23969 int (*ptr)() = (int (*)())y0f;
23972 main ()
23974 return 0;
23977 _ACEOF
23978 if ac_fn_c_try_link "$LINENO"; then :
23979 gcc_cv_math_func_y0f=yes
23980 else
23981 gcc_cv_math_func_y0f=no
23983 rm -f core conftest.err conftest.$ac_objext \
23984 conftest$ac_exeext conftest.$ac_ext
23986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0f" >&5
23987 $as_echo "$gcc_cv_math_func_y0f" >&6; }
23988 if test $gcc_cv_math_func_y0f = yes; then
23990 cat >>confdefs.h <<_ACEOF
23991 #define HAVE_Y0F 1
23992 _ACEOF
23999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0" >&5
24000 $as_echo_n "checking for y0... " >&6; }
24001 if test "${gcc_cv_math_func_y0+set}" = set; then :
24002 $as_echo_n "(cached) " >&6
24003 else
24004 if test x$gcc_no_link = xyes; then
24005 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24008 /* end confdefs.h. */
24010 #ifdef HAVE_COMPLEX_H
24011 #include <complex.h>
24012 #endif
24013 #ifdef HAVE_MATH_H
24014 #include <math.h>
24015 #endif
24017 int (*ptr)() = (int (*)())y0;
24020 main ()
24022 return 0;
24025 _ACEOF
24026 if ac_fn_c_try_link "$LINENO"; then :
24027 gcc_cv_math_func_y0=yes
24028 else
24029 gcc_cv_math_func_y0=no
24031 rm -f core conftest.err conftest.$ac_objext \
24032 conftest$ac_exeext conftest.$ac_ext
24034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0" >&5
24035 $as_echo "$gcc_cv_math_func_y0" >&6; }
24036 if test $gcc_cv_math_func_y0 = yes; then
24038 cat >>confdefs.h <<_ACEOF
24039 #define HAVE_Y0 1
24040 _ACEOF
24047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y0l" >&5
24048 $as_echo_n "checking for y0l... " >&6; }
24049 if test "${gcc_cv_math_func_y0l+set}" = set; then :
24050 $as_echo_n "(cached) " >&6
24051 else
24052 if test x$gcc_no_link = xyes; then
24053 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24055 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24056 /* end confdefs.h. */
24058 #ifdef HAVE_COMPLEX_H
24059 #include <complex.h>
24060 #endif
24061 #ifdef HAVE_MATH_H
24062 #include <math.h>
24063 #endif
24065 int (*ptr)() = (int (*)())y0l;
24068 main ()
24070 return 0;
24073 _ACEOF
24074 if ac_fn_c_try_link "$LINENO"; then :
24075 gcc_cv_math_func_y0l=yes
24076 else
24077 gcc_cv_math_func_y0l=no
24079 rm -f core conftest.err conftest.$ac_objext \
24080 conftest$ac_exeext conftest.$ac_ext
24082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y0l" >&5
24083 $as_echo "$gcc_cv_math_func_y0l" >&6; }
24084 if test $gcc_cv_math_func_y0l = yes; then
24086 cat >>confdefs.h <<_ACEOF
24087 #define HAVE_Y0L 1
24088 _ACEOF
24095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1f" >&5
24096 $as_echo_n "checking for y1f... " >&6; }
24097 if test "${gcc_cv_math_func_y1f+set}" = set; then :
24098 $as_echo_n "(cached) " >&6
24099 else
24100 if test x$gcc_no_link = xyes; then
24101 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24104 /* end confdefs.h. */
24106 #ifdef HAVE_COMPLEX_H
24107 #include <complex.h>
24108 #endif
24109 #ifdef HAVE_MATH_H
24110 #include <math.h>
24111 #endif
24113 int (*ptr)() = (int (*)())y1f;
24116 main ()
24118 return 0;
24121 _ACEOF
24122 if ac_fn_c_try_link "$LINENO"; then :
24123 gcc_cv_math_func_y1f=yes
24124 else
24125 gcc_cv_math_func_y1f=no
24127 rm -f core conftest.err conftest.$ac_objext \
24128 conftest$ac_exeext conftest.$ac_ext
24130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1f" >&5
24131 $as_echo "$gcc_cv_math_func_y1f" >&6; }
24132 if test $gcc_cv_math_func_y1f = yes; then
24134 cat >>confdefs.h <<_ACEOF
24135 #define HAVE_Y1F 1
24136 _ACEOF
24143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1" >&5
24144 $as_echo_n "checking for y1... " >&6; }
24145 if test "${gcc_cv_math_func_y1+set}" = set; then :
24146 $as_echo_n "(cached) " >&6
24147 else
24148 if test x$gcc_no_link = xyes; then
24149 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24152 /* end confdefs.h. */
24154 #ifdef HAVE_COMPLEX_H
24155 #include <complex.h>
24156 #endif
24157 #ifdef HAVE_MATH_H
24158 #include <math.h>
24159 #endif
24161 int (*ptr)() = (int (*)())y1;
24164 main ()
24166 return 0;
24169 _ACEOF
24170 if ac_fn_c_try_link "$LINENO"; then :
24171 gcc_cv_math_func_y1=yes
24172 else
24173 gcc_cv_math_func_y1=no
24175 rm -f core conftest.err conftest.$ac_objext \
24176 conftest$ac_exeext conftest.$ac_ext
24178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1" >&5
24179 $as_echo "$gcc_cv_math_func_y1" >&6; }
24180 if test $gcc_cv_math_func_y1 = yes; then
24182 cat >>confdefs.h <<_ACEOF
24183 #define HAVE_Y1 1
24184 _ACEOF
24191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for y1l" >&5
24192 $as_echo_n "checking for y1l... " >&6; }
24193 if test "${gcc_cv_math_func_y1l+set}" = set; then :
24194 $as_echo_n "(cached) " >&6
24195 else
24196 if test x$gcc_no_link = xyes; then
24197 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24200 /* end confdefs.h. */
24202 #ifdef HAVE_COMPLEX_H
24203 #include <complex.h>
24204 #endif
24205 #ifdef HAVE_MATH_H
24206 #include <math.h>
24207 #endif
24209 int (*ptr)() = (int (*)())y1l;
24212 main ()
24214 return 0;
24217 _ACEOF
24218 if ac_fn_c_try_link "$LINENO"; then :
24219 gcc_cv_math_func_y1l=yes
24220 else
24221 gcc_cv_math_func_y1l=no
24223 rm -f core conftest.err conftest.$ac_objext \
24224 conftest$ac_exeext conftest.$ac_ext
24226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_y1l" >&5
24227 $as_echo "$gcc_cv_math_func_y1l" >&6; }
24228 if test $gcc_cv_math_func_y1l = yes; then
24230 cat >>confdefs.h <<_ACEOF
24231 #define HAVE_Y1L 1
24232 _ACEOF
24239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynf" >&5
24240 $as_echo_n "checking for ynf... " >&6; }
24241 if test "${gcc_cv_math_func_ynf+set}" = set; then :
24242 $as_echo_n "(cached) " >&6
24243 else
24244 if test x$gcc_no_link = xyes; then
24245 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24248 /* end confdefs.h. */
24250 #ifdef HAVE_COMPLEX_H
24251 #include <complex.h>
24252 #endif
24253 #ifdef HAVE_MATH_H
24254 #include <math.h>
24255 #endif
24257 int (*ptr)() = (int (*)())ynf;
24260 main ()
24262 return 0;
24265 _ACEOF
24266 if ac_fn_c_try_link "$LINENO"; then :
24267 gcc_cv_math_func_ynf=yes
24268 else
24269 gcc_cv_math_func_ynf=no
24271 rm -f core conftest.err conftest.$ac_objext \
24272 conftest$ac_exeext conftest.$ac_ext
24274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynf" >&5
24275 $as_echo "$gcc_cv_math_func_ynf" >&6; }
24276 if test $gcc_cv_math_func_ynf = yes; then
24278 cat >>confdefs.h <<_ACEOF
24279 #define HAVE_YNF 1
24280 _ACEOF
24287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yn" >&5
24288 $as_echo_n "checking for yn... " >&6; }
24289 if test "${gcc_cv_math_func_yn+set}" = set; then :
24290 $as_echo_n "(cached) " >&6
24291 else
24292 if test x$gcc_no_link = xyes; then
24293 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24296 /* end confdefs.h. */
24298 #ifdef HAVE_COMPLEX_H
24299 #include <complex.h>
24300 #endif
24301 #ifdef HAVE_MATH_H
24302 #include <math.h>
24303 #endif
24305 int (*ptr)() = (int (*)())yn;
24308 main ()
24310 return 0;
24313 _ACEOF
24314 if ac_fn_c_try_link "$LINENO"; then :
24315 gcc_cv_math_func_yn=yes
24316 else
24317 gcc_cv_math_func_yn=no
24319 rm -f core conftest.err conftest.$ac_objext \
24320 conftest$ac_exeext conftest.$ac_ext
24322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_yn" >&5
24323 $as_echo "$gcc_cv_math_func_yn" >&6; }
24324 if test $gcc_cv_math_func_yn = yes; then
24326 cat >>confdefs.h <<_ACEOF
24327 #define HAVE_YN 1
24328 _ACEOF
24335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ynl" >&5
24336 $as_echo_n "checking for ynl... " >&6; }
24337 if test "${gcc_cv_math_func_ynl+set}" = set; then :
24338 $as_echo_n "(cached) " >&6
24339 else
24340 if test x$gcc_no_link = xyes; then
24341 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24344 /* end confdefs.h. */
24346 #ifdef HAVE_COMPLEX_H
24347 #include <complex.h>
24348 #endif
24349 #ifdef HAVE_MATH_H
24350 #include <math.h>
24351 #endif
24353 int (*ptr)() = (int (*)())ynl;
24356 main ()
24358 return 0;
24361 _ACEOF
24362 if ac_fn_c_try_link "$LINENO"; then :
24363 gcc_cv_math_func_ynl=yes
24364 else
24365 gcc_cv_math_func_ynl=no
24367 rm -f core conftest.err conftest.$ac_objext \
24368 conftest$ac_exeext conftest.$ac_ext
24370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_ynl" >&5
24371 $as_echo "$gcc_cv_math_func_ynl" >&6; }
24372 if test $gcc_cv_math_func_ynl = yes; then
24374 cat >>confdefs.h <<_ACEOF
24375 #define HAVE_YNL 1
24376 _ACEOF
24383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgamma" >&5
24384 $as_echo_n "checking for tgamma... " >&6; }
24385 if test "${gcc_cv_math_func_tgamma+set}" = set; then :
24386 $as_echo_n "(cached) " >&6
24387 else
24388 if test x$gcc_no_link = xyes; then
24389 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24392 /* end confdefs.h. */
24394 #ifdef HAVE_COMPLEX_H
24395 #include <complex.h>
24396 #endif
24397 #ifdef HAVE_MATH_H
24398 #include <math.h>
24399 #endif
24401 int (*ptr)() = (int (*)())tgamma;
24404 main ()
24406 return 0;
24409 _ACEOF
24410 if ac_fn_c_try_link "$LINENO"; then :
24411 gcc_cv_math_func_tgamma=yes
24412 else
24413 gcc_cv_math_func_tgamma=no
24415 rm -f core conftest.err conftest.$ac_objext \
24416 conftest$ac_exeext conftest.$ac_ext
24418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgamma" >&5
24419 $as_echo "$gcc_cv_math_func_tgamma" >&6; }
24420 if test $gcc_cv_math_func_tgamma = yes; then
24422 cat >>confdefs.h <<_ACEOF
24423 #define HAVE_TGAMMA 1
24424 _ACEOF
24431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammaf" >&5
24432 $as_echo_n "checking for tgammaf... " >&6; }
24433 if test "${gcc_cv_math_func_tgammaf+set}" = set; then :
24434 $as_echo_n "(cached) " >&6
24435 else
24436 if test x$gcc_no_link = xyes; then
24437 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24440 /* end confdefs.h. */
24442 #ifdef HAVE_COMPLEX_H
24443 #include <complex.h>
24444 #endif
24445 #ifdef HAVE_MATH_H
24446 #include <math.h>
24447 #endif
24449 int (*ptr)() = (int (*)())tgammaf;
24452 main ()
24454 return 0;
24457 _ACEOF
24458 if ac_fn_c_try_link "$LINENO"; then :
24459 gcc_cv_math_func_tgammaf=yes
24460 else
24461 gcc_cv_math_func_tgammaf=no
24463 rm -f core conftest.err conftest.$ac_objext \
24464 conftest$ac_exeext conftest.$ac_ext
24466 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgammaf" >&5
24467 $as_echo "$gcc_cv_math_func_tgammaf" >&6; }
24468 if test $gcc_cv_math_func_tgammaf = yes; then
24470 cat >>confdefs.h <<_ACEOF
24471 #define HAVE_TGAMMAF 1
24472 _ACEOF
24479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tgammal" >&5
24480 $as_echo_n "checking for tgammal... " >&6; }
24481 if test "${gcc_cv_math_func_tgammal+set}" = set; then :
24482 $as_echo_n "(cached) " >&6
24483 else
24484 if test x$gcc_no_link = xyes; then
24485 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24488 /* end confdefs.h. */
24490 #ifdef HAVE_COMPLEX_H
24491 #include <complex.h>
24492 #endif
24493 #ifdef HAVE_MATH_H
24494 #include <math.h>
24495 #endif
24497 int (*ptr)() = (int (*)())tgammal;
24500 main ()
24502 return 0;
24505 _ACEOF
24506 if ac_fn_c_try_link "$LINENO"; then :
24507 gcc_cv_math_func_tgammal=yes
24508 else
24509 gcc_cv_math_func_tgammal=no
24511 rm -f core conftest.err conftest.$ac_objext \
24512 conftest$ac_exeext conftest.$ac_ext
24514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_tgammal" >&5
24515 $as_echo "$gcc_cv_math_func_tgammal" >&6; }
24516 if test $gcc_cv_math_func_tgammal = yes; then
24518 cat >>confdefs.h <<_ACEOF
24519 #define HAVE_TGAMMAL 1
24520 _ACEOF
24527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgamma" >&5
24528 $as_echo_n "checking for lgamma... " >&6; }
24529 if test "${gcc_cv_math_func_lgamma+set}" = set; then :
24530 $as_echo_n "(cached) " >&6
24531 else
24532 if test x$gcc_no_link = xyes; then
24533 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24536 /* end confdefs.h. */
24538 #ifdef HAVE_COMPLEX_H
24539 #include <complex.h>
24540 #endif
24541 #ifdef HAVE_MATH_H
24542 #include <math.h>
24543 #endif
24545 int (*ptr)() = (int (*)())lgamma;
24548 main ()
24550 return 0;
24553 _ACEOF
24554 if ac_fn_c_try_link "$LINENO"; then :
24555 gcc_cv_math_func_lgamma=yes
24556 else
24557 gcc_cv_math_func_lgamma=no
24559 rm -f core conftest.err conftest.$ac_objext \
24560 conftest$ac_exeext conftest.$ac_ext
24562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgamma" >&5
24563 $as_echo "$gcc_cv_math_func_lgamma" >&6; }
24564 if test $gcc_cv_math_func_lgamma = yes; then
24566 cat >>confdefs.h <<_ACEOF
24567 #define HAVE_LGAMMA 1
24568 _ACEOF
24575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammaf" >&5
24576 $as_echo_n "checking for lgammaf... " >&6; }
24577 if test "${gcc_cv_math_func_lgammaf+set}" = set; then :
24578 $as_echo_n "(cached) " >&6
24579 else
24580 if test x$gcc_no_link = xyes; then
24581 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24584 /* end confdefs.h. */
24586 #ifdef HAVE_COMPLEX_H
24587 #include <complex.h>
24588 #endif
24589 #ifdef HAVE_MATH_H
24590 #include <math.h>
24591 #endif
24593 int (*ptr)() = (int (*)())lgammaf;
24596 main ()
24598 return 0;
24601 _ACEOF
24602 if ac_fn_c_try_link "$LINENO"; then :
24603 gcc_cv_math_func_lgammaf=yes
24604 else
24605 gcc_cv_math_func_lgammaf=no
24607 rm -f core conftest.err conftest.$ac_objext \
24608 conftest$ac_exeext conftest.$ac_ext
24610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgammaf" >&5
24611 $as_echo "$gcc_cv_math_func_lgammaf" >&6; }
24612 if test $gcc_cv_math_func_lgammaf = yes; then
24614 cat >>confdefs.h <<_ACEOF
24615 #define HAVE_LGAMMAF 1
24616 _ACEOF
24623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lgammal" >&5
24624 $as_echo_n "checking for lgammal... " >&6; }
24625 if test "${gcc_cv_math_func_lgammal+set}" = set; then :
24626 $as_echo_n "(cached) " >&6
24627 else
24628 if test x$gcc_no_link = xyes; then
24629 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24631 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24632 /* end confdefs.h. */
24634 #ifdef HAVE_COMPLEX_H
24635 #include <complex.h>
24636 #endif
24637 #ifdef HAVE_MATH_H
24638 #include <math.h>
24639 #endif
24641 int (*ptr)() = (int (*)())lgammal;
24644 main ()
24646 return 0;
24649 _ACEOF
24650 if ac_fn_c_try_link "$LINENO"; then :
24651 gcc_cv_math_func_lgammal=yes
24652 else
24653 gcc_cv_math_func_lgammal=no
24655 rm -f core conftest.err conftest.$ac_objext \
24656 conftest$ac_exeext conftest.$ac_ext
24658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_lgammal" >&5
24659 $as_echo "$gcc_cv_math_func_lgammal" >&6; }
24660 if test $gcc_cv_math_func_lgammal = yes; then
24662 cat >>confdefs.h <<_ACEOF
24663 #define HAVE_LGAMMAL 1
24664 _ACEOF
24669 # Check for GFORTRAN_C99_1.1 funcs
24673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacos" >&5
24674 $as_echo_n "checking for cacos... " >&6; }
24675 if test "${gcc_cv_math_func_cacos+set}" = set; then :
24676 $as_echo_n "(cached) " >&6
24677 else
24678 if test x$gcc_no_link = xyes; then
24679 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24682 /* end confdefs.h. */
24684 #ifdef HAVE_COMPLEX_H
24685 #include <complex.h>
24686 #endif
24687 #ifdef HAVE_MATH_H
24688 #include <math.h>
24689 #endif
24691 int (*ptr)() = (int (*)())cacos;
24694 main ()
24696 return 0;
24699 _ACEOF
24700 if ac_fn_c_try_link "$LINENO"; then :
24701 gcc_cv_math_func_cacos=yes
24702 else
24703 gcc_cv_math_func_cacos=no
24705 rm -f core conftest.err conftest.$ac_objext \
24706 conftest$ac_exeext conftest.$ac_ext
24708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacos" >&5
24709 $as_echo "$gcc_cv_math_func_cacos" >&6; }
24710 if test $gcc_cv_math_func_cacos = yes; then
24712 cat >>confdefs.h <<_ACEOF
24713 #define HAVE_CACOS 1
24714 _ACEOF
24721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosf" >&5
24722 $as_echo_n "checking for cacosf... " >&6; }
24723 if test "${gcc_cv_math_func_cacosf+set}" = set; then :
24724 $as_echo_n "(cached) " >&6
24725 else
24726 if test x$gcc_no_link = xyes; then
24727 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24729 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24730 /* end confdefs.h. */
24732 #ifdef HAVE_COMPLEX_H
24733 #include <complex.h>
24734 #endif
24735 #ifdef HAVE_MATH_H
24736 #include <math.h>
24737 #endif
24739 int (*ptr)() = (int (*)())cacosf;
24742 main ()
24744 return 0;
24747 _ACEOF
24748 if ac_fn_c_try_link "$LINENO"; then :
24749 gcc_cv_math_func_cacosf=yes
24750 else
24751 gcc_cv_math_func_cacosf=no
24753 rm -f core conftest.err conftest.$ac_objext \
24754 conftest$ac_exeext conftest.$ac_ext
24756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosf" >&5
24757 $as_echo "$gcc_cv_math_func_cacosf" >&6; }
24758 if test $gcc_cv_math_func_cacosf = yes; then
24760 cat >>confdefs.h <<_ACEOF
24761 #define HAVE_CACOSF 1
24762 _ACEOF
24769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosh" >&5
24770 $as_echo_n "checking for cacosh... " >&6; }
24771 if test "${gcc_cv_math_func_cacosh+set}" = set; then :
24772 $as_echo_n "(cached) " >&6
24773 else
24774 if test x$gcc_no_link = xyes; then
24775 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24778 /* end confdefs.h. */
24780 #ifdef HAVE_COMPLEX_H
24781 #include <complex.h>
24782 #endif
24783 #ifdef HAVE_MATH_H
24784 #include <math.h>
24785 #endif
24787 int (*ptr)() = (int (*)())cacosh;
24790 main ()
24792 return 0;
24795 _ACEOF
24796 if ac_fn_c_try_link "$LINENO"; then :
24797 gcc_cv_math_func_cacosh=yes
24798 else
24799 gcc_cv_math_func_cacosh=no
24801 rm -f core conftest.err conftest.$ac_objext \
24802 conftest$ac_exeext conftest.$ac_ext
24804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosh" >&5
24805 $as_echo "$gcc_cv_math_func_cacosh" >&6; }
24806 if test $gcc_cv_math_func_cacosh = yes; then
24808 cat >>confdefs.h <<_ACEOF
24809 #define HAVE_CACOSH 1
24810 _ACEOF
24817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshf" >&5
24818 $as_echo_n "checking for cacoshf... " >&6; }
24819 if test "${gcc_cv_math_func_cacoshf+set}" = set; then :
24820 $as_echo_n "(cached) " >&6
24821 else
24822 if test x$gcc_no_link = xyes; then
24823 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24825 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24826 /* end confdefs.h. */
24828 #ifdef HAVE_COMPLEX_H
24829 #include <complex.h>
24830 #endif
24831 #ifdef HAVE_MATH_H
24832 #include <math.h>
24833 #endif
24835 int (*ptr)() = (int (*)())cacoshf;
24838 main ()
24840 return 0;
24843 _ACEOF
24844 if ac_fn_c_try_link "$LINENO"; then :
24845 gcc_cv_math_func_cacoshf=yes
24846 else
24847 gcc_cv_math_func_cacoshf=no
24849 rm -f core conftest.err conftest.$ac_objext \
24850 conftest$ac_exeext conftest.$ac_ext
24852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshf" >&5
24853 $as_echo "$gcc_cv_math_func_cacoshf" >&6; }
24854 if test $gcc_cv_math_func_cacoshf = yes; then
24856 cat >>confdefs.h <<_ACEOF
24857 #define HAVE_CACOSHF 1
24858 _ACEOF
24865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacoshl" >&5
24866 $as_echo_n "checking for cacoshl... " >&6; }
24867 if test "${gcc_cv_math_func_cacoshl+set}" = set; then :
24868 $as_echo_n "(cached) " >&6
24869 else
24870 if test x$gcc_no_link = xyes; then
24871 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24874 /* end confdefs.h. */
24876 #ifdef HAVE_COMPLEX_H
24877 #include <complex.h>
24878 #endif
24879 #ifdef HAVE_MATH_H
24880 #include <math.h>
24881 #endif
24883 int (*ptr)() = (int (*)())cacoshl;
24886 main ()
24888 return 0;
24891 _ACEOF
24892 if ac_fn_c_try_link "$LINENO"; then :
24893 gcc_cv_math_func_cacoshl=yes
24894 else
24895 gcc_cv_math_func_cacoshl=no
24897 rm -f core conftest.err conftest.$ac_objext \
24898 conftest$ac_exeext conftest.$ac_ext
24900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacoshl" >&5
24901 $as_echo "$gcc_cv_math_func_cacoshl" >&6; }
24902 if test $gcc_cv_math_func_cacoshl = yes; then
24904 cat >>confdefs.h <<_ACEOF
24905 #define HAVE_CACOSHL 1
24906 _ACEOF
24913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cacosl" >&5
24914 $as_echo_n "checking for cacosl... " >&6; }
24915 if test "${gcc_cv_math_func_cacosl+set}" = set; then :
24916 $as_echo_n "(cached) " >&6
24917 else
24918 if test x$gcc_no_link = xyes; then
24919 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24922 /* end confdefs.h. */
24924 #ifdef HAVE_COMPLEX_H
24925 #include <complex.h>
24926 #endif
24927 #ifdef HAVE_MATH_H
24928 #include <math.h>
24929 #endif
24931 int (*ptr)() = (int (*)())cacosl;
24934 main ()
24936 return 0;
24939 _ACEOF
24940 if ac_fn_c_try_link "$LINENO"; then :
24941 gcc_cv_math_func_cacosl=yes
24942 else
24943 gcc_cv_math_func_cacosl=no
24945 rm -f core conftest.err conftest.$ac_objext \
24946 conftest$ac_exeext conftest.$ac_ext
24948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_cacosl" >&5
24949 $as_echo "$gcc_cv_math_func_cacosl" >&6; }
24950 if test $gcc_cv_math_func_cacosl = yes; then
24952 cat >>confdefs.h <<_ACEOF
24953 #define HAVE_CACOSL 1
24954 _ACEOF
24961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casin" >&5
24962 $as_echo_n "checking for casin... " >&6; }
24963 if test "${gcc_cv_math_func_casin+set}" = set; then :
24964 $as_echo_n "(cached) " >&6
24965 else
24966 if test x$gcc_no_link = xyes; then
24967 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
24969 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24970 /* end confdefs.h. */
24972 #ifdef HAVE_COMPLEX_H
24973 #include <complex.h>
24974 #endif
24975 #ifdef HAVE_MATH_H
24976 #include <math.h>
24977 #endif
24979 int (*ptr)() = (int (*)())casin;
24982 main ()
24984 return 0;
24987 _ACEOF
24988 if ac_fn_c_try_link "$LINENO"; then :
24989 gcc_cv_math_func_casin=yes
24990 else
24991 gcc_cv_math_func_casin=no
24993 rm -f core conftest.err conftest.$ac_objext \
24994 conftest$ac_exeext conftest.$ac_ext
24996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casin" >&5
24997 $as_echo "$gcc_cv_math_func_casin" >&6; }
24998 if test $gcc_cv_math_func_casin = yes; then
25000 cat >>confdefs.h <<_ACEOF
25001 #define HAVE_CASIN 1
25002 _ACEOF
25009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinf" >&5
25010 $as_echo_n "checking for casinf... " >&6; }
25011 if test "${gcc_cv_math_func_casinf+set}" = set; then :
25012 $as_echo_n "(cached) " >&6
25013 else
25014 if test x$gcc_no_link = xyes; then
25015 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25018 /* end confdefs.h. */
25020 #ifdef HAVE_COMPLEX_H
25021 #include <complex.h>
25022 #endif
25023 #ifdef HAVE_MATH_H
25024 #include <math.h>
25025 #endif
25027 int (*ptr)() = (int (*)())casinf;
25030 main ()
25032 return 0;
25035 _ACEOF
25036 if ac_fn_c_try_link "$LINENO"; then :
25037 gcc_cv_math_func_casinf=yes
25038 else
25039 gcc_cv_math_func_casinf=no
25041 rm -f core conftest.err conftest.$ac_objext \
25042 conftest$ac_exeext conftest.$ac_ext
25044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinf" >&5
25045 $as_echo "$gcc_cv_math_func_casinf" >&6; }
25046 if test $gcc_cv_math_func_casinf = yes; then
25048 cat >>confdefs.h <<_ACEOF
25049 #define HAVE_CASINF 1
25050 _ACEOF
25057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinh" >&5
25058 $as_echo_n "checking for casinh... " >&6; }
25059 if test "${gcc_cv_math_func_casinh+set}" = set; then :
25060 $as_echo_n "(cached) " >&6
25061 else
25062 if test x$gcc_no_link = xyes; then
25063 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25066 /* end confdefs.h. */
25068 #ifdef HAVE_COMPLEX_H
25069 #include <complex.h>
25070 #endif
25071 #ifdef HAVE_MATH_H
25072 #include <math.h>
25073 #endif
25075 int (*ptr)() = (int (*)())casinh;
25078 main ()
25080 return 0;
25083 _ACEOF
25084 if ac_fn_c_try_link "$LINENO"; then :
25085 gcc_cv_math_func_casinh=yes
25086 else
25087 gcc_cv_math_func_casinh=no
25089 rm -f core conftest.err conftest.$ac_objext \
25090 conftest$ac_exeext conftest.$ac_ext
25092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinh" >&5
25093 $as_echo "$gcc_cv_math_func_casinh" >&6; }
25094 if test $gcc_cv_math_func_casinh = yes; then
25096 cat >>confdefs.h <<_ACEOF
25097 #define HAVE_CASINH 1
25098 _ACEOF
25105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhf" >&5
25106 $as_echo_n "checking for casinhf... " >&6; }
25107 if test "${gcc_cv_math_func_casinhf+set}" = set; then :
25108 $as_echo_n "(cached) " >&6
25109 else
25110 if test x$gcc_no_link = xyes; then
25111 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25114 /* end confdefs.h. */
25116 #ifdef HAVE_COMPLEX_H
25117 #include <complex.h>
25118 #endif
25119 #ifdef HAVE_MATH_H
25120 #include <math.h>
25121 #endif
25123 int (*ptr)() = (int (*)())casinhf;
25126 main ()
25128 return 0;
25131 _ACEOF
25132 if ac_fn_c_try_link "$LINENO"; then :
25133 gcc_cv_math_func_casinhf=yes
25134 else
25135 gcc_cv_math_func_casinhf=no
25137 rm -f core conftest.err conftest.$ac_objext \
25138 conftest$ac_exeext conftest.$ac_ext
25140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhf" >&5
25141 $as_echo "$gcc_cv_math_func_casinhf" >&6; }
25142 if test $gcc_cv_math_func_casinhf = yes; then
25144 cat >>confdefs.h <<_ACEOF
25145 #define HAVE_CASINHF 1
25146 _ACEOF
25153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinhl" >&5
25154 $as_echo_n "checking for casinhl... " >&6; }
25155 if test "${gcc_cv_math_func_casinhl+set}" = set; then :
25156 $as_echo_n "(cached) " >&6
25157 else
25158 if test x$gcc_no_link = xyes; then
25159 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25162 /* end confdefs.h. */
25164 #ifdef HAVE_COMPLEX_H
25165 #include <complex.h>
25166 #endif
25167 #ifdef HAVE_MATH_H
25168 #include <math.h>
25169 #endif
25171 int (*ptr)() = (int (*)())casinhl;
25174 main ()
25176 return 0;
25179 _ACEOF
25180 if ac_fn_c_try_link "$LINENO"; then :
25181 gcc_cv_math_func_casinhl=yes
25182 else
25183 gcc_cv_math_func_casinhl=no
25185 rm -f core conftest.err conftest.$ac_objext \
25186 conftest$ac_exeext conftest.$ac_ext
25188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinhl" >&5
25189 $as_echo "$gcc_cv_math_func_casinhl" >&6; }
25190 if test $gcc_cv_math_func_casinhl = yes; then
25192 cat >>confdefs.h <<_ACEOF
25193 #define HAVE_CASINHL 1
25194 _ACEOF
25201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for casinl" >&5
25202 $as_echo_n "checking for casinl... " >&6; }
25203 if test "${gcc_cv_math_func_casinl+set}" = set; then :
25204 $as_echo_n "(cached) " >&6
25205 else
25206 if test x$gcc_no_link = xyes; then
25207 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25210 /* end confdefs.h. */
25212 #ifdef HAVE_COMPLEX_H
25213 #include <complex.h>
25214 #endif
25215 #ifdef HAVE_MATH_H
25216 #include <math.h>
25217 #endif
25219 int (*ptr)() = (int (*)())casinl;
25222 main ()
25224 return 0;
25227 _ACEOF
25228 if ac_fn_c_try_link "$LINENO"; then :
25229 gcc_cv_math_func_casinl=yes
25230 else
25231 gcc_cv_math_func_casinl=no
25233 rm -f core conftest.err conftest.$ac_objext \
25234 conftest$ac_exeext conftest.$ac_ext
25236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_casinl" >&5
25237 $as_echo "$gcc_cv_math_func_casinl" >&6; }
25238 if test $gcc_cv_math_func_casinl = yes; then
25240 cat >>confdefs.h <<_ACEOF
25241 #define HAVE_CASINL 1
25242 _ACEOF
25249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catan" >&5
25250 $as_echo_n "checking for catan... " >&6; }
25251 if test "${gcc_cv_math_func_catan+set}" = set; then :
25252 $as_echo_n "(cached) " >&6
25253 else
25254 if test x$gcc_no_link = xyes; then
25255 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25258 /* end confdefs.h. */
25260 #ifdef HAVE_COMPLEX_H
25261 #include <complex.h>
25262 #endif
25263 #ifdef HAVE_MATH_H
25264 #include <math.h>
25265 #endif
25267 int (*ptr)() = (int (*)())catan;
25270 main ()
25272 return 0;
25275 _ACEOF
25276 if ac_fn_c_try_link "$LINENO"; then :
25277 gcc_cv_math_func_catan=yes
25278 else
25279 gcc_cv_math_func_catan=no
25281 rm -f core conftest.err conftest.$ac_objext \
25282 conftest$ac_exeext conftest.$ac_ext
25284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catan" >&5
25285 $as_echo "$gcc_cv_math_func_catan" >&6; }
25286 if test $gcc_cv_math_func_catan = yes; then
25288 cat >>confdefs.h <<_ACEOF
25289 #define HAVE_CATAN 1
25290 _ACEOF
25297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanf" >&5
25298 $as_echo_n "checking for catanf... " >&6; }
25299 if test "${gcc_cv_math_func_catanf+set}" = set; then :
25300 $as_echo_n "(cached) " >&6
25301 else
25302 if test x$gcc_no_link = xyes; then
25303 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25306 /* end confdefs.h. */
25308 #ifdef HAVE_COMPLEX_H
25309 #include <complex.h>
25310 #endif
25311 #ifdef HAVE_MATH_H
25312 #include <math.h>
25313 #endif
25315 int (*ptr)() = (int (*)())catanf;
25318 main ()
25320 return 0;
25323 _ACEOF
25324 if ac_fn_c_try_link "$LINENO"; then :
25325 gcc_cv_math_func_catanf=yes
25326 else
25327 gcc_cv_math_func_catanf=no
25329 rm -f core conftest.err conftest.$ac_objext \
25330 conftest$ac_exeext conftest.$ac_ext
25332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanf" >&5
25333 $as_echo "$gcc_cv_math_func_catanf" >&6; }
25334 if test $gcc_cv_math_func_catanf = yes; then
25336 cat >>confdefs.h <<_ACEOF
25337 #define HAVE_CATANF 1
25338 _ACEOF
25345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanh" >&5
25346 $as_echo_n "checking for catanh... " >&6; }
25347 if test "${gcc_cv_math_func_catanh+set}" = set; then :
25348 $as_echo_n "(cached) " >&6
25349 else
25350 if test x$gcc_no_link = xyes; then
25351 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25354 /* end confdefs.h. */
25356 #ifdef HAVE_COMPLEX_H
25357 #include <complex.h>
25358 #endif
25359 #ifdef HAVE_MATH_H
25360 #include <math.h>
25361 #endif
25363 int (*ptr)() = (int (*)())catanh;
25366 main ()
25368 return 0;
25371 _ACEOF
25372 if ac_fn_c_try_link "$LINENO"; then :
25373 gcc_cv_math_func_catanh=yes
25374 else
25375 gcc_cv_math_func_catanh=no
25377 rm -f core conftest.err conftest.$ac_objext \
25378 conftest$ac_exeext conftest.$ac_ext
25380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanh" >&5
25381 $as_echo "$gcc_cv_math_func_catanh" >&6; }
25382 if test $gcc_cv_math_func_catanh = yes; then
25384 cat >>confdefs.h <<_ACEOF
25385 #define HAVE_CATANH 1
25386 _ACEOF
25393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhf" >&5
25394 $as_echo_n "checking for catanhf... " >&6; }
25395 if test "${gcc_cv_math_func_catanhf+set}" = set; then :
25396 $as_echo_n "(cached) " >&6
25397 else
25398 if test x$gcc_no_link = xyes; then
25399 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25402 /* end confdefs.h. */
25404 #ifdef HAVE_COMPLEX_H
25405 #include <complex.h>
25406 #endif
25407 #ifdef HAVE_MATH_H
25408 #include <math.h>
25409 #endif
25411 int (*ptr)() = (int (*)())catanhf;
25414 main ()
25416 return 0;
25419 _ACEOF
25420 if ac_fn_c_try_link "$LINENO"; then :
25421 gcc_cv_math_func_catanhf=yes
25422 else
25423 gcc_cv_math_func_catanhf=no
25425 rm -f core conftest.err conftest.$ac_objext \
25426 conftest$ac_exeext conftest.$ac_ext
25428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhf" >&5
25429 $as_echo "$gcc_cv_math_func_catanhf" >&6; }
25430 if test $gcc_cv_math_func_catanhf = yes; then
25432 cat >>confdefs.h <<_ACEOF
25433 #define HAVE_CATANHF 1
25434 _ACEOF
25441 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanhl" >&5
25442 $as_echo_n "checking for catanhl... " >&6; }
25443 if test "${gcc_cv_math_func_catanhl+set}" = set; then :
25444 $as_echo_n "(cached) " >&6
25445 else
25446 if test x$gcc_no_link = xyes; then
25447 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25449 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25450 /* end confdefs.h. */
25452 #ifdef HAVE_COMPLEX_H
25453 #include <complex.h>
25454 #endif
25455 #ifdef HAVE_MATH_H
25456 #include <math.h>
25457 #endif
25459 int (*ptr)() = (int (*)())catanhl;
25462 main ()
25464 return 0;
25467 _ACEOF
25468 if ac_fn_c_try_link "$LINENO"; then :
25469 gcc_cv_math_func_catanhl=yes
25470 else
25471 gcc_cv_math_func_catanhl=no
25473 rm -f core conftest.err conftest.$ac_objext \
25474 conftest$ac_exeext conftest.$ac_ext
25476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanhl" >&5
25477 $as_echo "$gcc_cv_math_func_catanhl" >&6; }
25478 if test $gcc_cv_math_func_catanhl = yes; then
25480 cat >>confdefs.h <<_ACEOF
25481 #define HAVE_CATANHL 1
25482 _ACEOF
25489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for catanl" >&5
25490 $as_echo_n "checking for catanl... " >&6; }
25491 if test "${gcc_cv_math_func_catanl+set}" = set; then :
25492 $as_echo_n "(cached) " >&6
25493 else
25494 if test x$gcc_no_link = xyes; then
25495 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25497 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25498 /* end confdefs.h. */
25500 #ifdef HAVE_COMPLEX_H
25501 #include <complex.h>
25502 #endif
25503 #ifdef HAVE_MATH_H
25504 #include <math.h>
25505 #endif
25507 int (*ptr)() = (int (*)())catanl;
25510 main ()
25512 return 0;
25515 _ACEOF
25516 if ac_fn_c_try_link "$LINENO"; then :
25517 gcc_cv_math_func_catanl=yes
25518 else
25519 gcc_cv_math_func_catanl=no
25521 rm -f core conftest.err conftest.$ac_objext \
25522 conftest$ac_exeext conftest.$ac_ext
25524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_cv_math_func_catanl" >&5
25525 $as_echo "$gcc_cv_math_func_catanl" >&6; }
25526 if test $gcc_cv_math_func_catanl = yes; then
25528 cat >>confdefs.h <<_ACEOF
25529 #define HAVE_CATANL 1
25530 _ACEOF
25535 # On AIX, clog is present in libm as __clog
25536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __clog in -lm" >&5
25537 $as_echo_n "checking for __clog in -lm... " >&6; }
25538 if test "${ac_cv_lib_m___clog+set}" = set; then :
25539 $as_echo_n "(cached) " >&6
25540 else
25541 ac_check_lib_save_LIBS=$LIBS
25542 LIBS="-lm $LIBS"
25543 if test x$gcc_no_link = xyes; then
25544 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25546 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25547 /* end confdefs.h. */
25549 /* Override any GCC internal prototype to avoid an error.
25550 Use char because int might match the return type of a GCC
25551 builtin and then its argument prototype would still apply. */
25552 #ifdef __cplusplus
25553 extern "C"
25554 #endif
25555 char __clog ();
25557 main ()
25559 return __clog ();
25561 return 0;
25563 _ACEOF
25564 if ac_fn_c_try_link "$LINENO"; then :
25565 ac_cv_lib_m___clog=yes
25566 else
25567 ac_cv_lib_m___clog=no
25569 rm -f core conftest.err conftest.$ac_objext \
25570 conftest$ac_exeext conftest.$ac_ext
25571 LIBS=$ac_check_lib_save_LIBS
25573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m___clog" >&5
25574 $as_echo "$ac_cv_lib_m___clog" >&6; }
25575 if test "x$ac_cv_lib_m___clog" = x""yes; then :
25577 $as_echo "#define HAVE_CLOG 1" >>confdefs.h
25582 # Check whether the system has a working stat()
25584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target stat is reliable" >&5
25585 $as_echo_n "checking whether the target stat is reliable... " >&6; }
25586 if test "${libgfor_cv_have_working_stat+set}" = set; then :
25587 $as_echo_n "(cached) " >&6
25588 else
25590 if test "$cross_compiling" = yes; then :
25592 case "${target}" in
25593 *mingw*) libgfor_cv_have_working_stat=no ;;
25594 *) libgfor_cv_have_working_stat=yes;;
25595 esac
25596 else
25597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25598 /* end confdefs.h. */
25600 #include <stdio.h>
25601 #include <sys/types.h>
25602 #include <sys/stat.h>
25603 #include <unistd.h>
25605 int main ()
25607 FILE *f, *g;
25608 struct stat st1, st2;
25610 f = fopen ("foo", "w");
25611 g = fopen ("bar", "w");
25612 if (stat ("foo", &st1) != 0 || stat ("bar", &st2))
25613 return 1;
25614 if (st1.st_dev == st2.st_dev && st1.st_ino == st2.st_ino)
25615 return 1;
25616 fclose(f);
25617 fclose(g);
25618 return 0;
25620 _ACEOF
25621 if ac_fn_c_try_run "$LINENO"; then :
25622 libgfor_cv_have_working_stat=yes
25623 else
25624 libgfor_cv_have_working_stat=no
25626 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25627 conftest.$ac_objext conftest.beam conftest.$ac_ext
25631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_working_stat" >&5
25632 $as_echo "$libgfor_cv_have_working_stat" >&6; }
25633 if test x"$libgfor_cv_have_working_stat" = xyes; then
25635 $as_echo "#define HAVE_WORKING_STAT 1" >>confdefs.h
25639 # Check whether __mingw_snprintf() is present
25641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __mingw_snprintf is present" >&5
25642 $as_echo_n "checking whether __mingw_snprintf is present... " >&6; }
25643 if test "${libgfor_cv_have_mingw_snprintf+set}" = set; then :
25644 $as_echo_n "(cached) " >&6
25645 else
25647 if test x$gcc_no_link = xyes; then
25648 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25651 /* end confdefs.h. */
25653 #include <stdio.h>
25654 extern int __mingw_snprintf (char *, size_t, const char *, ...);
25657 main ()
25660 __mingw_snprintf (NULL, 0, "%d\n", 1);
25663 return 0;
25665 _ACEOF
25666 if ac_fn_c_try_link "$LINENO"; then :
25667 eval "libgfor_cv_have_mingw_snprintf=yes"
25668 else
25669 eval "libgfor_cv_have_mingw_snprintf=no"
25671 rm -f core conftest.err conftest.$ac_objext \
25672 conftest$ac_exeext conftest.$ac_ext
25675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_mingw_snprintf" >&5
25676 $as_echo "$libgfor_cv_have_mingw_snprintf" >&6; }
25677 if test x"$libgfor_cv_have_mingw_snprintf" = xyes; then
25679 $as_echo "#define HAVE_MINGW_SNPRINTF 1" >>confdefs.h
25684 # Check whether libquadmath should be used
25685 # Check whether --enable-libquadmath-support was given.
25686 if test "${enable_libquadmath_support+set}" = set; then :
25687 enableval=$enable_libquadmath_support; ENABLE_LIBQUADMATH_SUPPORT=$enableval
25688 else
25689 ENABLE_LIBQUADMATH_SUPPORT=yes
25692 enable_libquadmath_support=
25693 if test "${ENABLE_LIBQUADMATH_SUPPORT}" = "no" ; then
25694 enable_libquadmath_support=no
25697 # Check whether we have a __float128 type, depends on enable_libquadmath_support
25699 LIBQUADSPEC=
25701 if test "x$enable_libquadmath_support" != xno; then
25703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have a usable __float128 type" >&5
25704 $as_echo_n "checking whether we have a usable __float128 type... " >&6; }
25705 if test "${libgfor_cv_have_float128+set}" = set; then :
25706 $as_echo_n "(cached) " >&6
25707 else
25709 if test x$gcc_no_link = xyes; then
25710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25711 /* end confdefs.h. */
25713 typedef _Complex float __attribute__((mode(TC))) __complex128;
25715 __float128 foo (__float128 x)
25718 __complex128 z1, z2;
25720 z1 = x;
25721 z2 = x / 7.Q;
25722 z2 /= z1;
25724 return (__float128) z2;
25727 __float128 bar (__float128 x)
25729 return x * __builtin_huge_valq ();
25733 main ()
25736 foo (1.2Q);
25737 bar (1.2Q);
25740 return 0;
25742 _ACEOF
25743 if ac_fn_c_try_compile "$LINENO"; then :
25745 libgfor_cv_have_float128=yes
25747 else
25749 libgfor_cv_have_float128=no
25752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25753 else
25754 if test x$gcc_no_link = xyes; then
25755 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25758 /* end confdefs.h. */
25760 typedef _Complex float __attribute__((mode(TC))) __complex128;
25762 __float128 foo (__float128 x)
25765 __complex128 z1, z2;
25767 z1 = x;
25768 z2 = x / 7.Q;
25769 z2 /= z1;
25771 return (__float128) z2;
25774 __float128 bar (__float128 x)
25776 return x * __builtin_huge_valq ();
25780 main ()
25783 foo (1.2Q);
25784 bar (1.2Q);
25787 return 0;
25789 _ACEOF
25790 if ac_fn_c_try_link "$LINENO"; then :
25792 libgfor_cv_have_float128=yes
25794 else
25796 libgfor_cv_have_float128=no
25799 rm -f core conftest.err conftest.$ac_objext \
25800 conftest$ac_exeext conftest.$ac_ext
25803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_float128" >&5
25804 $as_echo "$libgfor_cv_have_float128" >&6; }
25806 if test "x$libgfor_cv_have_float128" = xyes; then
25808 $as_echo "#define HAVE_FLOAT128 1" >>confdefs.h
25811 ac_xsave_c_werror_flag=$ac_c_werror_flag
25812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether --as-needed/-z ignore works" >&5
25813 $as_echo_n "checking whether --as-needed/-z ignore works... " >&6; }
25814 if test "${libgfor_cv_have_as_needed+set}" = set; then :
25815 $as_echo_n "(cached) " >&6
25816 else
25818 # Test for native Solaris options first.
25819 # No whitespace after -z to pass it through -Wl.
25820 libgfor_cv_as_needed_option="-zignore"
25821 libgfor_cv_no_as_needed_option="-zrecord"
25822 save_LDFLAGS="$LDFLAGS"
25823 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
25824 libgfor_cv_have_as_needed=no
25826 ac_c_werror_flag=yes
25827 if test x$gcc_no_link = xyes; then
25828 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25831 /* end confdefs.h. */
25834 main ()
25838 return 0;
25840 _ACEOF
25841 if ac_fn_c_try_link "$LINENO"; then :
25842 libgfor_cv_have_as_needed=yes
25843 else
25844 libgfor_cv_have_as_needed=no
25846 rm -f core conftest.err conftest.$ac_objext \
25847 conftest$ac_exeext conftest.$ac_ext
25848 LDFLAGS="$save_LDFLAGS"
25849 if test "x$libgfor_cv_have_as_needed" = xno; then
25850 libgfor_cv_as_needed_option="--as-needed"
25851 libgfor_cv_no_as_needed_option="--no-as-needed"
25852 save_LDFLAGS="$LDFLAGS"
25853 LDFLAGS="$LDFLAGS -Wl,$libgfor_cv_as_needed_option -lm -Wl,$libgfor_cv_no_as_needed_option"
25854 libgfor_cv_have_as_needed=no
25856 ac_c_werror_flag=yes
25857 if test x$gcc_no_link = xyes; then
25858 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25861 /* end confdefs.h. */
25864 main ()
25868 return 0;
25870 _ACEOF
25871 if ac_fn_c_try_link "$LINENO"; then :
25872 libgfor_cv_have_as_needed=yes
25873 else
25874 libgfor_cv_have_as_needed=no
25876 rm -f core conftest.err conftest.$ac_objext \
25877 conftest$ac_exeext conftest.$ac_ext
25878 LDFLAGS="$save_LDFLAGS"
25880 ac_c_werror_flag=$ac_xsave_c_werror_flag
25883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_as_needed" >&5
25884 $as_echo "$libgfor_cv_have_as_needed" >&6; }
25886 if test "x$libgfor_cv_have_as_needed" = xyes; then
25887 LIBQUADSPEC="%{static-libgfortran:$libgfor_cv_as_needed_option} -lquadmath %{static-libgfortran:$libgfor_cv_no_as_needed_option}"
25888 else
25889 LIBQUADSPEC="-lquadmath"
25891 if test -f ../libquadmath/libquadmath.la; then
25892 LIBQUADLIB=../libquadmath/libquadmath.la
25893 LIBQUADLIB_DEP=../libquadmath/libquadmath.la
25894 LIBQUADINCLUDE='-I$(srcdir)/../libquadmath'
25895 else
25896 LIBQUADLIB="-lquadmath"
25897 LIBQUADLIB_DEP=
25898 LIBQUADINCLUDE=
25901 else
25902 # for --disable-quadmath
25903 LIBQUADLIB=
25904 LIBQUADLIB_DEP=
25905 LIBQUADINCLUDE=
25913 if test "x$libgfor_cv_have_float128" = xyes; then
25914 LIBGFOR_BUILD_QUAD_TRUE=
25915 LIBGFOR_BUILD_QUAD_FALSE='#'
25916 else
25917 LIBGFOR_BUILD_QUAD_TRUE='#'
25918 LIBGFOR_BUILD_QUAD_FALSE=
25923 # Check for GNU libc feenableexcept
25924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for feenableexcept in -lm" >&5
25925 $as_echo_n "checking for feenableexcept in -lm... " >&6; }
25926 if test "${ac_cv_lib_m_feenableexcept+set}" = set; then :
25927 $as_echo_n "(cached) " >&6
25928 else
25929 ac_check_lib_save_LIBS=$LIBS
25930 LIBS="-lm $LIBS"
25931 if test x$gcc_no_link = xyes; then
25932 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25934 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25935 /* end confdefs.h. */
25937 /* Override any GCC internal prototype to avoid an error.
25938 Use char because int might match the return type of a GCC
25939 builtin and then its argument prototype would still apply. */
25940 #ifdef __cplusplus
25941 extern "C"
25942 #endif
25943 char feenableexcept ();
25945 main ()
25947 return feenableexcept ();
25949 return 0;
25951 _ACEOF
25952 if ac_fn_c_try_link "$LINENO"; then :
25953 ac_cv_lib_m_feenableexcept=yes
25954 else
25955 ac_cv_lib_m_feenableexcept=no
25957 rm -f core conftest.err conftest.$ac_objext \
25958 conftest$ac_exeext conftest.$ac_ext
25959 LIBS=$ac_check_lib_save_LIBS
25961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_feenableexcept" >&5
25962 $as_echo "$ac_cv_lib_m_feenableexcept" >&6; }
25963 if test "x$ac_cv_lib_m_feenableexcept" = x""yes; then :
25964 have_feenableexcept=yes
25965 $as_echo "#define HAVE_FEENABLEEXCEPT 1" >>confdefs.h
25970 # At least for glibc, clock_gettime is in librt. But don't
25971 # pull that in if it still doesn't give us the function we want. This
25972 # test is copied from libgomp, and modified to not link in -lrt as
25973 # libgfortran calls clock_gettime via a weak reference if it's found
25974 # in librt.
25975 if test "$ac_cv_func_clock_gettime" = no; then
25976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
25977 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
25978 if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then :
25979 $as_echo_n "(cached) " >&6
25980 else
25981 ac_check_lib_save_LIBS=$LIBS
25982 LIBS="-lrt $LIBS"
25983 if test x$gcc_no_link = xyes; then
25984 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
25986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25987 /* end confdefs.h. */
25989 /* Override any GCC internal prototype to avoid an error.
25990 Use char because int might match the return type of a GCC
25991 builtin and then its argument prototype would still apply. */
25992 #ifdef __cplusplus
25993 extern "C"
25994 #endif
25995 char clock_gettime ();
25997 main ()
25999 return clock_gettime ();
26001 return 0;
26003 _ACEOF
26004 if ac_fn_c_try_link "$LINENO"; then :
26005 ac_cv_lib_rt_clock_gettime=yes
26006 else
26007 ac_cv_lib_rt_clock_gettime=no
26009 rm -f core conftest.err conftest.$ac_objext \
26010 conftest$ac_exeext conftest.$ac_ext
26011 LIBS=$ac_check_lib_save_LIBS
26013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
26014 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
26015 if test "x$ac_cv_lib_rt_clock_gettime" = x""yes; then :
26017 $as_echo "#define HAVE_CLOCK_GETTIME_LIBRT 1" >>confdefs.h
26023 # Check for SysV fpsetmask
26025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fpsetmask is present" >&5
26026 $as_echo_n "checking whether fpsetmask is present... " >&6; }
26027 if test "${libgfor_cv_have_fpsetmask+set}" = set; then :
26028 $as_echo_n "(cached) " >&6
26029 else
26031 if test x$gcc_no_link = xyes; then
26032 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26034 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26035 /* end confdefs.h. */
26037 #if HAVE_FLOATINGPOINT_H
26038 # include <floatingpoint.h>
26039 #endif /* HAVE_FLOATINGPOINT_H */
26040 #if HAVE_IEEEFP_H
26041 # include <ieeefp.h>
26042 #endif /* HAVE_IEEEFP_H */
26044 main ()
26046 fpsetmask(0);
26048 return 0;
26050 _ACEOF
26051 if ac_fn_c_try_link "$LINENO"; then :
26052 eval "libgfor_cv_have_fpsetmask=yes"
26053 else
26054 eval "libgfor_cv_have_fpsetmask=no"
26056 rm -f core conftest.err conftest.$ac_objext \
26057 conftest$ac_exeext conftest.$ac_ext
26060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_fpsetmask" >&5
26061 $as_echo "$libgfor_cv_have_fpsetmask" >&6; }
26062 if test x"$libgfor_cv_have_fpsetmask" = xyes; then
26063 have_fpsetmask=yes
26065 $as_echo "#define HAVE_FPSETMASK 1" >>confdefs.h
26069 ac_fn_c_check_type "$LINENO" "fp_except" "ac_cv_type_fp_except" "
26070 #include <ieeefp.h>
26071 #include <math.h>
26074 if test "x$ac_cv_type_fp_except" = x""yes; then :
26076 cat >>confdefs.h <<_ACEOF
26077 #define HAVE_FP_EXCEPT 1
26078 _ACEOF
26082 ac_fn_c_check_type "$LINENO" "fp_except_t" "ac_cv_type_fp_except_t" "
26083 #include <ieeefp.h>
26084 #include <math.h>
26087 if test "x$ac_cv_type_fp_except_t" = x""yes; then :
26089 cat >>confdefs.h <<_ACEOF
26090 #define HAVE_FP_EXCEPT_T 1
26091 _ACEOF
26096 ac_fn_c_check_type "$LINENO" "fp_rnd" "ac_cv_type_fp_rnd" "
26097 #include <ieeefp.h>
26098 #include <math.h>
26101 if test "x$ac_cv_type_fp_rnd" = x""yes; then :
26103 cat >>confdefs.h <<_ACEOF
26104 #define HAVE_FP_RND 1
26105 _ACEOF
26109 ac_fn_c_check_type "$LINENO" "fp_rnd_t" "ac_cv_type_fp_rnd_t" "
26110 #include <ieeefp.h>
26111 #include <math.h>
26114 if test "x$ac_cv_type_fp_rnd_t" = x""yes; then :
26116 cat >>confdefs.h <<_ACEOF
26117 #define HAVE_FP_RND_T 1
26118 _ACEOF
26124 # Check whether we have fpsetsticky or fpresetsticky
26125 ac_fn_c_check_func "$LINENO" "fpsetsticky" "ac_cv_func_fpsetsticky"
26126 if test "x$ac_cv_func_fpsetsticky" = x""yes; then :
26127 have_fpsetsticky=yes
26128 $as_echo "#define HAVE_FPSETSTICKY 1" >>confdefs.h
26132 ac_fn_c_check_func "$LINENO" "fpresetsticky" "ac_cv_func_fpresetsticky"
26133 if test "x$ac_cv_func_fpresetsticky" = x""yes; then :
26134 have_fpresetsticky=yes
26135 $as_echo "#define HAVE_FPRESETSTICKY 1" >>confdefs.h
26140 # Check for AIX fp_trap and fp_enable
26141 ac_fn_c_check_func "$LINENO" "fp_trap" "ac_cv_func_fp_trap"
26142 if test "x$ac_cv_func_fp_trap" = x""yes; then :
26143 have_fp_trap=yes
26144 $as_echo "#define HAVE_FP_TRAP 1" >>confdefs.h
26148 ac_fn_c_check_func "$LINENO" "fp_enable" "ac_cv_func_fp_enable"
26149 if test "x$ac_cv_func_fp_enable" = x""yes; then :
26150 have_fp_enable=yes
26151 $as_echo "#define HAVE_FP_ENABLE 1" >>confdefs.h
26156 # Runs configure.host to set up necessary host-dependent shell variables.
26157 # We then display a message about it, and propagate them through the
26158 # build chain.
26159 . ${srcdir}/configure.host
26160 { $as_echo "$as_me:${as_lineno-$LINENO}: FPU dependent file will be ${fpu_host}.h" >&5
26161 $as_echo "$as_me: FPU dependent file will be ${fpu_host}.h" >&6;}
26162 { $as_echo "$as_me:${as_lineno-$LINENO}: Support for IEEE modules: ${ieee_support}" >&5
26163 $as_echo "$as_me: Support for IEEE modules: ${ieee_support}" >&6;}
26164 FPU_HOST_HEADER=config/${fpu_host}.h
26167 # Whether we will build the IEEE modules
26168 if test x${ieee_support} = xyes; then
26169 IEEE_SUPPORT_TRUE=
26170 IEEE_SUPPORT_FALSE='#'
26171 else
26172 IEEE_SUPPORT_TRUE='#'
26173 IEEE_SUPPORT_FALSE=
26178 # Some targets require additional compiler options for IEEE compatibility.
26179 IEEE_FLAGS="${ieee_flags}"
26183 # Check for POSIX getpwuid_r
26185 # There are two versions of getpwuid_r, the POSIX one with 5
26186 # arguments, and another one with 4 arguments used by at least HP-UX
26187 # 10.2.
26188 if test "$ac_cv_func_getpwuid_r" = "yes"; then
26189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking POSIX version of getpwuid_r with 5 arguments" >&5
26190 $as_echo_n "checking POSIX version of getpwuid_r with 5 arguments... " >&6; }
26191 if test "${libgfor_cv_posix_getpwuid_r+set}" = set; then :
26192 $as_echo_n "(cached) " >&6
26193 else
26195 if test x$gcc_no_link = xyes; then
26196 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26199 /* end confdefs.h. */
26201 #include <stdio.h>
26202 #include <sys/types.h>
26203 #include <pwd.h>
26205 main ()
26208 getpwuid_r(0, NULL, NULL, 0, NULL);
26211 return 0;
26213 _ACEOF
26214 if ac_fn_c_try_link "$LINENO"; then :
26215 libgfor_cv_posix_getpwuid_r="yes"
26216 else
26217 libgfor_cv_posix_getpwuid_r="no"
26219 rm -f core conftest.err conftest.$ac_objext \
26220 conftest$ac_exeext conftest.$ac_ext
26222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_posix_getpwuid_r" >&5
26223 $as_echo "$libgfor_cv_posix_getpwuid_r" >&6; }
26225 if test "$libgfor_cv_posix_getpwuid_r" = "yes"; then
26227 $as_echo "#define HAVE_POSIX_GETPWUID_R 1" >>confdefs.h
26232 # Check out attribute support.
26234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports hidden visibility" >&5
26235 $as_echo_n "checking whether the target supports hidden visibility... " >&6; }
26236 if test "${libgfor_cv_have_attribute_visibility+set}" = set; then :
26237 $as_echo_n "(cached) " >&6
26238 else
26240 save_CFLAGS="$CFLAGS"
26241 CFLAGS="$CFLAGS -Werror"
26242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26243 /* end confdefs.h. */
26244 void __attribute__((visibility("hidden"))) foo(void) { }
26246 main ()
26250 return 0;
26252 _ACEOF
26253 if ac_fn_c_try_compile "$LINENO"; then :
26254 libgfor_cv_have_attribute_visibility=yes
26255 else
26256 libgfor_cv_have_attribute_visibility=no
26258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26259 CFLAGS="$save_CFLAGS"
26261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_visibility" >&5
26262 $as_echo "$libgfor_cv_have_attribute_visibility" >&6; }
26263 if test $libgfor_cv_have_attribute_visibility = yes; then
26265 $as_echo "#define HAVE_ATTRIBUTE_VISIBILITY 1" >>confdefs.h
26269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports dllexport" >&5
26270 $as_echo_n "checking whether the target supports dllexport... " >&6; }
26271 if test "${libgfor_cv_have_attribute_dllexport+set}" = set; then :
26272 $as_echo_n "(cached) " >&6
26273 else
26275 save_CFLAGS="$CFLAGS"
26276 CFLAGS="$CFLAGS -Werror"
26277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26278 /* end confdefs.h. */
26279 void __attribute__((dllexport)) foo(void) { }
26281 main ()
26285 return 0;
26287 _ACEOF
26288 if ac_fn_c_try_compile "$LINENO"; then :
26289 libgfor_cv_have_attribute_dllexport=yes
26290 else
26291 libgfor_cv_have_attribute_dllexport=no
26293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26294 CFLAGS="$save_CFLAGS"
26296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_dllexport" >&5
26297 $as_echo "$libgfor_cv_have_attribute_dllexport" >&6; }
26298 if test $libgfor_cv_have_attribute_dllexport = yes; then
26300 $as_echo "#define HAVE_ATTRIBUTE_DLLEXPORT 1" >>confdefs.h
26304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports symbol aliases" >&5
26305 $as_echo_n "checking whether the target supports symbol aliases... " >&6; }
26306 if test "${libgfor_cv_have_attribute_alias+set}" = set; then :
26307 $as_echo_n "(cached) " >&6
26308 else
26310 if test x$gcc_no_link = xyes; then
26311 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26314 /* end confdefs.h. */
26316 void foo(void) { }
26317 extern void bar(void) __attribute__((alias("foo")));
26319 main ()
26321 bar();
26323 return 0;
26325 _ACEOF
26326 if ac_fn_c_try_link "$LINENO"; then :
26327 libgfor_cv_have_attribute_alias=yes
26328 else
26329 libgfor_cv_have_attribute_alias=no
26331 rm -f core conftest.err conftest.$ac_objext \
26332 conftest$ac_exeext conftest.$ac_ext
26334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_attribute_alias" >&5
26335 $as_echo "$libgfor_cv_have_attribute_alias" >&6; }
26336 if test $libgfor_cv_have_attribute_alias = yes; then
26338 $as_echo "#define HAVE_ATTRIBUTE_ALIAS 1" >>confdefs.h
26342 # Check out sync builtins support.
26344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target supports __sync_fetch_and_add" >&5
26345 $as_echo_n "checking whether the target supports __sync_fetch_and_add... " >&6; }
26346 if test "${libgfor_cv_have_sync_fetch_and_add+set}" = set; then :
26347 $as_echo_n "(cached) " >&6
26348 else
26350 if test x$gcc_no_link = xyes; then
26351 as_fn_error "Link tests are not allowed after GCC_NO_EXECUTABLES." "$LINENO" 5
26353 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26354 /* end confdefs.h. */
26355 int foovar = 0;
26357 main ()
26360 if (foovar <= 0) return __sync_fetch_and_add (&foovar, 1);
26361 if (foovar > 10) return __sync_add_and_fetch (&foovar, -1);
26363 return 0;
26365 _ACEOF
26366 if ac_fn_c_try_link "$LINENO"; then :
26367 libgfor_cv_have_sync_fetch_and_add=yes
26368 else
26369 libgfor_cv_have_sync_fetch_and_add=no
26371 rm -f core conftest.err conftest.$ac_objext \
26372 conftest$ac_exeext conftest.$ac_ext
26374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_sync_fetch_and_add" >&5
26375 $as_echo "$libgfor_cv_have_sync_fetch_and_add" >&6; }
26376 if test $libgfor_cv_have_sync_fetch_and_add = yes; then
26378 $as_echo "#define HAVE_SYNC_FETCH_AND_ADD 1" >>confdefs.h
26382 # Check out #pragma weak.
26384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pragma weak works" >&5
26385 $as_echo_n "checking whether pragma weak works... " >&6; }
26386 if test "${libgfor_cv_have_pragma_weak+set}" = set; then :
26387 $as_echo_n "(cached) " >&6
26388 else
26390 gfor_save_CFLAGS="$CFLAGS"
26391 CFLAGS="$CFLAGS -Wunknown-pragmas"
26392 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26393 /* end confdefs.h. */
26395 void foo (void);
26396 #pragma weak foo
26399 main ()
26401 if (foo) foo ();
26403 return 0;
26405 _ACEOF
26406 if ac_fn_c_try_compile "$LINENO"; then :
26407 libgfor_cv_have_pragma_weak=yes
26408 else
26409 libgfor_cv_have_pragma_weak=no
26411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
26413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_pragma_weak" >&5
26414 $as_echo "$libgfor_cv_have_pragma_weak" >&6; }
26415 if test $libgfor_cv_have_pragma_weak = yes; then
26417 $as_echo "#define SUPPORTS_WEAK 1" >>confdefs.h
26420 case "$host" in
26421 *-*-darwin* | *-*-hpux* | *-*-cygwin* | *-*-mingw* )
26423 $as_echo "#define GTHREAD_USE_WEAK 0" >>confdefs.h
26426 esac
26428 # Various other checks on target
26430 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target can unlink an open file" >&5
26431 $as_echo_n "checking whether the target can unlink an open file... " >&6; }
26432 if test "${libgfor_cv_have_unlink_open_file+set}" = set; then :
26433 $as_echo_n "(cached) " >&6
26434 else
26436 if test "$cross_compiling" = yes; then :
26438 case "${target}" in
26439 *mingw*) libgfor_cv_have_unlink_open_file=no ;;
26440 *) libgfor_cv_have_unlink_open_file=yes;;
26441 esac
26442 else
26443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26444 /* end confdefs.h. */
26446 #include <errno.h>
26447 #include <fcntl.h>
26448 #include <unistd.h>
26449 #include <sys/stat.h>
26451 int main ()
26453 int fd;
26455 fd = open ("testfile", O_RDWR | O_CREAT, S_IWUSR | S_IRUSR);
26456 if (fd <= 0)
26457 return 0;
26458 if (unlink ("testfile") == -1)
26459 return 1;
26460 write (fd, "This is a test\n", 15);
26461 close (fd);
26463 if (open ("testfile", O_RDONLY) == -1 && errno == ENOENT)
26464 return 0;
26465 else
26466 return 1;
26468 _ACEOF
26469 if ac_fn_c_try_run "$LINENO"; then :
26470 libgfor_cv_have_unlink_open_file=yes
26471 else
26472 libgfor_cv_have_unlink_open_file=no
26474 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26475 conftest.$ac_objext conftest.beam conftest.$ac_ext
26479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_unlink_open_file" >&5
26480 $as_echo "$libgfor_cv_have_unlink_open_file" >&6; }
26481 if test x"$libgfor_cv_have_unlink_open_file" = xyes; then
26483 $as_echo "#define HAVE_UNLINK_OPEN_FILE 1" >>confdefs.h
26487 # Check whether line terminator is LF or CRLF
26489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the target has CRLF as line terminator" >&5
26490 $as_echo_n "checking whether the target has CRLF as line terminator... " >&6; }
26491 if test "${libgfor_cv_have_crlf+set}" = set; then :
26492 $as_echo_n "(cached) " >&6
26493 else
26495 if test "$cross_compiling" = yes; then :
26497 case "${target}" in
26498 *mingw*) libgfor_cv_have_crlf=yes ;;
26499 *) libgfor_cv_have_crlf=no;;
26500 esac
26501 else
26502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26503 /* end confdefs.h. */
26505 /* This test program should exit with status 0 if system uses a CRLF as
26506 line terminator, and status 1 otherwise.
26507 Since it is used to check for mingw systems, and should return 0 in any
26508 other case, in case of a failure we will not use CRLF. */
26509 #include <sys/stat.h>
26510 #include <stdlib.h>
26511 #include <fcntl.h>
26512 #include <stdio.h>
26514 int main ()
26516 #ifndef O_BINARY
26517 exit(1);
26518 #else
26519 int fd, bytes;
26520 char buff[5];
26522 fd = open ("foo", O_WRONLY | O_CREAT | O_TRUNC, S_IRWXU);
26523 if (fd < 0)
26524 exit(1);
26525 if (write (fd, "\n", 1) < 0)
26526 perror ("write");
26528 close (fd);
26530 if ((fd = open ("foo", O_RDONLY | O_BINARY, S_IRWXU)) < 0)
26531 exit(1);
26532 bytes = read (fd, buff, 5);
26533 if (bytes == 2 && buff[0] == '\r' && buff[1] == '\n')
26534 exit(0);
26535 else
26536 exit(1);
26537 #endif
26539 _ACEOF
26540 if ac_fn_c_try_run "$LINENO"; then :
26541 libgfor_cv_have_crlf=yes
26542 else
26543 libgfor_cv_have_crlf=no
26545 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
26546 conftest.$ac_objext conftest.beam conftest.$ac_ext
26550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libgfor_cv_have_crlf" >&5
26551 $as_echo "$libgfor_cv_have_crlf" >&6; }
26552 if test x"$libgfor_cv_have_crlf" = xyes; then
26554 $as_echo "#define HAVE_CRLF 1" >>confdefs.h
26558 # Check whether we have _Unwind_GetIPInfo for backtrace
26561 # Check whether --with-system-libunwind was given.
26562 if test "${with_system_libunwind+set}" = set; then :
26563 withval=$with_system_libunwind;
26566 # If system-libunwind was not specifically set, pick a default setting.
26567 if test x$with_system_libunwind = x; then
26568 case ${target} in
26569 ia64-*-hpux*) with_system_libunwind=yes ;;
26570 *) with_system_libunwind=no ;;
26571 esac
26573 # Based on system-libunwind and target, do we have ipinfo?
26574 if test x$with_system_libunwind = xyes; then
26575 case ${target} in
26576 ia64-*-*) have_unwind_getipinfo=no ;;
26577 *) have_unwind_getipinfo=yes ;;
26578 esac
26579 else
26580 # Darwin before version 9 does not have _Unwind_GetIPInfo.
26582 case ${target} in
26583 *-*-darwin[3-8]|*-*-darwin[3-8].*) have_unwind_getipinfo=no ;;
26584 *) have_unwind_getipinfo=yes ;;
26585 esac
26589 if test x$have_unwind_getipinfo = xyes; then
26591 $as_echo "#define HAVE_GETIPINFO 1" >>confdefs.h
26596 cat >confcache <<\_ACEOF
26597 # This file is a shell script that caches the results of configure
26598 # tests run on this system so they can be shared between configure
26599 # scripts and configure runs, see configure's option --config-cache.
26600 # It is not useful on other systems. If it contains results you don't
26601 # want to keep, you may remove or edit it.
26603 # config.status only pays attention to the cache file if you give it
26604 # the --recheck option to rerun configure.
26606 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26607 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26608 # following values.
26610 _ACEOF
26612 # The following way of writing the cache mishandles newlines in values,
26613 # but we know of no workaround that is simple, portable, and efficient.
26614 # So, we kill variables containing newlines.
26615 # Ultrix sh set writes to stderr and can't be redirected directly,
26616 # and sets the high bit in the cache file unless we assign to the vars.
26618 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26619 eval ac_val=\$$ac_var
26620 case $ac_val in #(
26621 *${as_nl}*)
26622 case $ac_var in #(
26623 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26624 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26625 esac
26626 case $ac_var in #(
26627 _ | IFS | as_nl) ;; #(
26628 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26629 *) { eval $ac_var=; unset $ac_var;} ;;
26630 esac ;;
26631 esac
26632 done
26634 (set) 2>&1 |
26635 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26636 *${as_nl}ac_space=\ *)
26637 # `set' does not quote correctly, so add quotes: double-quote
26638 # substitution turns \\\\ into \\, and sed turns \\ into \.
26639 sed -n \
26640 "s/'/'\\\\''/g;
26641 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26642 ;; #(
26644 # `set' quotes correctly as required by POSIX, so do not add quotes.
26645 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26647 esac |
26648 sort
26650 sed '
26651 /^ac_cv_env_/b end
26652 t clear
26653 :clear
26654 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26655 t end
26656 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26657 :end' >>confcache
26658 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26659 if test -w "$cache_file"; then
26660 test "x$cache_file" != "x/dev/null" &&
26661 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26662 $as_echo "$as_me: updating cache $cache_file" >&6;}
26663 cat confcache >$cache_file
26664 else
26665 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26666 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26669 rm -f confcache
26671 if test ${multilib} = yes; then
26672 multilib_arg="--enable-multilib"
26673 else
26674 multilib_arg=
26677 # Write our Makefile and spec file.
26678 ac_config_files="$ac_config_files Makefile libgfortran.spec"
26680 cat >confcache <<\_ACEOF
26681 # This file is a shell script that caches the results of configure
26682 # tests run on this system so they can be shared between configure
26683 # scripts and configure runs, see configure's option --config-cache.
26684 # It is not useful on other systems. If it contains results you don't
26685 # want to keep, you may remove or edit it.
26687 # config.status only pays attention to the cache file if you give it
26688 # the --recheck option to rerun configure.
26690 # `ac_cv_env_foo' variables (set or unset) will be overridden when
26691 # loading this file, other *unset* `ac_cv_foo' will be assigned the
26692 # following values.
26694 _ACEOF
26696 # The following way of writing the cache mishandles newlines in values,
26697 # but we know of no workaround that is simple, portable, and efficient.
26698 # So, we kill variables containing newlines.
26699 # Ultrix sh set writes to stderr and can't be redirected directly,
26700 # and sets the high bit in the cache file unless we assign to the vars.
26702 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
26703 eval ac_val=\$$ac_var
26704 case $ac_val in #(
26705 *${as_nl}*)
26706 case $ac_var in #(
26707 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
26708 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
26709 esac
26710 case $ac_var in #(
26711 _ | IFS | as_nl) ;; #(
26712 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
26713 *) { eval $ac_var=; unset $ac_var;} ;;
26714 esac ;;
26715 esac
26716 done
26718 (set) 2>&1 |
26719 case $as_nl`(ac_space=' '; set) 2>&1` in #(
26720 *${as_nl}ac_space=\ *)
26721 # `set' does not quote correctly, so add quotes: double-quote
26722 # substitution turns \\\\ into \\, and sed turns \\ into \.
26723 sed -n \
26724 "s/'/'\\\\''/g;
26725 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
26726 ;; #(
26728 # `set' quotes correctly as required by POSIX, so do not add quotes.
26729 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
26731 esac |
26732 sort
26734 sed '
26735 /^ac_cv_env_/b end
26736 t clear
26737 :clear
26738 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26739 t end
26740 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26741 :end' >>confcache
26742 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26743 if test -w "$cache_file"; then
26744 test "x$cache_file" != "x/dev/null" &&
26745 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
26746 $as_echo "$as_me: updating cache $cache_file" >&6;}
26747 cat confcache >$cache_file
26748 else
26749 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
26750 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26753 rm -f confcache
26755 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26756 # Let make expand exec_prefix.
26757 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26759 DEFS=-DHAVE_CONFIG_H
26761 ac_libobjs=
26762 ac_ltlibobjs=
26763 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26764 # 1. Remove the extension, and $U if already installed.
26765 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26766 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
26767 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26768 # will be set to the directory where LIBOBJS objects are built.
26769 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26770 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
26771 done
26772 LIBOBJS=$ac_libobjs
26774 LTLIBOBJS=$ac_ltlibobjs
26777 if test -z "${onestep_TRUE}" && test -z "${onestep_FALSE}"; then
26778 as_fn_error "conditional \"onestep\" was never defined.
26779 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26781 if test -n "$EXEEXT"; then
26782 am__EXEEXT_TRUE=
26783 am__EXEEXT_FALSE='#'
26784 else
26785 am__EXEEXT_TRUE='#'
26786 am__EXEEXT_FALSE=
26789 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
26790 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
26791 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26793 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
26794 as_fn_error "conditional \"AMDEP\" was never defined.
26795 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26797 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26798 as_fn_error "conditional \"am__fastdepCC\" was never defined.
26799 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26801 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
26802 as_fn_error "conditional \"am__fastdepCC\" was never defined.
26803 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26805 if test -z "${LIBGFOR_USE_SYMVER_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_FALSE}"; then
26806 as_fn_error "conditional \"LIBGFOR_USE_SYMVER\" was never defined.
26807 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26809 if test -z "${LIBGFOR_USE_SYMVER_GNU_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_GNU_FALSE}"; then
26810 as_fn_error "conditional \"LIBGFOR_USE_SYMVER_GNU\" was never defined.
26811 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26813 if test -z "${LIBGFOR_USE_SYMVER_SUN_TRUE}" && test -z "${LIBGFOR_USE_SYMVER_SUN_FALSE}"; then
26814 as_fn_error "conditional \"LIBGFOR_USE_SYMVER_SUN\" was never defined.
26815 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26817 if test -z "${LIBGFOR_BUILD_QUAD_TRUE}" && test -z "${LIBGFOR_BUILD_QUAD_FALSE}"; then
26818 as_fn_error "conditional \"LIBGFOR_BUILD_QUAD\" was never defined.
26819 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26821 if test -z "${IEEE_SUPPORT_TRUE}" && test -z "${IEEE_SUPPORT_FALSE}"; then
26822 as_fn_error "conditional \"IEEE_SUPPORT\" was never defined.
26823 Usually this means the macro was only invoked conditionally." "$LINENO" 5
26826 : ${CONFIG_STATUS=./config.status}
26827 ac_write_fail=0
26828 ac_clean_files_save=$ac_clean_files
26829 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26830 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
26831 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
26832 as_write_fail=0
26833 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
26834 #! $SHELL
26835 # Generated by $as_me.
26836 # Run this file to recreate the current configuration.
26837 # Compiler output produced by configure, useful for debugging
26838 # configure, is in config.log if it exists.
26840 debug=false
26841 ac_cs_recheck=false
26842 ac_cs_silent=false
26844 SHELL=\${CONFIG_SHELL-$SHELL}
26845 export SHELL
26846 _ASEOF
26847 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
26848 ## -------------------- ##
26849 ## M4sh Initialization. ##
26850 ## -------------------- ##
26852 # Be more Bourne compatible
26853 DUALCASE=1; export DUALCASE # for MKS sh
26854 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
26855 emulate sh
26856 NULLCMD=:
26857 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
26858 # is contrary to our usage. Disable this feature.
26859 alias -g '${1+"$@"}'='"$@"'
26860 setopt NO_GLOB_SUBST
26861 else
26862 case `(set -o) 2>/dev/null` in #(
26863 *posix*) :
26864 set -o posix ;; #(
26865 *) :
26867 esac
26871 as_nl='
26873 export as_nl
26874 # Printing a long string crashes Solaris 7 /usr/bin/printf.
26875 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
26876 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
26877 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
26878 # Prefer a ksh shell builtin over an external printf program on Solaris,
26879 # but without wasting forks for bash or zsh.
26880 if test -z "$BASH_VERSION$ZSH_VERSION" \
26881 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
26882 as_echo='print -r --'
26883 as_echo_n='print -rn --'
26884 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
26885 as_echo='printf %s\n'
26886 as_echo_n='printf %s'
26887 else
26888 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
26889 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
26890 as_echo_n='/usr/ucb/echo -n'
26891 else
26892 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
26893 as_echo_n_body='eval
26894 arg=$1;
26895 case $arg in #(
26896 *"$as_nl"*)
26897 expr "X$arg" : "X\\(.*\\)$as_nl";
26898 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
26899 esac;
26900 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
26902 export as_echo_n_body
26903 as_echo_n='sh -c $as_echo_n_body as_echo'
26905 export as_echo_body
26906 as_echo='sh -c $as_echo_body as_echo'
26909 # The user is always right.
26910 if test "${PATH_SEPARATOR+set}" != set; then
26911 PATH_SEPARATOR=:
26912 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
26913 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
26914 PATH_SEPARATOR=';'
26919 # IFS
26920 # We need space, tab and new line, in precisely that order. Quoting is
26921 # there to prevent editors from complaining about space-tab.
26922 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26923 # splitting by setting IFS to empty value.)
26924 IFS=" "" $as_nl"
26926 # Find who we are. Look in the path if we contain no directory separator.
26927 case $0 in #((
26928 *[\\/]* ) as_myself=$0 ;;
26929 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26930 for as_dir in $PATH
26932 IFS=$as_save_IFS
26933 test -z "$as_dir" && as_dir=.
26934 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26935 done
26936 IFS=$as_save_IFS
26939 esac
26940 # We did not find ourselves, most probably we were run as `sh COMMAND'
26941 # in which case we are not to be found in the path.
26942 if test "x$as_myself" = x; then
26943 as_myself=$0
26945 if test ! -f "$as_myself"; then
26946 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26947 exit 1
26950 # Unset variables that we do not need and which cause bugs (e.g. in
26951 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
26952 # suppresses any "Segmentation fault" message there. '((' could
26953 # trigger a bug in pdksh 5.2.14.
26954 for as_var in BASH_ENV ENV MAIL MAILPATH
26955 do eval test x\${$as_var+set} = xset \
26956 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
26957 done
26958 PS1='$ '
26959 PS2='> '
26960 PS4='+ '
26962 # NLS nuisances.
26963 LC_ALL=C
26964 export LC_ALL
26965 LANGUAGE=C
26966 export LANGUAGE
26968 # CDPATH.
26969 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
26972 # as_fn_error ERROR [LINENO LOG_FD]
26973 # ---------------------------------
26974 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
26975 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
26976 # script with status $?, using 1 if that was 0.
26977 as_fn_error ()
26979 as_status=$?; test $as_status -eq 0 && as_status=1
26980 if test "$3"; then
26981 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
26982 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
26984 $as_echo "$as_me: error: $1" >&2
26985 as_fn_exit $as_status
26986 } # as_fn_error
26989 # as_fn_set_status STATUS
26990 # -----------------------
26991 # Set $? to STATUS, without forking.
26992 as_fn_set_status ()
26994 return $1
26995 } # as_fn_set_status
26997 # as_fn_exit STATUS
26998 # -----------------
26999 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
27000 as_fn_exit ()
27002 set +e
27003 as_fn_set_status $1
27004 exit $1
27005 } # as_fn_exit
27007 # as_fn_unset VAR
27008 # ---------------
27009 # Portably unset VAR.
27010 as_fn_unset ()
27012 { eval $1=; unset $1;}
27014 as_unset=as_fn_unset
27015 # as_fn_append VAR VALUE
27016 # ----------------------
27017 # Append the text in VALUE to the end of the definition contained in VAR. Take
27018 # advantage of any shell optimizations that allow amortized linear growth over
27019 # repeated appends, instead of the typical quadratic growth present in naive
27020 # implementations.
27021 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
27022 eval 'as_fn_append ()
27024 eval $1+=\$2
27026 else
27027 as_fn_append ()
27029 eval $1=\$$1\$2
27031 fi # as_fn_append
27033 # as_fn_arith ARG...
27034 # ------------------
27035 # Perform arithmetic evaluation on the ARGs, and store the result in the
27036 # global $as_val. Take advantage of shells that can avoid forks. The arguments
27037 # must be portable across $(()) and expr.
27038 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
27039 eval 'as_fn_arith ()
27041 as_val=$(( $* ))
27043 else
27044 as_fn_arith ()
27046 as_val=`expr "$@" || test $? -eq 1`
27048 fi # as_fn_arith
27051 if expr a : '\(a\)' >/dev/null 2>&1 &&
27052 test "X`expr 00001 : '.*\(...\)'`" = X001; then
27053 as_expr=expr
27054 else
27055 as_expr=false
27058 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
27059 as_basename=basename
27060 else
27061 as_basename=false
27064 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
27065 as_dirname=dirname
27066 else
27067 as_dirname=false
27070 as_me=`$as_basename -- "$0" ||
27071 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
27072 X"$0" : 'X\(//\)$' \| \
27073 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
27074 $as_echo X/"$0" |
27075 sed '/^.*\/\([^/][^/]*\)\/*$/{
27076 s//\1/
27079 /^X\/\(\/\/\)$/{
27080 s//\1/
27083 /^X\/\(\/\).*/{
27084 s//\1/
27087 s/.*/./; q'`
27089 # Avoid depending upon Character Ranges.
27090 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
27091 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
27092 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
27093 as_cr_digits='0123456789'
27094 as_cr_alnum=$as_cr_Letters$as_cr_digits
27096 ECHO_C= ECHO_N= ECHO_T=
27097 case `echo -n x` in #(((((
27098 -n*)
27099 case `echo 'xy\c'` in
27100 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
27101 xy) ECHO_C='\c';;
27102 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
27103 ECHO_T=' ';;
27104 esac;;
27106 ECHO_N='-n';;
27107 esac
27109 rm -f conf$$ conf$$.exe conf$$.file
27110 if test -d conf$$.dir; then
27111 rm -f conf$$.dir/conf$$.file
27112 else
27113 rm -f conf$$.dir
27114 mkdir conf$$.dir 2>/dev/null
27116 if (echo >conf$$.file) 2>/dev/null; then
27117 if ln -s conf$$.file conf$$ 2>/dev/null; then
27118 as_ln_s='ln -s'
27119 # ... but there are two gotchas:
27120 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
27121 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
27122 # In both cases, we have to default to `cp -p'.
27123 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
27124 as_ln_s='cp -p'
27125 elif ln conf$$.file conf$$ 2>/dev/null; then
27126 as_ln_s=ln
27127 else
27128 as_ln_s='cp -p'
27130 else
27131 as_ln_s='cp -p'
27133 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
27134 rmdir conf$$.dir 2>/dev/null
27137 # as_fn_mkdir_p
27138 # -------------
27139 # Create "$as_dir" as a directory, including parents if necessary.
27140 as_fn_mkdir_p ()
27143 case $as_dir in #(
27144 -*) as_dir=./$as_dir;;
27145 esac
27146 test -d "$as_dir" || eval $as_mkdir_p || {
27147 as_dirs=
27148 while :; do
27149 case $as_dir in #(
27150 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
27151 *) as_qdir=$as_dir;;
27152 esac
27153 as_dirs="'$as_qdir' $as_dirs"
27154 as_dir=`$as_dirname -- "$as_dir" ||
27155 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
27156 X"$as_dir" : 'X\(//\)[^/]' \| \
27157 X"$as_dir" : 'X\(//\)$' \| \
27158 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
27159 $as_echo X"$as_dir" |
27160 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
27161 s//\1/
27164 /^X\(\/\/\)[^/].*/{
27165 s//\1/
27168 /^X\(\/\/\)$/{
27169 s//\1/
27172 /^X\(\/\).*/{
27173 s//\1/
27176 s/.*/./; q'`
27177 test -d "$as_dir" && break
27178 done
27179 test -z "$as_dirs" || eval "mkdir $as_dirs"
27180 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
27183 } # as_fn_mkdir_p
27184 if mkdir -p . 2>/dev/null; then
27185 as_mkdir_p='mkdir -p "$as_dir"'
27186 else
27187 test -d ./-p && rmdir ./-p
27188 as_mkdir_p=false
27191 if test -x / >/dev/null 2>&1; then
27192 as_test_x='test -x'
27193 else
27194 if ls -dL / >/dev/null 2>&1; then
27195 as_ls_L_option=L
27196 else
27197 as_ls_L_option=
27199 as_test_x='
27200 eval sh -c '\''
27201 if test -d "$1"; then
27202 test -d "$1/.";
27203 else
27204 case $1 in #(
27205 -*)set "./$1";;
27206 esac;
27207 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
27208 ???[sx]*):;;*)false;;esac;fi
27209 '\'' sh
27212 as_executable_p=$as_test_x
27214 # Sed expression to map a string onto a valid CPP name.
27215 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
27217 # Sed expression to map a string onto a valid variable name.
27218 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
27221 exec 6>&1
27222 ## ----------------------------------- ##
27223 ## Main body of $CONFIG_STATUS script. ##
27224 ## ----------------------------------- ##
27225 _ASEOF
27226 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
27228 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27229 # Save the log message, to keep $0 and so on meaningful, and to
27230 # report actual input values of CONFIG_FILES etc. instead of their
27231 # values after options handling.
27232 ac_log="
27233 This file was extended by GNU Fortran Runtime Library $as_me 0.3, which was
27234 generated by GNU Autoconf 2.64. Invocation command line was
27236 CONFIG_FILES = $CONFIG_FILES
27237 CONFIG_HEADERS = $CONFIG_HEADERS
27238 CONFIG_LINKS = $CONFIG_LINKS
27239 CONFIG_COMMANDS = $CONFIG_COMMANDS
27240 $ $0 $@
27242 on `(hostname || uname -n) 2>/dev/null | sed 1q`
27245 _ACEOF
27247 case $ac_config_files in *"
27248 "*) set x $ac_config_files; shift; ac_config_files=$*;;
27249 esac
27251 case $ac_config_headers in *"
27252 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
27253 esac
27256 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27257 # Files that config.status was made for.
27258 config_files="$ac_config_files"
27259 config_headers="$ac_config_headers"
27260 config_commands="$ac_config_commands"
27262 _ACEOF
27264 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27265 ac_cs_usage="\
27266 \`$as_me' instantiates files and other configuration actions
27267 from templates according to the current configuration. Unless the files
27268 and actions are specified as TAGs, all are instantiated by default.
27270 Usage: $0 [OPTION]... [TAG]...
27272 -h, --help print this help, then exit
27273 -V, --version print version number and configuration settings, then exit
27274 -q, --quiet, --silent
27275 do not print progress messages
27276 -d, --debug don't remove temporary files
27277 --recheck update $as_me by reconfiguring in the same conditions
27278 --file=FILE[:TEMPLATE]
27279 instantiate the configuration file FILE
27280 --header=FILE[:TEMPLATE]
27281 instantiate the configuration header FILE
27283 Configuration files:
27284 $config_files
27286 Configuration headers:
27287 $config_headers
27289 Configuration commands:
27290 $config_commands
27292 Report bugs to the package provider.
27293 GNU Fortran Runtime Library home page: <http://www.gnu.org/software/libgfortran/>.
27294 General help using GNU software: <http://www.gnu.org/gethelp/>."
27296 _ACEOF
27297 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27298 ac_cs_version="\\
27299 GNU Fortran Runtime Library config.status 0.3
27300 configured by $0, generated by GNU Autoconf 2.64,
27301 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
27303 Copyright (C) 2009 Free Software Foundation, Inc.
27304 This config.status script is free software; the Free Software Foundation
27305 gives unlimited permission to copy, distribute and modify it."
27307 ac_pwd='$ac_pwd'
27308 srcdir='$srcdir'
27309 INSTALL='$INSTALL'
27310 MKDIR_P='$MKDIR_P'
27311 AWK='$AWK'
27312 test -n "\$AWK" || AWK=awk
27313 _ACEOF
27315 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27316 # The default lists apply if the user does not specify any file.
27317 ac_need_defaults=:
27318 while test $# != 0
27320 case $1 in
27321 --*=*)
27322 ac_option=`expr "X$1" : 'X\([^=]*\)='`
27323 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
27324 ac_shift=:
27327 ac_option=$1
27328 ac_optarg=$2
27329 ac_shift=shift
27331 esac
27333 case $ac_option in
27334 # Handling of the options.
27335 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
27336 ac_cs_recheck=: ;;
27337 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
27338 $as_echo "$ac_cs_version"; exit ;;
27339 --debug | --debu | --deb | --de | --d | -d )
27340 debug=: ;;
27341 --file | --fil | --fi | --f )
27342 $ac_shift
27343 case $ac_optarg in
27344 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27345 esac
27346 as_fn_append CONFIG_FILES " '$ac_optarg'"
27347 ac_need_defaults=false;;
27348 --header | --heade | --head | --hea )
27349 $ac_shift
27350 case $ac_optarg in
27351 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
27352 esac
27353 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
27354 ac_need_defaults=false;;
27355 --he | --h)
27356 # Conflict between --help and --header
27357 as_fn_error "ambiguous option: \`$1'
27358 Try \`$0 --help' for more information.";;
27359 --help | --hel | -h )
27360 $as_echo "$ac_cs_usage"; exit ;;
27361 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
27362 | -silent | --silent | --silen | --sile | --sil | --si | --s)
27363 ac_cs_silent=: ;;
27365 # This is an error.
27366 -*) as_fn_error "unrecognized option: \`$1'
27367 Try \`$0 --help' for more information." ;;
27369 *) as_fn_append ac_config_targets " $1"
27370 ac_need_defaults=false ;;
27372 esac
27373 shift
27374 done
27376 ac_configure_extra_args=
27378 if $ac_cs_silent; then
27379 exec 6>/dev/null
27380 ac_configure_extra_args="$ac_configure_extra_args --silent"
27383 _ACEOF
27384 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27385 if \$ac_cs_recheck; then
27386 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
27387 shift
27388 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
27389 CONFIG_SHELL='$SHELL'
27390 export CONFIG_SHELL
27391 exec "\$@"
27394 _ACEOF
27395 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27396 exec 5>>config.log
27398 echo
27399 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
27400 ## Running $as_me. ##
27401 _ASBOX
27402 $as_echo "$ac_log"
27403 } >&5
27405 _ACEOF
27406 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27408 # INIT-COMMANDS
27411 srcdir="$srcdir"
27412 host="$host"
27413 target="$target"
27414 with_multisubdir="$with_multisubdir"
27415 with_multisrctop="$with_multisrctop"
27416 with_target_subdir="$with_target_subdir"
27417 ac_configure_args="${multilib_arg} ${ac_configure_args}"
27418 multi_basedir="$multi_basedir"
27419 CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
27420 CC="$CC"
27421 CXX="$CXX"
27422 GFORTRAN="$GFORTRAN"
27423 GCJ="$GCJ"
27424 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
27427 # The HP-UX ksh and POSIX shell print the target directory to stdout
27428 # if CDPATH is set.
27429 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
27431 sed_quote_subst='$sed_quote_subst'
27432 double_quote_subst='$double_quote_subst'
27433 delay_variable_subst='$delay_variable_subst'
27434 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
27435 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
27436 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
27437 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
27438 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
27439 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
27440 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
27441 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
27442 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
27443 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
27444 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
27445 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
27446 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
27447 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
27448 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
27449 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
27450 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
27451 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
27452 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
27453 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
27454 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
27455 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
27456 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
27457 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
27458 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
27459 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
27460 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
27461 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
27462 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
27463 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
27464 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
27465 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
27466 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
27467 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
27468 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
27469 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
27470 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
27471 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27472 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27473 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
27474 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
27475 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
27476 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
27477 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
27478 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
27479 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
27480 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
27481 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
27482 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
27483 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
27484 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
27485 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
27486 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
27487 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
27488 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
27489 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
27490 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
27491 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
27492 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
27493 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
27494 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
27495 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
27496 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
27497 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
27498 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27499 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
27500 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
27501 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
27502 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
27503 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
27504 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
27505 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
27506 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
27507 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27508 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
27509 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
27510 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
27511 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
27512 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
27513 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
27514 hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
27515 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
27516 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
27517 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
27518 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
27519 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
27520 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
27521 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
27522 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
27523 fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
27524 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
27525 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
27526 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
27527 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
27528 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
27529 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
27530 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
27531 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
27532 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
27533 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
27534 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
27535 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
27536 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
27537 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
27538 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
27539 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
27540 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
27541 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
27542 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
27543 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
27544 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
27545 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
27546 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
27547 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
27548 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
27549 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
27550 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
27551 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
27552 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
27553 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
27554 compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
27555 predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
27556 postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
27557 predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
27558 postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
27559 compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
27560 LD_FC='`$ECHO "$LD_FC" | $SED "$delay_single_quote_subst"`'
27561 reload_flag_FC='`$ECHO "$reload_flag_FC" | $SED "$delay_single_quote_subst"`'
27562 reload_cmds_FC='`$ECHO "$reload_cmds_FC" | $SED "$delay_single_quote_subst"`'
27563 old_archive_cmds_FC='`$ECHO "$old_archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
27564 compiler_FC='`$ECHO "$compiler_FC" | $SED "$delay_single_quote_subst"`'
27565 GCC_FC='`$ECHO "$GCC_FC" | $SED "$delay_single_quote_subst"`'
27566 lt_prog_compiler_no_builtin_flag_FC='`$ECHO "$lt_prog_compiler_no_builtin_flag_FC" | $SED "$delay_single_quote_subst"`'
27567 lt_prog_compiler_wl_FC='`$ECHO "$lt_prog_compiler_wl_FC" | $SED "$delay_single_quote_subst"`'
27568 lt_prog_compiler_pic_FC='`$ECHO "$lt_prog_compiler_pic_FC" | $SED "$delay_single_quote_subst"`'
27569 lt_prog_compiler_static_FC='`$ECHO "$lt_prog_compiler_static_FC" | $SED "$delay_single_quote_subst"`'
27570 lt_cv_prog_compiler_c_o_FC='`$ECHO "$lt_cv_prog_compiler_c_o_FC" | $SED "$delay_single_quote_subst"`'
27571 archive_cmds_need_lc_FC='`$ECHO "$archive_cmds_need_lc_FC" | $SED "$delay_single_quote_subst"`'
27572 enable_shared_with_static_runtimes_FC='`$ECHO "$enable_shared_with_static_runtimes_FC" | $SED "$delay_single_quote_subst"`'
27573 export_dynamic_flag_spec_FC='`$ECHO "$export_dynamic_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27574 whole_archive_flag_spec_FC='`$ECHO "$whole_archive_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27575 compiler_needs_object_FC='`$ECHO "$compiler_needs_object_FC" | $SED "$delay_single_quote_subst"`'
27576 old_archive_from_new_cmds_FC='`$ECHO "$old_archive_from_new_cmds_FC" | $SED "$delay_single_quote_subst"`'
27577 old_archive_from_expsyms_cmds_FC='`$ECHO "$old_archive_from_expsyms_cmds_FC" | $SED "$delay_single_quote_subst"`'
27578 archive_cmds_FC='`$ECHO "$archive_cmds_FC" | $SED "$delay_single_quote_subst"`'
27579 archive_expsym_cmds_FC='`$ECHO "$archive_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
27580 module_cmds_FC='`$ECHO "$module_cmds_FC" | $SED "$delay_single_quote_subst"`'
27581 module_expsym_cmds_FC='`$ECHO "$module_expsym_cmds_FC" | $SED "$delay_single_quote_subst"`'
27582 with_gnu_ld_FC='`$ECHO "$with_gnu_ld_FC" | $SED "$delay_single_quote_subst"`'
27583 allow_undefined_flag_FC='`$ECHO "$allow_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
27584 no_undefined_flag_FC='`$ECHO "$no_undefined_flag_FC" | $SED "$delay_single_quote_subst"`'
27585 hardcode_libdir_flag_spec_FC='`$ECHO "$hardcode_libdir_flag_spec_FC" | $SED "$delay_single_quote_subst"`'
27586 hardcode_libdir_flag_spec_ld_FC='`$ECHO "$hardcode_libdir_flag_spec_ld_FC" | $SED "$delay_single_quote_subst"`'
27587 hardcode_libdir_separator_FC='`$ECHO "$hardcode_libdir_separator_FC" | $SED "$delay_single_quote_subst"`'
27588 hardcode_direct_FC='`$ECHO "$hardcode_direct_FC" | $SED "$delay_single_quote_subst"`'
27589 hardcode_direct_absolute_FC='`$ECHO "$hardcode_direct_absolute_FC" | $SED "$delay_single_quote_subst"`'
27590 hardcode_minus_L_FC='`$ECHO "$hardcode_minus_L_FC" | $SED "$delay_single_quote_subst"`'
27591 hardcode_shlibpath_var_FC='`$ECHO "$hardcode_shlibpath_var_FC" | $SED "$delay_single_quote_subst"`'
27592 hardcode_automatic_FC='`$ECHO "$hardcode_automatic_FC" | $SED "$delay_single_quote_subst"`'
27593 inherit_rpath_FC='`$ECHO "$inherit_rpath_FC" | $SED "$delay_single_quote_subst"`'
27594 link_all_deplibs_FC='`$ECHO "$link_all_deplibs_FC" | $SED "$delay_single_quote_subst"`'
27595 fix_srcfile_path_FC='`$ECHO "$fix_srcfile_path_FC" | $SED "$delay_single_quote_subst"`'
27596 always_export_symbols_FC='`$ECHO "$always_export_symbols_FC" | $SED "$delay_single_quote_subst"`'
27597 export_symbols_cmds_FC='`$ECHO "$export_symbols_cmds_FC" | $SED "$delay_single_quote_subst"`'
27598 exclude_expsyms_FC='`$ECHO "$exclude_expsyms_FC" | $SED "$delay_single_quote_subst"`'
27599 include_expsyms_FC='`$ECHO "$include_expsyms_FC" | $SED "$delay_single_quote_subst"`'
27600 prelink_cmds_FC='`$ECHO "$prelink_cmds_FC" | $SED "$delay_single_quote_subst"`'
27601 file_list_spec_FC='`$ECHO "$file_list_spec_FC" | $SED "$delay_single_quote_subst"`'
27602 hardcode_action_FC='`$ECHO "$hardcode_action_FC" | $SED "$delay_single_quote_subst"`'
27603 compiler_lib_search_dirs_FC='`$ECHO "$compiler_lib_search_dirs_FC" | $SED "$delay_single_quote_subst"`'
27604 predep_objects_FC='`$ECHO "$predep_objects_FC" | $SED "$delay_single_quote_subst"`'
27605 postdep_objects_FC='`$ECHO "$postdep_objects_FC" | $SED "$delay_single_quote_subst"`'
27606 predeps_FC='`$ECHO "$predeps_FC" | $SED "$delay_single_quote_subst"`'
27607 postdeps_FC='`$ECHO "$postdeps_FC" | $SED "$delay_single_quote_subst"`'
27608 compiler_lib_search_path_FC='`$ECHO "$compiler_lib_search_path_FC" | $SED "$delay_single_quote_subst"`'
27610 LTCC='$LTCC'
27611 LTCFLAGS='$LTCFLAGS'
27612 compiler='$compiler_DEFAULT'
27614 # A function that is used when there is no print builtin or printf.
27615 func_fallback_echo ()
27617 eval 'cat <<_LTECHO_EOF
27619 _LTECHO_EOF'
27622 # Quote evaled strings.
27623 for var in SHELL \
27624 ECHO \
27625 SED \
27626 GREP \
27627 EGREP \
27628 FGREP \
27629 LD \
27630 NM \
27631 LN_S \
27632 lt_SP2NL \
27633 lt_NL2SP \
27634 reload_flag \
27635 OBJDUMP \
27636 deplibs_check_method \
27637 file_magic_cmd \
27638 AR \
27639 AR_FLAGS \
27640 STRIP \
27641 RANLIB \
27642 CC \
27643 CFLAGS \
27644 compiler \
27645 lt_cv_sys_global_symbol_pipe \
27646 lt_cv_sys_global_symbol_to_cdecl \
27647 lt_cv_sys_global_symbol_to_c_name_address \
27648 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
27649 lt_prog_compiler_no_builtin_flag \
27650 lt_prog_compiler_wl \
27651 lt_prog_compiler_pic \
27652 lt_prog_compiler_static \
27653 lt_cv_prog_compiler_c_o \
27654 need_locks \
27655 DSYMUTIL \
27656 NMEDIT \
27657 LIPO \
27658 OTOOL \
27659 OTOOL64 \
27660 shrext_cmds \
27661 export_dynamic_flag_spec \
27662 whole_archive_flag_spec \
27663 compiler_needs_object \
27664 with_gnu_ld \
27665 allow_undefined_flag \
27666 no_undefined_flag \
27667 hardcode_libdir_flag_spec \
27668 hardcode_libdir_flag_spec_ld \
27669 hardcode_libdir_separator \
27670 fix_srcfile_path \
27671 exclude_expsyms \
27672 include_expsyms \
27673 file_list_spec \
27674 variables_saved_for_relink \
27675 libname_spec \
27676 library_names_spec \
27677 soname_spec \
27678 install_override_mode \
27679 finish_eval \
27680 old_striplib \
27681 striplib \
27682 compiler_lib_search_dirs \
27683 predep_objects \
27684 postdep_objects \
27685 predeps \
27686 postdeps \
27687 compiler_lib_search_path \
27688 LD_FC \
27689 reload_flag_FC \
27690 compiler_FC \
27691 lt_prog_compiler_no_builtin_flag_FC \
27692 lt_prog_compiler_wl_FC \
27693 lt_prog_compiler_pic_FC \
27694 lt_prog_compiler_static_FC \
27695 lt_cv_prog_compiler_c_o_FC \
27696 export_dynamic_flag_spec_FC \
27697 whole_archive_flag_spec_FC \
27698 compiler_needs_object_FC \
27699 with_gnu_ld_FC \
27700 allow_undefined_flag_FC \
27701 no_undefined_flag_FC \
27702 hardcode_libdir_flag_spec_FC \
27703 hardcode_libdir_flag_spec_ld_FC \
27704 hardcode_libdir_separator_FC \
27705 fix_srcfile_path_FC \
27706 exclude_expsyms_FC \
27707 include_expsyms_FC \
27708 file_list_spec_FC \
27709 compiler_lib_search_dirs_FC \
27710 predep_objects_FC \
27711 postdep_objects_FC \
27712 predeps_FC \
27713 postdeps_FC \
27714 compiler_lib_search_path_FC; do
27715 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27716 *[\\\\\\\`\\"\\\$]*)
27717 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
27720 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27722 esac
27723 done
27725 # Double-quote double-evaled strings.
27726 for var in reload_cmds \
27727 old_postinstall_cmds \
27728 old_postuninstall_cmds \
27729 old_archive_cmds \
27730 extract_expsyms_cmds \
27731 old_archive_from_new_cmds \
27732 old_archive_from_expsyms_cmds \
27733 archive_cmds \
27734 archive_expsym_cmds \
27735 module_cmds \
27736 module_expsym_cmds \
27737 export_symbols_cmds \
27738 prelink_cmds \
27739 postinstall_cmds \
27740 postuninstall_cmds \
27741 finish_cmds \
27742 sys_lib_search_path_spec \
27743 sys_lib_dlsearch_path_spec \
27744 reload_cmds_FC \
27745 old_archive_cmds_FC \
27746 old_archive_from_new_cmds_FC \
27747 old_archive_from_expsyms_cmds_FC \
27748 archive_cmds_FC \
27749 archive_expsym_cmds_FC \
27750 module_cmds_FC \
27751 module_expsym_cmds_FC \
27752 export_symbols_cmds_FC \
27753 prelink_cmds_FC; do
27754 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
27755 *[\\\\\\\`\\"\\\$]*)
27756 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
27759 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
27761 esac
27762 done
27764 ac_aux_dir='$ac_aux_dir'
27765 xsi_shell='$xsi_shell'
27766 lt_shell_append='$lt_shell_append'
27768 # See if we are running on zsh, and set the options which allow our
27769 # commands through without removal of \ escapes INIT.
27770 if test -n "\${ZSH_VERSION+set}" ; then
27771 setopt NO_GLOB_SUBST
27775 PACKAGE='$PACKAGE'
27776 VERSION='$VERSION'
27777 TIMESTAMP='$TIMESTAMP'
27778 RM='$RM'
27779 ofile='$ofile'
27786 GCC="$GCC"
27787 CC="$CC"
27788 acx_cv_header_stdint="$acx_cv_header_stdint"
27789 acx_cv_type_int8_t="$acx_cv_type_int8_t"
27790 acx_cv_type_int16_t="$acx_cv_type_int16_t"
27791 acx_cv_type_int32_t="$acx_cv_type_int32_t"
27792 acx_cv_type_int64_t="$acx_cv_type_int64_t"
27793 acx_cv_type_intptr_t="$acx_cv_type_intptr_t"
27794 ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t"
27795 ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t"
27796 ac_cv_type_uint64_t="$ac_cv_type_uint64_t"
27797 ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t"
27798 ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t"
27799 ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t"
27800 ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t"
27801 ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p"
27804 _ACEOF
27806 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27808 # Handling of arguments.
27809 for ac_config_target in $ac_config_targets
27811 case $ac_config_target in
27812 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
27813 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
27814 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
27815 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
27816 "gstdint.h") CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;;
27817 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
27818 "libgfortran.spec") CONFIG_FILES="$CONFIG_FILES libgfortran.spec" ;;
27820 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
27821 esac
27822 done
27825 # If the user did not use the arguments to specify the items to instantiate,
27826 # then the envvar interface is used. Set only those that are not.
27827 # We use the long form for the default assignment because of an extremely
27828 # bizarre bug on SunOS 4.1.3.
27829 if $ac_need_defaults; then
27830 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
27831 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
27832 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
27835 # Have a temporary directory for convenience. Make it in the build tree
27836 # simply because there is no reason against having it here, and in addition,
27837 # creating and moving files from /tmp can sometimes cause problems.
27838 # Hook for its removal unless debugging.
27839 # Note that there is a small window in which the directory will not be cleaned:
27840 # after its creation but before its name has been assigned to `$tmp'.
27841 $debug ||
27843 tmp=
27844 trap 'exit_status=$?
27845 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
27847 trap 'as_fn_exit 1' 1 2 13 15
27849 # Create a (secure) tmp directory for tmp files.
27852 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
27853 test -n "$tmp" && test -d "$tmp"
27854 } ||
27856 tmp=./conf$$-$RANDOM
27857 (umask 077 && mkdir "$tmp")
27858 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
27860 # Set up the scripts for CONFIG_FILES section.
27861 # No need to generate them if there are no CONFIG_FILES.
27862 # This happens for instance with `./config.status config.h'.
27863 if test -n "$CONFIG_FILES"; then
27866 ac_cr=`echo X | tr X '\015'`
27867 # On cygwin, bash can eat \r inside `` if the user requested igncr.
27868 # But we know of no other shell where ac_cr would be empty at this
27869 # point, so we can use a bashism as a fallback.
27870 if test "x$ac_cr" = x; then
27871 eval ac_cr=\$\'\\r\'
27873 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
27874 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
27875 ac_cs_awk_cr='\r'
27876 else
27877 ac_cs_awk_cr=$ac_cr
27880 echo 'BEGIN {' >"$tmp/subs1.awk" &&
27881 _ACEOF
27885 echo "cat >conf$$subs.awk <<_ACEOF" &&
27886 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
27887 echo "_ACEOF"
27888 } >conf$$subs.sh ||
27889 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27890 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
27891 ac_delim='%!_!# '
27892 for ac_last_try in false false false false false :; do
27893 . ./conf$$subs.sh ||
27894 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27896 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
27897 if test $ac_delim_n = $ac_delim_num; then
27898 break
27899 elif $ac_last_try; then
27900 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
27901 else
27902 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
27904 done
27905 rm -f conf$$subs.sh
27907 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27908 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
27909 _ACEOF
27910 sed -n '
27912 s/^/S["/; s/!.*/"]=/
27915 s/^[^!]*!//
27916 :repl
27917 t repl
27918 s/'"$ac_delim"'$//
27919 t delim
27922 s/\(.\{148\}\).*/\1/
27923 t more1
27924 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
27927 b repl
27928 :more1
27929 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27932 s/.\{148\}//
27933 t nl
27934 :delim
27936 s/\(.\{148\}\).*/\1/
27937 t more2
27938 s/["\\]/\\&/g; s/^/"/; s/$/"/
27941 :more2
27942 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
27945 s/.\{148\}//
27946 t delim
27947 ' <conf$$subs.awk | sed '
27948 /^[^""]/{
27950 s/\n//
27952 ' >>$CONFIG_STATUS || ac_write_fail=1
27953 rm -f conf$$subs.awk
27954 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
27955 _ACAWK
27956 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
27957 for (key in S) S_is_set[key] = 1
27958 FS = "\a"
27962 line = $ 0
27963 nfields = split(line, field, "@")
27964 substed = 0
27965 len = length(field[1])
27966 for (i = 2; i < nfields; i++) {
27967 key = field[i]
27968 keylen = length(key)
27969 if (S_is_set[key]) {
27970 value = S[key]
27971 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
27972 len += length(value) + length(field[++i])
27973 substed = 1
27974 } else
27975 len += 1 + keylen
27978 print line
27981 _ACAWK
27982 _ACEOF
27983 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
27984 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
27985 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
27986 else
27988 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
27989 || as_fn_error "could not setup config files machinery" "$LINENO" 5
27990 _ACEOF
27992 # VPATH may cause trouble with some makes, so we remove $(srcdir),
27993 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
27994 # trailing colons and then remove the whole line if VPATH becomes empty
27995 # (actually we leave an empty line to preserve line numbers).
27996 if test "x$srcdir" = x.; then
27997 ac_vpsub='/^[ ]*VPATH[ ]*=/{
27998 s/:*\$(srcdir):*/:/
27999 s/:*\${srcdir}:*/:/
28000 s/:*@srcdir@:*/:/
28001 s/^\([^=]*=[ ]*\):*/\1/
28002 s/:*$//
28003 s/^[^=]*=[ ]*$//
28007 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28008 fi # test -n "$CONFIG_FILES"
28010 # Set up the scripts for CONFIG_HEADERS section.
28011 # No need to generate them if there are no CONFIG_HEADERS.
28012 # This happens for instance with `./config.status Makefile'.
28013 if test -n "$CONFIG_HEADERS"; then
28014 cat >"$tmp/defines.awk" <<\_ACAWK ||
28015 BEGIN {
28016 _ACEOF
28018 # Transform confdefs.h into an awk script `defines.awk', embedded as
28019 # here-document in config.status, that substitutes the proper values into
28020 # config.h.in to produce config.h.
28022 # Create a delimiter string that does not exist in confdefs.h, to ease
28023 # handling of long lines.
28024 ac_delim='%!_!# '
28025 for ac_last_try in false false :; do
28026 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
28027 if test -z "$ac_t"; then
28028 break
28029 elif $ac_last_try; then
28030 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
28031 else
28032 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
28034 done
28036 # For the awk script, D is an array of macro values keyed by name,
28037 # likewise P contains macro parameters if any. Preserve backslash
28038 # newline sequences.
28040 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
28041 sed -n '
28042 s/.\{148\}/&'"$ac_delim"'/g
28043 t rset
28044 :rset
28045 s/^[ ]*#[ ]*define[ ][ ]*/ /
28046 t def
28048 :def
28049 s/\\$//
28050 t bsnl
28051 s/["\\]/\\&/g
28052 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28053 D["\1"]=" \3"/p
28054 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
28056 :bsnl
28057 s/["\\]/\\&/g
28058 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
28059 D["\1"]=" \3\\\\\\n"\\/p
28060 t cont
28061 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
28062 t cont
28064 :cont
28066 s/.\{148\}/&'"$ac_delim"'/g
28067 t clear
28068 :clear
28069 s/\\$//
28070 t bsnlc
28071 s/["\\]/\\&/g; s/^/"/; s/$/"/p
28073 :bsnlc
28074 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
28075 b cont
28076 ' <confdefs.h | sed '
28077 s/'"$ac_delim"'/"\\\
28078 "/g' >>$CONFIG_STATUS || ac_write_fail=1
28080 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28081 for (key in D) D_is_set[key] = 1
28082 FS = "\a"
28084 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
28085 line = \$ 0
28086 split(line, arg, " ")
28087 if (arg[1] == "#") {
28088 defundef = arg[2]
28089 mac1 = arg[3]
28090 } else {
28091 defundef = substr(arg[1], 2)
28092 mac1 = arg[2]
28094 split(mac1, mac2, "(") #)
28095 macro = mac2[1]
28096 prefix = substr(line, 1, index(line, defundef) - 1)
28097 if (D_is_set[macro]) {
28098 # Preserve the white space surrounding the "#".
28099 print prefix "define", macro P[macro] D[macro]
28100 next
28101 } else {
28102 # Replace #undef with comments. This is necessary, for example,
28103 # in the case of _POSIX_SOURCE, which is predefined and required
28104 # on some systems where configure will not decide to define it.
28105 if (defundef == "undef") {
28106 print "/*", prefix defundef, macro, "*/"
28107 next
28111 { print }
28112 _ACAWK
28113 _ACEOF
28114 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28115 as_fn_error "could not setup config headers machinery" "$LINENO" 5
28116 fi # test -n "$CONFIG_HEADERS"
28119 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
28120 shift
28121 for ac_tag
28123 case $ac_tag in
28124 :[FHLC]) ac_mode=$ac_tag; continue;;
28125 esac
28126 case $ac_mode$ac_tag in
28127 :[FHL]*:*);;
28128 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
28129 :[FH]-) ac_tag=-:-;;
28130 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
28131 esac
28132 ac_save_IFS=$IFS
28133 IFS=:
28134 set x $ac_tag
28135 IFS=$ac_save_IFS
28136 shift
28137 ac_file=$1
28138 shift
28140 case $ac_mode in
28141 :L) ac_source=$1;;
28142 :[FH])
28143 ac_file_inputs=
28144 for ac_f
28146 case $ac_f in
28147 -) ac_f="$tmp/stdin";;
28148 *) # Look for the file first in the build tree, then in the source tree
28149 # (if the path is not absolute). The absolute path cannot be DOS-style,
28150 # because $ac_f cannot contain `:'.
28151 test -f "$ac_f" ||
28152 case $ac_f in
28153 [\\/$]*) false;;
28154 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
28155 esac ||
28156 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
28157 esac
28158 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
28159 as_fn_append ac_file_inputs " '$ac_f'"
28160 done
28162 # Let's still pretend it is `configure' which instantiates (i.e., don't
28163 # use $as_me), people would be surprised to read:
28164 # /* config.h. Generated by config.status. */
28165 configure_input='Generated from '`
28166 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
28167 `' by configure.'
28168 if test x"$ac_file" != x-; then
28169 configure_input="$ac_file. $configure_input"
28170 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
28171 $as_echo "$as_me: creating $ac_file" >&6;}
28173 # Neutralize special characters interpreted by sed in replacement strings.
28174 case $configure_input in #(
28175 *\&* | *\|* | *\\* )
28176 ac_sed_conf_input=`$as_echo "$configure_input" |
28177 sed 's/[\\\\&|]/\\\\&/g'`;; #(
28178 *) ac_sed_conf_input=$configure_input;;
28179 esac
28181 case $ac_tag in
28182 *:-:* | *:-) cat >"$tmp/stdin" \
28183 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
28184 esac
28186 esac
28188 ac_dir=`$as_dirname -- "$ac_file" ||
28189 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28190 X"$ac_file" : 'X\(//\)[^/]' \| \
28191 X"$ac_file" : 'X\(//\)$' \| \
28192 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
28193 $as_echo X"$ac_file" |
28194 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28195 s//\1/
28198 /^X\(\/\/\)[^/].*/{
28199 s//\1/
28202 /^X\(\/\/\)$/{
28203 s//\1/
28206 /^X\(\/\).*/{
28207 s//\1/
28210 s/.*/./; q'`
28211 as_dir="$ac_dir"; as_fn_mkdir_p
28212 ac_builddir=.
28214 case "$ac_dir" in
28215 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
28217 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
28218 # A ".." for each directory in $ac_dir_suffix.
28219 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
28220 case $ac_top_builddir_sub in
28221 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
28222 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
28223 esac ;;
28224 esac
28225 ac_abs_top_builddir=$ac_pwd
28226 ac_abs_builddir=$ac_pwd$ac_dir_suffix
28227 # for backward compatibility:
28228 ac_top_builddir=$ac_top_build_prefix
28230 case $srcdir in
28231 .) # We are building in place.
28232 ac_srcdir=.
28233 ac_top_srcdir=$ac_top_builddir_sub
28234 ac_abs_top_srcdir=$ac_pwd ;;
28235 [\\/]* | ?:[\\/]* ) # Absolute name.
28236 ac_srcdir=$srcdir$ac_dir_suffix;
28237 ac_top_srcdir=$srcdir
28238 ac_abs_top_srcdir=$srcdir ;;
28239 *) # Relative name.
28240 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
28241 ac_top_srcdir=$ac_top_build_prefix$srcdir
28242 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
28243 esac
28244 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
28247 case $ac_mode in
28250 # CONFIG_FILE
28253 case $INSTALL in
28254 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
28255 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
28256 esac
28257 ac_MKDIR_P=$MKDIR_P
28258 case $MKDIR_P in
28259 [\\/$]* | ?:[\\/]* ) ;;
28260 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
28261 esac
28262 _ACEOF
28264 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28265 # If the template does not know about datarootdir, expand it.
28266 # FIXME: This hack should be removed a few years after 2.60.
28267 ac_datarootdir_hack=; ac_datarootdir_seen=
28268 ac_sed_dataroot='
28269 /datarootdir/ {
28273 /@datadir@/p
28274 /@docdir@/p
28275 /@infodir@/p
28276 /@localedir@/p
28277 /@mandir@/p'
28278 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
28279 *datarootdir*) ac_datarootdir_seen=yes;;
28280 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
28281 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
28282 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
28283 _ACEOF
28284 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28285 ac_datarootdir_hack='
28286 s&@datadir@&$datadir&g
28287 s&@docdir@&$docdir&g
28288 s&@infodir@&$infodir&g
28289 s&@localedir@&$localedir&g
28290 s&@mandir@&$mandir&g
28291 s&\\\${datarootdir}&$datarootdir&g' ;;
28292 esac
28293 _ACEOF
28295 # Neutralize VPATH when `$srcdir' = `.'.
28296 # Shell code in configure.ac might set extrasub.
28297 # FIXME: do we really want to maintain this feature?
28298 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
28299 ac_sed_extra="$ac_vpsub
28300 $extrasub
28301 _ACEOF
28302 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28304 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
28305 s|@configure_input@|$ac_sed_conf_input|;t t
28306 s&@top_builddir@&$ac_top_builddir_sub&;t t
28307 s&@top_build_prefix@&$ac_top_build_prefix&;t t
28308 s&@srcdir@&$ac_srcdir&;t t
28309 s&@abs_srcdir@&$ac_abs_srcdir&;t t
28310 s&@top_srcdir@&$ac_top_srcdir&;t t
28311 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
28312 s&@builddir@&$ac_builddir&;t t
28313 s&@abs_builddir@&$ac_abs_builddir&;t t
28314 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
28315 s&@INSTALL@&$ac_INSTALL&;t t
28316 s&@MKDIR_P@&$ac_MKDIR_P&;t t
28317 $ac_datarootdir_hack
28319 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
28320 || as_fn_error "could not create $ac_file" "$LINENO" 5
28322 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
28323 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
28324 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
28325 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28326 which seems to be undefined. Please make sure it is defined." >&5
28327 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
28328 which seems to be undefined. Please make sure it is defined." >&2;}
28330 rm -f "$tmp/stdin"
28331 case $ac_file in
28332 -) cat "$tmp/out" && rm -f "$tmp/out";;
28333 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
28334 esac \
28335 || as_fn_error "could not create $ac_file" "$LINENO" 5
28339 # CONFIG_HEADER
28341 if test x"$ac_file" != x-; then
28343 $as_echo "/* $configure_input */" \
28344 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
28345 } >"$tmp/config.h" \
28346 || as_fn_error "could not create $ac_file" "$LINENO" 5
28347 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
28348 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
28349 $as_echo "$as_me: $ac_file is unchanged" >&6;}
28350 else
28351 rm -f "$ac_file"
28352 mv "$tmp/config.h" "$ac_file" \
28353 || as_fn_error "could not create $ac_file" "$LINENO" 5
28355 else
28356 $as_echo "/* $configure_input */" \
28357 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
28358 || as_fn_error "could not create -" "$LINENO" 5
28360 # Compute "$ac_file"'s index in $config_headers.
28361 _am_arg="$ac_file"
28362 _am_stamp_count=1
28363 for _am_header in $config_headers :; do
28364 case $_am_header in
28365 $_am_arg | $_am_arg:* )
28366 break ;;
28368 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
28369 esac
28370 done
28371 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
28372 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28373 X"$_am_arg" : 'X\(//\)[^/]' \| \
28374 X"$_am_arg" : 'X\(//\)$' \| \
28375 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
28376 $as_echo X"$_am_arg" |
28377 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28378 s//\1/
28381 /^X\(\/\/\)[^/].*/{
28382 s//\1/
28385 /^X\(\/\/\)$/{
28386 s//\1/
28389 /^X\(\/\).*/{
28390 s//\1/
28393 s/.*/./; q'`/stamp-h$_am_stamp_count
28396 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
28397 $as_echo "$as_me: executing $ac_file commands" >&6;}
28399 esac
28402 case $ac_file$ac_mode in
28403 "default-1":C)
28404 # Only add multilib support code if we just rebuilt the top-level
28405 # Makefile.
28406 case " $CONFIG_FILES " in
28407 *" Makefile "*)
28408 ac_file=Makefile . ${multi_basedir}/config-ml.in
28410 esac ;;
28411 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
28412 # Autoconf 2.62 quotes --file arguments for eval, but not when files
28413 # are listed without --file. Let's play safe and only enable the eval
28414 # if we detect the quoting.
28415 case $CONFIG_FILES in
28416 *\'*) eval set x "$CONFIG_FILES" ;;
28417 *) set x $CONFIG_FILES ;;
28418 esac
28419 shift
28420 for mf
28422 # Strip MF so we end up with the name of the file.
28423 mf=`echo "$mf" | sed -e 's/:.*$//'`
28424 # Check whether this is an Automake generated Makefile or not.
28425 # We used to match only the files named `Makefile.in', but
28426 # some people rename them; so instead we look at the file content.
28427 # Grep'ing the first line is not enough: some people post-process
28428 # each Makefile.in and add a new line on top of each file to say so.
28429 # Grep'ing the whole file is not good either: AIX grep has a line
28430 # limit of 2048, but all sed's we know have understand at least 4000.
28431 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
28432 dirpart=`$as_dirname -- "$mf" ||
28433 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28434 X"$mf" : 'X\(//\)[^/]' \| \
28435 X"$mf" : 'X\(//\)$' \| \
28436 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
28437 $as_echo X"$mf" |
28438 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28439 s//\1/
28442 /^X\(\/\/\)[^/].*/{
28443 s//\1/
28446 /^X\(\/\/\)$/{
28447 s//\1/
28450 /^X\(\/\).*/{
28451 s//\1/
28454 s/.*/./; q'`
28455 else
28456 continue
28458 # Extract the definition of DEPDIR, am__include, and am__quote
28459 # from the Makefile without running `make'.
28460 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
28461 test -z "$DEPDIR" && continue
28462 am__include=`sed -n 's/^am__include = //p' < "$mf"`
28463 test -z "am__include" && continue
28464 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
28465 # When using ansi2knr, U may be empty or an underscore; expand it
28466 U=`sed -n 's/^U = //p' < "$mf"`
28467 # Find all dependency output files, they are included files with
28468 # $(DEPDIR) in their names. We invoke sed twice because it is the
28469 # simplest approach to changing $(DEPDIR) to its actual value in the
28470 # expansion.
28471 for file in `sed -n "
28472 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
28473 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
28474 # Make sure the directory exists.
28475 test -f "$dirpart/$file" && continue
28476 fdir=`$as_dirname -- "$file" ||
28477 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28478 X"$file" : 'X\(//\)[^/]' \| \
28479 X"$file" : 'X\(//\)$' \| \
28480 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
28481 $as_echo X"$file" |
28482 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28483 s//\1/
28486 /^X\(\/\/\)[^/].*/{
28487 s//\1/
28490 /^X\(\/\/\)$/{
28491 s//\1/
28494 /^X\(\/\).*/{
28495 s//\1/
28498 s/.*/./; q'`
28499 as_dir=$dirpart/$fdir; as_fn_mkdir_p
28500 # echo "creating $dirpart/$file"
28501 echo '# dummy' > "$dirpart/$file"
28502 done
28503 done
28506 "libtool":C)
28508 # See if we are running on zsh, and set the options which allow our
28509 # commands through without removal of \ escapes.
28510 if test -n "${ZSH_VERSION+set}" ; then
28511 setopt NO_GLOB_SUBST
28514 cfgfile="${ofile}T"
28515 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
28516 $RM "$cfgfile"
28518 cat <<_LT_EOF >> "$cfgfile"
28519 #! $SHELL
28521 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
28522 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
28523 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
28524 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
28526 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
28527 # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
28528 # Written by Gordon Matzigkeit, 1996
28530 # This file is part of GNU Libtool.
28532 # GNU Libtool is free software; you can redistribute it and/or
28533 # modify it under the terms of the GNU General Public License as
28534 # published by the Free Software Foundation; either version 2 of
28535 # the License, or (at your option) any later version.
28537 # As a special exception to the GNU General Public License,
28538 # if you distribute this file as part of a program or library that
28539 # is built using GNU Libtool, you may include this file under the
28540 # same distribution terms that you use for the rest of that program.
28542 # GNU Libtool is distributed in the hope that it will be useful,
28543 # but WITHOUT ANY WARRANTY; without even the implied warranty of
28544 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
28545 # GNU General Public License for more details.
28547 # You should have received a copy of the GNU General Public License
28548 # along with GNU Libtool; see the file COPYING. If not, a copy
28549 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
28550 # obtained by writing to the Free Software Foundation, Inc.,
28551 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
28554 # The names of the tagged configurations supported by this script.
28555 available_tags="FC "
28557 # ### BEGIN LIBTOOL CONFIG
28559 # Which release of libtool.m4 was used?
28560 macro_version=$macro_version
28561 macro_revision=$macro_revision
28563 # Whether or not to build shared libraries.
28564 build_libtool_libs=$enable_shared
28566 # Whether or not to build static libraries.
28567 build_old_libs=$enable_static
28569 # What type of objects to build.
28570 pic_mode=$pic_mode
28572 # Whether or not to optimize for fast installation.
28573 fast_install=$enable_fast_install
28575 # Shell to use when invoking shell scripts.
28576 SHELL=$lt_SHELL
28578 # An echo program that protects backslashes.
28579 ECHO=$lt_ECHO
28581 # The host system.
28582 host_alias=$host_alias
28583 host=$host
28584 host_os=$host_os
28586 # The build system.
28587 build_alias=$build_alias
28588 build=$build
28589 build_os=$build_os
28591 # A sed program that does not truncate output.
28592 SED=$lt_SED
28594 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
28595 Xsed="\$SED -e 1s/^X//"
28597 # A grep program that handles long lines.
28598 GREP=$lt_GREP
28600 # An ERE matcher.
28601 EGREP=$lt_EGREP
28603 # A literal string matcher.
28604 FGREP=$lt_FGREP
28606 # A BSD- or MS-compatible name lister.
28607 NM=$lt_NM
28609 # Whether we need soft or hard links.
28610 LN_S=$lt_LN_S
28612 # What is the maximum length of a command?
28613 max_cmd_len=$max_cmd_len
28615 # Object file suffix (normally "o").
28616 objext=$ac_objext
28618 # Executable file suffix (normally "").
28619 exeext=$exeext
28621 # whether the shell understands "unset".
28622 lt_unset=$lt_unset
28624 # turn spaces into newlines.
28625 SP2NL=$lt_lt_SP2NL
28627 # turn newlines into spaces.
28628 NL2SP=$lt_lt_NL2SP
28630 # An object symbol dumper.
28631 OBJDUMP=$lt_OBJDUMP
28633 # Method to check whether dependent libraries are shared objects.
28634 deplibs_check_method=$lt_deplibs_check_method
28636 # Command to use when deplibs_check_method == "file_magic".
28637 file_magic_cmd=$lt_file_magic_cmd
28639 # The archiver.
28640 AR=$lt_AR
28641 AR_FLAGS=$lt_AR_FLAGS
28643 # A symbol stripping program.
28644 STRIP=$lt_STRIP
28646 # Commands used to install an old-style archive.
28647 RANLIB=$lt_RANLIB
28648 old_postinstall_cmds=$lt_old_postinstall_cmds
28649 old_postuninstall_cmds=$lt_old_postuninstall_cmds
28651 # Whether to use a lock for old archive extraction.
28652 lock_old_archive_extraction=$lock_old_archive_extraction
28654 # A C compiler.
28655 LTCC=$lt_CC
28657 # LTCC compiler flags.
28658 LTCFLAGS=$lt_CFLAGS
28660 # Take the output of nm and produce a listing of raw symbols and C names.
28661 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
28663 # Transform the output of nm in a proper C declaration.
28664 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
28666 # Transform the output of nm in a C name address pair.
28667 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
28669 # Transform the output of nm in a C name address pair when lib prefix is needed.
28670 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
28672 # The name of the directory that contains temporary libtool files.
28673 objdir=$objdir
28675 # Used to examine libraries when file_magic_cmd begins with "file".
28676 MAGIC_CMD=$MAGIC_CMD
28678 # Must we lock files when doing compilation?
28679 need_locks=$lt_need_locks
28681 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
28682 DSYMUTIL=$lt_DSYMUTIL
28684 # Tool to change global to local symbols on Mac OS X.
28685 NMEDIT=$lt_NMEDIT
28687 # Tool to manipulate fat objects and archives on Mac OS X.
28688 LIPO=$lt_LIPO
28690 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
28691 OTOOL=$lt_OTOOL
28693 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
28694 OTOOL64=$lt_OTOOL64
28696 # Old archive suffix (normally "a").
28697 libext=$libext
28699 # Shared library suffix (normally ".so").
28700 shrext_cmds=$lt_shrext_cmds
28702 # The commands to extract the exported symbol list from a shared archive.
28703 extract_expsyms_cmds=$lt_extract_expsyms_cmds
28705 # Variables whose values should be saved in libtool wrapper scripts and
28706 # restored at link time.
28707 variables_saved_for_relink=$lt_variables_saved_for_relink
28709 # Do we need the "lib" prefix for modules?
28710 need_lib_prefix=$need_lib_prefix
28712 # Do we need a version for libraries?
28713 need_version=$need_version
28715 # Library versioning type.
28716 version_type=$version_type
28718 # Shared library runtime path variable.
28719 runpath_var=$runpath_var
28721 # Shared library path variable.
28722 shlibpath_var=$shlibpath_var
28724 # Is shlibpath searched before the hard-coded library search path?
28725 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
28727 # Format of library name prefix.
28728 libname_spec=$lt_libname_spec
28730 # List of archive names. First name is the real one, the rest are links.
28731 # The last name is the one that the linker finds with -lNAME
28732 library_names_spec=$lt_library_names_spec
28734 # The coded name of the library, if different from the real name.
28735 soname_spec=$lt_soname_spec
28737 # Permission mode override for installation of shared libraries.
28738 install_override_mode=$lt_install_override_mode
28740 # Command to use after installation of a shared archive.
28741 postinstall_cmds=$lt_postinstall_cmds
28743 # Command to use after uninstallation of a shared archive.
28744 postuninstall_cmds=$lt_postuninstall_cmds
28746 # Commands used to finish a libtool library installation in a directory.
28747 finish_cmds=$lt_finish_cmds
28749 # As "finish_cmds", except a single script fragment to be evaled but
28750 # not shown.
28751 finish_eval=$lt_finish_eval
28753 # Whether we should hardcode library paths into libraries.
28754 hardcode_into_libs=$hardcode_into_libs
28756 # Compile-time system search path for libraries.
28757 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
28759 # Run-time system search path for libraries.
28760 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
28762 # Whether dlopen is supported.
28763 dlopen_support=$enable_dlopen
28765 # Whether dlopen of programs is supported.
28766 dlopen_self=$enable_dlopen_self
28768 # Whether dlopen of statically linked programs is supported.
28769 dlopen_self_static=$enable_dlopen_self_static
28771 # Commands to strip libraries.
28772 old_striplib=$lt_old_striplib
28773 striplib=$lt_striplib
28776 # The linker used to build libraries.
28777 LD=$lt_LD
28779 # How to create reloadable object files.
28780 reload_flag=$lt_reload_flag
28781 reload_cmds=$lt_reload_cmds
28783 # Commands used to build an old-style archive.
28784 old_archive_cmds=$lt_old_archive_cmds
28786 # A language specific compiler.
28787 CC=$lt_compiler
28789 # Is the compiler the GNU compiler?
28790 with_gcc=$GCC
28792 # Compiler flag to turn off builtin functions.
28793 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
28795 # How to pass a linker flag through the compiler.
28796 wl=$lt_lt_prog_compiler_wl
28798 # Additional compiler flags for building library objects.
28799 pic_flag=$lt_lt_prog_compiler_pic
28801 # Compiler flag to prevent dynamic linking.
28802 link_static_flag=$lt_lt_prog_compiler_static
28804 # Does compiler simultaneously support -c and -o options?
28805 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
28807 # Whether or not to add -lc for building shared libraries.
28808 build_libtool_need_lc=$archive_cmds_need_lc
28810 # Whether or not to disallow shared libs when runtime libs are static.
28811 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
28813 # Compiler flag to allow reflexive dlopens.
28814 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
28816 # Compiler flag to generate shared objects directly from archives.
28817 whole_archive_flag_spec=$lt_whole_archive_flag_spec
28819 # Whether the compiler copes with passing no objects directly.
28820 compiler_needs_object=$lt_compiler_needs_object
28822 # Create an old-style archive from a shared archive.
28823 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
28825 # Create a temporary old-style archive to link instead of a shared archive.
28826 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
28828 # Commands used to build a shared archive.
28829 archive_cmds=$lt_archive_cmds
28830 archive_expsym_cmds=$lt_archive_expsym_cmds
28832 # Commands used to build a loadable module if different from building
28833 # a shared archive.
28834 module_cmds=$lt_module_cmds
28835 module_expsym_cmds=$lt_module_expsym_cmds
28837 # Whether we are building with GNU ld or not.
28838 with_gnu_ld=$lt_with_gnu_ld
28840 # Flag that allows shared libraries with undefined symbols to be built.
28841 allow_undefined_flag=$lt_allow_undefined_flag
28843 # Flag that enforces no undefined symbols.
28844 no_undefined_flag=$lt_no_undefined_flag
28846 # Flag to hardcode \$libdir into a binary during linking.
28847 # This must work even if \$libdir does not exist
28848 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
28850 # If ld is used when linking, flag to hardcode \$libdir into a binary
28851 # during linking. This must work even if \$libdir does not exist.
28852 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
28854 # Whether we need a single "-rpath" flag with a separated argument.
28855 hardcode_libdir_separator=$lt_hardcode_libdir_separator
28857 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28858 # DIR into the resulting binary.
28859 hardcode_direct=$hardcode_direct
28861 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
28862 # DIR into the resulting binary and the resulting library dependency is
28863 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
28864 # library is relocated.
28865 hardcode_direct_absolute=$hardcode_direct_absolute
28867 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
28868 # into the resulting binary.
28869 hardcode_minus_L=$hardcode_minus_L
28871 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
28872 # into the resulting binary.
28873 hardcode_shlibpath_var=$hardcode_shlibpath_var
28875 # Set to "yes" if building a shared library automatically hardcodes DIR
28876 # into the library and all subsequent libraries and executables linked
28877 # against it.
28878 hardcode_automatic=$hardcode_automatic
28880 # Set to yes if linker adds runtime paths of dependent libraries
28881 # to runtime path list.
28882 inherit_rpath=$inherit_rpath
28884 # Whether libtool must link a program against all its dependency libraries.
28885 link_all_deplibs=$link_all_deplibs
28887 # Fix the shell variable \$srcfile for the compiler.
28888 fix_srcfile_path=$lt_fix_srcfile_path
28890 # Set to "yes" if exported symbols are required.
28891 always_export_symbols=$always_export_symbols
28893 # The commands to list exported symbols.
28894 export_symbols_cmds=$lt_export_symbols_cmds
28896 # Symbols that should not be listed in the preloaded symbols.
28897 exclude_expsyms=$lt_exclude_expsyms
28899 # Symbols that must always be exported.
28900 include_expsyms=$lt_include_expsyms
28902 # Commands necessary for linking programs (against libraries) with templates.
28903 prelink_cmds=$lt_prelink_cmds
28905 # Specify filename containing input files.
28906 file_list_spec=$lt_file_list_spec
28908 # How to hardcode a shared library path into an executable.
28909 hardcode_action=$hardcode_action
28911 # The directories searched by this compiler when creating a shared library.
28912 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
28914 # Dependencies to place before and after the objects being linked to
28915 # create a shared library.
28916 predep_objects=$lt_predep_objects
28917 postdep_objects=$lt_postdep_objects
28918 predeps=$lt_predeps
28919 postdeps=$lt_postdeps
28921 # The library search path used internally by the compiler when linking
28922 # a shared library.
28923 compiler_lib_search_path=$lt_compiler_lib_search_path
28925 # ### END LIBTOOL CONFIG
28927 _LT_EOF
28929 case $host_os in
28930 aix3*)
28931 cat <<\_LT_EOF >> "$cfgfile"
28932 # AIX sometimes has problems with the GCC collect2 program. For some
28933 # reason, if we set the COLLECT_NAMES environment variable, the problems
28934 # vanish in a puff of smoke.
28935 if test "X${COLLECT_NAMES+set}" != Xset; then
28936 COLLECT_NAMES=
28937 export COLLECT_NAMES
28939 _LT_EOF
28941 esac
28944 ltmain="$ac_aux_dir/ltmain.sh"
28947 # We use sed instead of cat because bash on DJGPP gets confused if
28948 # if finds mixed CR/LF and LF-only lines. Since sed operates in
28949 # text mode, it properly converts lines to CR/LF. This bash problem
28950 # is reportedly fixed, but why not run on old versions too?
28951 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
28952 || (rm -f "$cfgfile"; exit 1)
28954 case $xsi_shell in
28955 yes)
28956 cat << \_LT_EOF >> "$cfgfile"
28958 # func_dirname file append nondir_replacement
28959 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
28960 # otherwise set result to NONDIR_REPLACEMENT.
28961 func_dirname ()
28963 case ${1} in
28964 */*) func_dirname_result="${1%/*}${2}" ;;
28965 * ) func_dirname_result="${3}" ;;
28966 esac
28969 # func_basename file
28970 func_basename ()
28972 func_basename_result="${1##*/}"
28975 # func_dirname_and_basename file append nondir_replacement
28976 # perform func_basename and func_dirname in a single function
28977 # call:
28978 # dirname: Compute the dirname of FILE. If nonempty,
28979 # add APPEND to the result, otherwise set result
28980 # to NONDIR_REPLACEMENT.
28981 # value returned in "$func_dirname_result"
28982 # basename: Compute filename of FILE.
28983 # value retuned in "$func_basename_result"
28984 # Implementation must be kept synchronized with func_dirname
28985 # and func_basename. For efficiency, we do not delegate to
28986 # those functions but instead duplicate the functionality here.
28987 func_dirname_and_basename ()
28989 case ${1} in
28990 */*) func_dirname_result="${1%/*}${2}" ;;
28991 * ) func_dirname_result="${3}" ;;
28992 esac
28993 func_basename_result="${1##*/}"
28996 # func_stripname prefix suffix name
28997 # strip PREFIX and SUFFIX off of NAME.
28998 # PREFIX and SUFFIX must not contain globbing or regex special
28999 # characters, hashes, percent signs, but SUFFIX may contain a leading
29000 # dot (in which case that matches only a dot).
29001 func_stripname ()
29003 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
29004 # positional parameters, so assign one to ordinary parameter first.
29005 func_stripname_result=${3}
29006 func_stripname_result=${func_stripname_result#"${1}"}
29007 func_stripname_result=${func_stripname_result%"${2}"}
29010 # func_opt_split
29011 func_opt_split ()
29013 func_opt_split_opt=${1%%=*}
29014 func_opt_split_arg=${1#*=}
29017 # func_lo2o object
29018 func_lo2o ()
29020 case ${1} in
29021 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
29022 *) func_lo2o_result=${1} ;;
29023 esac
29026 # func_xform libobj-or-source
29027 func_xform ()
29029 func_xform_result=${1%.*}.lo
29032 # func_arith arithmetic-term...
29033 func_arith ()
29035 func_arith_result=$(( $* ))
29038 # func_len string
29039 # STRING may not start with a hyphen.
29040 func_len ()
29042 func_len_result=${#1}
29045 _LT_EOF
29047 *) # Bourne compatible functions.
29048 cat << \_LT_EOF >> "$cfgfile"
29050 # func_dirname file append nondir_replacement
29051 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
29052 # otherwise set result to NONDIR_REPLACEMENT.
29053 func_dirname ()
29055 # Extract subdirectory from the argument.
29056 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
29057 if test "X$func_dirname_result" = "X${1}"; then
29058 func_dirname_result="${3}"
29059 else
29060 func_dirname_result="$func_dirname_result${2}"
29064 # func_basename file
29065 func_basename ()
29067 func_basename_result=`$ECHO "${1}" | $SED "$basename"`
29071 # func_stripname prefix suffix name
29072 # strip PREFIX and SUFFIX off of NAME.
29073 # PREFIX and SUFFIX must not contain globbing or regex special
29074 # characters, hashes, percent signs, but SUFFIX may contain a leading
29075 # dot (in which case that matches only a dot).
29076 # func_strip_suffix prefix name
29077 func_stripname ()
29079 case ${2} in
29080 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
29081 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
29082 esac
29085 # sed scripts:
29086 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
29087 my_sed_long_arg='1s/^-[^=]*=//'
29089 # func_opt_split
29090 func_opt_split ()
29092 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
29093 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
29096 # func_lo2o object
29097 func_lo2o ()
29099 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
29102 # func_xform libobj-or-source
29103 func_xform ()
29105 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
29108 # func_arith arithmetic-term...
29109 func_arith ()
29111 func_arith_result=`expr "$@"`
29114 # func_len string
29115 # STRING may not start with a hyphen.
29116 func_len ()
29118 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
29121 _LT_EOF
29122 esac
29124 case $lt_shell_append in
29125 yes)
29126 cat << \_LT_EOF >> "$cfgfile"
29128 # func_append var value
29129 # Append VALUE to the end of shell variable VAR.
29130 func_append ()
29132 eval "$1+=\$2"
29134 _LT_EOF
29137 cat << \_LT_EOF >> "$cfgfile"
29139 # func_append var value
29140 # Append VALUE to the end of shell variable VAR.
29141 func_append ()
29143 eval "$1=\$$1\$2"
29146 _LT_EOF
29148 esac
29151 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
29152 || (rm -f "$cfgfile"; exit 1)
29154 mv -f "$cfgfile" "$ofile" ||
29155 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
29156 chmod +x "$ofile"
29159 cat <<_LT_EOF >> "$ofile"
29161 # ### BEGIN LIBTOOL TAG CONFIG: FC
29163 # The linker used to build libraries.
29164 LD=$lt_LD_FC
29166 # How to create reloadable object files.
29167 reload_flag=$lt_reload_flag_FC
29168 reload_cmds=$lt_reload_cmds_FC
29170 # Commands used to build an old-style archive.
29171 old_archive_cmds=$lt_old_archive_cmds_FC
29173 # A language specific compiler.
29174 CC=$lt_compiler_FC
29176 # Is the compiler the GNU compiler?
29177 with_gcc=$GCC_FC
29179 # Compiler flag to turn off builtin functions.
29180 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC
29182 # How to pass a linker flag through the compiler.
29183 wl=$lt_lt_prog_compiler_wl_FC
29185 # Additional compiler flags for building library objects.
29186 pic_flag=$lt_lt_prog_compiler_pic_FC
29188 # Compiler flag to prevent dynamic linking.
29189 link_static_flag=$lt_lt_prog_compiler_static_FC
29191 # Does compiler simultaneously support -c and -o options?
29192 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC
29194 # Whether or not to add -lc for building shared libraries.
29195 build_libtool_need_lc=$archive_cmds_need_lc_FC
29197 # Whether or not to disallow shared libs when runtime libs are static.
29198 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC
29200 # Compiler flag to allow reflexive dlopens.
29201 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC
29203 # Compiler flag to generate shared objects directly from archives.
29204 whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC
29206 # Whether the compiler copes with passing no objects directly.
29207 compiler_needs_object=$lt_compiler_needs_object_FC
29209 # Create an old-style archive from a shared archive.
29210 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC
29212 # Create a temporary old-style archive to link instead of a shared archive.
29213 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC
29215 # Commands used to build a shared archive.
29216 archive_cmds=$lt_archive_cmds_FC
29217 archive_expsym_cmds=$lt_archive_expsym_cmds_FC
29219 # Commands used to build a loadable module if different from building
29220 # a shared archive.
29221 module_cmds=$lt_module_cmds_FC
29222 module_expsym_cmds=$lt_module_expsym_cmds_FC
29224 # Whether we are building with GNU ld or not.
29225 with_gnu_ld=$lt_with_gnu_ld_FC
29227 # Flag that allows shared libraries with undefined symbols to be built.
29228 allow_undefined_flag=$lt_allow_undefined_flag_FC
29230 # Flag that enforces no undefined symbols.
29231 no_undefined_flag=$lt_no_undefined_flag_FC
29233 # Flag to hardcode \$libdir into a binary during linking.
29234 # This must work even if \$libdir does not exist
29235 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC
29237 # If ld is used when linking, flag to hardcode \$libdir into a binary
29238 # during linking. This must work even if \$libdir does not exist.
29239 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC
29241 # Whether we need a single "-rpath" flag with a separated argument.
29242 hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC
29244 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29245 # DIR into the resulting binary.
29246 hardcode_direct=$hardcode_direct_FC
29248 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
29249 # DIR into the resulting binary and the resulting library dependency is
29250 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
29251 # library is relocated.
29252 hardcode_direct_absolute=$hardcode_direct_absolute_FC
29254 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
29255 # into the resulting binary.
29256 hardcode_minus_L=$hardcode_minus_L_FC
29258 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
29259 # into the resulting binary.
29260 hardcode_shlibpath_var=$hardcode_shlibpath_var_FC
29262 # Set to "yes" if building a shared library automatically hardcodes DIR
29263 # into the library and all subsequent libraries and executables linked
29264 # against it.
29265 hardcode_automatic=$hardcode_automatic_FC
29267 # Set to yes if linker adds runtime paths of dependent libraries
29268 # to runtime path list.
29269 inherit_rpath=$inherit_rpath_FC
29271 # Whether libtool must link a program against all its dependency libraries.
29272 link_all_deplibs=$link_all_deplibs_FC
29274 # Fix the shell variable \$srcfile for the compiler.
29275 fix_srcfile_path=$lt_fix_srcfile_path_FC
29277 # Set to "yes" if exported symbols are required.
29278 always_export_symbols=$always_export_symbols_FC
29280 # The commands to list exported symbols.
29281 export_symbols_cmds=$lt_export_symbols_cmds_FC
29283 # Symbols that should not be listed in the preloaded symbols.
29284 exclude_expsyms=$lt_exclude_expsyms_FC
29286 # Symbols that must always be exported.
29287 include_expsyms=$lt_include_expsyms_FC
29289 # Commands necessary for linking programs (against libraries) with templates.
29290 prelink_cmds=$lt_prelink_cmds_FC
29292 # Specify filename containing input files.
29293 file_list_spec=$lt_file_list_spec_FC
29295 # How to hardcode a shared library path into an executable.
29296 hardcode_action=$hardcode_action_FC
29298 # The directories searched by this compiler when creating a shared library.
29299 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_FC
29301 # Dependencies to place before and after the objects being linked to
29302 # create a shared library.
29303 predep_objects=$lt_predep_objects_FC
29304 postdep_objects=$lt_postdep_objects_FC
29305 predeps=$lt_predeps_FC
29306 postdeps=$lt_postdeps_FC
29308 # The library search path used internally by the compiler when linking
29309 # a shared library.
29310 compiler_lib_search_path=$lt_compiler_lib_search_path_FC
29312 # ### END LIBTOOL TAG CONFIG: FC
29313 _LT_EOF
29316 "gstdint.h":C)
29317 if test "$GCC" = yes; then
29318 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h
29319 else
29320 echo "/* generated for $CC */" > tmp-stdint.h
29323 sed 's/^ *//' >> tmp-stdint.h <<EOF
29325 #ifndef GCC_GENERATED_STDINT_H
29326 #define GCC_GENERATED_STDINT_H 1
29328 #include <sys/types.h>
29331 if test "$acx_cv_header_stdint" != stdint.h; then
29332 echo "#include <stddef.h>" >> tmp-stdint.h
29334 if test "$acx_cv_header_stdint" != stddef.h; then
29335 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h
29338 sed 's/^ *//' >> tmp-stdint.h <<EOF
29339 /* glibc uses these symbols as guards to prevent redefinitions. */
29340 #ifdef __int8_t_defined
29341 #define _INT8_T
29342 #define _INT16_T
29343 #define _INT32_T
29344 #endif
29345 #ifdef __uint32_t_defined
29346 #define _UINT32_T
29347 #endif
29351 # ----------------- done header, emit basic int types -------------
29352 if test "$acx_cv_header_stdint" = stddef.h; then
29353 sed 's/^ *//' >> tmp-stdint.h <<EOF
29355 #ifndef _UINT8_T
29356 #define _UINT8_T
29357 #ifndef __uint8_t_defined
29358 #define __uint8_t_defined
29359 #ifndef uint8_t
29360 typedef unsigned $acx_cv_type_int8_t uint8_t;
29361 #endif
29362 #endif
29363 #endif
29365 #ifndef _UINT16_T
29366 #define _UINT16_T
29367 #ifndef __uint16_t_defined
29368 #define __uint16_t_defined
29369 #ifndef uint16_t
29370 typedef unsigned $acx_cv_type_int16_t uint16_t;
29371 #endif
29372 #endif
29373 #endif
29375 #ifndef _UINT32_T
29376 #define _UINT32_T
29377 #ifndef __uint32_t_defined
29378 #define __uint32_t_defined
29379 #ifndef uint32_t
29380 typedef unsigned $acx_cv_type_int32_t uint32_t;
29381 #endif
29382 #endif
29383 #endif
29385 #ifndef _INT8_T
29386 #define _INT8_T
29387 #ifndef __int8_t_defined
29388 #define __int8_t_defined
29389 #ifndef int8_t
29390 typedef $acx_cv_type_int8_t int8_t;
29391 #endif
29392 #endif
29393 #endif
29395 #ifndef _INT16_T
29396 #define _INT16_T
29397 #ifndef __int16_t_defined
29398 #define __int16_t_defined
29399 #ifndef int16_t
29400 typedef $acx_cv_type_int16_t int16_t;
29401 #endif
29402 #endif
29403 #endif
29405 #ifndef _INT32_T
29406 #define _INT32_T
29407 #ifndef __int32_t_defined
29408 #define __int32_t_defined
29409 #ifndef int32_t
29410 typedef $acx_cv_type_int32_t int32_t;
29411 #endif
29412 #endif
29413 #endif
29415 elif test "$ac_cv_type_u_int32_t" = yes; then
29416 sed 's/^ *//' >> tmp-stdint.h <<EOF
29418 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */
29419 #ifndef _INT8_T
29420 #define _INT8_T
29421 #endif
29422 #ifndef _INT16_T
29423 #define _INT16_T
29424 #endif
29425 #ifndef _INT32_T
29426 #define _INT32_T
29427 #endif
29429 #ifndef _UINT8_T
29430 #define _UINT8_T
29431 #ifndef __uint8_t_defined
29432 #define __uint8_t_defined
29433 #ifndef uint8_t
29434 typedef u_int8_t uint8_t;
29435 #endif
29436 #endif
29437 #endif
29439 #ifndef _UINT16_T
29440 #define _UINT16_T
29441 #ifndef __uint16_t_defined
29442 #define __uint16_t_defined
29443 #ifndef uint16_t
29444 typedef u_int16_t uint16_t;
29445 #endif
29446 #endif
29447 #endif
29449 #ifndef _UINT32_T
29450 #define _UINT32_T
29451 #ifndef __uint32_t_defined
29452 #define __uint32_t_defined
29453 #ifndef uint32_t
29454 typedef u_int32_t uint32_t;
29455 #endif
29456 #endif
29457 #endif
29459 else
29460 sed 's/^ *//' >> tmp-stdint.h <<EOF
29462 /* Some systems have guard macros to prevent redefinitions, define them. */
29463 #ifndef _INT8_T
29464 #define _INT8_T
29465 #endif
29466 #ifndef _INT16_T
29467 #define _INT16_T
29468 #endif
29469 #ifndef _INT32_T
29470 #define _INT32_T
29471 #endif
29472 #ifndef _UINT8_T
29473 #define _UINT8_T
29474 #endif
29475 #ifndef _UINT16_T
29476 #define _UINT16_T
29477 #endif
29478 #ifndef _UINT32_T
29479 #define _UINT32_T
29480 #endif
29484 # ------------- done basic int types, emit int64_t types ------------
29485 if test "$ac_cv_type_uint64_t" = yes; then
29486 sed 's/^ *//' >> tmp-stdint.h <<EOF
29488 /* system headers have good uint64_t and int64_t */
29489 #ifndef _INT64_T
29490 #define _INT64_T
29491 #endif
29492 #ifndef _UINT64_T
29493 #define _UINT64_T
29494 #endif
29496 elif test "$ac_cv_type_u_int64_t" = yes; then
29497 sed 's/^ *//' >> tmp-stdint.h <<EOF
29499 /* system headers have an u_int64_t (and int64_t) */
29500 #ifndef _INT64_T
29501 #define _INT64_T
29502 #endif
29503 #ifndef _UINT64_T
29504 #define _UINT64_T
29505 #ifndef __uint64_t_defined
29506 #define __uint64_t_defined
29507 #ifndef uint64_t
29508 typedef u_int64_t uint64_t;
29509 #endif
29510 #endif
29511 #endif
29513 elif test -n "$acx_cv_type_int64_t"; then
29514 sed 's/^ *//' >> tmp-stdint.h <<EOF
29516 /* architecture has a 64-bit type, $acx_cv_type_int64_t */
29517 #ifndef _INT64_T
29518 #define _INT64_T
29519 #ifndef int64_t
29520 typedef $acx_cv_type_int64_t int64_t;
29521 #endif
29522 #endif
29523 #ifndef _UINT64_T
29524 #define _UINT64_T
29525 #ifndef __uint64_t_defined
29526 #define __uint64_t_defined
29527 #ifndef uint64_t
29528 typedef unsigned $acx_cv_type_int64_t uint64_t;
29529 #endif
29530 #endif
29531 #endif
29533 else
29534 sed 's/^ *//' >> tmp-stdint.h <<EOF
29536 /* some common heuristics for int64_t, using compiler-specific tests */
29537 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L
29538 #ifndef _INT64_T
29539 #define _INT64_T
29540 #ifndef __int64_t_defined
29541 #ifndef int64_t
29542 typedef long long int64_t;
29543 #endif
29544 #endif
29545 #endif
29546 #ifndef _UINT64_T
29547 #define _UINT64_T
29548 #ifndef uint64_t
29549 typedef unsigned long long uint64_t;
29550 #endif
29551 #endif
29553 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0
29554 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and
29555 does not implement __extension__. But that compiler doesn't define
29556 __GNUC_MINOR__. */
29557 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__)
29558 # define __extension__
29559 # endif
29561 # ifndef _INT64_T
29562 # define _INT64_T
29563 # ifndef int64_t
29564 __extension__ typedef long long int64_t;
29565 # endif
29566 # endif
29567 # ifndef _UINT64_T
29568 # define _UINT64_T
29569 # ifndef uint64_t
29570 __extension__ typedef unsigned long long uint64_t;
29571 # endif
29572 # endif
29574 #elif !defined __STRICT_ANSI__
29575 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__
29577 # ifndef _INT64_T
29578 # define _INT64_T
29579 # ifndef int64_t
29580 typedef __int64 int64_t;
29581 # endif
29582 # endif
29583 # ifndef _UINT64_T
29584 # define _UINT64_T
29585 # ifndef uint64_t
29586 typedef unsigned __int64 uint64_t;
29587 # endif
29588 # endif
29589 # endif /* compiler */
29591 #endif /* ANSI version */
29595 # ------------- done int64_t types, emit intptr types ------------
29596 if test "$ac_cv_type_uintptr_t" != yes; then
29597 sed 's/^ *//' >> tmp-stdint.h <<EOF
29599 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */
29600 #ifndef __uintptr_t_defined
29601 #ifndef uintptr_t
29602 typedef u$acx_cv_type_intptr_t uintptr_t;
29603 #endif
29604 #endif
29605 #ifndef __intptr_t_defined
29606 #ifndef intptr_t
29607 typedef $acx_cv_type_intptr_t intptr_t;
29608 #endif
29609 #endif
29613 # ------------- done intptr types, emit int_least types ------------
29614 if test "$ac_cv_type_int_least32_t" != yes; then
29615 sed 's/^ *//' >> tmp-stdint.h <<EOF
29617 /* Define int_least types */
29618 typedef int8_t int_least8_t;
29619 typedef int16_t int_least16_t;
29620 typedef int32_t int_least32_t;
29621 #ifdef _INT64_T
29622 typedef int64_t int_least64_t;
29623 #endif
29625 typedef uint8_t uint_least8_t;
29626 typedef uint16_t uint_least16_t;
29627 typedef uint32_t uint_least32_t;
29628 #ifdef _UINT64_T
29629 typedef uint64_t uint_least64_t;
29630 #endif
29634 # ------------- done intptr types, emit int_fast types ------------
29635 if test "$ac_cv_type_int_fast32_t" != yes; then
29636 sed 's/^ *//' >> tmp-stdint.h <<EOF
29638 /* Define int_fast types. short is often slow */
29639 typedef int8_t int_fast8_t;
29640 typedef int int_fast16_t;
29641 typedef int32_t int_fast32_t;
29642 #ifdef _INT64_T
29643 typedef int64_t int_fast64_t;
29644 #endif
29646 typedef uint8_t uint_fast8_t;
29647 typedef unsigned int uint_fast16_t;
29648 typedef uint32_t uint_fast32_t;
29649 #ifdef _UINT64_T
29650 typedef uint64_t uint_fast64_t;
29651 #endif
29655 if test "$ac_cv_type_uintmax_t" != yes; then
29656 sed 's/^ *//' >> tmp-stdint.h <<EOF
29658 /* Define intmax based on what we found */
29659 #ifndef intmax_t
29660 #ifdef _INT64_T
29661 typedef int64_t intmax_t;
29662 #else
29663 typedef long intmax_t;
29664 #endif
29665 #endif
29666 #ifndef uintmax_t
29667 #ifdef _UINT64_T
29668 typedef uint64_t uintmax_t;
29669 #else
29670 typedef unsigned long uintmax_t;
29671 #endif
29672 #endif
29676 sed 's/^ *//' >> tmp-stdint.h <<EOF
29678 #endif /* GCC_GENERATED_STDINT_H */
29681 if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then
29682 rm -f tmp-stdint.h
29683 else
29684 mv -f tmp-stdint.h gstdint.h
29689 esac
29690 done # for ac_tag
29693 as_fn_exit 0
29694 _ACEOF
29695 ac_clean_files=$ac_clean_files_save
29697 test $ac_write_fail = 0 ||
29698 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
29701 # configure is writing to config.log, and then calls config.status.
29702 # config.status does its own redirection, appending to config.log.
29703 # Unfortunately, on DOS this fails, as config.log is still kept open
29704 # by configure, so config.status won't be able to write to it; its
29705 # output is simply discarded. So we exec the FD to /dev/null,
29706 # effectively closing config.log, so it can be properly (re)opened and
29707 # appended to by config.status. When coming back to configure, we
29708 # need to make the FD available again.
29709 if test "$no_create" != yes; then
29710 ac_cs_success=:
29711 ac_config_status_args=
29712 test "$silent" = yes &&
29713 ac_config_status_args="$ac_config_status_args --quiet"
29714 exec 5>/dev/null
29715 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
29716 exec 5>>config.log
29717 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
29718 # would make configure fail if this is the last instruction.
29719 $ac_cs_success || as_fn_exit $?
29721 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
29722 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
29723 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}