2 # From configure.in Revision.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.65 for GNU MP 5.0.1.
6 # Report bugs to <gmp-bugs@gmplib.org>.
10 # Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
11 # 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
13 # This file is part of the GNU MP Library.
15 # The GNU MP Library is free software; you can redistribute it and/or modify
16 # it under the terms of the GNU Lesser General Public License as published
17 # by the Free Software Foundation; either version 3 of the License, or (at
18 # your option) any later version.
20 # The GNU MP Library is distributed in the hope that it will be useful, but
21 # WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
22 # or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
23 # License for more details.
25 # You should have received a copy of the GNU Lesser General Public License
26 # along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
30 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
31 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
35 # This configure script is free software; the Free Software Foundation
36 # gives unlimited permission to copy, distribute and modify it.
37 ## -------------------- ##
38 ## M4sh Initialization. ##
39 ## -------------------- ##
41 # Be more Bourne compatible
42 DUALCASE=1; export DUALCASE # for MKS sh
43 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
46 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
47 # is contrary to our usage. Disable this feature.
48 alias -g '${1+"$@"}'='"$@"'
51 case `(set -o) 2>/dev/null` in #(
63 # Printing a long string crashes Solaris 7 /usr/bin/printf.
64 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
65 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
66 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
67 # Prefer a ksh shell builtin over an external printf program on Solaris,
68 # but without wasting forks for bash or zsh.
69 if test -z "$BASH_VERSION$ZSH_VERSION" \
70 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
72 as_echo_n='print -rn --'
73 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
77 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
78 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
79 as_echo_n='/usr/ucb/echo -n'
81 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
86 expr "X$arg" : "X\\(.*\\)$as_nl";
87 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
89 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
92 as_echo_n='sh -c $as_echo_n_body as_echo'
95 as_echo='sh -c $as_echo_body as_echo'
98 # The user is always right.
99 if test "${PATH_SEPARATOR+set}" != set; then
101 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
102 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
109 # We need space, tab and new line, in precisely that order. Quoting is
110 # there to prevent editors from complaining about space-tab.
111 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
112 # splitting by setting IFS to empty value.)
115 # Find who we are. Look in the path if we contain no directory separator.
117 *[\\/]* ) as_myself=$0 ;;
118 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
122 test -z "$as_dir" && as_dir=.
123 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
129 # We did not find ourselves, most probably we were run as `sh COMMAND'
130 # in which case we are not to be found in the path.
131 if test "x$as_myself" = x; then
134 if test ! -f "$as_myself"; then
135 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
139 # Unset variables that we do not need and which cause bugs (e.g. in
140 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
141 # suppresses any "Segmentation fault" message there. '((' could
142 # trigger a bug in pdksh 5.2.14.
143 for as_var in BASH_ENV ENV MAIL MAILPATH
144 do eval test x\${$as_var+set} = xset \
145 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
158 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1"
194 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
195 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
196 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
197 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
198 test \$(( 1 + 1 )) = 2 || exit 1"
199 if (eval "$as_required") 2>/dev/null; then :
204 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212 test -z "$as_dir" && as_dir=.
216 for as_base in sh bash ksh sh5; do
217 # Try only shells that exist, to save several forks.
218 as_shell=$as_dir/$as_base
219 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
220 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
221 CONFIG_SHELL=$as_shell as_have_required=yes
222 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
232 CONFIG_SHELL=$SHELL as_have_required=yes
237 if test "x$CONFIG_SHELL" != x; then :
238 # We cannot yet assume a decent shell, so we have to provide a
239 # neutralization value for shells without unset; and this also
240 # works around shells that cannot unset nonexistent variables.
243 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
245 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
248 if test x$as_have_required = xno; then :
249 $as_echo "$0: This script requires a shell more modern than all"
250 $as_echo "$0: the shells that I found on your system."
251 if test x${ZSH_VERSION+set} = xset ; then
252 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
253 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
255 $as_echo "$0: Please tell bug-autoconf@gnu.org and
256 $0: gmp-bugs@gmplib.org about your system, including any
257 $0: error possibly output before this message. Then install
258 $0: a modern shell, or manually run the script under such a
259 $0: shell if you do have one."
265 SHELL=${CONFIG_SHELL-/bin/sh}
267 # Unset more variables known to interfere with behavior of common tools.
268 CLICOLOR_FORCE= GREP_OPTIONS=
269 unset CLICOLOR_FORCE GREP_OPTIONS
271 ## --------------------- ##
272 ## M4sh Shell Functions. ##
273 ## --------------------- ##
276 # Portably unset VAR.
279 { eval $1=; unset $1;}
283 # as_fn_set_status STATUS
284 # -----------------------
285 # Set $? to STATUS, without forking.
293 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
303 # Create "$as_dir" as a directory, including parents if necessary.
308 -*) as_dir=./$as_dir;;
310 test -d "$as_dir" || eval $as_mkdir_p || {
314 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
317 as_dirs="'$as_qdir' $as_dirs"
318 as_dir=`$as_dirname -- "$as_dir" ||
319 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
320 X"$as_dir" : 'X\(//\)[^/]' \| \
321 X"$as_dir" : 'X\(//\)$' \| \
322 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
323 $as_echo X"$as_dir" |
324 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
341 test -d "$as_dir" && break
343 test -z "$as_dirs" || eval "mkdir $as_dirs"
344 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
348 # as_fn_append VAR VALUE
349 # ----------------------
350 # Append the text in VALUE to the end of the definition contained in VAR. Take
351 # advantage of any shell optimizations that allow amortized linear growth over
352 # repeated appends, instead of the typical quadratic growth present in naive
354 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
355 eval 'as_fn_append ()
368 # Perform arithmetic evaluation on the ARGs, and store the result in the
369 # global $as_val. Take advantage of shells that can avoid forks. The arguments
370 # must be portable across $(()) and expr.
371 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
379 as_val=`expr "$@" || test $? -eq 1`
384 # as_fn_error ERROR [LINENO LOG_FD]
385 # ---------------------------------
386 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
387 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
388 # script with status $?, using 1 if that was 0.
391 as_status=$?; test $as_status -eq 0 && as_status=1
393 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
394 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
396 $as_echo "$as_me: error: $1" >&2
397 as_fn_exit $as_status
400 if expr a : '\(a\)' >/dev/null 2>&1 &&
401 test "X`expr 00001 : '.*\(...\)'`" = X001; then
407 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
413 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
419 as_me=`$as_basename -- "$0" ||
420 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
421 X"$0" : 'X\(//\)$' \| \
422 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
424 sed '/^.*\/\([^/][^/]*\)\/*$/{
438 # Avoid depending upon Character Ranges.
439 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
440 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
441 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
442 as_cr_digits='0123456789'
443 as_cr_alnum=$as_cr_Letters$as_cr_digits
446 as_lineno_1=$LINENO as_lineno_1a=$LINENO
447 as_lineno_2=$LINENO as_lineno_2a=$LINENO
448 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
449 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
450 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
462 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
466 chmod +x "$as_me.lineno" ||
467 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
469 # Don't try to exec as it changes $[0], causing all sort of problems
470 # (the dirname of $[0] is not the place where we might find the
471 # original and so on. Autoconf is especially sensitive to this).
473 # Exit status is that of the last command.
477 ECHO_C= ECHO_N= ECHO_T=
478 case `echo -n x` in #(((((
480 case `echo 'xy\c'` in
481 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
483 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
495 mkdir conf$$.dir 2>/dev/null
497 if (echo >conf$$.file) 2>/dev/null; then
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
506 elif ln conf$$.file conf$$ 2>/dev/null; then
514 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
515 rmdir conf$$.dir 2>/dev/null
517 if mkdir -p . 2>/dev/null; then
518 as_mkdir_p='mkdir -p "$as_dir"'
520 test -d ./-p && rmdir ./-p
524 if test -x / >/dev/null 2>&1; then
527 if ls -dL / >/dev/null 2>&1; then
534 if test -d "$1"; then
540 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
541 ???[sx]*):;;*)false;;esac;fi
545 as_executable_p=$as_test_x
547 # Sed expression to map a string onto a valid CPP name.
548 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
550 # Sed expression to map a string onto a valid variable name.
551 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
555 # Check that we are running under the correct shell.
556 SHELL=${CONFIG_SHELL-/bin/sh}
560 # Remove one level of quotation (which was required for Make).
561 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
566 if test "X$1" = X--no-reexec; then
567 # Discard the --no-reexec flag, and continue.
569 elif test "X$1" = X--fallback-echo; then
570 # Avoid inline document here, it may be left over
572 elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
573 # Yippee, $ECHO works!
576 # Restart under the correct shell.
577 exec $SHELL "$0" --no-reexec ${1+"$@"}
580 if test "X$1" = X--fallback-echo; then
581 # used as fallback echo
589 # The HP-UX ksh and POSIX shell print the target directory to stdout
591 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
593 if test -z "$lt_ECHO"; then
594 if test "X${echo_test_string+set}" != Xset; then
595 # find a string as large as possible, as long as the shell can cope with it
596 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
597 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
598 if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
599 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
606 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
607 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
608 test "X$echo_testing_string" = "X$echo_test_string"; then
611 # The Solaris, AIX, and Digital Unix default echo programs unquote
612 # backslashes. This makes it impossible to quote backslashes using
613 # echo "$something" | sed 's/\\/\\\\/g'
615 # So, first we look for a working echo in the user's PATH.
617 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
618 for dir in $PATH /usr/ucb; do
620 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
621 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
622 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
623 test "X$echo_testing_string" = "X$echo_test_string"; then
630 if test "X$ECHO" = Xecho; then
631 # We didn't find a better echo, so look for alternatives.
632 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
633 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
634 test "X$echo_testing_string" = "X$echo_test_string"; then
635 # This shell has a builtin print -r that does the trick.
637 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
638 test "X$CONFIG_SHELL" != X/bin/ksh; then
639 # If we have ksh, try running configure again with it.
640 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
641 export ORIGINAL_CONFIG_SHELL
642 CONFIG_SHELL=/bin/ksh
644 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
648 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
649 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
650 test "X$echo_testing_string" = "X$echo_test_string"; then
653 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
654 test "X$echo_testing_string" = 'X\t' &&
655 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
656 test "X$echo_testing_string" = "X$echo_test_string"; then
657 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
659 SHELL="$CONFIG_SHELL"
661 ECHO="$CONFIG_SHELL $0 --fallback-echo"
662 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
663 test "X$echo_testing_string" = 'X\t' &&
664 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
665 test "X$echo_testing_string" = "X$echo_test_string"; then
666 ECHO="$CONFIG_SHELL $0 --fallback-echo"
668 # maybe with a smaller string...
671 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
672 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
679 if test "$prev" != 'sed 50q "$0"'; then
680 echo_test_string=`eval $prev`
681 export echo_test_string
682 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
684 # Oops. We lost completely, so just stick with echo.
693 # Copy echo and quote the copy suitably for passing to libtool from
694 # the Makefile, instead of quoting the original, which is used later.
696 if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
697 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
703 test -n "$DJDIR" || exec 7<&0 </dev/null
707 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
708 # so uname gets run too.
709 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
714 ac_default_prefix=/usr/local
716 ac_config_libobj_dir=.
723 # Identity of this package.
724 PACKAGE_NAME='GNU MP'
725 PACKAGE_TARNAME='gmp'
726 PACKAGE_VERSION='5.0.1'
727 PACKAGE_STRING='GNU MP 5.0.1'
728 PACKAGE_BUGREPORT='gmp-bugs@gmplib.org'
729 PACKAGE_URL='http://www.gnu.org/software/gmp/'
731 ac_unique_file="gmp-impl.h"
732 # Factoring default headers for most tests.
733 ac_includes_default="\
735 #ifdef HAVE_SYS_TYPES_H
736 # include <sys/types.h>
738 #ifdef HAVE_SYS_STAT_H
739 # include <sys/stat.h>
745 # ifdef HAVE_STDLIB_H
750 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
755 #ifdef HAVE_STRINGS_H
756 # include <strings.h>
758 #ifdef HAVE_INTTYPES_H
759 # include <inttypes.h>
768 ac_subst_vars='am__EXEEXT_FALSE
781 HAVE_SYS_RESOURCE_H_01
849 CALLING_CONVENTIONS_OBJS
850 SPEED_CYCLECOUNTER_OBJ
854 HAVE_HOST_CPU_FAMILY_powerpc
855 HAVE_HOST_CPU_FAMILY_power
861 MAINTAINER_MODE_FALSE
871 INSTALL_STRIP_PROGRAM
921 program_transform_name
934 enable_option_checking
935 enable_maintainer_mode
954 ac_precious_vars='build_alias
977 # Initialize some variables set by options.
979 ac_init_version=false
980 ac_unrecognized_opts=
982 # The variables have the same names as the options, with
983 # dashes changed to underlines.
991 program_transform_name=s,x,x,
999 # Installation directory options.
1000 # These are left unexpanded so users can "make install exec_prefix=/foo"
1001 # and all the variables that are supposed to be based on exec_prefix
1002 # by default will actually change.
1003 # Use braces instead of parens because sh, perl, etc. also accept them.
1004 # (The list follows the same order as the GNU Coding Standards.)
1005 bindir='${exec_prefix}/bin'
1006 sbindir='${exec_prefix}/sbin'
1007 libexecdir='${exec_prefix}/libexec'
1008 datarootdir='${prefix}/share'
1009 datadir='${datarootdir}'
1010 sysconfdir='${prefix}/etc'
1011 sharedstatedir='${prefix}/com'
1012 localstatedir='${prefix}/var'
1013 includedir='${prefix}/include'
1014 oldincludedir='/usr/include'
1015 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1016 infodir='${datarootdir}/info'
1021 libdir='${exec_prefix}/lib'
1022 localedir='${datarootdir}/locale'
1023 mandir='${datarootdir}/man'
1029 # If the previous option needs an argument, assign it.
1030 if test -n "$ac_prev"; then
1031 eval $ac_prev=\$ac_option
1037 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1041 # Accept the important Cygnus configure options, so we can diagnose typos.
1043 case $ac_dashdash$ac_option in
1047 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1049 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1050 bindir=$ac_optarg ;;
1052 -build | --build | --buil | --bui | --bu)
1053 ac_prev=build_alias ;;
1054 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1055 build_alias=$ac_optarg ;;
1057 -cache-file | --cache-file | --cache-fil | --cache-fi \
1058 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1059 ac_prev=cache_file ;;
1060 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1061 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1062 cache_file=$ac_optarg ;;
1064 --config-cache | -C)
1065 cache_file=config.cache ;;
1067 -datadir | --datadir | --datadi | --datad)
1069 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1070 datadir=$ac_optarg ;;
1072 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1073 | --dataroo | --dataro | --datar)
1074 ac_prev=datarootdir ;;
1075 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1076 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1077 datarootdir=$ac_optarg ;;
1079 -disable-* | --disable-*)
1080 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1081 # Reject names that are not valid shell variable names.
1082 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1083 as_fn_error "invalid feature name: $ac_useropt"
1084 ac_useropt_orig=$ac_useropt
1085 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1086 case $ac_user_opts in
1088 "enable_$ac_useropt"
1090 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1091 ac_unrecognized_sep=', ';;
1093 eval enable_$ac_useropt=no ;;
1095 -docdir | --docdir | --docdi | --doc | --do)
1097 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1098 docdir=$ac_optarg ;;
1100 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1102 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1103 dvidir=$ac_optarg ;;
1105 -enable-* | --enable-*)
1106 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1107 # Reject names that are not valid shell variable names.
1108 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1109 as_fn_error "invalid feature name: $ac_useropt"
1110 ac_useropt_orig=$ac_useropt
1111 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112 case $ac_user_opts in
1114 "enable_$ac_useropt"
1116 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1117 ac_unrecognized_sep=', ';;
1119 eval enable_$ac_useropt=\$ac_optarg ;;
1121 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1122 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1123 | --exec | --exe | --ex)
1124 ac_prev=exec_prefix ;;
1125 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1126 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1127 | --exec=* | --exe=* | --ex=*)
1128 exec_prefix=$ac_optarg ;;
1130 -gas | --gas | --ga | --g)
1131 # Obsolete; use --with-gas.
1134 -help | --help | --hel | --he | -h)
1135 ac_init_help=long ;;
1136 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1137 ac_init_help=recursive ;;
1138 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1139 ac_init_help=short ;;
1141 -host | --host | --hos | --ho)
1142 ac_prev=host_alias ;;
1143 -host=* | --host=* | --hos=* | --ho=*)
1144 host_alias=$ac_optarg ;;
1146 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1148 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1150 htmldir=$ac_optarg ;;
1152 -includedir | --includedir | --includedi | --included | --include \
1153 | --includ | --inclu | --incl | --inc)
1154 ac_prev=includedir ;;
1155 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1156 | --includ=* | --inclu=* | --incl=* | --inc=*)
1157 includedir=$ac_optarg ;;
1159 -infodir | --infodir | --infodi | --infod | --info | --inf)
1161 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1162 infodir=$ac_optarg ;;
1164 -libdir | --libdir | --libdi | --libd)
1166 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1167 libdir=$ac_optarg ;;
1169 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1170 | --libexe | --libex | --libe)
1171 ac_prev=libexecdir ;;
1172 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1173 | --libexe=* | --libex=* | --libe=*)
1174 libexecdir=$ac_optarg ;;
1176 -localedir | --localedir | --localedi | --localed | --locale)
1177 ac_prev=localedir ;;
1178 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1179 localedir=$ac_optarg ;;
1181 -localstatedir | --localstatedir | --localstatedi | --localstated \
1182 | --localstate | --localstat | --localsta | --localst | --locals)
1183 ac_prev=localstatedir ;;
1184 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1185 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1186 localstatedir=$ac_optarg ;;
1188 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1190 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1191 mandir=$ac_optarg ;;
1193 -nfp | --nfp | --nf)
1194 # Obsolete; use --without-fp.
1197 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1198 | --no-cr | --no-c | -n)
1201 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1202 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1205 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1206 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1207 | --oldin | --oldi | --old | --ol | --o)
1208 ac_prev=oldincludedir ;;
1209 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1210 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1211 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1212 oldincludedir=$ac_optarg ;;
1214 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1216 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1217 prefix=$ac_optarg ;;
1219 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1220 | --program-pre | --program-pr | --program-p)
1221 ac_prev=program_prefix ;;
1222 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1223 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1224 program_prefix=$ac_optarg ;;
1226 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1227 | --program-suf | --program-su | --program-s)
1228 ac_prev=program_suffix ;;
1229 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1230 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1231 program_suffix=$ac_optarg ;;
1233 -program-transform-name | --program-transform-name \
1234 | --program-transform-nam | --program-transform-na \
1235 | --program-transform-n | --program-transform- \
1236 | --program-transform | --program-transfor \
1237 | --program-transfo | --program-transf \
1238 | --program-trans | --program-tran \
1239 | --progr-tra | --program-tr | --program-t)
1240 ac_prev=program_transform_name ;;
1241 -program-transform-name=* | --program-transform-name=* \
1242 | --program-transform-nam=* | --program-transform-na=* \
1243 | --program-transform-n=* | --program-transform-=* \
1244 | --program-transform=* | --program-transfor=* \
1245 | --program-transfo=* | --program-transf=* \
1246 | --program-trans=* | --program-tran=* \
1247 | --progr-tra=* | --program-tr=* | --program-t=*)
1248 program_transform_name=$ac_optarg ;;
1250 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1252 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1253 pdfdir=$ac_optarg ;;
1255 -psdir | --psdir | --psdi | --psd | --ps)
1257 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1260 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1261 | -silent | --silent | --silen | --sile | --sil)
1264 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1266 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1268 sbindir=$ac_optarg ;;
1270 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1271 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1272 | --sharedst | --shareds | --shared | --share | --shar \
1274 ac_prev=sharedstatedir ;;
1275 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1276 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1277 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1279 sharedstatedir=$ac_optarg ;;
1281 -site | --site | --sit)
1283 -site=* | --site=* | --sit=*)
1286 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1288 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1289 srcdir=$ac_optarg ;;
1291 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1292 | --syscon | --sysco | --sysc | --sys | --sy)
1293 ac_prev=sysconfdir ;;
1294 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1295 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1296 sysconfdir=$ac_optarg ;;
1298 -target | --target | --targe | --targ | --tar | --ta | --t)
1299 ac_prev=target_alias ;;
1300 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1301 target_alias=$ac_optarg ;;
1303 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1306 -version | --version | --versio | --versi | --vers | -V)
1307 ac_init_version=: ;;
1310 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1311 # Reject names that are not valid shell variable names.
1312 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1313 as_fn_error "invalid package name: $ac_useropt"
1314 ac_useropt_orig=$ac_useropt
1315 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1316 case $ac_user_opts in
1320 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1321 ac_unrecognized_sep=', ';;
1323 eval with_$ac_useropt=\$ac_optarg ;;
1325 -without-* | --without-*)
1326 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1327 # Reject names that are not valid shell variable names.
1328 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1329 as_fn_error "invalid package name: $ac_useropt"
1330 ac_useropt_orig=$ac_useropt
1331 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1332 case $ac_user_opts in
1336 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1337 ac_unrecognized_sep=', ';;
1339 eval with_$ac_useropt=no ;;
1342 # Obsolete; use --with-x.
1345 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1346 | --x-incl | --x-inc | --x-in | --x-i)
1347 ac_prev=x_includes ;;
1348 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1349 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1350 x_includes=$ac_optarg ;;
1352 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1353 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1354 ac_prev=x_libraries ;;
1355 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1356 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1357 x_libraries=$ac_optarg ;;
1359 -*) as_fn_error "unrecognized option: \`$ac_option'
1360 Try \`$0 --help' for more information."
1364 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1365 # Reject names that are not valid shell variable names.
1366 case $ac_envvar in #(
1367 '' | [0-9]* | *[!_$as_cr_alnum]* )
1368 as_fn_error "invalid variable name: \`$ac_envvar'" ;;
1370 eval $ac_envvar=\$ac_optarg
1371 export $ac_envvar ;;
1374 # FIXME: should be removed in autoconf 3.0.
1375 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1376 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1377 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1378 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1384 if test -n "$ac_prev"; then
1385 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1386 as_fn_error "missing argument to $ac_option"
1389 if test -n "$ac_unrecognized_opts"; then
1390 case $enable_option_checking in
1392 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
1393 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1397 # Check all directory arguments for consistency.
1398 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1399 datadir sysconfdir sharedstatedir localstatedir includedir \
1400 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1401 libdir localedir mandir
1403 eval ac_val=\$$ac_var
1404 # Remove trailing slashes.
1407 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1408 eval $ac_var=\$ac_val;;
1410 # Be sure to have absolute directory names.
1412 [\\/$]* | ?:[\\/]* ) continue;;
1413 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1415 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
1418 # There might be people who depend on the old broken behavior: `$host'
1419 # used to hold the argument of --host etc.
1420 # FIXME: To remove some day.
1423 target=$target_alias
1425 # FIXME: To remove some day.
1426 if test "x$host_alias" != x; then
1427 if test "x$build_alias" = x; then
1428 cross_compiling=maybe
1429 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1430 If a cross compiler is detected then cross compile mode will be used." >&2
1431 elif test "x$build_alias" != "x$host_alias"; then
1437 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1439 test "$silent" = yes && exec 6>/dev/null
1442 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1443 ac_ls_di=`ls -di .` &&
1444 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1445 as_fn_error "working directory cannot be determined"
1446 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1447 as_fn_error "pwd does not report name of working directory"
1450 # Find the source files, if location was not specified.
1451 if test -z "$srcdir"; then
1452 ac_srcdir_defaulted=yes
1453 # Try the directory containing this script, then the parent directory.
1454 ac_confdir=`$as_dirname -- "$as_myself" ||
1455 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1456 X"$as_myself" : 'X\(//\)[^/]' \| \
1457 X"$as_myself" : 'X\(//\)$' \| \
1458 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1459 $as_echo X"$as_myself" |
1460 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1478 if test ! -r "$srcdir/$ac_unique_file"; then
1482 ac_srcdir_defaulted=no
1484 if test ! -r "$srcdir/$ac_unique_file"; then
1485 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1486 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
1488 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1490 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1492 # When building in place, set srcdir=.
1493 if test "$ac_abs_confdir" = "$ac_pwd"; then
1496 # Remove unnecessary trailing slashes from srcdir.
1497 # Double slashes in file names in object file debugging info
1498 # mess up M-x gdb in Emacs.
1500 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1502 for ac_var in $ac_precious_vars; do
1503 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1504 eval ac_env_${ac_var}_value=\$${ac_var}
1505 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1506 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1510 # Report the --help message.
1512 if test "$ac_init_help" = "long"; then
1513 # Omit some internal or obsolete options to make the list less imposing.
1514 # This message is too long to be a string in the A/UX 3.1 sh.
1516 \`configure' configures GNU MP 5.0.1 to adapt to many kinds of systems.
1518 Usage: $0 [OPTION]... [VAR=VALUE]...
1520 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1521 VAR=VALUE. See below for descriptions of some of the useful variables.
1523 Defaults for the options are specified in brackets.
1526 -h, --help display this help and exit
1527 --help=short display options specific to this package
1528 --help=recursive display the short help of all the included packages
1529 -V, --version display version information and exit
1530 -q, --quiet, --silent do not print \`checking...' messages
1531 --cache-file=FILE cache test results in FILE [disabled]
1532 -C, --config-cache alias for \`--cache-file=config.cache'
1533 -n, --no-create do not create output files
1534 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1536 Installation directories:
1537 --prefix=PREFIX install architecture-independent files in PREFIX
1538 [$ac_default_prefix]
1539 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1542 By default, \`make install' will install all the files in
1543 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1544 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1545 for instance \`--prefix=\$HOME'.
1547 For better control, use the options below.
1549 Fine tuning of the installation directories:
1550 --bindir=DIR user executables [EPREFIX/bin]
1551 --sbindir=DIR system admin executables [EPREFIX/sbin]
1552 --libexecdir=DIR program executables [EPREFIX/libexec]
1553 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1554 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1555 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1556 --libdir=DIR object code libraries [EPREFIX/lib]
1557 --includedir=DIR C header files [PREFIX/include]
1558 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1559 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1560 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1561 --infodir=DIR info documentation [DATAROOTDIR/info]
1562 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1563 --mandir=DIR man documentation [DATAROOTDIR/man]
1564 --docdir=DIR documentation root [DATAROOTDIR/doc/gmp]
1565 --htmldir=DIR html documentation [DOCDIR]
1566 --dvidir=DIR dvi documentation [DOCDIR]
1567 --pdfdir=DIR pdf documentation [DOCDIR]
1568 --psdir=DIR ps documentation [DOCDIR]
1574 --program-prefix=PREFIX prepend PREFIX to installed program names
1575 --program-suffix=SUFFIX append SUFFIX to installed program names
1576 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1579 --build=BUILD configure for building on BUILD [guessed]
1580 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1584 if test -n "$ac_init_help"; then
1585 case $ac_init_help in
1586 short | recursive ) echo "Configuration of GNU MP 5.0.1:";;
1591 --disable-option-checking ignore unrecognized --enable/--with options
1592 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1593 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1594 --enable-maintainer-mode enable make rules and dependencies not useful
1595 (and sometimes confusing) to the casual installer
1596 --enable-assert enable ASSERT checking [[default=no]]
1597 --enable-alloca how to get temp memory [[default=reentrant]]
1598 --enable-cxx enable C++ support [[default=no]]
1599 --enable-fft enable FFTs for multiplication [[default=yes]]
1600 --enable-old-fft-full enable old mpn_mul_fft_full for multiplication
1602 --enable-mpbsd build Berkeley MP compatibility library
1604 --enable-nails use nails on limbs [[default=no]]
1605 --enable-profiling build with profiler support [[default=no]]
1606 --enable-fat build a fat binary on systems that support it
1608 --enable-minithres choose minimal thresholds for testing [[default=no]]
1609 --enable-shared[=PKGS] build shared libraries [default=yes]
1610 --enable-static[=PKGS] build static libraries [default=yes]
1611 --enable-fast-install[=PKGS]
1612 optimize for fast installation [default=yes]
1613 --disable-libtool-lock avoid locking (might break parallel builds)
1616 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1617 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1618 --with-readline readline support in calc demo program
1620 --with-pic try to use only PIC/non-PIC objects [default=use
1622 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1624 Some influential environment variables:
1625 ABI desired ABI (for processors supporting more than one ABI)
1626 CC C compiler command
1627 CFLAGS C compiler flags
1628 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1629 nonstandard directory <lib dir>
1630 LIBS libraries to pass to the linker, e.g. -l<library>
1631 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1632 you have headers in a nonstandard directory <include dir>
1635 build system C compiler
1637 build system C preprocessor
1638 CXX C++ compiler command
1639 CXXFLAGS C++ compiler flags
1640 CXXCPP C++ preprocessor
1641 F77 Fortran 77 compiler command
1642 FFLAGS Fortran 77 compiler flags
1643 M4 m4 macro processor
1644 YACC The `Yet Another C Compiler' implementation to use. Defaults to
1645 the first program found out of: `bison -y', `byacc', `yacc'.
1646 YFLAGS The list of arguments that will be passed by default to $YACC.
1647 This script will default YFLAGS to the empty string to avoid a
1648 default value of `-d' given by some make applications.
1650 Use these variables to override the choices made by `configure' or to help
1651 it to find libraries and programs with nonstandard names/locations.
1653 Report bugs to <gmp-bugs@gmplib.org>.
1654 GNU MP home page: <http://www.gnu.org/software/gmp/>.
1655 General help using GNU software: <http://www.gnu.org/gethelp/>.
1660 if test "$ac_init_help" = "recursive"; then
1661 # If there are subdirs, report their specific --help.
1662 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1663 test -d "$ac_dir" ||
1664 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1669 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1671 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1672 # A ".." for each directory in $ac_dir_suffix.
1673 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1674 case $ac_top_builddir_sub in
1675 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1676 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1679 ac_abs_top_builddir=$ac_pwd
1680 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1681 # for backward compatibility:
1682 ac_top_builddir=$ac_top_build_prefix
1685 .) # We are building in place.
1687 ac_top_srcdir=$ac_top_builddir_sub
1688 ac_abs_top_srcdir=$ac_pwd ;;
1689 [\\/]* | ?:[\\/]* ) # Absolute name.
1690 ac_srcdir=$srcdir$ac_dir_suffix;
1691 ac_top_srcdir=$srcdir
1692 ac_abs_top_srcdir=$srcdir ;;
1694 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1695 ac_top_srcdir=$ac_top_build_prefix$srcdir
1696 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1698 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1700 cd "$ac_dir" || { ac_status=$?; continue; }
1701 # Check for guested configure.
1702 if test -f "$ac_srcdir/configure.gnu"; then
1704 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1705 elif test -f "$ac_srcdir/configure"; then
1707 $SHELL "$ac_srcdir/configure" --help=recursive
1709 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1711 cd "$ac_pwd" || { ac_status=$?; break; }
1715 test -n "$ac_init_help" && exit $ac_status
1716 if $ac_init_version; then
1718 GNU MP configure 5.0.1
1719 generated by GNU Autoconf 2.65
1721 Copyright (C) 2009 Free Software Foundation, Inc.
1722 This configure script is free software; the Free Software Foundation
1723 gives unlimited permission to copy, distribute and modify it.
1727 Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
1728 2007, 2008, 2009, 2010 Free Software Foundation, Inc.
1730 This file is part of the GNU MP Library.
1732 The GNU MP Library is free software; you can redistribute it and/or modify
1733 it under the terms of the GNU Lesser General Public License as published
1734 by the Free Software Foundation; either version 3 of the License, or (at
1735 your option) any later version.
1737 The GNU MP Library is distributed in the hope that it will be useful, but
1738 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
1739 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
1740 License for more details.
1742 You should have received a copy of the GNU Lesser General Public License
1743 along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
1749 ## ------------------------ ##
1750 ## Autoconf initialization. ##
1751 ## ------------------------ ##
1753 # ac_fn_c_try_compile LINENO
1754 # --------------------------
1755 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1756 ac_fn_c_try_compile ()
1758 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1759 rm -f conftest.$ac_objext
1760 if { { ac_try="$ac_compile"
1762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1763 *) ac_try_echo=$ac_try;;
1765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1766 $as_echo "$ac_try_echo"; } >&5
1767 (eval "$ac_compile") 2>conftest.err
1769 if test -s conftest.err; then
1770 grep -v '^ *+' conftest.err >conftest.er1
1771 cat conftest.er1 >&5
1772 mv -f conftest.er1 conftest.err
1774 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1775 test $ac_status = 0; } && {
1776 test -z "$ac_c_werror_flag" ||
1777 test ! -s conftest.err
1778 } && test -s conftest.$ac_objext; then :
1781 $as_echo "$as_me: failed program was:" >&5
1782 sed 's/^/| /' conftest.$ac_ext >&5
1786 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1787 as_fn_set_status $ac_retval
1789 } # ac_fn_c_try_compile
1791 # ac_fn_c_try_cpp LINENO
1792 # ----------------------
1793 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1796 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1797 if { { ac_try="$ac_cpp conftest.$ac_ext"
1799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1800 *) ac_try_echo=$ac_try;;
1802 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1803 $as_echo "$ac_try_echo"; } >&5
1804 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1806 if test -s conftest.err; then
1807 grep -v '^ *+' conftest.err >conftest.er1
1808 cat conftest.er1 >&5
1809 mv -f conftest.er1 conftest.err
1811 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1812 test $ac_status = 0; } >/dev/null && {
1813 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1814 test ! -s conftest.err
1818 $as_echo "$as_me: failed program was:" >&5
1819 sed 's/^/| /' conftest.$ac_ext >&5
1823 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1824 as_fn_set_status $ac_retval
1828 # ac_fn_cxx_try_compile LINENO
1829 # ----------------------------
1830 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1831 ac_fn_cxx_try_compile ()
1833 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1834 rm -f conftest.$ac_objext
1835 if { { ac_try="$ac_compile"
1837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1838 *) ac_try_echo=$ac_try;;
1840 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1841 $as_echo "$ac_try_echo"; } >&5
1842 (eval "$ac_compile") 2>conftest.err
1844 if test -s conftest.err; then
1845 grep -v '^ *+' conftest.err >conftest.er1
1846 cat conftest.er1 >&5
1847 mv -f conftest.er1 conftest.err
1849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1850 test $ac_status = 0; } && {
1851 test -z "$ac_cxx_werror_flag" ||
1852 test ! -s conftest.err
1853 } && test -s conftest.$ac_objext; then :
1856 $as_echo "$as_me: failed program was:" >&5
1857 sed 's/^/| /' conftest.$ac_ext >&5
1861 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1862 as_fn_set_status $ac_retval
1864 } # ac_fn_cxx_try_compile
1866 # ac_fn_cxx_try_cpp LINENO
1867 # ------------------------
1868 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1869 ac_fn_cxx_try_cpp ()
1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872 if { { ac_try="$ac_cpp conftest.$ac_ext"
1874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1875 *) ac_try_echo=$ac_try;;
1877 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1878 $as_echo "$ac_try_echo"; } >&5
1879 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1881 if test -s conftest.err; then
1882 grep -v '^ *+' conftest.err >conftest.er1
1883 cat conftest.er1 >&5
1884 mv -f conftest.er1 conftest.err
1886 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1887 test $ac_status = 0; } >/dev/null && {
1888 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1889 test ! -s conftest.err
1893 $as_echo "$as_me: failed program was:" >&5
1894 sed 's/^/| /' conftest.$ac_ext >&5
1898 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1899 as_fn_set_status $ac_retval
1901 } # ac_fn_cxx_try_cpp
1903 # ac_fn_c_try_run LINENO
1904 # ----------------------
1905 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1906 # that executables *can* be run.
1909 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1910 if { { ac_try="$ac_link"
1912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1913 *) ac_try_echo=$ac_try;;
1915 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1916 $as_echo "$ac_try_echo"; } >&5
1917 (eval "$ac_link") 2>&5
1919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1920 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1921 { { case "(($ac_try" in
1922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1923 *) ac_try_echo=$ac_try;;
1925 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1926 $as_echo "$ac_try_echo"; } >&5
1927 (eval "$ac_try") 2>&5
1929 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1930 test $ac_status = 0; }; }; then :
1933 $as_echo "$as_me: program exited with status $ac_status" >&5
1934 $as_echo "$as_me: failed program was:" >&5
1935 sed 's/^/| /' conftest.$ac_ext >&5
1937 ac_retval=$ac_status
1939 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1940 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1941 as_fn_set_status $ac_retval
1945 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1946 # -------------------------------------------------------
1947 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1948 # the include files in INCLUDES and setting the cache variable VAR
1950 ac_fn_c_check_header_mongrel ()
1952 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1953 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1955 $as_echo_n "checking for $2... " >&6; }
1956 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1957 $as_echo_n "(cached) " >&6
1960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1961 $as_echo "$ac_res" >&6; }
1963 # Is the header compilable?
1964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1965 $as_echo_n "checking $2 usability... " >&6; }
1966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1967 /* end confdefs.h. */
1971 if ac_fn_c_try_compile "$LINENO"; then :
1972 ac_header_compiler=yes
1974 ac_header_compiler=no
1976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1978 $as_echo "$ac_header_compiler" >&6; }
1980 # Is the header present?
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1982 $as_echo_n "checking $2 presence... " >&6; }
1983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1984 /* end confdefs.h. */
1987 if ac_fn_c_try_cpp "$LINENO"; then :
1988 ac_header_preproc=yes
1990 ac_header_preproc=no
1992 rm -f conftest.err conftest.$ac_ext
1993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1994 $as_echo "$ac_header_preproc" >&6; }
1996 # So? What about this header?
1997 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2000 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2002 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2006 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2008 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2010 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2012 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2014 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2016 ## ---------------------------------- ##
2017 ## Report this to gmp-bugs@gmplib.org ##
2018 ## ---------------------------------- ##
2020 ) | sed "s/^/$as_me: WARNING: /" >&2
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2024 $as_echo_n "checking for $2... " >&6; }
2025 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2026 $as_echo_n "(cached) " >&6
2028 eval "$3=\$ac_header_compiler"
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2032 $as_echo "$ac_res" >&6; }
2034 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2036 } # ac_fn_c_check_header_mongrel
2038 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2039 # -------------------------------------------------------
2040 # Tests whether HEADER exists and can be compiled using the include files in
2041 # INCLUDES, setting the cache variable VAR accordingly.
2042 ac_fn_c_check_header_compile ()
2044 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2046 $as_echo_n "checking for $2... " >&6; }
2047 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2048 $as_echo_n "(cached) " >&6
2050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2051 /* end confdefs.h. */
2055 if ac_fn_c_try_compile "$LINENO"; then :
2060 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2064 $as_echo "$ac_res" >&6; }
2065 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2067 } # ac_fn_c_check_header_compile
2069 # ac_fn_c_try_link LINENO
2070 # -----------------------
2071 # Try to link conftest.$ac_ext, and return whether this succeeded.
2074 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2075 rm -f conftest.$ac_objext conftest$ac_exeext
2076 if { { ac_try="$ac_link"
2078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2079 *) ac_try_echo=$ac_try;;
2081 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2082 $as_echo "$ac_try_echo"; } >&5
2083 (eval "$ac_link") 2>conftest.err
2085 if test -s conftest.err; then
2086 grep -v '^ *+' conftest.err >conftest.er1
2087 cat conftest.er1 >&5
2088 mv -f conftest.er1 conftest.err
2090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2091 test $ac_status = 0; } && {
2092 test -z "$ac_c_werror_flag" ||
2093 test ! -s conftest.err
2094 } && test -s conftest$ac_exeext && {
2095 test "$cross_compiling" = yes ||
2096 $as_test_x conftest$ac_exeext
2100 $as_echo "$as_me: failed program was:" >&5
2101 sed 's/^/| /' conftest.$ac_ext >&5
2105 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2106 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2107 # interfere with the next link command; also delete a directory that is
2108 # left behind by Apple's compiler. We do this before executing the actions.
2109 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2110 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2111 as_fn_set_status $ac_retval
2113 } # ac_fn_c_try_link
2115 # ac_fn_c_check_func LINENO FUNC VAR
2116 # ----------------------------------
2117 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2118 ac_fn_c_check_func ()
2120 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2122 $as_echo_n "checking for $2... " >&6; }
2123 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2124 $as_echo_n "(cached) " >&6
2126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2127 /* end confdefs.h. */
2128 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2129 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2130 #define $2 innocuous_$2
2132 /* System header to define __stub macros and hopefully few prototypes,
2133 which can conflict with char $2 (); below.
2134 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2135 <limits.h> exists even on freestanding compilers. */
2138 # include <limits.h>
2140 # include <assert.h>
2145 /* Override any GCC internal prototype to avoid an error.
2146 Use char because int might match the return type of a GCC
2147 builtin and then its argument prototype would still apply. */
2152 /* The GNU C library defines this for functions which it implements
2153 to always fail with ENOSYS. Some functions are actually named
2154 something starting with __ and the normal name is an alias. */
2155 #if defined __stub_$2 || defined __stub___$2
2167 if ac_fn_c_try_link "$LINENO"; then :
2172 rm -f core conftest.err conftest.$ac_objext \
2173 conftest$ac_exeext conftest.$ac_ext
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2177 $as_echo "$ac_res" >&6; }
2178 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2180 } # ac_fn_c_check_func
2182 # ac_fn_cxx_try_link LINENO
2183 # -------------------------
2184 # Try to link conftest.$ac_ext, and return whether this succeeded.
2185 ac_fn_cxx_try_link ()
2187 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2188 rm -f conftest.$ac_objext conftest$ac_exeext
2189 if { { ac_try="$ac_link"
2191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2192 *) ac_try_echo=$ac_try;;
2194 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2195 $as_echo "$ac_try_echo"; } >&5
2196 (eval "$ac_link") 2>conftest.err
2198 if test -s conftest.err; then
2199 grep -v '^ *+' conftest.err >conftest.er1
2200 cat conftest.er1 >&5
2201 mv -f conftest.er1 conftest.err
2203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2204 test $ac_status = 0; } && {
2205 test -z "$ac_cxx_werror_flag" ||
2206 test ! -s conftest.err
2207 } && test -s conftest$ac_exeext && {
2208 test "$cross_compiling" = yes ||
2209 $as_test_x conftest$ac_exeext
2213 $as_echo "$as_me: failed program was:" >&5
2214 sed 's/^/| /' conftest.$ac_ext >&5
2218 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2219 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2220 # interfere with the next link command; also delete a directory that is
2221 # left behind by Apple's compiler. We do this before executing the actions.
2222 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2223 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2224 as_fn_set_status $ac_retval
2226 } # ac_fn_cxx_try_link
2228 # ac_fn_f77_try_compile LINENO
2229 # ----------------------------
2230 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2231 ac_fn_f77_try_compile ()
2233 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2234 rm -f conftest.$ac_objext
2235 if { { ac_try="$ac_compile"
2237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2238 *) ac_try_echo=$ac_try;;
2240 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2241 $as_echo "$ac_try_echo"; } >&5
2242 (eval "$ac_compile") 2>conftest.err
2244 if test -s conftest.err; then
2245 grep -v '^ *+' conftest.err >conftest.er1
2246 cat conftest.er1 >&5
2247 mv -f conftest.er1 conftest.err
2249 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2250 test $ac_status = 0; } && {
2251 test -z "$ac_f77_werror_flag" ||
2252 test ! -s conftest.err
2253 } && test -s conftest.$ac_objext; then :
2256 $as_echo "$as_me: failed program was:" >&5
2257 sed 's/^/| /' conftest.$ac_ext >&5
2261 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2262 as_fn_set_status $ac_retval
2264 } # ac_fn_f77_try_compile
2266 # ac_fn_f77_try_link LINENO
2267 # -------------------------
2268 # Try to link conftest.$ac_ext, and return whether this succeeded.
2269 ac_fn_f77_try_link ()
2271 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2272 rm -f conftest.$ac_objext conftest$ac_exeext
2273 if { { ac_try="$ac_link"
2275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2276 *) ac_try_echo=$ac_try;;
2278 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2279 $as_echo "$ac_try_echo"; } >&5
2280 (eval "$ac_link") 2>conftest.err
2282 if test -s conftest.err; then
2283 grep -v '^ *+' conftest.err >conftest.er1
2284 cat conftest.er1 >&5
2285 mv -f conftest.er1 conftest.err
2287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2288 test $ac_status = 0; } && {
2289 test -z "$ac_f77_werror_flag" ||
2290 test ! -s conftest.err
2291 } && test -s conftest$ac_exeext && {
2292 test "$cross_compiling" = yes ||
2293 $as_test_x conftest$ac_exeext
2297 $as_echo "$as_me: failed program was:" >&5
2298 sed 's/^/| /' conftest.$ac_ext >&5
2302 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2303 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2304 # interfere with the next link command; also delete a directory that is
2305 # left behind by Apple's compiler. We do this before executing the actions.
2306 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2307 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2308 as_fn_set_status $ac_retval
2310 } # ac_fn_f77_try_link
2312 # ac_fn_c_check_decl LINENO SYMBOL VAR
2313 # ------------------------------------
2314 # Tests whether SYMBOL is declared, setting cache variable VAR accordingly.
2315 ac_fn_c_check_decl ()
2317 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5
2319 $as_echo_n "checking whether $2 is declared... " >&6; }
2320 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2321 $as_echo_n "(cached) " >&6
2323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2324 /* end confdefs.h. */
2337 if ac_fn_c_try_compile "$LINENO"; then :
2342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2346 $as_echo "$ac_res" >&6; }
2347 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2349 } # ac_fn_c_check_decl
2351 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2352 # -------------------------------------------
2353 # Tests whether TYPE exists after having included INCLUDES, setting cache
2354 # variable VAR accordingly.
2355 ac_fn_c_check_type ()
2357 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2359 $as_echo_n "checking for $2... " >&6; }
2360 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2361 $as_echo_n "(cached) " >&6
2364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2365 /* end confdefs.h. */
2376 if ac_fn_c_try_compile "$LINENO"; then :
2377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2378 /* end confdefs.h. */
2389 if ac_fn_c_try_compile "$LINENO"; then :
2394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2400 $as_echo "$ac_res" >&6; }
2401 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2403 } # ac_fn_c_check_type
2405 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
2406 # ----------------------------------------------------
2407 # Tries to find if the field MEMBER exists in type AGGR, after including
2408 # INCLUDES, setting cache variable VAR accordingly.
2409 ac_fn_c_check_member ()
2411 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
2413 $as_echo_n "checking for $2.$3... " >&6; }
2414 if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then :
2415 $as_echo_n "(cached) " >&6
2417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2418 /* end confdefs.h. */
2430 if ac_fn_c_try_compile "$LINENO"; then :
2433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2434 /* end confdefs.h. */
2440 if (sizeof ac_aggr.$3)
2446 if ac_fn_c_try_compile "$LINENO"; then :
2451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2457 $as_echo "$ac_res" >&6; }
2458 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2460 } # ac_fn_c_check_member
2462 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
2463 # ---------------------------------------------------------
2464 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2465 # the include files in INCLUDES and setting the cache variable VAR
2467 ac_fn_cxx_check_header_mongrel ()
2469 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2470 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2472 $as_echo_n "checking for $2... " >&6; }
2473 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2474 $as_echo_n "(cached) " >&6
2477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2478 $as_echo "$ac_res" >&6; }
2480 # Is the header compilable?
2481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2482 $as_echo_n "checking $2 usability... " >&6; }
2483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2484 /* end confdefs.h. */
2488 if ac_fn_cxx_try_compile "$LINENO"; then :
2489 ac_header_compiler=yes
2491 ac_header_compiler=no
2493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2495 $as_echo "$ac_header_compiler" >&6; }
2497 # Is the header present?
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2499 $as_echo_n "checking $2 presence... " >&6; }
2500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2501 /* end confdefs.h. */
2504 if ac_fn_cxx_try_cpp "$LINENO"; then :
2505 ac_header_preproc=yes
2507 ac_header_preproc=no
2509 rm -f conftest.err conftest.$ac_ext
2510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2511 $as_echo "$ac_header_preproc" >&6; }
2513 # So? What about this header?
2514 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
2516 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2517 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2519 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2523 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2524 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2525 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2527 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2529 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2531 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2533 ## ---------------------------------- ##
2534 ## Report this to gmp-bugs@gmplib.org ##
2535 ## ---------------------------------- ##
2537 ) | sed "s/^/$as_me: WARNING: /" >&2
2540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2541 $as_echo_n "checking for $2... " >&6; }
2542 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2543 $as_echo_n "(cached) " >&6
2545 eval "$3=\$ac_header_compiler"
2548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2549 $as_echo "$ac_res" >&6; }
2551 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2553 } # ac_fn_cxx_check_header_mongrel
2555 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
2556 # ---------------------------------------------
2557 # Tests whether TYPE exists after having included INCLUDES, setting cache
2558 # variable VAR accordingly.
2559 ac_fn_cxx_check_type ()
2561 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2563 $as_echo_n "checking for $2... " >&6; }
2564 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
2565 $as_echo_n "(cached) " >&6
2568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2569 /* end confdefs.h. */
2580 if ac_fn_cxx_try_compile "$LINENO"; then :
2581 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2582 /* end confdefs.h. */
2593 if ac_fn_cxx_try_compile "$LINENO"; then :
2598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2600 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2604 $as_echo "$ac_res" >&6; }
2605 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2607 } # ac_fn_cxx_check_type
2609 # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
2610 # --------------------------------------------
2611 # Tries to find the compile-time value of EXPR in a program that includes
2612 # INCLUDES, setting VAR accordingly. Returns whether the value could be
2614 ac_fn_c_compute_int ()
2616 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2617 if test "$cross_compiling" = yes; then
2618 # Depending upon the size, compute the lo and hi bounds.
2619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2620 /* end confdefs.h. */
2625 static int test_array [1 - 2 * !(($2) >= 0)];
2632 if ac_fn_c_try_compile "$LINENO"; then :
2635 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2636 /* end confdefs.h. */
2641 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2648 if ac_fn_c_try_compile "$LINENO"; then :
2649 ac_hi=$ac_mid; break
2651 as_fn_arith $ac_mid + 1 && ac_lo=$as_val
2652 if test $ac_lo -le $ac_mid; then
2656 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
2658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2662 /* end confdefs.h. */
2667 static int test_array [1 - 2 * !(($2) < 0)];
2674 if ac_fn_c_try_compile "$LINENO"; then :
2677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2678 /* end confdefs.h. */
2683 static int test_array [1 - 2 * !(($2) >= $ac_mid)];
2690 if ac_fn_c_try_compile "$LINENO"; then :
2691 ac_lo=$ac_mid; break
2693 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
2694 if test $ac_mid -le $ac_hi; then
2698 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
2700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2708 # Binary search between lo and hi bounds.
2709 while test "x$ac_lo" != "x$ac_hi"; do
2710 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
2711 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2712 /* end confdefs.h. */
2717 static int test_array [1 - 2 * !(($2) <= $ac_mid)];
2724 if ac_fn_c_try_compile "$LINENO"; then :
2727 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
2729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2732 ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
2736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2737 /* end confdefs.h. */
2739 static long int longval () { return $2; }
2740 static unsigned long int ulongval () { return $2; }
2747 FILE *f = fopen ("conftest.val", "w");
2752 long int i = longval ();
2755 fprintf (f, "%ld", i);
2759 unsigned long int i = ulongval ();
2762 fprintf (f, "%lu", i);
2764 /* Do not output a trailing newline, as this causes \r\n confusion
2765 on some platforms. */
2766 return ferror (f) || fclose (f) != 0;
2772 if ac_fn_c_try_run "$LINENO"; then :
2773 echo >>conftest.val; read $3 <conftest.val; ac_retval=0
2777 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
2778 conftest.$ac_objext conftest.beam conftest.$ac_ext
2782 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
2783 as_fn_set_status $ac_retval
2785 } # ac_fn_c_compute_int
2786 cat >config.log <<_ACEOF
2787 This file contains any messages produced by compilers while
2788 running configure, to aid debugging if configure makes a mistake.
2790 It was created by GNU MP $as_me 5.0.1, which was
2791 generated by GNU Autoconf 2.65. Invocation command line was
2803 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2804 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2805 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2806 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2807 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2809 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2810 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2812 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2813 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2814 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2815 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2816 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2817 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2818 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2822 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2826 test -z "$as_dir" && as_dir=.
2827 $as_echo "PATH: $as_dir"
2843 # Keep a trace of the command line.
2844 # Strip out --no-create and --no-recursion so they do not pile up.
2845 # Strip out --silent because we don't want to record it for future runs.
2846 # Also quote any args containing shell meta-characters.
2847 # Make two passes to allow for proper duplicate-argument suppression.
2851 ac_must_keep_next=false
2857 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2858 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2859 | -silent | --silent | --silen | --sile | --sil)
2862 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2865 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2867 as_fn_append ac_configure_args1 " '$ac_arg'"
2868 if test $ac_must_keep_next = true; then
2869 ac_must_keep_next=false # Got value, back to normal.
2872 *=* | --config-cache | -C | -disable-* | --disable-* \
2873 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2874 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2875 | -with-* | --with-* | -without-* | --without-* | --x)
2876 case "$ac_configure_args0 " in
2877 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2880 -* ) ac_must_keep_next=true ;;
2883 as_fn_append ac_configure_args " '$ac_arg'"
2888 { ac_configure_args0=; unset ac_configure_args0;}
2889 { ac_configure_args1=; unset ac_configure_args1;}
2891 # When interrupted or exit'd, cleanup temporary files, and complete
2892 # config.log. We remove comments because anyway the quotes in there
2893 # would cause problems or look ugly.
2894 # WARNING: Use '\'' to represent an apostrophe within the trap.
2895 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2896 trap 'exit_status=$?
2897 # Save into config.log some information that might help in debugging.
2902 ## ---------------- ##
2903 ## Cache variables. ##
2904 ## ---------------- ##
2907 # The following way of writing the cache mishandles newlines in values,
2909 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2910 eval ac_val=\$$ac_var
2914 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2915 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2918 _ | IFS | as_nl) ;; #(
2919 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2920 *) { eval $ac_var=; unset $ac_var;} ;;
2925 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2926 *${as_nl}ac_space=\ *)
2928 "s/'\''/'\''\\\\'\'''\''/g;
2929 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2932 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2940 ## ----------------- ##
2941 ## Output variables. ##
2942 ## ----------------- ##
2945 for ac_var in $ac_subst_vars
2947 eval ac_val=\$$ac_var
2949 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2951 $as_echo "$ac_var='\''$ac_val'\''"
2955 if test -n "$ac_subst_files"; then
2957 ## ------------------- ##
2958 ## File substitutions. ##
2959 ## ------------------- ##
2962 for ac_var in $ac_subst_files
2964 eval ac_val=\$$ac_var
2966 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2968 $as_echo "$ac_var='\''$ac_val'\''"
2973 if test -s confdefs.h; then
2983 test "$ac_signal" != 0 &&
2984 $as_echo "$as_me: caught signal $ac_signal"
2985 $as_echo "$as_me: exit $exit_status"
2987 rm -f core *.core core.conftest.* &&
2988 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2991 for ac_signal in 1 2 13 15; do
2992 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2996 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2997 rm -f -r conftest* confdefs.h
2999 $as_echo "/* confdefs.h */" > confdefs.h
3001 # Predefined preprocessor variables.
3003 cat >>confdefs.h <<_ACEOF
3004 #define PACKAGE_NAME "$PACKAGE_NAME"
3007 cat >>confdefs.h <<_ACEOF
3008 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3011 cat >>confdefs.h <<_ACEOF
3012 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3015 cat >>confdefs.h <<_ACEOF
3016 #define PACKAGE_STRING "$PACKAGE_STRING"
3019 cat >>confdefs.h <<_ACEOF
3020 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3023 cat >>confdefs.h <<_ACEOF
3024 #define PACKAGE_URL "$PACKAGE_URL"
3028 # Let the site file select an alternate cache file if it wants to.
3029 # Prefer an explicitly selected file to automatically selected ones.
3032 if test -n "$CONFIG_SITE"; then
3033 ac_site_file1=$CONFIG_SITE
3034 elif test "x$prefix" != xNONE; then
3035 ac_site_file1=$prefix/share/config.site
3036 ac_site_file2=$prefix/etc/config.site
3038 ac_site_file1=$ac_default_prefix/share/config.site
3039 ac_site_file2=$ac_default_prefix/etc/config.site
3041 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3043 test "x$ac_site_file" = xNONE && continue
3044 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3046 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3047 sed 's/^/| /' "$ac_site_file" >&5
3052 if test -r "$cache_file"; then
3053 # Some versions of bash will fail to source /dev/null (special files
3054 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3055 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3056 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3057 $as_echo "$as_me: loading cache $cache_file" >&6;}
3059 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3060 *) . "./$cache_file";;
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3065 $as_echo "$as_me: creating cache $cache_file" >&6;}
3069 # Check that the precious variables saved in the cache have kept the same
3071 ac_cache_corrupted=false
3072 for ac_var in $ac_precious_vars; do
3073 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3074 eval ac_new_set=\$ac_env_${ac_var}_set
3075 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3076 eval ac_new_val=\$ac_env_${ac_var}_value
3077 case $ac_old_set,$ac_new_set in
3079 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3080 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3081 ac_cache_corrupted=: ;;
3083 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3084 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3085 ac_cache_corrupted=: ;;
3088 if test "x$ac_old_val" != "x$ac_new_val"; then
3089 # differences in whitespace do not lead to failure.
3090 ac_old_val_w=`echo x $ac_old_val`
3091 ac_new_val_w=`echo x $ac_new_val`
3092 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3093 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3094 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3095 ac_cache_corrupted=:
3097 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3098 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3099 eval $ac_var=\$ac_old_val
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3102 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3103 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3104 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3107 # Pass precious variables to config.status.
3108 if test "$ac_new_set" = set; then
3110 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3111 *) ac_arg=$ac_var=$ac_new_val ;;
3113 case " $ac_configure_args " in
3114 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3115 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3119 if $ac_cache_corrupted; then
3120 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3121 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3122 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3123 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3124 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3126 ## -------------------- ##
3127 ## Main body of script. ##
3128 ## -------------------- ##
3131 ac_cpp='$CPP $CPPFLAGS'
3132 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3133 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3134 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3145 # If --target is not used then $target_alias is empty, but if say
3146 # "./configure athlon-pc-freebsd3.5" is used, then all three of
3147 # $build_alias, $host_alias and $target_alias are set to
3148 # "athlon-pc-freebsd3.5".
3150 if test -n "$target_alias" && test "$target_alias" != "$host_alias"; then
3151 as_fn_error "--target is not appropriate for GMP
3152 Use --build=CPU-VENDOR-OS if you need to specify your CPU and/or system
3153 explicitly. Use --host if cross-compiling (see \"Installing GMP\" in the
3154 manual for more on this)." "$LINENO" 5
3157 gmp_configm4="config.m4"
3158 gmp_tmpconfigm4=cnfm4.tmp
3159 gmp_tmpconfigm4i=cnfm4i.tmp
3160 gmp_tmpconfigm4p=cnfm4p.tmp
3161 rm -f $gmp_tmpconfigm4 $gmp_tmpconfigm4i $gmp_tmpconfigm4p
3163 # CONFIG_TOP_SRCDIR is a path from the mpn builddir to the top srcdir.
3164 # The pattern here tests for an absolute path the same way as
3165 # _AC_OUTPUT_FILES in autoconf acgeneral.m4.
3167 [\\/]* | ?:[\\/]* ) tmp="$srcdir" ;;
3168 *) tmp="../$srcdir" ;;
3170 echo "define(<CONFIG_TOP_SRCDIR>,<\`$tmp'>)" >>$gmp_tmpconfigm4
3172 # All CPUs use asm-defs.m4
3173 echo "include(CONFIG_TOP_SRCDIR\`/mpn/asm-defs.m4')" >>$gmp_tmpconfigm4i
3177 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
3178 for ac_t in install-sh install.sh shtool; do
3179 if test -f "$ac_dir/$ac_t"; then
3181 ac_install_sh="$ac_aux_dir/$ac_t -c"
3186 if test -z "$ac_aux_dir"; then
3187 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
3190 # These three variables are undocumented and unsupported,
3191 # and are intended to be withdrawn in a future Autoconf release.
3192 # They can cause serious problems if a builder's source tree is in a directory
3193 # whose full name contains unusual characters.
3194 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3195 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3196 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3199 # Make sure we can run config.sub.
3200 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3201 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3204 $as_echo_n "checking build system type... " >&6; }
3205 if test "${ac_cv_build+set}" = set; then :
3206 $as_echo_n "(cached) " >&6
3208 ac_build_alias=$build_alias
3209 test "x$ac_build_alias" = x &&
3210 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3211 test "x$ac_build_alias" = x &&
3212 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
3213 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3214 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3218 $as_echo "$ac_cv_build" >&6; }
3219 case $ac_cv_build in
3221 *) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
3224 ac_save_IFS=$IFS; IFS='-'
3230 # Remember, the first character of IFS is used to create $*,
3231 # except with old shells:
3234 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3238 $as_echo_n "checking host system type... " >&6; }
3239 if test "${ac_cv_host+set}" = set; then :
3240 $as_echo_n "(cached) " >&6
3242 if test "x$host_alias" = x; then
3243 ac_cv_host=$ac_cv_build
3245 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3246 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3251 $as_echo "$ac_cv_host" >&6; }
3254 *) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
3257 ac_save_IFS=$IFS; IFS='-'
3263 # Remember, the first character of IFS is used to create $*,
3264 # except with old shells:
3267 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3271 am__api_version='1.11'
3273 # Find a good install program. We prefer a C program (faster),
3274 # so one script is as good as another. But avoid the broken or
3275 # incompatible versions:
3276 # SysV /etc/install, /usr/sbin/install
3277 # SunOS /usr/etc/install
3278 # IRIX /sbin/install
3280 # AmigaOS /C/install, which installs bootblocks on floppy discs
3281 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
3282 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
3283 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
3284 # OS/2's system install, which has a completely different semantic
3285 # ./install, which can be erroneously created by make from ./install.sh.
3286 # Reject install programs that cannot install multiple files.
3287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
3288 $as_echo_n "checking for a BSD-compatible install... " >&6; }
3289 if test -z "$INSTALL"; then
3290 if test "${ac_cv_path_install+set}" = set; then :
3291 $as_echo_n "(cached) " >&6
3293 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3297 test -z "$as_dir" && as_dir=.
3298 # Account for people who put trailing slashes in PATH elements.
3299 case $as_dir/ in #((
3300 ./ | .// | /[cC]/* | \
3301 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
3302 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
3305 # OSF1 and SCO ODT 3.0 have their own names for install.
3306 # Don't use installbsd from OSF since it installs stuff as root
3308 for ac_prog in ginstall scoinst install; do
3309 for ac_exec_ext in '' $ac_executable_extensions; do
3310 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
3311 if test $ac_prog = install &&
3312 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3313 # AIX install. It has an incompatible calling convention.
3315 elif test $ac_prog = install &&
3316 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
3317 # program-specific install script used by HP pwplus--don't use.
3320 rm -rf conftest.one conftest.two conftest.dir
3321 echo one > conftest.one
3322 echo two > conftest.two
3324 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
3325 test -s conftest.one && test -s conftest.two &&
3326 test -s conftest.dir/conftest.one &&
3327 test -s conftest.dir/conftest.two
3329 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
3342 rm -rf conftest.one conftest.two conftest.dir
3345 if test "${ac_cv_path_install+set}" = set; then
3346 INSTALL=$ac_cv_path_install
3348 # As a last resort, use the slow shell script. Don't cache a
3349 # value for INSTALL within a source directory, because that will
3350 # break other packages using the cache if that directory is
3351 # removed, or if the value is a relative name.
3352 INSTALL=$ac_install_sh
3355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3356 $as_echo "$INSTALL" >&6; }
3358 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
3359 # It thinks the first close brace ends the variable substitution.
3360 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
3362 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
3364 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
3366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
3367 $as_echo_n "checking whether build environment is sane... " >&6; }
3370 echo timestamp > conftest.file
3371 # Reject unsafe characters in $srcdir or the absolute working directory
3372 # name. Accept space and tab only in the latter.
3376 *[\\\"\#\$\&\'\`$am_lf]*)
3377 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
3380 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
3381 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
3384 # Do `set' in a subshell so we don't clobber the current shell's
3385 # arguments. Must try -L first in case configure is actually a
3386 # symlink; some systems play weird games with the mod time of symlinks
3387 # (eg FreeBSD returns the mod time of the symlink's containing
3390 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
3391 if test "$*" = "X"; then
3393 set X `ls -t "$srcdir/configure" conftest.file`
3396 if test "$*" != "X $srcdir/configure conftest.file" \
3397 && test "$*" != "X conftest.file $srcdir/configure"; then
3399 # If neither matched, then we have a broken ls. This can happen
3400 # if, for instance, CONFIG_SHELL is bash and it inherits a
3401 # broken ls alias from the environment. This has actually
3402 # happened. Such a system could not be considered "sane".
3403 as_fn_error "ls -t appears to fail. Make sure there is not a broken
3404 alias in your environment" "$LINENO" 5
3407 test "$2" = conftest.file
3413 as_fn_error "newly created file is older than distributed files!
3414 Check your system clock" "$LINENO" 5
3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3417 $as_echo "yes" >&6; }
3418 test "$program_prefix" != NONE &&
3419 program_transform_name="s&^&$program_prefix&;$program_transform_name"
3420 # Use a double $ so make ignores it.
3421 test "$program_suffix" != NONE &&
3422 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
3423 # Double any \ or $.
3424 # By default was `s,x,x', remove it if useless.
3425 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
3426 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
3428 # expand $ac_aux_dir to an absolute path
3429 am_aux_dir=`cd $ac_aux_dir && pwd`
3431 if test x"${MISSING+set}" != xset; then
3434 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
3436 MISSING="\${SHELL} $am_aux_dir/missing" ;;
3439 # Use eval to expand $SHELL
3440 if eval "$MISSING --run true"; then
3441 am_missing_run="$MISSING --run "
3444 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
3445 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
3448 if test x"${install_sh}" != xset; then
3451 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
3453 install_sh="\${SHELL} $am_aux_dir/install-sh"
3457 # Installed binaries are usually stripped using `strip' when the user
3458 # run `make install-strip'. However `strip' might not be the right
3459 # tool to use in cross-compilation environments, therefore Automake
3460 # will honor the `STRIP' environment variable to overrule this program.
3461 if test "$cross_compiling" != no; then
3462 if test -n "$ac_tool_prefix"; then
3463 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
3464 set dummy ${ac_tool_prefix}strip; ac_word=$2
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3466 $as_echo_n "checking for $ac_word... " >&6; }
3467 if test "${ac_cv_prog_STRIP+set}" = set; then :
3468 $as_echo_n "(cached) " >&6
3470 if test -n "$STRIP"; then
3471 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
3473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3477 test -z "$as_dir" && as_dir=.
3478 for ac_exec_ext in '' $ac_executable_extensions; do
3479 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3480 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
3481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3490 STRIP=$ac_cv_prog_STRIP
3491 if test -n "$STRIP"; then
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
3493 $as_echo "$STRIP" >&6; }
3495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3496 $as_echo "no" >&6; }
3501 if test -z "$ac_cv_prog_STRIP"; then
3503 # Extract the first word of "strip", so it can be a program name with args.
3504 set dummy strip; ac_word=$2
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3506 $as_echo_n "checking for $ac_word... " >&6; }
3507 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
3508 $as_echo_n "(cached) " >&6
3510 if test -n "$ac_ct_STRIP"; then
3511 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
3513 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3517 test -z "$as_dir" && as_dir=.
3518 for ac_exec_ext in '' $ac_executable_extensions; do
3519 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3520 ac_cv_prog_ac_ct_STRIP="strip"
3521 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3530 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
3531 if test -n "$ac_ct_STRIP"; then
3532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
3533 $as_echo "$ac_ct_STRIP" >&6; }
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3536 $as_echo "no" >&6; }
3539 if test "x$ac_ct_STRIP" = x; then
3542 case $cross_compiling:$ac_tool_warned in
3544 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3545 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3546 ac_tool_warned=yes ;;
3551 STRIP="$ac_cv_prog_STRIP"
3555 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
3557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
3558 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
3559 if test -z "$MKDIR_P"; then
3560 if test "${ac_cv_path_mkdir+set}" = set; then :
3561 $as_echo_n "(cached) " >&6
3563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3564 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
3567 test -z "$as_dir" && as_dir=.
3568 for ac_prog in mkdir gmkdir; do
3569 for ac_exec_ext in '' $ac_executable_extensions; do
3570 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
3571 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
3572 'mkdir (GNU coreutils) '* | \
3573 'mkdir (coreutils) '* | \
3574 'mkdir (fileutils) '4.1*)
3575 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
3585 test -d ./--version && rmdir ./--version
3586 if test "${ac_cv_path_mkdir+set}" = set; then
3587 MKDIR_P="$ac_cv_path_mkdir -p"
3589 # As a last resort, use the slow shell script. Don't cache a
3590 # value for MKDIR_P within a source directory, because that will
3591 # break other packages using the cache if that directory is
3592 # removed, or if the value is a relative name.
3593 MKDIR_P="$ac_install_sh -d"
3596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
3597 $as_echo "$MKDIR_P" >&6; }
3601 [\\/$]* | ?:[\\/]*) ;;
3602 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
3605 for ac_prog in gawk mawk nawk awk
3607 # Extract the first word of "$ac_prog", so it can be a program name with args.
3608 set dummy $ac_prog; ac_word=$2
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3610 $as_echo_n "checking for $ac_word... " >&6; }
3611 if test "${ac_cv_prog_AWK+set}" = set; then :
3612 $as_echo_n "(cached) " >&6
3614 if test -n "$AWK"; then
3615 ac_cv_prog_AWK="$AWK" # Let the user override the test.
3617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3621 test -z "$as_dir" && as_dir=.
3622 for ac_exec_ext in '' $ac_executable_extensions; do
3623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3624 ac_cv_prog_AWK="$ac_prog"
3625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3635 if test -n "$AWK"; then
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
3637 $as_echo "$AWK" >&6; }
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3640 $as_echo "no" >&6; }
3644 test -n "$AWK" && break
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
3648 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
3650 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
3651 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
3652 $as_echo_n "(cached) " >&6
3654 cat >conftest.make <<\_ACEOF
3657 @echo '@@@%%%=$(MAKE)=@@@%%%'
3659 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
3660 case `${MAKE-make} -f conftest.make 2>/dev/null` in
3662 eval ac_cv_prog_make_${ac_make}_set=yes;;
3664 eval ac_cv_prog_make_${ac_make}_set=no;;
3668 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3670 $as_echo "yes" >&6; }
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3674 $as_echo "no" >&6; }
3675 SET_MAKE="MAKE=${MAKE-make}"
3678 rm -rf .tst 2>/dev/null
3679 mkdir .tst 2>/dev/null
3680 if test -d .tst; then
3685 rmdir .tst 2>/dev/null
3687 if test "`cd $srcdir && pwd`" != "`pwd`"; then
3688 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
3689 # is not polluted with repeated "-I."
3690 am__isrc=' -I$(srcdir)'
3691 # test to see if srcdir already configured
3692 if test -f $srcdir/config.status; then
3693 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
3697 # test whether we have cygpath
3698 if test -z "$CYGPATH_W"; then
3699 if (cygpath --version) >/dev/null 2>/dev/null; then
3700 CYGPATH_W='cygpath -w'
3707 # Define the identity of the package.
3712 cat >>confdefs.h <<_ACEOF
3713 #define PACKAGE "$PACKAGE"
3717 cat >>confdefs.h <<_ACEOF
3718 #define VERSION "$VERSION"
3721 # Some tools Automake needs.
3723 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
3726 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
3729 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
3732 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
3735 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
3737 # We need awk for the "check" target. The system "awk" is bad on
3739 # Always define AMTAR for backward compatibility.
3741 AMTAR=${AMTAR-"${am_missing_run}tar"}
3743 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
3749 ac_config_headers="$ac_config_headers config.h:config.in"
3752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3753 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3754 # Check whether --enable-maintainer-mode was given.
3755 if test "${enable_maintainer_mode+set}" = set; then :
3756 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3758 USE_MAINTAINER_MODE=no
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3762 $as_echo "$USE_MAINTAINER_MODE" >&6; }
3763 if test $USE_MAINTAINER_MODE = yes; then
3764 MAINTAINER_MODE_TRUE=
3765 MAINTAINER_MODE_FALSE='#'
3767 MAINTAINER_MODE_TRUE='#'
3768 MAINTAINER_MODE_FALSE=
3771 MAINT=$MAINTAINER_MODE_TRUE
3776 # Check whether --enable-assert was given.
3777 if test "${enable_assert+set}" = set; then :
3778 enableval=$enable_assert; case $enableval in
3780 *) as_fn_error "bad value $enableval for --enable-assert, need yes or no" "$LINENO" 5 ;;
3787 if test "$enable_assert" = "yes"; then
3789 $as_echo "#define WANT_ASSERT 1" >>confdefs.h
3796 echo "define(<WANT_ASSERT>,$want_assert_01)" >> $gmp_tmpconfigm4
3800 # Check whether --enable-alloca was given.
3801 if test "${enable_alloca+set}" = set; then :
3802 enableval=$enable_alloca; case $enableval in
3803 alloca|malloc-reentrant|malloc-notreentrant) ;;
3804 yes|no|reentrant|notreentrant) ;;
3807 as_fn_error "bad value $enableval for --enable-alloca, need one of:
3808 yes no reentrant notreentrant alloca malloc-reentrant malloc-notreentrant debug" "$LINENO" 5 ;;
3811 enable_alloca=reentrant
3816 # IMPROVE ME: The default for C++ is disabled. The tests currently
3817 # performed below for a working C++ compiler are not particularly strong,
3818 # and in general can't be expected to get the right setup on their own. The
3819 # most significant problem is getting the ABI the same. Defaulting CXXFLAGS
3820 # to CFLAGS takes only a small step towards this. It's also probably worth
3821 # worrying whether the C and C++ runtimes from say gcc and a vendor C++ can
3822 # work together. Some rather broken C++ installations were encountered
3823 # during testing, and though such things clearly aren't GMP's problem, if
3824 # --enable-cxx=detect were to be the default then some careful checks of
3825 # which, if any, C++ compiler on the system is up to scratch would be
3828 # Check whether --enable-cxx was given.
3829 if test "${enable_cxx+set}" = set; then :
3830 enableval=$enable_cxx; case $enableval in
3832 *) as_fn_error "bad value $enableval for --enable-cxx, need yes/no/detect" "$LINENO" 5 ;;
3840 # Check whether --enable-fft was given.
3841 if test "${enable_fft+set}" = set; then :
3842 enableval=$enable_fft; case $enableval in
3844 *) as_fn_error "bad value $enableval for --enable-fft, need yes or no" "$LINENO" 5 ;;
3851 if test "$enable_fft" = "yes"; then
3853 $as_echo "#define WANT_FFT 1" >>confdefs.h
3858 # Check whether --enable-old-fft-full was given.
3859 if test "${enable_old_fft_full+set}" = set; then :
3860 enableval=$enable_old_fft_full; case $enableval in
3862 *) as_fn_error "bad value $enableval for --enable-old-fft-full, need yes or no" "$LINENO" 5 ;;
3865 enable_old_fft_full=no
3869 if test "$enable_old_fft_full" = "yes"; then
3871 $as_echo "#define WANT_OLD_FFT_FULL 1" >>confdefs.h
3876 # Check whether --enable-mpbsd was given.
3877 if test "${enable_mpbsd+set}" = set; then :
3878 enableval=$enable_mpbsd; case $enableval in
3880 *) as_fn_error "bad value $enableval for --enable-mpbsd, need yes or no" "$LINENO" 5 ;;
3886 if test "$enable_mpbsd" = "yes"; then
3888 WANT_MPBSD_FALSE='#'
3896 # Check whether --enable-nails was given.
3897 if test "${enable_nails+set}" = set; then :
3898 enableval=$enable_nails; case $enableval in
3899 yes|no|[02468]|[0-9][02468]) ;;
3901 as_fn_error "bad value $enableval for --enable-nails, only even nail sizes supported" "$LINENO" 5 ;;
3903 as_fn_error "bad value $enableval for --enable-nails, need yes/no/number" "$LINENO" 5 ;;
3910 case $enable_nails in
3911 yes) GMP_NAIL_BITS=2 ;;
3912 no) GMP_NAIL_BITS=0 ;;
3913 *) GMP_NAIL_BITS=$enable_nails ;;
3918 # Check whether --enable-profiling was given.
3919 if test "${enable_profiling+set}" = set; then :
3920 enableval=$enable_profiling; case $enableval in
3921 no|prof|gprof|instrument) ;;
3922 *) as_fn_error "bad value $enableval for --enable-profiling, need no/prof/gprof/instrument" "$LINENO" 5 ;;
3929 case $enable_profiling in
3932 $as_echo "#define WANT_PROFILING_PROF 1" >>confdefs.h
3937 $as_echo "#define WANT_PROFILING_GPROF 1" >>confdefs.h
3942 $as_echo "#define WANT_PROFILING_INSTRUMENT 1" >>confdefs.h
3948 echo "define(<WANT_PROFILING>,<\`$enable_profiling'>)" >> $gmp_tmpconfigm4
3951 # -fomit-frame-pointer is incompatible with -pg on some chips
3952 if test "$enable_profiling" = gprof; then
3953 fomit_frame_pointer=
3955 fomit_frame_pointer="-fomit-frame-pointer"
3960 # Check whether --with-readline was given.
3961 if test "${with_readline+set}" = set; then :
3962 withval=$with_readline; case $withval in
3964 *) as_fn_error "bad value $withval for --with-readline, need yes/no/detect" "$LINENO" 5 ;;
3967 with_readline=detect
3972 # Check whether --enable-fat was given.
3973 if test "${enable_fat+set}" = set; then :
3974 enableval=$enable_fat; case $enableval in
3976 *) as_fn_error "bad value $enableval for --enable-fat, need yes or no" "$LINENO" 5 ;;
3984 # Check whether --enable-minithres was given.
3985 if test "${enable_minithres+set}" = set; then :
3986 enableval=$enable_minithres; case $enableval in
3988 *) as_fn_error "bad value $enableval for --enable-minithres, need yes or no" "$LINENO" 5 ;;
3997 tmp_host=`echo $host_cpu | sed 's/\./_/'`
3998 cat >>confdefs.h <<_ACEOF
3999 #define HAVE_HOST_CPU_$tmp_host 1
4003 echo "define_not_for_expansion(\`HAVE_HOST_CPU_$tmp_host')" >> $gmp_tmpconfigm4p
4010 # Table of compilers, options, and mpn paths. This code has various related
4013 # - better default CC/CFLAGS selections than autoconf otherwise gives
4014 # - default CC/CFLAGS selections for extra CPU types specific to GMP
4015 # - a few tests for known bad compilers
4016 # - choice of ABIs on suitable systems
4017 # - selection of corresponding mpn search path
4019 # After GMP specific searches and tests, the standard autoconf AC_PROG_CC is
4020 # called. User selections of CC etc are respected.
4022 # Care is taken not to use macros like AC_TRY_COMPILE during the GMP
4023 # pre-testing, since they of course depend on AC_PROG_CC, and also some of
4024 # them cache their results, which is not wanted.
4026 # The ABI selection mechanism is unique to GMP. All that reaches autoconf
4027 # is a different selection of CC/CFLAGS according to the best ABI the system
4028 # supports, and/or what the user selects. Naturally the mpn assembler code
4029 # selected is very dependent on the ABI.
4031 # The closest the standard tools come to a notion of ABI is something like
4032 # "sparc64" which encodes a CPU and an ABI together. This doesn't seem to
4033 # scale well for GMP, where exact CPU types like "ultrasparc2" are wanted,
4034 # separate from the ABI used on them.
4037 # The variables set here are
4039 # cclist the compiler choices
4040 # xx_cflags flags for compiler xx
4041 # xx_cflags_maybe flags for compiler xx, if they work
4042 # xx_cppflags cpp flags for compiler xx
4043 # xx_cflags_optlist list of sets of optional flags
4044 # xx_cflags_yyy set yyy of optional flags for compiler xx
4045 # xx_ldflags -Wc,-foo flags for libtool linking with compiler xx
4046 # ar_flags extra flags for $AR
4047 # nm_flags extra flags for $NM
4048 # limb limb size, can be "longlong"
4049 # path mpn search path
4050 # extra_functions extra mpn functions
4051 # fat_path fat binary mpn search path [if fat binary desired]
4052 # fat_functions fat functions
4053 # fat_thresholds fat thresholds
4055 # Suppose xx_cflags_optlist="arch", then flags from $xx_cflags_arch are
4056 # tried, and the first flag that works will be used. An optlist like "arch
4057 # cpu optimize" can be used to get multiple independent sets of flags tried.
4058 # The first that works from each will be used. If no flag in a set works
4059 # then nothing from that set is added.
4061 # For multiple ABIs, the scheme extends as follows.
4063 # abilist set of ABI choices
4064 # cclist_aa compiler choices in ABI aa
4065 # xx_aa_cflags flags for xx in ABI aa
4066 # xx_aa_cflags_maybe flags for xx in ABI aa, if they work
4067 # xx_aa_cppflags cpp flags for xx in ABI aa
4068 # xx_aa_cflags_optlist list of sets of optional flags in ABI aa
4069 # xx_aa_cflags_yyy set yyy of optional flags for compiler xx in ABI aa
4070 # xx_aa_ldflags -Wc,-foo flags for libtool linking
4071 # ar_aa_flags extra flags for $AR in ABI aa
4072 # nm_aa_flags extra flags for $NM in ABI aa
4073 # limb_aa limb size in ABI aa, can be "longlong"
4074 # path_aa mpn search path in ABI aa
4075 # extra_functions_aa extra mpn functions in ABI aa
4077 # As a convenience, the unadorned xx_cflags (etc) are used for the last ABI
4078 # in ablist, if an xx_aa_cflags for that ABI isn't given. For example if
4079 # abilist="64 32" then $cc_64_cflags will be used for the 64-bit ABI, but
4080 # for the 32-bit either $cc_32_cflags or $cc_cflags is used, whichever is
4081 # defined. This makes it easy to add some 64-bit compilers and flags to an
4082 # unadorned 32-bit set.
4084 # limb=longlong (or limb_aa=longlong) applies to all compilers within that
4085 # ABI. It won't work to have some needing long long and some not, since a
4086 # single instantiated gmp.h will be used by both.
4088 # SPEED_CYCLECOUNTER, cyclecounter_size and CALLING_CONVENTIONS_OBJS are
4089 # also set here, with an ABI suffix.
4093 # A table-driven approach like this to mapping cpu type to good compiler
4094 # options is a bit of a maintenance burden, but there's not much uniformity
4095 # between options specifications on different compilers. Some sort of
4096 # separately updatable tool might be cute.
4098 # The use of lots of variables like this, direct and indirect, tends to
4099 # obscure when and how various things are done, but unfortunately it's
4100 # pretty much the only way. If shell subroutines were portable then actual
4101 # code like "if this .. do that" could be written, but attempting the same
4102 # with full copies of GMP_PROG_CC_WORKS etc expanded at every point would
4103 # hugely bloat the output.
4108 # abilist needs to be non-empty, "standard" is just a generic name here
4111 # FIXME: We'd like to prefer an ANSI compiler, perhaps by preferring
4112 # c89 over cc here. But note that on HP-UX c89 provides a castrated
4113 # environment, and would want to be excluded somehow. Maybe
4114 # AC_PROG_CC_STDC already does enough to stick cc into ANSI mode and
4115 # we don't need to worry.
4119 gcc_cflags="-O2 -pedantic"
4120 gcc_64_cflags="-O2 -pedantic"
4124 SPEED_CYCLECOUNTER_OBJ=
4127 HAVE_HOST_CPU_FAMILY_power=0
4129 HAVE_HOST_CPU_FAMILY_powerpc=0
4140 $as_echo "#define HAVE_HOST_CPU_FAMILY_alpha 1" >>confdefs.h
4143 alphaev5* | alphapca5*)
4144 path="alpha/ev5 alpha" ;;
4145 alphaev67 | alphaev68 | alphaev7*)
4146 path="alpha/ev67 alpha/ev6 alpha" ;;
4148 path="alpha/ev6 alpha" ;;
4152 extra_functions="cntlz"
4153 gcc_cflags_optlist="asm cpu oldas" # need asm ahead of cpu, see below
4154 gcc_cflags_oldas="-Wa,-oldas" # see GMP_GCC_WA_OLDAS.
4156 # gcc 2.7.2.3 doesn't know any -mcpu= for alpha, apparently.
4157 # gcc 2.95 knows -mcpu= ev4, ev5, ev56, pca56, ev6.
4158 # gcc 3.0 adds nothing.
4159 # gcc 3.1 adds ev45, ev67 (but ev45 is the same as ev4).
4160 # gcc 3.2 adds nothing.
4162 # gcc version "2.9-gnupro-99r1" under "-O2 -mcpu=ev6" strikes internal
4163 # compiler errors too easily and is rejected by GMP_PROG_CC_WORKS. Each
4164 # -mcpu=ev6 below has a fallback to -mcpu=ev56 for this reason.
4167 alpha) gcc_cflags_cpu="-mcpu=ev4" ;;
4168 alphaev5) gcc_cflags_cpu="-mcpu=ev5" ;;
4169 alphaev56) gcc_cflags_cpu="-mcpu=ev56" ;;
4170 alphapca56 | alphapca57)
4171 gcc_cflags_cpu="-mcpu=pca56" ;;
4172 alphaev6) gcc_cflags_cpu="-mcpu=ev6 -mcpu=ev56" ;;
4173 alphaev67 | alphaev68 | alphaev7*)
4174 gcc_cflags_cpu="-mcpu=ev67 -mcpu=ev6 -mcpu=ev56" ;;
4177 # gcc version "2.9-gnupro-99r1" on alphaev68-dec-osf5.1 has been seen
4178 # accepting -mcpu=ev6, but not putting the assembler in the right mode
4179 # for what it produces. We need to do this for it, and need to do it
4180 # before testing the -mcpu options.
4182 # On old versions of gcc, which don't know -mcpu=, we believe an
4183 # explicit -Wa,-mev5 etc will be necessary to put the assembler in
4184 # the right mode for our .asm files and longlong.h asm blocks.
4186 # On newer versions of gcc, when -mcpu= is known, we must give a -Wa
4187 # which is at least as high as the code gcc will generate. gcc
4188 # establishes what it needs with a ".arch" directive, our command line
4189 # option seems to override that.
4191 # gas prior to 2.14 doesn't accept -mev67, but -mev6 seems enough for
4192 # ctlz and cttz (in 2.10.0 at least).
4194 # OSF `as' accepts ev68 but stupidly treats it as ev4. -arch only seems
4195 # to affect insns like ldbu which are expanded as macros when necessary.
4196 # Insns like ctlz which were never available as macros are always
4197 # accepted and always generate their plain code.
4200 alpha) gcc_cflags_asm="-Wa,-arch,ev4 -Wa,-mev4" ;;
4201 alphaev5) gcc_cflags_asm="-Wa,-arch,ev5 -Wa,-mev5" ;;
4202 alphaev56) gcc_cflags_asm="-Wa,-arch,ev56 -Wa,-mev56" ;;
4203 alphapca56 | alphapca57)
4204 gcc_cflags_asm="-Wa,-arch,pca56 -Wa,-mpca56" ;;
4205 alphaev6) gcc_cflags_asm="-Wa,-arch,ev6 -Wa,-mev6" ;;
4206 alphaev67 | alphaev68 | alphaev7*)
4207 gcc_cflags_asm="-Wa,-arch,ev67 -Wa,-mev67 -Wa,-arch,ev6 -Wa,-mev6" ;;
4210 # It might be better to ask "cc" whether it's Cray C or DEC C,
4211 # instead of relying on the OS part of $host. But it's hard to
4212 # imagine either of those compilers anywhere except their native
4216 echo "include_mpn(\`alpha/alpha-defs.m4')" >> $gmp_tmpconfigm4i
4220 cc_cflags="-O" # no -g, it silently disables all optimizations
4222 echo "include_mpn(\`alpha/unicos.m4')" >> $gmp_tmpconfigm4i
4224 # Don't perform any assembly syntax tests on this beast.
4225 gmp_asm_syntax_testing=no
4229 echo "include_mpn(\`alpha/default.m4')" >> $gmp_tmpconfigm4i
4232 cc_cflags_optlist="opt cpu"
4234 # not sure if -fast works on old versions, so make it optional
4235 cc_cflags_opt="-fast -O2"
4237 # DEC C V5.9-005 knows ev4, ev5, ev56, pca56, ev6.
4238 # Compaq C V6.3-029 adds ev67.
4241 alpha) cc_cflags_cpu="-arch~ev4~-tune~ev4" ;;
4242 alphaev5) cc_cflags_cpu="-arch~ev5~-tune~ev5" ;;
4243 alphaev56) cc_cflags_cpu="-arch~ev56~-tune~ev56" ;;
4244 alphapca56 | alphapca57)
4245 cc_cflags_cpu="-arch~pca56~-tune~pca56" ;;
4246 alphaev6) cc_cflags_cpu="-arch~ev6~-tune~ev6" ;;
4247 alphaev67 | alphaev68 | alphaev7*)
4248 cc_cflags_cpu="-arch~ev67~-tune~ev67 -arch~ev6~-tune~ev6" ;;
4253 echo "include_mpn(\`alpha/default.m4')" >> $gmp_tmpconfigm4i
4260 # tune/alpha.asm assumes int==4bytes but unicos uses int==8bytes
4263 SPEED_CYCLECOUNTER_OBJ=alpha.lo
4264 cyclecounter_size=1 ;;
4269 # Cray vector machines.
4270 # This must come after alpha* so that we can recognize present and future
4271 # vector processors with a wildcard.
4273 gmp_asm_syntax_testing=no
4275 # We used to have -hscalar0 here as a workaround for miscompilation of
4276 # mpz/import.c, but let's hope Cray fixes their bugs instead, since
4277 # -hscalar0 causes disastrously poor code to be generated.
4278 cc_cflags="-O3 -hnofastmd -htask0 -Wa,-B"
4285 gcc_cflags="$gcc_cflags $fomit_frame_pointer"
4286 gcc_testlist="gcc-arm-umodsi"
4288 echo "include_mpn(\`arm/arm-defs.m4')" >> $gmp_tmpconfigm4i
4299 f30[01]-fujitsu-sysv*)
4301 # FIXME: flags for vcc?
4308 # HP cc (the one sold separately) is K&R by default, but AM_C_PROTOTYPES
4309 # will add "-Ae", or "-Aa -D_HPUX_SOURCE", to put it into ansi mode, if
4312 # gcc for hppa 2.0 can be built either for 2.0n (32-bit) or 2.0w
4313 # (64-bit), but not both, so there's no option to choose the desired
4314 # mode, we must instead detect which of the two it is. This is done by
4315 # checking sizeof(long), either 4 or 8 bytes respectively. Do this in
4316 # ABI=1.0 too, in case someone tries to build that with a 2.0w gcc.
4318 gcc_cflags_optlist="arch"
4319 gcc_testlist="sizeof-long-4"
4320 SPEED_CYCLECOUNTER_OBJ=hppa.lo
4323 # FIXME: For hppa2.0*, path should be "pa32/hppa2_0 pa32/hppa1_1 pa32".
4324 # (Can't remember why this isn't done already, have to check what .asm
4325 # files are available in each and how they run on a typical 2.0 cpu.)
4328 hppa1.0*) path="pa32" ;;
4329 hppa7000*) path="pa32/hppa1_1 pa32" ;;
4331 path="pa32/hppa2_0 pa32/hppa1_1/pa7100 pa32/hppa1_1 pa32" ;;
4332 *) # default to 7100
4333 path="pa32/hppa1_1/pa7100 pa32/hppa1_1 pa32" ;;
4336 # gcc 2.7.2.3 knows -mpa-risc-1-0 and -mpa-risc-1-1
4337 # gcc 2.95 adds -mpa-risc-2-0, plus synonyms -march=1.0, 1.1 and 2.0
4339 # We don't use -mpa-risc-2-0 in ABI=1.0 because 64-bit registers may not
4340 # be saved by the kernel on an old system. Actually gcc (as of 3.2)
4341 # only adds a few float instructions with -mpa-risc-2-0, so it would
4342 # probably be safe, but let's not take the chance. In any case, a
4343 # configuration like --host=hppa2.0 ABI=1.0 is far from optimal.
4346 hppa1.0*) gcc_cflags_arch="-mpa-risc-1-0" ;;
4347 *) # default to 7100
4348 gcc_cflags_arch="-mpa-risc-1-1" ;;
4352 hppa1.0*) cc_cflags="+O2" ;;
4353 *) # default to 7100
4354 cc_cflags="+DA1.1 +O2" ;;
4358 hppa2.0*-*-* | hppa64-*-*)
4363 any_20n_testlist="sizeof-long-4"
4364 SPEED_CYCLECOUNTER_OBJ_20n=hppa2.lo
4365 cyclecounter_size_20n=2
4367 # -mpa-risc-2-0 is only an optional flag, in case an old gcc is
4368 # used. Assembler support for 2.0 is essential though, for our asm
4370 gcc_20n_cflags="-O2"
4371 gcc_20n_cflags_optlist="arch"
4372 gcc_20n_cflags_arch="-mpa-risc-2-0 -mpa-risc-1-1"
4373 gcc_20n_testlist="sizeof-long-4 hppa-level-2.0"
4375 cc_20n_cflags="+DA2.0 +e +O2 -Wl,+vnocompatwarnings"
4376 cc_20n_testlist="hpc-hppa-2-0"
4378 # ABI=2.0w is available for hppa2.0w and hppa2.0, but not for
4379 # hppa2.0n, on the assumption that that the latter indicates a
4380 # desire for ABI=2.0n.
4384 # HPUX 10 and earlier cannot run 2.0w. Not sure about other
4385 # systems (GNU/Linux for instance), but lets assume they're ok.
4387 *-*-hpux[1-9] | *-*-hpux[1-9].* | *-*-hpux10 | *-*-hpux10.*) ;;
4388 *) abilist="2.0w $abilist" ;;
4392 gcc_20w_cflags="-O2 -mpa-risc-2-0"
4393 cc_20w_cflags="+DD64 +O2"
4394 cc_20w_testlist="hpc-hppa-2-0"
4396 any_20w_testlist="sizeof-long-8"
4397 SPEED_CYCLECOUNTER_OBJ_20w=hppa2w.lo
4398 cyclecounter_size_20w=2
4411 ia64*-*-* | itanium-*-* | itanium2-*-*)
4414 echo "include_mpn(\`ia64/ia64-defs.m4')" >> $gmp_tmpconfigm4i
4416 SPEED_CYCLECOUNTER_OBJ=ia64.lo
4419 itanium) path="ia64/itanium ia64" ;;
4420 itanium2) path="ia64/itanium2 ia64" ;;
4424 gcc_64_cflags_optlist="tune"
4425 gcc_32_cflags_optlist=$gcc_64_cflags_optlist
4427 # gcc pre-release 3.4 adds -mtune itanium and itanium2
4429 itanium) gcc_cflags_tune="-mtune=itanium" ;;
4430 itanium2) gcc_cflags_tune="-mtune=itanium2" ;;
4436 icc_cflags="-no-gcc"
4437 icc_cflags_optlist="opt"
4438 # Don't use -O3, it is for "large data sets" and also miscompiles GMP.
4439 # But icc miscompiles GMP at any optimization level, at higher levels
4440 # it miscompiles more files...
4441 icc_cflags_opt="-O2 -O1"
4445 # HP cc sometimes gets internal errors if the optimization level is
4446 # too high. GMP_PROG_CC_WORKS detects this, the "_opt" fallbacks
4447 # let us use whatever seems to work.
4454 cc_32_cflags_optlist="opt"
4455 cc_32_cflags_opt="+O3 +O2 +O1"
4456 gcc_32_cflags="-milp32 -O2"
4458 SPEED_CYCLECOUNTER_OBJ_32=ia64.lo
4459 cyclecounter_size_32=2
4461 # Must have +DD64 in CPPFLAGS to get the right __LP64__ for headers,
4462 # but also need it in CFLAGS for linking programs, since automake
4463 # only uses CFLAGS when linking, not CPPFLAGS.
4464 # FIXME: Maybe should use cc_64_ldflags for this, but that would
4465 # need GMP_LDFLAGS used consistently by all the programs.
4467 cc_64_cflags="+DD64"
4468 cc_64_cppflags="+DD64"
4469 cc_64_cflags_optlist="opt"
4470 cc_64_cflags_opt="+O3 +O2 +O1"
4471 gcc_64_cflags="$gcc_64_cflags -mlp64"
4479 m68k-*-* | m68[0-9][0-9][0-9]-*-*)
4480 $as_echo "#define HAVE_HOST_CPU_FAMILY_m68k 1" >>confdefs.h
4483 echo "include_mpn(\`m68k/m68k-defs.m4')" >> $gmp_tmpconfigm4i
4485 gcc_cflags="$gcc_cflags $fomit_frame_pointer"
4486 gcc_cflags_optlist="arch"
4488 # gcc 2.7.2 knows -m68000, -m68020, -m68030, -m68040.
4489 # gcc 2.95 adds -mcpu32, -m68060.
4490 # FIXME: Maybe "-m68020 -mnobitfield" would suit cpu32 on 2.7.2.
4493 m68020) gcc_cflags_arch="-m68020" ;;
4494 m68030) gcc_cflags_arch="-m68030" ;;
4495 m68040) gcc_cflags_arch="-m68040" ;;
4496 m68060) gcc_cflags_arch="-m68060 -m68000" ;;
4497 m68360) gcc_cflags_arch="-mcpu32 -m68000" ;;
4498 *) gcc_cflags_arch="-m68000" ;;
4501 # FIXME: m68k/mc68020 looks like it's ok for cpu32, but this wants to be
4502 # tested. Will need to introduce an m68k/cpu32 if m68k/mc68020 ever uses
4503 # the bitfield instructions.
4505 m680[234]0 | m68360) path="m68k/mc68020 m68k" ;;
4516 gcc_cflags="$gcc_cflags -m88110"
4517 path="m88k/mc88110 m88k"
4521 # National Semiconductor 32k
4527 # IRIX 5 and earlier can only run 32-bit o32.
4529 # IRIX 6 and up always has a 64-bit mips CPU can run n32 or 64. n32 is
4530 # preferred over 64, but only because that's been the default in past
4531 # versions of GMP. The two are equally efficient.
4533 # Linux kernel 2.2.13 arch/mips/kernel/irixelf.c has a comment about not
4534 # supporting n32 or 64.
4536 # For reference, libtool (eg. 1.5.6) recognises the n32 ABI and knows the
4537 # right options to use when linking (both cc and gcc), so no need for
4538 # anything special from us.
4542 gcc_cflags_optlist="abi"
4543 gcc_cflags_abi="-mabi=32"
4544 gcc_testlist="gcc-mips-o32"
4546 cc_cflags="-O2 -o32" # no -g, it disables all optimizations
4547 # this suits both mips32 and mips64
4549 echo "include_mpn(\`mips32/mips-defs.m4')" >> $gmp_tmpconfigm4i
4553 mips64*-*-* | mips*-*-irix[6789]*)
4554 abilist="n32 64 o32"
4557 gcc_n32_cflags="-O2 -mabi=n32"
4558 cc_n32_cflags="-O2 -n32" # no -g, it disables all optimizations
4563 gcc_64_cflags="$gcc_64_cflags -mabi=64"
4564 gcc_64_ldflags="-Wc,-mabi=64"
4565 cc_64_cflags="-O2 -64" # no -g, it disables all optimizations
4566 cc_64_ldflags="-Wc,-64"
4573 # Darwin (powerpc-apple-darwin1.3) has it's hacked gcc installed as cc.
4574 # Our usual "gcc in disguise" detection means gcc_cflags etc here gets
4577 # The darwin pre-compiling preprocessor is disabled with -no-cpp-precomp
4578 # since it doesn't like "__attribute__ ((mode (SI)))" etc in gmp-impl.h,
4579 # and so always ends up running the plain preprocessor anyway. This could
4580 # be done in CPPFLAGS rather than CFLAGS, but there's not many places
4581 # preprocessing is done separately, and this is only a speedup, the normal
4582 # preprocessor gets run if there's any problems.
4584 # We used to use -Wa,-mppc with gcc, but can't remember exactly why.
4585 # Presumably it was for old versions of gcc where -mpowerpc doesn't put
4586 # the assembler in the right mode. In any case -Wa,-mppc is not good, for
4587 # instance -mcpu=604 makes recent gcc use -m604 to get access to the
4588 # "fsel" instruction, but a -Wa,-mppc overrides that, making code that
4589 # comes out with fsel fail.
4591 # (Note also that the darwin assembler doesn't accept "-mppc", so any
4592 # -Wa,-mppc was used only if it worked. The right flag on darwin would be
4593 # "-arch ppc" or some such, but that's already the default.)
4595 powerpc*-*-* | power[3-9]-*-*)
4596 $as_echo "#define HAVE_HOST_CPU_FAMILY_powerpc 1" >>confdefs.h
4598 HAVE_HOST_CPU_FAMILY_powerpc=1
4602 gcc_cflags="$gcc_cflags -mpowerpc"
4603 gcc_cflags_optlist="precomp subtype asm cpu"
4604 gcc_cflags_precomp="-no-cpp-precomp"
4605 gcc_cflags_subtype="-force_cpusubtype_ALL" # for vmx on darwin
4610 # grab this object, though it's not a true cycle counter routine
4611 SPEED_CYCLECOUNTER_OBJ=powerpc.lo
4615 powerpc740 | powerpc750)
4616 path="powerpc32/750 powerpc32" ;;
4617 powerpc7400 | powerpc7410)
4618 path="powerpc32/vmx powerpc32/750 powerpc32" ;;
4620 path="powerpc32/vmx powerpc32" ;;
4625 # gcc 2.7.2 knows -mcpu=403, 601, 603, 604.
4626 # gcc 2.95 adds 401, 505, 602, 603e, ec603e, 604e, 620, 740, 750,
4627 # 801, 821, 823, 860.
4628 # gcc 3.0 adds 630, rs64a.
4629 # gcc 3.1 adds 405, 7400, 7450.
4630 # gcc 3.2 adds nothing.
4631 # gcc 3.3 adds power3, power4, 8540. power3 seems to be a synonym for 630.
4632 # gcc pre-release 3.4 adds 405fp, 440, 440fp, 970.
4634 # FIXME: The way 603e falls back to 603 for gcc 2.7.2 should be
4635 # done for all the others too. But what would be the correct
4639 powerpc401) gcc_cflags_cpu="-mcpu=401" ;;
4640 powerpc403) gcc_cflags_cpu="-mcpu=403" ;;
4641 powerpc405) gcc_cflags_cpu="-mcpu=405" ;;
4642 powerpc505) gcc_cflags_cpu="-mcpu=505" ;;
4643 powerpc601) gcc_cflags_cpu="-mcpu=601" ;;
4644 powerpc602) gcc_cflags_cpu="-mcpu=602" ;;
4645 powerpc603) gcc_cflags_cpu="-mcpu=603" ;;
4646 powerpc603e) gcc_cflags_cpu="-mcpu=603e -mcpu=603" ;;
4647 powerpc604) gcc_cflags_cpu="-mcpu=604" ;;
4648 powerpc604e) gcc_cflags_cpu="-mcpu=604e -mcpu=604" ;;
4649 powerpc620) gcc_cflags_cpu="-mcpu=620" ;;
4650 powerpc630) gcc_cflags_cpu="-mcpu=630"
4652 powerpc740) gcc_cflags_cpu="-mcpu=740" ;;
4653 powerpc7400 | powerpc7410)
4654 gcc_cflags_asm="-Wa,-maltivec"
4655 gcc_cflags_cpu="-mcpu=7400 -mcpu=750" ;;
4657 gcc_cflags_asm="-Wa,-maltivec"
4658 gcc_cflags_cpu="-mcpu=7450" ;;
4659 powerpc750) gcc_cflags_cpu="-mcpu=750" ;;
4660 powerpc801) gcc_cflags_cpu="-mcpu=801" ;;
4661 powerpc821) gcc_cflags_cpu="-mcpu=821" ;;
4662 powerpc823) gcc_cflags_cpu="-mcpu=823" ;;
4663 powerpc860) gcc_cflags_cpu="-mcpu=860" ;;
4664 powerpc970) gcc_cflags_cpu="-mtune=970"
4665 vmx_path="powerpc64/vmx"
4667 power4) gcc_cflags_cpu="-mtune=power4"
4669 power5) gcc_cflags_cpu="-mtune=power5 -mtune=power4"
4671 power6) gcc_cflags_cpu="-mtune=power6"
4678 xlc_cflags="-O2 -qmaxmem=20000"
4679 xlc_cflags_optlist="arch"
4681 # xlc (what version?) knows -qarch=ppc, ppcgr, 601, 602, 603, 604,
4683 # -qarch=ppc is needed, so ensure everything falls back to that.
4684 # FIXME: Perhaps newer versions know more flavours.
4687 powerpc403) xlc_cflags_arch="-qarch=403 -qarch=ppc" ;;
4688 powerpc601) xlc_cflags_arch="-qarch=601 -qarch=ppc" ;;
4689 powerpc602) xlc_cflags_arch="-qarch=602 -qarch=ppc" ;;
4690 powerpc603) xlc_cflags_arch="-qarch=603 -qarch=ppc" ;;
4691 powerpc603e) xlc_cflags_arch="-qarch=603 -qarch=ppc" ;;
4692 powerpc604) xlc_cflags_arch="-qarch=604 -qarch=ppc" ;;
4693 powerpc604e) xlc_cflags_arch="-qarch=604 -qarch=ppc" ;;
4694 *) xlc_cflags_arch="-qarch=ppc" ;;
4700 powerpc64-*-* | powerpc64le-*-* | powerpc620-*-* | powerpc630-*-* | powerpc970-*-* | power[3-9]-*-*)
4703 # On AIX a true 64-bit ABI is available.
4704 # Need -Wc to pass object type flags through to the linker.
4705 abilist="aix64 $abilist"
4706 cclist_aix64="gcc xlc"
4707 gcc_aix64_cflags="-O2 -maix64 -mpowerpc64"
4708 gcc_aix64_cflags_optlist="cpu"
4709 gcc_aix64_ldflags="-Wc,-maix64"
4710 xlc_aix64_cflags="-O2 -q64 -qtune=pwr3 -qmaxmem=20000"
4711 xlc_aix64_ldflags="-Wc,-q64"
4712 # Must indicate object type to ar and nm
4713 ar_aix64_flags="-X64"
4714 nm_aix64_flags="-X64"
4716 for i in $cpu_path; do path_aix64="${path_aix64}powerpc64/mode64/$i "; done
4717 path_aix64="${path_aix64}powerpc64/mode64 $vmx_path powerpc64"
4718 # grab this object, though it's not a true cycle counter routine
4719 SPEED_CYCLECOUNTER_OBJ_aix64=powerpc64.lo
4720 cyclecounter_size_aix64=0
4723 # On Darwin we can use 64-bit instructions with a longlong limb,
4724 # but the chip still in 32-bit mode.
4725 # In theory this can be used on any OS which knows how to save
4726 # 64-bit registers in a context switch.
4728 # Note that we must use -mpowerpc64 with gcc, since the
4729 # longlong.h macros expect limb operands in a single 64-bit
4730 # register, not two 32-bit registers as would be given for a
4731 # long long without -mpowerpc64. In theory we could detect and
4732 # accommodate both styles, but the proper 64-bit registers will
4733 # be fastest and are what we really want to use.
4735 # One would think -mpowerpc64 would set the assembler in the right
4736 # mode to handle 64-bit instructions. But for that, also
4737 # -force_cpusubtype_ALL is needed.
4739 # Do not use -fast for Darwin, it actually adds options
4740 # incompatible with a shared library.
4742 abilist="mode64 mode32 $abilist"
4743 gcc_cflags_opt="-O3 -O2 -O1" # will this become used?
4745 gcc_mode32_cflags="-mpowerpc64"
4746 gcc_mode32_cflags_optlist="subtype cpu opt"
4747 gcc_mode32_cflags_subtype="-force_cpusubtype_ALL"
4748 gcc_mode32_cflags_opt="-O3 -O2 -O1"
4749 path_mode32="powerpc64/mode32 $vmx_path powerpc64"
4750 limb_mode32=longlong
4752 gcc_mode64_cflags="-m64"
4753 gcc_mode64_cflags_optlist="cpu opt"
4754 gcc_mode64_cflags_opt="-O3 -O2 -O1"
4756 for i in $cpu_path; do path_mode64="${path_mode64}powerpc64/mode64/$i "; done
4757 path_mode64="${path_mode64}powerpc64/mode64 $vmx_path powerpc64"
4758 SPEED_CYCLECOUNTER_OBJ_mode64=powerpc64.lo
4759 cyclecounter_size_mode64=0
4760 any_mode64_testlist="sizeof-long-8"
4762 *-*-linux* | *-*-*bsd*)
4763 # On GNU/Linux, assume the processor is in 64-bit mode. Some
4764 # environments have a gcc that is always in 64-bit mode, while
4765 # others require -m64, hence the use of cflags_maybe. The
4766 # sizeof-long-8 test checks the mode is right (for the no option
4769 # -mpowerpc64 is not used, since it should be the default in
4770 # 64-bit mode. (We need its effect for the various longlong.h
4771 # asm macros to be right of course.)
4773 # gcc64 was an early port of gcc to 64-bit mode, but should be
4774 # obsolete before too long. We prefer plain gcc when it knows
4777 abilist="mode64 mode32 $abilist"
4779 gcc_mode32_cflags="-mpowerpc64"
4780 gcc_mode32_cflags_optlist="cpu opt"
4781 gcc_mode32_cflags_opt="-O3 -O2 -O1"
4782 path_mode32="powerpc64/mode32 $vmx_path powerpc64"
4783 limb_mode32=longlong
4784 cclist_mode64="gcc gcc64"
4785 gcc_mode64_cflags_maybe="-m64"
4786 gcc_mode64_cflags_optlist="cpu opt"
4787 gcc_mode64_cflags_opt="-O3 -O2 -O1"
4789 for i in $cpu_path; do path_mode64="${path_mode64}powerpc64/mode64/$i "; done
4790 path_mode64="${path_mode64}powerpc64/mode64 $vmx_path powerpc64"
4791 SPEED_CYCLECOUNTER_OBJ_mode64=powerpc64.lo
4792 cyclecounter_size_mode64=0
4793 any_mode64_testlist="sizeof-long-8"
4802 power-*-* | power[12]-*-* | power2sc-*-*)
4803 $as_echo "#define HAVE_HOST_CPU_FAMILY_power 1" >>confdefs.h
4805 HAVE_HOST_CPU_FAMILY_power=1
4807 extra_functions="udiv_w_sdiv"
4810 # gcc 2.7.2 knows rios1, rios2, rsc
4812 # -mcpu=rios2 can tickle an AIX assembler bug (see GMP_PROG_CC_WORKS) so
4813 # there needs to be a fallback to just -mpower.
4815 gcc_cflags_optlist="cpu"
4817 power-*-*) gcc_cflags_cpu="-mcpu=power -mpower" ;;
4818 power1-*-*) gcc_cflags_cpu="-mcpu=rios1 -mpower" ;;
4819 power2-*-*) gcc_cflags_cpu="-mcpu=rios2 -mpower" ;;
4820 power2sc-*-*) gcc_cflags_cpu="-mcpu=rsc -mpower" ;;
4825 xlc_cflags="-O2 -qarch=pwr -qmaxmem=20000"
4836 # IBM s/370 and similar
4838 gcc_cflags="$gcc_cflags $fomit_frame_pointer"
4840 extra_functions="udiv_w_sdiv"
4844 sh-*-*) path="sh" ;;
4845 sh2-*-*) path="sh/sh2 sh" ;;
4849 # sizeof(long)==4 or 8 is tested, to ensure we get the right ABI. We've
4850 # had various bug reports where users have set CFLAGS for their desired
4851 # mode, but not set our ABI. For some reason it's sparc where this
4852 # keeps coming up, presumably users there are accustomed to driving the
4853 # compiler mode that way. The effect of our testlist setting is to
4854 # reject ABI=64 in favour of ABI=32 if the user has forced the flags to
4859 any_testlist="sizeof-long-4"
4861 echo "include_mpn(\`sparc32/sparc-defs.m4')" >> $gmp_tmpconfigm4i
4865 sparcv8 | microsparc | turbosparc)
4866 path="sparc32/v8 sparc32" ;;
4868 path="sparc32/v8/supersparc sparc32/v8 sparc32" ;;
4869 sparc64 | sparcv9* | ultrasparc*)
4870 path="sparc32/v9 sparc32/v8 sparc32" ;;
4875 # gcc 2.7.2 doesn't know about v9 and doesn't pass -xarch=v8plus to the
4876 # assembler. Add it explicitly since the solaris assembler won't accept
4877 # our sparc32/v9 asm code without it. gas accepts -xarch=v8plus too, so
4878 # it can be in the cflags unconditionally (though gas doesn't need it).
4880 # gcc -m32 is needed to force 32-bit mode on a dual-ABI system, but past
4881 # gcc doesn't know that flag, hence cflags_maybe. Note that -m32 cannot
4882 # be done through the optlist since the plain cflags would be run first
4883 # and we don't want to require the default mode (whatever it is) works.
4885 # Note it's gcc_32_cflags_maybe and not gcc_cflags_maybe because the
4886 # latter would be used in the 64-bit ABI on systems like "*bsd" where
4887 # abilist="64" only.
4890 sparc64 | sparcv9* | ultrasparc*)
4891 gcc_cflags="$gcc_cflags -Wa,-xarch=v8plus" ;;
4893 gcc_cflags="$gcc_cflags" ;;
4895 gcc_32_cflags_maybe="-m32"
4896 gcc_cflags_optlist="cpu"
4898 # gcc 2.7.2 knows -mcypress, -msupersparc, -mv8, -msparclite.
4899 # gcc 2.95 knows -mcpu= v7, hypersparc, sparclite86x, f930, f934,
4900 # sparclet, tsc701, v9, ultrasparc. A warning is given that the
4901 # plain -m forms will disappear.
4902 # gcc 3.0 adds nothing.
4903 # gcc 3.1 adds nothing.
4904 # gcc 3.2 adds nothing.
4905 # gcc 3.3 adds ultrasparc3.
4908 supersparc) gcc_cflags_cpu="-mcpu=supersparc -msupersparc" ;;
4909 sparcv8 | microsparc | turbosparc)
4910 gcc_cflags_cpu="-mcpu=v8 -mv8" ;;
4911 sparc64 | sparcv9*) gcc_cflags_cpu="-mcpu=v9 -mv8" ;;
4912 ultrasparc3) gcc_cflags_cpu="-mcpu=ultrasparc3 -mcpu=ultrasparc -mv8" ;;
4913 ultrasparc*) gcc_cflags_cpu="-mcpu=ultrasparc -mv8" ;;
4914 *) gcc_cflags_cpu="-mcpu=v7 -mcypress" ;;
4917 # SunPRO cc and acc, and SunOS bundled cc
4919 *-*-solaris* | *-*-sunos*)
4920 # Note no -g, it disables all optimizations.
4922 cc_cflags_optlist="opt arch cpu"
4924 # SunOS cc doesn't know -xO4, fallback to -O2.
4925 cc_cflags_opt="-xO4 -O2"
4927 # SunOS cc doesn't know -xarch, apparently always generating v7
4928 # code, so make this optional
4930 sparcv8 | microsparc | supersparc | turbosparc)
4931 cc_cflags_arch="-xarch=v8" ;;
4932 sparc64 | sparcv9* | ultrasparc*) cc_cflags_arch="-xarch=v8plus" ;;
4933 *) cc_cflags_arch="-xarch=v7" ;;
4936 # SunOS cc doesn't know -xchip and doesn't seem to have an equivalent.
4937 # SunPRO cc 5 recognises -xchip=generic, old, super, super2, micro,
4938 # micro2, hyper, hyper2, powerup, ultra, ultra2, ultra2i.
4939 # SunPRO cc 6 adds -xchip=ultra2e, ultra3cu.
4941 # FIXME: Which of ultra, ultra2 or ultra2i is the best fallback for
4945 supersparc) cc_cflags_cpu="-xchip=super" ;;
4946 microsparc) cc_cflags_cpu="-xchip=micro" ;;
4947 turbosparc) cc_cflags_cpu="-xchip=micro2" ;;
4948 ultrasparc) cc_cflags_cpu="-xchip=ultra" ;;
4949 ultrasparc2) cc_cflags_cpu="-xchip=ultra2" ;;
4950 ultrasparc2i) cc_cflags_cpu="-xchip=ultra2i" ;;
4951 ultrasparc3) cc_cflags_cpu="-xchip=ultra3 -xchip=ultra" ;;
4952 *) cc_cflags_cpu="-xchip=generic" ;;
4957 sparc64 | sparcv9* | ultrasparc*)
4959 # Solaris 6 and earlier cannot run ABI=64 since it doesn't save
4960 # registers properly, so ABI=32 is left as the only choice.
4962 *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
4964 # BSD sparc64 ports are 64-bit-only systems, so ABI=64 is the only
4965 # choice. In fact they need no special compiler flags, gcc -m64
4966 # is the default, but it doesn't hurt to add it. v9 CPUs always
4967 # use the sparc64 port, since the plain 32-bit sparc ports don't
4970 *-*-*bsd*) abilist="64" ;;
4972 # For all other systems, we try both 64 and 32.
4974 # GNU/Linux sparc64 has only recently gained a 64-bit user mode.
4975 # In the past sparc64 meant a v9 cpu, but there were no 64-bit
4976 # operations in user mode. We assume that if "gcc -m64" works
4977 # then the system is suitable. Hopefully even if someone attempts
4978 # to put a new gcc and/or glibc on an old system it won't run.
4980 *) abilist="64 32" ;;
4984 ultrasparc | ultrasparc2 | ultrasparc2i)
4985 path_64="sparc64/ultrasparc12 sparc64" ;;
4987 path_64="sparc64/ultrasparc34 sparc64/ultrasparc12 sparc64" ;;
4993 any_64_testlist="sizeof-long-8"
4995 # gcc -mptr64 is probably implied by -m64, but we're not sure if
4996 # this was always so. On Solaris in the past we always used both
4999 # gcc -Wa,-xarch=v9 is thought to be necessary in some cases on
5000 # solaris, but it would seem likely that if gcc is going to generate
5001 # 64-bit code it will have to add that option itself where needed.
5002 # An extra copy of this option should be harmless though, but leave
5003 # it until we're sure. (Might want -xarch=v9a or -xarch=v9b for the
5004 # higher cpu types instead.)
5006 gcc_64_cflags="$gcc_64_cflags -m64 -mptr64"
5007 gcc_64_ldflags="-Wc,-m64"
5008 gcc_64_cflags_optlist="cpu"
5014 # We used to have -fast and some fixup options here, but it
5015 # recurrently caused problems with miscompilation. Of course,
5016 # -fast is documented as miscompiling things for the sake of speed.
5018 cclist_64="$cclist_64 cc"
5019 cc_64_cflags="-xO3 -xarch=v9"
5020 cc_64_cflags_optlist="cpu"
5024 # using the v9 %tick register
5025 SPEED_CYCLECOUNTER_OBJ_32=sparcv9.lo
5026 SPEED_CYCLECOUNTER_OBJ_64=sparcv9.lo
5027 cyclecounter_size_32=2
5028 cyclecounter_size_64=2
5036 # Currently gcc (version 3.0) on vax always uses a frame pointer
5037 # (config/vax/vax.h FRAME_POINTER_REQUIRED=1), so -fomit-frame-pointer
5040 gcc_cflags="$gcc_cflags $fomit_frame_pointer"
5042 extra_functions="udiv_w_sdiv"
5046 # AMD and Intel x86 configurations, including AMD64
5048 # Rumour has it gcc -O2 used to give worse register allocation than just
5049 # -O, but lets assume that's no longer true.
5051 # -m32 forces 32-bit mode on a bi-arch 32/64 amd64 build of gcc. -m64 is
5052 # the default in such a build (we think), so -m32 is essential for ABI=32.
5053 # This is, of course, done for any $host_cpu, not just x86_64, so we can
5054 # get such a gcc into the right mode to cross-compile to say i486-*-*.
5056 # -m32 is not available in gcc 2.95 and earlier, hence cflags_maybe to use
5057 # it when it works. We check sizeof(long)==4 to ensure we get the right
5058 # mode, in case -m32 has failed not because it's an old gcc, but because
5059 # it's a dual 32/64-bit gcc without a 32-bit libc, or whatever.
5061 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-* | athlon64-*-* | pentium4-*-* | atom-*-* | core2-*-* | corei-*-* | x86_64-*-* | nano-*-*)
5064 gcc_cflags="$gcc_cflags $fomit_frame_pointer"
5065 gcc_32_cflags_maybe="-m32"
5066 icc_cflags="-no-gcc"
5067 icc_cflags_optlist="opt"
5068 icc_cflags_opt="-O3 -O2 -O1"
5069 any_32_testlist="sizeof-long-4"
5070 CALLING_CONVENTIONS_OBJS='x86call.lo x86check$U.lo'
5072 # Availability of rdtsc is checked at run-time.
5073 SPEED_CYCLECOUNTER_OBJ=pentium.lo
5075 # gcc 2.7.2 only knows i386 and i486, using -m386 or -m486. These
5076 # represent -mcpu= since -m486 doesn't generate 486 specific insns.
5077 # gcc 2.95 adds k6, pentium and pentiumpro, and takes -march= and -mcpu=.
5078 # gcc 3.0 adds athlon.
5079 # gcc 3.1 adds k6-2, k6-3, pentium-mmx, pentium2, pentium3, pentium4,
5080 # athlon-tbird, athlon-4, athlon-xp, athlon-mp.
5081 # gcc 3.2 adds winchip2.
5082 # gcc 3.3 adds winchip-c6.
5083 # gcc 3.3.1 from mandrake adds k8 and knows -mtune.
5084 # gcc 3.4 adds c3, c3-2, k8, and deprecates -mcpu in favour of -mtune.
5086 # In gcc 2.95.[0123], -march=pentiumpro provoked a stack slot bug in an
5087 # old version of mpz/powm.c. Seems to be fine with the current code, so
5088 # no need for any restrictions on that option.
5090 # -march=pentiumpro can fail if the assembler doesn't know "cmov"
5091 # (eg. solaris 2.8 native "as"), so always have -march=pentium after
5092 # that as a fallback.
5094 # -march=pentium4 and -march=k8 enable SSE2 instructions, which may or
5095 # may not be supported by the assembler and/or the OS, and is bad in gcc
5096 # prior to 3.3. The tests will reject these if no good, so fallbacks
5097 # like "-march=pentium4 -mno-sse2" are given to try also without SSE2.
5098 # Note the relevant -march types are listed in the optflags handling
5099 # below, be sure to update there if adding new types emitting SSE2.
5101 # -mtune is used at the start of each cpu option list to give something
5102 # gcc 3.4 will use, thereby avoiding warnings from -mcpu. -mcpu forms
5103 # are retained for use by prior gcc. For example pentium has
5104 # "-mtune=pentium -mcpu=pentium ...", the -mtune is for 3.4 and the
5105 # -mcpu for prior. If there's a brand new choice in 3.4 for a chip,
5106 # like k8 for x86_64, then it can be the -mtune at the start, no need to
5107 # duplicate anything.
5109 gcc_cflags_optlist="cpu arch"
5112 gcc_cflags_cpu="-mtune=i386 -mcpu=i386 -m386"
5113 gcc_cflags_arch="-march=i386"
5116 gcc_cflags_cpu="-mtune=i486 -mcpu=i486 -m486"
5117 gcc_cflags_arch="-march=i486"
5120 gcc_cflags_cpu="-mtune=pentium -mcpu=pentium -m486"
5121 gcc_cflags_arch="-march=pentium"
5124 gcc_cflags_cpu="-mtune=pentium-mmx -mcpu=pentium-mmx -mcpu=pentium -m486"
5125 gcc_cflags_arch="-march=pentium-mmx -march=pentium"
5128 gcc_cflags_cpu="-mtune=pentiumpro -mcpu=pentiumpro -mcpu=i486 -m486"
5129 gcc_cflags_arch="-march=pentiumpro -march=pentium"
5132 gcc_cflags_cpu="-mtune=pentium2 -mcpu=pentium2 -mcpu=pentiumpro -mcpu=i486 -m486"
5133 gcc_cflags_arch="-march=pentium2 -march=pentiumpro -march=pentium"
5135 pentium3 | pentiumm)
5136 gcc_cflags_cpu="-mtune=pentium3 -mcpu=pentium3 -mcpu=pentiumpro -mcpu=i486 -m486"
5137 gcc_cflags_arch="-march=pentium3 -march=pentiumpro -march=pentium"
5140 gcc_cflags_cpu="-mtune=k6 -mcpu=k6 -mcpu=i486 -m486"
5141 gcc_cflags_arch="-march=k6"
5144 gcc_cflags_cpu="-mtune=k6-2 -mcpu=k6-2 -mcpu=k6 -mcpu=i486 -m486"
5145 gcc_cflags_arch="-march=k6-2 -march=k6"
5148 gcc_cflags_cpu="-mtune=k6-3 -mcpu=k6-3 -mcpu=k6 -mcpu=i486 -m486"
5149 gcc_cflags_arch="-march=k6-3 -march=k6"
5152 gcc_cflags_cpu="-mtune=k6-3 -mcpu=k6-3 -mcpu=k6 -mcpu=i486 -m486"
5153 gcc_cflags_arch="-march=k6-3 -march=k6"
5156 # Athlon instruction costs are close to P6 (3 cycle load latency,
5157 # 4-6 cycle mul, 40 cycle div, pairable adc, etc) so if gcc doesn't
5158 # know athlon (eg. 2.95.2 doesn't) then fall back on pentiumpro.
5159 gcc_cflags_cpu="-mtune=athlon -mcpu=athlon -mcpu=pentiumpro -mcpu=i486 -m486"
5160 gcc_cflags_arch="-march=athlon -march=pentiumpro -march=pentium"
5163 # pentiumpro is the primary fallback when gcc doesn't know pentium4.
5164 # This gets us cmov to eliminate branches. Maybe "athlon" would be
5165 # a possibility on gcc 3.0.
5167 gcc_cflags_cpu="-mtune=pentium4 -mcpu=pentium4 -mcpu=pentiumpro -mcpu=i486 -m486"
5168 gcc_cflags_arch="-march=pentium4 -march=pentium4~-mno-sse2 -march=pentiumpro -march=pentium"
5169 gcc_64_cflags_cpu="-mtune=nocona"
5172 # Not sure of the best fallbacks here for -mcpu.
5173 # c3-2 has sse and mmx, so pentium3 is good for -march.
5174 gcc_cflags_cpu="-mtune=c3-2 -mcpu=c3-2 -mcpu=i486 -m486"
5175 gcc_cflags_arch="-march=c3-2 -march=pentium3 -march=pentiumpro -march=pentium"
5178 # Not sure of the best fallbacks here.
5179 gcc_cflags_cpu="-mtune=c3 -mcpu=c3 -mcpu=i486 -m486"
5180 gcc_cflags_arch="-march=c3 -march=pentium-mmx -march=pentium"
5183 gcc_cflags_cpu="-mtune=k8 -mcpu=athlon -mcpu=pentiumpro -mcpu=i486 -m486"
5184 gcc_cflags_arch="-march=k8 -march=k8~-mno-sse2 -march=athlon -march=pentiumpro -march=pentium"
5187 gcc_cflags_cpu="-mtune=core2 -mtune=k8"
5188 gcc_cflags_arch="-march=core2 -march=core2~-mno-sse2 -march=k8 -march=k8~-mno-sse2"
5191 gcc_cflags_cpu="-mtune=atom -mtune=pentium3"
5192 gcc_cflags_arch="-march=atom -march=pentium3"
5195 gcc_cflags_cpu="-mtune=i486 -mcpu=i486 -m486"
5196 gcc_cflags_arch="-march=i486"
5201 i386*) path="x86" ;;
5202 i486*) path="x86/i486 x86" ;;
5203 i586 | pentium) path="x86/pentium x86" ;;
5204 pentiummmx) path="x86/pentium/mmx x86/pentium x86" ;;
5205 i686 | pentiumpro) path="x86/p6 x86" ;;
5206 pentium2) path="x86/p6/mmx x86/p6 x86" ;;
5207 pentium3) path="x86/p6/p3mmx x86/p6/mmx x86/p6 x86";;
5208 pentiumm | core2 | corei)
5209 path="x86/p6/sse2 x86/p6/p3mmx x86/p6/mmx x86/p6 x86";;
5210 k6[23]) path="x86/k6/k62mmx x86/k6/mmx x86/k6 x86" ;;
5211 k6) path="x86/k6/mmx x86/k6 x86" ;;
5212 geode) path="x86/k6/k62mmx x86/k6/mmx x86/k6 x86" ;;
5213 # we don't have any specific 32-bit code for athlon64/opteron, the
5214 # athlon code should be reasonable
5215 athlon | athlon64) path="x86/k7/mmx x86/k7 x86" ;;
5216 i786 | pentium4) path="x86/pentium4/sse2 x86/pentium4/mmx x86/pentium4 x86" ;;
5217 # VIA/Centaur processors, sold as CyrixIII and C3.
5218 viac32) path="x86/p6/p3mmx x86/p6/mmx x86/p6 x86";;
5219 viac3*) path="x86/pentium/mmx x86/pentium x86";;
5220 atom) path="x86/atom x86" ;;
5225 athlon64-*-* | pentium4-*-* | atom-*-* | core2-*-* | corei-*-* | x86_64-*-* | nano-*-*)
5227 gcc_64_cflags="$gcc_64_cflags -m64"
5228 gcc_64_cflags_optlist="cpu arch"
5229 CALLING_CONVENTIONS_OBJS_64='amd64call.lo amd64check$U.lo'
5230 SPEED_CYCLECOUNTER_OBJ_64=x86_64.lo
5231 cyclecounter_size_64=2
5239 path_64="x86_64/k8 $path_64"
5242 path_64="x86_64/pentium4 $path_64"
5245 path_64="x86_64/core2 $path_64"
5248 path_64="x86_64/corei x86_64/core2 $path_64"
5251 path_64="x86_64/atom $path_64"
5254 path_64="x86_64/nano $path_64"
5261 cclist_64="$cclist_64 cc"
5262 cc_64_cflags="-xO3 -m64"
5266 path_64="" # Windows amd64 calling conventions are *different*
5267 # Silence many pedantic warnings for w64. FIXME.
5268 gcc_64_cflags="$gcc_64_cflags -std=gnu99"
5276 # FIXME: z8kx won't get through config.sub. Could make 16 versus 32 bit
5277 # limb an ABI option perhaps.
5280 extra_functions="udiv_w_sdiv"
5284 extra_functions="udiv_w_sdiv"
5288 # Special CPU "none" selects generic C. -DNO_ASM is used to disable gcc
5289 # asm blocks in longlong.h (since they're driven by cpp pre-defined
5290 # symbols like __alpha rather than the configured $host_cpu).
5293 abilist="long longlong"
5295 gcc_long_cflags=$gcc_cflags
5296 gcc_long_cppflags="-DNO_ASM"
5297 cc_long_cflags=$cc_cflags
5298 cclist_longlong=$cclist
5299 gcc_longlong_cflags=$gcc_cflags
5300 gcc_longlong_cppflags="-DNO_ASM"
5301 cc_longlong_cflags=$cc_cflags
5302 limb_longlong=longlong
5307 # mingw can be built by the cygwin gcc if -mno-cygwin is added. For
5308 # convenience add this automatically if it works. Actual mingw gcc accepts
5309 # -mno-cygwin too, but of course is the default. mingw only runs on the
5310 # x86s, but allow any CPU here so as to catch "none" too.
5314 gcc_cflags_optlist="$gcc_cflags_optlist nocygwin"
5315 gcc_cflags_nocygwin="-mno-cygwin"
5320 CFLAGS_or_unset=${CFLAGS-'(unset)'}
5321 CPPFLAGS_or_unset=${CPPFLAGS-'(unset)'}
5327 CFLAGS=$CFLAGS_or_unset
5328 CPPFLAGS=$CPPFLAGS_or_unset
5336 test_CFLAGS=${CFLAGS+set}
5337 test_CPPFLAGS=${CPPFLAGS+set}
5339 for abi in $abilist; do
5343 # If the user specifies an ABI then it must be in $abilist, after that
5344 # $abilist is restricted to just that choice.
5346 if test -n "$ABI"; then
5348 for abi in $abilist; do
5349 if test $abi = "$ABI"; then found=yes; break; fi
5351 if test $found = no; then
5352 as_fn_error "ABI=$ABI is not among the following valid choices: $abilist" "$LINENO" 5
5359 for abi in $abilist; do
5361 echo "checking ABI=$abi"
5363 # Suppose abilist="64 32", then for abi=64, will have abi1="_64" and
5364 # abi2="_64". For abi=32, will have abi1="_32" and abi2="". This is how
5365 # $gcc_cflags becomes a fallback for $gcc_32_cflags (the last in the
5366 # abilist), but there's no fallback for $gcc_64_cflags.
5368 abi1=`echo _$abi | sed 's/[.]//g'`
5369 if test $abi = $abi_last; then abi2=; else abi2="$abi1"; fi
5371 # Compiler choices under this ABI
5372 eval cclist_chosen=\"\$cclist$abi1\"
5373 test -n "$cclist_chosen" || eval cclist_chosen=\"\$cclist$abi2\"
5375 # If there's a user specified $CC then don't use a list for
5376 # $cclist_chosen, just a single value for $ccbase.
5378 if test -n "$CC"; then
5380 # The first word of $CC, stripped of any directory. For instance
5381 # CC="/usr/local/bin/gcc -pipe" will give "gcc".
5383 for ccbase in $CC; do break; done
5384 ccbase=`echo $ccbase | sed 's:.*/::'`
5386 # If this $ccbase is in $cclist_chosen then it's a compiler we know and
5387 # we can do flags defaulting with it. If not, then $cclist_chosen is
5388 # set to "unrecognised" so no default flags are used.
5390 # "unrecognised" is used to avoid bad effects with eval if $ccbase has
5391 # non-symbol characters. For instance ccbase=my+cc would end up with
5392 # something like cflags="$my+cc_cflags" which would give
5393 # cflags="+cc_cflags" rather than the intended empty string for an
5397 for i in $cclist_chosen; do
5398 if test "$ccbase" = $i; then
5403 cclist_chosen=$found
5406 for ccbase in $cclist_chosen; do
5408 # When cross compiling, look for a compiler with the $host_alias as a
5409 # prefix, the same way that AC_CHECK_TOOL does. But don't do this to a
5410 # user-selected $CC.
5412 # $cross_compiling will be yes/no/maybe at this point. Do the host
5413 # prefixing for "maybe" as well as "yes".
5415 if test "$cross_compiling" != no && test -z "$CC"; then
5416 cross_compiling_prefix="${host_alias}-"
5419 for ccprefix in $cross_compiling_prefix ""; do
5422 test -n "$cc" || cc="$ccprefix$ccbase"
5424 # If the compiler is gcc but installed under another name, then change
5425 # $ccbase so as to use the flags we know for gcc. This helps for
5426 # instance when specifying CC=gcc272 on Debian GNU/Linux, or the
5427 # native cc which is really gcc on NeXT or MacOS-X.
5429 # FIXME: There's a slight misfeature here. If cc is actually gcc but
5430 # gcc is not a known compiler under this $abi then we'll end up
5431 # testing it with no flags and it'll work, but chances are it won't be
5432 # in the right mode for the ABI we desire. Let's quietly hope this
5435 if test $ccbase != gcc; then
5436 cat >conftest.c <<EOF
5437 #if ! defined (__GNUC__) || defined (__INTEL_COMPILER)
5441 gmp_compile="$cc -c conftest.c >&5"
5442 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
5443 (eval $gmp_compile) 2>&5
5445 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5446 test $ac_status = 0; }; then
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $cc is gcc" >&5
5449 $as_echo_n "checking whether $cc is gcc... " >&6; }
5450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5451 $as_echo "yes" >&6; }
5460 # Similarly if the compiler is IBM xlc but invoked as cc or whatever
5461 # then change $ccbase and make the default xlc flags available.
5462 if test $ccbase != xlc; then
5463 gmp_command="$cc 2>&1 | grep xlc >/dev/null"
5464 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_command\""; } >&5
5465 (eval $gmp_command) 2>&5
5467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5468 test $ac_status = 0; }; then
5469 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $cc is xlc" >&5
5470 $as_echo_n "checking whether $cc is xlc... " >&6; }
5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5472 $as_echo "yes" >&6; }
5480 # acc was Sun's first unbundled compiler back in the SunOS days, or
5481 # something like that, but today its man page says it's not meant to
5482 # be used directly (instead via /usr/ucb/cc). The options are pretty
5483 # much the same as the main SunPRO cc, so share those configs.
5486 *sparc*-*-solaris* | *sparc*-*-sunos*)
5487 if test "$ccbase" = acc; then ccbase=cc; fi ;;
5490 for tmp_cflags_maybe in yes no; do
5491 eval cflags=\"\$${ccbase}${abi1}_cflags\"
5492 test -n "$cflags" || eval cflags=\"\$${ccbase}${abi2}_cflags\"
5494 if test "$tmp_cflags_maybe" = yes; then
5495 # don't try cflags_maybe when the user set CFLAGS
5496 if test "$test_CFLAGS" = set; then continue; fi
5497 eval cflags_maybe=\"\$${ccbase}${abi1}_cflags_maybe\"
5498 test -n "$cflags_maybe" || eval cflags_maybe=\"\$${ccbase}${abi2}_cflags_maybe\"
5499 # don't try cflags_maybe if there's nothing set
5500 if test -z "$cflags_maybe"; then continue; fi
5501 cflags="$cflags_maybe $cflags"
5504 # Any user CFLAGS, even an empty string, takes precedence
5505 if test "$test_CFLAGS" = set; then cflags=$CFLAGS; fi
5507 # Any user CPPFLAGS, even an empty string, takes precedence
5508 eval cppflags=\"\$${ccbase}${abi1}_cppflags\"
5509 test -n "$cppflags" || eval cppflags=\"\$${ccbase}${abi2}_cppflags\"
5510 if test "$test_CPPFLAGS" = set; then cppflags=$CPPFLAGS; fi
5512 # --enable-profiling adds -p/-pg even to user-specified CFLAGS.
5513 # This is convenient, but it's perhaps a bit naughty to modify user
5515 case "$enable_profiling" in
5516 prof) cflags="$cflags -p" ;;
5517 gprof) cflags="$cflags -pg" ;;
5518 instrument) cflags="$cflags -finstrument-functions" ;;
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler $cc $cflags $cppflags" >&5
5522 $as_echo_n "checking compiler $cc $cflags $cppflags... " >&6; }
5523 gmp_prog_cc_works=yes
5525 # first see a simple "main()" works, then go on to other checks
5526 if test "$gmp_prog_cc_works" = yes; then
5527 # remove anything that might look like compiler output to our "||" expression
5528 rm -f conftest* a.out b.out a.exe a_out.exe
5529 cat >conftest.c <<EOF
5531 int main () { return 0; }
5533 echo "Test compile: " >&5
5534 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
5535 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
5536 (eval $gmp_compile) 2>&5
5538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5539 test $ac_status = 0; }; then
5541 if test "$cross_compiling" = no; then
5542 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5543 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5547 test $ac_status = 0; }; }; then :;
5555 if test "$cc_works_part" != yes; then
5556 echo "failed program was:" >&5
5559 rm -f conftest* a.out b.out a.exe a_out.exe
5560 case $cc_works_part in
5565 gmp_prog_cc_works="no"
5568 gmp_prog_cc_works="no, program does not run"
5576 if test "$gmp_prog_cc_works" = yes; then
5577 # remove anything that might look like compiler output to our "||" expression
5578 rm -f conftest* a.out b.out a.exe a_out.exe
5579 cat >conftest.c <<EOF
5580 /* The following provokes an internal error from gcc 2.95.2 -mpowerpc64
5581 (without -maix64), hence detecting an unusable compiler */
5582 void *g() { return (void *) 0; }
5583 void *f() { return g(); }
5585 int main () { return 0; }
5587 echo "Test compile: function pointer return" >&5
5588 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
5589 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
5590 (eval $gmp_compile) 2>&5
5592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5593 test $ac_status = 0; }; then
5595 if test "$cross_compiling" = no; then
5596 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5597 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5600 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5601 test $ac_status = 0; }; }; then :;
5609 if test "$cc_works_part" != yes; then
5610 echo "failed program was:" >&5
5613 rm -f conftest* a.out b.out a.exe a_out.exe
5614 case $cc_works_part in
5619 gmp_prog_cc_works="no, function pointer return"
5622 gmp_prog_cc_works="no, function pointer return, program does not run"
5630 if test "$gmp_prog_cc_works" = yes; then
5631 # remove anything that might look like compiler output to our "||" expression
5632 rm -f conftest* a.out b.out a.exe a_out.exe
5633 cat >conftest.c <<EOF
5634 /* The following provokes an invalid instruction syntax from i386 gcc
5635 -march=pentiumpro on Solaris 2.8. The native sun assembler
5636 requires a non-standard syntax for cmov which gcc (as of 2.95.2 at
5637 least) doesn't know. */
5639 int cmov () { return (n >= 0 ? n : 0); }
5641 int main () { return 0; }
5643 echo "Test compile: cmov instruction" >&5
5644 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
5645 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
5646 (eval $gmp_compile) 2>&5
5648 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5649 test $ac_status = 0; }; then
5651 if test "$cross_compiling" = no; then
5652 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5653 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5657 test $ac_status = 0; }; }; then :;
5665 if test "$cc_works_part" != yes; then
5666 echo "failed program was:" >&5
5669 rm -f conftest* a.out b.out a.exe a_out.exe
5670 case $cc_works_part in
5675 gmp_prog_cc_works="no, cmov instruction"
5678 gmp_prog_cc_works="no, cmov instruction, program does not run"
5686 if test "$gmp_prog_cc_works" = yes; then
5687 # remove anything that might look like compiler output to our "||" expression
5688 rm -f conftest* a.out b.out a.exe a_out.exe
5689 cat >conftest.c <<EOF
5690 /* The following provokes a linker invocation problem with gcc 3.0.3
5691 on AIX 4.3 under "-maix64 -mpowerpc64 -mcpu=630". The -mcpu=630
5692 option causes gcc to incorrectly select the 32-bit libgcc.a, not
5693 the 64-bit one, and consequently it misses out on the __fixunsdfdi
5694 helper (double -> uint64 conversion). */
5696 unsigned long gcc303 () { return (unsigned long) d; }
5698 int main () { return 0; }
5700 echo "Test compile: double -> ulong conversion" >&5
5701 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
5702 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
5703 (eval $gmp_compile) 2>&5
5705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5706 test $ac_status = 0; }; then
5708 if test "$cross_compiling" = no; then
5709 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5710 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5714 test $ac_status = 0; }; }; then :;
5722 if test "$cc_works_part" != yes; then
5723 echo "failed program was:" >&5
5726 rm -f conftest* a.out b.out a.exe a_out.exe
5727 case $cc_works_part in
5732 gmp_prog_cc_works="no, double -> ulong conversion"
5735 gmp_prog_cc_works="no, double -> ulong conversion, program does not run"
5743 if test "$gmp_prog_cc_works" = yes; then
5744 # remove anything that might look like compiler output to our "||" expression
5745 rm -f conftest* a.out b.out a.exe a_out.exe
5746 cat >conftest.c <<EOF
5747 /* The following provokes an error from hppa gcc 2.95 under -mpa-risc-2-0 if
5748 the assembler doesn't know hppa 2.0 instructions. fneg is a 2.0
5749 instruction, and a negation like this comes out using it. */
5751 unsigned long fneg () { return -fneg_data; }
5753 int main () { return 0; }
5755 echo "Test compile: double negation" >&5
5756 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
5757 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
5758 (eval $gmp_compile) 2>&5
5760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5761 test $ac_status = 0; }; then
5763 if test "$cross_compiling" = no; then
5764 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5765 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5768 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5769 test $ac_status = 0; }; }; then :;
5777 if test "$cc_works_part" != yes; then
5778 echo "failed program was:" >&5
5781 rm -f conftest* a.out b.out a.exe a_out.exe
5782 case $cc_works_part in
5787 gmp_prog_cc_works="no, double negation"
5790 gmp_prog_cc_works="no, double negation, program does not run"
5798 if test "$gmp_prog_cc_works" = yes; then
5799 # remove anything that might look like compiler output to our "||" expression
5800 rm -f conftest* a.out b.out a.exe a_out.exe
5801 cat >conftest.c <<EOF
5802 /* The following makes gcc 3.3 -march=pentium4 generate an SSE2 xmm insn
5803 (cvtsd2ss) which will provoke an error if the assembler doesn't recognise
5804 those instructions. Not sure how much of the gmp code will come out
5805 wanting sse2, but it's easiest to reject an option we know is bad. */
5807 float ftod () { return (float) ftod_data; }
5809 int main () { return 0; }
5811 echo "Test compile: double -> float conversion" >&5
5812 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
5813 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
5814 (eval $gmp_compile) 2>&5
5816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5817 test $ac_status = 0; }; then
5819 if test "$cross_compiling" = no; then
5820 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5821 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5825 test $ac_status = 0; }; }; then :;
5833 if test "$cc_works_part" != yes; then
5834 echo "failed program was:" >&5
5837 rm -f conftest* a.out b.out a.exe a_out.exe
5838 case $cc_works_part in
5843 gmp_prog_cc_works="no, double -> float conversion"
5846 gmp_prog_cc_works="no, double -> float conversion, program does not run"
5854 if test "$gmp_prog_cc_works" = yes; then
5855 # remove anything that might look like compiler output to our "||" expression
5856 rm -f conftest* a.out b.out a.exe a_out.exe
5857 cat >conftest.c <<EOF
5858 /* The following provokes an internal compiler error from gcc version
5859 "2.9-gnupro-99r1" under "-O2 -mcpu=ev6", apparently relating to char
5860 values being spilled into floating point registers. The problem doesn't
5861 show up all the time, but has occurred enough in GMP for us to reject
5862 this compiler+flags. */
5863 #include <string.h> /* for memcpy */
5868 long d0, d1, d2, d3, d4, d5, d6;
5871 struct try_t param[6];
5876 memcpy (p, ¶m[ 2 ], sizeof (*p));
5877 memcpy (p, ¶m[ 2 ], sizeof (*p));
5879 memcpy (p, ¶m[ 1 ], sizeof (*p));
5882 memcpy (p, ¶m[ 3 ], sizeof (*p));
5885 memcpy (p, ¶m[ 4 ], sizeof (*p));
5886 memcpy (p, ¶m[ 4 ], sizeof (*p));
5888 memcpy (p, ¶m[ 5 ], sizeof (*p));
5889 memcpy (p, ¶m[ 5 ], sizeof (*p));
5890 memcpy (p, ¶m[ 5 ], sizeof (*p));
5894 int main () { return 0; }
5896 echo "Test compile: gnupro alpha ev6 char spilling" >&5
5897 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
5898 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
5899 (eval $gmp_compile) 2>&5
5901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5902 test $ac_status = 0; }; then
5904 if test "$cross_compiling" = no; then
5905 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5906 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5910 test $ac_status = 0; }; }; then :;
5918 if test "$cc_works_part" != yes; then
5919 echo "failed program was:" >&5
5922 rm -f conftest* a.out b.out a.exe a_out.exe
5923 case $cc_works_part in
5928 gmp_prog_cc_works="no, gnupro alpha ev6 char spilling"
5931 gmp_prog_cc_works="no, gnupro alpha ev6 char spilling, program does not run"
5939 # __builtin_alloca is not available everywhere, check it exists before
5940 # seeing that it works
5941 if test "$gmp_prog_cc_works" = yes; then
5942 # remove anything that might look like compiler output to our "||" expression
5943 rm -f conftest* a.out b.out a.exe a_out.exe
5944 cat >conftest.c <<EOF
5945 int k; int foo () { __builtin_alloca (k); }
5947 echo "Test compile: __builtin_alloca availability" >&5
5948 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
5949 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
5950 (eval $gmp_compile) 2>&5
5952 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5953 test $ac_status = 0; }; then
5955 if test "$cross_compiling" = no; then
5956 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5957 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
5960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5961 test $ac_status = 0; }; }; then :;
5969 if test "$cc_works_part" != yes; then
5970 echo "failed program was:" >&5
5973 rm -f conftest* a.out b.out a.exe a_out.exe
5974 case $cc_works_part in
5976 if test "$gmp_prog_cc_works" = yes; then
5977 # remove anything that might look like compiler output to our "||" expression
5978 rm -f conftest* a.out b.out a.exe a_out.exe
5979 cat >conftest.c <<EOF
5980 /* The following provokes an internal compiler error from Itanium HP-UX cc
5981 under +O2 or higher. We use this sort of code in mpn/generic/mul_fft.c. */
5986 a = __builtin_alloca (k);
5987 for (i = 0; i <= k; i++)
5988 a[i] = __builtin_alloca (1 << i);
5991 int main () { return 0; }
5993 echo "Test compile: alloca array" >&5
5994 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
5995 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
5996 (eval $gmp_compile) 2>&5
5998 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5999 test $ac_status = 0; }; then
6001 if test "$cross_compiling" = no; then
6002 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6003 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6007 test $ac_status = 0; }; }; then :;
6015 if test "$cc_works_part" != yes; then
6016 echo "failed program was:" >&5
6019 rm -f conftest* a.out b.out a.exe a_out.exe
6020 case $cc_works_part in
6025 gmp_prog_cc_works="no, alloca array"
6028 gmp_prog_cc_works="no, alloca array, program does not run"
6046 if test "$gmp_prog_cc_works" = yes; then
6047 # remove anything that might look like compiler output to our "||" expression
6048 rm -f conftest* a.out b.out a.exe a_out.exe
6049 cat >conftest.c <<EOF
6050 /* The following provokes an internal error from the assembler on
6051 power2-ibm-aix4.3.1.0. gcc -mrios2 compiles to nabs+fcirz, and this
6052 results in "Internal error related to the source program domain".
6054 For reference it seems to be the combination of nabs+fcirz which is bad,
6055 not either alone. This sort of thing occurs in mpz/get_str.c with the
6056 way double chars_per_bit_exactly is applied in MPN_SIZEINBASE. Perhaps
6057 if that code changes to a scaled-integer style then we won't need this
6065 a = (x >= 0 ? x : -x);
6069 int main () { return 0; }
6071 echo "Test compile: abs int -> double conversion" >&5
6072 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
6073 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6074 (eval $gmp_compile) 2>&5
6076 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6077 test $ac_status = 0; }; then
6079 if test "$cross_compiling" = no; then
6080 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6081 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6085 test $ac_status = 0; }; }; then :;
6093 if test "$cc_works_part" != yes; then
6094 echo "failed program was:" >&5
6097 rm -f conftest* a.out b.out a.exe a_out.exe
6098 case $cc_works_part in
6103 gmp_prog_cc_works="no, abs int -> double conversion"
6106 gmp_prog_cc_works="no, abs int -> double conversion, program does not run"
6114 if test "$gmp_prog_cc_works" = yes; then
6115 # remove anything that might look like compiler output to our "||" expression
6116 rm -f conftest* a.out b.out a.exe a_out.exe
6117 cat >conftest.c <<EOF
6118 /* The following provokes a segfault in the compiler on powerpc-apple-darwin.
6119 Extracted from tests/mpn/t-iord_u.c. Causes Apple's gcc 3.3 build 1640 and
6120 1666 to segfault with e.g., -O2 -mpowerpc64. */
6122 #if defined (__GNUC__) && ! defined (__cplusplus)
6123 typedef unsigned long long t1;typedef t1*t2;
6124 static __inline__ t1 e(t2 rp,t2 up,int n,t1 v0)
6125 {t1 c,x,r;int i;if(v0){c=1;for(i=1;i<n;i++){x=up[i];r=x+1;rp[i]=r;}}return c;}
6126 f(){static const struct{t1 n;t1 src[9];t1 want[9];}d[]={{1,{0},{1}},};t1 got[9];int i;
6127 for(i=0;i<1;i++){if(e(got,got,9,d[i].n)==0)h();g(i,d[i].src,d[i].n,got,d[i].want,9);if(d[i].n)h();}}
6133 int main () { return 0; }
6135 echo "Test compile: long long reliability test 1" >&5
6136 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
6137 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6138 (eval $gmp_compile) 2>&5
6140 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6141 test $ac_status = 0; }; then
6143 if test "$cross_compiling" = no; then
6144 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6145 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6149 test $ac_status = 0; }; }; then :;
6157 if test "$cc_works_part" != yes; then
6158 echo "failed program was:" >&5
6161 rm -f conftest* a.out b.out a.exe a_out.exe
6162 case $cc_works_part in
6167 gmp_prog_cc_works="no, long long reliability test 1"
6170 gmp_prog_cc_works="no, long long reliability test 1, program does not run"
6178 if test "$gmp_prog_cc_works" = yes; then
6179 # remove anything that might look like compiler output to our "||" expression
6180 rm -f conftest* a.out b.out a.exe a_out.exe
6181 cat >conftest.c <<EOF
6182 /* The following provokes an internal compiler error on powerpc-apple-darwin.
6183 Extracted from mpz/cfdiv_q_2exp.c. Causes Apple's gcc 3.3 build 1640 and
6184 1666 to get an ICE with -O1 -mpowerpc64. */
6186 #if defined (__GNUC__) && ! defined (__cplusplus)
6187 f(int u){int i;long long x;x=u?~0:0;if(x)for(i=0;i<9;i++);x&=g();if(x)g();}
6193 int main () { return 0; }
6195 echo "Test compile: long long reliability test 2" >&5
6196 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
6197 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6198 (eval $gmp_compile) 2>&5
6200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6201 test $ac_status = 0; }; then
6203 if test "$cross_compiling" = no; then
6204 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6205 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6208 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6209 test $ac_status = 0; }; }; then :;
6217 if test "$cc_works_part" != yes; then
6218 echo "failed program was:" >&5
6221 rm -f conftest* a.out b.out a.exe a_out.exe
6222 case $cc_works_part in
6227 gmp_prog_cc_works="no, long long reliability test 2"
6230 gmp_prog_cc_works="no, long long reliability test 2, program does not run"
6238 if test "$gmp_prog_cc_works" = yes; then
6239 # remove anything that might look like compiler output to our "||" expression
6240 rm -f conftest* a.out b.out a.exe a_out.exe
6241 cat >conftest.c <<EOF
6242 /* The following is mis-compiled by HP ia-64 cc version
6243 cc: HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]
6244 under "cc +O3", both in +DD32 and +DD64 modes. The mpn_lshift_com gets
6245 inlined and its return value somehow botched to be 0 instead of 1. This
6246 arises in the real mpn_lshift_com in mul_fft.c. A lower optimization
6247 level, like +O2 seems ok. This code needs to be run to show the problem,
6248 but that's fine, the offending cc is a native-only compiler so we don't
6249 have to worry about cross compiling. */
6251 #if ! defined (__cplusplus)
6253 lshift_com (rp, up, n, cnt)
6259 unsigned long retval, high_limb, low_limb;
6262 tnc = 8 * sizeof (unsigned long) - cnt;
6264 retval = low_limb >> tnc;
6265 high_limb = low_limb << cnt;
6266 for (i = n - 1; i != 0; i--)
6269 *rp++ = ~(high_limb | (low_limb >> tnc));
6270 high_limb = low_limb << cnt;
6277 unsigned long cy, rp[2], up[2];
6280 cy = lshift_com (rp, up, 2L, 1);
6294 echo "Test compile: mpn_lshift_com optimization" >&5
6295 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
6296 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6297 (eval $gmp_compile) 2>&5
6299 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6300 test $ac_status = 0; }; then
6302 if test "$cross_compiling" = no; then
6303 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6304 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6307 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6308 test $ac_status = 0; }; }; then :;
6316 if test "$cc_works_part" != yes; then
6317 echo "failed program was:" >&5
6320 rm -f conftest* a.out b.out a.exe a_out.exe
6321 case $cc_works_part in
6326 gmp_prog_cc_works="no, mpn_lshift_com optimization"
6329 gmp_prog_cc_works="no, mpn_lshift_com optimization, program does not run"
6336 if test "$gmp_prog_cc_works" = yes; then
6337 # remove anything that might look like compiler output to our "||" expression
6338 rm -f conftest* a.out b.out a.exe a_out.exe
6339 cat >conftest.c <<EOF
6340 /* The following is mis-compiled by Intel ia-64 icc version 1.8 under
6341 "icc -O3", After several calls, the function writes parial garbage to
6342 the result vector. Perhaps relates to the chk.a.nc insn. This code needs
6343 to be run to show the problem, but that's fine, the offending cc is a
6344 native-only compiler so we don't have to worry about cross compiling. */
6346 #if ! defined (__cplusplus)
6349 lshift_com (rp, up, n, cnt)
6355 unsigned long high_limb, low_limb;
6360 tnc = 8 * sizeof (unsigned long) - cnt;
6362 high_limb = low_limb << cnt;
6363 for (i = n - 1; i != 0; i--)
6366 *--rp = ~(high_limb | (low_limb >> tnc));
6367 high_limb = low_limb << cnt;
6374 unsigned long *r, *r2;
6375 unsigned long a[88 + 1];
6377 for (i = 0; i < 88 + 1; i++)
6379 r = malloc (10000 * sizeof (unsigned long));
6381 for (i = 0; i < 528; i += 22)
6384 i / (8 * sizeof (unsigned long)) + 1,
6385 i % (8 * sizeof (unsigned long)));
6388 if (r[2048] != 0 || r[2049] != 0 || r[2050] != 0 || r[2051] != 0 ||
6389 r[2052] != 0 || r[2053] != 0 || r[2054] != 0)
6402 echo "Test compile: mpn_lshift_com optimization 2" >&5
6403 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
6404 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6405 (eval $gmp_compile) 2>&5
6407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6408 test $ac_status = 0; }; then
6410 if test "$cross_compiling" = no; then
6411 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6412 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6415 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6416 test $ac_status = 0; }; }; then :;
6424 if test "$cc_works_part" != yes; then
6425 echo "failed program was:" >&5
6428 rm -f conftest* a.out b.out a.exe a_out.exe
6429 case $cc_works_part in
6434 gmp_prog_cc_works="no, mpn_lshift_com optimization 2"
6437 gmp_prog_cc_works="no, mpn_lshift_com optimization 2, program does not run"
6445 # A certain _GLOBAL_OFFSET_TABLE_ problem in past versions of gas, tickled
6446 # by recent versions of gcc.
6448 if test "$gmp_prog_cc_works" = yes; then
6450 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-*)
6451 # this problem only arises in PIC code, so don't need to test when
6452 # --disable-shared. We don't necessarily have $enable_shared set to
6453 # yes at this point, it will still be unset for the default (which is
6454 # yes); hence the use of "!= no".
6455 if test "$enable_shared" != no; then
6456 echo "Testing gcc GOT with eax emitted" >&5
6457 cat >conftest.c <<\EOF
6459 int bar () { return foo; }
6462 gmp_compile="$cc $cflags $cppflags -fPIC -S conftest.c >&5 2>&1"
6463 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6464 (eval $gmp_compile) 2>&5
6466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6467 test $ac_status = 0; }; then
6468 if grep "addl.*_GLOBAL_OFFSET_TABLE_.*eax" conftest.s >/dev/null; then
6473 echo "Result: $tmp_got_emitted" >&5
6474 if test "$tmp_got_emitted" = yes; then
6475 echo "Testing gas GOT with eax good" >&5
6476 cat >conftest.awk <<\EOF
6505 for (f = 2; f <= NF; f++)
6507 for (i = 0; i < 20; i++)
6512 for (i = 0; i < 21; i++)
6513 if (got[i] != want[i])
6529 cat >conftest.s <<\EOF
6531 .byte 1, 35, 69, 103, 137, 171, 205, 239
6532 addl $_GLOBAL_OFFSET_TABLE_, %eax
6533 .byte 254, 220, 186, 152, 118, 84, 50, 16
6536 gmp_compile="$cc $cflags $cppflags -fPIC -o conftest.o -c conftest.s >&5 2>&1"
6537 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6538 (eval $gmp_compile) 2>&5
6540 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6541 test $ac_status = 0; }; then
6542 tmp_got_good=`od -b conftest.o | $AWK -f conftest.awk`
6545 echo "Result: $tmp_got_good" >&5
6546 if test "$tmp_got_good" = no; then
6547 gmp_prog_cc_works="no, bad gas GOT with eax"
6561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_prog_cc_works" >&5
6562 $as_echo "$gmp_prog_cc_works" >&6; }
6563 case $gmp_prog_cc_works in
6573 # If we're supposed to be using a "long long" for a limb, check that
6575 eval limb_chosen=\"\$limb$abi1\"
6576 test -n "$limb_chosen" || eval limb_chosen=\"\$limb$abi2\"
6577 if test "$limb_chosen" = longlong; then
6578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler $cc $cflags $cppflags has long long" >&5
6579 $as_echo_n "checking compiler $cc $cflags $cppflags has long long... " >&6; }
6580 cat >conftest.c <<EOF
6582 long long bar () { return foo; }
6583 int main () { return 0; }
6585 gmp_prog_cc_works=no
6586 gmp_compile="$cc $cflags $cppflags -c conftest.c >&5"
6587 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6588 (eval $gmp_compile) 2>&5
6590 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6591 test $ac_status = 0; }; then
6592 gmp_prog_cc_works=yes
6594 echo "failed program was:" >&5
6597 rm -f conftest* a.out b.out a.exe a_out.exe
6598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_prog_cc_works" >&5
6599 $as_echo "$gmp_prog_cc_works" >&6; }
6600 if test $gmp_prog_cc_works = yes; then
6608 # The tests to perform on this $cc, if any
6609 eval testlist=\"\$${ccbase}${abi1}_testlist\"
6610 test -n "$testlist" || eval testlist=\"\$${ccbase}${abi2}_testlist\"
6611 test -n "$testlist" || eval testlist=\"\$any${abi1}_testlist\"
6612 test -n "$testlist" || eval testlist=\"\$any${abi2}_testlist\"
6615 for tst in $testlist; do
6617 hpc-hppa-2-0) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HP compiler $cc is good for 64-bits" >&5
6618 $as_echo_n "checking whether HP compiler $cc is good for 64-bits... " >&6; }
6619 # Bad compiler output:
6620 # ccom: HP92453-01 G.10.32.05 HP C Compiler
6621 # Good compiler output:
6622 # ccom: HP92453-01 A.10.32.30 HP C Compiler
6623 # Let A.10.32.30 or higher be ok.
6625 gmp_tmp_vs=`$cc -V -c -o conftest.$OBJEXT conftest.c 2>&1 | grep "^ccom:"`
6626 echo "Version string: $gmp_tmp_vs" >&5
6628 gmp_tmp_v1=`echo $gmp_tmp_vs | sed 's/.* .\.\([0-9]*\).*/\1/'`
6629 gmp_tmp_v2=`echo $gmp_tmp_vs | sed 's/.* .\..*\.\(.*\)\..* HP C.*/\1/'`
6630 gmp_tmp_v3=`echo $gmp_tmp_vs | sed 's/.* .\..*\..*\.\(.*\) HP C.*/\1/'`
6631 echo "Version number: $gmp_tmp_v1.$gmp_tmp_v2.$gmp_tmp_v3" >&5
6632 if test -z "$gmp_tmp_v1"; then
6633 gmp_hpc_64bit=not-applicable
6636 if test -n "$gmp_tmp_v1"; then
6637 if test "$gmp_tmp_v1" -gt 10; then
6640 if test "$gmp_tmp_v1" -eq 10; then
6641 if test -n "$gmp_tmp_v2"; then
6642 if test "$gmp_tmp_v2" -gt 32; then
6645 if test "$gmp_tmp_v2" -eq 32; then
6646 if test -n "$gmp_tmp_v3" && test "$gmp_tmp_v3" -ge 30; then
6659 gmp_hpc_64bit=$gmp_compare_ge
6661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_hpc_64bit" >&5
6662 $as_echo "$gmp_hpc_64bit" >&6; }
6663 if test $gmp_hpc_64bit = yes; then
6669 gcc-arm-umodsi) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ARM gcc unsigned division works" >&5
6670 $as_echo_n "checking whether ARM gcc unsigned division works... " >&6; }
6671 tmp_version=`$cc --version`
6672 echo "$tmp_version" >&5
6673 case $tmp_version in
6676 gmp_gcc_arm_umodsi_result="no, gcc 2.95.[0123]" ;;
6679 gmp_gcc_arm_umodsi_result=yes ;;
6681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_gcc_arm_umodsi_result" >&5
6682 $as_echo "$gmp_gcc_arm_umodsi_result" >&6; }
6684 gcc-mips-o32) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc supports o32" >&5
6685 $as_echo_n "checking whether gcc supports o32... " >&6; }
6686 echo 'int x;' >conftest.c
6687 echo "$cc -mabi=32 -c conftest.c" >&5
6688 if $cc -mabi=32 -c conftest.c >conftest.out 2>&1; then
6691 cat conftest.out >&5
6692 if grep "cc1: Invalid option \`abi=32'" conftest.out >/dev/null; then
6699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
6700 $as_echo "$result" >&6; }
6701 if test $result = yes; then
6707 hppa-level-2.0) { $as_echo "$as_me:${as_lineno-$LINENO}: checking $cc $cflags assembler knows hppa 2.0" >&5
6708 $as_echo_n "checking $cc $cflags assembler knows hppa 2.0... " >&6; }
6710 cat >conftest.s <<EOF
6713 gmp_compile="$cc $cflags -c conftest.s >&5 2>&1"
6714 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6715 (eval $gmp_compile) 2>&5
6717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6718 test $ac_status = 0; }; then
6721 echo "failed program was" >&5
6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
6726 $as_echo "$result" >&6; }
6727 if test "$result" = yes; then
6733 sizeof*) echo "configure: testlist $tst" >&5
6734 gmp_sizeof_type=`echo "$tst" | sed 's/sizeof-\([a-z]*\).*/\1/'`
6735 gmp_sizeof_want=`echo "$tst" | sed 's/sizeof-[a-z]*-\([0-9]*\).*/\1/'`
6736 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler $cc $cflags has sizeof($gmp_sizeof_type)==$gmp_sizeof_want" >&5
6737 $as_echo_n "checking compiler $cc $cflags has sizeof($gmp_sizeof_type)==$gmp_sizeof_want... " >&6; }
6738 cat >conftest.c <<EOF
6742 static int test_array [1 - 2 * (long) (sizeof ($gmp_sizeof_type) != $gmp_sizeof_want)];
6747 gmp_c_testlist_sizeof=no
6748 gmp_compile="$cc $cflags -c conftest.c >&5"
6749 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6750 (eval $gmp_compile) 2>&5
6752 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6753 test $ac_status = 0; }; then
6754 gmp_c_testlist_sizeof=yes
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_c_testlist_sizeof" >&5
6758 $as_echo "$gmp_c_testlist_sizeof" >&6; }
6759 if test $gmp_c_testlist_sizeof = yes; then
6766 if test $testlist_pass = no; then break; fi
6769 if test $testlist_pass = yes; then
6775 if test $found_compiler = yes; then break; fi
6778 if test $found_compiler = yes; then break; fi
6781 if test $found_compiler = yes; then break; fi
6785 # If we recognised the CPU, as indicated by $path being set, then insist
6786 # that we have a working compiler, either from our $cclist choices or from
6787 # $CC. We can't let AC_PROG_CC look around for a compiler because it might
6788 # find one that we've rejected (for not supporting the modes our asm code
6791 # If we didn't recognise the CPU (and this includes host_cpu=none), then
6792 # fall through and let AC_PROG_CC look around for a compiler too. This is
6793 # mostly in the interests of following a standard autoconf setup, after all
6794 # we've already tested cc and gcc adequately (hopefully). As of autoconf
6795 # 2.50 the only thing AC_PROG_CC really adds is a check for "cl" (Microsoft
6796 # C on MS-DOS systems).
6798 if test $found_compiler = no && test -n "$path"; then
6799 as_fn_error "could not find a working compiler, see config.log for details" "$LINENO" 5
6803 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-* | athlon64-*-* | pentium4-*-* | atom-*-* | core2-*-* | corei-*-* | x86_64-*-* | nano-*-*)
6804 # If the user asked for a fat build, override the path and flags set above
6805 if test $enable_fat = yes; then
6809 if test "$abi" = 32; then
6810 extra_functions="$extra_functions fat fat_entry"
6812 fat_path="x86 x86/fat x86/i486
6813 x86/k6 x86/k6/mmx x86/k6/k62mmx
6815 x86/pentium x86/pentium/mmx
6816 x86/p6 x86/p6/mmx x86/p6/p3mmx x86/p6/sse2
6817 x86/pentium4 x86/pentium4/mmx x86/pentium4/sse2"
6820 if test "$abi" = 64; then
6822 extra_functions_64="$extra_functions_64 fat fat_entry"
6823 path_64="x86_64/fat x86_64"
6824 fat_path="x86_64 x86_64/fat x86_64/pentium4 x86_64/core2 x86_64/corei x86_64/atom x86_64/nano"
6827 fat_functions="add_n addmul_1 copyd copyi
6828 dive_1 diveby3 divrem_1 gcd_1 lshift
6829 mod_1 mod_34lsub1 mode1o mul_1 mul_basecase
6830 pre_divrem_1 pre_mod_1 rshift
6831 sqr_basecase sub_n submul_1"
6832 fat_thresholds="MUL_TOOM22_THRESHOLD MUL_TOOM33_THRESHOLD
6833 SQR_TOOM2_THRESHOLD SQR_TOOM3_THRESHOLD"
6839 if test $found_compiler = yes; then
6841 # If we're creating CFLAGS, then look for optional additions. If the user
6842 # set CFLAGS then leave it alone.
6844 if test "$test_CFLAGS" != set; then
6845 eval optlist=\"\$${ccbase}${abi1}_cflags_optlist\"
6846 test -n "$optlist" || eval optlist=\"\$${ccbase}${abi2}_cflags_optlist\"
6848 for opt in $optlist; do
6849 eval optflags=\"\$${ccbase}${abi1}_cflags_${opt}\"
6850 test -n "$optflags" || eval optflags=\"\$${ccbase}${abi2}_cflags_${opt}\"
6851 test -n "$optflags" || eval optflags=\"\$${ccbase}_cflags_${opt}\"
6853 for flag in $optflags; do
6855 # ~ represents a space in an option spec
6856 flag=`echo "$flag" | tr '~' ' '`
6859 -march=pentium4 | -march=k8)
6860 # For -march settings which enable SSE2 we exclude certain bad
6861 # gcc versions and we need an OS knowing how to save xmm regs.
6863 # This is only for ABI=32, any 64-bit gcc is good and any OS
6864 # knowing x86_64 will know xmm.
6866 # -march=k8 was only introduced in gcc 3.3, so we shouldn't need
6867 # the GMP_GCC_PENTIUM4_SSE2 check (for gcc 3.2 and prior). But
6868 # it doesn't hurt to run it anyway, sharing code with the
6871 if test "$abi" = 32; then
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc is good for sse2" >&5
6873 $as_echo_n "checking whether gcc is good for sse2... " >&6; }
6874 case `$cc $cflags $cppflags -dumpversion` in
6875 3.[012] | 3.[012].*) result=no ;;
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
6879 $as_echo "$result" >&6; }
6880 if test "$result" = yes; then
6886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the operating system supports XMM registers" >&5
6887 $as_echo_n "checking whether the operating system supports XMM registers... " >&6; }
6888 if test "${gmp_cv_os_x86_xmm+set}" = set; then :
6889 $as_echo_n "(cached) " >&6
6891 if test "$build" = "$host"; then
6892 # remove anything that might look like compiler output to our "||" expression
6893 rm -f conftest* a.out b.out a.exe a_out.exe
6894 cat >conftest.s <<EOF
6900 .byte 0x0f, 0x57, 0xc0
6904 gmp_compile="$cc $cflags $cppflags conftest.s -o conftest >&5"
6905 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6906 (eval $gmp_compile) 2>&5
6908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6909 test $ac_status = 0; }; then
6910 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6911 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
6914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6915 test $ac_status = 0; }; }; then
6916 gmp_cv_os_x86_xmm=yes
6918 gmp_cv_os_x86_xmm=no
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Oops, cannot compile test program" >&5
6922 $as_echo "$as_me: WARNING: Oops, cannot compile test program" >&2;}
6927 if test -z "$gmp_cv_os_x86_xmm"; then
6929 freebsd[123] | freebsd[123].*)
6930 gmp_cv_os_x86_xmm=no ;;
6932 gmp_cv_os_x86_xmm=yes ;;
6934 gmp_cv_os_x86_xmm=probably ;;
6939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_os_x86_xmm" >&5
6940 $as_echo "$gmp_cv_os_x86_xmm" >&6; }
6942 if test "$gmp_cv_os_x86_xmm" = probably; then
6943 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Not certain of OS support for xmm when cross compiling." >&5
6944 $as_echo "$as_me: WARNING: Not certain of OS support for xmm when cross compiling." >&2;}
6945 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Will assume it's ok, expect a SIGILL if this is wrong." >&5
6946 $as_echo "$as_me: WARNING: Will assume it's ok, expect a SIGILL if this is wrong." >&2;}
6949 case $gmp_cv_os_x86_xmm in
6961 # special check, avoiding a warning
6962 if test "$ccbase" = gcc; then
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler $cc $cflags -no-cpp-precomp" >&5
6964 $as_echo_n "checking compiler $cc $cflags -no-cpp-precomp... " >&6; }
6966 cat >conftest.c <<EOF
6967 int main () { return 0; }
6969 gmp_compile="$cc $cflags -no-cpp-precomp conftest.c >conftest.out 2>&1"
6970 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
6971 (eval $gmp_compile) 2>&5
6973 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6974 test $ac_status = 0; }; then
6975 if grep "unrecognized option.*-no-cpp-precomp" conftest.out >/dev/null; then : ;
6980 cat conftest.out >&5
6981 rm -f conftest* a.out b.out a.exe a_out.exe
6982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
6983 $as_echo "$result" >&6; }
6984 if test "$result" = yes; then
6985 cflags="$cflags $flag"
6996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler $cc $cflags $flag" >&5
6997 $as_echo_n "checking assembler $cc $cflags $flag... " >&6; }
6999 cat >conftest.c <<EOF
7002 gmp_compile="$cc $cflags $flag -c conftest.c >conftest.out 2>&1"
7003 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7004 (eval $gmp_compile) 2>&5
7006 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7007 test $ac_status = 0; }; then
7008 if grep "Unknown CPU identifier" conftest.out >/dev/null; then : ;
7013 cat conftest.out >&5
7015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7016 $as_echo "$result" >&6; }
7017 if test "$result" = yes; then
7027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $cc $cflags $cppflags -Wa,-oldas" >&5
7028 $as_echo_n "checking for $cc $cflags $cppflags -Wa,-oldas... " >&6; }
7030 cat >conftest.c <<EOF
7032 echo "with empty conftest.c" >&5
7033 gmp_compile="$cc $cflags $cppflags -c conftest.c >&5 2>&1"
7034 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7035 (eval $gmp_compile) 2>&5
7037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7038 test $ac_status = 0; }; then : ;
7041 gmp_compile="$cc $cflags $cppflags -Wa,-oldas -c conftest.c >&5 2>&1"
7042 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7043 (eval $gmp_compile) 2>&5
7045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7046 test $ac_status = 0; }; then
7047 # but with -Wa,-oldas it works
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5
7053 $as_echo "$result" >&6; }
7054 if test "$result" = yes; then
7055 cflags="$cflags $flag"
7064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler $cc $cflags $cppflags $flag" >&5
7065 $as_echo_n "checking compiler $cc $cflags $cppflags $flag... " >&6; }
7066 gmp_prog_cc_works=yes
7068 # first see a simple "main()" works, then go on to other checks
7069 if test "$gmp_prog_cc_works" = yes; then
7070 # remove anything that might look like compiler output to our "||" expression
7071 rm -f conftest* a.out b.out a.exe a_out.exe
7072 cat >conftest.c <<EOF
7074 int main () { return 0; }
7076 echo "Test compile: " >&5
7077 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7078 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7079 (eval $gmp_compile) 2>&5
7081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7082 test $ac_status = 0; }; then
7084 if test "$cross_compiling" = no; then
7085 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7086 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7089 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7090 test $ac_status = 0; }; }; then :;
7098 if test "$cc_works_part" != yes; then
7099 echo "failed program was:" >&5
7102 rm -f conftest* a.out b.out a.exe a_out.exe
7103 case $cc_works_part in
7108 gmp_prog_cc_works="no"
7111 gmp_prog_cc_works="no, program does not run"
7119 if test "$gmp_prog_cc_works" = yes; then
7120 # remove anything that might look like compiler output to our "||" expression
7121 rm -f conftest* a.out b.out a.exe a_out.exe
7122 cat >conftest.c <<EOF
7123 /* The following provokes an internal error from gcc 2.95.2 -mpowerpc64
7124 (without -maix64), hence detecting an unusable compiler */
7125 void *g() { return (void *) 0; }
7126 void *f() { return g(); }
7128 int main () { return 0; }
7130 echo "Test compile: function pointer return" >&5
7131 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7132 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7133 (eval $gmp_compile) 2>&5
7135 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7136 test $ac_status = 0; }; then
7138 if test "$cross_compiling" = no; then
7139 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7140 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7143 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7144 test $ac_status = 0; }; }; then :;
7152 if test "$cc_works_part" != yes; then
7153 echo "failed program was:" >&5
7156 rm -f conftest* a.out b.out a.exe a_out.exe
7157 case $cc_works_part in
7162 gmp_prog_cc_works="no, function pointer return"
7165 gmp_prog_cc_works="no, function pointer return, program does not run"
7173 if test "$gmp_prog_cc_works" = yes; then
7174 # remove anything that might look like compiler output to our "||" expression
7175 rm -f conftest* a.out b.out a.exe a_out.exe
7176 cat >conftest.c <<EOF
7177 /* The following provokes an invalid instruction syntax from i386 gcc
7178 -march=pentiumpro on Solaris 2.8. The native sun assembler
7179 requires a non-standard syntax for cmov which gcc (as of 2.95.2 at
7180 least) doesn't know. */
7182 int cmov () { return (n >= 0 ? n : 0); }
7184 int main () { return 0; }
7186 echo "Test compile: cmov instruction" >&5
7187 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7188 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7189 (eval $gmp_compile) 2>&5
7191 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7192 test $ac_status = 0; }; then
7194 if test "$cross_compiling" = no; then
7195 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7196 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7199 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7200 test $ac_status = 0; }; }; then :;
7208 if test "$cc_works_part" != yes; then
7209 echo "failed program was:" >&5
7212 rm -f conftest* a.out b.out a.exe a_out.exe
7213 case $cc_works_part in
7218 gmp_prog_cc_works="no, cmov instruction"
7221 gmp_prog_cc_works="no, cmov instruction, program does not run"
7229 if test "$gmp_prog_cc_works" = yes; then
7230 # remove anything that might look like compiler output to our "||" expression
7231 rm -f conftest* a.out b.out a.exe a_out.exe
7232 cat >conftest.c <<EOF
7233 /* The following provokes a linker invocation problem with gcc 3.0.3
7234 on AIX 4.3 under "-maix64 -mpowerpc64 -mcpu=630". The -mcpu=630
7235 option causes gcc to incorrectly select the 32-bit libgcc.a, not
7236 the 64-bit one, and consequently it misses out on the __fixunsdfdi
7237 helper (double -> uint64 conversion). */
7239 unsigned long gcc303 () { return (unsigned long) d; }
7241 int main () { return 0; }
7243 echo "Test compile: double -> ulong conversion" >&5
7244 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7245 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7246 (eval $gmp_compile) 2>&5
7248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7249 test $ac_status = 0; }; then
7251 if test "$cross_compiling" = no; then
7252 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7253 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7257 test $ac_status = 0; }; }; then :;
7265 if test "$cc_works_part" != yes; then
7266 echo "failed program was:" >&5
7269 rm -f conftest* a.out b.out a.exe a_out.exe
7270 case $cc_works_part in
7275 gmp_prog_cc_works="no, double -> ulong conversion"
7278 gmp_prog_cc_works="no, double -> ulong conversion, program does not run"
7286 if test "$gmp_prog_cc_works" = yes; then
7287 # remove anything that might look like compiler output to our "||" expression
7288 rm -f conftest* a.out b.out a.exe a_out.exe
7289 cat >conftest.c <<EOF
7290 /* The following provokes an error from hppa gcc 2.95 under -mpa-risc-2-0 if
7291 the assembler doesn't know hppa 2.0 instructions. fneg is a 2.0
7292 instruction, and a negation like this comes out using it. */
7294 unsigned long fneg () { return -fneg_data; }
7296 int main () { return 0; }
7298 echo "Test compile: double negation" >&5
7299 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7300 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7301 (eval $gmp_compile) 2>&5
7303 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7304 test $ac_status = 0; }; then
7306 if test "$cross_compiling" = no; then
7307 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7308 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7311 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7312 test $ac_status = 0; }; }; then :;
7320 if test "$cc_works_part" != yes; then
7321 echo "failed program was:" >&5
7324 rm -f conftest* a.out b.out a.exe a_out.exe
7325 case $cc_works_part in
7330 gmp_prog_cc_works="no, double negation"
7333 gmp_prog_cc_works="no, double negation, program does not run"
7341 if test "$gmp_prog_cc_works" = yes; then
7342 # remove anything that might look like compiler output to our "||" expression
7343 rm -f conftest* a.out b.out a.exe a_out.exe
7344 cat >conftest.c <<EOF
7345 /* The following makes gcc 3.3 -march=pentium4 generate an SSE2 xmm insn
7346 (cvtsd2ss) which will provoke an error if the assembler doesn't recognise
7347 those instructions. Not sure how much of the gmp code will come out
7348 wanting sse2, but it's easiest to reject an option we know is bad. */
7350 float ftod () { return (float) ftod_data; }
7352 int main () { return 0; }
7354 echo "Test compile: double -> float conversion" >&5
7355 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7356 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7357 (eval $gmp_compile) 2>&5
7359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7360 test $ac_status = 0; }; then
7362 if test "$cross_compiling" = no; then
7363 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7364 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7367 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7368 test $ac_status = 0; }; }; then :;
7376 if test "$cc_works_part" != yes; then
7377 echo "failed program was:" >&5
7380 rm -f conftest* a.out b.out a.exe a_out.exe
7381 case $cc_works_part in
7386 gmp_prog_cc_works="no, double -> float conversion"
7389 gmp_prog_cc_works="no, double -> float conversion, program does not run"
7397 if test "$gmp_prog_cc_works" = yes; then
7398 # remove anything that might look like compiler output to our "||" expression
7399 rm -f conftest* a.out b.out a.exe a_out.exe
7400 cat >conftest.c <<EOF
7401 /* The following provokes an internal compiler error from gcc version
7402 "2.9-gnupro-99r1" under "-O2 -mcpu=ev6", apparently relating to char
7403 values being spilled into floating point registers. The problem doesn't
7404 show up all the time, but has occurred enough in GMP for us to reject
7405 this compiler+flags. */
7406 #include <string.h> /* for memcpy */
7411 long d0, d1, d2, d3, d4, d5, d6;
7414 struct try_t param[6];
7419 memcpy (p, ¶m[ 2 ], sizeof (*p));
7420 memcpy (p, ¶m[ 2 ], sizeof (*p));
7422 memcpy (p, ¶m[ 1 ], sizeof (*p));
7425 memcpy (p, ¶m[ 3 ], sizeof (*p));
7428 memcpy (p, ¶m[ 4 ], sizeof (*p));
7429 memcpy (p, ¶m[ 4 ], sizeof (*p));
7431 memcpy (p, ¶m[ 5 ], sizeof (*p));
7432 memcpy (p, ¶m[ 5 ], sizeof (*p));
7433 memcpy (p, ¶m[ 5 ], sizeof (*p));
7437 int main () { return 0; }
7439 echo "Test compile: gnupro alpha ev6 char spilling" >&5
7440 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7441 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7442 (eval $gmp_compile) 2>&5
7444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7445 test $ac_status = 0; }; then
7447 if test "$cross_compiling" = no; then
7448 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7449 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7453 test $ac_status = 0; }; }; then :;
7461 if test "$cc_works_part" != yes; then
7462 echo "failed program was:" >&5
7465 rm -f conftest* a.out b.out a.exe a_out.exe
7466 case $cc_works_part in
7471 gmp_prog_cc_works="no, gnupro alpha ev6 char spilling"
7474 gmp_prog_cc_works="no, gnupro alpha ev6 char spilling, program does not run"
7482 # __builtin_alloca is not available everywhere, check it exists before
7483 # seeing that it works
7484 if test "$gmp_prog_cc_works" = yes; then
7485 # remove anything that might look like compiler output to our "||" expression
7486 rm -f conftest* a.out b.out a.exe a_out.exe
7487 cat >conftest.c <<EOF
7488 int k; int foo () { __builtin_alloca (k); }
7490 echo "Test compile: __builtin_alloca availability" >&5
7491 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7492 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7493 (eval $gmp_compile) 2>&5
7495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7496 test $ac_status = 0; }; then
7498 if test "$cross_compiling" = no; then
7499 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7500 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7503 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7504 test $ac_status = 0; }; }; then :;
7512 if test "$cc_works_part" != yes; then
7513 echo "failed program was:" >&5
7516 rm -f conftest* a.out b.out a.exe a_out.exe
7517 case $cc_works_part in
7519 if test "$gmp_prog_cc_works" = yes; then
7520 # remove anything that might look like compiler output to our "||" expression
7521 rm -f conftest* a.out b.out a.exe a_out.exe
7522 cat >conftest.c <<EOF
7523 /* The following provokes an internal compiler error from Itanium HP-UX cc
7524 under +O2 or higher. We use this sort of code in mpn/generic/mul_fft.c. */
7529 a = __builtin_alloca (k);
7530 for (i = 0; i <= k; i++)
7531 a[i] = __builtin_alloca (1 << i);
7534 int main () { return 0; }
7536 echo "Test compile: alloca array" >&5
7537 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7538 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7539 (eval $gmp_compile) 2>&5
7541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7542 test $ac_status = 0; }; then
7544 if test "$cross_compiling" = no; then
7545 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7546 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7549 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7550 test $ac_status = 0; }; }; then :;
7558 if test "$cc_works_part" != yes; then
7559 echo "failed program was:" >&5
7562 rm -f conftest* a.out b.out a.exe a_out.exe
7563 case $cc_works_part in
7568 gmp_prog_cc_works="no, alloca array"
7571 gmp_prog_cc_works="no, alloca array, program does not run"
7589 if test "$gmp_prog_cc_works" = yes; then
7590 # remove anything that might look like compiler output to our "||" expression
7591 rm -f conftest* a.out b.out a.exe a_out.exe
7592 cat >conftest.c <<EOF
7593 /* The following provokes an internal error from the assembler on
7594 power2-ibm-aix4.3.1.0. gcc -mrios2 compiles to nabs+fcirz, and this
7595 results in "Internal error related to the source program domain".
7597 For reference it seems to be the combination of nabs+fcirz which is bad,
7598 not either alone. This sort of thing occurs in mpz/get_str.c with the
7599 way double chars_per_bit_exactly is applied in MPN_SIZEINBASE. Perhaps
7600 if that code changes to a scaled-integer style then we won't need this
7608 a = (x >= 0 ? x : -x);
7612 int main () { return 0; }
7614 echo "Test compile: abs int -> double conversion" >&5
7615 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7616 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7617 (eval $gmp_compile) 2>&5
7619 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7620 test $ac_status = 0; }; then
7622 if test "$cross_compiling" = no; then
7623 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7624 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7628 test $ac_status = 0; }; }; then :;
7636 if test "$cc_works_part" != yes; then
7637 echo "failed program was:" >&5
7640 rm -f conftest* a.out b.out a.exe a_out.exe
7641 case $cc_works_part in
7646 gmp_prog_cc_works="no, abs int -> double conversion"
7649 gmp_prog_cc_works="no, abs int -> double conversion, program does not run"
7657 if test "$gmp_prog_cc_works" = yes; then
7658 # remove anything that might look like compiler output to our "||" expression
7659 rm -f conftest* a.out b.out a.exe a_out.exe
7660 cat >conftest.c <<EOF
7661 /* The following provokes a segfault in the compiler on powerpc-apple-darwin.
7662 Extracted from tests/mpn/t-iord_u.c. Causes Apple's gcc 3.3 build 1640 and
7663 1666 to segfault with e.g., -O2 -mpowerpc64. */
7665 #if defined (__GNUC__) && ! defined (__cplusplus)
7666 typedef unsigned long long t1;typedef t1*t2;
7667 static __inline__ t1 e(t2 rp,t2 up,int n,t1 v0)
7668 {t1 c,x,r;int i;if(v0){c=1;for(i=1;i<n;i++){x=up[i];r=x+1;rp[i]=r;}}return c;}
7669 f(){static const struct{t1 n;t1 src[9];t1 want[9];}d[]={{1,{0},{1}},};t1 got[9];int i;
7670 for(i=0;i<1;i++){if(e(got,got,9,d[i].n)==0)h();g(i,d[i].src,d[i].n,got,d[i].want,9);if(d[i].n)h();}}
7676 int main () { return 0; }
7678 echo "Test compile: long long reliability test 1" >&5
7679 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7680 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7681 (eval $gmp_compile) 2>&5
7683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7684 test $ac_status = 0; }; then
7686 if test "$cross_compiling" = no; then
7687 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7688 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7692 test $ac_status = 0; }; }; then :;
7700 if test "$cc_works_part" != yes; then
7701 echo "failed program was:" >&5
7704 rm -f conftest* a.out b.out a.exe a_out.exe
7705 case $cc_works_part in
7710 gmp_prog_cc_works="no, long long reliability test 1"
7713 gmp_prog_cc_works="no, long long reliability test 1, program does not run"
7721 if test "$gmp_prog_cc_works" = yes; then
7722 # remove anything that might look like compiler output to our "||" expression
7723 rm -f conftest* a.out b.out a.exe a_out.exe
7724 cat >conftest.c <<EOF
7725 /* The following provokes an internal compiler error on powerpc-apple-darwin.
7726 Extracted from mpz/cfdiv_q_2exp.c. Causes Apple's gcc 3.3 build 1640 and
7727 1666 to get an ICE with -O1 -mpowerpc64. */
7729 #if defined (__GNUC__) && ! defined (__cplusplus)
7730 f(int u){int i;long long x;x=u?~0:0;if(x)for(i=0;i<9;i++);x&=g();if(x)g();}
7736 int main () { return 0; }
7738 echo "Test compile: long long reliability test 2" >&5
7739 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7740 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7741 (eval $gmp_compile) 2>&5
7743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7744 test $ac_status = 0; }; then
7746 if test "$cross_compiling" = no; then
7747 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7748 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7751 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7752 test $ac_status = 0; }; }; then :;
7760 if test "$cc_works_part" != yes; then
7761 echo "failed program was:" >&5
7764 rm -f conftest* a.out b.out a.exe a_out.exe
7765 case $cc_works_part in
7770 gmp_prog_cc_works="no, long long reliability test 2"
7773 gmp_prog_cc_works="no, long long reliability test 2, program does not run"
7781 if test "$gmp_prog_cc_works" = yes; then
7782 # remove anything that might look like compiler output to our "||" expression
7783 rm -f conftest* a.out b.out a.exe a_out.exe
7784 cat >conftest.c <<EOF
7785 /* The following is mis-compiled by HP ia-64 cc version
7786 cc: HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]
7787 under "cc +O3", both in +DD32 and +DD64 modes. The mpn_lshift_com gets
7788 inlined and its return value somehow botched to be 0 instead of 1. This
7789 arises in the real mpn_lshift_com in mul_fft.c. A lower optimization
7790 level, like +O2 seems ok. This code needs to be run to show the problem,
7791 but that's fine, the offending cc is a native-only compiler so we don't
7792 have to worry about cross compiling. */
7794 #if ! defined (__cplusplus)
7796 lshift_com (rp, up, n, cnt)
7802 unsigned long retval, high_limb, low_limb;
7805 tnc = 8 * sizeof (unsigned long) - cnt;
7807 retval = low_limb >> tnc;
7808 high_limb = low_limb << cnt;
7809 for (i = n - 1; i != 0; i--)
7812 *rp++ = ~(high_limb | (low_limb >> tnc));
7813 high_limb = low_limb << cnt;
7820 unsigned long cy, rp[2], up[2];
7823 cy = lshift_com (rp, up, 2L, 1);
7837 echo "Test compile: mpn_lshift_com optimization" >&5
7838 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7839 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7840 (eval $gmp_compile) 2>&5
7842 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7843 test $ac_status = 0; }; then
7845 if test "$cross_compiling" = no; then
7846 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7847 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7850 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7851 test $ac_status = 0; }; }; then :;
7859 if test "$cc_works_part" != yes; then
7860 echo "failed program was:" >&5
7863 rm -f conftest* a.out b.out a.exe a_out.exe
7864 case $cc_works_part in
7869 gmp_prog_cc_works="no, mpn_lshift_com optimization"
7872 gmp_prog_cc_works="no, mpn_lshift_com optimization, program does not run"
7879 if test "$gmp_prog_cc_works" = yes; then
7880 # remove anything that might look like compiler output to our "||" expression
7881 rm -f conftest* a.out b.out a.exe a_out.exe
7882 cat >conftest.c <<EOF
7883 /* The following is mis-compiled by Intel ia-64 icc version 1.8 under
7884 "icc -O3", After several calls, the function writes parial garbage to
7885 the result vector. Perhaps relates to the chk.a.nc insn. This code needs
7886 to be run to show the problem, but that's fine, the offending cc is a
7887 native-only compiler so we don't have to worry about cross compiling. */
7889 #if ! defined (__cplusplus)
7892 lshift_com (rp, up, n, cnt)
7898 unsigned long high_limb, low_limb;
7903 tnc = 8 * sizeof (unsigned long) - cnt;
7905 high_limb = low_limb << cnt;
7906 for (i = n - 1; i != 0; i--)
7909 *--rp = ~(high_limb | (low_limb >> tnc));
7910 high_limb = low_limb << cnt;
7917 unsigned long *r, *r2;
7918 unsigned long a[88 + 1];
7920 for (i = 0; i < 88 + 1; i++)
7922 r = malloc (10000 * sizeof (unsigned long));
7924 for (i = 0; i < 528; i += 22)
7927 i / (8 * sizeof (unsigned long)) + 1,
7928 i % (8 * sizeof (unsigned long)));
7931 if (r[2048] != 0 || r[2049] != 0 || r[2050] != 0 || r[2051] != 0 ||
7932 r[2052] != 0 || r[2053] != 0 || r[2054] != 0)
7945 echo "Test compile: mpn_lshift_com optimization 2" >&5
7946 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
7947 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
7948 (eval $gmp_compile) 2>&5
7950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7951 test $ac_status = 0; }; then
7953 if test "$cross_compiling" = no; then
7954 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
7955 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
7958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
7959 test $ac_status = 0; }; }; then :;
7967 if test "$cc_works_part" != yes; then
7968 echo "failed program was:" >&5
7971 rm -f conftest* a.out b.out a.exe a_out.exe
7972 case $cc_works_part in
7977 gmp_prog_cc_works="no, mpn_lshift_com optimization 2"
7980 gmp_prog_cc_works="no, mpn_lshift_com optimization 2, program does not run"
7988 # A certain _GLOBAL_OFFSET_TABLE_ problem in past versions of gas, tickled
7989 # by recent versions of gcc.
7991 if test "$gmp_prog_cc_works" = yes; then
7993 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-*)
7994 # this problem only arises in PIC code, so don't need to test when
7995 # --disable-shared. We don't necessarily have $enable_shared set to
7996 # yes at this point, it will still be unset for the default (which is
7997 # yes); hence the use of "!= no".
7998 if test "$enable_shared" != no; then
7999 echo "Testing gcc GOT with eax emitted" >&5
8000 cat >conftest.c <<\EOF
8002 int bar () { return foo; }
8005 gmp_compile="$cc $cflags $cppflags $flag -fPIC -S conftest.c >&5 2>&1"
8006 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
8007 (eval $gmp_compile) 2>&5
8009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8010 test $ac_status = 0; }; then
8011 if grep "addl.*_GLOBAL_OFFSET_TABLE_.*eax" conftest.s >/dev/null; then
8016 echo "Result: $tmp_got_emitted" >&5
8017 if test "$tmp_got_emitted" = yes; then
8018 echo "Testing gas GOT with eax good" >&5
8019 cat >conftest.awk <<\EOF
8048 for (f = 2; f <= NF; f++)
8050 for (i = 0; i < 20; i++)
8055 for (i = 0; i < 21; i++)
8056 if (got[i] != want[i])
8072 cat >conftest.s <<\EOF
8074 .byte 1, 35, 69, 103, 137, 171, 205, 239
8075 addl $_GLOBAL_OFFSET_TABLE_, %eax
8076 .byte 254, 220, 186, 152, 118, 84, 50, 16
8079 gmp_compile="$cc $cflags $cppflags $flag -fPIC -o conftest.o -c conftest.s >&5 2>&1"
8080 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
8081 (eval $gmp_compile) 2>&5
8083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8084 test $ac_status = 0; }; then
8085 tmp_got_good=`od -b conftest.o | $AWK -f conftest.awk`
8088 echo "Result: $tmp_got_good" >&5
8089 if test "$tmp_got_good" = no; then
8090 gmp_prog_cc_works="no, bad gas GOT with eax"
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_prog_cc_works" >&5
8105 $as_echo "$gmp_prog_cc_works" >&6; }
8106 case $gmp_prog_cc_works in
8108 cflags="$cflags $flag"
8123 CPPFLAGS="$cppflags"
8126 # Could easily have this in config.h too, if desired.
8127 ABI_nodots=`echo $ABI | sed 's/\./_/'`
8129 echo "define_not_for_expansion(\`HAVE_ABI_$ABI_nodots')" >> $gmp_tmpconfigm4p
8133 # GMP_LDFLAGS substitution, selected according to ABI.
8134 # These are needed on libgmp.la and libmp.la, but currently not on
8135 # convenience libraries like tune/libspeed.la or mpz/libmpz.la.
8137 eval GMP_LDFLAGS=\"\$${ccbase}${abi1}_ldflags\"
8138 test -n "$GMP_LDFLAGS" || eval GMP_LDFLAGS=\"\$${ccbase}${abi1}_ldflags\"
8143 # extra_functions, selected according to ABI
8144 eval tmp=\"\$extra_functions$abi1\"
8145 test -n "$tmp" || eval tmp=\"\$extra_functions$abi2\"
8146 extra_functions="$tmp"
8149 # Cycle counter, selected according to ABI.
8151 eval tmp=\"\$SPEED_CYCLECOUNTER_OBJ$abi1\"
8152 test -n "$tmp" || eval tmp=\"\$SPEED_CYCLECOUNTER_OBJ$abi2\"
8153 SPEED_CYCLECOUNTER_OBJ="$tmp"
8154 eval tmp=\"\$cyclecounter_size$abi1\"
8155 test -n "$tmp" || eval tmp=\"\$cyclecounter_size$abi2\"
8156 cyclecounter_size="$tmp"
8158 if test -n "$SPEED_CYCLECOUNTER_OBJ"; then
8160 cat >>confdefs.h <<_ACEOF
8161 #define HAVE_SPEED_CYCLECOUNTER $cyclecounter_size
8168 # Calling conventions checking, selected according to ABI.
8170 eval tmp=\"\$CALLING_CONVENTIONS_OBJS$abi1\"
8171 test -n "$tmp" || eval tmp=\"\$CALLING_CONVENTIONS_OBJS$abi2\"
8172 CALLING_CONVENTIONS_OBJS="$tmp"
8174 if test -n "$CALLING_CONVENTIONS_OBJS"; then
8176 $as_echo "#define HAVE_CALLING_CONVENTIONS 1" >>confdefs.h
8184 # If the user gave an MPN_PATH, use that verbatim, otherwise choose
8185 # according to the ABI and add "generic".
8187 if test -n "$MPN_PATH"; then
8190 eval tmp=\"\$path$abi1\"
8191 test -n "$tmp" || eval tmp=\"\$path$abi2\"
8196 # Long long limb setup for gmp.h.
8197 case $limb_chosen in
8198 longlong) DEFN_LONG_LONG_LIMB="#define _LONG_LONG_LIMB 1" ;;
8199 *) DEFN_LONG_LONG_LIMB="/* #undef _LONG_LONG_LIMB */" ;;
8204 # The C compiler and preprocessor, put into ANSI mode if possible.
8206 ac_cpp='$CPP $CPPFLAGS'
8207 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8208 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8209 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8210 if test -n "$ac_tool_prefix"; then
8211 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
8212 set dummy ${ac_tool_prefix}gcc; ac_word=$2
8213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8214 $as_echo_n "checking for $ac_word... " >&6; }
8215 if test "${ac_cv_prog_CC+set}" = set; then :
8216 $as_echo_n "(cached) " >&6
8218 if test -n "$CC"; then
8219 ac_cv_prog_CC="$CC" # Let the user override the test.
8221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8225 test -z "$as_dir" && as_dir=.
8226 for ac_exec_ext in '' $ac_executable_extensions; do
8227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8228 ac_cv_prog_CC="${ac_tool_prefix}gcc"
8229 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8239 if test -n "$CC"; then
8240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8241 $as_echo "$CC" >&6; }
8243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8244 $as_echo "no" >&6; }
8249 if test -z "$ac_cv_prog_CC"; then
8251 # Extract the first word of "gcc", so it can be a program name with args.
8252 set dummy gcc; ac_word=$2
8253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8254 $as_echo_n "checking for $ac_word... " >&6; }
8255 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
8256 $as_echo_n "(cached) " >&6
8258 if test -n "$ac_ct_CC"; then
8259 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
8261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8265 test -z "$as_dir" && as_dir=.
8266 for ac_exec_ext in '' $ac_executable_extensions; do
8267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8268 ac_cv_prog_ac_ct_CC="gcc"
8269 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8278 ac_ct_CC=$ac_cv_prog_ac_ct_CC
8279 if test -n "$ac_ct_CC"; then
8280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
8281 $as_echo "$ac_ct_CC" >&6; }
8283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8284 $as_echo "no" >&6; }
8287 if test "x$ac_ct_CC" = x; then
8290 case $cross_compiling:$ac_tool_warned in
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8293 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8294 ac_tool_warned=yes ;;
8302 if test -z "$CC"; then
8303 if test -n "$ac_tool_prefix"; then
8304 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
8305 set dummy ${ac_tool_prefix}cc; ac_word=$2
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8307 $as_echo_n "checking for $ac_word... " >&6; }
8308 if test "${ac_cv_prog_CC+set}" = set; then :
8309 $as_echo_n "(cached) " >&6
8311 if test -n "$CC"; then
8312 ac_cv_prog_CC="$CC" # Let the user override the test.
8314 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8318 test -z "$as_dir" && as_dir=.
8319 for ac_exec_ext in '' $ac_executable_extensions; do
8320 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8321 ac_cv_prog_CC="${ac_tool_prefix}cc"
8322 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8332 if test -n "$CC"; then
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8334 $as_echo "$CC" >&6; }
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8337 $as_echo "no" >&6; }
8343 if test -z "$CC"; then
8344 # Extract the first word of "cc", so it can be a program name with args.
8345 set dummy cc; ac_word=$2
8346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8347 $as_echo_n "checking for $ac_word... " >&6; }
8348 if test "${ac_cv_prog_CC+set}" = set; then :
8349 $as_echo_n "(cached) " >&6
8351 if test -n "$CC"; then
8352 ac_cv_prog_CC="$CC" # Let the user override the test.
8355 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8359 test -z "$as_dir" && as_dir=.
8360 for ac_exec_ext in '' $ac_executable_extensions; do
8361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8362 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
8363 ac_prog_rejected=yes
8367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8374 if test $ac_prog_rejected = yes; then
8375 # We found a bogon in the path, so make sure we never use it.
8376 set dummy $ac_cv_prog_CC
8378 if test $# != 0; then
8379 # We chose a different compiler from the bogus one.
8380 # However, it has the same basename, so the bogon will be chosen
8381 # first if we set CC to just the basename; use the full file name.
8383 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
8389 if test -n "$CC"; then
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8391 $as_echo "$CC" >&6; }
8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8394 $as_echo "no" >&6; }
8399 if test -z "$CC"; then
8400 if test -n "$ac_tool_prefix"; then
8401 for ac_prog in cl.exe
8403 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8404 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
8405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8406 $as_echo_n "checking for $ac_word... " >&6; }
8407 if test "${ac_cv_prog_CC+set}" = set; then :
8408 $as_echo_n "(cached) " >&6
8410 if test -n "$CC"; then
8411 ac_cv_prog_CC="$CC" # Let the user override the test.
8413 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8417 test -z "$as_dir" && as_dir=.
8418 for ac_exec_ext in '' $ac_executable_extensions; do
8419 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8420 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
8421 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8431 if test -n "$CC"; then
8432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
8433 $as_echo "$CC" >&6; }
8435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8436 $as_echo "no" >&6; }
8440 test -n "$CC" && break
8443 if test -z "$CC"; then
8445 for ac_prog in cl.exe
8447 # Extract the first word of "$ac_prog", so it can be a program name with args.
8448 set dummy $ac_prog; ac_word=$2
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8450 $as_echo_n "checking for $ac_word... " >&6; }
8451 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
8452 $as_echo_n "(cached) " >&6
8454 if test -n "$ac_ct_CC"; then
8455 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
8457 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8461 test -z "$as_dir" && as_dir=.
8462 for ac_exec_ext in '' $ac_executable_extensions; do
8463 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
8464 ac_cv_prog_ac_ct_CC="$ac_prog"
8465 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8474 ac_ct_CC=$ac_cv_prog_ac_ct_CC
8475 if test -n "$ac_ct_CC"; then
8476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
8477 $as_echo "$ac_ct_CC" >&6; }
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8480 $as_echo "no" >&6; }
8484 test -n "$ac_ct_CC" && break
8487 if test "x$ac_ct_CC" = x; then
8490 case $cross_compiling:$ac_tool_warned in
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
8493 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
8494 ac_tool_warned=yes ;;
8503 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8504 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8505 as_fn_error "no acceptable C compiler found in \$PATH
8506 See \`config.log' for more details." "$LINENO" 5; }
8508 # Provide some information about the compiler.
8509 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
8512 for ac_option in --version -v -V -qversion; do
8513 { { ac_try="$ac_compiler $ac_option >&5"
8515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8516 *) ac_try_echo=$ac_try;;
8518 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8519 $as_echo "$ac_try_echo"; } >&5
8520 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
8522 if test -s conftest.err; then
8524 ... rest of stderr output deleted ...
8525 10q' conftest.err >conftest.er1
8526 cat conftest.er1 >&5
8528 rm -f conftest.er1 conftest.err
8529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8530 test $ac_status = 0; }
8533 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8534 /* end confdefs.h. */
8544 ac_clean_files_save=$ac_clean_files
8545 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
8546 # Try to create an executable without -o first, disregard a.out.
8547 # It will help us diagnose broken compilers, and finding out an intuition
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
8550 $as_echo_n "checking whether the C compiler works... " >&6; }
8551 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
8553 # The possible output files:
8554 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
8557 for ac_file in $ac_files
8560 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
8561 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
8566 if { { ac_try="$ac_link_default"
8568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8569 *) ac_try_echo=$ac_try;;
8571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8572 $as_echo "$ac_try_echo"; } >&5
8573 (eval "$ac_link_default") 2>&5
8575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8576 test $ac_status = 0; }; then :
8577 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
8578 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
8579 # in a Makefile. We should not override ac_cv_exeext if it was cached,
8580 # so that the user can short-circuit this test for compilers unknown to
8582 for ac_file in $ac_files ''
8584 test -f "$ac_file" || continue
8586 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
8589 # We found the default executable, but exeext='' is most
8593 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
8595 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8597 # We set ac_cv_exeext here because the later test for it is not
8598 # safe: cross compilers may not add the suffix if given an `-o'
8599 # argument, so we may need to know it at that point already.
8600 # Even if this section looks crufty: it has the advantage of
8607 test "$ac_cv_exeext" = no && ac_cv_exeext=
8612 if test -z "$ac_file"; then :
8613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8614 $as_echo "no" >&6; }
8615 $as_echo "$as_me: failed program was:" >&5
8616 sed 's/^/| /' conftest.$ac_ext >&5
8618 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8619 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8620 { as_fn_set_status 77
8621 as_fn_error "C compiler cannot create executables
8622 See \`config.log' for more details." "$LINENO" 5; }; }
8624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8625 $as_echo "yes" >&6; }
8627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
8628 $as_echo_n "checking for C compiler default output file name... " >&6; }
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
8630 $as_echo "$ac_file" >&6; }
8631 ac_exeext=$ac_cv_exeext
8633 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
8634 ac_clean_files=$ac_clean_files_save
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
8636 $as_echo_n "checking for suffix of executables... " >&6; }
8637 if { { ac_try="$ac_link"
8639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8640 *) ac_try_echo=$ac_try;;
8642 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8643 $as_echo "$ac_try_echo"; } >&5
8644 (eval "$ac_link") 2>&5
8646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8647 test $ac_status = 0; }; then :
8648 # If both `conftest.exe' and `conftest' are `present' (well, observable)
8649 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
8650 # work properly (i.e., refer to `conftest.exe'), while it won't with
8652 for ac_file in conftest.exe conftest conftest.*; do
8653 test -f "$ac_file" || continue
8655 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
8656 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
8662 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8663 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8664 as_fn_error "cannot compute suffix of executables: cannot compile and link
8665 See \`config.log' for more details." "$LINENO" 5; }
8667 rm -f conftest conftest$ac_cv_exeext
8668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
8669 $as_echo "$ac_cv_exeext" >&6; }
8671 rm -f conftest.$ac_ext
8672 EXEEXT=$ac_cv_exeext
8674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8675 /* end confdefs.h. */
8680 FILE *f = fopen ("conftest.out", "w");
8681 return ferror (f) || fclose (f) != 0;
8687 ac_clean_files="$ac_clean_files conftest.out"
8688 # Check that the compiler produces executables we can run. If not, either
8689 # the compiler is broken, or we cross compile.
8690 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
8691 $as_echo_n "checking whether we are cross compiling... " >&6; }
8692 if test "$cross_compiling" != yes; then
8693 { { ac_try="$ac_link"
8695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8696 *) ac_try_echo=$ac_try;;
8698 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8699 $as_echo "$ac_try_echo"; } >&5
8700 (eval "$ac_link") 2>&5
8702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8703 test $ac_status = 0; }
8704 if { ac_try='./conftest$ac_cv_exeext'
8705 { { case "(($ac_try" in
8706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8707 *) ac_try_echo=$ac_try;;
8709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8710 $as_echo "$ac_try_echo"; } >&5
8711 (eval "$ac_try") 2>&5
8713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8714 test $ac_status = 0; }; }; then
8717 if test "$cross_compiling" = maybe; then
8720 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8721 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8722 as_fn_error "cannot run C compiled programs.
8723 If you meant to cross compile, use \`--host'.
8724 See \`config.log' for more details." "$LINENO" 5; }
8728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
8729 $as_echo "$cross_compiling" >&6; }
8731 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
8732 ac_clean_files=$ac_clean_files_save
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
8734 $as_echo_n "checking for suffix of object files... " >&6; }
8735 if test "${ac_cv_objext+set}" = set; then :
8736 $as_echo_n "(cached) " >&6
8738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8739 /* end confdefs.h. */
8749 rm -f conftest.o conftest.obj
8750 if { { ac_try="$ac_compile"
8752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8753 *) ac_try_echo=$ac_try;;
8755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
8756 $as_echo "$ac_try_echo"; } >&5
8757 (eval "$ac_compile") 2>&5
8759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
8760 test $ac_status = 0; }; then :
8761 for ac_file in conftest.o conftest.obj conftest.*; do
8762 test -f "$ac_file" || continue;
8764 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
8765 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
8770 $as_echo "$as_me: failed program was:" >&5
8771 sed 's/^/| /' conftest.$ac_ext >&5
8773 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
8774 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
8775 as_fn_error "cannot compute suffix of object files: cannot compile
8776 See \`config.log' for more details." "$LINENO" 5; }
8778 rm -f conftest.$ac_cv_objext conftest.$ac_ext
8780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
8781 $as_echo "$ac_cv_objext" >&6; }
8782 OBJEXT=$ac_cv_objext
8784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
8785 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
8786 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
8787 $as_echo_n "(cached) " >&6
8789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8790 /* end confdefs.h. */
8803 if ac_fn_c_try_compile "$LINENO"; then :
8808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8809 ac_cv_c_compiler_gnu=$ac_compiler_gnu
8812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
8813 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
8814 if test $ac_compiler_gnu = yes; then
8819 ac_test_CFLAGS=${CFLAGS+set}
8820 ac_save_CFLAGS=$CFLAGS
8821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
8822 $as_echo_n "checking whether $CC accepts -g... " >&6; }
8823 if test "${ac_cv_prog_cc_g+set}" = set; then :
8824 $as_echo_n "(cached) " >&6
8826 ac_save_c_werror_flag=$ac_c_werror_flag
8827 ac_c_werror_flag=yes
8830 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8831 /* end confdefs.h. */
8841 if ac_fn_c_try_compile "$LINENO"; then :
8845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8846 /* end confdefs.h. */
8856 if ac_fn_c_try_compile "$LINENO"; then :
8859 ac_c_werror_flag=$ac_save_c_werror_flag
8861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8862 /* end confdefs.h. */
8872 if ac_fn_c_try_compile "$LINENO"; then :
8875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8880 ac_c_werror_flag=$ac_save_c_werror_flag
8882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
8883 $as_echo "$ac_cv_prog_cc_g" >&6; }
8884 if test "$ac_test_CFLAGS" = set; then
8885 CFLAGS=$ac_save_CFLAGS
8886 elif test $ac_cv_prog_cc_g = yes; then
8887 if test "$GCC" = yes; then
8893 if test "$GCC" = yes; then
8899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
8900 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
8901 if test "${ac_cv_prog_cc_c89+set}" = set; then :
8902 $as_echo_n "(cached) " >&6
8904 ac_cv_prog_cc_c89=no
8906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8907 /* end confdefs.h. */
8910 #include <sys/types.h>
8911 #include <sys/stat.h>
8912 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
8913 struct buf { int x; };
8914 FILE * (*rcsopen) (struct buf *, struct stat *, int);
8915 static char *e (p, i)
8921 static char *f (char * (*g) (char **, int), char **p, ...)
8926 s = g (p, va_arg (v,int));
8931 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
8932 function prototypes and stuff, but not '\xHH' hex character constants.
8933 These don't provoke an error unfortunately, instead are silently treated
8934 as 'x'. The following induces an error, until -std is added to get
8935 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
8936 array size at least. It's necessary to write '\x00'==0 to get something
8937 that's true only with -std. */
8938 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
8940 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
8941 inside strings and character constants. */
8943 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
8945 int test (int i, double x);
8946 struct s1 {int (*f) (int a);};
8947 struct s2 {int (*f) (double a);};
8948 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
8954 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
8959 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
8960 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
8962 CC="$ac_save_CC $ac_arg"
8963 if ac_fn_c_try_compile "$LINENO"; then :
8964 ac_cv_prog_cc_c89=$ac_arg
8966 rm -f core conftest.err conftest.$ac_objext
8967 test "x$ac_cv_prog_cc_c89" != "xno" && break
8969 rm -f conftest.$ac_ext
8974 case "x$ac_cv_prog_cc_c89" in
8976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
8977 $as_echo "none needed" >&6; } ;;
8979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
8980 $as_echo "unsupported" >&6; } ;;
8982 CC="$CC $ac_cv_prog_cc_c89"
8983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
8984 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
8986 if test "x$ac_cv_prog_cc_c89" != xno; then :
8991 ac_cpp='$CPP $CPPFLAGS'
8992 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8993 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8994 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8996 case $ac_cv_prog_cc_stdc in #(
8998 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #(
9000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5
9001 $as_echo_n "checking for $CC option to accept ISO C99... " >&6; }
9002 if test "${ac_cv_prog_cc_c99+set}" = set; then :
9003 $as_echo_n "(cached) " >&6
9005 ac_cv_prog_cc_c99=no
9007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9008 /* end confdefs.h. */
9010 #include <stdbool.h>
9015 // Check varargs macros. These examples are taken from C99 6.10.3.5.
9016 #define debug(...) fprintf (stderr, __VA_ARGS__)
9017 #define showlist(...) puts (#__VA_ARGS__)
9018 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
9020 test_varargs_macros (void)
9025 debug ("X = %d\n", x);
9026 showlist (The first, second, and third items.);
9027 report (x>y, "x is %d but y is %d", x, y);
9030 // Check long long types.
9031 #define BIG64 18446744073709551615ull
9032 #define BIG32 4294967295ul
9033 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
9035 your preprocessor is broken;
9039 your preprocessor is broken;
9041 static long long int bignum = -9223372036854775807LL;
9042 static unsigned long long int ubignum = BIG64;
9044 struct incomplete_array
9052 const wchar_t *name;
9056 typedef const char *ccp;
9059 test_restrict (ccp restrict text)
9061 // See if C++-style comments work.
9062 // Iterate through items via the restricted pointer.
9063 // Also check for declarations in for loops.
9064 for (unsigned int i = 0; *(text+i) != '\0'; ++i)
9069 // Check varargs and va_copy.
9071 test_varargs (const char *format, ...)
9074 va_start (args, format);
9076 va_copy (args_copy, args);
9087 str = va_arg (args_copy, const char *);
9090 number = va_arg (args_copy, int);
9093 fnumber = va_arg (args_copy, double);
9108 _Bool success = false;
9111 if (test_restrict ("String literal") == 0)
9113 char *restrict newvar = "Another string";
9116 test_varargs ("s, d' f .", "string", 65, 34.234);
9117 test_varargs_macros ();
9119 // Check flexible array members.
9120 struct incomplete_array *ia =
9121 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
9123 for (int i = 0; i < ia->datasize; ++i)
9124 ia->data[i] = i * 1.234;
9126 // Check named initializers.
9127 struct named_init ni = {
9129 .name = L"Test wide string",
9130 .average = 543.34343,
9135 int dynamic_array[ni.number];
9136 dynamic_array[ni.number - 1] = 543;
9138 // work around unused variable warnings
9139 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x'
9140 || dynamic_array[ni.number - 1] != 543);
9146 for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99
9148 CC="$ac_save_CC $ac_arg"
9149 if ac_fn_c_try_compile "$LINENO"; then :
9150 ac_cv_prog_cc_c99=$ac_arg
9152 rm -f core conftest.err conftest.$ac_objext
9153 test "x$ac_cv_prog_cc_c99" != "xno" && break
9155 rm -f conftest.$ac_ext
9160 case "x$ac_cv_prog_cc_c99" in
9162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
9163 $as_echo "none needed" >&6; } ;;
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
9166 $as_echo "unsupported" >&6; } ;;
9168 CC="$CC $ac_cv_prog_cc_c99"
9169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
9170 $as_echo "$ac_cv_prog_cc_c99" >&6; } ;;
9172 if test "x$ac_cv_prog_cc_c99" != xno; then :
9173 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
9176 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
9177 if test "${ac_cv_prog_cc_c89+set}" = set; then :
9178 $as_echo_n "(cached) " >&6
9180 ac_cv_prog_cc_c89=no
9182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9183 /* end confdefs.h. */
9186 #include <sys/types.h>
9187 #include <sys/stat.h>
9188 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
9189 struct buf { int x; };
9190 FILE * (*rcsopen) (struct buf *, struct stat *, int);
9191 static char *e (p, i)
9197 static char *f (char * (*g) (char **, int), char **p, ...)
9202 s = g (p, va_arg (v,int));
9207 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
9208 function prototypes and stuff, but not '\xHH' hex character constants.
9209 These don't provoke an error unfortunately, instead are silently treated
9210 as 'x'. The following induces an error, until -std is added to get
9211 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
9212 array size at least. It's necessary to write '\x00'==0 to get something
9213 that's true only with -std. */
9214 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
9216 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
9217 inside strings and character constants. */
9219 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
9221 int test (int i, double x);
9222 struct s1 {int (*f) (int a);};
9223 struct s2 {int (*f) (double a);};
9224 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
9230 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
9235 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
9236 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
9238 CC="$ac_save_CC $ac_arg"
9239 if ac_fn_c_try_compile "$LINENO"; then :
9240 ac_cv_prog_cc_c89=$ac_arg
9242 rm -f core conftest.err conftest.$ac_objext
9243 test "x$ac_cv_prog_cc_c89" != "xno" && break
9245 rm -f conftest.$ac_ext
9250 case "x$ac_cv_prog_cc_c89" in
9252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
9253 $as_echo "none needed" >&6; } ;;
9255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
9256 $as_echo "unsupported" >&6; } ;;
9258 CC="$CC $ac_cv_prog_cc_c89"
9259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
9260 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
9262 if test "x$ac_cv_prog_cc_c89" != xno; then :
9263 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
9265 ac_cv_prog_cc_stdc=no
9271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5
9272 $as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; }
9273 if test "${ac_cv_prog_cc_stdc+set}" = set; then :
9274 $as_echo_n "(cached) " >&6
9277 case $ac_cv_prog_cc_stdc in #(
9279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
9280 $as_echo "unsupported" >&6; } ;; #(
9282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
9283 $as_echo "none needed" >&6; } ;; #(
9285 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5
9286 $as_echo "$ac_cv_prog_cc_stdc" >&6; } ;;
9290 ac_cpp='$CPP $CPPFLAGS'
9291 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9292 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9293 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
9295 $as_echo_n "checking how to run the C preprocessor... " >&6; }
9296 # On Suns, sometimes $CPP names a directory.
9297 if test -n "$CPP" && test -d "$CPP"; then
9300 if test -z "$CPP"; then
9301 if test "${ac_cv_prog_CPP+set}" = set; then :
9302 $as_echo_n "(cached) " >&6
9304 # Double quotes because CPP needs to be expanded
9305 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
9308 for ac_c_preproc_warn_flag in '' yes
9310 # Use a header file that comes with gcc, so configuring glibc
9311 # with a fresh cross-compiler works.
9312 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9313 # <limits.h> exists even on freestanding compilers.
9314 # On the NeXT, cc -E runs the code through the compiler's parser,
9315 # not just through cpp. "Syntax error" is here to catch this case.
9316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9317 /* end confdefs.h. */
9319 # include <limits.h>
9321 # include <assert.h>
9325 if ac_fn_c_try_cpp "$LINENO"; then :
9328 # Broken: fails on valid input.
9331 rm -f conftest.err conftest.$ac_ext
9333 # OK, works on sane cases. Now check whether nonexistent headers
9334 # can be detected and how.
9335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9336 /* end confdefs.h. */
9337 #include <ac_nonexistent.h>
9339 if ac_fn_c_try_cpp "$LINENO"; then :
9340 # Broken: success on invalid input.
9343 # Passes both tests.
9347 rm -f conftest.err conftest.$ac_ext
9350 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9351 rm -f conftest.err conftest.$ac_ext
9352 if $ac_preproc_ok; then :
9364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
9365 $as_echo "$CPP" >&6; }
9367 for ac_c_preproc_warn_flag in '' yes
9369 # Use a header file that comes with gcc, so configuring glibc
9370 # with a fresh cross-compiler works.
9371 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9372 # <limits.h> exists even on freestanding compilers.
9373 # On the NeXT, cc -E runs the code through the compiler's parser,
9374 # not just through cpp. "Syntax error" is here to catch this case.
9375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9376 /* end confdefs.h. */
9378 # include <limits.h>
9380 # include <assert.h>
9384 if ac_fn_c_try_cpp "$LINENO"; then :
9387 # Broken: fails on valid input.
9390 rm -f conftest.err conftest.$ac_ext
9392 # OK, works on sane cases. Now check whether nonexistent headers
9393 # can be detected and how.
9394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9395 /* end confdefs.h. */
9396 #include <ac_nonexistent.h>
9398 if ac_fn_c_try_cpp "$LINENO"; then :
9399 # Broken: success on invalid input.
9402 # Passes both tests.
9406 rm -f conftest.err conftest.$ac_ext
9409 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
9410 rm -f conftest.err conftest.$ac_ext
9411 if $ac_preproc_ok; then :
9414 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
9415 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
9416 as_fn_error "C preprocessor \"$CPP\" fails sanity check
9417 See \`config.log' for more details." "$LINENO" 5; }
9421 ac_cpp='$CPP $CPPFLAGS'
9422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9428 case $ac_cv_prog_cc_stdc in
9432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9433 /* end confdefs.h. */
9434 #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
9435 #define GMP_NAIL_BITS $GMP_NAIL_BITS
9436 #define GMP_LIMB_BITS 123
9437 $DEFN_LONG_LONG_LIMB
9438 #include "$srcdir/gmp-h.in"
9440 #if ! __GMP_HAVE_PROTOTYPES
9452 if ac_fn_c_try_compile "$LINENO"; then :
9455 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gmp.h doesnt recognise compiler as ANSI, prototypes and \"const\" will be unavailable" >&5
9456 $as_echo "$as_me: WARNING: gmp.h doesnt recognise compiler as ANSI, prototypes and \"const\" will be unavailable" >&2;}
9458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9464 # The C compiler on the build system, and associated tests.
9466 if test -n "$CC_FOR_BUILD"; then
9467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system compiler $CC_FOR_BUILD" >&5
9468 $as_echo_n "checking build system compiler $CC_FOR_BUILD... " >&6; }
9469 # remove anything that might look like compiler output to our "||" expression
9470 rm -f conftest* a.out b.out a.exe a_out.exe
9471 cat >conftest.c <<EOF
9478 gmp_compile="$CC_FOR_BUILD conftest.c"
9479 cc_for_build_works=no
9480 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
9481 (eval $gmp_compile) 2>&5
9483 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9484 test $ac_status = 0; }; then
9485 if (./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest) >&5 2>&1; then
9486 cc_for_build_works=yes
9489 rm -f conftest* a.out b.out a.exe a_out.exe
9490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_for_build_works" >&5
9491 $as_echo "$cc_for_build_works" >&6; }
9492 if test "$cc_for_build_works" = yes; then
9495 as_fn_error "Specified CC_FOR_BUILD doesn't seem to work" "$LINENO" 5
9498 elif test -n "$HOST_CC"; then
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system compiler $HOST_CC" >&5
9500 $as_echo_n "checking build system compiler $HOST_CC... " >&6; }
9501 # remove anything that might look like compiler output to our "||" expression
9502 rm -f conftest* a.out b.out a.exe a_out.exe
9503 cat >conftest.c <<EOF
9510 gmp_compile="$HOST_CC conftest.c"
9511 cc_for_build_works=no
9512 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
9513 (eval $gmp_compile) 2>&5
9515 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9516 test $ac_status = 0; }; then
9517 if (./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest) >&5 2>&1; then
9518 cc_for_build_works=yes
9521 rm -f conftest* a.out b.out a.exe a_out.exe
9522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_for_build_works" >&5
9523 $as_echo "$cc_for_build_works" >&6; }
9524 if test "$cc_for_build_works" = yes; then
9525 CC_FOR_BUILD=$HOST_CC
9527 as_fn_error "Specified HOST_CC doesn't seem to work" "$LINENO" 5
9531 for i in "$CC" "$CC $CFLAGS $CPPFLAGS" cc gcc c89 c99; do
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system compiler $i" >&5
9533 $as_echo_n "checking build system compiler $i... " >&6; }
9534 # remove anything that might look like compiler output to our "||" expression
9535 rm -f conftest* a.out b.out a.exe a_out.exe
9536 cat >conftest.c <<EOF
9543 gmp_compile="$i conftest.c"
9544 cc_for_build_works=no
9545 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
9546 (eval $gmp_compile) 2>&5
9548 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9549 test $ac_status = 0; }; then
9550 if (./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest) >&5 2>&1; then
9551 cc_for_build_works=yes
9554 rm -f conftest* a.out b.out a.exe a_out.exe
9555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_for_build_works" >&5
9556 $as_echo "$cc_for_build_works" >&6; }
9557 if test "$cc_for_build_works" = yes; then
9565 if test -z "$CC_FOR_BUILD"; then
9566 as_fn_error "Cannot find a build system compiler" "$LINENO" 5
9574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system preprocessor" >&5
9575 $as_echo_n "checking for build system preprocessor... " >&6; }
9576 if test -z "$CPP_FOR_BUILD"; then
9577 if test "${gmp_cv_prog_cpp_for_build+set}" = set; then :
9578 $as_echo_n "(cached) " >&6
9580 cat >conftest.c <<EOF
9583 for i in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"; do
9584 gmp_compile="$i conftest.c"
9585 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
9586 (eval $gmp_compile) 2>&5
9588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9589 test $ac_status = 0; } >&5 2>&1; then
9590 gmp_cv_prog_cpp_for_build=$i
9594 rm -f conftest* a.out b.out a.exe a_out.exe
9595 if test -z "$gmp_cv_prog_cpp_for_build"; then
9596 as_fn_error "Cannot find build system C preprocessor." "$LINENO" 5
9601 CPP_FOR_BUILD=$gmp_cv_prog_cpp_for_build
9603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP_FOR_BUILD" >&5
9604 $as_echo "$CPP_FOR_BUILD" >&6; }
9610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5
9611 $as_echo_n "checking for build system executable suffix... " >&6; }
9612 if test "${gmp_cv_prog_exeext_for_build+set}" = set; then :
9613 $as_echo_n "(cached) " >&6
9615 cat >conftest.c <<EOF
9622 for i in .exe ,ff8 ""; do
9623 gmp_compile="$CC_FOR_BUILD conftest.c -o conftest$i"
9624 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
9625 (eval $gmp_compile) 2>&5
9627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9628 test $ac_status = 0; }; then
9629 if (./conftest) 2>&5; then
9630 gmp_cv_prog_exeext_for_build=$i
9636 if test "${gmp_cv_prog_exeext_for_build+set}" != set; then
9637 as_fn_error "Cannot determine executable suffix" "$LINENO" 5
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_prog_exeext_for_build" >&5
9642 $as_echo "$gmp_cv_prog_exeext_for_build" >&6; }
9643 EXEEXT_FOR_BUILD=$gmp_cv_prog_exeext_for_build
9647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build system compiler is ANSI" >&5
9648 $as_echo_n "checking whether build system compiler is ANSI... " >&6; }
9649 if test "${gmp_cv_c_for_build_ansi+set}" = set; then :
9650 $as_echo_n "(cached) " >&6
9652 cat >conftest.c <<EOF
9654 main (int argc, char **argv)
9659 gmp_compile="$CC_FOR_BUILD conftest.c"
9660 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
9661 (eval $gmp_compile) 2>&5
9663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9664 test $ac_status = 0; }; then
9665 gmp_cv_c_for_build_ansi=yes
9667 gmp_cv_c_for_build_ansi=no
9669 rm -f conftest* a.out b.out a.exe a_out.exe
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_for_build_ansi" >&5
9673 $as_echo "$gmp_cv_c_for_build_ansi" >&6; }
9674 if test "$gmp_cv_c_for_build_ansi" = yes; then
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system compiler math library" >&5
9683 $as_echo_n "checking for build system compiler math library... " >&6; }
9684 if test "${gmp_cv_check_libm_for_build+set}" = set; then :
9685 $as_echo_n "(cached) " >&6
9687 cat >conftest.c <<EOF
9700 gmp_compile="$CC_FOR_BUILD conftest.c -lm"
9701 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
9702 (eval $gmp_compile) 2>&5
9704 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9705 test $ac_status = 0; }; then
9706 gmp_cv_check_libm_for_build=-lm
9708 gmp_cv_check_libm_for_build=no
9710 rm -f conftest* a.out b.out a.exe a_out.exe
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_check_libm_for_build" >&5
9714 $as_echo "$gmp_cv_check_libm_for_build" >&6; }
9715 case $gmp_cv_check_libm_for_build in
9716 yes) LIBM_FOR_BUILD=-lm
9718 no) LIBM_FOR_BUILD= ;;
9719 *) LIBM_FOR_BUILD=$gmp_cv_check_libm_for_build ;;
9724 # How to assemble, used with CFLAGS etc, see mpn/Makeasm.am.
9725 # Using the compiler is a lot easier than figuring out how to invoke the
9726 # assembler directly.
9728 test -n "$CCAS" || CCAS="$CC -c"
9732 # The C++ compiler, if desired.
9734 if test $enable_cxx != no; then
9735 test_CXXFLAGS=${CXXFLAGS+set}
9737 ac_cpp='$CXXCPP $CPPFLAGS'
9738 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9739 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9740 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
9741 if test -z "$CXX"; then
9742 if test -n "$CCC"; then
9745 if test -n "$ac_tool_prefix"; then
9746 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
9748 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
9749 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
9750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9751 $as_echo_n "checking for $ac_word... " >&6; }
9752 if test "${ac_cv_prog_CXX+set}" = set; then :
9753 $as_echo_n "(cached) " >&6
9755 if test -n "$CXX"; then
9756 ac_cv_prog_CXX="$CXX" # Let the user override the test.
9758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9762 test -z "$as_dir" && as_dir=.
9763 for ac_exec_ext in '' $ac_executable_extensions; do
9764 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9765 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
9766 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9776 if test -n "$CXX"; then
9777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
9778 $as_echo "$CXX" >&6; }
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9781 $as_echo "no" >&6; }
9785 test -n "$CXX" && break
9788 if test -z "$CXX"; then
9790 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
9792 # Extract the first word of "$ac_prog", so it can be a program name with args.
9793 set dummy $ac_prog; ac_word=$2
9794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
9795 $as_echo_n "checking for $ac_word... " >&6; }
9796 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
9797 $as_echo_n "(cached) " >&6
9799 if test -n "$ac_ct_CXX"; then
9800 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
9802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9806 test -z "$as_dir" && as_dir=.
9807 for ac_exec_ext in '' $ac_executable_extensions; do
9808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9809 ac_cv_prog_ac_ct_CXX="$ac_prog"
9810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
9819 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
9820 if test -n "$ac_ct_CXX"; then
9821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
9822 $as_echo "$ac_ct_CXX" >&6; }
9824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9825 $as_echo "no" >&6; }
9829 test -n "$ac_ct_CXX" && break
9832 if test "x$ac_ct_CXX" = x; then
9835 case $cross_compiling:$ac_tool_warned in
9837 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
9838 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
9839 ac_tool_warned=yes ;;
9847 # Provide some information about the compiler.
9848 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
9851 for ac_option in --version -v -V -qversion; do
9852 { { ac_try="$ac_compiler $ac_option >&5"
9854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9855 *) ac_try_echo=$ac_try;;
9857 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
9858 $as_echo "$ac_try_echo"; } >&5
9859 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
9861 if test -s conftest.err; then
9863 ... rest of stderr output deleted ...
9864 10q' conftest.err >conftest.er1
9865 cat conftest.er1 >&5
9867 rm -f conftest.er1 conftest.err
9868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9869 test $ac_status = 0; }
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
9873 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
9874 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
9875 $as_echo_n "(cached) " >&6
9877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9878 /* end confdefs.h. */
9891 if ac_fn_cxx_try_compile "$LINENO"; then :
9896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9897 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
9900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
9901 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
9902 if test $ac_compiler_gnu = yes; then
9907 ac_test_CXXFLAGS=${CXXFLAGS+set}
9908 ac_save_CXXFLAGS=$CXXFLAGS
9909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
9910 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
9911 if test "${ac_cv_prog_cxx_g+set}" = set; then :
9912 $as_echo_n "(cached) " >&6
9914 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
9915 ac_cxx_werror_flag=yes
9918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9919 /* end confdefs.h. */
9929 if ac_fn_cxx_try_compile "$LINENO"; then :
9930 ac_cv_prog_cxx_g=yes
9933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9934 /* end confdefs.h. */
9944 if ac_fn_cxx_try_compile "$LINENO"; then :
9947 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9950 /* end confdefs.h. */
9960 if ac_fn_cxx_try_compile "$LINENO"; then :
9961 ac_cv_prog_cxx_g=yes
9963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9967 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9968 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
9970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
9971 $as_echo "$ac_cv_prog_cxx_g" >&6; }
9972 if test "$ac_test_CXXFLAGS" = set; then
9973 CXXFLAGS=$ac_save_CXXFLAGS
9974 elif test $ac_cv_prog_cxx_g = yes; then
9975 if test "$GXX" = yes; then
9981 if test "$GXX" = yes; then
9988 ac_cpp='$CPP $CPPFLAGS'
9989 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9990 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9991 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9994 echo "CXXFLAGS chosen by autoconf: $CXXFLAGS" >&5
9995 cxxflags_ac_prog_cxx=$CXXFLAGS
9996 cxxflags_list=ac_prog_cxx
9998 # If the user didn't specify $CXXFLAGS, then try $CFLAGS, with -g removed
9999 # if AC_PROG_CXX thinks that doesn't work. $CFLAGS stands a good chance
10000 # of working, eg. on a GNU system where CC=gcc and CXX=g++.
10002 if test "$test_CXXFLAGS" != set; then
10003 cxxflags_cflags=$CFLAGS
10004 cxxflags_list="cflags $cxxflags_list"
10005 if test "$ac_prog_cxx_g" = no; then
10006 cxxflags_cflags=`echo "$cxxflags_cflags" | sed -e 's/ -g //' -e 's/^-g //' -e 's/ -g$//'`
10010 # See if the C++ compiler works. If the user specified CXXFLAGS then all
10011 # we're doing is checking whether AC_PROG_CXX succeeded, since it doesn't
10012 # give a fatal error, just leaves CXX set to a default g++. If on the
10013 # other hand the user didn't specify CXXFLAGS then we get to try here our
10014 # $cxxflags_list alternatives.
10016 # Automake includes $CPPFLAGS in a C++ compile, so we do the same here.
10018 for cxxflags_choice in $cxxflags_list; do
10019 eval CXXFLAGS=\"\$cxxflags_$cxxflags_choice\"
10020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking C++ compiler $CXX $CPPFLAGS $CXXFLAGS" >&5
10021 $as_echo_n "checking C++ compiler $CXX $CPPFLAGS $CXXFLAGS... " >&6; }
10022 gmp_prog_cxx_works=yes
10024 # start with a plain "main()", then go on to further checks
10025 if test "$gmp_prog_cxx_works" = yes; then
10026 # remove anything that might look like compiler output to our "||" expression
10027 rm -f conftest* a.out b.out a.exe a_out.exe
10028 cat >conftest.cc <<EOF
10030 int main (void) { return 0; }
10032 echo "Test compile: " >&5
10033 gmp_cxxcompile="$CXX $CPPFLAGS $CXXFLAGS conftest.cc >&5"
10034 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_cxxcompile\""; } >&5
10035 (eval $gmp_cxxcompile) 2>&5
10037 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10038 test $ac_status = 0; }; then
10039 if test "$cross_compiling" = no; then
10040 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
10041 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
10042 (eval $ac_try) 2>&5
10044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10045 test $ac_status = 0; }; }; then :;
10047 gmp_prog_cxx_works="no, program does not run"
10051 gmp_prog_cxx_works="no"
10053 case $gmp_prog_cxx_works in
10055 echo "failed program was:" >&5
10056 cat conftest.cc >&5
10059 rm -f conftest* a.out b.out a.exe a_out.exe
10063 if test "$gmp_prog_cxx_works" = yes; then
10064 # remove anything that might look like compiler output to our "||" expression
10065 rm -f conftest* a.out b.out a.exe a_out.exe
10066 cat >conftest.cc <<EOF
10068 using namespace foo;
10070 int main (void) { return 0; }
10072 echo "Test compile: namespace" >&5
10073 gmp_cxxcompile="$CXX $CPPFLAGS $CXXFLAGS conftest.cc >&5"
10074 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_cxxcompile\""; } >&5
10075 (eval $gmp_cxxcompile) 2>&5
10077 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10078 test $ac_status = 0; }; then
10079 if test "$cross_compiling" = no; then
10080 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
10081 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
10082 (eval $ac_try) 2>&5
10084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10085 test $ac_status = 0; }; }; then :;
10087 gmp_prog_cxx_works="no, namespace, program does not run"
10091 gmp_prog_cxx_works="no, namespace"
10093 case $gmp_prog_cxx_works in
10095 echo "failed program was:" >&5
10096 cat conftest.cc >&5
10099 rm -f conftest* a.out b.out a.exe a_out.exe
10103 # GMP requires the standard C++ iostream classes
10104 if test "$gmp_prog_cxx_works" = yes; then
10105 # remove anything that might look like compiler output to our "||" expression
10106 rm -f conftest* a.out b.out a.exe a_out.exe
10107 cat >conftest.cc <<EOF
10108 /* This test rejects g++ 2.7.2 which doesn't have <iostream>, only a
10109 pre-standard iostream.h. */
10110 #include <iostream>
10112 /* This test rejects OSF 5.1 Compaq C++ in its default pre-standard iostream
10113 mode, since that mode puts cout in the global namespace, not "std". */
10114 void someoutput (void) { std::cout << 123; }
10116 int main (void) { return 0; }
10118 echo "Test compile: std iostream" >&5
10119 gmp_cxxcompile="$CXX $CPPFLAGS $CXXFLAGS conftest.cc >&5"
10120 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_cxxcompile\""; } >&5
10121 (eval $gmp_cxxcompile) 2>&5
10123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10124 test $ac_status = 0; }; then
10125 if test "$cross_compiling" = no; then
10126 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
10127 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
10128 (eval $ac_try) 2>&5
10130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10131 test $ac_status = 0; }; }; then :;
10133 gmp_prog_cxx_works="no, std iostream, program does not run"
10137 gmp_prog_cxx_works="no, std iostream"
10139 case $gmp_prog_cxx_works in
10141 echo "failed program was:" >&5
10142 cat conftest.cc >&5
10145 rm -f conftest* a.out b.out a.exe a_out.exe
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_prog_cxx_works" >&5
10150 $as_echo "$gmp_prog_cxx_works" >&6; }
10151 case $gmp_prog_cxx_works in
10163 # If --enable-cxx=yes but a C++ compiler can't be found, then abort.
10164 if test $want_cxx = no && test $enable_cxx = yes; then
10165 as_fn_error "C++ compiler not available, see config.log for details" "$LINENO" 5
10169 if test $want_cxx = yes; then
10178 # FIXME: We're not interested in CXXCPP for ourselves, but if we don't do it
10179 # here then AC_PROG_LIBTOOL will AC_REQUIRE it (via _LT_AC_TAGCONFIG) and
10180 # hence execute it unconditionally, and that will fail if there's no C++
10181 # compiler (and no generic /lib/cpp).
10183 if test $want_cxx = yes; then
10185 ac_cpp='$CXXCPP $CPPFLAGS'
10186 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10187 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10188 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
10189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
10190 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
10191 if test -z "$CXXCPP"; then
10192 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
10193 $as_echo_n "(cached) " >&6
10195 # Double quotes because CXXCPP needs to be expanded
10196 for CXXCPP in "$CXX -E" "/lib/cpp"
10198 ac_preproc_ok=false
10199 for ac_cxx_preproc_warn_flag in '' yes
10201 # Use a header file that comes with gcc, so configuring glibc
10202 # with a fresh cross-compiler works.
10203 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10204 # <limits.h> exists even on freestanding compilers.
10205 # On the NeXT, cc -E runs the code through the compiler's parser,
10206 # not just through cpp. "Syntax error" is here to catch this case.
10207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10208 /* end confdefs.h. */
10210 # include <limits.h>
10212 # include <assert.h>
10216 if ac_fn_cxx_try_cpp "$LINENO"; then :
10219 # Broken: fails on valid input.
10222 rm -f conftest.err conftest.$ac_ext
10224 # OK, works on sane cases. Now check whether nonexistent headers
10225 # can be detected and how.
10226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10227 /* end confdefs.h. */
10228 #include <ac_nonexistent.h>
10230 if ac_fn_cxx_try_cpp "$LINENO"; then :
10231 # Broken: success on invalid input.
10234 # Passes both tests.
10238 rm -f conftest.err conftest.$ac_ext
10241 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10242 rm -f conftest.err conftest.$ac_ext
10243 if $ac_preproc_ok; then :
10248 ac_cv_prog_CXXCPP=$CXXCPP
10251 CXXCPP=$ac_cv_prog_CXXCPP
10253 ac_cv_prog_CXXCPP=$CXXCPP
10255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
10256 $as_echo "$CXXCPP" >&6; }
10257 ac_preproc_ok=false
10258 for ac_cxx_preproc_warn_flag in '' yes
10260 # Use a header file that comes with gcc, so configuring glibc
10261 # with a fresh cross-compiler works.
10262 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10263 # <limits.h> exists even on freestanding compilers.
10264 # On the NeXT, cc -E runs the code through the compiler's parser,
10265 # not just through cpp. "Syntax error" is here to catch this case.
10266 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10267 /* end confdefs.h. */
10269 # include <limits.h>
10271 # include <assert.h>
10275 if ac_fn_cxx_try_cpp "$LINENO"; then :
10278 # Broken: fails on valid input.
10281 rm -f conftest.err conftest.$ac_ext
10283 # OK, works on sane cases. Now check whether nonexistent headers
10284 # can be detected and how.
10285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10286 /* end confdefs.h. */
10287 #include <ac_nonexistent.h>
10289 if ac_fn_cxx_try_cpp "$LINENO"; then :
10290 # Broken: success on invalid input.
10293 # Passes both tests.
10297 rm -f conftest.err conftest.$ac_ext
10300 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
10301 rm -f conftest.err conftest.$ac_ext
10302 if $ac_preproc_ok; then :
10305 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10306 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10307 as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check
10308 See \`config.log' for more details." "$LINENO" 5; }
10312 ac_cpp='$CPP $CPPFLAGS'
10313 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10314 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10315 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10320 # Path setups for Cray, according to IEEE or CFP. These must come after
10321 # deciding the compiler.
10324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
10325 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
10326 if test "${ac_cv_path_GREP+set}" = set; then :
10327 $as_echo_n "(cached) " >&6
10329 if test -z "$GREP"; then
10330 ac_path_GREP_found=false
10331 # Loop through the user's path and test for each of PROGNAME-LIST
10332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10333 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10336 test -z "$as_dir" && as_dir=.
10337 for ac_prog in grep ggrep; do
10338 for ac_exec_ext in '' $ac_executable_extensions; do
10339 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
10340 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
10341 # Check for GNU ac_path_GREP and select it if it is found.
10342 # Check for GNU $ac_path_GREP
10343 case `"$ac_path_GREP" --version 2>&1` in
10345 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
10348 $as_echo_n 0123456789 >"conftest.in"
10351 cat "conftest.in" "conftest.in" >"conftest.tmp"
10352 mv "conftest.tmp" "conftest.in"
10353 cp "conftest.in" "conftest.nl"
10354 $as_echo 'GREP' >> "conftest.nl"
10355 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
10356 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10357 as_fn_arith $ac_count + 1 && ac_count=$as_val
10358 if test $ac_count -gt ${ac_path_GREP_max-0}; then
10359 # Best one so far, save it but keep looking for a better one
10360 ac_cv_path_GREP="$ac_path_GREP"
10361 ac_path_GREP_max=$ac_count
10363 # 10*(2^10) chars as input seems more than enough
10364 test $ac_count -gt 10 && break
10366 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10369 $ac_path_GREP_found && break 3
10374 if test -z "$ac_cv_path_GREP"; then
10375 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10378 ac_cv_path_GREP=$GREP
10382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
10383 $as_echo "$ac_cv_path_GREP" >&6; }
10384 GREP="$ac_cv_path_GREP"
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
10388 $as_echo_n "checking for egrep... " >&6; }
10389 if test "${ac_cv_path_EGREP+set}" = set; then :
10390 $as_echo_n "(cached) " >&6
10392 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
10393 then ac_cv_path_EGREP="$GREP -E"
10395 if test -z "$EGREP"; then
10396 ac_path_EGREP_found=false
10397 # Loop through the user's path and test for each of PROGNAME-LIST
10398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10399 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
10402 test -z "$as_dir" && as_dir=.
10403 for ac_prog in egrep; do
10404 for ac_exec_ext in '' $ac_executable_extensions; do
10405 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
10406 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
10407 # Check for GNU ac_path_EGREP and select it if it is found.
10408 # Check for GNU $ac_path_EGREP
10409 case `"$ac_path_EGREP" --version 2>&1` in
10411 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
10414 $as_echo_n 0123456789 >"conftest.in"
10417 cat "conftest.in" "conftest.in" >"conftest.tmp"
10418 mv "conftest.tmp" "conftest.in"
10419 cp "conftest.in" "conftest.nl"
10420 $as_echo 'EGREP' >> "conftest.nl"
10421 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
10422 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
10423 as_fn_arith $ac_count + 1 && ac_count=$as_val
10424 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
10425 # Best one so far, save it but keep looking for a better one
10426 ac_cv_path_EGREP="$ac_path_EGREP"
10427 ac_path_EGREP_max=$ac_count
10429 # 10*(2^10) chars as input seems more than enough
10430 test $ac_count -gt 10 && break
10432 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
10435 $ac_path_EGREP_found && break 3
10440 if test -z "$ac_cv_path_EGREP"; then
10441 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
10444 ac_cv_path_EGREP=$EGREP
10449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
10450 $as_echo "$ac_cv_path_EGREP" >&6; }
10451 EGREP="$ac_cv_path_EGREP"
10456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10457 /* end confdefs.h. */
10462 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10463 $EGREP "yes" >/dev/null 2>&1; then :
10464 add_path="cray/ieee"
10466 add_path="cray/cfp"; extra_functions="mulwwc90"
10472 add_path="cray/cfp"; extra_functions="mulwwj90"
10478 if test -z "$MPN_PATH"; then
10479 path="$add_path $path"
10482 # For a nail build, also look in "nails" subdirectories.
10484 if test $GMP_NAIL_BITS != 0 && test -z "$MPN_PATH"; then
10488 generic) new_path="$new_path $i" ;;
10489 *) new_path="$new_path $i/nails $i" ;;
10496 # Put all directories into CPUVEC_list so as to get a full set of
10497 # CPUVEC_SETUP_$tmp_suffix defines into config.h, even if some of them are
10498 # empty because mmx and/or sse2 had to be dropped.
10500 for i in $fat_path; do
10501 tmp_suffix=`echo $i | sed -e '/\//s:^[^/]*/::' -e 's:[\\/]:_:g'`
10502 CPUVEC_list="$CPUVEC_list CPUVEC_SETUP_$tmp_suffix"
10506 # If there's any sse2 or mmx in the path, check whether the assembler
10507 # supports it, and remove if not.
10509 # We only need this in ABI=32, for ABI=64 on x86_64 we can assume a new
10510 # enough assembler.
10513 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-* | athlon64-*-* | pentium4-*-* | atom-*-* | core2-*-* | corei-*-* | x86_64-*-* | nano-*-*)
10514 if test "$ABI" = 32; then
10515 case "$path $fat_path" in
10516 *mmx*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler knows about MMX instructions" >&5
10517 $as_echo_n "checking if the assembler knows about MMX instructions... " >&6; }
10518 if test "${gmp_cv_asm_x86_mmx+set}" = set; then :
10519 $as_echo_n "(cached) " >&6
10521 cat >conftest.s <<EOF
10525 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
10526 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
10527 (eval $gmp_assemble) 2>&5
10529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10530 test $ac_status = 0; }; then
10531 cat conftest.out >&5
10532 gmp_cv_asm_x86_mmx=yes
10535 if (dis conftest.$OBJEXT >conftest.out) 2>/dev/null; then
10536 if grep "0f 6f c1" conftest.out >/dev/null; then
10537 gmp_cv_asm_x86_mmx=movq-bug
10540 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"dis\" not available to check for \"as\" movq bug" >&5
10541 $as_echo "$as_me: WARNING: \"dis\" not available to check for \"as\" movq bug" >&2;}
10545 cat conftest.out >&5
10546 echo "configure: failed program was:" >&5
10548 gmp_cv_asm_x86_mmx=no
10553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_x86_mmx" >&5
10554 $as_echo "$gmp_cv_asm_x86_mmx" >&6; }
10556 case $gmp_cv_asm_x86_mmx in
10558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
10559 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | WARNING WARNING WARNING" >&5
10561 $as_echo "$as_me: WARNING: | WARNING WARNING WARNING" >&2;}
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Host CPU has MMX code, but the assembler" >&5
10563 $as_echo "$as_me: WARNING: | Host CPU has MMX code, but the assembler" >&2;}
10564 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&5
10565 $as_echo "$as_me: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&2;}
10566 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | has the Solaris 2.6 and 2.7 bug where register to register" >&5
10567 $as_echo "$as_me: WARNING: | has the Solaris 2.6 and 2.7 bug where register to register" >&2;}
10568 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | movq operands are reversed." >&5
10569 $as_echo "$as_me: WARNING: | movq operands are reversed." >&2;}
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Non-MMX replacements will be used." >&5
10571 $as_echo "$as_me: WARNING: | Non-MMX replacements will be used." >&2;}
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | This will be an inferior build." >&5
10573 $as_echo "$as_me: WARNING: | This will be an inferior build." >&2;}
10574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
10575 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
10578 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
10579 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
10580 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | WARNING WARNING WARNING" >&5
10581 $as_echo "$as_me: WARNING: | WARNING WARNING WARNING" >&2;}
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Host CPU has MMX code, but it can't be assembled by" >&5
10583 $as_echo "$as_me: WARNING: | Host CPU has MMX code, but it can't be assembled by" >&2;}
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&5
10585 $as_echo "$as_me: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&2;}
10586 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Non-MMX replacements will be used." >&5
10587 $as_echo "$as_me: WARNING: | Non-MMX replacements will be used." >&2;}
10588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | This will be an inferior build." >&5
10589 $as_echo "$as_me: WARNING: | This will be an inferior build." >&2;}
10590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
10591 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
10594 if test "$gmp_cv_asm_x86_mmx" = yes; then
10601 *) tmp_path="$tmp_path $i" ;;
10607 for i in $fat_path; do
10610 *) tmp_path="$tmp_path $i" ;;
10613 fat_path="$tmp_path"
10619 case "$path $fat_path" in
10620 *sse2*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler knows about SSE2 instructions" >&5
10621 $as_echo_n "checking if the assembler knows about SSE2 instructions... " >&6; }
10622 if test "${gmp_cv_asm_x86_sse2+set}" = set; then :
10623 $as_echo_n "(cached) " >&6
10625 cat >conftest.s <<EOF
10629 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
10630 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
10631 (eval $gmp_assemble) 2>&5
10633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10634 test $ac_status = 0; }; then
10635 cat conftest.out >&5
10636 gmp_cv_asm_x86_sse2=yes
10638 cat conftest.out >&5
10639 echo "configure: failed program was:" >&5
10641 gmp_cv_asm_x86_sse2=no
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_x86_sse2" >&5
10648 $as_echo "$gmp_cv_asm_x86_sse2" >&6; }
10649 case $gmp_cv_asm_x86_sse2 in
10654 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
10655 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | WARNING WARNING WARNING" >&5
10657 $as_echo "$as_me: WARNING: | WARNING WARNING WARNING" >&2;}
10658 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Host CPU has SSE2 code, but it can't be assembled by" >&5
10659 $as_echo "$as_me: WARNING: | Host CPU has SSE2 code, but it can't be assembled by" >&2;}
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&5
10661 $as_echo "$as_me: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&2;}
10662 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Non-SSE2 replacements will be used." >&5
10663 $as_echo "$as_me: WARNING: | Non-SSE2 replacements will be used." >&2;}
10664 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | This will be an inferior build." >&5
10665 $as_echo "$as_me: WARNING: | This will be an inferior build." >&2;}
10666 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
10667 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
10672 *) tmp_path="$tmp_path $i" ;;
10678 for i in $fat_path; do
10681 *) tmp_path="$tmp_path $i" ;;
10684 fat_path="$tmp_path"
10702 GMP_LDFLAGS=$GMP_LDFLAGS
10707 echo "using ABI=\"$ABI\""
10709 echo " CFLAGS=\"$CFLAGS\""
10710 echo " CPPFLAGS=\"$CPPFLAGS\""
10711 if test $want_cxx = yes; then
10712 echo " CXX=\"$CXX\""
10713 echo " CXXFLAGS=\"$CXXFLAGS\""
10715 echo " MPN_PATH=\"$path\""
10718 # Automake ansi2knr support.
10719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5
10720 $as_echo_n "checking for function prototypes... " >&6; }
10721 if test "$ac_cv_prog_cc_c89" != no; then
10722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10723 $as_echo "yes" >&6; }
10725 $as_echo "#define PROTOTYPES 1" >>confdefs.h
10728 $as_echo "#define __PROTOTYPES 1" >>confdefs.h
10731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10732 $as_echo "no" >&6; }
10735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
10736 $as_echo_n "checking for ANSI C header files... " >&6; }
10737 if test "${ac_cv_header_stdc+set}" = set; then :
10738 $as_echo_n "(cached) " >&6
10740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10741 /* end confdefs.h. */
10742 #include <stdlib.h>
10743 #include <stdarg.h>
10744 #include <string.h>
10755 if ac_fn_c_try_compile "$LINENO"; then :
10756 ac_cv_header_stdc=yes
10758 ac_cv_header_stdc=no
10760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10762 if test $ac_cv_header_stdc = yes; then
10763 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
10764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10765 /* end confdefs.h. */
10766 #include <string.h>
10769 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10770 $EGREP "memchr" >/dev/null 2>&1; then :
10773 ac_cv_header_stdc=no
10779 if test $ac_cv_header_stdc = yes; then
10780 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
10781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10782 /* end confdefs.h. */
10783 #include <stdlib.h>
10786 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
10787 $EGREP "free" >/dev/null 2>&1; then :
10790 ac_cv_header_stdc=no
10796 if test $ac_cv_header_stdc = yes; then
10797 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
10798 if test "$cross_compiling" = yes; then :
10801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10802 /* end confdefs.h. */
10804 #include <stdlib.h>
10805 #if ((' ' & 0x0FF) == 0x020)
10806 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
10807 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
10809 # define ISLOWER(c) \
10810 (('a' <= (c) && (c) <= 'i') \
10811 || ('j' <= (c) && (c) <= 'r') \
10812 || ('s' <= (c) && (c) <= 'z'))
10813 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
10816 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
10821 for (i = 0; i < 256; i++)
10822 if (XOR (islower (i), ISLOWER (i))
10823 || toupper (i) != TOUPPER (i))
10828 if ac_fn_c_try_run "$LINENO"; then :
10831 ac_cv_header_stdc=no
10833 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10834 conftest.$ac_objext conftest.beam conftest.$ac_ext
10839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
10840 $as_echo "$ac_cv_header_stdc" >&6; }
10841 if test $ac_cv_header_stdc = yes; then
10843 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
10847 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
10848 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
10849 inttypes.h stdint.h unistd.h
10851 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
10852 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
10854 eval as_val=\$$as_ac_Header
10855 if test "x$as_val" = x""yes; then :
10856 cat >>confdefs.h <<_ACEOF
10857 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
10866 if test "$ac_cv_prog_cc_stdc" != no; then
10869 U=_ ANSI2KNR=./ansi2knr
10871 # Ensure some checks needed by ansi2knr itself.
10873 for ac_header in string.h
10875 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default"
10876 if test "x$ac_cv_header_string_h" = x""yes; then :
10877 cat >>confdefs.h <<_ACEOF
10878 #define HAVE_STRING_H 1
10888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports --noexecstack option" >&5
10889 $as_echo_n "checking whether assembler supports --noexecstack option... " >&6; }
10890 if test "${cl_cv_as_noexecstack+set}" = set; then :
10891 $as_echo_n "(cached) " >&6
10893 cat > conftest.c <<EOF
10896 if { ac_try='${CC} $CFLAGS $CPPFLAGS
10897 -S -o conftest.s conftest.c >/dev/null'
10898 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
10899 (eval $ac_try) 2>&5
10901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10902 test $ac_status = 0; }; } \
10903 && grep .note.GNU-stack conftest.s >/dev/null \
10904 && { ac_try='${CC} $CFLAGS $CPPFLAGS -Wa,--noexecstack
10905 -c -o conftest.o conftest.s >/dev/null'
10906 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
10907 (eval $ac_try) 2>&5
10909 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10910 test $ac_status = 0; }; }
10912 cl_cv_as_noexecstack=yes
10914 cl_cv_as_noexecstack=no
10918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cl_cv_as_noexecstack" >&5
10919 $as_echo "$cl_cv_as_noexecstack" >&6; }
10920 if test "$cl_cv_as_noexecstack" = yes; then
10921 ASMFLAGS="$ASMFLAGS -Wa,--noexecstack"
10928 if test -n "$ac_tool_prefix"; then
10929 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
10930 set dummy ${ac_tool_prefix}ar; ac_word=$2
10931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10932 $as_echo_n "checking for $ac_word... " >&6; }
10933 if test "${ac_cv_prog_AR+set}" = set; then :
10934 $as_echo_n "(cached) " >&6
10936 if test -n "$AR"; then
10937 ac_cv_prog_AR="$AR" # Let the user override the test.
10939 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10940 for as_dir in $PATH
10943 test -z "$as_dir" && as_dir=.
10944 for ac_exec_ext in '' $ac_executable_extensions; do
10945 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10946 ac_cv_prog_AR="${ac_tool_prefix}ar"
10947 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10957 if test -n "$AR"; then
10958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
10959 $as_echo "$AR" >&6; }
10961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10962 $as_echo "no" >&6; }
10967 if test -z "$ac_cv_prog_AR"; then
10969 # Extract the first word of "ar", so it can be a program name with args.
10970 set dummy ar; ac_word=$2
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10972 $as_echo_n "checking for $ac_word... " >&6; }
10973 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
10974 $as_echo_n "(cached) " >&6
10976 if test -n "$ac_ct_AR"; then
10977 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
10979 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10980 for as_dir in $PATH
10983 test -z "$as_dir" && as_dir=.
10984 for ac_exec_ext in '' $ac_executable_extensions; do
10985 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10986 ac_cv_prog_ac_ct_AR="ar"
10987 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10996 ac_ct_AR=$ac_cv_prog_ac_ct_AR
10997 if test -n "$ac_ct_AR"; then
10998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
10999 $as_echo "$ac_ct_AR" >&6; }
11001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11002 $as_echo "no" >&6; }
11005 if test "x$ac_ct_AR" = x; then
11008 case $cross_compiling:$ac_tool_warned in
11010 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11011 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11012 ac_tool_warned=yes ;;
11017 AR="$ac_cv_prog_AR"
11020 if test -z "$gmp_user_AR"; then
11021 eval arflags=\"\$ar${abi1}_flags\"
11022 test -n "$arflags" || eval arflags=\"\$ar${abi2}_flags\"
11023 if test -n "$arflags"; then
11024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra ar flags" >&5
11025 $as_echo_n "checking for extra ar flags... " >&6; }
11027 ac_cv_prog_AR="$AR $arflags"
11028 ac_cv_prog_ac_ct_AR="$AR $arflags"
11029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $arflags" >&5
11030 $as_echo "$arflags" >&6; }
11033 if test -z "$AR_FLAGS"; then
11039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11040 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11041 if test "${lt_cv_path_NM+set}" = set; then :
11042 $as_echo_n "(cached) " >&6
11044 if test -n "$NM"; then
11045 # Let the user override the test.
11046 lt_cv_path_NM="$NM"
11048 lt_nm_to_check="${ac_tool_prefix}nm"
11049 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11050 lt_nm_to_check="$lt_nm_to_check nm"
11052 for lt_tmp_nm in $lt_nm_to_check; do
11053 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11054 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11056 test -z "$ac_dir" && ac_dir=.
11057 tmp_nm="$ac_dir/$lt_tmp_nm"
11058 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11059 # Check to see if the nm accepts a BSD-compat flag.
11060 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11061 # nm: unknown option "B" ignored
11062 # Tru64's nm complains that /dev/null is an invalid object file
11063 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11064 */dev/null* | *'Invalid file or object type'*)
11065 lt_cv_path_NM="$tmp_nm -B"
11069 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11071 lt_cv_path_NM="$tmp_nm -p"
11075 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11076 continue # so that we can try to find one that supports BSD flags
11085 : ${lt_cv_path_NM=no}
11088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11089 $as_echo "$lt_cv_path_NM" >&6; }
11090 if test "$lt_cv_path_NM" != "no"; then
11091 NM="$lt_cv_path_NM"
11093 # Didn't find any BSD compatible name lister, look for dumpbin.
11094 if test -n "$ac_tool_prefix"; then
11095 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
11097 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11098 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11100 $as_echo_n "checking for $ac_word... " >&6; }
11101 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
11102 $as_echo_n "(cached) " >&6
11104 if test -n "$DUMPBIN"; then
11105 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11108 for as_dir in $PATH
11111 test -z "$as_dir" && as_dir=.
11112 for ac_exec_ext in '' $ac_executable_extensions; do
11113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11114 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11115 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11124 DUMPBIN=$ac_cv_prog_DUMPBIN
11125 if test -n "$DUMPBIN"; then
11126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11127 $as_echo "$DUMPBIN" >&6; }
11129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11130 $as_echo "no" >&6; }
11134 test -n "$DUMPBIN" && break
11137 if test -z "$DUMPBIN"; then
11138 ac_ct_DUMPBIN=$DUMPBIN
11139 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
11141 # Extract the first word of "$ac_prog", so it can be a program name with args.
11142 set dummy $ac_prog; ac_word=$2
11143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11144 $as_echo_n "checking for $ac_word... " >&6; }
11145 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
11146 $as_echo_n "(cached) " >&6
11148 if test -n "$ac_ct_DUMPBIN"; then
11149 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11152 for as_dir in $PATH
11155 test -z "$as_dir" && as_dir=.
11156 for ac_exec_ext in '' $ac_executable_extensions; do
11157 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11158 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11159 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11168 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11169 if test -n "$ac_ct_DUMPBIN"; then
11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11171 $as_echo "$ac_ct_DUMPBIN" >&6; }
11173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11174 $as_echo "no" >&6; }
11178 test -n "$ac_ct_DUMPBIN" && break
11181 if test "x$ac_ct_DUMPBIN" = x; then
11184 case $cross_compiling:$ac_tool_warned in
11186 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11187 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11188 ac_tool_warned=yes ;;
11190 DUMPBIN=$ac_ct_DUMPBIN
11195 if test "$DUMPBIN" != ":"; then
11199 test -z "$NM" && NM=nm
11206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11207 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11208 if test "${lt_cv_nm_interface+set}" = set; then :
11209 $as_echo_n "(cached) " >&6
11211 lt_cv_nm_interface="BSD nm"
11212 echo "int some_variable = 0;" > conftest.$ac_ext
11213 (eval echo "\"\$as_me:11213: $ac_compile\"" >&5)
11214 (eval "$ac_compile" 2>conftest.err)
11215 cat conftest.err >&5
11216 (eval echo "\"\$as_me:11216: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11217 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11218 cat conftest.err >&5
11219 (eval echo "\"\$as_me:11219: output\"" >&5)
11220 cat conftest.out >&5
11221 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11222 lt_cv_nm_interface="MS dumpbin"
11226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11227 $as_echo "$lt_cv_nm_interface" >&6; }
11230 # FIXME: When cross compiling (ie. $ac_tool_prefix not empty), libtool
11231 # defaults to plain "nm" if a "${ac_tool_prefix}nm" is not found. In this
11232 # case run it again to try the native "nm", firstly so that likely locations
11233 # are searched, secondly so that -B or -p are added if necessary for BSD
11234 # format. This is necessary for instance on OSF with "./configure
11235 # --build=alphaev5-dec-osf --host=alphaev6-dec-osf".
11237 if test -z "$gmp_user_NM" && test -n "$ac_tool_prefix" && test "$NM" = nm; then
11238 $as_unset lt_cv_path_NM
11239 gmp_save_ac_tool_prefix=$ac_tool_prefix
11242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
11243 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
11244 if test "${lt_cv_path_NM+set}" = set; then :
11245 $as_echo_n "(cached) " >&6
11247 if test -n "$NM"; then
11248 # Let the user override the test.
11249 lt_cv_path_NM="$NM"
11251 lt_nm_to_check="${ac_tool_prefix}nm"
11252 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
11253 lt_nm_to_check="$lt_nm_to_check nm"
11255 for lt_tmp_nm in $lt_nm_to_check; do
11256 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11257 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
11259 test -z "$ac_dir" && ac_dir=.
11260 tmp_nm="$ac_dir/$lt_tmp_nm"
11261 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
11262 # Check to see if the nm accepts a BSD-compat flag.
11263 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
11264 # nm: unknown option "B" ignored
11265 # Tru64's nm complains that /dev/null is an invalid object file
11266 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
11267 */dev/null* | *'Invalid file or object type'*)
11268 lt_cv_path_NM="$tmp_nm -B"
11272 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
11274 lt_cv_path_NM="$tmp_nm -p"
11278 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
11279 continue # so that we can try to find one that supports BSD flags
11288 : ${lt_cv_path_NM=no}
11291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
11292 $as_echo "$lt_cv_path_NM" >&6; }
11293 if test "$lt_cv_path_NM" != "no"; then
11294 NM="$lt_cv_path_NM"
11296 # Didn't find any BSD compatible name lister, look for dumpbin.
11297 if test -n "$ac_tool_prefix"; then
11298 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
11300 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
11301 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
11302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11303 $as_echo_n "checking for $ac_word... " >&6; }
11304 if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
11305 $as_echo_n "(cached) " >&6
11307 if test -n "$DUMPBIN"; then
11308 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
11310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11311 for as_dir in $PATH
11314 test -z "$as_dir" && as_dir=.
11315 for ac_exec_ext in '' $ac_executable_extensions; do
11316 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11317 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
11318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11327 DUMPBIN=$ac_cv_prog_DUMPBIN
11328 if test -n "$DUMPBIN"; then
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
11330 $as_echo "$DUMPBIN" >&6; }
11332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11333 $as_echo "no" >&6; }
11337 test -n "$DUMPBIN" && break
11340 if test -z "$DUMPBIN"; then
11341 ac_ct_DUMPBIN=$DUMPBIN
11342 for ac_prog in "dumpbin -symbols" "link -dump -symbols"
11344 # Extract the first word of "$ac_prog", so it can be a program name with args.
11345 set dummy $ac_prog; ac_word=$2
11346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11347 $as_echo_n "checking for $ac_word... " >&6; }
11348 if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
11349 $as_echo_n "(cached) " >&6
11351 if test -n "$ac_ct_DUMPBIN"; then
11352 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
11354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11355 for as_dir in $PATH
11358 test -z "$as_dir" && as_dir=.
11359 for ac_exec_ext in '' $ac_executable_extensions; do
11360 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11361 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
11362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11371 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
11372 if test -n "$ac_ct_DUMPBIN"; then
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
11374 $as_echo "$ac_ct_DUMPBIN" >&6; }
11376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11377 $as_echo "no" >&6; }
11381 test -n "$ac_ct_DUMPBIN" && break
11384 if test "x$ac_ct_DUMPBIN" = x; then
11387 case $cross_compiling:$ac_tool_warned in
11389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11390 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11391 ac_tool_warned=yes ;;
11393 DUMPBIN=$ac_ct_DUMPBIN
11398 if test "$DUMPBIN" != ":"; then
11402 test -z "$NM" && NM=nm
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
11407 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
11408 if test "${lt_cv_nm_interface+set}" = set; then :
11409 $as_echo_n "(cached) " >&6
11411 lt_cv_nm_interface="BSD nm"
11412 echo "int some_variable = 0;" > conftest.$ac_ext
11413 (eval echo "\"\$as_me:11413: $ac_compile\"" >&5)
11414 (eval "$ac_compile" 2>conftest.err)
11415 cat conftest.err >&5
11416 (eval echo "\"\$as_me:11416: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
11417 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
11418 cat conftest.err >&5
11419 (eval echo "\"\$as_me:11419: output\"" >&5)
11420 cat conftest.out >&5
11421 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
11422 lt_cv_nm_interface="MS dumpbin"
11426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
11427 $as_echo "$lt_cv_nm_interface" >&6; }
11429 ac_tool_prefix=$gmp_save_ac_tool_prefix
11432 if test -z "$gmp_user_NM"; then
11433 eval nmflags=\"\$nm${abi1}_flags\"
11434 test -n "$nmflags" || eval nmflags=\"\$nm${abi2}_flags\"
11435 if test -n "$nmflags"; then
11436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra nm flags" >&5
11437 $as_echo_n "checking for extra nm flags... " >&6; }
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nmflags" >&5
11440 $as_echo "$nmflags" >&6; }
11446 # FIXME: On AIX 3 and 4, $libname.a is included in libtool
11447 # $library_names_spec, so libgmp.a becomes a symlink to libgmp.so, making
11448 # it impossible to build shared and static libraries simultaneously.
11449 # Disable shared libraries by default, but let the user override with
11450 # --enable-shared --disable-static.
11452 # FIXME: This $libname.a problem looks like it might apply to *-*-amigaos*
11453 # and *-*-os2* too, but wait for someone to test this before worrying
11454 # about it. If there is a problem then of course libtool is the right
11458 if test -z "$enable_shared"; then enable_shared=no; fi ;;
11462 # Configs for Windows DLLs.
11464 enable_win32_dll=yes
11467 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
11468 if test -n "$ac_tool_prefix"; then
11469 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
11470 set dummy ${ac_tool_prefix}as; ac_word=$2
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11472 $as_echo_n "checking for $ac_word... " >&6; }
11473 if test "${ac_cv_prog_AS+set}" = set; then :
11474 $as_echo_n "(cached) " >&6
11476 if test -n "$AS"; then
11477 ac_cv_prog_AS="$AS" # Let the user override the test.
11479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11480 for as_dir in $PATH
11483 test -z "$as_dir" && as_dir=.
11484 for ac_exec_ext in '' $ac_executable_extensions; do
11485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11486 ac_cv_prog_AS="${ac_tool_prefix}as"
11487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11497 if test -n "$AS"; then
11498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
11499 $as_echo "$AS" >&6; }
11501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11502 $as_echo "no" >&6; }
11507 if test -z "$ac_cv_prog_AS"; then
11509 # Extract the first word of "as", so it can be a program name with args.
11510 set dummy as; ac_word=$2
11511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11512 $as_echo_n "checking for $ac_word... " >&6; }
11513 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then :
11514 $as_echo_n "(cached) " >&6
11516 if test -n "$ac_ct_AS"; then
11517 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
11519 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11520 for as_dir in $PATH
11523 test -z "$as_dir" && as_dir=.
11524 for ac_exec_ext in '' $ac_executable_extensions; do
11525 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11526 ac_cv_prog_ac_ct_AS="as"
11527 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11536 ac_ct_AS=$ac_cv_prog_ac_ct_AS
11537 if test -n "$ac_ct_AS"; then
11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
11539 $as_echo "$ac_ct_AS" >&6; }
11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11542 $as_echo "no" >&6; }
11545 if test "x$ac_ct_AS" = x; then
11548 case $cross_compiling:$ac_tool_warned in
11550 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11551 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11552 ac_tool_warned=yes ;;
11557 AS="$ac_cv_prog_AS"
11560 if test -n "$ac_tool_prefix"; then
11561 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
11562 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11564 $as_echo_n "checking for $ac_word... " >&6; }
11565 if test "${ac_cv_prog_DLLTOOL+set}" = set; then :
11566 $as_echo_n "(cached) " >&6
11568 if test -n "$DLLTOOL"; then
11569 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
11571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11572 for as_dir in $PATH
11575 test -z "$as_dir" && as_dir=.
11576 for ac_exec_ext in '' $ac_executable_extensions; do
11577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11578 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
11579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11588 DLLTOOL=$ac_cv_prog_DLLTOOL
11589 if test -n "$DLLTOOL"; then
11590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
11591 $as_echo "$DLLTOOL" >&6; }
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11594 $as_echo "no" >&6; }
11599 if test -z "$ac_cv_prog_DLLTOOL"; then
11600 ac_ct_DLLTOOL=$DLLTOOL
11601 # Extract the first word of "dlltool", so it can be a program name with args.
11602 set dummy dlltool; ac_word=$2
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11604 $as_echo_n "checking for $ac_word... " >&6; }
11605 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then :
11606 $as_echo_n "(cached) " >&6
11608 if test -n "$ac_ct_DLLTOOL"; then
11609 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
11611 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11612 for as_dir in $PATH
11615 test -z "$as_dir" && as_dir=.
11616 for ac_exec_ext in '' $ac_executable_extensions; do
11617 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11618 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
11619 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11628 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
11629 if test -n "$ac_ct_DLLTOOL"; then
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
11631 $as_echo "$ac_ct_DLLTOOL" >&6; }
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11634 $as_echo "no" >&6; }
11637 if test "x$ac_ct_DLLTOOL" = x; then
11640 case $cross_compiling:$ac_tool_warned in
11642 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11643 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11644 ac_tool_warned=yes ;;
11646 DLLTOOL=$ac_ct_DLLTOOL
11649 DLLTOOL="$ac_cv_prog_DLLTOOL"
11652 if test -n "$ac_tool_prefix"; then
11653 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
11654 set dummy ${ac_tool_prefix}objdump; ac_word=$2
11655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11656 $as_echo_n "checking for $ac_word... " >&6; }
11657 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
11658 $as_echo_n "(cached) " >&6
11660 if test -n "$OBJDUMP"; then
11661 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
11663 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11664 for as_dir in $PATH
11667 test -z "$as_dir" && as_dir=.
11668 for ac_exec_ext in '' $ac_executable_extensions; do
11669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11670 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
11671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11680 OBJDUMP=$ac_cv_prog_OBJDUMP
11681 if test -n "$OBJDUMP"; then
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
11683 $as_echo "$OBJDUMP" >&6; }
11685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11686 $as_echo "no" >&6; }
11691 if test -z "$ac_cv_prog_OBJDUMP"; then
11692 ac_ct_OBJDUMP=$OBJDUMP
11693 # Extract the first word of "objdump", so it can be a program name with args.
11694 set dummy objdump; ac_word=$2
11695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
11696 $as_echo_n "checking for $ac_word... " >&6; }
11697 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
11698 $as_echo_n "(cached) " >&6
11700 if test -n "$ac_ct_OBJDUMP"; then
11701 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
11703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11704 for as_dir in $PATH
11707 test -z "$as_dir" && as_dir=.
11708 for ac_exec_ext in '' $ac_executable_extensions; do
11709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11710 ac_cv_prog_ac_ct_OBJDUMP="objdump"
11711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
11720 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
11721 if test -n "$ac_ct_OBJDUMP"; then
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
11723 $as_echo "$ac_ct_OBJDUMP" >&6; }
11725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11726 $as_echo "no" >&6; }
11729 if test "x$ac_ct_OBJDUMP" = x; then
11732 case $cross_compiling:$ac_tool_warned in
11734 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
11735 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
11736 ac_tool_warned=yes ;;
11738 OBJDUMP=$ac_ct_OBJDUMP
11741 OBJDUMP="$ac_cv_prog_OBJDUMP"
11747 test -z "$AS" && AS=as
11753 test -z "$DLLTOOL" && DLLTOOL=dlltool
11759 test -z "$OBJDUMP" && OBJDUMP=objdump
11771 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
11772 # By default, build only static.
11773 if test -z "$enable_shared"; then
11776 # Don't allow both static and DLL.
11777 if test "$enable_shared" != no && test "$enable_static" != no; then
11778 as_fn_error "cannot build both static and DLL, since gmp.h is different for each.
11779 Use \"--disable-static --enable-shared\" to build just a DLL." "$LINENO" 5
11782 # "-no-undefined" is required when building a DLL, see documentation on
11783 # AC_LIBTOOL_WIN32_DLL.
11785 # "-Wl,--export-all-symbols" is a bit of a hack, it gets all libgmp and
11786 # libgmpxx functions and variables exported. This is what libtool did
11787 # in the past, and it's convenient for us in the test programs.
11789 # Maybe it'd be prudent to check for --export-all-symbols before using
11790 # it, but it seems to have been in ld since at least 2000, and there's
11791 # not really any alternative we want to take up at the moment.
11793 # "-Wl,output-def" is used to get a .def file for use by MS lib to make
11794 # a .lib import library, described in the manual. libgmp-3.dll.def
11795 # corresponds to the libmp-3.dll.def generated by libtool (as a result
11796 # of -export-symbols on that library).
11798 # Incidentally, libtool does generate an import library libgmp.dll.a,
11799 # but it's "ar" format and cannot be used by the MS linker. There
11800 # doesn't seem to be any GNU tool for generating or converting to .lib.
11802 # FIXME: The .def files produced by -Wl,output-def include isascii,
11803 # iscsym, iscsymf and toascii, apparently because mingw ctype.h doesn't
11804 # inline isascii (used in gmp). It gives an extern inline for
11805 # __isascii, but for some reason not the plain isascii.
11807 if test "$enable_shared" = yes; then
11808 GMP_LDFLAGS="$GMP_LDFLAGS -no-undefined -Wl,--export-all-symbols"
11809 LIBGMP_LDFLAGS="$LIBGMP_LDFLAGS -Wl,--output-def,.libs/libgmp-3.dll.def"
11810 LIBGMPXX_LDFLAGS="$LIBGMP_LDFLAGS -Wl,--output-def,.libs/libgmpxx-3.dll.def"
11817 # Ensure that $CONFIG_SHELL is available for AC_LIBTOOL_SYS_MAX_CMD_LEN.
11818 # It's often set already by _LT_AC_PROG_ECHO_BACKSLASH or
11819 # _AS_LINENO_PREPARE, but not always.
11821 # The symptom of CONFIG_SHELL unset is some "expr" errors during the test,
11822 # and an empty result. This only happens when invoked as "sh configure",
11823 # ie. no path, and can be seen for instance on ia64-*-hpux*.
11825 # FIXME: Newer libtool should have it's own fix for this.
11827 if test -z "$CONFIG_SHELL"; then
11828 CONFIG_SHELL=$SHELL
11831 # Enable CXX in libtool only if we want it, and never enable GCJ, nor RC on
11832 # mingw and cygwin. Under --disable-cxx this avoids some error messages
11833 # from libtool arising from the fact we didn't actually run AC_PROG_CXX.
11834 # Notice that any user-supplied --with-tags setting takes precedence.
11836 # FIXME: Is this the right way to get this effect? Very possibly not, but
11837 # the current _LT_AC_TAGCONFIG doesn't really suggest an alternative.
11839 if test "${with_tags+set}" != set; then
11840 if test $want_cxx = yes; then
11847 # The dead hand of AC_REQUIRE makes AC_PROG_LIBTOOL expand and execute
11848 # AC_PROG_F77, even when F77 is not in the selected with_tags. This is
11849 # probably harmless, but it's unsightly and bloats our configure, so pretend
11850 # AC_PROG_F77 has been expanded already.
11852 # FIXME: Rumour has it libtool will one day provide a way for a configure.in
11853 # to say what it wants from among supported languages etc.
11859 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
11860 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
11865 macro_version='2.2.6b'
11866 macro_revision='1.3017'
11880 ltmain="$ac_aux_dir/ltmain.sh"
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
11883 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
11884 if test "${ac_cv_path_SED+set}" = set; then :
11885 $as_echo_n "(cached) " >&6
11887 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
11888 for ac_i in 1 2 3 4 5 6 7; do
11889 ac_script="$ac_script$as_nl$ac_script"
11891 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
11892 { ac_script=; unset ac_script;}
11893 if test -z "$SED"; then
11894 ac_path_SED_found=false
11895 # Loop through the user's path and test for each of PROGNAME-LIST
11896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11897 for as_dir in $PATH
11900 test -z "$as_dir" && as_dir=.
11901 for ac_prog in sed gsed; do
11902 for ac_exec_ext in '' $ac_executable_extensions; do
11903 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
11904 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
11905 # Check for GNU ac_path_SED and select it if it is found.
11906 # Check for GNU $ac_path_SED
11907 case `"$ac_path_SED" --version 2>&1` in
11909 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
11912 $as_echo_n 0123456789 >"conftest.in"
11915 cat "conftest.in" "conftest.in" >"conftest.tmp"
11916 mv "conftest.tmp" "conftest.in"
11917 cp "conftest.in" "conftest.nl"
11918 $as_echo '' >> "conftest.nl"
11919 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
11920 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
11921 as_fn_arith $ac_count + 1 && ac_count=$as_val
11922 if test $ac_count -gt ${ac_path_SED_max-0}; then
11923 # Best one so far, save it but keep looking for a better one
11924 ac_cv_path_SED="$ac_path_SED"
11925 ac_path_SED_max=$ac_count
11927 # 10*(2^10) chars as input seems more than enough
11928 test $ac_count -gt 10 && break
11930 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
11933 $ac_path_SED_found && break 3
11938 if test -z "$ac_cv_path_SED"; then
11939 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
11942 ac_cv_path_SED=$SED
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
11947 $as_echo "$ac_cv_path_SED" >&6; }
11948 SED="$ac_cv_path_SED"
11951 test -z "$SED" && SED=sed
11952 Xsed="$SED -e 1s/^X//"
11964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
11965 $as_echo_n "checking for fgrep... " >&6; }
11966 if test "${ac_cv_path_FGREP+set}" = set; then :
11967 $as_echo_n "(cached) " >&6
11969 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
11970 then ac_cv_path_FGREP="$GREP -F"
11972 if test -z "$FGREP"; then
11973 ac_path_FGREP_found=false
11974 # Loop through the user's path and test for each of PROGNAME-LIST
11975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11976 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
11979 test -z "$as_dir" && as_dir=.
11980 for ac_prog in fgrep; do
11981 for ac_exec_ext in '' $ac_executable_extensions; do
11982 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
11983 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
11984 # Check for GNU ac_path_FGREP and select it if it is found.
11985 # Check for GNU $ac_path_FGREP
11986 case `"$ac_path_FGREP" --version 2>&1` in
11988 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
11991 $as_echo_n 0123456789 >"conftest.in"
11994 cat "conftest.in" "conftest.in" >"conftest.tmp"
11995 mv "conftest.tmp" "conftest.in"
11996 cp "conftest.in" "conftest.nl"
11997 $as_echo 'FGREP' >> "conftest.nl"
11998 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
11999 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
12000 as_fn_arith $ac_count + 1 && ac_count=$as_val
12001 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
12002 # Best one so far, save it but keep looking for a better one
12003 ac_cv_path_FGREP="$ac_path_FGREP"
12004 ac_path_FGREP_max=$ac_count
12006 # 10*(2^10) chars as input seems more than enough
12007 test $ac_count -gt 10 && break
12009 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
12012 $ac_path_FGREP_found && break 3
12017 if test -z "$ac_cv_path_FGREP"; then
12018 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
12021 ac_cv_path_FGREP=$FGREP
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
12027 $as_echo "$ac_cv_path_FGREP" >&6; }
12028 FGREP="$ac_cv_path_FGREP"
12031 test -z "$GREP" && GREP=grep
12051 # Check whether --with-gnu-ld was given.
12052 if test "${with_gnu_ld+set}" = set; then :
12053 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
12059 if test "$GCC" = yes; then
12060 # Check if gcc -print-prog-name=ld gives a path.
12061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
12062 $as_echo_n "checking for ld used by $CC... " >&6; }
12065 # gcc leaves a trailing carriage return which upsets mingw
12066 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
12068 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
12071 # Accept absolute paths.
12073 re_direlt='/[^/][^/]*/\.\./'
12074 # Canonicalize the pathname of ld
12075 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
12076 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
12077 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
12079 test -z "$LD" && LD="$ac_prog"
12082 # If it fails, then pretend we aren't using GCC.
12086 # If it is relative, then search for the first ld in PATH.
12087 with_gnu_ld=unknown
12090 elif test "$with_gnu_ld" = yes; then
12091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
12092 $as_echo_n "checking for GNU ld... " >&6; }
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
12095 $as_echo_n "checking for non-GNU ld... " >&6; }
12097 if test "${lt_cv_path_LD+set}" = set; then :
12098 $as_echo_n "(cached) " >&6
12100 if test -z "$LD"; then
12101 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
12102 for ac_dir in $PATH; do
12104 test -z "$ac_dir" && ac_dir=.
12105 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
12106 lt_cv_path_LD="$ac_dir/$ac_prog"
12107 # Check to see if the program is GNU ld. I'd rather use --version,
12108 # but apparently some variants of GNU ld only accept -v.
12109 # Break only if it was the GNU/non-GNU ld that we prefer.
12110 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
12111 *GNU* | *'with BFD'*)
12112 test "$with_gnu_ld" != no && break
12115 test "$with_gnu_ld" != yes && break
12122 lt_cv_path_LD="$LD" # Let the user override the test with a path.
12126 LD="$lt_cv_path_LD"
12127 if test -n "$LD"; then
12128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
12129 $as_echo "$LD" >&6; }
12131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12132 $as_echo "no" >&6; }
12134 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
12135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
12136 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
12137 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
12138 $as_echo_n "(cached) " >&6
12140 # I'd rather use --version here, but apparently some GNU lds only accept -v.
12141 case `$LD -v 2>&1 </dev/null` in
12142 *GNU* | *'with BFD'*)
12143 lt_cv_prog_gnu_ld=yes
12146 lt_cv_prog_gnu_ld=no
12150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
12151 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
12152 with_gnu_ld=$lt_cv_prog_gnu_ld
12162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
12163 $as_echo_n "checking whether ln -s works... " >&6; }
12165 if test "$LN_S" = "ln -s"; then
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12167 $as_echo "yes" >&6; }
12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
12170 $as_echo "no, using $LN_S" >&6; }
12173 # find the maximum length of command line arguments
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
12175 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
12176 if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
12177 $as_echo_n "(cached) " >&6
12184 # On DJGPP, this test can blow up pretty badly due to problems in libc
12185 # (any single argument exceeding 2000 bytes causes a buffer overrun
12186 # during glob expansion). Even if it were fixed, the result of this
12187 # check would be larger than it should be.
12188 lt_cv_sys_max_cmd_len=12288; # 12K is about right
12192 # Under GNU Hurd, this test is not required because there is
12193 # no limit to the length of command line arguments.
12194 # Libtool will interpret -1 as no limit whatsoever
12195 lt_cv_sys_max_cmd_len=-1;
12198 cygwin* | mingw* | cegcc*)
12199 # On Win9x/ME, this test blows up -- it succeeds, but takes
12200 # about 5 minutes as the teststring grows exponentially.
12201 # Worse, since 9x/ME are not pre-emptively multitasking,
12202 # you end up with a "frozen" computer, even though with patience
12203 # the test eventually succeeds (with a max line length of 256k).
12204 # Instead, let's just punt: use the minimum linelength reported by
12205 # all of the supported platforms: 8192 (on NT/2K/XP).
12206 lt_cv_sys_max_cmd_len=8192;
12210 # On AmigaOS with pdksh, this test takes hours, literally.
12211 # So we just punt and use a minimum line length of 8192.
12212 lt_cv_sys_max_cmd_len=8192;
12215 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
12216 # This has been around since 386BSD, at least. Likely further.
12217 if test -x /sbin/sysctl; then
12218 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
12219 elif test -x /usr/sbin/sysctl; then
12220 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
12222 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
12224 # And add a safety zone
12225 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12226 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12230 # We know the value 262144 and hardcode it with a safety zone (like BSD)
12231 lt_cv_sys_max_cmd_len=196608
12235 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
12236 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
12237 # nice to cause kernel panics so lets avoid the loop below.
12238 # First set a reasonable default.
12239 lt_cv_sys_max_cmd_len=16384
12241 if test -x /sbin/sysconfig; then
12242 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
12243 *1*) lt_cv_sys_max_cmd_len=-1 ;;
12248 lt_cv_sys_max_cmd_len=102400
12250 sysv5* | sco5v6* | sysv4.2uw2*)
12251 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
12252 if test -n "$kargmax"; then
12253 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
12255 lt_cv_sys_max_cmd_len=32768
12259 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
12260 if test -n "$lt_cv_sys_max_cmd_len"; then
12261 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
12262 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
12264 # Make teststring a little bigger before we do anything with it.
12265 # a 1K string should be a reasonable start.
12266 for i in 1 2 3 4 5 6 7 8 ; do
12267 teststring=$teststring$teststring
12269 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
12270 # If test is not a shell built-in, we'll probably end up computing a
12271 # maximum length that is only half of the actual maximum length, but
12273 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
12274 = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
12275 test $i != 17 # 1/2 MB should be enough
12278 teststring=$teststring$teststring
12280 # Only check the string length outside the loop.
12281 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
12283 # Add a significant safety factor because C++ compilers can tack on
12284 # massive amounts of additional arguments before passing them to the
12285 # linker. It appears as though 1/2 is a usable value.
12286 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
12293 if test -n $lt_cv_sys_max_cmd_len ; then
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
12295 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
12297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
12298 $as_echo "none" >&6; }
12300 max_cmd_len=$lt_cv_sys_max_cmd_len
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
12312 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
12313 # Try some XSI features
12315 ( _lt_dummy="a/b/c"
12316 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
12318 && eval 'test $(( 1 + 1 )) -eq 2 \
12319 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
12321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
12322 $as_echo "$xsi_shell" >&6; }
12325 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
12326 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
12328 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
12330 && lt_shell_append=yes
12331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
12332 $as_echo "$lt_shell_append" >&6; }
12335 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
12345 # test EBCDIC or ASCII
12346 case `echo X|tr X '\101'` in
12347 A) # ASCII based system
12348 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
12349 lt_SP2NL='tr \040 \012'
12350 lt_NL2SP='tr \015\012 \040\040'
12352 *) # EBCDIC based system
12353 lt_SP2NL='tr \100 \n'
12354 lt_NL2SP='tr \r\n \100\100'
12366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
12367 $as_echo_n "checking for $LD option to reload object files... " >&6; }
12368 if test "${lt_cv_ld_reload_flag+set}" = set; then :
12369 $as_echo_n "(cached) " >&6
12371 lt_cv_ld_reload_flag='-r'
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
12374 $as_echo "$lt_cv_ld_reload_flag" >&6; }
12375 reload_flag=$lt_cv_ld_reload_flag
12376 case $reload_flag in
12378 *) reload_flag=" $reload_flag" ;;
12380 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12383 if test "$GCC" = yes; then
12384 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
12386 reload_cmds='$LD$reload_flag -o $output$reload_objs'
12399 if test -n "$ac_tool_prefix"; then
12400 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
12401 set dummy ${ac_tool_prefix}objdump; ac_word=$2
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12403 $as_echo_n "checking for $ac_word... " >&6; }
12404 if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
12405 $as_echo_n "(cached) " >&6
12407 if test -n "$OBJDUMP"; then
12408 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
12410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12411 for as_dir in $PATH
12414 test -z "$as_dir" && as_dir=.
12415 for ac_exec_ext in '' $ac_executable_extensions; do
12416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12417 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
12418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12427 OBJDUMP=$ac_cv_prog_OBJDUMP
12428 if test -n "$OBJDUMP"; then
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
12430 $as_echo "$OBJDUMP" >&6; }
12432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12433 $as_echo "no" >&6; }
12438 if test -z "$ac_cv_prog_OBJDUMP"; then
12439 ac_ct_OBJDUMP=$OBJDUMP
12440 # Extract the first word of "objdump", so it can be a program name with args.
12441 set dummy objdump; ac_word=$2
12442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12443 $as_echo_n "checking for $ac_word... " >&6; }
12444 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
12445 $as_echo_n "(cached) " >&6
12447 if test -n "$ac_ct_OBJDUMP"; then
12448 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
12450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12451 for as_dir in $PATH
12454 test -z "$as_dir" && as_dir=.
12455 for ac_exec_ext in '' $ac_executable_extensions; do
12456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12457 ac_cv_prog_ac_ct_OBJDUMP="objdump"
12458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12467 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
12468 if test -n "$ac_ct_OBJDUMP"; then
12469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
12470 $as_echo "$ac_ct_OBJDUMP" >&6; }
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12473 $as_echo "no" >&6; }
12476 if test "x$ac_ct_OBJDUMP" = x; then
12479 case $cross_compiling:$ac_tool_warned in
12481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12482 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12483 ac_tool_warned=yes ;;
12485 OBJDUMP=$ac_ct_OBJDUMP
12488 OBJDUMP="$ac_cv_prog_OBJDUMP"
12491 test -z "$OBJDUMP" && OBJDUMP=objdump
12498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
12499 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
12500 if test "${lt_cv_deplibs_check_method+set}" = set; then :
12501 $as_echo_n "(cached) " >&6
12503 lt_cv_file_magic_cmd='$MAGIC_CMD'
12504 lt_cv_file_magic_test_file=
12505 lt_cv_deplibs_check_method='unknown'
12506 # Need to set the preceding variable on all platforms that support
12507 # interlibrary dependencies.
12508 # 'none' -- dependencies not supported.
12509 # `unknown' -- same as none, but documents that we really don't know.
12510 # 'pass_all' -- all dependencies passed with no checks.
12511 # 'test_compile' -- check by making test program.
12512 # 'file_magic [[regex]]' -- check by looking for files in library path
12513 # which responds to the $file_magic_cmd with a given extended regex.
12514 # If you have `file' or equivalent on your system and you're not sure
12515 # whether `pass_all' will *always* work, you probably want this one.
12519 lt_cv_deplibs_check_method=pass_all
12523 lt_cv_deplibs_check_method=pass_all
12527 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
12528 lt_cv_file_magic_cmd='/usr/bin/file -L'
12529 lt_cv_file_magic_test_file=/shlib/libc.so
12533 # func_win32_libid is a shell function defined in ltmain.sh
12534 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12535 lt_cv_file_magic_cmd='func_win32_libid'
12539 # Base MSYS/MinGW do not provide the 'file' command needed by
12540 # func_win32_libid shell function, so use a weaker test based on 'objdump',
12541 # unless we find 'file', for example because we are cross-compiling.
12542 if ( file / ) >/dev/null 2>&1; then
12543 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
12544 lt_cv_file_magic_cmd='func_win32_libid'
12546 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
12547 lt_cv_file_magic_cmd='$OBJDUMP -f'
12552 # use the weaker test based on 'objdump'. See mingw*.
12553 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
12554 lt_cv_file_magic_cmd='$OBJDUMP -f'
12557 darwin* | rhapsody*)
12558 lt_cv_deplibs_check_method=pass_all
12561 freebsd* | dragonfly*)
12562 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12565 # Not sure whether the presence of OpenBSD here was a mistake.
12566 # Let's accept both of them until this is cleared up.
12567 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
12568 lt_cv_file_magic_cmd=/usr/bin/file
12569 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
12573 lt_cv_deplibs_check_method=pass_all
12578 lt_cv_deplibs_check_method=pass_all
12581 hpux10.20* | hpux11*)
12582 lt_cv_file_magic_cmd=/usr/bin/file
12585 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
12586 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
12589 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]'
12590 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
12593 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
12594 lt_cv_file_magic_test_file=/usr/lib/libc.sl
12600 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
12601 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
12604 irix5* | irix6* | nonstopux*)
12606 *-32|*"-32 ") libmagic=32-bit;;
12607 *-n32|*"-n32 ") libmagic=N32;;
12608 *-64|*"-64 ") libmagic=64-bit;;
12609 *) libmagic=never-match;;
12611 lt_cv_deplibs_check_method=pass_all
12614 # This must be Linux ELF.
12615 linux* | k*bsd*-gnu)
12616 lt_cv_deplibs_check_method=pass_all
12620 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
12621 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12623 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
12628 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
12629 lt_cv_file_magic_cmd=/usr/bin/file
12630 lt_cv_file_magic_test_file=/usr/lib/libnls.so
12634 lt_cv_deplibs_check_method=pass_all
12638 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12639 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
12641 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
12645 osf3* | osf4* | osf5*)
12646 lt_cv_deplibs_check_method=pass_all
12650 lt_cv_deplibs_check_method=pass_all
12654 lt_cv_deplibs_check_method=pass_all
12657 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12658 lt_cv_deplibs_check_method=pass_all
12662 case $host_vendor in
12664 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]'
12665 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
12668 lt_cv_deplibs_check_method=pass_all
12671 lt_cv_file_magic_cmd='/bin/file'
12672 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
12675 lt_cv_file_magic_cmd='/bin/file'
12676 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
12677 lt_cv_file_magic_test_file=/lib/libc.so
12680 lt_cv_deplibs_check_method=pass_all
12683 lt_cv_deplibs_check_method=pass_all
12689 lt_cv_deplibs_check_method=pass_all
12694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
12695 $as_echo "$lt_cv_deplibs_check_method" >&6; }
12696 file_magic_cmd=$lt_cv_file_magic_cmd
12697 deplibs_check_method=$lt_cv_deplibs_check_method
12698 test -z "$deplibs_check_method" && deplibs_check_method=unknown
12711 if test -n "$ac_tool_prefix"; then
12712 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
12713 set dummy ${ac_tool_prefix}ar; ac_word=$2
12714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12715 $as_echo_n "checking for $ac_word... " >&6; }
12716 if test "${ac_cv_prog_AR+set}" = set; then :
12717 $as_echo_n "(cached) " >&6
12719 if test -n "$AR"; then
12720 ac_cv_prog_AR="$AR" # Let the user override the test.
12722 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12723 for as_dir in $PATH
12726 test -z "$as_dir" && as_dir=.
12727 for ac_exec_ext in '' $ac_executable_extensions; do
12728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12729 ac_cv_prog_AR="${ac_tool_prefix}ar"
12730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12740 if test -n "$AR"; then
12741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
12742 $as_echo "$AR" >&6; }
12744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12745 $as_echo "no" >&6; }
12750 if test -z "$ac_cv_prog_AR"; then
12752 # Extract the first word of "ar", so it can be a program name with args.
12753 set dummy ar; ac_word=$2
12754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12755 $as_echo_n "checking for $ac_word... " >&6; }
12756 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
12757 $as_echo_n "(cached) " >&6
12759 if test -n "$ac_ct_AR"; then
12760 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
12762 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12763 for as_dir in $PATH
12766 test -z "$as_dir" && as_dir=.
12767 for ac_exec_ext in '' $ac_executable_extensions; do
12768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12769 ac_cv_prog_ac_ct_AR="ar"
12770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12779 ac_ct_AR=$ac_cv_prog_ac_ct_AR
12780 if test -n "$ac_ct_AR"; then
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
12782 $as_echo "$ac_ct_AR" >&6; }
12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12785 $as_echo "no" >&6; }
12788 if test "x$ac_ct_AR" = x; then
12791 case $cross_compiling:$ac_tool_warned in
12793 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12794 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12795 ac_tool_warned=yes ;;
12800 AR="$ac_cv_prog_AR"
12803 test -z "$AR" && AR=ar
12804 test -z "$AR_FLAGS" && AR_FLAGS=cru
12816 if test -n "$ac_tool_prefix"; then
12817 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
12818 set dummy ${ac_tool_prefix}strip; ac_word=$2
12819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12820 $as_echo_n "checking for $ac_word... " >&6; }
12821 if test "${ac_cv_prog_STRIP+set}" = set; then :
12822 $as_echo_n "(cached) " >&6
12824 if test -n "$STRIP"; then
12825 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
12827 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12828 for as_dir in $PATH
12831 test -z "$as_dir" && as_dir=.
12832 for ac_exec_ext in '' $ac_executable_extensions; do
12833 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12834 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
12835 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12844 STRIP=$ac_cv_prog_STRIP
12845 if test -n "$STRIP"; then
12846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
12847 $as_echo "$STRIP" >&6; }
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12850 $as_echo "no" >&6; }
12855 if test -z "$ac_cv_prog_STRIP"; then
12857 # Extract the first word of "strip", so it can be a program name with args.
12858 set dummy strip; ac_word=$2
12859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12860 $as_echo_n "checking for $ac_word... " >&6; }
12861 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
12862 $as_echo_n "(cached) " >&6
12864 if test -n "$ac_ct_STRIP"; then
12865 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
12867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12868 for as_dir in $PATH
12871 test -z "$as_dir" && as_dir=.
12872 for ac_exec_ext in '' $ac_executable_extensions; do
12873 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12874 ac_cv_prog_ac_ct_STRIP="strip"
12875 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12884 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
12885 if test -n "$ac_ct_STRIP"; then
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
12887 $as_echo "$ac_ct_STRIP" >&6; }
12889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12890 $as_echo "no" >&6; }
12893 if test "x$ac_ct_STRIP" = x; then
12896 case $cross_compiling:$ac_tool_warned in
12898 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12899 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12900 ac_tool_warned=yes ;;
12905 STRIP="$ac_cv_prog_STRIP"
12908 test -z "$STRIP" && STRIP=:
12915 if test -n "$ac_tool_prefix"; then
12916 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
12917 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
12918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12919 $as_echo_n "checking for $ac_word... " >&6; }
12920 if test "${ac_cv_prog_RANLIB+set}" = set; then :
12921 $as_echo_n "(cached) " >&6
12923 if test -n "$RANLIB"; then
12924 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
12926 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12927 for as_dir in $PATH
12930 test -z "$as_dir" && as_dir=.
12931 for ac_exec_ext in '' $ac_executable_extensions; do
12932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12933 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
12934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12943 RANLIB=$ac_cv_prog_RANLIB
12944 if test -n "$RANLIB"; then
12945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
12946 $as_echo "$RANLIB" >&6; }
12948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12949 $as_echo "no" >&6; }
12954 if test -z "$ac_cv_prog_RANLIB"; then
12955 ac_ct_RANLIB=$RANLIB
12956 # Extract the first word of "ranlib", so it can be a program name with args.
12957 set dummy ranlib; ac_word=$2
12958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
12959 $as_echo_n "checking for $ac_word... " >&6; }
12960 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
12961 $as_echo_n "(cached) " >&6
12963 if test -n "$ac_ct_RANLIB"; then
12964 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
12966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12967 for as_dir in $PATH
12970 test -z "$as_dir" && as_dir=.
12971 for ac_exec_ext in '' $ac_executable_extensions; do
12972 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12973 ac_cv_prog_ac_ct_RANLIB="ranlib"
12974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
12983 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
12984 if test -n "$ac_ct_RANLIB"; then
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
12986 $as_echo "$ac_ct_RANLIB" >&6; }
12988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12989 $as_echo "no" >&6; }
12992 if test "x$ac_ct_RANLIB" = x; then
12995 case $cross_compiling:$ac_tool_warned in
12997 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
12998 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
12999 ac_tool_warned=yes ;;
13001 RANLIB=$ac_ct_RANLIB
13004 RANLIB="$ac_cv_prog_RANLIB"
13007 test -z "$RANLIB" && RANLIB=:
13014 # Determine commands to create old-style static archives.
13015 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
13016 old_postinstall_cmds='chmod 644 $oldlib'
13017 old_postuninstall_cmds=
13019 if test -n "$RANLIB"; then
13022 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
13025 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
13028 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
13064 # If no C compiler was specified, use CC.
13067 # If no C compiler flags were specified, use CFLAGS.
13068 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
13070 # Allow CC to be a program name with arguments.
13074 # Check for command to grab the raw symbol name followed by C symbol from nm.
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
13076 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
13077 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
13078 $as_echo_n "(cached) " >&6
13081 # These are sane defaults that work on at least a few old systems.
13082 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
13084 # Character class describing NM global symbol codes.
13085 symcode='[BCDEGRST]'
13087 # Regexp to match symbols that can be accessed directly from C.
13088 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
13090 # Define system-specific variables.
13095 cygwin* | mingw* | pw32* | cegcc*)
13096 symcode='[ABCDGISTW]'
13099 if test "$host_cpu" = ia64; then
13100 symcode='[ABCDEGRST]'
13103 irix* | nonstopux*)
13104 symcode='[BCDEGRST]'
13107 symcode='[BCDEGQRST]'
13118 sysv5* | sco5v6* | unixware* | OpenUNIX*)
13126 # If we're using GNU nm, then use its standard symbol codes.
13127 case `$NM -V 2>&1` in
13128 *GNU* | *'with BFD'*)
13129 symcode='[ABCDGIRSTW]' ;;
13132 # Transform an extracted symbol line into a proper C declaration.
13133 # Some systems (esp. on ia64) link data and code symbols differently,
13134 # so use this general approach.
13135 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
13137 # Transform an extracted symbol line into symbol name and symbol address
13138 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
13139 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'"
13141 # Handle CRLF in mingw tool chain
13145 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
13149 # Try without a prefix underscore, then with it.
13150 for ac_symprfx in "" "_"; do
13152 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
13153 symxfrm="\\1 $ac_symprfx\\2 \\2"
13155 # Write the raw and C identifiers.
13156 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
13157 # Fake it for dumpbin and say T for any non-static function
13158 # and D for any global variable.
13159 # Also find C++ and __fastcall symbols from MSVC++,
13160 # which start with @ or ?.
13161 lt_cv_sys_global_symbol_pipe="$AWK '"\
13162 " {last_section=section; section=\$ 3};"\
13163 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
13164 " \$ 0!~/External *\|/{next};"\
13165 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
13166 " {if(hide[section]) next};"\
13167 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
13168 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
13169 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
13170 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
13171 " ' prfx=^$ac_symprfx"
13173 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
13176 # Check to see that the pipe works correctly.
13180 cat > conftest.$ac_ext <<_LT_EOF
13185 void nm_test_func(void);
13186 void nm_test_func(void){}
13190 int main(){nm_test_var='a';nm_test_func();return(0);}
13193 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13194 (eval $ac_compile) 2>&5
13196 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13197 test $ac_status = 0; }; then
13198 # Now try to grab the symbols.
13200 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
13201 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
13203 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13204 test $ac_status = 0; } && test -s "$nlist"; then
13205 # Try sorting and uniquifying the output.
13206 if sort "$nlist" | uniq > "$nlist"T; then
13207 mv -f "$nlist"T "$nlist"
13212 # Make sure that we snagged all the symbols we need.
13213 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
13214 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
13215 cat <<_LT_EOF > conftest.$ac_ext
13221 # Now generate the symbol file.
13222 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
13224 cat <<_LT_EOF >> conftest.$ac_ext
13226 /* The mapping between symbol names and symbols. */
13231 lt__PROGRAM__LTX_preloaded_symbols[] =
13233 { "@PROGRAM@", (void *) 0 },
13235 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
13236 cat <<\_LT_EOF >> conftest.$ac_ext
13240 /* This works around a problem in FreeBSD linker */
13241 #ifdef FREEBSD_WORKAROUND
13242 static const void *lt_preloaded_setup() {
13243 return lt__PROGRAM__LTX_preloaded_symbols;
13251 # Now try linking the two files.
13252 mv conftest.$ac_objext conftstm.$ac_objext
13253 lt_save_LIBS="$LIBS"
13254 lt_save_CFLAGS="$CFLAGS"
13255 LIBS="conftstm.$ac_objext"
13256 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
13257 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
13258 (eval $ac_link) 2>&5
13260 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13261 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
13264 LIBS="$lt_save_LIBS"
13265 CFLAGS="$lt_save_CFLAGS"
13267 echo "cannot find nm_test_func in $nlist" >&5
13270 echo "cannot find nm_test_var in $nlist" >&5
13273 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
13276 echo "$progname: failed program was:" >&5
13277 cat conftest.$ac_ext >&5
13279 rm -rf conftest* conftst*
13281 # Do not use the global_symbol_pipe unless it works.
13282 if test "$pipe_works" = yes; then
13285 lt_cv_sys_global_symbol_pipe=
13291 if test -z "$lt_cv_sys_global_symbol_pipe"; then
13292 lt_cv_sys_global_symbol_to_cdecl=
13294 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
13295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
13296 $as_echo "failed" >&6; }
13298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
13299 $as_echo "ok" >&6; }
13323 # Check whether --enable-libtool-lock was given.
13324 if test "${enable_libtool_lock+set}" = set; then :
13325 enableval=$enable_libtool_lock;
13328 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
13330 # Some flags need to be propagated to the compiler or linker for good
13334 # Find out which ABI we are using.
13335 echo 'int i;' > conftest.$ac_ext
13336 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13337 (eval $ac_compile) 2>&5
13339 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13340 test $ac_status = 0; }; then
13341 case `/usr/bin/file conftest.$ac_objext` in
13343 HPUX_IA64_MODE="32"
13346 HPUX_IA64_MODE="64"
13353 # Find out which ABI we are using.
13354 echo '#line 13354 "configure"' > conftest.$ac_ext
13355 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13356 (eval $ac_compile) 2>&5
13358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13359 test $ac_status = 0; }; then
13360 if test "$lt_cv_prog_gnu_ld" = yes; then
13361 case `/usr/bin/file conftest.$ac_objext` in
13363 LD="${LD-ld} -melf32bsmip"
13366 LD="${LD-ld} -melf32bmipn32"
13369 LD="${LD-ld} -melf64bmip"
13373 case `/usr/bin/file conftest.$ac_objext` in
13389 x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
13390 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
13391 # Find out which ABI we are using.
13392 echo 'int i;' > conftest.$ac_ext
13393 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13394 (eval $ac_compile) 2>&5
13396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13397 test $ac_status = 0; }; then
13398 case `/usr/bin/file conftest.o` in
13401 x86_64-*kfreebsd*-gnu)
13402 LD="${LD-ld} -m elf_i386_fbsd"
13405 LD="${LD-ld} -m elf_i386"
13407 ppc64-*linux*|powerpc64-*linux*)
13408 LD="${LD-ld} -m elf32ppclinux"
13411 LD="${LD-ld} -m elf_s390"
13414 LD="${LD-ld} -m elf32_sparc"
13420 x86_64-*kfreebsd*-gnu)
13421 LD="${LD-ld} -m elf_x86_64_fbsd"
13424 LD="${LD-ld} -m elf_x86_64"
13426 ppc*-*linux*|powerpc*-*linux*)
13427 LD="${LD-ld} -m elf64ppc"
13429 s390*-*linux*|s390*-*tpf*)
13430 LD="${LD-ld} -m elf64_s390"
13433 LD="${LD-ld} -m elf64_sparc"
13443 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
13444 SAVE_CFLAGS="$CFLAGS"
13445 CFLAGS="$CFLAGS -belf"
13446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
13447 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
13448 if test "${lt_cv_cc_needs_belf+set}" = set; then :
13449 $as_echo_n "(cached) " >&6
13452 ac_cpp='$CPP $CPPFLAGS'
13453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13458 /* end confdefs.h. */
13468 if ac_fn_c_try_link "$LINENO"; then :
13469 lt_cv_cc_needs_belf=yes
13471 lt_cv_cc_needs_belf=no
13473 rm -f core conftest.err conftest.$ac_objext \
13474 conftest$ac_exeext conftest.$ac_ext
13476 ac_cpp='$CPP $CPPFLAGS'
13477 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13478 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13479 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
13483 $as_echo "$lt_cv_cc_needs_belf" >&6; }
13484 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
13485 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
13486 CFLAGS="$SAVE_CFLAGS"
13490 # Find out which ABI we are using.
13491 echo 'int i;' > conftest.$ac_ext
13492 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
13493 (eval $ac_compile) 2>&5
13495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
13496 test $ac_status = 0; }; then
13497 case `/usr/bin/file conftest.o` in
13499 case $lt_cv_prog_gnu_ld in
13500 yes*) LD="${LD-ld} -m elf64_sparc" ;;
13502 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
13514 need_locks="$enable_libtool_lock"
13518 rhapsody* | darwin*)
13519 if test -n "$ac_tool_prefix"; then
13520 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
13521 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13523 $as_echo_n "checking for $ac_word... " >&6; }
13524 if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
13525 $as_echo_n "(cached) " >&6
13527 if test -n "$DSYMUTIL"; then
13528 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
13530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13531 for as_dir in $PATH
13534 test -z "$as_dir" && as_dir=.
13535 for ac_exec_ext in '' $ac_executable_extensions; do
13536 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13537 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
13538 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13547 DSYMUTIL=$ac_cv_prog_DSYMUTIL
13548 if test -n "$DSYMUTIL"; then
13549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
13550 $as_echo "$DSYMUTIL" >&6; }
13552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13553 $as_echo "no" >&6; }
13558 if test -z "$ac_cv_prog_DSYMUTIL"; then
13559 ac_ct_DSYMUTIL=$DSYMUTIL
13560 # Extract the first word of "dsymutil", so it can be a program name with args.
13561 set dummy dsymutil; ac_word=$2
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13563 $as_echo_n "checking for $ac_word... " >&6; }
13564 if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
13565 $as_echo_n "(cached) " >&6
13567 if test -n "$ac_ct_DSYMUTIL"; then
13568 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
13570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13571 for as_dir in $PATH
13574 test -z "$as_dir" && as_dir=.
13575 for ac_exec_ext in '' $ac_executable_extensions; do
13576 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13577 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
13578 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13587 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
13588 if test -n "$ac_ct_DSYMUTIL"; then
13589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
13590 $as_echo "$ac_ct_DSYMUTIL" >&6; }
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13593 $as_echo "no" >&6; }
13596 if test "x$ac_ct_DSYMUTIL" = x; then
13599 case $cross_compiling:$ac_tool_warned in
13601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13602 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13603 ac_tool_warned=yes ;;
13605 DSYMUTIL=$ac_ct_DSYMUTIL
13608 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
13611 if test -n "$ac_tool_prefix"; then
13612 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
13613 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
13614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13615 $as_echo_n "checking for $ac_word... " >&6; }
13616 if test "${ac_cv_prog_NMEDIT+set}" = set; then :
13617 $as_echo_n "(cached) " >&6
13619 if test -n "$NMEDIT"; then
13620 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
13622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13623 for as_dir in $PATH
13626 test -z "$as_dir" && as_dir=.
13627 for ac_exec_ext in '' $ac_executable_extensions; do
13628 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13629 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
13630 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13639 NMEDIT=$ac_cv_prog_NMEDIT
13640 if test -n "$NMEDIT"; then
13641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
13642 $as_echo "$NMEDIT" >&6; }
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13645 $as_echo "no" >&6; }
13650 if test -z "$ac_cv_prog_NMEDIT"; then
13651 ac_ct_NMEDIT=$NMEDIT
13652 # Extract the first word of "nmedit", so it can be a program name with args.
13653 set dummy nmedit; ac_word=$2
13654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13655 $as_echo_n "checking for $ac_word... " >&6; }
13656 if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
13657 $as_echo_n "(cached) " >&6
13659 if test -n "$ac_ct_NMEDIT"; then
13660 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
13662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13663 for as_dir in $PATH
13666 test -z "$as_dir" && as_dir=.
13667 for ac_exec_ext in '' $ac_executable_extensions; do
13668 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13669 ac_cv_prog_ac_ct_NMEDIT="nmedit"
13670 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13679 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
13680 if test -n "$ac_ct_NMEDIT"; then
13681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
13682 $as_echo "$ac_ct_NMEDIT" >&6; }
13684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13685 $as_echo "no" >&6; }
13688 if test "x$ac_ct_NMEDIT" = x; then
13691 case $cross_compiling:$ac_tool_warned in
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13694 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13695 ac_tool_warned=yes ;;
13697 NMEDIT=$ac_ct_NMEDIT
13700 NMEDIT="$ac_cv_prog_NMEDIT"
13703 if test -n "$ac_tool_prefix"; then
13704 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
13705 set dummy ${ac_tool_prefix}lipo; ac_word=$2
13706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13707 $as_echo_n "checking for $ac_word... " >&6; }
13708 if test "${ac_cv_prog_LIPO+set}" = set; then :
13709 $as_echo_n "(cached) " >&6
13711 if test -n "$LIPO"; then
13712 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
13714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13715 for as_dir in $PATH
13718 test -z "$as_dir" && as_dir=.
13719 for ac_exec_ext in '' $ac_executable_extensions; do
13720 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13721 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
13722 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13731 LIPO=$ac_cv_prog_LIPO
13732 if test -n "$LIPO"; then
13733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
13734 $as_echo "$LIPO" >&6; }
13736 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13737 $as_echo "no" >&6; }
13742 if test -z "$ac_cv_prog_LIPO"; then
13744 # Extract the first word of "lipo", so it can be a program name with args.
13745 set dummy lipo; ac_word=$2
13746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13747 $as_echo_n "checking for $ac_word... " >&6; }
13748 if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
13749 $as_echo_n "(cached) " >&6
13751 if test -n "$ac_ct_LIPO"; then
13752 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
13754 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13755 for as_dir in $PATH
13758 test -z "$as_dir" && as_dir=.
13759 for ac_exec_ext in '' $ac_executable_extensions; do
13760 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13761 ac_cv_prog_ac_ct_LIPO="lipo"
13762 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13771 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
13772 if test -n "$ac_ct_LIPO"; then
13773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
13774 $as_echo "$ac_ct_LIPO" >&6; }
13776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13777 $as_echo "no" >&6; }
13780 if test "x$ac_ct_LIPO" = x; then
13783 case $cross_compiling:$ac_tool_warned in
13785 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13786 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13787 ac_tool_warned=yes ;;
13792 LIPO="$ac_cv_prog_LIPO"
13795 if test -n "$ac_tool_prefix"; then
13796 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
13797 set dummy ${ac_tool_prefix}otool; ac_word=$2
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13799 $as_echo_n "checking for $ac_word... " >&6; }
13800 if test "${ac_cv_prog_OTOOL+set}" = set; then :
13801 $as_echo_n "(cached) " >&6
13803 if test -n "$OTOOL"; then
13804 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
13806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13807 for as_dir in $PATH
13810 test -z "$as_dir" && as_dir=.
13811 for ac_exec_ext in '' $ac_executable_extensions; do
13812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13813 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
13814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13823 OTOOL=$ac_cv_prog_OTOOL
13824 if test -n "$OTOOL"; then
13825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
13826 $as_echo "$OTOOL" >&6; }
13828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13829 $as_echo "no" >&6; }
13834 if test -z "$ac_cv_prog_OTOOL"; then
13836 # Extract the first word of "otool", so it can be a program name with args.
13837 set dummy otool; ac_word=$2
13838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13839 $as_echo_n "checking for $ac_word... " >&6; }
13840 if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
13841 $as_echo_n "(cached) " >&6
13843 if test -n "$ac_ct_OTOOL"; then
13844 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
13846 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13847 for as_dir in $PATH
13850 test -z "$as_dir" && as_dir=.
13851 for ac_exec_ext in '' $ac_executable_extensions; do
13852 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13853 ac_cv_prog_ac_ct_OTOOL="otool"
13854 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13863 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
13864 if test -n "$ac_ct_OTOOL"; then
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
13866 $as_echo "$ac_ct_OTOOL" >&6; }
13868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13869 $as_echo "no" >&6; }
13872 if test "x$ac_ct_OTOOL" = x; then
13875 case $cross_compiling:$ac_tool_warned in
13877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13878 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13879 ac_tool_warned=yes ;;
13884 OTOOL="$ac_cv_prog_OTOOL"
13887 if test -n "$ac_tool_prefix"; then
13888 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
13889 set dummy ${ac_tool_prefix}otool64; ac_word=$2
13890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13891 $as_echo_n "checking for $ac_word... " >&6; }
13892 if test "${ac_cv_prog_OTOOL64+set}" = set; then :
13893 $as_echo_n "(cached) " >&6
13895 if test -n "$OTOOL64"; then
13896 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
13898 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13899 for as_dir in $PATH
13902 test -z "$as_dir" && as_dir=.
13903 for ac_exec_ext in '' $ac_executable_extensions; do
13904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13905 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
13906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13915 OTOOL64=$ac_cv_prog_OTOOL64
13916 if test -n "$OTOOL64"; then
13917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
13918 $as_echo "$OTOOL64" >&6; }
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13921 $as_echo "no" >&6; }
13926 if test -z "$ac_cv_prog_OTOOL64"; then
13927 ac_ct_OTOOL64=$OTOOL64
13928 # Extract the first word of "otool64", so it can be a program name with args.
13929 set dummy otool64; ac_word=$2
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13931 $as_echo_n "checking for $ac_word... " >&6; }
13932 if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
13933 $as_echo_n "(cached) " >&6
13935 if test -n "$ac_ct_OTOOL64"; then
13936 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
13938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13939 for as_dir in $PATH
13942 test -z "$as_dir" && as_dir=.
13943 for ac_exec_ext in '' $ac_executable_extensions; do
13944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13945 ac_cv_prog_ac_ct_OTOOL64="otool64"
13946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13955 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
13956 if test -n "$ac_ct_OTOOL64"; then
13957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
13958 $as_echo "$ac_ct_OTOOL64" >&6; }
13960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13961 $as_echo "no" >&6; }
13964 if test "x$ac_ct_OTOOL64" = x; then
13967 case $cross_compiling:$ac_tool_warned in
13969 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13970 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13971 ac_tool_warned=yes ;;
13973 OTOOL64=$ac_ct_OTOOL64
13976 OTOOL64="$ac_cv_prog_OTOOL64"
14005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
14006 $as_echo_n "checking for -single_module linker flag... " >&6; }
14007 if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
14008 $as_echo_n "(cached) " >&6
14010 lt_cv_apple_cc_single_mod=no
14011 if test -z "${LT_MULTI_MODULE}"; then
14012 # By default we will add the -single_module flag. You can override
14013 # by either setting the environment variable LT_MULTI_MODULE
14014 # non-empty at configure time, or by adding -multi_module to the
14016 rm -rf libconftest.dylib*
14017 echo "int foo(void){return 1;}" > conftest.c
14018 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14019 -dynamiclib -Wl,-single_module conftest.c" >&5
14020 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
14021 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
14023 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
14024 lt_cv_apple_cc_single_mod=yes
14026 cat conftest.err >&5
14028 rm -rf libconftest.dylib*
14032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
14033 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
14034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
14035 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
14036 if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
14037 $as_echo_n "(cached) " >&6
14039 lt_cv_ld_exported_symbols_list=no
14040 save_LDFLAGS=$LDFLAGS
14041 echo "_main" > conftest.sym
14042 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
14043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14044 /* end confdefs.h. */
14054 if ac_fn_c_try_link "$LINENO"; then :
14055 lt_cv_ld_exported_symbols_list=yes
14057 lt_cv_ld_exported_symbols_list=no
14059 rm -f core conftest.err conftest.$ac_objext \
14060 conftest$ac_exeext conftest.$ac_ext
14061 LDFLAGS="$save_LDFLAGS"
14064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
14065 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
14067 rhapsody* | darwin1.[012])
14068 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
14070 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14071 darwin*) # darwin 5.x on
14072 # if running on 10.5 or later, the deployment target defaults
14073 # to the OS version, if on x86, and 10.4, the deployment
14074 # target defaults to 10.4. Don't you love it?
14075 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
14076 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
14077 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14079 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
14081 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
14085 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
14086 _lt_dar_single_mod='$single_module'
14088 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
14089 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
14091 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
14093 if test "$DSYMUTIL" != ":"; then
14094 _lt_dsymutil='~$DSYMUTIL $lib || :'
14101 for ac_header in dlfcn.h
14103 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
14105 if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
14106 cat >>confdefs.h <<_ACEOF
14107 #define HAVE_DLFCN_H 1
14117 ac_cpp='$CXXCPP $CPPFLAGS'
14118 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14119 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14120 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14121 if test -z "$CXX"; then
14122 if test -n "$CCC"; then
14125 if test -n "$ac_tool_prefix"; then
14126 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
14128 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14129 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14131 $as_echo_n "checking for $ac_word... " >&6; }
14132 if test "${ac_cv_prog_CXX+set}" = set; then :
14133 $as_echo_n "(cached) " >&6
14135 if test -n "$CXX"; then
14136 ac_cv_prog_CXX="$CXX" # Let the user override the test.
14138 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14139 for as_dir in $PATH
14142 test -z "$as_dir" && as_dir=.
14143 for ac_exec_ext in '' $ac_executable_extensions; do
14144 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14145 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
14146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14155 CXX=$ac_cv_prog_CXX
14156 if test -n "$CXX"; then
14157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
14158 $as_echo "$CXX" >&6; }
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14161 $as_echo "no" >&6; }
14165 test -n "$CXX" && break
14168 if test -z "$CXX"; then
14170 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
14172 # Extract the first word of "$ac_prog", so it can be a program name with args.
14173 set dummy $ac_prog; ac_word=$2
14174 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14175 $as_echo_n "checking for $ac_word... " >&6; }
14176 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
14177 $as_echo_n "(cached) " >&6
14179 if test -n "$ac_ct_CXX"; then
14180 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
14182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14183 for as_dir in $PATH
14186 test -z "$as_dir" && as_dir=.
14187 for ac_exec_ext in '' $ac_executable_extensions; do
14188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14189 ac_cv_prog_ac_ct_CXX="$ac_prog"
14190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14199 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
14200 if test -n "$ac_ct_CXX"; then
14201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
14202 $as_echo "$ac_ct_CXX" >&6; }
14204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14205 $as_echo "no" >&6; }
14209 test -n "$ac_ct_CXX" && break
14212 if test "x$ac_ct_CXX" = x; then
14215 case $cross_compiling:$ac_tool_warned in
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14218 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14219 ac_tool_warned=yes ;;
14227 # Provide some information about the compiler.
14228 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
14231 for ac_option in --version -v -V -qversion; do
14232 { { ac_try="$ac_compiler $ac_option >&5"
14233 case "(($ac_try" in
14234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14235 *) ac_try_echo=$ac_try;;
14237 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14238 $as_echo "$ac_try_echo"; } >&5
14239 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14241 if test -s conftest.err; then
14243 ... rest of stderr output deleted ...
14244 10q' conftest.err >conftest.er1
14245 cat conftest.er1 >&5
14247 rm -f conftest.er1 conftest.err
14248 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14249 test $ac_status = 0; }
14252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
14253 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
14254 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
14255 $as_echo_n "(cached) " >&6
14257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14258 /* end confdefs.h. */
14271 if ac_fn_cxx_try_compile "$LINENO"; then :
14272 ac_compiler_gnu=yes
14276 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14277 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
14280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
14281 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
14282 if test $ac_compiler_gnu = yes; then
14287 ac_test_CXXFLAGS=${CXXFLAGS+set}
14288 ac_save_CXXFLAGS=$CXXFLAGS
14289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
14290 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
14291 if test "${ac_cv_prog_cxx_g+set}" = set; then :
14292 $as_echo_n "(cached) " >&6
14294 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
14295 ac_cxx_werror_flag=yes
14296 ac_cv_prog_cxx_g=no
14298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14299 /* end confdefs.h. */
14309 if ac_fn_cxx_try_compile "$LINENO"; then :
14310 ac_cv_prog_cxx_g=yes
14313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14314 /* end confdefs.h. */
14324 if ac_fn_cxx_try_compile "$LINENO"; then :
14327 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14329 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14330 /* end confdefs.h. */
14340 if ac_fn_cxx_try_compile "$LINENO"; then :
14341 ac_cv_prog_cxx_g=yes
14343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14345 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14348 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
14350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
14351 $as_echo "$ac_cv_prog_cxx_g" >&6; }
14352 if test "$ac_test_CXXFLAGS" = set; then
14353 CXXFLAGS=$ac_save_CXXFLAGS
14354 elif test $ac_cv_prog_cxx_g = yes; then
14355 if test "$GXX" = yes; then
14361 if test "$GXX" = yes; then
14368 ac_cpp='$CPP $CPPFLAGS'
14369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14373 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
14374 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
14375 (test "X$CXX" != "Xg++"))) ; then
14377 ac_cpp='$CXXCPP $CPPFLAGS'
14378 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14379 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14380 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
14382 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
14383 if test -z "$CXXCPP"; then
14384 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
14385 $as_echo_n "(cached) " >&6
14387 # Double quotes because CXXCPP needs to be expanded
14388 for CXXCPP in "$CXX -E" "/lib/cpp"
14390 ac_preproc_ok=false
14391 for ac_cxx_preproc_warn_flag in '' yes
14393 # Use a header file that comes with gcc, so configuring glibc
14394 # with a fresh cross-compiler works.
14395 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14396 # <limits.h> exists even on freestanding compilers.
14397 # On the NeXT, cc -E runs the code through the compiler's parser,
14398 # not just through cpp. "Syntax error" is here to catch this case.
14399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14400 /* end confdefs.h. */
14402 # include <limits.h>
14404 # include <assert.h>
14408 if ac_fn_cxx_try_cpp "$LINENO"; then :
14411 # Broken: fails on valid input.
14414 rm -f conftest.err conftest.$ac_ext
14416 # OK, works on sane cases. Now check whether nonexistent headers
14417 # can be detected and how.
14418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14419 /* end confdefs.h. */
14420 #include <ac_nonexistent.h>
14422 if ac_fn_cxx_try_cpp "$LINENO"; then :
14423 # Broken: success on invalid input.
14426 # Passes both tests.
14430 rm -f conftest.err conftest.$ac_ext
14433 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14434 rm -f conftest.err conftest.$ac_ext
14435 if $ac_preproc_ok; then :
14440 ac_cv_prog_CXXCPP=$CXXCPP
14443 CXXCPP=$ac_cv_prog_CXXCPP
14445 ac_cv_prog_CXXCPP=$CXXCPP
14447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
14448 $as_echo "$CXXCPP" >&6; }
14449 ac_preproc_ok=false
14450 for ac_cxx_preproc_warn_flag in '' yes
14452 # Use a header file that comes with gcc, so configuring glibc
14453 # with a fresh cross-compiler works.
14454 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14455 # <limits.h> exists even on freestanding compilers.
14456 # On the NeXT, cc -E runs the code through the compiler's parser,
14457 # not just through cpp. "Syntax error" is here to catch this case.
14458 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14459 /* end confdefs.h. */
14461 # include <limits.h>
14463 # include <assert.h>
14467 if ac_fn_cxx_try_cpp "$LINENO"; then :
14470 # Broken: fails on valid input.
14473 rm -f conftest.err conftest.$ac_ext
14475 # OK, works on sane cases. Now check whether nonexistent headers
14476 # can be detected and how.
14477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14478 /* end confdefs.h. */
14479 #include <ac_nonexistent.h>
14481 if ac_fn_cxx_try_cpp "$LINENO"; then :
14482 # Broken: success on invalid input.
14485 # Passes both tests.
14489 rm -f conftest.err conftest.$ac_ext
14492 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14493 rm -f conftest.err conftest.$ac_ext
14494 if $ac_preproc_ok; then :
14497 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14498 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14499 _lt_caught_CXX_error=yes; }
14503 ac_cpp='$CPP $CPPFLAGS'
14504 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14505 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14506 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14509 _lt_caught_CXX_error=yes
14517 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
14518 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14519 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
14520 if test -n "$ac_tool_prefix"; then
14521 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
14523 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14524 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14525 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14526 $as_echo_n "checking for $ac_word... " >&6; }
14527 if test "${ac_cv_prog_F77+set}" = set; then :
14528 $as_echo_n "(cached) " >&6
14530 if test -n "$F77"; then
14531 ac_cv_prog_F77="$F77" # Let the user override the test.
14533 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14534 for as_dir in $PATH
14537 test -z "$as_dir" && as_dir=.
14538 for ac_exec_ext in '' $ac_executable_extensions; do
14539 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14540 ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
14541 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14550 F77=$ac_cv_prog_F77
14551 if test -n "$F77"; then
14552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $F77" >&5
14553 $as_echo "$F77" >&6; }
14555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14556 $as_echo "no" >&6; }
14560 test -n "$F77" && break
14563 if test -z "$F77"; then
14565 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
14567 # Extract the first word of "$ac_prog", so it can be a program name with args.
14568 set dummy $ac_prog; ac_word=$2
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14570 $as_echo_n "checking for $ac_word... " >&6; }
14571 if test "${ac_cv_prog_ac_ct_F77+set}" = set; then :
14572 $as_echo_n "(cached) " >&6
14574 if test -n "$ac_ct_F77"; then
14575 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
14577 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14578 for as_dir in $PATH
14581 test -z "$as_dir" && as_dir=.
14582 for ac_exec_ext in '' $ac_executable_extensions; do
14583 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14584 ac_cv_prog_ac_ct_F77="$ac_prog"
14585 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14594 ac_ct_F77=$ac_cv_prog_ac_ct_F77
14595 if test -n "$ac_ct_F77"; then
14596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_F77" >&5
14597 $as_echo "$ac_ct_F77" >&6; }
14599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14600 $as_echo "no" >&6; }
14604 test -n "$ac_ct_F77" && break
14607 if test "x$ac_ct_F77" = x; then
14610 case $cross_compiling:$ac_tool_warned in
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14613 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14614 ac_tool_warned=yes ;;
14621 # Provide some information about the compiler.
14622 $as_echo "$as_me:${as_lineno-$LINENO}: checking for Fortran 77 compiler version" >&5
14625 for ac_option in --version -v -V -qversion; do
14626 { { ac_try="$ac_compiler $ac_option >&5"
14627 case "(($ac_try" in
14628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14629 *) ac_try_echo=$ac_try;;
14631 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14632 $as_echo "$ac_try_echo"; } >&5
14633 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14635 if test -s conftest.err; then
14637 ... rest of stderr output deleted ...
14638 10q' conftest.err >conftest.er1
14639 cat conftest.er1 >&5
14641 rm -f conftest.er1 conftest.err
14642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14643 test $ac_status = 0; }
14647 # If we don't use `.F' as extension, the preprocessor is not run on the
14648 # input file. (Note that this only needs to work for GNU compilers.)
14649 ac_save_ext=$ac_ext
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU Fortran 77 compiler" >&5
14652 $as_echo_n "checking whether we are using the GNU Fortran 77 compiler... " >&6; }
14653 if test "${ac_cv_f77_compiler_gnu+set}" = set; then :
14654 $as_echo_n "(cached) " >&6
14656 cat > conftest.$ac_ext <<_ACEOF
14664 if ac_fn_f77_try_compile "$LINENO"; then :
14665 ac_compiler_gnu=yes
14669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14670 ac_cv_f77_compiler_gnu=$ac_compiler_gnu
14673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_f77_compiler_gnu" >&5
14674 $as_echo "$ac_cv_f77_compiler_gnu" >&6; }
14675 ac_ext=$ac_save_ext
14676 ac_test_FFLAGS=${FFLAGS+set}
14677 ac_save_FFLAGS=$FFLAGS
14679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $F77 accepts -g" >&5
14680 $as_echo_n "checking whether $F77 accepts -g... " >&6; }
14681 if test "${ac_cv_prog_f77_g+set}" = set; then :
14682 $as_echo_n "(cached) " >&6
14685 cat > conftest.$ac_ext <<_ACEOF
14690 if ac_fn_f77_try_compile "$LINENO"; then :
14691 ac_cv_prog_f77_g=yes
14693 ac_cv_prog_f77_g=no
14695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_f77_g" >&5
14699 $as_echo "$ac_cv_prog_f77_g" >&6; }
14700 if test "$ac_test_FFLAGS" = set; then
14701 FFLAGS=$ac_save_FFLAGS
14702 elif test $ac_cv_prog_f77_g = yes; then
14703 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
14709 if test "x$ac_cv_f77_compiler_gnu" = xyes; then
14716 if test $ac_compiler_gnu = yes; then
14722 ac_cpp='$CPP $CPPFLAGS'
14723 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14724 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14725 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14727 if test -z "$F77" || test "X$F77" = "Xno"; then
14728 _lt_disable_F77=yes
14743 # Check whether --enable-shared was given.
14744 if test "${enable_shared+set}" = set; then :
14745 enableval=$enable_shared; p=${PACKAGE-default}
14747 yes) enable_shared=yes ;;
14748 no) enable_shared=no ;;
14751 # Look at the argument we got. We use all the common list separators.
14752 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14753 for pkg in $enableval; do
14755 if test "X$pkg" = "X$p"; then
14774 # Check whether --enable-static was given.
14775 if test "${enable_static+set}" = set; then :
14776 enableval=$enable_static; p=${PACKAGE-default}
14778 yes) enable_static=yes ;;
14779 no) enable_static=no ;;
14782 # Look at the argument we got. We use all the common list separators.
14783 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14784 for pkg in $enableval; do
14786 if test "X$pkg" = "X$p"; then
14806 # Check whether --with-pic was given.
14807 if test "${with_pic+set}" = set; then :
14808 withval=$with_pic; pic_mode="$withval"
14814 test -z "$pic_mode" && pic_mode=default
14822 # Check whether --enable-fast-install was given.
14823 if test "${enable_fast_install+set}" = set; then :
14824 enableval=$enable_fast_install; p=${PACKAGE-default}
14826 yes) enable_fast_install=yes ;;
14827 no) enable_fast_install=no ;;
14829 enable_fast_install=no
14830 # Look at the argument we got. We use all the common list separators.
14831 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14832 for pkg in $enableval; do
14834 if test "X$pkg" = "X$p"; then
14835 enable_fast_install=yes
14842 enable_fast_install=yes
14855 # This can be used to rebuild libtool when needed
14856 LIBTOOL_DEPS="$ltmain"
14858 # Always use our own libtool.
14859 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
14885 test -z "$LN_S" && LN_S="ln -s"
14900 if test -n "${ZSH_VERSION+set}" ; then
14901 setopt NO_GLOB_SUBST
14904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
14905 $as_echo_n "checking for objdir... " >&6; }
14906 if test "${lt_cv_objdir+set}" = set; then :
14907 $as_echo_n "(cached) " >&6
14909 rm -f .libs 2>/dev/null
14910 mkdir .libs 2>/dev/null
14911 if test -d .libs; then
14914 # MS-DOS does not allow filenames that begin with a dot.
14917 rmdir .libs 2>/dev/null
14919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
14920 $as_echo "$lt_cv_objdir" >&6; }
14921 objdir=$lt_cv_objdir
14927 cat >>confdefs.h <<_ACEOF
14928 #define LT_OBJDIR "$lt_cv_objdir/"
14949 # AIX sometimes has problems with the GCC collect2 program. For some
14950 # reason, if we set the COLLECT_NAMES environment variable, the problems
14951 # vanish in a puff of smoke.
14952 if test "X${COLLECT_NAMES+set}" != Xset; then
14954 export COLLECT_NAMES
14959 # Sed substitution that helps us do robust quoting. It backslashifies
14960 # metacharacters that are still active within double-quoted strings.
14961 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
14963 # Same as above, but do not quote variable references.
14964 double_quote_subst='s/\(["`\\]\)/\\\1/g'
14966 # Sed substitution to delay expansion of an escaped shell variable in a
14967 # double_quote_subst'ed string.
14968 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
14970 # Sed substitution to delay expansion of an escaped single quote.
14971 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
14973 # Sed substitution to avoid accidental globbing in evaled expressions
14974 no_glob_subst='s/\*/\\\*/g'
14976 # Global variables:
14978 can_build_shared=yes
14980 # All known linkers require a `.a' archive for static linking (except MSVC,
14981 # which needs '.lib').
14984 with_gnu_ld="$lt_cv_prog_gnu_ld"
14987 old_CFLAGS="$CFLAGS"
14989 # Set sane defaults for various variables
14990 test -z "$CC" && CC=cc
14991 test -z "$LTCC" && LTCC=$CC
14992 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
14993 test -z "$LD" && LD=ld
14994 test -z "$ac_objext" && ac_objext=o
14996 for cc_temp in $compiler""; do
14998 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
14999 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
15004 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15007 # Only perform the check for file, if the check method requires it
15008 test -z "$MAGIC_CMD" && MAGIC_CMD=file
15009 case $deplibs_check_method in
15011 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
15012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
15013 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
15014 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15015 $as_echo_n "(cached) " >&6
15019 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15022 lt_save_MAGIC_CMD="$MAGIC_CMD"
15023 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15024 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15025 for ac_dir in $ac_dummy; do
15027 test -z "$ac_dir" && ac_dir=.
15028 if test -f $ac_dir/${ac_tool_prefix}file; then
15029 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
15030 if test -n "$file_magic_test_file"; then
15031 case $deplibs_check_method in
15033 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15034 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15035 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15036 $EGREP "$file_magic_regex" > /dev/null; then
15041 *** Warning: the command libtool uses to detect shared libraries,
15042 *** $file_magic_cmd, produces output that libtool cannot recognize.
15043 *** The result is that libtool may fail to recognize shared libraries
15044 *** as such. This will affect the creation of libtool libraries that
15045 *** depend on shared libraries, but programs linked with such libtool
15046 *** libraries will work regardless of this problem. Nevertheless, you
15047 *** may want to report the problem to your system manager and/or to
15048 *** bug-libtool@gnu.org
15058 MAGIC_CMD="$lt_save_MAGIC_CMD"
15063 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15064 if test -n "$MAGIC_CMD"; then
15065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15066 $as_echo "$MAGIC_CMD" >&6; }
15068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15069 $as_echo "no" >&6; }
15076 if test -z "$lt_cv_path_MAGIC_CMD"; then
15077 if test -n "$ac_tool_prefix"; then
15078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
15079 $as_echo_n "checking for file... " >&6; }
15080 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
15081 $as_echo_n "(cached) " >&6
15085 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
15088 lt_save_MAGIC_CMD="$MAGIC_CMD"
15089 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15090 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
15091 for ac_dir in $ac_dummy; do
15093 test -z "$ac_dir" && ac_dir=.
15094 if test -f $ac_dir/file; then
15095 lt_cv_path_MAGIC_CMD="$ac_dir/file"
15096 if test -n "$file_magic_test_file"; then
15097 case $deplibs_check_method in
15099 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
15100 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15101 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
15102 $EGREP "$file_magic_regex" > /dev/null; then
15107 *** Warning: the command libtool uses to detect shared libraries,
15108 *** $file_magic_cmd, produces output that libtool cannot recognize.
15109 *** The result is that libtool may fail to recognize shared libraries
15110 *** as such. This will affect the creation of libtool libraries that
15111 *** depend on shared libraries, but programs linked with such libtool
15112 *** libraries will work regardless of this problem. Nevertheless, you
15113 *** may want to report the problem to your system manager and/or to
15114 *** bug-libtool@gnu.org
15124 MAGIC_CMD="$lt_save_MAGIC_CMD"
15129 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
15130 if test -n "$MAGIC_CMD"; then
15131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
15132 $as_echo "$MAGIC_CMD" >&6; }
15134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15135 $as_echo "no" >&6; }
15148 # Use C for the default configuration in the libtool script
15152 ac_cpp='$CPP $CPPFLAGS'
15153 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15154 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15155 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15158 # Source file extension for C test sources.
15161 # Object file extension for compiled C test sources.
15165 # Code to be used in simple compile tests
15166 lt_simple_compile_test_code="int some_variable = 0;"
15168 # Code to be used in simple link tests
15169 lt_simple_link_test_code='int main(){return(0);}'
15177 # If no C compiler was specified, use CC.
15180 # If no C compiler flags were specified, use CFLAGS.
15181 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
15183 # Allow CC to be a program name with arguments.
15186 # Save the default compiler, since it gets overwritten when the other
15187 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
15188 compiler_DEFAULT=$CC
15190 # save warnings/boilerplate of simple test code
15191 ac_outfile=conftest.$ac_objext
15192 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
15193 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15194 _lt_compiler_boilerplate=`cat conftest.err`
15197 ac_outfile=conftest.$ac_objext
15198 echo "$lt_simple_link_test_code" >conftest.$ac_ext
15199 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
15200 _lt_linker_boilerplate=`cat conftest.err`
15204 if test -n "$compiler"; then
15206 lt_prog_compiler_no_builtin_flag=
15208 if test "$GCC" = yes; then
15209 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
15212 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
15213 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
15214 $as_echo_n "(cached) " >&6
15216 lt_cv_prog_compiler_rtti_exceptions=no
15217 ac_outfile=conftest.$ac_objext
15218 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15219 lt_compiler_flag="-fno-rtti -fno-exceptions"
15220 # Insert the option either (1) after the last *FLAGS variable, or
15221 # (2) before a word containing "conftest.", or (3) at the end.
15222 # Note that $ac_compile itself does not contain backslashes and begins
15223 # with a dollar sign (not a hyphen), so the echo should work correctly.
15224 # The option is referenced via a variable to avoid confusing sed.
15225 lt_compile=`echo "$ac_compile" | $SED \
15226 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15227 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15228 -e 's:$: $lt_compiler_flag:'`
15229 (eval echo "\"\$as_me:15229: $lt_compile\"" >&5)
15230 (eval "$lt_compile" 2>conftest.err)
15232 cat conftest.err >&5
15233 echo "$as_me:15233: \$? = $ac_status" >&5
15234 if (exit $ac_status) && test -s "$ac_outfile"; then
15235 # The compiler can only warn and ignore the option if not recognized
15236 # So say no if there are warnings other than the usual output.
15237 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15238 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15239 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15240 lt_cv_prog_compiler_rtti_exceptions=yes
15246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
15247 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
15249 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
15250 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
15262 lt_prog_compiler_wl=
15263 lt_prog_compiler_pic=
15264 lt_prog_compiler_static=
15266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
15267 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
15269 if test "$GCC" = yes; then
15270 lt_prog_compiler_wl='-Wl,'
15271 lt_prog_compiler_static='-static'
15275 # All AIX code is PIC.
15276 if test "$host_cpu" = ia64; then
15277 # AIX 5 now supports IA64 processor
15278 lt_prog_compiler_static='-Bstatic'
15285 # see comment about AmigaOS4 .so support
15286 lt_prog_compiler_pic='-fPIC'
15289 # FIXME: we need at least 68020 code to build shared libraries, but
15290 # adding the `-m68020' flag to GCC prevents building anything better,
15292 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
15297 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
15298 # PIC is the default for these OSes.
15301 mingw* | cygwin* | pw32* | os2* | cegcc*)
15302 # This hack is so that the source file can tell whether it is being
15303 # built for inclusion in a dll (and should export symbols for example).
15304 # Although the cygwin gcc ignores -fPIC, still need this for old-style
15305 # (--disable-auto-import) libraries
15306 lt_prog_compiler_pic='-DDLL_EXPORT'
15309 darwin* | rhapsody*)
15310 # PIC is the default on this platform
15311 # Common symbols not allowed in MH_DYLIB files
15312 lt_prog_compiler_pic='-fno-common'
15316 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
15317 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
15318 # sets the default TLS model and affects inlining.
15324 lt_prog_compiler_pic='-fPIC'
15330 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
15331 # Instead, we relocate shared libraries at runtime.
15335 # Just because we use GCC doesn't mean we suddenly get shared libraries
15336 # on systems that don't support them.
15337 lt_prog_compiler_can_build_shared=no
15342 # QNX uses GNU C++, but need to define -shared option too, otherwise
15343 # it will coredump.
15344 lt_prog_compiler_pic='-fPIC -shared'
15348 if test -d /usr/nec; then
15349 lt_prog_compiler_pic=-Kconform_pic
15354 lt_prog_compiler_pic='-fPIC'
15358 # PORTME Check for flag to pass linker flags through the system compiler.
15361 lt_prog_compiler_wl='-Wl,'
15362 if test "$host_cpu" = ia64; then
15363 # AIX 5 now supports IA64 processor
15364 lt_prog_compiler_static='-Bstatic'
15366 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
15370 mingw* | cygwin* | pw32* | os2* | cegcc*)
15371 # This hack is so that the source file can tell whether it is being
15372 # built for inclusion in a dll (and should export symbols for example).
15373 lt_prog_compiler_pic='-DDLL_EXPORT'
15376 hpux9* | hpux10* | hpux11*)
15377 lt_prog_compiler_wl='-Wl,'
15378 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
15379 # not for PA HP-UX.
15385 lt_prog_compiler_pic='+Z'
15388 # Is there a better lt_prog_compiler_static that works with the bundled CC?
15389 lt_prog_compiler_static='${wl}-a ${wl}archive'
15392 irix5* | irix6* | nonstopux*)
15393 lt_prog_compiler_wl='-Wl,'
15394 # PIC (with -KPIC) is the default.
15395 lt_prog_compiler_static='-non_shared'
15398 linux* | k*bsd*-gnu)
15399 case $cc_basename in
15400 # old Intel for x86_64 which still supported -KPIC.
15402 lt_prog_compiler_wl='-Wl,'
15403 lt_prog_compiler_pic='-KPIC'
15404 lt_prog_compiler_static='-static'
15406 # icc used to be incompatible with GCC.
15407 # ICC 10 doesn't accept -KPIC any more.
15409 lt_prog_compiler_wl='-Wl,'
15410 lt_prog_compiler_pic='-fPIC'
15411 lt_prog_compiler_static='-static'
15413 # Lahey Fortran 8.1.
15415 lt_prog_compiler_wl='-Wl,'
15416 lt_prog_compiler_pic='--shared'
15417 lt_prog_compiler_static='--static'
15419 pgcc* | pgf77* | pgf90* | pgf95*)
15420 # Portland Group compilers (*not* the Pentium gcc compiler,
15421 # which looks to be a dead project)
15422 lt_prog_compiler_wl='-Wl,'
15423 lt_prog_compiler_pic='-fpic'
15424 lt_prog_compiler_static='-Bstatic'
15427 lt_prog_compiler_wl='-Wl,'
15428 # All Alpha code is PIC.
15429 lt_prog_compiler_static='-non_shared'
15432 # IBM XL C 8.0/Fortran 10.1 on PPC
15433 lt_prog_compiler_wl='-Wl,'
15434 lt_prog_compiler_pic='-qpic'
15435 lt_prog_compiler_static='-qstaticlink'
15438 case `$CC -V 2>&1 | sed 5q` in
15441 lt_prog_compiler_pic='-KPIC'
15442 lt_prog_compiler_static='-Bstatic'
15443 lt_prog_compiler_wl='-Wl,'
15446 # Sun Fortran 8.3 passes all unrecognized flags to the linker
15447 lt_prog_compiler_pic='-KPIC'
15448 lt_prog_compiler_static='-Bstatic'
15449 lt_prog_compiler_wl=''
15457 lt_prog_compiler_pic='-KPIC'
15458 lt_prog_compiler_static='-Bstatic'
15462 # QNX uses GNU C++, but need to define -shared option too, otherwise
15463 # it will coredump.
15464 lt_prog_compiler_pic='-fPIC -shared'
15467 osf3* | osf4* | osf5*)
15468 lt_prog_compiler_wl='-Wl,'
15469 # All OSF/1 code is PIC.
15470 lt_prog_compiler_static='-non_shared'
15474 lt_prog_compiler_static='-non_shared'
15478 lt_prog_compiler_pic='-KPIC'
15479 lt_prog_compiler_static='-Bstatic'
15480 case $cc_basename in
15481 f77* | f90* | f95*)
15482 lt_prog_compiler_wl='-Qoption ld ';;
15484 lt_prog_compiler_wl='-Wl,';;
15489 lt_prog_compiler_wl='-Qoption ld '
15490 lt_prog_compiler_pic='-PIC'
15491 lt_prog_compiler_static='-Bstatic'
15494 sysv4 | sysv4.2uw2* | sysv4.3*)
15495 lt_prog_compiler_wl='-Wl,'
15496 lt_prog_compiler_pic='-KPIC'
15497 lt_prog_compiler_static='-Bstatic'
15501 if test -d /usr/nec ;then
15502 lt_prog_compiler_pic='-Kconform_pic'
15503 lt_prog_compiler_static='-Bstatic'
15507 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
15508 lt_prog_compiler_wl='-Wl,'
15509 lt_prog_compiler_pic='-KPIC'
15510 lt_prog_compiler_static='-Bstatic'
15514 lt_prog_compiler_wl='-Wl,'
15515 lt_prog_compiler_can_build_shared=no
15519 lt_prog_compiler_pic='-pic'
15520 lt_prog_compiler_static='-Bstatic'
15524 lt_prog_compiler_can_build_shared=no
15530 # For platforms which do not support PIC, -DPIC is meaningless:
15532 lt_prog_compiler_pic=
15535 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
15538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
15539 $as_echo "$lt_prog_compiler_pic" >&6; }
15547 # Check to make sure the PIC flag actually works.
15549 if test -n "$lt_prog_compiler_pic"; then
15550 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
15551 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
15552 if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
15553 $as_echo_n "(cached) " >&6
15555 lt_cv_prog_compiler_pic_works=no
15556 ac_outfile=conftest.$ac_objext
15557 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15558 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
15559 # Insert the option either (1) after the last *FLAGS variable, or
15560 # (2) before a word containing "conftest.", or (3) at the end.
15561 # Note that $ac_compile itself does not contain backslashes and begins
15562 # with a dollar sign (not a hyphen), so the echo should work correctly.
15563 # The option is referenced via a variable to avoid confusing sed.
15564 lt_compile=`echo "$ac_compile" | $SED \
15565 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15566 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15567 -e 's:$: $lt_compiler_flag:'`
15568 (eval echo "\"\$as_me:15568: $lt_compile\"" >&5)
15569 (eval "$lt_compile" 2>conftest.err)
15571 cat conftest.err >&5
15572 echo "$as_me:15572: \$? = $ac_status" >&5
15573 if (exit $ac_status) && test -s "$ac_outfile"; then
15574 # The compiler can only warn and ignore the option if not recognized
15575 # So say no if there are warnings other than the usual output.
15576 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
15577 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15578 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
15579 lt_cv_prog_compiler_pic_works=yes
15585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
15586 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
15588 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
15589 case $lt_prog_compiler_pic in
15591 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
15594 lt_prog_compiler_pic=
15595 lt_prog_compiler_can_build_shared=no
15606 # Check to make sure the static flag actually works.
15608 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
15609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
15610 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
15611 if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
15612 $as_echo_n "(cached) " >&6
15614 lt_cv_prog_compiler_static_works=no
15615 save_LDFLAGS="$LDFLAGS"
15616 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
15617 echo "$lt_simple_link_test_code" > conftest.$ac_ext
15618 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
15619 # The linker can only warn and ignore the option if not recognized
15620 # So say no if there are warnings
15621 if test -s conftest.err; then
15622 # Append any errors to the config.log.
15623 cat conftest.err 1>&5
15624 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
15625 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
15626 if diff conftest.exp conftest.er2 >/dev/null; then
15627 lt_cv_prog_compiler_static_works=yes
15630 lt_cv_prog_compiler_static_works=yes
15634 LDFLAGS="$save_LDFLAGS"
15637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
15638 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
15640 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
15643 lt_prog_compiler_static=
15652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15653 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15654 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15655 $as_echo_n "(cached) " >&6
15657 lt_cv_prog_compiler_c_o=no
15658 $RM -r conftest 2>/dev/null
15662 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15664 lt_compiler_flag="-o out/conftest2.$ac_objext"
15665 # Insert the option either (1) after the last *FLAGS variable, or
15666 # (2) before a word containing "conftest.", or (3) at the end.
15667 # Note that $ac_compile itself does not contain backslashes and begins
15668 # with a dollar sign (not a hyphen), so the echo should work correctly.
15669 lt_compile=`echo "$ac_compile" | $SED \
15670 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15671 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15672 -e 's:$: $lt_compiler_flag:'`
15673 (eval echo "\"\$as_me:15673: $lt_compile\"" >&5)
15674 (eval "$lt_compile" 2>out/conftest.err)
15676 cat out/conftest.err >&5
15677 echo "$as_me:15677: \$? = $ac_status" >&5
15678 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15680 # The compiler can only warn and ignore the option if not recognized
15681 # So say no if there are warnings
15682 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15683 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15684 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15685 lt_cv_prog_compiler_c_o=yes
15690 # SGI C++ compiler will create directory out/ii_files/ for
15691 # template instantiation
15692 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15693 $RM out/* && rmdir out
15699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15700 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
15708 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
15709 if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
15710 $as_echo_n "(cached) " >&6
15712 lt_cv_prog_compiler_c_o=no
15713 $RM -r conftest 2>/dev/null
15717 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
15719 lt_compiler_flag="-o out/conftest2.$ac_objext"
15720 # Insert the option either (1) after the last *FLAGS variable, or
15721 # (2) before a word containing "conftest.", or (3) at the end.
15722 # Note that $ac_compile itself does not contain backslashes and begins
15723 # with a dollar sign (not a hyphen), so the echo should work correctly.
15724 lt_compile=`echo "$ac_compile" | $SED \
15725 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
15726 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
15727 -e 's:$: $lt_compiler_flag:'`
15728 (eval echo "\"\$as_me:15728: $lt_compile\"" >&5)
15729 (eval "$lt_compile" 2>out/conftest.err)
15731 cat out/conftest.err >&5
15732 echo "$as_me:15732: \$? = $ac_status" >&5
15733 if (exit $ac_status) && test -s out/conftest2.$ac_objext
15735 # The compiler can only warn and ignore the option if not recognized
15736 # So say no if there are warnings
15737 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
15738 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
15739 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
15740 lt_cv_prog_compiler_c_o=yes
15745 # SGI C++ compiler will create directory out/ii_files/ for
15746 # template instantiation
15747 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
15748 $RM out/* && rmdir out
15754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
15755 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
15760 hard_links="nottested"
15761 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
15762 # do not overwrite the value of need_locks provided by the user
15763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
15764 $as_echo_n "checking if we can lock with hard links... " >&6; }
15767 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15769 ln conftest.a conftest.b 2>&5 || hard_links=no
15770 ln conftest.a conftest.b 2>/dev/null && hard_links=no
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
15772 $as_echo "$hard_links" >&6; }
15773 if test "$hard_links" = no; then
15774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
15775 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
15787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15788 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
15791 allow_undefined_flag=
15792 always_export_symbols=no
15794 archive_expsym_cmds=
15795 compiler_needs_object=no
15796 enable_shared_with_static_runtimes=no
15797 export_dynamic_flag_spec=
15798 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
15799 hardcode_automatic=no
15801 hardcode_direct_absolute=no
15802 hardcode_libdir_flag_spec=
15803 hardcode_libdir_flag_spec_ld=
15804 hardcode_libdir_separator=
15805 hardcode_minus_L=no
15806 hardcode_shlibpath_var=unsupported
15808 link_all_deplibs=unknown
15810 module_expsym_cmds=
15811 old_archive_from_new_cmds=
15812 old_archive_from_expsyms_cmds=
15813 thread_safe_flag_spec=
15814 whole_archive_flag_spec=
15815 # include_expsyms should be a list of space-separated symbols to be *always*
15816 # included in the symbol list
15818 # exclude_expsyms can be an extended regexp of symbols to exclude
15819 # it will be wrapped by ` (' and `)$', so one must not match beginning or
15820 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
15821 # as well as any symbol that contains `d'.
15822 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
15823 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
15824 # platforms (ab)use it in PIC code, but their linkers get confused if
15825 # the symbol is explicitly referenced. Since portable code cannot
15826 # rely on this symbol name, it's probably fine to never include it in
15827 # preloaded symbol tables.
15828 # Exclude shared library initialization/finalization symbols.
15829 extract_expsyms_cmds=
15832 cygwin* | mingw* | pw32* | cegcc*)
15833 # FIXME: the MSVC++ port hasn't been tested in a loooong time
15834 # When not using gcc, we currently assume that we are using
15835 # Microsoft Visual C++.
15836 if test "$GCC" != yes; then
15841 # we just hope/assume this is gcc and not c89 (= MSVC++)
15850 if test "$with_gnu_ld" = yes; then
15851 # If archive_cmds runs LD, not CC, wlarc should be empty
15854 # Set some defaults for GNU ld with shared library support. These
15855 # are reset later if shared libraries are not supported. Putting them
15856 # here allows them to be overridden if necessary.
15857 runpath_var=LD_RUN_PATH
15858 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
15859 export_dynamic_flag_spec='${wl}--export-dynamic'
15860 # ancient GNU ld didn't support --whole-archive et. al.
15861 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
15862 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15864 whole_archive_flag_spec=
15866 supports_anon_versioning=no
15867 case `$LD -v 2>&1` in
15868 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
15869 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
15870 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
15871 *\ 2.11.*) ;; # other 2.11 versions
15872 *) supports_anon_versioning=yes ;;
15875 # See if GNU ld supports shared libraries.
15878 # On AIX/PPC, the GNU linker is very broken
15879 if test "$host_cpu" != ia64; then
15883 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
15884 *** to be unable to reliably create shared libraries on AIX.
15885 *** Therefore, libtool is disabling shared libraries support. If you
15886 *** really care for shared libraries, you may want to modify your PATH
15887 *** so that a non-GNU linker is found, and then restart.
15896 # see comment about AmigaOS4 .so support
15897 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15898 archive_expsym_cmds=''
15901 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)'
15902 hardcode_libdir_flag_spec='-L$libdir'
15903 hardcode_minus_L=yes
15909 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
15910 allow_undefined_flag=unsupported
15911 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
15912 # support --undefined. This deserves some investigation. FIXME
15913 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
15919 cygwin* | mingw* | pw32* | cegcc*)
15920 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
15921 # as there is no search path for DLLs.
15922 hardcode_libdir_flag_spec='-L$libdir'
15923 allow_undefined_flag=unsupported
15924 always_export_symbols=no
15925 enable_shared_with_static_runtimes=yes
15926 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
15928 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
15929 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15930 # If the export-symbols file already is a .def file (1st line
15931 # is EXPORTS), use it as is; otherwise, prepend...
15932 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15933 cp $export_symbols $output_objdir/$soname.def;
15935 echo EXPORTS > $output_objdir/$soname.def;
15936 cat $export_symbols >> $output_objdir/$soname.def;
15938 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
15946 hardcode_shlibpath_var=no
15947 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
15948 export_dynamic_flag_spec='${wl}-E'
15949 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
15950 # Instead, shared libraries are loaded at an image base (0x10000000 by
15951 # default) and relocated if they conflict, which is a slow very memory
15952 # consuming and fragmenting process. To avoid this, we pick a random,
15953 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
15954 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
15955 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
15956 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'
15959 gnu* | linux* | tpf* | k*bsd*-gnu)
15961 if test "$host_os" = linux-dietlibc; then
15962 case $cc_basename in
15963 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
15966 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
15967 && test "$tmp_diet" = no
15970 tmp_sharedflag='-shared'
15971 case $cc_basename,$host_cpu in
15972 pgcc*) # Portland Group C compiler
15973 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'
15974 tmp_addflag=' $pic_flag'
15976 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
15977 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'
15978 tmp_addflag=' $pic_flag -Mnomain' ;;
15979 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
15980 tmp_addflag=' -i_dynamic' ;;
15981 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
15982 tmp_addflag=' -i_dynamic -nofor_main' ;;
15983 ifc* | ifort*) # Intel Fortran compiler
15984 tmp_addflag=' -nofor_main' ;;
15985 lf95*) # Lahey Fortran 8.1
15986 whole_archive_flag_spec=
15987 tmp_sharedflag='--shared' ;;
15988 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
15989 tmp_sharedflag='-qmkshrobj'
15992 case `$CC -V 2>&1 | sed 5q` in
15993 *Sun\ C*) # Sun C 5.9
15994 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'
15995 compiler_needs_object=yes
15996 tmp_sharedflag='-G' ;;
15997 *Sun\ F*) # Sun Fortran 8.3
15998 tmp_sharedflag='-G' ;;
16000 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16002 if test "x$supports_anon_versioning" = xyes; then
16003 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16004 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16005 echo "local: *; };" >> $output_objdir/$libname.ver~
16006 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
16009 case $cc_basename in
16011 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
16012 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
16013 hardcode_libdir_flag_spec=
16014 hardcode_libdir_flag_spec_ld='-rpath $libdir'
16015 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
16016 if test "x$supports_anon_versioning" = xyes; then
16017 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
16018 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
16019 echo "local: *; };" >> $output_objdir/$libname.ver~
16020 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
16030 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16031 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
16034 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16035 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16040 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
16044 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
16045 *** create shared libraries on Solaris systems. Therefore, libtool
16046 *** is disabling shared libraries support. We urge you to upgrade GNU
16047 *** binutils to release 2.9.1 or newer. Another option is to modify
16048 *** your PATH or compiler configuration so that the native linker is
16049 *** used, and then restart.
16052 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16053 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16054 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16060 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
16061 case `$LD -v 2>&1` in
16062 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
16066 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
16067 *** reliably create shared libraries on SCO systems. Therefore, libtool
16068 *** is disabling shared libraries support. We urge you to upgrade GNU
16069 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
16070 *** your PATH or compiler configuration so that the native linker is
16071 *** used, and then restart.
16076 # For security reasons, it is highly recommended that you always
16077 # use absolute paths for naming shared libraries, and exclude the
16078 # DT_RUNPATH tag from executables and libraries. But doing so
16079 # requires that you compile everything twice, which is a pain.
16080 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16081 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16082 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16083 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16092 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16094 hardcode_direct=yes
16095 hardcode_shlibpath_var=no
16099 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
16100 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16101 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
16108 if test "$ld_shlibs" = no; then
16110 hardcode_libdir_flag_spec=
16111 export_dynamic_flag_spec=
16112 whole_archive_flag_spec=
16115 # PORTME fill in a description of your system's linker (not GNU ld)
16118 allow_undefined_flag=unsupported
16119 always_export_symbols=yes
16120 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'
16121 # Note: this linker hardcodes the directories in LIBPATH if there
16122 # are no directories specified by -L.
16123 hardcode_minus_L=yes
16124 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
16125 # Neither direct hardcoding nor static linking is supported with a
16127 hardcode_direct=unsupported
16132 if test "$host_cpu" = ia64; then
16133 # On IA64, the linker does run time linking by default, so we don't
16134 # have to do anything special.
16135 aix_use_runtimelinking=no
16136 exp_sym_flag='-Bexport'
16139 # If we're using GNU nm, then we don't want the "-C" option.
16140 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16141 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
16142 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'
16144 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'
16146 aix_use_runtimelinking=no
16148 # Test if we are trying to use run time linking or normal
16149 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16150 # need to do runtime linking.
16151 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
16152 for ld_flag in $LDFLAGS; do
16153 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
16154 aix_use_runtimelinking=yes
16161 exp_sym_flag='-bexport'
16162 no_entry_flag='-bnoentry'
16165 # When large executables or shared objects are built, AIX ld can
16166 # have problems creating the table of contents. If linking a library
16167 # or program results in "error TOC overflow" add -mminimal-toc to
16168 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16169 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16172 hardcode_direct=yes
16173 hardcode_direct_absolute=yes
16174 hardcode_libdir_separator=':'
16175 link_all_deplibs=yes
16176 file_list_spec='${wl}-f,'
16178 if test "$GCC" = yes; then
16179 case $host_os in aix4.[012]|aix4.[012].*)
16180 # We only want to do this on AIX 4.2 and lower, the check
16181 # below for broken collect2 doesn't work under 4.3+
16182 collect2name=`${CC} -print-prog-name=collect2`
16183 if test -f "$collect2name" &&
16184 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
16186 # We have reworked collect2
16189 # We have old collect2
16190 hardcode_direct=unsupported
16191 # It fails to find uninstalled libraries when the uninstalled
16192 # path is not listed in the libpath. Setting hardcode_minus_L
16193 # to unsupported forces relinking
16194 hardcode_minus_L=yes
16195 hardcode_libdir_flag_spec='-L$libdir'
16196 hardcode_libdir_separator=
16200 shared_flag='-shared'
16201 if test "$aix_use_runtimelinking" = yes; then
16202 shared_flag="$shared_flag "'${wl}-G'
16206 if test "$host_cpu" = ia64; then
16207 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16208 # chokes on -Wl,-G. The following line is correct:
16211 if test "$aix_use_runtimelinking" = yes; then
16212 shared_flag='${wl}-G'
16214 shared_flag='${wl}-bM:SRE'
16219 export_dynamic_flag_spec='${wl}-bexpall'
16220 # It seems that -bexpall does not export symbols beginning with
16221 # underscore (_), so it is better to generate a list of symbols to export.
16222 always_export_symbols=yes
16223 if test "$aix_use_runtimelinking" = yes; then
16224 # Warning - without using the other runtime loading flags (-brtl),
16225 # -berok will link without error, but may produce a broken library.
16226 allow_undefined_flag='-berok'
16227 # Determine the default libpath from the value encoded in an
16228 # empty executable.
16229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16230 /* end confdefs.h. */
16240 if ac_fn_c_try_link "$LINENO"; then :
16242 lt_aix_libpath_sed='
16243 /Import File Strings/,/^$/ {
16249 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16250 # Check for a 64-bit object if we didn't find anything.
16251 if test -z "$aix_libpath"; then
16252 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16255 rm -f core conftest.err conftest.$ac_objext \
16256 conftest$ac_exeext conftest.$ac_ext
16257 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16259 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16260 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"
16262 if test "$host_cpu" = ia64; then
16263 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
16264 allow_undefined_flag="-z nodefs"
16265 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"
16267 # Determine the default libpath from the value encoded in an
16268 # empty executable.
16269 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16270 /* end confdefs.h. */
16280 if ac_fn_c_try_link "$LINENO"; then :
16282 lt_aix_libpath_sed='
16283 /Import File Strings/,/^$/ {
16289 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16290 # Check for a 64-bit object if we didn't find anything.
16291 if test -z "$aix_libpath"; then
16292 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16295 rm -f core conftest.err conftest.$ac_objext \
16296 conftest$ac_exeext conftest.$ac_ext
16297 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
16299 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
16300 # Warning - without using the other run time loading flags,
16301 # -berok will link without error, but may produce a broken library.
16302 no_undefined_flag=' ${wl}-bernotok'
16303 allow_undefined_flag=' ${wl}-berok'
16304 # Exported symbols can be pulled into shared objects from archives
16305 whole_archive_flag_spec='$convenience'
16306 archive_cmds_need_lc=yes
16307 # This is similar to how AIX traditionally builds its shared libraries.
16308 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'
16316 # see comment about AmigaOS4 .so support
16317 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16318 archive_expsym_cmds=''
16321 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)'
16322 hardcode_libdir_flag_spec='-L$libdir'
16323 hardcode_minus_L=yes
16329 export_dynamic_flag_spec=-rdynamic
16332 cygwin* | mingw* | pw32* | cegcc*)
16333 # When not using gcc, we currently assume that we are using
16334 # Microsoft Visual C++.
16335 # hardcode_libdir_flag_spec is actually meaningless, as there is
16336 # no search path for DLLs.
16337 hardcode_libdir_flag_spec=' '
16338 allow_undefined_flag=unsupported
16339 # Tell ltmain to make .lib files, not .a files.
16341 # Tell ltmain to make .dll files, not .so files.
16343 # FIXME: Setting linknames here is a bad hack.
16344 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
16345 # The linker will automatically build a .lib file if we build a DLL.
16346 old_archive_from_new_cmds='true'
16347 # FIXME: Should let the user specify the lib program.
16348 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
16349 fix_srcfile_path='`cygpath -w "$srcfile"`'
16350 enable_shared_with_static_runtimes=yes
16353 darwin* | rhapsody*)
16356 archive_cmds_need_lc=no
16358 hardcode_automatic=yes
16359 hardcode_shlibpath_var=unsupported
16360 whole_archive_flag_spec=''
16361 link_all_deplibs=yes
16362 allow_undefined_flag="$_lt_dar_allow_undefined"
16363 case $cc_basename in
16364 ifort*) _lt_dar_can_shared=yes ;;
16365 *) _lt_dar_can_shared=$GCC ;;
16367 if test "$_lt_dar_can_shared" = "yes"; then
16368 output_verbose_link_cmd=echo
16369 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
16370 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
16371 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}"
16372 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}"
16381 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16382 hardcode_libdir_flag_spec='-L$libdir'
16383 hardcode_shlibpath_var=no
16390 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
16391 # support. Future versions do this automatically, but an explicit c++rt0.o
16392 # does not break anything, and helps significantly (at the cost of a little
16395 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
16396 hardcode_libdir_flag_spec='-R$libdir'
16397 hardcode_direct=yes
16398 hardcode_shlibpath_var=no
16401 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
16403 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16404 hardcode_direct=yes
16405 hardcode_minus_L=yes
16406 hardcode_shlibpath_var=no
16409 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
16410 freebsd* | dragonfly*)
16411 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
16412 hardcode_libdir_flag_spec='-R$libdir'
16413 hardcode_direct=yes
16414 hardcode_shlibpath_var=no
16418 if test "$GCC" = yes; then
16419 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'
16421 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'
16423 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16424 hardcode_libdir_separator=:
16425 hardcode_direct=yes
16427 # hardcode_minus_L: Not really in the search PATH,
16428 # but as the default location of the library.
16429 hardcode_minus_L=yes
16430 export_dynamic_flag_spec='${wl}-E'
16434 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16435 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16437 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
16439 if test "$with_gnu_ld" = no; then
16440 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16441 hardcode_libdir_flag_spec_ld='+b $libdir'
16442 hardcode_libdir_separator=:
16443 hardcode_direct=yes
16444 hardcode_direct_absolute=yes
16445 export_dynamic_flag_spec='${wl}-E'
16446 # hardcode_minus_L: Not really in the search PATH,
16447 # but as the default location of the library.
16448 hardcode_minus_L=yes
16453 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
16456 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16459 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16462 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16468 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16471 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
16474 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
16478 if test "$with_gnu_ld" = no; then
16479 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
16480 hardcode_libdir_separator=:
16485 hardcode_shlibpath_var=no
16488 hardcode_direct=yes
16489 hardcode_direct_absolute=yes
16490 export_dynamic_flag_spec='${wl}-E'
16492 # hardcode_minus_L: Not really in the search PATH,
16493 # but as the default location of the library.
16494 hardcode_minus_L=yes
16500 irix5* | irix6* | nonstopux*)
16501 if test "$GCC" = yes; then
16502 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'
16503 # Try to use the -exported_symbol ld option, if it does not
16504 # work, assume that -exports_file does not work either and
16505 # implicitly export all symbols.
16506 save_LDFLAGS="$LDFLAGS"
16507 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
16508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16509 /* end confdefs.h. */
16512 if ac_fn_c_try_link "$LINENO"; then :
16513 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'
16516 rm -f core conftest.err conftest.$ac_objext \
16517 conftest$ac_exeext conftest.$ac_ext
16518 LDFLAGS="$save_LDFLAGS"
16520 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'
16521 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'
16523 archive_cmds_need_lc='no'
16524 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16525 hardcode_libdir_separator=:
16527 link_all_deplibs=yes
16531 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
16532 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
16534 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
16536 hardcode_libdir_flag_spec='-R$libdir'
16537 hardcode_direct=yes
16538 hardcode_shlibpath_var=no
16542 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16543 hardcode_direct=yes
16544 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16545 hardcode_libdir_separator=:
16546 hardcode_shlibpath_var=no
16553 if test -f /usr/libexec/ld.so; then
16554 hardcode_direct=yes
16555 hardcode_shlibpath_var=no
16556 hardcode_direct_absolute=yes
16557 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16558 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16559 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
16560 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16561 export_dynamic_flag_spec='${wl}-E'
16564 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
16565 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
16566 hardcode_libdir_flag_spec='-R$libdir'
16569 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
16570 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
16580 hardcode_libdir_flag_spec='-L$libdir'
16581 hardcode_minus_L=yes
16582 allow_undefined_flag=unsupported
16583 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'
16584 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
16588 if test "$GCC" = yes; then
16589 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16590 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'
16592 allow_undefined_flag=' -expect_unresolved \*'
16593 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'
16595 archive_cmds_need_lc='no'
16596 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16597 hardcode_libdir_separator=:
16600 osf4* | osf5*) # as osf3* with the addition of -msym flag
16601 if test "$GCC" = yes; then
16602 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
16603 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'
16604 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
16606 allow_undefined_flag=' -expect_unresolved \*'
16607 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'
16608 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~
16609 $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'
16611 # Both c and cxx compiler support -rpath directly
16612 hardcode_libdir_flag_spec='-rpath $libdir'
16614 archive_cmds_need_lc='no'
16615 hardcode_libdir_separator=:
16619 no_undefined_flag=' -z defs'
16620 if test "$GCC" = yes; then
16622 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
16623 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16624 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16626 case `$CC -V 2>&1` in
16629 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
16630 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16631 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
16635 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
16636 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
16637 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
16641 hardcode_libdir_flag_spec='-R$libdir'
16642 hardcode_shlibpath_var=no
16644 solaris2.[0-5] | solaris2.[0-5].*) ;;
16646 # The compiler driver will combine and reorder linker options,
16647 # but understands `-z linker_flag'. GCC discards it without `$wl',
16648 # but is careful enough not to reorder.
16649 # Supported since Solaris 2.6 (maybe 2.5.1?)
16650 if test "$GCC" = yes; then
16651 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16653 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
16657 link_all_deplibs=yes
16661 if test "x$host_vendor" = xsequent; then
16662 # Use $CC to link under sequent, because it throws in some extra .o
16663 # files that make .init and .fini sections work.
16664 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
16666 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
16668 hardcode_libdir_flag_spec='-L$libdir'
16669 hardcode_direct=yes
16670 hardcode_minus_L=yes
16671 hardcode_shlibpath_var=no
16675 case $host_vendor in
16677 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16678 hardcode_direct=yes # is this really true???
16681 ## LD is ld it makes a PLAMLIB
16682 ## CC just makes a GrossModule.
16683 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
16684 reload_cmds='$CC -r -o $output$reload_objs'
16688 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16689 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
16692 runpath_var='LD_RUN_PATH'
16693 hardcode_shlibpath_var=no
16697 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16698 hardcode_shlibpath_var=no
16699 export_dynamic_flag_spec='-Bexport'
16703 if test -d /usr/nec; then
16704 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16705 hardcode_shlibpath_var=no
16706 runpath_var=LD_RUN_PATH
16707 hardcode_runpath_var=yes
16712 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
16713 no_undefined_flag='${wl}-z,text'
16714 archive_cmds_need_lc=no
16715 hardcode_shlibpath_var=no
16716 runpath_var='LD_RUN_PATH'
16718 if test "$GCC" = yes; then
16719 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16720 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16722 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16723 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16727 sysv5* | sco3.2v5* | sco5v6*)
16728 # Note: We can NOT use -z defs as we might desire, because we do not
16729 # link with -lc, and that would cause any symbols used from libc to
16730 # always be unresolved, which means just about no library would
16731 # ever link correctly. If we're not using GNU ld we use -z text
16732 # though, which does catch some bad symbols but isn't as heavy-handed
16734 no_undefined_flag='${wl}-z,text'
16735 allow_undefined_flag='${wl}-z,nodefs'
16736 archive_cmds_need_lc=no
16737 hardcode_shlibpath_var=no
16738 hardcode_libdir_flag_spec='${wl}-R,$libdir'
16739 hardcode_libdir_separator=':'
16740 link_all_deplibs=yes
16741 export_dynamic_flag_spec='${wl}-Bexport'
16742 runpath_var='LD_RUN_PATH'
16744 if test "$GCC" = yes; then
16745 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16746 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16748 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16749 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16754 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
16755 hardcode_libdir_flag_spec='-L$libdir'
16756 hardcode_shlibpath_var=no
16764 if test x$host_vendor = xsni; then
16766 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
16767 export_dynamic_flag_spec='${wl}-Blargedynsym'
16773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
16774 $as_echo "$ld_shlibs" >&6; }
16775 test "$ld_shlibs" = no && can_build_shared=no
16777 with_gnu_ld=$with_gnu_ld
16794 # Do we need to explicitly link libc?
16796 case "x$archive_cmds_need_lc" in
16798 # Assume -lc should be added
16799 archive_cmds_need_lc=yes
16801 if test "$enable_shared" = yes && test "$GCC" = yes; then
16802 case $archive_cmds in
16804 # FIXME: we may have to deal with multi-command sequences.
16807 # Test whether the compiler implicitly links with -lc since on some
16808 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16809 # to ld, don't add -lc before -lgcc.
16810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
16811 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
16813 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
16815 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
16816 (eval $ac_compile) 2>&5
16818 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16819 test $ac_status = 0; } 2>conftest.err; then
16822 libobjs=conftest.$ac_objext
16824 wl=$lt_prog_compiler_wl
16825 pic_flag=$lt_prog_compiler_pic
16831 lt_save_allow_undefined_flag=$allow_undefined_flag
16832 allow_undefined_flag=
16833 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
16834 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
16836 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
16837 test $ac_status = 0; }
16839 archive_cmds_need_lc=no
16841 archive_cmds_need_lc=yes
16843 allow_undefined_flag=$lt_save_allow_undefined_flag
16845 cat conftest.err 1>&5
16848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
16849 $as_echo "$archive_cmds_need_lc" >&6; }
17012 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
17013 $as_echo_n "checking dynamic linker characteristics... " >&6; }
17015 if test "$GCC" = yes; then
17017 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
17018 *) lt_awk_arg="/^libraries:/" ;;
17020 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17021 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
17022 # if the path contains ";" then we assume it to be the separator
17023 # otherwise default to the standard path separator (i.e. ":") - it is
17024 # assumed that no part of a normal pathname contains ";" but that should
17025 # okay in the real world where ";" in dirpaths is itself problematic.
17026 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
17028 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17030 # Ok, now we have the path, separated by spaces, we can step through it
17031 # and add multilib dir if necessary.
17032 lt_tmp_lt_search_path_spec=
17033 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
17034 for lt_sys_path in $lt_search_path_spec; do
17035 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
17036 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
17038 test -d "$lt_sys_path" && \
17039 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
17042 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
17043 BEGIN {RS=" "; FS="/|\n";} {
17046 for (lt_i = NF; lt_i > 0; lt_i--) {
17047 if ($lt_i != "" && $lt_i != ".") {
17048 if ($lt_i == "..") {
17051 if (lt_count == 0) {
17052 lt_foo="/" $lt_i lt_foo;
17059 if (lt_foo != "") { lt_freq[lt_foo]++; }
17060 if (lt_freq[lt_foo] == 1) { print lt_foo; }
17062 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
17064 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
17066 library_names_spec=
17067 libname_spec='lib$name'
17071 postuninstall_cmds=
17075 shlibpath_overrides_runpath=unknown
17077 dynamic_linker="$host_os ld.so"
17078 sys_lib_dlsearch_path_spec="/lib /usr/lib"
17079 need_lib_prefix=unknown
17080 hardcode_into_libs=no
17082 # when you set need_version to no, make sure it does not cause -set_version
17083 # flags to be left without arguments
17084 need_version=unknown
17089 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
17090 shlibpath_var=LIBPATH
17092 # AIX 3 has no versioning support, so we append a major version to the name.
17093 soname_spec='${libname}${release}${shared_ext}$major'
17100 hardcode_into_libs=yes
17101 if test "$host_cpu" = ia64; then
17102 # AIX 5 supports IA64
17103 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17104 shlibpath_var=LD_LIBRARY_PATH
17106 # With GCC up to 2.95.x, collect2 would create an import file
17107 # for dependence libraries. The import file would start with
17108 # the line `#! .'. This would cause the generated library to
17109 # depend on `.', always an invalid library. This was fixed in
17110 # development snapshots of GCC prior to 3.0.
17112 aix4 | aix4.[01] | aix4.[01].*)
17113 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17115 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
17118 can_build_shared=no
17122 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17123 # soname into executable. Probably we can add versioning support to
17124 # collect2, so additional links can be useful in future.
17125 if test "$aix_use_runtimelinking" = yes; then
17126 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17127 # instead of lib<name>.a to let people know that these are not
17128 # typical AIX shared libraries.
17129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17131 # We preserve .a as extension for shared libraries through AIX4.2
17132 # and later when we are not doing run time linking.
17133 library_names_spec='${libname}${release}.a $libname.a'
17134 soname_spec='${libname}${release}${shared_ext}$major'
17136 shlibpath_var=LIBPATH
17143 # Since July 2007 AmigaOS4 officially supports .so libraries.
17144 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
17145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17148 library_names_spec='$libname.ixlibrary $libname.a'
17149 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17150 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'
17156 library_names_spec='${libname}${shared_ext}'
17157 dynamic_linker="$host_os ld.so"
17158 shlibpath_var=LIBRARY_PATH
17164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17165 soname_spec='${libname}${release}${shared_ext}$major'
17166 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
17167 shlibpath_var=LD_LIBRARY_PATH
17168 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17169 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
17170 # the default ld.so.conf also contains /usr/contrib/lib and
17171 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17172 # libtool to hard-code these into programs
17175 cygwin* | mingw* | pw32* | cegcc*)
17176 version_type=windows
17181 case $GCC,$host_os in
17182 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
17183 library_names_spec='$libname.dll.a'
17184 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17185 postinstall_cmds='base_file=`basename \${file}`~
17186 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
17187 dldir=$destdir/`dirname \$dlpath`~
17188 test -d \$dldir || mkdir -p \$dldir~
17189 $install_prog $dir/$dlname \$dldir/$dlname~
17190 chmod a+x \$dldir/$dlname~
17191 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
17192 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
17194 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17195 dlpath=$dir/\$dldll~
17197 shlibpath_overrides_runpath=yes
17201 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17202 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17203 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
17206 # MinGW DLLs use traditional 'lib' prefix
17207 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17208 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17209 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
17210 # It is most probably a Windows format PATH printed by
17211 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17212 # path with ; separators, and with drive letters. We can handle the
17213 # drive letters (cygwin fileutils understands them), so leave them,
17214 # especially as we might pass files found there to a mingw objdump,
17215 # which wouldn't understand a cygwinified path. Ahh.
17216 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17218 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17222 # pw32 DLLs use 'pw' prefix rather than 'lib'
17223 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17229 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17232 dynamic_linker='Win32 ld.exe'
17233 # FIXME: first we should search . and the directory the executable is in
17237 darwin* | rhapsody*)
17238 dynamic_linker="$host_os dyld"
17239 version_type=darwin
17242 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17243 soname_spec='${libname}${release}${major}$shared_ext'
17244 shlibpath_overrides_runpath=yes
17245 shlibpath_var=DYLD_LIBRARY_PATH
17246 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
17248 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
17249 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
17256 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17257 soname_spec='${libname}${release}${shared_ext}$major'
17258 shlibpath_var=LD_LIBRARY_PATH
17265 freebsd* | dragonfly*)
17266 # DragonFly does not have aout. When/if they implement a new
17267 # versioning mechanism, adjust this.
17268 if test -x /usr/bin/objformat; then
17269 objformat=`/usr/bin/objformat`
17272 freebsd[123]*) objformat=aout ;;
17273 *) objformat=elf ;;
17276 version_type=freebsd-$objformat
17277 case $version_type in
17279 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17284 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17288 shlibpath_var=LD_LIBRARY_PATH
17291 shlibpath_overrides_runpath=yes
17293 freebsd3.[01]* | freebsdelf3.[01]*)
17294 shlibpath_overrides_runpath=yes
17295 hardcode_into_libs=yes
17297 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
17298 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
17299 shlibpath_overrides_runpath=no
17300 hardcode_into_libs=yes
17302 *) # from 4.6 on, and DragonFly
17303 shlibpath_overrides_runpath=yes
17304 hardcode_into_libs=yes
17313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17314 soname_spec='${libname}${release}${shared_ext}$major'
17315 shlibpath_var=LD_LIBRARY_PATH
17316 hardcode_into_libs=yes
17319 hpux9* | hpux10* | hpux11*)
17320 # Give a soname corresponding to the major version so that dld.sl refuses to
17321 # link against other versions.
17328 hardcode_into_libs=yes
17329 dynamic_linker="$host_os dld.so"
17330 shlibpath_var=LD_LIBRARY_PATH
17331 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17333 soname_spec='${libname}${release}${shared_ext}$major'
17334 if test "X$HPUX_IA64_MODE" = X32; then
17335 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17337 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
17339 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17343 hardcode_into_libs=yes
17344 dynamic_linker="$host_os dld.sl"
17345 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
17346 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
17347 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17348 soname_spec='${libname}${release}${shared_ext}$major'
17349 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
17350 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
17354 dynamic_linker="$host_os dld.sl"
17355 shlibpath_var=SHLIB_PATH
17356 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
17357 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17358 soname_spec='${libname}${release}${shared_ext}$major'
17361 # HP-UX runs *really* slowly unless shared libraries are mode 555.
17362 postinstall_cmds='chmod 555 $lib'
17369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17370 soname_spec='${libname}${release}${shared_ext}$major'
17371 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
17372 shlibpath_var=LD_LIBRARY_PATH
17373 shlibpath_overrides_runpath=no
17374 hardcode_into_libs=yes
17377 irix5* | irix6* | nonstopux*)
17379 nonstopux*) version_type=nonstopux ;;
17381 if test "$lt_cv_prog_gnu_ld" = yes; then
17389 soname_spec='${libname}${release}${shared_ext}$major'
17390 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17392 irix5* | nonstopux*)
17393 libsuff= shlibsuff=
17396 case $LD in # libtool.m4 will add one of these switches to LD
17397 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17398 libsuff= shlibsuff= libmagic=32-bit;;
17399 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17400 libsuff=32 shlibsuff=N32 libmagic=N32;;
17401 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17402 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17403 *) libsuff= shlibsuff= libmagic=never-match;;
17407 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17408 shlibpath_overrides_runpath=no
17409 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17410 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17411 hardcode_into_libs=yes
17414 # No shared lib support for Linux oldld, aout, or coff.
17415 linux*oldld* | linux*aout* | linux*coff*)
17419 # This must be Linux ELF.
17420 linux* | k*bsd*-gnu)
17424 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17425 soname_spec='${libname}${release}${shared_ext}$major'
17426 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17427 shlibpath_var=LD_LIBRARY_PATH
17428 shlibpath_overrides_runpath=no
17429 # Some binutils ld are patched to set DT_RUNPATH
17430 save_LDFLAGS=$LDFLAGS
17431 save_libdir=$libdir
17432 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
17433 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
17434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17435 /* end confdefs.h. */
17445 if ac_fn_c_try_link "$LINENO"; then :
17446 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
17447 shlibpath_overrides_runpath=yes
17450 rm -f core conftest.err conftest.$ac_objext \
17451 conftest$ac_exeext conftest.$ac_ext
17452 LDFLAGS=$save_LDFLAGS
17453 libdir=$save_libdir
17455 # This implies no fast_install, which is unacceptable.
17456 # Some rework will be needed to allow for fast_install
17457 # before this can be enabled.
17458 hardcode_into_libs=yes
17460 # Append ld.so.conf contents to the search path
17461 if test -f /etc/ld.so.conf; then
17462 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' ' '`
17463 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17466 # We used to test for /lib/ld.so.1 and disable shared libraries on
17467 # powerpc, because MkLinux only supported shared libraries with the
17468 # GNU dynamic linker. Since this was broken with cross compilers,
17469 # most powerpc-linux boxes support dynamic linking these days and
17470 # people can always --disable-shared, the test was removed, and we
17471 # assume the GNU/Linux dynamic linker is in use.
17472 dynamic_linker='GNU/Linux ld.so'
17479 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
17480 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17481 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17482 dynamic_linker='NetBSD (a.out) ld.so'
17484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17485 soname_spec='${libname}${release}${shared_ext}$major'
17486 dynamic_linker='NetBSD ld.elf_so'
17488 shlibpath_var=LD_LIBRARY_PATH
17489 shlibpath_overrides_runpath=yes
17490 hardcode_into_libs=yes
17495 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17496 shlibpath_var=LD_LIBRARY_PATH
17497 shlibpath_overrides_runpath=yes
17504 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17505 soname_spec='${libname}${release}${shared_ext}$major'
17506 shlibpath_var=LD_LIBRARY_PATH
17507 shlibpath_overrides_runpath=no
17508 hardcode_into_libs=yes
17509 dynamic_linker='ldqnx.so'
17514 sys_lib_dlsearch_path_spec="/usr/lib"
17516 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
17518 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
17519 *) need_version=no ;;
17521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17522 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17523 shlibpath_var=LD_LIBRARY_PATH
17524 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17526 openbsd2.[89] | openbsd2.[89].*)
17527 shlibpath_overrides_runpath=no
17530 shlibpath_overrides_runpath=yes
17534 shlibpath_overrides_runpath=yes
17539 libname_spec='$name'
17542 library_names_spec='$libname${shared_ext} $libname.a'
17543 dynamic_linker='OS/2 ld.exe'
17544 shlibpath_var=LIBPATH
17547 osf3* | osf4* | osf5*)
17551 soname_spec='${libname}${release}${shared_ext}$major'
17552 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17553 shlibpath_var=LD_LIBRARY_PATH
17554 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17555 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17567 soname_spec='${libname}${release}${shared_ext}$major'
17568 shlibpath_var=LD_LIBRARY_PATH
17569 shlibpath_overrides_runpath=yes
17570 hardcode_into_libs=yes
17571 # ldd complains unless libraries are executable
17572 postinstall_cmds='chmod +x $lib'
17577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17578 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17579 shlibpath_var=LD_LIBRARY_PATH
17580 shlibpath_overrides_runpath=yes
17581 if test "$with_gnu_ld" = yes; then
17589 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17590 soname_spec='${libname}${release}${shared_ext}$major'
17591 shlibpath_var=LD_LIBRARY_PATH
17592 case $host_vendor in
17594 shlibpath_overrides_runpath=no
17596 runpath_var=LD_RUN_PATH
17604 shlibpath_overrides_runpath=no
17605 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17611 if test -d /usr/nec ;then
17613 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17614 soname_spec='$libname${shared_ext}.$major'
17615 shlibpath_var=LD_LIBRARY_PATH
17619 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
17620 version_type=freebsd-elf
17623 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17624 soname_spec='${libname}${release}${shared_ext}$major'
17625 shlibpath_var=LD_LIBRARY_PATH
17626 shlibpath_overrides_runpath=yes
17627 hardcode_into_libs=yes
17628 if test "$with_gnu_ld" = yes; then
17629 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
17631 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
17634 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
17638 sys_lib_dlsearch_path_spec='/usr/lib'
17642 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
17646 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17647 shlibpath_var=LD_LIBRARY_PATH
17648 shlibpath_overrides_runpath=no
17649 hardcode_into_libs=yes
17654 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17655 soname_spec='${libname}${release}${shared_ext}$major'
17656 shlibpath_var=LD_LIBRARY_PATH
17663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
17664 $as_echo "$dynamic_linker" >&6; }
17665 test "$dynamic_linker" = no && can_build_shared=no
17667 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
17668 if test "$GCC" = yes; then
17669 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
17672 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
17673 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
17675 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
17676 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
17765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
17766 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
17768 if test -n "$hardcode_libdir_flag_spec" ||
17769 test -n "$runpath_var" ||
17770 test "X$hardcode_automatic" = "Xyes" ; then
17772 # We can hardcode non-existent directories.
17773 if test "$hardcode_direct" != no &&
17774 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17775 # have to relink, otherwise we might link with an installed library
17776 # when we should be linking with a yet-to-be-installed one
17777 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
17778 test "$hardcode_minus_L" != no; then
17779 # Linking always hardcodes the temporary library directory.
17780 hardcode_action=relink
17782 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17783 hardcode_action=immediate
17786 # We cannot hardcode anything, or else we can only hardcode existing
17788 hardcode_action=unsupported
17790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
17791 $as_echo "$hardcode_action" >&6; }
17793 if test "$hardcode_action" = relink ||
17794 test "$inherit_rpath" = yes; then
17795 # Fast installation is not supported
17796 enable_fast_install=no
17797 elif test "$shlibpath_overrides_runpath" = yes ||
17798 test "$enable_shared" = no; then
17799 # Fast installation is not necessary
17800 enable_fast_install=needless
17808 if test "x$enable_dlopen" != xyes; then
17809 enable_dlopen=unknown
17810 enable_dlopen_self=unknown
17811 enable_dlopen_self_static=unknown
17818 lt_cv_dlopen="load_add_on"
17820 lt_cv_dlopen_self=yes
17823 mingw* | pw32* | cegcc*)
17824 lt_cv_dlopen="LoadLibrary"
17829 lt_cv_dlopen="dlopen"
17834 # if libdl is installed we need to link against it
17835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17836 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17837 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17838 $as_echo_n "(cached) " >&6
17840 ac_check_lib_save_LIBS=$LIBS
17842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17843 /* end confdefs.h. */
17845 /* Override any GCC internal prototype to avoid an error.
17846 Use char because int might match the return type of a GCC
17847 builtin and then its argument prototype would still apply. */
17860 if ac_fn_c_try_link "$LINENO"; then :
17861 ac_cv_lib_dl_dlopen=yes
17863 ac_cv_lib_dl_dlopen=no
17865 rm -f core conftest.err conftest.$ac_objext \
17866 conftest$ac_exeext conftest.$ac_ext
17867 LIBS=$ac_check_lib_save_LIBS
17869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17870 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17871 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17872 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17875 lt_cv_dlopen="dyld"
17877 lt_cv_dlopen_self=yes
17884 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
17885 if test "x$ac_cv_func_shl_load" = x""yes; then :
17886 lt_cv_dlopen="shl_load"
17888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
17889 $as_echo_n "checking for shl_load in -ldld... " >&6; }
17890 if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
17891 $as_echo_n "(cached) " >&6
17893 ac_check_lib_save_LIBS=$LIBS
17895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17896 /* end confdefs.h. */
17898 /* Override any GCC internal prototype to avoid an error.
17899 Use char because int might match the return type of a GCC
17900 builtin and then its argument prototype would still apply. */
17908 return shl_load ();
17913 if ac_fn_c_try_link "$LINENO"; then :
17914 ac_cv_lib_dld_shl_load=yes
17916 ac_cv_lib_dld_shl_load=no
17918 rm -f core conftest.err conftest.$ac_objext \
17919 conftest$ac_exeext conftest.$ac_ext
17920 LIBS=$ac_check_lib_save_LIBS
17922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
17923 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
17924 if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
17925 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
17927 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
17928 if test "x$ac_cv_func_dlopen" = x""yes; then :
17929 lt_cv_dlopen="dlopen"
17931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
17932 $as_echo_n "checking for dlopen in -ldl... " >&6; }
17933 if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
17934 $as_echo_n "(cached) " >&6
17936 ac_check_lib_save_LIBS=$LIBS
17938 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17939 /* end confdefs.h. */
17941 /* Override any GCC internal prototype to avoid an error.
17942 Use char because int might match the return type of a GCC
17943 builtin and then its argument prototype would still apply. */
17956 if ac_fn_c_try_link "$LINENO"; then :
17957 ac_cv_lib_dl_dlopen=yes
17959 ac_cv_lib_dl_dlopen=no
17961 rm -f core conftest.err conftest.$ac_objext \
17962 conftest$ac_exeext conftest.$ac_ext
17963 LIBS=$ac_check_lib_save_LIBS
17965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
17966 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
17967 if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
17968 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
17971 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
17972 if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
17973 $as_echo_n "(cached) " >&6
17975 ac_check_lib_save_LIBS=$LIBS
17976 LIBS="-lsvld $LIBS"
17977 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17978 /* end confdefs.h. */
17980 /* Override any GCC internal prototype to avoid an error.
17981 Use char because int might match the return type of a GCC
17982 builtin and then its argument prototype would still apply. */
17995 if ac_fn_c_try_link "$LINENO"; then :
17996 ac_cv_lib_svld_dlopen=yes
17998 ac_cv_lib_svld_dlopen=no
18000 rm -f core conftest.err conftest.$ac_objext \
18001 conftest$ac_exeext conftest.$ac_ext
18002 LIBS=$ac_check_lib_save_LIBS
18004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
18005 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
18006 if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
18007 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
18009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
18010 $as_echo_n "checking for dld_link in -ldld... " >&6; }
18011 if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
18012 $as_echo_n "(cached) " >&6
18014 ac_check_lib_save_LIBS=$LIBS
18016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18017 /* end confdefs.h. */
18019 /* Override any GCC internal prototype to avoid an error.
18020 Use char because int might match the return type of a GCC
18021 builtin and then its argument prototype would still apply. */
18029 return dld_link ();
18034 if ac_fn_c_try_link "$LINENO"; then :
18035 ac_cv_lib_dld_dld_link=yes
18037 ac_cv_lib_dld_dld_link=no
18039 rm -f core conftest.err conftest.$ac_objext \
18040 conftest$ac_exeext conftest.$ac_ext
18041 LIBS=$ac_check_lib_save_LIBS
18043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
18044 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
18045 if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
18046 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
18067 if test "x$lt_cv_dlopen" != xno; then
18073 case $lt_cv_dlopen in
18075 save_CPPFLAGS="$CPPFLAGS"
18076 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
18078 save_LDFLAGS="$LDFLAGS"
18079 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
18082 LIBS="$lt_cv_dlopen_libs $LIBS"
18084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
18085 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
18086 if test "${lt_cv_dlopen_self+set}" = set; then :
18087 $as_echo_n "(cached) " >&6
18089 if test "$cross_compiling" = yes; then :
18090 lt_cv_dlopen_self=cross
18092 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18093 lt_status=$lt_dlunknown
18094 cat > conftest.$ac_ext <<_LT_EOF
18095 #line 18095 "configure"
18096 #include "confdefs.h"
18105 # define LT_DLGLOBAL RTLD_GLOBAL
18108 # define LT_DLGLOBAL DL_GLOBAL
18110 # define LT_DLGLOBAL 0
18114 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18115 find out it does not work in some platform. */
18116 #ifndef LT_DLLAZY_OR_NOW
18118 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18121 # define LT_DLLAZY_OR_NOW DL_LAZY
18124 # define LT_DLLAZY_OR_NOW RTLD_NOW
18127 # define LT_DLLAZY_OR_NOW DL_NOW
18129 # define LT_DLLAZY_OR_NOW 0
18136 void fnord() { int i=42;}
18139 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18140 int status = $lt_dlunknown;
18144 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18145 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18146 /* dlclose (self); */
18154 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18155 (eval $ac_link) 2>&5
18157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18158 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18159 (./conftest; exit; ) >&5 2>/dev/null
18161 case x$lt_status in
18162 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
18163 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
18164 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
18167 # compilation failed
18168 lt_cv_dlopen_self=no
18175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
18176 $as_echo "$lt_cv_dlopen_self" >&6; }
18178 if test "x$lt_cv_dlopen_self" = xyes; then
18179 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
18180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
18181 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
18182 if test "${lt_cv_dlopen_self_static+set}" = set; then :
18183 $as_echo_n "(cached) " >&6
18185 if test "$cross_compiling" = yes; then :
18186 lt_cv_dlopen_self_static=cross
18188 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
18189 lt_status=$lt_dlunknown
18190 cat > conftest.$ac_ext <<_LT_EOF
18191 #line 18191 "configure"
18192 #include "confdefs.h"
18201 # define LT_DLGLOBAL RTLD_GLOBAL
18204 # define LT_DLGLOBAL DL_GLOBAL
18206 # define LT_DLGLOBAL 0
18210 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18211 find out it does not work in some platform. */
18212 #ifndef LT_DLLAZY_OR_NOW
18214 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18217 # define LT_DLLAZY_OR_NOW DL_LAZY
18220 # define LT_DLLAZY_OR_NOW RTLD_NOW
18223 # define LT_DLLAZY_OR_NOW DL_NOW
18225 # define LT_DLLAZY_OR_NOW 0
18232 void fnord() { int i=42;}
18235 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18236 int status = $lt_dlunknown;
18240 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18241 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18242 /* dlclose (self); */
18250 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
18251 (eval $ac_link) 2>&5
18253 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
18254 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
18255 (./conftest; exit; ) >&5 2>/dev/null
18257 case x$lt_status in
18258 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18259 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18260 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
18263 # compilation failed
18264 lt_cv_dlopen_self_static=no
18271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
18272 $as_echo "$lt_cv_dlopen_self_static" >&6; }
18275 CPPFLAGS="$save_CPPFLAGS"
18276 LDFLAGS="$save_LDFLAGS"
18281 case $lt_cv_dlopen_self in
18282 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18283 *) enable_dlopen_self=unknown ;;
18286 case $lt_cv_dlopen_self_static in
18287 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18288 *) enable_dlopen_self_static=unknown ;;
18310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
18311 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
18312 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
18313 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
18314 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
18315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18316 $as_echo "yes" >&6; }
18318 # FIXME - insert some real tests, host_os isn't really good enough
18321 if test -n "$STRIP" ; then
18322 striplib="$STRIP -x"
18323 old_striplib="$STRIP -S"
18324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
18325 $as_echo "yes" >&6; }
18327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18328 $as_echo "no" >&6; }
18332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18333 $as_echo "no" >&6; }
18349 # Report which library types will actually be built
18350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
18351 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
18352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
18353 $as_echo "$can_build_shared" >&6; }
18355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
18356 $as_echo_n "checking whether to build shared libraries... " >&6; }
18357 test "$can_build_shared" = "no" && enable_shared=no
18359 # On AIX, shared libraries and static libraries use the same namespace, and
18360 # are all built from PIC.
18363 test "$enable_shared" = yes && enable_static=no
18364 if test -n "$RANLIB"; then
18365 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18366 postinstall_cmds='$RANLIB $lib'
18371 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
18372 test "$enable_shared" = yes && enable_static=no
18376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
18377 $as_echo "$enable_shared" >&6; }
18379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
18380 $as_echo_n "checking whether to build static libraries... " >&6; }
18381 # Make sure either enable_shared or enable_static is yes.
18382 test "$enable_shared" = yes || enable_static=yes
18383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
18384 $as_echo "$enable_static" >&6; }
18391 ac_cpp='$CPP $CPPFLAGS'
18392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18400 ac_cpp='$CXXCPP $CPPFLAGS'
18401 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18402 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18403 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18405 archive_cmds_need_lc_CXX=no
18406 allow_undefined_flag_CXX=
18407 always_export_symbols_CXX=no
18408 archive_expsym_cmds_CXX=
18409 compiler_needs_object_CXX=no
18410 export_dynamic_flag_spec_CXX=
18411 hardcode_direct_CXX=no
18412 hardcode_direct_absolute_CXX=no
18413 hardcode_libdir_flag_spec_CXX=
18414 hardcode_libdir_flag_spec_ld_CXX=
18415 hardcode_libdir_separator_CXX=
18416 hardcode_minus_L_CXX=no
18417 hardcode_shlibpath_var_CXX=unsupported
18418 hardcode_automatic_CXX=no
18419 inherit_rpath_CXX=no
18421 module_expsym_cmds_CXX=
18422 link_all_deplibs_CXX=unknown
18423 old_archive_cmds_CXX=$old_archive_cmds
18424 no_undefined_flag_CXX=
18425 whole_archive_flag_spec_CXX=
18426 enable_shared_with_static_runtimes_CXX=no
18428 # Source file extension for C++ test sources.
18431 # Object file extension for compiled C++ test sources.
18435 # No sense in running all these tests if we already determined that
18436 # the CXX compiler isn't working. Some variables (like enable_shared)
18437 # are currently assumed to apply to all compilers on this platform,
18438 # and will be corrupted by setting them based on a non-working compiler.
18439 if test "$_lt_caught_CXX_error" != yes; then
18440 # Code to be used in simple compile tests
18441 lt_simple_compile_test_code="int some_variable = 0;"
18443 # Code to be used in simple link tests
18444 lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
18446 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18453 # If no C compiler was specified, use CC.
18456 # If no C compiler flags were specified, use CFLAGS.
18457 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
18459 # Allow CC to be a program name with arguments.
18463 # save warnings/boilerplate of simple test code
18464 ac_outfile=conftest.$ac_objext
18465 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
18466 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18467 _lt_compiler_boilerplate=`cat conftest.err`
18470 ac_outfile=conftest.$ac_objext
18471 echo "$lt_simple_link_test_code" >conftest.$ac_ext
18472 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
18473 _lt_linker_boilerplate=`cat conftest.err`
18477 # Allow CC to be a program name with arguments.
18482 lt_save_with_gnu_ld=$with_gnu_ld
18483 lt_save_path_LD=$lt_cv_path_LD
18484 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
18485 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
18487 $as_unset lt_cv_prog_gnu_ld
18489 if test -n "${lt_cv_path_LDCXX+set}"; then
18490 lt_cv_path_LD=$lt_cv_path_LDCXX
18492 $as_unset lt_cv_path_LD
18494 test -z "${LDCXX+set}" || LD=$LDCXX
18498 for cc_temp in $compiler""; do
18500 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
18501 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
18506 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18509 if test -n "$compiler"; then
18510 # We don't want -fno-exception when compiling C++ code, so set the
18511 # no_builtin_flag separately
18512 if test "$GXX" = yes; then
18513 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
18515 lt_prog_compiler_no_builtin_flag_CXX=
18518 if test "$GXX" = yes; then
18519 # Set up default GNU C++ configuration
18523 # Check whether --with-gnu-ld was given.
18524 if test "${with_gnu_ld+set}" = set; then :
18525 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
18531 if test "$GCC" = yes; then
18532 # Check if gcc -print-prog-name=ld gives a path.
18533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
18534 $as_echo_n "checking for ld used by $CC... " >&6; }
18537 # gcc leaves a trailing carriage return which upsets mingw
18538 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
18540 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
18543 # Accept absolute paths.
18545 re_direlt='/[^/][^/]*/\.\./'
18546 # Canonicalize the pathname of ld
18547 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
18548 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
18549 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
18551 test -z "$LD" && LD="$ac_prog"
18554 # If it fails, then pretend we aren't using GCC.
18558 # If it is relative, then search for the first ld in PATH.
18559 with_gnu_ld=unknown
18562 elif test "$with_gnu_ld" = yes; then
18563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
18564 $as_echo_n "checking for GNU ld... " >&6; }
18566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
18567 $as_echo_n "checking for non-GNU ld... " >&6; }
18569 if test "${lt_cv_path_LD+set}" = set; then :
18570 $as_echo_n "(cached) " >&6
18572 if test -z "$LD"; then
18573 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
18574 for ac_dir in $PATH; do
18576 test -z "$ac_dir" && ac_dir=.
18577 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
18578 lt_cv_path_LD="$ac_dir/$ac_prog"
18579 # Check to see if the program is GNU ld. I'd rather use --version,
18580 # but apparently some variants of GNU ld only accept -v.
18581 # Break only if it was the GNU/non-GNU ld that we prefer.
18582 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
18583 *GNU* | *'with BFD'*)
18584 test "$with_gnu_ld" != no && break
18587 test "$with_gnu_ld" != yes && break
18594 lt_cv_path_LD="$LD" # Let the user override the test with a path.
18598 LD="$lt_cv_path_LD"
18599 if test -n "$LD"; then
18600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
18601 $as_echo "$LD" >&6; }
18603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
18604 $as_echo "no" >&6; }
18606 test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
18607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
18608 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
18609 if test "${lt_cv_prog_gnu_ld+set}" = set; then :
18610 $as_echo_n "(cached) " >&6
18612 # I'd rather use --version here, but apparently some GNU lds only accept -v.
18613 case `$LD -v 2>&1 </dev/null` in
18614 *GNU* | *'with BFD'*)
18615 lt_cv_prog_gnu_ld=yes
18618 lt_cv_prog_gnu_ld=no
18622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
18623 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
18624 with_gnu_ld=$lt_cv_prog_gnu_ld
18632 # Check if GNU C++ uses GNU ld as the underlying linker, since the
18633 # archiving commands below assume that GNU ld is being used.
18634 if test "$with_gnu_ld" = yes; then
18635 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
18636 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'
18638 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
18639 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
18641 # If archive_cmds runs LD, not CC, wlarc should be empty
18642 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
18643 # investigate it a little bit more. (MM)
18646 # ancient GNU ld didn't support --whole-archive et. al.
18647 if eval "`$CC -print-prog-name=ld` --help 2>&1" |
18648 $GREP 'no-whole-archive' > /dev/null; then
18649 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
18651 whole_archive_flag_spec_CXX=
18657 # A generic and very simple default shared library creation
18658 # command for GNU C++ for the case where it uses the native
18659 # linker, instead of GNU ld. If possible, this setting should
18660 # overridden to take advantage of the native linker features on
18661 # the platform it is being used on.
18662 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
18665 # Commands to make compiler produce verbose output that lists
18666 # what "hidden" libraries, object files and flags are used when
18667 # linking a shared library.
18668 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
18676 # PORTME: fill in a description of your system's C++ link characteristics
18677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18678 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
18682 # FIXME: insert proper C++ library support
18686 if test "$host_cpu" = ia64; then
18687 # On IA64, the linker does run time linking by default, so we don't
18688 # have to do anything special.
18689 aix_use_runtimelinking=no
18690 exp_sym_flag='-Bexport'
18693 aix_use_runtimelinking=no
18695 # Test if we are trying to use run time linking or normal
18696 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
18697 # need to do runtime linking.
18698 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
18699 for ld_flag in $LDFLAGS; do
18702 aix_use_runtimelinking=yes
18710 exp_sym_flag='-bexport'
18711 no_entry_flag='-bnoentry'
18714 # When large executables or shared objects are built, AIX ld can
18715 # have problems creating the table of contents. If linking a library
18716 # or program results in "error TOC overflow" add -mminimal-toc to
18717 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
18718 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
18720 archive_cmds_CXX=''
18721 hardcode_direct_CXX=yes
18722 hardcode_direct_absolute_CXX=yes
18723 hardcode_libdir_separator_CXX=':'
18724 link_all_deplibs_CXX=yes
18725 file_list_spec_CXX='${wl}-f,'
18727 if test "$GXX" = yes; then
18728 case $host_os in aix4.[012]|aix4.[012].*)
18729 # We only want to do this on AIX 4.2 and lower, the check
18730 # below for broken collect2 doesn't work under 4.3+
18731 collect2name=`${CC} -print-prog-name=collect2`
18732 if test -f "$collect2name" &&
18733 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
18735 # We have reworked collect2
18738 # We have old collect2
18739 hardcode_direct_CXX=unsupported
18740 # It fails to find uninstalled libraries when the uninstalled
18741 # path is not listed in the libpath. Setting hardcode_minus_L
18742 # to unsupported forces relinking
18743 hardcode_minus_L_CXX=yes
18744 hardcode_libdir_flag_spec_CXX='-L$libdir'
18745 hardcode_libdir_separator_CXX=
18748 shared_flag='-shared'
18749 if test "$aix_use_runtimelinking" = yes; then
18750 shared_flag="$shared_flag "'${wl}-G'
18754 if test "$host_cpu" = ia64; then
18755 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
18756 # chokes on -Wl,-G. The following line is correct:
18759 if test "$aix_use_runtimelinking" = yes; then
18760 shared_flag='${wl}-G'
18762 shared_flag='${wl}-bM:SRE'
18767 export_dynamic_flag_spec_CXX='${wl}-bexpall'
18768 # It seems that -bexpall does not export symbols beginning with
18769 # underscore (_), so it is better to generate a list of symbols to
18771 always_export_symbols_CXX=yes
18772 if test "$aix_use_runtimelinking" = yes; then
18773 # Warning - without using the other runtime loading flags (-brtl),
18774 # -berok will link without error, but may produce a broken library.
18775 allow_undefined_flag_CXX='-berok'
18776 # Determine the default libpath from the value encoded in an empty
18778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18779 /* end confdefs.h. */
18789 if ac_fn_cxx_try_link "$LINENO"; then :
18791 lt_aix_libpath_sed='
18792 /Import File Strings/,/^$/ {
18798 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18799 # Check for a 64-bit object if we didn't find anything.
18800 if test -z "$aix_libpath"; then
18801 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18804 rm -f core conftest.err conftest.$ac_objext \
18805 conftest$ac_exeext conftest.$ac_ext
18806 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18808 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18810 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"
18812 if test "$host_cpu" = ia64; then
18813 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
18814 allow_undefined_flag_CXX="-z nodefs"
18815 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"
18817 # Determine the default libpath from the value encoded in an
18818 # empty executable.
18819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18820 /* end confdefs.h. */
18830 if ac_fn_cxx_try_link "$LINENO"; then :
18832 lt_aix_libpath_sed='
18833 /Import File Strings/,/^$/ {
18839 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18840 # Check for a 64-bit object if we didn't find anything.
18841 if test -z "$aix_libpath"; then
18842 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
18845 rm -f core conftest.err conftest.$ac_objext \
18846 conftest$ac_exeext conftest.$ac_ext
18847 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
18849 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
18850 # Warning - without using the other run time loading flags,
18851 # -berok will link without error, but may produce a broken library.
18852 no_undefined_flag_CXX=' ${wl}-bernotok'
18853 allow_undefined_flag_CXX=' ${wl}-berok'
18854 # Exported symbols can be pulled into shared objects from archives
18855 whole_archive_flag_spec_CXX='$convenience'
18856 archive_cmds_need_lc_CXX=yes
18857 # This is similar to how AIX traditionally builds its shared
18859 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'
18865 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
18866 allow_undefined_flag_CXX=unsupported
18867 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
18868 # support --undefined. This deserves some investigation. FIXME
18869 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
18876 case $cc_basename in
18878 # FIXME: insert proper C++ library support
18884 cygwin* | mingw* | pw32* | cegcc*)
18885 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
18886 # as there is no search path for DLLs.
18887 hardcode_libdir_flag_spec_CXX='-L$libdir'
18888 allow_undefined_flag_CXX=unsupported
18889 always_export_symbols_CXX=no
18890 enable_shared_with_static_runtimes_CXX=yes
18892 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
18893 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'
18894 # If the export-symbols file already is a .def file (1st line
18895 # is EXPORTS), use it as is; otherwise, prepend...
18896 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
18897 cp $export_symbols $output_objdir/$soname.def;
18899 echo EXPORTS > $output_objdir/$soname.def;
18900 cat $export_symbols >> $output_objdir/$soname.def;
18902 $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'
18907 darwin* | rhapsody*)
18910 archive_cmds_need_lc_CXX=no
18911 hardcode_direct_CXX=no
18912 hardcode_automatic_CXX=yes
18913 hardcode_shlibpath_var_CXX=unsupported
18914 whole_archive_flag_spec_CXX=''
18915 link_all_deplibs_CXX=yes
18916 allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
18917 case $cc_basename in
18918 ifort*) _lt_dar_can_shared=yes ;;
18919 *) _lt_dar_can_shared=$GCC ;;
18921 if test "$_lt_dar_can_shared" = "yes"; then
18922 output_verbose_link_cmd=echo
18923 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}"
18924 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
18925 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}"
18926 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}"
18927 if test "$lt_cv_apple_cc_single_mod" != "yes"; then
18928 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}"
18929 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}"
18939 case $cc_basename in
18941 # FIXME: insert proper C++ library support
18945 # Green Hills C++ Compiler
18946 # FIXME: insert proper C++ library support
18950 # FIXME: insert proper C++ library support
18957 # C++ shared libraries reported to be fairly broken before
18963 archive_cmds_need_lc_CXX=no
18966 freebsd* | dragonfly*)
18967 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
18976 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
18977 hardcode_libdir_separator_CXX=:
18978 export_dynamic_flag_spec_CXX='${wl}-E'
18979 hardcode_direct_CXX=yes
18980 hardcode_minus_L_CXX=yes # Not in the search PATH,
18981 # but as the default
18982 # location of the library.
18984 case $cc_basename in
18986 # FIXME: insert proper C++ library support
18990 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'
18991 # Commands to make compiler produce verbose output that lists
18992 # what "hidden" libraries, object files and flags are used when
18993 # linking a shared library.
18995 # There doesn't appear to be a way to prevent this compiler from
18996 # explicitly linking system object files so we need to strip them
18997 # from the output so that they don't get included in the library
18999 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'
19002 if test "$GXX" = yes; then
19003 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'
19005 # FIXME: insert proper C++ library support
19013 if test $with_gnu_ld = no; then
19014 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
19015 hardcode_libdir_separator_CXX=:
19021 export_dynamic_flag_spec_CXX='${wl}-E'
19027 hardcode_direct_CXX=no
19028 hardcode_shlibpath_var_CXX=no
19031 hardcode_direct_CXX=yes
19032 hardcode_direct_absolute_CXX=yes
19033 hardcode_minus_L_CXX=yes # Not in the search PATH,
19034 # but as the default
19035 # location of the library.
19039 case $cc_basename in
19041 # FIXME: insert proper C++ library support
19047 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19050 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19053 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19056 # Commands to make compiler produce verbose output that lists
19057 # what "hidden" libraries, object files and flags are used when
19058 # linking a shared library.
19060 # There doesn't appear to be a way to prevent this compiler from
19061 # explicitly linking system object files so we need to strip them
19062 # from the output so that they don't get included in the library
19064 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'
19067 if test "$GXX" = yes; then
19068 if test $with_gnu_ld = no; then
19071 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19074 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19077 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'
19082 # FIXME: insert proper C++ library support
19090 hardcode_direct_CXX=no
19091 hardcode_shlibpath_var_CXX=no
19092 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19093 export_dynamic_flag_spec_CXX='${wl}-E'
19094 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19095 # Instead, shared libraries are loaded at an image base (0x10000000 by
19096 # default) and relocated if they conflict, which is a slow very memory
19097 # consuming and fragmenting process. To avoid this, we pick a random,
19098 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19099 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19100 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'
19101 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'
19104 case $cc_basename in
19107 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'
19109 # Archives containing C++ object files must be created using
19110 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
19111 # necessary to make sure instantiated templates are included
19113 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
19116 if test "$GXX" = yes; then
19117 if test "$with_gnu_ld" = no; then
19118 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'
19120 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'
19123 link_all_deplibs_CXX=yes
19126 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19127 hardcode_libdir_separator_CXX=:
19128 inherit_rpath_CXX=yes
19131 linux* | k*bsd*-gnu)
19132 case $cc_basename in
19134 # Kuck and Associates, Inc. (KAI) C++ Compiler
19136 # KCC will only create a shared library if the output file
19137 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19138 # to its proper name (with version) after linking.
19139 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'
19140 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'
19141 # Commands to make compiler produce verbose output that lists
19142 # what "hidden" libraries, object files and flags are used when
19143 # linking a shared library.
19145 # There doesn't appear to be a way to prevent this compiler from
19146 # explicitly linking system object files so we need to strip them
19147 # from the output so that they don't get included in the library
19149 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'
19151 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19152 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19154 # Archives containing C++ object files must be created using
19155 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
19156 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
19161 # version 8.0 and above of icpc choke on multiply defined symbols
19162 # if we add $predep_objects and $postdep_objects, however 7.1 and
19163 # earlier do not add the objects themselves.
19164 case `$CC -V 2>&1` in
19166 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19167 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'
19169 *) # Version 8.0 or newer
19172 ia64*) tmp_idyn=' -i_dynamic';;
19174 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19175 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'
19178 archive_cmds_need_lc_CXX=no
19179 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19180 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19181 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
19184 # Portland Group C++ compiler
19186 *pgCC\ [1-5]* | *pgcpp\ [1-5]*)
19187 prelink_cmds_CXX='tpldir=Template.dir~
19189 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
19190 compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
19191 old_archive_cmds_CXX='tpldir=Template.dir~
19193 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
19194 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
19196 archive_cmds_CXX='tpldir=Template.dir~
19198 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19199 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19200 archive_expsym_cmds_CXX='tpldir=Template.dir~
19202 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
19203 $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'
19205 *) # Version 6 will use weak symbols
19206 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
19207 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'
19211 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
19212 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19213 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'
19217 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
19218 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'
19220 runpath_var=LD_RUN_PATH
19221 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19222 hardcode_libdir_separator_CXX=:
19224 # Commands to make compiler produce verbose output that lists
19225 # what "hidden" libraries, object files and flags are used when
19226 # linking a shared library.
19228 # There doesn't appear to be a way to prevent this compiler from
19229 # explicitly linking system object files so we need to strip them
19230 # from the output so that they don't get included in the library
19232 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'
19235 # IBM XL 8.0 on PPC, with GNU ld
19236 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19237 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
19238 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19239 if test "x$supports_anon_versioning" = xyes; then
19240 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
19241 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19242 echo "local: *; };" >> $output_objdir/$libname.ver~
19243 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19247 case `$CC -V 2>&1 | sed 5q` in
19250 no_undefined_flag_CXX=' -zdefs'
19251 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19252 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'
19253 hardcode_libdir_flag_spec_CXX='-R$libdir'
19254 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'
19255 compiler_needs_object_CXX=yes
19257 # Not sure whether something based on
19258 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
19260 output_verbose_link_cmd='echo'
19262 # Archives containing C++ object files must be created using
19263 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19264 # necessary to make sure instantiated templates are included
19266 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19274 # FIXME: insert proper C++ library support
19279 # FIXME: insert proper C++ library support
19284 case $cc_basename in
19286 # FIXME: insert proper C++ library support
19290 # FIXME: insert proper C++ library support
19297 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
19298 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
19300 hardcode_libdir_flag_spec_CXX='-R$libdir'
19301 hardcode_direct_CXX=yes
19302 hardcode_shlibpath_var_CXX=no
19304 # Workaround some broken pre-1.5 toolchains
19305 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
19313 # C++ shared libraries are fairly broken
19318 if test -f /usr/libexec/ld.so; then
19319 hardcode_direct_CXX=yes
19320 hardcode_shlibpath_var_CXX=no
19321 hardcode_direct_absolute_CXX=yes
19322 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
19323 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19324 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19325 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
19326 export_dynamic_flag_spec_CXX='${wl}-E'
19327 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19329 output_verbose_link_cmd=echo
19335 osf3* | osf4* | osf5*)
19336 case $cc_basename in
19338 # Kuck and Associates, Inc. (KAI) C++ Compiler
19340 # KCC will only create a shared library if the output file
19341 # ends with ".so" (or ".sl" for HP-UX), so rename the library
19342 # to its proper name (with version) after linking.
19343 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'
19345 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
19346 hardcode_libdir_separator_CXX=:
19348 # Archives containing C++ object files must be created using
19349 # the KAI C++ compiler.
19351 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
19352 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
19356 # Rational C++ 2.4.1
19357 # FIXME: insert proper C++ library support
19363 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19364 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'
19365 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19368 allow_undefined_flag_CXX=' -expect_unresolved \*'
19369 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'
19370 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
19371 echo "-hidden">> $lib.exp~
19372 $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~
19374 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
19378 hardcode_libdir_separator_CXX=:
19380 # Commands to make compiler produce verbose output that lists
19381 # what "hidden" libraries, object files and flags are used when
19382 # linking a shared library.
19384 # There doesn't appear to be a way to prevent this compiler from
19385 # explicitly linking system object files so we need to strip them
19386 # from the output so that they don't get included in the library
19388 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'
19391 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19392 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
19395 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'
19398 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'
19402 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
19403 hardcode_libdir_separator_CXX=:
19405 # Commands to make compiler produce verbose output that lists
19406 # what "hidden" libraries, object files and flags are used when
19407 # linking a shared library.
19408 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
19411 # FIXME: insert proper C++ library support
19419 # FIXME: insert proper C++ library support
19424 case $cc_basename in
19427 # FIXME: insert proper C++ library support
19432 # FIXME: insert proper C++ library support
19436 # FIXME: insert proper C++ library support
19443 case $cc_basename in
19445 # Sun C++ 4.2, 5.x and Centerline C++
19446 archive_cmds_need_lc_CXX=yes
19447 no_undefined_flag_CXX=' -zdefs'
19448 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
19449 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19450 $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'
19452 hardcode_libdir_flag_spec_CXX='-R$libdir'
19453 hardcode_shlibpath_var_CXX=no
19455 solaris2.[0-5] | solaris2.[0-5].*) ;;
19457 # The compiler driver will combine and reorder linker options,
19458 # but understands `-z linker_flag'.
19459 # Supported since Solaris 2.6 (maybe 2.5.1?)
19460 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
19463 link_all_deplibs_CXX=yes
19465 output_verbose_link_cmd='echo'
19467 # Archives containing C++ object files must be created using
19468 # "CC -xar", where "CC" is the Sun C++ compiler. This is
19469 # necessary to make sure instantiated templates are included
19471 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
19474 # Green Hills C++ Compiler
19475 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19477 # The C++ compiler must be used to create the archive.
19478 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
19481 # GNU C++ compiler with Solaris linker
19482 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
19483 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
19484 if $CC --version | $GREP -v '^2\.7' > /dev/null; then
19485 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19486 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19487 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19489 # Commands to make compiler produce verbose output that lists
19490 # what "hidden" libraries, object files and flags are used when
19491 # linking a shared library.
19492 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
19494 # g++ 2.7 appears to require `-G' NOT `-shared' on this
19496 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
19497 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
19498 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
19500 # Commands to make compiler produce verbose output that lists
19501 # what "hidden" libraries, object files and flags are used when
19502 # linking a shared library.
19503 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
19506 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
19508 solaris2.[0-5] | solaris2.[0-5].*) ;;
19510 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
19518 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
19519 no_undefined_flag_CXX='${wl}-z,text'
19520 archive_cmds_need_lc_CXX=no
19521 hardcode_shlibpath_var_CXX=no
19522 runpath_var='LD_RUN_PATH'
19524 case $cc_basename in
19526 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19527 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19530 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19531 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19536 sysv5* | sco3.2v5* | sco5v6*)
19537 # Note: We can NOT use -z defs as we might desire, because we do not
19538 # link with -lc, and that would cause any symbols used from libc to
19539 # always be unresolved, which means just about no library would
19540 # ever link correctly. If we're not using GNU ld we use -z text
19541 # though, which does catch some bad symbols but isn't as heavy-handed
19543 no_undefined_flag_CXX='${wl}-z,text'
19544 allow_undefined_flag_CXX='${wl}-z,nodefs'
19545 archive_cmds_need_lc_CXX=no
19546 hardcode_shlibpath_var_CXX=no
19547 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
19548 hardcode_libdir_separator_CXX=':'
19549 link_all_deplibs_CXX=yes
19550 export_dynamic_flag_spec_CXX='${wl}-Bexport'
19551 runpath_var='LD_RUN_PATH'
19553 case $cc_basename in
19555 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19556 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19559 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19560 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
19566 case $cc_basename in
19568 # NonStop-UX NCC 3.20
19569 # FIXME: insert proper C++ library support
19573 # FIXME: insert proper C++ library support
19580 # FIXME: insert proper C++ library support
19585 # FIXME: insert proper C++ library support
19590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
19591 $as_echo "$ld_shlibs_CXX" >&6; }
19592 test "$ld_shlibs_CXX" = no && can_build_shared=no
19598 ## There is no encapsulation within the following macros, do not change
19599 ## the running order or otherwise move them around unless you know exactly
19600 ## what you are doing...
19601 # Dependencies to place before and after the object being linked:
19602 predep_objects_CXX=
19603 postdep_objects_CXX=
19606 compiler_lib_search_path_CXX=
19608 cat > conftest.$ac_ext <<_LT_EOF
19612 Foo (void) { a = 0; }
19618 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
19619 (eval $ac_compile) 2>&5
19621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
19622 test $ac_status = 0; }; then
19623 # Parse the compiler output and extract the necessary
19624 # objects, libraries and library flags.
19626 # Sentinel used to keep track of whether or not we are before
19627 # the conftest object file.
19628 pre_test_object_deps_done=no
19630 for p in `eval "$output_verbose_link_cmd"`; do
19634 # Some compilers place space between "-{L,R}" and the path.
19635 # Remove the space.
19636 if test $p = "-L" ||
19637 test $p = "-R"; then
19644 if test "$pre_test_object_deps_done" = no; then
19647 # Internal compiler library paths should come after those
19648 # provided the user. The postdeps already come after the
19649 # user supplied libs so there is no need to process them.
19650 if test -z "$compiler_lib_search_path_CXX"; then
19651 compiler_lib_search_path_CXX="${prev}${p}"
19653 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
19656 # The "-l" case would never come before the object being
19657 # linked, so don't bother handling this case.
19660 if test -z "$postdeps_CXX"; then
19661 postdeps_CXX="${prev}${p}"
19663 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
19669 # This assumes that the test object file only shows up
19670 # once in the compiler output.
19671 if test "$p" = "conftest.$objext"; then
19672 pre_test_object_deps_done=yes
19676 if test "$pre_test_object_deps_done" = no; then
19677 if test -z "$predep_objects_CXX"; then
19678 predep_objects_CXX="$p"
19680 predep_objects_CXX="$predep_objects_CXX $p"
19683 if test -z "$postdep_objects_CXX"; then
19684 postdep_objects_CXX="$p"
19686 postdep_objects_CXX="$postdep_objects_CXX $p"
19691 *) ;; # Ignore the rest.
19699 echo "libtool.m4: error: problem compiling CXX test program"
19702 $RM -f confest.$objext
19704 # PORTME: override above test on systems where it is broken
19707 # Interix 3.5 installs completely hosed .la files for C++, so rather than
19708 # hack all around it, let's just trust "g++" to DTRT.
19709 predep_objects_CXX=
19710 postdep_objects_CXX=
19715 case `$CC -V 2>&1 | sed 5q` in
19719 # The more standards-conforming stlport4 library is
19720 # incompatible with the Cstd library. Avoid specifying
19721 # it if it's in CXXFLAGS. Ignore libCrun as
19722 # -library=stlport4 depends on it.
19723 case " $CXX $CXXFLAGS " in
19724 *" -library=stlport4 "*)
19725 solaris_use_stlport4=yes
19729 if test "$solaris_use_stlport4" != yes; then
19730 postdeps_CXX='-library=Cstd -library=Crun'
19737 case $cc_basename in
19739 # The more standards-conforming stlport4 library is
19740 # incompatible with the Cstd library. Avoid specifying
19741 # it if it's in CXXFLAGS. Ignore libCrun as
19742 # -library=stlport4 depends on it.
19743 case " $CXX $CXXFLAGS " in
19744 *" -library=stlport4 "*)
19745 solaris_use_stlport4=yes
19749 # Adding this requires a known-good setup of shared libraries for
19750 # Sun compiler versions before 5.6, else PIC objects from an old
19751 # archive will be linked into the output, leading to subtle bugs.
19752 if test "$solaris_use_stlport4" != yes; then
19753 postdeps_CXX='-library=Cstd -library=Crun'
19761 case " $postdeps_CXX " in
19762 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
19764 compiler_lib_search_dirs_CXX=
19765 if test -n "${compiler_lib_search_path_CXX}"; then
19766 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
19799 lt_prog_compiler_wl_CXX=
19800 lt_prog_compiler_pic_CXX=
19801 lt_prog_compiler_static_CXX=
19803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
19804 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
19806 # C++ specific cases for pic, static, wl, etc.
19807 if test "$GXX" = yes; then
19808 lt_prog_compiler_wl_CXX='-Wl,'
19809 lt_prog_compiler_static_CXX='-static'
19813 # All AIX code is PIC.
19814 if test "$host_cpu" = ia64; then
19815 # AIX 5 now supports IA64 processor
19816 lt_prog_compiler_static_CXX='-Bstatic'
19823 # see comment about AmigaOS4 .so support
19824 lt_prog_compiler_pic_CXX='-fPIC'
19827 # FIXME: we need at least 68020 code to build shared libraries, but
19828 # adding the `-m68020' flag to GCC prevents building anything better,
19830 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
19835 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
19836 # PIC is the default for these OSes.
19838 mingw* | cygwin* | os2* | pw32* | cegcc*)
19839 # This hack is so that the source file can tell whether it is being
19840 # built for inclusion in a dll (and should export symbols for example).
19841 # Although the cygwin gcc ignores -fPIC, still need this for old-style
19842 # (--disable-auto-import) libraries
19843 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
19845 darwin* | rhapsody*)
19846 # PIC is the default on this platform
19847 # Common symbols not allowed in MH_DYLIB files
19848 lt_prog_compiler_pic_CXX='-fno-common'
19851 # DJGPP does not support shared libraries at all
19852 lt_prog_compiler_pic_CXX=
19855 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
19856 # Instead, we relocate shared libraries at runtime.
19859 if test -d /usr/nec; then
19860 lt_prog_compiler_pic_CXX=-Kconform_pic
19864 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
19865 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
19866 # sets the default TLS model and affects inlining.
19871 lt_prog_compiler_pic_CXX='-fPIC'
19876 # QNX uses GNU C++, but need to define -shared option too, otherwise
19877 # it will coredump.
19878 lt_prog_compiler_pic_CXX='-fPIC -shared'
19881 lt_prog_compiler_pic_CXX='-fPIC'
19887 # All AIX code is PIC.
19888 if test "$host_cpu" = ia64; then
19889 # AIX 5 now supports IA64 processor
19890 lt_prog_compiler_static_CXX='-Bstatic'
19892 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
19896 case $cc_basename in
19898 # Green Hills C++ Compiler
19899 # _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"
19904 case $cc_basename in
19906 lt_prog_compiler_pic_CXX='-KPIC'
19909 # Green Hills C++ Compiler
19910 lt_prog_compiler_pic_CXX='-pic'
19916 freebsd* | dragonfly*)
19917 # FreeBSD uses GNU C++
19919 hpux9* | hpux10* | hpux11*)
19920 case $cc_basename in
19922 lt_prog_compiler_wl_CXX='-Wl,'
19923 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19924 if test "$host_cpu" != ia64; then
19925 lt_prog_compiler_pic_CXX='+Z'
19929 lt_prog_compiler_wl_CXX='-Wl,'
19930 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
19936 lt_prog_compiler_pic_CXX='+Z'
19945 # This is c89, which is MS Visual C++ (no shared libs)
19946 # Anyone wants to do a port?
19948 irix5* | irix6* | nonstopux*)
19949 case $cc_basename in
19951 lt_prog_compiler_wl_CXX='-Wl,'
19952 lt_prog_compiler_static_CXX='-non_shared'
19953 # CC pic flag -KPIC is the default.
19959 linux* | k*bsd*-gnu)
19960 case $cc_basename in
19963 lt_prog_compiler_wl_CXX='--backend -Wl,'
19964 lt_prog_compiler_pic_CXX='-fPIC'
19967 # old Intel C++ for x86_64 which still supported -KPIC.
19968 lt_prog_compiler_wl_CXX='-Wl,'
19969 lt_prog_compiler_pic_CXX='-KPIC'
19970 lt_prog_compiler_static_CXX='-static'
19973 # Intel C++, used to be incompatible with GCC.
19974 # ICC 10 doesn't accept -KPIC any more.
19975 lt_prog_compiler_wl_CXX='-Wl,'
19976 lt_prog_compiler_pic_CXX='-fPIC'
19977 lt_prog_compiler_static_CXX='-static'
19980 # Portland Group C++ compiler
19981 lt_prog_compiler_wl_CXX='-Wl,'
19982 lt_prog_compiler_pic_CXX='-fpic'
19983 lt_prog_compiler_static_CXX='-Bstatic'
19987 # Make sure the PIC flag is empty. It appears that all Alpha
19988 # Linux and Compaq Tru64 Unix objects are PIC.
19989 lt_prog_compiler_pic_CXX=
19990 lt_prog_compiler_static_CXX='-non_shared'
19993 # IBM XL 8.0 on PPC
19994 lt_prog_compiler_wl_CXX='-Wl,'
19995 lt_prog_compiler_pic_CXX='-qpic'
19996 lt_prog_compiler_static_CXX='-qstaticlink'
19999 case `$CC -V 2>&1 | sed 5q` in
20002 lt_prog_compiler_pic_CXX='-KPIC'
20003 lt_prog_compiler_static_CXX='-Bstatic'
20004 lt_prog_compiler_wl_CXX='-Qoption ld '
20015 case $cc_basename in
20017 lt_prog_compiler_pic_CXX='-W c,exportall'
20026 # QNX uses GNU C++, but need to define -shared option too, otherwise
20027 # it will coredump.
20028 lt_prog_compiler_pic_CXX='-fPIC -shared'
20030 osf3* | osf4* | osf5*)
20031 case $cc_basename in
20033 lt_prog_compiler_wl_CXX='--backend -Wl,'
20036 # Rational C++ 2.4.1
20037 lt_prog_compiler_pic_CXX='-pic'
20040 # Digital/Compaq C++
20041 lt_prog_compiler_wl_CXX='-Wl,'
20042 # Make sure the PIC flag is empty. It appears that all Alpha
20043 # Linux and Compaq Tru64 Unix objects are PIC.
20044 lt_prog_compiler_pic_CXX=
20045 lt_prog_compiler_static_CXX='-non_shared'
20054 case $cc_basename in
20056 # Sun C++ 4.2, 5.x and Centerline C++
20057 lt_prog_compiler_pic_CXX='-KPIC'
20058 lt_prog_compiler_static_CXX='-Bstatic'
20059 lt_prog_compiler_wl_CXX='-Qoption ld '
20062 # Green Hills C++ Compiler
20063 lt_prog_compiler_pic_CXX='-PIC'
20070 case $cc_basename in
20073 lt_prog_compiler_pic_CXX='-pic'
20074 lt_prog_compiler_static_CXX='-Bstatic'
20078 lt_prog_compiler_pic_CXX='-pic'
20084 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
20085 case $cc_basename in
20087 lt_prog_compiler_wl_CXX='-Wl,'
20088 lt_prog_compiler_pic_CXX='-KPIC'
20089 lt_prog_compiler_static_CXX='-Bstatic'
20094 case $cc_basename in
20096 # NonStop-UX NCC 3.20
20097 lt_prog_compiler_pic_CXX='-KPIC'
20106 lt_prog_compiler_can_build_shared_CXX=no
20112 # For platforms which do not support PIC, -DPIC is meaningless:
20114 lt_prog_compiler_pic_CXX=
20117 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
20120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_CXX" >&5
20121 $as_echo "$lt_prog_compiler_pic_CXX" >&6; }
20126 # Check to make sure the PIC flag actually works.
20128 if test -n "$lt_prog_compiler_pic_CXX"; then
20129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
20130 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
20131 if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then :
20132 $as_echo_n "(cached) " >&6
20134 lt_cv_prog_compiler_pic_works_CXX=no
20135 ac_outfile=conftest.$ac_objext
20136 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20137 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
20138 # Insert the option either (1) after the last *FLAGS variable, or
20139 # (2) before a word containing "conftest.", or (3) at the end.
20140 # Note that $ac_compile itself does not contain backslashes and begins
20141 # with a dollar sign (not a hyphen), so the echo should work correctly.
20142 # The option is referenced via a variable to avoid confusing sed.
20143 lt_compile=`echo "$ac_compile" | $SED \
20144 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20145 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20146 -e 's:$: $lt_compiler_flag:'`
20147 (eval echo "\"\$as_me:20147: $lt_compile\"" >&5)
20148 (eval "$lt_compile" 2>conftest.err)
20150 cat conftest.err >&5
20151 echo "$as_me:20151: \$? = $ac_status" >&5
20152 if (exit $ac_status) && test -s "$ac_outfile"; then
20153 # The compiler can only warn and ignore the option if not recognized
20154 # So say no if there are warnings other than the usual output.
20155 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
20156 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20157 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
20158 lt_cv_prog_compiler_pic_works_CXX=yes
20164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
20165 $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
20167 if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
20168 case $lt_prog_compiler_pic_CXX in
20170 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
20173 lt_prog_compiler_pic_CXX=
20174 lt_prog_compiler_can_build_shared_CXX=no
20182 # Check to make sure the static flag actually works.
20184 wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
20185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
20186 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
20187 if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then :
20188 $as_echo_n "(cached) " >&6
20190 lt_cv_prog_compiler_static_works_CXX=no
20191 save_LDFLAGS="$LDFLAGS"
20192 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
20193 echo "$lt_simple_link_test_code" > conftest.$ac_ext
20194 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
20195 # The linker can only warn and ignore the option if not recognized
20196 # So say no if there are warnings
20197 if test -s conftest.err; then
20198 # Append any errors to the config.log.
20199 cat conftest.err 1>&5
20200 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
20201 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
20202 if diff conftest.exp conftest.er2 >/dev/null; then
20203 lt_cv_prog_compiler_static_works_CXX=yes
20206 lt_cv_prog_compiler_static_works_CXX=yes
20210 LDFLAGS="$save_LDFLAGS"
20213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
20214 $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
20216 if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
20219 lt_prog_compiler_static_CXX=
20225 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20226 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20227 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20228 $as_echo_n "(cached) " >&6
20230 lt_cv_prog_compiler_c_o_CXX=no
20231 $RM -r conftest 2>/dev/null
20235 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20237 lt_compiler_flag="-o out/conftest2.$ac_objext"
20238 # Insert the option either (1) after the last *FLAGS variable, or
20239 # (2) before a word containing "conftest.", or (3) at the end.
20240 # Note that $ac_compile itself does not contain backslashes and begins
20241 # with a dollar sign (not a hyphen), so the echo should work correctly.
20242 lt_compile=`echo "$ac_compile" | $SED \
20243 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20244 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20245 -e 's:$: $lt_compiler_flag:'`
20246 (eval echo "\"\$as_me:20246: $lt_compile\"" >&5)
20247 (eval "$lt_compile" 2>out/conftest.err)
20249 cat out/conftest.err >&5
20250 echo "$as_me:20250: \$? = $ac_status" >&5
20251 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20253 # The compiler can only warn and ignore the option if not recognized
20254 # So say no if there are warnings
20255 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20256 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20257 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20258 lt_cv_prog_compiler_c_o_CXX=yes
20263 # SGI C++ compiler will create directory out/ii_files/ for
20264 # template instantiation
20265 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20266 $RM out/* && rmdir out
20272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20273 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
20278 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
20279 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then :
20280 $as_echo_n "(cached) " >&6
20282 lt_cv_prog_compiler_c_o_CXX=no
20283 $RM -r conftest 2>/dev/null
20287 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20289 lt_compiler_flag="-o out/conftest2.$ac_objext"
20290 # Insert the option either (1) after the last *FLAGS variable, or
20291 # (2) before a word containing "conftest.", or (3) at the end.
20292 # Note that $ac_compile itself does not contain backslashes and begins
20293 # with a dollar sign (not a hyphen), so the echo should work correctly.
20294 lt_compile=`echo "$ac_compile" | $SED \
20295 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
20296 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20297 -e 's:$: $lt_compiler_flag:'`
20298 (eval echo "\"\$as_me:20298: $lt_compile\"" >&5)
20299 (eval "$lt_compile" 2>out/conftest.err)
20301 cat out/conftest.err >&5
20302 echo "$as_me:20302: \$? = $ac_status" >&5
20303 if (exit $ac_status) && test -s out/conftest2.$ac_objext
20305 # The compiler can only warn and ignore the option if not recognized
20306 # So say no if there are warnings
20307 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
20308 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
20309 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
20310 lt_cv_prog_compiler_c_o_CXX=yes
20315 # SGI C++ compiler will create directory out/ii_files/ for
20316 # template instantiation
20317 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
20318 $RM out/* && rmdir out
20324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
20325 $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
20330 hard_links="nottested"
20331 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
20332 # do not overwrite the value of need_locks provided by the user
20333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
20334 $as_echo_n "checking if we can lock with hard links... " >&6; }
20337 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20339 ln conftest.a conftest.b 2>&5 || hard_links=no
20340 ln conftest.a conftest.b 2>/dev/null && hard_links=no
20341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
20342 $as_echo "$hard_links" >&6; }
20343 if test "$hard_links" = no; then
20344 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
20345 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
20354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
20355 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
20357 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20360 # If we're using GNU nm, then we don't want the "-C" option.
20361 # -C means demangle to AIX nm, but means don't demangle with GNU nm
20362 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
20363 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'
20365 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'
20369 export_symbols_cmds_CXX="$ltdll_cmds"
20371 cygwin* | mingw* | cegcc*)
20372 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'
20375 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
20378 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
20380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
20381 $as_echo "$ld_shlibs_CXX" >&6; }
20382 test "$ld_shlibs_CXX" = no && can_build_shared=no
20384 with_gnu_ld_CXX=$with_gnu_ld
20392 # Do we need to explicitly link libc?
20394 case "x$archive_cmds_need_lc_CXX" in
20396 # Assume -lc should be added
20397 archive_cmds_need_lc_CXX=yes
20399 if test "$enable_shared" = yes && test "$GCC" = yes; then
20400 case $archive_cmds_CXX in
20402 # FIXME: we may have to deal with multi-command sequences.
20405 # Test whether the compiler implicitly links with -lc since on some
20406 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20407 # to ld, don't add -lc before -lgcc.
20408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
20409 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
20411 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
20413 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
20414 (eval $ac_compile) 2>&5
20416 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20417 test $ac_status = 0; } 2>conftest.err; then
20420 libobjs=conftest.$ac_objext
20422 wl=$lt_prog_compiler_wl_CXX
20423 pic_flag=$lt_prog_compiler_pic_CXX
20429 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
20430 allow_undefined_flag_CXX=
20431 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
20432 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
20434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
20435 test $ac_status = 0; }
20437 archive_cmds_need_lc_CXX=no
20439 archive_cmds_need_lc_CXX=yes
20441 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
20443 cat conftest.err 1>&5
20446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_CXX" >&5
20447 $as_echo "$archive_cmds_need_lc_CXX" >&6; }
20517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
20518 $as_echo_n "checking dynamic linker characteristics... " >&6; }
20520 library_names_spec=
20521 libname_spec='lib$name'
20525 postuninstall_cmds=
20529 shlibpath_overrides_runpath=unknown
20531 dynamic_linker="$host_os ld.so"
20532 sys_lib_dlsearch_path_spec="/lib /usr/lib"
20533 need_lib_prefix=unknown
20534 hardcode_into_libs=no
20536 # when you set need_version to no, make sure it does not cause -set_version
20537 # flags to be left without arguments
20538 need_version=unknown
20543 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
20544 shlibpath_var=LIBPATH
20546 # AIX 3 has no versioning support, so we append a major version to the name.
20547 soname_spec='${libname}${release}${shared_ext}$major'
20554 hardcode_into_libs=yes
20555 if test "$host_cpu" = ia64; then
20556 # AIX 5 supports IA64
20557 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20558 shlibpath_var=LD_LIBRARY_PATH
20560 # With GCC up to 2.95.x, collect2 would create an import file
20561 # for dependence libraries. The import file would start with
20562 # the line `#! .'. This would cause the generated library to
20563 # depend on `.', always an invalid library. This was fixed in
20564 # development snapshots of GCC prior to 3.0.
20566 aix4 | aix4.[01] | aix4.[01].*)
20567 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20569 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
20572 can_build_shared=no
20576 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20577 # soname into executable. Probably we can add versioning support to
20578 # collect2, so additional links can be useful in future.
20579 if test "$aix_use_runtimelinking" = yes; then
20580 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20581 # instead of lib<name>.a to let people know that these are not
20582 # typical AIX shared libraries.
20583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20585 # We preserve .a as extension for shared libraries through AIX4.2
20586 # and later when we are not doing run time linking.
20587 library_names_spec='${libname}${release}.a $libname.a'
20588 soname_spec='${libname}${release}${shared_ext}$major'
20590 shlibpath_var=LIBPATH
20597 # Since July 2007 AmigaOS4 officially supports .so libraries.
20598 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
20599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20602 library_names_spec='$libname.ixlibrary $libname.a'
20603 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20604 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'
20610 library_names_spec='${libname}${shared_ext}'
20611 dynamic_linker="$host_os ld.so"
20612 shlibpath_var=LIBRARY_PATH
20618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20619 soname_spec='${libname}${release}${shared_ext}$major'
20620 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
20621 shlibpath_var=LD_LIBRARY_PATH
20622 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20623 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
20624 # the default ld.so.conf also contains /usr/contrib/lib and
20625 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20626 # libtool to hard-code these into programs
20629 cygwin* | mingw* | pw32* | cegcc*)
20630 version_type=windows
20635 case $GCC,$host_os in
20636 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
20637 library_names_spec='$libname.dll.a'
20638 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20639 postinstall_cmds='base_file=`basename \${file}`~
20640 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
20641 dldir=$destdir/`dirname \$dlpath`~
20642 test -d \$dldir || mkdir -p \$dldir~
20643 $install_prog $dir/$dlname \$dldir/$dlname~
20644 chmod a+x \$dldir/$dlname~
20645 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
20646 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
20648 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20649 dlpath=$dir/\$dldll~
20651 shlibpath_overrides_runpath=yes
20655 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20656 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20657 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
20660 # MinGW DLLs use traditional 'lib' prefix
20661 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20662 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20663 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
20664 # It is most probably a Windows format PATH printed by
20665 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20666 # path with ; separators, and with drive letters. We can handle the
20667 # drive letters (cygwin fileutils understands them), so leave them,
20668 # especially as we might pass files found there to a mingw objdump,
20669 # which wouldn't understand a cygwinified path. Ahh.
20670 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20672 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20676 # pw32 DLLs use 'pw' prefix rather than 'lib'
20677 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20683 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20686 dynamic_linker='Win32 ld.exe'
20687 # FIXME: first we should search . and the directory the executable is in
20691 darwin* | rhapsody*)
20692 dynamic_linker="$host_os dyld"
20693 version_type=darwin
20696 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20697 soname_spec='${libname}${release}${major}$shared_ext'
20698 shlibpath_overrides_runpath=yes
20699 shlibpath_var=DYLD_LIBRARY_PATH
20700 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
20702 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20709 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20710 soname_spec='${libname}${release}${shared_ext}$major'
20711 shlibpath_var=LD_LIBRARY_PATH
20718 freebsd* | dragonfly*)
20719 # DragonFly does not have aout. When/if they implement a new
20720 # versioning mechanism, adjust this.
20721 if test -x /usr/bin/objformat; then
20722 objformat=`/usr/bin/objformat`
20725 freebsd[123]*) objformat=aout ;;
20726 *) objformat=elf ;;
20729 version_type=freebsd-$objformat
20730 case $version_type in
20732 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20737 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20741 shlibpath_var=LD_LIBRARY_PATH
20744 shlibpath_overrides_runpath=yes
20746 freebsd3.[01]* | freebsdelf3.[01]*)
20747 shlibpath_overrides_runpath=yes
20748 hardcode_into_libs=yes
20750 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
20751 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
20752 shlibpath_overrides_runpath=no
20753 hardcode_into_libs=yes
20755 *) # from 4.6 on, and DragonFly
20756 shlibpath_overrides_runpath=yes
20757 hardcode_into_libs=yes
20766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20767 soname_spec='${libname}${release}${shared_ext}$major'
20768 shlibpath_var=LD_LIBRARY_PATH
20769 hardcode_into_libs=yes
20772 hpux9* | hpux10* | hpux11*)
20773 # Give a soname corresponding to the major version so that dld.sl refuses to
20774 # link against other versions.
20781 hardcode_into_libs=yes
20782 dynamic_linker="$host_os dld.so"
20783 shlibpath_var=LD_LIBRARY_PATH
20784 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20785 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20786 soname_spec='${libname}${release}${shared_ext}$major'
20787 if test "X$HPUX_IA64_MODE" = X32; then
20788 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20790 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20792 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20796 hardcode_into_libs=yes
20797 dynamic_linker="$host_os dld.sl"
20798 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20799 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20800 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20801 soname_spec='${libname}${release}${shared_ext}$major'
20802 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20803 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20807 dynamic_linker="$host_os dld.sl"
20808 shlibpath_var=SHLIB_PATH
20809 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20811 soname_spec='${libname}${release}${shared_ext}$major'
20814 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20815 postinstall_cmds='chmod 555 $lib'
20822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20823 soname_spec='${libname}${release}${shared_ext}$major'
20824 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
20825 shlibpath_var=LD_LIBRARY_PATH
20826 shlibpath_overrides_runpath=no
20827 hardcode_into_libs=yes
20830 irix5* | irix6* | nonstopux*)
20832 nonstopux*) version_type=nonstopux ;;
20834 if test "$lt_cv_prog_gnu_ld" = yes; then
20842 soname_spec='${libname}${release}${shared_ext}$major'
20843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20845 irix5* | nonstopux*)
20846 libsuff= shlibsuff=
20849 case $LD in # libtool.m4 will add one of these switches to LD
20850 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20851 libsuff= shlibsuff= libmagic=32-bit;;
20852 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20853 libsuff=32 shlibsuff=N32 libmagic=N32;;
20854 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20855 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20856 *) libsuff= shlibsuff= libmagic=never-match;;
20860 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20861 shlibpath_overrides_runpath=no
20862 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20863 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20864 hardcode_into_libs=yes
20867 # No shared lib support for Linux oldld, aout, or coff.
20868 linux*oldld* | linux*aout* | linux*coff*)
20872 # This must be Linux ELF.
20873 linux* | k*bsd*-gnu)
20877 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20878 soname_spec='${libname}${release}${shared_ext}$major'
20879 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20880 shlibpath_var=LD_LIBRARY_PATH
20881 shlibpath_overrides_runpath=no
20882 # Some binutils ld are patched to set DT_RUNPATH
20883 save_LDFLAGS=$LDFLAGS
20884 save_libdir=$libdir
20885 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
20886 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
20887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20888 /* end confdefs.h. */
20898 if ac_fn_cxx_try_link "$LINENO"; then :
20899 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
20900 shlibpath_overrides_runpath=yes
20903 rm -f core conftest.err conftest.$ac_objext \
20904 conftest$ac_exeext conftest.$ac_ext
20905 LDFLAGS=$save_LDFLAGS
20906 libdir=$save_libdir
20908 # This implies no fast_install, which is unacceptable.
20909 # Some rework will be needed to allow for fast_install
20910 # before this can be enabled.
20911 hardcode_into_libs=yes
20913 # Append ld.so.conf contents to the search path
20914 if test -f /etc/ld.so.conf; then
20915 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' ' '`
20916 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20919 # We used to test for /lib/ld.so.1 and disable shared libraries on
20920 # powerpc, because MkLinux only supported shared libraries with the
20921 # GNU dynamic linker. Since this was broken with cross compilers,
20922 # most powerpc-linux boxes support dynamic linking these days and
20923 # people can always --disable-shared, the test was removed, and we
20924 # assume the GNU/Linux dynamic linker is in use.
20925 dynamic_linker='GNU/Linux ld.so'
20932 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
20933 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20934 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20935 dynamic_linker='NetBSD (a.out) ld.so'
20937 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20938 soname_spec='${libname}${release}${shared_ext}$major'
20939 dynamic_linker='NetBSD ld.elf_so'
20941 shlibpath_var=LD_LIBRARY_PATH
20942 shlibpath_overrides_runpath=yes
20943 hardcode_into_libs=yes
20948 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20949 shlibpath_var=LD_LIBRARY_PATH
20950 shlibpath_overrides_runpath=yes
20957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20958 soname_spec='${libname}${release}${shared_ext}$major'
20959 shlibpath_var=LD_LIBRARY_PATH
20960 shlibpath_overrides_runpath=no
20961 hardcode_into_libs=yes
20962 dynamic_linker='ldqnx.so'
20967 sys_lib_dlsearch_path_spec="/usr/lib"
20969 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20971 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
20972 *) need_version=no ;;
20974 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20975 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20976 shlibpath_var=LD_LIBRARY_PATH
20977 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20979 openbsd2.[89] | openbsd2.[89].*)
20980 shlibpath_overrides_runpath=no
20983 shlibpath_overrides_runpath=yes
20987 shlibpath_overrides_runpath=yes
20992 libname_spec='$name'
20995 library_names_spec='$libname${shared_ext} $libname.a'
20996 dynamic_linker='OS/2 ld.exe'
20997 shlibpath_var=LIBPATH
21000 osf3* | osf4* | osf5*)
21004 soname_spec='${libname}${release}${shared_ext}$major'
21005 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21006 shlibpath_var=LD_LIBRARY_PATH
21007 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
21008 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
21019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21020 soname_spec='${libname}${release}${shared_ext}$major'
21021 shlibpath_var=LD_LIBRARY_PATH
21022 shlibpath_overrides_runpath=yes
21023 hardcode_into_libs=yes
21024 # ldd complains unless libraries are executable
21025 postinstall_cmds='chmod +x $lib'
21030 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
21031 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
21032 shlibpath_var=LD_LIBRARY_PATH
21033 shlibpath_overrides_runpath=yes
21034 if test "$with_gnu_ld" = yes; then
21042 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21043 soname_spec='${libname}${release}${shared_ext}$major'
21044 shlibpath_var=LD_LIBRARY_PATH
21045 case $host_vendor in
21047 shlibpath_overrides_runpath=no
21049 runpath_var=LD_RUN_PATH
21057 shlibpath_overrides_runpath=no
21058 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
21064 if test -d /usr/nec ;then
21066 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
21067 soname_spec='$libname${shared_ext}.$major'
21068 shlibpath_var=LD_LIBRARY_PATH
21072 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
21073 version_type=freebsd-elf
21076 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
21077 soname_spec='${libname}${release}${shared_ext}$major'
21078 shlibpath_var=LD_LIBRARY_PATH
21079 shlibpath_overrides_runpath=yes
21080 hardcode_into_libs=yes
21081 if test "$with_gnu_ld" = yes; then
21082 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
21084 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
21087 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
21091 sys_lib_dlsearch_path_spec='/usr/lib'
21095 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
21099 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21100 shlibpath_var=LD_LIBRARY_PATH
21101 shlibpath_overrides_runpath=no
21102 hardcode_into_libs=yes
21107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
21108 soname_spec='${libname}${release}${shared_ext}$major'
21109 shlibpath_var=LD_LIBRARY_PATH
21116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
21117 $as_echo "$dynamic_linker" >&6; }
21118 test "$dynamic_linker" = no && can_build_shared=no
21120 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
21121 if test "$GCC" = yes; then
21122 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
21125 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
21126 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
21128 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
21129 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
21167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
21168 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
21169 hardcode_action_CXX=
21170 if test -n "$hardcode_libdir_flag_spec_CXX" ||
21171 test -n "$runpath_var_CXX" ||
21172 test "X$hardcode_automatic_CXX" = "Xyes" ; then
21174 # We can hardcode non-existent directories.
21175 if test "$hardcode_direct_CXX" != no &&
21176 # If the only mechanism to avoid hardcoding is shlibpath_var, we
21177 # have to relink, otherwise we might link with an installed library
21178 # when we should be linking with a yet-to-be-installed one
21179 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
21180 test "$hardcode_minus_L_CXX" != no; then
21181 # Linking always hardcodes the temporary library directory.
21182 hardcode_action_CXX=relink
21184 # We can link without hardcoding, and we can hardcode nonexisting dirs.
21185 hardcode_action_CXX=immediate
21188 # We cannot hardcode anything, or else we can only hardcode existing
21190 hardcode_action_CXX=unsupported
21192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
21193 $as_echo "$hardcode_action_CXX" >&6; }
21195 if test "$hardcode_action_CXX" = relink ||
21196 test "$inherit_rpath_CXX" = yes; then
21197 # Fast installation is not supported
21198 enable_fast_install=no
21199 elif test "$shlibpath_overrides_runpath" = yes ||
21200 test "$enable_shared" = no; then
21201 # Fast installation is not necessary
21202 enable_fast_install=needless
21211 fi # test -n "$compiler"
21217 with_gnu_ld=$lt_save_with_gnu_ld
21218 lt_cv_path_LDCXX=$lt_cv_path_LD
21219 lt_cv_path_LD=$lt_save_path_LD
21220 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
21221 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
21222 fi # test "$_lt_caught_CXX_error" != yes
21225 ac_cpp='$CPP $CPPFLAGS'
21226 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21227 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21228 ac_compiler_gnu=$ac_cv_c_compiler_gnu
21233 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
21234 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21235 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
21238 archive_cmds_need_lc_F77=no
21239 allow_undefined_flag_F77=
21240 always_export_symbols_F77=no
21241 archive_expsym_cmds_F77=
21242 export_dynamic_flag_spec_F77=
21243 hardcode_direct_F77=no
21244 hardcode_direct_absolute_F77=no
21245 hardcode_libdir_flag_spec_F77=
21246 hardcode_libdir_flag_spec_ld_F77=
21247 hardcode_libdir_separator_F77=
21248 hardcode_minus_L_F77=no
21249 hardcode_automatic_F77=no
21250 inherit_rpath_F77=no
21252 module_expsym_cmds_F77=
21253 link_all_deplibs_F77=unknown
21254 old_archive_cmds_F77=$old_archive_cmds
21255 no_undefined_flag_F77=
21256 whole_archive_flag_spec_F77=
21257 enable_shared_with_static_runtimes_F77=no
21259 # Source file extension for f77 test sources.
21262 # Object file extension for compiled f77 test sources.
21266 # No sense in running all these tests if we already determined that
21267 # the F77 compiler isn't working. Some variables (like enable_shared)
21268 # are currently assumed to apply to all compilers on this platform,
21269 # and will be corrupted by setting them based on a non-working compiler.
21270 if test "$_lt_disable_F77" != yes; then
21271 # Code to be used in simple compile tests
21272 lt_simple_compile_test_code="\
21278 # Code to be used in simple link tests
21279 lt_simple_link_test_code="\
21284 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21291 # If no C compiler was specified, use CC.
21294 # If no C compiler flags were specified, use CFLAGS.
21295 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
21297 # Allow CC to be a program name with arguments.
21301 # save warnings/boilerplate of simple test code
21302 ac_outfile=conftest.$ac_objext
21303 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
21304 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21305 _lt_compiler_boilerplate=`cat conftest.err`
21308 ac_outfile=conftest.$ac_objext
21309 echo "$lt_simple_link_test_code" >conftest.$ac_ext
21310 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
21311 _lt_linker_boilerplate=`cat conftest.err`
21315 # Allow CC to be a program name with arguments.
21321 for cc_temp in $compiler""; do
21323 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
21324 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
21329 cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21332 if test -n "$compiler"; then
21333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
21334 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
21335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
21336 $as_echo "$can_build_shared" >&6; }
21338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
21339 $as_echo_n "checking whether to build shared libraries... " >&6; }
21340 test "$can_build_shared" = "no" && enable_shared=no
21342 # On AIX, shared libraries and static libraries use the same namespace, and
21343 # are all built from PIC.
21346 test "$enable_shared" = yes && enable_static=no
21347 if test -n "$RANLIB"; then
21348 archive_cmds="$archive_cmds~\$RANLIB \$lib"
21349 postinstall_cmds='$RANLIB $lib'
21353 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
21354 test "$enable_shared" = yes && enable_static=no
21358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
21359 $as_echo "$enable_shared" >&6; }
21361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
21362 $as_echo_n "checking whether to build static libraries... " >&6; }
21363 # Make sure either enable_shared or enable_static is yes.
21364 test "$enable_shared" = yes || enable_static=yes
21365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
21366 $as_echo "$enable_static" >&6; }
21372 ## There is no encapsulation within the following macros, do not change
21373 ## the running order or otherwise move them around unless you know exactly
21374 ## what you are doing...
21375 lt_prog_compiler_wl_F77=
21376 lt_prog_compiler_pic_F77=
21377 lt_prog_compiler_static_F77=
21379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
21380 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
21382 if test "$GCC" = yes; then
21383 lt_prog_compiler_wl_F77='-Wl,'
21384 lt_prog_compiler_static_F77='-static'
21388 # All AIX code is PIC.
21389 if test "$host_cpu" = ia64; then
21390 # AIX 5 now supports IA64 processor
21391 lt_prog_compiler_static_F77='-Bstatic'
21398 # see comment about AmigaOS4 .so support
21399 lt_prog_compiler_pic_F77='-fPIC'
21402 # FIXME: we need at least 68020 code to build shared libraries, but
21403 # adding the `-m68020' flag to GCC prevents building anything better,
21405 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
21410 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
21411 # PIC is the default for these OSes.
21414 mingw* | cygwin* | pw32* | os2* | cegcc*)
21415 # This hack is so that the source file can tell whether it is being
21416 # built for inclusion in a dll (and should export symbols for example).
21417 # Although the cygwin gcc ignores -fPIC, still need this for old-style
21418 # (--disable-auto-import) libraries
21419 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21422 darwin* | rhapsody*)
21423 # PIC is the default on this platform
21424 # Common symbols not allowed in MH_DYLIB files
21425 lt_prog_compiler_pic_F77='-fno-common'
21429 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
21430 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
21431 # sets the default TLS model and affects inlining.
21437 lt_prog_compiler_pic_F77='-fPIC'
21443 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21444 # Instead, we relocate shared libraries at runtime.
21448 # Just because we use GCC doesn't mean we suddenly get shared libraries
21449 # on systems that don't support them.
21450 lt_prog_compiler_can_build_shared_F77=no
21455 # QNX uses GNU C++, but need to define -shared option too, otherwise
21456 # it will coredump.
21457 lt_prog_compiler_pic_F77='-fPIC -shared'
21461 if test -d /usr/nec; then
21462 lt_prog_compiler_pic_F77=-Kconform_pic
21467 lt_prog_compiler_pic_F77='-fPIC'
21471 # PORTME Check for flag to pass linker flags through the system compiler.
21474 lt_prog_compiler_wl_F77='-Wl,'
21475 if test "$host_cpu" = ia64; then
21476 # AIX 5 now supports IA64 processor
21477 lt_prog_compiler_static_F77='-Bstatic'
21479 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
21483 mingw* | cygwin* | pw32* | os2* | cegcc*)
21484 # This hack is so that the source file can tell whether it is being
21485 # built for inclusion in a dll (and should export symbols for example).
21486 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
21489 hpux9* | hpux10* | hpux11*)
21490 lt_prog_compiler_wl_F77='-Wl,'
21491 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21492 # not for PA HP-UX.
21498 lt_prog_compiler_pic_F77='+Z'
21501 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21502 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
21505 irix5* | irix6* | nonstopux*)
21506 lt_prog_compiler_wl_F77='-Wl,'
21507 # PIC (with -KPIC) is the default.
21508 lt_prog_compiler_static_F77='-non_shared'
21511 linux* | k*bsd*-gnu)
21512 case $cc_basename in
21513 # old Intel for x86_64 which still supported -KPIC.
21515 lt_prog_compiler_wl_F77='-Wl,'
21516 lt_prog_compiler_pic_F77='-KPIC'
21517 lt_prog_compiler_static_F77='-static'
21519 # icc used to be incompatible with GCC.
21520 # ICC 10 doesn't accept -KPIC any more.
21522 lt_prog_compiler_wl_F77='-Wl,'
21523 lt_prog_compiler_pic_F77='-fPIC'
21524 lt_prog_compiler_static_F77='-static'
21526 # Lahey Fortran 8.1.
21528 lt_prog_compiler_wl_F77='-Wl,'
21529 lt_prog_compiler_pic_F77='--shared'
21530 lt_prog_compiler_static_F77='--static'
21532 pgcc* | pgf77* | pgf90* | pgf95*)
21533 # Portland Group compilers (*not* the Pentium gcc compiler,
21534 # which looks to be a dead project)
21535 lt_prog_compiler_wl_F77='-Wl,'
21536 lt_prog_compiler_pic_F77='-fpic'
21537 lt_prog_compiler_static_F77='-Bstatic'
21540 lt_prog_compiler_wl_F77='-Wl,'
21541 # All Alpha code is PIC.
21542 lt_prog_compiler_static_F77='-non_shared'
21545 # IBM XL C 8.0/Fortran 10.1 on PPC
21546 lt_prog_compiler_wl_F77='-Wl,'
21547 lt_prog_compiler_pic_F77='-qpic'
21548 lt_prog_compiler_static_F77='-qstaticlink'
21551 case `$CC -V 2>&1 | sed 5q` in
21554 lt_prog_compiler_pic_F77='-KPIC'
21555 lt_prog_compiler_static_F77='-Bstatic'
21556 lt_prog_compiler_wl_F77='-Wl,'
21559 # Sun Fortran 8.3 passes all unrecognized flags to the linker
21560 lt_prog_compiler_pic_F77='-KPIC'
21561 lt_prog_compiler_static_F77='-Bstatic'
21562 lt_prog_compiler_wl_F77=''
21570 lt_prog_compiler_pic_F77='-KPIC'
21571 lt_prog_compiler_static_F77='-Bstatic'
21575 # QNX uses GNU C++, but need to define -shared option too, otherwise
21576 # it will coredump.
21577 lt_prog_compiler_pic_F77='-fPIC -shared'
21580 osf3* | osf4* | osf5*)
21581 lt_prog_compiler_wl_F77='-Wl,'
21582 # All OSF/1 code is PIC.
21583 lt_prog_compiler_static_F77='-non_shared'
21587 lt_prog_compiler_static_F77='-non_shared'
21591 lt_prog_compiler_pic_F77='-KPIC'
21592 lt_prog_compiler_static_F77='-Bstatic'
21593 case $cc_basename in
21594 f77* | f90* | f95*)
21595 lt_prog_compiler_wl_F77='-Qoption ld ';;
21597 lt_prog_compiler_wl_F77='-Wl,';;
21602 lt_prog_compiler_wl_F77='-Qoption ld '
21603 lt_prog_compiler_pic_F77='-PIC'
21604 lt_prog_compiler_static_F77='-Bstatic'
21607 sysv4 | sysv4.2uw2* | sysv4.3*)
21608 lt_prog_compiler_wl_F77='-Wl,'
21609 lt_prog_compiler_pic_F77='-KPIC'
21610 lt_prog_compiler_static_F77='-Bstatic'
21614 if test -d /usr/nec ;then
21615 lt_prog_compiler_pic_F77='-Kconform_pic'
21616 lt_prog_compiler_static_F77='-Bstatic'
21620 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
21621 lt_prog_compiler_wl_F77='-Wl,'
21622 lt_prog_compiler_pic_F77='-KPIC'
21623 lt_prog_compiler_static_F77='-Bstatic'
21627 lt_prog_compiler_wl_F77='-Wl,'
21628 lt_prog_compiler_can_build_shared_F77=no
21632 lt_prog_compiler_pic_F77='-pic'
21633 lt_prog_compiler_static_F77='-Bstatic'
21637 lt_prog_compiler_can_build_shared_F77=no
21643 # For platforms which do not support PIC, -DPIC is meaningless:
21645 lt_prog_compiler_pic_F77=
21648 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
21651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic_F77" >&5
21652 $as_echo "$lt_prog_compiler_pic_F77" >&6; }
21657 # Check to make sure the PIC flag actually works.
21659 if test -n "$lt_prog_compiler_pic_F77"; then
21660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
21661 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; }
21662 if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then :
21663 $as_echo_n "(cached) " >&6
21665 lt_cv_prog_compiler_pic_works_F77=no
21666 ac_outfile=conftest.$ac_objext
21667 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21668 lt_compiler_flag="$lt_prog_compiler_pic_F77"
21669 # Insert the option either (1) after the last *FLAGS variable, or
21670 # (2) before a word containing "conftest.", or (3) at the end.
21671 # Note that $ac_compile itself does not contain backslashes and begins
21672 # with a dollar sign (not a hyphen), so the echo should work correctly.
21673 # The option is referenced via a variable to avoid confusing sed.
21674 lt_compile=`echo "$ac_compile" | $SED \
21675 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21676 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21677 -e 's:$: $lt_compiler_flag:'`
21678 (eval echo "\"\$as_me:21678: $lt_compile\"" >&5)
21679 (eval "$lt_compile" 2>conftest.err)
21681 cat conftest.err >&5
21682 echo "$as_me:21682: \$? = $ac_status" >&5
21683 if (exit $ac_status) && test -s "$ac_outfile"; then
21684 # The compiler can only warn and ignore the option if not recognized
21685 # So say no if there are warnings other than the usual output.
21686 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
21687 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21688 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
21689 lt_cv_prog_compiler_pic_works_F77=yes
21695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5
21696 $as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; }
21698 if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then
21699 case $lt_prog_compiler_pic_F77 in
21701 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
21704 lt_prog_compiler_pic_F77=
21705 lt_prog_compiler_can_build_shared_F77=no
21713 # Check to make sure the static flag actually works.
21715 wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\"
21716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21717 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
21718 if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then :
21719 $as_echo_n "(cached) " >&6
21721 lt_cv_prog_compiler_static_works_F77=no
21722 save_LDFLAGS="$LDFLAGS"
21723 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
21724 echo "$lt_simple_link_test_code" > conftest.$ac_ext
21725 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
21726 # The linker can only warn and ignore the option if not recognized
21727 # So say no if there are warnings
21728 if test -s conftest.err; then
21729 # Append any errors to the config.log.
21730 cat conftest.err 1>&5
21731 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
21732 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
21733 if diff conftest.exp conftest.er2 >/dev/null; then
21734 lt_cv_prog_compiler_static_works_F77=yes
21737 lt_cv_prog_compiler_static_works_F77=yes
21741 LDFLAGS="$save_LDFLAGS"
21744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5
21745 $as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; }
21747 if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then
21750 lt_prog_compiler_static_F77=
21756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21757 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21758 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then :
21759 $as_echo_n "(cached) " >&6
21761 lt_cv_prog_compiler_c_o_F77=no
21762 $RM -r conftest 2>/dev/null
21766 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21768 lt_compiler_flag="-o out/conftest2.$ac_objext"
21769 # Insert the option either (1) after the last *FLAGS variable, or
21770 # (2) before a word containing "conftest.", or (3) at the end.
21771 # Note that $ac_compile itself does not contain backslashes and begins
21772 # with a dollar sign (not a hyphen), so the echo should work correctly.
21773 lt_compile=`echo "$ac_compile" | $SED \
21774 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21775 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21776 -e 's:$: $lt_compiler_flag:'`
21777 (eval echo "\"\$as_me:21777: $lt_compile\"" >&5)
21778 (eval "$lt_compile" 2>out/conftest.err)
21780 cat out/conftest.err >&5
21781 echo "$as_me:21781: \$? = $ac_status" >&5
21782 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21784 # The compiler can only warn and ignore the option if not recognized
21785 # So say no if there are warnings
21786 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21787 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21788 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21789 lt_cv_prog_compiler_c_o_F77=yes
21794 # SGI C++ compiler will create directory out/ii_files/ for
21795 # template instantiation
21796 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21797 $RM out/* && rmdir out
21803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
21804 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
21808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
21809 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
21810 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then :
21811 $as_echo_n "(cached) " >&6
21813 lt_cv_prog_compiler_c_o_F77=no
21814 $RM -r conftest 2>/dev/null
21818 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
21820 lt_compiler_flag="-o out/conftest2.$ac_objext"
21821 # Insert the option either (1) after the last *FLAGS variable, or
21822 # (2) before a word containing "conftest.", or (3) at the end.
21823 # Note that $ac_compile itself does not contain backslashes and begins
21824 # with a dollar sign (not a hyphen), so the echo should work correctly.
21825 lt_compile=`echo "$ac_compile" | $SED \
21826 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21827 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21828 -e 's:$: $lt_compiler_flag:'`
21829 (eval echo "\"\$as_me:21829: $lt_compile\"" >&5)
21830 (eval "$lt_compile" 2>out/conftest.err)
21832 cat out/conftest.err >&5
21833 echo "$as_me:21833: \$? = $ac_status" >&5
21834 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21836 # The compiler can only warn and ignore the option if not recognized
21837 # So say no if there are warnings
21838 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
21839 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
21840 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
21841 lt_cv_prog_compiler_c_o_F77=yes
21846 # SGI C++ compiler will create directory out/ii_files/ for
21847 # template instantiation
21848 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
21849 $RM out/* && rmdir out
21855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5
21856 $as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; }
21861 hard_links="nottested"
21862 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
21863 # do not overwrite the value of need_locks provided by the user
21864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
21865 $as_echo_n "checking if we can lock with hard links... " >&6; }
21868 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21870 ln conftest.a conftest.b 2>&5 || hard_links=no
21871 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
21873 $as_echo "$hard_links" >&6; }
21874 if test "$hard_links" = no; then
21875 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21876 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21886 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
21889 allow_undefined_flag_F77=
21890 always_export_symbols_F77=no
21892 archive_expsym_cmds_F77=
21893 compiler_needs_object_F77=no
21894 enable_shared_with_static_runtimes_F77=no
21895 export_dynamic_flag_spec_F77=
21896 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21897 hardcode_automatic_F77=no
21898 hardcode_direct_F77=no
21899 hardcode_direct_absolute_F77=no
21900 hardcode_libdir_flag_spec_F77=
21901 hardcode_libdir_flag_spec_ld_F77=
21902 hardcode_libdir_separator_F77=
21903 hardcode_minus_L_F77=no
21904 hardcode_shlibpath_var_F77=unsupported
21905 inherit_rpath_F77=no
21906 link_all_deplibs_F77=unknown
21908 module_expsym_cmds_F77=
21909 old_archive_from_new_cmds_F77=
21910 old_archive_from_expsyms_cmds_F77=
21911 thread_safe_flag_spec_F77=
21912 whole_archive_flag_spec_F77=
21913 # include_expsyms should be a list of space-separated symbols to be *always*
21914 # included in the symbol list
21915 include_expsyms_F77=
21916 # exclude_expsyms can be an extended regexp of symbols to exclude
21917 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21918 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21919 # as well as any symbol that contains `d'.
21920 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
21921 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21922 # platforms (ab)use it in PIC code, but their linkers get confused if
21923 # the symbol is explicitly referenced. Since portable code cannot
21924 # rely on this symbol name, it's probably fine to never include it in
21925 # preloaded symbol tables.
21926 # Exclude shared library initialization/finalization symbols.
21927 extract_expsyms_cmds=
21930 cygwin* | mingw* | pw32* | cegcc*)
21931 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21932 # When not using gcc, we currently assume that we are using
21933 # Microsoft Visual C++.
21934 if test "$GCC" != yes; then
21939 # we just hope/assume this is gcc and not c89 (= MSVC++)
21948 if test "$with_gnu_ld" = yes; then
21949 # If archive_cmds runs LD, not CC, wlarc should be empty
21952 # Set some defaults for GNU ld with shared library support. These
21953 # are reset later if shared libraries are not supported. Putting them
21954 # here allows them to be overridden if necessary.
21955 runpath_var=LD_RUN_PATH
21956 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
21957 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
21958 # ancient GNU ld didn't support --whole-archive et. al.
21959 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
21960 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21962 whole_archive_flag_spec_F77=
21964 supports_anon_versioning=no
21965 case `$LD -v 2>&1` in
21966 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21967 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21968 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21969 *\ 2.11.*) ;; # other 2.11 versions
21970 *) supports_anon_versioning=yes ;;
21973 # See if GNU ld supports shared libraries.
21976 # On AIX/PPC, the GNU linker is very broken
21977 if test "$host_cpu" != ia64; then
21981 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21982 *** to be unable to reliably create shared libraries on AIX.
21983 *** Therefore, libtool is disabling shared libraries support. If you
21984 *** really care for shared libraries, you may want to modify your PATH
21985 *** so that a non-GNU linker is found, and then restart.
21994 # see comment about AmigaOS4 .so support
21995 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21996 archive_expsym_cmds_F77=''
21999 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)'
22000 hardcode_libdir_flag_spec_F77='-L$libdir'
22001 hardcode_minus_L_F77=yes
22007 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
22008 allow_undefined_flag_F77=unsupported
22009 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22010 # support --undefined. This deserves some investigation. FIXME
22011 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22017 cygwin* | mingw* | pw32* | cegcc*)
22018 # _LT_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
22019 # as there is no search path for DLLs.
22020 hardcode_libdir_flag_spec_F77='-L$libdir'
22021 allow_undefined_flag_F77=unsupported
22022 always_export_symbols_F77=no
22023 enable_shared_with_static_runtimes_F77=yes
22024 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
22026 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
22027 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22028 # If the export-symbols file already is a .def file (1st line
22029 # is EXPORTS), use it as is; otherwise, prepend...
22030 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22031 cp $export_symbols $output_objdir/$soname.def;
22033 echo EXPORTS > $output_objdir/$soname.def;
22034 cat $export_symbols >> $output_objdir/$soname.def;
22036 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22043 hardcode_direct_F77=no
22044 hardcode_shlibpath_var_F77=no
22045 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22046 export_dynamic_flag_spec_F77='${wl}-E'
22047 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22048 # Instead, shared libraries are loaded at an image base (0x10000000 by
22049 # default) and relocated if they conflict, which is a slow very memory
22050 # consuming and fragmenting process. To avoid this, we pick a random,
22051 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22052 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22053 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'
22054 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'
22057 gnu* | linux* | tpf* | k*bsd*-gnu)
22059 if test "$host_os" = linux-dietlibc; then
22060 case $cc_basename in
22061 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
22064 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
22065 && test "$tmp_diet" = no
22068 tmp_sharedflag='-shared'
22069 case $cc_basename,$host_cpu in
22070 pgcc*) # Portland Group C compiler
22071 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'
22072 tmp_addflag=' $pic_flag'
22074 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
22075 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'
22076 tmp_addflag=' $pic_flag -Mnomain' ;;
22077 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
22078 tmp_addflag=' -i_dynamic' ;;
22079 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
22080 tmp_addflag=' -i_dynamic -nofor_main' ;;
22081 ifc* | ifort*) # Intel Fortran compiler
22082 tmp_addflag=' -nofor_main' ;;
22083 lf95*) # Lahey Fortran 8.1
22084 whole_archive_flag_spec_F77=
22085 tmp_sharedflag='--shared' ;;
22086 xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
22087 tmp_sharedflag='-qmkshrobj'
22090 case `$CC -V 2>&1 | sed 5q` in
22091 *Sun\ C*) # Sun C 5.9
22092 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'
22093 compiler_needs_object_F77=yes
22094 tmp_sharedflag='-G' ;;
22095 *Sun\ F*) # Sun Fortran 8.3
22096 tmp_sharedflag='-G' ;;
22098 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22100 if test "x$supports_anon_versioning" = xyes; then
22101 archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
22102 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22103 echo "local: *; };" >> $output_objdir/$libname.ver~
22104 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22107 case $cc_basename in
22109 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
22110 whole_archive_flag_spec_F77='--whole-archive$convenience --no-whole-archive'
22111 hardcode_libdir_flag_spec_F77=
22112 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
22113 archive_cmds_F77='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
22114 if test "x$supports_anon_versioning" = xyes; then
22115 archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~
22116 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22117 echo "local: *; };" >> $output_objdir/$libname.ver~
22118 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
22128 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22129 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22132 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22133 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22138 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
22142 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22143 *** create shared libraries on Solaris systems. Therefore, libtool
22144 *** is disabling shared libraries support. We urge you to upgrade GNU
22145 *** binutils to release 2.9.1 or newer. Another option is to modify
22146 *** your PATH or compiler configuration so that the native linker is
22147 *** used, and then restart.
22150 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
22151 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22152 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22158 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
22159 case `$LD -v 2>&1` in
22160 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
22164 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22165 *** reliably create shared libraries on SCO systems. Therefore, libtool
22166 *** is disabling shared libraries support. We urge you to upgrade GNU
22167 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22168 *** your PATH or compiler configuration so that the native linker is
22169 *** used, and then restart.
22174 # For security reasons, it is highly recommended that you always
22175 # use absolute paths for naming shared libraries, and exclude the
22176 # DT_RUNPATH tag from executables and libraries. But doing so
22177 # requires that you compile everything twice, which is a pain.
22178 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
22179 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22180 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22181 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22190 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22192 hardcode_direct_F77=yes
22193 hardcode_shlibpath_var_F77=no
22197 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
22198 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22199 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22206 if test "$ld_shlibs_F77" = no; then
22208 hardcode_libdir_flag_spec_F77=
22209 export_dynamic_flag_spec_F77=
22210 whole_archive_flag_spec_F77=
22213 # PORTME fill in a description of your system's linker (not GNU ld)
22216 allow_undefined_flag_F77=unsupported
22217 always_export_symbols_F77=yes
22218 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'
22219 # Note: this linker hardcodes the directories in LIBPATH if there
22220 # are no directories specified by -L.
22221 hardcode_minus_L_F77=yes
22222 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22223 # Neither direct hardcoding nor static linking is supported with a
22225 hardcode_direct_F77=unsupported
22230 if test "$host_cpu" = ia64; then
22231 # On IA64, the linker does run time linking by default, so we don't
22232 # have to do anything special.
22233 aix_use_runtimelinking=no
22234 exp_sym_flag='-Bexport'
22237 # If we're using GNU nm, then we don't want the "-C" option.
22238 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22239 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
22240 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'
22242 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'
22244 aix_use_runtimelinking=no
22246 # Test if we are trying to use run time linking or normal
22247 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22248 # need to do runtime linking.
22249 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
22250 for ld_flag in $LDFLAGS; do
22251 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
22252 aix_use_runtimelinking=yes
22259 exp_sym_flag='-bexport'
22260 no_entry_flag='-bnoentry'
22263 # When large executables or shared objects are built, AIX ld can
22264 # have problems creating the table of contents. If linking a library
22265 # or program results in "error TOC overflow" add -mminimal-toc to
22266 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22267 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22269 archive_cmds_F77=''
22270 hardcode_direct_F77=yes
22271 hardcode_direct_absolute_F77=yes
22272 hardcode_libdir_separator_F77=':'
22273 link_all_deplibs_F77=yes
22274 file_list_spec_F77='${wl}-f,'
22276 if test "$GCC" = yes; then
22277 case $host_os in aix4.[012]|aix4.[012].*)
22278 # We only want to do this on AIX 4.2 and lower, the check
22279 # below for broken collect2 doesn't work under 4.3+
22280 collect2name=`${CC} -print-prog-name=collect2`
22281 if test -f "$collect2name" &&
22282 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
22284 # We have reworked collect2
22287 # We have old collect2
22288 hardcode_direct_F77=unsupported
22289 # It fails to find uninstalled libraries when the uninstalled
22290 # path is not listed in the libpath. Setting hardcode_minus_L
22291 # to unsupported forces relinking
22292 hardcode_minus_L_F77=yes
22293 hardcode_libdir_flag_spec_F77='-L$libdir'
22294 hardcode_libdir_separator_F77=
22298 shared_flag='-shared'
22299 if test "$aix_use_runtimelinking" = yes; then
22300 shared_flag="$shared_flag "'${wl}-G'
22304 if test "$host_cpu" = ia64; then
22305 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22306 # chokes on -Wl,-G. The following line is correct:
22309 if test "$aix_use_runtimelinking" = yes; then
22310 shared_flag='${wl}-G'
22312 shared_flag='${wl}-bM:SRE'
22317 export_dynamic_flag_spec_F77='${wl}-bexpall'
22318 # It seems that -bexpall does not export symbols beginning with
22319 # underscore (_), so it is better to generate a list of symbols to export.
22320 always_export_symbols_F77=yes
22321 if test "$aix_use_runtimelinking" = yes; then
22322 # Warning - without using the other runtime loading flags (-brtl),
22323 # -berok will link without error, but may produce a broken library.
22324 allow_undefined_flag_F77='-berok'
22325 # Determine the default libpath from the value encoded in an
22326 # empty executable.
22327 cat > conftest.$ac_ext <<_ACEOF
22332 if ac_fn_f77_try_link "$LINENO"; then :
22334 lt_aix_libpath_sed='
22335 /Import File Strings/,/^$/ {
22341 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22342 # Check for a 64-bit object if we didn't find anything.
22343 if test -z "$aix_libpath"; then
22344 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22347 rm -f core conftest.err conftest.$ac_objext \
22348 conftest$ac_exeext conftest.$ac_ext
22349 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22351 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22352 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"
22354 if test "$host_cpu" = ia64; then
22355 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
22356 allow_undefined_flag_F77="-z nodefs"
22357 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"
22359 # Determine the default libpath from the value encoded in an
22360 # empty executable.
22361 cat > conftest.$ac_ext <<_ACEOF
22366 if ac_fn_f77_try_link "$LINENO"; then :
22368 lt_aix_libpath_sed='
22369 /Import File Strings/,/^$/ {
22375 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22376 # Check for a 64-bit object if we didn't find anything.
22377 if test -z "$aix_libpath"; then
22378 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22381 rm -f core conftest.err conftest.$ac_objext \
22382 conftest$ac_exeext conftest.$ac_ext
22383 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
22385 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
22386 # Warning - without using the other run time loading flags,
22387 # -berok will link without error, but may produce a broken library.
22388 no_undefined_flag_F77=' ${wl}-bernotok'
22389 allow_undefined_flag_F77=' ${wl}-berok'
22390 # Exported symbols can be pulled into shared objects from archives
22391 whole_archive_flag_spec_F77='$convenience'
22392 archive_cmds_need_lc_F77=yes
22393 # This is similar to how AIX traditionally builds its shared libraries.
22394 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'
22402 # see comment about AmigaOS4 .so support
22403 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22404 archive_expsym_cmds_F77=''
22407 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)'
22408 hardcode_libdir_flag_spec_F77='-L$libdir'
22409 hardcode_minus_L_F77=yes
22415 export_dynamic_flag_spec_F77=-rdynamic
22418 cygwin* | mingw* | pw32* | cegcc*)
22419 # When not using gcc, we currently assume that we are using
22420 # Microsoft Visual C++.
22421 # hardcode_libdir_flag_spec is actually meaningless, as there is
22422 # no search path for DLLs.
22423 hardcode_libdir_flag_spec_F77=' '
22424 allow_undefined_flag_F77=unsupported
22425 # Tell ltmain to make .lib files, not .a files.
22427 # Tell ltmain to make .dll files, not .so files.
22429 # FIXME: Setting linknames here is a bad hack.
22430 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
22431 # The linker will automatically build a .lib file if we build a DLL.
22432 old_archive_from_new_cmds_F77='true'
22433 # FIXME: Should let the user specify the lib program.
22434 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs'
22435 fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
22436 enable_shared_with_static_runtimes_F77=yes
22439 darwin* | rhapsody*)
22442 archive_cmds_need_lc_F77=no
22443 hardcode_direct_F77=no
22444 hardcode_automatic_F77=yes
22445 hardcode_shlibpath_var_F77=unsupported
22446 whole_archive_flag_spec_F77=''
22447 link_all_deplibs_F77=yes
22448 allow_undefined_flag_F77="$_lt_dar_allow_undefined"
22449 case $cc_basename in
22450 ifort*) _lt_dar_can_shared=yes ;;
22451 *) _lt_dar_can_shared=$GCC ;;
22453 if test "$_lt_dar_can_shared" = "yes"; then
22454 output_verbose_link_cmd=echo
22455 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}"
22456 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
22457 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}"
22458 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}"
22467 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22468 hardcode_libdir_flag_spec_F77='-L$libdir'
22469 hardcode_shlibpath_var_F77=no
22476 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22477 # support. Future versions do this automatically, but an explicit c++rt0.o
22478 # does not break anything, and helps significantly (at the cost of a little
22481 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22482 hardcode_libdir_flag_spec_F77='-R$libdir'
22483 hardcode_direct_F77=yes
22484 hardcode_shlibpath_var_F77=no
22487 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22489 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22490 hardcode_direct_F77=yes
22491 hardcode_minus_L_F77=yes
22492 hardcode_shlibpath_var_F77=no
22495 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22496 freebsd* | dragonfly*)
22497 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22498 hardcode_libdir_flag_spec_F77='-R$libdir'
22499 hardcode_direct_F77=yes
22500 hardcode_shlibpath_var_F77=no
22504 if test "$GCC" = yes; then
22505 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'
22507 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'
22509 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22510 hardcode_libdir_separator_F77=:
22511 hardcode_direct_F77=yes
22513 # hardcode_minus_L: Not really in the search PATH,
22514 # but as the default location of the library.
22515 hardcode_minus_L_F77=yes
22516 export_dynamic_flag_spec_F77='${wl}-E'
22520 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22521 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22523 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22525 if test "$with_gnu_ld" = no; then
22526 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22527 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
22528 hardcode_libdir_separator_F77=:
22529 hardcode_direct_F77=yes
22530 hardcode_direct_absolute_F77=yes
22531 export_dynamic_flag_spec_F77='${wl}-E'
22532 # hardcode_minus_L: Not really in the search PATH,
22533 # but as the default location of the library.
22534 hardcode_minus_L_F77=yes
22539 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
22542 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22545 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22548 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22554 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22557 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22560 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22564 if test "$with_gnu_ld" = no; then
22565 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
22566 hardcode_libdir_separator_F77=:
22570 hardcode_direct_F77=no
22571 hardcode_shlibpath_var_F77=no
22574 hardcode_direct_F77=yes
22575 hardcode_direct_absolute_F77=yes
22576 export_dynamic_flag_spec_F77='${wl}-E'
22578 # hardcode_minus_L: Not really in the search PATH,
22579 # but as the default location of the library.
22580 hardcode_minus_L_F77=yes
22586 irix5* | irix6* | nonstopux*)
22587 if test "$GCC" = yes; then
22588 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'
22589 # Try to use the -exported_symbol ld option, if it does not
22590 # work, assume that -exports_file does not work either and
22591 # implicitly export all symbols.
22592 save_LDFLAGS="$LDFLAGS"
22593 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
22594 cat > conftest.$ac_ext <<_ACEOF
22597 if ac_fn_f77_try_link "$LINENO"; then :
22598 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'
22601 rm -f core conftest.err conftest.$ac_objext \
22602 conftest$ac_exeext conftest.$ac_ext
22603 LDFLAGS="$save_LDFLAGS"
22605 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'
22606 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'
22608 archive_cmds_need_lc_F77='no'
22609 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22610 hardcode_libdir_separator_F77=:
22611 inherit_rpath_F77=yes
22612 link_all_deplibs_F77=yes
22616 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
22617 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22619 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22621 hardcode_libdir_flag_spec_F77='-R$libdir'
22622 hardcode_direct_F77=yes
22623 hardcode_shlibpath_var_F77=no
22627 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22628 hardcode_direct_F77=yes
22629 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22630 hardcode_libdir_separator_F77=:
22631 hardcode_shlibpath_var_F77=no
22638 if test -f /usr/libexec/ld.so; then
22639 hardcode_direct_F77=yes
22640 hardcode_shlibpath_var_F77=no
22641 hardcode_direct_absolute_F77=yes
22642 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22643 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22644 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22645 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22646 export_dynamic_flag_spec_F77='${wl}-E'
22649 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
22650 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22651 hardcode_libdir_flag_spec_F77='-R$libdir'
22654 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22655 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
22665 hardcode_libdir_flag_spec_F77='-L$libdir'
22666 hardcode_minus_L_F77=yes
22667 allow_undefined_flag_F77=unsupported
22668 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'
22669 old_archive_from_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22673 if test "$GCC" = yes; then
22674 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22675 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'
22677 allow_undefined_flag_F77=' -expect_unresolved \*'
22678 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'
22680 archive_cmds_need_lc_F77='no'
22681 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22682 hardcode_libdir_separator_F77=:
22685 osf4* | osf5*) # as osf3* with the addition of -msym flag
22686 if test "$GCC" = yes; then
22687 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
22688 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'
22689 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
22691 allow_undefined_flag_F77=' -expect_unresolved \*'
22692 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'
22693 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~
22694 $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'
22696 # Both c and cxx compiler support -rpath directly
22697 hardcode_libdir_flag_spec_F77='-rpath $libdir'
22699 archive_cmds_need_lc_F77='no'
22700 hardcode_libdir_separator_F77=:
22704 no_undefined_flag_F77=' -z defs'
22705 if test "$GCC" = yes; then
22707 archive_cmds_F77='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22708 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
22709 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
22711 case `$CC -V 2>&1` in
22714 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22715 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
22716 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
22720 archive_cmds_F77='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
22721 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
22722 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
22726 hardcode_libdir_flag_spec_F77='-R$libdir'
22727 hardcode_shlibpath_var_F77=no
22729 solaris2.[0-5] | solaris2.[0-5].*) ;;
22731 # The compiler driver will combine and reorder linker options,
22732 # but understands `-z linker_flag'. GCC discards it without `$wl',
22733 # but is careful enough not to reorder.
22734 # Supported since Solaris 2.6 (maybe 2.5.1?)
22735 if test "$GCC" = yes; then
22736 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
22738 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract'
22742 link_all_deplibs_F77=yes
22746 if test "x$host_vendor" = xsequent; then
22747 # Use $CC to link under sequent, because it throws in some extra .o
22748 # files that make .init and .fini sections work.
22749 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22751 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22753 hardcode_libdir_flag_spec_F77='-L$libdir'
22754 hardcode_direct_F77=yes
22755 hardcode_minus_L_F77=yes
22756 hardcode_shlibpath_var_F77=no
22760 case $host_vendor in
22762 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22763 hardcode_direct_F77=yes # is this really true???
22766 ## LD is ld it makes a PLAMLIB
22767 ## CC just makes a GrossModule.
22768 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22769 reload_cmds_F77='$CC -r -o $output$reload_objs'
22770 hardcode_direct_F77=no
22773 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22774 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
22777 runpath_var='LD_RUN_PATH'
22778 hardcode_shlibpath_var_F77=no
22782 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22783 hardcode_shlibpath_var_F77=no
22784 export_dynamic_flag_spec_F77='-Bexport'
22788 if test -d /usr/nec; then
22789 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22790 hardcode_shlibpath_var_F77=no
22791 runpath_var=LD_RUN_PATH
22792 hardcode_runpath_var=yes
22797 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
22798 no_undefined_flag_F77='${wl}-z,text'
22799 archive_cmds_need_lc_F77=no
22800 hardcode_shlibpath_var_F77=no
22801 runpath_var='LD_RUN_PATH'
22803 if test "$GCC" = yes; then
22804 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22805 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22807 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22808 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22812 sysv5* | sco3.2v5* | sco5v6*)
22813 # Note: We can NOT use -z defs as we might desire, because we do not
22814 # link with -lc, and that would cause any symbols used from libc to
22815 # always be unresolved, which means just about no library would
22816 # ever link correctly. If we're not using GNU ld we use -z text
22817 # though, which does catch some bad symbols but isn't as heavy-handed
22819 no_undefined_flag_F77='${wl}-z,text'
22820 allow_undefined_flag_F77='${wl}-z,nodefs'
22821 archive_cmds_need_lc_F77=no
22822 hardcode_shlibpath_var_F77=no
22823 hardcode_libdir_flag_spec_F77='${wl}-R,$libdir'
22824 hardcode_libdir_separator_F77=':'
22825 link_all_deplibs_F77=yes
22826 export_dynamic_flag_spec_F77='${wl}-Bexport'
22827 runpath_var='LD_RUN_PATH'
22829 if test "$GCC" = yes; then
22830 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22831 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22833 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22834 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22839 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22840 hardcode_libdir_flag_spec_F77='-L$libdir'
22841 hardcode_shlibpath_var_F77=no
22849 if test x$host_vendor = xsni; then
22851 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22852 export_dynamic_flag_spec_F77='${wl}-Blargedynsym'
22858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5
22859 $as_echo "$ld_shlibs_F77" >&6; }
22860 test "$ld_shlibs_F77" = no && can_build_shared=no
22862 with_gnu_ld_F77=$with_gnu_ld
22870 # Do we need to explicitly link libc?
22872 case "x$archive_cmds_need_lc_F77" in
22874 # Assume -lc should be added
22875 archive_cmds_need_lc_F77=yes
22877 if test "$enable_shared" = yes && test "$GCC" = yes; then
22878 case $archive_cmds_F77 in
22880 # FIXME: we may have to deal with multi-command sequences.
22883 # Test whether the compiler implicitly links with -lc since on some
22884 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22885 # to ld, don't add -lc before -lgcc.
22886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
22887 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
22889 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
22891 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
22892 (eval $ac_compile) 2>&5
22894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22895 test $ac_status = 0; } 2>conftest.err; then
22898 libobjs=conftest.$ac_objext
22900 wl=$lt_prog_compiler_wl_F77
22901 pic_flag=$lt_prog_compiler_pic_F77
22907 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
22908 allow_undefined_flag_F77=
22909 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
22910 (eval $archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
22912 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
22913 test $ac_status = 0; }
22915 archive_cmds_need_lc_F77=no
22917 archive_cmds_need_lc_F77=yes
22919 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
22921 cat conftest.err 1>&5
22924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc_F77" >&5
22925 $as_echo "$archive_cmds_need_lc_F77" >&6; }
22995 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
22996 $as_echo_n "checking dynamic linker characteristics... " >&6; }
22998 library_names_spec=
22999 libname_spec='lib$name'
23003 postuninstall_cmds=
23007 shlibpath_overrides_runpath=unknown
23009 dynamic_linker="$host_os ld.so"
23010 sys_lib_dlsearch_path_spec="/lib /usr/lib"
23011 need_lib_prefix=unknown
23012 hardcode_into_libs=no
23014 # when you set need_version to no, make sure it does not cause -set_version
23015 # flags to be left without arguments
23016 need_version=unknown
23021 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
23022 shlibpath_var=LIBPATH
23024 # AIX 3 has no versioning support, so we append a major version to the name.
23025 soname_spec='${libname}${release}${shared_ext}$major'
23032 hardcode_into_libs=yes
23033 if test "$host_cpu" = ia64; then
23034 # AIX 5 supports IA64
23035 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
23036 shlibpath_var=LD_LIBRARY_PATH
23038 # With GCC up to 2.95.x, collect2 would create an import file
23039 # for dependence libraries. The import file would start with
23040 # the line `#! .'. This would cause the generated library to
23041 # depend on `.', always an invalid library. This was fixed in
23042 # development snapshots of GCC prior to 3.0.
23044 aix4 | aix4.[01] | aix4.[01].*)
23045 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
23047 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
23050 can_build_shared=no
23054 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23055 # soname into executable. Probably we can add versioning support to
23056 # collect2, so additional links can be useful in future.
23057 if test "$aix_use_runtimelinking" = yes; then
23058 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23059 # instead of lib<name>.a to let people know that these are not
23060 # typical AIX shared libraries.
23061 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23063 # We preserve .a as extension for shared libraries through AIX4.2
23064 # and later when we are not doing run time linking.
23065 library_names_spec='${libname}${release}.a $libname.a'
23066 soname_spec='${libname}${release}${shared_ext}$major'
23068 shlibpath_var=LIBPATH
23075 # Since July 2007 AmigaOS4 officially supports .so libraries.
23076 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
23077 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23080 library_names_spec='$libname.ixlibrary $libname.a'
23081 # Create ${libname}_ixlibrary.a entries in /sys/libs.
23082 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'
23088 library_names_spec='${libname}${shared_ext}'
23089 dynamic_linker="$host_os ld.so"
23090 shlibpath_var=LIBRARY_PATH
23096 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23097 soname_spec='${libname}${release}${shared_ext}$major'
23098 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
23099 shlibpath_var=LD_LIBRARY_PATH
23100 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23101 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
23102 # the default ld.so.conf also contains /usr/contrib/lib and
23103 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23104 # libtool to hard-code these into programs
23107 cygwin* | mingw* | pw32* | cegcc*)
23108 version_type=windows
23113 case $GCC,$host_os in
23114 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
23115 library_names_spec='$libname.dll.a'
23116 # DLL is installed to $(libdir)/../bin by postinstall_cmds
23117 postinstall_cmds='base_file=`basename \${file}`~
23118 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
23119 dldir=$destdir/`dirname \$dlpath`~
23120 test -d \$dldir || mkdir -p \$dldir~
23121 $install_prog $dir/$dlname \$dldir/$dlname~
23122 chmod a+x \$dldir/$dlname~
23123 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
23124 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
23126 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23127 dlpath=$dir/\$dldll~
23129 shlibpath_overrides_runpath=yes
23133 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23134 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23135 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
23138 # MinGW DLLs use traditional 'lib' prefix
23139 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23140 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23141 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
23142 # It is most probably a Windows format PATH printed by
23143 # mingw gcc, but we are running on Cygwin. Gcc prints its search
23144 # path with ; separators, and with drive letters. We can handle the
23145 # drive letters (cygwin fileutils understands them), so leave them,
23146 # especially as we might pass files found there to a mingw objdump,
23147 # which wouldn't understand a cygwinified path. Ahh.
23148 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23150 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23154 # pw32 DLLs use 'pw' prefix rather than 'lib'
23155 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23161 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23164 dynamic_linker='Win32 ld.exe'
23165 # FIXME: first we should search . and the directory the executable is in
23169 darwin* | rhapsody*)
23170 dynamic_linker="$host_os dyld"
23171 version_type=darwin
23174 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23175 soname_spec='${libname}${release}${major}$shared_ext'
23176 shlibpath_overrides_runpath=yes
23177 shlibpath_var=DYLD_LIBRARY_PATH
23178 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
23180 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
23187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23188 soname_spec='${libname}${release}${shared_ext}$major'
23189 shlibpath_var=LD_LIBRARY_PATH
23196 freebsd* | dragonfly*)
23197 # DragonFly does not have aout. When/if they implement a new
23198 # versioning mechanism, adjust this.
23199 if test -x /usr/bin/objformat; then
23200 objformat=`/usr/bin/objformat`
23203 freebsd[123]*) objformat=aout ;;
23204 *) objformat=elf ;;
23207 version_type=freebsd-$objformat
23208 case $version_type in
23210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23215 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23219 shlibpath_var=LD_LIBRARY_PATH
23222 shlibpath_overrides_runpath=yes
23224 freebsd3.[01]* | freebsdelf3.[01]*)
23225 shlibpath_overrides_runpath=yes
23226 hardcode_into_libs=yes
23228 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
23229 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
23230 shlibpath_overrides_runpath=no
23231 hardcode_into_libs=yes
23233 *) # from 4.6 on, and DragonFly
23234 shlibpath_overrides_runpath=yes
23235 hardcode_into_libs=yes
23244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23245 soname_spec='${libname}${release}${shared_ext}$major'
23246 shlibpath_var=LD_LIBRARY_PATH
23247 hardcode_into_libs=yes
23250 hpux9* | hpux10* | hpux11*)
23251 # Give a soname corresponding to the major version so that dld.sl refuses to
23252 # link against other versions.
23259 hardcode_into_libs=yes
23260 dynamic_linker="$host_os dld.so"
23261 shlibpath_var=LD_LIBRARY_PATH
23262 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23264 soname_spec='${libname}${release}${shared_ext}$major'
23265 if test "X$HPUX_IA64_MODE" = X32; then
23266 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23268 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
23270 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23274 hardcode_into_libs=yes
23275 dynamic_linker="$host_os dld.sl"
23276 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
23277 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
23278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23279 soname_spec='${libname}${release}${shared_ext}$major'
23280 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23281 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
23285 dynamic_linker="$host_os dld.sl"
23286 shlibpath_var=SHLIB_PATH
23287 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
23288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23289 soname_spec='${libname}${release}${shared_ext}$major'
23292 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23293 postinstall_cmds='chmod 555 $lib'
23300 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23301 soname_spec='${libname}${release}${shared_ext}$major'
23302 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
23303 shlibpath_var=LD_LIBRARY_PATH
23304 shlibpath_overrides_runpath=no
23305 hardcode_into_libs=yes
23308 irix5* | irix6* | nonstopux*)
23310 nonstopux*) version_type=nonstopux ;;
23312 if test "$lt_cv_prog_gnu_ld" = yes; then
23320 soname_spec='${libname}${release}${shared_ext}$major'
23321 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23323 irix5* | nonstopux*)
23324 libsuff= shlibsuff=
23327 case $LD in # libtool.m4 will add one of these switches to LD
23328 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
23329 libsuff= shlibsuff= libmagic=32-bit;;
23330 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
23331 libsuff=32 shlibsuff=N32 libmagic=N32;;
23332 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
23333 libsuff=64 shlibsuff=64 libmagic=64-bit;;
23334 *) libsuff= shlibsuff= libmagic=never-match;;
23338 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
23339 shlibpath_overrides_runpath=no
23340 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23341 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
23342 hardcode_into_libs=yes
23345 # No shared lib support for Linux oldld, aout, or coff.
23346 linux*oldld* | linux*aout* | linux*coff*)
23350 # This must be Linux ELF.
23351 linux* | k*bsd*-gnu)
23355 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23356 soname_spec='${libname}${release}${shared_ext}$major'
23357 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23358 shlibpath_var=LD_LIBRARY_PATH
23359 shlibpath_overrides_runpath=no
23360 # Some binutils ld are patched to set DT_RUNPATH
23361 save_LDFLAGS=$LDFLAGS
23362 save_libdir=$libdir
23363 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_F77\"; \
23364 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_F77\""
23365 cat > conftest.$ac_ext <<_ACEOF
23370 if ac_fn_f77_try_link "$LINENO"; then :
23371 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
23372 shlibpath_overrides_runpath=yes
23375 rm -f core conftest.err conftest.$ac_objext \
23376 conftest$ac_exeext conftest.$ac_ext
23377 LDFLAGS=$save_LDFLAGS
23378 libdir=$save_libdir
23380 # This implies no fast_install, which is unacceptable.
23381 # Some rework will be needed to allow for fast_install
23382 # before this can be enabled.
23383 hardcode_into_libs=yes
23385 # Append ld.so.conf contents to the search path
23386 if test -f /etc/ld.so.conf; then
23387 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' ' '`
23388 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
23391 # We used to test for /lib/ld.so.1 and disable shared libraries on
23392 # powerpc, because MkLinux only supported shared libraries with the
23393 # GNU dynamic linker. Since this was broken with cross compilers,
23394 # most powerpc-linux boxes support dynamic linking these days and
23395 # people can always --disable-shared, the test was removed, and we
23396 # assume the GNU/Linux dynamic linker is in use.
23397 dynamic_linker='GNU/Linux ld.so'
23404 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
23405 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23406 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23407 dynamic_linker='NetBSD (a.out) ld.so'
23409 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23410 soname_spec='${libname}${release}${shared_ext}$major'
23411 dynamic_linker='NetBSD ld.elf_so'
23413 shlibpath_var=LD_LIBRARY_PATH
23414 shlibpath_overrides_runpath=yes
23415 hardcode_into_libs=yes
23420 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23421 shlibpath_var=LD_LIBRARY_PATH
23422 shlibpath_overrides_runpath=yes
23429 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23430 soname_spec='${libname}${release}${shared_ext}$major'
23431 shlibpath_var=LD_LIBRARY_PATH
23432 shlibpath_overrides_runpath=no
23433 hardcode_into_libs=yes
23434 dynamic_linker='ldqnx.so'
23439 sys_lib_dlsearch_path_spec="/usr/lib"
23441 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23443 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
23444 *) need_version=no ;;
23446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23447 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23448 shlibpath_var=LD_LIBRARY_PATH
23449 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23451 openbsd2.[89] | openbsd2.[89].*)
23452 shlibpath_overrides_runpath=no
23455 shlibpath_overrides_runpath=yes
23459 shlibpath_overrides_runpath=yes
23464 libname_spec='$name'
23467 library_names_spec='$libname${shared_ext} $libname.a'
23468 dynamic_linker='OS/2 ld.exe'
23469 shlibpath_var=LIBPATH
23472 osf3* | osf4* | osf5*)
23476 soname_spec='${libname}${release}${shared_ext}$major'
23477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23478 shlibpath_var=LD_LIBRARY_PATH
23479 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23480 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
23491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23492 soname_spec='${libname}${release}${shared_ext}$major'
23493 shlibpath_var=LD_LIBRARY_PATH
23494 shlibpath_overrides_runpath=yes
23495 hardcode_into_libs=yes
23496 # ldd complains unless libraries are executable
23497 postinstall_cmds='chmod +x $lib'
23502 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23503 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23504 shlibpath_var=LD_LIBRARY_PATH
23505 shlibpath_overrides_runpath=yes
23506 if test "$with_gnu_ld" = yes; then
23514 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23515 soname_spec='${libname}${release}${shared_ext}$major'
23516 shlibpath_var=LD_LIBRARY_PATH
23517 case $host_vendor in
23519 shlibpath_overrides_runpath=no
23521 runpath_var=LD_RUN_PATH
23529 shlibpath_overrides_runpath=no
23530 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
23536 if test -d /usr/nec ;then
23538 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23539 soname_spec='$libname${shared_ext}.$major'
23540 shlibpath_var=LD_LIBRARY_PATH
23544 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
23545 version_type=freebsd-elf
23548 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23549 soname_spec='${libname}${release}${shared_ext}$major'
23550 shlibpath_var=LD_LIBRARY_PATH
23551 shlibpath_overrides_runpath=yes
23552 hardcode_into_libs=yes
23553 if test "$with_gnu_ld" = yes; then
23554 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23556 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
23559 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
23563 sys_lib_dlsearch_path_spec='/usr/lib'
23567 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
23571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23572 shlibpath_var=LD_LIBRARY_PATH
23573 shlibpath_overrides_runpath=no
23574 hardcode_into_libs=yes
23579 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23580 soname_spec='${libname}${release}${shared_ext}$major'
23581 shlibpath_var=LD_LIBRARY_PATH
23588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
23589 $as_echo "$dynamic_linker" >&6; }
23590 test "$dynamic_linker" = no && can_build_shared=no
23592 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
23593 if test "$GCC" = yes; then
23594 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23597 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
23598 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
23600 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
23601 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
23639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
23640 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
23641 hardcode_action_F77=
23642 if test -n "$hardcode_libdir_flag_spec_F77" ||
23643 test -n "$runpath_var_F77" ||
23644 test "X$hardcode_automatic_F77" = "Xyes" ; then
23646 # We can hardcode non-existent directories.
23647 if test "$hardcode_direct_F77" != no &&
23648 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23649 # have to relink, otherwise we might link with an installed library
23650 # when we should be linking with a yet-to-be-installed one
23651 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
23652 test "$hardcode_minus_L_F77" != no; then
23653 # Linking always hardcodes the temporary library directory.
23654 hardcode_action_F77=relink
23656 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23657 hardcode_action_F77=immediate
23660 # We cannot hardcode anything, or else we can only hardcode existing
23662 hardcode_action_F77=unsupported
23664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5
23665 $as_echo "$hardcode_action_F77" >&6; }
23667 if test "$hardcode_action_F77" = relink ||
23668 test "$inherit_rpath_F77" = yes; then
23669 # Fast installation is not supported
23670 enable_fast_install=no
23671 elif test "$shlibpath_overrides_runpath" = yes ||
23672 test "$enable_shared" = no; then
23673 # Fast installation is not necessary
23674 enable_fast_install=needless
23683 fi # test -n "$compiler"
23687 fi # test "$_lt_disable_F77" != yes
23690 ac_cpp='$CPP $CPPFLAGS'
23691 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23692 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23693 ac_compiler_gnu=$ac_cv_c_compiler_gnu
23705 ac_config_commands="$ac_config_commands libtool"
23710 # Only expand once:
23714 # Generate an error here if attempting to build both shared and static when
23715 # $libname.a is in $library_names_spec (as mentioned above), rather than
23716 # wait for ar or ld to fail.
23718 if test "$enable_shared" = yes && test "$enable_static" = yes; then
23719 case $library_names_spec in
23721 as_fn_error "cannot create both shared and static libraries on this system, --disable one of the two" "$LINENO" 5
23726 if test "$enable_static" = yes; then
23727 ENABLE_STATIC_TRUE=
23728 ENABLE_STATIC_FALSE='#'
23730 ENABLE_STATIC_TRUE='#'
23731 ENABLE_STATIC_FALSE=
23736 # Many of these library and header checks are for the benefit of
23737 # supplementary programs. libgmp doesn't use anything too weird.
23739 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
23740 $as_echo_n "checking for ANSI C header files... " >&6; }
23741 if test "${ac_cv_header_stdc+set}" = set; then :
23742 $as_echo_n "(cached) " >&6
23744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23745 /* end confdefs.h. */
23746 #include <stdlib.h>
23747 #include <stdarg.h>
23748 #include <string.h>
23759 if ac_fn_c_try_compile "$LINENO"; then :
23760 ac_cv_header_stdc=yes
23762 ac_cv_header_stdc=no
23764 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23766 if test $ac_cv_header_stdc = yes; then
23767 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
23768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23769 /* end confdefs.h. */
23770 #include <string.h>
23773 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23774 $EGREP "memchr" >/dev/null 2>&1; then :
23777 ac_cv_header_stdc=no
23783 if test $ac_cv_header_stdc = yes; then
23784 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
23785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23786 /* end confdefs.h. */
23787 #include <stdlib.h>
23790 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23791 $EGREP "free" >/dev/null 2>&1; then :
23794 ac_cv_header_stdc=no
23800 if test $ac_cv_header_stdc = yes; then
23801 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
23802 if test "$cross_compiling" = yes; then :
23805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23806 /* end confdefs.h. */
23808 #include <stdlib.h>
23809 #if ((' ' & 0x0FF) == 0x020)
23810 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
23811 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
23813 # define ISLOWER(c) \
23814 (('a' <= (c) && (c) <= 'i') \
23815 || ('j' <= (c) && (c) <= 'r') \
23816 || ('s' <= (c) && (c) <= 'z'))
23817 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
23820 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
23825 for (i = 0; i < 256; i++)
23826 if (XOR (islower (i), ISLOWER (i))
23827 || toupper (i) != TOUPPER (i))
23832 if ac_fn_c_try_run "$LINENO"; then :
23835 ac_cv_header_stdc=no
23837 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
23838 conftest.$ac_objext conftest.beam conftest.$ac_ext
23843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
23844 $as_echo "$ac_cv_header_stdc" >&6; }
23845 if test $ac_cv_header_stdc = yes; then
23847 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
23851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
23852 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
23853 if test "${ac_cv_header_time+set}" = set; then :
23854 $as_echo_n "(cached) " >&6
23856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23857 /* end confdefs.h. */
23858 #include <sys/types.h>
23859 #include <sys/time.h>
23865 if ((struct tm *) 0)
23871 if ac_fn_c_try_compile "$LINENO"; then :
23872 ac_cv_header_time=yes
23874 ac_cv_header_time=no
23876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
23879 $as_echo "$ac_cv_header_time" >&6; }
23880 if test $ac_cv_header_time = yes; then
23882 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
23887 # Reasons for testing:
23888 # float.h - not in SunOS bundled cc
23889 # invent.h - IRIX specific
23890 # langinfo.h - X/Open standard only, not in djgpp for instance
23891 # locale.h - old systems won't have this
23892 # nl_types.h - X/Open standard only, not in djgpp for instance
23893 # (usually langinfo.h gives nl_item etc, but not on netbsd 1.4.1)
23894 # sys/attributes.h - IRIX specific
23895 # sys/iograph.h - IRIX specific
23896 # sys/mman.h - not in Cray Unicos
23897 # sys/param.h - not in mingw
23898 # sys/processor.h - solaris specific, though also present in macos
23899 # sys/pstat.h - HPUX specific
23900 # sys/resource.h - not in mingw
23901 # sys/sysctl.h - not in mingw
23902 # sys/sysinfo.h - OSF specific
23903 # sys/syssgi.h - IRIX specific
23904 # sys/systemcfg.h - AIX specific
23905 # sys/time.h - autoconf suggests testing, don't know anywhere without it
23906 # sys/times.h - not in mingw
23907 # machine/hal_sysinfo.h - OSF specific
23909 # inttypes.h, stdint.h, unistd.h and sys/types.h are already in the autoconf
23912 for ac_header in fcntl.h float.h invent.h langinfo.h locale.h nl_types.h sys/attributes.h sys/iograph.h sys/mman.h sys/param.h sys/processor.h sys/pstat.h sys/sysinfo.h sys/syssgi.h sys/systemcfg.h sys/time.h sys/times.h
23914 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
23915 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
23916 eval as_val=\$$as_ac_Header
23917 if test "x$as_val" = x""yes; then :
23918 cat >>confdefs.h <<_ACEOF
23919 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
23927 # On SunOS, sys/resource.h needs sys/time.h (for struct timeval)
23928 for ac_header in sys/resource.h
23930 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "#if TIME_WITH_SYS_TIME
23931 # include <sys/time.h>
23934 # if HAVE_SYS_TIME_H
23935 # include <sys/time.h>
23941 if test "x$ac_cv_header_sys_resource_h" = x""yes; then :
23942 cat >>confdefs.h <<_ACEOF
23943 #define HAVE_SYS_RESOURCE_H 1
23951 # On NetBSD and OpenBSD, sys/sysctl.h needs sys/param.h for various constants
23952 for ac_header in sys/sysctl.h
23954 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "#if HAVE_SYS_PARAM_H
23955 # include <sys/param.h>
23958 if test "x$ac_cv_header_sys_sysctl_h" = x""yes; then :
23959 cat >>confdefs.h <<_ACEOF
23960 #define HAVE_SYS_SYSCTL_H 1
23968 # On OSF 4.0, <machine/hal_sysinfo.h> must have <sys/sysinfo.h> for ulong_t
23969 for ac_header in machine/hal_sysinfo.h
23971 ac_fn_c_check_header_compile "$LINENO" "machine/hal_sysinfo.h" "ac_cv_header_machine_hal_sysinfo_h" "#if HAVE_SYS_SYSINFO_H
23972 # include <sys/sysinfo.h>
23975 if test "x$ac_cv_header_machine_hal_sysinfo_h" = x""yes; then :
23976 cat >>confdefs.h <<_ACEOF
23977 #define HAVE_MACHINE_HAL_SYSINFO_H 1
23985 # Reasons for testing:
23986 # optarg - not declared in mingw
23987 # fgetc, fscanf, ungetc, vfprintf - not declared in SunOS 4
23988 # sys_errlist, sys_nerr - not declared in SunOS 4
23990 # optarg should be in unistd.h and the rest in stdio.h, both of which are
23991 # in the autoconf default includes.
23993 # sys_errlist and sys_nerr are supposed to be in <errno.h> on SunOS according
23994 # to the man page (but aren't), in glibc they're in stdio.h.
23996 ac_fn_c_check_decl "$LINENO" "fgetc" "ac_cv_have_decl_fgetc" "$ac_includes_default"
23997 if test "x$ac_cv_have_decl_fgetc" = x""yes; then :
24003 cat >>confdefs.h <<_ACEOF
24004 #define HAVE_DECL_FGETC $ac_have_decl
24006 ac_fn_c_check_decl "$LINENO" "fscanf" "ac_cv_have_decl_fscanf" "$ac_includes_default"
24007 if test "x$ac_cv_have_decl_fscanf" = x""yes; then :
24013 cat >>confdefs.h <<_ACEOF
24014 #define HAVE_DECL_FSCANF $ac_have_decl
24016 ac_fn_c_check_decl "$LINENO" "optarg" "ac_cv_have_decl_optarg" "$ac_includes_default"
24017 if test "x$ac_cv_have_decl_optarg" = x""yes; then :
24023 cat >>confdefs.h <<_ACEOF
24024 #define HAVE_DECL_OPTARG $ac_have_decl
24026 ac_fn_c_check_decl "$LINENO" "ungetc" "ac_cv_have_decl_ungetc" "$ac_includes_default"
24027 if test "x$ac_cv_have_decl_ungetc" = x""yes; then :
24033 cat >>confdefs.h <<_ACEOF
24034 #define HAVE_DECL_UNGETC $ac_have_decl
24036 ac_fn_c_check_decl "$LINENO" "vfprintf" "ac_cv_have_decl_vfprintf" "$ac_includes_default"
24037 if test "x$ac_cv_have_decl_vfprintf" = x""yes; then :
24043 cat >>confdefs.h <<_ACEOF
24044 #define HAVE_DECL_VFPRINTF $ac_have_decl
24047 ac_fn_c_check_decl "$LINENO" "sys_errlist" "ac_cv_have_decl_sys_errlist" "#include <stdio.h>
24050 if test "x$ac_cv_have_decl_sys_errlist" = x""yes; then :
24056 cat >>confdefs.h <<_ACEOF
24057 #define HAVE_DECL_SYS_ERRLIST $ac_have_decl
24059 ac_fn_c_check_decl "$LINENO" "sys_nerr" "ac_cv_have_decl_sys_nerr" "#include <stdio.h>
24062 if test "x$ac_cv_have_decl_sys_nerr" = x""yes; then :
24068 cat >>confdefs.h <<_ACEOF
24069 #define HAVE_DECL_SYS_NERR $ac_have_decl
24073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
24074 $as_echo_n "checking return type of signal handlers... " >&6; }
24075 if test "${ac_cv_type_signal+set}" = set; then :
24076 $as_echo_n "(cached) " >&6
24078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24079 /* end confdefs.h. */
24080 #include <sys/types.h>
24081 #include <signal.h>
24086 return *(signal (0, 0)) (0) == 1;
24091 if ac_fn_c_try_compile "$LINENO"; then :
24092 ac_cv_type_signal=int
24094 ac_cv_type_signal=void
24096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
24099 $as_echo "$ac_cv_type_signal" >&6; }
24101 cat >>confdefs.h <<_ACEOF
24102 #define RETSIGTYPE $ac_cv_type_signal
24107 # Reasons for testing:
24109 # long double - not in the HP bundled K&R cc
24110 # long long - only in reasonably recent compilers
24111 # ptrdiff_t - seems to be everywhere, maybe don't need to check this
24112 # quad_t - BSD specific
24113 # uint_least32_t - C99
24115 # the default includes are sufficient for all these types
24117 ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default"
24118 if test "x$ac_cv_type_intmax_t" = x""yes; then :
24120 cat >>confdefs.h <<_ACEOF
24121 #define HAVE_INTMAX_T 1
24126 ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "$ac_includes_default"
24127 if test "x$ac_cv_type_long_double" = x""yes; then :
24129 cat >>confdefs.h <<_ACEOF
24130 #define HAVE_LONG_DOUBLE 1
24135 ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default"
24136 if test "x$ac_cv_type_long_long" = x""yes; then :
24138 cat >>confdefs.h <<_ACEOF
24139 #define HAVE_LONG_LONG 1
24144 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default"
24145 if test "x$ac_cv_type_ptrdiff_t" = x""yes; then :
24147 cat >>confdefs.h <<_ACEOF
24148 #define HAVE_PTRDIFF_T 1
24153 ac_fn_c_check_type "$LINENO" "quad_t" "ac_cv_type_quad_t" "$ac_includes_default"
24154 if test "x$ac_cv_type_quad_t" = x""yes; then :
24156 cat >>confdefs.h <<_ACEOF
24157 #define HAVE_QUAD_T 1
24162 ac_fn_c_check_type "$LINENO" "uint_least32_t" "ac_cv_type_uint_least32_t" "$ac_includes_default"
24163 if test "x$ac_cv_type_uint_least32_t" = x""yes; then :
24165 cat >>confdefs.h <<_ACEOF
24166 #define HAVE_UINT_LEAST32_T 1
24171 ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default"
24172 if test "x$ac_cv_type_intptr_t" = x""yes; then :
24174 cat >>confdefs.h <<_ACEOF
24175 #define HAVE_INTPTR_T 1
24182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5
24183 $as_echo_n "checking for preprocessor stringizing operator... " >&6; }
24184 if test "${ac_cv_c_stringize+set}" = set; then :
24185 $as_echo_n "(cached) " >&6
24187 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24188 /* end confdefs.h. */
24191 char *s = x(teststring);
24193 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24194 $EGREP "#teststring" >/dev/null 2>&1; then :
24195 ac_cv_c_stringize=no
24197 ac_cv_c_stringize=yes
24202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5
24203 $as_echo "$ac_cv_c_stringize" >&6; }
24204 if test $ac_cv_c_stringize = yes; then
24206 $as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h
24211 # FIXME: Really want #ifndef __cplusplus around the #define volatile
24212 # replacement autoconf gives, since volatile is always available in C++.
24213 # But we don't use it in C++ currently.
24214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5
24215 $as_echo_n "checking for working volatile... " >&6; }
24216 if test "${ac_cv_c_volatile+set}" = set; then :
24217 $as_echo_n "(cached) " >&6
24219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24220 /* end confdefs.h. */
24227 int * volatile y = (int *) 0;
24233 if ac_fn_c_try_compile "$LINENO"; then :
24234 ac_cv_c_volatile=yes
24236 ac_cv_c_volatile=no
24238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5
24241 $as_echo "$ac_cv_c_volatile" >&6; }
24242 if test $ac_cv_c_volatile = no; then
24244 $as_echo "#define volatile /**/" >>confdefs.h
24249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5
24250 $as_echo_n "checking for C/C++ restrict keyword... " >&6; }
24251 if test "${ac_cv_c_restrict+set}" = set; then :
24252 $as_echo_n "(cached) " >&6
24254 ac_cv_c_restrict=no
24255 # The order here caters to the fact that C++ does not require restrict.
24256 for ac_kw in __restrict __restrict__ _Restrict restrict; do
24257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24258 /* end confdefs.h. */
24259 typedef int * int_ptr;
24260 int foo (int_ptr $ac_kw ip) {
24267 int * $ac_kw t = s;
24274 if ac_fn_c_try_compile "$LINENO"; then :
24275 ac_cv_c_restrict=$ac_kw
24277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24278 test "$ac_cv_c_restrict" != no && break
24282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5
24283 $as_echo "$ac_cv_c_restrict" >&6; }
24285 case $ac_cv_c_restrict in
24287 no) $as_echo "#define restrict /**/" >>confdefs.h
24289 *) cat >>confdefs.h <<_ACEOF
24290 #define restrict $ac_cv_c_restrict
24296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <stdarg.h> exists and works" >&5
24297 $as_echo_n "checking whether <stdarg.h> exists and works... " >&6; }
24298 if test "${gmp_cv_c_stdarg+set}" = set; then :
24299 $as_echo_n "(cached) " >&6
24301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24302 /* end confdefs.h. */
24303 #include <stdarg.h>
24304 int foo (int x, ...)
24309 y = va_arg (ap, int);
24321 if ac_fn_c_try_compile "$LINENO"; then :
24322 gmp_cv_c_stdarg=yes
24326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_stdarg" >&5
24330 $as_echo "$gmp_cv_c_stdarg" >&6; }
24331 if test $gmp_cv_c_stdarg = yes; then
24333 $as_echo "#define HAVE_STDARG 1" >>confdefs.h
24337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc __attribute__ ((const)) works" >&5
24338 $as_echo_n "checking whether gcc __attribute__ ((const)) works... " >&6; }
24339 if test "${gmp_cv_c_attribute_const+set}" = set; then :
24340 $as_echo_n "(cached) " >&6
24342 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24343 /* end confdefs.h. */
24344 int foo (int x) __attribute__ ((const));
24353 if ac_fn_c_try_compile "$LINENO"; then :
24354 gmp_cv_c_attribute_const=yes
24356 gmp_cv_c_attribute_const=no
24358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_attribute_const" >&5
24362 $as_echo "$gmp_cv_c_attribute_const" >&6; }
24363 if test $gmp_cv_c_attribute_const = yes; then
24365 $as_echo "#define HAVE_ATTRIBUTE_CONST 1" >>confdefs.h
24369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc __attribute__ ((malloc)) works" >&5
24370 $as_echo_n "checking whether gcc __attribute__ ((malloc)) works... " >&6; }
24371 if test "${gmp_cv_c_attribute_malloc+set}" = set; then :
24372 $as_echo_n "(cached) " >&6
24374 cat >conftest.c <<EOF
24375 void *foo (int x) __attribute__ ((malloc));
24377 gmp_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >conftest.out 2>&1"
24378 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
24379 (eval $gmp_compile) 2>&5
24381 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
24382 test $ac_status = 0; }; then
24383 if grep "attribute directive ignored" conftest.out >/dev/null; then
24384 gmp_cv_c_attribute_malloc=no
24386 gmp_cv_c_attribute_malloc=yes
24389 gmp_cv_c_attribute_malloc=no
24391 cat conftest.out >&5
24395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_attribute_malloc" >&5
24396 $as_echo "$gmp_cv_c_attribute_malloc" >&6; }
24397 if test $gmp_cv_c_attribute_malloc = yes; then
24399 $as_echo "#define HAVE_ATTRIBUTE_MALLOC 1" >>confdefs.h
24403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc __attribute__ ((mode (XX))) works" >&5
24404 $as_echo_n "checking whether gcc __attribute__ ((mode (XX))) works... " >&6; }
24405 if test "${gmp_cv_c_attribute_mode+set}" = set; then :
24406 $as_echo_n "(cached) " >&6
24408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24409 /* end confdefs.h. */
24410 typedef int SItype __attribute__ ((mode (SI)));
24419 if ac_fn_c_try_compile "$LINENO"; then :
24420 gmp_cv_c_attribute_mode=yes
24422 gmp_cv_c_attribute_mode=no
24424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_attribute_mode" >&5
24428 $as_echo "$gmp_cv_c_attribute_mode" >&6; }
24429 if test $gmp_cv_c_attribute_mode = yes; then
24431 $as_echo "#define HAVE_ATTRIBUTE_MODE 1" >>confdefs.h
24435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc __attribute__ ((noreturn)) works" >&5
24436 $as_echo_n "checking whether gcc __attribute__ ((noreturn)) works... " >&6; }
24437 if test "${gmp_cv_c_attribute_noreturn+set}" = set; then :
24438 $as_echo_n "(cached) " >&6
24440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24441 /* end confdefs.h. */
24442 void foo (int x) __attribute__ ((noreturn));
24451 if ac_fn_c_try_compile "$LINENO"; then :
24452 gmp_cv_c_attribute_noreturn=yes
24454 gmp_cv_c_attribute_noreturn=no
24456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_attribute_noreturn" >&5
24460 $as_echo "$gmp_cv_c_attribute_noreturn" >&6; }
24461 if test $gmp_cv_c_attribute_noreturn = yes; then
24463 $as_echo "#define HAVE_ATTRIBUTE_NORETURN 1" >>confdefs.h
24468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
24469 $as_echo_n "checking for inline... " >&6; }
24470 if test "${ac_cv_c_inline+set}" = set; then :
24471 $as_echo_n "(cached) " >&6
24474 for ac_kw in inline __inline__ __inline; do
24475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24476 /* end confdefs.h. */
24477 #ifndef __cplusplus
24479 static $ac_kw foo_t static_foo () {return 0; }
24480 $ac_kw foo_t foo () {return 0; }
24484 if ac_fn_c_try_compile "$LINENO"; then :
24485 ac_cv_c_inline=$ac_kw
24487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24488 test "$ac_cv_c_inline" != no && break
24492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
24493 $as_echo "$ac_cv_c_inline" >&6; }
24495 case $ac_cv_c_inline in
24498 case $ac_cv_c_inline in
24500 *) ac_val=$ac_cv_c_inline;;
24502 cat >>confdefs.h <<_ACEOF
24503 #ifndef __cplusplus
24504 #define inline $ac_val
24511 case $ac_cv_c_inline in
24514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24515 /* end confdefs.h. */
24516 #define __GMP_WITHIN_CONFIGURE_INLINE 1
24517 #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
24518 #define GMP_NAIL_BITS $GMP_NAIL_BITS
24519 #define GMP_LIMB_BITS 123
24520 $DEFN_LONG_LONG_LIMB
24521 #include "$srcdir/gmp-h.in"
24523 #ifndef __GMP_EXTERN_INLINE
24535 if ac_fn_c_try_compile "$LINENO"; then :
24538 case $ac_cv_c_inline in
24539 yes) tmp_inline=inline ;;
24540 *) tmp_inline=$ac_cv_c_inline ;;
24542 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gmp.h doesnt recognise compiler \"$tmp_inline\", inlines will be unavailable" >&5
24543 $as_echo "$as_me: WARNING: gmp.h doesnt recognise compiler \"$tmp_inline\", inlines will be unavailable" >&2;}
24545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24553 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
24554 # These system don't have libm, or don't need it
24557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5
24558 $as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; }
24559 if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then :
24560 $as_echo_n "(cached) " >&6
24562 ac_check_lib_save_LIBS=$LIBS
24564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24565 /* end confdefs.h. */
24567 /* Override any GCC internal prototype to avoid an error.
24568 Use char because int might match the return type of a GCC
24569 builtin and then its argument prototype would still apply. */
24573 char _mwvalidcheckl ();
24577 return _mwvalidcheckl ();
24582 if ac_fn_c_try_link "$LINENO"; then :
24583 ac_cv_lib_mw__mwvalidcheckl=yes
24585 ac_cv_lib_mw__mwvalidcheckl=no
24587 rm -f core conftest.err conftest.$ac_objext \
24588 conftest$ac_exeext conftest.$ac_ext
24589 LIBS=$ac_check_lib_save_LIBS
24591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
24592 $as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; }
24593 if test "x$ac_cv_lib_mw__mwvalidcheckl" = x""yes; then :
24597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
24598 $as_echo_n "checking for cos in -lm... " >&6; }
24599 if test "${ac_cv_lib_m_cos+set}" = set; then :
24600 $as_echo_n "(cached) " >&6
24602 ac_check_lib_save_LIBS=$LIBS
24604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24605 /* end confdefs.h. */
24607 /* Override any GCC internal prototype to avoid an error.
24608 Use char because int might match the return type of a GCC
24609 builtin and then its argument prototype would still apply. */
24622 if ac_fn_c_try_link "$LINENO"; then :
24623 ac_cv_lib_m_cos=yes
24627 rm -f core conftest.err conftest.$ac_objext \
24628 conftest$ac_exeext conftest.$ac_ext
24629 LIBS=$ac_check_lib_save_LIBS
24631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
24632 $as_echo "$ac_cv_lib_m_cos" >&6; }
24633 if test "x$ac_cv_lib_m_cos" = x""yes; then :
24639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5
24640 $as_echo_n "checking for cos in -lm... " >&6; }
24641 if test "${ac_cv_lib_m_cos+set}" = set; then :
24642 $as_echo_n "(cached) " >&6
24644 ac_check_lib_save_LIBS=$LIBS
24646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24647 /* end confdefs.h. */
24649 /* Override any GCC internal prototype to avoid an error.
24650 Use char because int might match the return type of a GCC
24651 builtin and then its argument prototype would still apply. */
24664 if ac_fn_c_try_link "$LINENO"; then :
24665 ac_cv_lib_m_cos=yes
24669 rm -f core conftest.err conftest.$ac_objext \
24670 conftest$ac_exeext conftest.$ac_ext
24671 LIBS=$ac_check_lib_save_LIBS
24673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5
24674 $as_echo "$ac_cv_lib_m_cos" >&6; }
24675 if test "x$ac_cv_lib_m_cos" = x""yes; then :
24685 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
24686 # for constant arguments. Useless!
24687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5
24688 $as_echo_n "checking for working alloca.h... " >&6; }
24689 if test "${gmp_cv_header_alloca+set}" = set; then :
24690 $as_echo_n "(cached) " >&6
24692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24693 /* end confdefs.h. */
24694 #include <alloca.h>
24698 char *p = (char *) alloca (2 * sizeof (int));
24703 if ac_fn_c_try_link "$LINENO"; then :
24704 gmp_cv_header_alloca=yes
24706 gmp_cv_header_alloca=no
24708 rm -f core conftest.err conftest.$ac_objext \
24709 conftest$ac_exeext conftest.$ac_ext
24711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_header_alloca" >&5
24712 $as_echo "$gmp_cv_header_alloca" >&6; }
24713 if test $gmp_cv_header_alloca = yes; then
24715 $as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h
24720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca (via gmp-impl.h)" >&5
24721 $as_echo_n "checking for alloca (via gmp-impl.h)... " >&6; }
24722 if test "${gmp_cv_func_alloca+set}" = set; then :
24723 $as_echo_n "(cached) " >&6
24725 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24726 /* end confdefs.h. */
24727 #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
24728 #define GMP_NAIL_BITS $GMP_NAIL_BITS
24729 #define GMP_LIMB_BITS 123
24730 $DEFN_LONG_LONG_LIMB
24731 #include "$srcdir/gmp-h.in"
24733 #include "$srcdir/gmp-impl.h"
24738 char *p = (char *) alloca (1);
24743 if ac_fn_c_try_link "$LINENO"; then :
24744 gmp_cv_func_alloca=yes
24746 gmp_cv_func_alloca=no
24748 rm -f core conftest.err conftest.$ac_objext \
24749 conftest$ac_exeext conftest.$ac_ext
24751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_func_alloca" >&5
24752 $as_echo "$gmp_cv_func_alloca" >&6; }
24753 if test $gmp_cv_func_alloca = yes; then
24755 $as_echo "#define HAVE_ALLOCA 1" >>confdefs.h
24760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to allocate temporary memory" >&5
24761 $as_echo_n "checking how to allocate temporary memory... " >&6; }
24762 if test "${gmp_cv_option_alloca+set}" = set; then :
24763 $as_echo_n "(cached) " >&6
24765 case $enable_alloca in
24767 gmp_cv_option_alloca=alloca
24770 gmp_cv_option_alloca=malloc-reentrant
24772 reentrant | notreentrant)
24773 case $gmp_cv_func_alloca in
24774 yes) gmp_cv_option_alloca=alloca ;;
24775 *) gmp_cv_option_alloca=malloc-$enable_alloca ;;
24779 gmp_cv_option_alloca=$enable_alloca
24784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_option_alloca" >&5
24785 $as_echo "$gmp_cv_option_alloca" >&6; }
24789 case $gmp_cv_option_alloca in
24791 if test $gmp_cv_func_alloca = no; then
24792 as_fn_error "--enable-alloca=alloca specified, but alloca not available" "$LINENO" 5
24794 $as_echo "#define WANT_TMP_ALLOCA 1" >>confdefs.h
24796 TAL_OBJECT=tal-reent$U.lo
24799 $as_echo "#define WANT_TMP_REENTRANT 1" >>confdefs.h
24801 TAL_OBJECT=tal-reent$U.lo
24803 malloc-notreentrant)
24804 $as_echo "#define WANT_TMP_NOTREENTRANT 1" >>confdefs.h
24806 TAL_OBJECT=tal-notreent$U.lo
24809 $as_echo "#define WANT_TMP_DEBUG 1" >>confdefs.h
24811 TAL_OBJECT=tal-debug$U.lo
24814 # checks at the start of configure.in should protect us
24815 as_fn_error "unrecognised --enable-alloca=$gmp_cv_option_alloca" "$LINENO" 5
24821 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24822 /* end confdefs.h. */
24824 #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
24825 #define GMP_NAIL_BITS $GMP_NAIL_BITS
24826 #define GMP_LIMB_BITS 123
24827 $DEFN_LONG_LONG_LIMB
24828 #include "$srcdir/gmp-h.in"
24830 #if ! _GMP_H_HAVE_FILE
24842 if ac_fn_c_try_compile "$LINENO"; then :
24845 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gmp.h doesnt recognise <stdio.h>, FILE prototypes will be unavailable" >&5
24846 $as_echo "$as_me: WARNING: gmp.h doesnt recognise <stdio.h>, FILE prototypes will be unavailable" >&2;}
24848 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
24852 $as_echo_n "checking whether byte ordering is bigendian... " >&6; }
24853 if test "${ac_cv_c_bigendian+set}" = set; then :
24854 $as_echo_n "(cached) " >&6
24856 ac_cv_c_bigendian=unknown
24857 # See if we're dealing with a universal compiler.
24858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24859 /* end confdefs.h. */
24860 #ifndef __APPLE_CC__
24861 not a universal capable compiler
24866 if ac_fn_c_try_compile "$LINENO"; then :
24868 # Check for potential -arch flags. It is not universal unless
24869 # there are at least two -arch flags with different values.
24872 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
24873 if test -n "$ac_prev"; then
24875 i?86 | x86_64 | ppc | ppc64)
24876 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
24879 ac_cv_c_bigendian=universal
24885 elif test "x$ac_word" = "x-arch"; then
24890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24891 if test $ac_cv_c_bigendian = unknown; then
24892 # See if sys/param.h defines the BYTE_ORDER macro.
24893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24894 /* end confdefs.h. */
24895 #include <sys/types.h>
24896 #include <sys/param.h>
24901 #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
24902 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
24904 bogus endian macros
24911 if ac_fn_c_try_compile "$LINENO"; then :
24912 # It does; now see whether it defined to BIG_ENDIAN or not.
24913 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24914 /* end confdefs.h. */
24915 #include <sys/types.h>
24916 #include <sys/param.h>
24921 #if BYTE_ORDER != BIG_ENDIAN
24929 if ac_fn_c_try_compile "$LINENO"; then :
24930 ac_cv_c_bigendian=yes
24932 ac_cv_c_bigendian=no
24934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24938 if test $ac_cv_c_bigendian = unknown; then
24939 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
24940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24941 /* end confdefs.h. */
24942 #include <limits.h>
24947 #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
24948 bogus endian macros
24955 if ac_fn_c_try_compile "$LINENO"; then :
24956 # It does; now see whether it defined to _BIG_ENDIAN or not.
24957 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24958 /* end confdefs.h. */
24959 #include <limits.h>
24964 #ifndef _BIG_ENDIAN
24972 if ac_fn_c_try_compile "$LINENO"; then :
24973 ac_cv_c_bigendian=yes
24975 ac_cv_c_bigendian=no
24977 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24981 if test $ac_cv_c_bigendian = unknown; then
24982 # Compile a test program.
24983 if test "$cross_compiling" = yes; then :
24984 # Try to guess by grepping values from an object file.
24985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24986 /* end confdefs.h. */
24987 short int ascii_mm[] =
24988 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
24989 short int ascii_ii[] =
24990 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
24991 int use_ascii (int i) {
24992 return ascii_mm[i] + ascii_ii[i];
24994 short int ebcdic_ii[] =
24995 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
24996 short int ebcdic_mm[] =
24997 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
24998 int use_ebcdic (int i) {
24999 return ebcdic_mm[i] + ebcdic_ii[i];
25006 return use_ascii (foo) == use_ebcdic (foo);
25011 if ac_fn_c_try_compile "$LINENO"; then :
25012 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
25013 ac_cv_c_bigendian=yes
25015 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
25016 if test "$ac_cv_c_bigendian" = unknown; then
25017 ac_cv_c_bigendian=no
25019 # finding both strings is unlikely to happen, but who knows?
25020 ac_cv_c_bigendian=unknown
25024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25027 /* end confdefs.h. */
25028 $ac_includes_default
25033 /* Are we little or big endian? From Harbison&Steele. */
25037 char c[sizeof (long int)];
25040 return u.c[sizeof (long int) - 1] == 1;
25046 if ac_fn_c_try_run "$LINENO"; then :
25047 ac_cv_c_bigendian=no
25049 ac_cv_c_bigendian=yes
25051 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25052 conftest.$ac_objext conftest.beam conftest.$ac_ext
25057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
25058 $as_echo "$ac_cv_c_bigendian" >&6; }
25059 case $ac_cv_c_bigendian in #(
25061 $as_echo "#define HAVE_LIMB_BIG_ENDIAN 1" >>confdefs.h
25064 echo "define_not_for_expansion(\`HAVE_LIMB_BIG_ENDIAN')" >> $gmp_tmpconfigm4p
25067 $as_echo "#define HAVE_LIMB_LITTLE_ENDIAN 1" >>confdefs.h
25070 echo "define_not_for_expansion(\`HAVE_LIMB_LITTLE_ENDIAN')" >> $gmp_tmpconfigm4p
25075 $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
25086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking format of \`double' floating point" >&5
25087 $as_echo_n "checking format of \`double' floating point... " >&6; }
25088 if test "${gmp_cv_c_double_format+set}" = set; then :
25089 $as_echo_n "(cached) " >&6
25091 gmp_cv_c_double_format=unknown
25092 cat >conftest.c <<\EOF
25098 { '\001', '\043', '\105', '\147', '\211', '\253', '\315', '\357' },
25100 { '\376', '\334', '\272', '\230', '\166', '\124', '\062', '\020' },
25103 gmp_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >&5 2>&1"
25104 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
25105 (eval $gmp_compile) 2>&5
25107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
25108 test $ac_status = 0; }; then
25109 cat >conftest.awk <<\EOF
25116 for (f = 2; f <= NF; f++)
25118 for (i = 0; i < 23; i++)
25122 # match the special begin and end sequences
25123 if (got[0] != "001") continue
25124 if (got[1] != "043") continue
25125 if (got[2] != "105") continue
25126 if (got[3] != "147") continue
25127 if (got[4] != "211") continue
25128 if (got[5] != "253") continue
25129 if (got[6] != "315") continue
25130 if (got[7] != "357") continue
25131 if (got[16] != "376") continue
25132 if (got[17] != "334") continue
25133 if (got[18] != "272") continue
25134 if (got[19] != "230") continue
25135 if (got[20] != "166") continue
25136 if (got[21] != "124") continue
25137 if (got[22] != "062") continue
25138 if (got[23] != "020") continue
25140 saw = " (" got[8] " " got[9] " " got[10] " " got[11] " " got[12] " " got[13] " " got[14] " " got[15] ")"
25142 if (got[8] == "000" && \
25143 got[9] == "000" && \
25144 got[10] == "000" && \
25145 got[11] == "124" && \
25146 got[12] == "064" && \
25147 got[13] == "157" && \
25148 got[14] == "235" && \
25151 print "IEEE little endian"
25156 # Little endian with the two 4-byte halves swapped, as used by ARM
25157 # when the chip is in little endian mode.
25159 if (got[8] == "064" && \
25160 got[9] == "157" && \
25161 got[10] == "235" && \
25162 got[11] == "301" && \
25163 got[12] == "000" && \
25164 got[13] == "000" && \
25165 got[14] == "000" && \
25168 print "IEEE little endian, swapped halves"
25173 # gcc 2.95.4 on one GNU/Linux ARM system was seen generating 000 in
25174 # the last byte, whereas 124 is correct. Not sure where the bug
25175 # actually lies, but a running program didn't seem to get a full
25176 # mantissa worth of working bits.
25178 # We match this case explicitly so we can give a nice result message,
25179 # but we deliberately exclude it from the normal IEEE double setups
25180 # since it's too broken.
25182 if (got[8] == "064" && \
25183 got[9] == "157" && \
25184 got[10] == "235" && \
25185 got[11] == "301" && \
25186 got[12] == "000" && \
25187 got[13] == "000" && \
25188 got[14] == "000" && \
25191 print "bad ARM software floats"
25196 if (got[8] == "301" && \
25197 got[9] == "235" && \
25198 got[10] == "157" && \
25199 got[11] == "064" && \
25200 got[12] == "124" && \
25201 got[13] == "000" && \
25202 got[14] == "000" && \
25205 print "IEEE big endian"
25210 if (got[8] == "353" && \
25211 got[9] == "315" && \
25212 got[10] == "242" && \
25213 got[11] == "171" && \
25214 got[12] == "000" && \
25215 got[13] == "240" && \
25216 got[14] == "000" && \
25224 if (got[8] == "275" && \
25225 got[9] == "301" && \
25226 got[10] == "064" && \
25227 got[11] == "157" && \
25228 got[12] == "000" && \
25229 got[13] == "124" && \
25230 got[14] == "000" && \
25238 if (got[8] == "300" && \
25239 got[9] == "033" && \
25240 got[10] == "353" && \
25241 got[11] == "171" && \
25242 got[12] == "242" && \
25243 got[13] == "240" && \
25244 got[14] == "000" && \
25256 print "unknown", saw
25260 gmp_cv_c_double_format=`od -b conftest.$OBJEXT | $AWK -f conftest.awk`
25261 case $gmp_cv_c_double_format in
25263 echo "cannot match anything, conftest.$OBJEXT contains" >&5
25264 od -b conftest.$OBJEXT >&5
25268 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: oops, cannot compile test program" >&5
25269 $as_echo "$as_me: WARNING: oops, cannot compile test program" >&2;}
25274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_double_format" >&5
25275 $as_echo "$gmp_cv_c_double_format" >&6; }
25279 case $gmp_cv_c_double_format in
25281 $as_echo "#define HAVE_DOUBLE_IEEE_BIG_ENDIAN 1" >>confdefs.h
25284 echo "define_not_for_expansion(\`HAVE_DOUBLE_IEEE_BIG_ENDIAN')" >> $gmp_tmpconfigm4p
25287 "IEEE little endian")
25288 $as_echo "#define HAVE_DOUBLE_IEEE_LITTLE_ENDIAN 1" >>confdefs.h
25291 echo "define_not_for_expansion(\`HAVE_DOUBLE_IEEE_LITTLE_ENDIAN')" >> $gmp_tmpconfigm4p
25294 "IEEE little endian, swapped halves")
25295 $as_echo "#define HAVE_DOUBLE_IEEE_LITTLE_SWAPPED 1" >>confdefs.h
25298 $as_echo "#define HAVE_DOUBLE_VAX_D 1" >>confdefs.h
25301 $as_echo "#define HAVE_DOUBLE_VAX_G 1" >>confdefs.h
25304 $as_echo "#define HAVE_DOUBLE_CRAY_CFP 1" >>confdefs.h
25306 "bad ARM software floats")
25309 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine float format." >&5
25310 $as_echo "$as_me: WARNING: Could not determine float format." >&2;}
25311 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Conversions to and from \"double\" may be slow." >&5
25312 $as_echo "$as_me: WARNING: Conversions to and from \"double\" may be slow." >&2;}
25315 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: oops, unrecognised float format: $gmp_cv_c_double_format" >&5
25316 $as_echo "$as_me: WARNING: oops, unrecognised float format: $gmp_cv_c_double_format" >&2;}
25322 # Reasons for testing:
25323 # alarm - not in mingw
25324 # attr_get - IRIX specific
25325 # clock_gettime - not in glibc 2.2.4, only very recent systems
25326 # cputime - not in glibc
25327 # getsysinfo - OSF specific
25328 # getrusage - not in mingw
25329 # gettimeofday - not in mingw
25330 # mmap - not in mingw, djgpp
25331 # nl_langinfo - X/Open standard only, not in djgpp for instance
25332 # obstack_vprintf - glibc specific
25333 # processor_info - solaris specific
25334 # pstat_getprocessor - HPUX specific (10.x and up)
25335 # raise - an ANSI-ism, though probably almost universal by now
25336 # read_real_time - AIX specific
25337 # sigaction - not in mingw
25338 # sigaltstack - not in mingw, or old AIX (reputedly)
25339 # sigstack - not in mingw
25340 # strerror - not in SunOS
25341 # strnlen - glibc extension (some other systems too)
25342 # syssgi - IRIX specific
25343 # times - not in mingw
25345 # clock_gettime is in librt on *-*-osf5.1. We could look for it
25346 # there, but that's not worth bothering with unless it has a decent
25347 # resolution (in a quick test clock_getres said only 1 millisecond).
25349 # AC_FUNC_STRNLEN is not used because we don't want the AC_LIBOBJ
25350 # replacement setups it gives. It detects a faulty strnlen on AIX, but
25351 # missing out on that test is ok since our only use of strnlen is in
25352 # __gmp_replacement_vsnprintf which is not required on AIX since it has a
25355 for ac_func in alarm attr_get clock clock_gettime cputime getpagesize getrusage gettimeofday getsysinfo localeconv memset mmap mprotect nl_langinfo obstack_vprintf popen processor_info pstat_getprocessor raise read_real_time sigaction sigaltstack sigstack syssgi strchr strerror strnlen strtol strtoul sysconf sysctl sysctlbyname times
25357 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
25358 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
25359 eval as_val=\$$as_ac_var
25360 if test "x$as_val" = x""yes; then :
25361 cat >>confdefs.h <<_ACEOF
25362 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
25370 ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf"
25371 if test "x$ac_cv_func_vsnprintf" = x""yes; then :
25372 gmp_vsnprintf_exists=yes
25374 gmp_vsnprintf_exists=no
25377 if test "$gmp_vsnprintf_exists" = no; then
25378 gmp_cv_func_vsnprintf=no
25380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf works" >&5
25381 $as_echo_n "checking whether vsnprintf works... " >&6; }
25382 if test "${gmp_cv_func_vsnprintf+set}" = set; then :
25383 $as_echo_n "(cached) " >&6
25385 gmp_cv_func_vsnprintf=yes
25386 for i in 'check ("hello world");' 'int n; check ("%nhello world", &n);'; do
25387 if test "$cross_compiling" = yes; then :
25388 gmp_cv_func_vsnprintf=probably; break
25390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25391 /* end confdefs.h. */
25393 #include <string.h> /* for strcmp */
25394 #include <stdio.h> /* for vsnprintf */
25397 #include <stdarg.h>
25399 #include <varargs.h>
25404 check (const char *fmt, ...)
25410 static char buf[128];
25415 va_start (ap, fmt);
25419 fmt = va_arg (ap, char *);
25422 ret = vsnprintf (buf, 4, fmt, ap);
25424 if (strcmp (buf, "hel") != 0)
25427 /* allowed return values */
25428 if (ret != -1 && ret != 3 && ret != 11)
25442 if ac_fn_c_try_run "$LINENO"; then :
25445 gmp_cv_func_vsnprintf=no; break
25447 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25448 conftest.$ac_objext conftest.beam conftest.$ac_ext
25454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_func_vsnprintf" >&5
25455 $as_echo "$gmp_cv_func_vsnprintf" >&6; }
25456 if test "$gmp_cv_func_vsnprintf" = probably; then
25457 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for properly working vsnprintf when cross compiling, will assume it's ok" >&5
25458 $as_echo "$as_me: WARNING: cannot check for properly working vsnprintf when cross compiling, will assume it's ok" >&2;}
25460 if test "$gmp_cv_func_vsnprintf" != no; then
25462 $as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h
25467 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sscanf needs writable input" >&5
25468 $as_echo_n "checking whether sscanf needs writable input... " >&6; }
25469 if test "${gmp_cv_func_sscanf_writable_input+set}" = set; then :
25470 $as_echo_n "(cached) " >&6
25473 *-*-hpux9 | *-*-hpux9.*)
25474 gmp_cv_func_sscanf_writable_input=yes ;;
25475 *) gmp_cv_func_sscanf_writable_input=no ;;
25479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_func_sscanf_writable_input" >&5
25480 $as_echo "$gmp_cv_func_sscanf_writable_input" >&6; }
25481 case $gmp_cv_func_sscanf_writable_input in
25483 $as_echo "#define SSCANF_WRITABLE_INPUT 1" >>confdefs.h
25486 *) as_fn_error "unrecognised \$gmp_cv_func_sscanf_writable_input" "$LINENO" 5 ;;
25490 # Reasons for checking:
25491 # pst_processor psp_iticksperclktick - not in hpux 9
25493 ac_fn_c_check_member "$LINENO" "struct pst_processor" "psp_iticksperclktick" "ac_cv_member_struct_pst_processor_psp_iticksperclktick" "#include <sys/pstat.h>
25495 if test "x$ac_cv_member_struct_pst_processor_psp_iticksperclktick" = x""yes; then :
25497 $as_echo "#define HAVE_PSP_ITICKSPERCLKTICK 1" >>confdefs.h
25502 # C++ tests, when required
25504 if test $enable_cxx = yes; then
25506 ac_cpp='$CXXCPP $CPPFLAGS'
25507 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25508 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25509 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
25512 # Reasons for testing:
25513 # <sstream> - not in g++ 2.95.2
25514 # std::locale - not in g++ 2.95.4
25517 for ac_header in sstream
25519 ac_fn_cxx_check_header_mongrel "$LINENO" "sstream" "ac_cv_header_sstream" "$ac_includes_default"
25520 if test "x$ac_cv_header_sstream" = x""yes; then :
25521 cat >>confdefs.h <<_ACEOF
25522 #define HAVE_SSTREAM 1
25529 ac_fn_cxx_check_type "$LINENO" "std::locale" "ac_cv_type_std__locale" "#include <locale>
25531 if test "x$ac_cv_type_std__locale" = x""yes; then :
25533 cat >>confdefs.h <<_ACEOF
25534 #define HAVE_STD__LOCALE 1
25542 ac_cpp='$CPP $CPPFLAGS'
25543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
25544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
25545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
25550 # Pick the correct source files in $path and link them to mpn/.
25551 # $gmp_mpn_functions lists all functions we need.
25553 # The rule is to find a file with the function name and a .asm, .S,
25554 # .s, or .c extension. Certain multi-function files with special names
25555 # can provide some functions too. (mpn/Makefile.am passes
25556 # -DOPERATION_<func> to get them to generate the right code.)
25558 # Note: $gmp_mpn_functions must have mod_1 before pre_mod_1 so the former
25559 # can optionally provide the latter as an extra entrypoint. Likewise
25560 # divrem_1 and pre_divrem_1.
25562 gmp_mpn_functions_optional="umul udiv \
25563 invert_limb sqr_diagonal \
25564 mul_2 mul_3 mul_4 \
25565 addmul_2 addmul_3 addmul_4 addmul_5 addmul_6 addmul_7 addmul_8 \
25566 addlsh1_n sublsh1_n rsblsh1_n rsh1add_n rsh1sub_n \
25567 addlsh2_n sublsh2_n rsblsh2_n \
25568 addlsh_n sublsh_n rsblsh_n \
25569 add_n_sub_n addaddmul_1msb0"
25571 gmp_mpn_functions="$extra_functions \
25572 add add_1 add_n sub sub_1 sub_n neg com mul_1 addmul_1 \
25573 submul_1 lshift rshift dive_1 diveby3 divis divrem divrem_1 divrem_2 \
25574 fib2_ui mod_1 mod_34lsub1 mode1o pre_divrem_1 pre_mod_1 dump \
25575 mod_1_1 mod_1_2 mod_1_3 mod_1_4 lshiftc \
25576 mul mul_fft mul_n sqr mul_basecase sqr_basecase nussbaumer_mul \
25577 random random2 pow_1 \
25578 rootrem sqrtrem get_str set_str scan0 scan1 popcount hamdist cmp \
25580 gcd_1 gcd gcdext_1 gcdext gcd_lehmer gcd_subdiv_step \
25581 gcdext_lehmer gcdext_subdiv_step \
25582 div_q tdiv_qr jacbase get_d \
25583 matrix22_mul hgcd2 hgcd mullo_n mullo_basecase \
25584 toom22_mul toom32_mul toom42_mul toom52_mul toom62_mul \
25585 toom33_mul toom43_mul toom53_mul toom63_mul \
25587 toom6h_mul toom6_sqr toom8h_mul toom8_sqr \
25588 toom_couple_handling \
25589 toom2_sqr toom3_sqr toom4_sqr \
25590 toom_eval_dgr3_pm1 toom_eval_dgr3_pm2 \
25591 toom_eval_pm1 toom_eval_pm2 toom_eval_pm2exp toom_eval_pm2rexp \
25592 toom_interpolate_5pts toom_interpolate_6pts toom_interpolate_7pts \
25593 toom_interpolate_8pts toom_interpolate_12pts toom_interpolate_16pts \
25594 invertappr invert binvert mulmod_bnm1 sqrmod_bnm1 \
25595 sbpi1_div_q sbpi1_div_qr sbpi1_divappr_q \
25596 dcpi1_div_q dcpi1_div_qr dcpi1_divappr_q \
25597 mu_div_qr mu_divappr_q mu_div_q \
25599 sbpi1_bdiv_q sbpi1_bdiv_qr \
25600 dcpi1_bdiv_q dcpi1_bdiv_qr \
25601 mu_bdiv_q mu_bdiv_qr \
25603 divexact bdiv_dbm1c redc_1 redc_2 redc_n powm powlo powm_sec subcnd_n \
25604 redc_1_sec trialdiv remove \
25605 and_n andn_n nand_n ior_n iorn_n nior_n xor_n xnor_n \
25607 $gmp_mpn_functions_optional"
25611 # the list of all object files used by mpn/Makefile.in and the
25612 # top-level Makefile.in, respectively
25614 mpn_objs_in_libgmp=
25616 # links from the sources, to be removed by "make distclean"
25620 # mpn_relative_top_srcdir is $top_srcdir, but for use from within the mpn
25621 # build directory. If $srcdir is relative then we use a relative path too,
25622 # so the two trees can be moved together.
25624 [\\/]* | ?:[\\/]*) # absolute, as per autoconf
25625 mpn_relative_top_srcdir=$srcdir ;;
25627 mpn_relative_top_srcdir=../$srcdir ;;
25635 # Fat binary setups.
25637 # We proceed through each $fat_path directory, and look for $fat_function
25638 # routines there. Those found are incorporated in the build by generating a
25639 # little mpn/<foo>.asm or mpn/<foo>.c file in the build directory, with
25640 # suitable function renaming, and adding that to $mpn_objects (the same as a
25641 # normal mpn file).
25643 # fat.h is generated with macros to let internal calls to each $fat_function
25644 # go directly through __gmpn_cpuvec, plus macros and declarations helping to
25645 # setup that structure, on a per-directory basis ready for
25646 # mpn/<cpu>/fat/fat.c.
25648 # fat.h includes thresholds listed in $fat_thresholds, extracted from
25649 # gmp-mparam.h in each directory. An overall maximum for each threshold is
25650 # established, for use in making fixed size arrays of temporary space.
25651 # (Eg. MUL_TOOM33_THRESHOLD_LIMIT used by mpn/generic/mul.c.)
25653 # It'd be possible to do some of this manually, but when there's more than a
25654 # few functions and a few directories it becomes very tedious, and very
25655 # prone to having some routine accidentally omitted. On that basis it seems
25656 # best to automate as much as possible, even if the code to do so is a bit
25660 if test -n "$fat_path"; then
25661 # Usually the mpn build directory is created with mpn/Makefile
25662 # instantiation, but we want to write to it sooner.
25663 mkdir mpn 2>/dev/null
25665 echo "/* fat.h - setups for fat binaries." >fat.h
25666 echo " Generated by configure - DO NOT EDIT. */" >>fat.h
25669 $as_echo "#define WANT_FAT_BINARY 1" >>confdefs.h
25672 echo 'define(<WANT_FAT_BINARY>, <yes>)' >>$gmp_tmpconfigm4
25675 # Don't want normal copies of fat functions
25676 for tmp_fn in $fat_functions; do
25677 remove_from_list_tmp=
25678 for remove_from_list_i in $gmp_mpn_functions; do
25679 if test $remove_from_list_i = $tmp_fn; then :;
25681 remove_from_list_tmp="$remove_from_list_tmp $remove_from_list_i"
25684 gmp_mpn_functions=$remove_from_list_tmp
25686 remove_from_list_tmp=
25687 for remove_from_list_i in $gmp_mpn_functions_optional; do
25688 if test $remove_from_list_i = $tmp_fn; then :;
25690 remove_from_list_tmp="$remove_from_list_tmp $remove_from_list_i"
25693 gmp_mpn_functions_optional=$remove_from_list_tmp
25697 for tmp_fn in $fat_functions; do
25699 dive_1) tmp_fbase=divexact_1 ;;
25700 diveby3) tmp_fbase=divexact_by3c ;;
25701 pre_divrem_1) tmp_fbase=preinv_divrem_1 ;;
25702 mode1o) tmp_fbase=modexact_1c_odd ;;
25703 pre_mod_1) tmp_fbase=preinv_mod_1 ;;
25704 *) tmp_fbase=$tmp_fn ;;
25708 #ifndef OPERATION_$tmp_fn
25709 #undef mpn_$tmp_fbase
25710 #define mpn_$tmp_fbase (*__gmpn_cpuvec.$tmp_fbase)
25712 DECL_$tmp_fbase (__MPN(${tmp_fbase}_init));" >>fat.h
25713 # encourage various macros to use fat functions
25714 cat >>confdefs.h <<_ACEOF
25715 #define HAVE_NATIVE_$tmp_fbase 1
25721 echo "/* variable thresholds */" >>fat.h
25722 for tmp_tn in $fat_thresholds; do
25723 echo "#undef $tmp_tn" >>fat.h
25724 echo "#define $tmp_tn CPUVEC_THRESHOLD (`echo $tmp_tn | tr A-Z a-z`)" >>fat.h
25728 /* Copy all fields into __gmpn_cpuvec.
25729 memcpy is not used because it might operate byte-wise (depending on its
25730 implementation), and we need the function pointer writes to be atomic.
25731 "volatile" discourages the compiler from trying to optimize this. */
25732 #define CPUVEC_INSTALL(vec) \\
25734 volatile struct cpuvec_t *p = &__gmpn_cpuvec; \\" >>fat.h
25735 for tmp_fn in $fat_functions; do
25737 dive_1) tmp_fbase=divexact_1 ;;
25738 diveby3) tmp_fbase=divexact_by3c ;;
25739 pre_divrem_1) tmp_fbase=preinv_divrem_1 ;;
25740 mode1o) tmp_fbase=modexact_1c_odd ;;
25741 pre_mod_1) tmp_fbase=preinv_mod_1 ;;
25742 *) tmp_fbase=$tmp_fn ;;
25745 echo " p->$tmp_fbase = vec.$tmp_fbase; \\" >>fat.h
25747 for tmp_tn in $fat_thresholds; do
25748 tmp_field_name=`echo $tmp_tn | tr A-Z a-z`
25749 echo " p->$tmp_field_name = vec.$tmp_field_name; \\" >>fat.h
25751 echo " } while (0)" >>fat.h
25754 /* A helper to check all fields are filled. */
25755 #define ASSERT_CPUVEC(vec) \\
25757 for tmp_fn in $fat_functions; do
25759 dive_1) tmp_fbase=divexact_1 ;;
25760 diveby3) tmp_fbase=divexact_by3c ;;
25761 pre_divrem_1) tmp_fbase=preinv_divrem_1 ;;
25762 mode1o) tmp_fbase=modexact_1c_odd ;;
25763 pre_mod_1) tmp_fbase=preinv_mod_1 ;;
25764 *) tmp_fbase=$tmp_fn ;;
25767 echo " ASSERT (vec.$tmp_fbase != NULL); \\" >>fat.h
25769 for tmp_tn in $fat_thresholds; do
25770 tmp_field_name=`echo $tmp_tn | tr A-Z a-z`
25771 echo " ASSERT (vec.$tmp_field_name != 0); \\" >>fat.h
25773 echo " } while (0)" >>fat.h
25776 /* Call ITERATE(field) for each fat threshold field. */
25777 #define ITERATE_FAT_THRESHOLDS() \\
25779 for tmp_tn in $fat_thresholds; do
25780 tmp_field_name=`echo $tmp_tn | tr A-Z a-z`
25781 echo " ITERATE ($tmp_tn, $tmp_field_name); \\" >>fat.h
25783 echo " } while (0)" >>fat.h
25785 for tmp_dir in $fat_path; do
25789 tmp_suffix=`echo $tmp_dir | sed -e '/\//s:^[^/]*/::' -e 's:[\\/]:_:g'`
25791 # In order to keep names unique on a DOS 8.3 filesystem, use a prefix
25792 # (rather than a suffix) for the generated file names, and abbreviate.
25793 case $tmp_suffix in
25794 pentium) tmp_prefix=p ;;
25795 pentium_mmx) tmp_prefix=pm ;;
25796 p6_mmx) tmp_prefix=p2 ;;
25797 p6_p3mmx) tmp_prefix=p3 ;;
25798 pentium4) tmp_prefix=p4 ;;
25799 pentium4_mmx) tmp_prefix=p4m ;;
25800 pentium4_sse2) tmp_prefix=p4s ;;
25801 k6_mmx) tmp_prefix=k6m ;;
25802 k6_k62mmx) tmp_prefix=k62 ;;
25803 k7_mmx) tmp_prefix=k7m ;;
25804 *) tmp_prefix=$tmp_suffix ;;
25807 # Extract desired thresholds from gmp-mparam.h file in this directory,
25809 tmp_mparam=$srcdir/mpn/$tmp_dir/gmp-mparam.h
25810 if test -f $tmp_mparam; then
25811 for tmp_tn in $fat_thresholds; do
25812 tmp_thresh=`sed -n "s/^#define $tmp_tn[ ]*\\([0-9][0-9]*\\).*$/\\1/p" $tmp_mparam`
25813 if test -n "$tmp_thresh"; then
25814 THRESH_ASM_SETUP="${THRESH_ASM_SETUP}define($tmp_tn,$tmp_thresh)
25816 CPUVEC_SETUP="$CPUVEC_SETUP decided_cpuvec.`echo $tmp_tn | tr A-Z a-z` = $tmp_thresh; \\
25818 eval tmp_limit=\$${tmp_tn}_LIMIT
25819 if test -z "$tmp_limit"; then
25822 if test $tmp_thresh -gt $tmp_limit; then
25823 eval ${tmp_tn}_LIMIT=$tmp_thresh
25829 for tmp_fn in $fat_functions; do
25830 # functions that can be provided by multi-function files
25833 add_n|sub_n) tmp_mulfunc="aors_n" ;;
25834 addmul_1|submul_1) tmp_mulfunc="aorsmul_1" ;;
25835 popcount|hamdist) tmp_mulfunc="popham" ;;
25836 and_n|andn_n|nand_n | ior_n|iorn_n|nior_n | xor_n|xnor_n)
25837 tmp_mulfunc="logops_n" ;;
25838 lshift|rshift) tmp_mulfunc="lorrshift";;
25840 tmp_mulfunc="aorslsh1_n aorrlsh1_n";;
25842 tmp_mulfunc="aorslsh1_n sorrlsh1_n";;
25844 tmp_mulfunc="aorrlsh1_n sorrlsh1_n";;
25846 tmp_mulfunc="aorslsh2_n aorrlsh2_n";;
25848 tmp_mulfunc="aorslsh2_n sorrlsh2_n";;
25850 tmp_mulfunc="aorrlsh2_n sorrlsh2_n";;
25852 tmp_mulfunc="aorslsh_n aorrlsh_n";;
25854 tmp_mulfunc="aorslsh_n sorrlsh_n";;
25856 tmp_mulfunc="aorrlsh_n sorrlsh_n";;
25857 rsh1add_n|rsh1sub_n)
25858 tmp_mulfunc="rsh1aors_n";;
25862 for tmp_base in $tmp_fn $tmp_mulfunc; do
25863 for tmp_ext in asm S s c; do
25864 tmp_file=$srcdir/mpn/$tmp_dir/$tmp_base.$tmp_ext
25865 if test -f $tmp_file; then
25867 mpn_objects="$mpn_objects ${tmp_prefix}_$tmp_fn.lo"
25868 mpn_objs_in_libgmp="$mpn_objs_in_libgmp mpn/${tmp_prefix}_$tmp_fn.lo"
25871 dive_1) tmp_fbase=divexact_1 ;;
25872 diveby3) tmp_fbase=divexact_by3c ;;
25873 pre_divrem_1) tmp_fbase=preinv_divrem_1 ;;
25874 mode1o) tmp_fbase=modexact_1c_odd ;;
25875 pre_mod_1) tmp_fbase=preinv_mod_1 ;;
25876 *) tmp_fbase=$tmp_fn ;;
25880 # carry-in variant, eg. divrem_1c or modexact_1c_odd
25882 *_1*) tmp_fbasec=`echo $tmp_fbase | sed 's/_1/_1c/'` ;;
25883 *) tmp_fbasec=${tmp_fbase}c ;;
25886 # Create a little file doing an include from srcdir. The
25887 # OPERATION and renamings aren't all needed all the time, but
25888 # they don't hurt if unused.
25890 # FIXME: Should generate these via config.status commands.
25891 # Would need them all in one AC_CONFIG_COMMANDS though, since
25892 # that macro doesn't accept a set of separate commands generated
25897 # hide the d-n-l from autoconf's error checking
25899 echo "$tmp_d_n_l mpn_$tmp_fbase - from $tmp_dir directory for fat binary.
25900 $tmp_d_n_l Generated by configure - DO NOT EDIT.
25902 define(OPERATION_$tmp_fn)
25903 define(__gmpn_$tmp_fbase, __gmpn_${tmp_fbase}_$tmp_suffix)
25904 define(__gmpn_$tmp_fbasec,__gmpn_${tmp_fbasec}_${tmp_suffix})
25905 define(__gmpn_preinv_${tmp_fbase},__gmpn_preinv_${tmp_fbase}_${tmp_suffix})
25907 $tmp_d_n_l For k6 and k7 gcd_1 calling their corresponding mpn_modexact_1_odd
25908 ifdef(\`__gmpn_modexact_1_odd',,
25909 \`define(__gmpn_modexact_1_odd,__gmpn_modexact_1_odd_${tmp_suffix})')
25912 include($mpn_relative_top_srcdir/mpn/$tmp_dir/$tmp_base.asm)
25913 " >mpn/${tmp_prefix}_$tmp_fn.asm
25916 echo "/* mpn_$tmp_fbase - from $tmp_dir directory for fat binary.
25917 Generated by configure - DO NOT EDIT. */
25919 #define OPERATION_$tmp_fn 1
25920 #define __gmpn_$tmp_fbase __gmpn_${tmp_fbase}_$tmp_suffix
25921 #define __gmpn_$tmp_fbasec __gmpn_${tmp_fbasec}_${tmp_suffix}
25922 #define __gmpn_preinv_${tmp_fbase} __gmpn_preinv_${tmp_fbase}_${tmp_suffix}
25924 #include \"$mpn_relative_top_srcdir/mpn/$tmp_dir/$tmp_base.c\"
25925 " >mpn/${tmp_prefix}_$tmp_fn.c
25929 # Prototype, and append to CPUVEC_SETUP for this directory.
25930 echo "DECL_$tmp_fbase (__gmpn_${tmp_fbase}_$tmp_suffix);" >>fat.h
25931 CPUVEC_SETUP="$CPUVEC_SETUP decided_cpuvec.$tmp_fbase = __gmpn_${tmp_fbase}_${tmp_suffix}; \\
25933 # Ditto for any preinv variant (preinv_divrem_1, preinv_mod_1).
25934 if grep "^PROLOGUE(mpn_preinv_$tmp_fn)" $tmp_file >/dev/null; then
25935 echo "DECL_preinv_$tmp_fbase (__gmpn_preinv_${tmp_fbase}_$tmp_suffix);" >>fat.h
25936 CPUVEC_SETUP="$CPUVEC_SETUP decided_cpuvec.preinv_$tmp_fbase = __gmpn_preinv_${tmp_fbase}_${tmp_suffix}; \\
25944 # Emit CPUVEC_SETUP for this directory
25946 echo "#define CPUVEC_SETUP_$tmp_suffix \\" >>fat.h
25947 echo " do { \\" >>fat.h
25948 echo "$CPUVEC_SETUP } while (0)" >>fat.h
25951 # Emit threshold limits
25953 for tmp_tn in $fat_thresholds; do
25954 eval tmp_limit=\$${tmp_tn}_LIMIT
25955 echo "#define ${tmp_tn}_LIMIT $tmp_limit" >>fat.h
25960 # Normal binary setups.
25963 for tmp_ext in asm S s c; do
25964 eval found_$tmp_ext=no
25967 for tmp_fn in $gmp_mpn_functions; do
25968 for tmp_ext in asm S s c; do
25969 test "$no_create" = yes || rm -f mpn/$tmp_fn.$tmp_ext
25972 # mpn_preinv_divrem_1 might have been provided by divrem_1.asm, likewise
25973 # mpn_preinv_mod_1 by mod_1.asm.
25976 if test "$HAVE_NATIVE_mpn_preinv_divrem_1" = yes; then continue; fi ;;
25978 if test "$HAVE_NATIVE_mpn_preinv_mod_1" = yes; then continue; fi ;;
25981 # functions that can be provided by multi-function files
25984 add_n|sub_n) tmp_mulfunc="aors_n" ;;
25985 addmul_1|submul_1) tmp_mulfunc="aorsmul_1" ;;
25986 popcount|hamdist) tmp_mulfunc="popham" ;;
25987 and_n|andn_n|nand_n | ior_n|iorn_n|nior_n | xor_n|xnor_n)
25988 tmp_mulfunc="logops_n" ;;
25989 lshift|rshift) tmp_mulfunc="lorrshift";;
25991 tmp_mulfunc="aorslsh1_n aorrlsh1_n";;
25993 tmp_mulfunc="aorslsh1_n sorrlsh1_n";;
25995 tmp_mulfunc="aorrlsh1_n sorrlsh1_n";;
25997 tmp_mulfunc="aorslsh2_n aorrlsh2_n";;
25999 tmp_mulfunc="aorslsh2_n sorrlsh2_n";;
26001 tmp_mulfunc="aorrlsh2_n sorrlsh2_n";;
26003 tmp_mulfunc="aorslsh_n aorrlsh_n";;
26005 tmp_mulfunc="aorslsh_n sorrlsh_n";;
26007 tmp_mulfunc="aorrlsh_n sorrlsh_n";;
26008 rsh1add_n|rsh1sub_n)
26009 tmp_mulfunc="rsh1aors_n";;
26014 for tmp_dir in $path; do
26015 for tmp_base in $tmp_fn $tmp_mulfunc; do
26016 for tmp_ext in asm S s c; do
26017 tmp_file=$srcdir/mpn/$tmp_dir/$tmp_base.$tmp_ext
26018 if test -f $tmp_file; then
26020 # For a nails build, check if the file supports our nail bits.
26021 # Generic code always supports all nails.
26023 # FIXME: When a multi-function file is selected to provide one of
26024 # the nails-neutral routines, like logops_n for and_n, the
26025 # PROLOGUE grepping will create HAVE_NATIVE_mpn_<foo> defines for
26026 # all functions in that file, even if they haven't all been
26027 # nailified. Not sure what to do about this, it's only really a
26028 # problem for logops_n, and it's not too terrible to insist those
26029 # get nailified always.
26031 if test $GMP_NAIL_BITS != 0 && test $tmp_dir != generic; then
26033 and_n | ior_n | xor_n | andn_n | \
26035 popcount | hamdist | \
26036 udiv | udiv_w_sdiv | umul | \
26037 cntlz | invert_limb)
26038 # these operations are either unaffected by nails or defined
26039 # to operate on full limbs
26042 nails=`sed -n 's/^[ ]*NAILS_SUPPORT(\(.*\))/\1/p' $tmp_file `
26043 for n in $nails; do
26046 n_start=`echo "$n" | sed -n 's/\(.*\)-.*/\1/p'`
26047 n_end=`echo "$n" | sed -n 's/.*-\(.*\)/\1/p'`
26054 if test $GMP_NAIL_BITS -ge $n_start && test $GMP_NAIL_BITS -le $n_end; then
26059 if test $found != yes; then
26067 eval found_$tmp_ext=yes
26069 if test $tmp_ext = c; then
26075 mpn_objects="$mpn_objects $tmp_fn$tmp_u.lo"
26076 mpn_objs_in_libgmp="$mpn_objs_in_libgmp mpn/$tmp_fn$tmp_u.lo"
26077 ac_config_links="$ac_config_links mpn/$tmp_fn.$tmp_ext:mpn/$tmp_dir/$tmp_base.$tmp_ext"
26079 gmp_srclinks="$gmp_srclinks mpn/$tmp_fn.$tmp_ext"
26081 # Duplicate AC_DEFINEs are harmless, so it doesn't matter
26082 # that multi-function files get grepped here repeatedly.
26083 # The PROLOGUE pattern excludes the optional second parameter.
26085 sed -n 's/^[ ]*MULFUNC_PROLOGUE(\(.*\))/\1/p' $tmp_file ;
26086 sed -n 's/^[ ]*PROLOGUE(\([^,]*\).*)/\1/p' $tmp_file
26088 for gmp_tmp in $gmp_ep; do
26089 cat >>confdefs.h <<_ACEOF
26090 #define HAVE_NATIVE_$gmp_tmp 1
26093 eval HAVE_NATIVE_$gmp_tmp=yes
26097 sqr_basecase) sqr_basecase_source=$tmp_file ;;
26103 if test $found = yes; then break ; fi
26105 if test $found = yes; then break ; fi
26108 if test $found = no; then
26109 for tmp_optional in $gmp_mpn_functions_optional; do
26110 if test $tmp_optional = $tmp_fn; then
26114 if test $found = no; then
26115 as_fn_error "no version of $tmp_fn found in path: $path" "$LINENO" 5
26120 # All cycle counters are .asm files currently
26121 if test -n "$SPEED_CYCLECOUNTER_OBJ"; then
26129 # Don't demand an m4 unless it's actually needed.
26130 if test $found_asm = yes; then
26132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suitable m4" >&5
26133 $as_echo_n "checking for suitable m4... " >&6; }
26134 if test "${gmp_cv_prog_m4+set}" = set; then :
26135 $as_echo_n "(cached) " >&6
26137 if test -n "$M4"; then
26138 gmp_cv_prog_m4="$M4"
26140 cat >conftest.m4 <<\EOF
26141 define(dollarhash,``$#'')ifelse(dollarhash(x),1,`define(t1,Y)',
26142 ``bad: $# not supported (SunOS /usr/bin/m4)
26143 '')ifelse(eval(89),89,`define(t2,Y)',
26144 `bad: eval() doesnt support 8 or 9 in a constant (OpenBSD 2.6 m4)
26145 ')ifelse(t1`'t2,YY,`good
26148 echo "trying m4" >&5
26149 gmp_tmp_val=`(m4 conftest.m4) 2>&5`
26150 echo "$gmp_tmp_val" >&5
26151 if test "$gmp_tmp_val" = good; then
26152 gmp_cv_prog_m4="m4"
26154 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
26155 ac_dummy="$PATH:/usr/5bin"
26156 for ac_dir in $ac_dummy; do
26157 test -z "$ac_dir" && ac_dir=.
26158 echo "trying $ac_dir/m4" >&5
26159 gmp_tmp_val=`($ac_dir/m4 conftest.m4) 2>&5`
26160 echo "$gmp_tmp_val" >&5
26161 if test "$gmp_tmp_val" = good; then
26162 gmp_cv_prog_m4="$ac_dir/m4"
26167 if test -z "$gmp_cv_prog_m4"; then
26168 as_fn_error "No usable m4 in \$PATH or /usr/5bin (see config.log for reasons)." "$LINENO" 5
26174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_prog_m4" >&5
26175 $as_echo "$gmp_cv_prog_m4" >&6; }
26176 M4="$gmp_cv_prog_m4"
26180 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if m4wrap produces spurious output" >&5
26181 $as_echo_n "checking if m4wrap produces spurious output... " >&6; }
26182 if test "${gmp_cv_m4_m4wrap_spurious+set}" = set; then :
26183 $as_echo_n "(cached) " >&6
26185 # hide the d-n-l from autoconf's error checking
26187 cat >conftest.m4 <<EOF
26188 changequote({,})define(x,)m4wrap({x})$tmp_d_n_l
26190 echo test input is >&5
26191 cat conftest.m4 >&5
26192 tmp_chars=`$M4 conftest.m4 | wc -c`
26193 echo produces $tmp_chars chars output >&5
26195 if test $tmp_chars = 0; then
26196 gmp_cv_m4_m4wrap_spurious=no
26198 gmp_cv_m4_m4wrap_spurious=yes
26202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_m4_m4wrap_spurious" >&5
26203 $as_echo "$gmp_cv_m4_m4wrap_spurious" >&6; }
26205 echo "define(<M4WRAP_SPURIOUS>,<$gmp_cv_m4_m4wrap_spurious>)" >> $gmp_tmpconfigm4
26212 # Only do the GMP_ASM checks if there's a .S or .asm wanting them.
26213 if test $found_asm = no && test $found_S = no; then
26214 gmp_asm_syntax_testing=no
26217 if test "$gmp_asm_syntax_testing" != no; then
26218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to switch to text section" >&5
26219 $as_echo_n "checking how to switch to text section... " >&6; }
26220 if test "${gmp_cv_asm_text+set}" = set; then :
26221 $as_echo_n "(cached) " >&6
26223 for i in ".text" ".code" ".csect .text[PR]"; do
26224 echo "trying $i" >&5
26225 cat >conftest.s <<EOF
26228 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
26229 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
26230 (eval $gmp_assemble) 2>&5
26232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26233 test $ac_status = 0; }; then
26234 cat conftest.out >&5
26239 cat conftest.out >&5
26240 echo "configure: failed program was:" >&5
26247 if test -z "$gmp_cv_asm_text"; then
26248 as_fn_error "Cannot determine text section directive" "$LINENO" 5
26252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_text" >&5
26253 $as_echo "$gmp_cv_asm_text" >&6; }
26254 echo "define(<TEXT>, <$gmp_cv_asm_text>)" >> $gmp_tmpconfigm4
26256 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to switch to data section" >&5
26257 $as_echo_n "checking how to switch to data section... " >&6; }
26258 if test "${gmp_cv_asm_data+set}" = set; then :
26259 $as_echo_n "(cached) " >&6
26262 *-*-aix*) gmp_cv_asm_data=".csect .data[RW]" ;;
26263 *) gmp_cv_asm_data=".data" ;;
26267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_data" >&5
26268 $as_echo "$gmp_cv_asm_data" >&6; }
26269 echo "define(<DATA>, <$gmp_cv_asm_data>)" >> $gmp_tmpconfigm4
26272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler label suffix" >&5
26273 $as_echo_n "checking for assembler label suffix... " >&6; }
26274 if test "${gmp_cv_asm_label_suffix+set}" = set; then :
26275 $as_echo_n "(cached) " >&6
26277 gmp_cv_asm_label_suffix=unknown
26278 for i in "" ":"; do
26279 echo "trying $i" >&5
26280 cat >conftest.s <<EOF
26284 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
26285 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
26286 (eval $gmp_assemble) 2>&5
26288 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26289 test $ac_status = 0; }; then
26290 cat conftest.out >&5
26291 gmp_cv_asm_label_suffix=$i
26295 cat conftest.out >&5
26296 echo "configure: failed program was:" >&5
26298 cat conftest.out >&5
26303 if test "$gmp_cv_asm_label_suffix" = "unknown"; then
26304 as_fn_error "Cannot determine label suffix" "$LINENO" 5
26308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_label_suffix" >&5
26309 $as_echo "$gmp_cv_asm_label_suffix" >&6; }
26310 echo "define(<LABEL_SUFFIX>, <$gmp_cv_asm_label_suffix>)" >> $gmp_tmpconfigm4
26313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler global directive" >&5
26314 $as_echo_n "checking for assembler global directive... " >&6; }
26315 if test "${gmp_cv_asm_globl+set}" = set; then :
26316 $as_echo_n "(cached) " >&6
26319 hppa*-*-*) gmp_cv_asm_globl=.export ;;
26320 ia64*-*-* | itanium-*-* | itanium2-*-*) gmp_cv_asm_globl=.global ;;
26321 *) gmp_cv_asm_globl=.globl ;;
26325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_globl" >&5
26326 $as_echo "$gmp_cv_asm_globl" >&6; }
26327 echo "define(<GLOBL>, <$gmp_cv_asm_globl>)" >> $gmp_tmpconfigm4
26330 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler global directive attribute" >&5
26331 $as_echo_n "checking for assembler global directive attribute... " >&6; }
26332 if test "${gmp_cv_asm_globl_attr+set}" = set; then :
26333 $as_echo_n "(cached) " >&6
26335 case $gmp_cv_asm_globl in
26336 .export) gmp_cv_asm_globl_attr=",entry" ;;
26337 *) gmp_cv_asm_globl_attr="" ;;
26341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_globl_attr" >&5
26342 $as_echo "$gmp_cv_asm_globl_attr" >&6; }
26343 echo "define(<GLOBL_ATTR>, <$gmp_cv_asm_globl_attr>)" >> $gmp_tmpconfigm4
26346 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if globals are prefixed by underscore" >&5
26347 $as_echo_n "checking if globals are prefixed by underscore... " >&6; }
26348 if test "${gmp_cv_asm_underscore+set}" = set; then :
26349 $as_echo_n "(cached) " >&6
26351 gmp_cv_asm_underscore="unknown"
26352 cat >conftest.c <<EOF
26355 gmp_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >&5"
26356 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
26357 (eval $gmp_compile) 2>&5
26359 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26360 test $ac_status = 0; }; then
26361 $NM conftest.$OBJEXT >conftest.out
26362 if grep _gurkmacka conftest.out >/dev/null; then
26363 gmp_cv_asm_underscore=yes
26364 elif grep gurkmacka conftest.out >/dev/null; then
26365 gmp_cv_asm_underscore=no
26367 echo "configure: $NM doesn't have gurkmacka:" >&5
26368 cat conftest.out >&5
26371 echo "configure: failed program was:" >&5
26377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_underscore" >&5
26378 $as_echo "$gmp_cv_asm_underscore" >&6; }
26379 case $gmp_cv_asm_underscore in
26382 echo 'define(<GSYM_PREFIX>, <_>)' >>$gmp_tmpconfigm4
26386 echo 'define(<GSYM_PREFIX>, <>)' >>$gmp_tmpconfigm4
26389 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
26390 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
26391 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Cannot determine global symbol prefix." >&5
26392 $as_echo "$as_me: WARNING: | Cannot determine global symbol prefix." >&2;}
26393 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | $NM output doesn't contain a global data symbol." >&5
26394 $as_echo "$as_me: WARNING: | $NM output doesn't contain a global data symbol." >&2;}
26395 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Will proceed with no underscore." >&5
26396 $as_echo "$as_me: WARNING: | Will proceed with no underscore." >&2;}
26397 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | If this is wrong then you'll get link errors referring" >&5
26398 $as_echo "$as_me: WARNING: | If this is wrong then you'll get link errors referring" >&2;}
26399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | to ___gmpn_add_n (note three underscores)." >&5
26400 $as_echo "$as_me: WARNING: | to ___gmpn_add_n (note three underscores)." >&2;}
26401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | In this case do a fresh build with an override," >&5
26402 $as_echo "$as_me: WARNING: | In this case do a fresh build with an override," >&2;}
26403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | ./configure gmp_cv_asm_underscore=yes" >&5
26404 $as_echo "$as_me: WARNING: | ./configure gmp_cv_asm_underscore=yes" >&2;}
26405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5
26406 $as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
26408 echo 'define(<GSYM_PREFIX>, <>)' >>$gmp_tmpconfigm4
26417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to switch to read-only data section" >&5
26418 $as_echo_n "checking how to switch to read-only data section... " >&6; }
26419 if test "${gmp_cv_asm_rodata+set}" = set; then :
26420 $as_echo_n "(cached) " >&6
26424 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-* | x86_64-*-*)
26425 gmp_cv_asm_rodata="$gmp_cv_asm_data" ;;
26427 gmp_cv_asm_rodata="$gmp_cv_asm_text" ;;
26430 cat >conftest.c <<EOF
26431 const int foo = 123;
26433 echo "Test program:" >&5
26435 gmp_compile="$CC $CFLAGS $CPPFLAGS -S conftest.c >&5"
26436 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
26437 (eval $gmp_compile) 2>&5
26439 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26440 test $ac_status = 0; }; then
26441 echo "Compiler output:" >&5
26443 if test $gmp_cv_asm_underscore = yes; then
26448 # must see our label
26449 if grep "^${tmp_gsym_prefix}foo$gmp_cv_asm_label_suffix" conftest.s >/dev/null 2>&5; then
26450 # take the last directive before our label (hence skipping segments
26451 # getting debugging info etc)
26452 tmp_match=`sed -n "/^${tmp_gsym_prefix}foo$gmp_cv_asm_label_suffix/q
26458 /^[. ]*CSECT/p" conftest.s | sed -n '$p'`
26459 echo "Match: $tmp_match" >&5
26460 if test -n "$tmp_match"; then
26461 gmp_cv_asm_rodata=$tmp_match
26464 echo "Couldn't find label: ^${tmp_gsym_prefix}foo$gmp_cv_asm_label_suffix" >&5
26470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_rodata" >&5
26471 $as_echo "$gmp_cv_asm_rodata" >&6; }
26472 echo "define(<RODATA>, <$gmp_cv_asm_rodata>)" >> $gmp_tmpconfigm4
26474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .type directive" >&5
26475 $as_echo_n "checking for assembler .type directive... " >&6; }
26476 if test "${gmp_cv_asm_type+set}" = set; then :
26477 $as_echo_n "(cached) " >&6
26480 for gmp_tmp_prefix in @ \# %; do
26481 cat >conftest.s <<EOF
26482 .type sym,${gmp_tmp_prefix}function
26484 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
26485 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
26486 (eval $gmp_assemble) 2>&5
26488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26489 test $ac_status = 0; }; then
26490 cat conftest.out >&5
26491 if grep "\.type pseudo-op used outside of \.def/\.endef ignored" conftest.out >/dev/null; then : ;
26493 gmp_cv_asm_type=".type \$1,${gmp_tmp_prefix}\$2"
26497 cat conftest.out >&5
26498 echo "configure: failed program was:" >&5
26508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_type" >&5
26509 $as_echo "$gmp_cv_asm_type" >&6; }
26510 echo "define(<TYPE>, <$gmp_cv_asm_type>)" >> $gmp_tmpconfigm4
26512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .size directive" >&5
26513 $as_echo_n "checking for assembler .size directive... " >&6; }
26514 if test "${gmp_cv_asm_size+set}" = set; then :
26515 $as_echo_n "(cached) " >&6
26518 cat >conftest.s <<EOF
26521 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
26522 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
26523 (eval $gmp_assemble) 2>&5
26525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26526 test $ac_status = 0; }; then
26527 cat conftest.out >&5
26528 if grep "\.size pseudo-op used outside of \.def/\.endef ignored" conftest.out >/dev/null; then : ;
26530 gmp_cv_asm_size=".size \$1,\$2"
26533 cat conftest.out >&5
26534 echo "configure: failed program was:" >&5
26542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_size" >&5
26543 $as_echo "$gmp_cv_asm_size" >&6; }
26544 echo "define(<SIZE>, <$gmp_cv_asm_size>)" >> $gmp_tmpconfigm4
26549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler local label prefix" >&5
26550 $as_echo_n "checking for assembler local label prefix... " >&6; }
26551 if test "${gmp_cv_asm_lsym_prefix+set}" = set; then :
26552 $as_echo_n "(cached) " >&6
26554 gmp_tmp_pre_appears=yes
26555 for gmp_tmp_pre in L .L $L $ L$; do
26556 echo "Trying $gmp_tmp_pre" >&5
26557 cat >conftest.s <<EOF
26559 dummy${gmp_cv_asm_label_suffix}
26560 ${gmp_tmp_pre}gurkmacka${gmp_cv_asm_label_suffix}
26562 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
26563 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
26564 (eval $gmp_assemble) 2>&5
26566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26567 test $ac_status = 0; }; then
26568 cat conftest.out >&5
26569 if $NM conftest.$OBJEXT >conftest.nm 2>&5; then : ; else
26570 cat conftest.nm >&5
26571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$NM\" failure" >&5
26572 $as_echo "$as_me: WARNING: \"$NM\" failure" >&2;}
26575 cat conftest.nm >&5
26576 if grep gurkmacka conftest.nm >/dev/null; then : ; else
26577 # no mention of the symbol, this is good
26578 echo "$gmp_tmp_pre label doesn't appear in object file at all (good)" >&5
26579 gmp_cv_asm_lsym_prefix="$gmp_tmp_pre"
26580 gmp_tmp_pre_appears=no
26583 if grep ' [a-zN] .*gurkmacka' conftest.nm >/dev/null; then
26584 # symbol mentioned as a local, use this if nothing better
26585 echo "$gmp_tmp_pre label is local but still in object file" >&5
26586 if test -z "$gmp_cv_asm_lsym_prefix"; then
26587 gmp_cv_asm_lsym_prefix="$gmp_tmp_pre"
26590 echo "$gmp_tmp_pre label is something unknown" >&5
26594 cat conftest.out >&5
26595 echo "configure: failed program was:" >&5
26603 if test -z "$gmp_cv_asm_lsym_prefix"; then
26604 gmp_cv_asm_lsym_prefix=L
26605 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine local label, using default $gmp_cv_asm_lsym_prefix" >&5
26606 $as_echo "$as_me: WARNING: cannot determine local label, using default $gmp_cv_asm_lsym_prefix" >&2;}
26608 # for development purposes, note whether we got a purely temporary local label
26609 echo "Local label appears in object files: $gmp_tmp_pre_appears" >&5
26612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_lsym_prefix" >&5
26613 $as_echo "$gmp_cv_asm_lsym_prefix" >&6; }
26614 echo "define(<LSYM_PREFIX>, <${gmp_cv_asm_lsym_prefix}>)" >> $gmp_tmpconfigm4
26616 cat >>confdefs.h <<_ACEOF
26617 #define LSYM_PREFIX "$gmp_cv_asm_lsym_prefix"
26623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler byte directive" >&5
26624 $as_echo_n "checking for assembler byte directive... " >&6; }
26625 if test "${gmp_cv_asm_byte+set}" = set; then :
26626 $as_echo_n "(cached) " >&6
26628 for i in .byte data1; do
26629 echo "trying $i" >&5
26630 cat >conftest.s <<EOF
26635 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
26636 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
26637 (eval $gmp_assemble) 2>&5
26639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26640 test $ac_status = 0; }; then
26641 cat conftest.out >&5
26646 cat conftest.out >&5
26647 echo "configure: failed program was:" >&5
26649 cat conftest.out >&5
26654 if test -z "$gmp_cv_asm_byte"; then
26655 as_fn_error "Cannot determine how to emit a data byte" "$LINENO" 5
26659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_byte" >&5
26660 $as_echo "$gmp_cv_asm_byte" >&6; }
26667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a 32-bit word" >&5
26668 $as_echo_n "checking how to define a 32-bit word... " >&6; }
26669 if test "${gmp_cv_asm_w32+set}" = set; then :
26670 $as_echo_n "(cached) " >&6
26674 # FIXME: HPUX puts first symbol at 0x40000000, breaking our assumption
26675 # that it's at 0x0. We'll have to declare another symbol before the
26676 # .long/.word and look at the distance between the two symbols. The
26677 # only problem is that the sed expression(s) barfs (on Solaris, for
26678 # example) for the symbol with value 0. For now, HPUX uses .word.
26679 gmp_cv_asm_w32=".word"
26683 for gmp_tmp_op in .long .word data4; do
26684 cat >conftest.s <<EOF
26686 $gmp_cv_asm_globl foo
26688 foo$gmp_cv_asm_label_suffix
26691 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
26692 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
26693 (eval $gmp_assemble) 2>&5
26695 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26696 test $ac_status = 0; }; then
26697 cat conftest.out >&5
26698 gmp_tmp_val=`$NM conftest.$OBJEXT | grep foo | \
26699 sed -e 's;[[][0-9][]]\(.*\);\1;' -e 's;[^1-9]*\([0-9]*\).*;\1;'`
26700 if test "$gmp_tmp_val" = 4; then
26701 gmp_cv_asm_w32="$gmp_tmp_op"
26705 cat conftest.out >&5
26706 echo "configure: failed program was:" >&5
26716 if test -z "$gmp_cv_asm_w32"; then
26717 as_fn_error "cannot determine how to define a 32-bit word" "$LINENO" 5
26721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_w32" >&5
26722 $as_echo "$gmp_cv_asm_w32" >&6; }
26723 echo "define(<W32>, <$gmp_cv_asm_w32>)" >> $gmp_tmpconfigm4
26730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if .align assembly directive is logarithmic" >&5
26731 $as_echo_n "checking if .align assembly directive is logarithmic... " >&6; }
26732 if test "${gmp_cv_asm_align_log+set}" = set; then :
26733 $as_echo_n "(cached) " >&6
26735 cat >conftest.s <<EOF
26738 $gmp_cv_asm_globl foo
26741 foo$gmp_cv_asm_label_suffix
26744 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
26745 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
26746 (eval $gmp_assemble) 2>&5
26748 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26749 test $ac_status = 0; }; then
26750 cat conftest.out >&5
26751 gmp_tmp_val=`$NM conftest.$OBJEXT | grep foo | \
26752 sed -e 's;[[][0-9][]]\(.*\);\1;' -e 's;[^1-9]*\([0-9]*\).*;\1;'`
26753 if test "$gmp_tmp_val" = "10" || test "$gmp_tmp_val" = "16"; then
26754 gmp_cv_asm_align_log=yes
26756 gmp_cv_asm_align_log=no
26759 cat conftest.out >&5
26760 echo "configure: failed program was:" >&5
26762 as_fn_error "cannot assemble alignment test" "$LINENO" 5
26767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_align_log" >&5
26768 $as_echo "$gmp_cv_asm_align_log" >&6; }
26771 echo "define(<ALIGN_LOGARITHMIC>,<$gmp_cv_asm_align_log>)" >> $gmp_tmpconfigm4
26777 # for both pa32 and pa64
26779 echo "include_mpn(\`pa32/pa-defs.m4')" >> $gmp_tmpconfigm4i
26782 ia64*-*-* | itanium-*-* | itanium2-*-*)
26783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler .align padding is good" >&5
26784 $as_echo_n "checking whether assembler .align padding is good... " >&6; }
26785 if test "${gmp_cv_asm_ia64_align_ok+set}" = set; then :
26786 $as_echo_n "(cached) " >&6
26788 cat >conftest.awk <<\EOF
26844 for (f = 2; f <= NF; f++)
26846 for (i = 0; i < 47; i++)
26851 for (i = 0; i < 48; i++)
26852 if (got[i] != want[i])
26868 cat >conftest.s <<EOF
26871 { .mmi; add r14 = r15, r16
26873 add r20 = r21, r22 ;; }
26875 { .mmi; add r23 = r24, r25
26877 add r29 = r30, r31 ;; }
26880 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
26881 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
26882 (eval $gmp_assemble) 2>&5
26884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26885 test $ac_status = 0; }; then
26886 cat conftest.out >&5
26887 gmp_cv_asm_ia64_align_ok=`od -b conftest.$OBJEXT | $AWK -f conftest.awk`
26889 cat conftest.out >&5
26890 echo "configure: failed program was:" >&5
26892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: oops, cannot compile test program" >&5
26893 $as_echo "$as_me: WARNING: oops, cannot compile test program" >&2;}
26894 gmp_cv_asm_ia64_align_ok=yes
26900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_ia64_align_ok" >&5
26901 $as_echo "$gmp_cv_asm_ia64_align_ok" >&6; }
26903 echo "define(<IA64_ALIGN_OK>, <\`$gmp_cv_asm_ia64_align_ok'>)" >> $gmp_tmpconfigm4
26907 m68k-*-* | m68[0-9][0-9][0-9]-*-*)
26909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler instruction and register style" >&5
26910 $as_echo_n "checking assembler instruction and register style... " >&6; }
26911 if test "${gmp_cv_asm_m68k_instruction+set}" = set; then :
26912 $as_echo_n "(cached) " >&6
26914 for i in "addl %d0,%d1" "add.l %d0,%d1" "addl d0,d1" "add.l d0,d1"; do
26915 cat >conftest.s <<EOF
26919 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
26920 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
26921 (eval $gmp_assemble) 2>&5
26923 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26924 test $ac_status = 0; }; then
26925 cat conftest.out >&5
26926 gmp_cv_asm_m68k_instruction=$i
26930 cat conftest.out >&5
26931 echo "configure: failed program was:" >&5
26938 if test -z "$gmp_cv_asm_m68k_instruction"; then
26939 as_fn_error "cannot determine assembler instruction and register style" "$LINENO" 5
26943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_m68k_instruction" >&5
26944 $as_echo "$gmp_cv_asm_m68k_instruction" >&6; }
26945 case $gmp_cv_asm_m68k_instruction in
26946 "addl d0,d1") want_dot_size=no; want_register_percent=no ;;
26947 "addl %d0,%d1") want_dot_size=no; want_register_percent=yes ;;
26948 "add.l d0,d1") want_dot_size=yes; want_register_percent=no ;;
26949 "add.l %d0,%d1") want_dot_size=yes; want_register_percent=yes ;;
26950 *) as_fn_error "oops, unrecognised instruction and register style" "$LINENO" 5 ;;
26953 echo "define(<WANT_REGISTER_PERCENT>, <\`$want_register_percent'>)" >> $gmp_tmpconfigm4
26956 echo "define(<WANT_DOT_SIZE>, <\`$want_dot_size'>)" >> $gmp_tmpconfigm4
26961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler addressing style" >&5
26962 $as_echo_n "checking assembler addressing style... " >&6; }
26963 if test "${gmp_cv_asm_m68k_addressing+set}" = set; then :
26964 $as_echo_n "(cached) " >&6
26966 case $gmp_cv_asm_m68k_instruction in
26967 addl*) movel=movel ;;
26968 add.l*) movel=move.l ;;
26969 *) as_fn_error "oops, unrecognised gmp_cv_asm_m68k_instruction" "$LINENO" 5 ;;
26971 case $gmp_cv_asm_m68k_instruction in
26972 *"%d0,%d1") dreg=%d0; areg=%a0 ;;
26973 *"d0,d1") dreg=d0; areg=a0 ;;
26974 *) as_fn_error "oops, unrecognised gmp_cv_asm_m68k_instruction" "$LINENO" 5 ;;
26976 cat >conftest.s <<EOF
26978 $movel $dreg, $areg@-
26980 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
26981 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
26982 (eval $gmp_assemble) 2>&5
26984 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
26985 test $ac_status = 0; }; then
26986 cat conftest.out >&5
26987 gmp_cv_asm_m68k_addressing=mit
26989 cat conftest.out >&5
26990 echo "configure: failed program was:" >&5
26992 cat >conftest.s <<EOF
26994 $movel $dreg, -($areg)
26996 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
26997 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
26998 (eval $gmp_assemble) 2>&5
27000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27001 test $ac_status = 0; }; then
27002 cat conftest.out >&5
27003 gmp_cv_asm_m68k_addressing=motorola
27005 cat conftest.out >&5
27006 echo "configure: failed program was:" >&5
27008 as_fn_error "cannot determine assembler addressing style" "$LINENO" 5
27017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_m68k_addressing" >&5
27018 $as_echo "$gmp_cv_asm_m68k_addressing" >&6; }
27020 echo "define(<WANT_ADDRESSING>, <\`$gmp_cv_asm_m68k_addressing'>)" >> $gmp_tmpconfigm4
27024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler shortest branches" >&5
27025 $as_echo_n "checking assembler shortest branches... " >&6; }
27026 if test "${gmp_cv_asm_m68k_branches+set}" = set; then :
27027 $as_echo_n "(cached) " >&6
27029 for i in jra jbra bra; do
27030 cat >conftest.s <<EOF
27032 foo$gmp_cv_asm_label_suffix
27035 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
27036 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
27037 (eval $gmp_assemble) 2>&5
27039 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27040 test $ac_status = 0; }; then
27041 cat conftest.out >&5
27042 gmp_cv_asm_m68k_branches=$i
27046 cat conftest.out >&5
27047 echo "configure: failed program was:" >&5
27054 if test -z "$gmp_cv_asm_m68k_branches"; then
27055 as_fn_error "cannot determine assembler branching style" "$LINENO" 5
27059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_m68k_branches" >&5
27060 $as_echo "$gmp_cv_asm_m68k_branches" >&6; }
27062 echo "define(<WANT_BRANCHES>, <\`$gmp_cv_asm_m68k_branches'>)" >> $gmp_tmpconfigm4
27066 powerpc*-*-* | power[3-9]-*-*)
27068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler output is PIC by default" >&5
27069 $as_echo_n "checking whether compiler output is PIC by default... " >&6; }
27070 if test "${gmp_cv_asm_powerpc_pic+set}" = set; then :
27071 $as_echo_n "(cached) " >&6
27073 gmp_cv_asm_powerpc_pic=yes
27074 cat >conftest.c <<EOF
27076 int *bar() { return &foo; }
27078 echo "Test program:" >&5
27080 gmp_compile="$CC $CFLAGS $CPPFLAGS -S conftest.c >&5"
27081 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
27082 (eval $gmp_compile) 2>&5
27084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27085 test $ac_status = 0; }; then
27086 echo "Compiler output:" >&5
27088 if grep 'foo@ha' conftest.s >/dev/null 2>&5; then
27089 gmp_cv_asm_powerpc_pic=no
27091 if grep 'ha16(_foo)' conftest.s >/dev/null 2>&5; then
27092 gmp_cv_asm_powerpc_pic=no
27098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_powerpc_pic" >&5
27099 $as_echo "$gmp_cv_asm_powerpc_pic" >&6; }
27101 echo "define(<PIC_ALWAYS>,<$gmp_cv_asm_powerpc_pic>)" >> $gmp_tmpconfigm4
27105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler needs r on registers" >&5
27106 $as_echo_n "checking if the assembler needs r on registers... " >&6; }
27107 if test "${gmp_cv_asm_powerpc_r_registers+set}" = set; then :
27108 $as_echo_n "(cached) " >&6
27110 cat >conftest.s <<EOF
27114 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
27115 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
27116 (eval $gmp_assemble) 2>&5
27118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27119 test $ac_status = 0; }; then
27120 cat conftest.out >&5
27121 gmp_cv_asm_powerpc_r_registers=no
27123 cat conftest.out >&5
27124 echo "configure: failed program was:" >&5
27126 cat >conftest.s <<EOF
27130 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
27131 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
27132 (eval $gmp_assemble) 2>&5
27134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27135 test $ac_status = 0; }; then
27136 cat conftest.out >&5
27137 gmp_cv_asm_powerpc_r_registers=yes
27139 cat conftest.out >&5
27140 echo "configure: failed program was:" >&5
27142 as_fn_error "neither \"mtctr 6\" nor \"mtctr r6\" works" "$LINENO" 5
27150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_powerpc_r_registers" >&5
27151 $as_echo "$gmp_cv_asm_powerpc_r_registers" >&6; }
27154 echo "define(<WANT_R_REGISTERS>,<$gmp_cv_asm_powerpc_r_registers>)" >> $gmp_tmpconfigm4
27158 echo "include_mpn(\`powerpc32/powerpc-defs.m4')" >> $gmp_tmpconfigm4i
27164 echo "include_mpn(\`powerpc64/aix.m4')" >> $gmp_tmpconfigm4i
27167 echo "include_mpn(\`powerpc32/aix.m4')" >> $gmp_tmpconfigm4i
27171 *-*-linux* | *-*-*bsd*)
27174 echo "include_mpn(\`powerpc64/elf.m4')" >> $gmp_tmpconfigm4i
27177 echo "include_mpn(\`powerpc32/elf.m4')" >> $gmp_tmpconfigm4i
27184 echo "include_mpn(\`powerpc64/darwin.m4')" >> $gmp_tmpconfigm4i
27187 echo "include_mpn(\`powerpc32/darwin.m4')" >> $gmp_tmpconfigm4i
27192 # Assume unrecognized operating system is the powerpc eABI
27194 echo "include_mpn(\`powerpc32/eabi.m4')" >> $gmp_tmpconfigm4i
27201 echo "include_mpn(\`powerpc32/aix.m4')" >> $gmp_tmpconfigm4i
27204 sparcv9*-*-* | ultrasparc*-*-* | sparc64-*-*)
27208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler accepts \".register\"" >&5
27209 $as_echo_n "checking if the assembler accepts \".register\"... " >&6; }
27210 if test "${gmp_cv_asm_sparc_register+set}" = set; then :
27211 $as_echo_n "(cached) " >&6
27213 cat >conftest.s <<EOF
27215 .register %g2,#scratch
27218 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
27219 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
27220 (eval $gmp_assemble) 2>&5
27222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27223 test $ac_status = 0; }; then
27224 cat conftest.out >&5
27225 gmp_cv_asm_sparc_register=yes
27227 cat conftest.out >&5
27228 echo "configure: failed program was:" >&5
27230 gmp_cv_asm_sparc_register=no
27235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_sparc_register" >&5
27236 $as_echo "$gmp_cv_asm_sparc_register" >&6; }
27239 echo "define(<HAVE_REGISTER>,<$gmp_cv_asm_sparc_register>)" >> $gmp_tmpconfigm4
27245 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-* | athlon64-*-* | pentium4-*-* | atom-*-* | core2-*-* | corei-*-* | x86_64-*-* | nano-*-*)
27247 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the .align directive accepts an 0x90 fill in .text" >&5
27248 $as_echo_n "checking if the .align directive accepts an 0x90 fill in .text... " >&6; }
27249 if test "${gmp_cv_asm_align_fill_0x90+set}" = set; then :
27250 $as_echo_n "(cached) " >&6
27252 cat >conftest.s <<EOF
27258 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
27259 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
27260 (eval $gmp_assemble) 2>&5
27262 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27263 test $ac_status = 0; }; then
27264 cat conftest.out >&5
27265 if grep "Warning: Fill parameter ignored for executable section" conftest.out >/dev/null; then
27266 echo "Supressing this warning by omitting 0x90" 1>&5
27267 gmp_cv_asm_align_fill_0x90=no
27269 gmp_cv_asm_align_fill_0x90=yes
27272 cat conftest.out >&5
27273 echo "configure: failed program was:" >&5
27275 gmp_cv_asm_align_fill_0x90=no
27280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_align_fill_0x90" >&5
27281 $as_echo "$gmp_cv_asm_align_fill_0x90" >&6; }
27284 echo "define(<ALIGN_FILL_0x90>,<$gmp_cv_asm_align_fill_0x90>)" >> $gmp_tmpconfigm4
27290 echo "include_mpn(\`x86/x86-defs.m4')" >> $gmp_tmpconfigm4i
27292 $as_echo "#define HAVE_HOST_CPU_FAMILY_x86 1" >>confdefs.h
27299 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler COFF type directives" >&5
27300 $as_echo_n "checking for assembler COFF type directives... " >&6; }
27301 if test "${gmp_cv_asm_x86_coff_type+set}" = set; then :
27302 $as_echo_n "(cached) " >&6
27304 cat >conftest.s <<EOF
27306 $gmp_cv_asm_globl ${tmp_gsym_prefix}foo$gmp_cv_asm_globl_attr
27307 .def ${tmp_gsym_prefix}foo
27311 ${tmp_gsym_prefix}foo$gmp_cv_asm_label_suffix
27314 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
27315 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
27316 (eval $gmp_assemble) 2>&5
27318 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27319 test $ac_status = 0; }; then
27320 cat conftest.out >&5
27321 gmp_cv_asm_x86_coff_type=yes
27323 cat conftest.out >&5
27324 echo "configure: failed program was:" >&5
27326 gmp_cv_asm_x86_coff_type=no
27332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_x86_coff_type" >&5
27333 $as_echo "$gmp_cv_asm_x86_coff_type" >&6; }
27334 echo "define(<HAVE_COFF_TYPE>, <$gmp_cv_asm_x86_coff_type>)" >> $gmp_tmpconfigm4
27343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if _GLOBAL_OFFSET_TABLE_ is prefixed by underscore" >&5
27344 $as_echo_n "checking if _GLOBAL_OFFSET_TABLE_ is prefixed by underscore... " >&6; }
27345 if test "${gmp_cv_asm_x86_got_underscore+set}" = set; then :
27346 $as_echo_n "(cached) " >&6
27348 gmp_cv_asm_x86_got_underscore="not applicable"
27349 if test $gmp_cv_asm_underscore = yes; then
27354 for tmp_underscore in "" "_"; do
27355 cat >conftest.s <<EOF
27357 $gmp_cv_asm_globl ${tmp_gsym_prefix}main$gmp_cv_asm_globl_attr
27358 ${tmp_gsym_prefix}main$gmp_cv_asm_label_suffix
27359 addl $ ${tmp_underscore}_GLOBAL_OFFSET_TABLE_, %ebx
27361 gmp_compile="$CCAS $CFLAGS $CPPFLAGS $lt_prog_compiler_pic conftest.s >&5 && $CC $CFLAGS $CPPFLAGS $lt_prog_compiler_pic conftest.$OBJEXT >&5"
27362 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5
27363 (eval $gmp_compile) 2>&5
27365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27366 test $ac_status = 0; }; then
27367 if test "$tmp_underscore" = "_"; then
27368 gmp_cv_asm_x86_got_underscore=yes
27370 gmp_cv_asm_x86_got_underscore=no
27375 rm -f conftest* a.out b.out a.exe a_out.exe
27378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_x86_got_underscore" >&5
27379 $as_echo "$gmp_cv_asm_x86_got_underscore" >&6; }
27380 if test "$gmp_cv_asm_x86_got_underscore" = "yes"; then
27382 echo 'define(<GOT_GSYM_PREFIX>, <_>)' >>$gmp_tmpconfigm4
27386 echo 'define(<GOT_GSYM_PREFIX>, <>)' >>$gmp_tmpconfigm4
27391 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler takes cl with shldl" >&5
27392 $as_echo_n "checking if the assembler takes cl with shldl... " >&6; }
27393 if test "${gmp_cv_asm_x86_shldl_cl+set}" = set; then :
27394 $as_echo_n "(cached) " >&6
27396 cat >conftest.s <<EOF
27398 shldl %cl, %eax, %ebx
27400 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
27401 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5
27402 (eval $gmp_assemble) 2>&5
27404 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27405 test $ac_status = 0; }; then
27406 cat conftest.out >&5
27407 gmp_cv_asm_x86_shldl_cl=yes
27409 cat conftest.out >&5
27410 echo "configure: failed program was:" >&5
27412 gmp_cv_asm_x86_shldl_cl=no
27418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_x86_shldl_cl" >&5
27419 $as_echo "$gmp_cv_asm_x86_shldl_cl" >&6; }
27420 if test "$gmp_cv_asm_x86_shldl_cl" = "yes"; then
27422 echo 'define(<WANT_SHLDL_CL>, <1>)' >>$gmp_tmpconfigm4
27426 echo 'define(<WANT_SHLDL_CL>, <0>)' >>$gmp_tmpconfigm4
27430 case $enable_profiling in
27431 prof | gprof) # Check whether --enable-shared was given.
27432 if test "${enable_shared+set}" = set; then :
27433 enableval=$enable_shared; p=${PACKAGE-default}
27435 yes) enable_shared=yes ;;
27436 no) enable_shared=no ;;
27439 # Look at the argument we got. We use all the common list separators.
27440 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
27441 for pkg in $enableval; do
27443 if test "X$pkg" = "X$p"; then
27461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to call x86 mcount" >&5
27462 $as_echo_n "checking how to call x86 mcount... " >&6; }
27463 cat >conftest.c <<EOF
27467 if test "$enable_static" = yes; then
27468 gmp_asmout_compile="$CC $CFLAGS $CPPFLAGS -S conftest.c 1>&5"
27469 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_asmout_compile\""; } >&5
27470 (eval $gmp_asmout_compile) 2>&5
27472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27473 test $ac_status = 0; }; then
27474 if grep '\.data' conftest.s >/dev/null; then
27475 mcount_nonpic_reg=`sed -n '/esp/!s/.*movl.*,\(%[a-z]*\).*$/\1/p' conftest.s`
27479 mcount_nonpic_call=`grep 'call.*mcount' conftest.s`
27480 if test -z "$mcount_nonpic_call"; then
27481 as_fn_error "Cannot find mcount call for non-PIC" "$LINENO" 5
27484 as_fn_error "Cannot compile test program for non-PIC" "$LINENO" 5
27488 if test "$enable_shared" = yes; then
27489 gmp_asmout_compile="$CC $CFLAGS $CPPFLAGS $lt_prog_compiler_pic -S conftest.c 1>&5"
27490 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_asmout_compile\""; } >&5
27491 (eval $gmp_asmout_compile) 2>&5
27493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27494 test $ac_status = 0; }; then
27495 if grep '\.data' conftest.s >/dev/null; then
27496 case $lt_prog_compiler_pic in
27498 # Windows DLLs have non-PIC style mcount
27499 mcount_pic_reg=`sed -n '/esp/!s/.*movl.*,\(%[a-z]*\).*$/\1/p' conftest.s`
27502 mcount_pic_reg=`sed -n 's/.*GOTOFF.*,\(%[a-z]*\).*$/\1/p' conftest.s`
27508 mcount_pic_call=`grep 'call.*mcount' conftest.s`
27509 if test -z "$mcount_pic_call"; then
27510 as_fn_error "Cannot find mcount call for PIC" "$LINENO" 5
27513 as_fn_error "Cannot compile test program for PIC" "$LINENO" 5
27518 echo "define(<MCOUNT_NONPIC_REG>, <\`$mcount_nonpic_reg'>)" >> $gmp_tmpconfigm4
27521 echo "define(<MCOUNT_NONPIC_CALL>,<\`$mcount_nonpic_call'>)" >> $gmp_tmpconfigm4
27524 echo "define(<MCOUNT_PIC_REG>, <\`$mcount_pic_reg'>)" >> $gmp_tmpconfigm4
27527 echo "define(<MCOUNT_PIC_CALL>, <\`$mcount_pic_call'>)" >> $gmp_tmpconfigm4
27531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: determined" >&5
27532 $as_echo "determined" >&6; }
27538 echo "include_mpn(\`x86/darwin.m4')" >> $gmp_tmpconfigm4i
27544 echo "include_mpn(\`x86_64/x86_64-defs.m4')" >> $gmp_tmpconfigm4i
27546 $as_echo "#define HAVE_HOST_CPU_FAMILY_x86_64 1" >>confdefs.h
27551 echo "include_mpn(\`x86_64/darwin.m4')" >> $gmp_tmpconfigm4i
27560 # For --enable-minithres, prepend "minithres" to path so that its special
27561 # gmp-mparam.h will be used.
27562 if test $enable_minithres = yes; then
27563 path="minithres $path"
27566 # Create link for gmp-mparam.h.
27568 for gmp_mparam_dir in $path; do
27569 test "$no_create" = yes || rm -f gmp-mparam.h
27570 tmp_file=$srcdir/mpn/$gmp_mparam_dir/gmp-mparam.h
27571 if test -f $tmp_file; then
27572 ac_config_links="$ac_config_links gmp-mparam.h:mpn/$gmp_mparam_dir/gmp-mparam.h"
27574 gmp_srclinks="$gmp_srclinks gmp-mparam.h"
27575 gmp_mparam_source=$tmp_file
27579 if test -z "$gmp_mparam_source"; then
27580 as_fn_error "no version of gmp-mparam.h found in path: $path" "$LINENO" 5
27583 # For a helpful message from tune/tuneup.c
27584 gmp_mparam_suggest=$gmp_mparam_source
27585 if test "$gmp_mparam_dir" = generic; then
27586 for i in $path; do break; done
27587 if test "$i" != generic; then
27588 gmp_mparam_suggest="new file $srcdir/mpn/$i/gmp-mparam.h"
27592 cat >>confdefs.h <<_ACEOF
27593 #define GMP_MPARAM_H_SUGGEST "$gmp_mparam_source"
27598 # Copy any SQR_TOOM2_THRESHOLD from gmp-mparam.h to config.m4.
27599 # Some versions of sqr_basecase.asm use this.
27600 # Fat binaries do this on a per-file basis, so skip in that case.
27602 if test -z "$fat_path"; then
27603 tmp_gmp_karatsuba_sqr_threshold=`sed -n 's/^#define SQR_TOOM2_THRESHOLD[ ]*\([0-9][0-9]*\).*$/\1/p' $gmp_mparam_source`
27604 if test -n "$tmp_gmp_karatsuba_sqr_threshold"; then
27606 echo "define(<SQR_TOOM2_THRESHOLD>,<$tmp_gmp_karatsuba_sqr_threshold>)" >> $gmp_tmpconfigm4
27612 # Sizes of some types, needed at preprocessing time.
27614 # FIXME: The assumption that GMP_LIMB_BITS is 8*sizeof(mp_limb_t) might
27615 # be slightly rash, but it's true everywhere we know of and ought to be true
27616 # of any sensible system. In a generic C build, grepping LONG_BIT out of
27617 # <limits.h> might be an alternative, for maximum portability.
27619 # The cast to long int works around a bug in the HP C Compiler
27620 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27621 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27622 # This bug is HP SR number 8606223364.
27623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5
27624 $as_echo_n "checking size of void *... " >&6; }
27625 if test "${ac_cv_sizeof_void_p+set}" = set; then :
27626 $as_echo_n "(cached) " >&6
27628 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then :
27631 if test "$ac_cv_type_void_p" = yes; then
27632 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27633 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27634 { as_fn_set_status 77
27635 as_fn_error "cannot compute sizeof (void *)
27636 See \`config.log' for more details." "$LINENO" 5; }; }
27638 ac_cv_sizeof_void_p=0
27643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5
27644 $as_echo "$ac_cv_sizeof_void_p" >&6; }
27648 cat >>confdefs.h <<_ACEOF
27649 #define SIZEOF_VOID_P $ac_cv_sizeof_void_p
27653 # The cast to long int works around a bug in the HP C Compiler
27654 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27655 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27656 # This bug is HP SR number 8606223364.
27657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5
27658 $as_echo_n "checking size of unsigned short... " >&6; }
27659 if test "${ac_cv_sizeof_unsigned_short+set}" = set; then :
27660 $as_echo_n "(cached) " >&6
27662 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then :
27665 if test "$ac_cv_type_unsigned_short" = yes; then
27666 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27667 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27668 { as_fn_set_status 77
27669 as_fn_error "cannot compute sizeof (unsigned short)
27670 See \`config.log' for more details." "$LINENO" 5; }; }
27672 ac_cv_sizeof_unsigned_short=0
27677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5
27678 $as_echo "$ac_cv_sizeof_unsigned_short" >&6; }
27682 cat >>confdefs.h <<_ACEOF
27683 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
27687 # The cast to long int works around a bug in the HP C Compiler
27688 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27689 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27690 # This bug is HP SR number 8606223364.
27691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned" >&5
27692 $as_echo_n "checking size of unsigned... " >&6; }
27693 if test "${ac_cv_sizeof_unsigned+set}" = set; then :
27694 $as_echo_n "(cached) " >&6
27696 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned))" "ac_cv_sizeof_unsigned" "$ac_includes_default"; then :
27699 if test "$ac_cv_type_unsigned" = yes; then
27700 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27701 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27702 { as_fn_set_status 77
27703 as_fn_error "cannot compute sizeof (unsigned)
27704 See \`config.log' for more details." "$LINENO" 5; }; }
27706 ac_cv_sizeof_unsigned=0
27711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned" >&5
27712 $as_echo "$ac_cv_sizeof_unsigned" >&6; }
27716 cat >>confdefs.h <<_ACEOF
27717 #define SIZEOF_UNSIGNED $ac_cv_sizeof_unsigned
27721 # The cast to long int works around a bug in the HP C Compiler
27722 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27723 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27724 # This bug is HP SR number 8606223364.
27725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5
27726 $as_echo_n "checking size of unsigned long... " >&6; }
27727 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then :
27728 $as_echo_n "(cached) " >&6
27730 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then :
27733 if test "$ac_cv_type_unsigned_long" = yes; then
27734 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27735 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27736 { as_fn_set_status 77
27737 as_fn_error "cannot compute sizeof (unsigned long)
27738 See \`config.log' for more details." "$LINENO" 5; }; }
27740 ac_cv_sizeof_unsigned_long=0
27745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5
27746 $as_echo "$ac_cv_sizeof_unsigned_long" >&6; }
27750 cat >>confdefs.h <<_ACEOF
27751 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
27755 # The cast to long int works around a bug in the HP C Compiler
27756 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
27757 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
27758 # This bug is HP SR number 8606223364.
27759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of mp_limb_t" >&5
27760 $as_echo_n "checking size of mp_limb_t... " >&6; }
27761 if test "${ac_cv_sizeof_mp_limb_t+set}" = set; then :
27762 $as_echo_n "(cached) " >&6
27764 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (mp_limb_t))" "ac_cv_sizeof_mp_limb_t" "#define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
27765 #define GMP_NAIL_BITS $GMP_NAIL_BITS
27766 #define GMP_LIMB_BITS 123
27767 $DEFN_LONG_LONG_LIMB
27768 #include \"$srcdir/gmp-h.in\"
27773 if test "$ac_cv_type_mp_limb_t" = yes; then
27774 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
27775 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
27776 { as_fn_set_status 77
27777 as_fn_error "cannot compute sizeof (mp_limb_t)
27778 See \`config.log' for more details." "$LINENO" 5; }; }
27780 ac_cv_sizeof_mp_limb_t=0
27785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_mp_limb_t" >&5
27786 $as_echo "$ac_cv_sizeof_mp_limb_t" >&6; }
27790 cat >>confdefs.h <<_ACEOF
27791 #define SIZEOF_MP_LIMB_T $ac_cv_sizeof_mp_limb_t
27795 if test "$ac_cv_sizeof_mp_limb_t" = 0; then
27796 as_fn_error "Oops, mp_limb_t doesn't seem to work" "$LINENO" 5
27798 GMP_LIMB_BITS=`expr 8 \* $ac_cv_sizeof_mp_limb_t`
27801 echo "define(<SIZEOF_UNSIGNED>,<$ac_cv_sizeof_unsigned>)" >> $gmp_tmpconfigm4
27804 # Check compiler limb size matches gmp-mparam.h
27806 # FIXME: Some of the cycle counter objects in the tune directory depend on
27807 # the size of ulong, it'd be possible to check that here, though a mismatch
27808 # probably wouldn't want to be fatal, none of the libgmp assembler code
27809 # depends on ulong.
27811 mparam_bits=`sed -n 's/^#define GMP_LIMB_BITS[ ][ ]*\([0-9]*\).*$/\1/p' $gmp_mparam_source`
27812 if test -n "$mparam_bits" && test "$mparam_bits" -ne $GMP_LIMB_BITS; then
27813 if test "$test_CFLAGS" = set; then
27814 as_fn_error "Oops, mp_limb_t is $GMP_LIMB_BITS bits, but the assembler code
27815 in this configuration expects $mparam_bits bits.
27816 You appear to have set \$CFLAGS, perhaps you also need to tell GMP the
27817 intended ABI, see \"ABI and ISA\" in the manual." "$LINENO" 5
27819 as_fn_error "Oops, mp_limb_t is $GMP_LIMB_BITS bits, but the assembler code
27820 in this configuration expects $mparam_bits bits." "$LINENO" 5
27825 echo "define(<GMP_LIMB_BITS>,$GMP_LIMB_BITS)" >> $gmp_tmpconfigm4
27828 echo "define(<GMP_NAIL_BITS>,$GMP_NAIL_BITS)" >> $gmp_tmpconfigm4
27831 echo "define(<GMP_NUMB_BITS>,eval(GMP_LIMB_BITS-GMP_NAIL_BITS))" >> $gmp_tmpconfigm4
27835 # Exclude the mpn random functions from mpbsd since that would drag in the
27836 # top-level rand things, all of which are unnecessary for libmp. There's
27837 # other unnecessary objects too actually, if we could be bothered figuring
27838 # out exactly which they are.
27841 for i in $mpn_objs_in_libgmp; do
27844 *) mpn_objs_in_libmp="$mpn_objs_in_libmp $i" ;;
27854 # A recompiled sqr_basecase for use in the tune program, if necessary.
27856 test -d tune || mkdir tune
27857 case $sqr_basecase_source in
27859 sqr_max=`sed -n 's/^def...(SQR_TOOM2_THRESHOLD_MAX, *\([0-9]*\))/\1/p' $sqr_basecase_source`
27860 if test -n "$sqr_max"; then
27861 TUNE_SQR_OBJ=sqr_asm.o
27863 cat >>confdefs.h <<_ACEOF
27864 #define TUNE_SQR_TOOM2_MAX $sqr_max
27868 cat >tune/sqr_basecase.c <<EOF
27869 /* not sure that an empty file can compile, so put in a dummy */
27870 int sqr_basecase_dummy;
27875 $as_echo "#define TUNE_SQR_TOOM2_MAX SQR_TOOM2_MAX_GENERIC" >>confdefs.h
27877 cat >tune/sqr_basecase.c <<EOF
27878 #define TUNE_PROGRAM_BUILD 1
27879 #define TUNE_PROGRAM_BUILD_SQR 1
27880 #include "mpn/sqr_basecase.c"
27887 # Configs for demos/pexpr.c.
27889 ac_config_files="$ac_config_files demos/pexpr-config.h:demos/pexpr-config-h.in"
27891 case $ac_cv_func_clock in
27892 yes) HAVE_CLOCK_01=1
27894 no) HAVE_CLOCK_01=0 ;;
27897 case $ac_cv_func_cputime in
27898 yes) HAVE_CPUTIME_01=1
27900 no) HAVE_CPUTIME_01=0 ;;
27903 case $ac_cv_func_getrusage in
27904 yes) HAVE_GETRUSAGE_01=1
27906 no) HAVE_GETRUSAGE_01=0 ;;
27909 case $ac_cv_func_gettimeofday in
27910 yes) HAVE_GETTIMEOFDAY_01=1
27912 no) HAVE_GETTIMEOFDAY_01=0 ;;
27915 case $ac_cv_func_sigaction in
27916 yes) HAVE_SIGACTION_01=1
27918 no) HAVE_SIGACTION_01=0 ;;
27921 case $ac_cv_func_sigaltstack in
27922 yes) HAVE_SIGALTSTACK_01=1
27924 no) HAVE_SIGALTSTACK_01=0 ;;
27927 case $ac_cv_func_sigstack in
27928 yes) HAVE_SIGSTACK_01=1
27930 no) HAVE_SIGSTACK_01=0 ;;
27934 case $ac_cv_header_sys_resource_h in
27935 yes) HAVE_SYS_RESOURCE_H_01=1
27937 no) HAVE_SYS_RESOURCE_H_01=0 ;;
27941 ac_fn_c_check_type "$LINENO" "stack_t" "ac_cv_type_stack_t" "#include <signal.h>
27943 if test "x$ac_cv_type_stack_t" = x""yes; then :
27945 cat >>confdefs.h <<_ACEOF
27946 #define HAVE_STACK_T 1
27956 # Configs for demos/calc directory
27958 # AC_SUBST+AC_CONFIG_FILES is used for calc-config.h, rather than AC_DEFINE+
27959 # AC_CONFIG_HEADERS, since with the latter automake (1.8) will then put the
27960 # directory (ie. demos/calc) into $(DEFAULT_INCLUDES) for every Makefile.in,
27961 # which would look very strange.
27963 # -lcurses is required by libreadline. On a typical SVR4 style system this
27964 # normally doesn't have to be given explicitly, since libreadline.so will
27965 # have a NEEDED record for it. But if someone for some reason is using only
27966 # a static libreadline.a then we must give -lcurses. Readline (as of
27967 # version 4.3) doesn't use libtool, so we can't rely on a .la to cover
27968 # necessary dependencies.
27970 # On a couple of systems we've seen libreadline available, but the headers
27971 # not in the default include path, so check for readline/readline.h. We've
27972 # also seen readline/history.h missing, not sure if that's just a broken
27973 # install or a very old version, but check that too.
27975 ac_config_files="$ac_config_files demos/calc/calc-config.h:demos/calc/calc-config-h.in"
27978 if test $with_readline != no; then
27979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tputs in -lncurses" >&5
27980 $as_echo_n "checking for tputs in -lncurses... " >&6; }
27981 if test "${ac_cv_lib_ncurses_tputs+set}" = set; then :
27982 $as_echo_n "(cached) " >&6
27984 ac_check_lib_save_LIBS=$LIBS
27985 LIBS="-lncurses $LIBS"
27986 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27987 /* end confdefs.h. */
27989 /* Override any GCC internal prototype to avoid an error.
27990 Use char because int might match the return type of a GCC
27991 builtin and then its argument prototype would still apply. */
28004 if ac_fn_c_try_link "$LINENO"; then :
28005 ac_cv_lib_ncurses_tputs=yes
28007 ac_cv_lib_ncurses_tputs=no
28009 rm -f core conftest.err conftest.$ac_objext \
28010 conftest$ac_exeext conftest.$ac_ext
28011 LIBS=$ac_check_lib_save_LIBS
28013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tputs" >&5
28014 $as_echo "$ac_cv_lib_ncurses_tputs" >&6; }
28015 if test "x$ac_cv_lib_ncurses_tputs" = x""yes; then :
28016 LIBCURSES=-lncurses
28018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tputs in -lcurses" >&5
28019 $as_echo_n "checking for tputs in -lcurses... " >&6; }
28020 if test "${ac_cv_lib_curses_tputs+set}" = set; then :
28021 $as_echo_n "(cached) " >&6
28023 ac_check_lib_save_LIBS=$LIBS
28024 LIBS="-lcurses $LIBS"
28025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28026 /* end confdefs.h. */
28028 /* Override any GCC internal prototype to avoid an error.
28029 Use char because int might match the return type of a GCC
28030 builtin and then its argument prototype would still apply. */
28043 if ac_fn_c_try_link "$LINENO"; then :
28044 ac_cv_lib_curses_tputs=yes
28046 ac_cv_lib_curses_tputs=no
28048 rm -f core conftest.err conftest.$ac_objext \
28049 conftest$ac_exeext conftest.$ac_ext
28050 LIBS=$ac_check_lib_save_LIBS
28052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tputs" >&5
28053 $as_echo "$ac_cv_lib_curses_tputs" >&6; }
28054 if test "x$ac_cv_lib_curses_tputs" = x""yes; then :
28062 use_readline=$with_readline
28063 if test $with_readline = detect; then
28065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
28066 $as_echo_n "checking for readline in -lreadline... " >&6; }
28067 if test "${ac_cv_lib_readline_readline+set}" = set; then :
28068 $as_echo_n "(cached) " >&6
28070 ac_check_lib_save_LIBS=$LIBS
28071 LIBS="-lreadline $LIBCURSES $LIBS"
28072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28073 /* end confdefs.h. */
28075 /* Override any GCC internal prototype to avoid an error.
28076 Use char because int might match the return type of a GCC
28077 builtin and then its argument prototype would still apply. */
28085 return readline ();
28090 if ac_fn_c_try_link "$LINENO"; then :
28091 ac_cv_lib_readline_readline=yes
28093 ac_cv_lib_readline_readline=no
28095 rm -f core conftest.err conftest.$ac_objext \
28096 conftest$ac_exeext conftest.$ac_ext
28097 LIBS=$ac_check_lib_save_LIBS
28099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
28100 $as_echo "$ac_cv_lib_readline_readline" >&6; }
28101 if test "x$ac_cv_lib_readline_readline" = x""yes; then :
28102 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default"
28103 if test "x$ac_cv_header_readline_readline_h" = x""yes; then :
28104 ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default"
28105 if test "x$ac_cv_header_readline_history_h" = x""yes; then :
28115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking readline detected" >&5
28116 $as_echo_n "checking readline detected... " >&6; }
28117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_readline" >&5
28118 $as_echo "$use_readline" >&6; }
28120 if test $use_readline = yes; then
28123 LIBREADLINE=-lreadline
28128 for ac_prog in 'bison -y' byacc
28130 # Extract the first word of "$ac_prog", so it can be a program name with args.
28131 set dummy $ac_prog; ac_word=$2
28132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28133 $as_echo_n "checking for $ac_word... " >&6; }
28134 if test "${ac_cv_prog_YACC+set}" = set; then :
28135 $as_echo_n "(cached) " >&6
28137 if test -n "$YACC"; then
28138 ac_cv_prog_YACC="$YACC" # Let the user override the test.
28140 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28141 for as_dir in $PATH
28144 test -z "$as_dir" && as_dir=.
28145 for ac_exec_ext in '' $ac_executable_extensions; do
28146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28147 ac_cv_prog_YACC="$ac_prog"
28148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28157 YACC=$ac_cv_prog_YACC
28158 if test -n "$YACC"; then
28159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
28160 $as_echo "$YACC" >&6; }
28162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28163 $as_echo "no" >&6; }
28167 test -n "$YACC" && break
28169 test -n "$YACC" || YACC="yacc"
28171 for ac_prog in flex lex
28173 # Extract the first word of "$ac_prog", so it can be a program name with args.
28174 set dummy $ac_prog; ac_word=$2
28175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28176 $as_echo_n "checking for $ac_word... " >&6; }
28177 if test "${ac_cv_prog_LEX+set}" = set; then :
28178 $as_echo_n "(cached) " >&6
28180 if test -n "$LEX"; then
28181 ac_cv_prog_LEX="$LEX" # Let the user override the test.
28183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28184 for as_dir in $PATH
28187 test -z "$as_dir" && as_dir=.
28188 for ac_exec_ext in '' $ac_executable_extensions; do
28189 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28190 ac_cv_prog_LEX="$ac_prog"
28191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28200 LEX=$ac_cv_prog_LEX
28201 if test -n "$LEX"; then
28202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
28203 $as_echo "$LEX" >&6; }
28205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28206 $as_echo "no" >&6; }
28210 test -n "$LEX" && break
28212 test -n "$LEX" || LEX=":"
28214 if test "x$LEX" != "x:"; then
28215 cat >conftest.l <<_ACEOF
28221 e { yyless (input () != 0); }
28222 f { unput (yytext[0]); }
28223 . { BEGIN INITIAL; }
28225 #ifdef YYTEXT_POINTER
28226 extern char *yytext;
28231 return ! yylex () + ! yywrap ();
28234 { { ac_try="$LEX conftest.l"
28235 case "(($ac_try" in
28236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
28237 *) ac_try_echo=$ac_try;;
28239 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
28240 $as_echo "$ac_try_echo"; } >&5
28241 (eval "$LEX conftest.l") 2>&5
28243 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
28244 test $ac_status = 0; }
28245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
28246 $as_echo_n "checking lex output file root... " >&6; }
28247 if test "${ac_cv_prog_lex_root+set}" = set; then :
28248 $as_echo_n "(cached) " >&6
28251 if test -f lex.yy.c; then
28252 ac_cv_prog_lex_root=lex.yy
28253 elif test -f lexyy.c; then
28254 ac_cv_prog_lex_root=lexyy
28256 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5
28259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
28260 $as_echo "$ac_cv_prog_lex_root" >&6; }
28261 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
28263 if test -z "${LEXLIB+set}"; then
28264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
28265 $as_echo_n "checking lex library... " >&6; }
28266 if test "${ac_cv_lib_lex+set}" = set; then :
28267 $as_echo_n "(cached) " >&6
28271 ac_cv_lib_lex='none needed'
28272 for ac_lib in '' -lfl -ll; do
28273 LIBS="$ac_lib $ac_save_LIBS"
28274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28275 /* end confdefs.h. */
28276 `cat $LEX_OUTPUT_ROOT.c`
28278 if ac_fn_c_try_link "$LINENO"; then :
28279 ac_cv_lib_lex=$ac_lib
28281 rm -f core conftest.err conftest.$ac_objext \
28282 conftest$ac_exeext conftest.$ac_ext
28283 test "$ac_cv_lib_lex" != 'none needed' && break
28288 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
28289 $as_echo "$ac_cv_lib_lex" >&6; }
28290 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
28294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
28295 $as_echo_n "checking whether yytext is a pointer... " >&6; }
28296 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then :
28297 $as_echo_n "(cached) " >&6
28299 # POSIX says lex can declare yytext either as a pointer or an array; the
28300 # default is implementation-dependent. Figure out which it is, since
28301 # not all implementations provide the %pointer and %array declarations.
28302 ac_cv_prog_lex_yytext_pointer=no
28304 LIBS="$LEXLIB $ac_save_LIBS"
28305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
28306 /* end confdefs.h. */
28307 #define YYTEXT_POINTER 1
28308 `cat $LEX_OUTPUT_ROOT.c`
28310 if ac_fn_c_try_link "$LINENO"; then :
28311 ac_cv_prog_lex_yytext_pointer=yes
28313 rm -f core conftest.err conftest.$ac_objext \
28314 conftest$ac_exeext conftest.$ac_ext
28318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
28319 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
28320 if test $ac_cv_prog_lex_yytext_pointer = yes; then
28322 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
28325 rm -f conftest.l $LEX_OUTPUT_ROOT.c
28328 if test "$LEX" = :; then
28329 LEX=${am_missing_run}flex
28332 # Configs for demos/expr directory
28334 # Libtool already runs an AC_CHECK_TOOL for ranlib, but we give
28335 # AC_PROG_RANLIB anyway since automake is supposed to complain if it's not
28336 # called. (Automake 1.8.4 doesn't, at least not when the only library is in
28337 # an EXTRA_LIBRARIES.)
28339 if test -n "$ac_tool_prefix"; then
28340 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
28341 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
28342 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28343 $as_echo_n "checking for $ac_word... " >&6; }
28344 if test "${ac_cv_prog_RANLIB+set}" = set; then :
28345 $as_echo_n "(cached) " >&6
28347 if test -n "$RANLIB"; then
28348 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
28350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28351 for as_dir in $PATH
28354 test -z "$as_dir" && as_dir=.
28355 for ac_exec_ext in '' $ac_executable_extensions; do
28356 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28357 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
28358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28367 RANLIB=$ac_cv_prog_RANLIB
28368 if test -n "$RANLIB"; then
28369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
28370 $as_echo "$RANLIB" >&6; }
28372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28373 $as_echo "no" >&6; }
28378 if test -z "$ac_cv_prog_RANLIB"; then
28379 ac_ct_RANLIB=$RANLIB
28380 # Extract the first word of "ranlib", so it can be a program name with args.
28381 set dummy ranlib; ac_word=$2
28382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
28383 $as_echo_n "checking for $ac_word... " >&6; }
28384 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
28385 $as_echo_n "(cached) " >&6
28387 if test -n "$ac_ct_RANLIB"; then
28388 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
28390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28391 for as_dir in $PATH
28394 test -z "$as_dir" && as_dir=.
28395 for ac_exec_ext in '' $ac_executable_extensions; do
28396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
28397 ac_cv_prog_ac_ct_RANLIB="ranlib"
28398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
28407 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
28408 if test -n "$ac_ct_RANLIB"; then
28409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
28410 $as_echo "$ac_ct_RANLIB" >&6; }
28412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
28413 $as_echo "no" >&6; }
28416 if test "x$ac_ct_RANLIB" = x; then
28419 case $cross_compiling:$ac_tool_warned in
28421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
28422 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
28423 ac_tool_warned=yes ;;
28425 RANLIB=$ac_ct_RANLIB
28428 RANLIB="$ac_cv_prog_RANLIB"
28433 # Create config.m4.
28435 echo "creating $gmp_configm4"
28436 echo "d""nl $gmp_configm4. Generated automatically by configure." > $gmp_configm4
28437 if test -f $gmp_tmpconfigm4; then
28438 echo "changequote(<,>)" >> $gmp_configm4
28439 echo "ifdef(<__CONFIG_M4_INCLUDED__>,,<" >> $gmp_configm4
28440 cat $gmp_tmpconfigm4 >> $gmp_configm4
28441 echo ">)" >> $gmp_configm4
28442 echo "changequote(\`,')" >> $gmp_configm4
28443 rm $gmp_tmpconfigm4
28445 echo "ifdef(\`__CONFIG_M4_INCLUDED__',,\`" >> $gmp_configm4
28446 if test -f $gmp_tmpconfigm4i; then
28447 cat $gmp_tmpconfigm4i >> $gmp_configm4
28448 rm $gmp_tmpconfigm4i
28450 if test -f $gmp_tmpconfigm4p; then
28451 cat $gmp_tmpconfigm4p >> $gmp_configm4
28452 rm $gmp_tmpconfigm4p
28454 echo "')" >> $gmp_configm4
28455 echo "define(\`__CONFIG_M4_INCLUDED__')" >> $gmp_configm4
28459 # FIXME: Upcoming version of autoconf/automake may not like broken lines.
28460 # Right now automake isn't accepting the new AC_CONFIG_FILES scheme.
28462 ac_config_files="$ac_config_files Makefile mpbsd/Makefile mpf/Makefile mpn/Makefile mpq/Makefile mpz/Makefile printf/Makefile scanf/Makefile cxx/Makefile tests/Makefile tests/devel/Makefile tests/mpbsd/Makefile tests/mpf/Makefile tests/mpn/Makefile tests/mpq/Makefile tests/mpz/Makefile tests/rand/Makefile tests/misc/Makefile tests/cxx/Makefile doc/Makefile tune/Makefile demos/Makefile demos/calc/Makefile demos/expr/Makefile gmp.h:gmp-h.in mp.h:mp-h.in"
28464 cat >confcache <<\_ACEOF
28465 # This file is a shell script that caches the results of configure
28466 # tests run on this system so they can be shared between configure
28467 # scripts and configure runs, see configure's option --config-cache.
28468 # It is not useful on other systems. If it contains results you don't
28469 # want to keep, you may remove or edit it.
28471 # config.status only pays attention to the cache file if you give it
28472 # the --recheck option to rerun configure.
28474 # `ac_cv_env_foo' variables (set or unset) will be overridden when
28475 # loading this file, other *unset* `ac_cv_foo' will be assigned the
28476 # following values.
28480 # The following way of writing the cache mishandles newlines in values,
28481 # but we know of no workaround that is simple, portable, and efficient.
28482 # So, we kill variables containing newlines.
28483 # Ultrix sh set writes to stderr and can't be redirected directly,
28484 # and sets the high bit in the cache file unless we assign to the vars.
28486 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
28487 eval ac_val=\$$ac_var
28491 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
28492 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
28495 _ | IFS | as_nl) ;; #(
28496 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
28497 *) { eval $ac_var=; unset $ac_var;} ;;
28503 case $as_nl`(ac_space=' '; set) 2>&1` in #(
28504 *${as_nl}ac_space=\ *)
28505 # `set' does not quote correctly, so add quotes: double-quote
28506 # substitution turns \\\\ into \\, and sed turns \\ into \.
28509 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
28512 # `set' quotes correctly as required by POSIX, so do not add quotes.
28513 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
28522 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
28524 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
28526 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
28527 if test -w "$cache_file"; then
28528 test "x$cache_file" != "x/dev/null" &&
28529 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
28530 $as_echo "$as_me: updating cache $cache_file" >&6;}
28531 cat confcache >$cache_file
28533 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
28534 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
28539 test "x$prefix" = xNONE && prefix=$ac_default_prefix
28540 # Let make expand exec_prefix.
28541 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
28543 DEFS=-DHAVE_CONFIG_H
28547 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
28548 # 1. Remove the extension, and $U if already installed.
28549 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
28550 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
28551 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
28552 # will be set to the directory where LIBOBJS objects are built.
28553 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
28554 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
28556 LIBOBJS=$ac_libobjs
28558 LTLIBOBJS=$ac_ltlibobjs
28561 if test -n "$EXEEXT"; then
28563 am__EXEEXT_FALSE='#'
28565 am__EXEEXT_TRUE='#'
28569 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
28570 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined.
28571 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28573 if test -z "${WANT_MPBSD_TRUE}" && test -z "${WANT_MPBSD_FALSE}"; then
28574 as_fn_error "conditional \"WANT_MPBSD\" was never defined.
28575 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28577 if test -z "${WANT_CXX_TRUE}" && test -z "${WANT_CXX_FALSE}"; then
28578 as_fn_error "conditional \"WANT_CXX\" was never defined.
28579 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28581 if test -z "${ENABLE_STATIC_TRUE}" && test -z "${ENABLE_STATIC_FALSE}"; then
28582 as_fn_error "conditional \"ENABLE_STATIC\" was never defined.
28583 Usually this means the macro was only invoked conditionally." "$LINENO" 5
28587 : ${CONFIG_STATUS=./config.status}
28589 ac_clean_files_save=$ac_clean_files
28590 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
28591 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
28592 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
28594 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
28596 # Generated by $as_me.
28597 # Run this file to recreate the current configuration.
28598 # Compiler output produced by configure, useful for debugging
28599 # configure, is in config.log if it exists.
28602 ac_cs_recheck=false
28605 SHELL=\${CONFIG_SHELL-$SHELL}
28608 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
28609 ## -------------------- ##
28610 ## M4sh Initialization. ##
28611 ## -------------------- ##
28613 # Be more Bourne compatible
28614 DUALCASE=1; export DUALCASE # for MKS sh
28615 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
28618 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
28619 # is contrary to our usage. Disable this feature.
28620 alias -g '${1+"$@"}'='"$@"'
28621 setopt NO_GLOB_SUBST
28623 case `(set -o) 2>/dev/null` in #(
28635 # Printing a long string crashes Solaris 7 /usr/bin/printf.
28636 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
28637 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
28638 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
28639 # Prefer a ksh shell builtin over an external printf program on Solaris,
28640 # but without wasting forks for bash or zsh.
28641 if test -z "$BASH_VERSION$ZSH_VERSION" \
28642 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
28643 as_echo='print -r --'
28644 as_echo_n='print -rn --'
28645 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
28646 as_echo='printf %s\n'
28647 as_echo_n='printf %s'
28649 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
28650 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
28651 as_echo_n='/usr/ucb/echo -n'
28653 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
28654 as_echo_n_body='eval
28658 expr "X$arg" : "X\\(.*\\)$as_nl";
28659 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
28661 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
28663 export as_echo_n_body
28664 as_echo_n='sh -c $as_echo_n_body as_echo'
28666 export as_echo_body
28667 as_echo='sh -c $as_echo_body as_echo'
28670 # The user is always right.
28671 if test "${PATH_SEPARATOR+set}" != set; then
28673 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
28674 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
28681 # We need space, tab and new line, in precisely that order. Quoting is
28682 # there to prevent editors from complaining about space-tab.
28683 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
28684 # splitting by setting IFS to empty value.)
28687 # Find who we are. Look in the path if we contain no directory separator.
28689 *[\\/]* ) as_myself=$0 ;;
28690 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
28691 for as_dir in $PATH
28694 test -z "$as_dir" && as_dir=.
28695 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
28701 # We did not find ourselves, most probably we were run as `sh COMMAND'
28702 # in which case we are not to be found in the path.
28703 if test "x$as_myself" = x; then
28706 if test ! -f "$as_myself"; then
28707 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
28711 # Unset variables that we do not need and which cause bugs (e.g. in
28712 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
28713 # suppresses any "Segmentation fault" message there. '((' could
28714 # trigger a bug in pdksh 5.2.14.
28715 for as_var in BASH_ENV ENV MAIL MAILPATH
28716 do eval test x\${$as_var+set} = xset \
28717 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
28730 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
28733 # as_fn_error ERROR [LINENO LOG_FD]
28734 # ---------------------------------
28735 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
28736 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
28737 # script with status $?, using 1 if that was 0.
28740 as_status=$?; test $as_status -eq 0 && as_status=1
28742 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
28743 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
28745 $as_echo "$as_me: error: $1" >&2
28746 as_fn_exit $as_status
28750 # as_fn_set_status STATUS
28751 # -----------------------
28752 # Set $? to STATUS, without forking.
28753 as_fn_set_status ()
28756 } # as_fn_set_status
28758 # as_fn_exit STATUS
28759 # -----------------
28760 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
28764 as_fn_set_status $1
28770 # Portably unset VAR.
28773 { eval $1=; unset $1;}
28775 as_unset=as_fn_unset
28776 # as_fn_append VAR VALUE
28777 # ----------------------
28778 # Append the text in VALUE to the end of the definition contained in VAR. Take
28779 # advantage of any shell optimizations that allow amortized linear growth over
28780 # repeated appends, instead of the typical quadratic growth present in naive
28782 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
28783 eval 'as_fn_append ()
28794 # as_fn_arith ARG...
28795 # ------------------
28796 # Perform arithmetic evaluation on the ARGs, and store the result in the
28797 # global $as_val. Take advantage of shells that can avoid forks. The arguments
28798 # must be portable across $(()) and expr.
28799 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
28800 eval 'as_fn_arith ()
28807 as_val=`expr "$@" || test $? -eq 1`
28812 if expr a : '\(a\)' >/dev/null 2>&1 &&
28813 test "X`expr 00001 : '.*\(...\)'`" = X001; then
28819 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
28820 as_basename=basename
28825 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
28831 as_me=`$as_basename -- "$0" ||
28832 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
28833 X"$0" : 'X\(//\)$' \| \
28834 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
28836 sed '/^.*\/\([^/][^/]*\)\/*$/{
28850 # Avoid depending upon Character Ranges.
28851 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
28852 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
28853 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
28854 as_cr_digits='0123456789'
28855 as_cr_alnum=$as_cr_Letters$as_cr_digits
28857 ECHO_C= ECHO_N= ECHO_T=
28858 case `echo -n x` in #(((((
28860 case `echo 'xy\c'` in
28861 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
28863 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
28870 rm -f conf$$ conf$$.exe conf$$.file
28871 if test -d conf$$.dir; then
28872 rm -f conf$$.dir/conf$$.file
28875 mkdir conf$$.dir 2>/dev/null
28877 if (echo >conf$$.file) 2>/dev/null; then
28878 if ln -s conf$$.file conf$$ 2>/dev/null; then
28880 # ... but there are two gotchas:
28881 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
28882 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
28883 # In both cases, we have to default to `cp -p'.
28884 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
28886 elif ln conf$$.file conf$$ 2>/dev/null; then
28894 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
28895 rmdir conf$$.dir 2>/dev/null
28900 # Create "$as_dir" as a directory, including parents if necessary.
28905 -*) as_dir=./$as_dir;;
28907 test -d "$as_dir" || eval $as_mkdir_p || {
28911 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
28912 *) as_qdir=$as_dir;;
28914 as_dirs="'$as_qdir' $as_dirs"
28915 as_dir=`$as_dirname -- "$as_dir" ||
28916 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
28917 X"$as_dir" : 'X\(//\)[^/]' \| \
28918 X"$as_dir" : 'X\(//\)$' \| \
28919 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
28920 $as_echo X"$as_dir" |
28921 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
28925 /^X\(\/\/\)[^/].*/{
28938 test -d "$as_dir" && break
28940 test -z "$as_dirs" || eval "mkdir $as_dirs"
28941 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
28945 if mkdir -p . 2>/dev/null; then
28946 as_mkdir_p='mkdir -p "$as_dir"'
28948 test -d ./-p && rmdir ./-p
28952 if test -x / >/dev/null 2>&1; then
28953 as_test_x='test -x'
28955 if ls -dL / >/dev/null 2>&1; then
28962 if test -d "$1"; then
28968 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
28969 ???[sx]*):;;*)false;;esac;fi
28973 as_executable_p=$as_test_x
28975 # Sed expression to map a string onto a valid CPP name.
28976 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
28978 # Sed expression to map a string onto a valid variable name.
28979 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
28983 ## ----------------------------------- ##
28984 ## Main body of $CONFIG_STATUS script. ##
28985 ## ----------------------------------- ##
28987 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
28989 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
28990 # Save the log message, to keep $0 and so on meaningful, and to
28991 # report actual input values of CONFIG_FILES etc. instead of their
28992 # values after options handling.
28994 This file was extended by GNU MP $as_me 5.0.1, which was
28995 generated by GNU Autoconf 2.65. Invocation command line was
28997 CONFIG_FILES = $CONFIG_FILES
28998 CONFIG_HEADERS = $CONFIG_HEADERS
28999 CONFIG_LINKS = $CONFIG_LINKS
29000 CONFIG_COMMANDS = $CONFIG_COMMANDS
29003 on `(hostname || uname -n) 2>/dev/null | sed 1q`
29008 case $ac_config_files in *"
29009 "*) set x $ac_config_files; shift; ac_config_files=$*;;
29012 case $ac_config_headers in *"
29013 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
29017 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29018 # Files that config.status was made for.
29019 config_files="$ac_config_files"
29020 config_headers="$ac_config_headers"
29021 config_links="$ac_config_links"
29022 config_commands="$ac_config_commands"
29026 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29028 \`$as_me' instantiates files and other configuration actions
29029 from templates according to the current configuration. Unless the files
29030 and actions are specified as TAGs, all are instantiated by default.
29032 Usage: $0 [OPTION]... [TAG]...
29034 -h, --help print this help, then exit
29035 -V, --version print version number and configuration settings, then exit
29036 --config print configuration, then exit
29037 -q, --quiet, --silent
29038 do not print progress messages
29039 -d, --debug don't remove temporary files
29040 --recheck update $as_me by reconfiguring in the same conditions
29041 --file=FILE[:TEMPLATE]
29042 instantiate the configuration file FILE
29043 --header=FILE[:TEMPLATE]
29044 instantiate the configuration header FILE
29046 Configuration files:
29049 Configuration headers:
29052 Configuration links:
29055 Configuration commands:
29058 Report bugs to <gmp-bugs@gmplib.org>.
29059 GNU MP home page: <http://www.gnu.org/software/gmp/>.
29060 General help using GNU software: <http://www.gnu.org/gethelp/>."
29063 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29064 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
29066 GNU MP config.status 5.0.1
29067 configured by $0, generated by GNU Autoconf 2.65,
29068 with options \\"\$ac_cs_config\\"
29070 Copyright (C) 2009 Free Software Foundation, Inc.
29071 This config.status script is free software; the Free Software Foundation
29072 gives unlimited permission to copy, distribute and modify it."
29079 test -n "\$AWK" || AWK=awk
29082 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29083 # The default lists apply if the user does not specify any file.
29089 ac_option=`expr "X$1" : 'X\([^=]*\)='`
29090 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
29101 # Handling of the options.
29102 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
29104 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
29105 $as_echo "$ac_cs_version"; exit ;;
29106 --config | --confi | --conf | --con | --co | --c )
29107 $as_echo "$ac_cs_config"; exit ;;
29108 --debug | --debu | --deb | --de | --d | -d )
29110 --file | --fil | --fi | --f )
29113 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29115 as_fn_append CONFIG_FILES " '$ac_optarg'"
29116 ac_need_defaults=false;;
29117 --header | --heade | --head | --hea )
29120 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
29122 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
29123 ac_need_defaults=false;;
29125 # Conflict between --help and --header
29126 as_fn_error "ambiguous option: \`$1'
29127 Try \`$0 --help' for more information.";;
29128 --help | --hel | -h )
29129 $as_echo "$ac_cs_usage"; exit ;;
29130 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
29131 | -silent | --silent | --silen | --sile | --sil | --si | --s)
29134 # This is an error.
29135 -*) as_fn_error "unrecognized option: \`$1'
29136 Try \`$0 --help' for more information." ;;
29138 *) as_fn_append ac_config_targets " $1"
29139 ac_need_defaults=false ;;
29145 ac_configure_extra_args=
29147 if $ac_cs_silent; then
29149 ac_configure_extra_args="$ac_configure_extra_args --silent"
29153 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29154 if \$ac_cs_recheck; then
29155 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
29157 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
29158 CONFIG_SHELL='$SHELL'
29159 export CONFIG_SHELL
29164 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29168 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
29169 ## Running $as_me. ##
29175 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29181 # The HP-UX ksh and POSIX shell print the target directory to stdout
29182 # if CDPATH is set.
29183 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
29185 sed_quote_subst='$sed_quote_subst'
29186 double_quote_subst='$double_quote_subst'
29187 delay_variable_subst='$delay_variable_subst'
29188 NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
29189 AS='`$ECHO "X$AS" | $Xsed -e "$delay_single_quote_subst"`'
29190 DLLTOOL='`$ECHO "X$DLLTOOL" | $Xsed -e "$delay_single_quote_subst"`'
29191 OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
29192 macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
29193 macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
29194 enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
29195 enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
29196 pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
29197 enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
29198 host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
29199 host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
29200 host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
29201 build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
29202 build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
29203 build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
29204 SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
29205 Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
29206 GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
29207 EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
29208 FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
29209 LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
29210 LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
29211 max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
29212 ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
29213 exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
29214 lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
29215 lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
29216 lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
29217 reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
29218 reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29219 deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
29220 file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
29221 AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
29222 AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
29223 STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
29224 RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
29225 old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29226 old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29227 old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29228 CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
29229 CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
29230 compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
29231 GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
29232 lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
29233 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
29234 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"`'
29235 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"`'
29236 objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
29237 SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
29238 ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
29239 MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
29240 lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
29241 lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
29242 lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
29243 lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
29244 lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
29245 need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
29246 DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
29247 NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
29248 LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
29249 OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
29250 OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
29251 libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
29252 shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29253 extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29254 archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
29255 enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
29256 export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
29257 whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
29258 compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
29259 old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29260 old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29261 archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29262 archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29263 module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29264 module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29265 with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
29266 allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
29267 no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
29268 hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
29269 hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
29270 hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
29271 hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
29272 hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
29273 hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
29274 hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
29275 hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
29276 inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
29277 link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
29278 fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
29279 always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
29280 export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29281 exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
29282 include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
29283 prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29284 file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
29285 variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
29286 need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
29287 need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
29288 version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
29289 runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
29290 shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
29291 shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
29292 libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
29293 library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
29294 soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
29295 postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29296 postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29297 finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
29298 finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
29299 hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
29300 sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
29301 sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
29302 hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
29303 enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
29304 enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
29305 enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
29306 old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
29307 striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
29308 compiler_lib_search_dirs='`$ECHO "X$compiler_lib_search_dirs" | $Xsed -e "$delay_single_quote_subst"`'
29309 predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`'
29310 postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`'
29311 predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`'
29312 postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`'
29313 compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`'
29314 LD_CXX='`$ECHO "X$LD_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29315 LD_F77='`$ECHO "X$LD_F77" | $Xsed -e "$delay_single_quote_subst"`'
29316 old_archive_cmds_CXX='`$ECHO "X$old_archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29317 old_archive_cmds_F77='`$ECHO "X$old_archive_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
29318 compiler_CXX='`$ECHO "X$compiler_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29319 compiler_F77='`$ECHO "X$compiler_F77" | $Xsed -e "$delay_single_quote_subst"`'
29320 GCC_CXX='`$ECHO "X$GCC_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29321 GCC_F77='`$ECHO "X$GCC_F77" | $Xsed -e "$delay_single_quote_subst"`'
29322 lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "X$lt_prog_compiler_no_builtin_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29323 lt_prog_compiler_no_builtin_flag_F77='`$ECHO "X$lt_prog_compiler_no_builtin_flag_F77" | $Xsed -e "$delay_single_quote_subst"`'
29324 lt_prog_compiler_wl_CXX='`$ECHO "X$lt_prog_compiler_wl_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29325 lt_prog_compiler_wl_F77='`$ECHO "X$lt_prog_compiler_wl_F77" | $Xsed -e "$delay_single_quote_subst"`'
29326 lt_prog_compiler_pic_CXX='`$ECHO "X$lt_prog_compiler_pic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29327 lt_prog_compiler_pic_F77='`$ECHO "X$lt_prog_compiler_pic_F77" | $Xsed -e "$delay_single_quote_subst"`'
29328 lt_prog_compiler_static_CXX='`$ECHO "X$lt_prog_compiler_static_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29329 lt_prog_compiler_static_F77='`$ECHO "X$lt_prog_compiler_static_F77" | $Xsed -e "$delay_single_quote_subst"`'
29330 lt_cv_prog_compiler_c_o_CXX='`$ECHO "X$lt_cv_prog_compiler_c_o_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29331 lt_cv_prog_compiler_c_o_F77='`$ECHO "X$lt_cv_prog_compiler_c_o_F77" | $Xsed -e "$delay_single_quote_subst"`'
29332 archive_cmds_need_lc_CXX='`$ECHO "X$archive_cmds_need_lc_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29333 archive_cmds_need_lc_F77='`$ECHO "X$archive_cmds_need_lc_F77" | $Xsed -e "$delay_single_quote_subst"`'
29334 enable_shared_with_static_runtimes_CXX='`$ECHO "X$enable_shared_with_static_runtimes_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29335 enable_shared_with_static_runtimes_F77='`$ECHO "X$enable_shared_with_static_runtimes_F77" | $Xsed -e "$delay_single_quote_subst"`'
29336 export_dynamic_flag_spec_CXX='`$ECHO "X$export_dynamic_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29337 export_dynamic_flag_spec_F77='`$ECHO "X$export_dynamic_flag_spec_F77" | $Xsed -e "$delay_single_quote_subst"`'
29338 whole_archive_flag_spec_CXX='`$ECHO "X$whole_archive_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29339 whole_archive_flag_spec_F77='`$ECHO "X$whole_archive_flag_spec_F77" | $Xsed -e "$delay_single_quote_subst"`'
29340 compiler_needs_object_CXX='`$ECHO "X$compiler_needs_object_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29341 compiler_needs_object_F77='`$ECHO "X$compiler_needs_object_F77" | $Xsed -e "$delay_single_quote_subst"`'
29342 old_archive_from_new_cmds_CXX='`$ECHO "X$old_archive_from_new_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29343 old_archive_from_new_cmds_F77='`$ECHO "X$old_archive_from_new_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
29344 old_archive_from_expsyms_cmds_CXX='`$ECHO "X$old_archive_from_expsyms_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29345 old_archive_from_expsyms_cmds_F77='`$ECHO "X$old_archive_from_expsyms_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
29346 archive_cmds_CXX='`$ECHO "X$archive_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29347 archive_cmds_F77='`$ECHO "X$archive_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
29348 archive_expsym_cmds_CXX='`$ECHO "X$archive_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29349 archive_expsym_cmds_F77='`$ECHO "X$archive_expsym_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
29350 module_cmds_CXX='`$ECHO "X$module_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29351 module_cmds_F77='`$ECHO "X$module_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
29352 module_expsym_cmds_CXX='`$ECHO "X$module_expsym_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29353 module_expsym_cmds_F77='`$ECHO "X$module_expsym_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
29354 with_gnu_ld_CXX='`$ECHO "X$with_gnu_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29355 with_gnu_ld_F77='`$ECHO "X$with_gnu_ld_F77" | $Xsed -e "$delay_single_quote_subst"`'
29356 allow_undefined_flag_CXX='`$ECHO "X$allow_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29357 allow_undefined_flag_F77='`$ECHO "X$allow_undefined_flag_F77" | $Xsed -e "$delay_single_quote_subst"`'
29358 no_undefined_flag_CXX='`$ECHO "X$no_undefined_flag_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29359 no_undefined_flag_F77='`$ECHO "X$no_undefined_flag_F77" | $Xsed -e "$delay_single_quote_subst"`'
29360 hardcode_libdir_flag_spec_CXX='`$ECHO "X$hardcode_libdir_flag_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29361 hardcode_libdir_flag_spec_F77='`$ECHO "X$hardcode_libdir_flag_spec_F77" | $Xsed -e "$delay_single_quote_subst"`'
29362 hardcode_libdir_flag_spec_ld_CXX='`$ECHO "X$hardcode_libdir_flag_spec_ld_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29363 hardcode_libdir_flag_spec_ld_F77='`$ECHO "X$hardcode_libdir_flag_spec_ld_F77" | $Xsed -e "$delay_single_quote_subst"`'
29364 hardcode_libdir_separator_CXX='`$ECHO "X$hardcode_libdir_separator_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29365 hardcode_libdir_separator_F77='`$ECHO "X$hardcode_libdir_separator_F77" | $Xsed -e "$delay_single_quote_subst"`'
29366 hardcode_direct_CXX='`$ECHO "X$hardcode_direct_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29367 hardcode_direct_F77='`$ECHO "X$hardcode_direct_F77" | $Xsed -e "$delay_single_quote_subst"`'
29368 hardcode_direct_absolute_CXX='`$ECHO "X$hardcode_direct_absolute_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29369 hardcode_direct_absolute_F77='`$ECHO "X$hardcode_direct_absolute_F77" | $Xsed -e "$delay_single_quote_subst"`'
29370 hardcode_minus_L_CXX='`$ECHO "X$hardcode_minus_L_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29371 hardcode_minus_L_F77='`$ECHO "X$hardcode_minus_L_F77" | $Xsed -e "$delay_single_quote_subst"`'
29372 hardcode_shlibpath_var_CXX='`$ECHO "X$hardcode_shlibpath_var_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29373 hardcode_shlibpath_var_F77='`$ECHO "X$hardcode_shlibpath_var_F77" | $Xsed -e "$delay_single_quote_subst"`'
29374 hardcode_automatic_CXX='`$ECHO "X$hardcode_automatic_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29375 hardcode_automatic_F77='`$ECHO "X$hardcode_automatic_F77" | $Xsed -e "$delay_single_quote_subst"`'
29376 inherit_rpath_CXX='`$ECHO "X$inherit_rpath_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29377 inherit_rpath_F77='`$ECHO "X$inherit_rpath_F77" | $Xsed -e "$delay_single_quote_subst"`'
29378 link_all_deplibs_CXX='`$ECHO "X$link_all_deplibs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29379 link_all_deplibs_F77='`$ECHO "X$link_all_deplibs_F77" | $Xsed -e "$delay_single_quote_subst"`'
29380 fix_srcfile_path_CXX='`$ECHO "X$fix_srcfile_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29381 fix_srcfile_path_F77='`$ECHO "X$fix_srcfile_path_F77" | $Xsed -e "$delay_single_quote_subst"`'
29382 always_export_symbols_CXX='`$ECHO "X$always_export_symbols_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29383 always_export_symbols_F77='`$ECHO "X$always_export_symbols_F77" | $Xsed -e "$delay_single_quote_subst"`'
29384 export_symbols_cmds_CXX='`$ECHO "X$export_symbols_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29385 export_symbols_cmds_F77='`$ECHO "X$export_symbols_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
29386 exclude_expsyms_CXX='`$ECHO "X$exclude_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29387 exclude_expsyms_F77='`$ECHO "X$exclude_expsyms_F77" | $Xsed -e "$delay_single_quote_subst"`'
29388 include_expsyms_CXX='`$ECHO "X$include_expsyms_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29389 include_expsyms_F77='`$ECHO "X$include_expsyms_F77" | $Xsed -e "$delay_single_quote_subst"`'
29390 prelink_cmds_CXX='`$ECHO "X$prelink_cmds_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29391 prelink_cmds_F77='`$ECHO "X$prelink_cmds_F77" | $Xsed -e "$delay_single_quote_subst"`'
29392 file_list_spec_CXX='`$ECHO "X$file_list_spec_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29393 file_list_spec_F77='`$ECHO "X$file_list_spec_F77" | $Xsed -e "$delay_single_quote_subst"`'
29394 hardcode_action_CXX='`$ECHO "X$hardcode_action_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29395 hardcode_action_F77='`$ECHO "X$hardcode_action_F77" | $Xsed -e "$delay_single_quote_subst"`'
29396 compiler_lib_search_dirs_CXX='`$ECHO "X$compiler_lib_search_dirs_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29397 compiler_lib_search_dirs_F77='`$ECHO "X$compiler_lib_search_dirs_F77" | $Xsed -e "$delay_single_quote_subst"`'
29398 predep_objects_CXX='`$ECHO "X$predep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29399 predep_objects_F77='`$ECHO "X$predep_objects_F77" | $Xsed -e "$delay_single_quote_subst"`'
29400 postdep_objects_CXX='`$ECHO "X$postdep_objects_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29401 postdep_objects_F77='`$ECHO "X$postdep_objects_F77" | $Xsed -e "$delay_single_quote_subst"`'
29402 predeps_CXX='`$ECHO "X$predeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29403 predeps_F77='`$ECHO "X$predeps_F77" | $Xsed -e "$delay_single_quote_subst"`'
29404 postdeps_CXX='`$ECHO "X$postdeps_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29405 postdeps_F77='`$ECHO "X$postdeps_F77" | $Xsed -e "$delay_single_quote_subst"`'
29406 compiler_lib_search_path_CXX='`$ECHO "X$compiler_lib_search_path_CXX" | $Xsed -e "$delay_single_quote_subst"`'
29407 compiler_lib_search_path_F77='`$ECHO "X$compiler_lib_search_path_F77" | $Xsed -e "$delay_single_quote_subst"`'
29410 LTCFLAGS='$LTCFLAGS'
29411 compiler='$compiler_DEFAULT'
29413 # Quote evaled strings.
29424 deplibs_check_method \
29433 lt_cv_sys_global_symbol_pipe \
29434 lt_cv_sys_global_symbol_to_cdecl \
29435 lt_cv_sys_global_symbol_to_c_name_address \
29436 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
29439 lt_prog_compiler_no_builtin_flag \
29440 lt_prog_compiler_wl \
29441 lt_prog_compiler_pic \
29442 lt_prog_compiler_static \
29443 lt_cv_prog_compiler_c_o \
29451 export_dynamic_flag_spec \
29452 whole_archive_flag_spec \
29453 compiler_needs_object \
29455 allow_undefined_flag \
29456 no_undefined_flag \
29457 hardcode_libdir_flag_spec \
29458 hardcode_libdir_flag_spec_ld \
29459 hardcode_libdir_separator \
29464 variables_saved_for_relink \
29466 library_names_spec \
29471 compiler_lib_search_dirs \
29476 compiler_lib_search_path \
29481 lt_prog_compiler_no_builtin_flag_CXX \
29482 lt_prog_compiler_no_builtin_flag_F77 \
29483 lt_prog_compiler_wl_CXX \
29484 lt_prog_compiler_wl_F77 \
29485 lt_prog_compiler_pic_CXX \
29486 lt_prog_compiler_pic_F77 \
29487 lt_prog_compiler_static_CXX \
29488 lt_prog_compiler_static_F77 \
29489 lt_cv_prog_compiler_c_o_CXX \
29490 lt_cv_prog_compiler_c_o_F77 \
29491 export_dynamic_flag_spec_CXX \
29492 export_dynamic_flag_spec_F77 \
29493 whole_archive_flag_spec_CXX \
29494 whole_archive_flag_spec_F77 \
29495 compiler_needs_object_CXX \
29496 compiler_needs_object_F77 \
29499 allow_undefined_flag_CXX \
29500 allow_undefined_flag_F77 \
29501 no_undefined_flag_CXX \
29502 no_undefined_flag_F77 \
29503 hardcode_libdir_flag_spec_CXX \
29504 hardcode_libdir_flag_spec_F77 \
29505 hardcode_libdir_flag_spec_ld_CXX \
29506 hardcode_libdir_flag_spec_ld_F77 \
29507 hardcode_libdir_separator_CXX \
29508 hardcode_libdir_separator_F77 \
29509 fix_srcfile_path_CXX \
29510 fix_srcfile_path_F77 \
29511 exclude_expsyms_CXX \
29512 exclude_expsyms_F77 \
29513 include_expsyms_CXX \
29514 include_expsyms_F77 \
29515 file_list_spec_CXX \
29516 file_list_spec_F77 \
29517 compiler_lib_search_dirs_CXX \
29518 compiler_lib_search_dirs_F77 \
29519 predep_objects_CXX \
29520 predep_objects_F77 \
29521 postdep_objects_CXX \
29522 postdep_objects_F77 \
29527 compiler_lib_search_path_CXX \
29528 compiler_lib_search_path_F77; do
29529 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
29530 *[\\\\\\\`\\"\\\$]*)
29531 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
29534 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29539 # Double-quote double-evaled strings.
29540 for var in reload_cmds \
29541 old_postinstall_cmds \
29542 old_postuninstall_cmds \
29544 extract_expsyms_cmds \
29545 old_archive_from_new_cmds \
29546 old_archive_from_expsyms_cmds \
29548 archive_expsym_cmds \
29550 module_expsym_cmds \
29551 export_symbols_cmds \
29554 postuninstall_cmds \
29556 sys_lib_search_path_spec \
29557 sys_lib_dlsearch_path_spec \
29558 old_archive_cmds_CXX \
29559 old_archive_cmds_F77 \
29560 old_archive_from_new_cmds_CXX \
29561 old_archive_from_new_cmds_F77 \
29562 old_archive_from_expsyms_cmds_CXX \
29563 old_archive_from_expsyms_cmds_F77 \
29566 archive_expsym_cmds_CXX \
29567 archive_expsym_cmds_F77 \
29570 module_expsym_cmds_CXX \
29571 module_expsym_cmds_F77 \
29572 export_symbols_cmds_CXX \
29573 export_symbols_cmds_F77 \
29575 prelink_cmds_F77; do
29576 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
29577 *[\\\\\\\`\\"\\\$]*)
29578 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
29581 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
29586 # Fix-up fallback echo if it was mangled by the above quoting rules.
29588 *'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
29592 ac_aux_dir='$ac_aux_dir'
29593 xsi_shell='$xsi_shell'
29594 lt_shell_append='$lt_shell_append'
29596 # See if we are running on zsh, and set the options which allow our
29597 # commands through without removal of \ escapes INIT.
29598 if test -n "\${ZSH_VERSION+set}" ; then
29599 setopt NO_GLOB_SUBST
29605 TIMESTAMP='$TIMESTAMP'
29618 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29620 # Handling of arguments.
29621 for ac_config_target in $ac_config_targets
29623 case $ac_config_target in
29624 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
29625 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
29626 "mpn/$tmp_fn.$tmp_ext") CONFIG_LINKS="$CONFIG_LINKS mpn/$tmp_fn.$tmp_ext:mpn/$tmp_dir/$tmp_base.$tmp_ext" ;;
29627 "gmp-mparam.h") CONFIG_LINKS="$CONFIG_LINKS gmp-mparam.h:mpn/$gmp_mparam_dir/gmp-mparam.h" ;;
29628 "demos/pexpr-config.h") CONFIG_FILES="$CONFIG_FILES demos/pexpr-config.h:demos/pexpr-config-h.in" ;;
29629 "demos/calc/calc-config.h") CONFIG_FILES="$CONFIG_FILES demos/calc/calc-config.h:demos/calc/calc-config-h.in" ;;
29630 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
29631 "mpbsd/Makefile") CONFIG_FILES="$CONFIG_FILES mpbsd/Makefile" ;;
29632 "mpf/Makefile") CONFIG_FILES="$CONFIG_FILES mpf/Makefile" ;;
29633 "mpn/Makefile") CONFIG_FILES="$CONFIG_FILES mpn/Makefile" ;;
29634 "mpq/Makefile") CONFIG_FILES="$CONFIG_FILES mpq/Makefile" ;;
29635 "mpz/Makefile") CONFIG_FILES="$CONFIG_FILES mpz/Makefile" ;;
29636 "printf/Makefile") CONFIG_FILES="$CONFIG_FILES printf/Makefile" ;;
29637 "scanf/Makefile") CONFIG_FILES="$CONFIG_FILES scanf/Makefile" ;;
29638 "cxx/Makefile") CONFIG_FILES="$CONFIG_FILES cxx/Makefile" ;;
29639 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
29640 "tests/devel/Makefile") CONFIG_FILES="$CONFIG_FILES tests/devel/Makefile" ;;
29641 "tests/mpbsd/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mpbsd/Makefile" ;;
29642 "tests/mpf/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mpf/Makefile" ;;
29643 "tests/mpn/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mpn/Makefile" ;;
29644 "tests/mpq/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mpq/Makefile" ;;
29645 "tests/mpz/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mpz/Makefile" ;;
29646 "tests/rand/Makefile") CONFIG_FILES="$CONFIG_FILES tests/rand/Makefile" ;;
29647 "tests/misc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/misc/Makefile" ;;
29648 "tests/cxx/Makefile") CONFIG_FILES="$CONFIG_FILES tests/cxx/Makefile" ;;
29649 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
29650 "tune/Makefile") CONFIG_FILES="$CONFIG_FILES tune/Makefile" ;;
29651 "demos/Makefile") CONFIG_FILES="$CONFIG_FILES demos/Makefile" ;;
29652 "demos/calc/Makefile") CONFIG_FILES="$CONFIG_FILES demos/calc/Makefile" ;;
29653 "demos/expr/Makefile") CONFIG_FILES="$CONFIG_FILES demos/expr/Makefile" ;;
29654 "gmp.h") CONFIG_FILES="$CONFIG_FILES gmp.h:gmp-h.in" ;;
29655 "mp.h") CONFIG_FILES="$CONFIG_FILES mp.h:mp-h.in" ;;
29657 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
29662 # If the user did not use the arguments to specify the items to instantiate,
29663 # then the envvar interface is used. Set only those that are not.
29664 # We use the long form for the default assignment because of an extremely
29665 # bizarre bug on SunOS 4.1.3.
29666 if $ac_need_defaults; then
29667 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
29668 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
29669 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
29670 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
29673 # Have a temporary directory for convenience. Make it in the build tree
29674 # simply because there is no reason against having it here, and in addition,
29675 # creating and moving files from /tmp can sometimes cause problems.
29676 # Hook for its removal unless debugging.
29677 # Note that there is a small window in which the directory will not be cleaned:
29678 # after its creation but before its name has been assigned to `$tmp'.
29682 trap 'exit_status=$?
29683 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
29685 trap 'as_fn_exit 1' 1 2 13 15
29687 # Create a (secure) tmp directory for tmp files.
29690 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
29691 test -n "$tmp" && test -d "$tmp"
29694 tmp=./conf$$-$RANDOM
29695 (umask 077 && mkdir "$tmp")
29696 } || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
29698 # Set up the scripts for CONFIG_FILES section.
29699 # No need to generate them if there are no CONFIG_FILES.
29700 # This happens for instance with `./config.status config.h'.
29701 if test -n "$CONFIG_FILES"; then
29704 ac_cr=`echo X | tr X '\015'`
29705 # On cygwin, bash can eat \r inside `` if the user requested igncr.
29706 # But we know of no other shell where ac_cr would be empty at this
29707 # point, so we can use a bashism as a fallback.
29708 if test "x$ac_cr" = x; then
29709 eval ac_cr=\$\'\\r\'
29711 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
29712 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
29715 ac_cs_awk_cr=$ac_cr
29718 echo 'BEGIN {' >"$tmp/subs1.awk" &&
29723 echo "cat >conf$$subs.awk <<_ACEOF" &&
29724 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
29726 } >conf$$subs.sh ||
29727 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29728 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
29730 for ac_last_try in false false false false false :; do
29731 . ./conf$$subs.sh ||
29732 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29734 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
29735 if test $ac_delim_n = $ac_delim_num; then
29737 elif $ac_last_try; then
29738 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
29740 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29743 rm -f conf$$subs.sh
29745 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29746 cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
29750 s/^/S["/; s/!.*/"]=/
29760 s/\(.\{148\}\)..*/\1/
29762 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
29767 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29774 s/\(.\{148\}\)..*/\1/
29776 s/["\\]/\\&/g; s/^/"/; s/$/"/
29780 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
29785 ' <conf$$subs.awk | sed '
29790 ' >>$CONFIG_STATUS || ac_write_fail=1
29791 rm -f conf$$subs.awk
29792 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29794 cat >>"\$tmp/subs1.awk" <<_ACAWK &&
29795 for (key in S) S_is_set[key] = 1
29801 nfields = split(line, field, "@")
29803 len = length(field[1])
29804 for (i = 2; i < nfields; i++) {
29806 keylen = length(key)
29807 if (S_is_set[key]) {
29809 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
29810 len += length(value) + length(field[++i])
29821 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29822 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
29823 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
29826 fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
29827 || as_fn_error "could not setup config files machinery" "$LINENO" 5
29830 # VPATH may cause trouble with some makes, so we remove $(srcdir),
29831 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
29832 # trailing colons and then remove the whole line if VPATH becomes empty
29833 # (actually we leave an empty line to preserve line numbers).
29834 if test "x$srcdir" = x.; then
29835 ac_vpsub='/^[ ]*VPATH[ ]*=/{
29836 s/:*\$(srcdir):*/:/
29837 s/:*\${srcdir}:*/:/
29839 s/^\([^=]*=[ ]*\):*/\1/
29845 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29846 fi # test -n "$CONFIG_FILES"
29848 # Set up the scripts for CONFIG_HEADERS section.
29849 # No need to generate them if there are no CONFIG_HEADERS.
29850 # This happens for instance with `./config.status Makefile'.
29851 if test -n "$CONFIG_HEADERS"; then
29852 cat >"$tmp/defines.awk" <<\_ACAWK ||
29856 # Transform confdefs.h into an awk script `defines.awk', embedded as
29857 # here-document in config.status, that substitutes the proper values into
29858 # config.h.in to produce config.h.
29860 # Create a delimiter string that does not exist in confdefs.h, to ease
29861 # handling of long lines.
29863 for ac_last_try in false false :; do
29864 ac_t=`sed -n "/$ac_delim/p" confdefs.h`
29865 if test -z "$ac_t"; then
29867 elif $ac_last_try; then
29868 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
29870 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
29874 # For the awk script, D is an array of macro values keyed by name,
29875 # likewise P contains macro parameters if any. Preserve backslash
29876 # newline sequences.
29878 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
29880 s/.\{148\}/&'"$ac_delim"'/g
29883 s/^[ ]*#[ ]*define[ ][ ]*/ /
29890 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29892 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
29896 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
29897 D["\1"]=" \3\\\\\\n"\\/p
29899 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
29904 s/.\{148\}/&'"$ac_delim"'/g
29909 s/["\\]/\\&/g; s/^/"/; s/$/"/p
29912 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
29914 ' <confdefs.h | sed '
29915 s/'"$ac_delim"'/"\\\
29916 "/g' >>$CONFIG_STATUS || ac_write_fail=1
29918 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
29919 for (key in D) D_is_set[key] = 1
29922 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
29924 split(line, arg, " ")
29925 if (arg[1] == "#") {
29929 defundef = substr(arg[1], 2)
29932 split(mac1, mac2, "(") #)
29934 prefix = substr(line, 1, index(line, defundef) - 1)
29935 if (D_is_set[macro]) {
29936 # Preserve the white space surrounding the "#".
29937 print prefix "define", macro P[macro] D[macro]
29940 # Replace #undef with comments. This is necessary, for example,
29941 # in the case of _POSIX_SOURCE, which is predefined and required
29942 # on some systems where configure will not decide to define it.
29943 if (defundef == "undef") {
29944 print "/*", prefix defundef, macro, "*/"
29952 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
29953 as_fn_error "could not setup config headers machinery" "$LINENO" 5
29954 fi # test -n "$CONFIG_HEADERS"
29957 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS"
29962 :[FHLC]) ac_mode=$ac_tag; continue;;
29964 case $ac_mode$ac_tag in
29966 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
29967 :[FH]-) ac_tag=-:-;;
29968 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
29985 -) ac_f="$tmp/stdin";;
29986 *) # Look for the file first in the build tree, then in the source tree
29987 # (if the path is not absolute). The absolute path cannot be DOS-style,
29988 # because $ac_f cannot contain `:'.
29992 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
29994 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
29996 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
29997 as_fn_append ac_file_inputs " '$ac_f'"
30000 # Let's still pretend it is `configure' which instantiates (i.e., don't
30001 # use $as_me), people would be surprised to read:
30002 # /* config.h. Generated by config.status. */
30003 configure_input='Generated from '`
30004 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
30006 if test x"$ac_file" != x-; then
30007 configure_input="$ac_file. $configure_input"
30008 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
30009 $as_echo "$as_me: creating $ac_file" >&6;}
30011 # Neutralize special characters interpreted by sed in replacement strings.
30012 case $configure_input in #(
30013 *\&* | *\|* | *\\* )
30014 ac_sed_conf_input=`$as_echo "$configure_input" |
30015 sed 's/[\\\\&|]/\\\\&/g'`;; #(
30016 *) ac_sed_conf_input=$configure_input;;
30020 *:-:* | *:-) cat >"$tmp/stdin" \
30021 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
30026 ac_dir=`$as_dirname -- "$ac_file" ||
30027 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30028 X"$ac_file" : 'X\(//\)[^/]' \| \
30029 X"$ac_file" : 'X\(//\)$' \| \
30030 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
30031 $as_echo X"$ac_file" |
30032 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30036 /^X\(\/\/\)[^/].*/{
30049 as_dir="$ac_dir"; as_fn_mkdir_p
30053 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
30055 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
30056 # A ".." for each directory in $ac_dir_suffix.
30057 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
30058 case $ac_top_builddir_sub in
30059 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
30060 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
30063 ac_abs_top_builddir=$ac_pwd
30064 ac_abs_builddir=$ac_pwd$ac_dir_suffix
30065 # for backward compatibility:
30066 ac_top_builddir=$ac_top_build_prefix
30069 .) # We are building in place.
30071 ac_top_srcdir=$ac_top_builddir_sub
30072 ac_abs_top_srcdir=$ac_pwd ;;
30073 [\\/]* | ?:[\\/]* ) # Absolute name.
30074 ac_srcdir=$srcdir$ac_dir_suffix;
30075 ac_top_srcdir=$srcdir
30076 ac_abs_top_srcdir=$srcdir ;;
30077 *) # Relative name.
30078 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
30079 ac_top_srcdir=$ac_top_build_prefix$srcdir
30080 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
30082 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
30092 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
30093 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
30095 ac_MKDIR_P=$MKDIR_P
30097 [\\/$]* | ?:[\\/]* ) ;;
30098 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
30102 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30103 # If the template does not know about datarootdir, expand it.
30104 # FIXME: This hack should be removed a few years after 2.60.
30105 ac_datarootdir_hack=; ac_datarootdir_seen=
30116 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
30117 *datarootdir*) ac_datarootdir_seen=yes;;
30118 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
30119 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
30120 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
30122 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30123 ac_datarootdir_hack='
30124 s&@datadir@&$datadir&g
30125 s&@docdir@&$docdir&g
30126 s&@infodir@&$infodir&g
30127 s&@localedir@&$localedir&g
30128 s&@mandir@&$mandir&g
30129 s&\\\${datarootdir}&$datarootdir&g' ;;
30133 # Neutralize VPATH when `$srcdir' = `.'.
30134 # Shell code in configure.ac might set extrasub.
30135 # FIXME: do we really want to maintain this feature?
30136 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
30137 ac_sed_extra="$ac_vpsub
30140 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
30142 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
30143 s|@configure_input@|$ac_sed_conf_input|;t t
30144 s&@top_builddir@&$ac_top_builddir_sub&;t t
30145 s&@top_build_prefix@&$ac_top_build_prefix&;t t
30146 s&@srcdir@&$ac_srcdir&;t t
30147 s&@abs_srcdir@&$ac_abs_srcdir&;t t
30148 s&@top_srcdir@&$ac_top_srcdir&;t t
30149 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
30150 s&@builddir@&$ac_builddir&;t t
30151 s&@abs_builddir@&$ac_abs_builddir&;t t
30152 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
30153 s&@INSTALL@&$ac_INSTALL&;t t
30154 s&@MKDIR_P@&$ac_MKDIR_P&;t t
30155 $ac_datarootdir_hack
30157 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
30158 || as_fn_error "could not create $ac_file" "$LINENO" 5
30160 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
30161 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
30162 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
30163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30164 which seems to be undefined. Please make sure it is defined." >&5
30165 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
30166 which seems to be undefined. Please make sure it is defined." >&2;}
30170 -) cat "$tmp/out" && rm -f "$tmp/out";;
30171 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
30173 || as_fn_error "could not create $ac_file" "$LINENO" 5
30179 if test x"$ac_file" != x-; then
30181 $as_echo "/* $configure_input */" \
30182 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
30183 } >"$tmp/config.h" \
30184 || as_fn_error "could not create $ac_file" "$LINENO" 5
30185 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
30186 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
30187 $as_echo "$as_me: $ac_file is unchanged" >&6;}
30190 mv "$tmp/config.h" "$ac_file" \
30191 || as_fn_error "could not create $ac_file" "$LINENO" 5
30194 $as_echo "/* $configure_input */" \
30195 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
30196 || as_fn_error "could not create -" "$LINENO" 5
30198 # Compute "$ac_file"'s index in $config_headers.
30201 for _am_header in $config_headers :; do
30202 case $_am_header in
30203 $_am_arg | $_am_arg:* )
30206 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
30209 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
30210 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
30211 X"$_am_arg" : 'X\(//\)[^/]' \| \
30212 X"$_am_arg" : 'X\(//\)$' \| \
30213 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
30214 $as_echo X"$_am_arg" |
30215 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
30219 /^X\(\/\/\)[^/].*/{
30231 s/.*/./; q'`/stamp-h$_am_stamp_count
30238 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then
30241 # Prefer the file from the source tree if names are identical.
30242 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then
30243 ac_source=$srcdir/$ac_source
30246 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5
30247 $as_echo "$as_me: linking $ac_source to $ac_file" >&6;}
30249 if test ! -r "$ac_source"; then
30250 as_fn_error "$ac_source: file not found" "$LINENO" 5
30254 # Try a relative symlink, then a hard link, then a copy.
30256 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;;
30257 *) ac_rel_source=$ac_top_build_prefix$ac_source ;;
30259 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null ||
30260 ln "$ac_source" "$ac_file" 2>/dev/null ||
30261 cp -p "$ac_source" "$ac_file" ||
30262 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5
30265 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
30266 $as_echo "$as_me: executing $ac_file commands" >&6;}
30271 case $ac_file$ac_mode in
30274 # See if we are running on zsh, and set the options which allow our
30275 # commands through without removal of \ escapes.
30276 if test -n "${ZSH_VERSION+set}" ; then
30277 setopt NO_GLOB_SUBST
30280 cfgfile="${ofile}T"
30281 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
30284 cat <<_LT_EOF >> "$cfgfile"
30287 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
30288 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
30289 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
30290 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
30292 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
30293 # 2006, 2007, 2008 Free Software Foundation, Inc.
30294 # Written by Gordon Matzigkeit, 1996
30296 # This file is part of GNU Libtool.
30298 # GNU Libtool is free software; you can redistribute it and/or
30299 # modify it under the terms of the GNU General Public License as
30300 # published by the Free Software Foundation; either version 2 of
30301 # the License, or (at your option) any later version.
30303 # As a special exception to the GNU General Public License,
30304 # if you distribute this file as part of a program or library that
30305 # is built using GNU Libtool, you may include this file under the
30306 # same distribution terms that you use for the rest of that program.
30308 # GNU Libtool is distributed in the hope that it will be useful,
30309 # but WITHOUT ANY WARRANTY; without even the implied warranty of
30310 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
30311 # GNU General Public License for more details.
30313 # You should have received a copy of the GNU General Public License
30314 # along with GNU Libtool; see the file COPYING. If not, a copy
30315 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
30316 # obtained by writing to the Free Software Foundation, Inc.,
30317 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
30320 # The names of the tagged configurations supported by this script.
30321 available_tags="CXX F77 "
30323 # ### BEGIN LIBTOOL CONFIG
30325 # A BSD- or MS-compatible name lister.
30328 # Assembler program.
30331 # DLL creation program.
30334 # Object dumper program.
30337 # Which release of libtool.m4 was used?
30338 macro_version=$macro_version
30339 macro_revision=$macro_revision
30341 # Whether or not to build shared libraries.
30342 build_libtool_libs=$enable_shared
30344 # Whether or not to build static libraries.
30345 build_old_libs=$enable_static
30347 # What type of objects to build.
30350 # Whether or not to optimize for fast installation.
30351 fast_install=$enable_fast_install
30354 host_alias=$host_alias
30358 # The build system.
30359 build_alias=$build_alias
30363 # A sed program that does not truncate output.
30366 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
30367 Xsed="\$SED -e 1s/^X//"
30369 # A grep program that handles long lines.
30375 # A literal string matcher.
30378 # Whether we need soft or hard links.
30381 # What is the maximum length of a command?
30382 max_cmd_len=$max_cmd_len
30384 # Object file suffix (normally "o").
30387 # Executable file suffix (normally "").
30390 # whether the shell understands "unset".
30393 # turn spaces into newlines.
30396 # turn newlines into spaces.
30399 # How to create reloadable object files.
30400 reload_flag=$lt_reload_flag
30401 reload_cmds=$lt_reload_cmds
30403 # Method to check whether dependent libraries are shared objects.
30404 deplibs_check_method=$lt_deplibs_check_method
30406 # Command to use when deplibs_check_method == "file_magic".
30407 file_magic_cmd=$lt_file_magic_cmd
30411 AR_FLAGS=$lt_AR_FLAGS
30413 # A symbol stripping program.
30416 # Commands used to install an old-style archive.
30418 old_postinstall_cmds=$lt_old_postinstall_cmds
30419 old_postuninstall_cmds=$lt_old_postuninstall_cmds
30424 # LTCC compiler flags.
30425 LTCFLAGS=$lt_CFLAGS
30427 # Take the output of nm and produce a listing of raw symbols and C names.
30428 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
30430 # Transform the output of nm in a proper C declaration.
30431 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
30433 # Transform the output of nm in a C name address pair.
30434 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
30436 # Transform the output of nm in a C name address pair when lib prefix is needed.
30437 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
30439 # The name of the directory that contains temporary libtool files.
30442 # Shell to use when invoking shell scripts.
30445 # An echo program that does not interpret backslashes.
30448 # Used to examine libraries when file_magic_cmd begins with "file".
30449 MAGIC_CMD=$MAGIC_CMD
30451 # Must we lock files when doing compilation?
30452 need_locks=$lt_need_locks
30454 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
30455 DSYMUTIL=$lt_DSYMUTIL
30457 # Tool to change global to local symbols on Mac OS X.
30460 # Tool to manipulate fat objects and archives on Mac OS X.
30463 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
30466 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
30467 OTOOL64=$lt_OTOOL64
30469 # Old archive suffix (normally "a").
30472 # Shared library suffix (normally ".so").
30473 shrext_cmds=$lt_shrext_cmds
30475 # The commands to extract the exported symbol list from a shared archive.
30476 extract_expsyms_cmds=$lt_extract_expsyms_cmds
30478 # Variables whose values should be saved in libtool wrapper scripts and
30479 # restored at link time.
30480 variables_saved_for_relink=$lt_variables_saved_for_relink
30482 # Do we need the "lib" prefix for modules?
30483 need_lib_prefix=$need_lib_prefix
30485 # Do we need a version for libraries?
30486 need_version=$need_version
30488 # Library versioning type.
30489 version_type=$version_type
30491 # Shared library runtime path variable.
30492 runpath_var=$runpath_var
30494 # Shared library path variable.
30495 shlibpath_var=$shlibpath_var
30497 # Is shlibpath searched before the hard-coded library search path?
30498 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
30500 # Format of library name prefix.
30501 libname_spec=$lt_libname_spec
30503 # List of archive names. First name is the real one, the rest are links.
30504 # The last name is the one that the linker finds with -lNAME
30505 library_names_spec=$lt_library_names_spec
30507 # The coded name of the library, if different from the real name.
30508 soname_spec=$lt_soname_spec
30510 # Command to use after installation of a shared archive.
30511 postinstall_cmds=$lt_postinstall_cmds
30513 # Command to use after uninstallation of a shared archive.
30514 postuninstall_cmds=$lt_postuninstall_cmds
30516 # Commands used to finish a libtool library installation in a directory.
30517 finish_cmds=$lt_finish_cmds
30519 # As "finish_cmds", except a single script fragment to be evaled but
30521 finish_eval=$lt_finish_eval
30523 # Whether we should hardcode library paths into libraries.
30524 hardcode_into_libs=$hardcode_into_libs
30526 # Compile-time system search path for libraries.
30527 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
30529 # Run-time system search path for libraries.
30530 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
30532 # Whether dlopen is supported.
30533 dlopen_support=$enable_dlopen
30535 # Whether dlopen of programs is supported.
30536 dlopen_self=$enable_dlopen_self
30538 # Whether dlopen of statically linked programs is supported.
30539 dlopen_self_static=$enable_dlopen_self_static
30541 # Commands to strip libraries.
30542 old_striplib=$lt_old_striplib
30543 striplib=$lt_striplib
30546 # The linker used to build libraries.
30549 # Commands used to build an old-style archive.
30550 old_archive_cmds=$lt_old_archive_cmds
30552 # A language specific compiler.
30555 # Is the compiler the GNU compiler?
30558 # Compiler flag to turn off builtin functions.
30559 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
30561 # How to pass a linker flag through the compiler.
30562 wl=$lt_lt_prog_compiler_wl
30564 # Additional compiler flags for building library objects.
30565 pic_flag=$lt_lt_prog_compiler_pic
30567 # Compiler flag to prevent dynamic linking.
30568 link_static_flag=$lt_lt_prog_compiler_static
30570 # Does compiler simultaneously support -c and -o options?
30571 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
30573 # Whether or not to add -lc for building shared libraries.
30574 build_libtool_need_lc=$archive_cmds_need_lc
30576 # Whether or not to disallow shared libs when runtime libs are static.
30577 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
30579 # Compiler flag to allow reflexive dlopens.
30580 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
30582 # Compiler flag to generate shared objects directly from archives.
30583 whole_archive_flag_spec=$lt_whole_archive_flag_spec
30585 # Whether the compiler copes with passing no objects directly.
30586 compiler_needs_object=$lt_compiler_needs_object
30588 # Create an old-style archive from a shared archive.
30589 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
30591 # Create a temporary old-style archive to link instead of a shared archive.
30592 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
30594 # Commands used to build a shared archive.
30595 archive_cmds=$lt_archive_cmds
30596 archive_expsym_cmds=$lt_archive_expsym_cmds
30598 # Commands used to build a loadable module if different from building
30599 # a shared archive.
30600 module_cmds=$lt_module_cmds
30601 module_expsym_cmds=$lt_module_expsym_cmds
30603 # Whether we are building with GNU ld or not.
30604 with_gnu_ld=$lt_with_gnu_ld
30606 # Flag that allows shared libraries with undefined symbols to be built.
30607 allow_undefined_flag=$lt_allow_undefined_flag
30609 # Flag that enforces no undefined symbols.
30610 no_undefined_flag=$lt_no_undefined_flag
30612 # Flag to hardcode \$libdir into a binary during linking.
30613 # This must work even if \$libdir does not exist
30614 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
30616 # If ld is used when linking, flag to hardcode \$libdir into a binary
30617 # during linking. This must work even if \$libdir does not exist.
30618 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
30620 # Whether we need a single "-rpath" flag with a separated argument.
30621 hardcode_libdir_separator=$lt_hardcode_libdir_separator
30623 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30624 # DIR into the resulting binary.
30625 hardcode_direct=$hardcode_direct
30627 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
30628 # DIR into the resulting binary and the resulting library dependency is
30629 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
30630 # library is relocated.
30631 hardcode_direct_absolute=$hardcode_direct_absolute
30633 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
30634 # into the resulting binary.
30635 hardcode_minus_L=$hardcode_minus_L
30637 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
30638 # into the resulting binary.
30639 hardcode_shlibpath_var=$hardcode_shlibpath_var
30641 # Set to "yes" if building a shared library automatically hardcodes DIR
30642 # into the library and all subsequent libraries and executables linked
30644 hardcode_automatic=$hardcode_automatic
30646 # Set to yes if linker adds runtime paths of dependent libraries
30647 # to runtime path list.
30648 inherit_rpath=$inherit_rpath
30650 # Whether libtool must link a program against all its dependency libraries.
30651 link_all_deplibs=$link_all_deplibs
30653 # Fix the shell variable \$srcfile for the compiler.
30654 fix_srcfile_path=$lt_fix_srcfile_path
30656 # Set to "yes" if exported symbols are required.
30657 always_export_symbols=$always_export_symbols
30659 # The commands to list exported symbols.
30660 export_symbols_cmds=$lt_export_symbols_cmds
30662 # Symbols that should not be listed in the preloaded symbols.
30663 exclude_expsyms=$lt_exclude_expsyms
30665 # Symbols that must always be exported.
30666 include_expsyms=$lt_include_expsyms
30668 # Commands necessary for linking programs (against libraries) with templates.
30669 prelink_cmds=$lt_prelink_cmds
30671 # Specify filename containing input files.
30672 file_list_spec=$lt_file_list_spec
30674 # How to hardcode a shared library path into an executable.
30675 hardcode_action=$hardcode_action
30677 # The directories searched by this compiler when creating a shared library.
30678 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
30680 # Dependencies to place before and after the objects being linked to
30681 # create a shared library.
30682 predep_objects=$lt_predep_objects
30683 postdep_objects=$lt_postdep_objects
30684 predeps=$lt_predeps
30685 postdeps=$lt_postdeps
30687 # The library search path used internally by the compiler when linking
30688 # a shared library.
30689 compiler_lib_search_path=$lt_compiler_lib_search_path
30691 # ### END LIBTOOL CONFIG
30697 cat <<\_LT_EOF >> "$cfgfile"
30698 # AIX sometimes has problems with the GCC collect2 program. For some
30699 # reason, if we set the COLLECT_NAMES environment variable, the problems
30700 # vanish in a puff of smoke.
30701 if test "X${COLLECT_NAMES+set}" != Xset; then
30703 export COLLECT_NAMES
30710 ltmain="$ac_aux_dir/ltmain.sh"
30713 # We use sed instead of cat because bash on DJGPP gets confused if
30714 # if finds mixed CR/LF and LF-only lines. Since sed operates in
30715 # text mode, it properly converts lines to CR/LF. This bash problem
30716 # is reportedly fixed, but why not run on old versions too?
30717 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
30718 || (rm -f "$cfgfile"; exit 1)
30722 cat << \_LT_EOF >> "$cfgfile"
30724 # func_dirname file append nondir_replacement
30725 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
30726 # otherwise set result to NONDIR_REPLACEMENT.
30730 */*) func_dirname_result="${1%/*}${2}" ;;
30731 * ) func_dirname_result="${3}" ;;
30735 # func_basename file
30738 func_basename_result="${1##*/}"
30741 # func_dirname_and_basename file append nondir_replacement
30742 # perform func_basename and func_dirname in a single function
30744 # dirname: Compute the dirname of FILE. If nonempty,
30745 # add APPEND to the result, otherwise set result
30746 # to NONDIR_REPLACEMENT.
30747 # value returned in "$func_dirname_result"
30748 # basename: Compute filename of FILE.
30749 # value retuned in "$func_basename_result"
30750 # Implementation must be kept synchronized with func_dirname
30751 # and func_basename. For efficiency, we do not delegate to
30752 # those functions but instead duplicate the functionality here.
30753 func_dirname_and_basename ()
30756 */*) func_dirname_result="${1%/*}${2}" ;;
30757 * ) func_dirname_result="${3}" ;;
30759 func_basename_result="${1##*/}"
30762 # func_stripname prefix suffix name
30763 # strip PREFIX and SUFFIX off of NAME.
30764 # PREFIX and SUFFIX must not contain globbing or regex special
30765 # characters, hashes, percent signs, but SUFFIX may contain a leading
30766 # dot (in which case that matches only a dot).
30769 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
30770 # positional parameters, so assign one to ordinary parameter first.
30771 func_stripname_result=${3}
30772 func_stripname_result=${func_stripname_result#"${1}"}
30773 func_stripname_result=${func_stripname_result%"${2}"}
30779 func_opt_split_opt=${1%%=*}
30780 func_opt_split_arg=${1#*=}
30787 *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
30788 *) func_lo2o_result=${1} ;;
30792 # func_xform libobj-or-source
30795 func_xform_result=${1%.*}.lo
30798 # func_arith arithmetic-term...
30801 func_arith_result=$(( $* ))
30805 # STRING may not start with a hyphen.
30808 func_len_result=${#1}
30813 *) # Bourne compatible functions.
30814 cat << \_LT_EOF >> "$cfgfile"
30816 # func_dirname file append nondir_replacement
30817 # Compute the dirname of FILE. If nonempty, add APPEND to the result,
30818 # otherwise set result to NONDIR_REPLACEMENT.
30821 # Extract subdirectory from the argument.
30822 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
30823 if test "X$func_dirname_result" = "X${1}"; then
30824 func_dirname_result="${3}"
30826 func_dirname_result="$func_dirname_result${2}"
30830 # func_basename file
30833 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
30837 # func_stripname prefix suffix name
30838 # strip PREFIX and SUFFIX off of NAME.
30839 # PREFIX and SUFFIX must not contain globbing or regex special
30840 # characters, hashes, percent signs, but SUFFIX may contain a leading
30841 # dot (in which case that matches only a dot).
30842 # func_strip_suffix prefix name
30846 .*) func_stripname_result=`$ECHO "X${3}" \
30847 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
30848 *) func_stripname_result=`$ECHO "X${3}" \
30849 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
30854 my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
30855 my_sed_long_arg='1s/^-[^=]*=//'
30860 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
30861 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
30867 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
30870 # func_xform libobj-or-source
30873 func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
30876 # func_arith arithmetic-term...
30879 func_arith_result=`expr "$@"`
30883 # STRING may not start with a hyphen.
30886 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
30892 case $lt_shell_append in
30894 cat << \_LT_EOF >> "$cfgfile"
30896 # func_append var value
30897 # Append VALUE to the end of shell variable VAR.
30905 cat << \_LT_EOF >> "$cfgfile"
30907 # func_append var value
30908 # Append VALUE to the end of shell variable VAR.
30919 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
30920 || (rm -f "$cfgfile"; exit 1)
30922 mv -f "$cfgfile" "$ofile" ||
30923 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
30927 cat <<_LT_EOF >> "$ofile"
30929 # ### BEGIN LIBTOOL TAG CONFIG: CXX
30931 # The linker used to build libraries.
30934 # Commands used to build an old-style archive.
30935 old_archive_cmds=$lt_old_archive_cmds_CXX
30937 # A language specific compiler.
30938 CC=$lt_compiler_CXX
30940 # Is the compiler the GNU compiler?
30943 # Compiler flag to turn off builtin functions.
30944 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
30946 # How to pass a linker flag through the compiler.
30947 wl=$lt_lt_prog_compiler_wl_CXX
30949 # Additional compiler flags for building library objects.
30950 pic_flag=$lt_lt_prog_compiler_pic_CXX
30952 # Compiler flag to prevent dynamic linking.
30953 link_static_flag=$lt_lt_prog_compiler_static_CXX
30955 # Does compiler simultaneously support -c and -o options?
30956 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
30958 # Whether or not to add -lc for building shared libraries.
30959 build_libtool_need_lc=$archive_cmds_need_lc_CXX
30961 # Whether or not to disallow shared libs when runtime libs are static.
30962 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
30964 # Compiler flag to allow reflexive dlopens.
30965 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
30967 # Compiler flag to generate shared objects directly from archives.
30968 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
30970 # Whether the compiler copes with passing no objects directly.
30971 compiler_needs_object=$lt_compiler_needs_object_CXX
30973 # Create an old-style archive from a shared archive.
30974 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
30976 # Create a temporary old-style archive to link instead of a shared archive.
30977 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
30979 # Commands used to build a shared archive.
30980 archive_cmds=$lt_archive_cmds_CXX
30981 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
30983 # Commands used to build a loadable module if different from building
30984 # a shared archive.
30985 module_cmds=$lt_module_cmds_CXX
30986 module_expsym_cmds=$lt_module_expsym_cmds_CXX
30988 # Whether we are building with GNU ld or not.
30989 with_gnu_ld=$lt_with_gnu_ld_CXX
30991 # Flag that allows shared libraries with undefined symbols to be built.
30992 allow_undefined_flag=$lt_allow_undefined_flag_CXX
30994 # Flag that enforces no undefined symbols.
30995 no_undefined_flag=$lt_no_undefined_flag_CXX
30997 # Flag to hardcode \$libdir into a binary during linking.
30998 # This must work even if \$libdir does not exist
30999 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
31001 # If ld is used when linking, flag to hardcode \$libdir into a binary
31002 # during linking. This must work even if \$libdir does not exist.
31003 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
31005 # Whether we need a single "-rpath" flag with a separated argument.
31006 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
31008 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31009 # DIR into the resulting binary.
31010 hardcode_direct=$hardcode_direct_CXX
31012 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31013 # DIR into the resulting binary and the resulting library dependency is
31014 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31015 # library is relocated.
31016 hardcode_direct_absolute=$hardcode_direct_absolute_CXX
31018 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31019 # into the resulting binary.
31020 hardcode_minus_L=$hardcode_minus_L_CXX
31022 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31023 # into the resulting binary.
31024 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
31026 # Set to "yes" if building a shared library automatically hardcodes DIR
31027 # into the library and all subsequent libraries and executables linked
31029 hardcode_automatic=$hardcode_automatic_CXX
31031 # Set to yes if linker adds runtime paths of dependent libraries
31032 # to runtime path list.
31033 inherit_rpath=$inherit_rpath_CXX
31035 # Whether libtool must link a program against all its dependency libraries.
31036 link_all_deplibs=$link_all_deplibs_CXX
31038 # Fix the shell variable \$srcfile for the compiler.
31039 fix_srcfile_path=$lt_fix_srcfile_path_CXX
31041 # Set to "yes" if exported symbols are required.
31042 always_export_symbols=$always_export_symbols_CXX
31044 # The commands to list exported symbols.
31045 export_symbols_cmds=$lt_export_symbols_cmds_CXX
31047 # Symbols that should not be listed in the preloaded symbols.
31048 exclude_expsyms=$lt_exclude_expsyms_CXX
31050 # Symbols that must always be exported.
31051 include_expsyms=$lt_include_expsyms_CXX
31053 # Commands necessary for linking programs (against libraries) with templates.
31054 prelink_cmds=$lt_prelink_cmds_CXX
31056 # Specify filename containing input files.
31057 file_list_spec=$lt_file_list_spec_CXX
31059 # How to hardcode a shared library path into an executable.
31060 hardcode_action=$hardcode_action_CXX
31062 # The directories searched by this compiler when creating a shared library.
31063 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
31065 # Dependencies to place before and after the objects being linked to
31066 # create a shared library.
31067 predep_objects=$lt_predep_objects_CXX
31068 postdep_objects=$lt_postdep_objects_CXX
31069 predeps=$lt_predeps_CXX
31070 postdeps=$lt_postdeps_CXX
31072 # The library search path used internally by the compiler when linking
31073 # a shared library.
31074 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
31076 # ### END LIBTOOL TAG CONFIG: CXX
31080 cat <<_LT_EOF >> "$ofile"
31082 # ### BEGIN LIBTOOL TAG CONFIG: F77
31084 # The linker used to build libraries.
31087 # Commands used to build an old-style archive.
31088 old_archive_cmds=$lt_old_archive_cmds_F77
31090 # A language specific compiler.
31091 CC=$lt_compiler_F77
31093 # Is the compiler the GNU compiler?
31096 # Compiler flag to turn off builtin functions.
31097 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
31099 # How to pass a linker flag through the compiler.
31100 wl=$lt_lt_prog_compiler_wl_F77
31102 # Additional compiler flags for building library objects.
31103 pic_flag=$lt_lt_prog_compiler_pic_F77
31105 # Compiler flag to prevent dynamic linking.
31106 link_static_flag=$lt_lt_prog_compiler_static_F77
31108 # Does compiler simultaneously support -c and -o options?
31109 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
31111 # Whether or not to add -lc for building shared libraries.
31112 build_libtool_need_lc=$archive_cmds_need_lc_F77
31114 # Whether or not to disallow shared libs when runtime libs are static.
31115 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
31117 # Compiler flag to allow reflexive dlopens.
31118 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
31120 # Compiler flag to generate shared objects directly from archives.
31121 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
31123 # Whether the compiler copes with passing no objects directly.
31124 compiler_needs_object=$lt_compiler_needs_object_F77
31126 # Create an old-style archive from a shared archive.
31127 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
31129 # Create a temporary old-style archive to link instead of a shared archive.
31130 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
31132 # Commands used to build a shared archive.
31133 archive_cmds=$lt_archive_cmds_F77
31134 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
31136 # Commands used to build a loadable module if different from building
31137 # a shared archive.
31138 module_cmds=$lt_module_cmds_F77
31139 module_expsym_cmds=$lt_module_expsym_cmds_F77
31141 # Whether we are building with GNU ld or not.
31142 with_gnu_ld=$lt_with_gnu_ld_F77
31144 # Flag that allows shared libraries with undefined symbols to be built.
31145 allow_undefined_flag=$lt_allow_undefined_flag_F77
31147 # Flag that enforces no undefined symbols.
31148 no_undefined_flag=$lt_no_undefined_flag_F77
31150 # Flag to hardcode \$libdir into a binary during linking.
31151 # This must work even if \$libdir does not exist
31152 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
31154 # If ld is used when linking, flag to hardcode \$libdir into a binary
31155 # during linking. This must work even if \$libdir does not exist.
31156 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
31158 # Whether we need a single "-rpath" flag with a separated argument.
31159 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
31161 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31162 # DIR into the resulting binary.
31163 hardcode_direct=$hardcode_direct_F77
31165 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
31166 # DIR into the resulting binary and the resulting library dependency is
31167 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
31168 # library is relocated.
31169 hardcode_direct_absolute=$hardcode_direct_absolute_F77
31171 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
31172 # into the resulting binary.
31173 hardcode_minus_L=$hardcode_minus_L_F77
31175 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
31176 # into the resulting binary.
31177 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
31179 # Set to "yes" if building a shared library automatically hardcodes DIR
31180 # into the library and all subsequent libraries and executables linked
31182 hardcode_automatic=$hardcode_automatic_F77
31184 # Set to yes if linker adds runtime paths of dependent libraries
31185 # to runtime path list.
31186 inherit_rpath=$inherit_rpath_F77
31188 # Whether libtool must link a program against all its dependency libraries.
31189 link_all_deplibs=$link_all_deplibs_F77
31191 # Fix the shell variable \$srcfile for the compiler.
31192 fix_srcfile_path=$lt_fix_srcfile_path_F77
31194 # Set to "yes" if exported symbols are required.
31195 always_export_symbols=$always_export_symbols_F77
31197 # The commands to list exported symbols.
31198 export_symbols_cmds=$lt_export_symbols_cmds_F77
31200 # Symbols that should not be listed in the preloaded symbols.
31201 exclude_expsyms=$lt_exclude_expsyms_F77
31203 # Symbols that must always be exported.
31204 include_expsyms=$lt_include_expsyms_F77
31206 # Commands necessary for linking programs (against libraries) with templates.
31207 prelink_cmds=$lt_prelink_cmds_F77
31209 # Specify filename containing input files.
31210 file_list_spec=$lt_file_list_spec_F77
31212 # How to hardcode a shared library path into an executable.
31213 hardcode_action=$hardcode_action_F77
31215 # The directories searched by this compiler when creating a shared library.
31216 compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77
31218 # Dependencies to place before and after the objects being linked to
31219 # create a shared library.
31220 predep_objects=$lt_predep_objects_F77
31221 postdep_objects=$lt_postdep_objects_F77
31222 predeps=$lt_predeps_F77
31223 postdeps=$lt_postdeps_F77
31225 # The library search path used internally by the compiler when linking
31226 # a shared library.
31227 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
31229 # ### END LIBTOOL TAG CONFIG: F77
31240 ac_clean_files=$ac_clean_files_save
31242 test $ac_write_fail = 0 ||
31243 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
31246 # configure is writing to config.log, and then calls config.status.
31247 # config.status does its own redirection, appending to config.log.
31248 # Unfortunately, on DOS this fails, as config.log is still kept open
31249 # by configure, so config.status won't be able to write to it; its
31250 # output is simply discarded. So we exec the FD to /dev/null,
31251 # effectively closing config.log, so it can be properly (re)opened and
31252 # appended to by config.status. When coming back to configure, we
31253 # need to make the FD available again.
31254 if test "$no_create" != yes; then
31256 ac_config_status_args=
31257 test "$silent" = yes &&
31258 ac_config_status_args="$ac_config_status_args --quiet"
31260 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
31262 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
31263 # would make configure fail if this is the last instruction.
31264 $ac_cs_success || as_fn_exit $?
31266 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
31267 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
31268 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}