2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.64 for MPFR 2.4.2.
6 # Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
7 # Contributed by the Arenaire and Cacao projects, INRIA.
9 # This file is part of the GNU MPFR Library.
11 # The GNU MPFR Library is free software; you can redistribute it and/or modify
12 # it under the terms of the GNU Lesser General Public License as published
13 # by the Free Software Foundation; either version 2.1 of the License, or (at
14 # your option) any later version.
16 # The GNU MPFR Library is distributed in the hope that it will be useful, but
17 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
18 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
19 # License for more details.
21 # You should have received a copy of the GNU Lesser General Public License
22 # along with the GNU MPFR Library; see the file COPYING.LIB. If not, write to
23 # the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
27 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
28 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software
31 # This configure script is free software; the Free Software Foundation
32 # gives unlimited permission to copy, distribute and modify it.
33 ## -------------------- ##
34 ## M4sh Initialization. ##
35 ## -------------------- ##
37 # Be more Bourne compatible
38 DUALCASE=1; export DUALCASE # for MKS sh
39 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
42 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
43 # is contrary to our usage. Disable this feature.
44 alias -g '${1+"$@"}'='"$@"'
47 case `(set -o) 2>/dev/null` in #(
59 # Printing a long string crashes Solaris 7 /usr/bin/printf.
60 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
61 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
62 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
63 # Prefer a ksh shell builtin over an external printf program on Solaris,
64 # but without wasting forks for bash or zsh.
65 if test -z "$BASH_VERSION$ZSH_VERSION" \
66 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
68 as_echo_n='print -rn --'
69 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
73 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
74 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
75 as_echo_n='/usr/ucb/echo -n'
77 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
82 expr "X$arg" : "X\\(.*\\)$as_nl";
83 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
85 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
88 as_echo_n='sh -c $as_echo_n_body as_echo'
91 as_echo='sh -c $as_echo_body as_echo'
94 # The user is always right.
95 if test "${PATH_SEPARATOR+set}" != set; then
97 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
98 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
105 # We need space, tab and new line, in precisely that order. Quoting is
106 # there to prevent editors from complaining about space-tab.
107 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
108 # splitting by setting IFS to empty value.)
111 # Find who we are. Look in the path if we contain no directory separator.
113 *[\\/]* ) as_myself=$0 ;;
114 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
118 test -z "$as_dir" && as_dir=.
119 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
125 # We did not find ourselves, most probably we were run as `sh COMMAND'
126 # in which case we are not to be found in the path.
127 if test "x$as_myself" = x; then
130 if test ! -f "$as_myself"; then
131 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
135 # Unset variables that we do not need and which cause bugs (e.g. in
136 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
137 # suppresses any "Segmentation fault" message there. '((' could
138 # trigger a bug in pdksh 5.2.14.
139 for as_var in BASH_ENV ENV MAIL MAILPATH
140 do eval test x\${$as_var+set} = xset \
141 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
154 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
156 if test "x$CONFIG_SHELL" = x; then
157 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
160 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
161 # is contrary to our usage. Disable this feature.
162 alias -g '\${1+\"\$@\"}'='\"\$@\"'
165 case \`(set -o) 2>/dev/null\` in #(
173 as_required="as_fn_return () { (exit \$1); }
174 as_fn_success () { as_fn_return 0; }
175 as_fn_failure () { as_fn_return 1; }
176 as_fn_ret_success () { return 0; }
177 as_fn_ret_failure () { return 1; }
180 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
181 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
182 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
183 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
184 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
187 exitcode=1; echo positional parameters were not saved.
189 test x\$exitcode = x0 || exit 1"
190 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
191 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
192 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
193 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
194 test \$(( 1 + 1 )) = 2 || exit 1"
195 if (eval "$as_required") 2>/dev/null; then :
200 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
203 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
205 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
208 test -z "$as_dir" && as_dir=.
212 for as_base in sh bash ksh sh5; do
213 # Try only shells that exist, to save several forks.
214 as_shell=$as_dir/$as_base
215 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
216 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
217 CONFIG_SHELL=$as_shell as_have_required=yes
218 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
227 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
228 CONFIG_SHELL=$SHELL as_have_required=yes
233 if test "x$CONFIG_SHELL" != x; then :
234 # We cannot yet assume a decent shell, so we have to provide a
235 # neutralization value for shells without unset; and this also
236 # works around shells that cannot unset nonexistent variables.
239 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
241 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
244 if test x$as_have_required = xno; then :
245 $as_echo "$0: This script requires a shell more modern than all"
246 $as_echo "$0: the shells that I found on your system."
247 if test x${ZSH_VERSION+set} = xset ; then
248 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
249 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
251 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
252 $0: including any error possibly output before this
253 $0: message. Then install a modern shell, or manually run
254 $0: the script under such a shell if you do have one."
260 SHELL=${CONFIG_SHELL-/bin/sh}
262 # Unset more variables known to interfere with behavior of common tools.
263 CLICOLOR_FORCE= GREP_OPTIONS=
264 unset CLICOLOR_FORCE GREP_OPTIONS
266 ## --------------------- ##
267 ## M4sh Shell Functions. ##
268 ## --------------------- ##
271 # Portably unset VAR.
274 { eval $1=; unset $1;}
278 # as_fn_set_status STATUS
279 # -----------------------
280 # Set $? to STATUS, without forking.
288 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
298 # Create "$as_dir" as a directory, including parents if necessary.
303 -*) as_dir=./$as_dir;;
305 test -d "$as_dir" || eval $as_mkdir_p || {
309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
312 as_dirs="'$as_qdir' $as_dirs"
313 as_dir=`$as_dirname -- "$as_dir" ||
314 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
315 X"$as_dir" : 'X\(//\)[^/]' \| \
316 X"$as_dir" : 'X\(//\)$' \| \
317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
318 $as_echo X"$as_dir" |
319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 test -d "$as_dir" && break
338 test -z "$as_dirs" || eval "mkdir $as_dirs"
339 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
343 # as_fn_append VAR VALUE
344 # ----------------------
345 # Append the text in VALUE to the end of the definition contained in VAR. Take
346 # advantage of any shell optimizations that allow amortized linear growth over
347 # repeated appends, instead of the typical quadratic growth present in naive
349 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
350 eval 'as_fn_append ()
363 # Perform arithmetic evaluation on the ARGs, and store the result in the
364 # global $as_val. Take advantage of shells that can avoid forks. The arguments
365 # must be portable across $(()) and expr.
366 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
374 as_val=`expr "$@" || test $? -eq 1`
379 # as_fn_error ERROR [LINENO LOG_FD]
380 # ---------------------------------
381 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
382 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
383 # script with status $?, using 1 if that was 0.
386 as_status=$?; test $as_status -eq 0 && as_status=1
388 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
389 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
391 $as_echo "$as_me: error: $1" >&2
392 as_fn_exit $as_status
395 if expr a : '\(a\)' >/dev/null 2>&1 &&
396 test "X`expr 00001 : '.*\(...\)'`" = X001; then
402 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
408 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
414 as_me=`$as_basename -- "$0" ||
415 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
416 X"$0" : 'X\(//\)$' \| \
417 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
419 sed '/^.*\/\([^/][^/]*\)\/*$/{
433 # Avoid depending upon Character Ranges.
434 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
435 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
436 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
437 as_cr_digits='0123456789'
438 as_cr_alnum=$as_cr_Letters$as_cr_digits
441 as_lineno_1=$LINENO as_lineno_1a=$LINENO
442 as_lineno_2=$LINENO as_lineno_2a=$LINENO
443 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
444 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
445 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
457 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
461 chmod +x "$as_me.lineno" ||
462 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
464 # Don't try to exec as it changes $[0], causing all sort of problems
465 # (the dirname of $[0] is not the place where we might find the
466 # original and so on. Autoconf is especially sensitive to this).
468 # Exit status is that of the last command.
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in #(((((
475 case `echo 'xy\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
485 rm -f conf$$ conf$$.exe conf$$.file
486 if test -d conf$$.dir; then
487 rm -f conf$$.dir/conf$$.file
490 mkdir conf$$.dir 2>/dev/null
492 if (echo >conf$$.file) 2>/dev/null; then
493 if ln -s conf$$.file conf$$ 2>/dev/null; then
495 # ... but there are two gotchas:
496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
498 # In both cases, we have to default to `cp -p'.
499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501 elif ln conf$$.file conf$$ 2>/dev/null; then
509 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
510 rmdir conf$$.dir 2>/dev/null
512 if mkdir -p . 2>/dev/null; then
513 as_mkdir_p='mkdir -p "$as_dir"'
515 test -d ./-p && rmdir ./-p
519 if test -x / >/dev/null 2>&1; then
522 if ls -dL / >/dev/null 2>&1; then
529 if test -d "$1"; then
535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
536 ???[sx]*):;;*)false;;esac;fi
540 as_executable_p=$as_test_x
542 # Sed expression to map a string onto a valid CPP name.
543 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
545 # Sed expression to map a string onto a valid variable name.
546 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
550 # Check that we are running under the correct shell.
551 SHELL=${CONFIG_SHELL-/bin/sh}
555 # Remove one level of quotation (which was required for Make).
556 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
561 if test "X$1" = X--no-reexec; then
562 # Discard the --no-reexec flag, and continue.
564 elif test "X$1" = X--fallback-echo; then
565 # Avoid inline document here, it may be left over
567 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
568 # Yippee, $ECHO works!
571 # Restart under the correct shell.
572 exec $SHELL "$0" --no-reexec ${1+"$@"}
575 if test "X$1" = X--fallback-echo; then
576 # used as fallback echo
584 # The HP-UX ksh and POSIX shell print the target directory to stdout
586 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
588 if test -z "$lt_ECHO"; then
589 if test "X${echo_test_string+set}" != Xset; then
590 # find a string as large as possible, as long as the shell can cope with it
591 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
592 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
593 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
594 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
601 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
602 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
603 test "X$echo_testing_string" = "X$echo_test_string"; then
606 # The Solaris, AIX, and Digital Unix default echo programs unquote
607 # backslashes. This makes it impossible to quote backslashes using
608 # echo "$something" | sed 's/\\/\\\\/g'
610 # So, first we look for a working echo in the user's PATH.
612 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
613 for dir in $PATH /usr/ucb; do
615 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
616 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
617 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
618 test "X$echo_testing_string" = "X$echo_test_string"; then
625 if test "X$ECHO" = Xecho; then
626 # We didn't find a better echo, so look for alternatives.
627 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
628 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
629 test "X$echo_testing_string" = "X$echo_test_string"; then
630 # This shell has a builtin print -r that does the trick.
632 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
633 test "X$CONFIG_SHELL" != X/bin/ksh; then
634 # If we have ksh, try running configure again with it.
635 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
636 export ORIGINAL_CONFIG_SHELL
637 CONFIG_SHELL=/bin/ksh
639 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
643 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
644 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
645 test "X$echo_testing_string" = "X$echo_test_string"; then
648 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
649 test "X$echo_testing_string" = 'X\t' &&
650 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
651 test "X$echo_testing_string" = "X$echo_test_string"; then
652 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
654 SHELL="$CONFIG_SHELL"
656 ECHO="$CONFIG_SHELL $0 --fallback-echo"
657 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
658 test "X$echo_testing_string" = 'X\t' &&
659 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
660 test "X$echo_testing_string" = "X$echo_test_string"; then
661 ECHO="$CONFIG_SHELL $0 --fallback-echo"
663 # maybe with a smaller string...
666 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
667 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
674 if test "$prev" != 'sed 50q "$0"'; then
675 echo_test_string=`eval $prev`
676 export echo_test_string
677 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
679 # Oops. We lost completely, so just stick with echo.
688 # Copy echo and quote the copy suitably for passing to libtool from
689 # the Makefile, instead of quoting the original, which is used later.
691 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
692 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
698 exec 7<&0 </dev/null 6>&1
701 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
702 # so uname gets run too.
703 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
708 ac_default_prefix=/usr/local
710 ac_config_libobj_dir=.
717 # Identity of this package.
719 PACKAGE_TARNAME='mpfr'
720 PACKAGE_VERSION='2.4.2'
721 PACKAGE_STRING='MPFR 2.4.2'
725 # Factoring default headers for most tests.
726 ac_includes_default="\
728 #ifdef HAVE_SYS_TYPES_H
729 # include <sys/types.h>
731 #ifdef HAVE_SYS_STAT_H
732 # include <sys/stat.h>
738 # ifdef HAVE_STDLIB_H
743 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
748 #ifdef HAVE_STRINGS_H
749 # include <strings.h>
751 #ifdef HAVE_INTTYPES_H
752 # include <inttypes.h>
761 ac_subst_vars='am__EXEEXT_FALSE
826 MAINTAINER_MODE_FALSE
836 INSTALL_STRIP_PROGRAM
878 program_transform_name
891 enable_option_checking
892 enable_maintainer_mode
903 enable_dependency_tracking
912 ac_precious_vars='build_alias
929 # Initialize some variables set by options.
931 ac_init_version=false
932 ac_unrecognized_opts=
934 # The variables have the same names as the options, with
935 # dashes changed to underlines.
943 program_transform_name=s,x,x,
951 # Installation directory options.
952 # These are left unexpanded so users can "make install exec_prefix=/foo"
953 # and all the variables that are supposed to be based on exec_prefix
954 # by default will actually change.
955 # Use braces instead of parens because sh, perl, etc. also accept them.
956 # (The list follows the same order as the GNU Coding Standards.)
957 bindir='${exec_prefix}/bin'
958 sbindir='${exec_prefix}/sbin'
959 libexecdir='${exec_prefix}/libexec'
960 datarootdir='${prefix}/share'
961 datadir='${datarootdir}'
962 sysconfdir='${prefix}/etc'
963 sharedstatedir='${prefix}/com'
964 localstatedir='${prefix}/var'
965 includedir='${prefix}/include'
966 oldincludedir='/usr/include'
967 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
968 infodir='${datarootdir}/info'
973 libdir='${exec_prefix}/lib'
974 localedir='${datarootdir}/locale'
975 mandir='${datarootdir}/man'
981 # If the previous option needs an argument, assign it.
982 if test -n "$ac_prev"; then
983 eval $ac_prev=\$ac_option
989 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
993 # Accept the important Cygnus configure options, so we can diagnose typos.
995 case $ac_dashdash$ac_option in
999 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1001 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1002 bindir=$ac_optarg ;;
1004 -build | --build | --buil | --bui | --bu)
1005 ac_prev=build_alias ;;
1006 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1007 build_alias=$ac_optarg ;;
1009 -cache-file | --cache-file | --cache-fil | --cache-fi \
1010 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1011 ac_prev=cache_file ;;
1012 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1013 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1014 cache_file=$ac_optarg ;;
1016 --config-cache | -C)
1017 cache_file=config.cache ;;
1019 -datadir | --datadir | --datadi | --datad)
1021 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1022 datadir=$ac_optarg ;;
1024 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1025 | --dataroo | --dataro | --datar)
1026 ac_prev=datarootdir ;;
1027 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1028 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1029 datarootdir=$ac_optarg ;;
1031 -disable-* | --disable-*)
1032 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1033 # Reject names that are not valid shell variable names.
1034 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1035 as_fn_error "invalid feature name: $ac_useropt"
1036 ac_useropt_orig=$ac_useropt
1037 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1038 case $ac_user_opts in
1040 "enable_$ac_useropt"
1042 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1043 ac_unrecognized_sep=', ';;
1045 eval enable_$ac_useropt=no ;;
1047 -docdir | --docdir | --docdi | --doc | --do)
1049 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1050 docdir=$ac_optarg ;;
1052 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1054 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1055 dvidir=$ac_optarg ;;
1057 -enable-* | --enable-*)
1058 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1059 # Reject names that are not valid shell variable names.
1060 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1061 as_fn_error "invalid feature name: $ac_useropt"
1062 ac_useropt_orig=$ac_useropt
1063 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1064 case $ac_user_opts in
1066 "enable_$ac_useropt"
1068 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1069 ac_unrecognized_sep=', ';;
1071 eval enable_$ac_useropt=\$ac_optarg ;;
1073 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1074 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1075 | --exec | --exe | --ex)
1076 ac_prev=exec_prefix ;;
1077 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1078 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1079 | --exec=* | --exe=* | --ex=*)
1080 exec_prefix=$ac_optarg ;;
1082 -gas | --gas | --ga | --g)
1083 # Obsolete; use --with-gas.
1086 -help | --help | --hel | --he | -h)
1087 ac_init_help=long ;;
1088 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1089 ac_init_help=recursive ;;
1090 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1091 ac_init_help=short ;;
1093 -host | --host | --hos | --ho)
1094 ac_prev=host_alias ;;
1095 -host=* | --host=* | --hos=* | --ho=*)
1096 host_alias=$ac_optarg ;;
1098 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1100 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1102 htmldir=$ac_optarg ;;
1104 -includedir | --includedir | --includedi | --included | --include \
1105 | --includ | --inclu | --incl | --inc)
1106 ac_prev=includedir ;;
1107 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1108 | --includ=* | --inclu=* | --incl=* | --inc=*)
1109 includedir=$ac_optarg ;;
1111 -infodir | --infodir | --infodi | --infod | --info | --inf)
1113 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1114 infodir=$ac_optarg ;;
1116 -libdir | --libdir | --libdi | --libd)
1118 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1119 libdir=$ac_optarg ;;
1121 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1122 | --libexe | --libex | --libe)
1123 ac_prev=libexecdir ;;
1124 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1125 | --libexe=* | --libex=* | --libe=*)
1126 libexecdir=$ac_optarg ;;
1128 -localedir | --localedir | --localedi | --localed | --locale)
1129 ac_prev=localedir ;;
1130 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1131 localedir=$ac_optarg ;;
1133 -localstatedir | --localstatedir | --localstatedi | --localstated \
1134 | --localstate | --localstat | --localsta | --localst | --locals)
1135 ac_prev=localstatedir ;;
1136 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1137 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1138 localstatedir=$ac_optarg ;;
1140 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1142 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1143 mandir=$ac_optarg ;;
1145 -nfp | --nfp | --nf)
1146 # Obsolete; use --without-fp.
1149 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1150 | --no-cr | --no-c | -n)
1153 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1154 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1157 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1158 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1159 | --oldin | --oldi | --old | --ol | --o)
1160 ac_prev=oldincludedir ;;
1161 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1162 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1163 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1164 oldincludedir=$ac_optarg ;;
1166 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1168 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1169 prefix=$ac_optarg ;;
1171 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1172 | --program-pre | --program-pr | --program-p)
1173 ac_prev=program_prefix ;;
1174 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1175 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1176 program_prefix=$ac_optarg ;;
1178 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1179 | --program-suf | --program-su | --program-s)
1180 ac_prev=program_suffix ;;
1181 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1182 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1183 program_suffix=$ac_optarg ;;
1185 -program-transform-name | --program-transform-name \
1186 | --program-transform-nam | --program-transform-na \
1187 | --program-transform-n | --program-transform- \
1188 | --program-transform | --program-transfor \
1189 | --program-transfo | --program-transf \
1190 | --program-trans | --program-tran \
1191 | --progr-tra | --program-tr | --program-t)
1192 ac_prev=program_transform_name ;;
1193 -program-transform-name=* | --program-transform-name=* \
1194 | --program-transform-nam=* | --program-transform-na=* \
1195 | --program-transform-n=* | --program-transform-=* \
1196 | --program-transform=* | --program-transfor=* \
1197 | --program-transfo=* | --program-transf=* \
1198 | --program-trans=* | --program-tran=* \
1199 | --progr-tra=* | --program-tr=* | --program-t=*)
1200 program_transform_name=$ac_optarg ;;
1202 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1204 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1205 pdfdir=$ac_optarg ;;
1207 -psdir | --psdir | --psdi | --psd | --ps)
1209 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1212 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1213 | -silent | --silent | --silen | --sile | --sil)
1216 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1218 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1220 sbindir=$ac_optarg ;;
1222 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1223 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1224 | --sharedst | --shareds | --shared | --share | --shar \
1226 ac_prev=sharedstatedir ;;
1227 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1228 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1229 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1231 sharedstatedir=$ac_optarg ;;
1233 -site | --site | --sit)
1235 -site=* | --site=* | --sit=*)
1238 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1240 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1241 srcdir=$ac_optarg ;;
1243 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1244 | --syscon | --sysco | --sysc | --sys | --sy)
1245 ac_prev=sysconfdir ;;
1246 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1247 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1248 sysconfdir=$ac_optarg ;;
1250 -target | --target | --targe | --targ | --tar | --ta | --t)
1251 ac_prev=target_alias ;;
1252 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1253 target_alias=$ac_optarg ;;
1255 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1258 -version | --version | --versio | --versi | --vers | -V)
1259 ac_init_version=: ;;
1262 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1263 # Reject names that are not valid shell variable names.
1264 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1265 as_fn_error "invalid package name: $ac_useropt"
1266 ac_useropt_orig=$ac_useropt
1267 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1268 case $ac_user_opts in
1272 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1273 ac_unrecognized_sep=', ';;
1275 eval with_$ac_useropt=\$ac_optarg ;;
1277 -without-* | --without-*)
1278 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1279 # Reject names that are not valid shell variable names.
1280 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1281 as_fn_error "invalid package name: $ac_useropt"
1282 ac_useropt_orig=$ac_useropt
1283 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1284 case $ac_user_opts in
1288 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1289 ac_unrecognized_sep=', ';;
1291 eval with_$ac_useropt=no ;;
1294 # Obsolete; use --with-x.
1297 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1298 | --x-incl | --x-inc | --x-in | --x-i)
1299 ac_prev=x_includes ;;
1300 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1301 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1302 x_includes=$ac_optarg ;;
1304 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1305 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1306 ac_prev=x_libraries ;;
1307 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1308 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1309 x_libraries=$ac_optarg ;;
1311 -*) as_fn_error "unrecognized option: \`$ac_option'
1312 Try \`$0 --help' for more information."
1316 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1317 # Reject names that are not valid shell variable names.
1318 case $ac_envvar in #(
1319 '' | [0-9]* | *[!_$as_cr_alnum]* )
1320 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1322 eval $ac_envvar=\$ac_optarg
1323 export $ac_envvar ;;
1326 # FIXME: should be removed in autoconf 3.0.
1327 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1328 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1329 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1330 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1336 if test -n "$ac_prev"; then
1337 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1338 as_fn_error "missing argument to $ac_option"
1341 if test -n "$ac_unrecognized_opts"; then
1342 case $enable_option_checking in
1344 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1345 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1349 # Check all directory arguments for consistency.
1350 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1351 datadir sysconfdir sharedstatedir localstatedir includedir \
1352 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1353 libdir localedir mandir
1355 eval ac_val=\$$ac_var
1356 # Remove trailing slashes.
1359 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1360 eval $ac_var=\$ac_val;;
1362 # Be sure to have absolute directory names.
1364 [\\/$]* | ?:[\\/]* ) continue;;
1365 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1367 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1370 # There might be people who depend on the old broken behavior: `$host'
1371 # used to hold the argument of --host etc.
1372 # FIXME: To remove some day.
1375 target=$target_alias
1377 # FIXME: To remove some day.
1378 if test "x$host_alias" != x; then
1379 if test "x$build_alias" = x; then
1380 cross_compiling=maybe
1381 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1382 If a cross compiler is detected then cross compile mode will be used." >&2
1383 elif test "x$build_alias" != "x$host_alias"; then
1389 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1391 test "$silent" = yes && exec 6>/dev/null
1394 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1395 ac_ls_di=`ls -di .` &&
1396 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1397 as_fn_error "working directory cannot be determined"
1398 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1399 as_fn_error "pwd does not report name of working directory"
1402 # Find the source files, if location was not specified.
1403 if test -z "$srcdir"; then
1404 ac_srcdir_defaulted=yes
1405 # Try the directory containing this script, then the parent directory.
1406 ac_confdir=`$as_dirname -- "$as_myself" ||
1407 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1408 X"$as_myself" : 'X\(//\)[^/]' \| \
1409 X"$as_myself" : 'X\(//\)$' \| \
1410 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1411 $as_echo X"$as_myself" |
1412 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1430 if test ! -r "$srcdir/$ac_unique_file"; then
1434 ac_srcdir_defaulted=no
1436 if test ! -r "$srcdir/$ac_unique_file"; then
1437 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1438 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1440 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1442 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1444 # When building in place, set srcdir=.
1445 if test "$ac_abs_confdir" = "$ac_pwd"; then
1448 # Remove unnecessary trailing slashes from srcdir.
1449 # Double slashes in file names in object file debugging info
1450 # mess up M-x gdb in Emacs.
1452 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1454 for ac_var in $ac_precious_vars; do
1455 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1456 eval ac_env_${ac_var}_value=\$${ac_var}
1457 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1458 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1462 # Report the --help message.
1464 if test "$ac_init_help" = "long"; then
1465 # Omit some internal or obsolete options to make the list less imposing.
1466 # This message is too long to be a string in the A/UX 3.1 sh.
1468 \`configure' configures MPFR 2.4.2 to adapt to many kinds of systems.
1470 Usage: $0 [OPTION]... [VAR=VALUE]...
1472 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1473 VAR=VALUE. See below for descriptions of some of the useful variables.
1475 Defaults for the options are specified in brackets.
1478 -h, --help display this help and exit
1479 --help=short display options specific to this package
1480 --help=recursive display the short help of all the included packages
1481 -V, --version display version information and exit
1482 -q, --quiet, --silent do not print \`checking...' messages
1483 --cache-file=FILE cache test results in FILE [disabled]
1484 -C, --config-cache alias for \`--cache-file=config.cache'
1485 -n, --no-create do not create output files
1486 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1488 Installation directories:
1489 --prefix=PREFIX install architecture-independent files in PREFIX
1490 [$ac_default_prefix]
1491 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1494 By default, \`make install' will install all the files in
1495 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1496 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1497 for instance \`--prefix=\$HOME'.
1499 For better control, use the options below.
1501 Fine tuning of the installation directories:
1502 --bindir=DIR user executables [EPREFIX/bin]
1503 --sbindir=DIR system admin executables [EPREFIX/sbin]
1504 --libexecdir=DIR program executables [EPREFIX/libexec]
1505 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1506 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1507 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1508 --libdir=DIR object code libraries [EPREFIX/lib]
1509 --includedir=DIR C header files [PREFIX/include]
1510 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1511 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1512 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1513 --infodir=DIR info documentation [DATAROOTDIR/info]
1514 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1515 --mandir=DIR man documentation [DATAROOTDIR/man]
1516 --docdir=DIR documentation root [DATAROOTDIR/doc/mpfr]
1517 --htmldir=DIR html documentation [DOCDIR]
1518 --dvidir=DIR dvi documentation [DOCDIR]
1519 --pdfdir=DIR pdf documentation [DOCDIR]
1520 --psdir=DIR ps documentation [DOCDIR]
1526 --program-prefix=PREFIX prepend PREFIX to installed program names
1527 --program-suffix=SUFFIX append SUFFIX to installed program names
1528 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1531 --build=BUILD configure for building on BUILD [guessed]
1532 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1536 if test -n "$ac_init_help"; then
1537 case $ac_init_help in
1538 short | recursive ) echo "Configuration of MPFR 2.4.2:";;
1543 --disable-option-checking ignore unrecognized --enable/--with options
1544 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1545 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1546 --disable-maintainer-mode disable make rules and dependencies not useful
1547 (and sometimes confusing) to the casual installer
1548 --enable-assert enable ASSERT checking [default=no]
1549 --enable-logging enable MPFR logging (the system must support it)
1551 --enable-thread-safe build MPFR as thread safe (the system must support
1553 --enable-warnings allow MPFR to output warnings to stderr [default=no]
1554 --enable-tests-timeout=NUM enable timeout (NUM seconds) for test programs
1555 (NUM <= 9999) [default=no]; if enabled, env variable
1556 $MPFR_TESTS_TIMEOUT overrides NUM (0: no timeout).
1557 --disable-dependency-tracking speeds up one-time build
1558 --enable-dependency-tracking do not reject slow dependency extractors
1559 --enable-decimal-float build conversion functions from/to decimal floats
1561 --enable-shared[=PKGS] build shared libraries [default=yes]
1562 --enable-static[=PKGS] build static libraries [default=yes]
1563 --enable-fast-install[=PKGS]
1564 optimize for fast installation [default=yes]
1565 --disable-libtool-lock avoid locking (might break parallel builds)
1568 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1569 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1570 --with-gmp-include=DIR GMP include directory
1571 --with-gmp-lib=DIR GMP lib directory
1572 --with-gmp=DIR GMP install directory
1573 --with-gmp-build=DIR GMP build directory (please read INSTALL file)
1574 --with-mulhigh-size=NUM internal threshold table for mulhigh
1575 --with-pic try to use only PIC/non-PIC objects [default=use
1577 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1579 Some influential environment variables:
1580 CC C compiler command
1581 CFLAGS C compiler flags
1582 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1583 nonstandard directory <lib dir>
1584 LIBS libraries to pass to the linker, e.g. -l<library>
1585 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1586 you have headers in a nonstandard directory <include dir>
1588 CXX C++ compiler command
1589 CXXFLAGS C++ compiler flags
1590 F77 Fortran 77 compiler command
1591 FFLAGS Fortran 77 compiler flags
1592 CXXCPP C++ preprocessor
1594 Use these variables to override the choices made by `configure' or to help
1595 it to find libraries and programs with nonstandard names/locations.
1597 Report bugs to the package provider.
1602 if test "$ac_init_help" = "recursive"; then
1603 # If there are subdirs, report their specific --help.
1604 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1605 test -d "$ac_dir" ||
1606 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1611 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1613 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1614 # A ".." for each directory in $ac_dir_suffix.
1615 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1616 case $ac_top_builddir_sub in
1617 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1618 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1621 ac_abs_top_builddir=$ac_pwd
1622 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1623 # for backward compatibility:
1624 ac_top_builddir=$ac_top_build_prefix
1627 .) # We are building in place.
1629 ac_top_srcdir=$ac_top_builddir_sub
1630 ac_abs_top_srcdir=$ac_pwd ;;
1631 [\\/]* | ?:[\\/]* ) # Absolute name.
1632 ac_srcdir=$srcdir$ac_dir_suffix;
1633 ac_top_srcdir=$srcdir
1634 ac_abs_top_srcdir=$srcdir ;;
1636 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1637 ac_top_srcdir=$ac_top_build_prefix$srcdir
1638 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1640 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1642 cd "$ac_dir" || { ac_status=$?; continue; }
1643 # Check for guested configure.
1644 if test -f "$ac_srcdir/configure.gnu"; then
1646 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1647 elif test -f "$ac_srcdir/configure"; then
1649 $SHELL "$ac_srcdir/configure" --help=recursive
1651 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1653 cd "$ac_pwd" || { ac_status=$?; break; }
1657 test -n "$ac_init_help" && exit $ac_status
1658 if $ac_init_version; then
1660 MPFR configure 2.4.2
1661 generated by GNU Autoconf 2.64
1663 Copyright (C) 2009 Free Software Foundation, Inc.
1664 This configure script is free software; the Free Software Foundation
1665 gives unlimited permission to copy, distribute and modify it.
1668 Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
1669 Contributed by the Arenaire and Cacao projects, INRIA.
1671 This file is part of the GNU MPFR Library.
1673 The GNU MPFR Library is free software; you can redistribute it and/or modify
1674 it under the terms of the GNU Lesser General Public License as published
1675 by the Free Software Foundation; either version 2.1 of the License, or (at
1676 your option) any later version.
1678 The GNU MPFR Library is distributed in the hope that it will be useful, but
1679 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
1680 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
1681 License for more details.
1683 You should have received a copy of the GNU Lesser General Public License
1684 along with the GNU MPFR Library; see the file COPYING.LIB. If not, write to
1685 the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston,
1692 ## ------------------------ ##
1693 ## Autoconf initialization. ##
1694 ## ------------------------ ##
1696 # ac_fn_c_try_compile LINENO
1697 # --------------------------
1698 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1699 ac_fn_c_try_compile ()
1701 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1702 rm -f conftest.$ac_objext
1703 if { { ac_try="$ac_compile"
1705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1706 *) ac_try_echo=$ac_try;;
1708 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1709 $as_echo "$ac_try_echo"; } >&5
1710 (eval "$ac_compile") 2>conftest.err
1712 if test -s conftest.err; then
1713 grep -v '^ *+' conftest.err >conftest.er1
1714 cat conftest.er1 >&5
1715 mv -f conftest.er1 conftest.err
1717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1718 test $ac_status = 0; } && {
1719 test -z "$ac_c_werror_flag" ||
1720 test ! -s conftest.err
1721 } && test -s conftest.$ac_objext; then :
1724 $as_echo "$as_me: failed program was:" >&5
1725 sed 's/^/| /' conftest.$ac_ext >&5
1729 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1732 } # ac_fn_c_try_compile
1734 # ac_fn_c_try_cpp LINENO
1735 # ----------------------
1736 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1739 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1740 if { { ac_try="$ac_cpp conftest.$ac_ext"
1742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1743 *) ac_try_echo=$ac_try;;
1745 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1746 $as_echo "$ac_try_echo"; } >&5
1747 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1749 if test -s conftest.err; then
1750 grep -v '^ *+' conftest.err >conftest.er1
1751 cat conftest.er1 >&5
1752 mv -f conftest.er1 conftest.err
1754 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1755 test $ac_status = 0; } >/dev/null && {
1756 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1757 test ! -s conftest.err
1761 $as_echo "$as_me: failed program was:" >&5
1762 sed 's/^/| /' conftest.$ac_ext >&5
1766 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1771 # ac_fn_c_try_run LINENO
1772 # ----------------------
1773 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1774 # that executables *can* be run.
1777 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1778 if { { ac_try="$ac_link"
1780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1781 *) ac_try_echo=$ac_try;;
1783 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1784 $as_echo "$ac_try_echo"; } >&5
1785 (eval "$ac_link") 2>&5
1787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1788 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1789 { { case "(($ac_try" in
1790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1791 *) ac_try_echo=$ac_try;;
1793 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1794 $as_echo "$ac_try_echo"; } >&5
1795 (eval "$ac_try") 2>&5
1797 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1798 test $ac_status = 0; }; }; then :
1801 $as_echo "$as_me: program exited with status $ac_status" >&5
1802 $as_echo "$as_me: failed program was:" >&5
1803 sed 's/^/| /' conftest.$ac_ext >&5
1805 ac_retval=$ac_status
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;}
1813 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1814 # -------------------------------------------------------
1815 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1816 # the include files in INCLUDES and setting the cache variable VAR
1818 ac_fn_c_check_header_mongrel ()
1820 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1821 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1823 $as_echo_n "checking for $2... " >&6; }
1824 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1825 $as_echo_n "(cached) " >&6
1828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1829 $as_echo "$ac_res" >&6; }
1831 # Is the header compilable?
1832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1833 $as_echo_n "checking $2 usability... " >&6; }
1834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1835 /* end confdefs.h. */
1839 if ac_fn_c_try_compile "$LINENO"; then :
1840 ac_header_compiler=yes
1842 ac_header_compiler=no
1844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1846 $as_echo "$ac_header_compiler" >&6; }
1848 # Is the header present?
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1850 $as_echo_n "checking $2 presence... " >&6; }
1851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1852 /* end confdefs.h. */
1855 if ac_fn_c_try_cpp "$LINENO"; then :
1856 ac_header_preproc=yes
1858 ac_header_preproc=no
1860 rm -f conftest.err conftest.$ac_ext
1861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1862 $as_echo "$ac_header_preproc" >&6; }
1864 # So? What about this header?
1865 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1867 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1868 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1870 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1873 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1874 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1876 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1878 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1879 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1880 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1881 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1882 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1886 $as_echo_n "checking for $2... " >&6; }
1887 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1888 $as_echo_n "(cached) " >&6
1890 eval "$3=\$ac_header_compiler"
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1894 $as_echo "$ac_res" >&6; }
1896 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1898 } # ac_fn_c_check_header_mongrel
1900 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1901 # -------------------------------------------------------
1902 # Tests whether HEADER exists and can be compiled using the include files in
1903 # INCLUDES, setting the cache variable VAR accordingly.
1904 ac_fn_c_check_header_compile ()
1906 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1908 $as_echo_n "checking for $2... " >&6; }
1909 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1910 $as_echo_n "(cached) " >&6
1912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1913 /* end confdefs.h. */
1917 if ac_fn_c_try_compile "$LINENO"; then :
1922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1926 $as_echo "$ac_res" >&6; }
1927 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1929 } # ac_fn_c_check_header_compile
1931 # ac_fn_c_try_link LINENO
1932 # -----------------------
1933 # Try to link conftest.$ac_ext, and return whether this succeeded.
1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937 rm -f conftest.$ac_objext conftest$ac_exeext
1938 if { { ac_try="$ac_link"
1940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1941 *) ac_try_echo=$ac_try;;
1943 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1944 $as_echo "$ac_try_echo"; } >&5
1945 (eval "$ac_link") 2>conftest.err
1947 if test -s conftest.err; then
1948 grep -v '^ *+' conftest.err >conftest.er1
1949 cat conftest.er1 >&5
1950 mv -f conftest.er1 conftest.err
1952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1953 test $ac_status = 0; } && {
1954 test -z "$ac_c_werror_flag" ||
1955 test ! -s conftest.err
1956 } && test -s conftest$ac_exeext && {
1957 test "$cross_compiling" = yes ||
1958 $as_test_x conftest$ac_exeext
1962 $as_echo "$as_me: failed program was:" >&5
1963 sed 's/^/| /' conftest.$ac_ext >&5
1967 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1968 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1969 # interfere with the next link command; also delete a directory that is
1970 # left behind by Apple's compiler. We do this before executing the actions.
1971 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1972 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1975 } # ac_fn_c_try_link
1977 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
1978 # --------------------------------------------
1979 # Tries to find the compile-time value of EXPR in a program that includes
1980 # INCLUDES, setting VAR accordingly. Returns whether the value could be
1982 ac_fn_c_compute_int ()
1984 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1985 if test "$cross_compiling" = yes; then
1986 # Depending upon the size, compute the lo and hi bounds.
1987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1988 /* end confdefs.h. */
1993 static int test_array [1 - 2 * !(($2) >= 0)];
2000 if ac_fn_c_try_compile "$LINENO"; then :
2003 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2004 /* end confdefs.h. */
2009 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2016 if ac_fn_c_try_compile "$LINENO"; then :
2017 ac_hi=$ac_mid; break
2019 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2020 if test $ac_lo -le $ac_mid; then
2024 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2030 /* end confdefs.h. */
2035 static int test_array [1 - 2 * !(($2) < 0)];
2042 if ac_fn_c_try_compile "$LINENO"; then :
2045 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2046 /* end confdefs.h. */
2051 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2058 if ac_fn_c_try_compile "$LINENO"; then :
2059 ac_lo=$ac_mid; break
2061 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2062 if test $ac_mid -le $ac_hi; then
2066 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2076 # Binary search between lo and hi bounds.
2077 while test "x$ac_lo" != "x$ac_hi"; do
2078 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2080 /* end confdefs.h. */
2085 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2092 if ac_fn_c_try_compile "$LINENO"; then :
2095 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2100 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2104 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2105 /* end confdefs.h. */
2107 static long int longval () { return $2; }
2108 static unsigned long int ulongval () { return $2; }
2115 FILE *f = fopen ("conftest.val", "w");
2120 long int i = longval ();
2123 fprintf (f, "%ld", i);
2127 unsigned long int i = ulongval ();
2130 fprintf (f, "%lu", i);
2132 /* Do not output a trailing newline, as this causes \r\n confusion
2133 on some platforms. */
2134 return ferror (f) || fclose (f) != 0;
2140 if ac_fn_c_try_run "$LINENO"; then :
2141 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2145 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2146 conftest.$ac_objext conftest.beam conftest.$ac_ext
2150 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2153 } # ac_fn_c_compute_int
2155 # ac_fn_c_check_func LINENO FUNC VAR
2156 # ----------------------------------
2157 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2158 ac_fn_c_check_func ()
2160 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2162 $as_echo_n "checking for $2... " >&6; }
2163 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2164 $as_echo_n "(cached) " >&6
2166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2167 /* end confdefs.h. */
2168 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2169 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2170 #define $2 innocuous_$2
2172 /* System header to define __stub macros and hopefully few prototypes,
2173 which can conflict with char $2 (); below.
2174 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2175 <limits.h> exists even on freestanding compilers. */
2178 # include <limits.h>
2180 # include <assert.h>
2185 /* Override any GCC internal prototype to avoid an error.
2186 Use char because int might match the return type of a GCC
2187 builtin and then its argument prototype would still apply. */
2192 /* The GNU C library defines this for functions which it implements
2193 to always fail with ENOSYS. Some functions are actually named
2194 something starting with __ and the normal name is an alias. */
2195 #if defined __stub_$2 || defined __stub___$2
2207 if ac_fn_c_try_link "$LINENO"; then :
2212 rm -f core conftest.err conftest.$ac_objext \
2213 conftest$ac_exeext conftest.$ac_ext
2216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2217 $as_echo "$ac_res" >&6; }
2218 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2220 } # ac_fn_c_check_func
2222 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2223 # -------------------------------------------
2224 # Tests whether TYPE exists after having included INCLUDES, setting cache
2225 # variable VAR accordingly.
2226 ac_fn_c_check_type ()
2228 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2230 $as_echo_n "checking for $2... " >&6; }
2231 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2232 $as_echo_n "(cached) " >&6
2235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2236 /* end confdefs.h. */
2247 if ac_fn_c_try_compile "$LINENO"; then :
2248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2249 /* end confdefs.h. */
2260 if ac_fn_c_try_compile "$LINENO"; then :
2265 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2271 $as_echo "$ac_res" >&6; }
2272 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2274 } # ac_fn_c_check_type
2276 # ac_fn_cxx_try_compile LINENO
2277 # ----------------------------
2278 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2279 ac_fn_cxx_try_compile ()
2281 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2282 rm -f conftest.$ac_objext
2283 if { { ac_try="$ac_compile"
2285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2286 *) ac_try_echo=$ac_try;;
2288 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2289 $as_echo "$ac_try_echo"; } >&5
2290 (eval "$ac_compile") 2>conftest.err
2292 if test -s conftest.err; then
2293 grep -v '^ *+' conftest.err >conftest.er1
2294 cat conftest.er1 >&5
2295 mv -f conftest.er1 conftest.err
2297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2298 test $ac_status = 0; } && {
2299 test -z "$ac_cxx_werror_flag" ||
2300 test ! -s conftest.err
2301 } && test -s conftest.$ac_objext; then :
2304 $as_echo "$as_me: failed program was:" >&5
2305 sed 's/^/| /' conftest.$ac_ext >&5
2309 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2312 } # ac_fn_cxx_try_compile
2314 # ac_fn_f77_try_compile LINENO
2315 # ----------------------------
2316 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2317 ac_fn_f77_try_compile ()
2319 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2320 rm -f conftest.$ac_objext
2321 if { { ac_try="$ac_compile"
2323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2324 *) ac_try_echo=$ac_try;;
2326 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2327 $as_echo "$ac_try_echo"; } >&5
2328 (eval "$ac_compile") 2>conftest.err
2330 if test -s conftest.err; then
2331 grep -v '^ *+' conftest.err >conftest.er1
2332 cat conftest.er1 >&5
2333 mv -f conftest.er1 conftest.err
2335 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2336 test $ac_status = 0; } && {
2337 test -z "$ac_f77_werror_flag" ||
2338 test ! -s conftest.err
2339 } && test -s conftest.$ac_objext; then :
2342 $as_echo "$as_me: failed program was:" >&5
2343 sed 's/^/| /' conftest.$ac_ext >&5
2347 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2350 } # ac_fn_f77_try_compile
2352 # ac_fn_cxx_try_cpp LINENO
2353 # ------------------------
2354 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2355 ac_fn_cxx_try_cpp ()
2357 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2358 if { { ac_try="$ac_cpp conftest.$ac_ext"
2360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2361 *) ac_try_echo=$ac_try;;
2363 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2364 $as_echo "$ac_try_echo"; } >&5
2365 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2367 if test -s conftest.err; then
2368 grep -v '^ *+' conftest.err >conftest.er1
2369 cat conftest.er1 >&5
2370 mv -f conftest.er1 conftest.err
2372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2373 test $ac_status = 0; } >/dev/null && {
2374 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
2375 test ! -s conftest.err
2379 $as_echo "$as_me: failed program was:" >&5
2380 sed 's/^/| /' conftest.$ac_ext >&5
2384 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2387 } # ac_fn_cxx_try_cpp
2389 # ac_fn_cxx_try_link LINENO
2390 # -------------------------
2391 # Try to link conftest.$ac_ext, and return whether this succeeded.
2392 ac_fn_cxx_try_link ()
2394 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2395 rm -f conftest.$ac_objext conftest$ac_exeext
2396 if { { ac_try="$ac_link"
2398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2399 *) ac_try_echo=$ac_try;;
2401 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2402 $as_echo "$ac_try_echo"; } >&5
2403 (eval "$ac_link") 2>conftest.err
2405 if test -s conftest.err; then
2406 grep -v '^ *+' conftest.err >conftest.er1
2407 cat conftest.er1 >&5
2408 mv -f conftest.er1 conftest.err
2410 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2411 test $ac_status = 0; } && {
2412 test -z "$ac_cxx_werror_flag" ||
2413 test ! -s conftest.err
2414 } && test -s conftest$ac_exeext && {
2415 test "$cross_compiling" = yes ||
2416 $as_test_x conftest$ac_exeext
2420 $as_echo "$as_me: failed program was:" >&5
2421 sed 's/^/| /' conftest.$ac_ext >&5
2425 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2426 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2427 # interfere with the next link command; also delete a directory that is
2428 # left behind by Apple's compiler. We do this before executing the actions.
2429 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2430 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2433 } # ac_fn_cxx_try_link
2435 # ac_fn_f77_try_link LINENO
2436 # -------------------------
2437 # Try to link conftest.$ac_ext, and return whether this succeeded.
2438 ac_fn_f77_try_link ()
2440 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2441 rm -f conftest.$ac_objext conftest$ac_exeext
2442 if { { ac_try="$ac_link"
2444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2445 *) ac_try_echo=$ac_try;;
2447 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2448 $as_echo "$ac_try_echo"; } >&5
2449 (eval "$ac_link") 2>conftest.err
2451 if test -s conftest.err; then
2452 grep -v '^ *+' conftest.err >conftest.er1
2453 cat conftest.er1 >&5
2454 mv -f conftest.er1 conftest.err
2456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2457 test $ac_status = 0; } && {
2458 test -z "$ac_f77_werror_flag" ||
2459 test ! -s conftest.err
2460 } && test -s conftest$ac_exeext && {
2461 test "$cross_compiling" = yes ||
2462 $as_test_x conftest$ac_exeext
2466 $as_echo "$as_me: failed program was:" >&5
2467 sed 's/^/| /' conftest.$ac_ext >&5
2471 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2472 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2473 # interfere with the next link command; also delete a directory that is
2474 # left behind by Apple's compiler. We do this before executing the actions.
2475 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2476 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2479 } # ac_fn_f77_try_link
2480 cat >config.log <<_ACEOF
2481 This file contains any messages produced by compilers while
2482 running configure, to aid debugging if configure makes a mistake.
2484 It was created by MPFR $as_me 2.4.2, which was
2485 generated by GNU Autoconf 2.64. Invocation command line was
2497 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2498 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2499 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2500 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2501 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2503 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2504 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2506 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2507 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2508 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2509 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2510 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2511 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2512 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2520 test -z "$as_dir" && as_dir=.
2521 $as_echo "PATH: $as_dir"
2537 # Keep a trace of the command line.
2538 # Strip out --no-create and --no-recursion so they do not pile up.
2539 # Strip out --silent because we don't want to record it for future runs.
2540 # Also quote any args containing shell meta-characters.
2541 # Make two passes to allow for proper duplicate-argument suppression.
2545 ac_must_keep_next=false
2551 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2552 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2553 | -silent | --silent | --silen | --sile | --sil)
2556 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2559 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2561 as_fn_append ac_configure_args1 " '$ac_arg'"
2562 if test $ac_must_keep_next = true; then
2563 ac_must_keep_next=false # Got value, back to normal.
2566 *=* | --config-cache | -C | -disable-* | --disable-* \
2567 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2568 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2569 | -with-* | --with-* | -without-* | --without-* | --x)
2570 case "$ac_configure_args0 " in
2571 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2574 -* ) ac_must_keep_next=true ;;
2577 as_fn_append ac_configure_args " '$ac_arg'"
2582 { ac_configure_args0=; unset ac_configure_args0;}
2583 { ac_configure_args1=; unset ac_configure_args1;}
2585 # When interrupted or exit'd, cleanup temporary files, and complete
2586 # config.log. We remove comments because anyway the quotes in there
2587 # would cause problems or look ugly.
2588 # WARNING: Use '\'' to represent an apostrophe within the trap.
2589 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2590 trap 'exit_status=$?
2591 # Save into config.log some information that might help in debugging.
2596 ## ---------------- ##
2597 ## Cache variables. ##
2598 ## ---------------- ##
2601 # The following way of writing the cache mishandles newlines in values,
2603 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2604 eval ac_val=\$$ac_var
2608 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2609 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2612 _ | IFS | as_nl) ;; #(
2613 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2614 *) { eval $ac_var=; unset $ac_var;} ;;
2619 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2620 *${as_nl}ac_space=\ *)
2622 "s/'\''/'\''\\\\'\'''\''/g;
2623 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2626 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2634 ## ----------------- ##
2635 ## Output variables. ##
2636 ## ----------------- ##
2639 for ac_var in $ac_subst_vars
2641 eval ac_val=\$$ac_var
2643 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2645 $as_echo "$ac_var='\''$ac_val'\''"
2649 if test -n "$ac_subst_files"; then
2651 ## ------------------- ##
2652 ## File substitutions. ##
2653 ## ------------------- ##
2656 for ac_var in $ac_subst_files
2658 eval ac_val=\$$ac_var
2660 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2662 $as_echo "$ac_var='\''$ac_val'\''"
2667 if test -s confdefs.h; then
2677 test "$ac_signal" != 0 &&
2678 $as_echo "$as_me: caught signal $ac_signal"
2679 $as_echo "$as_me: exit $exit_status"
2681 rm -f core *.core core.conftest.* &&
2682 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2685 for ac_signal in 1 2 13 15; do
2686 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2690 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2691 rm -f -r conftest* confdefs.h
2693 $as_echo "/* confdefs.h */" > confdefs.h
2695 # Predefined preprocessor variables.
2697 cat >>confdefs.h <<_ACEOF
2698 #define PACKAGE_NAME "$PACKAGE_NAME"
2701 cat >>confdefs.h <<_ACEOF
2702 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2705 cat >>confdefs.h <<_ACEOF
2706 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2709 cat >>confdefs.h <<_ACEOF
2710 #define PACKAGE_STRING "$PACKAGE_STRING"
2713 cat >>confdefs.h <<_ACEOF
2714 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2717 cat >>confdefs.h <<_ACEOF
2718 #define PACKAGE_URL "$PACKAGE_URL"
2722 # Let the site file select an alternate cache file if it wants to.
2723 # Prefer an explicitly selected file to automatically selected ones.
2726 if test -n "$CONFIG_SITE"; then
2727 ac_site_file1=$CONFIG_SITE
2728 elif test "x$prefix" != xNONE; then
2729 ac_site_file1=$prefix/share/config.site
2730 ac_site_file2=$prefix/etc/config.site
2732 ac_site_file1=$ac_default_prefix/share/config.site
2733 ac_site_file2=$ac_default_prefix/etc/config.site
2735 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2737 test "x$ac_site_file" = xNONE && continue
2738 if test -r "$ac_site_file"; then
2739 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2740 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2741 sed 's/^/| /' "$ac_site_file" >&5
2746 if test -r "$cache_file"; then
2747 # Some versions of bash will fail to source /dev/null (special
2748 # files actually), so we avoid doing that.
2749 if test -f "$cache_file"; then
2750 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2751 $as_echo "$as_me: loading cache $cache_file" >&6;}
2753 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2754 *) . "./$cache_file";;
2758 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2759 $as_echo "$as_me: creating cache $cache_file" >&6;}
2763 # Check that the precious variables saved in the cache have kept the same
2765 ac_cache_corrupted=false
2766 for ac_var in $ac_precious_vars; do
2767 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2768 eval ac_new_set=\$ac_env_${ac_var}_set
2769 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2770 eval ac_new_val=\$ac_env_${ac_var}_value
2771 case $ac_old_set,$ac_new_set in
2773 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2774 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2775 ac_cache_corrupted=: ;;
2777 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2778 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2779 ac_cache_corrupted=: ;;
2782 if test "x$ac_old_val" != "x$ac_new_val"; then
2783 # differences in whitespace do not lead to failure.
2784 ac_old_val_w=`echo x $ac_old_val`
2785 ac_new_val_w=`echo x $ac_new_val`
2786 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2787 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2788 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2789 ac_cache_corrupted=:
2791 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2792 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2793 eval $ac_var=\$ac_old_val
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2796 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2797 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2798 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2801 # Pass precious variables to config.status.
2802 if test "$ac_new_set" = set; then
2804 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2805 *) ac_arg=$ac_var=$ac_new_val ;;
2807 case " $ac_configure_args " in
2808 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2809 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2813 if $ac_cache_corrupted; then
2814 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2815 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2816 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2817 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2818 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2820 ## -------------------- ##
2821 ## Main body of script. ##
2822 ## -------------------- ##
2825 ac_cpp='$CPP $CPPFLAGS'
2826 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2827 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2828 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2832 am__api_version='1.11'
2835 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2836 for ac_t in install-sh install.sh shtool; do
2837 if test -f "$ac_dir/$ac_t"; then
2839 ac_install_sh="$ac_aux_dir/$ac_t -c"
2844 if test -z "$ac_aux_dir"; then
2845 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2848 # These three variables are undocumented and unsupported,
2849 # and are intended to be withdrawn in a future Autoconf release.
2850 # They can cause serious problems if a builder's source tree is in a directory
2851 # whose full name contains unusual characters.
2852 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2853 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2854 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2857 # Find a good install program. We prefer a C program (faster),
2858 # so one script is as good as another. But avoid the broken or
2859 # incompatible versions:
2860 # SysV /etc/install, /usr/sbin/install
2861 # SunOS /usr/etc/install
2862 # IRIX /sbin/install
2864 # AmigaOS /C/install, which installs bootblocks on floppy discs
2865 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2866 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2867 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2868 # OS/2's system install, which has a completely different semantic
2869 # ./install, which can be erroneously created by make from ./install.sh.
2870 # Reject install programs that cannot install multiple files.
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2872 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2873 if test -z "$INSTALL"; then
2874 if test "${ac_cv_path_install+set}" = set; then :
2875 $as_echo_n "(cached) " >&6
2877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2881 test -z "$as_dir" && as_dir=.
2882 # Account for people who put trailing slashes in PATH elements.
2883 case $as_dir/ in #((
2884 ./ | .// | /[cC]/* | \
2885 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2886 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2889 # OSF1 and SCO ODT 3.0 have their own names for install.
2890 # Don't use installbsd from OSF since it installs stuff as root
2892 for ac_prog in ginstall scoinst install; do
2893 for ac_exec_ext in '' $ac_executable_extensions; do
2894 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2895 if test $ac_prog = install &&
2896 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2897 # AIX install. It has an incompatible calling convention.
2899 elif test $ac_prog = install &&
2900 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2901 # program-specific install script used by HP pwplus--don't use.
2904 rm -rf conftest.one conftest.two conftest.dir
2905 echo one > conftest.one
2906 echo two > conftest.two
2908 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2909 test -s conftest.one && test -s conftest.two &&
2910 test -s conftest.dir/conftest.one &&
2911 test -s conftest.dir/conftest.two
2913 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2926 rm -rf conftest.one conftest.two conftest.dir
2929 if test "${ac_cv_path_install+set}" = set; then
2930 INSTALL=$ac_cv_path_install
2932 # As a last resort, use the slow shell script. Don't cache a
2933 # value for INSTALL within a source directory, because that will
2934 # break other packages using the cache if that directory is
2935 # removed, or if the value is a relative name.
2936 INSTALL=$ac_install_sh
2939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2940 $as_echo "$INSTALL" >&6; }
2942 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2943 # It thinks the first close brace ends the variable substitution.
2944 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2946 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2948 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2951 $as_echo_n "checking whether build environment is sane... " >&6; }
2954 echo timestamp > conftest.file
2955 # Reject unsafe characters in $srcdir or the absolute working directory
2956 # name. Accept space and tab only in the latter.
2960 *[\\\"\#\$\&\'\`$am_lf]*)
2961 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
2964 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2965 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2968 # Do `set' in a subshell so we don't clobber the current shell's
2969 # arguments. Must try -L first in case configure is actually a
2970 # symlink; some systems play weird games with the mod time of symlinks
2971 # (eg FreeBSD returns the mod time of the symlink's containing
2974 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2975 if test "$*" = "X"; then
2977 set X `ls -t "$srcdir/configure" conftest.file`
2980 if test "$*" != "X $srcdir/configure conftest.file" \
2981 && test "$*" != "X conftest.file $srcdir/configure"; then
2983 # If neither matched, then we have a broken ls. This can happen
2984 # if, for instance, CONFIG_SHELL is bash and it inherits a
2985 # broken ls alias from the environment. This has actually
2986 # happened. Such a system could not be considered "sane".
2987 as_fn_error "ls -t appears to fail. Make sure there is not a broken
2988 alias in your environment" "$LINENO" 5
2991 test "$2" = conftest.file
2997 as_fn_error "newly created file is older than distributed files!
2998 Check your system clock" "$LINENO" 5
3000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3001 $as_echo "yes" >&6; }
3002 test "$program_prefix" != NONE &&
3003 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3004 # Use a double $ so make ignores it.
3005 test "$program_suffix" != NONE &&
3006 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3007 # Double any \ or $.
3008 # By default was `s,x,x', remove it if useless.
3009 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3010 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3012 # expand $ac_aux_dir to an absolute path
3013 am_aux_dir=`cd $ac_aux_dir && pwd`
3015 if test x"${MISSING+set}" != xset; then
3018 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3020 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3023 # Use eval to expand $SHELL
3024 if eval "$MISSING --run true"; then
3025 am_missing_run="$MISSING --run "
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3029 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3032 if test x"${install_sh}" != xset; then
3035 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3037 install_sh="\${SHELL} $am_aux_dir/install-sh"
3041 # Installed binaries are usually stripped using `strip' when the user
3042 # run `make install-strip'. However `strip' might not be the right
3043 # tool to use in cross-compilation environments, therefore Automake
3044 # will honor the `STRIP' environment variable to overrule this program.
3045 if test "$cross_compiling" != no; then
3046 if test -n "$ac_tool_prefix"; then
3047 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3048 set dummy ${ac_tool_prefix}strip; ac_word=$2
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3050 $as_echo_n "checking for $ac_word... " >&6; }
3051 if test "${ac_cv_prog_STRIP+set}" = set; then :
3052 $as_echo_n "(cached) " >&6
3054 if test -n "$STRIP"; then
3055 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3061 test -z "$as_dir" && as_dir=.
3062 for ac_exec_ext in '' $ac_executable_extensions; do
3063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3064 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3074 STRIP=$ac_cv_prog_STRIP
3075 if test -n "$STRIP"; then
3076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3077 $as_echo "$STRIP" >&6; }
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3080 $as_echo "no" >&6; }
3085 if test -z "$ac_cv_prog_STRIP"; then
3087 # Extract the first word of "strip", so it can be a program name with args.
3088 set dummy strip; ac_word=$2
3089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3090 $as_echo_n "checking for $ac_word... " >&6; }
3091 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3092 $as_echo_n "(cached) " >&6
3094 if test -n "$ac_ct_STRIP"; then
3095 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3101 test -z "$as_dir" && as_dir=.
3102 for ac_exec_ext in '' $ac_executable_extensions; do
3103 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3104 ac_cv_prog_ac_ct_STRIP="strip"
3105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3114 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3115 if test -n "$ac_ct_STRIP"; then
3116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3117 $as_echo "$ac_ct_STRIP" >&6; }
3119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3120 $as_echo "no" >&6; }
3123 if test "x$ac_ct_STRIP" = x; then
3126 case $cross_compiling:$ac_tool_warned in
3128 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3129 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3130 ac_tool_warned=yes ;;
3135 STRIP="$ac_cv_prog_STRIP"
3139 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3141 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3142 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3143 if test -z "$MKDIR_P"; then
3144 if test "${ac_cv_path_mkdir+set}" = set; then :
3145 $as_echo_n "(cached) " >&6
3147 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3148 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3151 test -z "$as_dir" && as_dir=.
3152 for ac_prog in mkdir gmkdir; do
3153 for ac_exec_ext in '' $ac_executable_extensions; do
3154 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3155 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3156 'mkdir (GNU coreutils) '* | \
3157 'mkdir (coreutils) '* | \
3158 'mkdir (fileutils) '4.1*)
3159 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3169 if test "${ac_cv_path_mkdir+set}" = set; then
3170 MKDIR_P="$ac_cv_path_mkdir -p"
3172 # As a last resort, use the slow shell script. Don't cache a
3173 # value for MKDIR_P within a source directory, because that will
3174 # break other packages using the cache if that directory is
3175 # removed, or if the value is a relative name.
3176 test -d ./--version && rmdir ./--version
3177 MKDIR_P="$ac_install_sh -d"
3180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3181 $as_echo "$MKDIR_P" >&6; }
3185 [\\/$]* | ?:[\\/]*) ;;
3186 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3189 for ac_prog in gawk mawk nawk awk
3191 # Extract the first word of "$ac_prog", so it can be a program name with args.
3192 set dummy $ac_prog; ac_word=$2
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3194 $as_echo_n "checking for $ac_word... " >&6; }
3195 if test "${ac_cv_prog_AWK+set}" = set; then :
3196 $as_echo_n "(cached) " >&6
3198 if test -n "$AWK"; then
3199 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3201 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3205 test -z "$as_dir" && as_dir=.
3206 for ac_exec_ext in '' $ac_executable_extensions; do
3207 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3208 ac_cv_prog_AWK="$ac_prog"
3209 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3219 if test -n "$AWK"; then
3220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3221 $as_echo "$AWK" >&6; }
3223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3224 $as_echo "no" >&6; }
3228 test -n "$AWK" && break
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3232 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3234 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3235 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3236 $as_echo_n "(cached) " >&6
3238 cat >conftest.make <<\_ACEOF
3241 @echo '@@@%%%=$(MAKE)=@@@%%%'
3243 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3244 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3246 eval ac_cv_prog_make_${ac_make}_set=yes;;
3248 eval ac_cv_prog_make_${ac_make}_set=no;;
3252 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3254 $as_echo "yes" >&6; }
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3258 $as_echo "no" >&6; }
3259 SET_MAKE="MAKE=${MAKE-make}"
3262 rm -rf .tst 2>/dev/null
3263 mkdir .tst 2>/dev/null
3264 if test -d .tst; then
3269 rmdir .tst 2>/dev/null
3271 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3272 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3273 # is not polluted with repeated "-I."
3274 am__isrc=' -I$(srcdir)'
3275 # test to see if srcdir already configured
3276 if test -f $srcdir/config.status; then
3277 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3281 # test whether we have cygpath
3282 if test -z "$CYGPATH_W"; then
3283 if (cygpath --version) >/dev/null 2>/dev/null; then
3284 CYGPATH_W='cygpath -w'
3291 # Define the identity of the package.
3296 # Some tools Automake needs.
3298 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3301 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3304 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3307 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3310 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3312 # We need awk for the "check" target. The system "awk" is bad on
3314 # Always define AMTAR for backward compatibility.
3316 AMTAR=${AMTAR-"${am_missing_run}tar"}
3318 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to disable maintainer-specific portions of Makefiles" >&5
3326 $as_echo_n "checking whether to disable maintainer-specific portions of Makefiles... " >&6; }
3327 # Check whether --enable-maintainer-mode was given.
3328 if test "${enable_maintainer_mode+set}" = set; then :
3329 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3331 USE_MAINTAINER_MODE=yes
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3335 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3336 if test $USE_MAINTAINER_MODE = yes; then
3337 MAINTAINER_MODE_TRUE=
3338 MAINTAINER_MODE_FALSE='#'
3340 MAINTAINER_MODE_TRUE='#'
3341 MAINTAINER_MODE_FALSE=
3344 MAINT=$MAINTAINER_MODE_TRUE
3351 test_CFLAGS=${CFLAGS+set}
3353 # Make sure we can run config.sub.
3354 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3355 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3358 $as_echo_n "checking build system type... " >&6; }
3359 if test "${ac_cv_build+set}" = set; then :
3360 $as_echo_n "(cached) " >&6
3362 ac_build_alias=$build_alias
3363 test "x$ac_build_alias" = x &&
3364 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3365 test "x$ac_build_alias" = x &&
3366 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3367 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3368 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3372 $as_echo "$ac_cv_build" >&6; }
3373 case $ac_cv_build in
3375 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3378 ac_save_IFS=$IFS; IFS='-'
3384 # Remember, the first character of IFS is used to create $*,
3385 # except with old shells:
3388 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3392 $as_echo_n "checking host system type... " >&6; }
3393 if test "${ac_cv_host+set}" = set; then :
3394 $as_echo_n "(cached) " >&6
3396 if test "x$host_alias" = x; then
3397 ac_cv_host=$ac_cv_build
3399 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3400 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3405 $as_echo "$ac_cv_host" >&6; }
3408 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3411 ac_save_IFS=$IFS; IFS='-'
3417 # Remember, the first character of IFS is used to create $*,
3418 # except with old shells:
3421 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3426 unset gmp_lib_path GMP_CFLAGS GMP_CC
3428 # Check whether --with-gmp_include was given.
3429 if test "${with_gmp_include+set}" = set; then :
3430 withval=$with_gmp_include; CPPFLAGS="$CPPFLAGS -I$withval"
3434 # Check whether --with-gmp_lib was given.
3435 if test "${with_gmp_lib+set}" = set; then :
3436 withval=$with_gmp_lib;
3437 LDFLAGS="$LDFLAGS -L$withval"
3438 gmp_lib_path="$withval"
3443 # Check whether --with-gmp was given.
3444 if test "${with_gmp+set}" = set; then :
3446 if test -z "$with_gmp_lib" && test -z "$with_gmp_include" ; then
3447 CPPFLAGS="$CPPFLAGS -I$withval/include"
3448 LDFLAGS="$LDFLAGS -L$withval/lib"
3449 gmp_lib_path="$withval/lib"
3451 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3452 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3453 as_fn_error "Do not use --with-gmp and --with-gmp-include/--with-gmp-lib options simultaneously.
3454 See \`config.log' for more details." "$LINENO" 5; }
3461 # Check whether --with-gmp_build was given.
3462 if test "${with_gmp_build+set}" = set; then :
3463 withval=$with_gmp_build;
3464 if test -z "$gmp_lib_path" && test -z "$with_gmp_include" ; then
3465 CPPFLAGS="$CPPFLAGS -I$withval -I$withval/tune"
3466 LDFLAGS="$LDFLAGS -L$withval -L$withval/.libs -L$withval/tune/"
3467 gmp_lib_path="$withval$PATH_SEPARATOR$withval/.libs$PATH_SEPARATOR$withval/tune"
3468 if test -r $withval/Makefile ; then
3469 GMP_CFLAGS=`grep -w "CFLAGS =" $withval/Makefile | sed 's/CFLAGS = //'`
3470 GMP_CC=`grep -w "CC =" $withval/Makefile | sed 's/CC = //'`
3474 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3475 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3476 as_fn_error "Do not use --with-gmp-build and other --with-gmp options simultaneously.
3477 See \`config.log' for more details." "$LINENO" 5; }
3484 # Check whether --with-mulhigh_size was given.
3485 if test "${with_mulhigh_size+set}" = set; then :
3486 withval=$with_mulhigh_size;
3487 cat >>confdefs.h <<_ACEOF
3488 #define MPFR_MULHIGH_SIZE $withval
3494 # Check whether --enable-assert was given.
3495 if test "${enable_assert+set}" = set; then :
3496 enableval=$enable_assert; case $enableval in
3498 $as_echo "#define WANT_ASSERT 1" >>confdefs.h
3502 $as_echo "#define WANT_ASSERT 2" >>confdefs.h
3504 *) as_fn_error "bad value for --enable-assert: yes, no or full" "$LINENO" 5 ;;
3508 # Check whether --enable-logging was given.
3509 if test "${enable_logging+set}" = set; then :
3510 enableval=$enable_logging; disable_gcc_format_warning=yes
3513 $as_echo "#define MPFR_USE_LOGGING 1" >>confdefs.h
3516 *) as_fn_error "bad value for --enable-logging: yes or no" "$LINENO" 5 ;;
3520 # Check whether --enable-thread-safe was given.
3521 if test "${enable_thread_safe+set}" = set; then :
3522 enableval=$enable_thread_safe; case $enableval in
3524 $as_echo "#define MPFR_USE_THREAD_SAFE 1" >>confdefs.h
3527 *) as_fn_error "bad value for --enable-thread-safe: yes or no" "$LINENO" 5 ;;
3531 # Check whether --enable-warnings was given.
3532 if test "${enable_warnings+set}" = set; then :
3533 enableval=$enable_warnings; case $enableval in
3535 $as_echo "#define MPFR_USE_WARNINGS 1" >>confdefs.h
3538 *) as_fn_error "bad value for --enable-warnings: yes or no" "$LINENO" 5 ;;
3543 # Check whether --enable-tests-timeout was given.
3544 if test "${enable_tests_timeout+set}" = set; then :
3545 enableval=$enable_tests_timeout; case $enableval in
3548 $as_echo "#define MPFR_TESTS_TIMEOUT 0" >>confdefs.h
3550 [0-9]|[0-9][0-9]|[0-9][0-9][0-9]|[0-9][0-9][0-9][0-9])
3552 cat >>confdefs.h <<_ACEOF
3553 #define MPFR_TESTS_TIMEOUT $enableval
3556 *) as_fn_error "bad value for --enable-tests-timeout" "$LINENO" 5 ;;
3563 if test -n "$CFLAGS" || test -n "$CC" ; then
3564 user_redefine_cc=yes
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3567 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3568 if test "${ac_cv_path_GREP+set}" = set; then :
3569 $as_echo_n "(cached) " >&6
3571 if test -z "$GREP"; then
3572 ac_path_GREP_found=false
3573 # Loop through the user's path and test for each of PROGNAME-LIST
3574 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3575 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3578 test -z "$as_dir" && as_dir=.
3579 for ac_prog in grep ggrep; do
3580 for ac_exec_ext in '' $ac_executable_extensions; do
3581 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3582 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3583 # Check for GNU ac_path_GREP and select it if it is found.
3584 # Check for GNU $ac_path_GREP
3585 case `"$ac_path_GREP" --version 2>&1` in
3587 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3590 $as_echo_n 0123456789 >"conftest.in"
3593 cat "conftest.in" "conftest.in" >"conftest.tmp"
3594 mv "conftest.tmp" "conftest.in"
3595 cp "conftest.in" "conftest.nl"
3596 $as_echo 'GREP' >> "conftest.nl"
3597 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3598 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3599 as_fn_arith $ac_count + 1 && ac_count=$as_val
3600 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3601 # Best one so far, save it but keep looking for a better one
3602 ac_cv_path_GREP="$ac_path_GREP"
3603 ac_path_GREP_max=$ac_count
3605 # 10*(2^10) chars as input seems more than enough
3606 test $ac_count -gt 10 && break
3608 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3611 $ac_path_GREP_found && break 3
3616 if test -z "$ac_cv_path_GREP"; then
3617 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3620 ac_cv_path_GREP=$GREP
3624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3625 $as_echo "$ac_cv_path_GREP" >&6; }
3626 GREP="$ac_cv_path_GREP"
3629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3630 $as_echo_n "checking for egrep... " >&6; }
3631 if test "${ac_cv_path_EGREP+set}" = set; then :
3632 $as_echo_n "(cached) " >&6
3634 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3635 then ac_cv_path_EGREP="$GREP -E"
3637 if test -z "$EGREP"; then
3638 ac_path_EGREP_found=false
3639 # Loop through the user's path and test for each of PROGNAME-LIST
3640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3641 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3644 test -z "$as_dir" && as_dir=.
3645 for ac_prog in egrep; do
3646 for ac_exec_ext in '' $ac_executable_extensions; do
3647 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3648 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3649 # Check for GNU ac_path_EGREP and select it if it is found.
3650 # Check for GNU $ac_path_EGREP
3651 case `"$ac_path_EGREP" --version 2>&1` in
3653 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3656 $as_echo_n 0123456789 >"conftest.in"
3659 cat "conftest.in" "conftest.in" >"conftest.tmp"
3660 mv "conftest.tmp" "conftest.in"
3661 cp "conftest.in" "conftest.nl"
3662 $as_echo 'EGREP' >> "conftest.nl"
3663 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3664 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3665 as_fn_arith $ac_count + 1 && ac_count=$as_val
3666 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3667 # Best one so far, save it but keep looking for a better one
3668 ac_cv_path_EGREP="$ac_path_EGREP"
3669 ac_path_EGREP_max=$ac_count
3671 # 10*(2^10) chars as input seems more than enough
3672 test $ac_count -gt 10 && break
3674 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3677 $ac_path_EGREP_found && break 3
3682 if test -z "$ac_cv_path_EGREP"; then
3683 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3686 ac_cv_path_EGREP=$EGREP
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3692 $as_echo "$ac_cv_path_EGREP" >&6; }
3693 EGREP="$ac_cv_path_EGREP"
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
3697 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
3698 if test "${ac_cv_path_SED+set}" = set; then :
3699 $as_echo_n "(cached) " >&6
3701 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
3702 for ac_i in 1 2 3 4 5 6 7; do
3703 ac_script="$ac_script$as_nl$ac_script"
3705 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
3706 { ac_script=; unset ac_script;}
3707 if test -z "$SED"; then
3708 ac_path_SED_found=false
3709 # Loop through the user's path and test for each of PROGNAME-LIST
3710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3714 test -z "$as_dir" && as_dir=.
3715 for ac_prog in sed gsed; do
3716 for ac_exec_ext in '' $ac_executable_extensions; do
3717 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
3718 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
3719 # Check for GNU ac_path_SED and select it if it is found.
3720 # Check for GNU $ac_path_SED
3721 case `"$ac_path_SED" --version 2>&1` in
3723 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
3726 $as_echo_n 0123456789 >"conftest.in"
3729 cat "conftest.in" "conftest.in" >"conftest.tmp"
3730 mv "conftest.tmp" "conftest.in"
3731 cp "conftest.in" "conftest.nl"
3732 $as_echo '' >> "conftest.nl"
3733 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
3734 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3735 as_fn_arith $ac_count + 1 && ac_count=$as_val
3736 if test $ac_count -gt ${ac_path_SED_max-0}; then
3737 # Best one so far, save it but keep looking for a better one
3738 ac_cv_path_SED="$ac_path_SED"
3739 ac_path_SED_max=$ac_count
3741 # 10*(2^10) chars as input seems more than enough
3742 test $ac_count -gt 10 && break
3744 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3747 $ac_path_SED_found && break 3
3752 if test -z "$ac_cv_path_SED"; then
3753 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
3761 $as_echo "$ac_cv_path_SED" >&6; }
3762 SED="$ac_cv_path_SED"
3767 if test -z "$user_redefine_cc" && test "$cross_compiling" != yes ; then
3769 if test -z "$GMP_CC$GMP_CFLAGS" ; then
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CC and CFLAGS in gmp.h" >&5
3771 $as_echo_n "checking for CC and CFLAGS in gmp.h... " >&6; }
3773 GMP_CFLAGS=__GMP_CFLAGS
3774 for cpp in /lib/cpp gcc cc c99
3776 test $cpp = /lib/cpp || cpp="$cpp -E"
3777 echo foo > conftest.c
3778 if $cpp $CPPFLAGS conftest.c > /dev/null 2> /dev/null ; then
3780 echo "#include \"gmp.h\"" > conftest.c
3781 echo "MPFR_OPTION __GMP_CC" >> conftest.c
3782 GMP_CC=`$cpp $CPPFLAGS conftest.c 2> /dev/null | $EGREP MPFR_OPTION | $SED -e 's/MPFR_OPTION //g' | $SED -e 's/"//g'`
3784 echo "#include \"gmp.h\"" > conftest.c
3785 echo "MPFR_OPTION __GMP_CFLAGS" >> conftest.c
3786 GMP_CFLAGS=`$cpp $CPPFLAGS conftest.c 2> /dev/null | $EGREP MPFR_OPTION | $SED -e 's/MPFR_OPTION //g'| $SED -e 's/"//g'`
3791 if test "x$GMP_CC" = "x__GMP_CC" || test "x$GMP_CFLAGS" = "x__GMP_CFLAGS" ; then
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3793 $as_echo "no" >&6; }
3797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes CC=$GMP_CC CFLAGS=$GMP_CFLAGS" >&5
3798 $as_echo "yes CC=$GMP_CC CFLAGS=$GMP_CFLAGS" >&6; }
3802 if test -n "$GMP_CC$GMP_CFLAGS" ; then
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CC=$GMP_CC and CFLAGS=$GMP_CFLAGS" >&5
3804 $as_echo_n "checking for CC=$GMP_CC and CFLAGS=$GMP_CFLAGS... " >&6; }
3805 echo "int main (void) { return 0; }" > conftest.c
3806 if $GMP_CC $GMP_CFLAGS -o conftest conftest.c 2> /dev/null ; then
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3808 $as_echo "yes" >&6; }
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3813 $as_echo "no" >&6; }
3822 ac_cpp='$CPP $CPPFLAGS'
3823 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3824 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3825 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3826 if test -n "$ac_tool_prefix"; then
3827 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3828 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3830 $as_echo_n "checking for $ac_word... " >&6; }
3831 if test "${ac_cv_prog_CC+set}" = set; then :
3832 $as_echo_n "(cached) " >&6
3834 if test -n "$CC"; then
3835 ac_cv_prog_CC="$CC" # Let the user override the test.
3837 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3841 test -z "$as_dir" && as_dir=.
3842 for ac_exec_ext in '' $ac_executable_extensions; do
3843 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3844 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3845 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3855 if test -n "$CC"; then
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3857 $as_echo "$CC" >&6; }
3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3860 $as_echo "no" >&6; }
3865 if test -z "$ac_cv_prog_CC"; then
3867 # Extract the first word of "gcc", so it can be a program name with args.
3868 set dummy gcc; ac_word=$2
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3870 $as_echo_n "checking for $ac_word... " >&6; }
3871 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3872 $as_echo_n "(cached) " >&6
3874 if test -n "$ac_ct_CC"; then
3875 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3877 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3881 test -z "$as_dir" && as_dir=.
3882 for ac_exec_ext in '' $ac_executable_extensions; do
3883 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3884 ac_cv_prog_ac_ct_CC="gcc"
3885 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3894 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3895 if test -n "$ac_ct_CC"; then
3896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3897 $as_echo "$ac_ct_CC" >&6; }
3899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3900 $as_echo "no" >&6; }
3903 if test "x$ac_ct_CC" = x; then
3906 case $cross_compiling:$ac_tool_warned in
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3909 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3910 ac_tool_warned=yes ;;
3918 if test -z "$CC"; then
3919 if test -n "$ac_tool_prefix"; then
3920 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3921 set dummy ${ac_tool_prefix}cc; ac_word=$2
3922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3923 $as_echo_n "checking for $ac_word... " >&6; }
3924 if test "${ac_cv_prog_CC+set}" = set; then :
3925 $as_echo_n "(cached) " >&6
3927 if test -n "$CC"; then
3928 ac_cv_prog_CC="$CC" # Let the user override the test.
3930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3934 test -z "$as_dir" && as_dir=.
3935 for ac_exec_ext in '' $ac_executable_extensions; do
3936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3937 ac_cv_prog_CC="${ac_tool_prefix}cc"
3938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3948 if test -n "$CC"; then
3949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3950 $as_echo "$CC" >&6; }
3952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3953 $as_echo "no" >&6; }
3959 if test -z "$CC"; then
3960 # Extract the first word of "cc", so it can be a program name with args.
3961 set dummy cc; ac_word=$2
3962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3963 $as_echo_n "checking for $ac_word... " >&6; }
3964 if test "${ac_cv_prog_CC+set}" = set; then :
3965 $as_echo_n "(cached) " >&6
3967 if test -n "$CC"; then
3968 ac_cv_prog_CC="$CC" # Let the user override the test.
3971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3975 test -z "$as_dir" && as_dir=.
3976 for ac_exec_ext in '' $ac_executable_extensions; do
3977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3978 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3979 ac_prog_rejected=yes
3983 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3990 if test $ac_prog_rejected = yes; then
3991 # We found a bogon in the path, so make sure we never use it.
3992 set dummy $ac_cv_prog_CC
3994 if test $# != 0; then
3995 # We chose a different compiler from the bogus one.
3996 # However, it has the same basename, so the bogon will be chosen
3997 # first if we set CC to just the basename; use the full file name.
3999 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
4005 if test -n "$CC"; then
4006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4007 $as_echo "$CC" >&6; }
4009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4010 $as_echo "no" >&6; }
4015 if test -z "$CC"; then
4016 if test -n "$ac_tool_prefix"; then
4017 for ac_prog in cl.exe
4019 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4020 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4021 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4022 $as_echo_n "checking for $ac_word... " >&6; }
4023 if test "${ac_cv_prog_CC+set}" = set; then :
4024 $as_echo_n "(cached) " >&6
4026 if test -n "$CC"; then
4027 ac_cv_prog_CC="$CC" # Let the user override the test.
4029 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4033 test -z "$as_dir" && as_dir=.
4034 for ac_exec_ext in '' $ac_executable_extensions; do
4035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4036 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4047 if test -n "$CC"; then
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4049 $as_echo "$CC" >&6; }
4051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4052 $as_echo "no" >&6; }
4056 test -n "$CC" && break
4059 if test -z "$CC"; then
4061 for ac_prog in cl.exe
4063 # Extract the first word of "$ac_prog", so it can be a program name with args.
4064 set dummy $ac_prog; ac_word=$2
4065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4066 $as_echo_n "checking for $ac_word... " >&6; }
4067 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
4068 $as_echo_n "(cached) " >&6
4070 if test -n "$ac_ct_CC"; then
4071 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4077 test -z "$as_dir" && as_dir=.
4078 for ac_exec_ext in '' $ac_executable_extensions; do
4079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4080 ac_cv_prog_ac_ct_CC="$ac_prog"
4081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4090 ac_ct_CC=$ac_cv_prog_ac_ct_CC
4091 if test -n "$ac_ct_CC"; then
4092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4093 $as_echo "$ac_ct_CC" >&6; }
4095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4096 $as_echo "no" >&6; }
4100 test -n "$ac_ct_CC" && break
4103 if test "x$ac_ct_CC" = x; then
4106 case $cross_compiling:$ac_tool_warned in
4108 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4109 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4110 ac_tool_warned=yes ;;
4119 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4120 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4121 as_fn_error "no acceptable C compiler found in \$PATH
4122 See \`config.log' for more details." "$LINENO" 5; }
4124 # Provide some information about the compiler.
4125 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4128 for ac_option in --version -v -V -qversion; do
4129 { { ac_try="$ac_compiler $ac_option >&5"
4131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4132 *) ac_try_echo=$ac_try;;
4134 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4135 $as_echo "$ac_try_echo"; } >&5
4136 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4138 if test -s conftest.err; then
4140 ... rest of stderr output deleted ...
4141 10q' conftest.err >conftest.er1
4142 cat conftest.er1 >&5
4143 rm -f conftest.er1 conftest.err
4145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4146 test $ac_status = 0; }
4149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4150 /* end confdefs.h. */
4155 FILE *f = fopen ("conftest.out", "w");
4156 return ferror (f) || fclose (f) != 0;
4162 ac_clean_files_save=$ac_clean_files
4163 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out"
4164 # Try to create an executable without -o first, disregard a.out.
4165 # It will help us diagnose broken compilers, and finding out an intuition
4167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4168 $as_echo_n "checking for C compiler default output file name... " >&6; }
4169 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
4171 # The possible output files:
4172 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
4175 for ac_file in $ac_files
4178 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4179 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
4184 if { { ac_try="$ac_link_default"
4186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4187 *) ac_try_echo=$ac_try;;
4189 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4190 $as_echo "$ac_try_echo"; } >&5
4191 (eval "$ac_link_default") 2>&5
4193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4194 test $ac_status = 0; }; then :
4195 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4196 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4197 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4198 # so that the user can short-circuit this test for compilers unknown to
4200 for ac_file in $ac_files ''
4202 test -f "$ac_file" || continue
4204 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4207 # We found the default executable, but exeext='' is most
4211 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4213 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4215 # We set ac_cv_exeext here because the later test for it is not
4216 # safe: cross compilers may not add the suffix if given an `-o'
4217 # argument, so we may need to know it at that point already.
4218 # Even if this section looks crufty: it has the advantage of
4225 test "$ac_cv_exeext" = no && ac_cv_exeext=
4230 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4231 $as_echo "$ac_file" >&6; }
4232 if test -z "$ac_file"; then :
4233 $as_echo "$as_me: failed program was:" >&5
4234 sed 's/^/| /' conftest.$ac_ext >&5
4236 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4237 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4238 { as_fn_set_status 77
4239 as_fn_error "C compiler cannot create executables
4240 See \`config.log' for more details." "$LINENO" 5; }; }
4242 ac_exeext=$ac_cv_exeext
4244 # Check that the compiler produces executables we can run. If not, either
4245 # the compiler is broken, or we cross compile.
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
4247 $as_echo_n "checking whether the C compiler works... " >&6; }
4248 # If not cross compiling, check that we can run a simple program.
4249 if test "$cross_compiling" != yes; then
4250 if { ac_try='./$ac_file'
4251 { { case "(($ac_try" in
4252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4253 *) ac_try_echo=$ac_try;;
4255 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4256 $as_echo "$ac_try_echo"; } >&5
4257 (eval "$ac_try") 2>&5
4259 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4260 test $ac_status = 0; }; }; then
4263 if test "$cross_compiling" = maybe; then
4266 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4267 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4268 as_fn_error "cannot run C compiled programs.
4269 If you meant to cross compile, use \`--host'.
4270 See \`config.log' for more details." "$LINENO" 5; }
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4275 $as_echo "yes" >&6; }
4277 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out
4278 ac_clean_files=$ac_clean_files_save
4279 # Check that the compiler produces executables we can run. If not, either
4280 # the compiler is broken, or we cross compile.
4281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4282 $as_echo_n "checking whether we are cross compiling... " >&6; }
4283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4284 $as_echo "$cross_compiling" >&6; }
4286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4287 $as_echo_n "checking for suffix of executables... " >&6; }
4288 if { { ac_try="$ac_link"
4290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4291 *) ac_try_echo=$ac_try;;
4293 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4294 $as_echo "$ac_try_echo"; } >&5
4295 (eval "$ac_link") 2>&5
4297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4298 test $ac_status = 0; }; then :
4299 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4300 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4301 # work properly (i.e., refer to `conftest.exe'), while it won't with
4303 for ac_file in conftest.exe conftest conftest.*; do
4304 test -f "$ac_file" || continue
4306 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4307 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4313 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4314 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4315 as_fn_error "cannot compute suffix of executables: cannot compile and link
4316 See \`config.log' for more details." "$LINENO" 5; }
4318 rm -f conftest$ac_cv_exeext
4319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4320 $as_echo "$ac_cv_exeext" >&6; }
4322 rm -f conftest.$ac_ext
4323 EXEEXT=$ac_cv_exeext
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4326 $as_echo_n "checking for suffix of object files... " >&6; }
4327 if test "${ac_cv_objext+set}" = set; then :
4328 $as_echo_n "(cached) " >&6
4330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4331 /* end confdefs.h. */
4341 rm -f conftest.o conftest.obj
4342 if { { ac_try="$ac_compile"
4344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4345 *) ac_try_echo=$ac_try;;
4347 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4348 $as_echo "$ac_try_echo"; } >&5
4349 (eval "$ac_compile") 2>&5
4351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4352 test $ac_status = 0; }; then :
4353 for ac_file in conftest.o conftest.obj conftest.*; do
4354 test -f "$ac_file" || continue;
4356 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4357 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4362 $as_echo "$as_me: failed program was:" >&5
4363 sed 's/^/| /' conftest.$ac_ext >&5
4365 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4366 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4367 as_fn_error "cannot compute suffix of object files: cannot compile
4368 See \`config.log' for more details." "$LINENO" 5; }
4370 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4373 $as_echo "$ac_cv_objext" >&6; }
4374 OBJEXT=$ac_cv_objext
4376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4377 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4378 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
4379 $as_echo_n "(cached) " >&6
4381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4382 /* end confdefs.h. */
4395 if ac_fn_c_try_compile "$LINENO"; then :
4400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4401 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4405 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4406 if test $ac_compiler_gnu = yes; then
4411 ac_test_CFLAGS=${CFLAGS+set}
4412 ac_save_CFLAGS=$CFLAGS
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4414 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4415 if test "${ac_cv_prog_cc_g+set}" = set; then :
4416 $as_echo_n "(cached) " >&6
4418 ac_save_c_werror_flag=$ac_c_werror_flag
4419 ac_c_werror_flag=yes
4422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4423 /* end confdefs.h. */
4433 if ac_fn_c_try_compile "$LINENO"; then :
4437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4438 /* end confdefs.h. */
4448 if ac_fn_c_try_compile "$LINENO"; then :
4451 ac_c_werror_flag=$ac_save_c_werror_flag
4453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4454 /* end confdefs.h. */
4464 if ac_fn_c_try_compile "$LINENO"; then :
4467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4471 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4472 ac_c_werror_flag=$ac_save_c_werror_flag
4474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4475 $as_echo "$ac_cv_prog_cc_g" >&6; }
4476 if test "$ac_test_CFLAGS" = set; then
4477 CFLAGS=$ac_save_CFLAGS
4478 elif test $ac_cv_prog_cc_g = yes; then
4479 if test "$GCC" = yes; then
4485 if test "$GCC" = yes; then
4491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4492 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4493 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4494 $as_echo_n "(cached) " >&6
4496 ac_cv_prog_cc_c89=no
4498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4499 /* end confdefs.h. */
4502 #include <sys/types.h>
4503 #include <sys/stat.h>
4504 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4505 struct buf { int x; };
4506 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4507 static char *e (p, i)
4513 static char *f (char * (*g) (char **, int), char **p, ...)
4518 s = g (p, va_arg (v,int));
4523 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4524 function prototypes and stuff, but not '\xHH' hex character constants.
4525 These don't provoke an error unfortunately, instead are silently treated
4526 as 'x'. The following induces an error, until -std is added to get
4527 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4528 array size at least. It's necessary to write '\x00'==0 to get something
4529 that's true only with -std. */
4530 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4532 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4533 inside strings and character constants. */
4535 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4537 int test (int i, double x);
4538 struct s1 {int (*f) (int a);};
4539 struct s2 {int (*f) (double a);};
4540 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4546 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4551 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4552 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4554 CC="$ac_save_CC $ac_arg"
4555 if ac_fn_c_try_compile "$LINENO"; then :
4556 ac_cv_prog_cc_c89=$ac_arg
4558 rm -f core conftest.err conftest.$ac_objext
4559 test "x$ac_cv_prog_cc_c89" != "xno" && break
4561 rm -f conftest.$ac_ext
4566 case "x$ac_cv_prog_cc_c89" in
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4569 $as_echo "none needed" >&6; } ;;
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4572 $as_echo "unsupported" >&6; } ;;
4574 CC="$CC $ac_cv_prog_cc_c89"
4575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4576 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4578 if test "x$ac_cv_prog_cc_c89" != xno; then :
4583 ac_cpp='$CPP $CPPFLAGS'
4584 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4585 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4586 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4587 DEPDIR="${am__leading_dot}deps"
4589 ac_config_commands="$ac_config_commands depfiles"
4592 am_make=${MAKE-make}
4593 cat > confinc << 'END'
4595 @echo this is the am__doit target
4598 # If we don't find an include directive, just comment out the code.
4599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
4600 $as_echo_n "checking for style of include used by $am_make... " >&6; }
4604 # First try GNU make style include.
4605 echo "include confinc" > confmf
4606 # Ignore all kinds of additional output from `make'.
4607 case `$am_make -s -f confmf 2> /dev/null` in #(
4608 *the\ am__doit\ target*)
4614 # Now try BSD make style include.
4615 if test "$am__include" = "#"; then
4616 echo '.include "confinc"' > confmf
4617 case `$am_make -s -f confmf 2> /dev/null` in #(
4618 *the\ am__doit\ target*)
4619 am__include=.include
4627 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
4628 $as_echo "$_am_result" >&6; }
4629 rm -f confinc confmf
4631 # Check whether --enable-dependency-tracking was given.
4632 if test "${enable_dependency_tracking+set}" = set; then :
4633 enableval=$enable_dependency_tracking;
4636 if test "x$enable_dependency_tracking" != xno; then
4637 am_depcomp="$ac_aux_dir/depcomp"
4640 if test "x$enable_dependency_tracking" != xno; then
4650 depcc="$CC" am_compiler_list=
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4653 $as_echo_n "checking dependency style of $depcc... " >&6; }
4654 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4655 $as_echo_n "(cached) " >&6
4657 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4658 # We make a subdir and do the tests there. Otherwise we can end up
4659 # making bogus files that we don't know about and never remove. For
4660 # instance it was reported that on HP-UX the gcc test will end up
4661 # making a dummy file named `D' -- because `-MD' means `put the output
4664 # Copy depcomp to subdir because otherwise we won't find it if we're
4665 # using a relative directory.
4666 cp "$am_depcomp" conftest.dir
4668 # We will build objects and dependencies in a subdirectory because
4669 # it helps to detect inapplicable dependency modes. For instance
4670 # both Tru64's cc and ICC support -MD to output dependencies as a
4671 # side effect of compilation, but ICC will put the dependencies in
4672 # the current directory while Tru64 will put them in the object
4676 am_cv_CC_dependencies_compiler_type=none
4677 if test "$am_compiler_list" = ""; then
4678 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4681 case " $depcc " in #(
4682 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4685 for depmode in $am_compiler_list; do
4686 # Setup a source with many dependencies, because some compilers
4687 # like to wrap large dependency lists on column 80 (with \), and
4688 # we should not choose a depcomp mode which is confused by this.
4690 # We need to recreate these files for each test, as the compiler may
4691 # overwrite some of them when testing with obscure command lines.
4692 # This happens at least with the AIX C compiler.
4694 for i in 1 2 3 4 5 6; do
4695 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4696 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4697 # Solaris 8's {/usr,}/bin/sh.
4698 touch sub/conftst$i.h
4700 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4702 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4703 # mode. It turns out that the SunPro C++ compiler does not properly
4704 # handle `-M -o', and we need to detect this. Also, some Intel
4705 # versions had trouble with output in subdirs
4706 am__obj=sub/conftest.${OBJEXT-o}
4707 am__minus_obj="-o $am__obj"
4710 # This depmode causes a compiler race in universal mode.
4711 test "$am__universal" = false || continue
4714 # after this tag, mechanisms are not by side-effect, so they'll
4715 # only be used when explicitly requested
4716 if test "x$enable_dependency_tracking" = xyes; then
4722 msvisualcpp | msvcmsys)
4723 # This compiler won't grok `-c -o', but also, the minuso test has
4724 # not run yet. These depmodes are late enough in the game, and
4725 # so weak that their functioning should not be impacted.
4726 am__obj=conftest.${OBJEXT-o}
4731 if depmode=$depmode \
4732 source=sub/conftest.c object=$am__obj \
4733 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4734 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4735 >/dev/null 2>conftest.err &&
4736 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4737 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4738 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4739 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4740 # icc doesn't choke on unknown options, it will just issue warnings
4741 # or remarks (even with -Werror). So we grep stderr for any message
4742 # that says an option was ignored or not supported.
4743 # When given -MP, icc 7.0 and 7.1 complain thusly:
4744 # icc: Command line warning: ignoring option '-M'; no argument required
4745 # The diagnosis changed in icc 8.0:
4746 # icc: Command line remark: option '-MP' not supported
4747 if (grep 'ignoring option' conftest.err ||
4748 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4749 am_cv_CC_dependencies_compiler_type=$depmode
4758 am_cv_CC_dependencies_compiler_type=none
4762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4763 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4764 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4767 test "x$enable_dependency_tracking" != xno \
4768 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4770 am__fastdepCC_FALSE='#'
4772 am__fastdepCC_TRUE='#'
4773 am__fastdepCC_FALSE=
4778 ac_cpp='$CPP $CPPFLAGS'
4779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
4783 $as_echo_n "checking how to run the C preprocessor... " >&6; }
4784 # On Suns, sometimes $CPP names a directory.
4785 if test -n "$CPP" && test -d "$CPP"; then
4788 if test -z "$CPP"; then
4789 if test "${ac_cv_prog_CPP+set}" = set; then :
4790 $as_echo_n "(cached) " >&6
4792 # Double quotes because CPP needs to be expanded
4793 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4796 for ac_c_preproc_warn_flag in '' yes
4798 # Use a header file that comes with gcc, so configuring glibc
4799 # with a fresh cross-compiler works.
4800 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4801 # <limits.h> exists even on freestanding compilers.
4802 # On the NeXT, cc -E runs the code through the compiler's parser,
4803 # not just through cpp. "Syntax error" is here to catch this case.
4804 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4805 /* end confdefs.h. */
4807 # include <limits.h>
4809 # include <assert.h>
4813 if ac_fn_c_try_cpp "$LINENO"; then :
4816 # Broken: fails on valid input.
4819 rm -f conftest.err conftest.$ac_ext
4821 # OK, works on sane cases. Now check whether nonexistent headers
4822 # can be detected and how.
4823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4824 /* end confdefs.h. */
4825 #include <ac_nonexistent.h>
4827 if ac_fn_c_try_cpp "$LINENO"; then :
4828 # Broken: success on invalid input.
4831 # Passes both tests.
4835 rm -f conftest.err conftest.$ac_ext
4838 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4839 rm -f conftest.err conftest.$ac_ext
4840 if $ac_preproc_ok; then :
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
4853 $as_echo "$CPP" >&6; }
4855 for ac_c_preproc_warn_flag in '' yes
4857 # Use a header file that comes with gcc, so configuring glibc
4858 # with a fresh cross-compiler works.
4859 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4860 # <limits.h> exists even on freestanding compilers.
4861 # On the NeXT, cc -E runs the code through the compiler's parser,
4862 # not just through cpp. "Syntax error" is here to catch this case.
4863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4864 /* end confdefs.h. */
4866 # include <limits.h>
4868 # include <assert.h>
4872 if ac_fn_c_try_cpp "$LINENO"; then :
4875 # Broken: fails on valid input.
4878 rm -f conftest.err conftest.$ac_ext
4880 # OK, works on sane cases. Now check whether nonexistent headers
4881 # can be detected and how.
4882 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4883 /* end confdefs.h. */
4884 #include <ac_nonexistent.h>
4886 if ac_fn_c_try_cpp "$LINENO"; then :
4887 # Broken: success on invalid input.
4890 # Passes both tests.
4894 rm -f conftest.err conftest.$ac_ext
4897 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4898 rm -f conftest.err conftest.$ac_ext
4899 if $ac_preproc_ok; then :
4902 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4903 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4904 as_fn_error "C preprocessor \"$CPP\" fails sanity check
4905 See \`config.log' for more details." "$LINENO" 5; }
4909 ac_cpp='$CPP $CPPFLAGS'
4910 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4911 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4912 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4915 ac_cpp='$CPP $CPPFLAGS'
4916 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4917 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4918 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4922 # Check whether --enable-decimal-float was given.
4923 if test "${enable_decimal_float+set}" = set; then :
4924 enableval=$enable_decimal_float; case $enableval in
4926 $as_echo "#define MPFR_WANT_DECIMAL_FLOATS 1" >>confdefs.h
4928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler knows _Decimal64" >&5
4929 $as_echo_n "checking if compiler knows _Decimal64... " >&6; }
4930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4931 /* end confdefs.h. */
4941 if ac_fn_c_try_compile "$LINENO"; then :
4942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4943 $as_echo "yes" >&6; }
4944 if test "$use_gmp_build" != yes ; then
4945 as_fn_error "decimal float support requires --with-gmp-build" "$LINENO" 5
4947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _GMP_IEEE_FLOATS is defined" >&5
4948 $as_echo_n "checking if _GMP_IEEE_FLOATS is defined... " >&6; }
4949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4950 /* end confdefs.h. */
4953 #include "gmp-impl.h"
4954 #ifndef _GMP_IEEE_FLOATS
4955 #error "_GMP_IEEE_FLOATS is not defined"
4958 if ac_fn_c_try_compile "$LINENO"; then :
4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4960 $as_echo "yes" >&6; }
4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4963 $as_echo "no" >&6; }
4964 as_fn_error "decimal float support requires _GMP_IEEE_FLOATS" "$LINENO" 5
4966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4969 as_fn_error "Compiler doesn't know _Decimal64; try GCC >= 4.2, configured with --enable-decimal-float
4972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking decimal float format" >&5
4974 $as_echo_n "checking decimal float format... " >&6; }
4975 if test "$cross_compiling" = yes; then :
4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming DPD" >&5
4977 $as_echo "assuming DPD" >&6; }
4978 $as_echo "#define DPD_FORMAT 1" >>confdefs.h
4981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4982 /* end confdefs.h. */
4990 union { double d; _Decimal64 d64; } y;
4991 y.d64 = 1234567890123456.0dd;
4992 return y.d == 0.14894469406741037E-123 ? 0 :
4993 y.d == 0.59075095508629822E-68 ? 1 : 2;
4999 if ac_fn_c_try_run "$LINENO"; then :
5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: DPD" >&5
5001 $as_echo "DPD" >&6; }
5002 $as_echo "#define DPD_FORMAT 1" >>confdefs.h
5005 if test "$?" != 1 ; then
5006 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5007 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5008 as_fn_error "neither DPD nor BID
5009 See \`config.log' for more details." "$LINENO" 5; }
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: BID" >&5
5012 $as_echo "BID" >&6; }
5014 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5015 conftest.$ac_objext conftest.beam conftest.$ac_ext
5020 *) as_fn_error "bad value for --enable-decimal-float: yes or no" "$LINENO" 5 ;;
5025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ICC" >&5
5026 $as_echo_n "checking for ICC... " >&6; }
5027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5028 /* end confdefs.h. */
5031 # error "ICC Not Found"
5043 if ac_fn_c_try_compile "$LINENO"; then :
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5046 $as_echo "yes" >&6; }
5047 CFLAGS="-fp_port -mp -wd1572 -wd265 -wd186 -wd239 $CFLAGS"
5050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5051 $as_echo "no" >&6; }
5053 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5055 if test "$test_CFLAGS" != set && test -n "$GCC"; then
5056 CFLAGS="-Wall -Wmissing-prototypes -Wpointer-arith $CFLAGS"
5057 if test -n "$disable_gcc_format_warning" ; then
5058 CFLAGS="$CFLAGS -Wno-format"
5062 if test "x$CC" != xcc; then
5063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
5064 $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
5066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
5067 $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
5069 set dummy $CC; ac_cc=`$as_echo "$2" |
5070 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5071 if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then :
5072 $as_echo_n "(cached) " >&6
5074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5075 /* end confdefs.h. */
5085 # Make sure it works both with $CC and with simple cc.
5086 # We do the test twice because some compilers refuse to overwrite an
5087 # existing .o file with -o, though they will create one.
5088 ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5090 if { { case "(($ac_try" in
5091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5092 *) ac_try_echo=$ac_try;;
5094 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5095 $as_echo "$ac_try_echo"; } >&5
5096 (eval "$ac_try") 2>&5
5098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5099 test $ac_status = 0; } &&
5100 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5102 *) ac_try_echo=$ac_try;;
5104 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5105 $as_echo "$ac_try_echo"; } >&5
5106 (eval "$ac_try") 2>&5
5108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5109 test $ac_status = 0; };
5111 eval ac_cv_prog_cc_${ac_cc}_c_o=yes
5112 if test "x$CC" != xcc; then
5113 # Test first that cc exists at all.
5114 if { ac_try='cc -c conftest.$ac_ext >&5'
5115 { { case "(($ac_try" in
5116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5117 *) ac_try_echo=$ac_try;;
5119 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5120 $as_echo "$ac_try_echo"; } >&5
5121 (eval "$ac_try") 2>&5
5123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5124 test $ac_status = 0; }; }; then
5125 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
5127 if { { case "(($ac_try" in
5128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5129 *) ac_try_echo=$ac_try;;
5131 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5132 $as_echo "$ac_try_echo"; } >&5
5133 (eval "$ac_try") 2>&5
5135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5136 test $ac_status = 0; } &&
5137 test -f conftest2.$ac_objext && { { case "(($ac_try" in
5138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5139 *) ac_try_echo=$ac_try;;
5141 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
5142 $as_echo "$ac_try_echo"; } >&5
5143 (eval "$ac_try") 2>&5
5145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5146 test $ac_status = 0; };
5151 # cc exists but doesn't like -o.
5152 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5157 eval ac_cv_prog_cc_${ac_cc}_c_o=no
5159 rm -f core conftest*
5162 if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5164 $as_echo "yes" >&6; }
5166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5167 $as_echo "no" >&6; }
5169 $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
5173 # FIXME: we rely on the cache variable name because
5174 # there is no other way.
5176 am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
5177 eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
5178 if test "$am_t" != yes; then
5179 # Losing compiler, so override with the script.
5180 # FIXME: It is wrong to rewrite CC.
5181 # But if we don't then we get into trouble of one sort or another.
5182 # A longer-term fix would be to have automake use am__CC in this case,
5183 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
5184 CC="$am_aux_dir/compile $CC"
5188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
5189 $as_echo_n "checking for function prototypes... " >&6; }
5190 if test "$ac_cv_prog_cc_c89" != no; then
5191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5192 $as_echo "yes" >&6; }
5194 $as_echo "#define PROTOTYPES 1" >>confdefs.h
5197 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5201 $as_echo "no" >&6; }
5205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5206 $as_echo_n "checking for ANSI C header files... " >&6; }
5207 if test "${ac_cv_header_stdc+set}" = set; then :
5208 $as_echo_n "(cached) " >&6
5210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5211 /* end confdefs.h. */
5225 if ac_fn_c_try_compile "$LINENO"; then :
5226 ac_cv_header_stdc=yes
5228 ac_cv_header_stdc=no
5230 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5232 if test $ac_cv_header_stdc = yes; then
5233 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5234 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5235 /* end confdefs.h. */
5239 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5240 $EGREP "memchr" >/dev/null 2>&1; then :
5243 ac_cv_header_stdc=no
5249 if test $ac_cv_header_stdc = yes; then
5250 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5252 /* end confdefs.h. */
5256 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5257 $EGREP "free" >/dev/null 2>&1; then :
5260 ac_cv_header_stdc=no
5266 if test $ac_cv_header_stdc = yes; then
5267 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5268 if test "$cross_compiling" = yes; then :
5271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5272 /* end confdefs.h. */
5275 #if ((' ' & 0x0FF) == 0x020)
5276 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5277 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5279 # define ISLOWER(c) \
5280 (('a' <= (c) && (c) <= 'i') \
5281 || ('j' <= (c) && (c) <= 'r') \
5282 || ('s' <= (c) && (c) <= 'z'))
5283 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5286 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5291 for (i = 0; i < 256; i++)
5292 if (XOR (islower (i), ISLOWER (i))
5293 || toupper (i) != TOUPPER (i))
5298 if ac_fn_c_try_run "$LINENO"; then :
5301 ac_cv_header_stdc=no
5303 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5304 conftest.$ac_objext conftest.beam conftest.$ac_ext
5309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5310 $as_echo "$ac_cv_header_stdc" >&6; }
5311 if test $ac_cv_header_stdc = yes; then
5313 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5317 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5318 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5319 inttypes.h stdint.h unistd.h
5321 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5322 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5324 eval as_val=\$$as_ac_Header
5325 if test "x$as_val" = x""yes; then :
5326 cat >>confdefs.h <<_ACEOF
5327 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5336 if test "$ac_cv_prog_cc_stdc" != no; then
5339 U=_ ANSI2KNR=./ansi2knr
5341 # Ensure some checks needed by ansi2knr itself.
5343 for ac_header in string.h
5345 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
5346 if test "x$ac_cv_header_string_h" = x""yes; then :
5347 cat >>confdefs.h <<_ACEOF
5348 #define HAVE_STRING_H 1
5359 case "$LD $LDFLAGS" in
5360 *-Wl,-search_paths_first*) ;;
5361 *) { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the compiler understands -Wl,-search_paths_first" >&5
5362 $as_echo_n "checking if the compiler understands -Wl,-search_paths_first... " >&6; }
5363 saved_LDFLAGS="$LDFLAGS"
5364 LDFLAGS="-Wl,-search_paths_first $LDFLAGS"
5365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5366 /* end confdefs.h. */
5376 if ac_fn_c_try_link "$LINENO"; then :
5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5378 $as_echo "yes" >&6; }
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5381 $as_echo "no" >&6; }
5382 LDFLAGS="$saved_LDFLAGS"
5384 rm -f core conftest.err conftest.$ac_objext \
5385 conftest$ac_exeext conftest.$ac_ext
5391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
5392 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
5393 if test "${ac_cv_c_const+set}" = set; then :
5394 $as_echo_n "(cached) " >&6
5396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5397 /* end confdefs.h. */
5402 /* FIXME: Include the comments suggested by Paul. */
5404 /* Ultrix mips cc rejects this. */
5405 typedef int charset[2];
5407 /* SunOS 4.1.1 cc rejects this. */
5408 char const *const *pcpcc;
5410 /* NEC SVR4.0.2 mips cc rejects this. */
5411 struct point {int x, y;};
5412 static struct point const zero = {0,0};
5413 /* AIX XL C 1.02.0.0 rejects this.
5414 It does not let you subtract one const X* pointer from another in
5415 an arm of an if-expression whose if-part is not a constant
5417 const char *g = "string";
5418 pcpcc = &g + (g ? g-g : 0);
5419 /* HPUX 7.0 cc rejects these. */
5421 ppc = (char**) pcpcc;
5422 pcpcc = (char const *const *) ppc;
5423 { /* SCO 3.2v4 cc rejects this. */
5425 char const *s = 0 ? (char *) 0 : (char const *) 0;
5430 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
5432 const int *foo = &x[0];
5435 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
5436 typedef const int *iptr;
5440 { /* AIX XL C 1.02.0.0 rejects this saying
5441 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
5442 struct s { int j; const int *ap[3]; };
5443 struct s *b; b->j = 5;
5445 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
5449 return !cs[0] && !zero.x;
5456 if ac_fn_c_try_compile "$LINENO"; then :
5461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
5464 $as_echo "$ac_cv_c_const" >&6; }
5465 if test $ac_cv_c_const = no; then
5467 $as_echo "#define const /**/" >>confdefs.h
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
5472 $as_echo_n "checking for working volatile... " >&6; }
5473 if test "${ac_cv_c_volatile+set}" = set; then :
5474 $as_echo_n "(cached) " >&6
5476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5477 /* end confdefs.h. */
5484 int * volatile y = (int *) 0;
5490 if ac_fn_c_try_compile "$LINENO"; then :
5491 ac_cv_c_volatile=yes
5495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
5498 $as_echo "$ac_cv_c_volatile" >&6; }
5499 if test $ac_cv_c_volatile = no; then
5501 $as_echo "#define volatile /**/" >>confdefs.h
5510 *-*-beos* | *-*-cygwin* | *-*-pw32*)
5511 # According to libtool AC CHECK LIBM, these systems don't have libm
5514 # -lM means something subtly different to -lm, SVID style error handling
5515 # or something. FIXME: Why exactly do we want this?
5516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lM" >&5
5517 $as_echo_n "checking for main in -lM... " >&6; }
5518 if test "${ac_cv_lib_M_main+set}" = set; then :
5519 $as_echo_n "(cached) " >&6
5521 ac_check_lib_save_LIBS=$LIBS
5523 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5524 /* end confdefs.h. */
5535 if ac_fn_c_try_link "$LINENO"; then :
5536 ac_cv_lib_M_main=yes
5540 rm -f core conftest.err conftest.$ac_objext \
5541 conftest$ac_exeext conftest.$ac_ext
5542 LIBS=$ac_check_lib_save_LIBS
5544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_M_main" >&5
5545 $as_echo "$ac_cv_lib_M_main" >&6; }
5546 if test "x$ac_cv_lib_M_main" = x""yes; then :
5552 # On Solaris the math functions new in C99 are in -lm9x.
5553 # FIXME: Do we need -lm9x as well as -lm, or just instead of?
5554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm9x" >&5
5555 $as_echo_n "checking for main in -lm9x... " >&6; }
5556 if test "${ac_cv_lib_m9x_main+set}" = set; then :
5557 $as_echo_n "(cached) " >&6
5559 ac_check_lib_save_LIBS=$LIBS
5561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5562 /* end confdefs.h. */
5573 if ac_fn_c_try_link "$LINENO"; then :
5574 ac_cv_lib_m9x_main=yes
5576 ac_cv_lib_m9x_main=no
5578 rm -f core conftest.err conftest.$ac_objext \
5579 conftest$ac_exeext conftest.$ac_ext
5580 LIBS=$ac_check_lib_save_LIBS
5582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m9x_main" >&5
5583 $as_echo "$ac_cv_lib_m9x_main" >&6; }
5584 if test "x$ac_cv_lib_m9x_main" = x""yes; then :
5588 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
5589 $as_echo_n "checking for main in -lm... " >&6; }
5590 if test "${ac_cv_lib_m_main+set}" = set; then :
5591 $as_echo_n "(cached) " >&6
5593 ac_check_lib_save_LIBS=$LIBS
5595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5596 /* end confdefs.h. */
5607 if ac_fn_c_try_link "$LINENO"; then :
5608 ac_cv_lib_m_main=yes
5612 rm -f core conftest.err conftest.$ac_objext \
5613 conftest$ac_exeext conftest.$ac_ext
5614 LIBS=$ac_check_lib_save_LIBS
5616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
5617 $as_echo "$ac_cv_lib_m_main" >&6; }
5618 if test "x$ac_cv_lib_m_main" = x""yes; then :
5619 MPFR_LIBM="$MPFR_LIBM -lm"
5624 # FIXME: What does -lmw mean? Libtool AC CHECK LIBM does it this way.
5625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
5626 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
5627 if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then :
5628 $as_echo_n "(cached) " >&6
5630 ac_check_lib_save_LIBS=$LIBS
5632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5633 /* end confdefs.h. */
5635 /* Override any GCC internal prototype to avoid an error.
5636 Use char because int might match the return type of a GCC
5637 builtin and then its argument prototype would still apply. */
5641 char _mwvalidcheckl ();
5645 return _mwvalidcheckl ();
5650 if ac_fn_c_try_link "$LINENO"; then :
5651 ac_cv_lib_mw__mwvalidcheckl=yes
5653 ac_cv_lib_mw__mwvalidcheckl=no
5655 rm -f core conftest.err conftest.$ac_objext \
5656 conftest$ac_exeext conftest.$ac_ext
5657 LIBS=$ac_check_lib_save_LIBS
5659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
5660 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
5661 if test "x$ac_cv_lib_mw__mwvalidcheckl" = x""yes; then :
5665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
5666 $as_echo_n "checking for main in -lm... " >&6; }
5667 if test "${ac_cv_lib_m_main+set}" = set; then :
5668 $as_echo_n "(cached) " >&6
5670 ac_check_lib_save_LIBS=$LIBS
5672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5673 /* end confdefs.h. */
5684 if ac_fn_c_try_link "$LINENO"; then :
5685 ac_cv_lib_m_main=yes
5689 rm -f core conftest.err conftest.$ac_objext \
5690 conftest$ac_exeext conftest.$ac_ext
5691 LIBS=$ac_check_lib_save_LIBS
5693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
5694 $as_echo "$ac_cv_lib_m_main" >&6; }
5695 if test "x$ac_cv_lib_m_main" = x""yes; then :
5696 MPFR_LIBM="$MPFR_LIBM -lm"
5701 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for main in -lm" >&5
5702 $as_echo_n "checking for main in -lm... " >&6; }
5703 if test "${ac_cv_lib_m_main+set}" = set; then :
5704 $as_echo_n "(cached) " >&6
5706 ac_check_lib_save_LIBS=$LIBS
5708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5709 /* end confdefs.h. */
5720 if ac_fn_c_try_link "$LINENO"; then :
5721 ac_cv_lib_m_main=yes
5725 rm -f core conftest.err conftest.$ac_objext \
5726 conftest$ac_exeext conftest.$ac_ext
5727 LIBS=$ac_check_lib_save_LIBS
5729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_main" >&5
5730 $as_echo "$ac_cv_lib_m_main" >&6; }
5731 if test "x$ac_cv_lib_m_main" = x""yes; then :
5738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
5739 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
5740 if test "${ac_cv_header_time+set}" = set; then :
5741 $as_echo_n "(cached) " >&6
5743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5744 /* end confdefs.h. */
5745 #include <sys/types.h>
5746 #include <sys/time.h>
5752 if ((struct tm *) 0)
5758 if ac_fn_c_try_compile "$LINENO"; then :
5759 ac_cv_header_time=yes
5761 ac_cv_header_time=no
5763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
5766 $as_echo "$ac_cv_header_time" >&6; }
5767 if test $ac_cv_header_time = yes; then
5769 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
5779 ac_fn_c_check_header_mongrel "$LINENO" "limits.h" "ac_cv_header_limits_h" "$ac_includes_default"
5780 if test "x$ac_cv_header_limits_h" = x""yes; then :
5783 as_fn_error "limits.h not found" "$LINENO" 5
5787 ac_fn_c_check_header_mongrel "$LINENO" "float.h" "ac_cv_header_float_h" "$ac_includes_default"
5788 if test "x$ac_cv_header_float_h" = x""yes; then :
5791 as_fn_error "float.h not found" "$LINENO" 5
5795 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
5796 if test "x$ac_cv_header_string_h" = x""yes; then :
5799 as_fn_error "string.h not found" "$LINENO" 5
5804 for ac_header in locale.h
5806 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
5807 if test "x$ac_cv_header_locale_h" = x""yes; then :
5808 cat >>confdefs.h <<_ACEOF
5809 #define HAVE_LOCALE_H 1
5817 for ac_header in wchar.h
5819 ac_fn_c_check_header_mongrel "$LINENO" "wchar.h" "ac_cv_header_wchar_h" "$ac_includes_default"
5820 if test "x$ac_cv_header_wchar_h" = x""yes; then :
5821 cat >>confdefs.h <<_ACEOF
5822 #define HAVE_WCHAR_H 1
5830 ac_fn_c_check_header_mongrel "$LINENO" "stdarg.h" "ac_cv_header_stdarg_h" "$ac_includes_default"
5831 if test "x$ac_cv_header_stdarg_h" = x""yes; then :
5833 $as_echo "#define HAVE_STDARG 1" >>confdefs.h
5836 ac_fn_c_check_header_mongrel "$LINENO" "varargs.h" "ac_cv_header_varargs_h" "$ac_includes_default"
5837 if test "x$ac_cv_header_varargs_h" = x""yes; then :
5840 as_fn_error "stdarg.h or varargs.h not found" "$LINENO" 5
5848 for ac_header in sys/time.h sys/fpu.h
5850 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5851 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
5852 eval as_val=\$$as_ac_Header
5853 if test "x$as_val" = x""yes; then :
5854 cat >>confdefs.h <<_ACEOF
5855 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5864 for ac_header in stdint.h
5866 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
5867 if test "x$ac_cv_header_stdint_h" = x""yes; then :
5868 cat >>confdefs.h <<_ACEOF
5869 #define HAVE_STDINT_H 1
5876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5
5877 $as_echo_n "checking for SIZE_MAX... " >&6; }
5878 if test "${gl_cv_size_max+set}" = set; then :
5879 $as_echo_n "(cached) " >&6
5883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5884 /* end confdefs.h. */
5895 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5896 $EGREP "Found it" >/dev/null 2>&1; then :
5901 if test -z "$gl_cv_size_max"; then
5902 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h>
5903 #include <limits.h>"; then :
5906 size_t_bits_minus_1=
5909 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then :
5915 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then
5916 if test $fits_in_uint = 1; then
5917 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5918 /* end confdefs.h. */
5921 extern unsigned long foo;
5931 if ac_fn_c_try_compile "$LINENO"; then :
5934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5936 if test $fits_in_uint = 1; then
5937 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)"
5939 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)"
5942 gl_cv_size_max='((size_t)~(size_t)0)'
5948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5
5949 $as_echo "$gl_cv_size_max" >&6; }
5950 if test "$gl_cv_size_max" != yes; then
5952 cat >>confdefs.h <<_ACEOF
5953 #define SIZE_MAX $gl_cv_size_max
5959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to copy va_list" >&5
5960 $as_echo_n "checking how to copy va_list... " >&6; }
5961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5962 /* end confdefs.h. */
5977 if ac_fn_c_try_link "$LINENO"; then :
5979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: va_copy" >&5
5980 $as_echo "va_copy" >&6; }
5981 $as_echo "#define HAVE_VA_COPY 1" >>confdefs.h
5985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5986 /* end confdefs.h. */
5995 __va_copy(ap1, ap2);
6001 if ac_fn_c_try_link "$LINENO"; then :
6002 $as_echo "#define HAVE___VA_COPY 1" >>confdefs.h
6003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: __va_copy" >&5
6004 $as_echo "__va_copy" >&6; }
6006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: memcpy" >&5
6007 $as_echo "memcpy" >&6; }
6009 rm -f core conftest.err conftest.$ac_objext \
6010 conftest$ac_exeext conftest.$ac_ext
6012 rm -f core conftest.err conftest.$ac_objext \
6013 conftest$ac_exeext conftest.$ac_ext
6015 for ac_func in memmove memset setlocale strtol gettimeofday
6017 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
6018 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
6019 eval as_val=\$$as_ac_var
6020 if test "x$as_val" = x""yes; then :
6021 cat >>confdefs.h <<_ACEOF
6022 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
6031 saved_CFLAGS="$CFLAGS"
6032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IEEE-754 switches" >&5
6033 $as_echo_n "checking for IEEE-754 switches... " >&6; }
6034 if test "${mpfr_cv_ieee_switches+set}" = set; then :
6035 $as_echo_n "(cached) " >&6
6038 if test -n "$GCC"; then
6039 mpfr_cv_ieee_switches="-mfp-rounding-mode=d -mieee-with-inexact"
6041 mpfr_cv_ieee_switches="-fprm d -ieee_with_inexact"
6043 CFLAGS="$CFLAGS $mpfr_cv_ieee_switches"
6044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6045 /* end confdefs.h. */
6055 if ac_fn_c_try_compile "$LINENO"; then :
6058 mpfr_cv_ieee_switches="none"
6060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_ieee_switches" >&5
6064 $as_echo "$mpfr_cv_ieee_switches" >&6; }
6065 if test "$mpfr_cv_ieee_switches" = "none"; then
6066 CFLAGS="$saved_CFLAGS"
6068 CFLAGS="$saved_CFLAGS $mpfr_cv_ieee_switches"
6074 case `sed -n '/^vendor_id/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
6076 $as_echo "#define HAVE_HOST_CORE2 1" >>confdefs.h
6081 ac_fn_c_check_type "$LINENO" "long long int" "ac_cv_type_long_long_int" "$ac_includes_default"
6082 if test "x$ac_cv_type_long_long_int" = x""yes; then :
6084 $as_echo "#define HAVE_LONG_LONG 1" >>confdefs.h
6089 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
6090 if test "x$ac_cv_type_intmax_t" = x""yes; then :
6092 cat >>confdefs.h <<_ACEOF
6093 #define HAVE_INTMAX_T 1
6100 ac_fn_c_check_type "$LINENO" "union fpc_csr" "ac_cv_type_union_fpc_csr" "
6102 # include <sys/fpu.h>
6106 if test "x$ac_cv_type_union_fpc_csr" = x""yes; then :
6108 $as_echo "#define HAVE_FPC_CSR 1" >>confdefs.h
6113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fesetround" >&5
6114 $as_echo_n "checking for fesetround... " >&6; }
6115 if test "${mpfr_cv_have_fesetround+set}" = set; then :
6116 $as_echo_n "(cached) " >&6
6120 LIBS="$LIBS $MPFR_LIBM"
6121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6122 /* end confdefs.h. */
6127 fesetround(FE_TONEAREST);
6132 if ac_fn_c_try_link "$LINENO"; then :
6133 mpfr_cv_have_fesetround=yes
6135 mpfr_cv_have_fesetround=no
6137 rm -f core conftest.err conftest.$ac_objext \
6138 conftest$ac_exeext conftest.$ac_ext
6142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_have_fesetround" >&5
6143 $as_echo "$mpfr_cv_have_fesetround" >&6; }
6144 if test "$mpfr_cv_have_fesetround" = "yes"; then
6146 $as_echo "#define MPFR_HAVE_FESETROUND 1" >>confdefs.h
6150 if test -n "$GCC"; then
6151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcc float-conversion bug" >&5
6152 $as_echo_n "checking for gcc float-conversion bug... " >&6; }
6153 if test "${mpfr_cv_gcc_floatconv_bug+set}" = set; then :
6154 $as_echo_n "(cached) " >&6
6158 LIBS="$LIBS $MPFR_LIBM"
6159 if test "$cross_compiling" = yes; then :
6160 mpfr_cv_gcc_floatconv_bug="cannot test, use -ffloat-store"
6162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6163 /* end confdefs.h. */
6166 #ifdef MPFR_HAVE_FESETROUND
6169 static double get_max (void);
6174 for (i = 1; i <= 11; i++)
6178 #ifdef MPFR_HAVE_FESETROUND
6179 /* Useful test for the G4 PowerPC */
6180 fesetround(FE_TOWARDZERO);
6188 static double get_max (void) { static volatile double d = DBL_MAX; return d; }
6191 if ac_fn_c_try_run "$LINENO"; then :
6192 mpfr_cv_gcc_floatconv_bug="no"
6194 mpfr_cv_gcc_floatconv_bug="yes, use -ffloat-store"
6196 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6197 conftest.$ac_objext conftest.beam conftest.$ac_ext
6203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_gcc_floatconv_bug" >&5
6204 $as_echo "$mpfr_cv_gcc_floatconv_bug" >&6; }
6205 if test "$mpfr_cv_gcc_floatconv_bug" != "no"; then
6206 CFLAGS="$CFLAGS -ffloat-store"
6210 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for denormalized numbers" >&5
6211 $as_echo_n "checking for denormalized numbers... " >&6; }
6212 if test "${mpfr_cv_have_denorms+set}" = set; then :
6213 $as_echo_n "(cached) " >&6
6216 if test "$cross_compiling" = yes; then :
6217 mpfr_cv_have_denorms=no
6219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6220 /* end confdefs.h. */
6225 double x = 2.22507385850720138309e-308;
6226 fprintf (stderr, "%e\n", x / 2.0);
6227 return 2.0 * (x / 2.0) != x;
6231 if ac_fn_c_try_run "$LINENO"; then :
6232 mpfr_cv_have_denorms=yes
6234 mpfr_cv_have_denorms=no
6236 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6237 conftest.$ac_objext conftest.beam conftest.$ac_ext
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_have_denorms" >&5
6243 $as_echo "$mpfr_cv_have_denorms" >&6; }
6244 if test "$mpfr_cv_have_denorms" = "yes"; then
6246 $as_echo "#define HAVE_DENORMS 1" >>confdefs.h
6250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if NAN == NAN" >&5
6251 $as_echo_n "checking if NAN == NAN... " >&6; }
6252 if test "${mpfr_cv_nanisnan+set}" = set; then :
6253 $as_echo_n "(cached) " >&6
6256 if test "$cross_compiling" = yes; then :
6257 mpfr_cv_nanisnan="cannot test, assume no"
6259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6260 /* end confdefs.h. */
6265 # define NAN (0.0/0.0)
6274 if ac_fn_c_try_run "$LINENO"; then :
6275 mpfr_cv_nanisnan="yes"
6277 mpfr_cv_nanisnan="no"
6279 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6280 conftest.$ac_objext conftest.beam conftest.$ac_ext
6285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_nanisnan" >&5
6286 $as_echo "$mpfr_cv_nanisnan" >&6; }
6287 if test "$mpfr_cv_nanisnan" = "yes"; then
6289 $as_echo "#define MPFR_NANISNAN 1" >>confdefs.h
6291 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: The test NAN != NAN is false. The probable reason is that" >&5
6292 $as_echo "$as_me: WARNING: The test NAN != NAN is false. The probable reason is that" >&2;}
6293 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: your compiler optimizes floating-point expressions in an" >&5
6294 $as_echo "$as_me: WARNING: your compiler optimizes floating-point expressions in an" >&2;}
6295 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unsafe way because some option, such as -ffast-math or" >&5
6296 $as_echo "$as_me: WARNING: unsafe way because some option, such as -ffast-math or" >&2;}
6297 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: -fast (depending on the compiler), has been used. You" >&5
6298 $as_echo "$as_me: WARNING: -fast (depending on the compiler), has been used. You" >&2;}
6299 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: should NOT use such an option, otherwise MPFR functions" >&5
6300 $as_echo "$as_me: WARNING: should NOT use such an option, otherwise MPFR functions" >&2;}
6301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: such as mpfr_get_d and mpfr_set_d may return incorrect" >&5
6302 $as_echo "$as_me: WARNING: such as mpfr_get_d and mpfr_set_d may return incorrect" >&2;}
6303 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: results on special FP numbers (e.g. NaN or signed zeros)." >&5
6304 $as_echo "$as_me: WARNING: results on special FP numbers (e.g. NaN or signed zeros)." >&2;}
6305 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: If you did not use such an option, please send us a bug" >&5
6306 $as_echo "$as_me: WARNING: If you did not use such an option, please send us a bug" >&2;}
6307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: report so that we can try to find a workaround for your" >&5
6308 $as_echo "$as_me: WARNING: report so that we can try to find a workaround for your" >&2;}
6309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: platform and/or document the behavior." >&5
6310 $as_echo "$as_me: WARNING: platform and/or document the behavior." >&2;}
6313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if charset has consecutive values" >&5
6314 $as_echo_n "checking if charset has consecutive values... " >&6; }
6315 if test "$cross_compiling" = yes; then :
6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: can not test" >&5
6317 $as_echo "can not test" >&6; }
6319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6320 /* end confdefs.h. */
6322 char *number = "0123456789";
6323 char *lower = "abcdefghijklmnopqrstuvwxyz";
6324 char *upper = "ABCDEFGHIJKLMNOPQRSTUVWXYZ";
6332 for (p = (unsigned char*) number, i = 0; i < 9; i++)
6333 if ( (*p)+1 != *(p+1) ) return 1;
6334 for (p = (unsigned char*) lower, i = 0; i < 25; i++)
6335 if ( (*p)+1 != *(p+1) ) return 1;
6336 for (p = (unsigned char*) upper, i = 0; i < 25; i++)
6337 if ( (*p)+1 != *(p+1) ) return 1;
6343 if ac_fn_c_try_run "$LINENO"; then :
6344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6345 $as_echo "yes" >&6; }
6348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6349 $as_echo "no" >&6; }
6351 $as_echo "#define MPFR_NO_CONSECUTIVE_CHARSET 1" >>confdefs.h
6355 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6356 conftest.$ac_objext conftest.beam conftest.$ac_ext
6361 LIBS="$LIBS $MPFR_LIBM"
6362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for math/round" >&5
6363 $as_echo_n "checking for math/round... " >&6; }
6364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6365 /* end confdefs.h. */
6368 int f (double (*func)(double)) { return 0;}
6382 if ac_fn_c_try_link "$LINENO"; then :
6384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6385 $as_echo "yes" >&6; }
6387 $as_echo "#define HAVE_ROUND 1" >>confdefs.h
6391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6392 $as_echo "no" >&6; }
6394 rm -f core conftest.err conftest.$ac_objext \
6395 conftest$ac_exeext conftest.$ac_ext
6397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for math/trunc" >&5
6398 $as_echo_n "checking for math/trunc... " >&6; }
6399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6400 /* end confdefs.h. */
6403 int f (double (*func)(double)) { return 0;}
6417 if ac_fn_c_try_link "$LINENO"; then :
6419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6420 $as_echo "yes" >&6; }
6422 $as_echo "#define HAVE_TRUNC 1" >>confdefs.h
6426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6427 $as_echo "no" >&6; }
6429 rm -f core conftest.err conftest.$ac_objext \
6430 conftest$ac_exeext conftest.$ac_ext
6432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for math/floor" >&5
6433 $as_echo_n "checking for math/floor... " >&6; }
6434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6435 /* end confdefs.h. */
6438 int f (double (*func)(double)) { return 0;}
6452 if ac_fn_c_try_link "$LINENO"; then :
6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6455 $as_echo "yes" >&6; }
6457 $as_echo "#define HAVE_FLOOR 1" >>confdefs.h
6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6462 $as_echo "no" >&6; }
6464 rm -f core conftest.err conftest.$ac_objext \
6465 conftest$ac_exeext conftest.$ac_ext
6467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for math/ceil" >&5
6468 $as_echo_n "checking for math/ceil... " >&6; }
6469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6470 /* end confdefs.h. */
6473 int f (double (*func)(double)) { return 0;}
6487 if ac_fn_c_try_link "$LINENO"; then :
6489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6490 $as_echo "yes" >&6; }
6492 $as_echo "#define HAVE_CEIL 1" >>confdefs.h
6496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6497 $as_echo "no" >&6; }
6499 rm -f core conftest.err conftest.$ac_objext \
6500 conftest$ac_exeext conftest.$ac_ext
6502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for math/rint" >&5
6503 $as_echo_n "checking for math/rint... " >&6; }
6504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6505 /* end confdefs.h. */
6508 int f (double (*func)(double)) { return 0;}
6522 if ac_fn_c_try_link "$LINENO"; then :
6524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
6525 $as_echo "yes" >&6; }
6527 $as_echo "#define HAVE_NEARBYINT 1" >>confdefs.h
6531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6532 $as_echo "no" >&6; }
6534 rm -f core conftest.err conftest.$ac_objext \
6535 conftest$ac_exeext conftest.$ac_ext
6542 ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "$ac_includes_default"
6543 if test "x$ac_cv_type_long_double" = x""yes; then :
6545 cat >>confdefs.h <<_ACEOF
6546 #define HAVE_LONG_DOUBLE 1
6552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking format of \`long double' floating point" >&5
6553 $as_echo_n "checking format of \`long double' floating point... " >&6; }
6554 if test "${mpfr_cv_c_long_double_format+set}" = set; then :
6555 $as_echo_n "(cached) " >&6
6557 mpfr_cv_c_long_double_format=unknown
6558 if test "$ac_cv_type_long_double" != yes; then
6559 mpfr_cv_c_long_double_format="not available"
6561 cat >conftest.c <<\EOF
6563 /* "before" is 16 bytes to ensure there's no padding between it and "x".
6564 We're not expecting any "long double" bigger than 16 bytes or with
6565 alignment requirements stricter than 16 bytes. */
6571 { '\0', '\0', '\0', '\0', '\0', '\0', '\0', '\0',
6572 '\001', '\043', '\105', '\147', '\211', '\253', '\315', '\357' },
6574 { '\376', '\334', '\272', '\230', '\166', '\124', '\062', '\020' }
6578 mpfr_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >&5 2>&1"
6579 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$mpfr_compile\""; } >&5
6580 (eval $mpfr_compile) 2>&5
6582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6583 test $ac_status = 0; }; then
6584 cat >conftest.awk <<\EOF
6590 # got[] holds a sliding window of bytes read the input. got[0] is the most
6591 # recent byte read, and got[31] the oldest byte read, so when looking to
6592 # match some data the indices are "reversed".
6595 for (f = 2; f <= NF; f++)
6597 # new byte, shift others up
6598 for (i = 31; i >= 0; i--)
6603 if (got[7] != "376") continue
6604 if (got[6] != "334") continue
6605 if (got[5] != "272") continue
6606 if (got[4] != "230") continue
6607 if (got[3] != "166") continue
6608 if (got[2] != "124") continue
6609 if (got[1] != "062") continue
6610 if (got[0] != "020") continue
6612 # start sequence, with 12-byte body
6613 if (got[27] == "001" && \
6614 got[26] == "043" && \
6615 got[25] == "105" && \
6616 got[24] == "147" && \
6617 got[23] == "211" && \
6618 got[22] == "253" && \
6619 got[21] == "315" && \
6622 saw = " (" got[19] \
6635 if (got[19] == "000" && \
6636 got[18] == "000" && \
6637 got[17] == "000" && \
6638 got[16] == "000" && \
6639 got[15] == "240" && \
6640 got[14] == "242" && \
6641 got[13] == "171" && \
6642 got[12] == "353" && \
6643 got[11] == "031" && \
6646 print "IEEE extended, little endian"
6652 # start sequence, with 16-byte body
6653 if (got[31] == "001" && \
6654 got[30] == "043" && \
6655 got[29] == "105" && \
6656 got[28] == "147" && \
6657 got[27] == "211" && \
6658 got[26] == "253" && \
6659 got[25] == "315" && \
6662 saw = " (" got[23] \
6679 if (got[23] == "000" && \
6680 got[22] == "000" && \
6681 got[21] == "000" && \
6682 got[20] == "000" && \
6683 got[19] == "240" && \
6684 got[18] == "242" && \
6685 got[17] == "171" && \
6686 got[16] == "353" && \
6687 got[15] == "031" && \
6690 print "IEEE extended, little endian"
6695 if (got[23] == "300" && \
6696 got[22] == "031" && \
6697 got[21] == "326" && \
6698 got[20] == "363" && \
6699 got[19] == "105" && \
6700 got[18] == "100" && \
6701 got[17] == "000" && \
6702 got[16] == "000" && \
6703 got[15] == "000" && \
6704 got[14] == "000" && \
6705 got[13] == "000" && \
6706 got[12] == "000" && \
6707 got[11] == "000" && \
6708 got[10] == "000" && \
6709 got[9] == "000" && \
6712 print "IEEE quad, big endian"
6722 print "unknown", saw
6726 mpfr_cv_c_long_double_format=`od -b conftest.$OBJEXT | $AWK -f conftest.awk`
6727 case $mpfr_cv_c_long_double_format in
6729 echo "cannot match anything, conftest.$OBJEXT contains" >&5
6730 od -b conftest.$OBJEXT >&5
6734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: oops, cannot compile test program" >&5
6735 $as_echo "$as_me: WARNING: oops, cannot compile test program" >&2;}
6741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_c_long_double_format" >&5
6742 $as_echo "$mpfr_cv_c_long_double_format" >&6; }
6746 case $mpfr_cv_c_long_double_format in
6747 "IEEE extended, little endian")
6748 $as_echo "#define HAVE_LDOUBLE_IEEE_EXT_LITTLE 1" >>confdefs.h
6751 "IEEE quad, big endian")
6752 $as_echo "#define HAVE_LDOUBLE_IEEE_QUAD_BIG 1" >>confdefs.h
6755 unknown* | "not available")
6758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: oops, unrecognised float format: $mpfr_cv_c_long_double_format" >&5
6759 $as_echo "$as_me: WARNING: oops, unrecognised float format: $mpfr_cv_c_long_double_format" >&2;}
6764 if test "$enable_thread_safe" = yes; then
6765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for TLS support" >&5
6766 $as_echo_n "checking for TLS support... " >&6; }
6767 if test "${mpfr_cv_working_tls+set}" = set; then :
6768 $as_echo_n "(cached) " >&6
6771 saved_CPPFLAGS="$CPPFLAGS"
6772 # The -I$srcdir is necessary when objdir is different from srcdir.
6773 CPPFLAGS="$CPPFLAGS -I$srcdir"
6774 if test "$cross_compiling" = yes; then :
6775 mpfr_cv_working_tls="cannot test, assume yes"
6777 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6778 /* end confdefs.h. */
6780 #define MPFR_USE_THREAD_SAFE 1
6781 #include "mpfr-thread.h"
6782 MPFR_THREAD_ATTR int x = 17;
6788 if ac_fn_c_try_run "$LINENO"; then :
6789 mpfr_cv_working_tls="yes"
6791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6792 $as_echo "no" >&6; }
6793 as_fn_error "please configure with --disable-thread-safe" "$LINENO" 5
6795 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
6796 conftest.$ac_objext conftest.beam conftest.$ac_ext
6799 CPPFLAGS="$saved_CPPFLAGS"
6802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $mpfr_cv_working_tls" >&5
6803 $as_echo "$mpfr_cv_working_tls" >&6; }
6807 if test -n "$variable_indefinie" ; then
6809 ac_cpp='$CXXCPP $CPPFLAGS'
6810 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6811 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6812 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6813 if test -z "$CXX"; then
6814 if test -n "$CCC"; then
6817 if test -n "$ac_tool_prefix"; then
6820 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6821 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6823 $as_echo_n "checking for $ac_word... " >&6; }
6824 if test "${ac_cv_prog_CXX+set}" = set; then :
6825 $as_echo_n "(cached) " >&6
6827 if test -n "$CXX"; then
6828 ac_cv_prog_CXX="$CXX" # Let the user override the test.
6830 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6834 test -z "$as_dir" && as_dir=.
6835 for ac_exec_ext in '' $ac_executable_extensions; do
6836 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6837 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6838 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6848 if test -n "$CXX"; then
6849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
6850 $as_echo "$CXX" >&6; }
6852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6853 $as_echo "no" >&6; }
6857 test -n "$CXX" && break
6860 if test -z "$CXX"; then
6864 # Extract the first word of "$ac_prog", so it can be a program name with args.
6865 set dummy $ac_prog; ac_word=$2
6866 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6867 $as_echo_n "checking for $ac_word... " >&6; }
6868 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
6869 $as_echo_n "(cached) " >&6
6871 if test -n "$ac_ct_CXX"; then
6872 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6878 test -z "$as_dir" && as_dir=.
6879 for ac_exec_ext in '' $ac_executable_extensions; do
6880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6881 ac_cv_prog_ac_ct_CXX="$ac_prog"
6882 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6891 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6892 if test -n "$ac_ct_CXX"; then
6893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
6894 $as_echo "$ac_ct_CXX" >&6; }
6896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6897 $as_echo "no" >&6; }
6901 test -n "$ac_ct_CXX" && break
6904 if test "x$ac_ct_CXX" = x; then
6907 case $cross_compiling:$ac_tool_warned in
6909 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6910 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6911 ac_tool_warned=yes ;;
6919 # Provide some information about the compiler.
6920 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
6923 for ac_option in --version -v -V -qversion; do
6924 { { ac_try="$ac_compiler $ac_option >&5"
6926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6927 *) ac_try_echo=$ac_try;;
6929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
6930 $as_echo "$ac_try_echo"; } >&5
6931 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
6933 if test -s conftest.err; then
6935 ... rest of stderr output deleted ...
6936 10q' conftest.err >conftest.er1
6937 cat conftest.er1 >&5
6938 rm -f conftest.er1 conftest.err
6940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6941 test $ac_status = 0; }
6944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
6945 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
6946 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
6947 $as_echo_n "(cached) " >&6
6949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6950 /* end confdefs.h. */
6963 if ac_fn_cxx_try_compile "$LINENO"; then :
6968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6969 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
6973 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
6974 if test $ac_compiler_gnu = yes; then
6979 ac_test_CXXFLAGS=${CXXFLAGS+set}
6980 ac_save_CXXFLAGS=$CXXFLAGS
6981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
6982 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
6983 if test "${ac_cv_prog_cxx_g+set}" = set; then :
6984 $as_echo_n "(cached) " >&6
6986 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6987 ac_cxx_werror_flag=yes
6990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6991 /* end confdefs.h. */
7001 if ac_fn_cxx_try_compile "$LINENO"; then :
7002 ac_cv_prog_cxx_g=yes
7005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7006 /* end confdefs.h. */
7016 if ac_fn_cxx_try_compile "$LINENO"; then :
7019 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7022 /* end confdefs.h. */
7032 if ac_fn_cxx_try_compile "$LINENO"; then :
7033 ac_cv_prog_cxx_g=yes
7035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7040 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
7042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
7043 $as_echo "$ac_cv_prog_cxx_g" >&6; }
7044 if test "$ac_test_CXXFLAGS" = set; then
7045 CXXFLAGS=$ac_save_CXXFLAGS
7046 elif test $ac_cv_prog_cxx_g = yes; then
7047 if test "$GXX" = yes; then
7053 if test "$GXX" = yes; then
7060 ac_cpp='$CPP $CPPFLAGS'
7061 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7062 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7063 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7065 depcc="$CXX" am_compiler_list=
7067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
7068 $as_echo_n "checking dependency style of $depcc... " >&6; }
7069 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
7070 $as_echo_n "(cached) " >&6
7072 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
7073 # We make a subdir and do the tests there. Otherwise we can end up
7074 # making bogus files that we don't know about and never remove. For
7075 # instance it was reported that on HP-UX the gcc test will end up
7076 # making a dummy file named `D' -- because `-MD' means `put the output
7079 # Copy depcomp to subdir because otherwise we won't find it if we're
7080 # using a relative directory.
7081 cp "$am_depcomp" conftest.dir
7083 # We will build objects and dependencies in a subdirectory because
7084 # it helps to detect inapplicable dependency modes. For instance
7085 # both Tru64's cc and ICC support -MD to output dependencies as a
7086 # side effect of compilation, but ICC will put the dependencies in
7087 # the current directory while Tru64 will put them in the object
7091 am_cv_CXX_dependencies_compiler_type=none
7092 if test "$am_compiler_list" = ""; then
7093 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
7096 case " $depcc " in #(
7097 *\ -arch\ *\ -arch\ *) am__universal=true ;;
7100 for depmode in $am_compiler_list; do
7101 # Setup a source with many dependencies, because some compilers
7102 # like to wrap large dependency lists on column 80 (with \), and
7103 # we should not choose a depcomp mode which is confused by this.
7105 # We need to recreate these files for each test, as the compiler may
7106 # overwrite some of them when testing with obscure command lines.
7107 # This happens at least with the AIX C compiler.
7109 for i in 1 2 3 4 5 6; do
7110 echo '#include "conftst'$i'.h"' >> sub/conftest.c
7111 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
7112 # Solaris 8's {/usr,}/bin/sh.
7113 touch sub/conftst$i.h
7115 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
7117 # We check with `-c' and `-o' for the sake of the "dashmstdout"
7118 # mode. It turns out that the SunPro C++ compiler does not properly
7119 # handle `-M -o', and we need to detect this. Also, some Intel
7120 # versions had trouble with output in subdirs
7121 am__obj=sub/conftest.${OBJEXT-o}
7122 am__minus_obj="-o $am__obj"
7125 # This depmode causes a compiler race in universal mode.
7126 test "$am__universal" = false || continue
7129 # after this tag, mechanisms are not by side-effect, so they'll
7130 # only be used when explicitly requested
7131 if test "x$enable_dependency_tracking" = xyes; then
7137 msvisualcpp | msvcmsys)
7138 # This compiler won't grok `-c -o', but also, the minuso test has
7139 # not run yet. These depmodes are late enough in the game, and
7140 # so weak that their functioning should not be impacted.
7141 am__obj=conftest.${OBJEXT-o}
7146 if depmode=$depmode \
7147 source=sub/conftest.c object=$am__obj \
7148 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
7149 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
7150 >/dev/null 2>conftest.err &&
7151 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
7152 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
7153 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
7154 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
7155 # icc doesn't choke on unknown options, it will just issue warnings
7156 # or remarks (even with -Werror). So we grep stderr for any message
7157 # that says an option was ignored or not supported.
7158 # When given -MP, icc 7.0 and 7.1 complain thusly:
7159 # icc: Command line warning: ignoring option '-M'; no argument required
7160 # The diagnosis changed in icc 8.0:
7161 # icc: Command line remark: option '-MP' not supported
7162 if (grep 'ignoring option' conftest.err ||
7163 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
7164 am_cv_CXX_dependencies_compiler_type=$depmode
7173 am_cv_CXX_dependencies_compiler_type=none
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
7178 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
7179 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
7182 test "x$enable_dependency_tracking" != xno \
7183 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
7184 am__fastdepCXX_TRUE=
7185 am__fastdepCXX_FALSE='#'
7187 am__fastdepCXX_TRUE='#'
7188 am__fastdepCXX_FALSE=
7193 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
7194 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7195 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
7196 if test -n "$ac_tool_prefix"; then
7199 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7200 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7202 $as_echo_n "checking for $ac_word... " >&6; }
7203 if test "${ac_cv_prog_F77+set}" = set; then :
7204 $as_echo_n "(cached) " >&6
7206 if test -n "$F77"; then
7207 ac_cv_prog_F77="$F77" # Let the user override the test.
7209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7213 test -z "$as_dir" && as_dir=.
7214 for ac_exec_ext in '' $ac_executable_extensions; do
7215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7216 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
7217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7227 if test -n "$F77"; then
7228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
7229 $as_echo "$F77" >&6; }
7231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7232 $as_echo "no" >&6; }
7236 test -n "$F77" && break
7239 if test -z "$F77"; then
7243 # Extract the first word of "$ac_prog", so it can be a program name with args.
7244 set dummy $ac_prog; ac_word=$2
7245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7246 $as_echo_n "checking for $ac_word... " >&6; }
7247 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
7248 $as_echo_n "(cached) " >&6
7250 if test -n "$ac_ct_F77"; then
7251 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
7253 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7257 test -z "$as_dir" && as_dir=.
7258 for ac_exec_ext in '' $ac_executable_extensions; do
7259 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7260 ac_cv_prog_ac_ct_F77="$ac_prog"
7261 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7270 ac_ct_F77=$ac_cv_prog_ac_ct_F77
7271 if test -n "$ac_ct_F77"; then
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
7273 $as_echo "$ac_ct_F77" >&6; }
7275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7276 $as_echo "no" >&6; }
7280 test -n "$ac_ct_F77" && break
7283 if test "x$ac_ct_F77" = x; then
7286 case $cross_compiling:$ac_tool_warned in
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7289 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7290 ac_tool_warned=yes ;;
7297 # Provide some information about the compiler.
7298 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
7301 for ac_option in --version -v -V -qversion; do
7302 { { ac_try="$ac_compiler $ac_option >&5"
7304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7305 *) ac_try_echo=$ac_try;;
7307 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
7308 $as_echo "$ac_try_echo"; } >&5
7309 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
7311 if test -s conftest.err; then
7313 ... rest of stderr output deleted ...
7314 10q' conftest.err >conftest.er1
7315 cat conftest.er1 >&5
7316 rm -f conftest.er1 conftest.err
7318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7319 test $ac_status = 0; }
7323 # If we don't use `.F' as extension, the preprocessor is not run on the
7324 # input file. (Note that this only needs to work for GNU compilers.)
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
7328 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
7329 if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
7330 $as_echo_n "(cached) " >&6
7332 cat > conftest.$ac_ext <<_ACEOF
7340 if ac_fn_f77_try_compile "$LINENO"; then :
7345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7346 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
7349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
7350 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
7352 ac_test_FFLAGS=${FFLAGS+set}
7353 ac_save_FFLAGS=$FFLAGS
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
7356 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
7357 if test "${ac_cv_prog_f77_g+set}" = set; then :
7358 $as_echo_n "(cached) " >&6
7361 cat > conftest.$ac_ext <<_ACEOF
7366 if ac_fn_f77_try_compile "$LINENO"; then :
7367 ac_cv_prog_f77_g=yes
7371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
7375 $as_echo "$ac_cv_prog_f77_g" >&6; }
7376 if test "$ac_test_FFLAGS" = set; then
7377 FFLAGS=$ac_save_FFLAGS
7378 elif test $ac_cv_prog_f77_g = yes; then
7379 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7385 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
7392 if test $ac_compiler_gnu = yes; then
7398 ac_cpp='$CPP $CPPFLAGS'
7399 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7400 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7401 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7404 ac_cpp='$CXXCPP $CPPFLAGS'
7405 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7406 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7407 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
7409 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
7410 if test -z "$CXXCPP"; then
7411 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
7412 $as_echo_n "(cached) " >&6
7414 # Double quotes because CXXCPP needs to be expanded
7415 for CXXCPP in "$CXX -E" "/lib/cpp"
7418 for ac_cxx_preproc_warn_flag in '' yes
7420 # Use a header file that comes with gcc, so configuring glibc
7421 # with a fresh cross-compiler works.
7422 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7423 # <limits.h> exists even on freestanding compilers.
7424 # On the NeXT, cc -E runs the code through the compiler's parser,
7425 # not just through cpp. "Syntax error" is here to catch this case.
7426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7427 /* end confdefs.h. */
7429 # include <limits.h>
7431 # include <assert.h>
7435 if ac_fn_cxx_try_cpp "$LINENO"; then :
7438 # Broken: fails on valid input.
7441 rm -f conftest.err conftest.$ac_ext
7443 # OK, works on sane cases. Now check whether nonexistent headers
7444 # can be detected and how.
7445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7446 /* end confdefs.h. */
7447 #include <ac_nonexistent.h>
7449 if ac_fn_cxx_try_cpp "$LINENO"; then :
7450 # Broken: success on invalid input.
7453 # Passes both tests.
7457 rm -f conftest.err conftest.$ac_ext
7460 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7461 rm -f conftest.err conftest.$ac_ext
7462 if $ac_preproc_ok; then :
7467 ac_cv_prog_CXXCPP=$CXXCPP
7470 CXXCPP=$ac_cv_prog_CXXCPP
7472 ac_cv_prog_CXXCPP=$CXXCPP
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
7475 $as_echo "$CXXCPP" >&6; }
7477 for ac_cxx_preproc_warn_flag in '' yes
7479 # Use a header file that comes with gcc, so configuring glibc
7480 # with a fresh cross-compiler works.
7481 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7482 # <limits.h> exists even on freestanding compilers.
7483 # On the NeXT, cc -E runs the code through the compiler's parser,
7484 # not just through cpp. "Syntax error" is here to catch this case.
7485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7486 /* end confdefs.h. */
7488 # include <limits.h>
7490 # include <assert.h>
7494 if ac_fn_cxx_try_cpp "$LINENO"; then :
7497 # Broken: fails on valid input.
7500 rm -f conftest.err conftest.$ac_ext
7502 # OK, works on sane cases. Now check whether nonexistent headers
7503 # can be detected and how.
7504 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7505 /* end confdefs.h. */
7506 #include <ac_nonexistent.h>
7508 if ac_fn_cxx_try_cpp "$LINENO"; then :
7509 # Broken: success on invalid input.
7512 # Passes both tests.
7516 rm -f conftest.err conftest.$ac_ext
7519 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7520 rm -f conftest.err conftest.$ac_ext
7521 if $ac_preproc_ok; then :
7524 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7526 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
7527 See \`config.log' for more details." "$LINENO" 5; }
7531 ac_cpp='$CPP $CPPFLAGS'
7532 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7533 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7534 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7537 am__fastdepCXX_FALSE='#'
7538 if test "${with_tags+set}" != set; then
7543 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gmp.h" >&5
7544 $as_echo_n "checking for gmp.h... " >&6; }
7545 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7546 /* end confdefs.h. */
7551 if ac_fn_c_try_compile "$LINENO"; then :
7552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7553 $as_echo "yes" >&6; }
7556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7557 $as_echo "no" >&6; }
7558 as_fn_error "gmp.h can't be found, or is unusable." "$LINENO" 5
7561 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7563 enable_win32_dll=yes
7566 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
7567 if test -n "$ac_tool_prefix"; then
7568 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
7569 set dummy ${ac_tool_prefix}as; ac_word=$2
7570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7571 $as_echo_n "checking for $ac_word... " >&6; }
7572 if test "${ac_cv_prog_AS+set}" = set; then :
7573 $as_echo_n "(cached) " >&6
7575 if test -n "$AS"; then
7576 ac_cv_prog_AS="$AS" # Let the user override the test.
7578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7582 test -z "$as_dir" && as_dir=.
7583 for ac_exec_ext in '' $ac_executable_extensions; do
7584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7585 ac_cv_prog_AS="${ac_tool_prefix}as"
7586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7596 if test -n "$AS"; then
7597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
7598 $as_echo "$AS" >&6; }
7600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7601 $as_echo "no" >&6; }
7606 if test -z "$ac_cv_prog_AS"; then
7608 # Extract the first word of "as", so it can be a program name with args.
7609 set dummy as; ac_word=$2
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7611 $as_echo_n "checking for $ac_word... " >&6; }
7612 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
7613 $as_echo_n "(cached) " >&6
7615 if test -n "$ac_ct_AS"; then
7616 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
7618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7622 test -z "$as_dir" && as_dir=.
7623 for ac_exec_ext in '' $ac_executable_extensions; do
7624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7625 ac_cv_prog_ac_ct_AS="as"
7626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7635 ac_ct_AS=$ac_cv_prog_ac_ct_AS
7636 if test -n "$ac_ct_AS"; then
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
7638 $as_echo "$ac_ct_AS" >&6; }
7640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7641 $as_echo "no" >&6; }
7644 if test "x$ac_ct_AS" = x; then
7647 case $cross_compiling:$ac_tool_warned in
7649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7650 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7651 ac_tool_warned=yes ;;
7659 if test -n "$ac_tool_prefix"; then
7660 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
7661 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7663 $as_echo_n "checking for $ac_word... " >&6; }
7664 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
7665 $as_echo_n "(cached) " >&6
7667 if test -n "$DLLTOOL"; then
7668 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
7670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7674 test -z "$as_dir" && as_dir=.
7675 for ac_exec_ext in '' $ac_executable_extensions; do
7676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7677 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
7678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7687 DLLTOOL=$ac_cv_prog_DLLTOOL
7688 if test -n "$DLLTOOL"; then
7689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
7690 $as_echo "$DLLTOOL" >&6; }
7692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7693 $as_echo "no" >&6; }
7698 if test -z "$ac_cv_prog_DLLTOOL"; then
7699 ac_ct_DLLTOOL=$DLLTOOL
7700 # Extract the first word of "dlltool", so it can be a program name with args.
7701 set dummy dlltool; ac_word=$2
7702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7703 $as_echo_n "checking for $ac_word... " >&6; }
7704 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
7705 $as_echo_n "(cached) " >&6
7707 if test -n "$ac_ct_DLLTOOL"; then
7708 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
7710 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7714 test -z "$as_dir" && as_dir=.
7715 for ac_exec_ext in '' $ac_executable_extensions; do
7716 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7717 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
7718 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7727 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
7728 if test -n "$ac_ct_DLLTOOL"; then
7729 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
7730 $as_echo "$ac_ct_DLLTOOL" >&6; }
7732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7733 $as_echo "no" >&6; }
7736 if test "x$ac_ct_DLLTOOL" = x; then
7739 case $cross_compiling:$ac_tool_warned in
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7742 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7743 ac_tool_warned=yes ;;
7745 DLLTOOL=$ac_ct_DLLTOOL
7748 DLLTOOL="$ac_cv_prog_DLLTOOL"
7751 if test -n "$ac_tool_prefix"; then
7752 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
7753 set dummy ${ac_tool_prefix}objdump; ac_word=$2
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7755 $as_echo_n "checking for $ac_word... " >&6; }
7756 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
7757 $as_echo_n "(cached) " >&6
7759 if test -n "$OBJDUMP"; then
7760 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
7762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7766 test -z "$as_dir" && as_dir=.
7767 for ac_exec_ext in '' $ac_executable_extensions; do
7768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7769 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
7770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7779 OBJDUMP=$ac_cv_prog_OBJDUMP
7780 if test -n "$OBJDUMP"; then
7781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
7782 $as_echo "$OBJDUMP" >&6; }
7784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7785 $as_echo "no" >&6; }
7790 if test -z "$ac_cv_prog_OBJDUMP"; then
7791 ac_ct_OBJDUMP=$OBJDUMP
7792 # Extract the first word of "objdump", so it can be a program name with args.
7793 set dummy objdump; ac_word=$2
7794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7795 $as_echo_n "checking for $ac_word... " >&6; }
7796 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
7797 $as_echo_n "(cached) " >&6
7799 if test -n "$ac_ct_OBJDUMP"; then
7800 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
7802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7806 test -z "$as_dir" && as_dir=.
7807 for ac_exec_ext in '' $ac_executable_extensions; do
7808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
7809 ac_cv_prog_ac_ct_OBJDUMP="objdump"
7810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7819 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
7820 if test -n "$ac_ct_OBJDUMP"; then
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
7822 $as_echo "$ac_ct_OBJDUMP" >&6; }
7824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7825 $as_echo "no" >&6; }
7828 if test "x$ac_ct_OBJDUMP" = x; then
7831 case $cross_compiling:$ac_tool_warned in
7833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7834 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7835 ac_tool_warned=yes ;;
7837 OBJDUMP=$ac_ct_OBJDUMP
7840 OBJDUMP="$ac_cv_prog_OBJDUMP"
7846 test -z "$AS" && AS=as
7852 test -z "$DLLTOOL" && DLLTOOL=dlltool
7858 test -z "$OBJDUMP" && OBJDUMP=objdump
7867 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
7868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for DLL/static GMP" >&5
7869 $as_echo_n "checking for DLL/static GMP... " >&6; }
7870 if test "$enable_shared" = yes; then
7871 LDFLAGS="$LDFLAGS -no-undefined"
7872 dont_link_with_gmp="yes"
7873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7874 /* end confdefs.h. */
7877 #if !__GMP_LIBGMP_DLL
7890 if ac_fn_c_try_compile "$LINENO"; then :
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: DLL" >&5
7892 $as_echo "DLL" >&6; }
7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5
7896 $as_echo "static" >&6; }
7897 as_fn_error "gmp.h isn't a DLL: use --enable-static --disable-shared" "$LINENO" 5
7899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7902 /* end confdefs.h. */
7905 #if __GMP_LIBGMP_DLL
7918 if ac_fn_c_try_compile "$LINENO"; then :
7919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: static" >&5
7920 $as_echo "static" >&6; }
7923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: DLL" >&5
7924 $as_echo "DLL" >&6; }
7925 as_fn_error "gmp.h is a DLL: use --disable-static --enable-shared" "$LINENO" 5
7927 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7933 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
7934 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
7939 macro_version='2.2.6'
7940 macro_revision='1.3012'
7954 ltmain="$ac_aux_dir/ltmain.sh"
7956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
7957 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
7958 if test "${ac_cv_path_SED+set}" = set; then :
7959 $as_echo_n "(cached) " >&6
7961 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
7962 for ac_i in 1 2 3 4 5 6 7; do
7963 ac_script="$ac_script$as_nl$ac_script"
7965 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
7966 { ac_script=; unset ac_script;}
7967 if test -z "$SED"; then
7968 ac_path_SED_found=false
7969 # Loop through the user's path and test for each of PROGNAME-LIST
7970 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7974 test -z "$as_dir" && as_dir=.
7975 for ac_prog in sed gsed; do
7976 for ac_exec_ext in '' $ac_executable_extensions; do
7977 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
7978 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
7979 # Check for GNU ac_path_SED and select it if it is found.
7980 # Check for GNU $ac_path_SED
7981 case `"$ac_path_SED" --version 2>&1` in
7983 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
7986 $as_echo_n 0123456789 >"conftest.in"
7989 cat "conftest.in" "conftest.in" >"conftest.tmp"
7990 mv "conftest.tmp" "conftest.in"
7991 cp "conftest.in" "conftest.nl"
7992 $as_echo '' >> "conftest.nl"
7993 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
7994 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
7995 as_fn_arith $ac_count + 1 && ac_count=$as_val
7996 if test $ac_count -gt ${ac_path_SED_max-0}; then
7997 # Best one so far, save it but keep looking for a better one
7998 ac_cv_path_SED="$ac_path_SED"
7999 ac_path_SED_max=$ac_count
8001 # 10*(2^10) chars as input seems more than enough
8002 test $ac_count -gt 10 && break
8004 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8007 $ac_path_SED_found && break 3
8012 if test -z "$ac_cv_path_SED"; then
8013 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
8020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
8021 $as_echo "$ac_cv_path_SED" >&6; }
8022 SED="$ac_cv_path_SED"
8025 test -z "$SED" && SED=sed
8026 Xsed="$SED -e 1s/^X//"
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
8039 $as_echo_n "checking for fgrep... " >&6; }
8040 if test "${ac_cv_path_FGREP+set}" = set; then :
8041 $as_echo_n "(cached) " >&6
8043 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
8044 then ac_cv_path_FGREP="$GREP -F"
8046 if test -z "$FGREP"; then
8047 ac_path_FGREP_found=false
8048 # Loop through the user's path and test for each of PROGNAME-LIST
8049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8050 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
8053 test -z "$as_dir" && as_dir=.
8054 for ac_prog in fgrep; do
8055 for ac_exec_ext in '' $ac_executable_extensions; do
8056 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
8057 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
8058 # Check for GNU ac_path_FGREP and select it if it is found.
8059 # Check for GNU $ac_path_FGREP
8060 case `"$ac_path_FGREP" --version 2>&1` in
8062 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
8065 $as_echo_n 0123456789 >"conftest.in"
8068 cat "conftest.in" "conftest.in" >"conftest.tmp"
8069 mv "conftest.tmp" "conftest.in"
8070 cp "conftest.in" "conftest.nl"
8071 $as_echo 'FGREP' >> "conftest.nl"
8072 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
8073 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
8074 as_fn_arith $ac_count + 1 && ac_count=$as_val
8075 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
8076 # Best one so far, save it but keep looking for a better one
8077 ac_cv_path_FGREP="$ac_path_FGREP"
8078 ac_path_FGREP_max=$ac_count
8080 # 10*(2^10) chars as input seems more than enough
8081 test $ac_count -gt 10 && break
8083 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
8086 $ac_path_FGREP_found && break 3
8091 if test -z "$ac_cv_path_FGREP"; then
8092 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
8095 ac_cv_path_FGREP=$FGREP
8100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
8101 $as_echo "$ac_cv_path_FGREP" >&6; }
8102 FGREP="$ac_cv_path_FGREP"
8105 test -z "$GREP" && GREP=grep
8125 # Check whether --with-gnu-ld was given.
8126 if test "${with_gnu_ld+set}" = set; then :
8127 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
8133 if test "$GCC" = yes; then
8134 # Check if gcc -print-prog-name=ld gives a path.
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
8136 $as_echo_n "checking for ld used by $CC... " >&6; }
8139 # gcc leaves a trailing carriage return which upsets mingw
8140 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
8142 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
8145 # Accept absolute paths.
8147 re_direlt='/[^/][^/]*/\.\./'
8148 # Canonicalize the pathname of ld
8149 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
8150 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
8151 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
8153 test -z "$LD" && LD="$ac_prog"
8156 # If it fails, then pretend we aren't using GCC.
8160 # If it is relative, then search for the first ld in PATH.
8164 elif test "$with_gnu_ld" = yes; then
8165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
8166 $as_echo_n "checking for GNU ld... " >&6; }
8168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
8169 $as_echo_n "checking for non-GNU ld... " >&6; }
8171 if test "${lt_cv_path_LD+set}" = set; then :
8172 $as_echo_n "(cached) " >&6
8174 if test -z "$LD"; then
8175 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8176 for ac_dir in $PATH; do
8178 test -z "$ac_dir" && ac_dir=.
8179 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
8180 lt_cv_path_LD="$ac_dir/$ac_prog"
8181 # Check to see if the program is GNU ld. I'd rather use --version,
8182 # but apparently some variants of GNU ld only accept -v.
8183 # Break only if it was the GNU/non-GNU ld that we prefer.
8184 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
8185 *GNU* | *'with BFD'*)
8186 test "$with_gnu_ld" != no && break
8189 test "$with_gnu_ld" != yes && break
8196 lt_cv_path_LD="$LD" # Let the user override the test with a path.
8201 if test -n "$LD"; then
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
8203 $as_echo "$LD" >&6; }
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8206 $as_echo "no" >&6; }
8208 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
8209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
8210 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
8211 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
8212 $as_echo_n "(cached) " >&6
8214 # I'd rather use --version here, but apparently some GNU lds only accept -v.
8215 case `$LD -v 2>&1 </dev/null` in
8216 *GNU* | *'with BFD'*)
8217 lt_cv_prog_gnu_ld=yes
8220 lt_cv_prog_gnu_ld=no
8224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
8225 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
8226 with_gnu_ld=$lt_cv_prog_gnu_ld
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
8237 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
8238 if test "${lt_cv_path_NM+set}" = set; then :
8239 $as_echo_n "(cached) " >&6
8241 if test -n "$NM"; then
8242 # Let the user override the test.
8245 lt_nm_to_check="${ac_tool_prefix}nm"
8246 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
8247 lt_nm_to_check="$lt_nm_to_check nm"
8249 for lt_tmp_nm in $lt_nm_to_check; do
8250 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8251 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
8253 test -z "$ac_dir" && ac_dir=.
8254 tmp_nm="$ac_dir/$lt_tmp_nm"
8255 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
8256 # Check to see if the nm accepts a BSD-compat flag.
8257 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
8258 # nm: unknown option "B" ignored
8259 # Tru64's nm complains that /dev/null is an invalid object file
8260 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
8261 */dev/null* | *'Invalid file or object type'*)
8262 lt_cv_path_NM="$tmp_nm -B"
8266 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
8268 lt_cv_path_NM="$tmp_nm -p"
8272 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
8273 continue # so that we can try to find one that supports BSD flags
8282 : ${lt_cv_path_NM=no}
8285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
8286 $as_echo "$lt_cv_path_NM" >&6; }
8287 if test "$lt_cv_path_NM" != "no"; then
8290 # Didn't find any BSD compatible name lister, look for dumpbin.
8291 if test -n "$ac_tool_prefix"; then
8292 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
8294 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8295 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8297 $as_echo_n "checking for $ac_word... " >&6; }
8298 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
8299 $as_echo_n "(cached) " >&6
8301 if test -n "$DUMPBIN"; then
8302 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
8304 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8308 test -z "$as_dir" && as_dir=.
8309 for ac_exec_ext in '' $ac_executable_extensions; do
8310 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8311 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
8312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8321 DUMPBIN=$ac_cv_prog_DUMPBIN
8322 if test -n "$DUMPBIN"; then
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
8324 $as_echo "$DUMPBIN" >&6; }
8326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8327 $as_echo "no" >&6; }
8331 test -n "$DUMPBIN" && break
8334 if test -z "$DUMPBIN"; then
8335 ac_ct_DUMPBIN=$DUMPBIN
8336 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
8338 # Extract the first word of "$ac_prog", so it can be a program name with args.
8339 set dummy $ac_prog; ac_word=$2
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8341 $as_echo_n "checking for $ac_word... " >&6; }
8342 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
8343 $as_echo_n "(cached) " >&6
8345 if test -n "$ac_ct_DUMPBIN"; then
8346 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
8348 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8352 test -z "$as_dir" && as_dir=.
8353 for ac_exec_ext in '' $ac_executable_extensions; do
8354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8355 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
8356 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8365 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
8366 if test -n "$ac_ct_DUMPBIN"; then
8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
8368 $as_echo "$ac_ct_DUMPBIN" >&6; }
8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8371 $as_echo "no" >&6; }
8375 test -n "$ac_ct_DUMPBIN" && break
8378 if test "x$ac_ct_DUMPBIN" = x; then
8381 case $cross_compiling:$ac_tool_warned in
8383 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8384 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8385 ac_tool_warned=yes ;;
8387 DUMPBIN=$ac_ct_DUMPBIN
8392 if test "$DUMPBIN" != ":"; then
8396 test -z "$NM" && NM=nm
8403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
8404 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
8405 if test "${lt_cv_nm_interface+set}" = set; then :
8406 $as_echo_n "(cached) " >&6
8408 lt_cv_nm_interface="BSD nm"
8409 echo "int some_variable = 0;" > conftest.$ac_ext
8410 (eval echo "\"\$as_me:8410: $ac_compile\"" >&5)
8411 (eval "$ac_compile" 2>conftest.err)
8412 cat conftest.err >&5
8413 (eval echo "\"\$as_me:8413: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
8414 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
8415 cat conftest.err >&5
8416 (eval echo "\"\$as_me:8416: output\"" >&5)
8417 cat conftest.out >&5
8418 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
8419 lt_cv_nm_interface="MS dumpbin"
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
8424 $as_echo "$lt_cv_nm_interface" >&6; }
8426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8427 $as_echo_n "checking whether ln -s works... " >&6; }
8429 if test "$LN_S" = "ln -s"; then
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8431 $as_echo "yes" >&6; }
8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8434 $as_echo "no, using $LN_S" >&6; }
8437 # find the maximum length of command line arguments
8438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
8439 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
8440 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
8441 $as_echo_n "(cached) " >&6
8448 # On DJGPP, this test can blow up pretty badly due to problems in libc
8449 # (any single argument exceeding 2000 bytes causes a buffer overrun
8450 # during glob expansion). Even if it were fixed, the result of this
8451 # check would be larger than it should be.
8452 lt_cv_sys_max_cmd_len=12288; # 12K is about right
8456 # Under GNU Hurd, this test is not required because there is
8457 # no limit to the length of command line arguments.
8458 # Libtool will interpret -1 as no limit whatsoever
8459 lt_cv_sys_max_cmd_len=-1;
8462 cygwin* | mingw* | cegcc*)
8463 # On Win9x/ME, this test blows up -- it succeeds, but takes
8464 # about 5 minutes as the teststring grows exponentially.
8465 # Worse, since 9x/ME are not pre-emptively multitasking,
8466 # you end up with a "frozen" computer, even though with patience
8467 # the test eventually succeeds (with a max line length of 256k).
8468 # Instead, let's just punt: use the minimum linelength reported by
8469 # all of the supported platforms: 8192 (on NT/2K/XP).
8470 lt_cv_sys_max_cmd_len=8192;
8474 # On AmigaOS with pdksh, this test takes hours, literally.
8475 # So we just punt and use a minimum line length of 8192.
8476 lt_cv_sys_max_cmd_len=8192;
8479 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
8480 # This has been around since 386BSD, at least. Likely further.
8481 if test -x /sbin/sysctl; then
8482 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
8483 elif test -x /usr/sbin/sysctl; then
8484 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
8486 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
8488 # And add a safety zone
8489 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8490 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8494 # We know the value 262144 and hardcode it with a safety zone (like BSD)
8495 lt_cv_sys_max_cmd_len=196608
8499 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
8500 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
8501 # nice to cause kernel panics so lets avoid the loop below.
8502 # First set a reasonable default.
8503 lt_cv_sys_max_cmd_len=16384
8505 if test -x /sbin/sysconfig; then
8506 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
8507 *1*) lt_cv_sys_max_cmd_len=-1 ;;
8512 lt_cv_sys_max_cmd_len=102400
8514 sysv5* | sco5v6* | sysv4.2uw2*)
8515 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
8516 if test -n "$kargmax"; then
8517 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
8519 lt_cv_sys_max_cmd_len=32768
8523 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
8524 if test -n "$lt_cv_sys_max_cmd_len"; then
8525 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
8526 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
8528 # Make teststring a little bigger before we do anything with it.
8529 # a 1K string should be a reasonable start.
8530 for i in 1 2 3 4 5 6 7 8 ; do
8531 teststring=$teststring$teststring
8533 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
8534 # If test is not a shell built-in, we'll probably end up computing a
8535 # maximum length that is only half of the actual maximum length, but
8537 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
8538 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
8539 test $i != 17 # 1/2 MB should be enough
8542 teststring=$teststring$teststring
8544 # Only check the string length outside the loop.
8545 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
8547 # Add a significant safety factor because C++ compilers can tack on
8548 # massive amounts of additional arguments before passing them to the
8549 # linker. It appears as though 1/2 is a usable value.
8550 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
8557 if test -n $lt_cv_sys_max_cmd_len ; then
8558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
8559 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
8561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
8562 $as_echo "none" >&6; }
8564 max_cmd_len=$lt_cv_sys_max_cmd_len
8575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
8576 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
8577 # Try some XSI features
8580 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
8582 && eval 'test $(( 1 + 1 )) -eq 2 \
8583 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
8586 $as_echo "$xsi_shell" >&6; }
8589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
8590 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
8592 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
8594 && lt_shell_append=yes
8595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
8596 $as_echo "$lt_shell_append" >&6; }
8599 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8609 # test EBCDIC or ASCII
8610 case `echo X|tr X '\101'` in
8611 A) # ASCII based system
8612 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
8613 lt_SP2NL='tr \040 \012'
8614 lt_NL2SP='tr \015\012 \040\040'
8616 *) # EBCDIC based system
8617 lt_SP2NL='tr \100 \n'
8618 lt_NL2SP='tr \r\n \100\100'
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
8631 $as_echo_n "checking for $LD option to reload object files... " >&6; }
8632 if test "${lt_cv_ld_reload_flag+set}" = set; then :
8633 $as_echo_n "(cached) " >&6
8635 lt_cv_ld_reload_flag='-r'
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
8638 $as_echo "$lt_cv_ld_reload_flag" >&6; }
8639 reload_flag=$lt_cv_ld_reload_flag
8640 case $reload_flag in
8642 *) reload_flag=" $reload_flag" ;;
8644 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8647 if test "$GCC" = yes; then
8648 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
8650 reload_cmds='$LD$reload_flag -o $output$reload_objs'
8663 if test -n "$ac_tool_prefix"; then
8664 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
8665 set dummy ${ac_tool_prefix}objdump; ac_word=$2
8666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8667 $as_echo_n "checking for $ac_word... " >&6; }
8668 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
8669 $as_echo_n "(cached) " >&6
8671 if test -n "$OBJDUMP"; then
8672 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
8674 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8678 test -z "$as_dir" && as_dir=.
8679 for ac_exec_ext in '' $ac_executable_extensions; do
8680 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8681 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
8682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8691 OBJDUMP=$ac_cv_prog_OBJDUMP
8692 if test -n "$OBJDUMP"; then
8693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
8694 $as_echo "$OBJDUMP" >&6; }
8696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8697 $as_echo "no" >&6; }
8702 if test -z "$ac_cv_prog_OBJDUMP"; then
8703 ac_ct_OBJDUMP=$OBJDUMP
8704 # Extract the first word of "objdump", so it can be a program name with args.
8705 set dummy objdump; ac_word=$2
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8707 $as_echo_n "checking for $ac_word... " >&6; }
8708 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
8709 $as_echo_n "(cached) " >&6
8711 if test -n "$ac_ct_OBJDUMP"; then
8712 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
8714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8718 test -z "$as_dir" && as_dir=.
8719 for ac_exec_ext in '' $ac_executable_extensions; do
8720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8721 ac_cv_prog_ac_ct_OBJDUMP="objdump"
8722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8731 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
8732 if test -n "$ac_ct_OBJDUMP"; then
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
8734 $as_echo "$ac_ct_OBJDUMP" >&6; }
8736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8737 $as_echo "no" >&6; }
8740 if test "x$ac_ct_OBJDUMP" = x; then
8743 case $cross_compiling:$ac_tool_warned in
8745 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8746 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8747 ac_tool_warned=yes ;;
8749 OBJDUMP=$ac_ct_OBJDUMP
8752 OBJDUMP="$ac_cv_prog_OBJDUMP"
8755 test -z "$OBJDUMP" && OBJDUMP=objdump
8762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
8763 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
8764 if test "${lt_cv_deplibs_check_method+set}" = set; then :
8765 $as_echo_n "(cached) " >&6
8767 lt_cv_file_magic_cmd='$MAGIC_CMD'
8768 lt_cv_file_magic_test_file=
8769 lt_cv_deplibs_check_method='unknown'
8770 # Need to set the preceding variable on all platforms that support
8771 # interlibrary dependencies.
8772 # 'none' -- dependencies not supported.
8773 # `unknown' -- same as none, but documents that we really don't know.
8774 # 'pass_all' -- all dependencies passed with no checks.
8775 # 'test_compile' -- check by making test program.
8776 # 'file_magic [[regex]]' -- check by looking for files in library path
8777 # which responds to the $file_magic_cmd with a given extended regex.
8778 # If you have `file' or equivalent on your system and you're not sure
8779 # whether `pass_all' will *always* work, you probably want this one.
8783 lt_cv_deplibs_check_method=pass_all
8787 lt_cv_deplibs_check_method=pass_all
8791 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
8792 lt_cv_file_magic_cmd='/usr/bin/file -L'
8793 lt_cv_file_magic_test_file=/shlib/libc.so
8797 # func_win32_libid is a shell function defined in ltmain.sh
8798 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8799 lt_cv_file_magic_cmd='func_win32_libid'
8803 # Base MSYS/MinGW do not provide the 'file' command needed by
8804 # func_win32_libid shell function, so use a weaker test based on 'objdump',
8805 # unless we find 'file', for example because we are cross-compiling.
8806 if ( file / ) >/dev/null 2>&1; then
8807 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
8808 lt_cv_file_magic_cmd='func_win32_libid'
8810 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
8811 lt_cv_file_magic_cmd='$OBJDUMP -f'
8816 # use the weaker test based on 'objdump'. See mingw*.
8817 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
8818 lt_cv_file_magic_cmd='$OBJDUMP -f'
8821 darwin* | rhapsody*)
8822 lt_cv_deplibs_check_method=pass_all
8825 freebsd* | dragonfly*)
8826 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8829 # Not sure whether the presence of OpenBSD here was a mistake.
8830 # Let's accept both of them until this is cleared up.
8831 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
8832 lt_cv_file_magic_cmd=/usr/bin/file
8833 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
8837 lt_cv_deplibs_check_method=pass_all
8842 lt_cv_deplibs_check_method=pass_all
8845 hpux10.20* | hpux11*)
8846 lt_cv_file_magic_cmd=/usr/bin/file
8849 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
8850 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
8853 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]'
8854 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
8857 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
8858 lt_cv_file_magic_test_file=/usr/lib/libc.sl
8864 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
8865 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
8868 irix5* | irix6* | nonstopux*)
8870 *-32|*"-32 ") libmagic=32-bit;;
8871 *-n32|*"-n32 ") libmagic=N32;;
8872 *-64|*"-64 ") libmagic=64-bit;;
8873 *) libmagic=never-match;;
8875 lt_cv_deplibs_check_method=pass_all
8878 # This must be Linux ELF.
8879 linux* | k*bsd*-gnu)
8880 lt_cv_deplibs_check_method=pass_all
8883 netbsd* | netbsdelf*-gnu)
8884 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
8885 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8887 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
8892 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
8893 lt_cv_file_magic_cmd=/usr/bin/file
8894 lt_cv_file_magic_test_file=/usr/lib/libnls.so
8898 lt_cv_deplibs_check_method=pass_all
8902 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
8903 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
8905 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
8909 osf3* | osf4* | osf5*)
8910 lt_cv_deplibs_check_method=pass_all
8914 lt_cv_deplibs_check_method=pass_all
8918 lt_cv_deplibs_check_method=pass_all
8921 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
8922 lt_cv_deplibs_check_method=pass_all
8926 case $host_vendor in
8928 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]'
8929 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
8932 lt_cv_deplibs_check_method=pass_all
8935 lt_cv_file_magic_cmd='/bin/file'
8936 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
8939 lt_cv_file_magic_cmd='/bin/file'
8940 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
8941 lt_cv_file_magic_test_file=/lib/libc.so
8944 lt_cv_deplibs_check_method=pass_all
8947 lt_cv_deplibs_check_method=pass_all
8953 lt_cv_deplibs_check_method=pass_all
8958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
8959 $as_echo "$lt_cv_deplibs_check_method" >&6; }
8960 file_magic_cmd=$lt_cv_file_magic_cmd
8961 deplibs_check_method=$lt_cv_deplibs_check_method
8962 test -z "$deplibs_check_method" && deplibs_check_method=unknown
8975 if test -n "$ac_tool_prefix"; then
8976 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
8977 set dummy ${ac_tool_prefix}ar; ac_word=$2
8978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8979 $as_echo_n "checking for $ac_word... " >&6; }
8980 if test "${ac_cv_prog_AR+set}" = set; then :
8981 $as_echo_n "(cached) " >&6
8983 if test -n "$AR"; then
8984 ac_cv_prog_AR="$AR" # Let the user override the test.
8986 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8990 test -z "$as_dir" && as_dir=.
8991 for ac_exec_ext in '' $ac_executable_extensions; do
8992 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8993 ac_cv_prog_AR="${ac_tool_prefix}ar"
8994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9004 if test -n "$AR"; then
9005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
9006 $as_echo "$AR" >&6; }
9008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9009 $as_echo "no" >&6; }
9014 if test -z "$ac_cv_prog_AR"; then
9016 # Extract the first word of "ar", so it can be a program name with args.
9017 set dummy ar; ac_word=$2
9018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9019 $as_echo_n "checking for $ac_word... " >&6; }
9020 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
9021 $as_echo_n "(cached) " >&6
9023 if test -n "$ac_ct_AR"; then
9024 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9026 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9030 test -z "$as_dir" && as_dir=.
9031 for ac_exec_ext in '' $ac_executable_extensions; do
9032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9033 ac_cv_prog_ac_ct_AR="ar"
9034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9043 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9044 if test -n "$ac_ct_AR"; then
9045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
9046 $as_echo "$ac_ct_AR" >&6; }
9048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9049 $as_echo "no" >&6; }
9052 if test "x$ac_ct_AR" = x; then
9055 case $cross_compiling:$ac_tool_warned in
9057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9058 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9059 ac_tool_warned=yes ;;
9067 test -z "$AR" && AR=ar
9068 test -z "$AR_FLAGS" && AR_FLAGS=cru
9080 if test -n "$ac_tool_prefix"; then
9081 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
9082 set dummy ${ac_tool_prefix}strip; ac_word=$2
9083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9084 $as_echo_n "checking for $ac_word... " >&6; }
9085 if test "${ac_cv_prog_STRIP+set}" = set; then :
9086 $as_echo_n "(cached) " >&6
9088 if test -n "$STRIP"; then
9089 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
9091 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9095 test -z "$as_dir" && as_dir=.
9096 for ac_exec_ext in '' $ac_executable_extensions; do
9097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9098 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
9099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9108 STRIP=$ac_cv_prog_STRIP
9109 if test -n "$STRIP"; then
9110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
9111 $as_echo "$STRIP" >&6; }
9113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9114 $as_echo "no" >&6; }
9119 if test -z "$ac_cv_prog_STRIP"; then
9121 # Extract the first word of "strip", so it can be a program name with args.
9122 set dummy strip; ac_word=$2
9123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9124 $as_echo_n "checking for $ac_word... " >&6; }
9125 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
9126 $as_echo_n "(cached) " >&6
9128 if test -n "$ac_ct_STRIP"; then
9129 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
9131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9135 test -z "$as_dir" && as_dir=.
9136 for ac_exec_ext in '' $ac_executable_extensions; do
9137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9138 ac_cv_prog_ac_ct_STRIP="strip"
9139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9148 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
9149 if test -n "$ac_ct_STRIP"; then
9150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
9151 $as_echo "$ac_ct_STRIP" >&6; }
9153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9154 $as_echo "no" >&6; }
9157 if test "x$ac_ct_STRIP" = x; then
9160 case $cross_compiling:$ac_tool_warned in
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9163 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9164 ac_tool_warned=yes ;;
9169 STRIP="$ac_cv_prog_STRIP"
9172 test -z "$STRIP" && STRIP=:
9179 if test -n "$ac_tool_prefix"; then
9180 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
9181 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
9182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9183 $as_echo_n "checking for $ac_word... " >&6; }
9184 if test "${ac_cv_prog_RANLIB+set}" = set; then :
9185 $as_echo_n "(cached) " >&6
9187 if test -n "$RANLIB"; then
9188 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
9190 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9194 test -z "$as_dir" && as_dir=.
9195 for ac_exec_ext in '' $ac_executable_extensions; do
9196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9197 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
9198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9207 RANLIB=$ac_cv_prog_RANLIB
9208 if test -n "$RANLIB"; then
9209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
9210 $as_echo "$RANLIB" >&6; }
9212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9213 $as_echo "no" >&6; }
9218 if test -z "$ac_cv_prog_RANLIB"; then
9219 ac_ct_RANLIB=$RANLIB
9220 # Extract the first word of "ranlib", so it can be a program name with args.
9221 set dummy ranlib; ac_word=$2
9222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9223 $as_echo_n "checking for $ac_word... " >&6; }
9224 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
9225 $as_echo_n "(cached) " >&6
9227 if test -n "$ac_ct_RANLIB"; then
9228 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
9230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9234 test -z "$as_dir" && as_dir=.
9235 for ac_exec_ext in '' $ac_executable_extensions; do
9236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9237 ac_cv_prog_ac_ct_RANLIB="ranlib"
9238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9247 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
9248 if test -n "$ac_ct_RANLIB"; then
9249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
9250 $as_echo "$ac_ct_RANLIB" >&6; }
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9253 $as_echo "no" >&6; }
9256 if test "x$ac_ct_RANLIB" = x; then
9259 case $cross_compiling:$ac_tool_warned in
9261 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9262 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9263 ac_tool_warned=yes ;;
9265 RANLIB=$ac_ct_RANLIB
9268 RANLIB="$ac_cv_prog_RANLIB"
9271 test -z "$RANLIB" && RANLIB=:
9278 # Determine commands to create old-style static archives.
9279 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
9280 old_postinstall_cmds='chmod 644 $oldlib'
9281 old_postuninstall_cmds=
9283 if test -n "$RANLIB"; then
9286 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
9289 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
9292 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
9328 # If no C compiler was specified, use CC.
9331 # If no C compiler flags were specified, use CFLAGS.
9332 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
9334 # Allow CC to be a program name with arguments.
9338 # Check for command to grab the raw symbol name followed by C symbol from nm.
9339 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
9340 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
9341 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
9342 $as_echo_n "(cached) " >&6
9345 # These are sane defaults that work on at least a few old systems.
9346 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
9348 # Character class describing NM global symbol codes.
9349 symcode='[BCDEGRST]'
9351 # Regexp to match symbols that can be accessed directly from C.
9352 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
9354 # Define system-specific variables.
9359 cygwin* | mingw* | pw32* | cegcc*)
9360 symcode='[ABCDGISTW]'
9363 if test "$host_cpu" = ia64; then
9364 symcode='[ABCDEGRST]'
9368 symcode='[BCDEGRST]'
9371 symcode='[BCDEGQRST]'
9382 sysv5* | sco5v6* | unixware* | OpenUNIX*)
9390 # If we're using GNU nm, then use its standard symbol codes.
9391 case `$NM -V 2>&1` in
9392 *GNU* | *'with BFD'*)
9393 symcode='[ABCDGIRSTW]' ;;
9396 # Transform an extracted symbol line into a proper C declaration.
9397 # Some systems (esp. on ia64) link data and code symbols differently,
9398 # so use this general approach.
9399 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
9401 # Transform an extracted symbol line into symbol name and symbol address
9402 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
9403 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'"
9405 # Handle CRLF in mingw tool chain
9409 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
9413 # Try without a prefix underscore, then with it.
9414 for ac_symprfx in "" "_"; do
9416 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
9417 symxfrm="\\1 $ac_symprfx\\2 \\2"
9419 # Write the raw and C identifiers.
9420 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
9421 # Fake it for dumpbin and say T for any non-static function
9422 # and D for any global variable.
9423 # Also find C++ and __fastcall symbols from MSVC++,
9424 # which start with @ or ?.
9425 lt_cv_sys_global_symbol_pipe="$AWK '"\
9426 " {last_section=section; section=\$ 3};"\
9427 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
9428 " \$ 0!~/External *\|/{next};"\
9429 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
9430 " {if(hide[section]) next};"\
9431 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
9432 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
9433 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
9434 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
9435 " ' prfx=^$ac_symprfx"
9437 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
9440 # Check to see that the pipe works correctly.
9444 cat > conftest.$ac_ext <<_LT_EOF
9449 void nm_test_func(void);
9450 void nm_test_func(void){}
9454 int main(){nm_test_var='a';nm_test_func();return(0);}
9457 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9458 (eval $ac_compile) 2>&5
9460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9461 test $ac_status = 0; }; then
9462 # Now try to grab the symbols.
9464 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
9465 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
9467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9468 test $ac_status = 0; } && test -s "$nlist"; then
9469 # Try sorting and uniquifying the output.
9470 if sort "$nlist" | uniq > "$nlist"T; then
9471 mv -f "$nlist"T "$nlist"
9476 # Make sure that we snagged all the symbols we need.
9477 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
9478 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
9479 cat <<_LT_EOF > conftest.$ac_ext
9485 # Now generate the symbol file.
9486 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
9488 cat <<_LT_EOF >> conftest.$ac_ext
9490 /* The mapping between symbol names and symbols. */
9495 lt__PROGRAM__LTX_preloaded_symbols[] =
9497 { "@PROGRAM@", (void *) 0 },
9499 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
9500 cat <<\_LT_EOF >> conftest.$ac_ext
9504 /* This works around a problem in FreeBSD linker */
9505 #ifdef FREEBSD_WORKAROUND
9506 static const void *lt_preloaded_setup() {
9507 return lt__PROGRAM__LTX_preloaded_symbols;
9515 # Now try linking the two files.
9516 mv conftest.$ac_objext conftstm.$ac_objext
9517 lt_save_LIBS="$LIBS"
9518 lt_save_CFLAGS="$CFLAGS"
9519 LIBS="conftstm.$ac_objext"
9520 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
9521 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
9522 (eval $ac_link) 2>&5
9524 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9525 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
9528 LIBS="$lt_save_LIBS"
9529 CFLAGS="$lt_save_CFLAGS"
9531 echo "cannot find nm_test_func in $nlist" >&5
9534 echo "cannot find nm_test_var in $nlist" >&5
9537 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
9540 echo "$progname: failed program was:" >&5
9541 cat conftest.$ac_ext >&5
9543 rm -rf conftest* conftst*
9545 # Do not use the global_symbol_pipe unless it works.
9546 if test "$pipe_works" = yes; then
9549 lt_cv_sys_global_symbol_pipe=
9555 if test -z "$lt_cv_sys_global_symbol_pipe"; then
9556 lt_cv_sys_global_symbol_to_cdecl=
9558 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
9559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
9560 $as_echo "failed" >&6; }
9562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
9563 $as_echo "ok" >&6; }
9587 # Check whether --enable-libtool-lock was given.
9588 if test "${enable_libtool_lock+set}" = set; then :
9589 enableval=$enable_libtool_lock;
9592 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
9594 # Some flags need to be propagated to the compiler or linker for good
9598 # Find out which ABI we are using.
9599 echo 'int i;' > conftest.$ac_ext
9600 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9601 (eval $ac_compile) 2>&5
9603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9604 test $ac_status = 0; }; then
9605 case `/usr/bin/file conftest.$ac_objext` in
9617 # Find out which ABI we are using.
9618 echo '#line 9618 "configure"' > conftest.$ac_ext
9619 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9620 (eval $ac_compile) 2>&5
9622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9623 test $ac_status = 0; }; then
9624 if test "$lt_cv_prog_gnu_ld" = yes; then
9625 case `/usr/bin/file conftest.$ac_objext` in
9627 LD="${LD-ld} -melf32bsmip"
9630 LD="${LD-ld} -melf32bmipn32"
9633 LD="${LD-ld} -melf64bmip"
9637 case `/usr/bin/file conftest.$ac_objext` in
9653 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
9654 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
9655 # Find out which ABI we are using.
9656 echo 'int i;' > conftest.$ac_ext
9657 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9658 (eval $ac_compile) 2>&5
9660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9661 test $ac_status = 0; }; then
9662 case `/usr/bin/file conftest.o` in
9665 x86_64-*kfreebsd*-gnu)
9666 LD="${LD-ld} -m elf_i386_fbsd"
9669 LD="${LD-ld} -m elf_i386"
9671 ppc64-*linux*|powerpc64-*linux*)
9672 LD="${LD-ld} -m elf32ppclinux"
9675 LD="${LD-ld} -m elf_s390"
9678 LD="${LD-ld} -m elf32_sparc"
9684 x86_64-*kfreebsd*-gnu)
9685 LD="${LD-ld} -m elf_x86_64_fbsd"
9688 LD="${LD-ld} -m elf_x86_64"
9690 ppc*-*linux*|powerpc*-*linux*)
9691 LD="${LD-ld} -m elf64ppc"
9693 s390*-*linux*|s390*-*tpf*)
9694 LD="${LD-ld} -m elf64_s390"
9697 LD="${LD-ld} -m elf64_sparc"
9707 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
9708 SAVE_CFLAGS="$CFLAGS"
9709 CFLAGS="$CFLAGS -belf"
9710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
9711 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
9712 if test "${lt_cv_cc_needs_belf+set}" = set; then :
9713 $as_echo_n "(cached) " >&6
9716 ac_cpp='$CPP $CPPFLAGS'
9717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9721 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9722 /* end confdefs.h. */
9732 if ac_fn_c_try_link "$LINENO"; then :
9733 lt_cv_cc_needs_belf=yes
9735 lt_cv_cc_needs_belf=no
9737 rm -f core conftest.err conftest.$ac_objext \
9738 conftest$ac_exeext conftest.$ac_ext
9740 ac_cpp='$CPP $CPPFLAGS'
9741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
9747 $as_echo "$lt_cv_cc_needs_belf" >&6; }
9748 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
9749 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
9750 CFLAGS="$SAVE_CFLAGS"
9754 # Find out which ABI we are using.
9755 echo 'int i;' > conftest.$ac_ext
9756 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
9757 (eval $ac_compile) 2>&5
9759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9760 test $ac_status = 0; }; then
9761 case `/usr/bin/file conftest.o` in
9763 case $lt_cv_prog_gnu_ld in
9764 yes*) LD="${LD-ld} -m elf64_sparc" ;;
9766 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
9778 need_locks="$enable_libtool_lock"
9782 rhapsody* | darwin*)
9783 if test -n "$ac_tool_prefix"; then
9784 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
9785 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
9786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9787 $as_echo_n "checking for $ac_word... " >&6; }
9788 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
9789 $as_echo_n "(cached) " >&6
9791 if test -n "$DSYMUTIL"; then
9792 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
9794 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9798 test -z "$as_dir" && as_dir=.
9799 for ac_exec_ext in '' $ac_executable_extensions; do
9800 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9801 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
9802 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9811 DSYMUTIL=$ac_cv_prog_DSYMUTIL
9812 if test -n "$DSYMUTIL"; then
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
9814 $as_echo "$DSYMUTIL" >&6; }
9816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9817 $as_echo "no" >&6; }
9822 if test -z "$ac_cv_prog_DSYMUTIL"; then
9823 ac_ct_DSYMUTIL=$DSYMUTIL
9824 # Extract the first word of "dsymutil", so it can be a program name with args.
9825 set dummy dsymutil; ac_word=$2
9826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9827 $as_echo_n "checking for $ac_word... " >&6; }
9828 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
9829 $as_echo_n "(cached) " >&6
9831 if test -n "$ac_ct_DSYMUTIL"; then
9832 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
9834 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9838 test -z "$as_dir" && as_dir=.
9839 for ac_exec_ext in '' $ac_executable_extensions; do
9840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9841 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
9842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9851 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
9852 if test -n "$ac_ct_DSYMUTIL"; then
9853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
9854 $as_echo "$ac_ct_DSYMUTIL" >&6; }
9856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9857 $as_echo "no" >&6; }
9860 if test "x$ac_ct_DSYMUTIL" = x; then
9863 case $cross_compiling:$ac_tool_warned in
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9866 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9867 ac_tool_warned=yes ;;
9869 DSYMUTIL=$ac_ct_DSYMUTIL
9872 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
9875 if test -n "$ac_tool_prefix"; then
9876 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
9877 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9879 $as_echo_n "checking for $ac_word... " >&6; }
9880 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
9881 $as_echo_n "(cached) " >&6
9883 if test -n "$NMEDIT"; then
9884 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
9886 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9890 test -z "$as_dir" && as_dir=.
9891 for ac_exec_ext in '' $ac_executable_extensions; do
9892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9893 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
9894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9903 NMEDIT=$ac_cv_prog_NMEDIT
9904 if test -n "$NMEDIT"; then
9905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
9906 $as_echo "$NMEDIT" >&6; }
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9909 $as_echo "no" >&6; }
9914 if test -z "$ac_cv_prog_NMEDIT"; then
9915 ac_ct_NMEDIT=$NMEDIT
9916 # Extract the first word of "nmedit", so it can be a program name with args.
9917 set dummy nmedit; ac_word=$2
9918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9919 $as_echo_n "checking for $ac_word... " >&6; }
9920 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
9921 $as_echo_n "(cached) " >&6
9923 if test -n "$ac_ct_NMEDIT"; then
9924 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
9926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9930 test -z "$as_dir" && as_dir=.
9931 for ac_exec_ext in '' $ac_executable_extensions; do
9932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9933 ac_cv_prog_ac_ct_NMEDIT="nmedit"
9934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9943 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
9944 if test -n "$ac_ct_NMEDIT"; then
9945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
9946 $as_echo "$ac_ct_NMEDIT" >&6; }
9948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9949 $as_echo "no" >&6; }
9952 if test "x$ac_ct_NMEDIT" = x; then
9955 case $cross_compiling:$ac_tool_warned in
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9958 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9959 ac_tool_warned=yes ;;
9961 NMEDIT=$ac_ct_NMEDIT
9964 NMEDIT="$ac_cv_prog_NMEDIT"
9967 if test -n "$ac_tool_prefix"; then
9968 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
9969 set dummy ${ac_tool_prefix}lipo; ac_word=$2
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9971 $as_echo_n "checking for $ac_word... " >&6; }
9972 if test "${ac_cv_prog_LIPO+set}" = set; then :
9973 $as_echo_n "(cached) " >&6
9975 if test -n "$LIPO"; then
9976 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
9978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9982 test -z "$as_dir" && as_dir=.
9983 for ac_exec_ext in '' $ac_executable_extensions; do
9984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9985 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
9986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9995 LIPO=$ac_cv_prog_LIPO
9996 if test -n "$LIPO"; then
9997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
9998 $as_echo "$LIPO" >&6; }
10000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10001 $as_echo "no" >&6; }
10006 if test -z "$ac_cv_prog_LIPO"; then
10008 # Extract the first word of "lipo", so it can be a program name with args.
10009 set dummy lipo; ac_word=$2
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10011 $as_echo_n "checking for $ac_word... " >&6; }
10012 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
10013 $as_echo_n "(cached) " >&6
10015 if test -n "$ac_ct_LIPO"; then
10016 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
10018 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10019 for as_dir in $PATH
10022 test -z "$as_dir" && as_dir=.
10023 for ac_exec_ext in '' $ac_executable_extensions; do
10024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10025 ac_cv_prog_ac_ct_LIPO="lipo"
10026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10035 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
10036 if test -n "$ac_ct_LIPO"; then
10037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
10038 $as_echo "$ac_ct_LIPO" >&6; }
10040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10041 $as_echo "no" >&6; }
10044 if test "x$ac_ct_LIPO" = x; then
10047 case $cross_compiling:$ac_tool_warned in
10049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10050 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10051 ac_tool_warned=yes ;;
10056 LIPO="$ac_cv_prog_LIPO"
10059 if test -n "$ac_tool_prefix"; then
10060 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
10061 set dummy ${ac_tool_prefix}otool; ac_word=$2
10062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10063 $as_echo_n "checking for $ac_word... " >&6; }
10064 if test "${ac_cv_prog_OTOOL+set}" = set; then :
10065 $as_echo_n "(cached) " >&6
10067 if test -n "$OTOOL"; then
10068 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
10070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10071 for as_dir in $PATH
10074 test -z "$as_dir" && as_dir=.
10075 for ac_exec_ext in '' $ac_executable_extensions; do
10076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10077 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
10078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10087 OTOOL=$ac_cv_prog_OTOOL
10088 if test -n "$OTOOL"; then
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
10090 $as_echo "$OTOOL" >&6; }
10092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10093 $as_echo "no" >&6; }
10098 if test -z "$ac_cv_prog_OTOOL"; then
10100 # Extract the first word of "otool", so it can be a program name with args.
10101 set dummy otool; ac_word=$2
10102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10103 $as_echo_n "checking for $ac_word... " >&6; }
10104 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
10105 $as_echo_n "(cached) " >&6
10107 if test -n "$ac_ct_OTOOL"; then
10108 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
10110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10111 for as_dir in $PATH
10114 test -z "$as_dir" && as_dir=.
10115 for ac_exec_ext in '' $ac_executable_extensions; do
10116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10117 ac_cv_prog_ac_ct_OTOOL="otool"
10118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10127 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
10128 if test -n "$ac_ct_OTOOL"; then
10129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
10130 $as_echo "$ac_ct_OTOOL" >&6; }
10132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10133 $as_echo "no" >&6; }
10136 if test "x$ac_ct_OTOOL" = x; then
10139 case $cross_compiling:$ac_tool_warned in
10141 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10142 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10143 ac_tool_warned=yes ;;
10148 OTOOL="$ac_cv_prog_OTOOL"
10151 if test -n "$ac_tool_prefix"; then
10152 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
10153 set dummy ${ac_tool_prefix}otool64; ac_word=$2
10154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10155 $as_echo_n "checking for $ac_word... " >&6; }
10156 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
10157 $as_echo_n "(cached) " >&6
10159 if test -n "$OTOOL64"; then
10160 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
10162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10163 for as_dir in $PATH
10166 test -z "$as_dir" && as_dir=.
10167 for ac_exec_ext in '' $ac_executable_extensions; do
10168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10169 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
10170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10179 OTOOL64=$ac_cv_prog_OTOOL64
10180 if test -n "$OTOOL64"; then
10181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
10182 $as_echo "$OTOOL64" >&6; }
10184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10185 $as_echo "no" >&6; }
10190 if test -z "$ac_cv_prog_OTOOL64"; then
10191 ac_ct_OTOOL64=$OTOOL64
10192 # Extract the first word of "otool64", so it can be a program name with args.
10193 set dummy otool64; ac_word=$2
10194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10195 $as_echo_n "checking for $ac_word... " >&6; }
10196 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
10197 $as_echo_n "(cached) " >&6
10199 if test -n "$ac_ct_OTOOL64"; then
10200 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
10202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10203 for as_dir in $PATH
10206 test -z "$as_dir" && as_dir=.
10207 for ac_exec_ext in '' $ac_executable_extensions; do
10208 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10209 ac_cv_prog_ac_ct_OTOOL64="otool64"
10210 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10219 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
10220 if test -n "$ac_ct_OTOOL64"; then
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
10222 $as_echo "$ac_ct_OTOOL64" >&6; }
10224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10225 $as_echo "no" >&6; }
10228 if test "x$ac_ct_OTOOL64" = x; then
10231 case $cross_compiling:$ac_tool_warned in
10233 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10234 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10235 ac_tool_warned=yes ;;
10237 OTOOL64=$ac_ct_OTOOL64
10240 OTOOL64="$ac_cv_prog_OTOOL64"
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
10270 $as_echo_n "checking for -single_module linker flag... " >&6; }
10271 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
10272 $as_echo_n "(cached) " >&6
10274 lt_cv_apple_cc_single_mod=no
10275 if test -z "${LT_MULTI_MODULE}"; then
10276 # By default we will add the -single_module flag. You can override
10277 # by either setting the environment variable LT_MULTI_MODULE
10278 # non-empty at configure time, or by adding -multi_module to the
10280 rm -rf libconftest.dylib*
10281 echo "int foo(void){return 1;}" > conftest.c
10282 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10283 -dynamiclib -Wl,-single_module conftest.c" >&5
10284 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
10285 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
10287 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
10288 lt_cv_apple_cc_single_mod=yes
10290 cat conftest.err >&5
10292 rm -rf libconftest.dylib*
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
10297 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
10298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
10299 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
10300 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
10301 $as_echo_n "(cached) " >&6
10303 lt_cv_ld_exported_symbols_list=no
10304 save_LDFLAGS=$LDFLAGS
10305 echo "_main" > conftest.sym
10306 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
10307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10308 /* end confdefs.h. */
10318 if ac_fn_c_try_link "$LINENO"; then :
10319 lt_cv_ld_exported_symbols_list=yes
10321 lt_cv_ld_exported_symbols_list=no
10323 rm -f core conftest.err conftest.$ac_objext \
10324 conftest$ac_exeext conftest.$ac_ext
10325 LDFLAGS="$save_LDFLAGS"
10328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
10329 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
10331 rhapsody* | darwin1.[012])
10332 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
10334 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10335 darwin*) # darwin 5.x on
10336 # if running on 10.5 or later, the deployment target defaults
10337 # to the OS version, if on x86, and 10.4, the deployment
10338 # target defaults to 10.4. Don't you love it?
10339 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
10340 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
10341 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10343 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
10345 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
10349 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
10350 _lt_dar_single_mod='$single_module'
10352 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
10353 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
10355 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
10357 if test "$DSYMUTIL" != ":"; then
10358 _lt_dsymutil='~$DSYMUTIL $lib || :'
10365 for ac_header in dlfcn.h
10367 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
10369 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
10370 cat >>confdefs.h <<_ACEOF
10371 #define HAVE_DLFCN_H 1
10381 ac_cpp='$CXXCPP $CPPFLAGS'
10382 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10383 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10384 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10385 if test -z "$CXX"; then
10386 if test -n "$CCC"; then
10389 if test -n "$ac_tool_prefix"; then
10390 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10392 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10393 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10395 $as_echo_n "checking for $ac_word... " >&6; }
10396 if test "${ac_cv_prog_CXX+set}" = set; then :
10397 $as_echo_n "(cached) " >&6
10399 if test -n "$CXX"; then
10400 ac_cv_prog_CXX="$CXX" # Let the user override the test.
10402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10403 for as_dir in $PATH
10406 test -z "$as_dir" && as_dir=.
10407 for ac_exec_ext in '' $ac_executable_extensions; do
10408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10409 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
10410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10419 CXX=$ac_cv_prog_CXX
10420 if test -n "$CXX"; then
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
10422 $as_echo "$CXX" >&6; }
10424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10425 $as_echo "no" >&6; }
10429 test -n "$CXX" && break
10432 if test -z "$CXX"; then
10434 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
10436 # Extract the first word of "$ac_prog", so it can be a program name with args.
10437 set dummy $ac_prog; ac_word=$2
10438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10439 $as_echo_n "checking for $ac_word... " >&6; }
10440 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
10441 $as_echo_n "(cached) " >&6
10443 if test -n "$ac_ct_CXX"; then
10444 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
10446 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10447 for as_dir in $PATH
10450 test -z "$as_dir" && as_dir=.
10451 for ac_exec_ext in '' $ac_executable_extensions; do
10452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10453 ac_cv_prog_ac_ct_CXX="$ac_prog"
10454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10463 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
10464 if test -n "$ac_ct_CXX"; then
10465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
10466 $as_echo "$ac_ct_CXX" >&6; }
10468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10469 $as_echo "no" >&6; }
10473 test -n "$ac_ct_CXX" && break
10476 if test "x$ac_ct_CXX" = x; then
10479 case $cross_compiling:$ac_tool_warned in
10481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
10482 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
10483 ac_tool_warned=yes ;;
10491 # Provide some information about the compiler.
10492 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
10495 for ac_option in --version -v -V -qversion; do
10496 { { ac_try="$ac_compiler $ac_option >&5"
10497 case "(($ac_try" in
10498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10499 *) ac_try_echo=$ac_try;;
10501 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
10502 $as_echo "$ac_try_echo"; } >&5
10503 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
10505 if test -s conftest.err; then
10507 ... rest of stderr output deleted ...
10508 10q' conftest.err >conftest.er1
10509 cat conftest.er1 >&5
10510 rm -f conftest.er1 conftest.err
10512 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10513 test $ac_status = 0; }
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
10517 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
10518 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
10519 $as_echo_n "(cached) " >&6
10521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10522 /* end confdefs.h. */
10535 if ac_fn_cxx_try_compile "$LINENO"; then :
10536 ac_compiler_gnu=yes
10540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10541 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
10544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
10545 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
10546 if test $ac_compiler_gnu = yes; then
10551 ac_test_CXXFLAGS=${CXXFLAGS+set}
10552 ac_save_CXXFLAGS=$CXXFLAGS
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
10554 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
10555 if test "${ac_cv_prog_cxx_g+set}" = set; then :
10556 $as_echo_n "(cached) " >&6
10558 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
10559 ac_cxx_werror_flag=yes
10560 ac_cv_prog_cxx_g=no
10562 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10563 /* end confdefs.h. */
10573 if ac_fn_cxx_try_compile "$LINENO"; then :
10574 ac_cv_prog_cxx_g=yes
10577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10578 /* end confdefs.h. */
10588 if ac_fn_cxx_try_compile "$LINENO"; then :
10591 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10594 /* end confdefs.h. */
10604 if ac_fn_cxx_try_compile "$LINENO"; then :
10605 ac_cv_prog_cxx_g=yes
10607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10609 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10611 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10612 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
10614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
10615 $as_echo "$ac_cv_prog_cxx_g" >&6; }
10616 if test "$ac_test_CXXFLAGS" = set; then
10617 CXXFLAGS=$ac_save_CXXFLAGS
10618 elif test $ac_cv_prog_cxx_g = yes; then
10619 if test "$GXX" = yes; then
10625 if test "$GXX" = yes; then
10632 ac_cpp='$CPP $CPPFLAGS'
10633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10637 depcc="$CXX" am_compiler_list=
10639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
10640 $as_echo_n "checking dependency style of $depcc... " >&6; }
10641 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
10642 $as_echo_n "(cached) " >&6
10644 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
10645 # We make a subdir and do the tests there. Otherwise we can end up
10646 # making bogus files that we don't know about and never remove. For
10647 # instance it was reported that on HP-UX the gcc test will end up
10648 # making a dummy file named `D' -- because `-MD' means `put the output
10651 # Copy depcomp to subdir because otherwise we won't find it if we're
10652 # using a relative directory.
10653 cp "$am_depcomp" conftest.dir
10655 # We will build objects and dependencies in a subdirectory because
10656 # it helps to detect inapplicable dependency modes. For instance
10657 # both Tru64's cc and ICC support -MD to output dependencies as a
10658 # side effect of compilation, but ICC will put the dependencies in
10659 # the current directory while Tru64 will put them in the object
10663 am_cv_CXX_dependencies_compiler_type=none
10664 if test "$am_compiler_list" = ""; then
10665 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
10667 am__universal=false
10668 case " $depcc " in #(
10669 *\ -arch\ *\ -arch\ *) am__universal=true ;;
10672 for depmode in $am_compiler_list; do
10673 # Setup a source with many dependencies, because some compilers
10674 # like to wrap large dependency lists on column 80 (with \), and
10675 # we should not choose a depcomp mode which is confused by this.
10677 # We need to recreate these files for each test, as the compiler may
10678 # overwrite some of them when testing with obscure command lines.
10679 # This happens at least with the AIX C compiler.
10681 for i in 1 2 3 4 5 6; do
10682 echo '#include "conftst'$i'.h"' >> sub/conftest.c
10683 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
10684 # Solaris 8's {/usr,}/bin/sh.
10685 touch sub/conftst$i.h
10687 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
10689 # We check with `-c' and `-o' for the sake of the "dashmstdout"
10690 # mode. It turns out that the SunPro C++ compiler does not properly
10691 # handle `-M -o', and we need to detect this. Also, some Intel
10692 # versions had trouble with output in subdirs
10693 am__obj=sub/conftest.${OBJEXT-o}
10694 am__minus_obj="-o $am__obj"
10697 # This depmode causes a compiler race in universal mode.
10698 test "$am__universal" = false || continue
10701 # after this tag, mechanisms are not by side-effect, so they'll
10702 # only be used when explicitly requested
10703 if test "x$enable_dependency_tracking" = xyes; then
10709 msvisualcpp | msvcmsys)
10710 # This compiler won't grok `-c -o', but also, the minuso test has
10711 # not run yet. These depmodes are late enough in the game, and
10712 # so weak that their functioning should not be impacted.
10713 am__obj=conftest.${OBJEXT-o}
10718 if depmode=$depmode \
10719 source=sub/conftest.c object=$am__obj \
10720 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
10721 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
10722 >/dev/null 2>conftest.err &&
10723 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
10724 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
10725 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
10726 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
10727 # icc doesn't choke on unknown options, it will just issue warnings
10728 # or remarks (even with -Werror). So we grep stderr for any message
10729 # that says an option was ignored or not supported.
10730 # When given -MP, icc 7.0 and 7.1 complain thusly:
10731 # icc: Command line warning: ignoring option '-M'; no argument required
10732 # The diagnosis changed in icc 8.0:
10733 # icc: Command line remark: option '-MP' not supported
10734 if (grep 'ignoring option' conftest.err ||
10735 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
10736 am_cv_CXX_dependencies_compiler_type=$depmode
10743 rm -rf conftest.dir
10745 am_cv_CXX_dependencies_compiler_type=none
10749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
10750 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
10751 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
10754 test "x$enable_dependency_tracking" != xno \
10755 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
10756 am__fastdepCXX_TRUE=
10757 am__fastdepCXX_FALSE='#'
10759 am__fastdepCXX_TRUE='#'
10760 am__fastdepCXX_FALSE=
10764 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
10765 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
10766 (test "X$CXX" != "Xg++"))) ; then
10768 ac_cpp='$CXXCPP $CPPFLAGS'
10769 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10770 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10771 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
10773 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
10774 if test -z "$CXXCPP"; then
10775 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
10776 $as_echo_n "(cached) " >&6
10778 # Double quotes because CXXCPP needs to be expanded
10779 for CXXCPP in "$CXX -E" "/lib/cpp"
10781 ac_preproc_ok=false
10782 for ac_cxx_preproc_warn_flag in '' yes
10784 # Use a header file that comes with gcc, so configuring glibc
10785 # with a fresh cross-compiler works.
10786 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10787 # <limits.h> exists even on freestanding compilers.
10788 # On the NeXT, cc -E runs the code through the compiler's parser,
10789 # not just through cpp. "Syntax error" is here to catch this case.
10790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10791 /* end confdefs.h. */
10793 # include <limits.h>
10795 # include <assert.h>
10799 if ac_fn_cxx_try_cpp "$LINENO"; then :
10802 # Broken: fails on valid input.
10805 rm -f conftest.err conftest.$ac_ext
10807 # OK, works on sane cases. Now check whether nonexistent headers
10808 # can be detected and how.
10809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10810 /* end confdefs.h. */
10811 #include <ac_nonexistent.h>
10813 if ac_fn_cxx_try_cpp "$LINENO"; then :
10814 # Broken: success on invalid input.
10817 # Passes both tests.
10821 rm -f conftest.err conftest.$ac_ext
10824 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10825 rm -f conftest.err conftest.$ac_ext
10826 if $ac_preproc_ok; then :
10831 ac_cv_prog_CXXCPP=$CXXCPP
10834 CXXCPP=$ac_cv_prog_CXXCPP
10836 ac_cv_prog_CXXCPP=$CXXCPP
10838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
10839 $as_echo "$CXXCPP" >&6; }
10840 ac_preproc_ok=false
10841 for ac_cxx_preproc_warn_flag in '' yes
10843 # Use a header file that comes with gcc, so configuring glibc
10844 # with a fresh cross-compiler works.
10845 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10846 # <limits.h> exists even on freestanding compilers.
10847 # On the NeXT, cc -E runs the code through the compiler's parser,
10848 # not just through cpp. "Syntax error" is here to catch this case.
10849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10850 /* end confdefs.h. */
10852 # include <limits.h>
10854 # include <assert.h>
10858 if ac_fn_cxx_try_cpp "$LINENO"; then :
10861 # Broken: fails on valid input.
10864 rm -f conftest.err conftest.$ac_ext
10866 # OK, works on sane cases. Now check whether nonexistent headers
10867 # can be detected and how.
10868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10869 /* end confdefs.h. */
10870 #include <ac_nonexistent.h>
10872 if ac_fn_cxx_try_cpp "$LINENO"; then :
10873 # Broken: success on invalid input.
10876 # Passes both tests.
10880 rm -f conftest.err conftest.$ac_ext
10883 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10884 rm -f conftest.err conftest.$ac_ext
10885 if $ac_preproc_ok; then :
10888 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10889 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10890 _lt_caught_CXX_error=yes; }
10894 ac_cpp='$CPP $CPPFLAGS'
10895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10900 _lt_caught_CXX_error=yes
10908 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
10909 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10910 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
10911 if test -n "$ac_tool_prefix"; then
10912 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
10914 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
10915 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10917 $as_echo_n "checking for $ac_word... " >&6; }
10918 if test "${ac_cv_prog_F77+set}" = set; then :
10919 $as_echo_n "(cached) " >&6
10921 if test -n "$F77"; then
10922 ac_cv_prog_F77="$F77" # Let the user override the test.
10924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10925 for as_dir in $PATH
10928 test -z "$as_dir" && as_dir=.
10929 for ac_exec_ext in '' $ac_executable_extensions; do
10930 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10931 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
10932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10941 F77=$ac_cv_prog_F77
10942 if test -n "$F77"; then
10943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
10944 $as_echo "$F77" >&6; }
10946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10947 $as_echo "no" >&6; }
10951 test -n "$F77" && break
10954 if test -z "$F77"; then
10956 for ac_prog in g77 xlf f77 frt pgf77 cf77 fort77 fl32 af77 xlf90 f90 pgf90 pghpf epcf90 gfortran g95 xlf95 f95 fort ifort ifc efc pgf95 lf95 ftn
10958 # Extract the first word of "$ac_prog", so it can be a program name with args.
10959 set dummy $ac_prog; ac_word=$2
10960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10961 $as_echo_n "checking for $ac_word... " >&6; }
10962 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
10963 $as_echo_n "(cached) " >&6
10965 if test -n "$ac_ct_F77"; then
10966 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
10968 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10969 for as_dir in $PATH
10972 test -z "$as_dir" && as_dir=.
10973 for ac_exec_ext in '' $ac_executable_extensions; do
10974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10975 ac_cv_prog_ac_ct_F77="$ac_prog"
10976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10985 ac_ct_F77=$ac_cv_prog_ac_ct_F77
10986 if test -n "$ac_ct_F77"; then
10987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
10988 $as_echo "$ac_ct_F77" >&6; }
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10991 $as_echo "no" >&6; }
10995 test -n "$ac_ct_F77" && break
10998 if test "x$ac_ct_F77" = x; then
11001 case $cross_compiling:$ac_tool_warned in
11003 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11004 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11005 ac_tool_warned=yes ;;
11012 # Provide some information about the compiler.
11013 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
11016 for ac_option in --version -v -V -qversion; do
11017 { { ac_try="$ac_compiler $ac_option >&5"
11018 case "(($ac_try" in
11019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11020 *) ac_try_echo=$ac_try;;
11022 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
11023 $as_echo "$ac_try_echo"; } >&5
11024 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
11026 if test -s conftest.err; then
11028 ... rest of stderr output deleted ...
11029 10q' conftest.err >conftest.er1
11030 cat conftest.er1 >&5
11031 rm -f conftest.er1 conftest.err
11033 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11034 test $ac_status = 0; }
11038 # If we don't use `.F' as extension, the preprocessor is not run on the
11039 # input file. (Note that this only needs to work for GNU compilers.)
11040 ac_save_ext=$ac_ext
11042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
11043 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
11044 if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
11045 $as_echo_n "(cached) " >&6
11047 cat > conftest.$ac_ext <<_ACEOF
11055 if ac_fn_f77_try_compile "$LINENO"; then :
11056 ac_compiler_gnu=yes
11060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11061 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
11064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
11065 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
11066 ac_ext=$ac_save_ext
11067 ac_test_FFLAGS=${FFLAGS+set}
11068 ac_save_FFLAGS=$FFLAGS
11070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
11071 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
11072 if test "${ac_cv_prog_f77_g+set}" = set; then :
11073 $as_echo_n "(cached) " >&6
11076 cat > conftest.$ac_ext <<_ACEOF
11081 if ac_fn_f77_try_compile "$LINENO"; then :
11082 ac_cv_prog_f77_g=yes
11084 ac_cv_prog_f77_g=no
11086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
11090 $as_echo "$ac_cv_prog_f77_g" >&6; }
11091 if test "$ac_test_FFLAGS" = set; then
11092 FFLAGS=$ac_save_FFLAGS
11093 elif test $ac_cv_prog_f77_g = yes; then
11094 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11100 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
11107 if test $ac_compiler_gnu = yes; then
11113 ac_cpp='$CPP $CPPFLAGS'
11114 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11115 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11116 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11118 if test -z "$F77" || test "X$F77" = "Xno"; then
11119 _lt_disable_F77=yes
11134 # Check whether --enable-shared was given.
11135 if test "${enable_shared+set}" = set; then :
11136 enableval=$enable_shared; p=${PACKAGE-default}
11138 yes) enable_shared=yes ;;
11139 no) enable_shared=no ;;
11142 # Look at the argument we got. We use all the common list separators.
11143 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11144 for pkg in $enableval; do
11146 if test "X$pkg" = "X$p"; then
11165 # Check whether --enable-static was given.
11166 if test "${enable_static+set}" = set; then :
11167 enableval=$enable_static; p=${PACKAGE-default}
11169 yes) enable_static=yes ;;
11170 no) enable_static=no ;;
11173 # Look at the argument we got. We use all the common list separators.
11174 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11175 for pkg in $enableval; do
11177 if test "X$pkg" = "X$p"; then
11197 # Check whether --with-pic was given.
11198 if test "${with_pic+set}" = set; then :
11199 withval=$with_pic; pic_mode="$withval"
11205 test -z "$pic_mode" && pic_mode=default
11213 # Check whether --enable-fast-install was given.
11214 if test "${enable_fast_install+set}" = set; then :
11215 enableval=$enable_fast_install; p=${PACKAGE-default}
11217 yes) enable_fast_install=yes ;;
11218 no) enable_fast_install=no ;;
11220 enable_fast_install=no
11221 # Look at the argument we got. We use all the common list separators.
11222 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
11223 for pkg in $enableval; do
11225 if test "X$pkg" = "X$p"; then
11226 enable_fast_install=yes
11233 enable_fast_install=yes
11246 # This can be used to rebuild libtool when needed
11247 LIBTOOL_DEPS="$ltmain"
11249 # Always use our own libtool.
11250 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
11276 test -z "$LN_S" && LN_S="ln -s"
11291 if test -n "${ZSH_VERSION+set}" ; then
11292 setopt NO_GLOB_SUBST
11295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
11296 $as_echo_n "checking for objdir... " >&6; }
11297 if test "${lt_cv_objdir+set}" = set; then :
11298 $as_echo_n "(cached) " >&6
11300 rm -f .libs 2>/dev/null
11301 mkdir .libs 2>/dev/null
11302 if test -d .libs; then
11305 # MS-DOS does not allow filenames that begin with a dot.
11308 rmdir .libs 2>/dev/null
11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
11311 $as_echo "$lt_cv_objdir" >&6; }
11312 objdir=$lt_cv_objdir
11318 cat >>confdefs.h <<_ACEOF
11319 #define LT_OBJDIR "$lt_cv_objdir/"
11340 # AIX sometimes has problems with the GCC collect2 program. For some
11341 # reason, if we set the COLLECT_NAMES environment variable, the problems
11342 # vanish in a puff of smoke.
11343 if test "X${COLLECT_NAMES+set}" != Xset; then
11345 export COLLECT_NAMES
11350 # Sed substitution that helps us do robust quoting. It backslashifies
11351 # metacharacters that are still active within double-quoted strings.
11352 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
11354 # Same as above, but do not quote variable references.
11355 double_quote_subst='s/\(["`\\]\)/\\\1/g'
11357 # Sed substitution to delay expansion of an escaped shell variable in a
11358 # double_quote_subst'ed string.
11359 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11361 # Sed substitution to delay expansion of an escaped single quote.
11362 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
11364 # Sed substitution to avoid accidental globbing in evaled expressions
11365 no_glob_subst='s/\*/\\\*/g'
11367 # Global variables:
11369 can_build_shared=yes
11371 # All known linkers require a `.a' archive for static linking (except MSVC,
11372 # which needs '.lib').
11375 with_gnu_ld="$lt_cv_prog_gnu_ld"
11378 old_CFLAGS="$CFLAGS"
11380 # Set sane defaults for various variables
11381 test -z "$CC" && CC=cc
11382 test -z "$LTCC" && LTCC=$CC
11383 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
11384 test -z "$LD" && LD=ld
11385 test -z "$ac_objext" && ac_objext=o
11387 for cc_temp in $compiler""; do
11389 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
11390 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
11395 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11398 # Only perform the check for file, if the check method requires it
11399 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11400 case $deplibs_check_method in
11402 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
11404 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
11405 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
11406 $as_echo_n "(cached) " >&6
11410 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11413 lt_save_MAGIC_CMD="$MAGIC_CMD"
11414 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11415 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11416 for ac_dir in $ac_dummy; do
11418 test -z "$ac_dir" && ac_dir=.
11419 if test -f $ac_dir/${ac_tool_prefix}file; then
11420 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11421 if test -n "$file_magic_test_file"; then
11422 case $deplibs_check_method in
11424 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11425 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11426 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11427 $EGREP "$file_magic_regex" > /dev/null; then
11432 *** Warning: the command libtool uses to detect shared libraries,
11433 *** $file_magic_cmd, produces output that libtool cannot recognize.
11434 *** The result is that libtool may fail to recognize shared libraries
11435 *** as such. This will affect the creation of libtool libraries that
11436 *** depend on shared libraries, but programs linked with such libtool
11437 *** libraries will work regardless of this problem. Nevertheless, you
11438 *** may want to report the problem to your system manager and/or to
11439 *** bug-libtool@gnu.org
11449 MAGIC_CMD="$lt_save_MAGIC_CMD"
11454 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11455 if test -n "$MAGIC_CMD"; then
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11457 $as_echo "$MAGIC_CMD" >&6; }
11459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11460 $as_echo "no" >&6; }
11467 if test -z "$lt_cv_path_MAGIC_CMD"; then
11468 if test -n "$ac_tool_prefix"; then
11469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
11470 $as_echo_n "checking for file... " >&6; }
11471 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
11472 $as_echo_n "(cached) " >&6
11476 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11479 lt_save_MAGIC_CMD="$MAGIC_CMD"
11480 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11481 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11482 for ac_dir in $ac_dummy; do
11484 test -z "$ac_dir" && ac_dir=.
11485 if test -f $ac_dir/file; then
11486 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11487 if test -n "$file_magic_test_file"; then
11488 case $deplibs_check_method in
11490 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11491 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11492 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11493 $EGREP "$file_magic_regex" > /dev/null; then
11498 *** Warning: the command libtool uses to detect shared libraries,
11499 *** $file_magic_cmd, produces output that libtool cannot recognize.
11500 *** The result is that libtool may fail to recognize shared libraries
11501 *** as such. This will affect the creation of libtool libraries that
11502 *** depend on shared libraries, but programs linked with such libtool
11503 *** libraries will work regardless of this problem. Nevertheless, you
11504 *** may want to report the problem to your system manager and/or to
11505 *** bug-libtool@gnu.org
11515 MAGIC_CMD="$lt_save_MAGIC_CMD"
11520 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11521 if test -n "$MAGIC_CMD"; then
11522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
11523 $as_echo "$MAGIC_CMD" >&6; }
11525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11526 $as_echo "no" >&6; }
11539 # Use C for the default configuration in the libtool script
11543 ac_cpp='$CPP $CPPFLAGS'
11544 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11545 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11546 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11549 # Source file extension for C test sources.
11552 # Object file extension for compiled C test sources.
11556 # Code to be used in simple compile tests
11557 lt_simple_compile_test_code="int some_variable = 0;"
11559 # Code to be used in simple link tests
11560 lt_simple_link_test_code='int main(){return(0);}'
11568 # If no C compiler was specified, use CC.
11571 # If no C compiler flags were specified, use CFLAGS.
11572 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
11574 # Allow CC to be a program name with arguments.
11577 # Save the default compiler, since it gets overwritten when the other
11578 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
11579 compiler_DEFAULT=$CC
11581 # save warnings/boilerplate of simple test code
11582 ac_outfile=conftest.$ac_objext
11583 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
11584 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11585 _lt_compiler_boilerplate=`cat conftest.err`
11588 ac_outfile=conftest.$ac_objext
11589 echo "$lt_simple_link_test_code" >conftest.$ac_ext
11590 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
11591 _lt_linker_boilerplate=`cat conftest.err`
11596 ## There is no encapsulation within the following macros, do not change
11597 ## the running order or otherwise move them around unless you know exactly
11598 ## what you are doing...
11599 if test -n "$compiler"; then
11601 lt_prog_compiler_no_builtin_flag=
11603 if test "$GCC" = yes; then
11604 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11607 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
11608 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
11609 $as_echo_n "(cached) " >&6
11611 lt_cv_prog_compiler_rtti_exceptions=no
11612 ac_outfile=conftest.$ac_objext
11613 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11614 lt_compiler_flag="-fno-rtti -fno-exceptions"
11615 # Insert the option either (1) after the last *FLAGS variable, or
11616 # (2) before a word containing "conftest.", or (3) at the end.
11617 # Note that $ac_compile itself does not contain backslashes and begins
11618 # with a dollar sign (not a hyphen), so the echo should work correctly.
11619 # The option is referenced via a variable to avoid confusing sed.
11620 lt_compile=`echo "$ac_compile" | $SED \
11621 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11622 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11623 -e 's:$: $lt_compiler_flag:'`
11624 (eval echo "\"\$as_me:11624: $lt_compile\"" >&5)
11625 (eval "$lt_compile" 2>conftest.err)
11627 cat conftest.err >&5
11628 echo "$as_me:11628: \$? = $ac_status" >&5
11629 if (exit $ac_status) && test -s "$ac_outfile"; then
11630 # The compiler can only warn and ignore the option if not recognized
11631 # So say no if there are warnings other than the usual output.
11632 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11633 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11634 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11635 lt_cv_prog_compiler_rtti_exceptions=yes
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11642 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
11644 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11645 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11657 lt_prog_compiler_wl=
11658 lt_prog_compiler_pic=
11659 lt_prog_compiler_static=
11661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
11662 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
11664 if test "$GCC" = yes; then
11665 lt_prog_compiler_wl='-Wl,'
11666 lt_prog_compiler_static='-static'
11670 # All AIX code is PIC.
11671 if test "$host_cpu" = ia64; then
11672 # AIX 5 now supports IA64 processor
11673 lt_prog_compiler_static='-Bstatic'
11680 # see comment about AmigaOS4 .so support
11681 lt_prog_compiler_pic='-fPIC'
11684 # FIXME: we need at least 68020 code to build shared libraries, but
11685 # adding the `-m68020' flag to GCC prevents building anything better,
11687 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11692 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11693 # PIC is the default for these OSes.
11696 mingw* | cygwin* | pw32* | os2* | cegcc*)
11697 # This hack is so that the source file can tell whether it is being
11698 # built for inclusion in a dll (and should export symbols for example).
11699 # Although the cygwin gcc ignores -fPIC, still need this for old-style
11700 # (--disable-auto-import) libraries
11701 lt_prog_compiler_pic='-DDLL_EXPORT'
11704 darwin* | rhapsody*)
11705 # PIC is the default on this platform
11706 # Common symbols not allowed in MH_DYLIB files
11707 lt_prog_compiler_pic='-fno-common'
11711 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
11712 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
11713 # sets the default TLS model and affects inlining.
11719 lt_prog_compiler_pic='-fPIC'
11725 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
11726 # Instead, we relocate shared libraries at runtime.
11730 # Just because we use GCC doesn't mean we suddenly get shared libraries
11731 # on systems that don't support them.
11732 lt_prog_compiler_can_build_shared=no
11737 # QNX uses GNU C++, but need to define -shared option too, otherwise
11738 # it will coredump.
11739 lt_prog_compiler_pic='-fPIC -shared'
11743 if test -d /usr/nec; then
11744 lt_prog_compiler_pic=-Kconform_pic
11749 lt_prog_compiler_pic='-fPIC'
11753 # PORTME Check for flag to pass linker flags through the system compiler.
11756 lt_prog_compiler_wl='-Wl,'
11757 if test "$host_cpu" = ia64; then
11758 # AIX 5 now supports IA64 processor
11759 lt_prog_compiler_static='-Bstatic'
11761 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11765 mingw* | cygwin* | pw32* | os2* | cegcc*)
11766 # This hack is so that the source file can tell whether it is being
11767 # built for inclusion in a dll (and should export symbols for example).
11768 lt_prog_compiler_pic='-DDLL_EXPORT'
11771 hpux9* | hpux10* | hpux11*)
11772 lt_prog_compiler_wl='-Wl,'
11773 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11774 # not for PA HP-UX.
11780 lt_prog_compiler_pic='+Z'
11783 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11784 lt_prog_compiler_static='${wl}-a ${wl}archive'
11787 irix5* | irix6* | nonstopux*)
11788 lt_prog_compiler_wl='-Wl,'
11789 # PIC (with -KPIC) is the default.
11790 lt_prog_compiler_static='-non_shared'
11793 linux* | k*bsd*-gnu)
11794 case $cc_basename in
11795 # old Intel for x86_64 which still supported -KPIC.
11797 lt_prog_compiler_wl='-Wl,'
11798 lt_prog_compiler_pic='-KPIC'
11799 lt_prog_compiler_static='-static'
11801 # icc used to be incompatible with GCC.
11802 # ICC 10 doesn't accept -KPIC any more.
11804 lt_prog_compiler_wl='-Wl,'
11805 lt_prog_compiler_pic='-fPIC'
11806 lt_prog_compiler_static='-static'
11808 # Lahey Fortran 8.1.
11810 lt_prog_compiler_wl='-Wl,'
11811 lt_prog_compiler_pic='--shared'
11812 lt_prog_compiler_static='--static'
11814 pgcc* | pgf77* | pgf90* | pgf95*)
11815 # Portland Group compilers (*not* the Pentium gcc compiler,
11816 # which looks to be a dead project)
11817 lt_prog_compiler_wl='-Wl,'
11818 lt_prog_compiler_pic='-fpic'
11819 lt_prog_compiler_static='-Bstatic'
11822 lt_prog_compiler_wl='-Wl,'
11823 # All Alpha code is PIC.
11824 lt_prog_compiler_static='-non_shared'
11827 # IBM XL C 8.0/Fortran 10.1 on PPC
11828 lt_prog_compiler_wl='-Wl,'
11829 lt_prog_compiler_pic='-qpic'
11830 lt_prog_compiler_static='-qstaticlink'
11833 case `$CC -V 2>&1 | sed 5q` in
11836 lt_prog_compiler_pic='-KPIC'
11837 lt_prog_compiler_static='-Bstatic'
11838 lt_prog_compiler_wl='-Wl,'
11841 # Sun Fortran 8.3 passes all unrecognized flags to the linker
11842 lt_prog_compiler_pic='-KPIC'
11843 lt_prog_compiler_static='-Bstatic'
11844 lt_prog_compiler_wl=''
11852 lt_prog_compiler_pic='-KPIC'
11853 lt_prog_compiler_static='-Bstatic'
11857 # QNX uses GNU C++, but need to define -shared option too, otherwise
11858 # it will coredump.
11859 lt_prog_compiler_pic='-fPIC -shared'
11862 osf3* | osf4* | osf5*)
11863 lt_prog_compiler_wl='-Wl,'
11864 # All OSF/1 code is PIC.
11865 lt_prog_compiler_static='-non_shared'
11869 lt_prog_compiler_static='-non_shared'
11873 lt_prog_compiler_pic='-KPIC'
11874 lt_prog_compiler_static='-Bstatic'
11875 case $cc_basename in
11876 f77* | f90* | f95*)
11877 lt_prog_compiler_wl='-Qoption ld ';;
11879 lt_prog_compiler_wl='-Wl,';;
11884 lt_prog_compiler_wl='-Qoption ld '
11885 lt_prog_compiler_pic='-PIC'
11886 lt_prog_compiler_static='-Bstatic'
11889 sysv4 | sysv4.2uw2* | sysv4.3*)
11890 lt_prog_compiler_wl='-Wl,'
11891 lt_prog_compiler_pic='-KPIC'
11892 lt_prog_compiler_static='-Bstatic'
11896 if test -d /usr/nec ;then
11897 lt_prog_compiler_pic='-Kconform_pic'
11898 lt_prog_compiler_static='-Bstatic'
11902 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
11903 lt_prog_compiler_wl='-Wl,'
11904 lt_prog_compiler_pic='-KPIC'
11905 lt_prog_compiler_static='-Bstatic'
11909 lt_prog_compiler_wl='-Wl,'
11910 lt_prog_compiler_can_build_shared=no
11914 lt_prog_compiler_pic='-pic'
11915 lt_prog_compiler_static='-Bstatic'
11919 lt_prog_compiler_can_build_shared=no
11925 # For platforms which do not support PIC, -DPIC is meaningless:
11927 lt_prog_compiler_pic=
11930 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
11934 $as_echo "$lt_prog_compiler_pic" >&6; }
11942 # Check to make sure the PIC flag actually works.
11944 if test -n "$lt_prog_compiler_pic"; then
11945 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11946 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
11947 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
11948 $as_echo_n "(cached) " >&6
11950 lt_cv_prog_compiler_pic_works=no
11951 ac_outfile=conftest.$ac_objext
11952 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
11953 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11954 # Insert the option either (1) after the last *FLAGS variable, or
11955 # (2) before a word containing "conftest.", or (3) at the end.
11956 # Note that $ac_compile itself does not contain backslashes and begins
11957 # with a dollar sign (not a hyphen), so the echo should work correctly.
11958 # The option is referenced via a variable to avoid confusing sed.
11959 lt_compile=`echo "$ac_compile" | $SED \
11960 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
11961 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11962 -e 's:$: $lt_compiler_flag:'`
11963 (eval echo "\"\$as_me:11963: $lt_compile\"" >&5)
11964 (eval "$lt_compile" 2>conftest.err)
11966 cat conftest.err >&5
11967 echo "$as_me:11967: \$? = $ac_status" >&5
11968 if (exit $ac_status) && test -s "$ac_outfile"; then
11969 # The compiler can only warn and ignore the option if not recognized
11970 # So say no if there are warnings other than the usual output.
11971 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
11972 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
11973 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
11974 lt_cv_prog_compiler_pic_works=yes
11980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
11981 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
11983 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
11984 case $lt_prog_compiler_pic in
11986 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11989 lt_prog_compiler_pic=
11990 lt_prog_compiler_can_build_shared=no
12001 # Check to make sure the static flag actually works.
12003 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
12004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12005 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
12006 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
12007 $as_echo_n "(cached) " >&6
12009 lt_cv_prog_compiler_static_works=no
12010 save_LDFLAGS="$LDFLAGS"
12011 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
12012 echo "$lt_simple_link_test_code" > conftest.$ac_ext
12013 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
12014 # The linker can only warn and ignore the option if not recognized
12015 # So say no if there are warnings
12016 if test -s conftest.err; then
12017 # Append any errors to the config.log.
12018 cat conftest.err 1>&5
12019 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
12020 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
12021 if diff conftest.exp conftest.er2 >/dev/null; then
12022 lt_cv_prog_compiler_static_works=yes
12025 lt_cv_prog_compiler_static_works=yes
12029 LDFLAGS="$save_LDFLAGS"
12032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
12033 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
12035 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
12038 lt_prog_compiler_static=
12047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12048 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12049 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
12050 $as_echo_n "(cached) " >&6
12052 lt_cv_prog_compiler_c_o=no
12053 $RM -r conftest 2>/dev/null
12057 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12059 lt_compiler_flag="-o out/conftest2.$ac_objext"
12060 # Insert the option either (1) after the last *FLAGS variable, or
12061 # (2) before a word containing "conftest.", or (3) at the end.
12062 # Note that $ac_compile itself does not contain backslashes and begins
12063 # with a dollar sign (not a hyphen), so the echo should work correctly.
12064 lt_compile=`echo "$ac_compile" | $SED \
12065 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12066 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12067 -e 's:$: $lt_compiler_flag:'`
12068 (eval echo "\"\$as_me:12068: $lt_compile\"" >&5)
12069 (eval "$lt_compile" 2>out/conftest.err)
12071 cat out/conftest.err >&5
12072 echo "$as_me:12072: \$? = $ac_status" >&5
12073 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12075 # The compiler can only warn and ignore the option if not recognized
12076 # So say no if there are warnings
12077 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12078 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12079 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12080 lt_cv_prog_compiler_c_o=yes
12085 # SGI C++ compiler will create directory out/ii_files/ for
12086 # template instantiation
12087 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12088 $RM out/* && rmdir out
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12095 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
12103 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
12104 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
12105 $as_echo_n "(cached) " >&6
12107 lt_cv_prog_compiler_c_o=no
12108 $RM -r conftest 2>/dev/null
12112 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
12114 lt_compiler_flag="-o out/conftest2.$ac_objext"
12115 # Insert the option either (1) after the last *FLAGS variable, or
12116 # (2) before a word containing "conftest.", or (3) at the end.
12117 # Note that $ac_compile itself does not contain backslashes and begins
12118 # with a dollar sign (not a hyphen), so the echo should work correctly.
12119 lt_compile=`echo "$ac_compile" | $SED \
12120 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12121 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12122 -e 's:$: $lt_compiler_flag:'`
12123 (eval echo "\"\$as_me:12123: $lt_compile\"" >&5)
12124 (eval "$lt_compile" 2>out/conftest.err)
12126 cat out/conftest.err >&5
12127 echo "$as_me:12127: \$? = $ac_status" >&5
12128 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12130 # The compiler can only warn and ignore the option if not recognized
12131 # So say no if there are warnings
12132 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
12133 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
12134 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
12135 lt_cv_prog_compiler_c_o=yes
12140 # SGI C++ compiler will create directory out/ii_files/ for
12141 # template instantiation
12142 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
12143 $RM out/* && rmdir out
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
12150 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
12155 hard_links="nottested"
12156 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12157 # do not overwrite the value of need_locks provided by the user
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
12159 $as_echo_n "checking if we can lock with hard links... " >&6; }
12162 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12164 ln conftest.a conftest.b 2>&5 || hard_links=no
12165 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
12167 $as_echo "$hard_links" >&6; }
12168 if test "$hard_links" = no; then
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12170 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12183 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
12186 allow_undefined_flag=
12187 always_export_symbols=no
12189 archive_expsym_cmds=
12190 compiler_needs_object=no
12191 enable_shared_with_static_runtimes=no
12192 export_dynamic_flag_spec=
12193 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12194 hardcode_automatic=no
12196 hardcode_direct_absolute=no
12197 hardcode_libdir_flag_spec=
12198 hardcode_libdir_flag_spec_ld=
12199 hardcode_libdir_separator=
12200 hardcode_minus_L=no
12201 hardcode_shlibpath_var=unsupported
12203 link_all_deplibs=unknown
12205 module_expsym_cmds=
12206 old_archive_from_new_cmds=
12207 old_archive_from_expsyms_cmds=
12208 thread_safe_flag_spec=
12209 whole_archive_flag_spec=
12210 # include_expsyms should be a list of space-separated symbols to be *always*
12211 # included in the symbol list
12213 # exclude_expsyms can be an extended regexp of symbols to exclude
12214 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12215 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12216 # as well as any symbol that contains `d'.
12217 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
12218 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12219 # platforms (ab)use it in PIC code, but their linkers get confused if
12220 # the symbol is explicitly referenced. Since portable code cannot
12221 # rely on this symbol name, it's probably fine to never include it in
12222 # preloaded symbol tables.
12223 # Exclude shared library initialization/finalization symbols.
12224 extract_expsyms_cmds=
12227 cygwin* | mingw* | pw32* | cegcc*)
12228 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12229 # When not using gcc, we currently assume that we are using
12230 # Microsoft Visual C++.
12231 if test "$GCC" != yes; then
12236 # we just hope/assume this is gcc and not c89 (= MSVC++)
12242 linux* | k*bsd*-gnu)
12243 link_all_deplibs=no
12248 if test "$with_gnu_ld" = yes; then
12249 # If archive_cmds runs LD, not CC, wlarc should be empty
12252 # Set some defaults for GNU ld with shared library support. These
12253 # are reset later if shared libraries are not supported. Putting them
12254 # here allows them to be overridden if necessary.
12255 runpath_var=LD_RUN_PATH
12256 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12257 export_dynamic_flag_spec='${wl}--export-dynamic'
12258 # ancient GNU ld didn't support --whole-archive et. al.
12259 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
12260 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12262 whole_archive_flag_spec=
12264 supports_anon_versioning=no
12265 case `$LD -v 2>&1` in
12266 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12267 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12268 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12269 *\ 2.11.*) ;; # other 2.11 versions
12270 *) supports_anon_versioning=yes ;;
12273 # See if GNU ld supports shared libraries.
12276 # On AIX/PPC, the GNU linker is very broken
12277 if test "$host_cpu" != ia64; then
12281 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12282 *** to be unable to reliably create shared libraries on AIX.
12283 *** Therefore, libtool is disabling shared libraries support. If you
12284 *** really care for shared libraries, you may want to modify your PATH
12285 *** so that a non-GNU linker is found, and then restart.
12294 # see comment about AmigaOS4 .so support
12295 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12296 archive_expsym_cmds=''
12299 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)'
12300 hardcode_libdir_flag_spec='-L$libdir'
12301 hardcode_minus_L=yes
12307 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12308 allow_undefined_flag=unsupported
12309 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12310 # support --undefined. This deserves some investigation. FIXME
12311 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12317 cygwin* | mingw* | pw32* | cegcc*)
12318 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12319 # as there is no search path for DLLs.
12320 hardcode_libdir_flag_spec='-L$libdir'
12321 allow_undefined_flag=unsupported
12322 always_export_symbols=no
12323 enable_shared_with_static_runtimes=yes
12324 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12326 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
12327 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12328 # If the export-symbols file already is a .def file (1st line
12329 # is EXPORTS), use it as is; otherwise, prepend...
12330 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12331 cp $export_symbols $output_objdir/$soname.def;
12333 echo EXPORTS > $output_objdir/$soname.def;
12334 cat $export_symbols >> $output_objdir/$soname.def;
12336 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12344 hardcode_shlibpath_var=no
12345 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12346 export_dynamic_flag_spec='${wl}-E'
12347 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12348 # Instead, shared libraries are loaded at an image base (0x10000000 by
12349 # default) and relocated if they conflict, which is a slow very memory
12350 # consuming and fragmenting process. To avoid this, we pick a random,
12351 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12352 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12353 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12354 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'
12357 gnu* | linux* | tpf* | k*bsd*-gnu)
12359 if test "$host_os" = linux-dietlibc; then
12360 case $cc_basename in
12361 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
12364 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
12365 && test "$tmp_diet" = no
12368 tmp_sharedflag='-shared'
12369 case $cc_basename,$host_cpu in
12370 pgcc*) # Portland Group C compiler
12371 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12372 tmp_addflag=' $pic_flag'
12374 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
12375 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12376 tmp_addflag=' $pic_flag -Mnomain' ;;
12377 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
12378 tmp_addflag=' -i_dynamic' ;;
12379 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
12380 tmp_addflag=' -i_dynamic -nofor_main' ;;
12381 ifc* | ifort*) # Intel Fortran compiler
12382 tmp_addflag=' -nofor_main' ;;
12383 lf95*) # Lahey Fortran 8.1
12384 whole_archive_flag_spec=
12385 tmp_sharedflag='--shared' ;;
12386 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
12387 tmp_sharedflag='-qmkshrobj'
12390 case `$CC -V 2>&1 | sed 5q` in
12391 *Sun\ C*) # Sun C 5.9
12392 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
12393 compiler_needs_object=yes
12394 tmp_sharedflag='-G' ;;
12395 *Sun\ F*) # Sun Fortran 8.3
12396 tmp_sharedflag='-G' ;;
12398 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12400 if test "x$supports_anon_versioning" = xyes; then
12401 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12402 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12403 echo "local: *; };" >> $output_objdir/$libname.ver~
12404 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12407 case $cc_basename in
12409 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
12410 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
12411 hardcode_libdir_flag_spec=
12412 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12413 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
12414 if test "x$supports_anon_versioning" = xyes; then
12415 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
12416 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12417 echo "local: *; };" >> $output_objdir/$libname.ver~
12418 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
12427 netbsd* | netbsdelf*-gnu)
12428 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12429 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12432 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12433 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12438 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
12442 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12443 *** create shared libraries on Solaris systems. Therefore, libtool
12444 *** is disabling shared libraries support. We urge you to upgrade GNU
12445 *** binutils to release 2.9.1 or newer. Another option is to modify
12446 *** your PATH or compiler configuration so that the native linker is
12447 *** used, and then restart.
12450 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12451 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12452 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12458 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
12459 case `$LD -v 2>&1` in
12460 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
12464 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12465 *** reliably create shared libraries on SCO systems. Therefore, libtool
12466 *** is disabling shared libraries support. We urge you to upgrade GNU
12467 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12468 *** your PATH or compiler configuration so that the native linker is
12469 *** used, and then restart.
12474 # For security reasons, it is highly recommended that you always
12475 # use absolute paths for naming shared libraries, and exclude the
12476 # DT_RUNPATH tag from executables and libraries. But doing so
12477 # requires that you compile everything twice, which is a pain.
12478 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12479 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12480 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12481 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12490 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12492 hardcode_direct=yes
12493 hardcode_shlibpath_var=no
12497 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
12498 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12499 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12506 if test "$ld_shlibs" = no; then
12508 hardcode_libdir_flag_spec=
12509 export_dynamic_flag_spec=
12510 whole_archive_flag_spec=
12513 # PORTME fill in a description of your system's linker (not GNU ld)
12516 allow_undefined_flag=unsupported
12517 always_export_symbols=yes
12518 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'
12519 # Note: this linker hardcodes the directories in LIBPATH if there
12520 # are no directories specified by -L.
12521 hardcode_minus_L=yes
12522 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12523 # Neither direct hardcoding nor static linking is supported with a
12525 hardcode_direct=unsupported
12530 if test "$host_cpu" = ia64; then
12531 # On IA64, the linker does run time linking by default, so we don't
12532 # have to do anything special.
12533 aix_use_runtimelinking=no
12534 exp_sym_flag='-Bexport'
12537 # If we're using GNU nm, then we don't want the "-C" option.
12538 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12539 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
12540 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
12542 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'
12544 aix_use_runtimelinking=no
12546 # Test if we are trying to use run time linking or normal
12547 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12548 # need to do runtime linking.
12549 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
12550 for ld_flag in $LDFLAGS; do
12551 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12552 aix_use_runtimelinking=yes
12559 exp_sym_flag='-bexport'
12560 no_entry_flag='-bnoentry'
12563 # When large executables or shared objects are built, AIX ld can
12564 # have problems creating the table of contents. If linking a library
12565 # or program results in "error TOC overflow" add -mminimal-toc to
12566 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12567 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12570 hardcode_direct=yes
12571 hardcode_direct_absolute=yes
12572 hardcode_libdir_separator=':'
12573 link_all_deplibs=yes
12574 file_list_spec='${wl}-f,'
12576 if test "$GCC" = yes; then
12577 case $host_os in aix4.[012]|aix4.[012].*)
12578 # We only want to do this on AIX 4.2 and lower, the check
12579 # below for broken collect2 doesn't work under 4.3+
12580 collect2name=`${CC} -print-prog-name=collect2`
12581 if test -f "$collect2name" &&
12582 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
12584 # We have reworked collect2
12587 # We have old collect2
12588 hardcode_direct=unsupported
12589 # It fails to find uninstalled libraries when the uninstalled
12590 # path is not listed in the libpath. Setting hardcode_minus_L
12591 # to unsupported forces relinking
12592 hardcode_minus_L=yes
12593 hardcode_libdir_flag_spec='-L$libdir'
12594 hardcode_libdir_separator=
12598 shared_flag='-shared'
12599 if test "$aix_use_runtimelinking" = yes; then
12600 shared_flag="$shared_flag "'${wl}-G'
12602 link_all_deplibs=no
12605 if test "$host_cpu" = ia64; then
12606 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12607 # chokes on -Wl,-G. The following line is correct:
12610 if test "$aix_use_runtimelinking" = yes; then
12611 shared_flag='${wl}-G'
12613 shared_flag='${wl}-bM:SRE'
12618 export_dynamic_flag_spec='${wl}-bexpall'
12619 # It seems that -bexpall does not export symbols beginning with
12620 # underscore (_), so it is better to generate a list of symbols to export.
12621 always_export_symbols=yes
12622 if test "$aix_use_runtimelinking" = yes; then
12623 # Warning - without using the other runtime loading flags (-brtl),
12624 # -berok will link without error, but may produce a broken library.
12625 allow_undefined_flag='-berok'
12626 # Determine the default libpath from the value encoded in an
12627 # empty executable.
12628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12629 /* end confdefs.h. */
12639 if ac_fn_c_try_link "$LINENO"; then :
12641 lt_aix_libpath_sed='
12642 /Import File Strings/,/^$/ {
12648 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12649 # Check for a 64-bit object if we didn't find anything.
12650 if test -z "$aix_libpath"; then
12651 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12654 rm -f core conftest.err conftest.$ac_objext \
12655 conftest$ac_exeext conftest.$ac_ext
12656 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12658 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12659 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12661 if test "$host_cpu" = ia64; then
12662 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12663 allow_undefined_flag="-z nodefs"
12664 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"
12666 # Determine the default libpath from the value encoded in an
12667 # empty executable.
12668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12669 /* end confdefs.h. */
12679 if ac_fn_c_try_link "$LINENO"; then :
12681 lt_aix_libpath_sed='
12682 /Import File Strings/,/^$/ {
12688 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12689 # Check for a 64-bit object if we didn't find anything.
12690 if test -z "$aix_libpath"; then
12691 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
12694 rm -f core conftest.err conftest.$ac_objext \
12695 conftest$ac_exeext conftest.$ac_ext
12696 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12698 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12699 # Warning - without using the other run time loading flags,
12700 # -berok will link without error, but may produce a broken library.
12701 no_undefined_flag=' ${wl}-bernotok'
12702 allow_undefined_flag=' ${wl}-berok'
12703 # Exported symbols can be pulled into shared objects from archives
12704 whole_archive_flag_spec='$convenience'
12705 archive_cmds_need_lc=yes
12706 # This is similar to how AIX traditionally builds its shared libraries.
12707 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'
12715 # see comment about AmigaOS4 .so support
12716 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12717 archive_expsym_cmds=''
12720 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)'
12721 hardcode_libdir_flag_spec='-L$libdir'
12722 hardcode_minus_L=yes
12728 export_dynamic_flag_spec=-rdynamic
12731 cygwin* | mingw* | pw32* | cegcc*)
12732 # When not using gcc, we currently assume that we are using
12733 # Microsoft Visual C++.
12734 # hardcode_libdir_flag_spec is actually meaningless, as there is
12735 # no search path for DLLs.
12736 hardcode_libdir_flag_spec=' '
12737 allow_undefined_flag=unsupported
12738 # Tell ltmain to make .lib files, not .a files.
12740 # Tell ltmain to make .dll files, not .so files.
12742 # FIXME: Setting linknames here is a bad hack.
12743 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
12744 # The linker will automatically build a .lib file if we build a DLL.
12745 old_archive_from_new_cmds='true'
12746 # FIXME: Should let the user specify the lib program.
12747 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
12748 fix_srcfile_path='`cygpath -w "$srcfile"`'
12749 enable_shared_with_static_runtimes=yes
12752 darwin* | rhapsody*)
12755 archive_cmds_need_lc=no
12757 hardcode_automatic=yes
12758 hardcode_shlibpath_var=unsupported
12759 whole_archive_flag_spec=''
12760 link_all_deplibs=yes
12761 allow_undefined_flag="$_lt_dar_allow_undefined"
12762 case $cc_basename in
12763 ifort*) _lt_dar_can_shared=yes ;;
12764 *) _lt_dar_can_shared=$GCC ;;
12766 if test "$_lt_dar_can_shared" = "yes"; then
12767 output_verbose_link_cmd=echo
12768 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
12769 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
12770 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}"
12771 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}"
12780 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12781 hardcode_libdir_flag_spec='-L$libdir'
12782 hardcode_shlibpath_var=no
12789 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12790 # support. Future versions do this automatically, but an explicit c++rt0.o
12791 # does not break anything, and helps significantly (at the cost of a little
12794 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12795 hardcode_libdir_flag_spec='-R$libdir'
12796 hardcode_direct=yes
12797 hardcode_shlibpath_var=no
12800 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12802 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12803 hardcode_direct=yes
12804 hardcode_minus_L=yes
12805 hardcode_shlibpath_var=no
12808 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12809 freebsd* | dragonfly*)
12810 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12811 hardcode_libdir_flag_spec='-R$libdir'
12812 hardcode_direct=yes
12813 hardcode_shlibpath_var=no
12817 if test "$GCC" = yes; then
12818 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'
12820 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'
12822 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12823 hardcode_libdir_separator=:
12824 hardcode_direct=yes
12826 # hardcode_minus_L: Not really in the search PATH,
12827 # but as the default location of the library.
12828 hardcode_minus_L=yes
12829 export_dynamic_flag_spec='${wl}-E'
12833 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12834 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12836 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12838 if test "$with_gnu_ld" = no; then
12839 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12840 hardcode_libdir_flag_spec_ld='+b $libdir'
12841 hardcode_libdir_separator=:
12842 hardcode_direct=yes
12843 hardcode_direct_absolute=yes
12844 export_dynamic_flag_spec='${wl}-E'
12845 # hardcode_minus_L: Not really in the search PATH,
12846 # but as the default location of the library.
12847 hardcode_minus_L=yes
12852 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12855 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12858 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12861 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12867 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12870 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
12873 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12877 if test "$with_gnu_ld" = no; then
12878 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12879 hardcode_libdir_separator=:
12884 hardcode_shlibpath_var=no
12887 hardcode_direct=yes
12888 hardcode_direct_absolute=yes
12889 export_dynamic_flag_spec='${wl}-E'
12891 # hardcode_minus_L: Not really in the search PATH,
12892 # but as the default location of the library.
12893 hardcode_minus_L=yes
12899 irix5* | irix6* | nonstopux*)
12900 if test "$GCC" = yes; then
12901 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12902 # Try to use the -exported_symbol ld option, if it does not
12903 # work, assume that -exports_file does not work either and
12904 # implicitly export all symbols.
12905 save_LDFLAGS="$LDFLAGS"
12906 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
12907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12908 /* end confdefs.h. */
12911 if ac_fn_c_try_link "$LINENO"; then :
12912 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
12915 rm -f core conftest.err conftest.$ac_objext \
12916 conftest$ac_exeext conftest.$ac_ext
12917 LDFLAGS="$save_LDFLAGS"
12919 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12920 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
12922 archive_cmds_need_lc='no'
12923 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12924 hardcode_libdir_separator=:
12926 link_all_deplibs=yes
12929 netbsd* | netbsdelf*-gnu)
12930 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
12931 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12933 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12935 hardcode_libdir_flag_spec='-R$libdir'
12936 hardcode_direct=yes
12937 hardcode_shlibpath_var=no
12941 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12942 hardcode_direct=yes
12943 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12944 hardcode_libdir_separator=:
12945 hardcode_shlibpath_var=no
12952 if test -f /usr/libexec/ld.so; then
12953 hardcode_direct=yes
12954 hardcode_shlibpath_var=no
12955 hardcode_direct_absolute=yes
12956 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12957 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12958 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
12959 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12960 export_dynamic_flag_spec='${wl}-E'
12963 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12964 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12965 hardcode_libdir_flag_spec='-R$libdir'
12968 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12969 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12979 hardcode_libdir_flag_spec='-L$libdir'
12980 hardcode_minus_L=yes
12981 allow_undefined_flag=unsupported
12982 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'
12983 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12987 if test "$GCC" = yes; then
12988 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12989 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
12991 allow_undefined_flag=' -expect_unresolved \*'
12992 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
12994 archive_cmds_need_lc='no'
12995 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12996 hardcode_libdir_separator=:
12999 osf4* | osf5*) # as osf3* with the addition of -msym flag
13000 if test "$GCC" = yes; then
13001 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
13002 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13003 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
13005 allow_undefined_flag=' -expect_unresolved \*'
13006 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
13007 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~
13008 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
13010 # Both c and cxx compiler support -rpath directly
13011 hardcode_libdir_flag_spec='-rpath $libdir'
13013 archive_cmds_need_lc='no'
13014 hardcode_libdir_separator=:
13018 no_undefined_flag=' -z defs'
13019 if test "$GCC" = yes; then
13021 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13022 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13023 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13025 case `$CC -V 2>&1` in
13028 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13029 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13030 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
13034 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
13035 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
13036 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
13040 hardcode_libdir_flag_spec='-R$libdir'
13041 hardcode_shlibpath_var=no
13043 solaris2.[0-5] | solaris2.[0-5].*) ;;
13045 # The compiler driver will combine and reorder linker options,
13046 # but understands `-z linker_flag'. GCC discards it without `$wl',
13047 # but is careful enough not to reorder.
13048 # Supported since Solaris 2.6 (maybe 2.5.1?)
13049 if test "$GCC" = yes; then
13050 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13052 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
13056 link_all_deplibs=yes
13060 if test "x$host_vendor" = xsequent; then
13061 # Use $CC to link under sequent, because it throws in some extra .o
13062 # files that make .init and .fini sections work.
13063 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13065 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13067 hardcode_libdir_flag_spec='-L$libdir'
13068 hardcode_direct=yes
13069 hardcode_minus_L=yes
13070 hardcode_shlibpath_var=no
13074 case $host_vendor in
13076 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13077 hardcode_direct=yes # is this really true???
13080 ## LD is ld it makes a PLAMLIB
13081 ## CC just makes a GrossModule.
13082 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13083 reload_cmds='$CC -r -o $output$reload_objs'
13087 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13088 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
13091 runpath_var='LD_RUN_PATH'
13092 hardcode_shlibpath_var=no
13096 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13097 hardcode_shlibpath_var=no
13098 export_dynamic_flag_spec='-Bexport'
13102 if test -d /usr/nec; then
13103 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13104 hardcode_shlibpath_var=no
13105 runpath_var=LD_RUN_PATH
13106 hardcode_runpath_var=yes
13111 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
13112 no_undefined_flag='${wl}-z,text'
13113 archive_cmds_need_lc=no
13114 hardcode_shlibpath_var=no
13115 runpath_var='LD_RUN_PATH'
13117 if test "$GCC" = yes; then
13118 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13119 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13121 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13122 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13126 sysv5* | sco3.2v5* | sco5v6*)
13127 # Note: We can NOT use -z defs as we might desire, because we do not
13128 # link with -lc, and that would cause any symbols used from libc to
13129 # always be unresolved, which means just about no library would
13130 # ever link correctly. If we're not using GNU ld we use -z text
13131 # though, which does catch some bad symbols but isn't as heavy-handed
13133 no_undefined_flag='${wl}-z,text'
13134 allow_undefined_flag='${wl}-z,nodefs'
13135 archive_cmds_need_lc=no
13136 hardcode_shlibpath_var=no
13137 hardcode_libdir_flag_spec='${wl}-R,$libdir'
13138 hardcode_libdir_separator=':'
13139 link_all_deplibs=yes
13140 export_dynamic_flag_spec='${wl}-Bexport'
13141 runpath_var='LD_RUN_PATH'
13143 if test "$GCC" = yes; then
13144 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13145 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13147 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13148 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13153 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13154 hardcode_libdir_flag_spec='-L$libdir'
13155 hardcode_shlibpath_var=no
13163 if test x$host_vendor = xsni; then
13165 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13166 export_dynamic_flag_spec='${wl}-Blargedynsym'
13172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
13173 $as_echo "$ld_shlibs" >&6; }
13174 test "$ld_shlibs" = no && can_build_shared=no
13176 with_gnu_ld=$with_gnu_ld
13193 # Do we need to explicitly link libc?
13195 case "x$archive_cmds_need_lc" in
13197 # Assume -lc should be added
13198 archive_cmds_need_lc=yes
13200 if test "$enable_shared" = yes && test "$GCC" = yes; then
13201 case $archive_cmds in
13203 # FIXME: we may have to deal with multi-command sequences.
13206 # Test whether the compiler implicitly links with -lc since on some
13207 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13208 # to ld, don't add -lc before -lgcc.
13209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
13210 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
13212 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
13214 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13215 (eval $ac_compile) 2>&5
13217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13218 test $ac_status = 0; } 2>conftest.err; then
13221 libobjs=conftest.$ac_objext
13223 wl=$lt_prog_compiler_wl
13224 pic_flag=$lt_prog_compiler_pic
13230 lt_save_allow_undefined_flag=$allow_undefined_flag
13231 allow_undefined_flag=
13232 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
13233 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
13235 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13236 test $ac_status = 0; }
13238 archive_cmds_need_lc=no
13240 archive_cmds_need_lc=yes
13242 allow_undefined_flag=$lt_save_allow_undefined_flag
13244 cat conftest.err 1>&5
13247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
13248 $as_echo "$archive_cmds_need_lc" >&6; }
13411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
13412 $as_echo_n "checking dynamic linker characteristics... " >&6; }
13414 if test "$GCC" = yes; then
13416 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
13417 *) lt_awk_arg="/^libraries:/" ;;
13419 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13420 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
13421 # if the path contains ";" then we assume it to be the separator
13422 # otherwise default to the standard path separator (i.e. ":") - it is
13423 # assumed that no part of a normal pathname contains ";" but that should
13424 # okay in the real world where ";" in dirpaths is itself problematic.
13425 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
13427 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13429 # Ok, now we have the path, separated by spaces, we can step through it
13430 # and add multilib dir if necessary.
13431 lt_tmp_lt_search_path_spec=
13432 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13433 for lt_sys_path in $lt_search_path_spec; do
13434 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
13435 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
13437 test -d "$lt_sys_path" && \
13438 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
13441 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
13442 BEGIN {RS=" "; FS="/|\n";} {
13445 for (lt_i = NF; lt_i > 0; lt_i--) {
13446 if ($lt_i != "" && $lt_i != ".") {
13447 if ($lt_i == "..") {
13450 if (lt_count == 0) {
13451 lt_foo="/" $lt_i lt_foo;
13458 if (lt_foo != "") { lt_freq[lt_foo]++; }
13459 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13461 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
13463 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13465 library_names_spec=
13466 libname_spec='lib$name'
13470 postuninstall_cmds=
13474 shlibpath_overrides_runpath=unknown
13476 dynamic_linker="$host_os ld.so"
13477 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13478 need_lib_prefix=unknown
13479 hardcode_into_libs=no
13481 # when you set need_version to no, make sure it does not cause -set_version
13482 # flags to be left without arguments
13483 need_version=unknown
13488 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13489 shlibpath_var=LIBPATH
13491 # AIX 3 has no versioning support, so we append a major version to the name.
13492 soname_spec='${libname}${release}${shared_ext}$major'
13499 hardcode_into_libs=yes
13500 if test "$host_cpu" = ia64; then
13501 # AIX 5 supports IA64
13502 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13503 shlibpath_var=LD_LIBRARY_PATH
13505 # With GCC up to 2.95.x, collect2 would create an import file
13506 # for dependence libraries. The import file would start with
13507 # the line `#! .'. This would cause the generated library to
13508 # depend on `.', always an invalid library. This was fixed in
13509 # development snapshots of GCC prior to 3.0.
13511 aix4 | aix4.[01] | aix4.[01].*)
13512 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13514 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
13517 can_build_shared=no
13521 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13522 # soname into executable. Probably we can add versioning support to
13523 # collect2, so additional links can be useful in future.
13524 if test "$aix_use_runtimelinking" = yes; then
13525 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13526 # instead of lib<name>.a to let people know that these are not
13527 # typical AIX shared libraries.
13528 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13530 # We preserve .a as extension for shared libraries through AIX4.2
13531 # and later when we are not doing run time linking.
13532 library_names_spec='${libname}${release}.a $libname.a'
13533 soname_spec='${libname}${release}${shared_ext}$major'
13535 shlibpath_var=LIBPATH
13542 # Since July 2007 AmigaOS4 officially supports .so libraries.
13543 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
13544 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13547 library_names_spec='$libname.ixlibrary $libname.a'
13548 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13549 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
13555 library_names_spec='${libname}${shared_ext}'
13556 dynamic_linker="$host_os ld.so"
13557 shlibpath_var=LIBRARY_PATH
13563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13564 soname_spec='${libname}${release}${shared_ext}$major'
13565 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13566 shlibpath_var=LD_LIBRARY_PATH
13567 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13568 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13569 # the default ld.so.conf also contains /usr/contrib/lib and
13570 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13571 # libtool to hard-code these into programs
13574 cygwin* | mingw* | pw32* | cegcc*)
13575 version_type=windows
13580 case $GCC,$host_os in
13581 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
13582 library_names_spec='$libname.dll.a'
13583 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13584 postinstall_cmds='base_file=`basename \${file}`~
13585 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
13586 dldir=$destdir/`dirname \$dlpath`~
13587 test -d \$dldir || mkdir -p \$dldir~
13588 $install_prog $dir/$dlname \$dldir/$dlname~
13589 chmod a+x \$dldir/$dlname~
13590 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
13591 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
13593 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13594 dlpath=$dir/\$dldll~
13596 shlibpath_overrides_runpath=yes
13600 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13601 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13602 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13605 # MinGW DLLs use traditional 'lib' prefix
13606 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13607 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13608 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
13609 # It is most probably a Windows format PATH printed by
13610 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13611 # path with ; separators, and with drive letters. We can handle the
13612 # drive letters (cygwin fileutils understands them), so leave them,
13613 # especially as we might pass files found there to a mingw objdump,
13614 # which wouldn't understand a cygwinified path. Ahh.
13615 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13617 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13621 # pw32 DLLs use 'pw' prefix rather than 'lib'
13622 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13628 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13631 dynamic_linker='Win32 ld.exe'
13632 # FIXME: first we should search . and the directory the executable is in
13636 darwin* | rhapsody*)
13637 dynamic_linker="$host_os dyld"
13638 version_type=darwin
13641 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13642 soname_spec='${libname}${release}${major}$shared_ext'
13643 shlibpath_overrides_runpath=yes
13644 shlibpath_var=DYLD_LIBRARY_PATH
13645 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
13647 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
13648 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13656 soname_spec='${libname}${release}${shared_ext}$major'
13657 shlibpath_var=LD_LIBRARY_PATH
13664 freebsd* | dragonfly*)
13665 # DragonFly does not have aout. When/if they implement a new
13666 # versioning mechanism, adjust this.
13667 if test -x /usr/bin/objformat; then
13668 objformat=`/usr/bin/objformat`
13671 freebsd[123]*) objformat=aout ;;
13672 *) objformat=elf ;;
13675 version_type=freebsd-$objformat
13676 case $version_type in
13678 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13683 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13687 shlibpath_var=LD_LIBRARY_PATH
13690 shlibpath_overrides_runpath=yes
13692 freebsd3.[01]* | freebsdelf3.[01]*)
13693 shlibpath_overrides_runpath=yes
13694 hardcode_into_libs=yes
13696 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
13697 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
13698 shlibpath_overrides_runpath=no
13699 hardcode_into_libs=yes
13701 *) # from 4.6 on, and DragonFly
13702 shlibpath_overrides_runpath=yes
13703 hardcode_into_libs=yes
13712 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13713 soname_spec='${libname}${release}${shared_ext}$major'
13714 shlibpath_var=LD_LIBRARY_PATH
13715 hardcode_into_libs=yes
13718 hpux9* | hpux10* | hpux11*)
13719 # Give a soname corresponding to the major version so that dld.sl refuses to
13720 # link against other versions.
13727 hardcode_into_libs=yes
13728 dynamic_linker="$host_os dld.so"
13729 shlibpath_var=LD_LIBRARY_PATH
13730 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13731 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13732 soname_spec='${libname}${release}${shared_ext}$major'
13733 if test "X$HPUX_IA64_MODE" = X32; then
13734 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13736 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13738 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13742 hardcode_into_libs=yes
13743 dynamic_linker="$host_os dld.sl"
13744 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13745 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13747 soname_spec='${libname}${release}${shared_ext}$major'
13748 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13749 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13753 dynamic_linker="$host_os dld.sl"
13754 shlibpath_var=SHLIB_PATH
13755 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13757 soname_spec='${libname}${release}${shared_ext}$major'
13760 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13761 postinstall_cmds='chmod 555 $lib'
13768 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13769 soname_spec='${libname}${release}${shared_ext}$major'
13770 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
13771 shlibpath_var=LD_LIBRARY_PATH
13772 shlibpath_overrides_runpath=no
13773 hardcode_into_libs=yes
13776 irix5* | irix6* | nonstopux*)
13778 nonstopux*) version_type=nonstopux ;;
13780 if test "$lt_cv_prog_gnu_ld" = yes; then
13788 soname_spec='${libname}${release}${shared_ext}$major'
13789 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13791 irix5* | nonstopux*)
13792 libsuff= shlibsuff=
13795 case $LD in # libtool.m4 will add one of these switches to LD
13796 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13797 libsuff= shlibsuff= libmagic=32-bit;;
13798 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13799 libsuff=32 shlibsuff=N32 libmagic=N32;;
13800 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13801 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13802 *) libsuff= shlibsuff= libmagic=never-match;;
13806 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13807 shlibpath_overrides_runpath=no
13808 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13809 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13810 hardcode_into_libs=yes
13813 # No shared lib support for Linux oldld, aout, or coff.
13814 linux*oldld* | linux*aout* | linux*coff*)
13818 # This must be Linux ELF.
13819 linux* | k*bsd*-gnu)
13823 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13824 soname_spec='${libname}${release}${shared_ext}$major'
13825 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13826 shlibpath_var=LD_LIBRARY_PATH
13827 shlibpath_overrides_runpath=no
13828 # Some binutils ld are patched to set DT_RUNPATH
13829 save_LDFLAGS=$LDFLAGS
13830 save_libdir=$libdir
13831 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
13832 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
13833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13834 /* end confdefs.h. */
13844 if ac_fn_c_try_link "$LINENO"; then :
13845 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
13846 shlibpath_overrides_runpath=yes
13849 rm -f core conftest.err conftest.$ac_objext \
13850 conftest$ac_exeext conftest.$ac_ext
13851 LDFLAGS=$save_LDFLAGS
13852 libdir=$save_libdir
13854 # This implies no fast_install, which is unacceptable.
13855 # Some rework will be needed to allow for fast_install
13856 # before this can be enabled.
13857 hardcode_into_libs=yes
13859 # Append ld.so.conf contents to the search path
13860 if test -f /etc/ld.so.conf; then
13861 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;/^$/d' | tr '\n' ' '`
13862 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13865 # We used to test for /lib/ld.so.1 and disable shared libraries on
13866 # powerpc, because MkLinux only supported shared libraries with the
13867 # GNU dynamic linker. Since this was broken with cross compilers,
13868 # most powerpc-linux boxes support dynamic linking these days and
13869 # people can always --disable-shared, the test was removed, and we
13870 # assume the GNU/Linux dynamic linker is in use.
13871 dynamic_linker='GNU/Linux ld.so'
13878 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13879 soname_spec='${libname}${release}${shared_ext}$major'
13880 shlibpath_var=LD_LIBRARY_PATH
13881 shlibpath_overrides_runpath=no
13882 hardcode_into_libs=yes
13883 dynamic_linker='NetBSD ld.elf_so'
13890 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
13891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13892 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13893 dynamic_linker='NetBSD (a.out) ld.so'
13895 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13896 soname_spec='${libname}${release}${shared_ext}$major'
13897 dynamic_linker='NetBSD ld.elf_so'
13899 shlibpath_var=LD_LIBRARY_PATH
13900 shlibpath_overrides_runpath=yes
13901 hardcode_into_libs=yes
13906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13907 shlibpath_var=LD_LIBRARY_PATH
13908 shlibpath_overrides_runpath=yes
13915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13916 soname_spec='${libname}${release}${shared_ext}$major'
13917 shlibpath_var=LD_LIBRARY_PATH
13918 shlibpath_overrides_runpath=no
13919 hardcode_into_libs=yes
13920 dynamic_linker='ldqnx.so'
13925 sys_lib_dlsearch_path_spec="/usr/lib"
13927 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
13929 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
13930 *) need_version=no ;;
13932 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13933 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13934 shlibpath_var=LD_LIBRARY_PATH
13935 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13937 openbsd2.[89] | openbsd2.[89].*)
13938 shlibpath_overrides_runpath=no
13941 shlibpath_overrides_runpath=yes
13945 shlibpath_overrides_runpath=yes
13950 libname_spec='$name'
13953 library_names_spec='$libname${shared_ext} $libname.a'
13954 dynamic_linker='OS/2 ld.exe'
13955 shlibpath_var=LIBPATH
13958 osf3* | osf4* | osf5*)
13962 soname_spec='${libname}${release}${shared_ext}$major'
13963 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13964 shlibpath_var=LD_LIBRARY_PATH
13965 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13966 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13977 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13978 soname_spec='${libname}${release}${shared_ext}$major'
13979 shlibpath_var=LD_LIBRARY_PATH
13980 shlibpath_overrides_runpath=yes
13981 hardcode_into_libs=yes
13982 # ldd complains unless libraries are executable
13983 postinstall_cmds='chmod +x $lib'
13988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13989 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13990 shlibpath_var=LD_LIBRARY_PATH
13991 shlibpath_overrides_runpath=yes
13992 if test "$with_gnu_ld" = yes; then
14000 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14001 soname_spec='${libname}${release}${shared_ext}$major'
14002 shlibpath_var=LD_LIBRARY_PATH
14003 case $host_vendor in
14005 shlibpath_overrides_runpath=no
14007 runpath_var=LD_RUN_PATH
14015 shlibpath_overrides_runpath=no
14016 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
14022 if test -d /usr/nec ;then
14024 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14025 soname_spec='$libname${shared_ext}.$major'
14026 shlibpath_var=LD_LIBRARY_PATH
14030 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
14031 version_type=freebsd-elf
14034 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14035 soname_spec='${libname}${release}${shared_ext}$major'
14036 shlibpath_var=LD_LIBRARY_PATH
14037 shlibpath_overrides_runpath=yes
14038 hardcode_into_libs=yes
14039 if test "$with_gnu_ld" = yes; then
14040 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14042 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
14045 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
14049 sys_lib_dlsearch_path_spec='/usr/lib'
14053 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
14057 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14058 shlibpath_var=LD_LIBRARY_PATH
14059 shlibpath_overrides_runpath=no
14060 hardcode_into_libs=yes
14065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14066 soname_spec='${libname}${release}${shared_ext}$major'
14067 shlibpath_var=LD_LIBRARY_PATH
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
14075 $as_echo "$dynamic_linker" >&6; }
14076 test "$dynamic_linker" = no && can_build_shared=no
14078 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
14079 if test "$GCC" = yes; then
14080 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14083 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
14084 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
14086 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
14087 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
14176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
14177 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
14179 if test -n "$hardcode_libdir_flag_spec" ||
14180 test -n "$runpath_var" ||
14181 test "X$hardcode_automatic" = "Xyes" ; then
14183 # We can hardcode non-existent directories.
14184 if test "$hardcode_direct" != no &&
14185 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14186 # have to relink, otherwise we might link with an installed library
14187 # when we should be linking with a yet-to-be-installed one
14188 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
14189 test "$hardcode_minus_L" != no; then
14190 # Linking always hardcodes the temporary library directory.
14191 hardcode_action=relink
14193 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14194 hardcode_action=immediate
14197 # We cannot hardcode anything, or else we can only hardcode existing
14199 hardcode_action=unsupported
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
14202 $as_echo "$hardcode_action" >&6; }
14204 if test "$hardcode_action" = relink ||
14205 test "$inherit_rpath" = yes; then
14206 # Fast installation is not supported
14207 enable_fast_install=no
14208 elif test "$shlibpath_overrides_runpath" = yes ||
14209 test "$enable_shared" = no; then
14210 # Fast installation is not necessary
14211 enable_fast_install=needless
14219 if test "x$enable_dlopen" != xyes; then
14220 enable_dlopen=unknown
14221 enable_dlopen_self=unknown
14222 enable_dlopen_self_static=unknown
14229 lt_cv_dlopen="load_add_on"
14231 lt_cv_dlopen_self=yes
14234 mingw* | pw32* | cegcc*)
14235 lt_cv_dlopen="LoadLibrary"
14240 lt_cv_dlopen="dlopen"
14245 # if libdl is installed we need to link against it
14246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14247 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14248 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
14249 $as_echo_n "(cached) " >&6
14251 ac_check_lib_save_LIBS=$LIBS
14253 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14254 /* end confdefs.h. */
14256 /* Override any GCC internal prototype to avoid an error.
14257 Use char because int might match the return type of a GCC
14258 builtin and then its argument prototype would still apply. */
14271 if ac_fn_c_try_link "$LINENO"; then :
14272 ac_cv_lib_dl_dlopen=yes
14274 ac_cv_lib_dl_dlopen=no
14276 rm -f core conftest.err conftest.$ac_objext \
14277 conftest$ac_exeext conftest.$ac_ext
14278 LIBS=$ac_check_lib_save_LIBS
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14281 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14282 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
14283 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14286 lt_cv_dlopen="dyld"
14288 lt_cv_dlopen_self=yes
14295 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
14296 if test "x$ac_cv_func_shl_load" = x""yes; then :
14297 lt_cv_dlopen="shl_load"
14299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
14300 $as_echo_n "checking for shl_load in -ldld... " >&6; }
14301 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
14302 $as_echo_n "(cached) " >&6
14304 ac_check_lib_save_LIBS=$LIBS
14306 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14307 /* end confdefs.h. */
14309 /* Override any GCC internal prototype to avoid an error.
14310 Use char because int might match the return type of a GCC
14311 builtin and then its argument prototype would still apply. */
14319 return shl_load ();
14324 if ac_fn_c_try_link "$LINENO"; then :
14325 ac_cv_lib_dld_shl_load=yes
14327 ac_cv_lib_dld_shl_load=no
14329 rm -f core conftest.err conftest.$ac_objext \
14330 conftest$ac_exeext conftest.$ac_ext
14331 LIBS=$ac_check_lib_save_LIBS
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
14334 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
14335 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
14336 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
14338 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
14339 if test "x$ac_cv_func_dlopen" = x""yes; then :
14340 lt_cv_dlopen="dlopen"
14342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
14343 $as_echo_n "checking for dlopen in -ldl... " >&6; }
14344 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
14345 $as_echo_n "(cached) " >&6
14347 ac_check_lib_save_LIBS=$LIBS
14349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14350 /* end confdefs.h. */
14352 /* Override any GCC internal prototype to avoid an error.
14353 Use char because int might match the return type of a GCC
14354 builtin and then its argument prototype would still apply. */
14367 if ac_fn_c_try_link "$LINENO"; then :
14368 ac_cv_lib_dl_dlopen=yes
14370 ac_cv_lib_dl_dlopen=no
14372 rm -f core conftest.err conftest.$ac_objext \
14373 conftest$ac_exeext conftest.$ac_ext
14374 LIBS=$ac_check_lib_save_LIBS
14376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
14377 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
14378 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
14379 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
14382 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
14383 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
14384 $as_echo_n "(cached) " >&6
14386 ac_check_lib_save_LIBS=$LIBS
14387 LIBS="-lsvld $LIBS"
14388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14389 /* end confdefs.h. */
14391 /* Override any GCC internal prototype to avoid an error.
14392 Use char because int might match the return type of a GCC
14393 builtin and then its argument prototype would still apply. */
14406 if ac_fn_c_try_link "$LINENO"; then :
14407 ac_cv_lib_svld_dlopen=yes
14409 ac_cv_lib_svld_dlopen=no
14411 rm -f core conftest.err conftest.$ac_objext \
14412 conftest$ac_exeext conftest.$ac_ext
14413 LIBS=$ac_check_lib_save_LIBS
14415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
14416 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
14417 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
14418 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
14421 $as_echo_n "checking for dld_link in -ldld... " >&6; }
14422 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
14423 $as_echo_n "(cached) " >&6
14425 ac_check_lib_save_LIBS=$LIBS
14427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14428 /* end confdefs.h. */
14430 /* Override any GCC internal prototype to avoid an error.
14431 Use char because int might match the return type of a GCC
14432 builtin and then its argument prototype would still apply. */
14440 return dld_link ();
14445 if ac_fn_c_try_link "$LINENO"; then :
14446 ac_cv_lib_dld_dld_link=yes
14448 ac_cv_lib_dld_dld_link=no
14450 rm -f core conftest.err conftest.$ac_objext \
14451 conftest$ac_exeext conftest.$ac_ext
14452 LIBS=$ac_check_lib_save_LIBS
14454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
14455 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
14456 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
14457 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
14478 if test "x$lt_cv_dlopen" != xno; then
14484 case $lt_cv_dlopen in
14486 save_CPPFLAGS="$CPPFLAGS"
14487 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14489 save_LDFLAGS="$LDFLAGS"
14490 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14493 LIBS="$lt_cv_dlopen_libs $LIBS"
14495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
14496 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
14497 if test "${lt_cv_dlopen_self+set}" = set; then :
14498 $as_echo_n "(cached) " >&6
14500 if test "$cross_compiling" = yes; then :
14501 lt_cv_dlopen_self=cross
14503 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14504 lt_status=$lt_dlunknown
14505 cat > conftest.$ac_ext <<_LT_EOF
14506 #line 14506 "configure"
14507 #include "confdefs.h"
14516 # define LT_DLGLOBAL RTLD_GLOBAL
14519 # define LT_DLGLOBAL DL_GLOBAL
14521 # define LT_DLGLOBAL 0
14525 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14526 find out it does not work in some platform. */
14527 #ifndef LT_DLLAZY_OR_NOW
14529 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14532 # define LT_DLLAZY_OR_NOW DL_LAZY
14535 # define LT_DLLAZY_OR_NOW RTLD_NOW
14538 # define LT_DLLAZY_OR_NOW DL_NOW
14540 # define LT_DLLAZY_OR_NOW 0
14547 void fnord() { int i=42;}
14550 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14551 int status = $lt_dlunknown;
14555 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14556 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14557 /* dlclose (self); */
14565 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14566 (eval $ac_link) 2>&5
14568 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14569 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14570 (./conftest; exit; ) >&5 2>/dev/null
14572 case x$lt_status in
14573 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14574 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14575 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
14578 # compilation failed
14579 lt_cv_dlopen_self=no
14586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
14587 $as_echo "$lt_cv_dlopen_self" >&6; }
14589 if test "x$lt_cv_dlopen_self" = xyes; then
14590 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
14591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
14592 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
14593 if test "${lt_cv_dlopen_self_static+set}" = set; then :
14594 $as_echo_n "(cached) " >&6
14596 if test "$cross_compiling" = yes; then :
14597 lt_cv_dlopen_self_static=cross
14599 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14600 lt_status=$lt_dlunknown
14601 cat > conftest.$ac_ext <<_LT_EOF
14602 #line 14602 "configure"
14603 #include "confdefs.h"
14612 # define LT_DLGLOBAL RTLD_GLOBAL
14615 # define LT_DLGLOBAL DL_GLOBAL
14617 # define LT_DLGLOBAL 0
14621 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14622 find out it does not work in some platform. */
14623 #ifndef LT_DLLAZY_OR_NOW
14625 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14628 # define LT_DLLAZY_OR_NOW DL_LAZY
14631 # define LT_DLLAZY_OR_NOW RTLD_NOW
14634 # define LT_DLLAZY_OR_NOW DL_NOW
14636 # define LT_DLLAZY_OR_NOW 0
14643 void fnord() { int i=42;}
14646 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14647 int status = $lt_dlunknown;
14651 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14652 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14653 /* dlclose (self); */
14661 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
14662 (eval $ac_link) 2>&5
14664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14665 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
14666 (./conftest; exit; ) >&5 2>/dev/null
14668 case x$lt_status in
14669 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14670 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14671 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
14674 # compilation failed
14675 lt_cv_dlopen_self_static=no
14682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
14683 $as_echo "$lt_cv_dlopen_self_static" >&6; }
14686 CPPFLAGS="$save_CPPFLAGS"
14687 LDFLAGS="$save_LDFLAGS"
14692 case $lt_cv_dlopen_self in
14693 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14694 *) enable_dlopen_self=unknown ;;
14697 case $lt_cv_dlopen_self_static in
14698 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14699 *) enable_dlopen_self_static=unknown ;;
14721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
14722 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
14723 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
14724 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
14725 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
14726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14727 $as_echo "yes" >&6; }
14729 # FIXME - insert some real tests, host_os isn't really good enough
14732 if test -n "$STRIP" ; then
14733 striplib="$STRIP -x"
14734 old_striplib="$STRIP -S"
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14736 $as_echo "yes" >&6; }
14738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14739 $as_echo "no" >&6; }
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14744 $as_echo "no" >&6; }
14760 # Report which library types will actually be built
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
14762 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
14764 $as_echo "$can_build_shared" >&6; }
14766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
14767 $as_echo_n "checking whether to build shared libraries... " >&6; }
14768 test "$can_build_shared" = "no" && enable_shared=no
14770 # On AIX, shared libraries and static libraries use the same namespace, and
14771 # are all built from PIC.
14774 test "$enable_shared" = yes && enable_static=no
14775 if test -n "$RANLIB"; then
14776 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14777 postinstall_cmds='$RANLIB $lib'
14782 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14783 test "$enable_shared" = yes && enable_static=no
14787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
14788 $as_echo "$enable_shared" >&6; }
14790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
14791 $as_echo_n "checking whether to build static libraries... " >&6; }
14792 # Make sure either enable_shared or enable_static is yes.
14793 test "$enable_shared" = yes || enable_static=yes
14794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
14795 $as_echo "$enable_static" >&6; }
14802 ac_cpp='$CPP $CPPFLAGS'
14803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14811 ac_cpp='$CXXCPP $CPPFLAGS'
14812 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14813 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14814 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14816 archive_cmds_need_lc_CXX=no
14817 allow_undefined_flag_CXX=
14818 always_export_symbols_CXX=no
14819 archive_expsym_cmds_CXX=
14820 compiler_needs_object_CXX=no
14821 export_dynamic_flag_spec_CXX=
14822 hardcode_direct_CXX=no
14823 hardcode_direct_absolute_CXX=no
14824 hardcode_libdir_flag_spec_CXX=
14825 hardcode_libdir_flag_spec_ld_CXX=
14826 hardcode_libdir_separator_CXX=
14827 hardcode_minus_L_CXX=no
14828 hardcode_shlibpath_var_CXX=unsupported
14829 hardcode_automatic_CXX=no
14830 inherit_rpath_CXX=no
14832 module_expsym_cmds_CXX=
14833 link_all_deplibs_CXX=unknown
14834 old_archive_cmds_CXX=$old_archive_cmds
14835 no_undefined_flag_CXX=
14836 whole_archive_flag_spec_CXX=
14837 enable_shared_with_static_runtimes_CXX=no
14839 # Source file extension for C++ test sources.
14842 # Object file extension for compiled C++ test sources.
14846 # No sense in running all these tests if we already determined that
14847 # the CXX compiler isn't working. Some variables (like enable_shared)
14848 # are currently assumed to apply to all compilers on this platform,
14849 # and will be corrupted by setting them based on a non-working compiler.
14850 if test "$_lt_caught_CXX_error" != yes; then
14851 # Code to be used in simple compile tests
14852 lt_simple_compile_test_code="int some_variable = 0;"
14854 # Code to be used in simple link tests
14855 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
14857 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
14864 # If no C compiler was specified, use CC.
14867 # If no C compiler flags were specified, use CFLAGS.
14868 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
14870 # Allow CC to be a program name with arguments.
14874 # save warnings/boilerplate of simple test code
14875 ac_outfile=conftest.$ac_objext
14876 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
14877 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14878 _lt_compiler_boilerplate=`cat conftest.err`
14881 ac_outfile=conftest.$ac_objext
14882 echo "$lt_simple_link_test_code" >conftest.$ac_ext
14883 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
14884 _lt_linker_boilerplate=`cat conftest.err`
14888 # Allow CC to be a program name with arguments.
14893 lt_save_with_gnu_ld=$with_gnu_ld
14894 lt_save_path_LD=$lt_cv_path_LD
14895 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
14896 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
14898 $as_unset lt_cv_prog_gnu_ld
14900 if test -n "${lt_cv_path_LDCXX+set}"; then
14901 lt_cv_path_LD=$lt_cv_path_LDCXX
14903 $as_unset lt_cv_path_LD
14905 test -z "${LDCXX+set}" || LD=$LDCXX
14909 for cc_temp in $compiler""; do
14911 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14912 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
14917 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
14920 if test -n "$compiler"; then
14921 # We don't want -fno-exception when compiling C++ code, so set the
14922 # no_builtin_flag separately
14923 if test "$GXX" = yes; then
14924 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
14926 lt_prog_compiler_no_builtin_flag_CXX=
14929 if test "$GXX" = yes; then
14930 # Set up default GNU C++ configuration
14934 # Check whether --with-gnu-ld was given.
14935 if test "${with_gnu_ld+set}" = set; then :
14936 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
14942 if test "$GCC" = yes; then
14943 # Check if gcc -print-prog-name=ld gives a path.
14944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
14945 $as_echo_n "checking for ld used by $CC... " >&6; }
14948 # gcc leaves a trailing carriage return which upsets mingw
14949 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
14951 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
14954 # Accept absolute paths.
14956 re_direlt='/[^/][^/]*/\.\./'
14957 # Canonicalize the pathname of ld
14958 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
14959 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
14960 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
14962 test -z "$LD" && LD="$ac_prog"
14965 # If it fails, then pretend we aren't using GCC.
14969 # If it is relative, then search for the first ld in PATH.
14970 with_gnu_ld=unknown
14973 elif test "$with_gnu_ld" = yes; then
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
14975 $as_echo_n "checking for GNU ld... " >&6; }
14977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
14978 $as_echo_n "checking for non-GNU ld... " >&6; }
14980 if test "${lt_cv_path_LD+set}" = set; then :
14981 $as_echo_n "(cached) " >&6
14983 if test -z "$LD"; then
14984 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
14985 for ac_dir in $PATH; do
14987 test -z "$ac_dir" && ac_dir=.
14988 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
14989 lt_cv_path_LD="$ac_dir/$ac_prog"
14990 # Check to see if the program is GNU ld. I'd rather use --version,
14991 # but apparently some variants of GNU ld only accept -v.
14992 # Break only if it was the GNU/non-GNU ld that we prefer.
14993 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
14994 *GNU* | *'with BFD'*)
14995 test "$with_gnu_ld" != no && break
14998 test "$with_gnu_ld" != yes && break
15005 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15009 LD="$lt_cv_path_LD"
15010 if test -n "$LD"; then
15011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
15012 $as_echo "$LD" >&6; }
15014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15015 $as_echo "no" >&6; }
15017 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
15018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
15019 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
15020 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
15021 $as_echo_n "(cached) " >&6
15023 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15024 case `$LD -v 2>&1 </dev/null` in
15025 *GNU* | *'with BFD'*)
15026 lt_cv_prog_gnu_ld=yes
15029 lt_cv_prog_gnu_ld=no
15033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
15034 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
15035 with_gnu_ld=$lt_cv_prog_gnu_ld
15043 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15044 # archiving commands below assume that GNU ld is being used.
15045 if test "$with_gnu_ld" = yes; then
15046 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15047 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15049 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15050 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15052 # If archive_cmds runs LD, not CC, wlarc should be empty
15053 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15054 # investigate it a little bit more. (MM)
15057 # ancient GNU ld didn't support --whole-archive et. al.
15058 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
15059 $GREP 'no-whole-archive' > /dev/null; then
15060 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15062 whole_archive_flag_spec_CXX=
15068 # A generic and very simple default shared library creation
15069 # command for GNU C++ for the case where it uses the native
15070 # linker, instead of GNU ld. If possible, this setting should
15071 # overridden to take advantage of the native linker features on
15072 # the platform it is being used on.
15073 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15076 # Commands to make compiler produce verbose output that lists
15077 # what "hidden" libraries, object files and flags are used when
15078 # linking a shared library.
15079 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15087 # PORTME: fill in a description of your system's C++ link characteristics
15088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15089 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15093 # FIXME: insert proper C++ library support
15097 if test "$host_cpu" = ia64; then
15098 # On IA64, the linker does run time linking by default, so we don't
15099 # have to do anything special.
15100 aix_use_runtimelinking=no
15101 exp_sym_flag='-Bexport'
15104 aix_use_runtimelinking=no
15106 # Test if we are trying to use run time linking or normal
15107 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15108 # need to do runtime linking.
15109 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
15110 for ld_flag in $LDFLAGS; do
15113 aix_use_runtimelinking=yes
15121 exp_sym_flag='-bexport'
15122 no_entry_flag='-bnoentry'
15125 # When large executables or shared objects are built, AIX ld can
15126 # have problems creating the table of contents. If linking a library
15127 # or program results in "error TOC overflow" add -mminimal-toc to
15128 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15129 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15131 archive_cmds_CXX=''
15132 hardcode_direct_CXX=yes
15133 hardcode_direct_absolute_CXX=yes
15134 hardcode_libdir_separator_CXX=':'
15135 link_all_deplibs_CXX=yes
15136 file_list_spec_CXX='${wl}-f,'
15138 if test "$GXX" = yes; then
15139 case $host_os in aix4.[012]|aix4.[012].*)
15140 # We only want to do this on AIX 4.2 and lower, the check
15141 # below for broken collect2 doesn't work under 4.3+
15142 collect2name=`${CC} -print-prog-name=collect2`
15143 if test -f "$collect2name" &&
15144 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
15146 # We have reworked collect2
15149 # We have old collect2
15150 hardcode_direct_CXX=unsupported
15151 # It fails to find uninstalled libraries when the uninstalled
15152 # path is not listed in the libpath. Setting hardcode_minus_L
15153 # to unsupported forces relinking
15154 hardcode_minus_L_CXX=yes
15155 hardcode_libdir_flag_spec_CXX='-L$libdir'
15156 hardcode_libdir_separator_CXX=
15159 shared_flag='-shared'
15160 if test "$aix_use_runtimelinking" = yes; then
15161 shared_flag="$shared_flag "'${wl}-G'
15165 if test "$host_cpu" = ia64; then
15166 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15167 # chokes on -Wl,-G. The following line is correct:
15170 if test "$aix_use_runtimelinking" = yes; then
15171 shared_flag='${wl}-G'
15173 shared_flag='${wl}-bM:SRE'
15178 export_dynamic_flag_spec_CXX='${wl}-bexpall'
15179 # It seems that -bexpall does not export symbols beginning with
15180 # underscore (_), so it is better to generate a list of symbols to
15182 always_export_symbols_CXX=yes
15183 if test "$aix_use_runtimelinking" = yes; then
15184 # Warning - without using the other runtime loading flags (-brtl),
15185 # -berok will link without error, but may produce a broken library.
15186 allow_undefined_flag_CXX='-berok'
15187 # Determine the default libpath from the value encoded in an empty
15189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15190 /* end confdefs.h. */
15200 if ac_fn_cxx_try_link "$LINENO"; then :
15202 lt_aix_libpath_sed='
15203 /Import File Strings/,/^$/ {
15209 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15210 # Check for a 64-bit object if we didn't find anything.
15211 if test -z "$aix_libpath"; then
15212 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15215 rm -f core conftest.err conftest.$ac_objext \
15216 conftest$ac_exeext conftest.$ac_ext
15217 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15219 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15221 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15223 if test "$host_cpu" = ia64; then
15224 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15225 allow_undefined_flag_CXX="-z nodefs"
15226 archive_expsym_cmds_CXX="\$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"
15228 # Determine the default libpath from the value encoded in an
15229 # empty executable.
15230 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15231 /* end confdefs.h. */
15241 if ac_fn_cxx_try_link "$LINENO"; then :
15243 lt_aix_libpath_sed='
15244 /Import File Strings/,/^$/ {
15250 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15251 # Check for a 64-bit object if we didn't find anything.
15252 if test -z "$aix_libpath"; then
15253 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
15256 rm -f core conftest.err conftest.$ac_objext \
15257 conftest$ac_exeext conftest.$ac_ext
15258 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15260 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15261 # Warning - without using the other run time loading flags,
15262 # -berok will link without error, but may produce a broken library.
15263 no_undefined_flag_CXX=' ${wl}-bernotok'
15264 allow_undefined_flag_CXX=' ${wl}-berok'
15265 # Exported symbols can be pulled into shared objects from archives
15266 whole_archive_flag_spec_CXX='$convenience'
15267 archive_cmds_need_lc_CXX=yes
15268 # This is similar to how AIX traditionally builds its shared
15270 archive_expsym_cmds_CXX="\$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'
15276 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15277 allow_undefined_flag_CXX=unsupported
15278 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15279 # support --undefined. This deserves some investigation. FIXME
15280 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15287 case $cc_basename in
15289 # FIXME: insert proper C++ library support
15295 cygwin* | mingw* | pw32* | cegcc*)
15296 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15297 # as there is no search path for DLLs.
15298 hardcode_libdir_flag_spec_CXX='-L$libdir'
15299 allow_undefined_flag_CXX=unsupported
15300 always_export_symbols_CXX=no
15301 enable_shared_with_static_runtimes_CXX=yes
15303 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15304 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15305 # If the export-symbols file already is a .def file (1st line
15306 # is EXPORTS), use it as is; otherwise, prepend...
15307 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15308 cp $export_symbols $output_objdir/$soname.def;
15310 echo EXPORTS > $output_objdir/$soname.def;
15311 cat $export_symbols >> $output_objdir/$soname.def;
15313 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15318 darwin* | rhapsody*)
15321 archive_cmds_need_lc_CXX=no
15322 hardcode_direct_CXX=no
15323 hardcode_automatic_CXX=yes
15324 hardcode_shlibpath_var_CXX=unsupported
15325 whole_archive_flag_spec_CXX=''
15326 link_all_deplibs_CXX=yes
15327 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
15328 case $cc_basename in
15329 ifort*) _lt_dar_can_shared=yes ;;
15330 *) _lt_dar_can_shared=$GCC ;;
15332 if test "$_lt_dar_can_shared" = "yes"; then
15333 output_verbose_link_cmd=echo
15334 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
15335 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
15336 archive_expsym_cmds_CXX="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}"
15337 module_expsym_cmds_CXX="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}"
15338 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
15339 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
15340 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
15350 case $cc_basename in
15352 # FIXME: insert proper C++ library support
15356 # Green Hills C++ Compiler
15357 # FIXME: insert proper C++ library support
15361 # FIXME: insert proper C++ library support
15368 # C++ shared libraries reported to be fairly broken before
15374 archive_cmds_need_lc_CXX=no
15377 freebsd* | dragonfly*)
15378 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15387 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15388 hardcode_libdir_separator_CXX=:
15389 export_dynamic_flag_spec_CXX='${wl}-E'
15390 hardcode_direct_CXX=yes
15391 hardcode_minus_L_CXX=yes # Not in the search PATH,
15392 # but as the default
15393 # location of the library.
15395 case $cc_basename in
15397 # FIXME: insert proper C++ library support
15401 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15402 # Commands to make compiler produce verbose output that lists
15403 # what "hidden" libraries, object files and flags are used when
15404 # linking a shared library.
15406 # There doesn't appear to be a way to prevent this compiler from
15407 # explicitly linking system object files so we need to strip them
15408 # from the output so that they don't get included in the library
15410 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
15413 if test "$GXX" = yes; then
15414 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
15416 # FIXME: insert proper C++ library support
15424 if test $with_gnu_ld = no; then
15425 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15426 hardcode_libdir_separator_CXX=:
15432 export_dynamic_flag_spec_CXX='${wl}-E'
15438 hardcode_direct_CXX=no
15439 hardcode_shlibpath_var_CXX=no
15442 hardcode_direct_CXX=yes
15443 hardcode_direct_absolute_CXX=yes
15444 hardcode_minus_L_CXX=yes # Not in the search PATH,
15445 # but as the default
15446 # location of the library.
15450 case $cc_basename in
15452 # FIXME: insert proper C++ library support
15458 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15461 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15464 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15467 # Commands to make compiler produce verbose output that lists
15468 # what "hidden" libraries, object files and flags are used when
15469 # linking a shared library.
15471 # There doesn't appear to be a way to prevent this compiler from
15472 # explicitly linking system object files so we need to strip them
15473 # from the output so that they don't get included in the library
15475 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
15478 if test "$GXX" = yes; then
15479 if test $with_gnu_ld = no; then
15482 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15485 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15488 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15493 # FIXME: insert proper C++ library support
15501 hardcode_direct_CXX=no
15502 hardcode_shlibpath_var_CXX=no
15503 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15504 export_dynamic_flag_spec_CXX='${wl}-E'
15505 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15506 # Instead, shared libraries are loaded at an image base (0x10000000 by
15507 # default) and relocated if they conflict, which is a slow very memory
15508 # consuming and fragmenting process. To avoid this, we pick a random,
15509 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15510 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15511 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15512 archive_expsym_cmds_CXX='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'
15515 case $cc_basename in
15518 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
15520 # Archives containing C++ object files must be created using
15521 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15522 # necessary to make sure instantiated templates are included
15524 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15527 if test "$GXX" = yes; then
15528 if test "$with_gnu_ld" = no; then
15529 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15531 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
15534 link_all_deplibs_CXX=yes
15537 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15538 hardcode_libdir_separator_CXX=:
15539 inherit_rpath_CXX=yes
15542 linux* | k*bsd*-gnu)
15543 case $cc_basename in
15545 # Kuck and Associates, Inc. (KAI) C++ Compiler
15547 # KCC will only create a shared library if the output file
15548 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15549 # to its proper name (with version) after linking.
15550 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
15551 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
15552 # Commands to make compiler produce verbose output that lists
15553 # what "hidden" libraries, object files and flags are used when
15554 # linking a shared library.
15556 # There doesn't appear to be a way to prevent this compiler from
15557 # explicitly linking system object files so we need to strip them
15558 # from the output so that they don't get included in the library
15560 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
15562 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15563 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15565 # Archives containing C++ object files must be created using
15566 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15567 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15572 # version 8.0 and above of icpc choke on multiply defined symbols
15573 # if we add $predep_objects and $postdep_objects, however 7.1 and
15574 # earlier do not add the objects themselves.
15575 case `$CC -V 2>&1` in
15577 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15578 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15580 *) # Version 8.0 or newer
15583 ia64*) tmp_idyn=' -i_dynamic';;
15585 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15586 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
15589 archive_cmds_need_lc_CXX=no
15590 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15591 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15592 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15595 # Portland Group C++ compiler
15597 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
15598 prelink_cmds_CXX='tpldir=Template.dir~
15600 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
15601 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
15602 old_archive_cmds_CXX='tpldir=Template.dir~
15604 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
15605 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
15607 archive_cmds_CXX='tpldir=Template.dir~
15609 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15610 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15611 archive_expsym_cmds_CXX='tpldir=Template.dir~
15613 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
15614 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
15616 *) # Version 6 will use weak symbols
15617 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
15618 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
15622 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15623 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15624 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
15628 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15629 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
15631 runpath_var=LD_RUN_PATH
15632 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15633 hardcode_libdir_separator_CXX=:
15635 # Commands to make compiler produce verbose output that lists
15636 # what "hidden" libraries, object files and flags are used when
15637 # linking a shared library.
15639 # There doesn't appear to be a way to prevent this compiler from
15640 # explicitly linking system object files so we need to strip them
15641 # from the output so that they don't get included in the library
15643 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
15646 # IBM XL 8.0 on PPC, with GNU ld
15647 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15648 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15649 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15650 if test "x$supports_anon_versioning" = xyes; then
15651 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
15652 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
15653 echo "local: *; };" >> $output_objdir/$libname.ver~
15654 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
15658 case `$CC -V 2>&1 | sed 5q` in
15661 no_undefined_flag_CXX=' -zdefs'
15662 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15663 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
15664 hardcode_libdir_flag_spec_CXX='-R$libdir'
15665 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
15666 compiler_needs_object_CXX=yes
15668 # Not sure whether something based on
15669 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
15671 output_verbose_link_cmd='echo'
15673 # Archives containing C++ object files must be created using
15674 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15675 # necessary to make sure instantiated templates are included
15677 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15685 # FIXME: insert proper C++ library support
15690 # FIXME: insert proper C++ library support
15695 case $cc_basename in
15697 # FIXME: insert proper C++ library support
15701 # FIXME: insert proper C++ library support
15708 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
15709 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15711 hardcode_libdir_flag_spec_CXX='-R$libdir'
15712 hardcode_direct_CXX=yes
15713 hardcode_shlibpath_var_CXX=no
15715 # Workaround some broken pre-1.5 toolchains
15716 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15724 # C++ shared libraries are fairly broken
15729 if test -f /usr/libexec/ld.so; then
15730 hardcode_direct_CXX=yes
15731 hardcode_shlibpath_var_CXX=no
15732 hardcode_direct_absolute_CXX=yes
15733 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15734 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15735 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
15736 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
15737 export_dynamic_flag_spec_CXX='${wl}-E'
15738 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15740 output_verbose_link_cmd=echo
15746 osf3* | osf4* | osf5*)
15747 case $cc_basename in
15749 # Kuck and Associates, Inc. (KAI) C++ Compiler
15751 # KCC will only create a shared library if the output file
15752 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15753 # to its proper name (with version) after linking.
15754 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
15756 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15757 hardcode_libdir_separator_CXX=:
15759 # Archives containing C++ object files must be created using
15760 # the KAI C++ compiler.
15762 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
15763 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
15767 # Rational C++ 2.4.1
15768 # FIXME: insert proper C++ library support
15774 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15775 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
15776 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15779 allow_undefined_flag_CXX=' -expect_unresolved \*'
15780 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
15781 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15782 echo "-hidden">> $lib.exp~
15783 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
15785 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15789 hardcode_libdir_separator_CXX=:
15791 # Commands to make compiler produce verbose output that lists
15792 # what "hidden" libraries, object files and flags are used when
15793 # linking a shared library.
15795 # There doesn't appear to be a way to prevent this compiler from
15796 # explicitly linking system object files so we need to strip them
15797 # from the output so that they don't get included in the library
15799 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
15802 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15803 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15806 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15809 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
15813 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15814 hardcode_libdir_separator_CXX=:
15816 # Commands to make compiler produce verbose output that lists
15817 # what "hidden" libraries, object files and flags are used when
15818 # linking a shared library.
15819 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15822 # FIXME: insert proper C++ library support
15830 # FIXME: insert proper C++ library support
15835 case $cc_basename in
15838 # FIXME: insert proper C++ library support
15843 # FIXME: insert proper C++ library support
15847 # FIXME: insert proper C++ library support
15854 case $cc_basename in
15856 # Sun C++ 4.2, 5.x and Centerline C++
15857 archive_cmds_need_lc_CXX=yes
15858 no_undefined_flag_CXX=' -zdefs'
15859 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15860 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15861 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15863 hardcode_libdir_flag_spec_CXX='-R$libdir'
15864 hardcode_shlibpath_var_CXX=no
15866 solaris2.[0-5] | solaris2.[0-5].*) ;;
15868 # The compiler driver will combine and reorder linker options,
15869 # but understands `-z linker_flag'.
15870 # Supported since Solaris 2.6 (maybe 2.5.1?)
15871 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
15874 link_all_deplibs_CXX=yes
15876 output_verbose_link_cmd='echo'
15878 # Archives containing C++ object files must be created using
15879 # "CC -xar", where "CC" is the Sun C++ compiler. This is
15880 # necessary to make sure instantiated templates are included
15882 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
15885 # Green Hills C++ Compiler
15886 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15888 # The C++ compiler must be used to create the archive.
15889 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
15892 # GNU C++ compiler with Solaris linker
15893 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15894 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
15895 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
15896 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15897 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15898 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15900 # Commands to make compiler produce verbose output that lists
15901 # what "hidden" libraries, object files and flags are used when
15902 # linking a shared library.
15903 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15905 # g++ 2.7 appears to require `-G' NOT `-shared' on this
15907 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
15908 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
15909 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
15911 # Commands to make compiler produce verbose output that lists
15912 # what "hidden" libraries, object files and flags are used when
15913 # linking a shared library.
15914 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
15917 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
15919 solaris2.[0-5] | solaris2.[0-5].*) ;;
15921 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
15929 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
15930 no_undefined_flag_CXX='${wl}-z,text'
15931 archive_cmds_need_lc_CXX=no
15932 hardcode_shlibpath_var_CXX=no
15933 runpath_var='LD_RUN_PATH'
15935 case $cc_basename in
15937 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15938 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15941 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15942 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15947 sysv5* | sco3.2v5* | sco5v6*)
15948 # Note: We can NOT use -z defs as we might desire, because we do not
15949 # link with -lc, and that would cause any symbols used from libc to
15950 # always be unresolved, which means just about no library would
15951 # ever link correctly. If we're not using GNU ld we use -z text
15952 # though, which does catch some bad symbols but isn't as heavy-handed
15954 no_undefined_flag_CXX='${wl}-z,text'
15955 allow_undefined_flag_CXX='${wl}-z,nodefs'
15956 archive_cmds_need_lc_CXX=no
15957 hardcode_shlibpath_var_CXX=no
15958 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
15959 hardcode_libdir_separator_CXX=':'
15960 link_all_deplibs_CXX=yes
15961 export_dynamic_flag_spec_CXX='${wl}-Bexport'
15962 runpath_var='LD_RUN_PATH'
15964 case $cc_basename in
15966 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15967 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15970 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15971 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
15977 case $cc_basename in
15979 # NonStop-UX NCC 3.20
15980 # FIXME: insert proper C++ library support
15984 # FIXME: insert proper C++ library support
15991 # FIXME: insert proper C++ library support
15996 # FIXME: insert proper C++ library support
16001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16002 $as_echo "$ld_shlibs_CXX" >&6; }
16003 test "$ld_shlibs_CXX" = no && can_build_shared=no
16009 ## There is no encapsulation within the following macros, do not change
16010 ## the running order or otherwise move them around unless you know exactly
16011 ## what you are doing...
16012 # Dependencies to place before and after the object being linked:
16013 predep_objects_CXX=
16014 postdep_objects_CXX=
16017 compiler_lib_search_path_CXX=
16019 cat > conftest.$ac_ext <<_LT_EOF
16023 Foo (void) { a = 0; }
16029 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16030 (eval $ac_compile) 2>&5
16032 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16033 test $ac_status = 0; }; then
16034 # Parse the compiler output and extract the necessary
16035 # objects, libraries and library flags.
16037 # Sentinel used to keep track of whether or not we are before
16038 # the conftest object file.
16039 pre_test_object_deps_done=no
16041 for p in `eval "$output_verbose_link_cmd"`; do
16045 # Some compilers place space between "-{L,R}" and the path.
16046 # Remove the space.
16047 if test $p = "-L" ||
16048 test $p = "-R"; then
16055 if test "$pre_test_object_deps_done" = no; then
16058 # Internal compiler library paths should come after those
16059 # provided the user. The postdeps already come after the
16060 # user supplied libs so there is no need to process them.
16061 if test -z "$compiler_lib_search_path_CXX"; then
16062 compiler_lib_search_path_CXX="${prev}${p}"
16064 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16067 # The "-l" case would never come before the object being
16068 # linked, so don't bother handling this case.
16071 if test -z "$postdeps_CXX"; then
16072 postdeps_CXX="${prev}${p}"
16074 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16080 # This assumes that the test object file only shows up
16081 # once in the compiler output.
16082 if test "$p" = "conftest.$objext"; then
16083 pre_test_object_deps_done=yes
16087 if test "$pre_test_object_deps_done" = no; then
16088 if test -z "$predep_objects_CXX"; then
16089 predep_objects_CXX="$p"
16091 predep_objects_CXX="$predep_objects_CXX $p"
16094 if test -z "$postdep_objects_CXX"; then
16095 postdep_objects_CXX="$p"
16097 postdep_objects_CXX="$postdep_objects_CXX $p"
16102 *) ;; # Ignore the rest.
16110 echo "libtool.m4: error: problem compiling CXX test program"
16113 $RM -f confest.$objext
16115 # PORTME: override above test on systems where it is broken
16118 # Interix 3.5 installs completely hosed .la files for C++, so rather than
16119 # hack all around it, let's just trust "g++" to DTRT.
16120 predep_objects_CXX=
16121 postdep_objects_CXX=
16126 case `$CC -V 2>&1 | sed 5q` in
16130 # The more standards-conforming stlport4 library is
16131 # incompatible with the Cstd library. Avoid specifying
16132 # it if it's in CXXFLAGS. Ignore libCrun as
16133 # -library=stlport4 depends on it.
16134 case " $CXX $CXXFLAGS " in
16135 *" -library=stlport4 "*)
16136 solaris_use_stlport4=yes
16140 if test "$solaris_use_stlport4" != yes; then
16141 postdeps_CXX='-library=Cstd -library=Crun'
16148 case $cc_basename in
16150 # The more standards-conforming stlport4 library is
16151 # incompatible with the Cstd library. Avoid specifying
16152 # it if it's in CXXFLAGS. Ignore libCrun as
16153 # -library=stlport4 depends on it.
16154 case " $CXX $CXXFLAGS " in
16155 *" -library=stlport4 "*)
16156 solaris_use_stlport4=yes
16160 # Adding this requires a known-good setup of shared libraries for
16161 # Sun compiler versions before 5.6, else PIC objects from an old
16162 # archive will be linked into the output, leading to subtle bugs.
16163 if test "$solaris_use_stlport4" != yes; then
16164 postdeps_CXX='-library=Cstd -library=Crun'
16172 case " $postdeps_CXX " in
16173 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16175 compiler_lib_search_dirs_CXX=
16176 if test -n "${compiler_lib_search_path_CXX}"; then
16177 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
16210 lt_prog_compiler_wl_CXX=
16211 lt_prog_compiler_pic_CXX=
16212 lt_prog_compiler_static_CXX=
16214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
16215 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
16217 # C++ specific cases for pic, static, wl, etc.
16218 if test "$GXX" = yes; then
16219 lt_prog_compiler_wl_CXX='-Wl,'
16220 lt_prog_compiler_static_CXX='-static'
16224 # All AIX code is PIC.
16225 if test "$host_cpu" = ia64; then
16226 # AIX 5 now supports IA64 processor
16227 lt_prog_compiler_static_CXX='-Bstatic'
16234 # see comment about AmigaOS4 .so support
16235 lt_prog_compiler_pic_CXX='-fPIC'
16238 # FIXME: we need at least 68020 code to build shared libraries, but
16239 # adding the `-m68020' flag to GCC prevents building anything better,
16241 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16246 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16247 # PIC is the default for these OSes.
16249 mingw* | cygwin* | os2* | pw32* | cegcc*)
16250 # This hack is so that the source file can tell whether it is being
16251 # built for inclusion in a dll (and should export symbols for example).
16252 # Although the cygwin gcc ignores -fPIC, still need this for old-style
16253 # (--disable-auto-import) libraries
16254 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16256 darwin* | rhapsody*)
16257 # PIC is the default on this platform
16258 # Common symbols not allowed in MH_DYLIB files
16259 lt_prog_compiler_pic_CXX='-fno-common'
16262 # DJGPP does not support shared libraries at all
16263 lt_prog_compiler_pic_CXX=
16266 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
16267 # Instead, we relocate shared libraries at runtime.
16270 if test -d /usr/nec; then
16271 lt_prog_compiler_pic_CXX=-Kconform_pic
16275 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
16276 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
16277 # sets the default TLS model and affects inlining.
16282 lt_prog_compiler_pic_CXX='-fPIC'
16287 # QNX uses GNU C++, but need to define -shared option too, otherwise
16288 # it will coredump.
16289 lt_prog_compiler_pic_CXX='-fPIC -shared'
16292 lt_prog_compiler_pic_CXX='-fPIC'
16298 # All AIX code is PIC.
16299 if test "$host_cpu" = ia64; then
16300 # AIX 5 now supports IA64 processor
16301 lt_prog_compiler_static_CXX='-Bstatic'
16303 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16307 case $cc_basename in
16309 # Green Hills C++ Compiler
16310 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
16315 case $cc_basename in
16317 lt_prog_compiler_pic_CXX='-KPIC'
16320 # Green Hills C++ Compiler
16321 lt_prog_compiler_pic_CXX='-pic'
16327 freebsd* | dragonfly*)
16328 # FreeBSD uses GNU C++
16330 hpux9* | hpux10* | hpux11*)
16331 case $cc_basename in
16333 lt_prog_compiler_wl_CXX='-Wl,'
16334 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16335 if test "$host_cpu" != ia64; then
16336 lt_prog_compiler_pic_CXX='+Z'
16340 lt_prog_compiler_wl_CXX='-Wl,'
16341 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
16347 lt_prog_compiler_pic_CXX='+Z'
16356 # This is c89, which is MS Visual C++ (no shared libs)
16357 # Anyone wants to do a port?
16359 irix5* | irix6* | nonstopux*)
16360 case $cc_basename in
16362 lt_prog_compiler_wl_CXX='-Wl,'
16363 lt_prog_compiler_static_CXX='-non_shared'
16364 # CC pic flag -KPIC is the default.
16370 linux* | k*bsd*-gnu)
16371 case $cc_basename in
16374 lt_prog_compiler_wl_CXX='--backend -Wl,'
16375 lt_prog_compiler_pic_CXX='-fPIC'
16378 # old Intel C++ for x86_64 which still supported -KPIC.
16379 lt_prog_compiler_wl_CXX='-Wl,'
16380 lt_prog_compiler_pic_CXX='-KPIC'
16381 lt_prog_compiler_static_CXX='-static'
16384 # Intel C++, used to be incompatible with GCC.
16385 # ICC 10 doesn't accept -KPIC any more.
16386 lt_prog_compiler_wl_CXX='-Wl,'
16387 lt_prog_compiler_pic_CXX='-fPIC'
16388 lt_prog_compiler_static_CXX='-static'
16391 # Portland Group C++ compiler
16392 lt_prog_compiler_wl_CXX='-Wl,'
16393 lt_prog_compiler_pic_CXX='-fpic'
16394 lt_prog_compiler_static_CXX='-Bstatic'
16398 # Make sure the PIC flag is empty. It appears that all Alpha
16399 # Linux and Compaq Tru64 Unix objects are PIC.
16400 lt_prog_compiler_pic_CXX=
16401 lt_prog_compiler_static_CXX='-non_shared'
16404 # IBM XL 8.0 on PPC
16405 lt_prog_compiler_wl_CXX='-Wl,'
16406 lt_prog_compiler_pic_CXX='-qpic'
16407 lt_prog_compiler_static_CXX='-qstaticlink'
16410 case `$CC -V 2>&1 | sed 5q` in
16413 lt_prog_compiler_pic_CXX='-KPIC'
16414 lt_prog_compiler_static_CXX='-Bstatic'
16415 lt_prog_compiler_wl_CXX='-Qoption ld '
16426 case $cc_basename in
16428 lt_prog_compiler_pic_CXX='-W c,exportall'
16434 netbsd* | netbsdelf*-gnu)
16437 # QNX uses GNU C++, but need to define -shared option too, otherwise
16438 # it will coredump.
16439 lt_prog_compiler_pic_CXX='-fPIC -shared'
16441 osf3* | osf4* | osf5*)
16442 case $cc_basename in
16444 lt_prog_compiler_wl_CXX='--backend -Wl,'
16447 # Rational C++ 2.4.1
16448 lt_prog_compiler_pic_CXX='-pic'
16451 # Digital/Compaq C++
16452 lt_prog_compiler_wl_CXX='-Wl,'
16453 # Make sure the PIC flag is empty. It appears that all Alpha
16454 # Linux and Compaq Tru64 Unix objects are PIC.
16455 lt_prog_compiler_pic_CXX=
16456 lt_prog_compiler_static_CXX='-non_shared'
16465 case $cc_basename in
16467 # Sun C++ 4.2, 5.x and Centerline C++
16468 lt_prog_compiler_pic_CXX='-KPIC'
16469 lt_prog_compiler_static_CXX='-Bstatic'
16470 lt_prog_compiler_wl_CXX='-Qoption ld '
16473 # Green Hills C++ Compiler
16474 lt_prog_compiler_pic_CXX='-PIC'
16481 case $cc_basename in
16484 lt_prog_compiler_pic_CXX='-pic'
16485 lt_prog_compiler_static_CXX='-Bstatic'
16489 lt_prog_compiler_pic_CXX='-pic'
16495 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
16496 case $cc_basename in
16498 lt_prog_compiler_wl_CXX='-Wl,'
16499 lt_prog_compiler_pic_CXX='-KPIC'
16500 lt_prog_compiler_static_CXX='-Bstatic'
16505 case $cc_basename in
16507 # NonStop-UX NCC 3.20
16508 lt_prog_compiler_pic_CXX='-KPIC'
16517 lt_prog_compiler_can_build_shared_CXX=no
16523 # For platforms which do not support PIC, -DPIC is meaningless:
16525 lt_prog_compiler_pic_CXX=
16528 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
16532 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
16537 # Check to make sure the PIC flag actually works.
16539 if test -n "$lt_prog_compiler_pic_CXX"; then
16540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16541 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
16542 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
16543 $as_echo_n "(cached) " >&6
16545 lt_cv_prog_compiler_pic_works_CXX=no
16546 ac_outfile=conftest.$ac_objext
16547 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16548 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16549 # Insert the option either (1) after the last *FLAGS variable, or
16550 # (2) before a word containing "conftest.", or (3) at the end.
16551 # Note that $ac_compile itself does not contain backslashes and begins
16552 # with a dollar sign (not a hyphen), so the echo should work correctly.
16553 # The option is referenced via a variable to avoid confusing sed.
16554 lt_compile=`echo "$ac_compile" | $SED \
16555 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16556 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16557 -e 's:$: $lt_compiler_flag:'`
16558 (eval echo "\"\$as_me:16558: $lt_compile\"" >&5)
16559 (eval "$lt_compile" 2>conftest.err)
16561 cat conftest.err >&5
16562 echo "$as_me:16562: \$? = $ac_status" >&5
16563 if (exit $ac_status) && test -s "$ac_outfile"; then
16564 # The compiler can only warn and ignore the option if not recognized
16565 # So say no if there are warnings other than the usual output.
16566 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
16567 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16568 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
16569 lt_cv_prog_compiler_pic_works_CXX=yes
16575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
16576 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
16578 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
16579 case $lt_prog_compiler_pic_CXX in
16581 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16584 lt_prog_compiler_pic_CXX=
16585 lt_prog_compiler_can_build_shared_CXX=no
16593 # Check to make sure the static flag actually works.
16595 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
16596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
16597 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
16598 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
16599 $as_echo_n "(cached) " >&6
16601 lt_cv_prog_compiler_static_works_CXX=no
16602 save_LDFLAGS="$LDFLAGS"
16603 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
16604 echo "$lt_simple_link_test_code" > conftest.$ac_ext
16605 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
16606 # The linker can only warn and ignore the option if not recognized
16607 # So say no if there are warnings
16608 if test -s conftest.err; then
16609 # Append any errors to the config.log.
16610 cat conftest.err 1>&5
16611 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
16612 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
16613 if diff conftest.exp conftest.er2 >/dev/null; then
16614 lt_cv_prog_compiler_static_works_CXX=yes
16617 lt_cv_prog_compiler_static_works_CXX=yes
16621 LDFLAGS="$save_LDFLAGS"
16624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
16625 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
16627 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
16630 lt_prog_compiler_static_CXX=
16636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16637 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16638 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
16639 $as_echo_n "(cached) " >&6
16641 lt_cv_prog_compiler_c_o_CXX=no
16642 $RM -r conftest 2>/dev/null
16646 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16648 lt_compiler_flag="-o out/conftest2.$ac_objext"
16649 # Insert the option either (1) after the last *FLAGS variable, or
16650 # (2) before a word containing "conftest.", or (3) at the end.
16651 # Note that $ac_compile itself does not contain backslashes and begins
16652 # with a dollar sign (not a hyphen), so the echo should work correctly.
16653 lt_compile=`echo "$ac_compile" | $SED \
16654 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16655 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16656 -e 's:$: $lt_compiler_flag:'`
16657 (eval echo "\"\$as_me:16657: $lt_compile\"" >&5)
16658 (eval "$lt_compile" 2>out/conftest.err)
16660 cat out/conftest.err >&5
16661 echo "$as_me:16661: \$? = $ac_status" >&5
16662 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16664 # The compiler can only warn and ignore the option if not recognized
16665 # So say no if there are warnings
16666 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16667 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16668 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16669 lt_cv_prog_compiler_c_o_CXX=yes
16674 # SGI C++ compiler will create directory out/ii_files/ for
16675 # template instantiation
16676 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16677 $RM out/* && rmdir out
16683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16684 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
16689 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
16690 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
16691 $as_echo_n "(cached) " >&6
16693 lt_cv_prog_compiler_c_o_CXX=no
16694 $RM -r conftest 2>/dev/null
16698 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16700 lt_compiler_flag="-o out/conftest2.$ac_objext"
16701 # Insert the option either (1) after the last *FLAGS variable, or
16702 # (2) before a word containing "conftest.", or (3) at the end.
16703 # Note that $ac_compile itself does not contain backslashes and begins
16704 # with a dollar sign (not a hyphen), so the echo should work correctly.
16705 lt_compile=`echo "$ac_compile" | $SED \
16706 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
16707 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16708 -e 's:$: $lt_compiler_flag:'`
16709 (eval echo "\"\$as_me:16709: $lt_compile\"" >&5)
16710 (eval "$lt_compile" 2>out/conftest.err)
16712 cat out/conftest.err >&5
16713 echo "$as_me:16713: \$? = $ac_status" >&5
16714 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16716 # The compiler can only warn and ignore the option if not recognized
16717 # So say no if there are warnings
16718 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
16719 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
16720 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
16721 lt_cv_prog_compiler_c_o_CXX=yes
16726 # SGI C++ compiler will create directory out/ii_files/ for
16727 # template instantiation
16728 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
16729 $RM out/* && rmdir out
16735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16736 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
16741 hard_links="nottested"
16742 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16743 # do not overwrite the value of need_locks provided by the user
16744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
16745 $as_echo_n "checking if we can lock with hard links... " >&6; }
16748 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16750 ln conftest.a conftest.b 2>&5 || hard_links=no
16751 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
16753 $as_echo "$hard_links" >&6; }
16754 if test "$hard_links" = no; then
16755 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16756 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16766 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
16768 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16771 # If we're using GNU nm, then we don't want the "-C" option.
16772 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16773 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16774 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16776 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
16780 export_symbols_cmds_CXX="$ltdll_cmds"
16782 cygwin* | mingw* | cegcc*)
16783 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;/^.*[ ]__nm__/s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
16785 linux* | k*bsd*-gnu)
16786 link_all_deplibs_CXX=no
16789 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16792 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
16794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
16795 $as_echo "$ld_shlibs_CXX" >&6; }
16796 test "$ld_shlibs_CXX" = no && can_build_shared=no
16798 with_gnu_ld_CXX=$with_gnu_ld
16806 # Do we need to explicitly link libc?
16808 case "x$archive_cmds_need_lc_CXX" in
16810 # Assume -lc should be added
16811 archive_cmds_need_lc_CXX=yes
16813 if test "$enable_shared" = yes && test "$GCC" = yes; then
16814 case $archive_cmds_CXX in
16816 # FIXME: we may have to deal with multi-command sequences.
16819 # Test whether the compiler implicitly links with -lc since on some
16820 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16821 # to ld, don't add -lc before -lgcc.
16822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16823 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16825 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16827 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16828 (eval $ac_compile) 2>&5
16830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16831 test $ac_status = 0; } 2>conftest.err; then
16834 libobjs=conftest.$ac_objext
16836 wl=$lt_prog_compiler_wl_CXX
16837 pic_flag=$lt_prog_compiler_pic_CXX
16843 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16844 allow_undefined_flag_CXX=
16845 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16846 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16849 test $ac_status = 0; }
16851 archive_cmds_need_lc_CXX=no
16853 archive_cmds_need_lc_CXX=yes
16855 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16857 cat conftest.err 1>&5
16860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
16861 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
16931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
16932 $as_echo_n "checking dynamic linker characteristics... " >&6; }
16934 library_names_spec=
16935 libname_spec='lib$name'
16939 postuninstall_cmds=
16943 shlibpath_overrides_runpath=unknown
16945 dynamic_linker="$host_os ld.so"
16946 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16947 need_lib_prefix=unknown
16948 hardcode_into_libs=no
16950 # when you set need_version to no, make sure it does not cause -set_version
16951 # flags to be left without arguments
16952 need_version=unknown
16957 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16958 shlibpath_var=LIBPATH
16960 # AIX 3 has no versioning support, so we append a major version to the name.
16961 soname_spec='${libname}${release}${shared_ext}$major'
16968 hardcode_into_libs=yes
16969 if test "$host_cpu" = ia64; then
16970 # AIX 5 supports IA64
16971 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16972 shlibpath_var=LD_LIBRARY_PATH
16974 # With GCC up to 2.95.x, collect2 would create an import file
16975 # for dependence libraries. The import file would start with
16976 # the line `#! .'. This would cause the generated library to
16977 # depend on `.', always an invalid library. This was fixed in
16978 # development snapshots of GCC prior to 3.0.
16980 aix4 | aix4.[01] | aix4.[01].*)
16981 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16983 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
16986 can_build_shared=no
16990 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16991 # soname into executable. Probably we can add versioning support to
16992 # collect2, so additional links can be useful in future.
16993 if test "$aix_use_runtimelinking" = yes; then
16994 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16995 # instead of lib<name>.a to let people know that these are not
16996 # typical AIX shared libraries.
16997 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16999 # We preserve .a as extension for shared libraries through AIX4.2
17000 # and later when we are not doing run time linking.
17001 library_names_spec='${libname}${release}.a $libname.a'
17002 soname_spec='${libname}${release}${shared_ext}$major'
17004 shlibpath_var=LIBPATH
17011 # Since July 2007 AmigaOS4 officially supports .so libraries.
17012 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17016 library_names_spec='$libname.ixlibrary $libname.a'
17017 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17018 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
17024 library_names_spec='${libname}${shared_ext}'
17025 dynamic_linker="$host_os ld.so"
17026 shlibpath_var=LIBRARY_PATH
17032 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17033 soname_spec='${libname}${release}${shared_ext}$major'
17034 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17035 shlibpath_var=LD_LIBRARY_PATH
17036 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17037 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17038 # the default ld.so.conf also contains /usr/contrib/lib and
17039 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17040 # libtool to hard-code these into programs
17043 cygwin* | mingw* | pw32* | cegcc*)
17044 version_type=windows
17049 case $GCC,$host_os in
17050 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17051 library_names_spec='$libname.dll.a'
17052 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17053 postinstall_cmds='base_file=`basename \${file}`~
17054 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17055 dldir=$destdir/`dirname \$dlpath`~
17056 test -d \$dldir || mkdir -p \$dldir~
17057 $install_prog $dir/$dlname \$dldir/$dlname~
17058 chmod a+x \$dldir/$dlname~
17059 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17060 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17062 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17063 dlpath=$dir/\$dldll~
17065 shlibpath_overrides_runpath=yes
17069 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17070 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17071 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17074 # MinGW DLLs use traditional 'lib' prefix
17075 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17076 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17077 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17078 # It is most probably a Windows format PATH printed by
17079 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17080 # path with ; separators, and with drive letters. We can handle the
17081 # drive letters (cygwin fileutils understands them), so leave them,
17082 # especially as we might pass files found there to a mingw objdump,
17083 # which wouldn't understand a cygwinified path. Ahh.
17084 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17086 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17090 # pw32 DLLs use 'pw' prefix rather than 'lib'
17091 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17097 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17100 dynamic_linker='Win32 ld.exe'
17101 # FIXME: first we should search . and the directory the executable is in
17105 darwin* | rhapsody*)
17106 dynamic_linker="$host_os dyld"
17107 version_type=darwin
17110 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17111 soname_spec='${libname}${release}${major}$shared_ext'
17112 shlibpath_overrides_runpath=yes
17113 shlibpath_var=DYLD_LIBRARY_PATH
17114 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17116 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17123 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17124 soname_spec='${libname}${release}${shared_ext}$major'
17125 shlibpath_var=LD_LIBRARY_PATH
17132 freebsd* | dragonfly*)
17133 # DragonFly does not have aout. When/if they implement a new
17134 # versioning mechanism, adjust this.
17135 if test -x /usr/bin/objformat; then
17136 objformat=`/usr/bin/objformat`
17139 freebsd[123]*) objformat=aout ;;
17140 *) objformat=elf ;;
17143 version_type=freebsd-$objformat
17144 case $version_type in
17146 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17151 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17155 shlibpath_var=LD_LIBRARY_PATH
17158 shlibpath_overrides_runpath=yes
17160 freebsd3.[01]* | freebsdelf3.[01]*)
17161 shlibpath_overrides_runpath=yes
17162 hardcode_into_libs=yes
17164 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17165 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17166 shlibpath_overrides_runpath=no
17167 hardcode_into_libs=yes
17169 *) # from 4.6 on, and DragonFly
17170 shlibpath_overrides_runpath=yes
17171 hardcode_into_libs=yes
17180 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17181 soname_spec='${libname}${release}${shared_ext}$major'
17182 shlibpath_var=LD_LIBRARY_PATH
17183 hardcode_into_libs=yes
17186 hpux9* | hpux10* | hpux11*)
17187 # Give a soname corresponding to the major version so that dld.sl refuses to
17188 # link against other versions.
17195 hardcode_into_libs=yes
17196 dynamic_linker="$host_os dld.so"
17197 shlibpath_var=LD_LIBRARY_PATH
17198 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17200 soname_spec='${libname}${release}${shared_ext}$major'
17201 if test "X$HPUX_IA64_MODE" = X32; then
17202 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17204 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17206 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17210 hardcode_into_libs=yes
17211 dynamic_linker="$host_os dld.sl"
17212 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17213 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17215 soname_spec='${libname}${release}${shared_ext}$major'
17216 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17217 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17221 dynamic_linker="$host_os dld.sl"
17222 shlibpath_var=SHLIB_PATH
17223 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17224 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17225 soname_spec='${libname}${release}${shared_ext}$major'
17228 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17229 postinstall_cmds='chmod 555 $lib'
17236 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17237 soname_spec='${libname}${release}${shared_ext}$major'
17238 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17239 shlibpath_var=LD_LIBRARY_PATH
17240 shlibpath_overrides_runpath=no
17241 hardcode_into_libs=yes
17244 irix5* | irix6* | nonstopux*)
17246 nonstopux*) version_type=nonstopux ;;
17248 if test "$lt_cv_prog_gnu_ld" = yes; then
17256 soname_spec='${libname}${release}${shared_ext}$major'
17257 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17259 irix5* | nonstopux*)
17260 libsuff= shlibsuff=
17263 case $LD in # libtool.m4 will add one of these switches to LD
17264 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17265 libsuff= shlibsuff= libmagic=32-bit;;
17266 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17267 libsuff=32 shlibsuff=N32 libmagic=N32;;
17268 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17269 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17270 *) libsuff= shlibsuff= libmagic=never-match;;
17274 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17275 shlibpath_overrides_runpath=no
17276 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17277 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17278 hardcode_into_libs=yes
17281 # No shared lib support for Linux oldld, aout, or coff.
17282 linux*oldld* | linux*aout* | linux*coff*)
17286 # This must be Linux ELF.
17287 linux* | k*bsd*-gnu)
17291 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17292 soname_spec='${libname}${release}${shared_ext}$major'
17293 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17294 shlibpath_var=LD_LIBRARY_PATH
17295 shlibpath_overrides_runpath=no
17296 # Some binutils ld are patched to set DT_RUNPATH
17297 save_LDFLAGS=$LDFLAGS
17298 save_libdir=$libdir
17299 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
17300 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
17301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17302 /* end confdefs.h. */
17312 if ac_fn_cxx_try_link "$LINENO"; then :
17313 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17314 shlibpath_overrides_runpath=yes
17317 rm -f core conftest.err conftest.$ac_objext \
17318 conftest$ac_exeext conftest.$ac_ext
17319 LDFLAGS=$save_LDFLAGS
17320 libdir=$save_libdir
17322 # This implies no fast_install, which is unacceptable.
17323 # Some rework will be needed to allow for fast_install
17324 # before this can be enabled.
17325 hardcode_into_libs=yes
17327 # Append ld.so.conf contents to the search path
17328 if test -f /etc/ld.so.conf; then
17329 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;/^$/d' | tr '\n' ' '`
17330 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17333 # We used to test for /lib/ld.so.1 and disable shared libraries on
17334 # powerpc, because MkLinux only supported shared libraries with the
17335 # GNU dynamic linker. Since this was broken with cross compilers,
17336 # most powerpc-linux boxes support dynamic linking these days and
17337 # people can always --disable-shared, the test was removed, and we
17338 # assume the GNU/Linux dynamic linker is in use.
17339 dynamic_linker='GNU/Linux ld.so'
17346 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17347 soname_spec='${libname}${release}${shared_ext}$major'
17348 shlibpath_var=LD_LIBRARY_PATH
17349 shlibpath_overrides_runpath=no
17350 hardcode_into_libs=yes
17351 dynamic_linker='NetBSD ld.elf_so'
17358 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17360 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17361 dynamic_linker='NetBSD (a.out) ld.so'
17363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17364 soname_spec='${libname}${release}${shared_ext}$major'
17365 dynamic_linker='NetBSD ld.elf_so'
17367 shlibpath_var=LD_LIBRARY_PATH
17368 shlibpath_overrides_runpath=yes
17369 hardcode_into_libs=yes
17374 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17375 shlibpath_var=LD_LIBRARY_PATH
17376 shlibpath_overrides_runpath=yes
17383 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17384 soname_spec='${libname}${release}${shared_ext}$major'
17385 shlibpath_var=LD_LIBRARY_PATH
17386 shlibpath_overrides_runpath=no
17387 hardcode_into_libs=yes
17388 dynamic_linker='ldqnx.so'
17393 sys_lib_dlsearch_path_spec="/usr/lib"
17395 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17397 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17398 *) need_version=no ;;
17400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17401 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17402 shlibpath_var=LD_LIBRARY_PATH
17403 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17405 openbsd2.[89] | openbsd2.[89].*)
17406 shlibpath_overrides_runpath=no
17409 shlibpath_overrides_runpath=yes
17413 shlibpath_overrides_runpath=yes
17418 libname_spec='$name'
17421 library_names_spec='$libname${shared_ext} $libname.a'
17422 dynamic_linker='OS/2 ld.exe'
17423 shlibpath_var=LIBPATH
17426 osf3* | osf4* | osf5*)
17430 soname_spec='${libname}${release}${shared_ext}$major'
17431 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17432 shlibpath_var=LD_LIBRARY_PATH
17433 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17434 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17445 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17446 soname_spec='${libname}${release}${shared_ext}$major'
17447 shlibpath_var=LD_LIBRARY_PATH
17448 shlibpath_overrides_runpath=yes
17449 hardcode_into_libs=yes
17450 # ldd complains unless libraries are executable
17451 postinstall_cmds='chmod +x $lib'
17456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17457 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17458 shlibpath_var=LD_LIBRARY_PATH
17459 shlibpath_overrides_runpath=yes
17460 if test "$with_gnu_ld" = yes; then
17468 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17469 soname_spec='${libname}${release}${shared_ext}$major'
17470 shlibpath_var=LD_LIBRARY_PATH
17471 case $host_vendor in
17473 shlibpath_overrides_runpath=no
17475 runpath_var=LD_RUN_PATH
17483 shlibpath_overrides_runpath=no
17484 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17490 if test -d /usr/nec ;then
17492 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17493 soname_spec='$libname${shared_ext}.$major'
17494 shlibpath_var=LD_LIBRARY_PATH
17498 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17499 version_type=freebsd-elf
17502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17503 soname_spec='${libname}${release}${shared_ext}$major'
17504 shlibpath_var=LD_LIBRARY_PATH
17505 shlibpath_overrides_runpath=yes
17506 hardcode_into_libs=yes
17507 if test "$with_gnu_ld" = yes; then
17508 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17510 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17513 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17517 sys_lib_dlsearch_path_spec='/usr/lib'
17521 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17525 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17526 shlibpath_var=LD_LIBRARY_PATH
17527 shlibpath_overrides_runpath=no
17528 hardcode_into_libs=yes
17533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17534 soname_spec='${libname}${release}${shared_ext}$major'
17535 shlibpath_var=LD_LIBRARY_PATH
17542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17543 $as_echo "$dynamic_linker" >&6; }
17544 test "$dynamic_linker" = no && can_build_shared=no
17546 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17547 if test "$GCC" = yes; then
17548 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17551 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17552 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17554 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17555 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17594 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17595 hardcode_action_CXX=
17596 if test -n "$hardcode_libdir_flag_spec_CXX" ||
17597 test -n "$runpath_var_CXX" ||
17598 test "X$hardcode_automatic_CXX" = "Xyes" ; then
17600 # We can hardcode non-existent directories.
17601 if test "$hardcode_direct_CXX" != no &&
17602 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17603 # have to relink, otherwise we might link with an installed library
17604 # when we should be linking with a yet-to-be-installed one
17605 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17606 test "$hardcode_minus_L_CXX" != no; then
17607 # Linking always hardcodes the temporary library directory.
17608 hardcode_action_CXX=relink
17610 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17611 hardcode_action_CXX=immediate
17614 # We cannot hardcode anything, or else we can only hardcode existing
17616 hardcode_action_CXX=unsupported
17618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
17619 $as_echo "$hardcode_action_CXX" >&6; }
17621 if test "$hardcode_action_CXX" = relink ||
17622 test "$inherit_rpath_CXX" = yes; then
17623 # Fast installation is not supported
17624 enable_fast_install=no
17625 elif test "$shlibpath_overrides_runpath" = yes ||
17626 test "$enable_shared" = no; then
17627 # Fast installation is not necessary
17628 enable_fast_install=needless
17637 fi # test -n "$compiler"
17643 with_gnu_ld=$lt_save_with_gnu_ld
17644 lt_cv_path_LDCXX=$lt_cv_path_LD
17645 lt_cv_path_LD=$lt_save_path_LD
17646 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
17647 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
17648 fi # test "$_lt_caught_CXX_error" != yes
17651 ac_cpp='$CPP $CPPFLAGS'
17652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17659 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
17660 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17661 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
17664 archive_cmds_need_lc_F77=no
17665 allow_undefined_flag_F77=
17666 always_export_symbols_F77=no
17667 archive_expsym_cmds_F77=
17668 export_dynamic_flag_spec_F77=
17669 hardcode_direct_F77=no
17670 hardcode_direct_absolute_F77=no
17671 hardcode_libdir_flag_spec_F77=
17672 hardcode_libdir_flag_spec_ld_F77=
17673 hardcode_libdir_separator_F77=
17674 hardcode_minus_L_F77=no
17675 hardcode_automatic_F77=no
17676 inherit_rpath_F77=no
17678 module_expsym_cmds_F77=
17679 link_all_deplibs_F77=unknown
17680 old_archive_cmds_F77=$old_archive_cmds
17681 no_undefined_flag_F77=
17682 whole_archive_flag_spec_F77=
17683 enable_shared_with_static_runtimes_F77=no
17685 # Source file extension for f77 test sources.
17688 # Object file extension for compiled f77 test sources.
17692 # No sense in running all these tests if we already determined that
17693 # the F77 compiler isn't working. Some variables (like enable_shared)
17694 # are currently assumed to apply to all compilers on this platform,
17695 # and will be corrupted by setting them based on a non-working compiler.
17696 if test "$_lt_disable_F77" != yes; then
17697 # Code to be used in simple compile tests
17698 lt_simple_compile_test_code="\
17704 # Code to be used in simple link tests
17705 lt_simple_link_test_code="\
17710 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
17717 # If no C compiler was specified, use CC.
17720 # If no C compiler flags were specified, use CFLAGS.
17721 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
17723 # Allow CC to be a program name with arguments.
17727 # save warnings/boilerplate of simple test code
17728 ac_outfile=conftest.$ac_objext
17729 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
17730 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17731 _lt_compiler_boilerplate=`cat conftest.err`
17734 ac_outfile=conftest.$ac_objext
17735 echo "$lt_simple_link_test_code" >conftest.$ac_ext
17736 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
17737 _lt_linker_boilerplate=`cat conftest.err`
17741 # Allow CC to be a program name with arguments.
17747 for cc_temp in $compiler""; do
17749 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
17750 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
17755 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
17758 if test -n "$compiler"; then
17759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
17760 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
17761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
17762 $as_echo "$can_build_shared" >&6; }
17764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
17765 $as_echo_n "checking whether to build shared libraries... " >&6; }
17766 test "$can_build_shared" = "no" && enable_shared=no
17768 # On AIX, shared libraries and static libraries use the same namespace, and
17769 # are all built from PIC.
17772 test "$enable_shared" = yes && enable_static=no
17773 if test -n "$RANLIB"; then
17774 archive_cmds="$archive_cmds~\$RANLIB \$lib"
17775 postinstall_cmds='$RANLIB $lib'
17779 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
17780 test "$enable_shared" = yes && enable_static=no
17784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
17785 $as_echo "$enable_shared" >&6; }
17787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
17788 $as_echo_n "checking whether to build static libraries... " >&6; }
17789 # Make sure either enable_shared or enable_static is yes.
17790 test "$enable_shared" = yes || enable_static=yes
17791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
17792 $as_echo "$enable_static" >&6; }
17798 ## There is no encapsulation within the following macros, do not change
17799 ## the running order or otherwise move them around unless you know exactly
17800 ## what you are doing...
17801 lt_prog_compiler_wl_F77=
17802 lt_prog_compiler_pic_F77=
17803 lt_prog_compiler_static_F77=
17805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
17806 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
17808 if test "$GCC" = yes; then
17809 lt_prog_compiler_wl_F77='-Wl,'
17810 lt_prog_compiler_static_F77='-static'
17814 # All AIX code is PIC.
17815 if test "$host_cpu" = ia64; then
17816 # AIX 5 now supports IA64 processor
17817 lt_prog_compiler_static_F77='-Bstatic'
17824 # see comment about AmigaOS4 .so support
17825 lt_prog_compiler_pic_F77='-fPIC'
17828 # FIXME: we need at least 68020 code to build shared libraries, but
17829 # adding the `-m68020' flag to GCC prevents building anything better,
17831 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
17836 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
17837 # PIC is the default for these OSes.
17840 mingw* | cygwin* | pw32* | os2* | cegcc*)
17841 # This hack is so that the source file can tell whether it is being
17842 # built for inclusion in a dll (and should export symbols for example).
17843 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17844 # (--disable-auto-import) libraries
17845 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
17848 darwin* | rhapsody*)
17849 # PIC is the default on this platform
17850 # Common symbols not allowed in MH_DYLIB files
17851 lt_prog_compiler_pic_F77='-fno-common'
17855 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
17856 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
17857 # sets the default TLS model and affects inlining.
17863 lt_prog_compiler_pic_F77='-fPIC'
17869 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17870 # Instead, we relocate shared libraries at runtime.
17874 # Just because we use GCC doesn't mean we suddenly get shared libraries
17875 # on systems that don't support them.
17876 lt_prog_compiler_can_build_shared_F77=no
17881 # QNX uses GNU C++, but need to define -shared option too, otherwise
17882 # it will coredump.
17883 lt_prog_compiler_pic_F77='-fPIC -shared'
17887 if test -d /usr/nec; then
17888 lt_prog_compiler_pic_F77=-Kconform_pic
17893 lt_prog_compiler_pic_F77='-fPIC'
17897 # PORTME Check for flag to pass linker flags through the system compiler.
17900 lt_prog_compiler_wl_F77='-Wl,'
17901 if test "$host_cpu" = ia64; then
17902 # AIX 5 now supports IA64 processor
17903 lt_prog_compiler_static_F77='-Bstatic'
17905 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
17909 mingw* | cygwin* | pw32* | os2* | cegcc*)
17910 # This hack is so that the source file can tell whether it is being
17911 # built for inclusion in a dll (and should export symbols for example).
17912 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
17915 hpux9* | hpux10* | hpux11*)
17916 lt_prog_compiler_wl_F77='-Wl,'
17917 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17918 # not for PA HP-UX.
17924 lt_prog_compiler_pic_F77='+Z'
17927 # Is there a better lt_prog_compiler_static that works with the bundled CC?
17928 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
17931 irix5* | irix6* | nonstopux*)
17932 lt_prog_compiler_wl_F77='-Wl,'
17933 # PIC (with -KPIC) is the default.
17934 lt_prog_compiler_static_F77='-non_shared'
17937 linux* | k*bsd*-gnu)
17938 case $cc_basename in
17939 # old Intel for x86_64 which still supported -KPIC.
17941 lt_prog_compiler_wl_F77='-Wl,'
17942 lt_prog_compiler_pic_F77='-KPIC'
17943 lt_prog_compiler_static_F77='-static'
17945 # icc used to be incompatible with GCC.
17946 # ICC 10 doesn't accept -KPIC any more.
17948 lt_prog_compiler_wl_F77='-Wl,'
17949 lt_prog_compiler_pic_F77='-fPIC'
17950 lt_prog_compiler_static_F77='-static'
17952 # Lahey Fortran 8.1.
17954 lt_prog_compiler_wl_F77='-Wl,'
17955 lt_prog_compiler_pic_F77='--shared'
17956 lt_prog_compiler_static_F77='--static'
17958 pgcc* | pgf77* | pgf90* | pgf95*)
17959 # Portland Group compilers (*not* the Pentium gcc compiler,
17960 # which looks to be a dead project)
17961 lt_prog_compiler_wl_F77='-Wl,'
17962 lt_prog_compiler_pic_F77='-fpic'
17963 lt_prog_compiler_static_F77='-Bstatic'
17966 lt_prog_compiler_wl_F77='-Wl,'
17967 # All Alpha code is PIC.
17968 lt_prog_compiler_static_F77='-non_shared'
17971 # IBM XL C 8.0/Fortran 10.1 on PPC
17972 lt_prog_compiler_wl_F77='-Wl,'
17973 lt_prog_compiler_pic_F77='-qpic'
17974 lt_prog_compiler_static_F77='-qstaticlink'
17977 case `$CC -V 2>&1 | sed 5q` in
17980 lt_prog_compiler_pic_F77='-KPIC'
17981 lt_prog_compiler_static_F77='-Bstatic'
17982 lt_prog_compiler_wl_F77='-Wl,'
17985 # Sun Fortran 8.3 passes all unrecognized flags to the linker
17986 lt_prog_compiler_pic_F77='-KPIC'
17987 lt_prog_compiler_static_F77='-Bstatic'
17988 lt_prog_compiler_wl_F77=''
17996 lt_prog_compiler_pic_F77='-KPIC'
17997 lt_prog_compiler_static_F77='-Bstatic'
18001 # QNX uses GNU C++, but need to define -shared option too, otherwise
18002 # it will coredump.
18003 lt_prog_compiler_pic_F77='-fPIC -shared'
18006 osf3* | osf4* | osf5*)
18007 lt_prog_compiler_wl_F77='-Wl,'
18008 # All OSF/1 code is PIC.
18009 lt_prog_compiler_static_F77='-non_shared'
18013 lt_prog_compiler_static_F77='-non_shared'
18017 lt_prog_compiler_pic_F77='-KPIC'
18018 lt_prog_compiler_static_F77='-Bstatic'
18019 case $cc_basename in
18020 f77* | f90* | f95*)
18021 lt_prog_compiler_wl_F77='-Qoption ld ';;
18023 lt_prog_compiler_wl_F77='-Wl,';;
18028 lt_prog_compiler_wl_F77='-Qoption ld '
18029 lt_prog_compiler_pic_F77='-PIC'
18030 lt_prog_compiler_static_F77='-Bstatic'
18033 sysv4 | sysv4.2uw2* | sysv4.3*)
18034 lt_prog_compiler_wl_F77='-Wl,'
18035 lt_prog_compiler_pic_F77='-KPIC'
18036 lt_prog_compiler_static_F77='-Bstatic'
18040 if test -d /usr/nec ;then
18041 lt_prog_compiler_pic_F77='-Kconform_pic'
18042 lt_prog_compiler_static_F77='-Bstatic'
18046 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
18047 lt_prog_compiler_wl_F77='-Wl,'
18048 lt_prog_compiler_pic_F77='-KPIC'
18049 lt_prog_compiler_static_F77='-Bstatic'
18053 lt_prog_compiler_wl_F77='-Wl,'
18054 lt_prog_compiler_can_build_shared_F77=no
18058 lt_prog_compiler_pic_F77='-pic'
18059 lt_prog_compiler_static_F77='-Bstatic'
18063 lt_prog_compiler_can_build_shared_F77=no
18069 # For platforms which do not support PIC, -DPIC is meaningless:
18071 lt_prog_compiler_pic_F77=
18074 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5
18078 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
18083 # Check to make sure the PIC flag actually works.
18085 if test -n "$lt_prog_compiler_pic_F77"; then
18086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
18087 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
18088 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then :
18089 $as_echo_n "(cached) " >&6
18091 lt_cv_prog_compiler_pic_works_F77=no
18092 ac_outfile=conftest.$ac_objext
18093 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18094 lt_compiler_flag="$lt_prog_compiler_pic_F77"
18095 # Insert the option either (1) after the last *FLAGS variable, or
18096 # (2) before a word containing "conftest.", or (3) at the end.
18097 # Note that $ac_compile itself does not contain backslashes and begins
18098 # with a dollar sign (not a hyphen), so the echo should work correctly.
18099 # The option is referenced via a variable to avoid confusing sed.
18100 lt_compile=`echo "$ac_compile" | $SED \
18101 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18102 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18103 -e 's:$: $lt_compiler_flag:'`
18104 (eval echo "\"\$as_me:18104: $lt_compile\"" >&5)
18105 (eval "$lt_compile" 2>conftest.err)
18107 cat conftest.err >&5
18108 echo "$as_me:18108: \$? = $ac_status" >&5
18109 if (exit $ac_status) && test -s "$ac_outfile"; then
18110 # The compiler can only warn and ignore the option if not recognized
18111 # So say no if there are warnings other than the usual output.
18112 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
18113 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18114 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
18115 lt_cv_prog_compiler_pic_works_F77=yes
18121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
18122 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
18124 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
18125 case $lt_prog_compiler_pic_F77 in
18127 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18130 lt_prog_compiler_pic_F77=
18131 lt_prog_compiler_can_build_shared_F77=no
18139 # Check to make sure the static flag actually works.
18141 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
18142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
18143 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
18144 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then :
18145 $as_echo_n "(cached) " >&6
18147 lt_cv_prog_compiler_static_works_F77=no
18148 save_LDFLAGS="$LDFLAGS"
18149 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
18150 echo "$lt_simple_link_test_code" > conftest.$ac_ext
18151 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
18152 # The linker can only warn and ignore the option if not recognized
18153 # So say no if there are warnings
18154 if test -s conftest.err; then
18155 # Append any errors to the config.log.
18156 cat conftest.err 1>&5
18157 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
18158 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
18159 if diff conftest.exp conftest.er2 >/dev/null; then
18160 lt_cv_prog_compiler_static_works_F77=yes
18163 lt_cv_prog_compiler_static_works_F77=yes
18167 LDFLAGS="$save_LDFLAGS"
18170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
18171 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
18173 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
18176 lt_prog_compiler_static_F77=
18182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18183 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18184 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then :
18185 $as_echo_n "(cached) " >&6
18187 lt_cv_prog_compiler_c_o_F77=no
18188 $RM -r conftest 2>/dev/null
18192 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18194 lt_compiler_flag="-o out/conftest2.$ac_objext"
18195 # Insert the option either (1) after the last *FLAGS variable, or
18196 # (2) before a word containing "conftest.", or (3) at the end.
18197 # Note that $ac_compile itself does not contain backslashes and begins
18198 # with a dollar sign (not a hyphen), so the echo should work correctly.
18199 lt_compile=`echo "$ac_compile" | $SED \
18200 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18201 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18202 -e 's:$: $lt_compiler_flag:'`
18203 (eval echo "\"\$as_me:18203: $lt_compile\"" >&5)
18204 (eval "$lt_compile" 2>out/conftest.err)
18206 cat out/conftest.err >&5
18207 echo "$as_me:18207: \$? = $ac_status" >&5
18208 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18210 # The compiler can only warn and ignore the option if not recognized
18211 # So say no if there are warnings
18212 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18213 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18214 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18215 lt_cv_prog_compiler_c_o_F77=yes
18220 # SGI C++ compiler will create directory out/ii_files/ for
18221 # template instantiation
18222 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18223 $RM out/* && rmdir out
18229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
18230 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
18234 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
18235 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
18236 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then :
18237 $as_echo_n "(cached) " >&6
18239 lt_cv_prog_compiler_c_o_F77=no
18240 $RM -r conftest 2>/dev/null
18244 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
18246 lt_compiler_flag="-o out/conftest2.$ac_objext"
18247 # Insert the option either (1) after the last *FLAGS variable, or
18248 # (2) before a word containing "conftest.", or (3) at the end.
18249 # Note that $ac_compile itself does not contain backslashes and begins
18250 # with a dollar sign (not a hyphen), so the echo should work correctly.
18251 lt_compile=`echo "$ac_compile" | $SED \
18252 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
18253 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18254 -e 's:$: $lt_compiler_flag:'`
18255 (eval echo "\"\$as_me:18255: $lt_compile\"" >&5)
18256 (eval "$lt_compile" 2>out/conftest.err)
18258 cat out/conftest.err >&5
18259 echo "$as_me:18259: \$? = $ac_status" >&5
18260 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18262 # The compiler can only warn and ignore the option if not recognized
18263 # So say no if there are warnings
18264 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
18265 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
18266 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
18267 lt_cv_prog_compiler_c_o_F77=yes
18272 # SGI C++ compiler will create directory out/ii_files/ for
18273 # template instantiation
18274 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
18275 $RM out/* && rmdir out
18281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
18282 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
18287 hard_links="nottested"
18288 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
18289 # do not overwrite the value of need_locks provided by the user
18290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
18291 $as_echo_n "checking if we can lock with hard links... " >&6; }
18294 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18296 ln conftest.a conftest.b 2>&5 || hard_links=no
18297 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
18299 $as_echo "$hard_links" >&6; }
18300 if test "$hard_links" = no; then
18301 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18302 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18312 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18315 allow_undefined_flag_F77=
18316 always_export_symbols_F77=no
18318 archive_expsym_cmds_F77=
18319 compiler_needs_object_F77=no
18320 enable_shared_with_static_runtimes_F77=no
18321 export_dynamic_flag_spec_F77=
18322 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18323 hardcode_automatic_F77=no
18324 hardcode_direct_F77=no
18325 hardcode_direct_absolute_F77=no
18326 hardcode_libdir_flag_spec_F77=
18327 hardcode_libdir_flag_spec_ld_F77=
18328 hardcode_libdir_separator_F77=
18329 hardcode_minus_L_F77=no
18330 hardcode_shlibpath_var_F77=unsupported
18331 inherit_rpath_F77=no
18332 link_all_deplibs_F77=unknown
18334 module_expsym_cmds_F77=
18335 old_archive_from_new_cmds_F77=
18336 old_archive_from_expsyms_cmds_F77=
18337 thread_safe_flag_spec_F77=
18338 whole_archive_flag_spec_F77=
18339 # include_expsyms should be a list of space-separated symbols to be *always*
18340 # included in the symbol list
18341 include_expsyms_F77=
18342 # exclude_expsyms can be an extended regexp of symbols to exclude
18343 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18344 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18345 # as well as any symbol that contains `d'.
18346 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
18347 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18348 # platforms (ab)use it in PIC code, but their linkers get confused if
18349 # the symbol is explicitly referenced. Since portable code cannot
18350 # rely on this symbol name, it's probably fine to never include it in
18351 # preloaded symbol tables.
18352 # Exclude shared library initialization/finalization symbols.
18353 extract_expsyms_cmds=
18356 cygwin* | mingw* | pw32* | cegcc*)
18357 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18358 # When not using gcc, we currently assume that we are using
18359 # Microsoft Visual C++.
18360 if test "$GCC" != yes; then
18365 # we just hope/assume this is gcc and not c89 (= MSVC++)
18371 linux* | k*bsd*-gnu)
18372 link_all_deplibs_F77=no
18377 if test "$with_gnu_ld" = yes; then
18378 # If archive_cmds runs LD, not CC, wlarc should be empty
18381 # Set some defaults for GNU ld with shared library support. These
18382 # are reset later if shared libraries are not supported. Putting them
18383 # here allows them to be overridden if necessary.
18384 runpath_var=LD_RUN_PATH
18385 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18386 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
18387 # ancient GNU ld didn't support --whole-archive et. al.
18388 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
18389 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18391 whole_archive_flag_spec_F77=
18393 supports_anon_versioning=no
18394 case `$LD -v 2>&1` in
18395 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
18396 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
18397 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
18398 *\ 2.11.*) ;; # other 2.11 versions
18399 *) supports_anon_versioning=yes ;;
18402 # See if GNU ld supports shared libraries.
18405 # On AIX/PPC, the GNU linker is very broken
18406 if test "$host_cpu" != ia64; then
18410 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
18411 *** to be unable to reliably create shared libraries on AIX.
18412 *** Therefore, libtool is disabling shared libraries support. If you
18413 *** really care for shared libraries, you may want to modify your PATH
18414 *** so that a non-GNU linker is found, and then restart.
18423 # see comment about AmigaOS4 .so support
18424 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18425 archive_expsym_cmds_F77=''
18428 archive_cmds_F77='$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)'
18429 hardcode_libdir_flag_spec_F77='-L$libdir'
18430 hardcode_minus_L_F77=yes
18436 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18437 allow_undefined_flag_F77=unsupported
18438 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18439 # support --undefined. This deserves some investigation. FIXME
18440 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18446 cygwin* | mingw* | pw32* | cegcc*)
18447 # _LT_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
18448 # as there is no search path for DLLs.
18449 hardcode_libdir_flag_spec_F77='-L$libdir'
18450 allow_undefined_flag_F77=unsupported
18451 always_export_symbols_F77=no
18452 enable_shared_with_static_runtimes_F77=yes
18453 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
18455 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18456 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18457 # If the export-symbols file already is a .def file (1st line
18458 # is EXPORTS), use it as is; otherwise, prepend...
18459 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18460 cp $export_symbols $output_objdir/$soname.def;
18462 echo EXPORTS > $output_objdir/$soname.def;
18463 cat $export_symbols >> $output_objdir/$soname.def;
18465 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
18472 hardcode_direct_F77=no
18473 hardcode_shlibpath_var_F77=no
18474 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
18475 export_dynamic_flag_spec_F77='${wl}-E'
18476 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
18477 # Instead, shared libraries are loaded at an image base (0x10000000 by
18478 # default) and relocated if they conflict, which is a slow very memory
18479 # consuming and fragmenting process. To avoid this, we pick a random,
18480 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
18481 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
18482 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
18483 archive_expsym_cmds_F77='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'
18486 gnu* | linux* | tpf* | k*bsd*-gnu)
18488 if test "$host_os" = linux-dietlibc; then
18489 case $cc_basename in
18490 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
18493 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
18494 && test "$tmp_diet" = no
18497 tmp_sharedflag='-shared'
18498 case $cc_basename,$host_cpu in
18499 pgcc*) # Portland Group C compiler
18500 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
18501 tmp_addflag=' $pic_flag'
18503 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
18504 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
18505 tmp_addflag=' $pic_flag -Mnomain' ;;
18506 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
18507 tmp_addflag=' -i_dynamic' ;;
18508 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
18509 tmp_addflag=' -i_dynamic -nofor_main' ;;
18510 ifc* | ifort*) # Intel Fortran compiler
18511 tmp_addflag=' -nofor_main' ;;
18512 lf95*) # Lahey Fortran 8.1
18513 whole_archive_flag_spec_F77=
18514 tmp_sharedflag='--shared' ;;
18515 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
18516 tmp_sharedflag='-qmkshrobj'
18519 case `$CC -V 2>&1 | sed 5q` in
18520 *Sun\ C*) # Sun C 5.9
18521 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
18522 compiler_needs_object_F77=yes
18523 tmp_sharedflag='-G' ;;
18524 *Sun\ F*) # Sun Fortran 8.3
18525 tmp_sharedflag='-G' ;;
18527 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18529 if test "x$supports_anon_versioning" = xyes; then
18530 archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
18531 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18532 echo "local: *; };" >> $output_objdir/$libname.ver~
18533 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
18536 case $cc_basename in
18538 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
18539 whole_archive_flag_spec_F77='--whole-archive$convenience --no-whole-archive'
18540 hardcode_libdir_flag_spec_F77=
18541 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
18542 archive_cmds_F77='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
18543 if test "x$supports_anon_versioning" = xyes; then
18544 archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
18545 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
18546 echo "local: *; };" >> $output_objdir/$libname.ver~
18547 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
18556 netbsd* | netbsdelf*-gnu)
18557 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
18558 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
18561 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18562 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18567 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
18571 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
18572 *** create shared libraries on Solaris systems. Therefore, libtool
18573 *** is disabling shared libraries support. We urge you to upgrade GNU
18574 *** binutils to release 2.9.1 or newer. Another option is to modify
18575 *** your PATH or compiler configuration so that the native linker is
18576 *** used, and then restart.
18579 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18580 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18581 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18587 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
18588 case `$LD -v 2>&1` in
18589 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
18593 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
18594 *** reliably create shared libraries on SCO systems. Therefore, libtool
18595 *** is disabling shared libraries support. We urge you to upgrade GNU
18596 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
18597 *** your PATH or compiler configuration so that the native linker is
18598 *** used, and then restart.
18603 # For security reasons, it is highly recommended that you always
18604 # use absolute paths for naming shared libraries, and exclude the
18605 # DT_RUNPATH tag from executables and libraries. But doing so
18606 # requires that you compile everything twice, which is a pain.
18607 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18608 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
18609 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18610 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18619 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18621 hardcode_direct_F77=yes
18622 hardcode_shlibpath_var_F77=no
18626 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18627 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18628 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
18635 if test "$ld_shlibs_F77" = no; then
18637 hardcode_libdir_flag_spec_F77=
18638 export_dynamic_flag_spec_F77=
18639 whole_archive_flag_spec_F77=
18642 # PORTME fill in a description of your system's linker (not GNU ld)
18645 allow_undefined_flag_F77=unsupported
18646 always_export_symbols_F77=yes
18647 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
18648 # Note: this linker hardcodes the directories in LIBPATH if there
18649 # are no directories specified by -L.
18650 hardcode_minus_L_F77=yes
18651 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
18652 # Neither direct hardcoding nor static linking is supported with a
18654 hardcode_direct_F77=unsupported
18659 if test "$host_cpu" = ia64; then
18660 # On IA64, the linker does run time linking by default, so we don't
18661 # have to do anything special.
18662 aix_use_runtimelinking=no
18663 exp_sym_flag='-Bexport'
18666 # If we're using GNU nm, then we don't want the "-C" option.
18667 # -C means demangle to AIX nm, but means don't demangle with GNU nm
18668 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
18669 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
18671 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
18673 aix_use_runtimelinking=no
18675 # Test if we are trying to use run time linking or normal
18676 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18677 # need to do runtime linking.
18678 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18679 for ld_flag in $LDFLAGS; do
18680 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
18681 aix_use_runtimelinking=yes
18688 exp_sym_flag='-bexport'
18689 no_entry_flag='-bnoentry'
18692 # When large executables or shared objects are built, AIX ld can
18693 # have problems creating the table of contents. If linking a library
18694 # or program results in "error TOC overflow" add -mminimal-toc to
18695 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18696 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18698 archive_cmds_F77=''
18699 hardcode_direct_F77=yes
18700 hardcode_direct_absolute_F77=yes
18701 hardcode_libdir_separator_F77=':'
18702 link_all_deplibs_F77=yes
18703 file_list_spec_F77='${wl}-f,'
18705 if test "$GCC" = yes; then
18706 case $host_os in aix4.[012]|aix4.[012].*)
18707 # We only want to do this on AIX 4.2 and lower, the check
18708 # below for broken collect2 doesn't work under 4.3+
18709 collect2name=`${CC} -print-prog-name=collect2`
18710 if test -f "$collect2name" &&
18711 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18713 # We have reworked collect2
18716 # We have old collect2
18717 hardcode_direct_F77=unsupported
18718 # It fails to find uninstalled libraries when the uninstalled
18719 # path is not listed in the libpath. Setting hardcode_minus_L
18720 # to unsupported forces relinking
18721 hardcode_minus_L_F77=yes
18722 hardcode_libdir_flag_spec_F77='-L$libdir'
18723 hardcode_libdir_separator_F77=
18727 shared_flag='-shared'
18728 if test "$aix_use_runtimelinking" = yes; then
18729 shared_flag="$shared_flag "'${wl}-G'
18731 link_all_deplibs_F77=no
18734 if test "$host_cpu" = ia64; then
18735 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18736 # chokes on -Wl,-G. The following line is correct:
18739 if test "$aix_use_runtimelinking" = yes; then
18740 shared_flag='${wl}-G'
18742 shared_flag='${wl}-bM:SRE'
18747 export_dynamic_flag_spec_F77='${wl}-bexpall'
18748 # It seems that -bexpall does not export symbols beginning with
18749 # underscore (_), so it is better to generate a list of symbols to export.
18750 always_export_symbols_F77=yes
18751 if test "$aix_use_runtimelinking" = yes; then
18752 # Warning - without using the other runtime loading flags (-brtl),
18753 # -berok will link without error, but may produce a broken library.
18754 allow_undefined_flag_F77='-berok'
18755 # Determine the default libpath from the value encoded in an
18756 # empty executable.
18757 cat > conftest.$ac_ext <<_ACEOF
18762 if ac_fn_f77_try_link "$LINENO"; then :
18764 lt_aix_libpath_sed='
18765 /Import File Strings/,/^$/ {
18771 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18772 # Check for a 64-bit object if we didn't find anything.
18773 if test -z "$aix_libpath"; then
18774 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18777 rm -f core conftest.err conftest.$ac_objext \
18778 conftest$ac_exeext conftest.$ac_ext
18779 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18781 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
18782 archive_expsym_cmds_F77='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
18784 if test "$host_cpu" = ia64; then
18785 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
18786 allow_undefined_flag_F77="-z nodefs"
18787 archive_expsym_cmds_F77="\$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"
18789 # Determine the default libpath from the value encoded in an
18790 # empty executable.
18791 cat > conftest.$ac_ext <<_ACEOF
18796 if ac_fn_f77_try_link "$LINENO"; then :
18798 lt_aix_libpath_sed='
18799 /Import File Strings/,/^$/ {
18805 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18806 # Check for a 64-bit object if we didn't find anything.
18807 if test -z "$aix_libpath"; then
18808 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18811 rm -f core conftest.err conftest.$ac_objext \
18812 conftest$ac_exeext conftest.$ac_ext
18813 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18815 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
18816 # Warning - without using the other run time loading flags,
18817 # -berok will link without error, but may produce a broken library.
18818 no_undefined_flag_F77=' ${wl}-bernotok'
18819 allow_undefined_flag_F77=' ${wl}-berok'
18820 # Exported symbols can be pulled into shared objects from archives
18821 whole_archive_flag_spec_F77='$convenience'
18822 archive_cmds_need_lc_F77=yes
18823 # This is similar to how AIX traditionally builds its shared libraries.
18824 archive_expsym_cmds_F77="\$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'
18832 # see comment about AmigaOS4 .so support
18833 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18834 archive_expsym_cmds_F77=''
18837 archive_cmds_F77='$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)'
18838 hardcode_libdir_flag_spec_F77='-L$libdir'
18839 hardcode_minus_L_F77=yes
18845 export_dynamic_flag_spec_F77=-rdynamic
18848 cygwin* | mingw* | pw32* | cegcc*)
18849 # When not using gcc, we currently assume that we are using
18850 # Microsoft Visual C++.
18851 # hardcode_libdir_flag_spec is actually meaningless, as there is
18852 # no search path for DLLs.
18853 hardcode_libdir_flag_spec_F77=' '
18854 allow_undefined_flag_F77=unsupported
18855 # Tell ltmain to make .lib files, not .a files.
18857 # Tell ltmain to make .dll files, not .so files.
18859 # FIXME: Setting linknames here is a bad hack.
18860 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
18861 # The linker will automatically build a .lib file if we build a DLL.
18862 old_archive_from_new_cmds_F77='true'
18863 # FIXME: Should let the user specify the lib program.
18864 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
18865 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
18866 enable_shared_with_static_runtimes_F77=yes
18869 darwin* | rhapsody*)
18872 archive_cmds_need_lc_F77=no
18873 hardcode_direct_F77=no
18874 hardcode_automatic_F77=yes
18875 hardcode_shlibpath_var_F77=unsupported
18876 whole_archive_flag_spec_F77=''
18877 link_all_deplibs_F77=yes
18878 allow_undefined_flag_F77="$_lt_dar_allow_undefined"
18879 case $cc_basename in
18880 ifort*) _lt_dar_can_shared=yes ;;
18881 *) _lt_dar_can_shared=$GCC ;;
18883 if test "$_lt_dar_can_shared" = "yes"; then
18884 output_verbose_link_cmd=echo
18885 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
18886 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18887 archive_expsym_cmds_F77="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}"
18888 module_expsym_cmds_F77="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}"
18897 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
18898 hardcode_libdir_flag_spec_F77='-L$libdir'
18899 hardcode_shlibpath_var_F77=no
18906 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
18907 # support. Future versions do this automatically, but an explicit c++rt0.o
18908 # does not break anything, and helps significantly (at the cost of a little
18911 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
18912 hardcode_libdir_flag_spec_F77='-R$libdir'
18913 hardcode_direct_F77=yes
18914 hardcode_shlibpath_var_F77=no
18917 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
18919 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
18920 hardcode_direct_F77=yes
18921 hardcode_minus_L_F77=yes
18922 hardcode_shlibpath_var_F77=no
18925 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
18926 freebsd* | dragonfly*)
18927 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
18928 hardcode_libdir_flag_spec_F77='-R$libdir'
18929 hardcode_direct_F77=yes
18930 hardcode_shlibpath_var_F77=no
18934 if test "$GCC" = yes; then
18935 archive_cmds_F77='$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'
18937 archive_cmds_F77='$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'
18939 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
18940 hardcode_libdir_separator_F77=:
18941 hardcode_direct_F77=yes
18943 # hardcode_minus_L: Not really in the search PATH,
18944 # but as the default location of the library.
18945 hardcode_minus_L_F77=yes
18946 export_dynamic_flag_spec_F77='${wl}-E'
18950 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18951 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18953 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
18955 if test "$with_gnu_ld" = no; then
18956 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
18957 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
18958 hardcode_libdir_separator_F77=:
18959 hardcode_direct_F77=yes
18960 hardcode_direct_absolute_F77=yes
18961 export_dynamic_flag_spec_F77='${wl}-E'
18962 # hardcode_minus_L: Not really in the search PATH,
18963 # but as the default location of the library.
18964 hardcode_minus_L_F77=yes
18969 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
18972 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18975 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18978 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18984 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
18987 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
18990 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
18994 if test "$with_gnu_ld" = no; then
18995 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
18996 hardcode_libdir_separator_F77=:
19000 hardcode_direct_F77=no
19001 hardcode_shlibpath_var_F77=no
19004 hardcode_direct_F77=yes
19005 hardcode_direct_absolute_F77=yes
19006 export_dynamic_flag_spec_F77='${wl}-E'
19008 # hardcode_minus_L: Not really in the search PATH,
19009 # but as the default location of the library.
19010 hardcode_minus_L_F77=yes
19016 irix5* | irix6* | nonstopux*)
19017 if test "$GCC" = yes; then
19018 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19019 # Try to use the -exported_symbol ld option, if it does not
19020 # work, assume that -exports_file does not work either and
19021 # implicitly export all symbols.
19022 save_LDFLAGS="$LDFLAGS"
19023 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
19024 cat > conftest.$ac_ext <<_ACEOF
19027 if ac_fn_f77_try_link "$LINENO"; then :
19028 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
19031 rm -f core conftest.err conftest.$ac_objext \
19032 conftest$ac_exeext conftest.$ac_ext
19033 LDFLAGS="$save_LDFLAGS"
19035 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
19036 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
19038 archive_cmds_need_lc_F77='no'
19039 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19040 hardcode_libdir_separator_F77=:
19041 inherit_rpath_F77=yes
19042 link_all_deplibs_F77=yes
19045 netbsd* | netbsdelf*-gnu)
19046 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19047 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19049 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19051 hardcode_libdir_flag_spec_F77='-R$libdir'
19052 hardcode_direct_F77=yes
19053 hardcode_shlibpath_var_F77=no
19057 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19058 hardcode_direct_F77=yes
19059 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19060 hardcode_libdir_separator_F77=:
19061 hardcode_shlibpath_var_F77=no
19068 if test -f /usr/libexec/ld.so; then
19069 hardcode_direct_F77=yes
19070 hardcode_shlibpath_var_F77=no
19071 hardcode_direct_absolute_F77=yes
19072 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19073 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19074 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
19075 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19076 export_dynamic_flag_spec_F77='${wl}-E'
19079 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19080 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19081 hardcode_libdir_flag_spec_F77='-R$libdir'
19084 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19085 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19095 hardcode_libdir_flag_spec_F77='-L$libdir'
19096 hardcode_minus_L_F77=yes
19097 allow_undefined_flag_F77=unsupported
19098 archive_cmds_F77='$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'
19099 old_archive_from_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19103 if test "$GCC" = yes; then
19104 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19105 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19107 allow_undefined_flag_F77=' -expect_unresolved \*'
19108 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
19110 archive_cmds_need_lc_F77='no'
19111 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19112 hardcode_libdir_separator_F77=:
19115 osf4* | osf5*) # as osf3* with the addition of -msym flag
19116 if test "$GCC" = yes; then
19117 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19118 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
19119 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19121 allow_undefined_flag_F77=' -expect_unresolved \*'
19122 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
19123 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
19124 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
19126 # Both c and cxx compiler support -rpath directly
19127 hardcode_libdir_flag_spec_F77='-rpath $libdir'
19129 archive_cmds_need_lc_F77='no'
19130 hardcode_libdir_separator_F77=:
19134 no_undefined_flag_F77=' -z defs'
19135 if test "$GCC" = yes; then
19137 archive_cmds_F77='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19138 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19139 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
19141 case `$CC -V 2>&1` in
19144 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19145 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19146 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
19150 archive_cmds_F77='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
19151 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19152 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
19156 hardcode_libdir_flag_spec_F77='-R$libdir'
19157 hardcode_shlibpath_var_F77=no
19159 solaris2.[0-5] | solaris2.[0-5].*) ;;
19161 # The compiler driver will combine and reorder linker options,
19162 # but understands `-z linker_flag'. GCC discards it without `$wl',
19163 # but is careful enough not to reorder.
19164 # Supported since Solaris 2.6 (maybe 2.5.1?)
19165 if test "$GCC" = yes; then
19166 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19168 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
19172 link_all_deplibs_F77=yes
19176 if test "x$host_vendor" = xsequent; then
19177 # Use $CC to link under sequent, because it throws in some extra .o
19178 # files that make .init and .fini sections work.
19179 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19181 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19183 hardcode_libdir_flag_spec_F77='-L$libdir'
19184 hardcode_direct_F77=yes
19185 hardcode_minus_L_F77=yes
19186 hardcode_shlibpath_var_F77=no
19190 case $host_vendor in
19192 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19193 hardcode_direct_F77=yes # is this really true???
19196 ## LD is ld it makes a PLAMLIB
19197 ## CC just makes a GrossModule.
19198 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19199 reload_cmds_F77='$CC -r -o $output$reload_objs'
19200 hardcode_direct_F77=no
19203 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19204 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19207 runpath_var='LD_RUN_PATH'
19208 hardcode_shlibpath_var_F77=no
19212 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19213 hardcode_shlibpath_var_F77=no
19214 export_dynamic_flag_spec_F77='-Bexport'
19218 if test -d /usr/nec; then
19219 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19220 hardcode_shlibpath_var_F77=no
19221 runpath_var=LD_RUN_PATH
19222 hardcode_runpath_var=yes
19227 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19228 no_undefined_flag_F77='${wl}-z,text'
19229 archive_cmds_need_lc_F77=no
19230 hardcode_shlibpath_var_F77=no
19231 runpath_var='LD_RUN_PATH'
19233 if test "$GCC" = yes; then
19234 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19235 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19237 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19238 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19242 sysv5* | sco3.2v5* | sco5v6*)
19243 # Note: We can NOT use -z defs as we might desire, because we do not
19244 # link with -lc, and that would cause any symbols used from libc to
19245 # always be unresolved, which means just about no library would
19246 # ever link correctly. If we're not using GNU ld we use -z text
19247 # though, which does catch some bad symbols but isn't as heavy-handed
19249 no_undefined_flag_F77='${wl}-z,text'
19250 allow_undefined_flag_F77='${wl}-z,nodefs'
19251 archive_cmds_need_lc_F77=no
19252 hardcode_shlibpath_var_F77=no
19253 hardcode_libdir_flag_spec_F77='${wl}-R,$libdir'
19254 hardcode_libdir_separator_F77=':'
19255 link_all_deplibs_F77=yes
19256 export_dynamic_flag_spec_F77='${wl}-Bexport'
19257 runpath_var='LD_RUN_PATH'
19259 if test "$GCC" = yes; then
19260 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19261 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19263 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19264 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19269 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19270 hardcode_libdir_flag_spec_F77='-L$libdir'
19271 hardcode_shlibpath_var_F77=no
19279 if test x$host_vendor = xsni; then
19281 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
19282 export_dynamic_flag_spec_F77='${wl}-Blargedynsym'
19288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
19289 $as_echo "$ld_shlibs_F77" >&6; }
19290 test "$ld_shlibs_F77" = no && can_build_shared=no
19292 with_gnu_ld_F77=$with_gnu_ld
19300 # Do we need to explicitly link libc?
19302 case "x$archive_cmds_need_lc_F77" in
19304 # Assume -lc should be added
19305 archive_cmds_need_lc_F77=yes
19307 if test "$enable_shared" = yes && test "$GCC" = yes; then
19308 case $archive_cmds_F77 in
19310 # FIXME: we may have to deal with multi-command sequences.
19313 # Test whether the compiler implicitly links with -lc since on some
19314 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19315 # to ld, don't add -lc before -lgcc.
19316 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
19317 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
19319 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
19321 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19322 (eval $ac_compile) 2>&5
19324 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19325 test $ac_status = 0; } 2>conftest.err; then
19328 libobjs=conftest.$ac_objext
19330 wl=$lt_prog_compiler_wl_F77
19331 pic_flag=$lt_prog_compiler_pic_F77
19337 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19338 allow_undefined_flag_F77=
19339 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
19340 (eval $archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
19342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19343 test $ac_status = 0; }
19345 archive_cmds_need_lc_F77=no
19347 archive_cmds_need_lc_F77=yes
19349 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19351 cat conftest.err 1>&5
19354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5
19355 $as_echo "$archive_cmds_need_lc_F77" >&6; }
19425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
19426 $as_echo_n "checking dynamic linker characteristics... " >&6; }
19428 library_names_spec=
19429 libname_spec='lib$name'
19433 postuninstall_cmds=
19437 shlibpath_overrides_runpath=unknown
19439 dynamic_linker="$host_os ld.so"
19440 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19441 need_lib_prefix=unknown
19442 hardcode_into_libs=no
19444 # when you set need_version to no, make sure it does not cause -set_version
19445 # flags to be left without arguments
19446 need_version=unknown
19451 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19452 shlibpath_var=LIBPATH
19454 # AIX 3 has no versioning support, so we append a major version to the name.
19455 soname_spec='${libname}${release}${shared_ext}$major'
19462 hardcode_into_libs=yes
19463 if test "$host_cpu" = ia64; then
19464 # AIX 5 supports IA64
19465 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19466 shlibpath_var=LD_LIBRARY_PATH
19468 # With GCC up to 2.95.x, collect2 would create an import file
19469 # for dependence libraries. The import file would start with
19470 # the line `#! .'. This would cause the generated library to
19471 # depend on `.', always an invalid library. This was fixed in
19472 # development snapshots of GCC prior to 3.0.
19474 aix4 | aix4.[01] | aix4.[01].*)
19475 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19477 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
19480 can_build_shared=no
19484 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19485 # soname into executable. Probably we can add versioning support to
19486 # collect2, so additional links can be useful in future.
19487 if test "$aix_use_runtimelinking" = yes; then
19488 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19489 # instead of lib<name>.a to let people know that these are not
19490 # typical AIX shared libraries.
19491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19493 # We preserve .a as extension for shared libraries through AIX4.2
19494 # and later when we are not doing run time linking.
19495 library_names_spec='${libname}${release}.a $libname.a'
19496 soname_spec='${libname}${release}${shared_ext}$major'
19498 shlibpath_var=LIBPATH
19505 # Since July 2007 AmigaOS4 officially supports .so libraries.
19506 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
19507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19510 library_names_spec='$libname.ixlibrary $libname.a'
19511 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19512 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$ECHO "X$lib" | $Xsed -e '\''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'
19518 library_names_spec='${libname}${shared_ext}'
19519 dynamic_linker="$host_os ld.so"
19520 shlibpath_var=LIBRARY_PATH
19526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19527 soname_spec='${libname}${release}${shared_ext}$major'
19528 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19529 shlibpath_var=LD_LIBRARY_PATH
19530 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19531 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19532 # the default ld.so.conf also contains /usr/contrib/lib and
19533 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19534 # libtool to hard-code these into programs
19537 cygwin* | mingw* | pw32* | cegcc*)
19538 version_type=windows
19543 case $GCC,$host_os in
19544 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
19545 library_names_spec='$libname.dll.a'
19546 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19547 postinstall_cmds='base_file=`basename \${file}`~
19548 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
19549 dldir=$destdir/`dirname \$dlpath`~
19550 test -d \$dldir || mkdir -p \$dldir~
19551 $install_prog $dir/$dlname \$dldir/$dlname~
19552 chmod a+x \$dldir/$dlname~
19553 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
19554 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
19556 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19557 dlpath=$dir/\$dldll~
19559 shlibpath_overrides_runpath=yes
19563 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19564 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19565 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19568 # MinGW DLLs use traditional 'lib' prefix
19569 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19570 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19571 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
19572 # It is most probably a Windows format PATH printed by
19573 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19574 # path with ; separators, and with drive letters. We can handle the
19575 # drive letters (cygwin fileutils understands them), so leave them,
19576 # especially as we might pass files found there to a mingw objdump,
19577 # which wouldn't understand a cygwinified path. Ahh.
19578 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19580 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19584 # pw32 DLLs use 'pw' prefix rather than 'lib'
19585 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19591 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
19594 dynamic_linker='Win32 ld.exe'
19595 # FIXME: first we should search . and the directory the executable is in
19599 darwin* | rhapsody*)
19600 dynamic_linker="$host_os dyld"
19601 version_type=darwin
19604 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
19605 soname_spec='${libname}${release}${major}$shared_ext'
19606 shlibpath_overrides_runpath=yes
19607 shlibpath_var=DYLD_LIBRARY_PATH
19608 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
19610 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
19617 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
19618 soname_spec='${libname}${release}${shared_ext}$major'
19619 shlibpath_var=LD_LIBRARY_PATH
19626 freebsd* | dragonfly*)
19627 # DragonFly does not have aout. When/if they implement a new
19628 # versioning mechanism, adjust this.
19629 if test -x /usr/bin/objformat; then
19630 objformat=`/usr/bin/objformat`
19633 freebsd[123]*) objformat=aout ;;
19634 *) objformat=elf ;;
19637 version_type=freebsd-$objformat
19638 case $version_type in
19640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19645 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
19649 shlibpath_var=LD_LIBRARY_PATH
19652 shlibpath_overrides_runpath=yes
19654 freebsd3.[01]* | freebsdelf3.[01]*)
19655 shlibpath_overrides_runpath=yes
19656 hardcode_into_libs=yes
19658 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
19659 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
19660 shlibpath_overrides_runpath=no
19661 hardcode_into_libs=yes
19663 *) # from 4.6 on, and DragonFly
19664 shlibpath_overrides_runpath=yes
19665 hardcode_into_libs=yes
19674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
19675 soname_spec='${libname}${release}${shared_ext}$major'
19676 shlibpath_var=LD_LIBRARY_PATH
19677 hardcode_into_libs=yes
19680 hpux9* | hpux10* | hpux11*)
19681 # Give a soname corresponding to the major version so that dld.sl refuses to
19682 # link against other versions.
19689 hardcode_into_libs=yes
19690 dynamic_linker="$host_os dld.so"
19691 shlibpath_var=LD_LIBRARY_PATH
19692 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19694 soname_spec='${libname}${release}${shared_ext}$major'
19695 if test "X$HPUX_IA64_MODE" = X32; then
19696 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
19698 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
19700 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19704 hardcode_into_libs=yes
19705 dynamic_linker="$host_os dld.sl"
19706 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
19707 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
19708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19709 soname_spec='${libname}${release}${shared_ext}$major'
19710 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
19711 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
19715 dynamic_linker="$host_os dld.sl"
19716 shlibpath_var=SHLIB_PATH
19717 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
19718 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19719 soname_spec='${libname}${release}${shared_ext}$major'
19722 # HP-UX runs *really* slowly unless shared libraries are mode 555.
19723 postinstall_cmds='chmod 555 $lib'
19730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19731 soname_spec='${libname}${release}${shared_ext}$major'
19732 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
19733 shlibpath_var=LD_LIBRARY_PATH
19734 shlibpath_overrides_runpath=no
19735 hardcode_into_libs=yes
19738 irix5* | irix6* | nonstopux*)
19740 nonstopux*) version_type=nonstopux ;;
19742 if test "$lt_cv_prog_gnu_ld" = yes; then
19750 soname_spec='${libname}${release}${shared_ext}$major'
19751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
19753 irix5* | nonstopux*)
19754 libsuff= shlibsuff=
19757 case $LD in # libtool.m4 will add one of these switches to LD
19758 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
19759 libsuff= shlibsuff= libmagic=32-bit;;
19760 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
19761 libsuff=32 shlibsuff=N32 libmagic=N32;;
19762 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
19763 libsuff=64 shlibsuff=64 libmagic=64-bit;;
19764 *) libsuff= shlibsuff= libmagic=never-match;;
19768 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
19769 shlibpath_overrides_runpath=no
19770 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
19771 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
19772 hardcode_into_libs=yes
19775 # No shared lib support for Linux oldld, aout, or coff.
19776 linux*oldld* | linux*aout* | linux*coff*)
19780 # This must be Linux ELF.
19781 linux* | k*bsd*-gnu)
19785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19786 soname_spec='${libname}${release}${shared_ext}$major'
19787 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
19788 shlibpath_var=LD_LIBRARY_PATH
19789 shlibpath_overrides_runpath=no
19790 # Some binutils ld are patched to set DT_RUNPATH
19791 save_LDFLAGS=$LDFLAGS
19792 save_libdir=$libdir
19793 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_F77\"; \
19794 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_F77\""
19795 cat > conftest.$ac_ext <<_ACEOF
19800 if ac_fn_f77_try_link "$LINENO"; then :
19801 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
19802 shlibpath_overrides_runpath=yes
19805 rm -f core conftest.err conftest.$ac_objext \
19806 conftest$ac_exeext conftest.$ac_ext
19807 LDFLAGS=$save_LDFLAGS
19808 libdir=$save_libdir
19810 # This implies no fast_install, which is unacceptable.
19811 # Some rework will be needed to allow for fast_install
19812 # before this can be enabled.
19813 hardcode_into_libs=yes
19815 # Append ld.so.conf contents to the search path
19816 if test -f /etc/ld.so.conf; then
19817 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;/^$/d' | tr '\n' ' '`
19818 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
19821 # We used to test for /lib/ld.so.1 and disable shared libraries on
19822 # powerpc, because MkLinux only supported shared libraries with the
19823 # GNU dynamic linker. Since this was broken with cross compilers,
19824 # most powerpc-linux boxes support dynamic linking these days and
19825 # people can always --disable-shared, the test was removed, and we
19826 # assume the GNU/Linux dynamic linker is in use.
19827 dynamic_linker='GNU/Linux ld.so'
19834 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19835 soname_spec='${libname}${release}${shared_ext}$major'
19836 shlibpath_var=LD_LIBRARY_PATH
19837 shlibpath_overrides_runpath=no
19838 hardcode_into_libs=yes
19839 dynamic_linker='NetBSD ld.elf_so'
19846 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19848 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19849 dynamic_linker='NetBSD (a.out) ld.so'
19851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
19852 soname_spec='${libname}${release}${shared_ext}$major'
19853 dynamic_linker='NetBSD ld.elf_so'
19855 shlibpath_var=LD_LIBRARY_PATH
19856 shlibpath_overrides_runpath=yes
19857 hardcode_into_libs=yes
19862 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19863 shlibpath_var=LD_LIBRARY_PATH
19864 shlibpath_overrides_runpath=yes
19871 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19872 soname_spec='${libname}${release}${shared_ext}$major'
19873 shlibpath_var=LD_LIBRARY_PATH
19874 shlibpath_overrides_runpath=no
19875 hardcode_into_libs=yes
19876 dynamic_linker='ldqnx.so'
19881 sys_lib_dlsearch_path_spec="/usr/lib"
19883 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
19885 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
19886 *) need_version=no ;;
19888 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19889 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
19890 shlibpath_var=LD_LIBRARY_PATH
19891 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19893 openbsd2.[89] | openbsd2.[89].*)
19894 shlibpath_overrides_runpath=no
19897 shlibpath_overrides_runpath=yes
19901 shlibpath_overrides_runpath=yes
19906 libname_spec='$name'
19909 library_names_spec='$libname${shared_ext} $libname.a'
19910 dynamic_linker='OS/2 ld.exe'
19911 shlibpath_var=LIBPATH
19914 osf3* | osf4* | osf5*)
19918 soname_spec='${libname}${release}${shared_ext}$major'
19919 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19920 shlibpath_var=LD_LIBRARY_PATH
19921 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
19922 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
19933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19934 soname_spec='${libname}${release}${shared_ext}$major'
19935 shlibpath_var=LD_LIBRARY_PATH
19936 shlibpath_overrides_runpath=yes
19937 hardcode_into_libs=yes
19938 # ldd complains unless libraries are executable
19939 postinstall_cmds='chmod +x $lib'
19944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
19945 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
19946 shlibpath_var=LD_LIBRARY_PATH
19947 shlibpath_overrides_runpath=yes
19948 if test "$with_gnu_ld" = yes; then
19956 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19957 soname_spec='${libname}${release}${shared_ext}$major'
19958 shlibpath_var=LD_LIBRARY_PATH
19959 case $host_vendor in
19961 shlibpath_overrides_runpath=no
19963 runpath_var=LD_RUN_PATH
19971 shlibpath_overrides_runpath=no
19972 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
19978 if test -d /usr/nec ;then
19980 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
19981 soname_spec='$libname${shared_ext}.$major'
19982 shlibpath_var=LD_LIBRARY_PATH
19986 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
19987 version_type=freebsd-elf
19990 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
19991 soname_spec='${libname}${release}${shared_ext}$major'
19992 shlibpath_var=LD_LIBRARY_PATH
19993 shlibpath_overrides_runpath=yes
19994 hardcode_into_libs=yes
19995 if test "$with_gnu_ld" = yes; then
19996 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
19998 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
20001 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
20005 sys_lib_dlsearch_path_spec='/usr/lib'
20009 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
20013 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20014 shlibpath_var=LD_LIBRARY_PATH
20015 shlibpath_overrides_runpath=no
20016 hardcode_into_libs=yes
20021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20022 soname_spec='${libname}${release}${shared_ext}$major'
20023 shlibpath_var=LD_LIBRARY_PATH
20030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
20031 $as_echo "$dynamic_linker" >&6; }
20032 test "$dynamic_linker" = no && can_build_shared=no
20034 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
20035 if test "$GCC" = yes; then
20036 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20039 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
20040 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
20042 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
20043 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
20081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
20082 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
20083 hardcode_action_F77=
20084 if test -n "$hardcode_libdir_flag_spec_F77" ||
20085 test -n "$runpath_var_F77" ||
20086 test "X$hardcode_automatic_F77" = "Xyes" ; then
20088 # We can hardcode non-existent directories.
20089 if test "$hardcode_direct_F77" != no &&
20090 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20091 # have to relink, otherwise we might link with an installed library
20092 # when we should be linking with a yet-to-be-installed one
20093 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20094 test "$hardcode_minus_L_F77" != no; then
20095 # Linking always hardcodes the temporary library directory.
20096 hardcode_action_F77=relink
20098 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20099 hardcode_action_F77=immediate
20102 # We cannot hardcode anything, or else we can only hardcode existing
20104 hardcode_action_F77=unsupported
20106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
20107 $as_echo "$hardcode_action_F77" >&6; }
20109 if test "$hardcode_action_F77" = relink ||
20110 test "$inherit_rpath_F77" = yes; then
20111 # Fast installation is not supported
20112 enable_fast_install=no
20113 elif test "$shlibpath_overrides_runpath" = yes ||
20114 test "$enable_shared" = no; then
20115 # Fast installation is not necessary
20116 enable_fast_install=needless
20125 fi # test -n "$compiler"
20129 fi # test "$_lt_disable_F77" != yes
20132 ac_cpp='$CPP $CPPFLAGS'
20133 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20134 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20135 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20147 ac_config_commands="$ac_config_commands libtool"
20152 # Only expand once:
20158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc __attribute__ ((mode (XX))) works" >&5
20159 $as_echo_n "checking whether gcc __attribute__ ((mode (XX))) works... " >&6; }
20160 if test "${gmp_cv_c_attribute_mode+set}" = set; then :
20161 $as_echo_n "(cached) " >&6
20163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20164 /* end confdefs.h. */
20165 typedef int SItype __attribute__ ((mode (SI)));
20174 if ac_fn_c_try_compile "$LINENO"; then :
20175 gmp_cv_c_attribute_mode=yes
20177 gmp_cv_c_attribute_mode=no
20179 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_attribute_mode" >&5
20183 $as_echo "$gmp_cv_c_attribute_mode" >&6; }
20184 if test $gmp_cv_c_attribute_mode = yes; then
20186 $as_echo "#define HAVE_ATTRIBUTE_MODE 1" >>confdefs.h
20193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for recent GMP" >&5
20194 $as_echo_n "checking for recent GMP... " >&6; }
20195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20196 /* end confdefs.h. */
20199 #if (__GNU_MP_VERSION*100+__GNU_MP_VERSION_MINOR*10 < 410)
20200 # error "min GMP version is 4.1.0"
20205 if ac_fn_c_try_compile "$LINENO"; then :
20206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20207 $as_echo "yes" >&6; }
20210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20211 $as_echo "no" >&6; }
20212 as_fn_error "GMP 4.1.0 min required" "$LINENO" 5
20215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20217 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gmp internal files" >&5
20218 $as_echo_n "checking for gmp internal files... " >&6; }
20219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20220 /* end confdefs.h. */
20223 #include "gmp-impl.h"
20224 #include "longlong.h"
20227 if ac_fn_c_try_compile "$LINENO"; then :
20229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20230 $as_echo "yes" >&6; }
20232 $as_echo "#define MPFR_HAVE_GMP_IMPL 1" >>confdefs.h
20234 gmp_internal_file_check=yes
20238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20239 $as_echo "no" >&6; }
20240 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
20241 # for constant arguments. Useless!
20242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
20243 $as_echo_n "checking for working alloca.h... " >&6; }
20244 if test "${ac_cv_working_alloca_h+set}" = set; then :
20245 $as_echo_n "(cached) " >&6
20247 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20248 /* end confdefs.h. */
20249 #include <alloca.h>
20253 char *p = (char *) alloca (2 * sizeof (int));
20259 if ac_fn_c_try_link "$LINENO"; then :
20260 ac_cv_working_alloca_h=yes
20262 ac_cv_working_alloca_h=no
20264 rm -f core conftest.err conftest.$ac_objext \
20265 conftest$ac_exeext conftest.$ac_ext
20267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5
20268 $as_echo "$ac_cv_working_alloca_h" >&6; }
20269 if test $ac_cv_working_alloca_h = yes; then
20271 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
20275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5
20276 $as_echo_n "checking for alloca... " >&6; }
20277 if test "${ac_cv_func_alloca_works+set}" = set; then :
20278 $as_echo_n "(cached) " >&6
20280 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20281 /* end confdefs.h. */
20283 # define alloca __builtin_alloca
20286 # include <malloc.h>
20287 # define alloca _alloca
20289 # ifdef HAVE_ALLOCA_H
20290 # include <alloca.h>
20295 # ifndef alloca /* predefined by HP cc +Olibcalls */
20306 char *p = (char *) alloca (1);
20312 if ac_fn_c_try_link "$LINENO"; then :
20313 ac_cv_func_alloca_works=yes
20315 ac_cv_func_alloca_works=no
20317 rm -f core conftest.err conftest.$ac_objext \
20318 conftest$ac_exeext conftest.$ac_ext
20320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5
20321 $as_echo "$ac_cv_func_alloca_works" >&6; }
20323 if test $ac_cv_func_alloca_works = yes; then
20325 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
20328 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
20329 # that cause trouble. Some versions do not even contain alloca or
20330 # contain a buggy version. If you still want to use their alloca,
20331 # use ar to extract alloca.o from them instead of compiling alloca.c.
20333 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
20335 $as_echo "#define C_ALLOCA 1" >>confdefs.h
20338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5
20339 $as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; }
20340 if test "${ac_cv_os_cray+set}" = set; then :
20341 $as_echo_n "(cached) " >&6
20343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20344 /* end confdefs.h. */
20345 #if defined CRAY && ! defined CRAY2
20352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
20353 $EGREP "webecray" >/dev/null 2>&1; then :
20361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5
20362 $as_echo "$ac_cv_os_cray" >&6; }
20363 if test $ac_cv_os_cray = yes; then
20364 for ac_func in _getb67 GETB67 getb67; do
20365 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
20366 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
20367 eval as_val=\$$as_ac_var
20368 if test "x$as_val" = x""yes; then :
20370 cat >>confdefs.h <<_ACEOF
20371 #define CRAY_STACKSEG_END $ac_func
20380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5
20381 $as_echo_n "checking stack direction for C alloca... " >&6; }
20382 if test "${ac_cv_c_stack_direction+set}" = set; then :
20383 $as_echo_n "(cached) " >&6
20385 if test "$cross_compiling" = yes; then :
20386 ac_cv_c_stack_direction=0
20388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20389 /* end confdefs.h. */
20390 $ac_includes_default
20392 find_stack_direction ()
20394 static char *addr = 0;
20399 return find_stack_direction ();
20402 return (&dummy > addr) ? 1 : -1;
20408 return find_stack_direction () < 0;
20411 if ac_fn_c_try_run "$LINENO"; then :
20412 ac_cv_c_stack_direction=1
20414 ac_cv_c_stack_direction=-1
20416 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20417 conftest.$ac_objext conftest.beam conftest.$ac_ext
20421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5
20422 $as_echo "$ac_cv_c_stack_direction" >&6; }
20423 cat >>confdefs.h <<_ACEOF
20424 #define STACK_DIRECTION $ac_cv_c_stack_direction
20432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20434 if test -n "$gmp_internal_file_check" ; then
20435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for valid BITS_PER_MP_LIMB and BYTES_PER_MP_LIMB" >&5
20436 $as_echo_n "checking for valid BITS_PER_MP_LIMB and BYTES_PER_MP_LIMB... " >&6; }
20437 if test "$cross_compiling" = yes; then :
20438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: can't test" >&5
20439 $as_echo "can't test" >&6; }
20441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20442 /* end confdefs.h. */
20444 #include <limits.h>
20446 #include "gmp-impl.h"
20452 #ifndef BITS_PER_MP_LIMB
20453 #define BITS_PER_MP_LIMB GMP_LIMB_BITS
20455 return BITS_PER_MP_LIMB == BYTES_PER_MP_LIMB * CHAR_BIT
20456 && sizeof(mp_limb_t) == BYTES_PER_MP_LIMB ? 0 : 1;
20462 if ac_fn_c_try_run "$LINENO"; then :
20463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20464 $as_echo "yes" >&6; }
20467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20468 $as_echo "no" >&6; }
20469 as_fn_error "BITS_PER_MP_LIMB or BYTES_PER_MP_LIMB are incorrect.
20470 You probably need to change some of the GMP or MPFR compile options." "$LINENO" 5
20472 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20473 conftest.$ac_objext conftest.beam conftest.$ac_ext
20479 if test "$dont_link_with_gmp" = yes ; then
20483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __gmpz_init in -lgmp" >&5
20484 $as_echo_n "checking for __gmpz_init in -lgmp... " >&6; }
20485 if test "${ac_cv_lib_gmp___gmpz_init+set}" = set; then :
20486 $as_echo_n "(cached) " >&6
20488 ac_check_lib_save_LIBS=$LIBS
20490 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20491 /* end confdefs.h. */
20493 /* Override any GCC internal prototype to avoid an error.
20494 Use char because int might match the return type of a GCC
20495 builtin and then its argument prototype would still apply. */
20499 char __gmpz_init ();
20503 return __gmpz_init ();
20508 if ac_fn_c_try_link "$LINENO"; then :
20509 ac_cv_lib_gmp___gmpz_init=yes
20511 ac_cv_lib_gmp___gmpz_init=no
20513 rm -f core conftest.err conftest.$ac_objext \
20514 conftest$ac_exeext conftest.$ac_ext
20515 LIBS=$ac_check_lib_save_LIBS
20517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gmp___gmpz_init" >&5
20518 $as_echo "$ac_cv_lib_gmp___gmpz_init" >&6; }
20519 if test "x$ac_cv_lib_gmp___gmpz_init" = x""yes; then :
20522 as_fn_error "libgmp not found or uses a different ABI.
20523 Please read the INSTALL file -- see \"In case of problem\"." "$LINENO" 5
20527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmp.h version and libgmp version are the same" >&5
20528 $as_echo_n "checking if gmp.h version and libgmp version are the same... " >&6; }
20529 saved_LD_RUN_PATH="$LD_RUN_PATH"
20530 LD_RUN_PATH="${LD_RUN_PATH:+$LD_RUN_PATH$PATH_SEPARATOR}$gmp_lib_path"
20532 if test "$cross_compiling" = yes; then :
20533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: can not test" >&5
20534 $as_echo "can not test" >&6; }
20537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20538 /* end confdefs.h. */
20541 #include <string.h>
20549 sprintf (buffer, "%d.%d.%d", __GNU_MP_VERSION, __GNU_MP_VERSION_MINOR,
20550 __GNU_MP_VERSION_PATCHLEVEL);
20551 printf ("(%s/%s) ", buffer, gmp_version);
20552 if (strcmp (buffer, gmp_version) == 0)
20554 if (__GNU_MP_VERSION_PATCHLEVEL != 0)
20556 sprintf (buffer, "%d.%d", __GNU_MP_VERSION, __GNU_MP_VERSION_MINOR);
20557 return (strcmp (buffer, gmp_version) != 0) ? 1 : 0;
20563 if ac_fn_c_try_run "$LINENO"; then :
20564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20565 $as_echo "yes" >&6; }
20567 if test "$ac_cv_type_intmax_t" = yes; then
20569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports \"%jd\"" >&5
20570 $as_echo_n "checking if gmp_printf supports \"%jd\"... " >&6; }
20571 if test "$cross_compiling" = yes; then :
20572 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20573 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20574 as_fn_error "cannot run test program while cross compiling
20575 See \`config.log' for more details." "$LINENO" 5; }
20577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20578 /* end confdefs.h. */
20582 #ifdef HAVE_STDINT_H
20583 # include <stdint.h>
20585 #ifdef HAVE_INTTYPES_H
20586 # include <inttypes.h>
20598 if (gmp_sprintf (s, "(%0.0jd)(%d)", a, 42) == -1) return 1;
20599 return (strcmp (s, "(17)(42)") != 0);
20605 if ac_fn_c_try_run "$LINENO"; then :
20606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20607 $as_echo "yes" >&6; }
20610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20611 $as_echo "no" >&6; }
20613 $as_echo "#define NPRINTF_J 1" >>confdefs.h
20616 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20617 conftest.$ac_objext conftest.beam conftest.$ac_ext
20624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports \"%hhd\"" >&5
20625 $as_echo_n "checking if gmp_printf supports \"%hhd\"... " >&6; }
20626 if test "$cross_compiling" = yes; then :
20627 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20628 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20629 as_fn_error "cannot run test program while cross compiling
20630 See \`config.log' for more details." "$LINENO" 5; }
20632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20633 /* end confdefs.h. */
20648 if (gmp_sprintf (s, "(%0.0hhd)(%d)", a, 42) == -1) return 1;
20649 return (strcmp (s, "(17)(42)") != 0);
20655 if ac_fn_c_try_run "$LINENO"; then :
20656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20657 $as_echo "yes" >&6; }
20660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20661 $as_echo "no" >&6; }
20663 $as_echo "#define NPRINTF_HH 1" >>confdefs.h
20666 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20667 conftest.$ac_objext conftest.beam conftest.$ac_ext
20673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports \"%lld\"" >&5
20674 $as_echo_n "checking if gmp_printf supports \"%lld\"... " >&6; }
20675 if test "$cross_compiling" = yes; then :
20676 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20677 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20678 as_fn_error "cannot run test program while cross compiling
20679 See \`config.log' for more details." "$LINENO" 5; }
20681 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20682 /* end confdefs.h. */
20695 long long int a = 17;
20697 if (gmp_sprintf (s, "(%0.0lld)(%d)", a, 42) == -1) return 1;
20698 return (strcmp (s, "(17)(42)") != 0);
20704 if ac_fn_c_try_run "$LINENO"; then :
20705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20706 $as_echo "yes" >&6; }
20709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20710 $as_echo "no" >&6; }
20712 $as_echo "#define NPRINTF_LL 1" >>confdefs.h
20715 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20716 conftest.$ac_objext conftest.beam conftest.$ac_ext
20722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports \"%Lf\"" >&5
20723 $as_echo_n "checking if gmp_printf supports \"%Lf\"... " >&6; }
20724 if test "$cross_compiling" = yes; then :
20725 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20726 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20727 as_fn_error "cannot run test program while cross compiling
20728 See \`config.log' for more details." "$LINENO" 5; }
20730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20731 /* end confdefs.h. */
20744 long double a = 17;
20746 if (gmp_sprintf (s, "(%0.0Lf)(%d)", a, 42) == -1) return 1;
20747 return (strcmp (s, "(17)(42)") != 0);
20753 if ac_fn_c_try_run "$LINENO"; then :
20754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20755 $as_echo "yes" >&6; }
20758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20759 $as_echo "no" >&6; }
20761 $as_echo "#define NPRINTF_L 1" >>confdefs.h
20764 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20765 conftest.$ac_objext conftest.beam conftest.$ac_ext
20771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gmp_printf supports \"%td\"" >&5
20772 $as_echo_n "checking if gmp_printf supports \"%td\"... " >&6; }
20773 if test "$cross_compiling" = yes; then :
20774 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
20775 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
20776 as_fn_error "cannot run test program while cross compiling
20777 See \`config.log' for more details." "$LINENO" 5; }
20779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20780 /* end confdefs.h. */
20784 #if defined (__cplusplus)
20787 #include <stddef.h>
20800 if (gmp_sprintf (s, "(%0.0td)(%d)", a, 42) == -1) return 1;
20801 return (strcmp (s, "(17)(42)") != 0);
20807 if ac_fn_c_try_run "$LINENO"; then :
20808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
20809 $as_echo "yes" >&6; }
20812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20813 $as_echo "no" >&6; }
20815 $as_echo "#define NPRINTF_T 1" >>confdefs.h
20818 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20819 conftest.$ac_objext conftest.beam conftest.$ac_ext
20825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20826 $as_echo "no" >&6; }
20827 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'gmp.h' and 'libgmp' seems to have different versions or" >&5
20828 $as_echo "$as_me: WARNING: 'gmp.h' and 'libgmp' seems to have different versions or" >&2;}
20829 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: we cannot run a program linked with GMP (if you cannot" >&5
20830 $as_echo "$as_me: WARNING: we cannot run a program linked with GMP (if you cannot" >&2;}
20831 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: see the version numbers above)." >&5
20832 $as_echo "$as_me: WARNING: see the version numbers above)." >&2;}
20833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: However since we can't use 'libtool' inside the configure," >&5
20834 $as_echo "$as_me: WARNING: However since we can't use 'libtool' inside the configure," >&2;}
20835 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: we can't be sure. See 'config.log' for details." >&5
20836 $as_echo "$as_me: WARNING: we can't be sure. See 'config.log' for details." >&2;}
20839 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
20840 conftest.$ac_objext conftest.beam conftest.$ac_ext
20843 LD_RUN_PATH="$saved_LD_RUN_PATH"
20847 if test -f confdefs.h; then
20848 sed '/#define PACKAGE_/d' <confdefs.h >confdefs.tmp
20849 sed '/#define HAVE_STRING/d' <confdefs.tmp >confdefs.h
20850 sed '/#define HAVE_ALLOCA /d' <confdefs.h >confdefs.tmp
20851 sed '/#define HAVE_DLFCN_H/d' <confdefs.tmp >confdefs.h
20852 sed '/#define HAVE_MEM/d' <confdefs.h >confdefs.tmp
20853 sed '/#define STDC_HEADERS/d' <confdefs.tmp >confdefs.h
20854 sed '/#define HAVE_STRTOL/d' <confdefs.h >confdefs.tmp
20855 sed '/#define HAVE_STDLIB_H/d' <confdefs.tmp >confdefs.h
20856 sed '/#define HAVE_UNISTD_H/d' <confdefs.h >confdefs.tmp
20857 sed '/#define HAVE_STDC_HEADERS/d' <confdefs.tmp >confdefs.h
20858 sed '/#define HAVE_LONG_DOUBLE/d' <confdefs.h >confdefs.tmp
20859 sed '/#define HAVE_SYS_STAT_H/d' <confdefs.tmp >confdefs.h
20860 sed '/#define HAVE_SYS_TYPES_H/d' <confdefs.h >confdefs.tmp
20861 sed '/#define PROTOTYPES/d' <confdefs.tmp >confdefs.h
20862 sed '/#define __PROTOTYPES/d' <confdefs.h >confdefs.tmp
20864 mv confdefs.tmp confdefs.h
20867 ac_config_files="$ac_config_files Makefile tests/Makefile mparam.h:mparam_h.in"
20869 cat >confcache <<\_ACEOF
20870 # This file is a shell script that caches the results of configure
20871 # tests run on this system so they can be shared between configure
20872 # scripts and configure runs, see configure's option --config-cache.
20873 # It is not useful on other systems. If it contains results you don't
20874 # want to keep, you may remove or edit it.
20876 # config.status only pays attention to the cache file if you give it
20877 # the --recheck option to rerun configure.
20879 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20880 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20881 # following values.
20885 # The following way of writing the cache mishandles newlines in values,
20886 # but we know of no workaround that is simple, portable, and efficient.
20887 # So, we kill variables containing newlines.
20888 # Ultrix sh set writes to stderr and can't be redirected directly,
20889 # and sets the high bit in the cache file unless we assign to the vars.
20891 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20892 eval ac_val=\$$ac_var
20896 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
20897 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
20900 _ | IFS | as_nl) ;; #(
20901 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
20902 *) { eval $ac_var=; unset $ac_var;} ;;
20908 case $as_nl`(ac_space=' '; set) 2>&1` in #(
20909 *${as_nl}ac_space=\ *)
20910 # `set' does not quote correctly, so add quotes: double-quote
20911 # substitution turns \\\\ into \\, and sed turns \\ into \.
20914 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20917 # `set' quotes correctly as required by POSIX, so do not add quotes.
20918 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20927 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20929 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20931 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20932 if test -w "$cache_file"; then
20933 test "x$cache_file" != "x/dev/null" &&
20934 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
20935 $as_echo "$as_me: updating cache $cache_file" >&6;}
20936 cat confcache >$cache_file
20938 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
20939 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20944 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20945 # Let make expand exec_prefix.
20946 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20948 # Transform confdefs.h into DEFS.
20949 # Protect against shell expansion while executing Makefile rules.
20950 # Protect against Makefile macro expansion.
20952 # If the first sed substitution is executed (which looks for macros that
20953 # take arguments), then branch to the quote section. Otherwise,
20954 # look for a macro that doesn't take arguments.
20964 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
20966 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
20970 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
20983 DEFS=`sed -n "$ac_script" confdefs.h`
20988 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20989 # 1. Remove the extension, and $U if already installed.
20990 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20991 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
20992 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
20993 # will be set to the directory where LIBOBJS objects are built.
20994 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20995 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
20997 LIBOBJS=$ac_libobjs
20999 LTLIBOBJS=$ac_ltlibobjs
21002 if test -n "$EXEEXT"; then
21004 am__EXEEXT_FALSE='#'
21006 am__EXEEXT_TRUE='#'
21010 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
21011 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
21012 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21014 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
21015 as_fn_error "conditional \"AMDEP\" was never defined.
21016 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21018 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
21019 as_fn_error "conditional \"am__fastdepCC\" was never defined.
21020 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21022 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21023 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
21024 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21026 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
21027 as_fn_error "conditional \"am__fastdepCXX\" was never defined.
21028 Usually this means the macro was only invoked conditionally." "$LINENO" 5
21031 : ${CONFIG_STATUS=./config.status}
21033 ac_clean_files_save=$ac_clean_files
21034 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21035 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
21036 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
21038 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
21040 # Generated by $as_me.
21041 # Run this file to recreate the current configuration.
21042 # Compiler output produced by configure, useful for debugging
21043 # configure, is in config.log if it exists.
21046 ac_cs_recheck=false
21049 SHELL=\${CONFIG_SHELL-$SHELL}
21052 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
21053 ## -------------------- ##
21054 ## M4sh Initialization. ##
21055 ## -------------------- ##
21057 # Be more Bourne compatible
21058 DUALCASE=1; export DUALCASE # for MKS sh
21059 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
21062 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21063 # is contrary to our usage. Disable this feature.
21064 alias -g '${1+"$@"}'='"$@"'
21065 setopt NO_GLOB_SUBST
21067 case `(set -o) 2>/dev/null` in #(
21079 # Printing a long string crashes Solaris 7 /usr/bin/printf.
21080 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
21081 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
21082 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
21083 # Prefer a ksh shell builtin over an external printf program on Solaris,
21084 # but without wasting forks for bash or zsh.
21085 if test -z "$BASH_VERSION$ZSH_VERSION" \
21086 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
21087 as_echo='print -r --'
21088 as_echo_n='print -rn --'
21089 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
21090 as_echo='printf %s\n'
21091 as_echo_n='printf %s'
21093 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
21094 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
21095 as_echo_n='/usr/ucb/echo -n'
21097 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
21098 as_echo_n_body='eval
21102 expr "X$arg" : "X\\(.*\\)$as_nl";
21103 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
21105 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
21107 export as_echo_n_body
21108 as_echo_n='sh -c $as_echo_n_body as_echo'
21110 export as_echo_body
21111 as_echo='sh -c $as_echo_body as_echo'
21114 # The user is always right.
21115 if test "${PATH_SEPARATOR+set}" != set; then
21117 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
21118 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
21125 # We need space, tab and new line, in precisely that order. Quoting is
21126 # there to prevent editors from complaining about space-tab.
21127 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21128 # splitting by setting IFS to empty value.)
21131 # Find who we are. Look in the path if we contain no directory separator.
21133 *[\\/]* ) as_myself=$0 ;;
21134 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21135 for as_dir in $PATH
21138 test -z "$as_dir" && as_dir=.
21139 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21145 # We did not find ourselves, most probably we were run as `sh COMMAND'
21146 # in which case we are not to be found in the path.
21147 if test "x$as_myself" = x; then
21150 if test ! -f "$as_myself"; then
21151 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21155 # Unset variables that we do not need and which cause bugs (e.g. in
21156 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
21157 # suppresses any "Segmentation fault" message there. '((' could
21158 # trigger a bug in pdksh 5.2.14.
21159 for as_var in BASH_ENV ENV MAIL MAILPATH
21160 do eval test x\${$as_var+set} = xset \
21161 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
21174 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21177 # as_fn_error ERROR [LINENO LOG_FD]
21178 # ---------------------------------
21179 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
21180 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
21181 # script with status $?, using 1 if that was 0.
21184 as_status=$?; test $as_status -eq 0 && as_status=1
21186 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
21187 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
21189 $as_echo "$as_me: error: $1" >&2
21190 as_fn_exit $as_status
21194 # as_fn_set_status STATUS
21195 # -----------------------
21196 # Set $? to STATUS, without forking.
21197 as_fn_set_status ()
21200 } # as_fn_set_status
21202 # as_fn_exit STATUS
21203 # -----------------
21204 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
21208 as_fn_set_status $1
21214 # Portably unset VAR.
21217 { eval $1=; unset $1;}
21219 as_unset=as_fn_unset
21220 # as_fn_append VAR VALUE
21221 # ----------------------
21222 # Append the text in VALUE to the end of the definition contained in VAR. Take
21223 # advantage of any shell optimizations that allow amortized linear growth over
21224 # repeated appends, instead of the typical quadratic growth present in naive
21226 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
21227 eval 'as_fn_append ()
21238 # as_fn_arith ARG...
21239 # ------------------
21240 # Perform arithmetic evaluation on the ARGs, and store the result in the
21241 # global $as_val. Take advantage of shells that can avoid forks. The arguments
21242 # must be portable across $(()) and expr.
21243 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
21244 eval 'as_fn_arith ()
21251 as_val=`expr "$@" || test $? -eq 1`
21256 if expr a : '\(a\)' >/dev/null 2>&1 &&
21257 test "X`expr 00001 : '.*\(...\)'`" = X001; then
21263 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21264 as_basename=basename
21269 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21275 as_me=`$as_basename -- "$0" ||
21276 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21277 X"$0" : 'X\(//\)$' \| \
21278 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21280 sed '/^.*\/\([^/][^/]*\)\/*$/{
21294 # Avoid depending upon Character Ranges.
21295 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21296 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21297 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21298 as_cr_digits='0123456789'
21299 as_cr_alnum=$as_cr_Letters$as_cr_digits
21301 ECHO_C= ECHO_N= ECHO_T=
21302 case `echo -n x` in #(((((
21304 case `echo 'xy\c'` in
21305 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
21307 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
21314 rm -f conf$$ conf$$.exe conf$$.file
21315 if test -d conf$$.dir; then
21316 rm -f conf$$.dir/conf$$.file
21319 mkdir conf$$.dir 2>/dev/null
21321 if (echo >conf$$.file) 2>/dev/null; then
21322 if ln -s conf$$.file conf$$ 2>/dev/null; then
21324 # ... but there are two gotchas:
21325 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21326 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21327 # In both cases, we have to default to `cp -p'.
21328 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21330 elif ln conf$$.file conf$$ 2>/dev/null; then
21338 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21339 rmdir conf$$.dir 2>/dev/null
21344 # Create "$as_dir" as a directory, including parents if necessary.
21349 -*) as_dir=./$as_dir;;
21351 test -d "$as_dir" || eval $as_mkdir_p || {
21355 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
21356 *) as_qdir=$as_dir;;
21358 as_dirs="'$as_qdir' $as_dirs"
21359 as_dir=`$as_dirname -- "$as_dir" ||
21360 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21361 X"$as_dir" : 'X\(//\)[^/]' \| \
21362 X"$as_dir" : 'X\(//\)$' \| \
21363 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21364 $as_echo X"$as_dir" |
21365 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21369 /^X\(\/\/\)[^/].*/{
21382 test -d "$as_dir" && break
21384 test -z "$as_dirs" || eval "mkdir $as_dirs"
21385 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
21389 if mkdir -p . 2>/dev/null; then
21390 as_mkdir_p='mkdir -p "$as_dir"'
21392 test -d ./-p && rmdir ./-p
21396 if test -x / >/dev/null 2>&1; then
21397 as_test_x='test -x'
21399 if ls -dL / >/dev/null 2>&1; then
21406 if test -d "$1"; then
21412 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
21413 ???[sx]*):;;*)false;;esac;fi
21417 as_executable_p=$as_test_x
21419 # Sed expression to map a string onto a valid CPP name.
21420 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21422 # Sed expression to map a string onto a valid variable name.
21423 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21427 ## ----------------------------------- ##
21428 ## Main body of $CONFIG_STATUS script. ##
21429 ## ----------------------------------- ##
21431 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
21433 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21434 # Save the log message, to keep $0 and so on meaningful, and to
21435 # report actual input values of CONFIG_FILES etc. instead of their
21436 # values after options handling.
21438 This file was extended by MPFR $as_me 2.4.2, which was
21439 generated by GNU Autoconf 2.64. Invocation command line was
21441 CONFIG_FILES = $CONFIG_FILES
21442 CONFIG_HEADERS = $CONFIG_HEADERS
21443 CONFIG_LINKS = $CONFIG_LINKS
21444 CONFIG_COMMANDS = $CONFIG_COMMANDS
21447 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21452 case $ac_config_files in *"
21453 "*) set x $ac_config_files; shift; ac_config_files=$*;;
21458 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21459 # Files that config.status was made for.
21460 config_files="$ac_config_files"
21461 config_commands="$ac_config_commands"
21465 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21467 \`$as_me' instantiates files and other configuration actions
21468 from templates according to the current configuration. Unless the files
21469 and actions are specified as TAGs, all are instantiated by default.
21471 Usage: $0 [OPTION]... [TAG]...
21473 -h, --help print this help, then exit
21474 -V, --version print version number and configuration settings, then exit
21475 -q, --quiet, --silent
21476 do not print progress messages
21477 -d, --debug don't remove temporary files
21478 --recheck update $as_me by reconfiguring in the same conditions
21479 --file=FILE[:TEMPLATE]
21480 instantiate the configuration file FILE
21482 Configuration files:
21485 Configuration commands:
21488 Report bugs to the package provider."
21491 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21493 MPFR config.status 2.4.2
21494 configured by $0, generated by GNU Autoconf 2.64,
21495 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21497 Copyright (C) 2009 Free Software Foundation, Inc.
21498 This config.status script is free software; the Free Software Foundation
21499 gives unlimited permission to copy, distribute and modify it."
21506 test -n "\$AWK" || AWK=awk
21509 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21510 # The default lists apply if the user does not specify any file.
21516 ac_option=`expr "X$1" : 'X\([^=]*\)='`
21517 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21528 # Handling of the options.
21529 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21531 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21532 $as_echo "$ac_cs_version"; exit ;;
21533 --debug | --debu | --deb | --de | --d | -d )
21535 --file | --fil | --fi | --f )
21538 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
21540 as_fn_append CONFIG_FILES " '$ac_optarg'"
21541 ac_need_defaults=false;;
21542 --he | --h | --help | --hel | -h )
21543 $as_echo "$ac_cs_usage"; exit ;;
21544 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21545 | -silent | --silent | --silen | --sile | --sil | --si | --s)
21548 # This is an error.
21549 -*) as_fn_error "unrecognized option: \`$1'
21550 Try \`$0 --help' for more information." ;;
21552 *) as_fn_append ac_config_targets " $1"
21553 ac_need_defaults=false ;;
21559 ac_configure_extra_args=
21561 if $ac_cs_silent; then
21563 ac_configure_extra_args="$ac_configure_extra_args --silent"
21567 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21568 if \$ac_cs_recheck; then
21569 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21571 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
21572 CONFIG_SHELL='$SHELL'
21573 export CONFIG_SHELL
21578 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
21582 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21583 ## Running $as_me. ##
21589 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
21593 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
21596 # The HP-UX ksh and POSIX shell print the target directory to stdout
21597 # if CDPATH is set.
21598 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
21600 sed_quote_subst='$sed_quote_subst'
21601 double_quote_subst='$double_quote_subst'
21602 delay_variable_subst='$delay_variable_subst'
21603 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
21604 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
21605 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
21606 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
21607 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
21608 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
21609 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
21610 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
21611 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
21612 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
21613 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
21614 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
21615 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
21616 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
21617 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
21618 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
21619 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
21620 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
21621 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
21622 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
21623 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
21624 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
21625 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
21626 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
21627 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
21628 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
21629 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
21630 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
21631 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
21632 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
21633 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21634 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
21635 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
21636 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
21637 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21638 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
21639 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
21640 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21641 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21642 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21643 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
21644 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
21645 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
21646 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
21647 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
21648 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
21649 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
21650 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
21651 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
21652 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
21653 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
21654 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
21655 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
21656 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
21657 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
21658 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
21659 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
21660 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
21661 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
21662 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
21663 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
21664 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
21665 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
21666 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
21667 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21668 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21669 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
21670 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
21671 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21672 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21673 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
21674 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21675 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21676 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21677 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21678 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21679 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21680 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
21681 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21682 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
21683 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
21684 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
21685 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
21686 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
21687 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
21688 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
21689 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21690 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
21691 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
21692 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
21693 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
21694 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
21695 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21696 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21697 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
21698 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21699 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
21700 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
21701 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
21702 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
21703 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
21704 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21705 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
21706 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
21707 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21708 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
21709 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
21710 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21711 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21712 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
21713 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
21714 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
21715 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21716 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
21717 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
21718 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
21719 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
21720 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
21721 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
21722 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
21723 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
21724 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
21725 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
21726 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
21727 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
21728 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
21729 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21730 LD_F77='`$ECHO "X$LD_F77" | $Xsed -e "$delay_single_quote_subst"`'
21731 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21732 old_archive_cmds_F77='`$ECHO "X$old_archive_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
21733 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21734 compiler_F77='`$ECHO "X$compiler_F77" | $Xsed -e "$delay_single_quote_subst"`'
21735 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21736 GCC_F77='`$ECHO "X$GCC_F77" | $Xsed -e "$delay_single_quote_subst"`'
21737 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21738 lt_prog_compiler_no_builtin_flag_F77='`$ECHO "X$lt_prog_compiler_no_builtin_flag_F77" | $Xsed -e "$delay_single_quote_subst"`'
21739 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21740 lt_prog_compiler_wl_F77='`$ECHO "X$lt_prog_compiler_wl_F77" | $Xsed -e "$delay_single_quote_subst"`'
21741 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21742 lt_prog_compiler_pic_F77='`$ECHO "X$lt_prog_compiler_pic_F77" | $Xsed -e "$delay_single_quote_subst"`'
21743 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21744 lt_prog_compiler_static_F77='`$ECHO "X$lt_prog_compiler_static_F77" | $Xsed -e "$delay_single_quote_subst"`'
21745 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21746 lt_cv_prog_compiler_c_o_F77='`$ECHO "X$lt_cv_prog_compiler_c_o_F77" | $Xsed -e "$delay_single_quote_subst"`'
21747 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21748 archive_cmds_need_lc_F77='`$ECHO "X$archive_cmds_need_lc_F77" | $Xsed -e "$delay_single_quote_subst"`'
21749 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21750 enable_shared_with_static_runtimes_F77='`$ECHO "X$enable_shared_with_static_runtimes_F77" | $Xsed -e "$delay_single_quote_subst"`'
21751 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21752 export_dynamic_flag_spec_F77='`$ECHO "X$export_dynamic_flag_spec_F77" | $Xsed -e "$delay_single_quote_subst"`'
21753 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21754 whole_archive_flag_spec_F77='`$ECHO "X$whole_archive_flag_spec_F77" | $Xsed -e "$delay_single_quote_subst"`'
21755 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21756 compiler_needs_object_F77='`$ECHO "X$compiler_needs_object_F77" | $Xsed -e "$delay_single_quote_subst"`'
21757 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21758 old_archive_from_new_cmds_F77='`$ECHO "X$old_archive_from_new_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
21759 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21760 old_archive_from_expsyms_cmds_F77='`$ECHO "X$old_archive_from_expsyms_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
21761 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21762 archive_cmds_F77='`$ECHO "X$archive_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
21763 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21764 archive_expsym_cmds_F77='`$ECHO "X$archive_expsym_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
21765 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21766 module_cmds_F77='`$ECHO "X$module_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
21767 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21768 module_expsym_cmds_F77='`$ECHO "X$module_expsym_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
21769 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21770 with_gnu_ld_F77='`$ECHO "X$with_gnu_ld_F77" | $Xsed -e "$delay_single_quote_subst"`'
21771 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21772 allow_undefined_flag_F77='`$ECHO "X$allow_undefined_flag_F77" | $Xsed -e "$delay_single_quote_subst"`'
21773 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21774 no_undefined_flag_F77='`$ECHO "X$no_undefined_flag_F77" | $Xsed -e "$delay_single_quote_subst"`'
21775 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21776 hardcode_libdir_flag_spec_F77='`$ECHO "X$hardcode_libdir_flag_spec_F77" | $Xsed -e "$delay_single_quote_subst"`'
21777 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21778 hardcode_libdir_flag_spec_ld_F77='`$ECHO "X$hardcode_libdir_flag_spec_ld_F77" | $Xsed -e "$delay_single_quote_subst"`'
21779 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21780 hardcode_libdir_separator_F77='`$ECHO "X$hardcode_libdir_separator_F77" | $Xsed -e "$delay_single_quote_subst"`'
21781 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21782 hardcode_direct_F77='`$ECHO "X$hardcode_direct_F77" | $Xsed -e "$delay_single_quote_subst"`'
21783 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21784 hardcode_direct_absolute_F77='`$ECHO "X$hardcode_direct_absolute_F77" | $Xsed -e "$delay_single_quote_subst"`'
21785 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21786 hardcode_minus_L_F77='`$ECHO "X$hardcode_minus_L_F77" | $Xsed -e "$delay_single_quote_subst"`'
21787 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21788 hardcode_shlibpath_var_F77='`$ECHO "X$hardcode_shlibpath_var_F77" | $Xsed -e "$delay_single_quote_subst"`'
21789 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21790 hardcode_automatic_F77='`$ECHO "X$hardcode_automatic_F77" | $Xsed -e "$delay_single_quote_subst"`'
21791 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21792 inherit_rpath_F77='`$ECHO "X$inherit_rpath_F77" | $Xsed -e "$delay_single_quote_subst"`'
21793 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21794 link_all_deplibs_F77='`$ECHO "X$link_all_deplibs_F77" | $Xsed -e "$delay_single_quote_subst"`'
21795 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21796 fix_srcfile_path_F77='`$ECHO "X$fix_srcfile_path_F77" | $Xsed -e "$delay_single_quote_subst"`'
21797 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21798 always_export_symbols_F77='`$ECHO "X$always_export_symbols_F77" | $Xsed -e "$delay_single_quote_subst"`'
21799 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21800 export_symbols_cmds_F77='`$ECHO "X$export_symbols_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
21801 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21802 exclude_expsyms_F77='`$ECHO "X$exclude_expsyms_F77" | $Xsed -e "$delay_single_quote_subst"`'
21803 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21804 include_expsyms_F77='`$ECHO "X$include_expsyms_F77" | $Xsed -e "$delay_single_quote_subst"`'
21805 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21806 prelink_cmds_F77='`$ECHO "X$prelink_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
21807 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21808 file_list_spec_F77='`$ECHO "X$file_list_spec_F77" | $Xsed -e "$delay_single_quote_subst"`'
21809 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21810 hardcode_action_F77='`$ECHO "X$hardcode_action_F77" | $Xsed -e "$delay_single_quote_subst"`'
21811 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21812 compiler_lib_search_dirs_F77='`$ECHO "X$compiler_lib_search_dirs_F77" | $Xsed -e "$delay_single_quote_subst"`'
21813 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21814 predep_objects_F77='`$ECHO "X$predep_objects_F77" | $Xsed -e "$delay_single_quote_subst"`'
21815 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21816 postdep_objects_F77='`$ECHO "X$postdep_objects_F77" | $Xsed -e "$delay_single_quote_subst"`'
21817 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21818 predeps_F77='`$ECHO "X$predeps_F77" | $Xsed -e "$delay_single_quote_subst"`'
21819 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21820 postdeps_F77='`$ECHO "X$postdeps_F77" | $Xsed -e "$delay_single_quote_subst"`'
21821 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
21822 compiler_lib_search_path_F77='`$ECHO "X$compiler_lib_search_path_F77" | $Xsed -e "$delay_single_quote_subst"`'
21825 LTCFLAGS='$LTCFLAGS'
21826 compiler='$compiler_DEFAULT'
21828 # Quote evaled strings.
21839 deplibs_check_method \
21848 lt_cv_sys_global_symbol_pipe \
21849 lt_cv_sys_global_symbol_to_cdecl \
21850 lt_cv_sys_global_symbol_to_c_name_address \
21851 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
21854 lt_prog_compiler_no_builtin_flag \
21855 lt_prog_compiler_wl \
21856 lt_prog_compiler_pic \
21857 lt_prog_compiler_static \
21858 lt_cv_prog_compiler_c_o \
21866 export_dynamic_flag_spec \
21867 whole_archive_flag_spec \
21868 compiler_needs_object \
21870 allow_undefined_flag \
21871 no_undefined_flag \
21872 hardcode_libdir_flag_spec \
21873 hardcode_libdir_flag_spec_ld \
21874 hardcode_libdir_separator \
21879 variables_saved_for_relink \
21881 library_names_spec \
21886 compiler_lib_search_dirs \
21891 compiler_lib_search_path \
21896 lt_prog_compiler_no_builtin_flag_CXX \
21897 lt_prog_compiler_no_builtin_flag_F77 \
21898 lt_prog_compiler_wl_CXX \
21899 lt_prog_compiler_wl_F77 \
21900 lt_prog_compiler_pic_CXX \
21901 lt_prog_compiler_pic_F77 \
21902 lt_prog_compiler_static_CXX \
21903 lt_prog_compiler_static_F77 \
21904 lt_cv_prog_compiler_c_o_CXX \
21905 lt_cv_prog_compiler_c_o_F77 \
21906 export_dynamic_flag_spec_CXX \
21907 export_dynamic_flag_spec_F77 \
21908 whole_archive_flag_spec_CXX \
21909 whole_archive_flag_spec_F77 \
21910 compiler_needs_object_CXX \
21911 compiler_needs_object_F77 \
21914 allow_undefined_flag_CXX \
21915 allow_undefined_flag_F77 \
21916 no_undefined_flag_CXX \
21917 no_undefined_flag_F77 \
21918 hardcode_libdir_flag_spec_CXX \
21919 hardcode_libdir_flag_spec_F77 \
21920 hardcode_libdir_flag_spec_ld_CXX \
21921 hardcode_libdir_flag_spec_ld_F77 \
21922 hardcode_libdir_separator_CXX \
21923 hardcode_libdir_separator_F77 \
21924 fix_srcfile_path_CXX \
21925 fix_srcfile_path_F77 \
21926 exclude_expsyms_CXX \
21927 exclude_expsyms_F77 \
21928 include_expsyms_CXX \
21929 include_expsyms_F77 \
21930 file_list_spec_CXX \
21931 file_list_spec_F77 \
21932 compiler_lib_search_dirs_CXX \
21933 compiler_lib_search_dirs_F77 \
21934 predep_objects_CXX \
21935 predep_objects_F77 \
21936 postdep_objects_CXX \
21937 postdep_objects_F77 \
21942 compiler_lib_search_path_CXX \
21943 compiler_lib_search_path_F77; do
21944 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21945 *[\\\\\\\`\\"\\\$]*)
21946 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
21949 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
21954 # Double-quote double-evaled strings.
21955 for var in reload_cmds \
21956 old_postinstall_cmds \
21957 old_postuninstall_cmds \
21959 extract_expsyms_cmds \
21960 old_archive_from_new_cmds \
21961 old_archive_from_expsyms_cmds \
21963 archive_expsym_cmds \
21965 module_expsym_cmds \
21966 export_symbols_cmds \
21969 postuninstall_cmds \
21971 sys_lib_search_path_spec \
21972 sys_lib_dlsearch_path_spec \
21973 old_archive_cmds_CXX \
21974 old_archive_cmds_F77 \
21975 old_archive_from_new_cmds_CXX \
21976 old_archive_from_new_cmds_F77 \
21977 old_archive_from_expsyms_cmds_CXX \
21978 old_archive_from_expsyms_cmds_F77 \
21981 archive_expsym_cmds_CXX \
21982 archive_expsym_cmds_F77 \
21985 module_expsym_cmds_CXX \
21986 module_expsym_cmds_F77 \
21987 export_symbols_cmds_CXX \
21988 export_symbols_cmds_F77 \
21990 prelink_cmds_F77; do
21991 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
21992 *[\\\\\\\`\\"\\\$]*)
21993 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
21996 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
22001 # Fix-up fallback echo if it was mangled by the above quoting rules.
22003 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
22007 ac_aux_dir='$ac_aux_dir'
22008 xsi_shell='$xsi_shell'
22009 lt_shell_append='$lt_shell_append'
22011 # See if we are running on zsh, and set the options which allow our
22012 # commands through without removal of \ escapes INIT.
22013 if test -n "\${ZSH_VERSION+set}" ; then
22014 setopt NO_GLOB_SUBST
22020 TIMESTAMP='$TIMESTAMP'
22033 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22035 # Handling of arguments.
22036 for ac_config_target in $ac_config_targets
22038 case $ac_config_target in
22039 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
22040 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
22041 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
22042 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
22043 "mparam.h") CONFIG_FILES="$CONFIG_FILES mparam.h:mparam_h.in" ;;
22045 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
22050 # If the user did not use the arguments to specify the items to instantiate,
22051 # then the envvar interface is used. Set only those that are not.
22052 # We use the long form for the default assignment because of an extremely
22053 # bizarre bug on SunOS 4.1.3.
22054 if $ac_need_defaults; then
22055 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
22056 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
22059 # Have a temporary directory for convenience. Make it in the build tree
22060 # simply because there is no reason against having it here, and in addition,
22061 # creating and moving files from /tmp can sometimes cause problems.
22062 # Hook for its removal unless debugging.
22063 # Note that there is a small window in which the directory will not be cleaned:
22064 # after its creation but before its name has been assigned to `$tmp'.
22068 trap 'exit_status=$?
22069 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
22071 trap 'as_fn_exit 1' 1 2 13 15
22073 # Create a (secure) tmp directory for tmp files.
22076 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
22077 test -n "$tmp" && test -d "$tmp"
22080 tmp=./conf$$-$RANDOM
22081 (umask 077 && mkdir "$tmp")
22082 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
22084 # Set up the scripts for CONFIG_FILES section.
22085 # No need to generate them if there are no CONFIG_FILES.
22086 # This happens for instance with `./config.status config.h'.
22087 if test -n "$CONFIG_FILES"; then
22090 ac_cr=`echo X | tr X '\015'`
22091 # On cygwin, bash can eat \r inside `` if the user requested igncr.
22092 # But we know of no other shell where ac_cr would be empty at this
22093 # point, so we can use a bashism as a fallback.
22094 if test "x$ac_cr" = x; then
22095 eval ac_cr=\$\'\\r\'
22097 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
22098 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
22101 ac_cs_awk_cr=$ac_cr
22104 echo 'BEGIN {' >"$tmp/subs1.awk" &&
22109 echo "cat >conf$$subs.awk <<_ACEOF" &&
22110 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
22112 } >conf$$subs.sh ||
22113 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
22114 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
22116 for ac_last_try in false false false false false :; do
22117 . ./conf$$subs.sh ||
22118 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
22120 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
22121 if test $ac_delim_n = $ac_delim_num; then
22123 elif $ac_last_try; then
22124 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
22126 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
22129 rm -f conf$$subs.sh
22131 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22132 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
22136 s/^/S["/; s/!.*/"]=/
22146 s/\(.\{148\}\).*/\1/
22148 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
22153 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22160 s/\(.\{148\}\).*/\1/
22162 s/["\\]/\\&/g; s/^/"/; s/$/"/
22166 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
22171 ' <conf$$subs.awk | sed '
22176 ' >>$CONFIG_STATUS || ac_write_fail=1
22177 rm -f conf$$subs.awk
22178 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22180 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
22181 for (key in S) S_is_set[key] = 1
22187 nfields = split(line, field, "@")
22189 len = length(field[1])
22190 for (i = 2; i < nfields; i++) {
22192 keylen = length(key)
22193 if (S_is_set[key]) {
22195 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
22196 len += length(value) + length(field[++i])
22207 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22208 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
22209 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
22212 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
22213 || as_fn_error "could not setup config files machinery" "$LINENO" 5
22216 # VPATH may cause trouble with some makes, so we remove $(srcdir),
22217 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
22218 # trailing colons and then remove the whole line if VPATH becomes empty
22219 # (actually we leave an empty line to preserve line numbers).
22220 if test "x$srcdir" = x.; then
22221 ac_vpsub='/^[ ]*VPATH[ ]*=/{
22222 s/:*\$(srcdir):*/:/
22223 s/:*\${srcdir}:*/:/
22225 s/^\([^=]*=[ ]*\):*/\1/
22231 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22232 fi # test -n "$CONFIG_FILES"
22235 eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
22240 :[FHLC]) ac_mode=$ac_tag; continue;;
22242 case $ac_mode$ac_tag in
22244 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
22245 :[FH]-) ac_tag=-:-;;
22246 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
22263 -) ac_f="$tmp/stdin";;
22264 *) # Look for the file first in the build tree, then in the source tree
22265 # (if the path is not absolute). The absolute path cannot be DOS-style,
22266 # because $ac_f cannot contain `:'.
22270 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
22272 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
22274 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
22275 as_fn_append ac_file_inputs " '$ac_f'"
22278 # Let's still pretend it is `configure' which instantiates (i.e., don't
22279 # use $as_me), people would be surprised to read:
22280 # /* config.h. Generated by config.status. */
22281 configure_input='Generated from '`
22282 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
22284 if test x"$ac_file" != x-; then
22285 configure_input="$ac_file. $configure_input"
22286 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
22287 $as_echo "$as_me: creating $ac_file" >&6;}
22289 # Neutralize special characters interpreted by sed in replacement strings.
22290 case $configure_input in #(
22291 *\&* | *\|* | *\\* )
22292 ac_sed_conf_input=`$as_echo "$configure_input" |
22293 sed 's/[\\\\&|]/\\\\&/g'`;; #(
22294 *) ac_sed_conf_input=$configure_input;;
22298 *:-:* | *:-) cat >"$tmp/stdin" \
22299 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
22304 ac_dir=`$as_dirname -- "$ac_file" ||
22305 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22306 X"$ac_file" : 'X\(//\)[^/]' \| \
22307 X"$ac_file" : 'X\(//\)$' \| \
22308 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
22309 $as_echo X"$ac_file" |
22310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22314 /^X\(\/\/\)[^/].*/{
22327 as_dir="$ac_dir"; as_fn_mkdir_p
22331 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22333 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
22334 # A ".." for each directory in $ac_dir_suffix.
22335 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
22336 case $ac_top_builddir_sub in
22337 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22338 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22341 ac_abs_top_builddir=$ac_pwd
22342 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22343 # for backward compatibility:
22344 ac_top_builddir=$ac_top_build_prefix
22347 .) # We are building in place.
22349 ac_top_srcdir=$ac_top_builddir_sub
22350 ac_abs_top_srcdir=$ac_pwd ;;
22351 [\\/]* | ?:[\\/]* ) # Absolute name.
22352 ac_srcdir=$srcdir$ac_dir_suffix;
22353 ac_top_srcdir=$srcdir
22354 ac_abs_top_srcdir=$srcdir ;;
22355 *) # Relative name.
22356 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22357 ac_top_srcdir=$ac_top_build_prefix$srcdir
22358 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22360 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22370 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22371 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22373 ac_MKDIR_P=$MKDIR_P
22375 [\\/$]* | ?:[\\/]* ) ;;
22376 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
22380 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22381 # If the template does not know about datarootdir, expand it.
22382 # FIXME: This hack should be removed a few years after 2.60.
22383 ac_datarootdir_hack=; ac_datarootdir_seen=
22394 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
22395 *datarootdir*) ac_datarootdir_seen=yes;;
22396 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22398 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22400 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22401 ac_datarootdir_hack='
22402 s&@datadir@&$datadir&g
22403 s&@docdir@&$docdir&g
22404 s&@infodir@&$infodir&g
22405 s&@localedir@&$localedir&g
22406 s&@mandir@&$mandir&g
22407 s&\\\${datarootdir}&$datarootdir&g' ;;
22411 # Neutralize VPATH when `$srcdir' = `.'.
22412 # Shell code in configure.ac might set extrasub.
22413 # FIXME: do we really want to maintain this feature?
22414 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
22415 ac_sed_extra="$ac_vpsub
22418 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
22420 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22421 s|@configure_input@|$ac_sed_conf_input|;t t
22422 s&@top_builddir@&$ac_top_builddir_sub&;t t
22423 s&@top_build_prefix@&$ac_top_build_prefix&;t t
22424 s&@srcdir@&$ac_srcdir&;t t
22425 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22426 s&@top_srcdir@&$ac_top_srcdir&;t t
22427 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22428 s&@builddir@&$ac_builddir&;t t
22429 s&@abs_builddir@&$ac_abs_builddir&;t t
22430 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22431 s&@INSTALL@&$ac_INSTALL&;t t
22432 s&@MKDIR_P@&$ac_MKDIR_P&;t t
22433 $ac_datarootdir_hack
22435 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
22436 || as_fn_error "could not create $ac_file" "$LINENO" 5
22438 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22439 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22440 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22441 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22442 which seems to be undefined. Please make sure it is defined." >&5
22443 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22444 which seems to be undefined. Please make sure it is defined." >&2;}
22448 -) cat "$tmp/out" && rm -f "$tmp/out";;
22449 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
22451 || as_fn_error "could not create $ac_file" "$LINENO" 5
22455 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
22456 $as_echo "$as_me: executing $ac_file commands" >&6;}
22461 case $ac_file$ac_mode in
22462 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
22463 # Autoconf 2.62 quotes --file arguments for eval, but not when files
22464 # are listed without --file. Let's play safe and only enable the eval
22465 # if we detect the quoting.
22466 case $CONFIG_FILES in
22467 *\'*) eval set x "$CONFIG_FILES" ;;
22468 *) set x $CONFIG_FILES ;;
22473 # Strip MF so we end up with the name of the file.
22474 mf=`echo "$mf" | sed -e 's/:.*$//'`
22475 # Check whether this is an Automake generated Makefile or not.
22476 # We used to match only the files named `Makefile.in', but
22477 # some people rename them; so instead we look at the file content.
22478 # Grep'ing the first line is not enough: some people post-process
22479 # each Makefile.in and add a new line on top of each file to say so.
22480 # Grep'ing the whole file is not good either: AIX grep has a line
22481 # limit of 2048, but all sed's we know have understand at least 4000.
22482 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
22483 dirpart=`$as_dirname -- "$mf" ||
22484 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22485 X"$mf" : 'X\(//\)[^/]' \| \
22486 X"$mf" : 'X\(//\)$' \| \
22487 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
22489 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22493 /^X\(\/\/\)[^/].*/{
22509 # Extract the definition of DEPDIR, am__include, and am__quote
22510 # from the Makefile without running `make'.
22511 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
22512 test -z "$DEPDIR" && continue
22513 am__include=`sed -n 's/^am__include = //p' < "$mf"`
22514 test -z "am__include" && continue
22515 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
22516 # When using ansi2knr, U may be empty or an underscore; expand it
22517 U=`sed -n 's/^U = //p' < "$mf"`
22518 # Find all dependency output files, they are included files with
22519 # $(DEPDIR) in their names. We invoke sed twice because it is the
22520 # simplest approach to changing $(DEPDIR) to its actual value in the
22522 for file in `sed -n "
22523 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
22524 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
22525 # Make sure the directory exists.
22526 test -f "$dirpart/$file" && continue
22527 fdir=`$as_dirname -- "$file" ||
22528 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22529 X"$file" : 'X\(//\)[^/]' \| \
22530 X"$file" : 'X\(//\)$' \| \
22531 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
22532 $as_echo X"$file" |
22533 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22537 /^X\(\/\/\)[^/].*/{
22550 as_dir=$dirpart/$fdir; as_fn_mkdir_p
22551 # echo "creating $dirpart/$file"
22552 echo '# dummy' > "$dirpart/$file"
22559 # See if we are running on zsh, and set the options which allow our
22560 # commands through without removal of \ escapes.
22561 if test -n "${ZSH_VERSION+set}" ; then
22562 setopt NO_GLOB_SUBST
22565 cfgfile="${ofile}T"
22566 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
22569 cat <<_LT_EOF >> "$cfgfile"
22572 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
22573 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
22574 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
22575 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
22577 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
22578 # 2006, 2007, 2008 Free Software Foundation, Inc.
22579 # Written by Gordon Matzigkeit, 1996
22581 # This file is part of GNU Libtool.
22583 # GNU Libtool is free software; you can redistribute it and/or
22584 # modify it under the terms of the GNU General Public License as
22585 # published by the Free Software Foundation; either version 2 of
22586 # the License, or (at your option) any later version.
22588 # As a special exception to the GNU General Public License,
22589 # if you distribute this file as part of a program or library that
22590 # is built using GNU Libtool, you may include this file under the
22591 # same distribution terms that you use for the rest of that program.
22593 # GNU Libtool is distributed in the hope that it will be useful,
22594 # but WITHOUT ANY WARRANTY; without even the implied warranty of
22595 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
22596 # GNU General Public License for more details.
22598 # You should have received a copy of the GNU General Public License
22599 # along with GNU Libtool; see the file COPYING. If not, a copy
22600 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
22601 # obtained by writing to the Free Software Foundation, Inc.,
22602 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
22605 # The names of the tagged configurations supported by this script.
22606 available_tags="CXX F77 "
22608 # ### BEGIN LIBTOOL CONFIG
22610 # Assembler program.
22613 # DLL creation program.
22616 # Object dumper program.
22619 # Which release of libtool.m4 was used?
22620 macro_version=$macro_version
22621 macro_revision=$macro_revision
22623 # Whether or not to build shared libraries.
22624 build_libtool_libs=$enable_shared
22626 # Whether or not to build static libraries.
22627 build_old_libs=$enable_static
22629 # What type of objects to build.
22632 # Whether or not to optimize for fast installation.
22633 fast_install=$enable_fast_install
22636 host_alias=$host_alias
22640 # The build system.
22641 build_alias=$build_alias
22645 # A sed program that does not truncate output.
22648 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
22649 Xsed="\$SED -e 1s/^X//"
22651 # A grep program that handles long lines.
22657 # A literal string matcher.
22660 # A BSD- or MS-compatible name lister.
22663 # Whether we need soft or hard links.
22666 # What is the maximum length of a command?
22667 max_cmd_len=$max_cmd_len
22669 # Object file suffix (normally "o").
22672 # Executable file suffix (normally "").
22675 # whether the shell understands "unset".
22678 # turn spaces into newlines.
22681 # turn newlines into spaces.
22684 # How to create reloadable object files.
22685 reload_flag=$lt_reload_flag
22686 reload_cmds=$lt_reload_cmds
22688 # Method to check whether dependent libraries are shared objects.
22689 deplibs_check_method=$lt_deplibs_check_method
22691 # Command to use when deplibs_check_method == "file_magic".
22692 file_magic_cmd=$lt_file_magic_cmd
22696 AR_FLAGS=$lt_AR_FLAGS
22698 # A symbol stripping program.
22701 # Commands used to install an old-style archive.
22703 old_postinstall_cmds=$lt_old_postinstall_cmds
22704 old_postuninstall_cmds=$lt_old_postuninstall_cmds
22709 # LTCC compiler flags.
22710 LTCFLAGS=$lt_CFLAGS
22712 # Take the output of nm and produce a listing of raw symbols and C names.
22713 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
22715 # Transform the output of nm in a proper C declaration.
22716 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
22718 # Transform the output of nm in a C name address pair.
22719 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
22721 # Transform the output of nm in a C name address pair when lib prefix is needed.
22722 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
22724 # The name of the directory that contains temporary libtool files.
22727 # Shell to use when invoking shell scripts.
22730 # An echo program that does not interpret backslashes.
22733 # Used to examine libraries when file_magic_cmd begins with "file".
22734 MAGIC_CMD=$MAGIC_CMD
22736 # Must we lock files when doing compilation?
22737 need_locks=$lt_need_locks
22739 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
22740 DSYMUTIL=$lt_DSYMUTIL
22742 # Tool to change global to local symbols on Mac OS X.
22745 # Tool to manipulate fat objects and archives on Mac OS X.
22748 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
22751 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
22752 OTOOL64=$lt_OTOOL64
22754 # Old archive suffix (normally "a").
22757 # Shared library suffix (normally ".so").
22758 shrext_cmds=$lt_shrext_cmds
22760 # The commands to extract the exported symbol list from a shared archive.
22761 extract_expsyms_cmds=$lt_extract_expsyms_cmds
22763 # Variables whose values should be saved in libtool wrapper scripts and
22764 # restored at link time.
22765 variables_saved_for_relink=$lt_variables_saved_for_relink
22767 # Do we need the "lib" prefix for modules?
22768 need_lib_prefix=$need_lib_prefix
22770 # Do we need a version for libraries?
22771 need_version=$need_version
22773 # Library versioning type.
22774 version_type=$version_type
22776 # Shared library runtime path variable.
22777 runpath_var=$runpath_var
22779 # Shared library path variable.
22780 shlibpath_var=$shlibpath_var
22782 # Is shlibpath searched before the hard-coded library search path?
22783 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
22785 # Format of library name prefix.
22786 libname_spec=$lt_libname_spec
22788 # List of archive names. First name is the real one, the rest are links.
22789 # The last name is the one that the linker finds with -lNAME
22790 library_names_spec=$lt_library_names_spec
22792 # The coded name of the library, if different from the real name.
22793 soname_spec=$lt_soname_spec
22795 # Command to use after installation of a shared archive.
22796 postinstall_cmds=$lt_postinstall_cmds
22798 # Command to use after uninstallation of a shared archive.
22799 postuninstall_cmds=$lt_postuninstall_cmds
22801 # Commands used to finish a libtool library installation in a directory.
22802 finish_cmds=$lt_finish_cmds
22804 # As "finish_cmds", except a single script fragment to be evaled but
22806 finish_eval=$lt_finish_eval
22808 # Whether we should hardcode library paths into libraries.
22809 hardcode_into_libs=$hardcode_into_libs
22811 # Compile-time system search path for libraries.
22812 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
22814 # Run-time system search path for libraries.
22815 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
22817 # Whether dlopen is supported.
22818 dlopen_support=$enable_dlopen
22820 # Whether dlopen of programs is supported.
22821 dlopen_self=$enable_dlopen_self
22823 # Whether dlopen of statically linked programs is supported.
22824 dlopen_self_static=$enable_dlopen_self_static
22826 # Commands to strip libraries.
22827 old_striplib=$lt_old_striplib
22828 striplib=$lt_striplib
22831 # The linker used to build libraries.
22834 # Commands used to build an old-style archive.
22835 old_archive_cmds=$lt_old_archive_cmds
22837 # A language specific compiler.
22840 # Is the compiler the GNU compiler?
22843 # Compiler flag to turn off builtin functions.
22844 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
22846 # How to pass a linker flag through the compiler.
22847 wl=$lt_lt_prog_compiler_wl
22849 # Additional compiler flags for building library objects.
22850 pic_flag=$lt_lt_prog_compiler_pic
22852 # Compiler flag to prevent dynamic linking.
22853 link_static_flag=$lt_lt_prog_compiler_static
22855 # Does compiler simultaneously support -c and -o options?
22856 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
22858 # Whether or not to add -lc for building shared libraries.
22859 build_libtool_need_lc=$archive_cmds_need_lc
22861 # Whether or not to disallow shared libs when runtime libs are static.
22862 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
22864 # Compiler flag to allow reflexive dlopens.
22865 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
22867 # Compiler flag to generate shared objects directly from archives.
22868 whole_archive_flag_spec=$lt_whole_archive_flag_spec
22870 # Whether the compiler copes with passing no objects directly.
22871 compiler_needs_object=$lt_compiler_needs_object
22873 # Create an old-style archive from a shared archive.
22874 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
22876 # Create a temporary old-style archive to link instead of a shared archive.
22877 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
22879 # Commands used to build a shared archive.
22880 archive_cmds=$lt_archive_cmds
22881 archive_expsym_cmds=$lt_archive_expsym_cmds
22883 # Commands used to build a loadable module if different from building
22884 # a shared archive.
22885 module_cmds=$lt_module_cmds
22886 module_expsym_cmds=$lt_module_expsym_cmds
22888 # Whether we are building with GNU ld or not.
22889 with_gnu_ld=$lt_with_gnu_ld
22891 # Flag that allows shared libraries with undefined symbols to be built.
22892 allow_undefined_flag=$lt_allow_undefined_flag
22894 # Flag that enforces no undefined symbols.
22895 no_undefined_flag=$lt_no_undefined_flag
22897 # Flag to hardcode \$libdir into a binary during linking.
22898 # This must work even if \$libdir does not exist
22899 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
22901 # If ld is used when linking, flag to hardcode \$libdir into a binary
22902 # during linking. This must work even if \$libdir does not exist.
22903 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
22905 # Whether we need a single "-rpath" flag with a separated argument.
22906 hardcode_libdir_separator=$lt_hardcode_libdir_separator
22908 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22909 # DIR into the resulting binary.
22910 hardcode_direct=$hardcode_direct
22912 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
22913 # DIR into the resulting binary and the resulting library dependency is
22914 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
22915 # library is relocated.
22916 hardcode_direct_absolute=$hardcode_direct_absolute
22918 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
22919 # into the resulting binary.
22920 hardcode_minus_L=$hardcode_minus_L
22922 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
22923 # into the resulting binary.
22924 hardcode_shlibpath_var=$hardcode_shlibpath_var
22926 # Set to "yes" if building a shared library automatically hardcodes DIR
22927 # into the library and all subsequent libraries and executables linked
22929 hardcode_automatic=$hardcode_automatic
22931 # Set to yes if linker adds runtime paths of dependent libraries
22932 # to runtime path list.
22933 inherit_rpath=$inherit_rpath
22935 # Whether libtool must link a program against all its dependency libraries.
22936 link_all_deplibs=$link_all_deplibs
22938 # Fix the shell variable \$srcfile for the compiler.
22939 fix_srcfile_path=$lt_fix_srcfile_path
22941 # Set to "yes" if exported symbols are required.
22942 always_export_symbols=$always_export_symbols
22944 # The commands to list exported symbols.
22945 export_symbols_cmds=$lt_export_symbols_cmds
22947 # Symbols that should not be listed in the preloaded symbols.
22948 exclude_expsyms=$lt_exclude_expsyms
22950 # Symbols that must always be exported.
22951 include_expsyms=$lt_include_expsyms
22953 # Commands necessary for linking programs (against libraries) with templates.
22954 prelink_cmds=$lt_prelink_cmds
22956 # Specify filename containing input files.
22957 file_list_spec=$lt_file_list_spec
22959 # How to hardcode a shared library path into an executable.
22960 hardcode_action=$hardcode_action
22962 # The directories searched by this compiler when creating a shared library.
22963 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
22965 # Dependencies to place before and after the objects being linked to
22966 # create a shared library.
22967 predep_objects=$lt_predep_objects
22968 postdep_objects=$lt_postdep_objects
22969 predeps=$lt_predeps
22970 postdeps=$lt_postdeps
22972 # The library search path used internally by the compiler when linking
22973 # a shared library.
22974 compiler_lib_search_path=$lt_compiler_lib_search_path
22976 # ### END LIBTOOL CONFIG
22982 cat <<\_LT_EOF >> "$cfgfile"
22983 # AIX sometimes has problems with the GCC collect2 program. For some
22984 # reason, if we set the COLLECT_NAMES environment variable, the problems
22985 # vanish in a puff of smoke.
22986 if test "X${COLLECT_NAMES+set}" != Xset; then
22988 export COLLECT_NAMES
22995 ltmain="$ac_aux_dir/ltmain.sh"
22998 # We use sed instead of cat because bash on DJGPP gets confused if
22999 # if finds mixed CR/LF and LF-only lines. Since sed operates in
23000 # text mode, it properly converts lines to CR/LF. This bash problem
23001 # is reportedly fixed, but why not run on old versions too?
23002 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
23003 || (rm -f "$cfgfile"; exit 1)
23007 cat << \_LT_EOF >> "$cfgfile"
23009 # func_dirname file append nondir_replacement
23010 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
23011 # otherwise set result to NONDIR_REPLACEMENT.
23015 */*) func_dirname_result="${1%/*}${2}" ;;
23016 * ) func_dirname_result="${3}" ;;
23020 # func_basename file
23023 func_basename_result="${1##*/}"
23026 # func_dirname_and_basename file append nondir_replacement
23027 # perform func_basename and func_dirname in a single function
23029 # dirname: Compute the dirname of FILE. If nonempty,
23030 # add APPEND to the result, otherwise set result
23031 # to NONDIR_REPLACEMENT.
23032 # value returned in "$func_dirname_result"
23033 # basename: Compute filename of FILE.
23034 # value retuned in "$func_basename_result"
23035 # Implementation must be kept synchronized with func_dirname
23036 # and func_basename. For efficiency, we do not delegate to
23037 # those functions but instead duplicate the functionality here.
23038 func_dirname_and_basename ()
23041 */*) func_dirname_result="${1%/*}${2}" ;;
23042 * ) func_dirname_result="${3}" ;;
23044 func_basename_result="${1##*/}"
23047 # func_stripname prefix suffix name
23048 # strip PREFIX and SUFFIX off of NAME.
23049 # PREFIX and SUFFIX must not contain globbing or regex special
23050 # characters, hashes, percent signs, but SUFFIX may contain a leading
23051 # dot (in which case that matches only a dot).
23054 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
23055 # positional parameters, so assign one to ordinary parameter first.
23056 func_stripname_result=${3}
23057 func_stripname_result=${func_stripname_result#"${1}"}
23058 func_stripname_result=${func_stripname_result%"${2}"}
23064 func_opt_split_opt=${1%%=*}
23065 func_opt_split_arg=${1#*=}
23072 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
23073 *) func_lo2o_result=${1} ;;
23077 # func_xform libobj-or-source
23080 func_xform_result=${1%.*}.lo
23083 # func_arith arithmetic-term...
23086 func_arith_result=$(( $* ))
23090 # STRING may not start with a hyphen.
23093 func_len_result=${#1}
23098 *) # Bourne compatible functions.
23099 cat << \_LT_EOF >> "$cfgfile"
23101 # func_dirname file append nondir_replacement
23102 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
23103 # otherwise set result to NONDIR_REPLACEMENT.
23106 # Extract subdirectory from the argument.
23107 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
23108 if test "X$func_dirname_result" = "X${1}"; then
23109 func_dirname_result="${3}"
23111 func_dirname_result="$func_dirname_result${2}"
23115 # func_basename file
23118 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
23122 # func_stripname prefix suffix name
23123 # strip PREFIX and SUFFIX off of NAME.
23124 # PREFIX and SUFFIX must not contain globbing or regex special
23125 # characters, hashes, percent signs, but SUFFIX may contain a leading
23126 # dot (in which case that matches only a dot).
23127 # func_strip_suffix prefix name
23131 .*) func_stripname_result=`$ECHO "X${3}" \
23132 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
23133 *) func_stripname_result=`$ECHO "X${3}" \
23134 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
23139 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
23140 my_sed_long_arg='1s/^-[^=]*=//'
23145 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
23146 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
23152 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
23155 # func_xform libobj-or-source
23158 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
23161 # func_arith arithmetic-term...
23164 func_arith_result=`expr "$@"`
23168 # STRING may not start with a hyphen.
23171 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
23177 case $lt_shell_append in
23179 cat << \_LT_EOF >> "$cfgfile"
23181 # func_append var value
23182 # Append VALUE to the end of shell variable VAR.
23190 cat << \_LT_EOF >> "$cfgfile"
23192 # func_append var value
23193 # Append VALUE to the end of shell variable VAR.
23204 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
23205 || (rm -f "$cfgfile"; exit 1)
23207 mv -f "$cfgfile" "$ofile" ||
23208 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
23212 cat <<_LT_EOF >> "$ofile"
23214 # ### BEGIN LIBTOOL TAG CONFIG: CXX
23216 # The linker used to build libraries.
23219 # Commands used to build an old-style archive.
23220 old_archive_cmds=$lt_old_archive_cmds_CXX
23222 # A language specific compiler.
23223 CC=$lt_compiler_CXX
23225 # Is the compiler the GNU compiler?
23228 # Compiler flag to turn off builtin functions.
23229 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
23231 # How to pass a linker flag through the compiler.
23232 wl=$lt_lt_prog_compiler_wl_CXX
23234 # Additional compiler flags for building library objects.
23235 pic_flag=$lt_lt_prog_compiler_pic_CXX
23237 # Compiler flag to prevent dynamic linking.
23238 link_static_flag=$lt_lt_prog_compiler_static_CXX
23240 # Does compiler simultaneously support -c and -o options?
23241 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
23243 # Whether or not to add -lc for building shared libraries.
23244 build_libtool_need_lc=$archive_cmds_need_lc_CXX
23246 # Whether or not to disallow shared libs when runtime libs are static.
23247 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
23249 # Compiler flag to allow reflexive dlopens.
23250 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
23252 # Compiler flag to generate shared objects directly from archives.
23253 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
23255 # Whether the compiler copes with passing no objects directly.
23256 compiler_needs_object=$lt_compiler_needs_object_CXX
23258 # Create an old-style archive from a shared archive.
23259 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
23261 # Create a temporary old-style archive to link instead of a shared archive.
23262 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
23264 # Commands used to build a shared archive.
23265 archive_cmds=$lt_archive_cmds_CXX
23266 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
23268 # Commands used to build a loadable module if different from building
23269 # a shared archive.
23270 module_cmds=$lt_module_cmds_CXX
23271 module_expsym_cmds=$lt_module_expsym_cmds_CXX
23273 # Whether we are building with GNU ld or not.
23274 with_gnu_ld=$lt_with_gnu_ld_CXX
23276 # Flag that allows shared libraries with undefined symbols to be built.
23277 allow_undefined_flag=$lt_allow_undefined_flag_CXX
23279 # Flag that enforces no undefined symbols.
23280 no_undefined_flag=$lt_no_undefined_flag_CXX
23282 # Flag to hardcode \$libdir into a binary during linking.
23283 # This must work even if \$libdir does not exist
23284 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
23286 # If ld is used when linking, flag to hardcode \$libdir into a binary
23287 # during linking. This must work even if \$libdir does not exist.
23288 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
23290 # Whether we need a single "-rpath" flag with a separated argument.
23291 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
23293 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23294 # DIR into the resulting binary.
23295 hardcode_direct=$hardcode_direct_CXX
23297 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23298 # DIR into the resulting binary and the resulting library dependency is
23299 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23300 # library is relocated.
23301 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
23303 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23304 # into the resulting binary.
23305 hardcode_minus_L=$hardcode_minus_L_CXX
23307 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23308 # into the resulting binary.
23309 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
23311 # Set to "yes" if building a shared library automatically hardcodes DIR
23312 # into the library and all subsequent libraries and executables linked
23314 hardcode_automatic=$hardcode_automatic_CXX
23316 # Set to yes if linker adds runtime paths of dependent libraries
23317 # to runtime path list.
23318 inherit_rpath=$inherit_rpath_CXX
23320 # Whether libtool must link a program against all its dependency libraries.
23321 link_all_deplibs=$link_all_deplibs_CXX
23323 # Fix the shell variable \$srcfile for the compiler.
23324 fix_srcfile_path=$lt_fix_srcfile_path_CXX
23326 # Set to "yes" if exported symbols are required.
23327 always_export_symbols=$always_export_symbols_CXX
23329 # The commands to list exported symbols.
23330 export_symbols_cmds=$lt_export_symbols_cmds_CXX
23332 # Symbols that should not be listed in the preloaded symbols.
23333 exclude_expsyms=$lt_exclude_expsyms_CXX
23335 # Symbols that must always be exported.
23336 include_expsyms=$lt_include_expsyms_CXX
23338 # Commands necessary for linking programs (against libraries) with templates.
23339 prelink_cmds=$lt_prelink_cmds_CXX
23341 # Specify filename containing input files.
23342 file_list_spec=$lt_file_list_spec_CXX
23344 # How to hardcode a shared library path into an executable.
23345 hardcode_action=$hardcode_action_CXX
23347 # The directories searched by this compiler when creating a shared library.
23348 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
23350 # Dependencies to place before and after the objects being linked to
23351 # create a shared library.
23352 predep_objects=$lt_predep_objects_CXX
23353 postdep_objects=$lt_postdep_objects_CXX
23354 predeps=$lt_predeps_CXX
23355 postdeps=$lt_postdeps_CXX
23357 # The library search path used internally by the compiler when linking
23358 # a shared library.
23359 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
23361 # ### END LIBTOOL TAG CONFIG: CXX
23365 cat <<_LT_EOF >> "$ofile"
23367 # ### BEGIN LIBTOOL TAG CONFIG: F77
23369 # The linker used to build libraries.
23372 # Commands used to build an old-style archive.
23373 old_archive_cmds=$lt_old_archive_cmds_F77
23375 # A language specific compiler.
23376 CC=$lt_compiler_F77
23378 # Is the compiler the GNU compiler?
23381 # Compiler flag to turn off builtin functions.
23382 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
23384 # How to pass a linker flag through the compiler.
23385 wl=$lt_lt_prog_compiler_wl_F77
23387 # Additional compiler flags for building library objects.
23388 pic_flag=$lt_lt_prog_compiler_pic_F77
23390 # Compiler flag to prevent dynamic linking.
23391 link_static_flag=$lt_lt_prog_compiler_static_F77
23393 # Does compiler simultaneously support -c and -o options?
23394 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
23396 # Whether or not to add -lc for building shared libraries.
23397 build_libtool_need_lc=$archive_cmds_need_lc_F77
23399 # Whether or not to disallow shared libs when runtime libs are static.
23400 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
23402 # Compiler flag to allow reflexive dlopens.
23403 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
23405 # Compiler flag to generate shared objects directly from archives.
23406 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
23408 # Whether the compiler copes with passing no objects directly.
23409 compiler_needs_object=$lt_compiler_needs_object_F77
23411 # Create an old-style archive from a shared archive.
23412 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
23414 # Create a temporary old-style archive to link instead of a shared archive.
23415 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
23417 # Commands used to build a shared archive.
23418 archive_cmds=$lt_archive_cmds_F77
23419 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
23421 # Commands used to build a loadable module if different from building
23422 # a shared archive.
23423 module_cmds=$lt_module_cmds_F77
23424 module_expsym_cmds=$lt_module_expsym_cmds_F77
23426 # Whether we are building with GNU ld or not.
23427 with_gnu_ld=$lt_with_gnu_ld_F77
23429 # Flag that allows shared libraries with undefined symbols to be built.
23430 allow_undefined_flag=$lt_allow_undefined_flag_F77
23432 # Flag that enforces no undefined symbols.
23433 no_undefined_flag=$lt_no_undefined_flag_F77
23435 # Flag to hardcode \$libdir into a binary during linking.
23436 # This must work even if \$libdir does not exist
23437 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
23439 # If ld is used when linking, flag to hardcode \$libdir into a binary
23440 # during linking. This must work even if \$libdir does not exist.
23441 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
23443 # Whether we need a single "-rpath" flag with a separated argument.
23444 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
23446 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23447 # DIR into the resulting binary.
23448 hardcode_direct=$hardcode_direct_F77
23450 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
23451 # DIR into the resulting binary and the resulting library dependency is
23452 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
23453 # library is relocated.
23454 hardcode_direct_absolute=$hardcode_direct_absolute_F77
23456 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
23457 # into the resulting binary.
23458 hardcode_minus_L=$hardcode_minus_L_F77
23460 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
23461 # into the resulting binary.
23462 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
23464 # Set to "yes" if building a shared library automatically hardcodes DIR
23465 # into the library and all subsequent libraries and executables linked
23467 hardcode_automatic=$hardcode_automatic_F77
23469 # Set to yes if linker adds runtime paths of dependent libraries
23470 # to runtime path list.
23471 inherit_rpath=$inherit_rpath_F77
23473 # Whether libtool must link a program against all its dependency libraries.
23474 link_all_deplibs=$link_all_deplibs_F77
23476 # Fix the shell variable \$srcfile for the compiler.
23477 fix_srcfile_path=$lt_fix_srcfile_path_F77
23479 # Set to "yes" if exported symbols are required.
23480 always_export_symbols=$always_export_symbols_F77
23482 # The commands to list exported symbols.
23483 export_symbols_cmds=$lt_export_symbols_cmds_F77
23485 # Symbols that should not be listed in the preloaded symbols.
23486 exclude_expsyms=$lt_exclude_expsyms_F77
23488 # Symbols that must always be exported.
23489 include_expsyms=$lt_include_expsyms_F77
23491 # Commands necessary for linking programs (against libraries) with templates.
23492 prelink_cmds=$lt_prelink_cmds_F77
23494 # Specify filename containing input files.
23495 file_list_spec=$lt_file_list_spec_F77
23497 # How to hardcode a shared library path into an executable.
23498 hardcode_action=$hardcode_action_F77
23500 # The directories searched by this compiler when creating a shared library.
23501 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
23503 # Dependencies to place before and after the objects being linked to
23504 # create a shared library.
23505 predep_objects=$lt_predep_objects_F77
23506 postdep_objects=$lt_postdep_objects_F77
23507 predeps=$lt_predeps_F77
23508 postdeps=$lt_postdeps_F77
23510 # The library search path used internally by the compiler when linking
23511 # a shared library.
23512 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
23514 # ### END LIBTOOL TAG CONFIG: F77
23525 ac_clean_files=$ac_clean_files_save
23527 test $ac_write_fail = 0 ||
23528 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
23531 # configure is writing to config.log, and then calls config.status.
23532 # config.status does its own redirection, appending to config.log.
23533 # Unfortunately, on DOS this fails, as config.log is still kept open
23534 # by configure, so config.status won't be able to write to it; its
23535 # output is simply discarded. So we exec the FD to /dev/null,
23536 # effectively closing config.log, so it can be properly (re)opened and
23537 # appended to by config.status. When coming back to configure, we
23538 # need to make the FD available again.
23539 if test "$no_create" != yes; then
23541 ac_config_status_args=
23542 test "$silent" = yes &&
23543 ac_config_status_args="$ac_config_status_args --quiet"
23545 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
23547 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
23548 # would make configure fail if this is the last instruction.
23549 $ac_cs_success || as_fn_exit $?
23551 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
23552 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
23553 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}