2 # From configure.in Revision.
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for GNU MP 4.3.1.
6 # Report bugs to <gmp-bugs@gmplib.org>.
10 # Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
11 # 2007 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/.
29 # Copyright (C) 2003 Free Software Foundation, Inc.
30 # This configure script is free software; the Free Software Foundation
31 # gives unlimited permission to copy, distribute and modify it.
32 ## --------------------- ##
33 ## M4sh Initialization. ##
34 ## --------------------- ##
36 # Be Bourne compatible
37 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
40 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
41 # is contrary to our usage. Disable this feature.
42 alias -g '${1+"$@"}'='"$@"'
43 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
46 DUALCASE
=1; export DUALCASE
# for MKS sh
48 # Support unset when possible.
49 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
56 # Work around bugs in pre-3.0 UWIN ksh.
57 $as_unset ENV MAIL MAILPATH
64 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
65 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
68 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
69 eval $as_var=C
; export $as_var
75 # Required to use basename.
76 if expr a
: '\(a\)' >/dev
/null
2>&1; then
82 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
89 # Name of the executable.
90 as_me
=`$as_basename "$0" ||
91 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
92 X"$0" : 'X\(//\)$' \| \
93 X"$0" : 'X\(/\)$' \| \
94 . : '\(.\)' 2>/dev/null ||
96 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
97 /^X\/\(\/\/\)$/{ s//\1/; q; }
98 /^X\/\(\/\).*/{ s//\1/; q; }
102 # PATH needs CR, and LINENO needs CR and PATH.
103 # Avoid depending upon Character Ranges.
104 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
105 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
106 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
107 as_cr_digits
='0123456789'
108 as_cr_alnum
=$as_cr_Letters$as_cr_digits
110 # The user is always right.
111 if test "${PATH_SEPARATOR+set}" != set; then
112 echo "#! /bin/sh" >conf$$.sh
113 echo "exit 0" >>conf$$.sh
115 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
126 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
127 test "x$as_lineno_1" != "x$as_lineno_2" &&
128 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
129 # Find who we are. Look in the path if we contain no path at all
132 *[\\/]* ) as_myself
=$0 ;;
133 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
137 test -z "$as_dir" && as_dir
=.
138 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
143 # We did not find ourselves, most probably we were run as `sh COMMAND'
144 # in which case we are not to be found in the path.
145 if test "x$as_myself" = x
; then
148 if test ! -f "$as_myself"; then
149 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
150 { (exit 1); exit 1; }; }
152 case $CONFIG_SHELL in
154 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
155 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
158 test -z "$as_dir" && as_dir
=.
159 for as_base
in sh bash ksh sh5
; do
162 if ("$as_dir/$as_base" -c '
165 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
166 test "x$as_lineno_1" != "x$as_lineno_2" &&
167 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
168 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
169 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
170 CONFIG_SHELL
=$as_dir/$as_base
172 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
180 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
181 # uniformly replaced by the line number. The first 'sed' inserts a
182 # line-number line before each line; the second 'sed' does the real
183 # work. The second script uses 'N' to pair each line-number line
184 # with the numbered line, and appends trailing '-' during
185 # substitution so that $LINENO is not a special case at line end.
186 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
187 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
188 sed '=' <$as_myself |
193 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
196 s,^['$as_cr_digits']*\n,,
198 chmod +x
$as_me.lineno ||
199 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
200 { (exit 1); exit 1; }; }
202 # Don't try to exec as it changes $[0], causing all sort of problems
203 # (the dirname of $[0] is not the place where we might find the
204 # original and so on. Autoconf is especially sensible to this).
206 # Exit status is that of the last command.
211 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
212 *c
*,-n*) ECHO_N
= ECHO_C
='
214 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
215 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
218 if expr a
: '\(a\)' >/dev
/null
2>&1; then
224 rm -f conf$$ conf$$.exe conf$$.
file
226 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
227 # We could just check for DJGPP; but this test a) works b) is more generic
228 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
229 if test -f conf$$.exe
; then
230 # Don't use ln at all; we don't have any links
235 elif ln conf$$.
file conf$$
2>/dev
/null
; then
240 rm -f conf$$ conf$$.exe conf$$.
file
242 if mkdir
-p .
2>/dev
/null
; then
245 test -d .
/-p && rmdir .
/-p
249 as_executable_p
="test -f"
251 # Sed expression to map a string onto a valid CPP name.
252 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
254 # Sed expression to map a string onto a valid variable name.
255 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
259 # We need space, tab and new line, in precisely that order.
269 # Check that we are running under the correct shell.
270 SHELL
=${CONFIG_SHELL-/bin/sh}
274 # Remove one level of quotation (which was required for Make).
275 ECHO
=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
280 if test "X$1" = X--no-reexec
; then
281 # Discard the --no-reexec flag, and continue.
283 elif test "X$1" = X--fallback-echo
; then
284 # Avoid inline document here, it may be left over
286 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
287 # Yippee, $echo works!
290 # Restart under the correct shell.
291 exec $SHELL "$0" --no-reexec ${1+"$@"}
294 if test "X$1" = X--fallback-echo
; then
295 # used as fallback echo
303 # The HP-UX ksh and POSIX shell print the target directory to stdout
305 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
307 if test -z "$ECHO"; then
308 if test "X${echo_test_string+set}" != Xset
; then
309 # find a string as large as possible, as long as the shell can cope with it
310 for cmd
in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
311 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
312 if (echo_test_string
=`eval $cmd`) 2>/dev
/null
&&
313 echo_test_string
=`eval $cmd` &&
314 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev
/null
321 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
322 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
323 test "X$echo_testing_string" = "X$echo_test_string"; then
326 # The Solaris, AIX, and Digital Unix default echo programs unquote
327 # backslashes. This makes it impossible to quote backslashes using
328 # echo "$something" | sed 's/\\/\\\\/g'
330 # So, first we look for a working echo in the user's PATH.
332 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
333 for dir
in $PATH /usr
/ucb
; do
335 if (test -f $dir/echo ||
test -f $dir/echo$ac_exeext) &&
336 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
337 echo_testing_string
=`($dir/echo "$echo_test_string") 2>/dev/null` &&
338 test "X$echo_testing_string" = "X$echo_test_string"; then
345 if test "X$echo" = Xecho
; then
346 # We didn't find a better echo, so look for alternatives.
347 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
348 echo_testing_string
=`(print -r "$echo_test_string") 2>/dev/null` &&
349 test "X$echo_testing_string" = "X$echo_test_string"; then
350 # This shell has a builtin print -r that does the trick.
352 elif (test -f /bin
/ksh ||
test -f /bin
/ksh
$ac_exeext) &&
353 test "X$CONFIG_SHELL" != X
/bin
/ksh
; then
354 # If we have ksh, try running configure again with it.
355 ORIGINAL_CONFIG_SHELL
=${CONFIG_SHELL-/bin/sh}
356 export ORIGINAL_CONFIG_SHELL
357 CONFIG_SHELL
=/bin
/ksh
359 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
363 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
364 echo_testing_string
=`($echo "$echo_test_string") 2>/dev/null` &&
365 test "X$echo_testing_string" = "X$echo_test_string"; then
368 elif echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
369 test "X$echo_testing_string" = 'X\t' &&
370 echo_testing_string
=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
371 test "X$echo_testing_string" = "X$echo_test_string"; then
372 CONFIG_SHELL
=$ORIGINAL_CONFIG_SHELL
374 SHELL
="$CONFIG_SHELL"
376 echo="$CONFIG_SHELL $0 --fallback-echo"
377 elif echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
378 test "X$echo_testing_string" = 'X\t' &&
379 echo_testing_string
=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
380 test "X$echo_testing_string" = "X$echo_test_string"; then
381 echo="$CONFIG_SHELL $0 --fallback-echo"
383 # maybe with a smaller string...
386 for cmd
in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
387 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev
/null
394 if test "$prev" != 'sed 50q "$0"'; then
395 echo_test_string
=`eval $prev`
396 export echo_test_string
397 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
399 # Oops. We lost completely, so just stick with echo.
408 # Copy echo and quote the copy suitably for passing to libtool from
409 # the Makefile, instead of quoting the original, which is used later.
411 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
412 ECHO
="$CONFIG_SHELL \\\$\$0 --fallback-echo"
418 tagnames
=${tagnames+${tagnames},}CXX
420 tagnames
=${tagnames+${tagnames},}F77
423 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
424 # so uname gets run too.
425 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
432 ac_default_prefix
=/usr
/local
433 ac_config_libobj_dir
=.
438 SHELL
=${CONFIG_SHELL-/bin/sh}
440 # Maximum number of lines to put in a shell here document.
441 # This variable seems obsolete. It should probably be removed, and
442 # only ac_max_sed_lines should be used.
443 : ${ac_max_here_lines=38}
445 # Identity of this package.
446 PACKAGE_NAME
='GNU MP'
447 PACKAGE_TARNAME
='gmp'
448 PACKAGE_VERSION
='4.3.1'
449 PACKAGE_STRING
='GNU MP 4.3.1'
450 PACKAGE_BUGREPORT
='gmp-bugs@gmplib.org'
452 ac_unique_file
="gmp-impl.h"
453 # Factoring default headers for most tests.
454 ac_includes_default
="\
457 # include <sys/types.h>
460 # include <sys/stat.h>
471 # if !STDC_HEADERS && HAVE_MEMORY_H
477 # include <strings.h>
480 # include <inttypes.h>
490 ac_subst_vars
='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS build build_cpu build_vendor build_os host host_cpu host_vendor host_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO AMTAR install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT WANT_MPBSD_TRUE WANT_MPBSD_FALSE GMP_NAIL_BITS ABI HAVE_HOST_CPU_FAMILY_power HAVE_HOST_CPU_FAMILY_powerpc GMP_LDFLAGS LIBGMP_LDFLAGS LIBGMPXX_LDFLAGS SPEED_CYCLECOUNTER_OBJ CALLING_CONVENTIONS_OBJS DEFN_LONG_LONG_LIMB CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CPP CC_FOR_BUILD CPP_FOR_BUILD EXEEXT_FOR_BUILD U_FOR_BUILD LIBM_FOR_BUILD CCAS CXX CXXFLAGS ac_ct_CXX WANT_CXX_TRUE WANT_CXX_FALSE CXXCPP EGREP U ANSI2KNR ASMFLAGS AR ac_ct_AR LIBGMP_DLL SED LN_S ECHO RANLIB ac_ct_RANLIB DLLTOOL ac_ct_DLLTOOL AS ac_ct_AS OBJDUMP ac_ct_OBJDUMP LIBTOOL ENABLE_STATIC_TRUE ENABLE_STATIC_FALSE LIBM TAL_OBJECT M4 BITS_PER_MP_LIMB mpn_objs_in_libmp mpn_objects mpn_objs_in_libgmp gmp_srclinks TUNE_SQR_OBJ HAVE_CLOCK_01 HAVE_CPUTIME_01 HAVE_GETRUSAGE_01 HAVE_GETTIMEOFDAY_01 HAVE_SIGACTION_01 HAVE_SIGALTSTACK_01 HAVE_SIGSTACK_01 HAVE_SYS_RESOURCE_H_01 HAVE_STACK_T_01 LIBCURSES WITH_READLINE_01 LIBREADLINE YACC LEX LEXLIB LEX_OUTPUT_ROOT LIBOBJS LTLIBOBJS'
493 # Initialize some variables set by options.
495 ac_init_version
=false
496 # The variables have the same names as the options, with
497 # dashes changed to underlines.
505 program_transform_name
=s
,x
,x
,
513 # Installation directory options.
514 # These are left unexpanded so users can "make install exec_prefix=/foo"
515 # and all the variables that are supposed to be based on exec_prefix
516 # by default will actually change.
517 # Use braces instead of parens because sh, perl, etc. also accept them.
518 bindir
='${exec_prefix}/bin'
519 sbindir
='${exec_prefix}/sbin'
520 libexecdir
='${exec_prefix}/libexec'
521 datadir
='${prefix}/share'
522 sysconfdir
='${prefix}/etc'
523 sharedstatedir
='${prefix}/com'
524 localstatedir
='${prefix}/var'
525 libdir
='${exec_prefix}/lib'
526 includedir
='${prefix}/include'
527 oldincludedir
='/usr/include'
528 infodir
='${prefix}/info'
529 mandir
='${prefix}/man'
534 # If the previous option needs an argument, assign it.
535 if test -n "$ac_prev"; then
536 eval "$ac_prev=\$ac_option"
541 ac_optarg
=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
543 # Accept the important Cygnus configure options, so we can diagnose typos.
547 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
549 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
552 -build |
--build |
--buil |
--bui |
--bu)
553 ac_prev
=build_alias
;;
554 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
555 build_alias
=$ac_optarg ;;
557 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
558 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
559 ac_prev
=cache_file
;;
560 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
561 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
562 cache_file
=$ac_optarg ;;
565 cache_file
=config.cache
;;
567 -datadir |
--datadir |
--datadi |
--datad |
--data |
--dat |
--da)
569 -datadir=* |
--datadir=* |
--datadi=* |
--datad=* |
--data=* |
--dat=* \
571 datadir
=$ac_optarg ;;
573 -disable-* |
--disable-*)
574 ac_feature
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
575 # Reject names that are not valid shell variable names.
576 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
577 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
578 { (exit 1); exit 1; }; }
579 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
580 eval "enable_$ac_feature=no" ;;
582 -enable-* |
--enable-*)
583 ac_feature
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
584 # Reject names that are not valid shell variable names.
585 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
586 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
587 { (exit 1); exit 1; }; }
588 ac_feature
=`echo $ac_feature | sed 's/-/_/g'`
590 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
593 eval "enable_$ac_feature='$ac_optarg'" ;;
595 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
596 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
597 |
--exec |
--exe |
--ex)
598 ac_prev
=exec_prefix
;;
599 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
600 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
601 |
--exec=* |
--exe=* |
--ex=*)
602 exec_prefix
=$ac_optarg ;;
604 -gas |
--gas |
--ga |
--g)
605 # Obsolete; use --with-gas.
608 -help |
--help |
--hel |
--he |
-h)
610 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
611 ac_init_help
=recursive
;;
612 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
613 ac_init_help
=short
;;
615 -host |
--host |
--hos |
--ho)
616 ac_prev
=host_alias
;;
617 -host=* |
--host=* |
--hos=* |
--ho=*)
618 host_alias
=$ac_optarg ;;
620 -includedir |
--includedir |
--includedi |
--included |
--include \
621 |
--includ |
--inclu |
--incl |
--inc)
622 ac_prev
=includedir
;;
623 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
624 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
625 includedir
=$ac_optarg ;;
627 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
629 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
630 infodir
=$ac_optarg ;;
632 -libdir |
--libdir |
--libdi |
--libd)
634 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
637 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
638 |
--libexe |
--libex |
--libe)
639 ac_prev
=libexecdir
;;
640 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
641 |
--libexe=* |
--libex=* |
--libe=*)
642 libexecdir
=$ac_optarg ;;
644 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
645 |
--localstate |
--localstat |
--localsta |
--localst \
646 |
--locals |
--local |
--loca |
--loc |
--lo)
647 ac_prev
=localstatedir
;;
648 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
649 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* \
650 |
--locals=* |
--local=* |
--loca=* |
--loc=* |
--lo=*)
651 localstatedir
=$ac_optarg ;;
653 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
655 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
659 # Obsolete; use --without-fp.
662 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
663 |
--no-cr |
--no-c |
-n)
666 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
667 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
670 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
671 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
672 |
--oldin |
--oldi |
--old |
--ol |
--o)
673 ac_prev
=oldincludedir
;;
674 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
675 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
676 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
677 oldincludedir
=$ac_optarg ;;
679 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
681 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
684 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
685 |
--program-pre |
--program-pr |
--program-p)
686 ac_prev
=program_prefix
;;
687 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
688 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
689 program_prefix
=$ac_optarg ;;
691 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
692 |
--program-suf |
--program-su |
--program-s)
693 ac_prev
=program_suffix
;;
694 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
695 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
696 program_suffix
=$ac_optarg ;;
698 -program-transform-name |
--program-transform-name \
699 |
--program-transform-nam |
--program-transform-na \
700 |
--program-transform-n |
--program-transform- \
701 |
--program-transform |
--program-transfor \
702 |
--program-transfo |
--program-transf \
703 |
--program-trans |
--program-tran \
704 |
--progr-tra |
--program-tr |
--program-t)
705 ac_prev
=program_transform_name
;;
706 -program-transform-name=* |
--program-transform-name=* \
707 |
--program-transform-nam=* |
--program-transform-na=* \
708 |
--program-transform-n=* |
--program-transform-=* \
709 |
--program-transform=* |
--program-transfor=* \
710 |
--program-transfo=* |
--program-transf=* \
711 |
--program-trans=* |
--program-tran=* \
712 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
713 program_transform_name
=$ac_optarg ;;
715 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
716 |
-silent |
--silent |
--silen |
--sile |
--sil)
719 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
721 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
723 sbindir
=$ac_optarg ;;
725 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
726 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
727 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
729 ac_prev
=sharedstatedir
;;
730 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
731 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
732 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
734 sharedstatedir
=$ac_optarg ;;
736 -site |
--site |
--sit)
738 -site=* |
--site=* |
--sit=*)
741 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
743 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
746 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
747 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
748 ac_prev
=sysconfdir
;;
749 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
750 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
751 sysconfdir
=$ac_optarg ;;
753 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
754 ac_prev
=target_alias
;;
755 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
756 target_alias
=$ac_optarg ;;
758 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
761 -version |
--version |
--versio |
--versi |
--vers |
-V)
765 ac_package
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
766 # Reject names that are not valid shell variable names.
767 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
768 { echo "$as_me: error: invalid package name: $ac_package" >&2
769 { (exit 1); exit 1; }; }
770 ac_package
=`echo $ac_package| sed 's/-/_/g'`
772 *=*) ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
775 eval "with_$ac_package='$ac_optarg'" ;;
777 -without-* |
--without-*)
778 ac_package
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
779 # Reject names that are not valid shell variable names.
780 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev
/null
&&
781 { echo "$as_me: error: invalid package name: $ac_package" >&2
782 { (exit 1); exit 1; }; }
783 ac_package
=`echo $ac_package | sed 's/-/_/g'`
784 eval "with_$ac_package=no" ;;
787 # Obsolete; use --with-x.
790 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
791 |
--x-incl |
--x-inc |
--x-in |
--x-i)
792 ac_prev
=x_includes
;;
793 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
794 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
795 x_includes
=$ac_optarg ;;
797 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
798 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
799 ac_prev
=x_libraries
;;
800 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
801 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
802 x_libraries
=$ac_optarg ;;
804 -*) { echo "$as_me: error: unrecognized option: $ac_option
805 Try \`$0 --help' for more information." >&2
806 { (exit 1); exit 1; }; }
810 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
811 # Reject names that are not valid shell variable names.
812 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev
/null
&&
813 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
814 { (exit 1); exit 1; }; }
815 ac_optarg
=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
816 eval "$ac_envvar='$ac_optarg'"
820 # FIXME: should be removed in autoconf 3.0.
821 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
822 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
823 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
824 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
830 if test -n "$ac_prev"; then
831 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
832 { echo "$as_me: error: missing argument to $ac_option" >&2
833 { (exit 1); exit 1; }; }
836 # Be sure to have absolute paths.
837 for ac_var
in exec_prefix prefix
839 eval ac_val
=$
`echo $ac_var`
841 [\\/$
]* | ?
:[\\/]* | NONE |
'' ) ;;
842 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
843 { (exit 1); exit 1; }; };;
847 # Be sure to have absolute paths.
848 for ac_var
in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
849 localstatedir libdir includedir oldincludedir infodir mandir
851 eval ac_val
=$
`echo $ac_var`
853 [\\/$
]* | ?
:[\\/]* ) ;;
854 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
855 { (exit 1); exit 1; }; };;
859 # There might be people who depend on the old broken behavior: `$host'
860 # used to hold the argument of --host etc.
861 # FIXME: To remove some day.
866 # FIXME: To remove some day.
867 if test "x$host_alias" != x
; then
868 if test "x$build_alias" = x
; then
869 cross_compiling
=maybe
870 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
871 If a cross compiler is detected then cross compile mode will be used." >&2
872 elif test "x$build_alias" != "x$host_alias"; then
878 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
880 test "$silent" = yes && exec 6>/dev
/null
883 # Find the source files, if location was not specified.
884 if test -z "$srcdir"; then
885 ac_srcdir_defaulted
=yes
886 # Try the directory containing this script, then its parent.
887 ac_confdir
=`(dirname "$0") 2>/dev/null ||
888 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
889 X"$0" : 'X\(//\)[^/]' \| \
890 X"$0" : 'X\(//\)$' \| \
891 X"$0" : 'X\(/\)' \| \
892 . : '\(.\)' 2>/dev/null ||
894 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
895 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
896 /^X\(\/\/\)$/{ s//\1/; q; }
897 /^X\(\/\).*/{ s//\1/; q; }
900 if test ! -r $srcdir/$ac_unique_file; then
904 ac_srcdir_defaulted
=no
906 if test ! -r $srcdir/$ac_unique_file; then
907 if test "$ac_srcdir_defaulted" = yes; then
908 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
909 { (exit 1); exit 1; }; }
911 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
912 { (exit 1); exit 1; }; }
915 (cd $srcdir && test -r .
/$ac_unique_file) 2>/dev
/null ||
916 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
917 { (exit 1); exit 1; }; }
918 srcdir
=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
919 ac_env_build_alias_set
=${build_alias+set}
920 ac_env_build_alias_value
=$build_alias
921 ac_cv_env_build_alias_set
=${build_alias+set}
922 ac_cv_env_build_alias_value
=$build_alias
923 ac_env_host_alias_set
=${host_alias+set}
924 ac_env_host_alias_value
=$host_alias
925 ac_cv_env_host_alias_set
=${host_alias+set}
926 ac_cv_env_host_alias_value
=$host_alias
927 ac_env_target_alias_set
=${target_alias+set}
928 ac_env_target_alias_value
=$target_alias
929 ac_cv_env_target_alias_set
=${target_alias+set}
930 ac_cv_env_target_alias_value
=$target_alias
931 ac_env_ABI_set
=${ABI+set}
932 ac_env_ABI_value
=$ABI
933 ac_cv_env_ABI_set
=${ABI+set}
934 ac_cv_env_ABI_value
=$ABI
935 ac_env_CC_set
=${CC+set}
937 ac_cv_env_CC_set
=${CC+set}
938 ac_cv_env_CC_value
=$CC
939 ac_env_CFLAGS_set
=${CFLAGS+set}
940 ac_env_CFLAGS_value
=$CFLAGS
941 ac_cv_env_CFLAGS_set
=${CFLAGS+set}
942 ac_cv_env_CFLAGS_value
=$CFLAGS
943 ac_env_LDFLAGS_set
=${LDFLAGS+set}
944 ac_env_LDFLAGS_value
=$LDFLAGS
945 ac_cv_env_LDFLAGS_set
=${LDFLAGS+set}
946 ac_cv_env_LDFLAGS_value
=$LDFLAGS
947 ac_env_CPPFLAGS_set
=${CPPFLAGS+set}
948 ac_env_CPPFLAGS_value
=$CPPFLAGS
949 ac_cv_env_CPPFLAGS_set
=${CPPFLAGS+set}
950 ac_cv_env_CPPFLAGS_value
=$CPPFLAGS
951 ac_env_CPP_set
=${CPP+set}
952 ac_env_CPP_value
=$CPP
953 ac_cv_env_CPP_set
=${CPP+set}
954 ac_cv_env_CPP_value
=$CPP
955 ac_env_CC_FOR_BUILD_set
=${CC_FOR_BUILD+set}
956 ac_env_CC_FOR_BUILD_value
=$CC_FOR_BUILD
957 ac_cv_env_CC_FOR_BUILD_set
=${CC_FOR_BUILD+set}
958 ac_cv_env_CC_FOR_BUILD_value
=$CC_FOR_BUILD
959 ac_env_CPP_FOR_BUILD_set
=${CPP_FOR_BUILD+set}
960 ac_env_CPP_FOR_BUILD_value
=$CPP_FOR_BUILD
961 ac_cv_env_CPP_FOR_BUILD_set
=${CPP_FOR_BUILD+set}
962 ac_cv_env_CPP_FOR_BUILD_value
=$CPP_FOR_BUILD
963 ac_env_CXX_set
=${CXX+set}
964 ac_env_CXX_value
=$CXX
965 ac_cv_env_CXX_set
=${CXX+set}
966 ac_cv_env_CXX_value
=$CXX
967 ac_env_CXXFLAGS_set
=${CXXFLAGS+set}
968 ac_env_CXXFLAGS_value
=$CXXFLAGS
969 ac_cv_env_CXXFLAGS_set
=${CXXFLAGS+set}
970 ac_cv_env_CXXFLAGS_value
=$CXXFLAGS
971 ac_env_CXXCPP_set
=${CXXCPP+set}
972 ac_env_CXXCPP_value
=$CXXCPP
973 ac_cv_env_CXXCPP_set
=${CXXCPP+set}
974 ac_cv_env_CXXCPP_value
=$CXXCPP
975 ac_env_M4_set
=${M4+set}
977 ac_cv_env_M4_set
=${M4+set}
978 ac_cv_env_M4_value
=$M4
981 # Report the --help message.
983 if test "$ac_init_help" = "long"; then
984 # Omit some internal or obsolete options to make the list less imposing.
985 # This message is too long to be a string in the A/UX 3.1 sh.
987 \`configure' configures GNU MP 4.3.1 to adapt to many kinds of systems.
989 Usage: $0 [OPTION]... [VAR=VALUE]...
991 To assign environment variables (e.g., CC, CFLAGS...), specify them as
992 VAR=VALUE. See below for descriptions of some of the useful variables.
994 Defaults for the options are specified in brackets.
997 -h, --help display this help and exit
998 --help=short display options specific to this package
999 --help=recursive display the short help of all the included packages
1000 -V, --version display version information and exit
1001 -q, --quiet, --silent do not print \`checking...' messages
1002 --cache-file=FILE cache test results in FILE [disabled]
1003 -C, --config-cache alias for \`--cache-file=config.cache'
1004 -n, --no-create do not create output files
1005 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1010 Installation directories:
1011 --prefix=PREFIX install architecture-independent files in PREFIX
1012 [$ac_default_prefix]
1013 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1016 By default, \`make install' will install all the files in
1017 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1018 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1019 for instance \`--prefix=\$HOME'.
1021 For better control, use the options below.
1023 Fine tuning of the installation directories:
1024 --bindir=DIR user executables [EPREFIX/bin]
1025 --sbindir=DIR system admin executables [EPREFIX/sbin]
1026 --libexecdir=DIR program executables [EPREFIX/libexec]
1027 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1028 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1029 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1030 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1031 --libdir=DIR object code libraries [EPREFIX/lib]
1032 --includedir=DIR C header files [PREFIX/include]
1033 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1034 --infodir=DIR info documentation [PREFIX/info]
1035 --mandir=DIR man documentation [PREFIX/man]
1041 --program-prefix=PREFIX prepend PREFIX to installed program names
1042 --program-suffix=SUFFIX append SUFFIX to installed program names
1043 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1046 --build=BUILD configure
for building on BUILD
[guessed
]
1047 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1051 if test -n "$ac_init_help"; then
1052 case $ac_init_help in
1053 short | recursive
) echo "Configuration of GNU MP 4.3.1:";;
1058 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1059 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1060 --enable-maintainer-mode enable make rules and dependencies not useful
1061 (and sometimes confusing
) to the casual installer
1062 --enable-assert enable ASSERT checking
[default
=no
]
1063 --enable-alloca how to get temp memory
[default
=reentrant
]
1064 --enable-cxx enable C
++ support
[default
=no
]
1065 --enable-fft enable FFTs
for multiplication
[default
=yes]
1066 --enable-mpbsd build Berkeley MP compatibility library
1068 --enable-nails use nails on limbs
[default
=no
]
1069 --enable-profiling build with profiler support
[default
=no
]
1070 --enable-fat build a fat binary on systems that support it
1072 --enable-minithres choose minimal thresholds
for testing
[default
=no
]
1073 --enable-shared[=PKGS
]
1074 build shared libraries
[default
=yes]
1075 --enable-static[=PKGS
]
1076 build static libraries
[default
=yes]
1077 --enable-fast-install[=PKGS
]
1078 optimize
for fast installation
[default
=yes]
1079 --disable-libtool-lock avoid locking
(might
break parallel builds
)
1082 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1083 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1084 --with-readline readline support
in calc demo program
1086 --with-gnu-ld assume the C compiler uses GNU ld
[default
=no
]
1087 --with-pic try to use only PIC
/non-PIC objects
[default
=use
1090 include additional configurations
[automatic
]
1092 Some influential environment variables
:
1093 ABI desired ABI
(for processors supporting
more than one ABI
)
1094 CC C compiler
command
1095 CFLAGS C compiler flags
1096 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1097 nonstandard directory
<lib dir
>
1098 CPPFLAGS C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if you have
1099 headers
in a nonstandard directory
<include dir
>
1102 build system C compiler
1104 build system C preprocessor
1105 CXX C
++ compiler
command
1106 CXXFLAGS C
++ compiler flags
1107 CXXCPP C
++ preprocessor
1108 M4
m4 macro processor
1110 Use these variables to override the choices made by
`configure' or to help
1111 it to find libraries and programs with nonstandard names/locations.
1113 Report bugs to <gmp-bugs@gmplib.org>.
1117 if test "$ac_init_help" = "recursive"; then
1118 # If there are subdirs, report their specific --help.
1120 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1121 test -d $ac_dir || continue
1124 if test "$ac_dir" != .; then
1125 ac_dir_suffix=/`echo "$ac_dir" |
sed 's,^\.[\\/],,'`
1126 # A "../" for each directory in $ac_dir_suffix.
1127 ac_top_builddir=`echo "$ac_dir_suffix" |
sed 's,/[^\\/]*,../,g'`
1129 ac_dir_suffix= ac_top_builddir=
1133 .) # No --srcdir option. We are building in place.
1135 if test -z "$ac_top_builddir"; then
1138 ac_top_srcdir=`echo $ac_top_builddir |
sed 's,/$,,'`
1140 [\\/]* | ?:[\\/]* ) # Absolute path.
1141 ac_srcdir=$srcdir$ac_dir_suffix;
1142 ac_top_srcdir=$srcdir ;;
1144 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1145 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1148 # Do not use `cd foo
&& pwd` to compute absolute paths, because
1149 # the directories may not exist.
1151 .) ac_abs_builddir="$ac_dir";;
1154 .) ac_abs_builddir=`pwd`;;
1155 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1156 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1159 case $ac_abs_builddir in
1160 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1162 case ${ac_top_builddir}. in
1163 .) ac_abs_top_builddir=$ac_abs_builddir;;
1164 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1165 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1168 case $ac_abs_builddir in
1169 .) ac_abs_srcdir=$ac_srcdir;;
1172 .) ac_abs_srcdir=$ac_abs_builddir;;
1173 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1174 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1177 case $ac_abs_builddir in
1178 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1180 case $ac_top_srcdir in
1181 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1182 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1183 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1188 # Check for guested configure; otherwise get Cygnus style configure.
1189 if test -f $ac_srcdir/configure.gnu; then
1191 $SHELL $ac_srcdir/configure.gnu --help=recursive
1192 elif test -f $ac_srcdir/configure; then
1194 $SHELL $ac_srcdir/configure --help=recursive
1195 elif test -f $ac_srcdir/configure.ac ||
1196 test -f $ac_srcdir/configure.in; then
1198 $ac_configure --help
1200 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1206 test -n "$ac_init_help" && exit 0
1207 if $ac_init_version; then
1209 GNU MP configure 4.3.1
1210 generated by GNU Autoconf 2.59
1212 Copyright (C) 2003 Free Software Foundation, Inc.
1213 This configure script is free software; the Free Software Foundation
1214 gives unlimited permission to copy, distribute and modify it.
1218 Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006,
1219 2007 Free Software Foundation, Inc.
1221 This file is part of the GNU MP Library.
1223 The GNU MP Library is free software; you can redistribute it and/or modify
1224 it under the terms of the GNU Lesser General Public License as published
1225 by the Free Software Foundation; either version 3 of the License, or (at
1226 your option) any later version.
1228 The GNU MP Library is distributed in the hope that it will be useful, but
1229 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
1230 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
1231 License for more details.
1233 You should have received a copy of the GNU Lesser General Public License
1234 along with the GNU MP Library. If not, see http://www.gnu.org/licenses/.
1241 This file contains any messages produced by compilers while
1242 running configure, to aid debugging if configure makes a mistake.
1244 It was created by GNU MP $as_me 4.3.1, which was
1245 generated by GNU Autoconf 2.59. Invocation command line was
1256 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1257 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1258 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1259 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1260 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1262 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1263 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1265 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1266 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1267 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1268 hostinfo = `(hostinfo
) 2>/dev
/null ||
echo unknown
`
1269 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1270 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1271 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1279 test -z "$as_dir" && as_dir=.
1280 echo "PATH: $as_dir"
1295 # Keep a trace of the command line.
1296 # Strip out --no-create and --no-recursion so they do not pile up.
1297 # Strip out --silent because we don't want to record it for future runs.
1298 # Also quote any args containing shell meta-characters.
1299 # Make two passes to allow for proper duplicate-argument suppression.
1304 ac_must_keep_next=false
1310 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1311 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1312 | -silent | --silent | --silen | --sile | --sil)
1314 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1315 ac_arg=`echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
1318 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1320 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1321 if test $ac_must_keep_next = true; then
1322 ac_must_keep_next=false # Got value, back to normal.
1325 *=* | --config-cache | -C | -disable-* | --disable-* \
1326 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1327 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1328 | -with-* | --with-* | -without-* | --without-* | --x)
1329 case "$ac_configure_args0 " in
1330 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1333 -* ) ac_must_keep_next=true ;;
1336 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1337 # Get rid of the leading space.
1343 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1344 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1346 # When interrupted or exit'd, cleanup temporary files, and complete
1347 # config.log. We remove comments because anyway the quotes in there
1348 # would cause problems or look ugly.
1349 # WARNING: Be sure not to use single quotes in there, as some shells,
1350 # such as our DU 5.0 friend, will then `close
' the trap.
1351 trap 'exit_status
=$?
1352 # Save into config.log some information that might help in debugging.
1357 ## ---------------- ##
1358 ## Cache variables. ##
1359 ## ---------------- ##
1362 # The following way of writing the cache mishandles newlines in values,
1365 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1368 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1369 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1373 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1380 ## ----------------- ##
1381 ## Output variables. ##
1382 ## ----------------- ##
1385 for ac_var
in $ac_subst_vars
1387 eval ac_val
=$
`echo $ac_var`
1388 echo "$ac_var='"'"'$ac_val'"'"'"
1392 if test -n "$ac_subst_files"; then
1399 for ac_var
in $ac_subst_files
1401 eval ac_val
=$
`echo $ac_var`
1402 echo "$ac_var='"'"'$ac_val'"'"'"
1407 if test -s confdefs.h
; then
1414 sed "/^$/d" confdefs.h |
sort
1417 test "$ac_signal" != 0 &&
1418 echo "$as_me: caught signal $ac_signal"
1419 echo "$as_me: exit $exit_status"
1421 rm -f core
*.core
&&
1422 rm -rf conftest
* confdefs
* conf$$
* $ac_clean_files &&
1425 for ac_signal in 1 2 13 15; do
1426 trap 'ac_signal
='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1430 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1431 rm -rf conftest* confdefs.h
1432 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1435 # Predefined preprocessor variables.
1437 cat >>confdefs.h <<_ACEOF
1438 #define PACKAGE_NAME "$PACKAGE_NAME"
1442 cat >>confdefs.h <<_ACEOF
1443 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1447 cat >>confdefs.h <<_ACEOF
1448 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1452 cat >>confdefs.h <<_ACEOF
1453 #define PACKAGE_STRING "$PACKAGE_STRING"
1457 cat >>confdefs.h <<_ACEOF
1458 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1462 # Let the site file select an alternate cache file if it wants to.
1463 # Prefer explicitly selected file to automatically selected ones.
1464 if test -z "$CONFIG_SITE"; then
1465 if test "x$prefix" != xNONE; then
1466 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1468 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1471 for ac_site_file in $CONFIG_SITE; do
1472 if test -r "$ac_site_file"; then
1473 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1474 echo "$as_me: loading site script $ac_site_file" >&6;}
1475 sed 's
/^
/|
/' "$ac_site_file" >&5
1480 if test -r "$cache_file"; then
1481 # Some versions of bash will fail to source /dev/null (special
1482 # files actually), so we avoid doing that.
1483 if test -f "$cache_file"; then
1484 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1485 echo "$as_me: loading cache $cache_file" >&6;}
1487 [\\/]* | ?:[\\/]* ) . $cache_file;;
1488 *) . ./$cache_file;;
1492 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1493 echo "$as_me: creating cache $cache_file" >&6;}
1497 # Check that the precious variables saved in the cache have kept the same
1499 ac_cache_corrupted=false
1500 for ac_var in `(set) 2>&1 |
1501 sed -n 's
/^ac_env_\
([a-zA-Z_0-9
]*\
)_set
=.
*/\
1/p
'`; do
1502 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1503 eval ac_new_set=\$ac_env_${ac_var}_set
1504 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1505 eval ac_new_val="\$ac_env_${ac_var}_value"
1506 case $ac_old_set,$ac_new_set in
1508 { echo "$as_me:$LINENO: error: \`$ac_var' was
set to \
`$ac_old_val' in the previous run" >&5
1509 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&2;}
1510 ac_cache_corrupted=: ;;
1512 { echo "$as_me:$LINENO: error
: \
`$ac_var' was not set in the previous run" >&5
1513 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1514 ac_cache_corrupted=: ;;
1517 if test "x$ac_old_val" != "x$ac_new_val"; then
1518 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run
:" >&5
1519 echo "$as_me: error
: \
`$ac_var' has changed since the previous run:" >&2;}
1520 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1521 echo "$as_me: former value: $ac_old_val" >&2;}
1522 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1523 echo "$as_me: current value: $ac_new_val" >&2;}
1524 ac_cache_corrupted=:
1527 # Pass precious variables to config.status.
1528 if test "$ac_new_set" = set; then
1530 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1531 ac_arg=$ac_var=`echo "$ac_new_val" |
sed "s/'/'\\\\\\\\''/g"` ;;
1532 *) ac_arg=$ac_var=$ac_new_val ;;
1534 case " $ac_configure_args " in
1535 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1536 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1540 if $ac_cache_corrupted; then
1541 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1542 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1543 { { echo "$as_me:$LINENO: error: run \`make distclean
' and/or \`rm $cache_file' and start over
" >&5
1544 echo "$as_me: error
: run \
`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1545 { (exit 1); exit 1; }; }
1549 ac_cpp='$CPP $CPPFLAGS'
1550 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.
$ac_ext >&5'
1551 ac_link='$CC -o conftest
$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.
$ac_ext $LIBS >&5'
1552 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1588 # If --target is not used then $target_alias is empty, but if say
1589 # "./configure athlon-pc-freebsd3.5" is used, then all three of
1590 # $build_alias, $host_alias and $target_alias are set to
1591 # "athlon-pc-freebsd3.5".
1593 if test -n "$target_alias" && test "$target_alias" != "$host_alias"; then
1594 { { echo "$as_me:$LINENO: error: --target is not appropriate for GMP
1595 Use --build=CPU-VENDOR-OS if you need to specify your CPU and/or system
1596 explicitly. Use --host if cross-compiling (see \"Installing GMP\" in the
1597 manual for more on this)." >&5
1598 echo "$as_me: error: --target is not appropriate for GMP
1599 Use --build=CPU-VENDOR-OS if you need to specify your CPU and/or system
1600 explicitly. Use --host if cross-compiling (see \"Installing GMP\" in the
1601 manual for more on this)." >&2;}
1602 { (exit 1); exit 1; }; }
1605 gmp_configm4="config.m4"
1606 gmp_tmpconfigm4=cnfm4.tmp
1607 gmp_tmpconfigm4i=cnfm4i.tmp
1608 gmp_tmpconfigm4p=cnfm4p.tmp
1609 rm -f $gmp_tmpconfigm4 $gmp_tmpconfigm4i $gmp_tmpconfigm4p
1611 # CONFIG_TOP_SRCDIR is a path from the mpn builddir to the top srcdir.
1612 # The pattern here tests for an absolute path the same way as
1613 # _AC_OUTPUT_FILES in autoconf acgeneral.m4.
1615 [\\/]* | ?:[\\/]* ) tmp="$srcdir" ;;
1616 *) tmp="../$srcdir" ;;
1618 echo "define(<CONFIG_TOP_SRCDIR>,<\`$tmp'>)" >>$gmp_tmpconfigm4
1620 # All CPUs use asm-defs.m4
1621 echo "include
(CONFIG_TOP_SRCDIR\
`/mpn/asm-defs.m4')" >>$gmp_tmpconfigm4i
1625 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1626 if test -f $ac_dir/install-sh; then
1628 ac_install_sh="$ac_aux_dir/install-sh -c"
1630 elif test -f $ac_dir/install.sh; then
1632 ac_install_sh="$ac_aux_dir/install.sh -c"
1634 elif test -f $ac_dir/shtool; then
1636 ac_install_sh="$ac_aux_dir/shtool install -c"
1640 if test -z "$ac_aux_dir"; then
1641 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1642 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1643 { (exit 1); exit 1; }; }
1645 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1646 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1647 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1649 # Make sure we can run config.sub.
1650 $ac_config_sub sun4 >/dev/null 2>&1 ||
1651 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1652 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1653 { (exit 1); exit 1; }; }
1655 echo "$as_me:$LINENO: checking build system type" >&5
1656 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1657 if test "${ac_cv_build+set}" = set; then
1658 echo $ECHO_N "(cached) $ECHO_C" >&6
1660 ac_cv_build_alias=$build_alias
1661 test -z "$ac_cv_build_alias" &&
1662 ac_cv_build_alias=`$ac_config_guess`
1663 test -z "$ac_cv_build_alias" &&
1664 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1665 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1666 { (exit 1); exit 1; }; }
1667 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1668 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1669 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1670 { (exit 1); exit 1; }; }
1673 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1674 echo "${ECHO_T}$ac_cv_build" >&6
1676 build_cpu=`echo $ac_cv_build |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1677 build_vendor=`echo $ac_cv_build |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1678 build_os=`echo $ac_cv_build |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1681 echo "$as_me:$LINENO: checking host system type" >&5
1682 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1683 if test "${ac_cv_host+set}" = set; then
1684 echo $ECHO_N "(cached) $ECHO_C" >&6
1686 ac_cv_host_alias=$host_alias
1687 test -z "$ac_cv_host_alias" &&
1688 ac_cv_host_alias=$ac_cv_build_alias
1689 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1690 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1691 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1692 { (exit 1); exit 1; }; }
1695 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1696 echo "${ECHO_T}$ac_cv_host" >&6
1698 host_cpu=`echo $ac_cv_host |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1699 host_vendor=`echo $ac_cv_host |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1700 host_os=`echo $ac_cv_host |
sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1704 am__api_version="1.8"
1705 # Find a good install program. We prefer a C program (faster),
1706 # so one script is as good as another. But avoid the broken or
1707 # incompatible versions:
1708 # SysV /etc/install, /usr/sbin/install
1709 # SunOS /usr/etc/install
1710 # IRIX /sbin/install
1712 # AmigaOS /C/install, which installs bootblocks on floppy discs
1713 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1714 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1715 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1716 # OS/2's system install, which has a completely different semantic
1717 # ./install, which can be erroneously created by make from ./install.sh.
1718 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1719 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1720 if test -z "$INSTALL"; then
1721 if test "${ac_cv_path_install+set}" = set; then
1722 echo $ECHO_N "(cached) $ECHO_C" >&6
1724 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1728 test -z "$as_dir" && as_dir=.
1729 # Account for people who put trailing slashes in PATH elements.
1731 ./ | .// | /cC/* | \
1732 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1733 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1736 # OSF1 and SCO ODT 3.0 have their own names for install.
1737 # Don't use installbsd from OSF since it installs stuff as root
1739 for ac_prog in ginstall scoinst install; do
1740 for ac_exec_ext in '' $ac_executable_extensions; do
1741 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1742 if test $ac_prog = install &&
1743 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1744 # AIX install. It has an incompatible calling convention.
1746 elif test $ac_prog = install &&
1747 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1748 # program-specific install script used by HP pwplus--don't use.
1751 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1763 if test "${ac_cv_path_install+set}" = set; then
1764 INSTALL=$ac_cv_path_install
1766 # As a last resort, use the slow shell script. We don't cache a
1767 # path for INSTALL within a source directory, because that will
1768 # break other packages using the cache if that directory is
1769 # removed, or if the path is relative.
1770 INSTALL=$ac_install_sh
1773 echo "$as_me:$LINENO: result: $INSTALL" >&5
1774 echo "${ECHO_T}$INSTALL" >&6
1776 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1777 # It thinks the first close brace ends the variable substitution.
1778 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1780 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1782 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1784 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1785 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1788 echo timestamp > conftest.file
1789 # Do `set' in a subshell so we don't clobber the current shell
's
1790 # arguments. Must try -L first in case configure is actually a
1791 # symlink; some systems play weird games with the mod time of symlinks
1792 # (eg FreeBSD returns the mod time of the symlink's containing
1795 set X
`ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1796 if test "$*" = "X"; then
1798 set X
`ls -t $srcdir/configure conftest.file`
1801 if test "$*" != "X $srcdir/configure conftest.file" \
1802 && test "$*" != "X conftest.file $srcdir/configure"; then
1804 # If neither matched, then we have a broken ls. This can happen
1805 # if, for instance, CONFIG_SHELL is bash and it inherits a
1806 # broken ls alias from the environment. This has actually
1807 # happened. Such a system could not be considered "sane".
1808 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1809 alias in your environment" >&5
1810 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1811 alias in your environment" >&2;}
1812 { (exit 1); exit 1; }; }
1815 test "$2" = conftest.
file
1821 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1822 Check your system clock" >&5
1823 echo "$as_me: error: newly created file is older than distributed files!
1824 Check your system clock" >&2;}
1825 { (exit 1); exit 1; }; }
1827 echo "$as_me:$LINENO: result: yes" >&5
1828 echo "${ECHO_T}yes" >&6
1829 test "$program_prefix" != NONE
&&
1830 program_transform_name
="s,^,$program_prefix,;$program_transform_name"
1831 # Use a double $ so make ignores it.
1832 test "$program_suffix" != NONE
&&
1833 program_transform_name
="s,\$,$program_suffix,;$program_transform_name"
1834 # Double any \ or $. echo might interpret backslashes.
1835 # By default was `s,x,x', remove it if useless.
1836 cat <<\_ACEOF
>conftest.
sed
1837 s
/[\\$
]/&&/g
;s
/;s
,x
,x
,$
//
1839 program_transform_name
=`echo $program_transform_name | sed -f conftest.sed`
1842 # expand $ac_aux_dir to an absolute path
1843 am_aux_dir
=`cd $ac_aux_dir && pwd`
1845 test x
"${MISSING+set}" = xset || MISSING
="\${SHELL} $am_aux_dir/missing"
1846 # Use eval to expand $SHELL
1847 if eval "$MISSING --run true"; then
1848 am_missing_run
="$MISSING --run "
1851 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1852 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1855 if mkdir
-p --version .
>/dev
/null
2>&1 && test ! -d .
/--version; then
1856 # Keeping the `.' argument allows $(mkdir_p) to be used without
1857 # argument. Indeed, we sometimes output rules like
1858 # $(mkdir_p) $(somedir)
1859 # where $(somedir) is conditionally defined.
1860 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1861 # expensive solution, as it forces Make to start a sub-shell.)
1862 mkdir_p
='mkdir -p -- .'
1864 # On NextStep and OpenStep, the `mkdir' command does not
1865 # recognize any option. It will interpret all options as
1866 # directories to create, and then abort because `.' already
1868 for d
in .
/-p .
/--version;
1870 test -d $d && rmdir $d
1872 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1873 if test -f "$ac_aux_dir/mkinstalldirs"; then
1874 mkdir_p
='$(mkinstalldirs)'
1876 mkdir_p
='$(install_sh) -d'
1880 for ac_prog
in gawk mawk nawk
awk
1882 # Extract the first word of "$ac_prog", so it can be a program name with args.
1883 set dummy
$ac_prog; ac_word
=$2
1884 echo "$as_me:$LINENO: checking for $ac_word" >&5
1885 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1886 if test "${ac_cv_prog_AWK+set}" = set; then
1887 echo $ECHO_N "(cached) $ECHO_C" >&6
1889 if test -n "$AWK"; then
1890 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
1892 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
1896 test -z "$as_dir" && as_dir
=.
1897 for ac_exec_ext
in '' $ac_executable_extensions; do
1898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1899 ac_cv_prog_AWK
="$ac_prog"
1900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1909 if test -n "$AWK"; then
1910 echo "$as_me:$LINENO: result: $AWK" >&5
1911 echo "${ECHO_T}$AWK" >&6
1913 echo "$as_me:$LINENO: result: no" >&5
1914 echo "${ECHO_T}no" >&6
1917 test -n "$AWK" && break
1920 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1921 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1922 set dummy
${MAKE-make}; ac_make
=`echo "$2" | sed 'y,:./+-,___p_,'`
1923 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1924 echo $ECHO_N "(cached) $ECHO_C" >&6
1926 cat >conftest.
make <<\_ACEOF
1928 @
echo 'ac_maketemp="$(MAKE)"'
1930 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1931 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1932 if test -n "$ac_maketemp"; then
1933 eval ac_cv_prog_make_
${ac_make}_set
=yes
1935 eval ac_cv_prog_make_
${ac_make}_set
=no
1939 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1940 echo "$as_me:$LINENO: result: yes" >&5
1941 echo "${ECHO_T}yes" >&6
1944 echo "$as_me:$LINENO: result: no" >&5
1945 echo "${ECHO_T}no" >&6
1946 SET_MAKE
="MAKE=${MAKE-make}"
1949 rm -rf .tst
2>/dev
/null
1950 mkdir .tst
2>/dev
/null
1951 if test -d .tst
; then
1956 rmdir .tst
2>/dev
/null
1958 # test to see if srcdir already configured
1959 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1960 test -f $srcdir/config.status
; then
1961 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1962 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1963 { (exit 1); exit 1; }; }
1966 # test whether we have cygpath
1967 if test -z "$CYGPATH_W"; then
1968 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
1969 CYGPATH_W
='cygpath -w'
1976 # Define the identity of the package.
1981 cat >>confdefs.h
<<_ACEOF
1982 #define PACKAGE "$PACKAGE"
1986 cat >>confdefs.h
<<_ACEOF
1987 #define VERSION "$VERSION"
1990 # Some tools Automake needs.
1992 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1995 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
1998 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2001 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
2004 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
2007 AMTAR
=${AMTAR-"${am_missing_run}tar"}
2009 install_sh
=${install_sh-"$am_aux_dir/install-sh"}
2011 # Installed binaries are usually stripped using `strip' when the user
2012 # run `make install-strip'. However `strip' might not be the right
2013 # tool to use in cross-compilation environments, therefore Automake
2014 # will honor the `STRIP' environment variable to overrule this program.
2015 if test "$cross_compiling" != no
; then
2016 if test -n "$ac_tool_prefix"; then
2017 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2018 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2019 echo "$as_me:$LINENO: checking for $ac_word" >&5
2020 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2021 if test "${ac_cv_prog_STRIP+set}" = set; then
2022 echo $ECHO_N "(cached) $ECHO_C" >&6
2024 if test -n "$STRIP"; then
2025 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2027 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2031 test -z "$as_dir" && as_dir
=.
2032 for ac_exec_ext
in '' $ac_executable_extensions; do
2033 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2034 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2035 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2043 STRIP
=$ac_cv_prog_STRIP
2044 if test -n "$STRIP"; then
2045 echo "$as_me:$LINENO: result: $STRIP" >&5
2046 echo "${ECHO_T}$STRIP" >&6
2048 echo "$as_me:$LINENO: result: no" >&5
2049 echo "${ECHO_T}no" >&6
2053 if test -z "$ac_cv_prog_STRIP"; then
2055 # Extract the first word of "strip", so it can be a program name with args.
2056 set dummy strip
; ac_word
=$2
2057 echo "$as_me:$LINENO: checking for $ac_word" >&5
2058 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2059 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2060 echo $ECHO_N "(cached) $ECHO_C" >&6
2062 if test -n "$ac_ct_STRIP"; then
2063 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2065 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2069 test -z "$as_dir" && as_dir
=.
2070 for ac_exec_ext
in '' $ac_executable_extensions; do
2071 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2072 ac_cv_prog_ac_ct_STRIP
="strip"
2073 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2079 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP
=":"
2082 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2083 if test -n "$ac_ct_STRIP"; then
2084 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2085 echo "${ECHO_T}$ac_ct_STRIP" >&6
2087 echo "$as_me:$LINENO: result: no" >&5
2088 echo "${ECHO_T}no" >&6
2093 STRIP
="$ac_cv_prog_STRIP"
2097 INSTALL_STRIP_PROGRAM
="\${SHELL} \$(install_sh) -c -s"
2099 # We need awk for the "check" target. The system "awk" is bad on
2104 ac_config_headers
="$ac_config_headers config.h:config.in"
2106 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2107 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2108 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2109 if test "${enable_maintainer_mode+set}" = set; then
2110 enableval
="$enable_maintainer_mode"
2111 USE_MAINTAINER_MODE
=$enableval
2113 USE_MAINTAINER_MODE
=no
2115 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2116 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2119 if test $USE_MAINTAINER_MODE = yes; then
2120 MAINTAINER_MODE_TRUE
=
2121 MAINTAINER_MODE_FALSE
='#'
2123 MAINTAINER_MODE_TRUE
='#'
2124 MAINTAINER_MODE_FALSE
=
2127 MAINT
=$MAINTAINER_MODE_TRUE
2132 # Check whether --enable-assert or --disable-assert was given.
2133 if test "${enable_assert+set}" = set; then
2134 enableval
="$enable_assert"
2137 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-assert, need yes or no" >&5
2138 echo "$as_me: error: bad value $enableval for --enable-assert, need yes or no" >&2;}
2139 { (exit 1); exit 1; }; } ;;
2145 if test "$enable_assert" = "yes"; then
2147 cat >>confdefs.h
<<\_ACEOF
2148 #define WANT_ASSERT 1
2156 echo "define(<WANT_ASSERT>,$want_assert_01)" >> $gmp_tmpconfigm4
2160 # Check whether --enable-alloca or --disable-alloca was given.
2161 if test "${enable_alloca+set}" = set; then
2162 enableval
="$enable_alloca"
2164 alloca|malloc-reentrant|malloc-notreentrant
) ;;
2165 yes|no|reentrant|notreentrant
) ;;
2168 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-alloca, need one of:
2169 yes no reentrant notreentrant alloca malloc-reentrant malloc-notreentrant debug" >&5
2170 echo "$as_me: error: bad value $enableval for --enable-alloca, need one of:
2171 yes no reentrant notreentrant alloca malloc-reentrant malloc-notreentrant debug" >&2;}
2172 { (exit 1); exit 1; }; } ;;
2175 enable_alloca
=reentrant
2179 # IMPROVE ME: The default for C++ is disabled. The tests currently
2180 # performed below for a working C++ compiler are not particularly strong,
2181 # and in general can't be expected to get the right setup on their own. The
2182 # most significant problem is getting the ABI the same. Defaulting CXXFLAGS
2183 # to CFLAGS takes only a small step towards this. It's also probably worth
2184 # worrying whether the C and C++ runtimes from say gcc and a vendor C++ can
2185 # work together. Some rather broken C++ installations were encountered
2186 # during testing, and though such things clearly aren't GMP's problem, if
2187 # --enable-cxx=detect were to be the default then some careful checks of
2188 # which, if any, C++ compiler on the system is up to scratch would be
2191 # Check whether --enable-cxx or --disable-cxx was given.
2192 if test "${enable_cxx+set}" = set; then
2193 enableval
="$enable_cxx"
2196 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cxx, need yes/no/detect" >&5
2197 echo "$as_me: error: bad value $enableval for --enable-cxx, need yes/no/detect" >&2;}
2198 { (exit 1); exit 1; }; } ;;
2205 # Check whether --enable-fft or --disable-fft was given.
2206 if test "${enable_fft+set}" = set; then
2207 enableval
="$enable_fft"
2210 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-fft, need yes or no" >&5
2211 echo "$as_me: error: bad value $enableval for --enable-fft, need yes or no" >&2;}
2212 { (exit 1); exit 1; }; } ;;
2218 if test "$enable_fft" = "yes"; then
2220 cat >>confdefs.h
<<\_ACEOF
2227 # Check whether --enable-mpbsd or --disable-mpbsd was given.
2228 if test "${enable_mpbsd+set}" = set; then
2229 enableval
="$enable_mpbsd"
2232 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-mpbsd, need yes or no" >&5
2233 echo "$as_me: error: bad value $enableval for --enable-mpbsd, need yes or no" >&2;}
2234 { (exit 1); exit 1; }; } ;;
2241 if test "$enable_mpbsd" = "yes"; then
2243 WANT_MPBSD_FALSE
='#'
2251 # Check whether --enable-nails or --disable-nails was given.
2252 if test "${enable_nails+set}" = set; then
2253 enableval
="$enable_nails"
2255 yes|no|
[02468]|
[0-9][02468]) ;;
2257 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-nails, only even nail sizes supported" >&5
2258 echo "$as_me: error: bad value $enableval for --enable-nails, only even nail sizes supported" >&2;}
2259 { (exit 1); exit 1; }; } ;;
2261 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-nails, need yes/no/number" >&5
2262 echo "$as_me: error: bad value $enableval for --enable-nails, need yes/no/number" >&2;}
2263 { (exit 1); exit 1; }; } ;;
2269 case $enable_nails in
2270 yes) GMP_NAIL_BITS
=2 ;;
2271 no
) GMP_NAIL_BITS
=0 ;;
2272 *) GMP_NAIL_BITS
=$enable_nails ;;
2277 # Check whether --enable-profiling or --disable-profiling was given.
2278 if test "${enable_profiling+set}" = set; then
2279 enableval
="$enable_profiling"
2281 no|prof|gprof|instrument
) ;;
2282 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profiling, need no/prof/gprof/instrument" >&5
2283 echo "$as_me: error: bad value $enableval for --enable-profiling, need no/prof/gprof/instrument" >&2;}
2284 { (exit 1); exit 1; }; } ;;
2290 case $enable_profiling in
2293 cat >>confdefs.h
<<\_ACEOF
2294 #define WANT_PROFILING_PROF 1
2300 cat >>confdefs.h
<<\_ACEOF
2301 #define WANT_PROFILING_GPROF 1
2307 cat >>confdefs.h
<<\_ACEOF
2308 #define WANT_PROFILING_INSTRUMENT 1
2315 echo "define(<WANT_PROFILING>,<\`$enable_profiling'>)" >> $gmp_tmpconfigm4
2318 # -fomit-frame-pointer is incompatible with -pg on some chips
2319 if test "$enable_profiling" = gprof
; then
2320 fomit_frame_pointer
=
2322 fomit_frame_pointer
="-fomit-frame-pointer"
2327 # Check whether --with-readline or --without-readline was given.
2328 if test "${with_readline+set}" = set; then
2329 withval
="$with_readline"
2332 *) { { echo "$as_me:$LINENO: error: bad value $withval for --with-readline, need yes/no/detect" >&5
2333 echo "$as_me: error: bad value $withval for --with-readline, need yes/no/detect" >&2;}
2334 { (exit 1); exit 1; }; } ;;
2337 with_readline
=detect
2341 # Check whether --enable-fat or --disable-fat was given.
2342 if test "${enable_fat+set}" = set; then
2343 enableval
="$enable_fat"
2346 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-fat, need yes or no" >&5
2347 echo "$as_me: error: bad value $enableval for --enable-fat, need yes or no" >&2;}
2348 { (exit 1); exit 1; }; } ;;
2355 # Check whether --enable-minithres or --disable-minithres was given.
2356 if test "${enable_minithres+set}" = set; then
2357 enableval
="$enable_minithres"
2360 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-minithres, need yes or no" >&5
2361 echo "$as_me: error: bad value $enableval for --enable-minithres, need yes or no" >&2;}
2362 { (exit 1); exit 1; }; } ;;
2370 tmp_host
=`echo $host_cpu | sed 's/\./_/'`
2371 cat >>confdefs.h
<<_ACEOF
2372 #define HAVE_HOST_CPU_$tmp_host 1
2376 echo "define_not_for_expansion(\`HAVE_HOST_CPU_$tmp_host')" >> $gmp_tmpconfigm4p
2384 # Table of compilers, options, and mpn paths. This code has various related
2387 # - better default CC/CFLAGS selections than autoconf otherwise gives
2388 # - default CC/CFLAGS selections for extra CPU types specific to GMP
2389 # - a few tests for known bad compilers
2390 # - choice of ABIs on suitable systems
2391 # - selection of corresponding mpn search path
2393 # After GMP specific searches and tests, the standard autoconf AC_PROG_CC is
2394 # called. User selections of CC etc are respected.
2396 # Care is taken not to use macros like AC_TRY_COMPILE during the GMP
2397 # pre-testing, since they of course depend on AC_PROG_CC, and also some of
2398 # them cache their results, which is not wanted.
2400 # The ABI selection mechanism is unique to GMP. All that reaches autoconf
2401 # is a different selection of CC/CFLAGS according to the best ABI the system
2402 # supports, and/or what the user selects. Naturally the mpn assembler code
2403 # selected is very dependent on the ABI.
2405 # The closest the standard tools come to a notion of ABI is something like
2406 # "sparc64" which encodes a CPU and an ABI together. This doesn't seem to
2407 # scale well for GMP, where exact CPU types like "ultrasparc2" are wanted,
2408 # separate from the ABI used on them.
2411 # The variables set here are
2413 # cclist the compiler choices
2414 # xx_cflags flags for compiler xx
2415 # xx_cflags_maybe flags for compiler xx, if they work
2416 # xx_cppflags cpp flags for compiler xx
2417 # xx_cflags_optlist list of sets of optional flags
2418 # xx_cflags_yyy set yyy of optional flags for compiler xx
2419 # xx_ldflags -Wc,-foo flags for libtool linking with compiler xx
2420 # ar_flags extra flags for $AR
2421 # nm_flags extra flags for $NM
2422 # limb limb size, can be "longlong"
2423 # path mpn search path
2424 # extra_functions extra mpn functions
2425 # fat_path fat binary mpn search path [if fat binary desired]
2426 # fat_functions fat functions
2427 # fat_thresholds fat thresholds
2429 # Suppose xx_cflags_optlist="arch", then flags from $xx_cflags_arch are
2430 # tried, and the first flag that works will be used. An optlist like "arch
2431 # cpu optimize" can be used to get multiple independent sets of flags tried.
2432 # The first that works from each will be used. If no flag in a set works
2433 # then nothing from that set is added.
2435 # For multiple ABIs, the scheme extends as follows.
2437 # abilist set of ABI choices
2438 # cclist_aa compiler choices in ABI aa
2439 # xx_aa_cflags flags for xx in ABI aa
2440 # xx_aa_cflags_maybe flags for xx in ABI aa, if they work
2441 # xx_aa_cppflags cpp flags for xx in ABI aa
2442 # xx_aa_cflags_optlist list of sets of optional flags in ABI aa
2443 # xx_aa_cflags_yyy set yyy of optional flags for compiler xx in ABI aa
2444 # xx_aa_ldflags -Wc,-foo flags for libtool linking
2445 # ar_aa_flags extra flags for $AR in ABI aa
2446 # nm_aa_flags extra flags for $NM in ABI aa
2447 # limb_aa limb size in ABI aa, can be "longlong"
2448 # path_aa mpn search path in ABI aa
2449 # extra_functions_aa extra mpn functions in ABI aa
2451 # As a convenience, the unadorned xx_cflags (etc) are used for the last ABI
2452 # in ablist, if an xx_aa_cflags for that ABI isn't given. For example if
2453 # abilist="64 32" then $cc_64_cflags will be used for the 64-bit ABI, but
2454 # for the 32-bit either $cc_32_cflags or $cc_cflags is used, whichever is
2455 # defined. This makes it easy to add some 64-bit compilers and flags to an
2456 # unadorned 32-bit set.
2458 # limb=longlong (or limb_aa=longlong) applies to all compilers within that
2459 # ABI. It won't work to have some needing long long and some not, since a
2460 # single instantiated gmp.h will be used by both.
2462 # SPEED_CYCLECOUNTER, cyclecounter_size and CALLING_CONVENTIONS_OBJS are
2463 # also set here, with an ABI suffix.
2467 # A table-driven approach like this to mapping cpu type to good compiler
2468 # options is a bit of a maintenance burden, but there's not much uniformity
2469 # between options specifications on different compilers. Some sort of
2470 # separately updatable tool might be cute.
2472 # The use of lots of variables like this, direct and indirect, tends to
2473 # obscure when and how various things are done, but unfortunately it's
2474 # pretty much the only way. If shell subroutines were portable then actual
2475 # code like "if this .. do that" could be written, but attempting the same
2476 # with full copies of GMP_PROG_CC_WORKS etc expanded at every point would
2477 # hugely bloat the output.
2482 # abilist needs to be non-empty, "standard" is just a generic name here
2485 # FIXME: We'd like to prefer an ANSI compiler, perhaps by preferring
2486 # c89 over cc here. But note that on HP-UX c89 provides a castrated
2487 # environment, and would want to be excluded somehow. Maybe
2488 # AC_PROG_CC_STDC already does enough to stick cc into ANSI mode and
2489 # we don't need to worry.
2493 gcc_cflags
="-O2 -pedantic"
2494 gcc_64_cflags
="-O2 -pedantic"
2498 SPEED_CYCLECOUNTER_OBJ
=
2501 HAVE_HOST_CPU_FAMILY_power
=0
2503 HAVE_HOST_CPU_FAMILY_powerpc
=0
2514 cat >>confdefs.h
<<\_ACEOF
2515 #define HAVE_HOST_CPU_FAMILY_alpha 1
2519 alphaev5
* | alphapca5
*) path
="alpha/ev5 alpha" ;;
2520 alphaev67 | alphaev68 | alphaev7
*)
2521 path
="alpha/ev67 alpha/ev6 alpha/ev5 alpha" ;;
2522 alphaev6
* | alphaev7
*) path
="alpha/ev6 alpha/ev5 alpha" ;;
2525 extra_functions
="cntlz"
2526 gcc_cflags_optlist
="asm cpu oldas" # need asm ahead of cpu, see below
2527 gcc_cflags_oldas
="-Wa,-oldas" # see GMP_GCC_WA_OLDAS.
2529 # gcc 2.7.2.3 doesn't know any -mcpu= for alpha, apparently.
2530 # gcc 2.95 knows -mcpu= ev4, ev5, ev56, pca56, ev6.
2531 # gcc 3.0 adds nothing.
2532 # gcc 3.1 adds ev45, ev67 (but ev45 is the same as ev4).
2533 # gcc 3.2 adds nothing.
2535 # gcc version "2.9-gnupro-99r1" under "-O2 -mcpu=ev6" strikes internal
2536 # compiler errors too easily and is rejected by GMP_PROG_CC_WORKS. Each
2537 # -mcpu=ev6 below has a fallback to -mcpu=ev56 for this reason.
2540 alpha
) gcc_cflags_cpu
="-mcpu=ev4" ;;
2541 alphaev5
) gcc_cflags_cpu
="-mcpu=ev5" ;;
2542 alphaev56
) gcc_cflags_cpu
="-mcpu=ev56" ;;
2543 alphapca56 | alphapca57
)
2544 gcc_cflags_cpu
="-mcpu=pca56" ;;
2545 alphaev6
) gcc_cflags_cpu
="-mcpu=ev6 -mcpu=ev56" ;;
2546 alphaev67 | alphaev68 | alphaev7
*)
2547 gcc_cflags_cpu
="-mcpu=ev67 -mcpu=ev6 -mcpu=ev56" ;;
2550 # gcc version "2.9-gnupro-99r1" on alphaev68-dec-osf5.1 has been seen
2551 # accepting -mcpu=ev6, but not putting the assembler in the right mode
2552 # for what it produces. We need to do this for it, and need to do it
2553 # before testing the -mcpu options.
2555 # On old versions of gcc, which don't know -mcpu=, we believe an
2556 # explicit -Wa,-mev5 etc will be necessary to put the assembler in
2557 # the right mode for our .asm files and longlong.h asm blocks.
2559 # On newer versions of gcc, when -mcpu= is known, we must give a -Wa
2560 # which is at least as high as the code gcc will generate. gcc
2561 # establishes what it needs with a ".arch" directive, our command line
2562 # option seems to override that.
2564 # gas prior to 2.14 doesn't accept -mev67, but -mev6 seems enough for
2565 # ctlz and cttz (in 2.10.0 at least).
2567 # OSF `as' accepts ev68 but stupidly treats it as ev4. -arch only seems
2568 # to affect insns like ldbu which are expanded as macros when necessary.
2569 # Insns like ctlz which were never available as macros are always
2570 # accepted and always generate their plain code.
2573 alpha
) gcc_cflags_asm
="-Wa,-arch,ev4 -Wa,-mev4" ;;
2574 alphaev5
) gcc_cflags_asm
="-Wa,-arch,ev5 -Wa,-mev5" ;;
2575 alphaev56
) gcc_cflags_asm
="-Wa,-arch,ev56 -Wa,-mev56" ;;
2576 alphapca56 | alphapca57
)
2577 gcc_cflags_asm
="-Wa,-arch,pca56 -Wa,-mpca56" ;;
2578 alphaev6
) gcc_cflags_asm
="-Wa,-arch,ev6 -Wa,-mev6" ;;
2579 alphaev67 | alphaev68 | alphaev7
*)
2580 gcc_cflags_asm
="-Wa,-arch,ev67 -Wa,-mev67 -Wa,-arch,ev6 -Wa,-mev6" ;;
2583 # It might be better to ask "cc" whether it's Cray C or DEC C,
2584 # instead of relying on the OS part of $host. But it's hard to
2585 # imagine either of those compilers anywhere except their native
2589 echo "include_mpn(\`alpha/alpha-defs.m4')" >> $gmp_tmpconfigm4i
2593 cc_cflags
="-O" # no -g, it silently disables all optimizations
2595 echo "include_mpn(\`alpha/unicos.m4')" >> $gmp_tmpconfigm4i
2597 # Don't perform any assembly syntax tests on this beast.
2598 gmp_asm_syntax_testing
=no
2602 echo "include_mpn(\`alpha/default.m4')" >> $gmp_tmpconfigm4i
2605 cc_cflags_optlist
="opt cpu"
2607 # not sure if -fast works on old versions, so make it optional
2608 cc_cflags_opt
="-fast -O2"
2610 # DEC C V5.9-005 knows ev4, ev5, ev56, pca56, ev6.
2611 # Compaq C V6.3-029 adds ev67.
2614 alpha
) cc_cflags_cpu
="-arch~ev4~-tune~ev4" ;;
2615 alphaev5
) cc_cflags_cpu
="-arch~ev5~-tune~ev5" ;;
2616 alphaev56
) cc_cflags_cpu
="-arch~ev56~-tune~ev56" ;;
2617 alphapca56 | alphapca57
)
2618 cc_cflags_cpu
="-arch~pca56~-tune~pca56" ;;
2619 alphaev6
) cc_cflags_cpu
="-arch~ev6~-tune~ev6" ;;
2620 alphaev67 | alphaev68 | alphaev7
*)
2621 cc_cflags_cpu
="-arch~ev67~-tune~ev67 -arch~ev6~-tune~ev6" ;;
2626 echo "include_mpn(\`alpha/default.m4')" >> $gmp_tmpconfigm4i
2633 # tune/alpha.asm assumes int==4bytes but unicos uses int==8bytes
2636 SPEED_CYCLECOUNTER_OBJ
=alpha.lo
2637 cyclecounter_size
=1 ;;
2642 # Cray vector machines.
2643 # This must come after alpha* so that we can recognize present and future
2644 # vector processors with a wildcard.
2646 gmp_asm_syntax_testing
=no
2648 # We used to have -hscalar0 here as a workaround for miscompilation of
2649 # mpz/import.c, but let's hope Cray fixes their bugs instead, since
2650 # -hscalar0 causes disastrously poor code to be generated.
2651 cc_cflags
="-O3 -hnofastmd -htask0 -Wa,-B"
2658 gcc_cflags
="$gcc_cflags $fomit_frame_pointer"
2659 gcc_testlist
="gcc-arm-umodsi"
2661 echo "include_mpn(\`arm/arm-defs.m4')" >> $gmp_tmpconfigm4i
2672 f30
[01]-fujitsu-sysv*)
2674 # FIXME: flags for vcc?
2681 # HP cc (the one sold separately) is K&R by default, but AM_C_PROTOTYPES
2682 # will add "-Ae", or "-Aa -D_HPUX_SOURCE", to put it into ansi mode, if
2685 # gcc for hppa 2.0 can be built either for 2.0n (32-bit) or 2.0w
2686 # (64-bit), but not both, so there's no option to choose the desired
2687 # mode, we must instead detect which of the two it is. This is done by
2688 # checking sizeof(long), either 4 or 8 bytes respectively. Do this in
2689 # ABI=1.0 too, in case someone tries to build that with a 2.0w gcc.
2692 gcc_cflags_optlist
="arch"
2693 gcc_testlist
="sizeof-long-4"
2694 SPEED_CYCLECOUNTER_OBJ
=hppa.lo
2697 # FIXME: For hppa2.0*, path should be "pa32/hppa2_0 pa32/hppa1_1 pa32".
2698 # (Can't remember why this isn't done already, have to check what .asm
2699 # files are available in each and how they run on a typical 2.0 cpu.)
2702 hppa1.0
*) path
="pa32" ;;
2703 hppa7000
*) path
="pa32/hppa1_1 pa32" ;;
2705 path
="pa32/hppa2_0 pa32/hppa1_1/pa7100 pa32/hppa1_1 pa32" ;;
2706 *) # default to 7100
2707 path
="pa32/hppa1_1/pa7100 pa32/hppa1_1 pa32" ;;
2710 # gcc 2.7.2.3 knows -mpa-risc-1-0 and -mpa-risc-1-1
2711 # gcc 2.95 adds -mpa-risc-2-0, plus synonyms -march=1.0, 1.1 and 2.0
2713 # We don't use -mpa-risc-2-0 in ABI=1.0 because 64-bit registers may not
2714 # be saved by the kernel on an old system. Actually gcc (as of 3.2)
2715 # only adds a few float instructions with -mpa-risc-2-0, so it would
2716 # probably be safe, but let's not take the chance. In any case, a
2717 # configuration like --host=hppa2.0 ABI=1.0 is far from optimal.
2720 hppa1.0
*) gcc_cflags_arch
="-mpa-risc-1-0" ;;
2721 *) # default to 7100
2722 gcc_cflags_arch
="-mpa-risc-1-1" ;;
2726 hppa1.0
*) cc_cflags
="+O2" ;;
2727 *) # default to 7100
2728 cc_cflags
="+DA1.1 +O2" ;;
2732 hppa2.0
*-*-* | hppa64-
*-*)
2737 any_20n_testlist
="sizeof-long-4"
2738 SPEED_CYCLECOUNTER_OBJ_20n
=hppa2.lo
2739 cyclecounter_size_20n
=2
2741 # -mpa-risc-2-0 is only an optional flag, in case an old gcc is
2742 # used. Assembler support for 2.0 is essential though, for our asm
2744 gcc_20n_cflags
="-O2"
2745 gcc_20n_cflags_optlist
="arch"
2746 gcc_20n_cflags_arch
="-mpa-risc-2-0 -mpa-risc-1-1"
2747 gcc_20n_testlist
="sizeof-long-4 hppa-level-2.0"
2749 cc_20n_cflags
="+DA2.0 +e +O2 -Wl,+vnocompatwarnings"
2750 cc_20n_testlist
="hpc-hppa-2-0"
2752 # ABI=2.0w is available for hppa2.0w and hppa2.0, but not for
2753 # hppa2.0n, on the assumption that that the latter indicates a
2754 # desire for ABI=2.0n.
2758 # HPUX 10 and earlier cannot run 2.0w. Not sure about other
2759 # systems (GNU/Linux for instance), but lets assume they're ok.
2761 *-*-hpux[1-9] |
*-*-hpux[1-9].
* |
*-*-hpux10 |
*-*-hpux10.
*) ;;
2762 *) abilist
="2.0w $abilist" ;;
2766 gcc_20w_cflags
="-O2 -mpa-risc-2-0"
2767 cc_20w_cflags
="+DD64 +O2"
2768 cc_20w_testlist
="hpc-hppa-2-0"
2770 any_20w_testlist
="sizeof-long-8"
2771 SPEED_CYCLECOUNTER_OBJ_20w
=hppa2w.lo
2772 cyclecounter_size_20w
=2
2785 ia64
*-*-* | itanium-
*-* | itanium2-
*-*)
2788 echo "include_mpn(\`ia64/ia64-defs.m4')" >> $gmp_tmpconfigm4i
2790 SPEED_CYCLECOUNTER_OBJ
=ia64.lo
2793 itanium
) path
="ia64/itanium ia64" ;;
2794 itanium2
) path
="ia64/itanium2 ia64" ;;
2798 gcc_64_cflags_optlist
="tune"
2799 gcc_32_cflags_optlist
=$gcc_64_cflags_optlist
2801 # gcc pre-release 3.4 adds -mtune itanium and itanium2
2803 itanium
) gcc_cflags_tune
="-mtune=itanium" ;;
2804 itanium2
) gcc_cflags_tune
="-mtune=itanium2" ;;
2810 icc_cflags
="-no-gcc"
2811 icc_cflags_optlist
="opt"
2812 # Don't use -O3, it is for "large data sets" and also miscompiles GMP.
2813 # But icc miscompiles GMP at any optimization level, at higher levels
2814 # it miscompiles more files...
2815 icc_cflags_opt
="-O2 -O1"
2819 # HP cc sometimes gets internal errors if the optimization level is
2820 # too high. GMP_PROG_CC_WORKS detects this, the "_opt" fallbacks
2821 # let us use whatever seems to work.
2828 cc_32_cflags_optlist
="opt"
2829 cc_32_cflags_opt
="+O3 +O2 +O1"
2830 gcc_32_cflags
="-milp32 -O2"
2832 SPEED_CYCLECOUNTER_OBJ_32
=ia64.lo
2833 cyclecounter_size_32
=2
2835 # Must have +DD64 in CPPFLAGS to get the right __LP64__ for headers,
2836 # but also need it in CFLAGS for linking programs, since automake
2837 # only uses CFLAGS when linking, not CPPFLAGS.
2838 # FIXME: Maybe should use cc_64_ldflags for this, but that would
2839 # need GMP_LDFLAGS used consistently by all the programs.
2841 cc_64_cflags
="+DD64"
2842 cc_64_cppflags
="+DD64"
2843 cc_64_cflags_optlist
="opt"
2844 cc_64_cflags_opt
="+O3 +O2 +O1"
2845 gcc_64_cflags
="$gcc_64_cflags -mlp64"
2853 m68k-
*-* | m68
[0-9][0-9][0-9]-*-*)
2854 cat >>confdefs.h
<<\_ACEOF
2855 #define HAVE_HOST_CPU_FAMILY_m68k 1
2859 echo "include_mpn(\`m68k/m68k-defs.m4')" >> $gmp_tmpconfigm4i
2861 gcc_cflags
="$gcc_cflags $fomit_frame_pointer"
2862 gcc_cflags_optlist
="arch"
2864 # gcc 2.7.2 knows -m68000, -m68020, -m68030, -m68040.
2865 # gcc 2.95 adds -mcpu32, -m68060.
2866 # FIXME: Maybe "-m68020 -mnobitfield" would suit cpu32 on 2.7.2.
2869 m68020
) gcc_cflags_arch
="-m68020" ;;
2870 m68030
) gcc_cflags_arch
="-m68030" ;;
2871 m68040
) gcc_cflags_arch
="-m68040" ;;
2872 m68060
) gcc_cflags_arch
="-m68060 -m68000" ;;
2873 m68360
) gcc_cflags_arch
="-mcpu32 -m68000" ;;
2874 *) gcc_cflags_arch
="-m68000" ;;
2877 # FIXME: m68k/mc68020 looks like it's ok for cpu32, but this wants to be
2878 # tested. Will need to introduce an m68k/cpu32 if m68k/mc68020 ever uses
2879 # the bitfield instructions.
2881 m680
[234]0 | m68360
) path
="m68k/mc68020 m68k" ;;
2892 gcc_cflags
="$gcc_cflags -m88110"
2893 path
="m88k/mc88110 m88k"
2897 # National Semiconductor 32k
2903 # IRIX 5 and earlier can only run 32-bit o32.
2905 # IRIX 6 and up always has a 64-bit mips CPU can run n32 or 64. n32 is
2906 # preferred over 64, but only because that's been the default in past
2907 # versions of GMP. The two are equally efficient.
2909 # Linux kernel 2.2.13 arch/mips/kernel/irixelf.c has a comment about not
2910 # supporting n32 or 64.
2912 # For reference, libtool (eg. 1.5.6) recognises the n32 ABI and knows the
2913 # right options to use when linking (both cc and gcc), so no need for
2914 # anything special from us.
2918 gcc_cflags_optlist
="abi"
2919 gcc_cflags_abi
="-mabi=32"
2920 gcc_testlist
="gcc-mips-o32"
2922 cc_cflags
="-O2 -o32" # no -g, it disables all optimizations
2923 # this suits both mips32 and mips64
2925 echo "include_mpn(\`mips32/mips-defs.m4')" >> $gmp_tmpconfigm4i
2929 mips64
*-*-* | mips
*-*-irix[6789]*)
2930 abilist
="n32 64 o32"
2933 gcc_n32_cflags
="-O2 -mabi=n32"
2934 cc_n32_cflags
="-O2 -n32" # no -g, it disables all optimizations
2939 gcc_64_cflags
="$gcc_64_cflags -mabi=64"
2940 gcc_64_ldflags
="-Wc,-mabi=64"
2941 cc_64_cflags
="-O2 -64" # no -g, it disables all optimizations
2942 cc_64_ldflags
="-Wc,-64"
2949 # Darwin (powerpc-apple-darwin1.3) has it's hacked gcc installed as cc.
2950 # Our usual "gcc in disguise" detection means gcc_cflags etc here gets
2953 # The darwin pre-compiling preprocessor is disabled with -no-cpp-precomp
2954 # since it doesn't like "__attribute__ ((mode (SI)))" etc in gmp-impl.h,
2955 # and so always ends up running the plain preprocessor anyway. This could
2956 # be done in CPPFLAGS rather than CFLAGS, but there's not many places
2957 # preprocessing is done separately, and this is only a speedup, the normal
2958 # preprocessor gets run if there's any problems.
2960 # We used to use -Wa,-mppc with gcc, but can't remember exactly why.
2961 # Presumably it was for old versions of gcc where -mpowerpc doesn't put
2962 # the assembler in the right mode. In any case -Wa,-mppc is not good, for
2963 # instance -mcpu=604 makes recent gcc use -m604 to get access to the
2964 # "fsel" instruction, but a -Wa,-mppc overrides that, making code that
2965 # comes out with fsel fail.
2967 # (Note also that the darwin assembler doesn't accept "-mppc", so any
2968 # -Wa,-mppc was used only if it worked. The right flag on darwin would be
2969 # "-arch ppc" or some such, but that's already the default.)
2971 powerpc
*-*-* | power
[3-9]-*-*)
2972 cat >>confdefs.h
<<\_ACEOF
2973 #define HAVE_HOST_CPU_FAMILY_powerpc 1
2976 HAVE_HOST_CPU_FAMILY_powerpc
=1
2980 gcc_cflags
="$gcc_cflags -mpowerpc"
2981 gcc_cflags_optlist
="precomp subtype asm cpu"
2982 gcc_cflags_precomp
="-no-cpp-precomp"
2983 gcc_cflags_subtype
="-force_cpusubtype_ALL" # for vmx on darwin
2987 # grab this object, though it's not a true cycle counter routine
2988 SPEED_CYCLECOUNTER_OBJ
=powerpc.lo
2992 powerpc740 | powerpc750
)
2993 path
="powerpc32/750 powerpc32" ;;
2994 powerpc7400 | powerpc7410
)
2995 path
="powerpc32/vmx powerpc32/750 powerpc32" ;;
2997 path
="powerpc32/vmx powerpc32" ;;
3002 # gcc 2.7.2 knows -mcpu=403, 601, 603, 604.
3003 # gcc 2.95 adds 401, 505, 602, 603e, ec603e, 604e, 620, 740, 750,
3004 # 801, 821, 823, 860.
3005 # gcc 3.0 adds 630, rs64a.
3006 # gcc 3.1 adds 405, 7400, 7450.
3007 # gcc 3.2 adds nothing.
3008 # gcc 3.3 adds power3, power4, 8540. power3 seems to be a synonym for 630.
3009 # gcc pre-release 3.4 adds 405fp, 440, 440fp, 970.
3011 # FIXME: The way 603e falls back to 603 for gcc 2.7.2 should be
3012 # done for all the others too. But what would be the correct
3016 powerpc401
) gcc_cflags_cpu
="-mcpu=401" ;;
3017 powerpc403
) gcc_cflags_cpu
="-mcpu=403" ;;
3018 powerpc405
) gcc_cflags_cpu
="-mcpu=405" ;;
3019 powerpc505
) gcc_cflags_cpu
="-mcpu=505" ;;
3020 powerpc601
) gcc_cflags_cpu
="-mcpu=601" ;;
3021 powerpc602
) gcc_cflags_cpu
="-mcpu=602" ;;
3022 powerpc603
) gcc_cflags_cpu
="-mcpu=603" ;;
3023 powerpc603e
) gcc_cflags_cpu
="-mcpu=603e -mcpu=603" ;;
3024 powerpc604
) gcc_cflags_cpu
="-mcpu=604" ;;
3025 powerpc604e
) gcc_cflags_cpu
="-mcpu=604e -mcpu=604" ;;
3026 powerpc620
) gcc_cflags_cpu
="-mcpu=620" ;;
3027 powerpc630
) gcc_cflags_cpu
="-mcpu=630" ;;
3028 powerpc740
) gcc_cflags_cpu
="-mcpu=740" ;;
3029 powerpc7400 | powerpc7410
)
3030 gcc_cflags_asm
="-Wa,-maltivec"
3031 gcc_cflags_cpu
="-mcpu=7400 -mcpu=750" ;;
3033 gcc_cflags_asm
="-Wa,-maltivec"
3034 gcc_cflags_cpu
="-mcpu=7450" ;;
3035 powerpc750
) gcc_cflags_cpu
="-mcpu=750" ;;
3036 powerpc801
) gcc_cflags_cpu
="-mcpu=801" ;;
3037 powerpc821
) gcc_cflags_cpu
="-mcpu=821" ;;
3038 powerpc823
) gcc_cflags_cpu
="-mcpu=823" ;;
3039 powerpc860
) gcc_cflags_cpu
="-mcpu=860" ;;
3040 powerpc970
) gcc_cflags_cpu
="-mcpu=970" ;;
3046 xlc_cflags
="-O2 -qmaxmem=20000"
3047 xlc_cflags_optlist
="arch"
3049 # xlc (what version?) knows -qarch=ppc, ppcgr, 601, 602, 603, 604,
3051 # -qarch=ppc is needed, so ensure everything falls back to that.
3052 # FIXME: Perhaps newer versions know more flavours.
3055 powerpc403
) xlc_cflags_arch
="-qarch=403 -qarch=ppc" ;;
3056 powerpc601
) xlc_cflags_arch
="-qarch=601 -qarch=ppc" ;;
3057 powerpc602
) xlc_cflags_arch
="-qarch=602 -qarch=ppc" ;;
3058 powerpc603
) xlc_cflags_arch
="-qarch=603 -qarch=ppc" ;;
3059 powerpc603e
) xlc_cflags_arch
="-qarch=603 -qarch=ppc" ;;
3060 powerpc604
) xlc_cflags_arch
="-qarch=604 -qarch=ppc" ;;
3061 powerpc604e
) xlc_cflags_arch
="-qarch=604 -qarch=ppc" ;;
3062 *) xlc_cflags_arch
="-qarch=ppc" ;;
3068 powerpc64-
*-* | powerpc64le-
*-* | powerpc620-
*-* | powerpc630-
*-* | powerpc970-
*-* | power
[3-9]-*-*)
3070 powerpc970
) vmx_path
="powerpc64/vmx" ;;
3075 # On AIX a true 64-bit ABI is available.
3076 # Need -Wc to pass object type flags through to the linker.
3077 abilist
="aix64 $abilist"
3078 cclist_aix64
="gcc xlc"
3079 gcc_aix64_cflags
="-O2 -maix64 -mpowerpc64"
3080 gcc_aix64_cflags_optlist
="cpu"
3081 gcc_aix64_ldflags
="-Wc,-maix64"
3082 xlc_aix64_cflags
="-O2 -q64 -qtune=pwr3 -qmaxmem=20000"
3083 xlc_aix64_ldflags
="-Wc,-q64"
3084 # Must indicate object type to ar and nm
3085 ar_aix64_flags
="-X64"
3086 nm_aix64_flags
="-X64"
3087 path_aix64
="powerpc64/mode64 $vmx_path powerpc64"
3088 # grab this object, though it's not a true cycle counter routine
3089 SPEED_CYCLECOUNTER_OBJ_aix64
=powerpc64.lo
3090 cyclecounter_size_aix64
=0
3093 # On Darwin we can use 64-bit instructions with a longlong limb,
3094 # but the chip still in 32-bit mode.
3095 # In theory this can be used on any OS which knows how to save
3096 # 64-bit registers in a context switch.
3098 # Note that we must use -mpowerpc64 with gcc, since the
3099 # longlong.h macros expect limb operands in a single 64-bit
3100 # register, not two 32-bit registers as would be given for a
3101 # long long without -mpowerpc64. In theory we could detect and
3102 # accomodate both styles, but the proper 64-bit registers will
3103 # be fastest and are what we really want to use.
3105 # One would think -mpowerpc64 would set the assembler in the right
3106 # mode to handle 64-bit instructions. But for that, also
3107 # -force_cpusubtype_ALL is needed.
3109 # Do not use -fast for Darwin, it actually adds options
3110 # incompatible with a shared library.
3112 abilist
="mode64 mode32 $abilist"
3113 gcc_cflags_opt
="-O3 -O2 -O1" # will this become used?
3115 gcc_mode32_cflags
="-mpowerpc64"
3116 gcc_mode32_cflags_optlist
="subtype cpu opt"
3117 gcc_mode32_cflags_subtype
="-force_cpusubtype_ALL"
3118 gcc_mode32_cflags_opt
="-O3 -O2 -O1"
3119 path_mode32
="powerpc64/mode32 $vmx_path powerpc64"
3120 limb_mode32
=longlong
3122 gcc_mode64_cflags
="-m64"
3123 gcc_mode64_cflags_optlist
="cpu opt"
3124 gcc_mode64_cflags_opt
="-O3 -O2 -O1"
3125 path_mode64
="powerpc64/mode64 $vmx_path powerpc64"
3126 SPEED_CYCLECOUNTER_OBJ_mode64
=powerpc64.lo
3127 cyclecounter_size_mode64
=0
3128 any_mode64_testlist
="sizeof-long-8"
3130 *-*-linux* |
*-*-*bsd
*)
3131 # On GNU/Linux, assume the processor is in 64-bit mode. Some
3132 # environments have a gcc that is always in 64-bit mode, while
3133 # others require -m64, hence the use of cflags_maybe. The
3134 # sizeof-long-8 test checks the mode is right (for the no option
3137 # -mpowerpc64 is not used, since it should be the default in
3138 # 64-bit mode. (We need its effect for the various longlong.h
3139 # asm macros to be right of course.)
3141 # gcc64 was an early port of gcc to 64-bit mode, but should be
3142 # obsolete before too long. We prefer plain gcc when it knows
3145 abilist
="mode64 mode32 $abilist"
3147 gcc_mode32_cflags
="-mpowerpc64"
3148 gcc_mode32_cflags_optlist
="cpu opt"
3149 gcc_mode32_cflags_opt
="-O3 -O2 -O1"
3150 path_mode32
="powerpc64/mode32 $vmx_path powerpc64"
3151 limb_mode32
=longlong
3152 cclist_mode64
="gcc gcc64"
3153 gcc_mode64_cflags_maybe
="-m64"
3154 gcc_mode64_cflags_optlist
="cpu opt"
3155 gcc_mode64_cflags_opt
="-O3 -O2 -O1"
3156 path_mode64
="powerpc64/mode64 $vmx_path powerpc64"
3157 SPEED_CYCLECOUNTER_OBJ_mode64
=powerpc64.lo
3158 cyclecounter_size_mode64
=0
3159 any_mode64_testlist
="sizeof-long-8"
3168 power-
*-* | power
[12]-*-* | power2sc-
*-*)
3169 cat >>confdefs.h
<<\_ACEOF
3170 #define HAVE_HOST_CPU_FAMILY_power 1
3173 HAVE_HOST_CPU_FAMILY_power
=1
3175 extra_functions
="udiv_w_sdiv"
3178 # gcc 2.7.2 knows rios1, rios2, rsc
3180 # -mcpu=rios2 can tickle an AIX assembler bug (see GMP_PROG_CC_WORKS) so
3181 # there needs to be a fallback to just -mpower.
3183 gcc_cflags_optlist
="cpu"
3185 power-
*-*) gcc_cflags_cpu
="-mcpu=power -mpower" ;;
3186 power1-
*-*) gcc_cflags_cpu
="-mcpu=rios1 -mpower" ;;
3187 power2-
*-*) gcc_cflags_cpu
="-mcpu=rios2 -mpower" ;;
3188 power2sc-
*-*) gcc_cflags_cpu
="-mcpu=rsc -mpower" ;;
3193 xlc_cflags
="-O2 -qarch=pwr -qmaxmem=20000"
3204 # IBM s/370 and similar
3206 gcc_cflags
="$gcc_cflags $fomit_frame_pointer"
3208 extra_functions
="udiv_w_sdiv"
3212 sh-
*-*) path
="sh" ;;
3213 sh2-
*-*) path
="sh/sh2 sh" ;;
3217 # sizeof(long)==4 or 8 is tested, to ensure we get the right ABI. We've
3218 # had various bug reports where users have set CFLAGS for their desired
3219 # mode, but not set our ABI. For some reason it's sparc where this
3220 # keeps coming up, presumably users there are accustomed to driving the
3221 # compiler mode that way. The effect of our testlist setting is to
3222 # reject ABI=64 in favour of ABI=32 if the user has forced the flags to
3227 any_testlist
="sizeof-long-4"
3229 echo "include_mpn(\`sparc32/sparc-defs.m4')" >> $gmp_tmpconfigm4i
3233 sparcv8 | microsparc | turbosparc
)
3234 path
="sparc32/v8 sparc32" ;;
3236 path
="sparc32/v8/supersparc sparc32/v8 sparc32" ;;
3237 sparc64 | sparcv9
* | ultrasparc
*)
3238 path
="sparc32/v9 sparc32/v8 sparc32" ;;
3243 # gcc 2.7.2 doesn't know about v9 and doesn't pass -xarch=v8plus to the
3244 # assembler. Add it explicitly since the solaris assembler won't accept
3245 # our sparc32/v9 asm code without it. gas accepts -xarch=v8plus too, so
3246 # it can be in the cflags unconditionally (though gas doesn't need it).
3248 # gcc -m32 is needed to force 32-bit mode on a dual-ABI system, but past
3249 # gcc doesn't know that flag, hence cflags_maybe. Note that -m32 cannot
3250 # be done through the optlist since the plain cflags would be run first
3251 # and we don't want to require the default mode (whatever it is) works.
3253 # Note it's gcc_32_cflags_maybe and not gcc_cflags_maybe because the
3254 # latter would be used in the 64-bit ABI on systems like "*bsd" where
3255 # abilist="64" only.
3258 sparc64 | sparcv9
* | ultrasparc
*)
3259 gcc_cflags
="$gcc_cflags -Wa,-xarch=v8plus" ;;
3261 gcc_cflags
="$gcc_cflags" ;;
3263 gcc_32_cflags_maybe
="-m32"
3264 gcc_cflags_optlist
="cpu"
3266 # gcc 2.7.2 knows -mcypress, -msupersparc, -mv8, -msparclite.
3267 # gcc 2.95 knows -mcpu= v7, hypersparc, sparclite86x, f930, f934,
3268 # sparclet, tsc701, v9, ultrasparc. A warning is given that the
3269 # plain -m forms will disappear.
3270 # gcc 3.0 adds nothing.
3271 # gcc 3.1 adds nothing.
3272 # gcc 3.2 adds nothing.
3273 # gcc 3.3 adds ultrasparc3.
3276 supersparc
) gcc_cflags_cpu
="-mcpu=supersparc -msupersparc" ;;
3277 sparcv8 | microsparc | turbosparc
)
3278 gcc_cflags_cpu
="-mcpu=v8 -mv8" ;;
3279 sparc64 | sparcv9
*) gcc_cflags_cpu
="-mcpu=v9 -mv8" ;;
3280 ultrasparc3
) gcc_cflags_cpu
="-mcpu=ultrasparc3 -mcpu=ultrasparc -mv8" ;;
3281 ultrasparc
*) gcc_cflags_cpu
="-mcpu=ultrasparc -mv8" ;;
3282 *) gcc_cflags_cpu
="-mcpu=v7 -mcypress" ;;
3285 # SunPRO cc and acc, and SunOS bundled cc
3287 *-*-solaris* |
*-*-sunos*)
3288 # Note no -g, it disables all optimizations.
3290 cc_cflags_optlist
="opt arch cpu"
3292 # SunOS cc doesn't know -xO4, fallback to -O2.
3293 cc_cflags_opt
="-xO4 -O2"
3295 # SunOS cc doesn't know -xarch, apparently always generating v7
3296 # code, so make this optional
3298 sparcv8 | microsparc | supersparc | turbosparc
)
3299 cc_cflags_arch
="-xarch=v8" ;;
3300 sparc64 | sparcv9
* | ultrasparc
*) cc_cflags_arch
="-xarch=v8plus" ;;
3301 *) cc_cflags_arch
="-xarch=v7" ;;
3304 # SunOS cc doesn't know -xchip and doesn't seem to have an equivalent.
3305 # SunPRO cc 5 recognises -xchip=generic, old, super, super2, micro,
3306 # micro2, hyper, hyper2, powerup, ultra, ultra2, ultra2i.
3307 # SunPRO cc 6 adds -xchip=ultra2e, ultra3cu.
3309 # FIXME: Which of ultra, ultra2 or ultra2i is the best fallback for
3313 supersparc
) cc_cflags_cpu
="-xchip=super" ;;
3314 microsparc
) cc_cflags_cpu
="-xchip=micro" ;;
3315 turbosparc
) cc_cflags_cpu
="-xchip=micro2" ;;
3316 ultrasparc
) cc_cflags_cpu
="-xchip=ultra" ;;
3317 ultrasparc2
) cc_cflags_cpu
="-xchip=ultra2" ;;
3318 ultrasparc2i
) cc_cflags_cpu
="-xchip=ultra2i" ;;
3319 ultrasparc3
) cc_cflags_cpu
="-xchip=ultra3 -xchip=ultra" ;;
3320 *) cc_cflags_cpu
="-xchip=generic" ;;
3325 sparc64 | sparcv9
* | ultrasparc
*)
3327 # Solaris 6 and earlier cannot run ABI=64 since it doesn't save
3328 # registers properly, so ABI=32 is left as the only choice.
3330 *-*-solaris2.
[0-6] |
*-*-solaris2.
[0-6].
*) ;;
3332 # BSD sparc64 ports are 64-bit-only systems, so ABI=64 is the only
3333 # choice. In fact they need no special compiler flags, gcc -m64
3334 # is the default, but it doesn't hurt to add it. v9 CPUs always
3335 # use the sparc64 port, since the plain 32-bit sparc ports don't
3338 *-*-*bsd
*) abilist
="64" ;;
3340 # For all other systems, we try both 64 and 32.
3342 # GNU/Linux sparc64 has only recently gained a 64-bit user mode.
3343 # In the past sparc64 meant a v9 cpu, but there were no 64-bit
3344 # operations in user mode. We assume that if "gcc -m64" works
3345 # then the system is suitable. Hopefully even if someone attempts
3346 # to put a new gcc and/or glibc on an old system it won't run.
3348 *) abilist
="64 32" ;;
3353 any_64_testlist
="sizeof-long-8"
3355 # gcc -mptr64 is probably implied by -m64, but we're not sure if
3356 # this was always so. On Solaris in the past we always used both
3359 # gcc -Wa,-xarch=v9 is thought to be necessary in some cases on
3360 # solaris, but it would seem likely that if gcc is going to generate
3361 # 64-bit code it will have to add that option itself where needed.
3362 # An extra copy of this option should be harmless though, but leave
3363 # it until we're sure. (Might want -xarch=v9a or -xarch=v9b for the
3364 # higher cpu types instead.)
3366 gcc_64_cflags
="$gcc_64_cflags -m64 -mptr64"
3367 gcc_64_ldflags
="-Wc,-m64"
3368 gcc_64_cflags_optlist
="cpu"
3374 # We used to have -fast and some fixup options here, but it
3375 # recurrently caused problems with miscompilation. Of course,
3376 # -fast is documented as miscompiling things for the sake of speed.
3378 cclist_64
="$cclist_64 cc"
3379 cc_64_cflags
="-xO3 -xarch=v9"
3380 cc_64_cflags_optlist
="cpu"
3384 # using the v9 %tick register
3385 SPEED_CYCLECOUNTER_OBJ_32
=sparcv9.lo
3386 SPEED_CYCLECOUNTER_OBJ_64
=sparcv9.lo
3387 cyclecounter_size_32
=2
3388 cyclecounter_size_64
=2
3396 # Currently gcc (version 3.0) on vax always uses a frame pointer
3397 # (config/vax/vax.h FRAME_POINTER_REQUIRED=1), so -fomit-frame-pointer
3400 gcc_cflags
="$gcc_cflags $fomit_frame_pointer"
3402 extra_functions
="udiv_w_sdiv"
3406 # AMD and Intel x86 configurations, including AMD64
3408 # Rumour has it gcc -O2 used to give worse register allocation than just
3409 # -O, but lets assume that's no longer true.
3411 # -m32 forces 32-bit mode on a bi-arch 32/64 amd64 build of gcc. -m64 is
3412 # the default in such a build (we think), so -m32 is essential for ABI=32.
3413 # This is, of course, done for any $host_cpu, not just x86_64, so we can
3414 # get such a gcc into the right mode to cross-compile to say i486-*-*.
3416 # -m32 is not available in gcc 2.95 and earlier, hence cflags_maybe to use
3417 # it when it works. We check sizeof(long)==4 to ensure we get the right
3418 # mode, in case -m32 has failed not because it's an old gcc, but because
3419 # it's a dual 32/64-bit gcc without a 32-bit libc, or whatever.
3421 i?
86*-*-* | k
[5-8]*-*-* | pentium
*-*-* | athlon-
*-* | viac3
*-*-* | geode
*-*-* | athlon64-
*-* | atom-
*-* | core2-
*-* | x86_64-
*-*)
3424 gcc_cflags
="$gcc_cflags $fomit_frame_pointer"
3425 gcc_32_cflags_maybe
="-m32"
3426 icc_cflags
="-no-gcc"
3427 icc_cflags_optlist
="opt"
3428 icc_cflags_opt
="-O3 -O2 -O1"
3429 any_32_testlist
="sizeof-long-4"
3430 CALLING_CONVENTIONS_OBJS
='x86call.lo x86check$U.lo'
3432 # Availability of rdtsc is checked at run-time.
3433 SPEED_CYCLECOUNTER_OBJ
=pentium.lo
3435 # gcc 2.7.2 only knows i386 and i486, using -m386 or -m486. These
3436 # represent -mcpu= since -m486 doesn't generate 486 specific insns.
3437 # gcc 2.95 adds k6, pentium and pentiumpro, and takes -march= and -mcpu=.
3438 # gcc 3.0 adds athlon.
3439 # gcc 3.1 adds k6-2, k6-3, pentium-mmx, pentium2, pentium3, pentium4,
3440 # athlon-tbird, athlon-4, athlon-xp, athlon-mp.
3441 # gcc 3.2 adds winchip2.
3442 # gcc 3.3 adds winchip-c6.
3443 # gcc 3.3.1 from mandrake adds k8 and knows -mtune.
3444 # gcc 3.4 adds c3, c3-2, k8, and deprecates -mcpu in favour of -mtune.
3446 # In gcc 2.95.[0123], -march=pentiumpro provoked a stack slot bug in an
3447 # old version of mpz/powm.c. Seems to be fine with the current code, so
3448 # no need for any restrictions on that option.
3450 # -march=pentiumpro can fail if the assembler doesn't know "cmov"
3451 # (eg. solaris 2.8 native "as"), so always have -march=pentium after
3452 # that as a fallback.
3454 # -march=pentium4 and -march=k8 enable SSE2 instructions, which may or
3455 # may not be supported by the assembler and/or the OS, and is bad in gcc
3456 # prior to 3.3. The tests will reject these if no good, so fallbacks
3457 # like "-march=pentium4 -mno-sse2" are given to try also without SSE2.
3458 # Note the relevant -march types are listed in the optflags handling
3459 # below, be sure to update there if adding new types emitting SSE2.
3461 # -mtune is used at the start of each cpu option list to give something
3462 # gcc 3.4 will use, thereby avoiding warnings from -mcpu. -mcpu forms
3463 # are retained for use by prior gcc. For example pentium has
3464 # "-mtune=pentium -mcpu=pentium ...", the -mtune is for 3.4 and the
3465 # -mcpu for prior. If there's a brand new choice in 3.4 for a chip,
3466 # like k8 for x86_64, then it can be the -mtune at the start, no need to
3467 # duplicate anything.
3469 gcc_cflags_optlist
="cpu arch"
3472 gcc_cflags_cpu
="-mtune=i386 -mcpu=i386 -m386"
3473 gcc_cflags_arch
="-march=i386"
3476 gcc_cflags_cpu
="-mtune=i486 -mcpu=i486 -m486"
3477 gcc_cflags_arch
="-march=i486"
3480 gcc_cflags_cpu
="-mtune=pentium -mcpu=pentium -m486"
3481 gcc_cflags_arch
="-march=pentium"
3484 gcc_cflags_cpu
="-mtune=pentium-mmx -mcpu=pentium-mmx -mcpu=pentium -m486"
3485 gcc_cflags_arch
="-march=pentium-mmx -march=pentium"
3488 gcc_cflags_cpu
="-mtune=pentiumpro -mcpu=pentiumpro -mcpu=i486 -m486"
3489 gcc_cflags_arch
="-march=pentiumpro -march=pentium"
3492 gcc_cflags_cpu
="-mtune=pentium2 -mcpu=pentium2 -mcpu=pentiumpro -mcpu=i486 -m486"
3493 gcc_cflags_arch
="-march=pentium2 -march=pentiumpro -march=pentium"
3495 pentium3 | pentiumm
)
3496 gcc_cflags_cpu
="-mtune=pentium3 -mcpu=pentium3 -mcpu=pentiumpro -mcpu=i486 -m486"
3497 gcc_cflags_arch
="-march=pentium3 -march=pentiumpro -march=pentium"
3500 gcc_cflags_cpu
="-mtune=k6 -mcpu=k6 -mcpu=i486 -m486"
3501 gcc_cflags_arch
="-march=k6"
3504 gcc_cflags_cpu
="-mtune=k6-2 -mcpu=k6-2 -mcpu=k6 -mcpu=i486 -m486"
3505 gcc_cflags_arch
="-march=k6-2 -march=k6"
3508 gcc_cflags_cpu
="-mtune=k6-3 -mcpu=k6-3 -mcpu=k6 -mcpu=i486 -m486"
3509 gcc_cflags_arch
="-march=k6-3 -march=k6"
3512 gcc_cflags_cpu
="-mtune=k6-3 -mcpu=k6-3 -mcpu=k6 -mcpu=i486 -m486"
3513 gcc_cflags_arch
="-march=k6-3 -march=k6"
3516 # Athlon instruction costs are close to P6 (3 cycle load latency,
3517 # 4-6 cycle mul, 40 cycle div, pairable adc, etc) so if gcc doesn't
3518 # know athlon (eg. 2.95.2 doesn't) then fall back on pentiumpro.
3519 gcc_cflags_cpu
="-mtune=athlon -mcpu=athlon -mcpu=pentiumpro -mcpu=i486 -m486"
3520 gcc_cflags_arch
="-march=athlon -march=pentiumpro -march=pentium"
3523 # pentiumpro is the primary fallback when gcc doesn't know pentium4.
3524 # This gets us cmov to eliminate branches. Maybe "athlon" would be
3525 # a possibility on gcc 3.0.
3527 gcc_cflags_cpu
="-mtune=pentium4 -mcpu=pentium4 -mcpu=pentiumpro -mcpu=i486 -m486"
3528 gcc_cflags_arch
="-march=pentium4 -march=pentium4~-mno-sse2 -march=pentiumpro -march=pentium"
3531 # Not sure of the best fallbacks here for -mcpu.
3532 # c3-2 has sse and mmx, so pentium3 is good for -march.
3533 gcc_cflags_cpu
="-mtune=c3-2 -mcpu=c3-2 -mcpu=i486 -m486"
3534 gcc_cflags_arch
="-march=c3-2 -march=pentium3 -march=pentiumpro -march=pentium"
3537 # Not sure of the best fallbacks here.
3538 gcc_cflags_cpu
="-mtune=c3 -mcpu=c3 -mcpu=i486 -m486"
3539 gcc_cflags_arch
="-march=c3 -march=pentium-mmx -march=pentium"
3542 gcc_cflags_cpu
="-mtune=k8 -mcpu=athlon -mcpu=pentiumpro -mcpu=i486 -m486"
3543 gcc_cflags_arch
="-march=k8 -march=k8~-mno-sse2 -march=athlon -march=pentiumpro -march=pentium"
3546 gcc_cflags_cpu
="-mtune=core2 -mtune=k8"
3547 gcc_cflags_arch
="-march=core2 -march=core2~-mno-sse2 -march=k8 -march=k8~-mno-sse2"
3550 gcc_cflags_cpu
="-mtune=i486 -mcpu=i486 -m486"
3551 gcc_cflags_arch
="-march=i486"
3556 i386
*) path
="x86" ;;
3557 i486
*) path
="x86/i486 x86" ;;
3558 i586 | pentium
) path
="x86/pentium x86" ;;
3559 pentiummmx
) path
="x86/pentium/mmx x86/pentium x86" ;;
3560 i686 | pentiumpro
) path
="x86/p6 x86" ;;
3561 pentium2
) path
="x86/p6/mmx x86/p6 x86" ;;
3562 pentium3
) path
="x86/p6/p3mmx x86/p6/mmx x86/p6 x86";;
3563 pentiumm | core2
) path
="x86/p6/sse2 x86/p6/p3mmx x86/p6/mmx x86/p6 x86";;
3564 k6
[23]) path
="x86/k6/k62mmx x86/k6/mmx x86/k6 x86" ;;
3565 k6
) path
="x86/k6/mmx x86/k6 x86" ;;
3566 geode
) path
="x86/k6/k62mmx x86/k6/mmx x86/k6 x86" ;;
3567 # we don't have any specific 32-bit code for athlon64/opteron, the
3568 # athlon code should be reasonable
3569 athlon | athlon64
) path
="x86/k7/mmx x86/k7 x86" ;;
3570 i786 | pentium4
) path
="x86/pentium4/sse2 x86/pentium4/mmx x86/pentium4 x86" ;;
3571 # VIA/Centaur processors, sold as CyrixIII and C3.
3572 viac32
) path
="x86/p6/p3mmx x86/p6/mmx x86/p6 x86";;
3573 viac3
*) path
="x86/pentium/mmx x86/pentium x86";;
3577 # If the user asked for a fat build, override the path and flags set above
3578 if test $enable_fat = yes; then
3581 extra_functions
="$extra_functions fat fat_entry"
3583 fat_path
="x86 x86/fat x86/i486
3584 x86/k6 x86/k6/mmx x86/k6/k62mmx
3586 x86/pentium x86/pentium/mmx
3587 x86/p6 x86/p6/mmx x86/p6/p3mmx x86/p6/sse2
3588 x86/pentium4 x86/pentium4/mmx x86/pentium4/sse2"
3589 fat_functions
="add_n addmul_1 copyd copyi
3590 dive_1 diveby3 divrem_1 gcd_1 lshift
3591 mod_1 mod_34lsub1 mode1o mul_1 mul_basecase
3592 pre_divrem_1 pre_mod_1 rshift
3593 sqr_basecase sub_n submul_1"
3594 fat_thresholds
="MUL_KARATSUBA_THRESHOLD MUL_TOOM3_THRESHOLD
3595 SQR_KARATSUBA_THRESHOLD SQR_TOOM3_THRESHOLD"
3599 athlon64 | atom | core2 | pentium4 | x86_64
)
3601 gcc_64_cflags
="$gcc_64_cflags -m64"
3602 gcc_64_cflags_optlist
="cpu"
3603 CALLING_CONVENTIONS_OBJS_64
='amd64call.lo amd64check$U.lo'
3604 SPEED_CYCLECOUNTER_OBJ_64
=x86_64.lo
3605 cyclecounter_size_64
=2
3610 cclist_64
="$cclist_64 cc"
3611 cc_64_cflags
="-xO3 -m64"
3622 path_64
="x86_64/pentium4 x86_64"
3626 path_64
="x86_64/core2 x86_64"
3629 # The AMD K8/K9/K10 code seems best for Intel Atom
3631 path_64
="x86_64/atom x86_64"
3639 # FIXME: z8kx won't get through config.sub. Could make 16 versus 32 bit
3640 # limb an ABI option perhaps.
3643 extra_functions
="udiv_w_sdiv"
3647 extra_functions
="udiv_w_sdiv"
3651 # Special CPU "none" selects generic C. -DNO_ASM is used to disable gcc
3652 # asm blocks in longlong.h (since they're driven by cpp pre-defined
3653 # symbols like __alpha rather than the configured $host_cpu).
3656 abilist
="long longlong"
3658 gcc_long_cflags
=$gcc_cflags
3659 gcc_long_cppflags
="-DNO_ASM"
3660 cc_long_cflags
=$cc_cflags
3661 cclist_longlong
=$cclist
3662 gcc_longlong_cflags
=$gcc_cflags
3663 gcc_longlong_cppflags
="-DNO_ASM"
3664 cc_longlong_cflags
=$cc_cflags
3665 limb_longlong
=longlong
3670 # mingw can be built by the cygwin gcc if -mno-cygwin is added. For
3671 # convenience add this automatically if it works. Actual mingw gcc accepts
3672 # -mno-cygwin too, but of course is the default. mingw only runs on the
3673 # x86s, but allow any CPU here so as to catch "none" too.
3677 gcc_cflags_optlist
="$gcc_cflags_optlist nocygwin"
3678 gcc_cflags_nocygwin
="-mno-cygwin"
3683 CFLAGS_or_unset
=${CFLAGS-'(unset)'}
3684 CPPFLAGS_or_unset
=${CPPFLAGS-'(unset)'}
3690 CFLAGS=$CFLAGS_or_unset
3691 CPPFLAGS=$CPPFLAGS_or_unset
3699 test_CFLAGS
=${CFLAGS+set}
3700 test_CPPFLAGS
=${CPPFLAGS+set}
3702 for abi
in $abilist; do
3706 # If the user specifies an ABI then it must be in $abilist, after that
3707 # $abilist is restricted to just that choice.
3709 if test -n "$ABI"; then
3711 for abi
in $abilist; do
3712 if test $abi = "$ABI"; then found
=yes; break; fi
3714 if test $found = no
; then
3715 { { echo "$as_me:$LINENO: error: ABI=$ABI is not among the following valid choices: $abilist" >&5
3716 echo "$as_me: error: ABI=$ABI is not among the following valid choices: $abilist" >&2;}
3717 { (exit 1); exit 1; }; }
3724 for abi
in $abilist; do
3726 echo "checking ABI=$abi"
3728 # Suppose abilist="64 32", then for abi=64, will have abi1="_64" and
3729 # abi2="_64". For abi=32, will have abi1="_32" and abi2="". This is how
3730 # $gcc_cflags becomes a fallback for $gcc_32_cflags (the last in the
3731 # abilist), but there's no fallback for $gcc_64_cflags.
3733 abi1
=`echo _$abi | sed 's/[.]//g'`
3734 if test $abi = $abi_last; then abi2
=; else abi2
="$abi1"; fi
3736 # Compiler choices under this ABI
3737 eval cclist_chosen
=\"\
$cclist$abi1\"
3738 test -n "$cclist_chosen" ||
eval cclist_chosen
=\"\
$cclist$abi2\"
3740 # If there's a user specified $CC then don't use a list for
3741 # $cclist_chosen, just a single value for $ccbase.
3743 if test -n "$CC"; then
3745 # The first word of $CC, stripped of any directory. For instance
3746 # CC="/usr/local/bin/gcc -pipe" will give "gcc".
3748 for ccbase
in $CC; do break; done
3749 ccbase
=`echo $ccbase | sed 's:.*/::'`
3751 # If this $ccbase is in $cclist_chosen then it's a compiler we know and
3752 # we can do flags defaulting with it. If not, then $cclist_chosen is
3753 # set to "unrecognised" so no default flags are used.
3755 # "unrecognised" is used to avoid bad effects with eval if $ccbase has
3756 # non-symbol characters. For instance ccbase=my+cc would end up with
3757 # something like cflags="$my+cc_cflags" which would give
3758 # cflags="+cc_cflags" rather than the intended empty string for an
3762 for i
in $cclist_chosen; do
3763 if test "$ccbase" = $i; then
3768 cclist_chosen
=$found
3771 for ccbase
in $cclist_chosen; do
3773 # When cross compiling, look for a compiler with the $host_alias as a
3774 # prefix, the same way that AC_CHECK_TOOL does. But don't do this to a
3775 # user-selected $CC.
3777 # $cross_compiling will be yes/no/maybe at this point. Do the host
3778 # prefixing for "maybe" as well as "yes".
3780 if test "$cross_compiling" != no
&& test -z "$CC"; then
3781 cross_compiling_prefix
="${host_alias}-"
3784 for ccprefix
in $cross_compiling_prefix ""; do
3787 test -n "$cc" || cc
="$ccprefix$ccbase"
3789 # If the compiler is gcc but installed under another name, then change
3790 # $ccbase so as to use the flags we know for gcc. This helps for
3791 # instance when specifying CC=gcc272 on Debian GNU/Linux, or the
3792 # native cc which is really gcc on NeXT or MacOS-X.
3794 # FIXME: There's a slight misfeature here. If cc is actually gcc but
3795 # gcc is not a known compiler under this $abi then we'll end up
3796 # testing it with no flags and it'll work, but chances are it won't be
3797 # in the right mode for the ABI we desire. Let's quietly hope this
3800 if test $ccbase != gcc
; then
3801 cat >conftest.c
<<EOF
3802 #if ! defined (__GNUC__) || defined (__INTEL_COMPILER)
3806 gmp_compile
="$cc -c conftest.c >&5"
3807 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
3808 (eval $gmp_compile) 2>&5
3810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3811 (exit $ac_status); }; then
3813 echo "$as_me:$LINENO: checking whether $cc is gcc" >&5
3814 echo $ECHO_N "checking whether $cc is gcc... $ECHO_C" >&6
3815 echo "$as_me:$LINENO: result: yes" >&5
3816 echo "${ECHO_T}yes" >&6
3825 # Similarly if the compiler is IBM xlc but invoked as cc or whatever
3826 # then change $ccbase and make the default xlc flags available.
3827 if test $ccbase != xlc
; then
3828 gmp_command
="$cc 2>&1 | grep xlc >/dev/null"
3829 if { (eval echo "$as_me:$LINENO: \"$gmp_command\"") >&5
3830 (eval $gmp_command) 2>&5
3832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3833 (exit $ac_status); }; then
3834 echo "$as_me:$LINENO: checking whether $cc is xlc" >&5
3835 echo $ECHO_N "checking whether $cc is xlc... $ECHO_C" >&6
3836 echo "$as_me:$LINENO: result: yes" >&5
3837 echo "${ECHO_T}yes" >&6
3845 # acc was Sun's first unbundled compiler back in the SunOS days, or
3846 # something like that, but today its man page says it's not meant to
3847 # be used directly (instead via /usr/ucb/cc). The options are pretty
3848 # much the same as the main SunPRO cc, so share those configs.
3851 *sparc
*-*-solaris* |
*sparc
*-*-sunos*)
3852 if test "$ccbase" = acc
; then ccbase
=cc
; fi ;;
3855 for tmp_cflags_maybe
in yes no
; do
3856 eval cflags
=\"\$
${ccbase}${abi1}_cflags
\"
3857 test -n "$cflags" ||
eval cflags
=\"\$
${ccbase}${abi2}_cflags
\"
3859 if test "$tmp_cflags_maybe" = yes; then
3860 # don't try cflags_maybe when the user set CFLAGS
3861 if test "$test_CFLAGS" = set; then continue; fi
3862 eval cflags_maybe
=\"\$
${ccbase}${abi1}_cflags_maybe
\"
3863 test -n "$cflags_maybe" ||
eval cflags_maybe
=\"\$
${ccbase}${abi2}_cflags_maybe
\"
3864 # don't try cflags_maybe if there's nothing set
3865 if test -z "$cflags_maybe"; then continue; fi
3866 cflags
="$cflags_maybe $cflags"
3869 # Any user CFLAGS, even an empty string, takes precendence
3870 if test "$test_CFLAGS" = set; then cflags
=$CFLAGS; fi
3872 # Any user CPPFLAGS, even an empty string, takes precendence
3873 eval cppflags
=\"\$
${ccbase}${abi1}_cppflags
\"
3874 test -n "$cppflags" ||
eval cppflags
=\"\$
${ccbase}${abi2}_cppflags
\"
3875 if test "$test_CPPFLAGS" = set; then cppflags
=$CPPFLAGS; fi
3877 # --enable-profiling adds -p/-pg even to user-specified CFLAGS.
3878 # This is convenient, but it's perhaps a bit naughty to modify user
3880 case "$enable_profiling" in
3881 prof
) cflags
="$cflags -p" ;;
3882 gprof
) cflags
="$cflags -pg" ;;
3883 instrument
) cflags
="$cflags -finstrument-functions" ;;
3886 echo "$as_me:$LINENO: checking compiler $cc $cflags $cppflags" >&5
3887 echo $ECHO_N "checking compiler $cc $cflags $cppflags... $ECHO_C" >&6
3888 gmp_prog_cc_works
=yes
3890 # first see a simple "main()" works, then go on to other checks
3891 if test "$gmp_prog_cc_works" = yes; then
3892 # remove anything that might look like compiler output to our "||" expression
3893 rm -f conftest
* a.out b.out a.exe a_out.exe
3894 cat >conftest.c
<<EOF
3896 int main () { return 0; }
3898 echo "Test compile: " >&5
3899 gmp_compile
="$cc $cflags $cppflags conftest.c >&5"
3900 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
3901 (eval $gmp_compile) 2>&5
3903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3904 (exit $ac_status); }; then
3906 if test "$cross_compiling" = no
; then
3907 if { ac_try
='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
3908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3912 (exit $ac_status); }; }; then :;
3920 if test "$cc_works_part" != yes; then
3921 echo "failed program was:" >&5
3924 rm -f conftest
* a.out b.out a.exe a_out.exe
3925 case $cc_works_part in
3930 gmp_prog_cc_works
="no"
3933 gmp_prog_cc_works
="no, program does not run"
3941 if test "$gmp_prog_cc_works" = yes; then
3942 # remove anything that might look like compiler output to our "||" expression
3943 rm -f conftest
* a.out b.out a.exe a_out.exe
3944 cat >conftest.c
<<EOF
3945 /* The following provokes an internal error from gcc 2.95.2 -mpowerpc64
3946 (without -maix64), hence detecting an unusable compiler */
3947 void *g() { return (void *) 0; }
3948 void *f() { return g(); }
3950 int main () { return 0; }
3952 echo "Test compile: function pointer return" >&5
3953 gmp_compile
="$cc $cflags $cppflags conftest.c >&5"
3954 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
3955 (eval $gmp_compile) 2>&5
3957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3958 (exit $ac_status); }; then
3960 if test "$cross_compiling" = no
; then
3961 if { ac_try
='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
3962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3966 (exit $ac_status); }; }; then :;
3974 if test "$cc_works_part" != yes; then
3975 echo "failed program was:" >&5
3978 rm -f conftest
* a.out b.out a.exe a_out.exe
3979 case $cc_works_part in
3984 gmp_prog_cc_works
="no, function pointer return"
3987 gmp_prog_cc_works
="no, function pointer return, program does not run"
3995 if test "$gmp_prog_cc_works" = yes; then
3996 # remove anything that might look like compiler output to our "||" expression
3997 rm -f conftest
* a.out b.out a.exe a_out.exe
3998 cat >conftest.c
<<EOF
3999 /* The following provokes an invalid instruction syntax from i386 gcc
4000 -march=pentiumpro on Solaris 2.8. The native sun assembler
4001 requires a non-standard syntax for cmov which gcc (as of 2.95.2 at
4002 least) doesn't know. */
4004 int cmov () { return (n >= 0 ? n : 0); }
4006 int main () { return 0; }
4008 echo "Test compile: cmov instruction" >&5
4009 gmp_compile
="$cc $cflags $cppflags conftest.c >&5"
4010 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
4011 (eval $gmp_compile) 2>&5
4013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014 (exit $ac_status); }; then
4016 if test "$cross_compiling" = no
; then
4017 if { ac_try
='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
4018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4022 (exit $ac_status); }; }; then :;
4030 if test "$cc_works_part" != yes; then
4031 echo "failed program was:" >&5
4034 rm -f conftest
* a.out b.out a.exe a_out.exe
4035 case $cc_works_part in
4040 gmp_prog_cc_works
="no, cmov instruction"
4043 gmp_prog_cc_works
="no, cmov instruction, program does not run"
4051 if test "$gmp_prog_cc_works" = yes; then
4052 # remove anything that might look like compiler output to our "||" expression
4053 rm -f conftest
* a.out b.out a.exe a_out.exe
4054 cat >conftest.c
<<EOF
4055 /* The following provokes a linker invocation problem with gcc 3.0.3
4056 on AIX 4.3 under "-maix64 -mpowerpc64 -mcpu=630". The -mcpu=630
4057 option causes gcc to incorrectly select the 32-bit libgcc.a, not
4058 the 64-bit one, and consequently it misses out on the __fixunsdfdi
4059 helper (double -> uint64 conversion). */
4061 unsigned long gcc303 () { return (unsigned long) d; }
4063 int main () { return 0; }
4065 echo "Test compile: double -> ulong conversion" >&5
4066 gmp_compile
="$cc $cflags $cppflags conftest.c >&5"
4067 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
4068 (eval $gmp_compile) 2>&5
4070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4071 (exit $ac_status); }; then
4073 if test "$cross_compiling" = no
; then
4074 if { ac_try
='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
4075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4079 (exit $ac_status); }; }; then :;
4087 if test "$cc_works_part" != yes; then
4088 echo "failed program was:" >&5
4091 rm -f conftest
* a.out b.out a.exe a_out.exe
4092 case $cc_works_part in
4097 gmp_prog_cc_works
="no, double -> ulong conversion"
4100 gmp_prog_cc_works
="no, double -> ulong conversion, program does not run"
4108 if test "$gmp_prog_cc_works" = yes; then
4109 # remove anything that might look like compiler output to our "||" expression
4110 rm -f conftest
* a.out b.out a.exe a_out.exe
4111 cat >conftest.c
<<EOF
4112 /* The following provokes an error from hppa gcc 2.95 under -mpa-risc-2-0 if
4113 the assembler doesn't know hppa 2.0 instructions. fneg is a 2.0
4114 instruction, and a negation like this comes out using it. */
4116 unsigned long fneg () { return -fneg_data; }
4118 int main () { return 0; }
4120 echo "Test compile: double negation" >&5
4121 gmp_compile
="$cc $cflags $cppflags conftest.c >&5"
4122 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
4123 (eval $gmp_compile) 2>&5
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); }; then
4128 if test "$cross_compiling" = no
; then
4129 if { ac_try
='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
4130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134 (exit $ac_status); }; }; then :;
4142 if test "$cc_works_part" != yes; then
4143 echo "failed program was:" >&5
4146 rm -f conftest
* a.out b.out a.exe a_out.exe
4147 case $cc_works_part in
4152 gmp_prog_cc_works
="no, double negation"
4155 gmp_prog_cc_works
="no, double negation, program does not run"
4163 if test "$gmp_prog_cc_works" = yes; then
4164 # remove anything that might look like compiler output to our "||" expression
4165 rm -f conftest
* a.out b.out a.exe a_out.exe
4166 cat >conftest.c
<<EOF
4167 /* The following makes gcc 3.3 -march=pentium4 generate an SSE2 xmm insn
4168 (cvtsd2ss) which will provoke an error if the assembler doesn't recognise
4169 those instructions. Not sure how much of the gmp code will come out
4170 wanting sse2, but it's easiest to reject an option we know is bad. */
4172 float ftod () { return (float) ftod_data; }
4174 int main () { return 0; }
4176 echo "Test compile: double -> float conversion" >&5
4177 gmp_compile
="$cc $cflags $cppflags conftest.c >&5"
4178 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
4179 (eval $gmp_compile) 2>&5
4181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182 (exit $ac_status); }; then
4184 if test "$cross_compiling" = no
; then
4185 if { ac_try
='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
4186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4190 (exit $ac_status); }; }; then :;
4198 if test "$cc_works_part" != yes; then
4199 echo "failed program was:" >&5
4202 rm -f conftest
* a.out b.out a.exe a_out.exe
4203 case $cc_works_part in
4208 gmp_prog_cc_works
="no, double -> float conversion"
4211 gmp_prog_cc_works
="no, double -> float conversion, program does not run"
4219 if test "$gmp_prog_cc_works" = yes; then
4220 # remove anything that might look like compiler output to our "||" expression
4221 rm -f conftest
* a.out b.out a.exe a_out.exe
4222 cat >conftest.c
<<EOF
4223 /* The following provokes an internal compiler error from gcc version
4224 "2.9-gnupro-99r1" under "-O2 -mcpu=ev6", apparently relating to char
4225 values being spilled into floating point registers. The problem doesn't
4226 show up all the time, but has occurred enough in GMP for us to reject
4227 this compiler+flags. */
4228 #include <string.h> /* for memcpy */
4233 long d0, d1, d2, d3, d4, d5, d6;
4236 struct try_t param[6];
4241 memcpy (p, ¶m[ 2 ], sizeof (*p));
4242 memcpy (p, ¶m[ 2 ], sizeof (*p));
4244 memcpy (p, ¶m[ 1 ], sizeof (*p));
4247 memcpy (p, ¶m[ 3 ], sizeof (*p));
4250 memcpy (p, ¶m[ 4 ], sizeof (*p));
4251 memcpy (p, ¶m[ 4 ], sizeof (*p));
4253 memcpy (p, ¶m[ 5 ], sizeof (*p));
4254 memcpy (p, ¶m[ 5 ], sizeof (*p));
4255 memcpy (p, ¶m[ 5 ], sizeof (*p));
4259 int main () { return 0; }
4261 echo "Test compile: gnupro alpha ev6 char spilling" >&5
4262 gmp_compile
="$cc $cflags $cppflags conftest.c >&5"
4263 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
4264 (eval $gmp_compile) 2>&5
4266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4267 (exit $ac_status); }; then
4269 if test "$cross_compiling" = no
; then
4270 if { ac_try
='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
4271 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); }; }; then :;
4283 if test "$cc_works_part" != yes; then
4284 echo "failed program was:" >&5
4287 rm -f conftest
* a.out b.out a.exe a_out.exe
4288 case $cc_works_part in
4293 gmp_prog_cc_works
="no, gnupro alpha ev6 char spilling"
4296 gmp_prog_cc_works
="no, gnupro alpha ev6 char spilling, program does not run"
4304 # __builtin_alloca is not available everywhere, check it exists before
4305 # seeing that it works
4306 if test "$gmp_prog_cc_works" = yes; then
4307 # remove anything that might look like compiler output to our "||" expression
4308 rm -f conftest
* a.out b.out a.exe a_out.exe
4309 cat >conftest.c
<<EOF
4310 int k; int foo () { __builtin_alloca (k); }
4312 echo "Test compile: __builtin_alloca availability" >&5
4313 gmp_compile
="$cc $cflags $cppflags conftest.c >&5"
4314 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
4315 (eval $gmp_compile) 2>&5
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); }; then
4320 if test "$cross_compiling" = no
; then
4321 if { ac_try
='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
4322 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4326 (exit $ac_status); }; }; then :;
4334 if test "$cc_works_part" != yes; then
4335 echo "failed program was:" >&5
4338 rm -f conftest
* a.out b.out a.exe a_out.exe
4339 case $cc_works_part in
4341 if test "$gmp_prog_cc_works" = yes; then
4342 # remove anything that might look like compiler output to our "||" expression
4343 rm -f conftest
* a.out b.out a.exe a_out.exe
4344 cat >conftest.c
<<EOF
4345 /* The following provokes an internal compiler error from Itanium HP-UX cc
4346 under +O2 or higher. We use this sort of code in mpn/generic/mul_fft.c. */
4351 a = __builtin_alloca (k);
4352 for (i = 0; i <= k; i++)
4353 a[i] = __builtin_alloca (1 << i);
4356 int main () { return 0; }
4358 echo "Test compile: alloca array" >&5
4359 gmp_compile
="$cc $cflags $cppflags conftest.c >&5"
4360 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
4361 (eval $gmp_compile) 2>&5
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); }; then
4366 if test "$cross_compiling" = no
; then
4367 if { ac_try
='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
4368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4372 (exit $ac_status); }; }; then :;
4380 if test "$cc_works_part" != yes; then
4381 echo "failed program was:" >&5
4384 rm -f conftest
* a.out b.out a.exe a_out.exe
4385 case $cc_works_part in
4390 gmp_prog_cc_works
="no, alloca array"
4393 gmp_prog_cc_works
="no, alloca array, program does not run"
4411 if test "$gmp_prog_cc_works" = yes; then
4412 # remove anything that might look like compiler output to our "||" expression
4413 rm -f conftest
* a.out b.out a.exe a_out.exe
4414 cat >conftest.c
<<EOF
4415 /* The following provokes an internal error from the assembler on
4416 power2-ibm-aix4.3.1.0. gcc -mrios2 compiles to nabs+fcirz, and this
4417 results in "Internal error related to the source program domain".
4419 For reference it seems to be the combination of nabs+fcirz which is bad,
4420 not either alone. This sort of thing occurs in mpz/get_str.c with the
4421 way double chars_per_bit_exactly is applied in MPN_SIZEINBASE. Perhaps
4422 if that code changes to a scaled-integer style then we won't need this
4430 a = (x >= 0 ? x : -x);
4434 int main () { return 0; }
4436 echo "Test compile: abs int -> double conversion" >&5
4437 gmp_compile
="$cc $cflags $cppflags conftest.c >&5"
4438 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
4439 (eval $gmp_compile) 2>&5
4441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4442 (exit $ac_status); }; then
4444 if test "$cross_compiling" = no
; then
4445 if { ac_try
='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
4446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4450 (exit $ac_status); }; }; then :;
4458 if test "$cc_works_part" != yes; then
4459 echo "failed program was:" >&5
4462 rm -f conftest
* a.out b.out a.exe a_out.exe
4463 case $cc_works_part in
4468 gmp_prog_cc_works
="no, abs int -> double conversion"
4471 gmp_prog_cc_works
="no, abs int -> double conversion, program does not run"
4479 if test "$gmp_prog_cc_works" = yes; then
4480 # remove anything that might look like compiler output to our "||" expression
4481 rm -f conftest
* a.out b.out a.exe a_out.exe
4482 cat >conftest.c
<<EOF
4483 /* The following provokes a segfault in the compiler on powerpc-apple-darwin.
4484 Extracted from tests/mpn/t-iord_u.c. Causes Apple's gcc 3.3 build 1640 and
4485 1666 to segfault with e.g., -O2 -mpowerpc64. */
4487 #if defined (__GNUC__) && ! defined (__cplusplus)
4488 typedef unsigned long long t1;typedef t1*t2;
4489 __inline__ t1 e(t2 rp,t2 up,int n,t1 v0)
4490 {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;}
4491 f(){static const struct{t1 n;t1 src[9];t1 want[9];}d[]={{1,{0},{1}},};t1 got[9];int i;
4492 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();}}
4498 int main () { return 0; }
4500 echo "Test compile: long long reliability test 1" >&5
4501 gmp_compile
="$cc $cflags $cppflags conftest.c >&5"
4502 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
4503 (eval $gmp_compile) 2>&5
4505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4506 (exit $ac_status); }; then
4508 if test "$cross_compiling" = no
; then
4509 if { ac_try
='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
4510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4514 (exit $ac_status); }; }; then :;
4522 if test "$cc_works_part" != yes; then
4523 echo "failed program was:" >&5
4526 rm -f conftest
* a.out b.out a.exe a_out.exe
4527 case $cc_works_part in
4532 gmp_prog_cc_works
="no, long long reliability test 1"
4535 gmp_prog_cc_works
="no, long long reliability test 1, program does not run"
4543 if test "$gmp_prog_cc_works" = yes; then
4544 # remove anything that might look like compiler output to our "||" expression
4545 rm -f conftest
* a.out b.out a.exe a_out.exe
4546 cat >conftest.c
<<EOF
4547 /* The following provokes an internal compiler error on powerpc-apple-darwin.
4548 Extracted from mpz/cfdiv_q_2exp.c. Causes Apple's gcc 3.3 build 1640 and
4549 1666 to get an ICE with -O1 -mpowerpc64. */
4551 #if defined (__GNUC__) && ! defined (__cplusplus)
4552 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();}
4558 int main () { return 0; }
4560 echo "Test compile: long long reliability test 2" >&5
4561 gmp_compile
="$cc $cflags $cppflags conftest.c >&5"
4562 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
4563 (eval $gmp_compile) 2>&5
4565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4566 (exit $ac_status); }; then
4568 if test "$cross_compiling" = no
; then
4569 if { ac_try
='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
4570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4574 (exit $ac_status); }; }; then :;
4582 if test "$cc_works_part" != yes; then
4583 echo "failed program was:" >&5
4586 rm -f conftest
* a.out b.out a.exe a_out.exe
4587 case $cc_works_part in
4592 gmp_prog_cc_works
="no, long long reliability test 2"
4595 gmp_prog_cc_works
="no, long long reliability test 2, program does not run"
4603 if test "$gmp_prog_cc_works" = yes; then
4604 # remove anything that might look like compiler output to our "||" expression
4605 rm -f conftest
* a.out b.out a.exe a_out.exe
4606 cat >conftest.c
<<EOF
4607 /* The following is mis-compiled by HP ia-64 cc version
4608 cc: HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]
4609 under "cc +O3", both in +DD32 and +DD64 modes. The mpn_lshift_com gets
4610 inlined and its return value somehow botched to be 0 instead of 1. This
4611 arises in the real mpn_lshift_com in mul_fft.c. A lower optimization
4612 level, like +O2 seems ok. This code needs to be run to show the problem,
4613 but that's fine, the offending cc is a native-only compiler so we don't
4614 have to worry about cross compiling. */
4616 #if ! defined (__cplusplus)
4618 lshift_com (rp, up, n, cnt)
4624 unsigned long retval, high_limb, low_limb;
4627 tnc = 8 * sizeof (unsigned long) - cnt;
4629 retval = low_limb >> tnc;
4630 high_limb = low_limb << cnt;
4631 for (i = n - 1; i != 0; i--)
4634 *rp++ = ~(high_limb | (low_limb >> tnc));
4635 high_limb = low_limb << cnt;
4642 unsigned long cy, rp[2], up[2];
4645 cy = lshift_com (rp, up, 2L, 1);
4659 echo "Test compile: mpn_lshift_com optimization" >&5
4660 gmp_compile
="$cc $cflags $cppflags conftest.c >&5"
4661 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
4662 (eval $gmp_compile) 2>&5
4664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4665 (exit $ac_status); }; then
4667 if test "$cross_compiling" = no
; then
4668 if { ac_try
='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
4669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); }; }; then :;
4681 if test "$cc_works_part" != yes; then
4682 echo "failed program was:" >&5
4685 rm -f conftest
* a.out b.out a.exe a_out.exe
4686 case $cc_works_part in
4691 gmp_prog_cc_works
="no, mpn_lshift_com optimization"
4694 gmp_prog_cc_works
="no, mpn_lshift_com optimization, program does not run"
4701 if test "$gmp_prog_cc_works" = yes; then
4702 # remove anything that might look like compiler output to our "||" expression
4703 rm -f conftest
* a.out b.out a.exe a_out.exe
4704 cat >conftest.c
<<EOF
4705 /* The following is mis-compiled by Intel ia-64 icc version 1.8 under
4706 "icc -O3", After several calls, the function writes parial garbage to
4707 the result vector. Perhaps relates to the chk.a.nc insn. This code needs
4708 to be run to show the problem, but that's fine, the offending cc is a
4709 native-only compiler so we don't have to worry about cross compiling. */
4711 #if ! defined (__cplusplus)
4714 lshift_com (rp, up, n, cnt)
4720 unsigned long high_limb, low_limb;
4725 tnc = 8 * sizeof (unsigned long) - cnt;
4727 high_limb = low_limb << cnt;
4728 for (i = n - 1; i != 0; i--)
4731 *--rp = ~(high_limb | (low_limb >> tnc));
4732 high_limb = low_limb << cnt;
4739 unsigned long *r, *r2;
4740 unsigned long a[88 + 1];
4742 for (i = 0; i < 88 + 1; i++)
4744 r = malloc (10000 * sizeof (unsigned long));
4746 for (i = 0; i < 528; i += 22)
4749 i / (8 * sizeof (unsigned long)) + 1,
4750 i % (8 * sizeof (unsigned long)));
4753 if (r[2048] != 0 || r[2049] != 0 || r[2050] != 0 || r[2051] != 0 ||
4754 r[2052] != 0 || r[2053] != 0 || r[2054] != 0)
4767 echo "Test compile: mpn_lshift_com optimization 2" >&5
4768 gmp_compile
="$cc $cflags $cppflags conftest.c >&5"
4769 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
4770 (eval $gmp_compile) 2>&5
4772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4773 (exit $ac_status); }; then
4775 if test "$cross_compiling" = no
; then
4776 if { ac_try
='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
4777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4781 (exit $ac_status); }; }; then :;
4789 if test "$cc_works_part" != yes; then
4790 echo "failed program was:" >&5
4793 rm -f conftest
* a.out b.out a.exe a_out.exe
4794 case $cc_works_part in
4799 gmp_prog_cc_works
="no, mpn_lshift_com optimization 2"
4802 gmp_prog_cc_works
="no, mpn_lshift_com optimization 2, program does not run"
4810 # A certain _GLOBAL_OFFSET_TABLE_ problem in past versions of gas, tickled
4811 # by recent versions of gcc.
4813 if test "$gmp_prog_cc_works" = yes; then
4815 i?
86*-*-* | k
[5-8]*-*-* | pentium
*-*-* | athlon-
*-* | viac3
*-*-* | geode
*-*-*)
4816 # this problem only arises in PIC code, so don't need to test when
4817 # --disable-shared. We don't necessarily have $enable_shared set to
4818 # yes at this point, it will still be unset for the default (which is
4819 # yes); hence the use of "!= no".
4820 if test "$enable_shared" != no
; then
4821 echo "Testing gcc GOT with eax emitted" >&5
4822 cat >conftest.c
<<\EOF
4824 int bar
() { return foo
; }
4827 gmp_compile
="$cc $cflags $cppflags -fPIC -S conftest.c >&5 2>&1"
4828 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
4829 (eval $gmp_compile) 2>&5
4831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4832 (exit $ac_status); }; then
4833 if grep "addl.*_GLOBAL_OFFSET_TABLE_.*eax" conftest.s
>/dev
/null
; then
4838 echo "Result: $tmp_got_emitted" >&5
4839 if test "$tmp_got_emitted" = yes; then
4840 echo "Testing gas GOT with eax good" >&5
4841 cat >conftest.
awk <<\EOF
4870 for (f
= 2; f
<= NF
; f
++)
4872 for (i
= 0; i
< 20; i
++)
4877 for (i
= 0; i
< 21; i
++)
4878 if (got
[i
] != want
[i
])
4894 cat >conftest.s
<<\EOF
4896 .byte
1, 35, 69, 103, 137, 171, 205, 239
4897 addl
$_GLOBAL_OFFSET_TABLE_, %eax
4898 .byte
254, 220, 186, 152, 118, 84, 50, 16
4901 gmp_compile
="$cc $cflags $cppflags -fPIC -o conftest.o -c conftest.s >&5 2>&1"
4902 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
4903 (eval $gmp_compile) 2>&5
4905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4906 (exit $ac_status); }; then
4907 tmp_got_good
=`od -b conftest.o | $AWK -f conftest.awk`
4910 echo "Result: $tmp_got_good" >&5
4911 if test "$tmp_got_good" = no
; then
4912 gmp_prog_cc_works
="no, bad gas GOT with eax"
4926 echo "$as_me:$LINENO: result: $gmp_prog_cc_works" >&5
4927 echo "${ECHO_T}$gmp_prog_cc_works" >&6
4928 case $gmp_prog_cc_works in
4938 # If we're supposed to be using a "long long" for a limb, check that
4940 eval limb_chosen
=\"\
$limb$abi1\"
4941 test -n "$limb_chosen" ||
eval limb_chosen
=\"\
$limb$abi2\"
4942 if test "$limb_chosen" = longlong
; then
4943 echo "$as_me:$LINENO: checking compiler $cc $cflags $cppflags has long long" >&5
4944 echo $ECHO_N "checking compiler $cc $cflags $cppflags has long long... $ECHO_C" >&6
4945 cat >conftest.c
<<EOF
4947 long long bar () { return foo; }
4948 int main () { return 0; }
4950 gmp_prog_cc_works
=no
4951 gmp_compile
="$cc $cflags $cppflags -c conftest.c >&5"
4952 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
4953 (eval $gmp_compile) 2>&5
4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); }; then
4957 gmp_prog_cc_works
=yes
4959 echo "failed program was:" >&5
4962 rm -f conftest
* a.out b.out a.exe a_out.exe
4963 echo "$as_me:$LINENO: result: $gmp_prog_cc_works" >&5
4964 echo "${ECHO_T}$gmp_prog_cc_works" >&6
4965 if test $gmp_prog_cc_works = yes; then
4973 # The tests to perform on this $cc, if any
4974 eval testlist
=\"\$
${ccbase}${abi1}_testlist
\"
4975 test -n "$testlist" ||
eval testlist
=\"\$
${ccbase}${abi2}_testlist
\"
4976 test -n "$testlist" ||
eval testlist
=\"\
$any${abi1}_testlist
\"
4977 test -n "$testlist" ||
eval testlist
=\"\
$any${abi2}_testlist
\"
4980 for tst
in $testlist; do
4982 hpc-hppa-2-0
) echo "$as_me:$LINENO: checking whether HP compiler $cc is good for 64-bits" >&5
4983 echo $ECHO_N "checking whether HP compiler $cc is good for 64-bits... $ECHO_C" >&6
4984 # Bad compiler output:
4985 # ccom: HP92453-01 G.10.32.05 HP C Compiler
4986 # Good compiler output:
4987 # ccom: HP92453-01 A.10.32.30 HP C Compiler
4988 # Let A.10.32.30 or higher be ok.
4990 gmp_tmp_vs
=`$cc -V -c -o conftest.$OBJEXT conftest.c 2>&1 | grep "^ccom:"`
4991 echo "Version string: $gmp_tmp_vs" >&5
4993 gmp_tmp_v1
=`echo $gmp_tmp_vs | sed 's/.* .\.\([0-9]*\).*/\1/'`
4994 gmp_tmp_v2
=`echo $gmp_tmp_vs | sed 's/.* .\..*\.\(.*\)\..* HP C.*/\1/'`
4995 gmp_tmp_v3
=`echo $gmp_tmp_vs | sed 's/.* .\..*\..*\.\(.*\) HP C.*/\1/'`
4996 echo "Version number: $gmp_tmp_v1.$gmp_tmp_v2.$gmp_tmp_v3" >&5
4997 if test -z "$gmp_tmp_v1"; then
4998 gmp_hpc_64bit
=not-applicable
5001 if test -n "$gmp_tmp_v1"; then
5002 if test "$gmp_tmp_v1" -gt 10; then
5005 if test "$gmp_tmp_v1" -eq 10; then
5006 if test -n "$gmp_tmp_v2"; then
5007 if test "$gmp_tmp_v2" -gt 32; then
5010 if test "$gmp_tmp_v2" -eq 32; then
5011 if test -n "$gmp_tmp_v3" && test "$gmp_tmp_v3" -ge 30; then
5024 gmp_hpc_64bit
=$gmp_compare_ge
5026 echo "$as_me:$LINENO: result: $gmp_hpc_64bit" >&5
5027 echo "${ECHO_T}$gmp_hpc_64bit" >&6
5028 if test $gmp_hpc_64bit = yes; then
5034 gcc-arm-umodsi
) echo "$as_me:$LINENO: checking whether ARM gcc unsigned division works" >&5
5035 echo $ECHO_N "checking whether ARM gcc unsigned division works... $ECHO_C" >&6
5036 tmp_version
=`$cc --version`
5037 echo "$tmp_version" >&5
5038 case $tmp_version in
5041 gmp_gcc_arm_umodsi_result
="no, gcc 2.95.[0123]" ;;
5044 gmp_gcc_arm_umodsi_result
=yes ;;
5046 echo "$as_me:$LINENO: result: $gmp_gcc_arm_umodsi_result" >&5
5047 echo "${ECHO_T}$gmp_gcc_arm_umodsi_result" >&6
5049 gcc-mips-o32
) echo "$as_me:$LINENO: checking whether gcc supports o32" >&5
5050 echo $ECHO_N "checking whether gcc supports o32... $ECHO_C" >&6
5051 echo 'int x;' >conftest.c
5052 echo "$cc -mabi=32 -c conftest.c" >&5
5053 if $cc -mabi=32 -c conftest.c
>conftest.out
2>&1; then
5056 cat conftest.out
>&5
5057 if grep "cc1: Invalid option \`abi=32'" conftest.out
>/dev
/null
; then
5064 echo "$as_me:$LINENO: result: $result" >&5
5065 echo "${ECHO_T}$result" >&6
5066 if test $result = yes; then
5072 hppa-level-2.0
) echo "$as_me:$LINENO: checking $cc $cflags assembler knows hppa 2.0" >&5
5073 echo $ECHO_N "checking $cc $cflags assembler knows hppa 2.0... $ECHO_C" >&6
5075 cat >conftest.s
<<EOF
5078 gmp_compile
="$cc $cflags -c conftest.s >&5 2>&1"
5079 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5080 (eval $gmp_compile) 2>&5
5082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5083 (exit $ac_status); }; then
5086 echo "failed program was" >&5
5090 echo "$as_me:$LINENO: result: $result" >&5
5091 echo "${ECHO_T}$result" >&6
5092 if test "$result" = yes; then
5098 sizeof
*) echo "configure: testlist $tst" >&5
5099 gmp_sizeof_type
=`echo "$tst" | sed 's/sizeof-\([a-z]*\).*/\1/'`
5100 gmp_sizeof_want
=`echo "$tst" | sed 's/sizeof-[a-z]*-\([0-9]*\).*/\1/'`
5101 echo "$as_me:$LINENO: checking compiler $cc $cflags has sizeof($gmp_sizeof_type)==$gmp_sizeof_want" >&5
5102 echo $ECHO_N "checking compiler $cc $cflags has sizeof($gmp_sizeof_type)==$gmp_sizeof_want... $ECHO_C" >&6
5103 cat >conftest.c
<<EOF
5107 static int test_array [1 - 2 * (long) (sizeof ($gmp_sizeof_type) != $gmp_sizeof_want)];
5112 gmp_c_testlist_sizeof
=no
5113 gmp_compile
="$cc $cflags -c conftest.c >&5"
5114 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5115 (eval $gmp_compile) 2>&5
5117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5118 (exit $ac_status); }; then
5119 gmp_c_testlist_sizeof
=yes
5122 echo "$as_me:$LINENO: result: $gmp_c_testlist_sizeof" >&5
5123 echo "${ECHO_T}$gmp_c_testlist_sizeof" >&6
5124 if test $gmp_c_testlist_sizeof = yes; then
5131 if test $testlist_pass = no
; then break; fi
5134 if test $testlist_pass = yes; then
5140 if test $found_compiler = yes; then break; fi
5143 if test $found_compiler = yes; then break; fi
5146 if test $found_compiler = yes; then break; fi
5150 # If we recognised the CPU, as indicated by $path being set, then insist
5151 # that we have a working compiler, either from our $cclist choices or from
5152 # $CC. We can't let AC_PROG_CC look around for a compiler because it might
5153 # find one that we've rejected (for not supporting the modes our asm code
5156 # If we didn't recognise the CPU (and this includes host_cpu=none), then
5157 # fall through and let AC_PROG_CC look around for a compiler too. This is
5158 # mostly in the interests of following a standard autoconf setup, after all
5159 # we've already tested cc and gcc adequately (hopefully). As of autoconf
5160 # 2.50 the only thing AC_PROG_CC really adds is a check for "cl" (Microsoft
5161 # C on MS-DOS systems).
5163 if test $found_compiler = no
&& test -n "$path"; then
5164 { { echo "$as_me:$LINENO: error: could not find a working compiler, see config.log for details" >&5
5165 echo "$as_me: error: could not find a working compiler, see config.log for details" >&2;}
5166 { (exit 1); exit 1; }; }
5170 if test $found_compiler = yes; then
5172 # If we're creating CFLAGS, then look for optional additions. If the user
5173 # set CFLAGS then leave it alone.
5175 if test "$test_CFLAGS" != set; then
5176 eval optlist
=\"\$
${ccbase}${abi1}_cflags_optlist
\"
5177 test -n "$optlist" ||
eval optlist
=\"\$
${ccbase}${abi2}_cflags_optlist
\"
5179 for opt
in $optlist; do
5180 eval optflags
=\"\$
${ccbase}${abi1}_cflags_${opt}\"
5181 test -n "$optflags" ||
eval optflags
=\"\$
${ccbase}${abi2}_cflags_${opt}\"
5182 test -n "$optflags" ||
eval optflags
=\"\$
${ccbase}_cflags_
${opt}\"
5184 for flag
in $optflags; do
5186 # ~ represents a space in an option spec
5187 flag
=`echo "$flag" | tr '~' ' '`
5190 -march=pentium4 |
-march=k8
)
5191 # For -march settings which enable SSE2 we exclude certain bad
5192 # gcc versions and we need an OS knowing how to save xmm regs.
5194 # This is only for ABI=32, any 64-bit gcc is good and any OS
5195 # knowing x86_64 will know xmm.
5197 # -march=k8 was only introduced in gcc 3.3, so we shouldn't need
5198 # the GMP_GCC_PENTIUM4_SSE2 check (for gcc 3.2 and prior). But
5199 # it doesn't hurt to run it anyway, sharing code with the
5202 if test "$abi" = 32; then
5203 echo "$as_me:$LINENO: checking whether gcc is good for sse2" >&5
5204 echo $ECHO_N "checking whether gcc is good for sse2... $ECHO_C" >&6
5205 case `$cc $cflags $cppflags -dumpversion` in
5206 3.
[012] |
3.
[012].
*) result
=no
;;
5209 echo "$as_me:$LINENO: result: $result" >&5
5210 echo "${ECHO_T}$result" >&6
5211 if test "$result" = yes; then
5217 echo "$as_me:$LINENO: checking whether the operating system supports XMM registers" >&5
5218 echo $ECHO_N "checking whether the operating system supports XMM registers... $ECHO_C" >&6
5219 if test "${gmp_cv_os_x86_xmm+set}" = set; then
5220 echo $ECHO_N "(cached) $ECHO_C" >&6
5222 if test "$build" = "$host"; then
5223 # remove anything that might look like compiler output to our "||" expression
5224 rm -f conftest
* a.out b.out a.exe a_out.exe
5225 cat >conftest.s
<<EOF
5231 .byte 0x0f, 0x57, 0xc0
5235 gmp_compile
="$cc $cflags $cppflags conftest.s -o conftest >&5"
5236 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5237 (eval $gmp_compile) 2>&5
5239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5240 (exit $ac_status); }; then
5241 if { ac_try
='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5246 (exit $ac_status); }; }; then
5247 gmp_cv_os_x86_xmm
=yes
5249 gmp_cv_os_x86_xmm
=no
5252 { echo "$as_me:$LINENO: WARNING: Oops, cannot compile test program" >&5
5253 echo "$as_me: WARNING: Oops, cannot compile test program" >&2;}
5258 if test -z "$gmp_cv_os_x86_xmm"; then
5260 freebsd
[123] | freebsd
[123].
*)
5261 gmp_cv_os_x86_xmm
=no
;;
5263 gmp_cv_os_x86_xmm
=yes ;;
5265 gmp_cv_os_x86_xmm
=probably
;;
5270 echo "$as_me:$LINENO: result: $gmp_cv_os_x86_xmm" >&5
5271 echo "${ECHO_T}$gmp_cv_os_x86_xmm" >&6
5273 if test "$gmp_cv_os_x86_xmm" = probably
; then
5274 { echo "$as_me:$LINENO: WARNING: Not certain of OS support for xmm when cross compiling." >&5
5275 echo "$as_me: WARNING: Not certain of OS support for xmm when cross compiling." >&2;}
5276 { echo "$as_me:$LINENO: WARNING: Will assume it's ok, expect a SIGILL if this is wrong." >&5
5277 echo "$as_me: WARNING: Will assume it's ok, expect a SIGILL if this is wrong." >&2;}
5280 case $gmp_cv_os_x86_xmm in
5292 # special check, avoiding a warning
5293 if test "$ccbase" = gcc
; then
5294 echo "$as_me:$LINENO: checking compiler $cc $cflags -no-cpp-precomp" >&5
5295 echo $ECHO_N "checking compiler $cc $cflags -no-cpp-precomp... $ECHO_C" >&6
5297 cat >conftest.c
<<EOF
5298 int main () { return 0; }
5300 gmp_compile
="$cc $cflags -no-cpp-precomp conftest.c >conftest.out 2>&1"
5301 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5302 (eval $gmp_compile) 2>&5
5304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5305 (exit $ac_status); }; then
5306 if grep "unrecognized option.*-no-cpp-precomp" conftest.out
>/dev
/null
; then : ;
5311 cat conftest.out
>&5
5312 rm -f conftest
* a.out b.out a.exe a_out.exe
5313 echo "$as_me:$LINENO: result: $result" >&5
5314 echo "${ECHO_T}$result" >&6
5315 if test "$result" = yes; then
5316 cflags
="$cflags $flag"
5327 echo "$as_me:$LINENO: checking assembler $cc $cflags $flag" >&5
5328 echo $ECHO_N "checking assembler $cc $cflags $flag... $ECHO_C" >&6
5330 cat >conftest.c
<<EOF
5333 gmp_compile
="$cc $cflags $flag -c conftest.c >conftest.out 2>&1"
5334 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5335 (eval $gmp_compile) 2>&5
5337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5338 (exit $ac_status); }; then
5339 if grep "Unknown CPU identifier" conftest.out
>/dev
/null
; then : ;
5344 cat conftest.out
>&5
5346 echo "$as_me:$LINENO: result: $result" >&5
5347 echo "${ECHO_T}$result" >&6
5348 if test "$result" = yes; then
5358 echo "$as_me:$LINENO: checking for $cc $cflags $cppflags -Wa,-oldas" >&5
5359 echo $ECHO_N "checking for $cc $cflags $cppflags -Wa,-oldas... $ECHO_C" >&6
5361 cat >conftest.c
<<EOF
5363 echo "with empty conftest.c" >&5
5364 gmp_compile
="$cc $cflags $cppflags -c conftest.c >&5 2>&1"
5365 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5366 (eval $gmp_compile) 2>&5
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); }; then : ;
5372 gmp_compile
="$cc $cflags $cppflags -Wa,-oldas -c conftest.c >&5 2>&1"
5373 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5374 (eval $gmp_compile) 2>&5
5376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5377 (exit $ac_status); }; then
5378 # but with -Wa,-oldas it works
5383 echo "$as_me:$LINENO: result: $result" >&5
5384 echo "${ECHO_T}$result" >&6
5385 if test "$result" = yes; then
5386 cflags
="$cflags $flag"
5395 echo "$as_me:$LINENO: checking compiler $cc $cflags $cppflags $flag" >&5
5396 echo $ECHO_N "checking compiler $cc $cflags $cppflags $flag... $ECHO_C" >&6
5397 gmp_prog_cc_works
=yes
5399 # first see a simple "main()" works, then go on to other checks
5400 if test "$gmp_prog_cc_works" = yes; then
5401 # remove anything that might look like compiler output to our "||" expression
5402 rm -f conftest
* a.out b.out a.exe a_out.exe
5403 cat >conftest.c
<<EOF
5405 int main () { return 0; }
5407 echo "Test compile: " >&5
5408 gmp_compile
="$cc $cflags $cppflags $flag conftest.c >&5"
5409 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5410 (eval $gmp_compile) 2>&5
5412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413 (exit $ac_status); }; then
5415 if test "$cross_compiling" = no
; then
5416 if { ac_try
='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5421 (exit $ac_status); }; }; then :;
5429 if test "$cc_works_part" != yes; then
5430 echo "failed program was:" >&5
5433 rm -f conftest
* a.out b.out a.exe a_out.exe
5434 case $cc_works_part in
5439 gmp_prog_cc_works
="no"
5442 gmp_prog_cc_works
="no, program does not run"
5450 if test "$gmp_prog_cc_works" = yes; then
5451 # remove anything that might look like compiler output to our "||" expression
5452 rm -f conftest
* a.out b.out a.exe a_out.exe
5453 cat >conftest.c
<<EOF
5454 /* The following provokes an internal error from gcc 2.95.2 -mpowerpc64
5455 (without -maix64), hence detecting an unusable compiler */
5456 void *g() { return (void *) 0; }
5457 void *f() { return g(); }
5459 int main () { return 0; }
5461 echo "Test compile: function pointer return" >&5
5462 gmp_compile
="$cc $cflags $cppflags $flag conftest.c >&5"
5463 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5464 (eval $gmp_compile) 2>&5
5466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5467 (exit $ac_status); }; then
5469 if test "$cross_compiling" = no
; then
5470 if { ac_try
='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5471 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5475 (exit $ac_status); }; }; then :;
5483 if test "$cc_works_part" != yes; then
5484 echo "failed program was:" >&5
5487 rm -f conftest
* a.out b.out a.exe a_out.exe
5488 case $cc_works_part in
5493 gmp_prog_cc_works
="no, function pointer return"
5496 gmp_prog_cc_works
="no, function pointer return, program does not run"
5504 if test "$gmp_prog_cc_works" = yes; then
5505 # remove anything that might look like compiler output to our "||" expression
5506 rm -f conftest
* a.out b.out a.exe a_out.exe
5507 cat >conftest.c
<<EOF
5508 /* The following provokes an invalid instruction syntax from i386 gcc
5509 -march=pentiumpro on Solaris 2.8. The native sun assembler
5510 requires a non-standard syntax for cmov which gcc (as of 2.95.2 at
5511 least) doesn't know. */
5513 int cmov () { return (n >= 0 ? n : 0); }
5515 int main () { return 0; }
5517 echo "Test compile: cmov instruction" >&5
5518 gmp_compile
="$cc $cflags $cppflags $flag conftest.c >&5"
5519 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5520 (eval $gmp_compile) 2>&5
5522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5523 (exit $ac_status); }; then
5525 if test "$cross_compiling" = no
; then
5526 if { ac_try
='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5531 (exit $ac_status); }; }; then :;
5539 if test "$cc_works_part" != yes; then
5540 echo "failed program was:" >&5
5543 rm -f conftest
* a.out b.out a.exe a_out.exe
5544 case $cc_works_part in
5549 gmp_prog_cc_works
="no, cmov instruction"
5552 gmp_prog_cc_works
="no, cmov instruction, program does not run"
5560 if test "$gmp_prog_cc_works" = yes; then
5561 # remove anything that might look like compiler output to our "||" expression
5562 rm -f conftest
* a.out b.out a.exe a_out.exe
5563 cat >conftest.c
<<EOF
5564 /* The following provokes a linker invocation problem with gcc 3.0.3
5565 on AIX 4.3 under "-maix64 -mpowerpc64 -mcpu=630". The -mcpu=630
5566 option causes gcc to incorrectly select the 32-bit libgcc.a, not
5567 the 64-bit one, and consequently it misses out on the __fixunsdfdi
5568 helper (double -> uint64 conversion). */
5570 unsigned long gcc303 () { return (unsigned long) d; }
5572 int main () { return 0; }
5574 echo "Test compile: double -> ulong conversion" >&5
5575 gmp_compile
="$cc $cflags $cppflags $flag conftest.c >&5"
5576 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5577 (eval $gmp_compile) 2>&5
5579 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580 (exit $ac_status); }; then
5582 if test "$cross_compiling" = no
; then
5583 if { ac_try
='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5584 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5588 (exit $ac_status); }; }; then :;
5596 if test "$cc_works_part" != yes; then
5597 echo "failed program was:" >&5
5600 rm -f conftest
* a.out b.out a.exe a_out.exe
5601 case $cc_works_part in
5606 gmp_prog_cc_works
="no, double -> ulong conversion"
5609 gmp_prog_cc_works
="no, double -> ulong conversion, program does not run"
5617 if test "$gmp_prog_cc_works" = yes; then
5618 # remove anything that might look like compiler output to our "||" expression
5619 rm -f conftest
* a.out b.out a.exe a_out.exe
5620 cat >conftest.c
<<EOF
5621 /* The following provokes an error from hppa gcc 2.95 under -mpa-risc-2-0 if
5622 the assembler doesn't know hppa 2.0 instructions. fneg is a 2.0
5623 instruction, and a negation like this comes out using it. */
5625 unsigned long fneg () { return -fneg_data; }
5627 int main () { return 0; }
5629 echo "Test compile: double negation" >&5
5630 gmp_compile
="$cc $cflags $cppflags $flag conftest.c >&5"
5631 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5632 (eval $gmp_compile) 2>&5
5634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5635 (exit $ac_status); }; then
5637 if test "$cross_compiling" = no
; then
5638 if { ac_try
='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643 (exit $ac_status); }; }; then :;
5651 if test "$cc_works_part" != yes; then
5652 echo "failed program was:" >&5
5655 rm -f conftest
* a.out b.out a.exe a_out.exe
5656 case $cc_works_part in
5661 gmp_prog_cc_works
="no, double negation"
5664 gmp_prog_cc_works
="no, double negation, program does not run"
5672 if test "$gmp_prog_cc_works" = yes; then
5673 # remove anything that might look like compiler output to our "||" expression
5674 rm -f conftest
* a.out b.out a.exe a_out.exe
5675 cat >conftest.c
<<EOF
5676 /* The following makes gcc 3.3 -march=pentium4 generate an SSE2 xmm insn
5677 (cvtsd2ss) which will provoke an error if the assembler doesn't recognise
5678 those instructions. Not sure how much of the gmp code will come out
5679 wanting sse2, but it's easiest to reject an option we know is bad. */
5681 float ftod () { return (float) ftod_data; }
5683 int main () { return 0; }
5685 echo "Test compile: double -> float conversion" >&5
5686 gmp_compile
="$cc $cflags $cppflags $flag conftest.c >&5"
5687 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5688 (eval $gmp_compile) 2>&5
5690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5691 (exit $ac_status); }; then
5693 if test "$cross_compiling" = no
; then
5694 if { ac_try
='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5695 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699 (exit $ac_status); }; }; then :;
5707 if test "$cc_works_part" != yes; then
5708 echo "failed program was:" >&5
5711 rm -f conftest
* a.out b.out a.exe a_out.exe
5712 case $cc_works_part in
5717 gmp_prog_cc_works
="no, double -> float conversion"
5720 gmp_prog_cc_works
="no, double -> float conversion, program does not run"
5728 if test "$gmp_prog_cc_works" = yes; then
5729 # remove anything that might look like compiler output to our "||" expression
5730 rm -f conftest
* a.out b.out a.exe a_out.exe
5731 cat >conftest.c
<<EOF
5732 /* The following provokes an internal compiler error from gcc version
5733 "2.9-gnupro-99r1" under "-O2 -mcpu=ev6", apparently relating to char
5734 values being spilled into floating point registers. The problem doesn't
5735 show up all the time, but has occurred enough in GMP for us to reject
5736 this compiler+flags. */
5737 #include <string.h> /* for memcpy */
5742 long d0, d1, d2, d3, d4, d5, d6;
5745 struct try_t param[6];
5750 memcpy (p, ¶m[ 2 ], sizeof (*p));
5751 memcpy (p, ¶m[ 2 ], sizeof (*p));
5753 memcpy (p, ¶m[ 1 ], sizeof (*p));
5756 memcpy (p, ¶m[ 3 ], sizeof (*p));
5759 memcpy (p, ¶m[ 4 ], sizeof (*p));
5760 memcpy (p, ¶m[ 4 ], sizeof (*p));
5762 memcpy (p, ¶m[ 5 ], sizeof (*p));
5763 memcpy (p, ¶m[ 5 ], sizeof (*p));
5764 memcpy (p, ¶m[ 5 ], sizeof (*p));
5768 int main () { return 0; }
5770 echo "Test compile: gnupro alpha ev6 char spilling" >&5
5771 gmp_compile
="$cc $cflags $cppflags $flag conftest.c >&5"
5772 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5773 (eval $gmp_compile) 2>&5
5775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5776 (exit $ac_status); }; then
5778 if test "$cross_compiling" = no
; then
5779 if { ac_try
='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5780 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5784 (exit $ac_status); }; }; then :;
5792 if test "$cc_works_part" != yes; then
5793 echo "failed program was:" >&5
5796 rm -f conftest
* a.out b.out a.exe a_out.exe
5797 case $cc_works_part in
5802 gmp_prog_cc_works
="no, gnupro alpha ev6 char spilling"
5805 gmp_prog_cc_works
="no, gnupro alpha ev6 char spilling, program does not run"
5813 # __builtin_alloca is not available everywhere, check it exists before
5814 # seeing that it works
5815 if test "$gmp_prog_cc_works" = yes; then
5816 # remove anything that might look like compiler output to our "||" expression
5817 rm -f conftest
* a.out b.out a.exe a_out.exe
5818 cat >conftest.c
<<EOF
5819 int k; int foo () { __builtin_alloca (k); }
5821 echo "Test compile: __builtin_alloca availability" >&5
5822 gmp_compile
="$cc $cflags $cppflags $flag conftest.c >&5"
5823 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5824 (eval $gmp_compile) 2>&5
5826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827 (exit $ac_status); }; then
5829 if test "$cross_compiling" = no
; then
5830 if { ac_try
='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5831 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5835 (exit $ac_status); }; }; then :;
5843 if test "$cc_works_part" != yes; then
5844 echo "failed program was:" >&5
5847 rm -f conftest
* a.out b.out a.exe a_out.exe
5848 case $cc_works_part in
5850 if test "$gmp_prog_cc_works" = yes; then
5851 # remove anything that might look like compiler output to our "||" expression
5852 rm -f conftest
* a.out b.out a.exe a_out.exe
5853 cat >conftest.c
<<EOF
5854 /* The following provokes an internal compiler error from Itanium HP-UX cc
5855 under +O2 or higher. We use this sort of code in mpn/generic/mul_fft.c. */
5860 a = __builtin_alloca (k);
5861 for (i = 0; i <= k; i++)
5862 a[i] = __builtin_alloca (1 << i);
5865 int main () { return 0; }
5867 echo "Test compile: alloca array" >&5
5868 gmp_compile
="$cc $cflags $cppflags $flag conftest.c >&5"
5869 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5870 (eval $gmp_compile) 2>&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); }; then
5875 if test "$cross_compiling" = no
; then
5876 if { ac_try
='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5877 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5881 (exit $ac_status); }; }; then :;
5889 if test "$cc_works_part" != yes; then
5890 echo "failed program was:" >&5
5893 rm -f conftest
* a.out b.out a.exe a_out.exe
5894 case $cc_works_part in
5899 gmp_prog_cc_works
="no, alloca array"
5902 gmp_prog_cc_works
="no, alloca array, program does not run"
5920 if test "$gmp_prog_cc_works" = yes; then
5921 # remove anything that might look like compiler output to our "||" expression
5922 rm -f conftest
* a.out b.out a.exe a_out.exe
5923 cat >conftest.c
<<EOF
5924 /* The following provokes an internal error from the assembler on
5925 power2-ibm-aix4.3.1.0. gcc -mrios2 compiles to nabs+fcirz, and this
5926 results in "Internal error related to the source program domain".
5928 For reference it seems to be the combination of nabs+fcirz which is bad,
5929 not either alone. This sort of thing occurs in mpz/get_str.c with the
5930 way double chars_per_bit_exactly is applied in MPN_SIZEINBASE. Perhaps
5931 if that code changes to a scaled-integer style then we won't need this
5939 a = (x >= 0 ? x : -x);
5943 int main () { return 0; }
5945 echo "Test compile: abs int -> double conversion" >&5
5946 gmp_compile
="$cc $cflags $cppflags $flag conftest.c >&5"
5947 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5948 (eval $gmp_compile) 2>&5
5950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5951 (exit $ac_status); }; then
5953 if test "$cross_compiling" = no
; then
5954 if { ac_try
='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5959 (exit $ac_status); }; }; then :;
5967 if test "$cc_works_part" != yes; then
5968 echo "failed program was:" >&5
5971 rm -f conftest
* a.out b.out a.exe a_out.exe
5972 case $cc_works_part in
5977 gmp_prog_cc_works
="no, abs int -> double conversion"
5980 gmp_prog_cc_works
="no, abs int -> double conversion, program does not run"
5988 if test "$gmp_prog_cc_works" = yes; then
5989 # remove anything that might look like compiler output to our "||" expression
5990 rm -f conftest
* a.out b.out a.exe a_out.exe
5991 cat >conftest.c
<<EOF
5992 /* The following provokes a segfault in the compiler on powerpc-apple-darwin.
5993 Extracted from tests/mpn/t-iord_u.c. Causes Apple's gcc 3.3 build 1640 and
5994 1666 to segfault with e.g., -O2 -mpowerpc64. */
5996 #if defined (__GNUC__) && ! defined (__cplusplus)
5997 typedef unsigned long long t1;typedef t1*t2;
5998 __inline__ t1 e(t2 rp,t2 up,int n,t1 v0)
5999 {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;}
6000 f(){static const struct{t1 n;t1 src[9];t1 want[9];}d[]={{1,{0},{1}},};t1 got[9];int i;
6001 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();}}
6007 int main () { return 0; }
6009 echo "Test compile: long long reliability test 1" >&5
6010 gmp_compile
="$cc $cflags $cppflags $flag conftest.c >&5"
6011 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
6012 (eval $gmp_compile) 2>&5
6014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6015 (exit $ac_status); }; then
6017 if test "$cross_compiling" = no
; then
6018 if { ac_try
='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6019 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6023 (exit $ac_status); }; }; then :;
6031 if test "$cc_works_part" != yes; then
6032 echo "failed program was:" >&5
6035 rm -f conftest
* a.out b.out a.exe a_out.exe
6036 case $cc_works_part in
6041 gmp_prog_cc_works
="no, long long reliability test 1"
6044 gmp_prog_cc_works
="no, long long reliability test 1, program does not run"
6052 if test "$gmp_prog_cc_works" = yes; then
6053 # remove anything that might look like compiler output to our "||" expression
6054 rm -f conftest
* a.out b.out a.exe a_out.exe
6055 cat >conftest.c
<<EOF
6056 /* The following provokes an internal compiler error on powerpc-apple-darwin.
6057 Extracted from mpz/cfdiv_q_2exp.c. Causes Apple's gcc 3.3 build 1640 and
6058 1666 to get an ICE with -O1 -mpowerpc64. */
6060 #if defined (__GNUC__) && ! defined (__cplusplus)
6061 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();}
6067 int main () { return 0; }
6069 echo "Test compile: long long reliability test 2" >&5
6070 gmp_compile
="$cc $cflags $cppflags $flag conftest.c >&5"
6071 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
6072 (eval $gmp_compile) 2>&5
6074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6075 (exit $ac_status); }; then
6077 if test "$cross_compiling" = no
; then
6078 if { ac_try
='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6083 (exit $ac_status); }; }; then :;
6091 if test "$cc_works_part" != yes; then
6092 echo "failed program was:" >&5
6095 rm -f conftest
* a.out b.out a.exe a_out.exe
6096 case $cc_works_part in
6101 gmp_prog_cc_works
="no, long long reliability test 2"
6104 gmp_prog_cc_works
="no, long long reliability test 2, program does not run"
6112 if test "$gmp_prog_cc_works" = yes; then
6113 # remove anything that might look like compiler output to our "||" expression
6114 rm -f conftest
* a.out b.out a.exe a_out.exe
6115 cat >conftest.c
<<EOF
6116 /* The following is mis-compiled by HP ia-64 cc version
6117 cc: HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]
6118 under "cc +O3", both in +DD32 and +DD64 modes. The mpn_lshift_com gets
6119 inlined and its return value somehow botched to be 0 instead of 1. This
6120 arises in the real mpn_lshift_com in mul_fft.c. A lower optimization
6121 level, like +O2 seems ok. This code needs to be run to show the problem,
6122 but that's fine, the offending cc is a native-only compiler so we don't
6123 have to worry about cross compiling. */
6125 #if ! defined (__cplusplus)
6127 lshift_com (rp, up, n, cnt)
6133 unsigned long retval, high_limb, low_limb;
6136 tnc = 8 * sizeof (unsigned long) - cnt;
6138 retval = low_limb >> tnc;
6139 high_limb = low_limb << cnt;
6140 for (i = n - 1; i != 0; i--)
6143 *rp++ = ~(high_limb | (low_limb >> tnc));
6144 high_limb = low_limb << cnt;
6151 unsigned long cy, rp[2], up[2];
6154 cy = lshift_com (rp, up, 2L, 1);
6168 echo "Test compile: mpn_lshift_com optimization" >&5
6169 gmp_compile
="$cc $cflags $cppflags $flag conftest.c >&5"
6170 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
6171 (eval $gmp_compile) 2>&5
6173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6174 (exit $ac_status); }; then
6176 if test "$cross_compiling" = no
; then
6177 if { ac_try
='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6182 (exit $ac_status); }; }; then :;
6190 if test "$cc_works_part" != yes; then
6191 echo "failed program was:" >&5
6194 rm -f conftest
* a.out b.out a.exe a_out.exe
6195 case $cc_works_part in
6200 gmp_prog_cc_works
="no, mpn_lshift_com optimization"
6203 gmp_prog_cc_works
="no, mpn_lshift_com optimization, program does not run"
6210 if test "$gmp_prog_cc_works" = yes; then
6211 # remove anything that might look like compiler output to our "||" expression
6212 rm -f conftest
* a.out b.out a.exe a_out.exe
6213 cat >conftest.c
<<EOF
6214 /* The following is mis-compiled by Intel ia-64 icc version 1.8 under
6215 "icc -O3", After several calls, the function writes parial garbage to
6216 the result vector. Perhaps relates to the chk.a.nc insn. This code needs
6217 to be run to show the problem, but that's fine, the offending cc is a
6218 native-only compiler so we don't have to worry about cross compiling. */
6220 #if ! defined (__cplusplus)
6223 lshift_com (rp, up, n, cnt)
6229 unsigned long high_limb, low_limb;
6234 tnc = 8 * sizeof (unsigned long) - cnt;
6236 high_limb = low_limb << cnt;
6237 for (i = n - 1; i != 0; i--)
6240 *--rp = ~(high_limb | (low_limb >> tnc));
6241 high_limb = low_limb << cnt;
6248 unsigned long *r, *r2;
6249 unsigned long a[88 + 1];
6251 for (i = 0; i < 88 + 1; i++)
6253 r = malloc (10000 * sizeof (unsigned long));
6255 for (i = 0; i < 528; i += 22)
6258 i / (8 * sizeof (unsigned long)) + 1,
6259 i % (8 * sizeof (unsigned long)));
6262 if (r[2048] != 0 || r[2049] != 0 || r[2050] != 0 || r[2051] != 0 ||
6263 r[2052] != 0 || r[2053] != 0 || r[2054] != 0)
6276 echo "Test compile: mpn_lshift_com optimization 2" >&5
6277 gmp_compile
="$cc $cflags $cppflags $flag conftest.c >&5"
6278 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
6279 (eval $gmp_compile) 2>&5
6281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6282 (exit $ac_status); }; then
6284 if test "$cross_compiling" = no
; then
6285 if { ac_try
='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); }; }; then :;
6298 if test "$cc_works_part" != yes; then
6299 echo "failed program was:" >&5
6302 rm -f conftest
* a.out b.out a.exe a_out.exe
6303 case $cc_works_part in
6308 gmp_prog_cc_works
="no, mpn_lshift_com optimization 2"
6311 gmp_prog_cc_works
="no, mpn_lshift_com optimization 2, program does not run"
6319 # A certain _GLOBAL_OFFSET_TABLE_ problem in past versions of gas, tickled
6320 # by recent versions of gcc.
6322 if test "$gmp_prog_cc_works" = yes; then
6324 i?
86*-*-* | k
[5-8]*-*-* | pentium
*-*-* | athlon-
*-* | viac3
*-*-* | geode
*-*-*)
6325 # this problem only arises in PIC code, so don't need to test when
6326 # --disable-shared. We don't necessarily have $enable_shared set to
6327 # yes at this point, it will still be unset for the default (which is
6328 # yes); hence the use of "!= no".
6329 if test "$enable_shared" != no
; then
6330 echo "Testing gcc GOT with eax emitted" >&5
6331 cat >conftest.c
<<\EOF
6333 int bar
() { return foo
; }
6336 gmp_compile
="$cc $cflags $cppflags $flag -fPIC -S conftest.c >&5 2>&1"
6337 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
6338 (eval $gmp_compile) 2>&5
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); }; then
6342 if grep "addl.*_GLOBAL_OFFSET_TABLE_.*eax" conftest.s
>/dev
/null
; then
6347 echo "Result: $tmp_got_emitted" >&5
6348 if test "$tmp_got_emitted" = yes; then
6349 echo "Testing gas GOT with eax good" >&5
6350 cat >conftest.
awk <<\EOF
6379 for (f
= 2; f
<= NF
; f
++)
6381 for (i
= 0; i
< 20; i
++)
6386 for (i
= 0; i
< 21; i
++)
6387 if (got
[i
] != want
[i
])
6403 cat >conftest.s
<<\EOF
6405 .byte
1, 35, 69, 103, 137, 171, 205, 239
6406 addl
$_GLOBAL_OFFSET_TABLE_, %eax
6407 .byte
254, 220, 186, 152, 118, 84, 50, 16
6410 gmp_compile
="$cc $cflags $cppflags $flag -fPIC -o conftest.o -c conftest.s >&5 2>&1"
6411 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
6412 (eval $gmp_compile) 2>&5
6414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6415 (exit $ac_status); }; then
6416 tmp_got_good
=`od -b conftest.o | $AWK -f conftest.awk`
6419 echo "Result: $tmp_got_good" >&5
6420 if test "$tmp_got_good" = no
; then
6421 gmp_prog_cc_works
="no, bad gas GOT with eax"
6435 echo "$as_me:$LINENO: result: $gmp_prog_cc_works" >&5
6436 echo "${ECHO_T}$gmp_prog_cc_works" >&6
6437 case $gmp_prog_cc_works in
6439 cflags
="$cflags $flag"
6454 CPPFLAGS
="$cppflags"
6457 # Could easily have this in config.h too, if desired.
6458 ABI_nodots
=`echo $ABI | sed 's/\./_/'`
6460 echo "define_not_for_expansion(\`HAVE_ABI_$ABI_nodots')" >> $gmp_tmpconfigm4p
6464 # GMP_LDFLAGS substitution, selected according to ABI.
6465 # These are needed on libgmp.la and libmp.la, but currently not on
6466 # convenience libraries like tune/libspeed.la or mpz/libmpz.la.
6468 eval GMP_LDFLAGS
=\"\$
${ccbase}${abi1}_ldflags
\"
6469 test -n "$GMP_LDFLAGS" ||
eval GMP_LDFLAGS
=\"\$
${ccbase}${abi1}_ldflags
\"
6474 # extra_functions, selected according to ABI
6475 eval tmp
=\"\
$extra_functions$abi1\"
6476 test -n "$tmp" ||
eval tmp
=\"\
$extra_functions$abi2\"
6477 extra_functions
="$tmp"
6480 # Cycle counter, selected according to ABI.
6482 eval tmp
=\"\
$SPEED_CYCLECOUNTER_OBJ$abi1\"
6483 test -n "$tmp" ||
eval tmp
=\"\
$SPEED_CYCLECOUNTER_OBJ$abi2\"
6484 SPEED_CYCLECOUNTER_OBJ
="$tmp"
6485 eval tmp
=\"\
$cyclecounter_size$abi1\"
6486 test -n "$tmp" ||
eval tmp
=\"\
$cyclecounter_size$abi2\"
6487 cyclecounter_size
="$tmp"
6489 if test -n "$SPEED_CYCLECOUNTER_OBJ"; then
6491 cat >>confdefs.h
<<_ACEOF
6492 #define HAVE_SPEED_CYCLECOUNTER $cyclecounter_size
6499 # Calling conventions checking, selected according to ABI.
6501 eval tmp
=\"\
$CALLING_CONVENTIONS_OBJS$abi1\"
6502 test -n "$tmp" ||
eval tmp
=\"\
$CALLING_CONVENTIONS_OBJS$abi2\"
6503 CALLING_CONVENTIONS_OBJS
="$tmp"
6505 if test -n "$CALLING_CONVENTIONS_OBJS"; then
6507 cat >>confdefs.h
<<\_ACEOF
6508 #define HAVE_CALLING_CONVENTIONS 1
6517 # If the user gave an MPN_PATH, use that verbatim, otherwise choose
6518 # according to the ABI and add "generic".
6520 if test -n "$MPN_PATH"; then
6523 eval tmp
=\"\
$path$abi1\"
6524 test -n "$tmp" ||
eval tmp
=\"\
$path$abi2\"
6529 # Long long limb setup for gmp.h.
6530 case $limb_chosen in
6531 longlong
) DEFN_LONG_LONG_LIMB
="#define _LONG_LONG_LIMB 1" ;;
6532 *) DEFN_LONG_LONG_LIMB
="/* #undef _LONG_LONG_LIMB */" ;;
6537 # The C compiler and preprocessor, put into ANSI mode if possible.
6539 ac_cpp
='$CPP $CPPFLAGS'
6540 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6541 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6542 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
6543 if test -n "$ac_tool_prefix"; then
6544 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6545 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
6546 echo "$as_me:$LINENO: checking for $ac_word" >&5
6547 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6548 if test "${ac_cv_prog_CC+set}" = set; then
6549 echo $ECHO_N "(cached) $ECHO_C" >&6
6551 if test -n "$CC"; then
6552 ac_cv_prog_CC
="$CC" # Let the user override the test.
6554 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6558 test -z "$as_dir" && as_dir
=.
6559 for ac_exec_ext
in '' $ac_executable_extensions; do
6560 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6561 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
6562 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6571 if test -n "$CC"; then
6572 echo "$as_me:$LINENO: result: $CC" >&5
6573 echo "${ECHO_T}$CC" >&6
6575 echo "$as_me:$LINENO: result: no" >&5
6576 echo "${ECHO_T}no" >&6
6580 if test -z "$ac_cv_prog_CC"; then
6582 # Extract the first word of "gcc", so it can be a program name with args.
6583 set dummy gcc
; ac_word
=$2
6584 echo "$as_me:$LINENO: checking for $ac_word" >&5
6585 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6586 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
6587 echo $ECHO_N "(cached) $ECHO_C" >&6
6589 if test -n "$ac_ct_CC"; then
6590 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
6592 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6596 test -z "$as_dir" && as_dir
=.
6597 for ac_exec_ext
in '' $ac_executable_extensions; do
6598 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6599 ac_cv_prog_ac_ct_CC
="gcc"
6600 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6608 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
6609 if test -n "$ac_ct_CC"; then
6610 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
6611 echo "${ECHO_T}$ac_ct_CC" >&6
6613 echo "$as_me:$LINENO: result: no" >&5
6614 echo "${ECHO_T}no" >&6
6622 if test -z "$CC"; then
6623 if test -n "$ac_tool_prefix"; then
6624 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6625 set dummy
${ac_tool_prefix}cc
; ac_word
=$2
6626 echo "$as_me:$LINENO: checking for $ac_word" >&5
6627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6628 if test "${ac_cv_prog_CC+set}" = set; then
6629 echo $ECHO_N "(cached) $ECHO_C" >&6
6631 if test -n "$CC"; then
6632 ac_cv_prog_CC
="$CC" # Let the user override the test.
6634 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6638 test -z "$as_dir" && as_dir
=.
6639 for ac_exec_ext
in '' $ac_executable_extensions; do
6640 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6641 ac_cv_prog_CC
="${ac_tool_prefix}cc"
6642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6651 if test -n "$CC"; then
6652 echo "$as_me:$LINENO: result: $CC" >&5
6653 echo "${ECHO_T}$CC" >&6
6655 echo "$as_me:$LINENO: result: no" >&5
6656 echo "${ECHO_T}no" >&6
6660 if test -z "$ac_cv_prog_CC"; then
6662 # Extract the first word of "cc", so it can be a program name with args.
6663 set dummy cc
; ac_word
=$2
6664 echo "$as_me:$LINENO: checking for $ac_word" >&5
6665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6666 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
6667 echo $ECHO_N "(cached) $ECHO_C" >&6
6669 if test -n "$ac_ct_CC"; then
6670 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
6672 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6676 test -z "$as_dir" && as_dir
=.
6677 for ac_exec_ext
in '' $ac_executable_extensions; do
6678 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6679 ac_cv_prog_ac_ct_CC
="cc"
6680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6688 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
6689 if test -n "$ac_ct_CC"; then
6690 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
6691 echo "${ECHO_T}$ac_ct_CC" >&6
6693 echo "$as_me:$LINENO: result: no" >&5
6694 echo "${ECHO_T}no" >&6
6703 if test -z "$CC"; then
6704 # Extract the first word of "cc", so it can be a program name with args.
6705 set dummy cc
; ac_word
=$2
6706 echo "$as_me:$LINENO: checking for $ac_word" >&5
6707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6708 if test "${ac_cv_prog_CC+set}" = set; then
6709 echo $ECHO_N "(cached) $ECHO_C" >&6
6711 if test -n "$CC"; then
6712 ac_cv_prog_CC
="$CC" # Let the user override the test.
6715 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6719 test -z "$as_dir" && as_dir
=.
6720 for ac_exec_ext
in '' $ac_executable_extensions; do
6721 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6722 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6723 ac_prog_rejected
=yes
6727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6733 if test $ac_prog_rejected = yes; then
6734 # We found a bogon in the path, so make sure we never use it.
6735 set dummy
$ac_cv_prog_CC
6737 if test $# != 0; then
6738 # We chose a different compiler from the bogus one.
6739 # However, it has the same basename, so the bogon will be chosen
6740 # first if we set CC to just the basename; use the full file name.
6742 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
6748 if test -n "$CC"; then
6749 echo "$as_me:$LINENO: result: $CC" >&5
6750 echo "${ECHO_T}$CC" >&6
6752 echo "$as_me:$LINENO: result: no" >&5
6753 echo "${ECHO_T}no" >&6
6757 if test -z "$CC"; then
6758 if test -n "$ac_tool_prefix"; then
6761 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6762 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
6763 echo "$as_me:$LINENO: checking for $ac_word" >&5
6764 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6765 if test "${ac_cv_prog_CC+set}" = set; then
6766 echo $ECHO_N "(cached) $ECHO_C" >&6
6768 if test -n "$CC"; then
6769 ac_cv_prog_CC
="$CC" # Let the user override the test.
6771 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6775 test -z "$as_dir" && as_dir
=.
6776 for ac_exec_ext
in '' $ac_executable_extensions; do
6777 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6778 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
6779 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6788 if test -n "$CC"; then
6789 echo "$as_me:$LINENO: result: $CC" >&5
6790 echo "${ECHO_T}$CC" >&6
6792 echo "$as_me:$LINENO: result: no" >&5
6793 echo "${ECHO_T}no" >&6
6796 test -n "$CC" && break
6799 if test -z "$CC"; then
6803 # Extract the first word of "$ac_prog", so it can be a program name with args.
6804 set dummy
$ac_prog; ac_word
=$2
6805 echo "$as_me:$LINENO: checking for $ac_word" >&5
6806 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6807 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
6808 echo $ECHO_N "(cached) $ECHO_C" >&6
6810 if test -n "$ac_ct_CC"; then
6811 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
6813 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6817 test -z "$as_dir" && as_dir
=.
6818 for ac_exec_ext
in '' $ac_executable_extensions; do
6819 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6820 ac_cv_prog_ac_ct_CC
="$ac_prog"
6821 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6829 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
6830 if test -n "$ac_ct_CC"; then
6831 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
6832 echo "${ECHO_T}$ac_ct_CC" >&6
6834 echo "$as_me:$LINENO: result: no" >&5
6835 echo "${ECHO_T}no" >&6
6838 test -n "$ac_ct_CC" && break
6847 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
6848 See \`config.log' for more details." >&5
6849 echo "$as_me: error: no acceptable C compiler found in \$PATH
6850 See \`config.log' for more details." >&2;}
6851 { (exit 1); exit 1; }; }
6853 # Provide some information about the compiler.
6854 echo "$as_me:$LINENO:" \
6855 "checking for C compiler version" >&5
6856 ac_compiler
=`set X $ac_compile; echo $2`
6857 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6858 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
6860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6861 (exit $ac_status); }
6862 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6863 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
6865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6866 (exit $ac_status); }
6867 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6868 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
6870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6871 (exit $ac_status); }
6873 cat >conftest.
$ac_ext <<_ACEOF
6876 cat confdefs.h
>>conftest.
$ac_ext
6877 cat >>conftest.
$ac_ext <<_ACEOF
6878 /* end confdefs.h. */
6888 ac_clean_files_save
=$ac_clean_files
6889 ac_clean_files
="$ac_clean_files a.out a.exe b.out"
6890 # Try to create an executable without -o first, disregard a.out.
6891 # It will help us diagnose broken compilers, and finding out an intuition
6893 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
6894 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
6895 ac_link_default
=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
6896 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
6897 (eval $ac_link_default) 2>&5
6899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6900 (exit $ac_status); }; then
6901 # Find the output, starting from the most likely. This scheme is
6902 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
6905 # Be careful to initialize this variable, since it used to be cached.
6906 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
6908 # b.out is created by i960 compilers.
6909 for ac_file
in a_out.exe a.exe conftest.exe a.out conftest a.
* conftest.
* b.out
6911 test -f "$ac_file" ||
continue
6913 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
)
6916 # This is the source file.
6919 # We found the default executable, but exeext='' is most
6923 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
6924 # FIXME: I believe we export ac_cv_exeext for Libtool,
6925 # but it would be cool to find out if it's true. Does anybody
6926 # maintain Libtool? --akim.
6934 echo "$as_me: failed program was:" >&5
6935 sed 's/^/| /' conftest.
$ac_ext >&5
6937 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
6938 See \`config.log' for more details." >&5
6939 echo "$as_me: error: C compiler cannot create executables
6940 See \`config.log' for more details." >&2;}
6941 { (exit 77); exit 77; }; }
6944 ac_exeext
=$ac_cv_exeext
6945 echo "$as_me:$LINENO: result: $ac_file" >&5
6946 echo "${ECHO_T}$ac_file" >&6
6948 # Check the compiler produces executables we can run. If not, either
6949 # the compiler is broken, or we cross compile.
6950 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
6951 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
6952 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
6953 # If not cross compiling, check that we can run a simple program.
6954 if test "$cross_compiling" != yes; then
6955 if { ac_try
='./$ac_file'
6956 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6960 (exit $ac_status); }; }; then
6963 if test "$cross_compiling" = maybe
; then
6966 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
6967 If you meant to cross compile, use \`--host'.
6968 See \`config.log' for more details." >&5
6969 echo "$as_me: error: cannot run C compiled programs.
6970 If you meant to cross compile, use \`--host'.
6971 See \`config.log' for more details." >&2;}
6972 { (exit 1); exit 1; }; }
6976 echo "$as_me:$LINENO: result: yes" >&5
6977 echo "${ECHO_T}yes" >&6
6979 rm -f a.out a.exe conftest
$ac_cv_exeext b.out
6980 ac_clean_files
=$ac_clean_files_save
6981 # Check the compiler produces executables we can run. If not, either
6982 # the compiler is broken, or we cross compile.
6983 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
6984 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
6985 echo "$as_me:$LINENO: result: $cross_compiling" >&5
6986 echo "${ECHO_T}$cross_compiling" >&6
6988 echo "$as_me:$LINENO: checking for suffix of executables" >&5
6989 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
6990 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6991 (eval $ac_link) 2>&5
6993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6994 (exit $ac_status); }; then
6995 # If both `conftest.exe' and `conftest' are `present' (well, observable)
6996 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
6997 # work properly (i.e., refer to `conftest.exe'), while it won't with
6999 for ac_file
in conftest.exe conftest conftest.
*; do
7000 test -f "$ac_file" ||
continue
7002 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.o |
*.obj
) ;;
7003 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
7010 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
7011 See \`config.log' for more details." >&5
7012 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
7013 See \`config.log' for more details." >&2;}
7014 { (exit 1); exit 1; }; }
7017 rm -f conftest
$ac_cv_exeext
7018 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
7019 echo "${ECHO_T}$ac_cv_exeext" >&6
7021 rm -f conftest.
$ac_ext
7022 EXEEXT
=$ac_cv_exeext
7024 echo "$as_me:$LINENO: checking for suffix of object files" >&5
7025 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
7026 if test "${ac_cv_objext+set}" = set; then
7027 echo $ECHO_N "(cached) $ECHO_C" >&6
7029 cat >conftest.
$ac_ext <<_ACEOF
7032 cat confdefs.h
>>conftest.
$ac_ext
7033 cat >>conftest.
$ac_ext <<_ACEOF
7034 /* end confdefs.h. */
7044 rm -f conftest.o conftest.obj
7045 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7046 (eval $ac_compile) 2>&5
7048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7049 (exit $ac_status); }; then
7050 for ac_file
in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
7052 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg
) ;;
7053 *) ac_cv_objext
=`expr "$ac_file" : '.*\.\(.*\)'`
7058 echo "$as_me: failed program was:" >&5
7059 sed 's/^/| /' conftest.
$ac_ext >&5
7061 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
7062 See \`config.log' for more details." >&5
7063 echo "$as_me: error: cannot compute suffix of object files: cannot compile
7064 See \`config.log' for more details." >&2;}
7065 { (exit 1); exit 1; }; }
7068 rm -f conftest.
$ac_cv_objext conftest.
$ac_ext
7070 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
7071 echo "${ECHO_T}$ac_cv_objext" >&6
7072 OBJEXT
=$ac_cv_objext
7074 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
7075 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
7076 if test "${ac_cv_c_compiler_gnu+set}" = set; then
7077 echo $ECHO_N "(cached) $ECHO_C" >&6
7079 cat >conftest.
$ac_ext <<_ACEOF
7082 cat confdefs.h
>>conftest.
$ac_ext
7083 cat >>conftest.
$ac_ext <<_ACEOF
7084 /* end confdefs.h. */
7097 rm -f conftest.
$ac_objext
7098 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7099 (eval $ac_compile) 2>conftest.er1
7101 grep -v '^ *+' conftest.er1
>conftest.err
7103 cat conftest.err
>&5
7104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7105 (exit $ac_status); } &&
7106 { ac_try
='test -z "$ac_c_werror_flag"
7107 || test ! -s conftest.err'
7108 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7111 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7112 (exit $ac_status); }; } &&
7113 { ac_try
='test -s conftest.$ac_objext'
7114 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7118 (exit $ac_status); }; }; then
7121 echo "$as_me: failed program was:" >&5
7122 sed 's/^/| /' conftest.
$ac_ext >&5
7126 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7127 ac_cv_c_compiler_gnu
=$ac_compiler_gnu
7130 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
7131 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
7132 GCC
=`test $ac_compiler_gnu = yes && echo yes`
7133 ac_test_CFLAGS
=${CFLAGS+set}
7134 ac_save_CFLAGS
=$CFLAGS
7136 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
7137 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
7138 if test "${ac_cv_prog_cc_g+set}" = set; then
7139 echo $ECHO_N "(cached) $ECHO_C" >&6
7141 cat >conftest.
$ac_ext <<_ACEOF
7144 cat confdefs.h
>>conftest.
$ac_ext
7145 cat >>conftest.
$ac_ext <<_ACEOF
7146 /* end confdefs.h. */
7156 rm -f conftest.
$ac_objext
7157 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7158 (eval $ac_compile) 2>conftest.er1
7160 grep -v '^ *+' conftest.er1
>conftest.err
7162 cat conftest.err
>&5
7163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7164 (exit $ac_status); } &&
7165 { ac_try
='test -z "$ac_c_werror_flag"
7166 || test ! -s conftest.err'
7167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); }; } &&
7172 { ac_try
='test -s conftest.$ac_objext'
7173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7177 (exit $ac_status); }; }; then
7180 echo "$as_me: failed program was:" >&5
7181 sed 's/^/| /' conftest.
$ac_ext >&5
7185 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7187 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
7188 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
7189 if test "$ac_test_CFLAGS" = set; then
7190 CFLAGS
=$ac_save_CFLAGS
7191 elif test $ac_cv_prog_cc_g = yes; then
7192 if test "$GCC" = yes; then
7198 if test "$GCC" = yes; then
7204 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
7205 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
7206 if test "${ac_cv_prog_cc_stdc+set}" = set; then
7207 echo $ECHO_N "(cached) $ECHO_C" >&6
7209 ac_cv_prog_cc_stdc
=no
7211 cat >conftest.
$ac_ext <<_ACEOF
7214 cat confdefs.h
>>conftest.
$ac_ext
7215 cat >>conftest.
$ac_ext <<_ACEOF
7216 /* end confdefs.h. */
7219 #include <sys/types.h>
7220 #include <sys/stat.h>
7221 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7222 struct buf { int x; };
7223 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7224 static char *e (p, i)
7230 static char *f (char * (*g) (char **, int), char **p, ...)
7235 s = g (p, va_arg (v,int));
7240 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7241 function prototypes and stuff, but not '\xHH' hex character constants.
7242 These don't provoke an error unfortunately, instead are silently treated
7243 as 'x'. The following induces an error, until -std1 is added to get
7244 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7245 array size at least. It's necessary to write '\x00'==0 to get something
7246 that's true only with -std1. */
7247 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7249 int test (int i, double x);
7250 struct s1 {int (*f) (int a);};
7251 struct s2 {int (*f) (double a);};
7252 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7258 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7263 # Don't try gcc -ansi; that turns off useful extensions and
7264 # breaks some systems' header files.
7265 # AIX -qlanglvl=ansi
7266 # Ultrix and OSF/1 -std1
7267 # HP-UX 10.20 and later -Ae
7268 # HP-UX older versions -Aa -D_HPUX_SOURCE
7269 # SVR4 -Xc -D__EXTENSIONS__
7270 for ac_arg
in "" -qlanglvl=ansi
-std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7272 CC
="$ac_save_CC $ac_arg"
7273 rm -f conftest.
$ac_objext
7274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7275 (eval $ac_compile) 2>conftest.er1
7277 grep -v '^ *+' conftest.er1
>conftest.err
7279 cat conftest.err
>&5
7280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7281 (exit $ac_status); } &&
7282 { ac_try
='test -z "$ac_c_werror_flag"
7283 || test ! -s conftest.err'
7284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7288 (exit $ac_status); }; } &&
7289 { ac_try
='test -s conftest.$ac_objext'
7290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7294 (exit $ac_status); }; }; then
7295 ac_cv_prog_cc_stdc
=$ac_arg
7298 echo "$as_me: failed program was:" >&5
7299 sed 's/^/| /' conftest.
$ac_ext >&5
7302 rm -f conftest.err conftest.
$ac_objext
7304 rm -f conftest.
$ac_ext conftest.
$ac_objext
7309 case "x$ac_cv_prog_cc_stdc" in
7311 echo "$as_me:$LINENO: result: none needed" >&5
7312 echo "${ECHO_T}none needed" >&6 ;;
7314 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
7315 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
7316 CC
="$CC $ac_cv_prog_cc_stdc" ;;
7319 # Some people use a C++ compiler to compile C. Since we use `exit',
7320 # in C++ we need to declare it. In case someone uses the same compiler
7321 # for both compiling C and C++ we need to have the C++ compiler decide
7322 # the declaration of exit, since it's the most demanding environment.
7323 cat >conftest.
$ac_ext <<_ACEOF
7328 rm -f conftest.
$ac_objext
7329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7330 (eval $ac_compile) 2>conftest.er1
7332 grep -v '^ *+' conftest.er1
>conftest.err
7334 cat conftest.err
>&5
7335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7336 (exit $ac_status); } &&
7337 { ac_try
='test -z "$ac_c_werror_flag"
7338 || test ! -s conftest.err'
7339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7343 (exit $ac_status); }; } &&
7344 { ac_try
='test -s conftest.$ac_objext'
7345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 (exit $ac_status); }; }; then
7350 for ac_declaration
in \
7352 'extern "C" void std::exit (int) throw (); using std::exit;' \
7353 'extern "C" void std::exit (int); using std::exit;' \
7354 'extern "C" void exit (int) throw ();' \
7355 'extern "C" void exit (int);' \
7358 cat >conftest.
$ac_ext <<_ACEOF
7361 cat confdefs.h
>>conftest.
$ac_ext
7362 cat >>conftest.
$ac_ext <<_ACEOF
7363 /* end confdefs.h. */
7374 rm -f conftest.
$ac_objext
7375 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7376 (eval $ac_compile) 2>conftest.er1
7378 grep -v '^ *+' conftest.er1
>conftest.err
7380 cat conftest.err
>&5
7381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7382 (exit $ac_status); } &&
7383 { ac_try
='test -z "$ac_c_werror_flag"
7384 || test ! -s conftest.err'
7385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7389 (exit $ac_status); }; } &&
7390 { ac_try
='test -s conftest.$ac_objext'
7391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7395 (exit $ac_status); }; }; then
7398 echo "$as_me: failed program was:" >&5
7399 sed 's/^/| /' conftest.
$ac_ext >&5
7403 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7404 cat >conftest.
$ac_ext <<_ACEOF
7407 cat confdefs.h
>>conftest.
$ac_ext
7408 cat >>conftest.
$ac_ext <<_ACEOF
7409 /* end confdefs.h. */
7419 rm -f conftest.
$ac_objext
7420 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7421 (eval $ac_compile) 2>conftest.er1
7423 grep -v '^ *+' conftest.er1
>conftest.err
7425 cat conftest.err
>&5
7426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7427 (exit $ac_status); } &&
7428 { ac_try
='test -z "$ac_c_werror_flag"
7429 || test ! -s conftest.err'
7430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7434 (exit $ac_status); }; } &&
7435 { ac_try
='test -s conftest.$ac_objext'
7436 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440 (exit $ac_status); }; }; then
7443 echo "$as_me: failed program was:" >&5
7444 sed 's/^/| /' conftest.
$ac_ext >&5
7447 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7450 if test -n "$ac_declaration"; then
7451 echo '#ifdef __cplusplus' >>confdefs.h
7452 echo $ac_declaration >>confdefs.h
7453 echo '#endif' >>confdefs.h
7457 echo "$as_me: failed program was:" >&5
7458 sed 's/^/| /' conftest.
$ac_ext >&5
7461 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7463 ac_cpp
='$CPP $CPPFLAGS'
7464 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7465 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7466 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7470 ac_cpp
='$CPP $CPPFLAGS'
7471 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7472 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7473 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7474 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7475 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7476 # On Suns, sometimes $CPP names a directory.
7477 if test -n "$CPP" && test -d "$CPP"; then
7480 if test -z "$CPP"; then
7481 if test "${ac_cv_prog_CPP+set}" = set; then
7482 echo $ECHO_N "(cached) $ECHO_C" >&6
7484 # Double quotes because CPP needs to be expanded
7485 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7488 for ac_c_preproc_warn_flag
in '' yes
7490 # Use a header file that comes with gcc, so configuring glibc
7491 # with a fresh cross-compiler works.
7492 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7493 # <limits.h> exists even on freestanding compilers.
7494 # On the NeXT, cc -E runs the code through the compiler's parser,
7495 # not just through cpp. "Syntax error" is here to catch this case.
7496 cat >conftest.
$ac_ext <<_ACEOF
7499 cat confdefs.h
>>conftest.
$ac_ext
7500 cat >>conftest.
$ac_ext <<_ACEOF
7501 /* end confdefs.h. */
7503 # include <limits.h>
7505 # include <assert.h>
7509 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7510 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7512 grep -v '^ *+' conftest.er1
>conftest.err
7514 cat conftest.err
>&5
7515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7516 (exit $ac_status); } >/dev
/null
; then
7517 if test -s conftest.err
; then
7518 ac_cpp_err
=$ac_c_preproc_warn_flag
7519 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7526 if test -z "$ac_cpp_err"; then
7529 echo "$as_me: failed program was:" >&5
7530 sed 's/^/| /' conftest.
$ac_ext >&5
7532 # Broken: fails on valid input.
7535 rm -f conftest.err conftest.
$ac_ext
7537 # OK, works on sane cases. Now check whether non-existent headers
7538 # can be detected and how.
7539 cat >conftest.
$ac_ext <<_ACEOF
7542 cat confdefs.h
>>conftest.
$ac_ext
7543 cat >>conftest.
$ac_ext <<_ACEOF
7544 /* end confdefs.h. */
7545 #include <ac_nonexistent.h>
7547 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7548 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7550 grep -v '^ *+' conftest.er1
>conftest.err
7552 cat conftest.err
>&5
7553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7554 (exit $ac_status); } >/dev
/null
; then
7555 if test -s conftest.err
; then
7556 ac_cpp_err
=$ac_c_preproc_warn_flag
7557 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7564 if test -z "$ac_cpp_err"; then
7565 # Broken: success on invalid input.
7568 echo "$as_me: failed program was:" >&5
7569 sed 's/^/| /' conftest.
$ac_ext >&5
7571 # Passes both tests.
7575 rm -f conftest.err conftest.
$ac_ext
7578 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7579 rm -f conftest.err conftest.
$ac_ext
7580 if $ac_preproc_ok; then
7592 echo "$as_me:$LINENO: result: $CPP" >&5
7593 echo "${ECHO_T}$CPP" >&6
7595 for ac_c_preproc_warn_flag
in '' yes
7597 # Use a header file that comes with gcc, so configuring glibc
7598 # with a fresh cross-compiler works.
7599 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7600 # <limits.h> exists even on freestanding compilers.
7601 # On the NeXT, cc -E runs the code through the compiler's parser,
7602 # not just through cpp. "Syntax error" is here to catch this case.
7603 cat >conftest.
$ac_ext <<_ACEOF
7606 cat confdefs.h
>>conftest.
$ac_ext
7607 cat >>conftest.
$ac_ext <<_ACEOF
7608 /* end confdefs.h. */
7610 # include <limits.h>
7612 # include <assert.h>
7616 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7617 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7619 grep -v '^ *+' conftest.er1
>conftest.err
7621 cat conftest.err
>&5
7622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7623 (exit $ac_status); } >/dev
/null
; then
7624 if test -s conftest.err
; then
7625 ac_cpp_err
=$ac_c_preproc_warn_flag
7626 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7633 if test -z "$ac_cpp_err"; then
7636 echo "$as_me: failed program was:" >&5
7637 sed 's/^/| /' conftest.
$ac_ext >&5
7639 # Broken: fails on valid input.
7642 rm -f conftest.err conftest.
$ac_ext
7644 # OK, works on sane cases. Now check whether non-existent headers
7645 # can be detected and how.
7646 cat >conftest.
$ac_ext <<_ACEOF
7649 cat confdefs.h
>>conftest.
$ac_ext
7650 cat >>conftest.
$ac_ext <<_ACEOF
7651 /* end confdefs.h. */
7652 #include <ac_nonexistent.h>
7654 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7655 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
7657 grep -v '^ *+' conftest.er1
>conftest.err
7659 cat conftest.err
>&5
7660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7661 (exit $ac_status); } >/dev
/null
; then
7662 if test -s conftest.err
; then
7663 ac_cpp_err
=$ac_c_preproc_warn_flag
7664 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
7671 if test -z "$ac_cpp_err"; then
7672 # Broken: success on invalid input.
7675 echo "$as_me: failed program was:" >&5
7676 sed 's/^/| /' conftest.
$ac_ext >&5
7678 # Passes both tests.
7682 rm -f conftest.err conftest.
$ac_ext
7685 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7686 rm -f conftest.err conftest.
$ac_ext
7687 if $ac_preproc_ok; then
7690 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7691 See \`config.log' for more details." >&5
7692 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7693 See \`config.log' for more details." >&2;}
7694 { (exit 1); exit 1; }; }
7698 ac_cpp
='$CPP $CPPFLAGS'
7699 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7700 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7701 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7705 case $ac_cv_prog_cc_stdc in
7709 cat >conftest.
$ac_ext <<_ACEOF
7712 cat confdefs.h
>>conftest.
$ac_ext
7713 cat >>conftest.
$ac_ext <<_ACEOF
7714 /* end confdefs.h. */
7715 #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
7716 #define GMP_NAIL_BITS $GMP_NAIL_BITS
7717 #define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */
7718 #define GMP_LIMB_BITS 123
7719 $DEFN_LONG_LONG_LIMB
7720 #include "$srcdir/gmp-h.in"
7722 #if ! __GMP_HAVE_PROTOTYPES
7734 rm -f conftest.
$ac_objext
7735 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7736 (eval $ac_compile) 2>conftest.er1
7738 grep -v '^ *+' conftest.er1
>conftest.err
7740 cat conftest.err
>&5
7741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7742 (exit $ac_status); } &&
7743 { ac_try
='test -z "$ac_c_werror_flag"
7744 || test ! -s conftest.err'
7745 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7749 (exit $ac_status); }; } &&
7750 { ac_try
='test -s conftest.$ac_objext'
7751 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); }; }; then
7758 echo "$as_me: failed program was:" >&5
7759 sed 's/^/| /' conftest.
$ac_ext >&5
7761 { echo "$as_me:$LINENO: WARNING: gmp.h doesnt recognise compiler as ANSI, prototypes and \"const\" will be unavailable" >&5
7762 echo "$as_me: WARNING: gmp.h doesnt recognise compiler as ANSI, prototypes and \"const\" will be unavailable" >&2;}
7764 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
7770 # The C compiler on the build system, and associated tests.
7772 if test -n "$CC_FOR_BUILD"; then
7773 echo "$as_me:$LINENO: checking build system compiler $CC_FOR_BUILD" >&5
7774 echo $ECHO_N "checking build system compiler $CC_FOR_BUILD... $ECHO_C" >&6
7775 # remove anything that might look like compiler output to our "||" expression
7776 rm -f conftest
* a.out b.out a.exe a_out.exe
7777 cat >conftest.c
<<EOF
7784 gmp_compile
="$CC_FOR_BUILD conftest.c"
7785 cc_for_build_works
=no
7786 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
7787 (eval $gmp_compile) 2>&5
7789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7790 (exit $ac_status); }; then
7791 if (.
/a.out || .
/b.out || .
/a.exe || .
/a_out.exe || .
/conftest
) >&5 2>&1; then
7792 cc_for_build_works
=yes
7795 rm -f conftest
* a.out b.out a.exe a_out.exe
7796 echo "$as_me:$LINENO: result: $cc_for_build_works" >&5
7797 echo "${ECHO_T}$cc_for_build_works" >&6
7798 if test "$cc_for_build_works" = yes; then
7801 { { echo "$as_me:$LINENO: error: Specified CC_FOR_BUILD doesn't seem to work" >&5
7802 echo "$as_me: error: Specified CC_FOR_BUILD doesn't seem to work" >&2;}
7803 { (exit 1); exit 1; }; }
7806 elif test -n "$HOST_CC"; then
7807 echo "$as_me:$LINENO: checking build system compiler $HOST_CC" >&5
7808 echo $ECHO_N "checking build system compiler $HOST_CC... $ECHO_C" >&6
7809 # remove anything that might look like compiler output to our "||" expression
7810 rm -f conftest
* a.out b.out a.exe a_out.exe
7811 cat >conftest.c
<<EOF
7818 gmp_compile
="$HOST_CC conftest.c"
7819 cc_for_build_works
=no
7820 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
7821 (eval $gmp_compile) 2>&5
7823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7824 (exit $ac_status); }; then
7825 if (.
/a.out || .
/b.out || .
/a.exe || .
/a_out.exe || .
/conftest
) >&5 2>&1; then
7826 cc_for_build_works
=yes
7829 rm -f conftest
* a.out b.out a.exe a_out.exe
7830 echo "$as_me:$LINENO: result: $cc_for_build_works" >&5
7831 echo "${ECHO_T}$cc_for_build_works" >&6
7832 if test "$cc_for_build_works" = yes; then
7833 CC_FOR_BUILD
=$HOST_CC
7835 { { echo "$as_me:$LINENO: error: Specified HOST_CC doesn't seem to work" >&5
7836 echo "$as_me: error: Specified HOST_CC doesn't seem to work" >&2;}
7837 { (exit 1); exit 1; }; }
7841 for i
in "$CC" "$CC $CFLAGS $CPPFLAGS" cc gcc c89 c99
; do
7842 echo "$as_me:$LINENO: checking build system compiler $i" >&5
7843 echo $ECHO_N "checking build system compiler $i... $ECHO_C" >&6
7844 # remove anything that might look like compiler output to our "||" expression
7845 rm -f conftest
* a.out b.out a.exe a_out.exe
7846 cat >conftest.c
<<EOF
7853 gmp_compile
="$i conftest.c"
7854 cc_for_build_works
=no
7855 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
7856 (eval $gmp_compile) 2>&5
7858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7859 (exit $ac_status); }; then
7860 if (.
/a.out || .
/b.out || .
/a.exe || .
/a_out.exe || .
/conftest
) >&5 2>&1; then
7861 cc_for_build_works
=yes
7864 rm -f conftest
* a.out b.out a.exe a_out.exe
7865 echo "$as_me:$LINENO: result: $cc_for_build_works" >&5
7866 echo "${ECHO_T}$cc_for_build_works" >&6
7867 if test "$cc_for_build_works" = yes; then
7875 if test -z "$CC_FOR_BUILD"; then
7876 { { echo "$as_me:$LINENO: error: Cannot find a build system compiler" >&5
7877 echo "$as_me: error: Cannot find a build system compiler" >&2;}
7878 { (exit 1); exit 1; }; }
7886 echo "$as_me:$LINENO: checking for build system preprocessor" >&5
7887 echo $ECHO_N "checking for build system preprocessor... $ECHO_C" >&6
7888 if test -z "$CPP_FOR_BUILD"; then
7889 if test "${gmp_cv_prog_cpp_for_build+set}" = set; then
7890 echo $ECHO_N "(cached) $ECHO_C" >&6
7892 cat >conftest.c
<<EOF
7895 for i
in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"; do
7896 gmp_compile
="$i conftest.c"
7897 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
7898 (eval $gmp_compile) 2>&5
7900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7901 (exit $ac_status); } >&5 2>&1; then
7902 gmp_cv_prog_cpp_for_build
=$i
7906 rm -f conftest
* a.out b.out a.exe a_out.exe
7907 if test -z "$gmp_cv_prog_cpp_for_build"; then
7908 { { echo "$as_me:$LINENO: error: Cannot find build system C preprocessor." >&5
7909 echo "$as_me: error: Cannot find build system C preprocessor." >&2;}
7910 { (exit 1); exit 1; }; }
7915 CPP_FOR_BUILD
=$gmp_cv_prog_cpp_for_build
7917 echo "$as_me:$LINENO: result: $CPP_FOR_BUILD" >&5
7918 echo "${ECHO_T}$CPP_FOR_BUILD" >&6
7924 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
7925 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
7926 if test "${gmp_cv_prog_exeext_for_build+set}" = set; then
7927 echo $ECHO_N "(cached) $ECHO_C" >&6
7929 cat >conftest.c
<<EOF
7936 for i
in .exe
,ff8
""; do
7937 gmp_compile
="$CC_FOR_BUILD conftest.c -o conftest$i"
7938 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
7939 (eval $gmp_compile) 2>&5
7941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942 (exit $ac_status); }; then
7943 if (.
/conftest
) 2>&5; then
7944 gmp_cv_prog_exeext_for_build
=$i
7950 if test "${gmp_cv_prog_exeext_for_build+set}" != set; then
7951 { { echo "$as_me:$LINENO: error: Cannot determine executable suffix" >&5
7952 echo "$as_me: error: Cannot determine executable suffix" >&2;}
7953 { (exit 1); exit 1; }; }
7957 echo "$as_me:$LINENO: result: $gmp_cv_prog_exeext_for_build" >&5
7958 echo "${ECHO_T}$gmp_cv_prog_exeext_for_build" >&6
7959 EXEEXT_FOR_BUILD
=$gmp_cv_prog_exeext_for_build
7963 echo "$as_me:$LINENO: checking whether build system compiler is ANSI" >&5
7964 echo $ECHO_N "checking whether build system compiler is ANSI... $ECHO_C" >&6
7965 if test "${gmp_cv_c_for_build_ansi+set}" = set; then
7966 echo $ECHO_N "(cached) $ECHO_C" >&6
7968 cat >conftest.c
<<EOF
7970 main (int argc, char *argv)
7975 gmp_compile
="$CC_FOR_BUILD conftest.c"
7976 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
7977 (eval $gmp_compile) 2>&5
7979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7980 (exit $ac_status); }; then
7981 gmp_cv_c_for_build_ansi
=yes
7983 gmp_cv_c_for_build_ansi
=no
7985 rm -f conftest
* a.out b.out a.exe a_out.exe
7988 echo "$as_me:$LINENO: result: $gmp_cv_c_for_build_ansi" >&5
7989 echo "${ECHO_T}$gmp_cv_c_for_build_ansi" >&6
7990 if test "$gmp_cv_c_for_build_ansi" = yes; then
7998 echo "$as_me:$LINENO: checking for build system compiler math library" >&5
7999 echo $ECHO_N "checking for build system compiler math library... $ECHO_C" >&6
8000 if test "${gmp_cv_check_libm_for_build+set}" = set; then
8001 echo $ECHO_N "(cached) $ECHO_C" >&6
8003 cat >conftest.c
<<EOF
8016 gmp_compile
="$CC_FOR_BUILD conftest.c -lm"
8017 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
8018 (eval $gmp_compile) 2>&5
8020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8021 (exit $ac_status); }; then
8022 gmp_cv_check_libm_for_build
=-lm
8024 gmp_cv_check_libm_for_build
=no
8026 rm -f conftest
* a.out b.out a.exe a_out.exe
8029 echo "$as_me:$LINENO: result: $gmp_cv_check_libm_for_build" >&5
8030 echo "${ECHO_T}$gmp_cv_check_libm_for_build" >&6
8031 case $gmp_cv_check_libm_for_build in
8032 yes) LIBM_FOR_BUILD
=-lm
8034 no
) LIBM_FOR_BUILD
= ;;
8035 *) LIBM_FOR_BUILD
=$gmp_cv_check_libm_for_build ;;
8040 # How to assemble, used with CFLAGS etc, see mpn/Makeasm.am.
8041 # Using the compiler is a lot easier than figuring out how to invoke the
8042 # assembler directly.
8044 test -n "$CCAS" || CCAS
="$CC -c"
8048 # The C++ compiler, if desired.
8050 if test $enable_cxx != no
; then
8051 test_CXXFLAGS
=${CXXFLAGS+set}
8053 ac_cpp
='$CXXCPP $CPPFLAGS'
8054 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8055 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8056 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8057 if test -n "$ac_tool_prefix"; then
8058 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
8060 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
8061 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
8062 echo "$as_me:$LINENO: checking for $ac_word" >&5
8063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8064 if test "${ac_cv_prog_CXX+set}" = set; then
8065 echo $ECHO_N "(cached) $ECHO_C" >&6
8067 if test -n "$CXX"; then
8068 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
8070 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8074 test -z "$as_dir" && as_dir
=.
8075 for ac_exec_ext
in '' $ac_executable_extensions; do
8076 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8077 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
8078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8087 if test -n "$CXX"; then
8088 echo "$as_me:$LINENO: result: $CXX" >&5
8089 echo "${ECHO_T}$CXX" >&6
8091 echo "$as_me:$LINENO: result: no" >&5
8092 echo "${ECHO_T}no" >&6
8095 test -n "$CXX" && break
8098 if test -z "$CXX"; then
8100 for ac_prog
in $CCC g
++ c
++ gpp aCC CC cxx cc
++ cl FCC KCC RCC xlC_r xlC
8102 # Extract the first word of "$ac_prog", so it can be a program name with args.
8103 set dummy
$ac_prog; ac_word
=$2
8104 echo "$as_me:$LINENO: checking for $ac_word" >&5
8105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8106 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8107 echo $ECHO_N "(cached) $ECHO_C" >&6
8109 if test -n "$ac_ct_CXX"; then
8110 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
8112 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8116 test -z "$as_dir" && as_dir
=.
8117 for ac_exec_ext
in '' $ac_executable_extensions; do
8118 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8119 ac_cv_prog_ac_ct_CXX
="$ac_prog"
8120 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8128 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
8129 if test -n "$ac_ct_CXX"; then
8130 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8131 echo "${ECHO_T}$ac_ct_CXX" >&6
8133 echo "$as_me:$LINENO: result: no" >&5
8134 echo "${ECHO_T}no" >&6
8137 test -n "$ac_ct_CXX" && break
8139 test -n "$ac_ct_CXX" || ac_ct_CXX
="g++"
8145 # Provide some information about the compiler.
8146 echo "$as_me:$LINENO:" \
8147 "checking for C++ compiler version" >&5
8148 ac_compiler
=`set X $ac_compile; echo $2`
8149 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
8150 (eval $ac_compiler --version </dev
/null
>&5) 2>&5
8152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8153 (exit $ac_status); }
8154 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
8155 (eval $ac_compiler -v </dev
/null
>&5) 2>&5
8157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8158 (exit $ac_status); }
8159 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
8160 (eval $ac_compiler -V </dev
/null
>&5) 2>&5
8162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8163 (exit $ac_status); }
8165 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8166 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
8167 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8168 echo $ECHO_N "(cached) $ECHO_C" >&6
8170 cat >conftest.
$ac_ext <<_ACEOF
8173 cat confdefs.h
>>conftest.
$ac_ext
8174 cat >>conftest.
$ac_ext <<_ACEOF
8175 /* end confdefs.h. */
8188 rm -f conftest.
$ac_objext
8189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8190 (eval $ac_compile) 2>conftest.er1
8192 grep -v '^ *+' conftest.er1
>conftest.err
8194 cat conftest.err
>&5
8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8196 (exit $ac_status); } &&
8197 { ac_try
='test -z "$ac_cxx_werror_flag"
8198 || test ! -s conftest.err'
8199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203 (exit $ac_status); }; } &&
8204 { ac_try
='test -s conftest.$ac_objext'
8205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8209 (exit $ac_status); }; }; then
8212 echo "$as_me: failed program was:" >&5
8213 sed 's/^/| /' conftest.
$ac_ext >&5
8217 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8218 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
8221 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8222 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
8223 GXX
=`test $ac_compiler_gnu = yes && echo yes`
8224 ac_test_CXXFLAGS
=${CXXFLAGS+set}
8225 ac_save_CXXFLAGS
=$CXXFLAGS
8227 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8228 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
8229 if test "${ac_cv_prog_cxx_g+set}" = set; then
8230 echo $ECHO_N "(cached) $ECHO_C" >&6
8232 cat >conftest.
$ac_ext <<_ACEOF
8235 cat confdefs.h
>>conftest.
$ac_ext
8236 cat >>conftest.
$ac_ext <<_ACEOF
8237 /* end confdefs.h. */
8247 rm -f conftest.
$ac_objext
8248 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8249 (eval $ac_compile) 2>conftest.er1
8251 grep -v '^ *+' conftest.er1
>conftest.err
8253 cat conftest.err
>&5
8254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8255 (exit $ac_status); } &&
8256 { ac_try
='test -z "$ac_cxx_werror_flag"
8257 || test ! -s conftest.err'
8258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8262 (exit $ac_status); }; } &&
8263 { ac_try
='test -s conftest.$ac_objext'
8264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8268 (exit $ac_status); }; }; then
8269 ac_cv_prog_cxx_g
=yes
8271 echo "$as_me: failed program was:" >&5
8272 sed 's/^/| /' conftest.
$ac_ext >&5
8276 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8278 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8279 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
8280 if test "$ac_test_CXXFLAGS" = set; then
8281 CXXFLAGS
=$ac_save_CXXFLAGS
8282 elif test $ac_cv_prog_cxx_g = yes; then
8283 if test "$GXX" = yes; then
8289 if test "$GXX" = yes; then
8295 for ac_declaration
in \
8297 'extern "C" void std::exit (int) throw (); using std::exit;' \
8298 'extern "C" void std::exit (int); using std::exit;' \
8299 'extern "C" void exit (int) throw ();' \
8300 'extern "C" void exit (int);' \
8303 cat >conftest.
$ac_ext <<_ACEOF
8306 cat confdefs.h
>>conftest.
$ac_ext
8307 cat >>conftest.
$ac_ext <<_ACEOF
8308 /* end confdefs.h. */
8319 rm -f conftest.
$ac_objext
8320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8321 (eval $ac_compile) 2>conftest.er1
8323 grep -v '^ *+' conftest.er1
>conftest.err
8325 cat conftest.err
>&5
8326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8327 (exit $ac_status); } &&
8328 { ac_try
='test -z "$ac_cxx_werror_flag"
8329 || test ! -s conftest.err'
8330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8334 (exit $ac_status); }; } &&
8335 { ac_try
='test -s conftest.$ac_objext'
8336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8340 (exit $ac_status); }; }; then
8343 echo "$as_me: failed program was:" >&5
8344 sed 's/^/| /' conftest.
$ac_ext >&5
8348 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8349 cat >conftest.
$ac_ext <<_ACEOF
8352 cat confdefs.h
>>conftest.
$ac_ext
8353 cat >>conftest.
$ac_ext <<_ACEOF
8354 /* end confdefs.h. */
8364 rm -f conftest.
$ac_objext
8365 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8366 (eval $ac_compile) 2>conftest.er1
8368 grep -v '^ *+' conftest.er1
>conftest.err
8370 cat conftest.err
>&5
8371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372 (exit $ac_status); } &&
8373 { ac_try
='test -z "$ac_cxx_werror_flag"
8374 || test ! -s conftest.err'
8375 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8379 (exit $ac_status); }; } &&
8380 { ac_try
='test -s conftest.$ac_objext'
8381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8385 (exit $ac_status); }; }; then
8388 echo "$as_me: failed program was:" >&5
8389 sed 's/^/| /' conftest.
$ac_ext >&5
8392 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
8395 if test -n "$ac_declaration"; then
8396 echo '#ifdef __cplusplus' >>confdefs.h
8397 echo $ac_declaration >>confdefs.h
8398 echo '#endif' >>confdefs.h
8402 ac_cpp
='$CPP $CPPFLAGS'
8403 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8404 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8405 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8408 echo "CXXFLAGS chosen by autoconf: $CXXFLAGS" >&5
8409 cxxflags_ac_prog_cxx
=$CXXFLAGS
8410 cxxflags_list
=ac_prog_cxx
8412 # If the user didn't specify $CXXFLAGS, then try $CFLAGS, with -g removed
8413 # if AC_PROG_CXX thinks that doesn't work. $CFLAGS stands a good chance
8414 # of working, eg. on a GNU system where CC=gcc and CXX=g++.
8416 if test "$test_CXXFLAGS" != set; then
8417 cxxflags_cflags
=$CFLAGS
8418 cxxflags_list
="cflags $cxxflags_list"
8419 if test "$ac_prog_cxx_g" = no
; then
8420 cxxflags_cflags
=`echo "$cxxflags_cflags" | sed -e 's/ -g //' -e 's/^-g //' -e 's/ -g$//'`
8424 # See if the C++ compiler works. If the user specified CXXFLAGS then all
8425 # we're doing is checking whether AC_PROG_CXX succeeded, since it doesn't
8426 # give a fatal error, just leaves CXX set to a default g++. If on the
8427 # other hand the user didn't specify CXXFLAGS then we get to try here our
8428 # $cxxflags_list alternatives.
8430 # Automake includes $CPPFLAGS in a C++ compile, so we do the same here.
8432 for cxxflags_choice
in $cxxflags_list; do
8433 eval CXXFLAGS
=\"\
$cxxflags_$cxxflags_choice\"
8434 echo "$as_me:$LINENO: checking C++ compiler $CXX $CPPFLAGS $CXXFLAGS" >&5
8435 echo $ECHO_N "checking C++ compiler $CXX $CPPFLAGS $CXXFLAGS... $ECHO_C" >&6
8436 gmp_prog_cxx_works
=yes
8438 # start with a plain "main()", then go on to further checks
8439 if test "$gmp_prog_cxx_works" = yes; then
8440 # remove anything that might look like compiler output to our "||" expression
8441 rm -f conftest
* a.out b.out a.exe a_out.exe
8442 cat >conftest.cc
<<EOF
8444 int main (void) { return 0; }
8446 echo "Test compile: " >&5
8447 gmp_cxxcompile
="$CXX $CPPFLAGS $CXXFLAGS conftest.cc >&5"
8448 if { (eval echo "$as_me:$LINENO: \"$gmp_cxxcompile\"") >&5
8449 (eval $gmp_cxxcompile) 2>&5
8451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8452 (exit $ac_status); }; then
8453 if test "$cross_compiling" = no
; then
8454 if { ac_try
='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
8455 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8459 (exit $ac_status); }; }; then :;
8461 gmp_prog_cxx_works
="no, program does not run"
8465 gmp_prog_cxx_works
="no"
8467 case $gmp_prog_cxx_works in
8469 echo "failed program was:" >&5
8473 rm -f conftest
* a.out b.out a.exe a_out.exe
8477 if test "$gmp_prog_cxx_works" = yes; then
8478 # remove anything that might look like compiler output to our "||" expression
8479 rm -f conftest
* a.out b.out a.exe a_out.exe
8480 cat >conftest.cc
<<EOF
8482 using namespace foo;
8484 int main (void) { return 0; }
8486 echo "Test compile: namespace" >&5
8487 gmp_cxxcompile
="$CXX $CPPFLAGS $CXXFLAGS conftest.cc >&5"
8488 if { (eval echo "$as_me:$LINENO: \"$gmp_cxxcompile\"") >&5
8489 (eval $gmp_cxxcompile) 2>&5
8491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8492 (exit $ac_status); }; then
8493 if test "$cross_compiling" = no
; then
8494 if { ac_try
='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
8495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8499 (exit $ac_status); }; }; then :;
8501 gmp_prog_cxx_works
="no, namespace, program does not run"
8505 gmp_prog_cxx_works
="no, namespace"
8507 case $gmp_prog_cxx_works in
8509 echo "failed program was:" >&5
8513 rm -f conftest
* a.out b.out a.exe a_out.exe
8517 # GMP requires the standard C++ iostream classes
8518 if test "$gmp_prog_cxx_works" = yes; then
8519 # remove anything that might look like compiler output to our "||" expression
8520 rm -f conftest
* a.out b.out a.exe a_out.exe
8521 cat >conftest.cc
<<EOF
8522 /* This test rejects g++ 2.7.2 which doesn't have <iostream>, only a
8523 pre-standard iostream.h. */
8526 /* This test rejects OSF 5.1 Compaq C++ in its default pre-standard iostream
8527 mode, since that mode puts cout in the global namespace, not "std". */
8528 void someoutput (void) { std::cout << 123; }
8530 int main (void) { return 0; }
8532 echo "Test compile: std iostream" >&5
8533 gmp_cxxcompile
="$CXX $CPPFLAGS $CXXFLAGS conftest.cc >&5"
8534 if { (eval echo "$as_me:$LINENO: \"$gmp_cxxcompile\"") >&5
8535 (eval $gmp_cxxcompile) 2>&5
8537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8538 (exit $ac_status); }; then
8539 if test "$cross_compiling" = no
; then
8540 if { ac_try
='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
8541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8545 (exit $ac_status); }; }; then :;
8547 gmp_prog_cxx_works
="no, std iostream, program does not run"
8551 gmp_prog_cxx_works
="no, std iostream"
8553 case $gmp_prog_cxx_works in
8555 echo "failed program was:" >&5
8559 rm -f conftest
* a.out b.out a.exe a_out.exe
8563 echo "$as_me:$LINENO: result: $gmp_prog_cxx_works" >&5
8564 echo "${ECHO_T}$gmp_prog_cxx_works" >&6
8565 case $gmp_prog_cxx_works in
8577 # If --enable-cxx=yes but a C++ compiler can't be found, then abort.
8578 if test $want_cxx = no
&& test $enable_cxx = yes; then
8579 { { echo "$as_me:$LINENO: error: C++ compiler not available, see config.log for details" >&5
8580 echo "$as_me: error: C++ compiler not available, see config.log for details" >&2;}
8581 { (exit 1); exit 1; }; }
8587 if test $want_cxx = yes; then
8596 # FIXME: We're not interested in CXXCPP for ourselves, but if we don't do it
8597 # here then AC_PROG_LIBTOOL will AC_REQUIRE it (via _LT_AC_TAGCONFIG) and
8598 # hence execute it unconditionally, and that will fail if there's no C++
8599 # compiler (and no generic /lib/cpp).
8601 if test $want_cxx = yes; then
8603 ac_cpp
='$CXXCPP $CPPFLAGS'
8604 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8605 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8606 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
8607 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8608 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
8609 if test -z "$CXXCPP"; then
8610 if test "${ac_cv_prog_CXXCPP+set}" = set; then
8611 echo $ECHO_N "(cached) $ECHO_C" >&6
8613 # Double quotes because CXXCPP needs to be expanded
8614 for CXXCPP
in "$CXX -E" "/lib/cpp"
8617 for ac_cxx_preproc_warn_flag
in '' yes
8619 # Use a header file that comes with gcc, so configuring glibc
8620 # with a fresh cross-compiler works.
8621 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8622 # <limits.h> exists even on freestanding compilers.
8623 # On the NeXT, cc -E runs the code through the compiler's parser,
8624 # not just through cpp. "Syntax error" is here to catch this case.
8625 cat >conftest.
$ac_ext <<_ACEOF
8628 cat confdefs.h
>>conftest.
$ac_ext
8629 cat >>conftest.
$ac_ext <<_ACEOF
8630 /* end confdefs.h. */
8632 # include <limits.h>
8634 # include <assert.h>
8638 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8639 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8641 grep -v '^ *+' conftest.er1
>conftest.err
8643 cat conftest.err
>&5
8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8645 (exit $ac_status); } >/dev
/null
; then
8646 if test -s conftest.err
; then
8647 ac_cpp_err
=$ac_cxx_preproc_warn_flag
8648 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
8655 if test -z "$ac_cpp_err"; then
8658 echo "$as_me: failed program was:" >&5
8659 sed 's/^/| /' conftest.
$ac_ext >&5
8661 # Broken: fails on valid input.
8664 rm -f conftest.err conftest.
$ac_ext
8666 # OK, works on sane cases. Now check whether non-existent headers
8667 # can be detected and how.
8668 cat >conftest.
$ac_ext <<_ACEOF
8671 cat confdefs.h
>>conftest.
$ac_ext
8672 cat >>conftest.
$ac_ext <<_ACEOF
8673 /* end confdefs.h. */
8674 #include <ac_nonexistent.h>
8676 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8677 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8679 grep -v '^ *+' conftest.er1
>conftest.err
8681 cat conftest.err
>&5
8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 (exit $ac_status); } >/dev
/null
; then
8684 if test -s conftest.err
; then
8685 ac_cpp_err
=$ac_cxx_preproc_warn_flag
8686 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
8693 if test -z "$ac_cpp_err"; then
8694 # Broken: success on invalid input.
8697 echo "$as_me: failed program was:" >&5
8698 sed 's/^/| /' conftest.
$ac_ext >&5
8700 # Passes both tests.
8704 rm -f conftest.err conftest.
$ac_ext
8707 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8708 rm -f conftest.err conftest.
$ac_ext
8709 if $ac_preproc_ok; then
8714 ac_cv_prog_CXXCPP
=$CXXCPP
8717 CXXCPP
=$ac_cv_prog_CXXCPP
8719 ac_cv_prog_CXXCPP
=$CXXCPP
8721 echo "$as_me:$LINENO: result: $CXXCPP" >&5
8722 echo "${ECHO_T}$CXXCPP" >&6
8724 for ac_cxx_preproc_warn_flag
in '' yes
8726 # Use a header file that comes with gcc, so configuring glibc
8727 # with a fresh cross-compiler works.
8728 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8729 # <limits.h> exists even on freestanding compilers.
8730 # On the NeXT, cc -E runs the code through the compiler's parser,
8731 # not just through cpp. "Syntax error" is here to catch this case.
8732 cat >conftest.
$ac_ext <<_ACEOF
8735 cat confdefs.h
>>conftest.
$ac_ext
8736 cat >>conftest.
$ac_ext <<_ACEOF
8737 /* end confdefs.h. */
8739 # include <limits.h>
8741 # include <assert.h>
8745 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8746 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8748 grep -v '^ *+' conftest.er1
>conftest.err
8750 cat conftest.err
>&5
8751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8752 (exit $ac_status); } >/dev
/null
; then
8753 if test -s conftest.err
; then
8754 ac_cpp_err
=$ac_cxx_preproc_warn_flag
8755 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
8762 if test -z "$ac_cpp_err"; then
8765 echo "$as_me: failed program was:" >&5
8766 sed 's/^/| /' conftest.
$ac_ext >&5
8768 # Broken: fails on valid input.
8771 rm -f conftest.err conftest.
$ac_ext
8773 # OK, works on sane cases. Now check whether non-existent headers
8774 # can be detected and how.
8775 cat >conftest.
$ac_ext <<_ACEOF
8778 cat confdefs.h
>>conftest.
$ac_ext
8779 cat >>conftest.
$ac_ext <<_ACEOF
8780 /* end confdefs.h. */
8781 #include <ac_nonexistent.h>
8783 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8784 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
8786 grep -v '^ *+' conftest.er1
>conftest.err
8788 cat conftest.err
>&5
8789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8790 (exit $ac_status); } >/dev
/null
; then
8791 if test -s conftest.err
; then
8792 ac_cpp_err
=$ac_cxx_preproc_warn_flag
8793 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
8800 if test -z "$ac_cpp_err"; then
8801 # Broken: success on invalid input.
8804 echo "$as_me: failed program was:" >&5
8805 sed 's/^/| /' conftest.
$ac_ext >&5
8807 # Passes both tests.
8811 rm -f conftest.err conftest.
$ac_ext
8814 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8815 rm -f conftest.err conftest.
$ac_ext
8816 if $ac_preproc_ok; then
8819 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8820 See \`config.log' for more details." >&5
8821 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8822 See \`config.log' for more details." >&2;}
8823 { (exit 1); exit 1; }; }
8827 ac_cpp
='$CPP $CPPFLAGS'
8828 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8829 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8830 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
8835 # Path setups for Cray, according to IEEE or CFP. These must come after
8836 # deciding the compiler.
8839 echo "$as_me:$LINENO: checking for egrep" >&5
8840 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
8841 if test "${ac_cv_prog_egrep+set}" = set; then
8842 echo $ECHO_N "(cached) $ECHO_C" >&6
8844 if echo a |
(grep -E '(a|b)') >/dev
/null
2>&1
8845 then ac_cv_prog_egrep
='grep -E'
8846 else ac_cv_prog_egrep
='egrep'
8849 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
8850 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
8851 EGREP
=$ac_cv_prog_egrep
8856 cat >conftest.
$ac_ext <<_ACEOF
8859 cat confdefs.h
>>conftest.
$ac_ext
8860 cat >>conftest.
$ac_ext <<_ACEOF
8861 /* end confdefs.h. */
8866 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8867 $EGREP "yes" >/dev
/null
2>&1; then
8868 add_path
="cray/ieee"
8870 add_path
="cray/cfp"; extra_functions
="mulwwc90"
8876 add_path
="cray/cfp"; extra_functions
="mulwwj90"
8882 if test -z "$MPN_PATH"; then
8883 path
="$add_path $path"
8886 # For a nail build, also look in "nails" subdirectories.
8888 if test $GMP_NAIL_BITS != 0 && test -z "$MPN_PATH"; then
8892 generic
) new_path
="$new_path $i" ;;
8893 *) new_path
="$new_path $i/nails $i" ;;
8900 # Put all directories into CPUVEC_list so as to get a full set of
8901 # CPUVEC_SETUP_$tmp_suffix defines into config.h, even if some of them are
8902 # empty because mmx and/or sse2 had to be dropped.
8904 for i
in $fat_path; do
8905 tmp_suffix
=`echo $i | sed -e '/\//s:^[^/]*/::' -e 's:[\\/]:_:g'`
8906 CPUVEC_list
="$CPUVEC_list CPUVEC_SETUP_$tmp_suffix"
8910 # If there's any sse2 or mmx in the path, check whether the assembler
8911 # supports it, and remove if not.
8913 # We only need this in ABI=32, for ABI=64 on x86_64 we can assume a new
8917 i?
86*-*-* | k
[5-8]*-*-* | pentium
*-*-* | athlon-
*-* | viac3
*-*-* | geode
*-*-* | athlon64-
*-* | atom-
*-* | core2-
*-* | x86_64-
*-*)
8918 if test "$ABI" = 32; then
8919 case "$path $fat_path" in
8920 *mmx
*) echo "$as_me:$LINENO: checking if the assembler knows about MMX instructions" >&5
8921 echo $ECHO_N "checking if the assembler knows about MMX instructions... $ECHO_C" >&6
8922 if test "${gmp_cv_asm_x86_mmx+set}" = set; then
8923 echo $ECHO_N "(cached) $ECHO_C" >&6
8925 cat >conftest.s
<<EOF
8929 gmp_assemble
="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
8930 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
8931 (eval $gmp_assemble) 2>&5
8933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8934 (exit $ac_status); }; then
8935 cat conftest.out
>&5
8936 gmp_cv_asm_x86_mmx
=yes
8939 if (dis conftest.
$OBJEXT >conftest.out
) 2>/dev
/null
; then
8940 if grep "0f 6f c1" conftest.out
>/dev
/null
; then
8941 gmp_cv_asm_x86_mmx
=movq-bug
8944 { echo "$as_me:$LINENO: WARNING: \"dis\" not available to check for \"as\" movq bug" >&5
8945 echo "$as_me: WARNING: \"dis\" not available to check for \"as\" movq bug" >&2;}
8949 cat conftest.out
>&5
8950 echo "configure: failed program was:" >&5
8952 gmp_cv_asm_x86_mmx
=no
8957 echo "$as_me:$LINENO: result: $gmp_cv_asm_x86_mmx" >&5
8958 echo "${ECHO_T}$gmp_cv_asm_x86_mmx" >&6
8960 case $gmp_cv_asm_x86_mmx in
8962 { echo "$as_me:$LINENO: WARNING: +----------------------------------------------------------" >&5
8963 echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
8964 { echo "$as_me:$LINENO: WARNING: | WARNING WARNING WARNING" >&5
8965 echo "$as_me: WARNING: | WARNING WARNING WARNING" >&2;}
8966 { echo "$as_me:$LINENO: WARNING: | Host CPU has MMX code, but the assembler" >&5
8967 echo "$as_me: WARNING: | Host CPU has MMX code, but the assembler" >&2;}
8968 { echo "$as_me:$LINENO: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&5
8969 echo "$as_me: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&2;}
8970 { echo "$as_me:$LINENO: WARNING: | has the Solaris 2.6 and 2.7 bug where register to register" >&5
8971 echo "$as_me: WARNING: | has the Solaris 2.6 and 2.7 bug where register to register" >&2;}
8972 { echo "$as_me:$LINENO: WARNING: | movq operands are reversed." >&5
8973 echo "$as_me: WARNING: | movq operands are reversed." >&2;}
8974 { echo "$as_me:$LINENO: WARNING: | Non-MMX replacements will be used." >&5
8975 echo "$as_me: WARNING: | Non-MMX replacements will be used." >&2;}
8976 { echo "$as_me:$LINENO: WARNING: | This will be an inferior build." >&5
8977 echo "$as_me: WARNING: | This will be an inferior build." >&2;}
8978 { echo "$as_me:$LINENO: WARNING: +----------------------------------------------------------" >&5
8979 echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
8982 { echo "$as_me:$LINENO: WARNING: +----------------------------------------------------------" >&5
8983 echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
8984 { echo "$as_me:$LINENO: WARNING: | WARNING WARNING WARNING" >&5
8985 echo "$as_me: WARNING: | WARNING WARNING WARNING" >&2;}
8986 { echo "$as_me:$LINENO: WARNING: | Host CPU has MMX code, but it can't be assembled by" >&5
8987 echo "$as_me: WARNING: | Host CPU has MMX code, but it can't be assembled by" >&2;}
8988 { echo "$as_me:$LINENO: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&5
8989 echo "$as_me: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&2;}
8990 { echo "$as_me:$LINENO: WARNING: | Non-MMX replacements will be used." >&5
8991 echo "$as_me: WARNING: | Non-MMX replacements will be used." >&2;}
8992 { echo "$as_me:$LINENO: WARNING: | This will be an inferior build." >&5
8993 echo "$as_me: WARNING: | This will be an inferior build." >&2;}
8994 { echo "$as_me:$LINENO: WARNING: +----------------------------------------------------------" >&5
8995 echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
8998 if test "$gmp_cv_asm_x86_mmx" = yes; then
9005 *) tmp_path
="$tmp_path $i" ;;
9011 for i
in $fat_path; do
9014 *) tmp_path
="$tmp_path $i" ;;
9017 fat_path
="$tmp_path"
9023 case "$path $fat_path" in
9024 *sse2
*) echo "$as_me:$LINENO: checking if the assembler knows about SSE2 instructions" >&5
9025 echo $ECHO_N "checking if the assembler knows about SSE2 instructions... $ECHO_C" >&6
9026 if test "${gmp_cv_asm_x86_sse2+set}" = set; then
9027 echo $ECHO_N "(cached) $ECHO_C" >&6
9029 cat >conftest.s
<<EOF
9033 gmp_assemble
="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
9034 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
9035 (eval $gmp_assemble) 2>&5
9037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9038 (exit $ac_status); }; then
9039 cat conftest.out
>&5
9040 gmp_cv_asm_x86_sse2
=yes
9042 cat conftest.out
>&5
9043 echo "configure: failed program was:" >&5
9045 gmp_cv_asm_x86_sse2
=no
9051 echo "$as_me:$LINENO: result: $gmp_cv_asm_x86_sse2" >&5
9052 echo "${ECHO_T}$gmp_cv_asm_x86_sse2" >&6
9053 case $gmp_cv_asm_x86_sse2 in
9058 { echo "$as_me:$LINENO: WARNING: +----------------------------------------------------------" >&5
9059 echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
9060 { echo "$as_me:$LINENO: WARNING: | WARNING WARNING WARNING" >&5
9061 echo "$as_me: WARNING: | WARNING WARNING WARNING" >&2;}
9062 { echo "$as_me:$LINENO: WARNING: | Host CPU has SSE2 code, but it can't be assembled by" >&5
9063 echo "$as_me: WARNING: | Host CPU has SSE2 code, but it can't be assembled by" >&2;}
9064 { echo "$as_me:$LINENO: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&5
9065 echo "$as_me: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&2;}
9066 { echo "$as_me:$LINENO: WARNING: | Non-SSE2 replacements will be used." >&5
9067 echo "$as_me: WARNING: | Non-SSE2 replacements will be used." >&2;}
9068 { echo "$as_me:$LINENO: WARNING: | This will be an inferior build." >&5
9069 echo "$as_me: WARNING: | This will be an inferior build." >&2;}
9070 { echo "$as_me:$LINENO: WARNING: +----------------------------------------------------------" >&5
9071 echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
9076 *) tmp_path
="$tmp_path $i" ;;
9082 for i
in $fat_path; do
9085 *) tmp_path
="$tmp_path $i" ;;
9088 fat_path
="$tmp_path"
9106 GMP_LDFLAGS=$GMP_LDFLAGS
9111 echo "using ABI=\"$ABI\""
9113 echo " CFLAGS=\"$CFLAGS\""
9114 echo " CPPFLAGS=\"$CPPFLAGS\""
9115 if test $want_cxx = yes; then
9116 echo " CXX=\"$CXX\""
9117 echo " CXXFLAGS=\"$CXXFLAGS\""
9119 echo " MPN_PATH=\"$path\""
9122 # Automake ansi2knr support.
9123 echo "$as_me:$LINENO: checking for function prototypes" >&5
9124 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
9125 if test "$ac_cv_prog_cc_stdc" != no
; then
9126 echo "$as_me:$LINENO: result: yes" >&5
9127 echo "${ECHO_T}yes" >&6
9129 cat >>confdefs.h
<<\_ACEOF
9130 #define PROTOTYPES 1
9134 cat >>confdefs.h
<<\_ACEOF
9135 #define __PROTOTYPES 1
9139 echo "$as_me:$LINENO: result: no" >&5
9140 echo "${ECHO_T}no" >&6
9143 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9144 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9145 if test "${ac_cv_header_stdc+set}" = set; then
9146 echo $ECHO_N "(cached) $ECHO_C" >&6
9148 cat >conftest.
$ac_ext <<_ACEOF
9151 cat confdefs.h
>>conftest.
$ac_ext
9152 cat >>conftest.
$ac_ext <<_ACEOF
9153 /* end confdefs.h. */
9167 rm -f conftest.
$ac_objext
9168 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9169 (eval $ac_compile) 2>conftest.er1
9171 grep -v '^ *+' conftest.er1
>conftest.err
9173 cat conftest.err
>&5
9174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9175 (exit $ac_status); } &&
9176 { ac_try
='test -z "$ac_c_werror_flag"
9177 || test ! -s conftest.err'
9178 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9182 (exit $ac_status); }; } &&
9183 { ac_try
='test -s conftest.$ac_objext'
9184 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188 (exit $ac_status); }; }; then
9189 ac_cv_header_stdc
=yes
9191 echo "$as_me: failed program was:" >&5
9192 sed 's/^/| /' conftest.
$ac_ext >&5
9194 ac_cv_header_stdc
=no
9196 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9198 if test $ac_cv_header_stdc = yes; then
9199 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9200 cat >conftest.
$ac_ext <<_ACEOF
9203 cat confdefs.h
>>conftest.
$ac_ext
9204 cat >>conftest.
$ac_ext <<_ACEOF
9205 /* end confdefs.h. */
9209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9210 $EGREP "memchr" >/dev
/null
2>&1; then
9213 ac_cv_header_stdc
=no
9219 if test $ac_cv_header_stdc = yes; then
9220 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9221 cat >conftest.
$ac_ext <<_ACEOF
9224 cat confdefs.h
>>conftest.
$ac_ext
9225 cat >>conftest.
$ac_ext <<_ACEOF
9226 /* end confdefs.h. */
9230 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9231 $EGREP "free" >/dev
/null
2>&1; then
9234 ac_cv_header_stdc
=no
9240 if test $ac_cv_header_stdc = yes; then
9241 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9242 if test "$cross_compiling" = yes; then
9245 cat >conftest.
$ac_ext <<_ACEOF
9248 cat confdefs.h
>>conftest.
$ac_ext
9249 cat >>conftest.
$ac_ext <<_ACEOF
9250 /* end confdefs.h. */
9252 #if ((' ' & 0x0FF) == 0x020)
9253 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9254 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9256 # define ISLOWER(c) \
9257 (('a' <= (c) && (c) <= 'i') \
9258 || ('j' <= (c) && (c) <= 'r') \
9259 || ('s' <= (c) && (c) <= 'z'))
9260 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9263 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9268 for (i = 0; i < 256; i++)
9269 if (XOR (islower (i), ISLOWER (i))
9270 || toupper (i) != TOUPPER (i))
9275 rm -f conftest
$ac_exeext
9276 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9277 (eval $ac_link) 2>&5
9279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
9281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9285 (exit $ac_status); }; }; then
9288 echo "$as_me: program exited with status $ac_status" >&5
9289 echo "$as_me: failed program was:" >&5
9290 sed 's/^/| /' conftest.
$ac_ext >&5
9293 ac_cv_header_stdc
=no
9295 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
9299 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9300 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9301 if test $ac_cv_header_stdc = yes; then
9303 cat >>confdefs.h
<<\_ACEOF
9304 #define STDC_HEADERS 1
9309 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9319 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
9320 inttypes.h stdint.h unistd.h
9322 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9323 echo "$as_me:$LINENO: checking for $ac_header" >&5
9324 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9325 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9326 echo $ECHO_N "(cached) $ECHO_C" >&6
9328 cat >conftest.
$ac_ext <<_ACEOF
9331 cat confdefs.h
>>conftest.
$ac_ext
9332 cat >>conftest.
$ac_ext <<_ACEOF
9333 /* end confdefs.h. */
9334 $ac_includes_default
9336 #include <$ac_header>
9338 rm -f conftest.
$ac_objext
9339 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9340 (eval $ac_compile) 2>conftest.er1
9342 grep -v '^ *+' conftest.er1
>conftest.err
9344 cat conftest.err
>&5
9345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346 (exit $ac_status); } &&
9347 { ac_try
='test -z "$ac_c_werror_flag"
9348 || test ! -s conftest.err'
9349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9353 (exit $ac_status); }; } &&
9354 { ac_try
='test -s conftest.$ac_objext'
9355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9359 (exit $ac_status); }; }; then
9360 eval "$as_ac_Header=yes"
9362 echo "$as_me: failed program was:" >&5
9363 sed 's/^/| /' conftest.
$ac_ext >&5
9365 eval "$as_ac_Header=no"
9367 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9369 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9370 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9371 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9372 cat >>confdefs.h
<<_ACEOF
9373 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9382 if test "$ac_cv_prog_cc_stdc" != no
; then
9385 U
=_ ANSI2KNR
=.
/ansi2knr
9387 # Ensure some checks needed by ansi2knr itself.
9390 for ac_header
in string.h
9392 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9393 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9394 echo "$as_me:$LINENO: checking for $ac_header" >&5
9395 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9396 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9397 echo $ECHO_N "(cached) $ECHO_C" >&6
9399 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9400 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9402 # Is the header compilable?
9403 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9404 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9405 cat >conftest.
$ac_ext <<_ACEOF
9408 cat confdefs.h
>>conftest.
$ac_ext
9409 cat >>conftest.
$ac_ext <<_ACEOF
9410 /* end confdefs.h. */
9411 $ac_includes_default
9412 #include <$ac_header>
9414 rm -f conftest.
$ac_objext
9415 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9416 (eval $ac_compile) 2>conftest.er1
9418 grep -v '^ *+' conftest.er1
>conftest.err
9420 cat conftest.err
>&5
9421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9422 (exit $ac_status); } &&
9423 { ac_try
='test -z "$ac_c_werror_flag"
9424 || test ! -s conftest.err'
9425 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9429 (exit $ac_status); }; } &&
9430 { ac_try
='test -s conftest.$ac_objext'
9431 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9435 (exit $ac_status); }; }; then
9436 ac_header_compiler
=yes
9438 echo "$as_me: failed program was:" >&5
9439 sed 's/^/| /' conftest.
$ac_ext >&5
9441 ac_header_compiler
=no
9443 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
9444 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9445 echo "${ECHO_T}$ac_header_compiler" >&6
9447 # Is the header present?
9448 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9449 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9450 cat >conftest.
$ac_ext <<_ACEOF
9453 cat confdefs.h
>>conftest.
$ac_ext
9454 cat >>conftest.
$ac_ext <<_ACEOF
9455 /* end confdefs.h. */
9456 #include <$ac_header>
9458 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9459 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
9461 grep -v '^ *+' conftest.er1
>conftest.err
9463 cat conftest.err
>&5
9464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9465 (exit $ac_status); } >/dev
/null
; then
9466 if test -s conftest.err
; then
9467 ac_cpp_err
=$ac_c_preproc_warn_flag
9468 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
9475 if test -z "$ac_cpp_err"; then
9476 ac_header_preproc
=yes
9478 echo "$as_me: failed program was:" >&5
9479 sed 's/^/| /' conftest.
$ac_ext >&5
9481 ac_header_preproc
=no
9483 rm -f conftest.err conftest.
$ac_ext
9484 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9485 echo "${ECHO_T}$ac_header_preproc" >&6
9487 # So? What about this header?
9488 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9490 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9491 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9492 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9493 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9494 ac_header_preproc
=yes
9497 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9498 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9499 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9500 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9501 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9502 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9503 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9504 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9505 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9506 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9507 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9508 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9511 ## ---------------------------------- ##
9512 ## Report this to gmp-bugs@gmplib.org ##
9513 ## ---------------------------------- ##
9516 sed "s/^/$as_me: WARNING: /" >&2
9519 echo "$as_me:$LINENO: checking for $ac_header" >&5
9520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9521 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9522 echo $ECHO_N "(cached) $ECHO_C" >&6
9524 eval "$as_ac_Header=\$ac_header_preproc"
9526 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9527 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9530 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9531 cat >>confdefs.h
<<_ACEOF
9532 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9542 echo "$as_me:$LINENO: checking whether assembler supports --noexecstack option" >&5
9543 echo $ECHO_N "checking whether assembler supports --noexecstack option... $ECHO_C" >&6
9544 if test "${cl_cv_as_noexecstack+set}" = set; then
9545 echo $ECHO_N "(cached) $ECHO_C" >&6
9547 cat > conftest.c
<<EOF
9550 if { ac_try
='${CC} $CFLAGS $CPPFLAGS
9551 -S -o conftest.s conftest.c >/dev/null'
9552 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9556 (exit $ac_status); }; } \
9557 && grep .note.GNU-stack conftest.s
>/dev
/null \
9558 && { ac_try
='${CC} $CFLAGS $CPPFLAGS -Wa,--noexecstack
9559 -c -o conftest.o conftest.s >/dev/null'
9560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564 (exit $ac_status); }; }
9566 cl_cv_as_noexecstack
=yes
9568 cl_cv_as_noexecstack
=no
9572 echo "$as_me:$LINENO: result: $cl_cv_as_noexecstack" >&5
9573 echo "${ECHO_T}$cl_cv_as_noexecstack" >&6
9574 if test "$cl_cv_as_noexecstack" = yes; then
9575 ASMFLAGS
="$ASMFLAGS -Wa,--noexecstack"
9582 if test -n "$ac_tool_prefix"; then
9583 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9584 set dummy
${ac_tool_prefix}ar; ac_word
=$2
9585 echo "$as_me:$LINENO: checking for $ac_word" >&5
9586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9587 if test "${ac_cv_prog_AR+set}" = set; then
9588 echo $ECHO_N "(cached) $ECHO_C" >&6
9590 if test -n "$AR"; then
9591 ac_cv_prog_AR
="$AR" # Let the user override the test.
9593 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9597 test -z "$as_dir" && as_dir
=.
9598 for ac_exec_ext
in '' $ac_executable_extensions; do
9599 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9600 ac_cv_prog_AR
="${ac_tool_prefix}ar"
9601 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9610 if test -n "$AR"; then
9611 echo "$as_me:$LINENO: result: $AR" >&5
9612 echo "${ECHO_T}$AR" >&6
9614 echo "$as_me:$LINENO: result: no" >&5
9615 echo "${ECHO_T}no" >&6
9619 if test -z "$ac_cv_prog_AR"; then
9621 # Extract the first word of "ar", so it can be a program name with args.
9622 set dummy
ar; ac_word
=$2
9623 echo "$as_me:$LINENO: checking for $ac_word" >&5
9624 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9625 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
9626 echo $ECHO_N "(cached) $ECHO_C" >&6
9628 if test -n "$ac_ct_AR"; then
9629 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
9631 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
9635 test -z "$as_dir" && as_dir
=.
9636 for ac_exec_ext
in '' $ac_executable_extensions; do
9637 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9638 ac_cv_prog_ac_ct_AR
="ar"
9639 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9645 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR
="ar"
9648 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
9649 if test -n "$ac_ct_AR"; then
9650 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
9651 echo "${ECHO_T}$ac_ct_AR" >&6
9653 echo "$as_me:$LINENO: result: no" >&5
9654 echo "${ECHO_T}no" >&6
9662 if test -z "$gmp_user_AR"; then
9663 eval arflags
=\"\
$ar${abi1}_flags
\"
9664 test -n "$arflags" ||
eval arflags
=\"\
$ar${abi2}_flags
\"
9665 if test -n "$arflags"; then
9666 echo "$as_me:$LINENO: checking for extra ar flags" >&5
9667 echo $ECHO_N "checking for extra ar flags... $ECHO_C" >&6
9669 ac_cv_prog_AR
="$AR $arflags"
9670 ac_cv_prog_ac_ct_AR
="$AR $arflags"
9671 echo "$as_me:$LINENO: result: $arflags" >&5
9672 echo "${ECHO_T}$arflags" >&6
9675 if test -z "$AR_FLAGS"; then
9681 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
9682 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
9683 if test "${lt_cv_path_NM+set}" = set; then
9684 echo $ECHO_N "(cached) $ECHO_C" >&6
9686 if test -n "$NM"; then
9687 # Let the user override the test.
9690 lt_nm_to_check
="${ac_tool_prefix}nm"
9691 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9692 lt_nm_to_check
="$lt_nm_to_check nm"
9694 for lt_tmp_nm
in $lt_nm_to_check; do
9695 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
9696 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
9698 test -z "$ac_dir" && ac_dir
=.
9699 tmp_nm
="$ac_dir/$lt_tmp_nm"
9700 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
9701 # Check to see if the nm accepts a BSD-compat flag.
9702 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9703 # nm: unknown option "B" ignored
9704 # Tru64's nm complains that /dev/null is an invalid object file
9705 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9706 */dev
/null
* |
*'Invalid file or object type'*)
9707 lt_cv_path_NM
="$tmp_nm -B"
9711 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9713 lt_cv_path_NM
="$tmp_nm -p"
9717 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9718 continue # so that we can try to find one that supports BSD flags
9727 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
9730 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
9731 echo "${ECHO_T}$lt_cv_path_NM" >&6
9735 # FIXME: When cross compiling (ie. $ac_tool_prefix not empty), libtool
9736 # defaults to plain "nm" if a "${ac_tool_prefix}nm" is not found. In this
9737 # case run it again to try the native "nm", firstly so that likely locations
9738 # are searched, secondly so that -B or -p are added if necessary for BSD
9739 # format. This is necessary for instance on OSF with "./configure
9740 # --build=alphaev5-dec-osf --host=alphaev6-dec-osf".
9742 if test -z "$gmp_user_NM" && test -n "$ac_tool_prefix" && test "$NM" = nm
; then
9743 $as_unset lt_cv_path_NM
9744 gmp_save_ac_tool_prefix
=$ac_tool_prefix
9747 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
9748 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
9749 if test "${lt_cv_path_NM+set}" = set; then
9750 echo $ECHO_N "(cached) $ECHO_C" >&6
9752 if test -n "$NM"; then
9753 # Let the user override the test.
9756 lt_nm_to_check
="${ac_tool_prefix}nm"
9757 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
9758 lt_nm_to_check
="$lt_nm_to_check nm"
9760 for lt_tmp_nm
in $lt_nm_to_check; do
9761 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
9762 for ac_dir
in $PATH /usr
/ccs
/bin
/elf
/usr
/ccs
/bin
/usr
/ucb
/bin
; do
9764 test -z "$ac_dir" && ac_dir
=.
9765 tmp_nm
="$ac_dir/$lt_tmp_nm"
9766 if test -f "$tmp_nm" ||
test -f "$tmp_nm$ac_exeext" ; then
9767 # Check to see if the nm accepts a BSD-compat flag.
9768 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9769 # nm: unknown option "B" ignored
9770 # Tru64's nm complains that /dev/null is an invalid object file
9771 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9772 */dev
/null
* |
*'Invalid file or object type'*)
9773 lt_cv_path_NM
="$tmp_nm -B"
9777 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9779 lt_cv_path_NM
="$tmp_nm -p"
9783 lt_cv_path_NM
=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9784 continue # so that we can try to find one that supports BSD flags
9793 test -z "$lt_cv_path_NM" && lt_cv_path_NM
=nm
9796 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
9797 echo "${ECHO_T}$lt_cv_path_NM" >&6
9800 ac_tool_prefix
=$gmp_save_ac_tool_prefix
9803 if test -z "$gmp_user_NM"; then
9804 eval nmflags
=\"\
$nm${abi1}_flags
\"
9805 test -n "$nmflags" ||
eval nmflags
=\"\
$nm${abi2}_flags
\"
9806 if test -n "$nmflags"; then
9807 echo "$as_me:$LINENO: checking for extra nm flags" >&5
9808 echo $ECHO_N "checking for extra nm flags... $ECHO_C" >&6
9810 echo "$as_me:$LINENO: result: $nmflags" >&5
9811 echo "${ECHO_T}$nmflags" >&6
9817 # FIXME: On AIX 3 and 4, $libname.a is included in libtool
9818 # $library_names_spec, so libgmp.a becomes a symlink to libgmp.so, making
9819 # it impossible to build shared and static libraries simultaneously.
9820 # Disable shared libraries by default, but let the user override with
9821 # --enable-shared --disable-static.
9823 # FIXME: This $libname.a problem looks like it might apply to *-*-amigaos*
9824 # and *-*-os2* too, but wait for someone to test this before worrying
9825 # about it. If there is a problem then of course libtool is the right
9829 if test -z "$enable_shared"; then enable_shared
=no
; fi ;;
9833 # Configs for Windows DLLs.
9841 *-*-cygwin* |
*-*-mingw* |
*-*-pw32* |
*-*-os2*)
9842 # By default, build only static.
9843 if test -z "$enable_shared"; then
9846 # Don't allow both static and DLL.
9847 if test "$enable_shared" != no
&& test "$enable_static" != no
; then
9848 { { echo "$as_me:$LINENO: error: cannot build both static and DLL, since gmp.h is different for each.
9849 Use \"--disable-static --enable-shared\" to build just a DLL." >&5
9850 echo "$as_me: error: cannot build both static and DLL, since gmp.h is different for each.
9851 Use \"--disable-static --enable-shared\" to build just a DLL." >&2;}
9852 { (exit 1); exit 1; }; }
9855 # "-no-undefined" is required when building a DLL, see documentation on
9856 # AC_LIBTOOL_WIN32_DLL.
9858 # "-Wl,--export-all-symbols" is a bit of a hack, it gets all libgmp and
9859 # libgmpxx functions and variables exported. This is what libtool did
9860 # in the past, and it's convenient for us in the test programs.
9862 # Maybe it'd be prudent to check for --export-all-symbols before using
9863 # it, but it seems to have been in ld since at least 2000, and there's
9864 # not really any alternative we want to take up at the moment.
9866 # "-Wl,output-def" is used to get a .def file for use by MS lib to make
9867 # a .lib import library, described in the manual. libgmp-3.dll.def
9868 # corresponds to the libmp-3.dll.def generated by libtool (as a result
9869 # of -export-symbols on that library).
9871 # Incidentally, libtool does generate an import library libgmp.dll.a,
9872 # but it's "ar" format and cannot be used by the MS linker. There
9873 # doesn't seem to be any GNU tool for generating or converting to .lib.
9875 # FIXME: The .def files produced by -Wl,output-def include isascii,
9876 # iscsym, iscsymf and toascii, apparently because mingw ctype.h doesn't
9877 # inline isascii (used in gmp). It gives an extern inline for
9878 # __isascii, but for some reason not the plain isascii.
9880 if test "$enable_shared" = yes; then
9881 GMP_LDFLAGS
="$GMP_LDFLAGS -no-undefined -Wl,--export-all-symbols"
9882 LIBGMP_LDFLAGS
="$LIBGMP_LDFLAGS -Wl,--output-def,.libs/libgmp-3.dll.def"
9883 LIBGMPXX_LDFLAGS
="$LIBGMP_LDFLAGS -Wl,--output-def,.libs/libgmpxx-3.dll.def"
9890 # Ensure that $CONFIG_SHELL is available for AC_LIBTOOL_SYS_MAX_CMD_LEN.
9891 # It's often set already by _LT_AC_PROG_ECHO_BACKSLASH or
9892 # _AS_LINENO_PREPARE, but not always.
9894 # The symptom of CONFIG_SHELL unset is some "expr" errors during the test,
9895 # and an empty result. This only happens when invoked as "sh configure",
9896 # ie. no path, and can be seen for instance on ia64-*-hpux*.
9898 # FIXME: Newer libtool should have it's own fix for this.
9900 if test -z "$CONFIG_SHELL"; then
9904 # Enable CXX in libtool only if we want it, and never enable GCJ, nor RC on
9905 # mingw and cygwin. Under --disable-cxx this avoids some error messages
9906 # from libtool arising from the fact we didn't actually run AC_PROG_CXX.
9907 # Notice that any user-supplied --with-tags setting takes precedence.
9909 # FIXME: Is this the right way to get this effect? Very possibly not, but
9910 # the current _LT_AC_TAGCONFIG doesn't really suggest an alternative.
9912 if test "${with_tags+set}" != set; then
9913 if test $want_cxx = yes; then
9920 # The dead hand of AC_REQUIRE makes AC_PROG_LIBTOOL expand and execute
9921 # AC_PROG_F77, even when F77 is not in the selected with_tags. This is
9922 # probably harmless, but it's unsightly and bloats our configure, so pretend
9923 # AC_PROG_F77 has been expanded already.
9925 # FIXME: Rumour has it libtool will one day provide a way for a configure.in
9926 # to say what it wants from among supported languages etc.
9930 # Check whether --enable-shared or --disable-shared was given.
9931 if test "${enable_shared+set}" = set; then
9932 enableval
="$enable_shared"
9933 p
=${PACKAGE-default}
9935 yes) enable_shared
=yes ;;
9936 no
) enable_shared
=no
;;
9939 # Look at the argument we got. We use all the common list separators.
9940 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
9941 for pkg
in $enableval; do
9943 if test "X$pkg" = "X$p"; then
9954 # Check whether --enable-static or --disable-static was given.
9955 if test "${enable_static+set}" = set; then
9956 enableval
="$enable_static"
9957 p
=${PACKAGE-default}
9959 yes) enable_static
=yes ;;
9960 no
) enable_static
=no
;;
9963 # Look at the argument we got. We use all the common list separators.
9964 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
9965 for pkg
in $enableval; do
9967 if test "X$pkg" = "X$p"; then
9978 # Check whether --enable-fast-install or --disable-fast-install was given.
9979 if test "${enable_fast_install+set}" = set; then
9980 enableval
="$enable_fast_install"
9981 p
=${PACKAGE-default}
9983 yes) enable_fast_install
=yes ;;
9984 no
) enable_fast_install
=no
;;
9986 enable_fast_install
=no
9987 # Look at the argument we got. We use all the common list separators.
9988 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
9989 for pkg
in $enableval; do
9991 if test "X$pkg" = "X$p"; then
9992 enable_fast_install
=yes
9999 enable_fast_install
=yes
10002 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
10003 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
10004 if test "${lt_cv_path_SED+set}" = set; then
10005 echo $ECHO_N "(cached) $ECHO_C" >&6
10007 # Loop through the user's path and test for sed and gsed.
10008 # Then use that list of sed's as ones to test for truncation.
10009 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10010 for as_dir
in $PATH
10013 test -z "$as_dir" && as_dir
=.
10014 for lt_ac_prog
in sed gsed
; do
10015 for ac_exec_ext
in '' $ac_executable_extensions; do
10016 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
10017 lt_ac_sed_list
="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
10025 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
10026 # along with /bin/sed that truncates output.
10027 for lt_ac_sed
in $lt_ac_sed_list /usr
/xpg
4/bin
/sed; do
10028 test ! -f $lt_ac_sed && continue
10029 cat /dev
/null
> conftest.
in
10031 echo $ECHO_N "0123456789$ECHO_C" >conftest.
in
10032 # Check for GNU sed and select it if it is found.
10033 if "$lt_ac_sed" --version 2>&1 < /dev
/null |
grep 'GNU' > /dev
/null
; then
10034 lt_cv_path_SED
=$lt_ac_sed
10038 cat conftest.
in conftest.
in >conftest.tmp
10039 mv conftest.tmp conftest.
in
10040 cp conftest.
in conftest.
nl
10042 $lt_ac_sed -e 's/a$//' < conftest.
nl >conftest.out ||
break
10043 cmp -s conftest.out conftest.
nl ||
break
10044 # 10000 chars as input seems more than enough
10045 test $lt_ac_count -gt 10 && break
10046 lt_ac_count
=`expr $lt_ac_count + 1`
10047 if test $lt_ac_count -gt $lt_ac_max; then
10048 lt_ac_max
=$lt_ac_count
10049 lt_cv_path_SED
=$lt_ac_sed
10056 SED
=$lt_cv_path_SED
10058 echo "$as_me:$LINENO: result: $SED" >&5
10059 echo "${ECHO_T}$SED" >&6
10062 # Check whether --with-gnu-ld or --without-gnu-ld was given.
10063 if test "${with_gnu_ld+set}" = set; then
10064 withval
="$with_gnu_ld"
10065 test "$withval" = no || with_gnu_ld
=yes
10070 if test "$GCC" = yes; then
10071 # Check if gcc -print-prog-name=ld gives a path.
10072 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
10073 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
10076 # gcc leaves a trailing carriage return which upsets mingw
10077 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
10079 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
10082 # Accept absolute paths.
10084 re_direlt
='/[^/][^/]*/\.\./'
10085 # Canonicalize the pathname of ld
10086 ac_prog
=`echo $ac_prog| $SED 's%\\\\%/%g'`
10087 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
10088 ac_prog
=`echo $ac_prog| $SED "s%$re_direlt%/%"`
10090 test -z "$LD" && LD
="$ac_prog"
10093 # If it fails, then pretend we aren't using GCC.
10097 # If it is relative, then search for the first ld in PATH.
10098 with_gnu_ld
=unknown
10101 elif test "$with_gnu_ld" = yes; then
10102 echo "$as_me:$LINENO: checking for GNU ld" >&5
10103 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
10105 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
10106 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
10108 if test "${lt_cv_path_LD+set}" = set; then
10109 echo $ECHO_N "(cached) $ECHO_C" >&6
10111 if test -z "$LD"; then
10112 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
10113 for ac_dir
in $PATH; do
10115 test -z "$ac_dir" && ac_dir
=.
10116 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
10117 lt_cv_path_LD
="$ac_dir/$ac_prog"
10118 # Check to see if the program is GNU ld. I'd rather use --version,
10119 # but apparently some variants of GNU ld only accept -v.
10120 # Break only if it was the GNU/non-GNU ld that we prefer.
10121 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
10122 *GNU
* |
*'with BFD'*)
10123 test "$with_gnu_ld" != no
&& break
10126 test "$with_gnu_ld" != yes && break
10133 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
10137 LD
="$lt_cv_path_LD"
10138 if test -n "$LD"; then
10139 echo "$as_me:$LINENO: result: $LD" >&5
10140 echo "${ECHO_T}$LD" >&6
10142 echo "$as_me:$LINENO: result: no" >&5
10143 echo "${ECHO_T}no" >&6
10145 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10146 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10147 { (exit 1); exit 1; }; }
10148 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10149 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10150 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10151 echo $ECHO_N "(cached) $ECHO_C" >&6
10153 # I'd rather use --version here, but apparently some GNU lds only accept -v.
10154 case `$LD -v 2>&1 </dev/null` in
10155 *GNU
* |
*'with BFD'*)
10156 lt_cv_prog_gnu_ld
=yes
10159 lt_cv_prog_gnu_ld
=no
10163 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10164 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10165 with_gnu_ld
=$lt_cv_prog_gnu_ld
10168 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10169 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10170 if test "${lt_cv_ld_reload_flag+set}" = set; then
10171 echo $ECHO_N "(cached) $ECHO_C" >&6
10173 lt_cv_ld_reload_flag
='-r'
10175 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10176 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10177 reload_flag
=$lt_cv_ld_reload_flag
10178 case $reload_flag in
10180 *) reload_flag
=" $reload_flag" ;;
10182 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
10185 if test "$GCC" = yes; then
10186 reload_cmds
='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
10188 reload_cmds
='$LD$reload_flag -o $output$reload_objs'
10193 echo "$as_me:$LINENO: checking whether ln -s works" >&5
10194 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
10196 if test "$LN_S" = "ln -s"; then
10197 echo "$as_me:$LINENO: result: yes" >&5
10198 echo "${ECHO_T}yes" >&6
10200 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10201 echo "${ECHO_T}no, using $LN_S" >&6
10204 echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5
10205 echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6
10206 if test "${lt_cv_deplibs_check_method+set}" = set; then
10207 echo $ECHO_N "(cached) $ECHO_C" >&6
10209 lt_cv_file_magic_cmd
='$MAGIC_CMD'
10210 lt_cv_file_magic_test_file
=
10211 lt_cv_deplibs_check_method
='unknown'
10212 # Need to set the preceding variable on all platforms that support
10213 # interlibrary dependencies.
10214 # 'none' -- dependencies not supported.
10215 # `unknown' -- same as none, but documents that we really don't know.
10216 # 'pass_all' -- all dependencies passed with no checks.
10217 # 'test_compile' -- check by making test program.
10218 # 'file_magic [[regex]]' -- check by looking for files in library path
10219 # which responds to the $file_magic_cmd with a given extended regex.
10220 # If you have `file' or equivalent on your system and you're not sure
10221 # whether `pass_all' will *always* work, you probably want this one.
10225 lt_cv_deplibs_check_method
=pass_all
10229 lt_cv_deplibs_check_method
=pass_all
10233 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10234 lt_cv_file_magic_cmd
='/usr/bin/file -L'
10235 lt_cv_file_magic_test_file
=/shlib
/libc.so
10239 # func_win32_libid is a shell function defined in ltmain.sh
10240 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
10241 lt_cv_file_magic_cmd
='func_win32_libid'
10245 # Base MSYS/MinGW do not provide the 'file' command needed by
10246 # func_win32_libid shell function, so use a weaker test based on 'objdump',
10247 # unless we find 'file', for example because we are cross-compiling.
10248 if ( file / ) >/dev
/null
2>&1; then
10249 lt_cv_deplibs_check_method
='file_magic ^x86 archive import|^x86 DLL'
10250 lt_cv_file_magic_cmd
='func_win32_libid'
10252 lt_cv_deplibs_check_method
='file_magic file format pei*-i386(.*architecture: i386)?'
10253 lt_cv_file_magic_cmd
='$OBJDUMP -f'
10257 darwin
* | rhapsody
*)
10258 lt_cv_deplibs_check_method
=pass_all
10261 freebsd
* | dragonfly
*)
10262 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
10265 # Not sure whether the presence of OpenBSD here was a mistake.
10266 # Let's accept both of them until this is cleared up.
10267 lt_cv_deplibs_check_method
='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
10268 lt_cv_file_magic_cmd
=/usr
/bin
/file
10269 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so.*`
10273 lt_cv_deplibs_check_method
=pass_all
10278 lt_cv_deplibs_check_method
=pass_all
10281 hpux10.20
* | hpux11
*)
10282 lt_cv_file_magic_cmd
=/usr
/bin
/file
10285 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10286 lt_cv_file_magic_test_file
=/usr
/lib
/hpux32
/libc.so
10289 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]'
10290 lt_cv_file_magic_test_file
=/usr
/lib
/pa20_64
/libc.sl
10293 lt_cv_deplibs_check_method
='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10294 lt_cv_file_magic_test_file
=/usr
/lib
/libc.sl
10300 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
10301 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|\.a)$'
10304 irix5
* | irix6
* | nonstopux
*)
10306 *-32|
*"-32 ") libmagic
=32-bit;;
10307 *-n32|
*"-n32 ") libmagic
=N32
;;
10308 *-64|
*"-64 ") libmagic
=64-bit;;
10309 *) libmagic
=never-match
;;
10311 lt_cv_deplibs_check_method
=pass_all
10314 # This must be Linux ELF.
10315 linux
* | k
*bsd
*-gnu)
10316 lt_cv_deplibs_check_method
=pass_all
10320 if echo __ELF__ |
$CC -E - |
grep __ELF__
> /dev
/null
; then
10321 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10323 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10328 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10329 lt_cv_file_magic_cmd
=/usr
/bin
/file
10330 lt_cv_file_magic_test_file
=/usr
/lib
/libnls.so
10334 lt_cv_deplibs_check_method
=unknown
10338 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10339 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
10341 lt_cv_deplibs_check_method
='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10345 osf3
* | osf4
* | osf5
*)
10346 lt_cv_deplibs_check_method
=pass_all
10350 lt_cv_deplibs_check_method
=pass_all
10354 lt_cv_deplibs_check_method
=pass_all
10358 case $host_vendor in
10360 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]'
10361 lt_cv_file_magic_test_file
=`echo /usr/lib/libc.so*`
10364 lt_cv_deplibs_check_method
=pass_all
10367 lt_cv_file_magic_cmd
='/bin/file'
10368 lt_cv_deplibs_check_method
='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10371 lt_cv_file_magic_cmd
='/bin/file'
10372 lt_cv_deplibs_check_method
="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10373 lt_cv_file_magic_test_file
=/lib
/libc.so
10376 lt_cv_deplibs_check_method
=pass_all
10379 lt_cv_deplibs_check_method
=pass_all
10384 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
10385 lt_cv_deplibs_check_method
=pass_all
10390 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10391 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10392 file_magic_cmd
=$lt_cv_file_magic_cmd
10393 deplibs_check_method
=$lt_cv_deplibs_check_method
10394 test -z "$deplibs_check_method" && deplibs_check_method
=unknown
10399 # If no C compiler was specified, use CC.
10402 # If no C compiler flags were specified, use CFLAGS.
10403 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
10405 # Allow CC to be a program name with arguments.
10408 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10409 if test "${enable_libtool_lock+set}" = set; then
10410 enableval
="$enable_libtool_lock"
10413 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
10415 # Some flags need to be propagated to the compiler or linker for good
10419 # Find out which ABI we are using.
10420 echo 'int i;' > conftest.
$ac_ext
10421 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10422 (eval $ac_compile) 2>&5
10424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10425 (exit $ac_status); }; then
10426 case `/usr/bin/file conftest.$ac_objext` in
10428 HPUX_IA64_MODE
="32"
10431 HPUX_IA64_MODE
="64"
10438 # Find out which ABI we are using.
10439 echo '#line 10439 "configure"' > conftest.
$ac_ext
10440 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10441 (eval $ac_compile) 2>&5
10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); }; then
10445 if test "$lt_cv_prog_gnu_ld" = yes; then
10446 case `/usr/bin/file conftest.$ac_objext` in
10448 LD
="${LD-ld} -melf32bsmip"
10451 LD
="${LD-ld} -melf32bmipn32"
10454 LD
="${LD-ld} -melf64bmip"
10458 case `/usr/bin/file conftest.$ac_objext` in
10474 x86_64-
*kfreebsd
*-gnu|x86_64-
*linux
*|ppc
*-*linux
*|powerpc
*-*linux
*| \
10475 s390
*-*linux
*|sparc
*-*linux
*)
10476 # Find out which ABI we are using.
10477 echo 'int i;' > conftest.
$ac_ext
10478 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10479 (eval $ac_compile) 2>&5
10481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10482 (exit $ac_status); }; then
10483 case `/usr/bin/file conftest.o` in
10486 x86_64-
*kfreebsd
*-gnu)
10487 LD
="${LD-ld} -m elf_i386_fbsd"
10490 LD
="${LD-ld} -m elf_i386"
10492 ppc64-
*linux
*|powerpc64-
*linux
*)
10493 LD
="${LD-ld} -m elf32ppclinux"
10496 LD
="${LD-ld} -m elf_s390"
10499 LD
="${LD-ld} -m elf32_sparc"
10505 x86_64-
*kfreebsd
*-gnu)
10506 LD
="${LD-ld} -m elf_x86_64_fbsd"
10509 LD
="${LD-ld} -m elf_x86_64"
10511 ppc
*-*linux
*|powerpc
*-*linux
*)
10512 LD
="${LD-ld} -m elf64ppc"
10515 LD
="${LD-ld} -m elf64_s390"
10518 LD
="${LD-ld} -m elf64_sparc"
10528 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10529 SAVE_CFLAGS
="$CFLAGS"
10530 CFLAGS
="$CFLAGS -belf"
10531 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10532 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10533 if test "${lt_cv_cc_needs_belf+set}" = set; then
10534 echo $ECHO_N "(cached) $ECHO_C" >&6
10537 ac_cpp
='$CPP $CPPFLAGS'
10538 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10539 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10540 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10542 cat >conftest.
$ac_ext <<_ACEOF
10545 cat confdefs.h
>>conftest.
$ac_ext
10546 cat >>conftest.
$ac_ext <<_ACEOF
10547 /* end confdefs.h. */
10557 rm -f conftest.
$ac_objext conftest
$ac_exeext
10558 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10559 (eval $ac_link) 2>conftest.er1
10561 grep -v '^ *+' conftest.er1
>conftest.err
10563 cat conftest.err
>&5
10564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10565 (exit $ac_status); } &&
10566 { ac_try
='test -z "$ac_c_werror_flag"
10567 || test ! -s conftest.err'
10568 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10569 (eval $ac_try) 2>&5
10571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10572 (exit $ac_status); }; } &&
10573 { ac_try
='test -s conftest$ac_exeext'
10574 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10575 (eval $ac_try) 2>&5
10577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10578 (exit $ac_status); }; }; then
10579 lt_cv_cc_needs_belf
=yes
10581 echo "$as_me: failed program was:" >&5
10582 sed 's/^/| /' conftest.
$ac_ext >&5
10584 lt_cv_cc_needs_belf
=no
10586 rm -f conftest.err conftest.
$ac_objext \
10587 conftest
$ac_exeext conftest.
$ac_ext
10589 ac_cpp
='$CPP $CPPFLAGS'
10590 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10591 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10592 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
10595 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10596 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10597 if test x
"$lt_cv_cc_needs_belf" != x
"yes"; then
10598 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10599 CFLAGS
="$SAVE_CFLAGS"
10603 # Find out which ABI we are using.
10604 echo 'int i;' > conftest.
$ac_ext
10605 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10606 (eval $ac_compile) 2>&5
10608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10609 (exit $ac_status); }; then
10610 case `/usr/bin/file conftest.o` in
10612 case $lt_cv_prog_gnu_ld in
10613 yes*) LD
="${LD-ld} -m elf64_sparc" ;;
10614 *) LD
="${LD-ld} -64" ;;
10622 *-*-cygwin* |
*-*-mingw* |
*-*-pw32*)
10623 if test -n "$ac_tool_prefix"; then
10624 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10625 set dummy
${ac_tool_prefix}dlltool
; ac_word
=$2
10626 echo "$as_me:$LINENO: checking for $ac_word" >&5
10627 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10628 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
10629 echo $ECHO_N "(cached) $ECHO_C" >&6
10631 if test -n "$DLLTOOL"; then
10632 ac_cv_prog_DLLTOOL
="$DLLTOOL" # Let the user override the test.
10634 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10635 for as_dir
in $PATH
10638 test -z "$as_dir" && as_dir
=.
10639 for ac_exec_ext
in '' $ac_executable_extensions; do
10640 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10641 ac_cv_prog_DLLTOOL
="${ac_tool_prefix}dlltool"
10642 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10650 DLLTOOL
=$ac_cv_prog_DLLTOOL
10651 if test -n "$DLLTOOL"; then
10652 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
10653 echo "${ECHO_T}$DLLTOOL" >&6
10655 echo "$as_me:$LINENO: result: no" >&5
10656 echo "${ECHO_T}no" >&6
10660 if test -z "$ac_cv_prog_DLLTOOL"; then
10661 ac_ct_DLLTOOL
=$DLLTOOL
10662 # Extract the first word of "dlltool", so it can be a program name with args.
10663 set dummy dlltool
; ac_word
=$2
10664 echo "$as_me:$LINENO: checking for $ac_word" >&5
10665 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10666 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
10667 echo $ECHO_N "(cached) $ECHO_C" >&6
10669 if test -n "$ac_ct_DLLTOOL"; then
10670 ac_cv_prog_ac_ct_DLLTOOL
="$ac_ct_DLLTOOL" # Let the user override the test.
10672 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10673 for as_dir
in $PATH
10676 test -z "$as_dir" && as_dir
=.
10677 for ac_exec_ext
in '' $ac_executable_extensions; do
10678 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10679 ac_cv_prog_ac_ct_DLLTOOL
="dlltool"
10680 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10686 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL
="false"
10689 ac_ct_DLLTOOL
=$ac_cv_prog_ac_ct_DLLTOOL
10690 if test -n "$ac_ct_DLLTOOL"; then
10691 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
10692 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
10694 echo "$as_me:$LINENO: result: no" >&5
10695 echo "${ECHO_T}no" >&6
10698 DLLTOOL
=$ac_ct_DLLTOOL
10700 DLLTOOL
="$ac_cv_prog_DLLTOOL"
10703 if test -n "$ac_tool_prefix"; then
10704 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10705 set dummy
${ac_tool_prefix}as
; ac_word
=$2
10706 echo "$as_me:$LINENO: checking for $ac_word" >&5
10707 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10708 if test "${ac_cv_prog_AS+set}" = set; then
10709 echo $ECHO_N "(cached) $ECHO_C" >&6
10711 if test -n "$AS"; then
10712 ac_cv_prog_AS
="$AS" # Let the user override the test.
10714 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10715 for as_dir
in $PATH
10718 test -z "$as_dir" && as_dir
=.
10719 for ac_exec_ext
in '' $ac_executable_extensions; do
10720 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10721 ac_cv_prog_AS
="${ac_tool_prefix}as"
10722 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10731 if test -n "$AS"; then
10732 echo "$as_me:$LINENO: result: $AS" >&5
10733 echo "${ECHO_T}$AS" >&6
10735 echo "$as_me:$LINENO: result: no" >&5
10736 echo "${ECHO_T}no" >&6
10740 if test -z "$ac_cv_prog_AS"; then
10742 # Extract the first word of "as", so it can be a program name with args.
10743 set dummy as
; ac_word
=$2
10744 echo "$as_me:$LINENO: checking for $ac_word" >&5
10745 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10746 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
10747 echo $ECHO_N "(cached) $ECHO_C" >&6
10749 if test -n "$ac_ct_AS"; then
10750 ac_cv_prog_ac_ct_AS
="$ac_ct_AS" # Let the user override the test.
10752 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10753 for as_dir
in $PATH
10756 test -z "$as_dir" && as_dir
=.
10757 for ac_exec_ext
in '' $ac_executable_extensions; do
10758 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10759 ac_cv_prog_ac_ct_AS
="as"
10760 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10766 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS
="false"
10769 ac_ct_AS
=$ac_cv_prog_ac_ct_AS
10770 if test -n "$ac_ct_AS"; then
10771 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
10772 echo "${ECHO_T}$ac_ct_AS" >&6
10774 echo "$as_me:$LINENO: result: no" >&5
10775 echo "${ECHO_T}no" >&6
10780 AS
="$ac_cv_prog_AS"
10783 if test -n "$ac_tool_prefix"; then
10784 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10785 set dummy
${ac_tool_prefix}objdump
; ac_word
=$2
10786 echo "$as_me:$LINENO: checking for $ac_word" >&5
10787 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10788 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
10789 echo $ECHO_N "(cached) $ECHO_C" >&6
10791 if test -n "$OBJDUMP"; then
10792 ac_cv_prog_OBJDUMP
="$OBJDUMP" # Let the user override the test.
10794 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10795 for as_dir
in $PATH
10798 test -z "$as_dir" && as_dir
=.
10799 for ac_exec_ext
in '' $ac_executable_extensions; do
10800 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10801 ac_cv_prog_OBJDUMP
="${ac_tool_prefix}objdump"
10802 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10810 OBJDUMP
=$ac_cv_prog_OBJDUMP
10811 if test -n "$OBJDUMP"; then
10812 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
10813 echo "${ECHO_T}$OBJDUMP" >&6
10815 echo "$as_me:$LINENO: result: no" >&5
10816 echo "${ECHO_T}no" >&6
10820 if test -z "$ac_cv_prog_OBJDUMP"; then
10821 ac_ct_OBJDUMP
=$OBJDUMP
10822 # Extract the first word of "objdump", so it can be a program name with args.
10823 set dummy objdump
; ac_word
=$2
10824 echo "$as_me:$LINENO: checking for $ac_word" >&5
10825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10826 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
10827 echo $ECHO_N "(cached) $ECHO_C" >&6
10829 if test -n "$ac_ct_OBJDUMP"; then
10830 ac_cv_prog_ac_ct_OBJDUMP
="$ac_ct_OBJDUMP" # Let the user override the test.
10832 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10833 for as_dir
in $PATH
10836 test -z "$as_dir" && as_dir
=.
10837 for ac_exec_ext
in '' $ac_executable_extensions; do
10838 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10839 ac_cv_prog_ac_ct_OBJDUMP
="objdump"
10840 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10846 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP
="false"
10849 ac_ct_OBJDUMP
=$ac_cv_prog_ac_ct_OBJDUMP
10850 if test -n "$ac_ct_OBJDUMP"; then
10851 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
10852 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
10854 echo "$as_me:$LINENO: result: no" >&5
10855 echo "${ECHO_T}no" >&6
10858 OBJDUMP
=$ac_ct_OBJDUMP
10860 OBJDUMP
="$ac_cv_prog_OBJDUMP"
10867 need_locks
="$enable_libtool_lock"
10871 for ac_header
in dlfcn.h
10873 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10874 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10875 echo "$as_me:$LINENO: checking for $ac_header" >&5
10876 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10877 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10878 echo $ECHO_N "(cached) $ECHO_C" >&6
10880 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10881 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10883 # Is the header compilable?
10884 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10885 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10886 cat >conftest.
$ac_ext <<_ACEOF
10889 cat confdefs.h
>>conftest.
$ac_ext
10890 cat >>conftest.
$ac_ext <<_ACEOF
10891 /* end confdefs.h. */
10892 $ac_includes_default
10893 #include <$ac_header>
10895 rm -f conftest.
$ac_objext
10896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10897 (eval $ac_compile) 2>conftest.er1
10899 grep -v '^ *+' conftest.er1
>conftest.err
10901 cat conftest.err
>&5
10902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903 (exit $ac_status); } &&
10904 { ac_try
='test -z "$ac_c_werror_flag"
10905 || test ! -s conftest.err'
10906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10907 (eval $ac_try) 2>&5
10909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10910 (exit $ac_status); }; } &&
10911 { ac_try
='test -s conftest.$ac_objext'
10912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10913 (eval $ac_try) 2>&5
10915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10916 (exit $ac_status); }; }; then
10917 ac_header_compiler
=yes
10919 echo "$as_me: failed program was:" >&5
10920 sed 's/^/| /' conftest.
$ac_ext >&5
10922 ac_header_compiler
=no
10924 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
10925 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10926 echo "${ECHO_T}$ac_header_compiler" >&6
10928 # Is the header present?
10929 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10930 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10931 cat >conftest.
$ac_ext <<_ACEOF
10934 cat confdefs.h
>>conftest.
$ac_ext
10935 cat >>conftest.
$ac_ext <<_ACEOF
10936 /* end confdefs.h. */
10937 #include <$ac_header>
10939 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10940 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
10942 grep -v '^ *+' conftest.er1
>conftest.err
10944 cat conftest.err
>&5
10945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10946 (exit $ac_status); } >/dev
/null
; then
10947 if test -s conftest.err
; then
10948 ac_cpp_err
=$ac_c_preproc_warn_flag
10949 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
10956 if test -z "$ac_cpp_err"; then
10957 ac_header_preproc
=yes
10959 echo "$as_me: failed program was:" >&5
10960 sed 's/^/| /' conftest.
$ac_ext >&5
10962 ac_header_preproc
=no
10964 rm -f conftest.err conftest.
$ac_ext
10965 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10966 echo "${ECHO_T}$ac_header_preproc" >&6
10968 # So? What about this header?
10969 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10971 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10972 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10974 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10975 ac_header_preproc
=yes
10978 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10979 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10980 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10981 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10982 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10983 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10984 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10985 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10987 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10988 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10989 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10992 ## ---------------------------------- ##
10993 ## Report this to gmp-bugs@gmplib.org ##
10994 ## ---------------------------------- ##
10997 sed "s/^/$as_me: WARNING: /" >&2
11000 echo "$as_me:$LINENO: checking for $ac_header" >&5
11001 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
11002 if eval "test \"\${$as_ac_Header+set}\" = set"; then
11003 echo $ECHO_N "(cached) $ECHO_C" >&6
11005 eval "$as_ac_Header=\$ac_header_preproc"
11007 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
11008 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
11011 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11012 cat >>confdefs.h
<<_ACEOF
11013 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11022 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
11023 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
11024 (test "X$CXX" != "Xg++"))) ; then
11026 ac_cpp
='$CXXCPP $CPPFLAGS'
11027 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11028 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11029 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
11030 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
11031 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
11032 if test -z "$CXXCPP"; then
11033 if test "${ac_cv_prog_CXXCPP+set}" = set; then
11034 echo $ECHO_N "(cached) $ECHO_C" >&6
11036 # Double quotes because CXXCPP needs to be expanded
11037 for CXXCPP
in "$CXX -E" "/lib/cpp"
11039 ac_preproc_ok
=false
11040 for ac_cxx_preproc_warn_flag
in '' yes
11042 # Use a header file that comes with gcc, so configuring glibc
11043 # with a fresh cross-compiler works.
11044 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11045 # <limits.h> exists even on freestanding compilers.
11046 # On the NeXT, cc -E runs the code through the compiler's parser,
11047 # not just through cpp. "Syntax error" is here to catch this case.
11048 cat >conftest.
$ac_ext <<_ACEOF
11051 cat confdefs.h
>>conftest.
$ac_ext
11052 cat >>conftest.
$ac_ext <<_ACEOF
11053 /* end confdefs.h. */
11055 # include <limits.h>
11057 # include <assert.h>
11061 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11062 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11064 grep -v '^ *+' conftest.er1
>conftest.err
11066 cat conftest.err
>&5
11067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11068 (exit $ac_status); } >/dev
/null
; then
11069 if test -s conftest.err
; then
11070 ac_cpp_err
=$ac_cxx_preproc_warn_flag
11071 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
11078 if test -z "$ac_cpp_err"; then
11081 echo "$as_me: failed program was:" >&5
11082 sed 's/^/| /' conftest.
$ac_ext >&5
11084 # Broken: fails on valid input.
11087 rm -f conftest.err conftest.
$ac_ext
11089 # OK, works on sane cases. Now check whether non-existent headers
11090 # can be detected and how.
11091 cat >conftest.
$ac_ext <<_ACEOF
11094 cat confdefs.h
>>conftest.
$ac_ext
11095 cat >>conftest.
$ac_ext <<_ACEOF
11096 /* end confdefs.h. */
11097 #include <ac_nonexistent.h>
11099 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11100 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11102 grep -v '^ *+' conftest.er1
>conftest.err
11104 cat conftest.err
>&5
11105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11106 (exit $ac_status); } >/dev
/null
; then
11107 if test -s conftest.err
; then
11108 ac_cpp_err
=$ac_cxx_preproc_warn_flag
11109 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
11116 if test -z "$ac_cpp_err"; then
11117 # Broken: success on invalid input.
11120 echo "$as_me: failed program was:" >&5
11121 sed 's/^/| /' conftest.
$ac_ext >&5
11123 # Passes both tests.
11127 rm -f conftest.err conftest.
$ac_ext
11130 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11131 rm -f conftest.err conftest.
$ac_ext
11132 if $ac_preproc_ok; then
11137 ac_cv_prog_CXXCPP
=$CXXCPP
11140 CXXCPP
=$ac_cv_prog_CXXCPP
11142 ac_cv_prog_CXXCPP
=$CXXCPP
11144 echo "$as_me:$LINENO: result: $CXXCPP" >&5
11145 echo "${ECHO_T}$CXXCPP" >&6
11146 ac_preproc_ok
=false
11147 for ac_cxx_preproc_warn_flag
in '' yes
11149 # Use a header file that comes with gcc, so configuring glibc
11150 # with a fresh cross-compiler works.
11151 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11152 # <limits.h> exists even on freestanding compilers.
11153 # On the NeXT, cc -E runs the code through the compiler's parser,
11154 # not just through cpp. "Syntax error" is here to catch this case.
11155 cat >conftest.
$ac_ext <<_ACEOF
11158 cat confdefs.h
>>conftest.
$ac_ext
11159 cat >>conftest.
$ac_ext <<_ACEOF
11160 /* end confdefs.h. */
11162 # include <limits.h>
11164 # include <assert.h>
11168 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11169 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11171 grep -v '^ *+' conftest.er1
>conftest.err
11173 cat conftest.err
>&5
11174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11175 (exit $ac_status); } >/dev
/null
; then
11176 if test -s conftest.err
; then
11177 ac_cpp_err
=$ac_cxx_preproc_warn_flag
11178 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
11185 if test -z "$ac_cpp_err"; then
11188 echo "$as_me: failed program was:" >&5
11189 sed 's/^/| /' conftest.
$ac_ext >&5
11191 # Broken: fails on valid input.
11194 rm -f conftest.err conftest.
$ac_ext
11196 # OK, works on sane cases. Now check whether non-existent headers
11197 # can be detected and how.
11198 cat >conftest.
$ac_ext <<_ACEOF
11201 cat confdefs.h
>>conftest.
$ac_ext
11202 cat >>conftest.
$ac_ext <<_ACEOF
11203 /* end confdefs.h. */
11204 #include <ac_nonexistent.h>
11206 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
11207 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
11209 grep -v '^ *+' conftest.er1
>conftest.err
11211 cat conftest.err
>&5
11212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11213 (exit $ac_status); } >/dev
/null
; then
11214 if test -s conftest.err
; then
11215 ac_cpp_err
=$ac_cxx_preproc_warn_flag
11216 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
11223 if test -z "$ac_cpp_err"; then
11224 # Broken: success on invalid input.
11227 echo "$as_me: failed program was:" >&5
11228 sed 's/^/| /' conftest.
$ac_ext >&5
11230 # Passes both tests.
11234 rm -f conftest.err conftest.
$ac_ext
11237 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
11238 rm -f conftest.err conftest.
$ac_ext
11239 if $ac_preproc_ok; then
11242 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11243 See \`config.log' for more details." >&5
11244 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
11245 See \`config.log' for more details." >&2;}
11246 { (exit 1); exit 1; }; }
11250 ac_cpp
='$CXXCPP $CPPFLAGS'
11251 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11252 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11253 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
11260 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
11262 # find the maximum length of command line arguments
11263 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
11264 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
11265 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
11266 echo $ECHO_N "(cached) $ECHO_C" >&6
11273 # On DJGPP, this test can blow up pretty badly due to problems in libc
11274 # (any single argument exceeding 2000 bytes causes a buffer overrun
11275 # during glob expansion). Even if it were fixed, the result of this
11276 # check would be larger than it should be.
11277 lt_cv_sys_max_cmd_len
=12288; # 12K is about right
11281 # Under GNU Hurd, this test is not required because there is
11282 # no limit to the length of command line arguments.
11283 # Libtool will interpret -1 as no limit whatsoever
11284 lt_cv_sys_max_cmd_len
=-1;
11288 # On Win9x/ME, this test blows up -- it succeeds, but takes
11289 # about 5 minutes as the teststring grows exponentially.
11290 # Worse, since 9x/ME are not pre-emptively multitasking,
11291 # you end up with a "frozen" computer, even though with patience
11292 # the test eventually succeeds (with a max line length of 256k).
11293 # Instead, let's just punt: use the minimum linelength reported by
11294 # all of the supported platforms: 8192 (on NT/2K/XP).
11295 lt_cv_sys_max_cmd_len
=8192;
11299 # On AmigaOS with pdksh, this test takes hours, literally.
11300 # So we just punt and use a minimum line length of 8192.
11301 lt_cv_sys_max_cmd_len
=8192;
11304 netbsd
* | freebsd
* | openbsd
* | darwin
* | dragonfly
*)
11305 # This has been around since 386BSD, at least. Likely further.
11306 if test -x /sbin
/sysctl
; then
11307 lt_cv_sys_max_cmd_len
=`/sbin/sysctl -n kern.argmax`
11308 elif test -x /usr
/sbin
/sysctl
; then
11309 lt_cv_sys_max_cmd_len
=`/usr/sbin/sysctl -n kern.argmax`
11311 lt_cv_sys_max_cmd_len
=65536 # usable default for all BSDs
11313 # And add a safety zone
11314 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
11315 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
11319 # We know the value 262144 and hardcode it with a safety zone (like BSD)
11320 lt_cv_sys_max_cmd_len
=196608
11324 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
11325 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
11326 # nice to cause kernel panics so lets avoid the loop below.
11327 # First set a reasonable default.
11328 lt_cv_sys_max_cmd_len
=16384
11330 if test -x /sbin
/sysconfig
; then
11331 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
11332 *1*) lt_cv_sys_max_cmd_len
=-1 ;;
11337 lt_cv_sys_max_cmd_len
=102400
11339 sysv5
* | sco5v6
* | sysv4.2uw2
*)
11340 kargmax
=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
11341 if test -n "$kargmax"; then
11342 lt_cv_sys_max_cmd_len
=`echo $kargmax | sed 's/.*[ ]//'`
11344 lt_cv_sys_max_cmd_len
=32768
11348 lt_cv_sys_max_cmd_len
=`(getconf ARG_MAX) 2> /dev/null`
11349 if test -n "$lt_cv_sys_max_cmd_len"; then
11350 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 4`
11351 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \* 3`
11353 SHELL
=${SHELL-${CONFIG_SHELL-/bin/sh}}
11354 while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
11355 = "XX$teststring") >/dev
/null
2>&1 &&
11356 new_result
=`expr "X$teststring" : ".*" 2>&1` &&
11357 lt_cv_sys_max_cmd_len
=$new_result &&
11358 test $i != 17 # 1/2 MB should be enough
11361 teststring
=$teststring$teststring
11364 # Add a significant safety factor because C++ compilers can tack on massive
11365 # amounts of additional arguments before passing them to the linker.
11366 # It appears as though 1/2 is a usable value.
11367 lt_cv_sys_max_cmd_len
=`expr $lt_cv_sys_max_cmd_len \/ 2`
11374 if test -n $lt_cv_sys_max_cmd_len ; then
11375 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
11376 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
11378 echo "$as_me:$LINENO: result: none" >&5
11379 echo "${ECHO_T}none" >&6
11386 # Check for command to grab the raw symbol name followed by C symbol from nm.
11387 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
11388 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
11389 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
11390 echo $ECHO_N "(cached) $ECHO_C" >&6
11393 # These are sane defaults that work on at least a few old systems.
11394 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
11396 # Character class describing NM global symbol codes.
11397 symcode
='[BCDEGRST]'
11399 # Regexp to match symbols that can be accessed directly from C.
11400 sympat
='\([_A-Za-z][_A-Za-z0-9]*\)'
11402 # Transform an extracted symbol line into a proper C declaration
11403 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
11405 # Transform an extracted symbol line into symbol name and symbol address
11406 lt_cv_sys_global_symbol_to_c_name_address
="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
11408 # Define system-specific variables.
11413 cygwin
* | mingw
* | pw32
*)
11414 symcode
='[ABCDGISTW]'
11416 hpux
*) # Its linker distinguishes data from code symbols
11417 if test "$host_cpu" = ia64
; then
11418 symcode
='[ABCDEGRST]'
11420 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11421 lt_cv_sys_global_symbol_to_c_name_address
="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
11423 linux
* | k
*bsd
*-gnu)
11424 if test "$host_cpu" = ia64
; then
11425 symcode
='[ABCDGIRSTW]'
11426 lt_cv_sys_global_symbol_to_cdecl
="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
11427 lt_cv_sys_global_symbol_to_c_name_address
="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
11430 irix
* | nonstopux
*)
11431 symcode
='[BCDEGRST]'
11434 symcode
='[BCDEGQRST]'
11445 sysv5
* | sco5v6
* | unixware
* | OpenUNIX
*)
11453 # Handle CRLF in mingw tool chain
11457 opt_cr
=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
11461 # If we're using GNU nm, then use its standard symbol codes.
11462 case `$NM -V 2>&1` in
11463 *GNU
* |
*'with BFD'*)
11464 symcode
='[ABCDGIRSTW]' ;;
11467 # Try without a prefix undercore, then with it.
11468 for ac_symprfx
in "" "_"; do
11470 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
11471 symxfrm
="\\1 $ac_symprfx\\2 \\2"
11473 # Write the raw and C identifiers.
11474 lt_cv_sys_global_symbol_pipe
="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
11476 # Check to see that the pipe works correctly.
11480 cat > conftest.
$ac_ext <<EOF
11485 void nm_test_func(){}
11489 int main(){nm_test_var='a';nm_test_func();return(0);}
11492 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11493 (eval $ac_compile) 2>&5
11495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11496 (exit $ac_status); }; then
11497 # Now try to grab the symbols.
11499 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11500 (eval $NM conftest.
$ac_objext \|
$lt_cv_sys_global_symbol_pipe \
> $nlist) 2>&5
11502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11503 (exit $ac_status); } && test -s "$nlist"; then
11504 # Try sorting and uniquifying the output.
11505 if sort "$nlist" |
uniq > "$nlist"T
; then
11506 mv -f "$nlist"T
"$nlist"
11511 # Make sure that we snagged all the symbols we need.
11512 if grep ' nm_test_var$' "$nlist" >/dev
/null
; then
11513 if grep ' nm_test_func$' "$nlist" >/dev
/null
; then
11514 cat <<EOF > conftest.$ac_ext
11520 # Now generate the symbol file.
11521 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11523 cat <<EOF >> conftest.$ac_ext
11524 #if defined (__STDC__) && __STDC__
11525 # define lt_ptr_t void *
11527 # define lt_ptr_t char *
11531 /* The mapping between symbol names and symbols. */
11536 lt_preloaded_symbols[] =
11539 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" |
grep -v main
>> conftest.
$ac_ext
11540 cat <<\EOF
>> conftest.
$ac_ext
11548 # Now try linking the two files.
11549 mv conftest.
$ac_objext conftstm.
$ac_objext
11550 lt_save_LIBS
="$LIBS"
11551 lt_save_CFLAGS
="$CFLAGS"
11552 LIBS
="conftstm.$ac_objext"
11553 CFLAGS
="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11555 (eval $ac_link) 2>&5
11557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11558 (exit $ac_status); } && test -s conftest
${ac_exeext}; then
11561 LIBS
="$lt_save_LIBS"
11562 CFLAGS
="$lt_save_CFLAGS"
11564 echo "cannot find nm_test_func in $nlist" >&5
11567 echo "cannot find nm_test_var in $nlist" >&5
11570 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11573 echo "$progname: failed program was:" >&5
11574 cat conftest.
$ac_ext >&5
11576 rm -f conftest
* conftst
*
11578 # Do not use the global_symbol_pipe unless it works.
11579 if test "$pipe_works" = yes; then
11582 lt_cv_sys_global_symbol_pipe
=
11588 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11589 lt_cv_sys_global_symbol_to_cdecl
=
11591 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11592 echo "$as_me:$LINENO: result: failed" >&5
11593 echo "${ECHO_T}failed" >&6
11595 echo "$as_me:$LINENO: result: ok" >&5
11596 echo "${ECHO_T}ok" >&6
11599 echo "$as_me:$LINENO: checking for objdir" >&5
11600 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11601 if test "${lt_cv_objdir+set}" = set; then
11602 echo $ECHO_N "(cached) $ECHO_C" >&6
11604 rm -f .libs
2>/dev
/null
11605 mkdir .libs
2>/dev
/null
11606 if test -d .libs
; then
11609 # MS-DOS does not allow filenames that begin with a dot.
11612 rmdir .libs
2>/dev
/null
11614 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11615 echo "${ECHO_T}$lt_cv_objdir" >&6
11616 objdir
=$lt_cv_objdir
11624 # AIX sometimes has problems with the GCC collect2 program. For some
11625 # reason, if we set the COLLECT_NAMES environment variable, the problems
11626 # vanish in a puff of smoke.
11627 if test "X${COLLECT_NAMES+set}" != Xset
; then
11629 export COLLECT_NAMES
11634 # Sed substitution that helps us do robust quoting. It backslashifies
11635 # metacharacters that are still active within double-quoted strings.
11636 Xsed
='sed -e 1s/^X//'
11637 sed_quote_subst
='s/\([\\"\\`$\\\\]\)/\\\1/g'
11639 # Same as above, but do not quote variable references.
11640 double_quote_subst
='s/\([\\"\\`\\\\]\)/\\\1/g'
11642 # Sed substitution to delay expansion of an escaped shell variable in a
11643 # double_quote_subst'ed string.
11644 delay_variable_subst
='s/\\\\\\\\\\\$/\\\\\\$/g'
11646 # Sed substitution to avoid accidental globbing in evaled expressions
11647 no_glob_subst
='s/\*/\\\*/g'
11652 # Global variables:
11653 default_ofile
=libtool
11654 can_build_shared
=yes
11656 # All known linkers require a `.a' archive for static linking (except MSVC,
11657 # which needs '.lib').
11659 ltmain
="$ac_aux_dir/ltmain.sh"
11660 ofile
="$default_ofile"
11661 with_gnu_ld
="$lt_cv_prog_gnu_ld"
11663 if test -n "$ac_tool_prefix"; then
11664 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11665 set dummy
${ac_tool_prefix}ar; ac_word
=$2
11666 echo "$as_me:$LINENO: checking for $ac_word" >&5
11667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11668 if test "${ac_cv_prog_AR+set}" = set; then
11669 echo $ECHO_N "(cached) $ECHO_C" >&6
11671 if test -n "$AR"; then
11672 ac_cv_prog_AR
="$AR" # Let the user override the test.
11674 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11675 for as_dir
in $PATH
11678 test -z "$as_dir" && as_dir
=.
11679 for ac_exec_ext
in '' $ac_executable_extensions; do
11680 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11681 ac_cv_prog_AR
="${ac_tool_prefix}ar"
11682 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11691 if test -n "$AR"; then
11692 echo "$as_me:$LINENO: result: $AR" >&5
11693 echo "${ECHO_T}$AR" >&6
11695 echo "$as_me:$LINENO: result: no" >&5
11696 echo "${ECHO_T}no" >&6
11700 if test -z "$ac_cv_prog_AR"; then
11702 # Extract the first word of "ar", so it can be a program name with args.
11703 set dummy
ar; ac_word
=$2
11704 echo "$as_me:$LINENO: checking for $ac_word" >&5
11705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11706 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11707 echo $ECHO_N "(cached) $ECHO_C" >&6
11709 if test -n "$ac_ct_AR"; then
11710 ac_cv_prog_ac_ct_AR
="$ac_ct_AR" # Let the user override the test.
11712 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11713 for as_dir
in $PATH
11716 test -z "$as_dir" && as_dir
=.
11717 for ac_exec_ext
in '' $ac_executable_extensions; do
11718 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11719 ac_cv_prog_ac_ct_AR
="ar"
11720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11726 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR
="false"
11729 ac_ct_AR
=$ac_cv_prog_ac_ct_AR
11730 if test -n "$ac_ct_AR"; then
11731 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11732 echo "${ECHO_T}$ac_ct_AR" >&6
11734 echo "$as_me:$LINENO: result: no" >&5
11735 echo "${ECHO_T}no" >&6
11740 AR
="$ac_cv_prog_AR"
11743 if test -n "$ac_tool_prefix"; then
11744 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11745 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
11746 echo "$as_me:$LINENO: checking for $ac_word" >&5
11747 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11748 if test "${ac_cv_prog_RANLIB+set}" = set; then
11749 echo $ECHO_N "(cached) $ECHO_C" >&6
11751 if test -n "$RANLIB"; then
11752 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
11754 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11755 for as_dir
in $PATH
11758 test -z "$as_dir" && as_dir
=.
11759 for ac_exec_ext
in '' $ac_executable_extensions; do
11760 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11761 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
11762 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11770 RANLIB
=$ac_cv_prog_RANLIB
11771 if test -n "$RANLIB"; then
11772 echo "$as_me:$LINENO: result: $RANLIB" >&5
11773 echo "${ECHO_T}$RANLIB" >&6
11775 echo "$as_me:$LINENO: result: no" >&5
11776 echo "${ECHO_T}no" >&6
11780 if test -z "$ac_cv_prog_RANLIB"; then
11781 ac_ct_RANLIB
=$RANLIB
11782 # Extract the first word of "ranlib", so it can be a program name with args.
11783 set dummy ranlib
; ac_word
=$2
11784 echo "$as_me:$LINENO: checking for $ac_word" >&5
11785 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11786 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11787 echo $ECHO_N "(cached) $ECHO_C" >&6
11789 if test -n "$ac_ct_RANLIB"; then
11790 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
11792 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11793 for as_dir
in $PATH
11796 test -z "$as_dir" && as_dir
=.
11797 for ac_exec_ext
in '' $ac_executable_extensions; do
11798 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11799 ac_cv_prog_ac_ct_RANLIB
="ranlib"
11800 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11806 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
11809 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
11810 if test -n "$ac_ct_RANLIB"; then
11811 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11812 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11814 echo "$as_me:$LINENO: result: no" >&5
11815 echo "${ECHO_T}no" >&6
11818 RANLIB
=$ac_ct_RANLIB
11820 RANLIB
="$ac_cv_prog_RANLIB"
11823 if test -n "$ac_tool_prefix"; then
11824 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11825 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
11826 echo "$as_me:$LINENO: checking for $ac_word" >&5
11827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11828 if test "${ac_cv_prog_STRIP+set}" = set; then
11829 echo $ECHO_N "(cached) $ECHO_C" >&6
11831 if test -n "$STRIP"; then
11832 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
11834 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11835 for as_dir
in $PATH
11838 test -z "$as_dir" && as_dir
=.
11839 for ac_exec_ext
in '' $ac_executable_extensions; do
11840 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11841 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
11842 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11850 STRIP
=$ac_cv_prog_STRIP
11851 if test -n "$STRIP"; then
11852 echo "$as_me:$LINENO: result: $STRIP" >&5
11853 echo "${ECHO_T}$STRIP" >&6
11855 echo "$as_me:$LINENO: result: no" >&5
11856 echo "${ECHO_T}no" >&6
11860 if test -z "$ac_cv_prog_STRIP"; then
11862 # Extract the first word of "strip", so it can be a program name with args.
11863 set dummy strip
; ac_word
=$2
11864 echo "$as_me:$LINENO: checking for $ac_word" >&5
11865 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11866 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11867 echo $ECHO_N "(cached) $ECHO_C" >&6
11869 if test -n "$ac_ct_STRIP"; then
11870 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
11872 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
11873 for as_dir
in $PATH
11876 test -z "$as_dir" && as_dir
=.
11877 for ac_exec_ext
in '' $ac_executable_extensions; do
11878 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11879 ac_cv_prog_ac_ct_STRIP
="strip"
11880 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11886 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP
=":"
11889 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
11890 if test -n "$ac_ct_STRIP"; then
11891 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11892 echo "${ECHO_T}$ac_ct_STRIP" >&6
11894 echo "$as_me:$LINENO: result: no" >&5
11895 echo "${ECHO_T}no" >&6
11900 STRIP
="$ac_cv_prog_STRIP"
11905 old_CFLAGS
="$CFLAGS"
11907 # Set sane defaults for various variables
11908 test -z "$AR" && AR
=ar
11909 test -z "$AR_FLAGS" && AR_FLAGS
=cru
11910 test -z "$AS" && AS
=as
11911 test -z "$CC" && CC
=cc
11912 test -z "$LTCC" && LTCC
=$CC
11913 test -z "$LTCFLAGS" && LTCFLAGS
=$CFLAGS
11914 test -z "$DLLTOOL" && DLLTOOL
=dlltool
11915 test -z "$LD" && LD
=ld
11916 test -z "$LN_S" && LN_S
="ln -s"
11917 test -z "$MAGIC_CMD" && MAGIC_CMD
=file
11918 test -z "$NM" && NM
=nm
11919 test -z "$SED" && SED
=sed
11920 test -z "$OBJDUMP" && OBJDUMP
=objdump
11921 test -z "$RANLIB" && RANLIB
=:
11922 test -z "$STRIP" && STRIP
=:
11923 test -z "$ac_objext" && ac_objext
=o
11925 # Determine commands to create old-style static archives.
11926 old_archive_cmds
='$AR $AR_FLAGS $oldlib$oldobjs'
11927 old_postinstall_cmds
='chmod 644 $oldlib'
11928 old_postuninstall_cmds
=
11930 if test -n "$RANLIB"; then
11933 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
11936 old_postinstall_cmds
="$old_postinstall_cmds~\$RANLIB \$oldlib"
11939 old_archive_cmds
="$old_archive_cmds~\$RANLIB \$oldlib"
11942 for cc_temp
in $compiler""; do
11944 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
11945 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
11950 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
11953 # Only perform the check for file, if the check method requires it
11954 case $deplibs_check_method in
11956 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11957 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11958 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11959 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11960 echo $ECHO_N "(cached) $ECHO_C" >&6
11964 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
11967 lt_save_MAGIC_CMD
="$MAGIC_CMD"
11968 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
11969 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
11970 for ac_dir
in $ac_dummy; do
11972 test -z "$ac_dir" && ac_dir
=.
11973 if test -f $ac_dir/${ac_tool_prefix}file; then
11974 lt_cv_path_MAGIC_CMD
="$ac_dir/${ac_tool_prefix}file"
11975 if test -n "$file_magic_test_file"; then
11976 case $deplibs_check_method in
11978 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
11979 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
11980 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
11981 $EGREP "$file_magic_regex" > /dev
/null
; then
11986 *** Warning: the command libtool uses to detect shared libraries,
11987 *** $file_magic_cmd, produces output that libtool cannot recognize.
11988 *** The result is that libtool may fail to recognize shared libraries
11989 *** as such. This will affect the creation of libtool libraries that
11990 *** depend on shared libraries, but programs linked with such libtool
11991 *** libraries will work regardless of this problem. Nevertheless, you
11992 *** may want to report the problem to your system manager and/or to
11993 *** bug-libtool@gnu.org
12003 MAGIC_CMD
="$lt_save_MAGIC_CMD"
12008 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
12009 if test -n "$MAGIC_CMD"; then
12010 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
12011 echo "${ECHO_T}$MAGIC_CMD" >&6
12013 echo "$as_me:$LINENO: result: no" >&5
12014 echo "${ECHO_T}no" >&6
12017 if test -z "$lt_cv_path_MAGIC_CMD"; then
12018 if test -n "$ac_tool_prefix"; then
12019 echo "$as_me:$LINENO: checking for file" >&5
12020 echo $ECHO_N "checking for file... $ECHO_C" >&6
12021 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
12022 echo $ECHO_N "(cached) $ECHO_C" >&6
12026 lt_cv_path_MAGIC_CMD
="$MAGIC_CMD" # Let the user override the test with a path.
12029 lt_save_MAGIC_CMD
="$MAGIC_CMD"
12030 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
12031 ac_dummy
="/usr/bin$PATH_SEPARATOR$PATH"
12032 for ac_dir
in $ac_dummy; do
12034 test -z "$ac_dir" && ac_dir
=.
12035 if test -f $ac_dir/file; then
12036 lt_cv_path_MAGIC_CMD
="$ac_dir/file"
12037 if test -n "$file_magic_test_file"; then
12038 case $deplibs_check_method in
12040 file_magic_regex
=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
12041 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
12042 if eval $file_magic_cmd \
$file_magic_test_file 2> /dev
/null |
12043 $EGREP "$file_magic_regex" > /dev
/null
; then
12048 *** Warning: the command libtool uses to detect shared libraries,
12049 *** $file_magic_cmd, produces output that libtool cannot recognize.
12050 *** The result is that libtool may fail to recognize shared libraries
12051 *** as such. This will affect the creation of libtool libraries that
12052 *** depend on shared libraries, but programs linked with such libtool
12053 *** libraries will work regardless of this problem. Nevertheless, you
12054 *** may want to report the problem to your system manager and/or to
12055 *** bug-libtool@gnu.org
12065 MAGIC_CMD
="$lt_save_MAGIC_CMD"
12070 MAGIC_CMD
="$lt_cv_path_MAGIC_CMD"
12071 if test -n "$MAGIC_CMD"; then
12072 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
12073 echo "${ECHO_T}$MAGIC_CMD" >&6
12075 echo "$as_me:$LINENO: result: no" >&5
12076 echo "${ECHO_T}no" >&6
12089 enable_win32_dll
=yes
12091 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
12092 if test "${enable_libtool_lock+set}" = set; then
12093 enableval
="$enable_libtool_lock"
12096 test "x$enable_libtool_lock" != xno
&& enable_libtool_lock
=yes
12099 # Check whether --with-pic or --without-pic was given.
12100 if test "${with_pic+set}" = set; then
12101 withval
="$with_pic"
12102 pic_mode
="$withval"
12106 test -z "$pic_mode" && pic_mode
=default
12108 # Use C for the default configuration in the libtool script
12112 ac_cpp
='$CPP $CPPFLAGS'
12113 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12114 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12115 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
12118 # Source file extension for C test sources.
12121 # Object file extension for compiled C test sources.
12125 # Code to be used in simple compile tests
12126 lt_simple_compile_test_code
="int some_variable = 0;"
12128 # Code to be used in simple link tests
12129 lt_simple_link_test_code
='int main(){return(0);}'
12132 # If no C compiler was specified, use CC.
12135 # If no C compiler flags were specified, use CFLAGS.
12136 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
12138 # Allow CC to be a program name with arguments.
12142 # save warnings/boilerplate of simple test code
12143 ac_outfile
=conftest.
$ac_objext
12144 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
12145 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
12146 _lt_compiler_boilerplate
=`cat conftest.err`
12149 ac_outfile
=conftest.
$ac_objext
12150 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
12151 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
12152 _lt_linker_boilerplate
=`cat conftest.err`
12157 lt_prog_compiler_no_builtin_flag
=
12159 if test "$GCC" = yes; then
12160 lt_prog_compiler_no_builtin_flag
=' -fno-builtin'
12163 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
12164 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
12165 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
12166 echo $ECHO_N "(cached) $ECHO_C" >&6
12168 lt_cv_prog_compiler_rtti_exceptions
=no
12169 ac_outfile
=conftest.
$ac_objext
12170 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12171 lt_compiler_flag
="-fno-rtti -fno-exceptions"
12172 # Insert the option either (1) after the last *FLAGS variable, or
12173 # (2) before a word containing "conftest.", or (3) at the end.
12174 # Note that $ac_compile itself does not contain backslashes and begins
12175 # with a dollar sign (not a hyphen), so the echo should work correctly.
12176 # The option is referenced via a variable to avoid confusing sed.
12177 lt_compile
=`echo "$ac_compile" | $SED \
12178 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12179 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12180 -e 's:$: $lt_compiler_flag:'`
12181 (eval echo "\"\$as_me:12181: $lt_compile\"" >&5)
12182 (eval "$lt_compile" 2>conftest.err
)
12184 cat conftest.err
>&5
12185 echo "$as_me:12185: \$? = $ac_status" >&5
12186 if (exit $ac_status) && test -s "$ac_outfile"; then
12187 # The compiler can only warn and ignore the option if not recognized
12188 # So say no if there are warnings other than the usual output.
12189 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
12190 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12191 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
12192 lt_cv_prog_compiler_rtti_exceptions
=yes
12198 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
12199 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
12201 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
12202 lt_prog_compiler_no_builtin_flag
="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
12209 lt_prog_compiler_wl
=
12210 lt_prog_compiler_pic
=
12211 lt_prog_compiler_static
=
12213 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
12214 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
12216 if test "$GCC" = yes; then
12217 lt_prog_compiler_wl
='-Wl,'
12218 lt_prog_compiler_static
='-static'
12222 # All AIX code is PIC.
12223 if test "$host_cpu" = ia64
; then
12224 # AIX 5 now supports IA64 processor
12225 lt_prog_compiler_static
='-Bstatic'
12230 # FIXME: we need at least 68020 code to build shared libraries, but
12231 # adding the `-m68020' flag to GCC prevents building anything better,
12233 lt_prog_compiler_pic
='-m68020 -resident32 -malways-restore-a4'
12236 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
12237 # PIC is the default for these OSes.
12240 mingw
* | cygwin
* | pw32
* | os2
*)
12241 # This hack is so that the source file can tell whether it is being
12242 # built for inclusion in a dll (and should export symbols for example).
12243 # Although the cygwin gcc ignores -fPIC, still need this for old-style
12244 # (--disable-auto-import) libraries
12245 lt_prog_compiler_pic
='-DDLL_EXPORT'
12248 darwin
* | rhapsody
*)
12249 # PIC is the default on this platform
12250 # Common symbols not allowed in MH_DYLIB files
12251 lt_prog_compiler_pic
='-fno-common'
12255 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
12256 # Instead, we relocate shared libraries at runtime.
12260 # Just because we use GCC doesn't mean we suddenly get shared libraries
12261 # on systems that don't support them.
12262 lt_prog_compiler_can_build_shared
=no
12267 if test -d /usr
/nec
; then
12268 lt_prog_compiler_pic
=-Kconform_pic
12273 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12274 # not for PA HP-UX.
12280 lt_prog_compiler_pic
='-fPIC'
12286 lt_prog_compiler_pic
='-fPIC'
12290 # PORTME Check for flag to pass linker flags through the system compiler.
12293 lt_prog_compiler_wl
='-Wl,'
12294 if test "$host_cpu" = ia64
; then
12295 # AIX 5 now supports IA64 processor
12296 lt_prog_compiler_static
='-Bstatic'
12298 lt_prog_compiler_static
='-bnso -bI:/lib/syscalls.exp'
12302 # PIC is the default on this platform
12303 # Common symbols not allowed in MH_DYLIB files
12304 case $cc_basename in
12306 lt_prog_compiler_pic
='-qnocommon'
12307 lt_prog_compiler_wl
='-Wl,'
12312 mingw
* | cygwin
* | pw32
* | os2
*)
12313 # This hack is so that the source file can tell whether it is being
12314 # built for inclusion in a dll (and should export symbols for example).
12315 lt_prog_compiler_pic
='-DDLL_EXPORT'
12318 hpux9
* | hpux10
* | hpux11
*)
12319 lt_prog_compiler_wl
='-Wl,'
12320 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
12321 # not for PA HP-UX.
12327 lt_prog_compiler_pic
='+Z'
12330 # Is there a better lt_prog_compiler_static that works with the bundled CC?
12331 lt_prog_compiler_static
='${wl}-a ${wl}archive'
12334 irix5
* | irix6
* | nonstopux
*)
12335 lt_prog_compiler_wl
='-Wl,'
12336 # PIC (with -KPIC) is the default.
12337 lt_prog_compiler_static
='-non_shared'
12341 lt_prog_compiler_pic
='-KPIC'
12342 lt_prog_compiler_static
='-Bstatic'
12345 linux
* | k
*bsd
*-gnu)
12346 case $cc_basename in
12348 lt_prog_compiler_wl
='-Wl,'
12349 lt_prog_compiler_pic
='-KPIC'
12350 lt_prog_compiler_static
='-static'
12352 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
12353 # Portland Group compilers (*not* the Pentium gcc compiler,
12354 # which looks to be a dead project)
12355 lt_prog_compiler_wl
='-Wl,'
12356 lt_prog_compiler_pic
='-fpic'
12357 lt_prog_compiler_static
='-Bstatic'
12360 lt_prog_compiler_wl
='-Wl,'
12361 # All Alpha code is PIC.
12362 lt_prog_compiler_static
='-non_shared'
12365 case `$CC -V 2>&1 | sed 5q` in
12368 lt_prog_compiler_pic
='-KPIC'
12369 lt_prog_compiler_static
='-Bstatic'
12370 lt_prog_compiler_wl
='-Wl,'
12373 # Sun Fortran 8.3 passes all unrecognized flags to the linker
12374 lt_prog_compiler_pic
='-KPIC'
12375 lt_prog_compiler_static
='-Bstatic'
12376 lt_prog_compiler_wl
=''
12383 osf3
* | osf4
* | osf5
*)
12384 lt_prog_compiler_wl
='-Wl,'
12385 # All OSF/1 code is PIC.
12386 lt_prog_compiler_static
='-non_shared'
12390 lt_prog_compiler_static
='-non_shared'
12394 lt_prog_compiler_pic
='-KPIC'
12395 lt_prog_compiler_static
='-Bstatic'
12396 case $cc_basename in
12397 f77
* | f90
* | f95
*)
12398 lt_prog_compiler_wl
='-Qoption ld ';;
12400 lt_prog_compiler_wl
='-Wl,';;
12405 lt_prog_compiler_wl
='-Qoption ld '
12406 lt_prog_compiler_pic
='-PIC'
12407 lt_prog_compiler_static
='-Bstatic'
12410 sysv4 | sysv4.2uw2
* | sysv4.3
*)
12411 lt_prog_compiler_wl
='-Wl,'
12412 lt_prog_compiler_pic
='-KPIC'
12413 lt_prog_compiler_static
='-Bstatic'
12417 if test -d /usr
/nec
;then
12418 lt_prog_compiler_pic
='-Kconform_pic'
12419 lt_prog_compiler_static
='-Bstatic'
12423 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
12424 lt_prog_compiler_wl
='-Wl,'
12425 lt_prog_compiler_pic
='-KPIC'
12426 lt_prog_compiler_static
='-Bstatic'
12430 lt_prog_compiler_wl
='-Wl,'
12431 lt_prog_compiler_can_build_shared
=no
12435 lt_prog_compiler_pic
='-pic'
12436 lt_prog_compiler_static
='-Bstatic'
12440 lt_prog_compiler_can_build_shared
=no
12445 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
12446 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
12449 # Check to make sure the PIC flag actually works.
12451 if test -n "$lt_prog_compiler_pic"; then
12453 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
12454 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
12455 if test "${lt_prog_compiler_pic_works+set}" = set; then
12456 echo $ECHO_N "(cached) $ECHO_C" >&6
12458 lt_prog_compiler_pic_works
=no
12459 ac_outfile
=conftest.
$ac_objext
12460 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12461 lt_compiler_flag
="$lt_prog_compiler_pic -DPIC"
12462 # Insert the option either (1) after the last *FLAGS variable, or
12463 # (2) before a word containing "conftest.", or (3) at the end.
12464 # Note that $ac_compile itself does not contain backslashes and begins
12465 # with a dollar sign (not a hyphen), so the echo should work correctly.
12466 # The option is referenced via a variable to avoid confusing sed.
12467 lt_compile
=`echo "$ac_compile" | $SED \
12468 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12469 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12470 -e 's:$: $lt_compiler_flag:'`
12471 (eval echo "\"\$as_me:12471: $lt_compile\"" >&5)
12472 (eval "$lt_compile" 2>conftest.err
)
12474 cat conftest.err
>&5
12475 echo "$as_me:12475: \$? = $ac_status" >&5
12476 if (exit $ac_status) && test -s "$ac_outfile"; then
12477 # The compiler can only warn and ignore the option if not recognized
12478 # So say no if there are warnings other than the usual output.
12479 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
12480 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12481 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
12482 lt_prog_compiler_pic_works
=yes
12488 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
12489 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
12491 if test x
"$lt_prog_compiler_pic_works" = xyes
; then
12492 case $lt_prog_compiler_pic in
12494 *) lt_prog_compiler_pic
=" $lt_prog_compiler_pic" ;;
12497 lt_prog_compiler_pic
=
12498 lt_prog_compiler_can_build_shared
=no
12503 # For platforms which do not support PIC, -DPIC is meaningless:
12505 lt_prog_compiler_pic
=
12508 lt_prog_compiler_pic
="$lt_prog_compiler_pic -DPIC"
12513 # Check to make sure the static flag actually works.
12515 wl
=$lt_prog_compiler_wl eval lt_tmp_static_flag
=\"$lt_prog_compiler_static\"
12516 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
12517 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
12518 if test "${lt_prog_compiler_static_works+set}" = set; then
12519 echo $ECHO_N "(cached) $ECHO_C" >&6
12521 lt_prog_compiler_static_works
=no
12522 save_LDFLAGS
="$LDFLAGS"
12523 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
12524 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
12525 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
12526 # The linker can only warn and ignore the option if not recognized
12527 # So say no if there are warnings
12528 if test -s conftest.err
; then
12529 # Append any errors to the config.log.
12530 cat conftest.err
1>&5
12531 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
12532 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
12533 if diff conftest.exp conftest.er2
>/dev
/null
; then
12534 lt_prog_compiler_static_works
=yes
12537 lt_prog_compiler_static_works
=yes
12541 LDFLAGS
="$save_LDFLAGS"
12544 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
12545 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
12547 if test x
"$lt_prog_compiler_static_works" = xyes
; then
12550 lt_prog_compiler_static
=
12554 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12555 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12556 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12557 echo $ECHO_N "(cached) $ECHO_C" >&6
12559 lt_cv_prog_compiler_c_o
=no
12560 $rm -r conftest
2>/dev
/null
12564 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
12566 lt_compiler_flag
="-o out/conftest2.$ac_objext"
12567 # Insert the option either (1) after the last *FLAGS variable, or
12568 # (2) before a word containing "conftest.", or (3) at the end.
12569 # Note that $ac_compile itself does not contain backslashes and begins
12570 # with a dollar sign (not a hyphen), so the echo should work correctly.
12571 lt_compile
=`echo "$ac_compile" | $SED \
12572 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
12573 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12574 -e 's:$: $lt_compiler_flag:'`
12575 (eval echo "\"\$as_me:12575: $lt_compile\"" >&5)
12576 (eval "$lt_compile" 2>out
/conftest.err
)
12578 cat out
/conftest.err
>&5
12579 echo "$as_me:12579: \$? = $ac_status" >&5
12580 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
12582 # The compiler can only warn and ignore the option if not recognized
12583 # So say no if there are warnings
12584 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
12585 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
12586 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
12587 lt_cv_prog_compiler_c_o
=yes
12592 # SGI C++ compiler will create directory out/ii_files/ for
12593 # template instantiation
12594 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
12595 $rm out
/* && rmdir out
12601 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12602 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12605 hard_links
="nottested"
12606 if test "$lt_cv_prog_compiler_c_o" = no
&& test "$need_locks" != no
; then
12607 # do not overwrite the value of need_locks provided by the user
12608 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12609 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12612 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12614 ln conftest.a conftest.b
2>&5 || hard_links
=no
12615 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
12616 echo "$as_me:$LINENO: result: $hard_links" >&5
12617 echo "${ECHO_T}$hard_links" >&6
12618 if test "$hard_links" = no
; then
12619 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12620 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12627 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12628 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12631 allow_undefined_flag
=
12632 enable_shared_with_static_runtimes
=no
12634 archive_expsym_cmds
=
12635 old_archive_From_new_cmds
=
12636 old_archive_from_expsyms_cmds
=
12637 export_dynamic_flag_spec
=
12638 whole_archive_flag_spec
=
12639 thread_safe_flag_spec
=
12640 hardcode_libdir_flag_spec
=
12641 hardcode_libdir_flag_spec_ld
=
12642 hardcode_libdir_separator
=
12644 hardcode_minus_L
=no
12645 hardcode_shlibpath_var
=unsupported
12646 link_all_deplibs
=unknown
12647 hardcode_automatic
=no
12649 module_expsym_cmds
=
12650 always_export_symbols
=no
12651 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12652 # include_expsyms should be a list of space-separated symbols to be *always*
12653 # included in the symbol list
12655 # exclude_expsyms can be an extended regexp of symbols to exclude
12656 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12657 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12658 # as well as any symbol that contains `d'.
12659 exclude_expsyms
="_GLOBAL_OFFSET_TABLE_"
12660 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12661 # platforms (ab)use it in PIC code, but their linkers get confused if
12662 # the symbol is explicitly referenced. Since portable code cannot
12663 # rely on this symbol name, it's probably fine to never include it in
12664 # preloaded symbol tables.
12665 extract_expsyms_cmds
=
12666 # Just being paranoid about ensuring that cc_basename is set.
12667 for cc_temp
in $compiler""; do
12669 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
12670 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
12675 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
12678 cygwin
* | mingw
* | pw32
*)
12679 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12680 # When not using gcc, we currently assume that we are using
12681 # Microsoft Visual C++.
12682 if test "$GCC" != yes; then
12687 # we just hope/assume this is gcc and not c89 (= MSVC++)
12696 if test "$with_gnu_ld" = yes; then
12697 # If archive_cmds runs LD, not CC, wlarc should be empty
12700 # Set some defaults for GNU ld with shared library support. These
12701 # are reset later if shared libraries are not supported. Putting them
12702 # here allows them to be overridden if necessary.
12703 runpath_var
=LD_RUN_PATH
12704 hardcode_libdir_flag_spec
='${wl}--rpath ${wl}$libdir'
12705 export_dynamic_flag_spec
='${wl}--export-dynamic'
12706 # ancient GNU ld didn't support --whole-archive et. al.
12707 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
12708 whole_archive_flag_spec
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12710 whole_archive_flag_spec
=
12712 supports_anon_versioning
=no
12713 case `$LD -v 2>/dev/null` in
12714 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
12715 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
12716 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
12717 *\
2.11.
*) ;; # other 2.11 versions
12718 *) supports_anon_versioning
=yes ;;
12721 # See if GNU ld supports shared libraries.
12723 aix3
* | aix4
* | aix5
*)
12724 # On AIX/PPC, the GNU linker is very broken
12725 if test "$host_cpu" != ia64
; then
12729 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12730 *** to be unable to reliably create shared libraries on AIX.
12731 *** Therefore, libtool is disabling shared libraries support. If you
12732 *** really care for shared libraries, you may want to modify your PATH
12733 *** so that a non-GNU linker is found, and then restart.
12740 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)'
12741 hardcode_libdir_flag_spec
='-L$libdir'
12742 hardcode_minus_L
=yes
12744 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12745 # that the semantics of dynamic libraries on AmigaOS, at least up
12746 # to version 4, is to share data among multiple programs linked
12747 # with the same dynamic library. Since this doesn't match the
12748 # behavior of shared libraries on other platforms, we can't use
12754 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
12755 allow_undefined_flag
=unsupported
12756 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12757 # support --undefined. This deserves some investigation. FIXME
12758 archive_cmds
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12764 cygwin
* | mingw
* | pw32
*)
12765 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12766 # as there is no search path for DLLs.
12767 hardcode_libdir_flag_spec
='-L$libdir'
12768 allow_undefined_flag
=unsupported
12769 always_export_symbols
=no
12770 enable_shared_with_static_runtimes
=yes
12771 export_symbols_cmds
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
12773 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
12774 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12775 # If the export-symbols file already is a .def file (1st line
12776 # is EXPORTS), use it as is; otherwise, prepend...
12777 archive_expsym_cmds
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12778 cp $export_symbols $output_objdir/$soname.def;
12780 echo EXPORTS > $output_objdir/$soname.def;
12781 cat $export_symbols >> $output_objdir/$soname.def;
12783 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
12791 hardcode_shlibpath_var
=no
12792 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
12793 export_dynamic_flag_spec
='${wl}-E'
12794 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
12795 # Instead, shared libraries are loaded at an image base (0x10000000 by
12796 # default) and relocated if they conflict, which is a slow very memory
12797 # consuming and fragmenting process. To avoid this, we pick a random,
12798 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
12799 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
12800 archive_cmds
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
12801 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'
12804 gnu
* | linux
* | k
*bsd
*-gnu)
12805 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
12807 case $cc_basename,$host_cpu in
12808 pgcc
*) # Portland Group C compiler
12809 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'
12810 tmp_addflag
=' $pic_flag'
12812 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
12813 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'
12814 tmp_addflag
=' $pic_flag -Mnomain' ;;
12815 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
12816 tmp_addflag
=' -i_dynamic' ;;
12817 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
12818 tmp_addflag
=' -i_dynamic -nofor_main' ;;
12819 ifc
* | ifort
*) # Intel Fortran compiler
12820 tmp_addflag
=' -nofor_main' ;;
12822 case `$CC -V 2>&1 | sed 5q` in
12823 *Sun\ C
*) # Sun C 5.9
12824 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'
12825 tmp_sharedflag
='-G' ;;
12826 *Sun\ F
*) # Sun Fortran 8.3
12827 tmp_sharedflag
='-G' ;;
12829 tmp_sharedflag
='-shared' ;;
12831 archive_cmds
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12833 if test $supports_anon_versioning = yes; then
12834 archive_expsym_cmds
='$echo "{ global:" > $output_objdir/$libname.ver~
12835 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12836 $echo "local: *; };" >> $output_objdir/$libname.ver~
12837 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12845 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
12846 archive_cmds
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12849 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12850 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12855 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
12859 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12860 *** create shared libraries on Solaris systems. Therefore, libtool
12861 *** is disabling shared libraries support. We urge you to upgrade GNU
12862 *** binutils to release 2.9.1 or newer. Another option is to modify
12863 *** your PATH or compiler configuration so that the native linker is
12864 *** used, and then restart.
12867 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
12868 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12869 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12875 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
12876 case `$LD -v 2>&1` in
12877 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
12881 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
12882 *** reliably create shared libraries on SCO systems. Therefore, libtool
12883 *** is disabling shared libraries support. We urge you to upgrade GNU
12884 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
12885 *** your PATH or compiler configuration so that the native linker is
12886 *** used, and then restart.
12891 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
12892 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
12893 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
12894 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
12903 archive_cmds
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12905 hardcode_direct
=yes
12906 hardcode_shlibpath_var
=no
12910 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
12911 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12912 archive_expsym_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12919 if test "$ld_shlibs" = no
; then
12921 hardcode_libdir_flag_spec
=
12922 export_dynamic_flag_spec
=
12923 whole_archive_flag_spec
=
12926 # PORTME fill in a description of your system's linker (not GNU ld)
12929 allow_undefined_flag
=unsupported
12930 always_export_symbols
=yes
12931 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'
12932 # Note: this linker hardcodes the directories in LIBPATH if there
12933 # are no directories specified by -L.
12934 hardcode_minus_L
=yes
12935 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
12936 # Neither direct hardcoding nor static linking is supported with a
12938 hardcode_direct
=unsupported
12943 if test "$host_cpu" = ia64
; then
12944 # On IA64, the linker does run time linking by default, so we don't
12945 # have to do anything special.
12946 aix_use_runtimelinking
=no
12947 exp_sym_flag
='-Bexport'
12950 # If we're using GNU nm, then we don't want the "-C" option.
12951 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12952 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
12953 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'
12955 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'
12957 aix_use_runtimelinking
=no
12959 # Test if we are trying to use run time linking or normal
12960 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12961 # need to do runtime linking.
12962 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
12963 for ld_flag
in $LDFLAGS; do
12964 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
12965 aix_use_runtimelinking
=yes
12972 exp_sym_flag
='-bexport'
12973 no_entry_flag
='-bnoentry'
12976 # When large executables or shared objects are built, AIX ld can
12977 # have problems creating the table of contents. If linking a library
12978 # or program results in "error TOC overflow" add -mminimal-toc to
12979 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12980 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12983 hardcode_direct
=yes
12984 hardcode_libdir_separator
=':'
12985 link_all_deplibs
=yes
12987 if test "$GCC" = yes; then
12988 case $host_os in aix4.
[012]|aix4.
[012].
*)
12989 # We only want to do this on AIX 4.2 and lower, the check
12990 # below for broken collect2 doesn't work under 4.3+
12991 collect2name
=`${CC} -print-prog-name=collect2`
12992 if test -f "$collect2name" && \
12993 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
12995 # We have reworked collect2
12998 # We have old collect2
12999 hardcode_direct
=unsupported
13000 # It fails to find uninstalled libraries when the uninstalled
13001 # path is not listed in the libpath. Setting hardcode_minus_L
13002 # to unsupported forces relinking
13003 hardcode_minus_L
=yes
13004 hardcode_libdir_flag_spec
='-L$libdir'
13005 hardcode_libdir_separator
=
13009 shared_flag
='-shared'
13010 if test "$aix_use_runtimelinking" = yes; then
13011 shared_flag
="$shared_flag "'${wl}-G'
13015 if test "$host_cpu" = ia64
; then
13016 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
13017 # chokes on -Wl,-G. The following line is correct:
13020 if test "$aix_use_runtimelinking" = yes; then
13021 shared_flag
='${wl}-G'
13023 shared_flag
='${wl}-bM:SRE'
13028 # It seems that -bexpall does not export symbols beginning with
13029 # underscore (_), so it is better to generate a list of symbols to export.
13030 always_export_symbols
=yes
13031 if test "$aix_use_runtimelinking" = yes; then
13032 # Warning - without using the other runtime loading flags (-brtl),
13033 # -berok will link without error, but may produce a broken library.
13034 allow_undefined_flag
='-berok'
13035 # Determine the default libpath from the value encoded in an empty executable.
13036 cat >conftest.
$ac_ext <<_ACEOF
13039 cat confdefs.h
>>conftest.
$ac_ext
13040 cat >>conftest.
$ac_ext <<_ACEOF
13041 /* end confdefs.h. */
13051 rm -f conftest.
$ac_objext conftest
$ac_exeext
13052 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13053 (eval $ac_link) 2>conftest.er1
13055 grep -v '^ *+' conftest.er1
>conftest.err
13057 cat conftest.err
>&5
13058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13059 (exit $ac_status); } &&
13060 { ac_try
='test -z "$ac_c_werror_flag"
13061 || test ! -s conftest.err'
13062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13063 (eval $ac_try) 2>&5
13065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13066 (exit $ac_status); }; } &&
13067 { ac_try
='test -s conftest$ac_exeext'
13068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13069 (eval $ac_try) 2>&5
13071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13072 (exit $ac_status); }; }; then
13074 lt_aix_libpath_sed
='
13075 /Import File Strings/,/^$/ {
13081 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13082 # Check for a 64-bit object if we didn't find anything.
13083 if test -z "$aix_libpath"; then
13084 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13087 echo "$as_me: failed program was:" >&5
13088 sed 's/^/| /' conftest.
$ac_ext >&5
13091 rm -f conftest.err conftest.
$ac_objext \
13092 conftest
$ac_exeext conftest.
$ac_ext
13093 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13095 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
13096 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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
13098 if test "$host_cpu" = ia64
; then
13099 hardcode_libdir_flag_spec
='${wl}-R $libdir:/usr/lib:/lib'
13100 allow_undefined_flag
="-z nodefs"
13101 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"
13103 # Determine the default libpath from the value encoded in an empty executable.
13104 cat >conftest.
$ac_ext <<_ACEOF
13107 cat confdefs.h
>>conftest.
$ac_ext
13108 cat >>conftest.
$ac_ext <<_ACEOF
13109 /* end confdefs.h. */
13119 rm -f conftest.
$ac_objext conftest
$ac_exeext
13120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13121 (eval $ac_link) 2>conftest.er1
13123 grep -v '^ *+' conftest.er1
>conftest.err
13125 cat conftest.err
>&5
13126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13127 (exit $ac_status); } &&
13128 { ac_try
='test -z "$ac_c_werror_flag"
13129 || test ! -s conftest.err'
13130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13131 (eval $ac_try) 2>&5
13133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13134 (exit $ac_status); }; } &&
13135 { ac_try
='test -s conftest$ac_exeext'
13136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13137 (eval $ac_try) 2>&5
13139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13140 (exit $ac_status); }; }; then
13142 lt_aix_libpath_sed
='
13143 /Import File Strings/,/^$/ {
13149 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13150 # Check for a 64-bit object if we didn't find anything.
13151 if test -z "$aix_libpath"; then
13152 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
13155 echo "$as_me: failed program was:" >&5
13156 sed 's/^/| /' conftest.
$ac_ext >&5
13159 rm -f conftest.err conftest.
$ac_objext \
13160 conftest
$ac_exeext conftest.
$ac_ext
13161 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
13163 hardcode_libdir_flag_spec
='${wl}-blibpath:$libdir:'"$aix_libpath"
13164 # Warning - without using the other run time loading flags,
13165 # -berok will link without error, but may produce a broken library.
13166 no_undefined_flag
=' ${wl}-bernotok'
13167 allow_undefined_flag
=' ${wl}-berok'
13168 # Exported symbols can be pulled into shared objects from archives
13169 whole_archive_flag_spec
='$convenience'
13170 archive_cmds_need_lc
=yes
13171 # This is similar to how AIX traditionally builds its shared libraries.
13172 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'
13178 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)'
13179 hardcode_libdir_flag_spec
='-L$libdir'
13180 hardcode_minus_L
=yes
13181 # see comment about different semantics on the GNU ld section
13186 export_dynamic_flag_spec
=-rdynamic
13189 cygwin
* | mingw
* | pw32
*)
13190 # When not using gcc, we currently assume that we are using
13191 # Microsoft Visual C++.
13192 # hardcode_libdir_flag_spec is actually meaningless, as there is
13193 # no search path for DLLs.
13194 hardcode_libdir_flag_spec
=' '
13195 allow_undefined_flag
=unsupported
13196 # Tell ltmain to make .lib files, not .a files.
13198 # Tell ltmain to make .dll files, not .so files.
13200 # FIXME: Setting linknames here is a bad hack.
13201 archive_cmds
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
13202 # The linker will automatically build a .lib file if we build a DLL.
13203 old_archive_From_new_cmds
='true'
13204 # FIXME: Should let the user specify the lib program.
13205 old_archive_cmds
='lib -OUT:$oldlib$oldobjs$old_deplibs'
13206 fix_srcfile_path
='`cygpath -w "$srcfile"`'
13207 enable_shared_with_static_runtimes
=yes
13210 darwin
* | rhapsody
*)
13212 rhapsody
* | darwin1.
[012])
13213 allow_undefined_flag
='${wl}-undefined ${wl}suppress'
13216 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
13217 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13219 case ${MACOSX_DEPLOYMENT_TARGET} in
13221 allow_undefined_flag
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
13224 allow_undefined_flag
='${wl}-undefined ${wl}dynamic_lookup'
13230 archive_cmds_need_lc
=no
13232 hardcode_automatic
=yes
13233 hardcode_shlibpath_var
=unsupported
13234 whole_archive_flag_spec
=''
13235 link_all_deplibs
=yes
13236 if test "$GCC" = yes ; then
13237 output_verbose_link_cmd
='echo'
13238 archive_cmds
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
13239 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13240 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13241 archive_expsym_cmds
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13242 module_expsym_cmds
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13244 case $cc_basename in
13246 output_verbose_link_cmd
='echo'
13247 archive_cmds
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
13248 module_cmds
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
13249 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
13250 archive_expsym_cmds
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13251 module_expsym_cmds
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
13261 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13262 hardcode_libdir_flag_spec
='-L$libdir'
13263 hardcode_shlibpath_var
=no
13270 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
13271 # support. Future versions do this automatically, but an explicit c++rt0.o
13272 # does not break anything, and helps significantly (at the cost of a little
13275 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
13276 hardcode_libdir_flag_spec
='-R$libdir'
13277 hardcode_direct
=yes
13278 hardcode_shlibpath_var
=no
13281 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
13283 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13284 hardcode_direct
=yes
13285 hardcode_minus_L
=yes
13286 hardcode_shlibpath_var
=no
13289 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
13290 freebsd
* | dragonfly
*)
13291 archive_cmds
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
13292 hardcode_libdir_flag_spec
='-R$libdir'
13293 hardcode_direct
=yes
13294 hardcode_shlibpath_var
=no
13298 if test "$GCC" = yes; then
13299 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'
13301 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'
13303 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
13304 hardcode_libdir_separator
=:
13305 hardcode_direct
=yes
13307 # hardcode_minus_L: Not really in the search PATH,
13308 # but as the default location of the library.
13309 hardcode_minus_L
=yes
13310 export_dynamic_flag_spec
='${wl}-E'
13314 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
13315 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13317 archive_cmds
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
13319 if test "$with_gnu_ld" = no
; then
13320 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
13321 hardcode_libdir_separator
=:
13323 hardcode_direct
=yes
13324 export_dynamic_flag_spec
='${wl}-E'
13326 # hardcode_minus_L: Not really in the search PATH,
13327 # but as the default location of the library.
13328 hardcode_minus_L
=yes
13333 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
13336 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13339 archive_cmds
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13342 archive_cmds
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13348 archive_cmds
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13351 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
13354 archive_cmds
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
13358 if test "$with_gnu_ld" = no
; then
13359 hardcode_libdir_flag_spec
='${wl}+b ${wl}$libdir'
13360 hardcode_libdir_separator
=:
13364 hardcode_libdir_flag_spec_ld
='+b $libdir'
13366 hardcode_shlibpath_var
=no
13369 hardcode_direct
=yes
13370 export_dynamic_flag_spec
='${wl}-E'
13372 # hardcode_minus_L: Not really in the search PATH,
13373 # but as the default location of the library.
13374 hardcode_minus_L
=yes
13380 irix5
* | irix6
* | nonstopux
*)
13381 if test "$GCC" = yes; then
13382 archive_cmds
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13384 archive_cmds
='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13385 hardcode_libdir_flag_spec_ld
='-rpath $libdir'
13387 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
13388 hardcode_libdir_separator
=:
13389 link_all_deplibs
=yes
13393 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
13394 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
13396 archive_cmds
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
13398 hardcode_libdir_flag_spec
='-R$libdir'
13399 hardcode_direct
=yes
13400 hardcode_shlibpath_var
=no
13404 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13405 hardcode_direct
=yes
13406 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
13407 hardcode_libdir_separator
=:
13408 hardcode_shlibpath_var
=no
13412 if test -f /usr
/libexec
/ld.so
; then
13413 hardcode_direct
=yes
13414 hardcode_shlibpath_var
=no
13415 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13416 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13417 archive_expsym_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
13418 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
13419 export_dynamic_flag_spec
='${wl}-E'
13422 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
13423 archive_cmds
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
13424 hardcode_libdir_flag_spec
='-R$libdir'
13427 archive_cmds
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
13428 hardcode_libdir_flag_spec
='${wl}-rpath,$libdir'
13438 hardcode_libdir_flag_spec
='-L$libdir'
13439 hardcode_minus_L
=yes
13440 allow_undefined_flag
=unsupported
13441 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'
13442 old_archive_From_new_cmds
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
13446 if test "$GCC" = yes; then
13447 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
13448 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13450 allow_undefined_flag
=' -expect_unresolved \*'
13451 archive_cmds
='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13453 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
13454 hardcode_libdir_separator
=:
13457 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
13458 if test "$GCC" = yes; then
13459 allow_undefined_flag
=' ${wl}-expect_unresolved ${wl}\*'
13460 archive_cmds
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
13461 hardcode_libdir_flag_spec
='${wl}-rpath ${wl}$libdir'
13463 allow_undefined_flag
=' -expect_unresolved \*'
13464 archive_cmds
='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
13465 archive_expsym_cmds
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
13466 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
13468 # Both c and cxx compiler support -rpath directly
13469 hardcode_libdir_flag_spec
='-rpath $libdir'
13471 hardcode_libdir_separator
=:
13475 no_undefined_flag
=' -z text'
13476 if test "$GCC" = yes; then
13478 archive_cmds
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
13479 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13480 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
13483 archive_cmds
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
13484 archive_expsym_cmds
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
13485 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
13487 hardcode_libdir_flag_spec
='-R$libdir'
13488 hardcode_shlibpath_var
=no
13490 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
13492 # The compiler driver will combine and reorder linker options,
13493 # but understands `-z linker_flag'. GCC discards it without `$wl',
13494 # but is careful enough not to reorder.
13495 # Supported since Solaris 2.6 (maybe 2.5.1?)
13496 if test "$GCC" = yes; then
13497 whole_archive_flag_spec
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
13499 whole_archive_flag_spec
='-z allextract$convenience -z defaultextract'
13503 link_all_deplibs
=yes
13507 if test "x$host_vendor" = xsequent
; then
13508 # Use $CC to link under sequent, because it throws in some extra .o
13509 # files that make .init and .fini sections work.
13510 archive_cmds
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
13512 archive_cmds
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
13514 hardcode_libdir_flag_spec
='-L$libdir'
13515 hardcode_direct
=yes
13516 hardcode_minus_L
=yes
13517 hardcode_shlibpath_var
=no
13521 case $host_vendor in
13523 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13524 hardcode_direct
=yes # is this really true???
13527 ## LD is ld it makes a PLAMLIB
13528 ## CC just makes a GrossModule.
13529 archive_cmds
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
13530 reload_cmds
='$CC -r -o $output$reload_objs'
13534 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13535 hardcode_direct
=no
#Motorola manual says yes, but my tests say they lie
13538 runpath_var
='LD_RUN_PATH'
13539 hardcode_shlibpath_var
=no
13543 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13544 hardcode_shlibpath_var
=no
13545 export_dynamic_flag_spec
='-Bexport'
13549 if test -d /usr
/nec
; then
13550 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13551 hardcode_shlibpath_var
=no
13552 runpath_var
=LD_RUN_PATH
13553 hardcode_runpath_var
=yes
13558 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
13559 no_undefined_flag
='${wl}-z,text'
13560 archive_cmds_need_lc
=no
13561 hardcode_shlibpath_var
=no
13562 runpath_var
='LD_RUN_PATH'
13564 if test "$GCC" = yes; then
13565 archive_cmds
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13566 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13568 archive_cmds
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13569 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
13573 sysv5
* | sco3.2v5
* | sco5v6
*)
13574 # Note: We can NOT use -z defs as we might desire, because we do not
13575 # link with -lc, and that would cause any symbols used from libc to
13576 # always be unresolved, which means just about no library would
13577 # ever link correctly. If we're not using GNU ld we use -z text
13578 # though, which does catch some bad symbols but isn't as heavy-handed
13580 no_undefined_flag
='${wl}-z,text'
13581 allow_undefined_flag
='${wl}-z,nodefs'
13582 archive_cmds_need_lc
=no
13583 hardcode_shlibpath_var
=no
13584 hardcode_libdir_flag_spec
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
13585 hardcode_libdir_separator
=':'
13586 link_all_deplibs
=yes
13587 export_dynamic_flag_spec
='${wl}-Bexport'
13588 runpath_var
='LD_RUN_PATH'
13590 if test "$GCC" = yes; then
13591 archive_cmds
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13592 archive_expsym_cmds
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13594 archive_cmds
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13595 archive_expsym_cmds
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
13600 archive_cmds
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
13601 hardcode_libdir_flag_spec
='-L$libdir'
13602 hardcode_shlibpath_var
=no
13611 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
13612 echo "${ECHO_T}$ld_shlibs" >&6
13613 test "$ld_shlibs" = no
&& can_build_shared
=no
13616 # Do we need to explicitly link libc?
13618 case "x$archive_cmds_need_lc" in
13620 # Assume -lc should be added
13621 archive_cmds_need_lc
=yes
13623 if test "$enable_shared" = yes && test "$GCC" = yes; then
13624 case $archive_cmds in
13626 # FIXME: we may have to deal with multi-command sequences.
13629 # Test whether the compiler implicitly links with -lc since on some
13630 # systems, -lgcc has to come before -lc. If gcc already passes -lc
13631 # to ld, don't add -lc before -lgcc.
13632 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
13633 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
13635 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
13637 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
13638 (eval $ac_compile) 2>&5
13640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13641 (exit $ac_status); } 2>conftest.err
; then
13644 libobjs
=conftest.
$ac_objext
13646 wl
=$lt_prog_compiler_wl
13647 pic_flag
=$lt_prog_compiler_pic
13653 lt_save_allow_undefined_flag
=$allow_undefined_flag
13654 allow_undefined_flag
=
13655 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
13656 (eval $archive_cmds 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
13658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13659 (exit $ac_status); }
13661 archive_cmds_need_lc
=no
13663 archive_cmds_need_lc
=yes
13665 allow_undefined_flag
=$lt_save_allow_undefined_flag
13667 cat conftest.err
1>&5
13670 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
13671 echo "${ECHO_T}$archive_cmds_need_lc" >&6
13678 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
13679 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
13680 library_names_spec
=
13681 libname_spec
='lib$name'
13685 postuninstall_cmds
=
13689 shlibpath_overrides_runpath
=unknown
13691 dynamic_linker
="$host_os ld.so"
13692 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
13694 if test "$GCC" = yes; then
13696 darwin
*) lt_awk_arg
="/^libraries:/,/LR/" ;;
13697 *) lt_awk_arg
="/^libraries:/" ;;
13699 lt_search_path_spec
=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13700 if echo "$lt_search_path_spec" |
grep ';' >/dev
/null
; then
13701 # if the path contains ";" then we assume it to be the separator
13702 # otherwise default to the standard path separator (i.e. ":") - it is
13703 # assumed that no part of a normal pathname contains ";" but that should
13704 # okay in the real world where ";" in dirpaths is itself problematic.
13705 lt_search_path_spec
=`echo "$lt_search_path_spec" | $SED -e 's/;/ /g'`
13707 lt_search_path_spec
=`echo "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13709 # Ok, now we have the path, separated by spaces, we can step through it
13710 # and add multilib dir if necessary.
13711 lt_tmp_lt_search_path_spec
=
13712 lt_multi_os_dir
=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
13713 for lt_sys_path
in $lt_search_path_spec; do
13714 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
13715 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
13717 test -d "$lt_sys_path" && \
13718 lt_tmp_lt_search_path_spec
="$lt_tmp_lt_search_path_spec $lt_sys_path"
13721 lt_search_path_spec
=`echo $lt_tmp_lt_search_path_spec | awk '
13722 BEGIN {RS=" "; FS="/|\n";} {
13725 for (lt_i = NF; lt_i > 0; lt_i--) {
13726 if ($lt_i != "" && $lt_i != ".") {
13727 if ($lt_i == "..") {
13730 if (lt_count == 0) {
13731 lt_foo="/" $lt_i lt_foo;
13738 if (lt_foo != "") { lt_freq[lt_foo]++; }
13739 if (lt_freq[lt_foo] == 1) { print lt_foo; }
13741 sys_lib_search_path_spec
=`echo $lt_search_path_spec`
13743 sys_lib_search_path_spec
="/lib /usr/lib /usr/local/lib"
13745 need_lib_prefix
=unknown
13746 hardcode_into_libs
=no
13748 # when you set need_version to no, make sure it does not cause -set_version
13749 # flags to be left without arguments
13750 need_version
=unknown
13755 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
13756 shlibpath_var
=LIBPATH
13758 # AIX 3 has no versioning support, so we append a major version to the name.
13759 soname_spec
='${libname}${release}${shared_ext}$major'
13766 hardcode_into_libs
=yes
13767 if test "$host_cpu" = ia64
; then
13768 # AIX 5 supports IA64
13769 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13770 shlibpath_var
=LD_LIBRARY_PATH
13772 # With GCC up to 2.95.x, collect2 would create an import file
13773 # for dependence libraries. The import file would start with
13774 # the line `#! .'. This would cause the generated library to
13775 # depend on `.', always an invalid library. This was fixed in
13776 # development snapshots of GCC prior to 3.0.
13778 aix4 | aix4.
[01] | aix4.
[01].
*)
13779 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13781 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
13784 can_build_shared
=no
13788 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13789 # soname into executable. Probably we can add versioning support to
13790 # collect2, so additional links can be useful in future.
13791 if test "$aix_use_runtimelinking" = yes; then
13792 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13793 # instead of lib<name>.a to let people know that these are not
13794 # typical AIX shared libraries.
13795 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13797 # We preserve .a as extension for shared libraries through AIX4.2
13798 # and later when we are not doing run time linking.
13799 library_names_spec
='${libname}${release}.a $libname.a'
13800 soname_spec
='${libname}${release}${shared_ext}$major'
13802 shlibpath_var
=LIBPATH
13807 library_names_spec
='$libname.ixlibrary $libname.a'
13808 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13809 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'
13813 library_names_spec
='${libname}${shared_ext}'
13814 dynamic_linker
="$host_os ld.so"
13815 shlibpath_var
=LIBRARY_PATH
13821 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13822 soname_spec
='${libname}${release}${shared_ext}$major'
13823 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
13824 shlibpath_var
=LD_LIBRARY_PATH
13825 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13826 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
13827 # the default ld.so.conf also contains /usr/contrib/lib and
13828 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13829 # libtool to hard-code these into programs
13832 cygwin
* | mingw
* | pw32
*)
13833 version_type
=windows
13838 case $GCC,$host_os in
13839 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
13840 library_names_spec
='$libname.dll.a'
13841 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13842 postinstall_cmds
='base_file=`basename \${file}`~
13843 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13844 dldir=$destdir/`dirname \$dlpath`~
13845 test -d \$dldir || mkdir -p \$dldir~
13846 $install_prog $dir/$dlname \$dldir/$dlname~
13847 chmod a+x \$dldir/$dlname'
13848 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13849 dlpath=$dir/\$dldll~
13851 shlibpath_overrides_runpath
=yes
13855 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13856 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13857 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
13860 # MinGW DLLs use traditional 'lib' prefix
13861 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13862 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13863 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
13864 # It is most probably a Windows format PATH printed by
13865 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13866 # path with ; separators, and with drive letters. We can handle the
13867 # drive letters (cygwin fileutils understands them), so leave them,
13868 # especially as we might pass files found there to a mingw objdump,
13869 # which wouldn't understand a cygwinified path. Ahh.
13870 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13872 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13876 # pw32 DLLs use 'pw' prefix rather than 'lib'
13877 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13883 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13886 dynamic_linker
='Win32 ld.exe'
13887 # FIXME: first we should search . and the directory the executable is in
13891 darwin
* | rhapsody
*)
13892 dynamic_linker
="$host_os dyld"
13893 version_type
=darwin
13896 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13897 soname_spec
='${libname}${release}${major}$shared_ext'
13898 shlibpath_overrides_runpath
=yes
13899 shlibpath_var
=DYLD_LIBRARY_PATH
13900 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
13902 sys_lib_search_path_spec
="$sys_lib_search_path_spec /usr/local/lib"
13903 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
13910 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13911 soname_spec
='${libname}${release}${shared_ext}$major'
13912 shlibpath_var
=LD_LIBRARY_PATH
13919 freebsd
* | dragonfly
*)
13920 # DragonFly does not have aout. When/if they implement a new
13921 # versioning mechanism, adjust this.
13922 if test -x /usr
/bin
/objformat
; then
13923 objformat
=`/usr/bin/objformat`
13926 freebsd
[123]*) objformat
=aout
;;
13927 *) objformat
=elf
;;
13930 version_type
=freebsd-
$objformat
13931 case $version_type in
13933 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13938 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13942 shlibpath_var
=LD_LIBRARY_PATH
13945 shlibpath_overrides_runpath
=yes
13947 freebsd3.
[01]* | freebsdelf3.
[01]*)
13948 shlibpath_overrides_runpath
=yes
13949 hardcode_into_libs
=yes
13951 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
13952 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
13953 shlibpath_overrides_runpath
=no
13954 hardcode_into_libs
=yes
13956 *) # from 4.6 on, and DragonFly
13957 shlibpath_overrides_runpath
=yes
13958 hardcode_into_libs
=yes
13967 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13968 soname_spec
='${libname}${release}${shared_ext}$major'
13969 shlibpath_var
=LD_LIBRARY_PATH
13970 hardcode_into_libs
=yes
13973 hpux9
* | hpux10
* | hpux11
*)
13974 # Give a soname corresponding to the major version so that dld.sl refuses to
13975 # link against other versions.
13982 hardcode_into_libs
=yes
13983 dynamic_linker
="$host_os dld.so"
13984 shlibpath_var
=LD_LIBRARY_PATH
13985 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
13986 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13987 soname_spec
='${libname}${release}${shared_ext}$major'
13988 if test "X$HPUX_IA64_MODE" = X32
; then
13989 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13991 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
13993 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
13997 hardcode_into_libs
=yes
13998 dynamic_linker
="$host_os dld.sl"
13999 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
14000 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
14001 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14002 soname_spec
='${libname}${release}${shared_ext}$major'
14003 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
14004 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
14008 dynamic_linker
="$host_os dld.sl"
14009 shlibpath_var
=SHLIB_PATH
14010 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
14011 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14012 soname_spec
='${libname}${release}${shared_ext}$major'
14015 # HP-UX runs *really* slowly unless shared libraries are mode 555.
14016 postinstall_cmds
='chmod 555 $lib'
14023 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14024 soname_spec
='${libname}${release}${shared_ext}$major'
14025 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
14026 shlibpath_var
=LD_LIBRARY_PATH
14027 shlibpath_overrides_runpath
=no
14028 hardcode_into_libs
=yes
14031 irix5
* | irix6
* | nonstopux
*)
14033 nonstopux
*) version_type
=nonstopux
;;
14035 if test "$lt_cv_prog_gnu_ld" = yes; then
14043 soname_spec
='${libname}${release}${shared_ext}$major'
14044 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
14046 irix5
* | nonstopux
*)
14047 libsuff
= shlibsuff
=
14050 case $LD in # libtool.m4 will add one of these switches to LD
14051 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
14052 libsuff
= shlibsuff
= libmagic
=32-bit;;
14053 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
14054 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
14055 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
14056 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
14057 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
14061 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
14062 shlibpath_overrides_runpath
=no
14063 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
14064 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
14065 hardcode_into_libs
=yes
14068 # No shared lib support for Linux oldld, aout, or coff.
14069 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
14073 # This must be Linux ELF.
14074 linux
* | k
*bsd
*-gnu)
14078 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14079 soname_spec
='${libname}${release}${shared_ext}$major'
14080 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
14081 shlibpath_var
=LD_LIBRARY_PATH
14082 shlibpath_overrides_runpath
=no
14083 # This implies no fast_install, which is unacceptable.
14084 # Some rework will be needed to allow for fast_install
14085 # before this can be enabled.
14086 hardcode_into_libs
=yes
14088 # Append ld.so.conf contents to the search path
14089 if test -f /etc
/ld.so.conf
; then
14090 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' ' '`
14091 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
14094 # We used to test for /lib/ld.so.1 and disable shared libraries on
14095 # powerpc, because MkLinux only supported shared libraries with the
14096 # GNU dynamic linker. Since this was broken with cross compilers,
14097 # most powerpc-linux boxes support dynamic linking these days and
14098 # people can always --disable-shared, the test was removed, and we
14099 # assume the GNU/Linux dynamic linker is in use.
14100 dynamic_linker
='GNU/Linux ld.so'
14107 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
14108 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14109 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14110 dynamic_linker
='NetBSD (a.out) ld.so'
14112 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
14113 soname_spec
='${libname}${release}${shared_ext}$major'
14114 dynamic_linker
='NetBSD ld.elf_so'
14116 shlibpath_var
=LD_LIBRARY_PATH
14117 shlibpath_overrides_runpath
=yes
14118 hardcode_into_libs
=yes
14123 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14124 shlibpath_var
=LD_LIBRARY_PATH
14125 shlibpath_overrides_runpath
=yes
14132 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14133 soname_spec
='${libname}${release}${shared_ext}$major'
14134 shlibpath_var
=LD_LIBRARY_PATH
14135 shlibpath_overrides_runpath
=yes
14140 sys_lib_dlsearch_path_spec
="/usr/lib"
14142 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
14144 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
14145 *) need_version
=no
;;
14147 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14148 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
14149 shlibpath_var
=LD_LIBRARY_PATH
14150 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
14152 openbsd2.
[89] | openbsd2.
[89].
*)
14153 shlibpath_overrides_runpath
=no
14156 shlibpath_overrides_runpath
=yes
14160 shlibpath_overrides_runpath
=yes
14165 libname_spec
='$name'
14168 library_names_spec
='$libname${shared_ext} $libname.a'
14169 dynamic_linker
='OS/2 ld.exe'
14170 shlibpath_var
=LIBPATH
14173 osf3
* | osf4
* | osf5
*)
14177 soname_spec
='${libname}${release}${shared_ext}$major'
14178 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14179 shlibpath_var
=LD_LIBRARY_PATH
14180 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
14181 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
14192 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14193 soname_spec
='${libname}${release}${shared_ext}$major'
14194 shlibpath_var
=LD_LIBRARY_PATH
14195 shlibpath_overrides_runpath
=yes
14196 hardcode_into_libs
=yes
14197 # ldd complains unless libraries are executable
14198 postinstall_cmds
='chmod +x $lib'
14203 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
14204 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
14205 shlibpath_var
=LD_LIBRARY_PATH
14206 shlibpath_overrides_runpath
=yes
14207 if test "$with_gnu_ld" = yes; then
14215 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14216 soname_spec
='${libname}${release}${shared_ext}$major'
14217 shlibpath_var
=LD_LIBRARY_PATH
14218 case $host_vendor in
14220 shlibpath_overrides_runpath
=no
14222 export_dynamic_flag_spec
='${wl}-Blargedynsym'
14223 runpath_var
=LD_RUN_PATH
14231 shlibpath_overrides_runpath
=no
14232 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
14238 if test -d /usr
/nec
;then
14240 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
14241 soname_spec
='$libname${shared_ext}.$major'
14242 shlibpath_var
=LD_LIBRARY_PATH
14246 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
14247 version_type
=freebsd-elf
14250 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
14251 soname_spec
='${libname}${release}${shared_ext}$major'
14252 shlibpath_var
=LD_LIBRARY_PATH
14253 hardcode_into_libs
=yes
14254 if test "$with_gnu_ld" = yes; then
14255 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
14256 shlibpath_overrides_runpath
=no
14258 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
14259 shlibpath_overrides_runpath
=yes
14262 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
14266 sys_lib_dlsearch_path_spec
='/usr/lib'
14271 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
14272 soname_spec
='${libname}${release}${shared_ext}$major'
14273 shlibpath_var
=LD_LIBRARY_PATH
14280 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
14281 echo "${ECHO_T}$dynamic_linker" >&6
14282 test "$dynamic_linker" = no
&& can_build_shared
=no
14284 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
14285 if test "$GCC" = yes; then
14286 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
14289 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
14290 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
14292 if test -n "$hardcode_libdir_flag_spec" || \
14293 test -n "$runpath_var" || \
14294 test "X$hardcode_automatic" = "Xyes" ; then
14296 # We can hardcode non-existant directories.
14297 if test "$hardcode_direct" != no
&&
14298 # If the only mechanism to avoid hardcoding is shlibpath_var, we
14299 # have to relink, otherwise we might link with an installed library
14300 # when we should be linking with a yet-to-be-installed one
14301 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
14302 test "$hardcode_minus_L" != no
; then
14303 # Linking always hardcodes the temporary library directory.
14304 hardcode_action
=relink
14306 # We can link without hardcoding, and we can hardcode nonexisting dirs.
14307 hardcode_action
=immediate
14310 # We cannot hardcode anything, or else we can only hardcode existing
14312 hardcode_action
=unsupported
14314 echo "$as_me:$LINENO: result: $hardcode_action" >&5
14315 echo "${ECHO_T}$hardcode_action" >&6
14317 if test "$hardcode_action" = relink
; then
14318 # Fast installation is not supported
14319 enable_fast_install
=no
14320 elif test "$shlibpath_overrides_runpath" = yes ||
14321 test "$enable_shared" = no
; then
14322 # Fast installation is not necessary
14323 enable_fast_install
=needless
14328 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
14329 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
14330 if test -n "$STRIP" && $STRIP -V 2>&1 |
grep "GNU strip" >/dev
/null
; then
14331 test -z "$old_striplib" && old_striplib
="$STRIP --strip-debug"
14332 test -z "$striplib" && striplib
="$STRIP --strip-unneeded"
14333 echo "$as_me:$LINENO: result: yes" >&5
14334 echo "${ECHO_T}yes" >&6
14336 # FIXME - insert some real tests, host_os isn't really good enough
14339 if test -n "$STRIP" ; then
14340 striplib
="$STRIP -x"
14341 old_striplib
="$STRIP -S"
14342 echo "$as_me:$LINENO: result: yes" >&5
14343 echo "${ECHO_T}yes" >&6
14345 echo "$as_me:$LINENO: result: no" >&5
14346 echo "${ECHO_T}no" >&6
14350 echo "$as_me:$LINENO: result: no" >&5
14351 echo "${ECHO_T}no" >&6
14356 if test "x$enable_dlopen" != xyes
; then
14357 enable_dlopen
=unknown
14358 enable_dlopen_self
=unknown
14359 enable_dlopen_self_static
=unknown
14366 lt_cv_dlopen
="load_add_on"
14368 lt_cv_dlopen_self
=yes
14372 lt_cv_dlopen
="LoadLibrary"
14377 lt_cv_dlopen
="dlopen"
14382 # if libdl is installed we need to link against it
14383 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14384 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14385 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14386 echo $ECHO_N "(cached) $ECHO_C" >&6
14388 ac_check_lib_save_LIBS
=$LIBS
14390 cat >conftest.
$ac_ext <<_ACEOF
14393 cat confdefs.h
>>conftest.
$ac_ext
14394 cat >>conftest.
$ac_ext <<_ACEOF
14395 /* end confdefs.h. */
14397 /* Override any gcc2 internal prototype to avoid an error. */
14401 /* We use char because int might match the return type of a gcc2
14402 builtin and then its argument prototype would still apply. */
14412 rm -f conftest.
$ac_objext conftest
$ac_exeext
14413 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14414 (eval $ac_link) 2>conftest.er1
14416 grep -v '^ *+' conftest.er1
>conftest.err
14418 cat conftest.err
>&5
14419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14420 (exit $ac_status); } &&
14421 { ac_try
='test -z "$ac_c_werror_flag"
14422 || test ! -s conftest.err'
14423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14424 (eval $ac_try) 2>&5
14426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14427 (exit $ac_status); }; } &&
14428 { ac_try
='test -s conftest$ac_exeext'
14429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14430 (eval $ac_try) 2>&5
14432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14433 (exit $ac_status); }; }; then
14434 ac_cv_lib_dl_dlopen
=yes
14436 echo "$as_me: failed program was:" >&5
14437 sed 's/^/| /' conftest.
$ac_ext >&5
14439 ac_cv_lib_dl_dlopen
=no
14441 rm -f conftest.err conftest.
$ac_objext \
14442 conftest
$ac_exeext conftest.
$ac_ext
14443 LIBS
=$ac_check_lib_save_LIBS
14445 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14446 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14447 if test $ac_cv_lib_dl_dlopen = yes; then
14448 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
14451 lt_cv_dlopen
="dyld"
14453 lt_cv_dlopen_self
=yes
14460 echo "$as_me:$LINENO: checking for shl_load" >&5
14461 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
14462 if test "${ac_cv_func_shl_load+set}" = set; then
14463 echo $ECHO_N "(cached) $ECHO_C" >&6
14465 cat >conftest.
$ac_ext <<_ACEOF
14468 cat confdefs.h
>>conftest.
$ac_ext
14469 cat >>conftest.
$ac_ext <<_ACEOF
14470 /* end confdefs.h. */
14471 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
14472 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14473 #define shl_load innocuous_shl_load
14475 /* System header to define __stub macros and hopefully few prototypes,
14476 which can conflict with char shl_load (); below.
14477 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14478 <limits.h> exists even on freestanding compilers. */
14481 # include <limits.h>
14483 # include <assert.h>
14488 /* Override any gcc2 internal prototype to avoid an error. */
14493 /* We use char because int might match the return type of a gcc2
14494 builtin and then its argument prototype would still apply. */
14496 /* The GNU C library defines this for functions which it implements
14497 to always fail with ENOSYS. Some functions are actually named
14498 something starting with __ and the normal name is an alias. */
14499 #if defined (__stub_shl_load) || defined (__stub___shl_load)
14502 char (*f) () = shl_load;
14511 return f != shl_load;
14516 rm -f conftest.
$ac_objext conftest
$ac_exeext
14517 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14518 (eval $ac_link) 2>conftest.er1
14520 grep -v '^ *+' conftest.er1
>conftest.err
14522 cat conftest.err
>&5
14523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14524 (exit $ac_status); } &&
14525 { ac_try
='test -z "$ac_c_werror_flag"
14526 || test ! -s conftest.err'
14527 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14528 (eval $ac_try) 2>&5
14530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14531 (exit $ac_status); }; } &&
14532 { ac_try
='test -s conftest$ac_exeext'
14533 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14534 (eval $ac_try) 2>&5
14536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14537 (exit $ac_status); }; }; then
14538 ac_cv_func_shl_load
=yes
14540 echo "$as_me: failed program was:" >&5
14541 sed 's/^/| /' conftest.
$ac_ext >&5
14543 ac_cv_func_shl_load
=no
14545 rm -f conftest.err conftest.
$ac_objext \
14546 conftest
$ac_exeext conftest.
$ac_ext
14548 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
14549 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
14550 if test $ac_cv_func_shl_load = yes; then
14551 lt_cv_dlopen
="shl_load"
14553 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
14554 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
14555 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
14556 echo $ECHO_N "(cached) $ECHO_C" >&6
14558 ac_check_lib_save_LIBS
=$LIBS
14560 cat >conftest.
$ac_ext <<_ACEOF
14563 cat confdefs.h
>>conftest.
$ac_ext
14564 cat >>conftest.
$ac_ext <<_ACEOF
14565 /* end confdefs.h. */
14567 /* Override any gcc2 internal prototype to avoid an error. */
14571 /* We use char because int might match the return type of a gcc2
14572 builtin and then its argument prototype would still apply. */
14582 rm -f conftest.
$ac_objext conftest
$ac_exeext
14583 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14584 (eval $ac_link) 2>conftest.er1
14586 grep -v '^ *+' conftest.er1
>conftest.err
14588 cat conftest.err
>&5
14589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14590 (exit $ac_status); } &&
14591 { ac_try
='test -z "$ac_c_werror_flag"
14592 || test ! -s conftest.err'
14593 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14594 (eval $ac_try) 2>&5
14596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14597 (exit $ac_status); }; } &&
14598 { ac_try
='test -s conftest$ac_exeext'
14599 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14600 (eval $ac_try) 2>&5
14602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603 (exit $ac_status); }; }; then
14604 ac_cv_lib_dld_shl_load
=yes
14606 echo "$as_me: failed program was:" >&5
14607 sed 's/^/| /' conftest.
$ac_ext >&5
14609 ac_cv_lib_dld_shl_load
=no
14611 rm -f conftest.err conftest.
$ac_objext \
14612 conftest
$ac_exeext conftest.
$ac_ext
14613 LIBS
=$ac_check_lib_save_LIBS
14615 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
14616 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
14617 if test $ac_cv_lib_dld_shl_load = yes; then
14618 lt_cv_dlopen
="shl_load" lt_cv_dlopen_libs
="-dld"
14620 echo "$as_me:$LINENO: checking for dlopen" >&5
14621 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
14622 if test "${ac_cv_func_dlopen+set}" = set; then
14623 echo $ECHO_N "(cached) $ECHO_C" >&6
14625 cat >conftest.
$ac_ext <<_ACEOF
14628 cat confdefs.h
>>conftest.
$ac_ext
14629 cat >>conftest.
$ac_ext <<_ACEOF
14630 /* end confdefs.h. */
14631 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
14632 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14633 #define dlopen innocuous_dlopen
14635 /* System header to define __stub macros and hopefully few prototypes,
14636 which can conflict with char dlopen (); below.
14637 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14638 <limits.h> exists even on freestanding compilers. */
14641 # include <limits.h>
14643 # include <assert.h>
14648 /* Override any gcc2 internal prototype to avoid an error. */
14653 /* We use char because int might match the return type of a gcc2
14654 builtin and then its argument prototype would still apply. */
14656 /* The GNU C library defines this for functions which it implements
14657 to always fail with ENOSYS. Some functions are actually named
14658 something starting with __ and the normal name is an alias. */
14659 #if defined (__stub_dlopen) || defined (__stub___dlopen)
14662 char (*f) () = dlopen;
14671 return f != dlopen;
14676 rm -f conftest.
$ac_objext conftest
$ac_exeext
14677 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14678 (eval $ac_link) 2>conftest.er1
14680 grep -v '^ *+' conftest.er1
>conftest.err
14682 cat conftest.err
>&5
14683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14684 (exit $ac_status); } &&
14685 { ac_try
='test -z "$ac_c_werror_flag"
14686 || test ! -s conftest.err'
14687 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14688 (eval $ac_try) 2>&5
14690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14691 (exit $ac_status); }; } &&
14692 { ac_try
='test -s conftest$ac_exeext'
14693 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14694 (eval $ac_try) 2>&5
14696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14697 (exit $ac_status); }; }; then
14698 ac_cv_func_dlopen
=yes
14700 echo "$as_me: failed program was:" >&5
14701 sed 's/^/| /' conftest.
$ac_ext >&5
14703 ac_cv_func_dlopen
=no
14705 rm -f conftest.err conftest.
$ac_objext \
14706 conftest
$ac_exeext conftest.
$ac_ext
14708 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
14709 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
14710 if test $ac_cv_func_dlopen = yes; then
14711 lt_cv_dlopen
="dlopen"
14713 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
14714 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
14715 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
14716 echo $ECHO_N "(cached) $ECHO_C" >&6
14718 ac_check_lib_save_LIBS
=$LIBS
14720 cat >conftest.
$ac_ext <<_ACEOF
14723 cat confdefs.h
>>conftest.
$ac_ext
14724 cat >>conftest.
$ac_ext <<_ACEOF
14725 /* end confdefs.h. */
14727 /* Override any gcc2 internal prototype to avoid an error. */
14731 /* We use char because int might match the return type of a gcc2
14732 builtin and then its argument prototype would still apply. */
14742 rm -f conftest.
$ac_objext conftest
$ac_exeext
14743 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14744 (eval $ac_link) 2>conftest.er1
14746 grep -v '^ *+' conftest.er1
>conftest.err
14748 cat conftest.err
>&5
14749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14750 (exit $ac_status); } &&
14751 { ac_try
='test -z "$ac_c_werror_flag"
14752 || test ! -s conftest.err'
14753 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14754 (eval $ac_try) 2>&5
14756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14757 (exit $ac_status); }; } &&
14758 { ac_try
='test -s conftest$ac_exeext'
14759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14760 (eval $ac_try) 2>&5
14762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14763 (exit $ac_status); }; }; then
14764 ac_cv_lib_dl_dlopen
=yes
14766 echo "$as_me: failed program was:" >&5
14767 sed 's/^/| /' conftest.
$ac_ext >&5
14769 ac_cv_lib_dl_dlopen
=no
14771 rm -f conftest.err conftest.
$ac_objext \
14772 conftest
$ac_exeext conftest.
$ac_ext
14773 LIBS
=$ac_check_lib_save_LIBS
14775 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14776 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14777 if test $ac_cv_lib_dl_dlopen = yes; then
14778 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-ldl"
14780 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14781 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14782 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14783 echo $ECHO_N "(cached) $ECHO_C" >&6
14785 ac_check_lib_save_LIBS
=$LIBS
14786 LIBS
="-lsvld $LIBS"
14787 cat >conftest.
$ac_ext <<_ACEOF
14790 cat confdefs.h
>>conftest.
$ac_ext
14791 cat >>conftest.
$ac_ext <<_ACEOF
14792 /* end confdefs.h. */
14794 /* Override any gcc2 internal prototype to avoid an error. */
14798 /* We use char because int might match the return type of a gcc2
14799 builtin and then its argument prototype would still apply. */
14809 rm -f conftest.
$ac_objext conftest
$ac_exeext
14810 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14811 (eval $ac_link) 2>conftest.er1
14813 grep -v '^ *+' conftest.er1
>conftest.err
14815 cat conftest.err
>&5
14816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14817 (exit $ac_status); } &&
14818 { ac_try
='test -z "$ac_c_werror_flag"
14819 || test ! -s conftest.err'
14820 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14821 (eval $ac_try) 2>&5
14823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14824 (exit $ac_status); }; } &&
14825 { ac_try
='test -s conftest$ac_exeext'
14826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14827 (eval $ac_try) 2>&5
14829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14830 (exit $ac_status); }; }; then
14831 ac_cv_lib_svld_dlopen
=yes
14833 echo "$as_me: failed program was:" >&5
14834 sed 's/^/| /' conftest.
$ac_ext >&5
14836 ac_cv_lib_svld_dlopen
=no
14838 rm -f conftest.err conftest.
$ac_objext \
14839 conftest
$ac_exeext conftest.
$ac_ext
14840 LIBS
=$ac_check_lib_save_LIBS
14842 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14843 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14844 if test $ac_cv_lib_svld_dlopen = yes; then
14845 lt_cv_dlopen
="dlopen" lt_cv_dlopen_libs
="-lsvld"
14847 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14848 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14849 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14850 echo $ECHO_N "(cached) $ECHO_C" >&6
14852 ac_check_lib_save_LIBS
=$LIBS
14854 cat >conftest.
$ac_ext <<_ACEOF
14857 cat confdefs.h
>>conftest.
$ac_ext
14858 cat >>conftest.
$ac_ext <<_ACEOF
14859 /* end confdefs.h. */
14861 /* Override any gcc2 internal prototype to avoid an error. */
14865 /* We use char because int might match the return type of a gcc2
14866 builtin and then its argument prototype would still apply. */
14876 rm -f conftest.
$ac_objext conftest
$ac_exeext
14877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14878 (eval $ac_link) 2>conftest.er1
14880 grep -v '^ *+' conftest.er1
>conftest.err
14882 cat conftest.err
>&5
14883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14884 (exit $ac_status); } &&
14885 { ac_try
='test -z "$ac_c_werror_flag"
14886 || test ! -s conftest.err'
14887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14888 (eval $ac_try) 2>&5
14890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14891 (exit $ac_status); }; } &&
14892 { ac_try
='test -s conftest$ac_exeext'
14893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14894 (eval $ac_try) 2>&5
14896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14897 (exit $ac_status); }; }; then
14898 ac_cv_lib_dld_dld_link
=yes
14900 echo "$as_me: failed program was:" >&5
14901 sed 's/^/| /' conftest.
$ac_ext >&5
14903 ac_cv_lib_dld_dld_link
=no
14905 rm -f conftest.err conftest.
$ac_objext \
14906 conftest
$ac_exeext conftest.
$ac_ext
14907 LIBS
=$ac_check_lib_save_LIBS
14909 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14910 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14911 if test $ac_cv_lib_dld_dld_link = yes; then
14912 lt_cv_dlopen
="dld_link" lt_cv_dlopen_libs
="-dld"
14933 if test "x$lt_cv_dlopen" != xno
; then
14939 case $lt_cv_dlopen in
14941 save_CPPFLAGS
="$CPPFLAGS"
14942 test "x$ac_cv_header_dlfcn_h" = xyes
&& CPPFLAGS
="$CPPFLAGS -DHAVE_DLFCN_H"
14944 save_LDFLAGS
="$LDFLAGS"
14945 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $export_dynamic_flag_spec\"
14948 LIBS
="$lt_cv_dlopen_libs $LIBS"
14950 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14951 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14952 if test "${lt_cv_dlopen_self+set}" = set; then
14953 echo $ECHO_N "(cached) $ECHO_C" >&6
14955 if test "$cross_compiling" = yes; then :
14956 lt_cv_dlopen_self
=cross
14958 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
14959 lt_status
=$lt_dlunknown
14960 cat > conftest.
$ac_ext <<EOF
14961 #line 14961 "configure"
14962 #include "confdefs.h"
14971 # define LT_DLGLOBAL RTLD_GLOBAL
14974 # define LT_DLGLOBAL DL_GLOBAL
14976 # define LT_DLGLOBAL 0
14980 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14981 find out it does not work in some platform. */
14982 #ifndef LT_DLLAZY_OR_NOW
14984 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14987 # define LT_DLLAZY_OR_NOW DL_LAZY
14990 # define LT_DLLAZY_OR_NOW RTLD_NOW
14993 # define LT_DLLAZY_OR_NOW DL_NOW
14995 # define LT_DLLAZY_OR_NOW 0
15003 extern "C" void exit (int);
15006 void fnord() { int i=42;}
15009 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15010 int status = $lt_dlunknown;
15014 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15015 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15016 /* dlclose (self); */
15024 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15025 (eval $ac_link) 2>&5
15027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15028 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
15029 (.
/conftest
; exit; ) >&5 2>/dev
/null
15031 case x
$lt_status in
15032 x
$lt_dlno_uscore) lt_cv_dlopen_self
=yes ;;
15033 x
$lt_dlneed_uscore) lt_cv_dlopen_self
=yes ;;
15034 x
$lt_dlunknown|x
*) lt_cv_dlopen_self
=no
;;
15037 # compilation failed
15038 lt_cv_dlopen_self
=no
15045 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
15046 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
15048 if test "x$lt_cv_dlopen_self" = xyes
; then
15049 wl
=$lt_prog_compiler_wl eval LDFLAGS
=\"\
$LDFLAGS $lt_prog_compiler_static\"
15050 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
15051 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
15052 if test "${lt_cv_dlopen_self_static+set}" = set; then
15053 echo $ECHO_N "(cached) $ECHO_C" >&6
15055 if test "$cross_compiling" = yes; then :
15056 lt_cv_dlopen_self_static
=cross
15058 lt_dlunknown
=0; lt_dlno_uscore
=1; lt_dlneed_uscore
=2
15059 lt_status
=$lt_dlunknown
15060 cat > conftest.
$ac_ext <<EOF
15061 #line 15061 "configure"
15062 #include "confdefs.h"
15071 # define LT_DLGLOBAL RTLD_GLOBAL
15074 # define LT_DLGLOBAL DL_GLOBAL
15076 # define LT_DLGLOBAL 0
15080 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
15081 find out it does not work in some platform. */
15082 #ifndef LT_DLLAZY_OR_NOW
15084 # define LT_DLLAZY_OR_NOW RTLD_LAZY
15087 # define LT_DLLAZY_OR_NOW DL_LAZY
15090 # define LT_DLLAZY_OR_NOW RTLD_NOW
15093 # define LT_DLLAZY_OR_NOW DL_NOW
15095 # define LT_DLLAZY_OR_NOW 0
15103 extern "C" void exit (int);
15106 void fnord() { int i=42;}
15109 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
15110 int status = $lt_dlunknown;
15114 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
15115 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
15116 /* dlclose (self); */
15124 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15125 (eval $ac_link) 2>&5
15127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128 (exit $ac_status); } && test -s conftest
${ac_exeext} 2>/dev
/null
; then
15129 (.
/conftest
; exit; ) >&5 2>/dev
/null
15131 case x
$lt_status in
15132 x
$lt_dlno_uscore) lt_cv_dlopen_self_static
=yes ;;
15133 x
$lt_dlneed_uscore) lt_cv_dlopen_self_static
=yes ;;
15134 x
$lt_dlunknown|x
*) lt_cv_dlopen_self_static
=no
;;
15137 # compilation failed
15138 lt_cv_dlopen_self_static
=no
15145 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
15146 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
15149 CPPFLAGS
="$save_CPPFLAGS"
15150 LDFLAGS
="$save_LDFLAGS"
15155 case $lt_cv_dlopen_self in
15156 yes|no
) enable_dlopen_self
=$lt_cv_dlopen_self ;;
15157 *) enable_dlopen_self
=unknown
;;
15160 case $lt_cv_dlopen_self_static in
15161 yes|no
) enable_dlopen_self_static
=$lt_cv_dlopen_self_static ;;
15162 *) enable_dlopen_self_static
=unknown
;;
15167 # Report which library types will actually be built
15168 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
15169 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
15170 echo "$as_me:$LINENO: result: $can_build_shared" >&5
15171 echo "${ECHO_T}$can_build_shared" >&6
15173 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
15174 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
15175 test "$can_build_shared" = "no" && enable_shared
=no
15177 # On AIX, shared libraries and static libraries use the same namespace, and
15178 # are all built from PIC.
15181 test "$enable_shared" = yes && enable_static
=no
15182 if test -n "$RANLIB"; then
15183 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
15184 postinstall_cmds
='$RANLIB $lib'
15189 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
15190 test "$enable_shared" = yes && enable_static
=no
15194 echo "$as_me:$LINENO: result: $enable_shared" >&5
15195 echo "${ECHO_T}$enable_shared" >&6
15197 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
15198 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
15199 # Make sure either enable_shared or enable_static is yes.
15200 test "$enable_shared" = yes || enable_static
=yes
15201 echo "$as_me:$LINENO: result: $enable_static" >&5
15202 echo "${ECHO_T}$enable_static" >&6
15204 # The else clause should only fire when bootstrapping the
15205 # libtool distribution, otherwise you forgot to ship ltmain.sh
15206 # with your package, and you will get complaints that there are
15207 # no rules to generate ltmain.sh.
15208 if test -f "$ltmain"; then
15209 # See if we are running on zsh, and set the options which allow our commands through
15210 # without removal of \ escapes.
15211 if test -n "${ZSH_VERSION+set}" ; then
15212 setopt NO_GLOB_SUBST
15214 # Now quote all the things that may contain metacharacters while being
15215 # careful not to overquote the AC_SUBSTed values. We take copies of the
15216 # variables and quote the copies for generation of the libtool script.
15217 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
15219 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
15220 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
15221 deplibs_check_method reload_flag reload_cmds need_locks \
15222 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
15223 lt_cv_sys_global_symbol_to_c_name_address \
15224 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
15225 old_postinstall_cmds old_postuninstall_cmds \
15229 lt_prog_compiler_wl \
15230 lt_prog_compiler_pic \
15231 lt_prog_compiler_static \
15232 lt_prog_compiler_no_builtin_flag \
15233 export_dynamic_flag_spec \
15234 thread_safe_flag_spec \
15235 whole_archive_flag_spec \
15236 enable_shared_with_static_runtimes \
15238 old_archive_from_new_cmds \
15243 compiler_lib_search_path \
15245 archive_expsym_cmds \
15247 postuninstall_cmds \
15248 old_archive_from_expsyms_cmds \
15249 allow_undefined_flag \
15250 no_undefined_flag \
15251 export_symbols_cmds \
15252 hardcode_libdir_flag_spec \
15253 hardcode_libdir_flag_spec_ld \
15254 hardcode_libdir_separator \
15255 hardcode_automatic \
15257 module_expsym_cmds \
15258 lt_cv_prog_compiler_c_o \
15261 include_expsyms
; do
15264 old_archive_cmds | \
15265 old_archive_from_new_cmds | \
15267 archive_expsym_cmds | \
15269 module_expsym_cmds | \
15270 old_archive_from_expsyms_cmds | \
15271 export_symbols_cmds | \
15272 extract_expsyms_cmds | reload_cmds | finish_cmds | \
15273 postinstall_cmds | postuninstall_cmds | \
15274 old_postinstall_cmds | old_postuninstall_cmds | \
15275 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
15276 # Double-quote double-evaled strings.
15277 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
15280 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
15286 *'\$0 --fallback-echo"')
15287 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
15291 cfgfile
="${ofile}T"
15292 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
15294 { echo "$as_me:$LINENO: creating $ofile" >&5
15295 echo "$as_me: creating $ofile" >&6;}
15297 cat <<__EOF__ >> "$cfgfile"
15300 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
15301 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
15302 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
15304 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007
15305 # Free Software Foundation, Inc.
15307 # This file is part of GNU Libtool:
15308 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
15310 # This program is free software; you can redistribute it and/or modify
15311 # it under the terms of the GNU General Public License as published by
15312 # the Free Software Foundation; either version 2 of the License, or
15313 # (at your option) any later version.
15315 # This program is distributed in the hope that it will be useful, but
15316 # WITHOUT ANY WARRANTY; without even the implied warranty of
15317 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15318 # General Public License for more details.
15320 # You should have received a copy of the GNU General Public License
15321 # along with this program; if not, write to the Free Software
15322 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15324 # As a special exception to the GNU General Public License, if you
15325 # distribute this file as part of a program that contains a
15326 # configuration script generated by Autoconf, you may include it under
15327 # the same distribution terms that you use for the rest of that program.
15329 # A sed program that does not truncate output.
15332 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
15333 Xsed="$SED -e 1s/^X//"
15335 # The HP-UX ksh and POSIX shell print the target directory to stdout
15336 # if CDPATH is set.
15337 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15339 # The names of the tagged configurations supported by this script.
15342 # ### BEGIN LIBTOOL CONFIG
15344 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
15346 # Shell to use when invoking shell scripts.
15349 # Whether or not to build shared libraries.
15350 build_libtool_libs=$enable_shared
15352 # Whether or not to build static libraries.
15353 build_old_libs=$enable_static
15355 # Whether or not to add -lc for building shared libraries.
15356 build_libtool_need_lc=$archive_cmds_need_lc
15358 # Whether or not to disallow shared libs when runtime libs are static
15359 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
15361 # Whether or not to optimize for fast installation.
15362 fast_install=$enable_fast_install
15365 host_alias=$host_alias
15369 # The build system.
15370 build_alias=$build_alias
15374 # An echo program that does not interpret backslashes.
15379 AR_FLAGS=$lt_AR_FLAGS
15384 # LTCC compiler flags.
15385 LTCFLAGS=$lt_LTCFLAGS
15387 # A language-specific compiler.
15390 # Is the compiler the GNU C compiler?
15396 # The linker used to build libraries.
15399 # Whether we need hard or soft links.
15402 # A BSD-compatible nm program.
15405 # A symbol stripping program
15408 # Used to examine libraries when file_magic_cmd begins "file"
15409 MAGIC_CMD=$MAGIC_CMD
15411 # Used on cygwin: DLL creation program.
15414 # Used on cygwin: object dumper.
15417 # Used on cygwin: assembler.
15420 # The name of the directory that contains temporary libtool files.
15423 # How to create reloadable object files.
15424 reload_flag=$lt_reload_flag
15425 reload_cmds=$lt_reload_cmds
15427 # How to pass a linker flag through the compiler.
15428 wl=$lt_lt_prog_compiler_wl
15430 # Object file suffix (normally "o").
15431 objext="$ac_objext"
15433 # Old archive suffix (normally "a").
15436 # Shared library suffix (normally ".so").
15437 shrext_cmds='$shrext_cmds'
15439 # Executable file suffix (normally "").
15442 # Additional compiler flags for building library objects.
15443 pic_flag=$lt_lt_prog_compiler_pic
15446 # What is the maximum length of a command?
15447 max_cmd_len=$lt_cv_sys_max_cmd_len
15449 # Does compiler simultaneously support -c and -o options?
15450 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
15452 # Must we lock files when doing compilation?
15453 need_locks=$lt_need_locks
15455 # Do we need the lib prefix for modules?
15456 need_lib_prefix=$need_lib_prefix
15458 # Do we need a version for libraries?
15459 need_version=$need_version
15461 # Whether dlopen is supported.
15462 dlopen_support=$enable_dlopen
15464 # Whether dlopen of programs is supported.
15465 dlopen_self=$enable_dlopen_self
15467 # Whether dlopen of statically linked programs is supported.
15468 dlopen_self_static=$enable_dlopen_self_static
15470 # Compiler flag to prevent dynamic linking.
15471 link_static_flag=$lt_lt_prog_compiler_static
15473 # Compiler flag to turn off builtin functions.
15474 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
15476 # Compiler flag to allow reflexive dlopens.
15477 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
15479 # Compiler flag to generate shared objects directly from archives.
15480 whole_archive_flag_spec=$lt_whole_archive_flag_spec
15482 # Compiler flag to generate thread-safe objects.
15483 thread_safe_flag_spec=$lt_thread_safe_flag_spec
15485 # Library versioning type.
15486 version_type=$version_type
15488 # Format of library name prefix.
15489 libname_spec=$lt_libname_spec
15491 # List of archive names. First name is the real one, the rest are links.
15492 # The last name is the one that the linker finds with -lNAME.
15493 library_names_spec=$lt_library_names_spec
15495 # The coded name of the library, if different from the real name.
15496 soname_spec=$lt_soname_spec
15498 # Commands used to build and install an old-style archive.
15500 old_archive_cmds=$lt_old_archive_cmds
15501 old_postinstall_cmds=$lt_old_postinstall_cmds
15502 old_postuninstall_cmds=$lt_old_postuninstall_cmds
15504 # Create an old-style archive from a shared archive.
15505 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
15507 # Create a temporary old-style archive to link instead of a shared archive.
15508 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
15510 # Commands used to build and install a shared archive.
15511 archive_cmds=$lt_archive_cmds
15512 archive_expsym_cmds=$lt_archive_expsym_cmds
15513 postinstall_cmds=$lt_postinstall_cmds
15514 postuninstall_cmds=$lt_postuninstall_cmds
15516 # Commands used to build a loadable module (assumed same as above if empty)
15517 module_cmds=$lt_module_cmds
15518 module_expsym_cmds=$lt_module_expsym_cmds
15520 # Commands to strip libraries.
15521 old_striplib=$lt_old_striplib
15522 striplib=$lt_striplib
15524 # Dependencies to place before the objects being linked to create a
15526 predep_objects=$lt_predep_objects
15528 # Dependencies to place after the objects being linked to create a
15530 postdep_objects=$lt_postdep_objects
15532 # Dependencies to place before the objects being linked to create a
15534 predeps=$lt_predeps
15536 # Dependencies to place after the objects being linked to create a
15538 postdeps=$lt_postdeps
15540 # The library search path used internally by the compiler when linking
15541 # a shared library.
15542 compiler_lib_search_path=$lt_compiler_lib_search_path
15544 # Method to check whether dependent libraries are shared objects.
15545 deplibs_check_method=$lt_deplibs_check_method
15547 # Command to use when deplibs_check_method == file_magic.
15548 file_magic_cmd=$lt_file_magic_cmd
15550 # Flag that allows shared libraries with undefined symbols to be built.
15551 allow_undefined_flag=$lt_allow_undefined_flag
15553 # Flag that forces no undefined symbols.
15554 no_undefined_flag=$lt_no_undefined_flag
15556 # Commands used to finish a libtool library installation in a directory.
15557 finish_cmds=$lt_finish_cmds
15559 # Same as above, but a single script fragment to be evaled but not shown.
15560 finish_eval=$lt_finish_eval
15562 # Take the output of nm and produce a listing of raw symbols and C names.
15563 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
15565 # Transform the output of nm in a proper C declaration
15566 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
15568 # Transform the output of nm in a C name address pair
15569 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
15571 # This is the shared library runtime path variable.
15572 runpath_var=$runpath_var
15574 # This is the shared library path variable.
15575 shlibpath_var=$shlibpath_var
15577 # Is shlibpath searched before the hard-coded library search path?
15578 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
15580 # How to hardcode a shared library path into an executable.
15581 hardcode_action=$hardcode_action
15583 # Whether we should hardcode library paths into libraries.
15584 hardcode_into_libs=$hardcode_into_libs
15586 # Flag to hardcode \$libdir into a binary during linking.
15587 # This must work even if \$libdir does not exist.
15588 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
15590 # If ld is used when linking, flag to hardcode \$libdir into
15591 # a binary during linking. This must work even if \$libdir does
15593 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
15595 # Whether we need a single -rpath flag with a separated argument.
15596 hardcode_libdir_separator=$lt_hardcode_libdir_separator
15598 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
15599 # resulting binary.
15600 hardcode_direct=$hardcode_direct
15602 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
15603 # resulting binary.
15604 hardcode_minus_L=$hardcode_minus_L
15606 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
15607 # the resulting binary.
15608 hardcode_shlibpath_var=$hardcode_shlibpath_var
15610 # Set to yes if building a shared library automatically hardcodes DIR into the library
15611 # and all subsequent libraries and executables linked against it.
15612 hardcode_automatic=$hardcode_automatic
15614 # Variables whose values should be saved in libtool wrapper scripts and
15615 # restored at relink time.
15616 variables_saved_for_relink="$variables_saved_for_relink"
15618 # Whether libtool must link a program against all its dependency libraries.
15619 link_all_deplibs=$link_all_deplibs
15621 # Compile-time system search path for libraries
15622 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
15624 # Run-time system search path for libraries
15625 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
15627 # Fix the shell variable \$srcfile for the compiler.
15628 fix_srcfile_path=$lt_fix_srcfile_path
15630 # Set to yes if exported symbols are required.
15631 always_export_symbols=$always_export_symbols
15633 # The commands to list exported symbols.
15634 export_symbols_cmds=$lt_export_symbols_cmds
15636 # The commands to extract the exported symbol list from a shared archive.
15637 extract_expsyms_cmds=$lt_extract_expsyms_cmds
15639 # Symbols that should not be listed in the preloaded symbols.
15640 exclude_expsyms=$lt_exclude_expsyms
15642 # Symbols that must always be exported.
15643 include_expsyms=$lt_include_expsyms
15645 # ### END LIBTOOL CONFIG
15652 cat <<\EOF
>> "$cfgfile"
15654 # AIX sometimes has problems with the GCC collect2 program. For some
15655 # reason, if we set the COLLECT_NAMES environment variable, the problems
15656 # vanish in a puff of smoke.
15657 if test "X${COLLECT_NAMES+set}" != Xset
; then
15659 export COLLECT_NAMES
15665 # We use sed instead of cat because bash on DJGPP gets confused if
15666 # if finds mixed CR/LF and LF-only lines. Since sed operates in
15667 # text mode, it properly converts lines to CR/LF. This bash problem
15668 # is reportedly fixed, but why not run on old versions too?
15669 sed '$q' "$ltmain" >> "$cfgfile" ||
(rm -f "$cfgfile"; exit 1)
15671 mv -f "$cfgfile" "$ofile" || \
15672 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
15676 # If there is no Makefile yet, we rely on a make rule to execute
15677 # `config.status --recheck' to rerun these tests and create the
15678 # libtool script then.
15679 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
15680 if test -f "$ltmain_in"; then
15681 test -f Makefile
&& make "$ltmain"
15687 ac_cpp
='$CPP $CPPFLAGS'
15688 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15689 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15690 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
15695 # Check whether --with-tags or --without-tags was given.
15696 if test "${with_tags+set}" = set; then
15697 withval
="$with_tags"
15698 tagnames
="$withval"
15701 if test -f "$ltmain" && test -n "$tagnames"; then
15702 if test ! -f "${ofile}"; then
15703 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
15704 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
15707 if test -z "$LTCC"; then
15708 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
15709 if test -z "$LTCC"; then
15710 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
15711 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
15713 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
15714 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
15717 if test -z "$LTCFLAGS"; then
15718 eval "`$SHELL ${ofile} --config | grep '^LTCFLAGS='`"
15721 # Extract list of available tagged configurations in $ofile.
15722 # Note that this assumes the entire list is on one line.
15723 available_tags
=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
15725 lt_save_ifs
="$IFS"; IFS
="${IFS}$PATH_SEPARATOR,"
15726 for tagname
in $tagnames; do
15728 # Check whether tagname contains only valid characters
15729 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
15731 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
15732 echo "$as_me: error: invalid tag name: $tagname" >&2;}
15733 { (exit 1); exit 1; }; }
15737 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev
/null
15739 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15740 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15741 { (exit 1); exit 1; }; }
15744 # Update the list of available tags.
15745 if test -n "$tagname"; then
15746 echo appending configuration tag
\"$tagname\" to
$ofile
15750 if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
15751 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
15752 (test "X$CXX" != "Xg++"))) ; then
15754 ac_cpp
='$CXXCPP $CPPFLAGS'
15755 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15756 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15757 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
15762 archive_cmds_need_lc_CXX
=no
15763 allow_undefined_flag_CXX
=
15764 always_export_symbols_CXX
=no
15765 archive_expsym_cmds_CXX
=
15766 export_dynamic_flag_spec_CXX
=
15767 hardcode_direct_CXX
=no
15768 hardcode_libdir_flag_spec_CXX
=
15769 hardcode_libdir_flag_spec_ld_CXX
=
15770 hardcode_libdir_separator_CXX
=
15771 hardcode_minus_L_CXX
=no
15772 hardcode_shlibpath_var_CXX
=unsupported
15773 hardcode_automatic_CXX
=no
15775 module_expsym_cmds_CXX
=
15776 link_all_deplibs_CXX
=unknown
15777 old_archive_cmds_CXX
=$old_archive_cmds
15778 no_undefined_flag_CXX
=
15779 whole_archive_flag_spec_CXX
=
15780 enable_shared_with_static_runtimes_CXX
=no
15782 # Dependencies to place before and after the object being linked:
15783 predep_objects_CXX
=
15784 postdep_objects_CXX
=
15787 compiler_lib_search_path_CXX
=
15789 # Source file extension for C++ test sources.
15792 # Object file extension for compiled C++ test sources.
15796 # Code to be used in simple compile tests
15797 lt_simple_compile_test_code
="int some_variable = 0;"
15799 # Code to be used in simple link tests
15800 lt_simple_link_test_code
='int main(int, char *[]) { return(0); }'
15802 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15804 # If no C compiler was specified, use CC.
15807 # If no C compiler flags were specified, use CFLAGS.
15808 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
15810 # Allow CC to be a program name with arguments.
15814 # save warnings/boilerplate of simple test code
15815 ac_outfile
=conftest.
$ac_objext
15816 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
15817 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
15818 _lt_compiler_boilerplate
=`cat conftest.err`
15821 ac_outfile
=conftest.
$ac_objext
15822 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
15823 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
15824 _lt_linker_boilerplate
=`cat conftest.err`
15828 # Allow CC to be a program name with arguments.
15833 lt_save_with_gnu_ld
=$with_gnu_ld
15834 lt_save_path_LD
=$lt_cv_path_LD
15835 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15836 lt_cv_prog_gnu_ld
=$lt_cv_prog_gnu_ldcxx
15838 $as_unset lt_cv_prog_gnu_ld
15840 if test -n "${lt_cv_path_LDCXX+set}"; then
15841 lt_cv_path_LD
=$lt_cv_path_LDCXX
15843 $as_unset lt_cv_path_LD
15845 test -z "${LDCXX+set}" || LD
=$LDCXX
15849 for cc_temp
in $compiler""; do
15851 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
15852 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
15857 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
15860 # We don't want -fno-exception wen compiling C++ code, so set the
15861 # no_builtin_flag separately
15862 if test "$GXX" = yes; then
15863 lt_prog_compiler_no_builtin_flag_CXX
=' -fno-builtin'
15865 lt_prog_compiler_no_builtin_flag_CXX
=
15868 if test "$GXX" = yes; then
15869 # Set up default GNU C++ configuration
15872 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15873 if test "${with_gnu_ld+set}" = set; then
15874 withval
="$with_gnu_ld"
15875 test "$withval" = no || with_gnu_ld
=yes
15880 if test "$GCC" = yes; then
15881 # Check if gcc -print-prog-name=ld gives a path.
15882 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15883 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15886 # gcc leaves a trailing carriage return which upsets mingw
15887 ac_prog
=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15889 ac_prog
=`($CC -print-prog-name=ld) 2>&5` ;;
15892 # Accept absolute paths.
15894 re_direlt
='/[^/][^/]*/\.\./'
15895 # Canonicalize the pathname of ld
15896 ac_prog
=`echo $ac_prog| $SED 's%\\\\%/%g'`
15897 while echo $ac_prog |
grep "$re_direlt" > /dev
/null
2>&1; do
15898 ac_prog
=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15900 test -z "$LD" && LD
="$ac_prog"
15903 # If it fails, then pretend we aren't using GCC.
15907 # If it is relative, then search for the first ld in PATH.
15908 with_gnu_ld
=unknown
15911 elif test "$with_gnu_ld" = yes; then
15912 echo "$as_me:$LINENO: checking for GNU ld" >&5
15913 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15915 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15916 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15918 if test "${lt_cv_path_LD+set}" = set; then
15919 echo $ECHO_N "(cached) $ECHO_C" >&6
15921 if test -z "$LD"; then
15922 lt_save_ifs
="$IFS"; IFS
=$PATH_SEPARATOR
15923 for ac_dir
in $PATH; do
15925 test -z "$ac_dir" && ac_dir
=.
15926 if test -f "$ac_dir/$ac_prog" ||
test -f "$ac_dir/$ac_prog$ac_exeext"; then
15927 lt_cv_path_LD
="$ac_dir/$ac_prog"
15928 # Check to see if the program is GNU ld. I'd rather use --version,
15929 # but apparently some variants of GNU ld only accept -v.
15930 # Break only if it was the GNU/non-GNU ld that we prefer.
15931 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15932 *GNU
* |
*'with BFD'*)
15933 test "$with_gnu_ld" != no
&& break
15936 test "$with_gnu_ld" != yes && break
15943 lt_cv_path_LD
="$LD" # Let the user override the test with a path.
15947 LD
="$lt_cv_path_LD"
15948 if test -n "$LD"; then
15949 echo "$as_me:$LINENO: result: $LD" >&5
15950 echo "${ECHO_T}$LD" >&6
15952 echo "$as_me:$LINENO: result: no" >&5
15953 echo "${ECHO_T}no" >&6
15955 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15956 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15957 { (exit 1); exit 1; }; }
15958 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15959 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15960 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15961 echo $ECHO_N "(cached) $ECHO_C" >&6
15963 # I'd rather use --version here, but apparently some GNU lds only accept -v.
15964 case `$LD -v 2>&1 </dev/null` in
15965 *GNU
* |
*'with BFD'*)
15966 lt_cv_prog_gnu_ld
=yes
15969 lt_cv_prog_gnu_ld
=no
15973 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15974 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15975 with_gnu_ld
=$lt_cv_prog_gnu_ld
15979 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15980 # archiving commands below assume that GNU ld is being used.
15981 if test "$with_gnu_ld" = yes; then
15982 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15983 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'
15985 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
15986 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
15988 # If archive_cmds runs LD, not CC, wlarc should be empty
15989 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15990 # investigate it a little bit more. (MM)
15993 # ancient GNU ld didn't support --whole-archive et. al.
15994 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15995 grep 'no-whole-archive' > /dev
/null
; then
15996 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15998 whole_archive_flag_spec_CXX
=
16004 # A generic and very simple default shared library creation
16005 # command for GNU C++ for the case where it uses the native
16006 # linker, instead of GNU ld. If possible, this setting should
16007 # overridden to take advantage of the native linker features on
16008 # the platform it is being used on.
16009 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16012 # Commands to make compiler produce verbose output that lists
16013 # what "hidden" libraries, object files and flags are used when
16014 # linking a shared library.
16015 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16023 # PORTME: fill in a description of your system's C++ link characteristics
16024 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16025 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16029 # FIXME: insert proper C++ library support
16033 if test "$host_cpu" = ia64
; then
16034 # On IA64, the linker does run time linking by default, so we don't
16035 # have to do anything special.
16036 aix_use_runtimelinking
=no
16037 exp_sym_flag
='-Bexport'
16040 aix_use_runtimelinking
=no
16042 # Test if we are trying to use run time linking or normal
16043 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
16044 # need to do runtime linking.
16045 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
16046 for ld_flag
in $LDFLAGS; do
16049 aix_use_runtimelinking
=yes
16057 exp_sym_flag
='-bexport'
16058 no_entry_flag
='-bnoentry'
16061 # When large executables or shared objects are built, AIX ld can
16062 # have problems creating the table of contents. If linking a library
16063 # or program results in "error TOC overflow" add -mminimal-toc to
16064 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
16065 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
16067 archive_cmds_CXX
=''
16068 hardcode_direct_CXX
=yes
16069 hardcode_libdir_separator_CXX
=':'
16070 link_all_deplibs_CXX
=yes
16072 if test "$GXX" = yes; then
16073 case $host_os in aix4.
[012]|aix4.
[012].
*)
16074 # We only want to do this on AIX 4.2 and lower, the check
16075 # below for broken collect2 doesn't work under 4.3+
16076 collect2name
=`${CC} -print-prog-name=collect2`
16077 if test -f "$collect2name" && \
16078 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
16080 # We have reworked collect2
16083 # We have old collect2
16084 hardcode_direct_CXX
=unsupported
16085 # It fails to find uninstalled libraries when the uninstalled
16086 # path is not listed in the libpath. Setting hardcode_minus_L
16087 # to unsupported forces relinking
16088 hardcode_minus_L_CXX
=yes
16089 hardcode_libdir_flag_spec_CXX
='-L$libdir'
16090 hardcode_libdir_separator_CXX
=
16094 shared_flag
='-shared'
16095 if test "$aix_use_runtimelinking" = yes; then
16096 shared_flag
="$shared_flag "'${wl}-G'
16100 if test "$host_cpu" = ia64
; then
16101 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
16102 # chokes on -Wl,-G. The following line is correct:
16105 if test "$aix_use_runtimelinking" = yes; then
16106 shared_flag
='${wl}-G'
16108 shared_flag
='${wl}-bM:SRE'
16113 # It seems that -bexpall does not export symbols beginning with
16114 # underscore (_), so it is better to generate a list of symbols to export.
16115 always_export_symbols_CXX
=yes
16116 if test "$aix_use_runtimelinking" = yes; then
16117 # Warning - without using the other runtime loading flags (-brtl),
16118 # -berok will link without error, but may produce a broken library.
16119 allow_undefined_flag_CXX
='-berok'
16120 # Determine the default libpath from the value encoded in an empty executable.
16121 cat >conftest.
$ac_ext <<_ACEOF
16124 cat confdefs.h
>>conftest.
$ac_ext
16125 cat >>conftest.
$ac_ext <<_ACEOF
16126 /* end confdefs.h. */
16136 rm -f conftest.
$ac_objext conftest
$ac_exeext
16137 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16138 (eval $ac_link) 2>conftest.er1
16140 grep -v '^ *+' conftest.er1
>conftest.err
16142 cat conftest.err
>&5
16143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16144 (exit $ac_status); } &&
16145 { ac_try
='test -z "$ac_cxx_werror_flag"
16146 || test ! -s conftest.err'
16147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16148 (eval $ac_try) 2>&5
16150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16151 (exit $ac_status); }; } &&
16152 { ac_try
='test -s conftest$ac_exeext'
16153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16154 (eval $ac_try) 2>&5
16156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16157 (exit $ac_status); }; }; then
16159 lt_aix_libpath_sed
='
16160 /Import File Strings/,/^$/ {
16166 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16167 # Check for a 64-bit object if we didn't find anything.
16168 if test -z "$aix_libpath"; then
16169 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16172 echo "$as_me: failed program was:" >&5
16173 sed 's/^/| /' conftest.
$ac_ext >&5
16176 rm -f conftest.err conftest.
$ac_objext \
16177 conftest
$ac_exeext conftest.
$ac_ext
16178 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16180 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
16182 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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
16184 if test "$host_cpu" = ia64
; then
16185 hardcode_libdir_flag_spec_CXX
='${wl}-R $libdir:/usr/lib:/lib'
16186 allow_undefined_flag_CXX
="-z nodefs"
16187 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"
16189 # Determine the default libpath from the value encoded in an empty executable.
16190 cat >conftest.
$ac_ext <<_ACEOF
16193 cat confdefs.h
>>conftest.
$ac_ext
16194 cat >>conftest.
$ac_ext <<_ACEOF
16195 /* end confdefs.h. */
16205 rm -f conftest.
$ac_objext conftest
$ac_exeext
16206 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
16207 (eval $ac_link) 2>conftest.er1
16209 grep -v '^ *+' conftest.er1
>conftest.err
16211 cat conftest.err
>&5
16212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16213 (exit $ac_status); } &&
16214 { ac_try
='test -z "$ac_cxx_werror_flag"
16215 || test ! -s conftest.err'
16216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16217 (eval $ac_try) 2>&5
16219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16220 (exit $ac_status); }; } &&
16221 { ac_try
='test -s conftest$ac_exeext'
16222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
16223 (eval $ac_try) 2>&5
16225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226 (exit $ac_status); }; }; then
16228 lt_aix_libpath_sed
='
16229 /Import File Strings/,/^$/ {
16235 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16236 # Check for a 64-bit object if we didn't find anything.
16237 if test -z "$aix_libpath"; then
16238 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
16241 echo "$as_me: failed program was:" >&5
16242 sed 's/^/| /' conftest.
$ac_ext >&5
16245 rm -f conftest.err conftest.
$ac_objext \
16246 conftest
$ac_exeext conftest.
$ac_ext
16247 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
16249 hardcode_libdir_flag_spec_CXX
='${wl}-blibpath:$libdir:'"$aix_libpath"
16250 # Warning - without using the other run time loading flags,
16251 # -berok will link without error, but may produce a broken library.
16252 no_undefined_flag_CXX
=' ${wl}-bernotok'
16253 allow_undefined_flag_CXX
=' ${wl}-berok'
16254 # Exported symbols can be pulled into shared objects from archives
16255 whole_archive_flag_spec_CXX
='$convenience'
16256 archive_cmds_need_lc_CXX
=yes
16257 # This is similar to how AIX traditionally builds its shared libraries.
16258 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'
16264 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
16265 allow_undefined_flag_CXX
=unsupported
16266 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
16267 # support --undefined. This deserves some investigation. FIXME
16268 archive_cmds_CXX
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16275 case $cc_basename in
16277 # FIXME: insert proper C++ library support
16283 cygwin
* | mingw
* | pw32
*)
16284 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
16285 # as there is no search path for DLLs.
16286 hardcode_libdir_flag_spec_CXX
='-L$libdir'
16287 allow_undefined_flag_CXX
=unsupported
16288 always_export_symbols_CXX
=no
16289 enable_shared_with_static_runtimes_CXX
=yes
16291 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
16292 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'
16293 # If the export-symbols file already is a .def file (1st line
16294 # is EXPORTS), use it as is; otherwise, prepend...
16295 archive_expsym_cmds_CXX
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
16296 cp $export_symbols $output_objdir/$soname.def;
16298 echo EXPORTS > $output_objdir/$soname.def;
16299 cat $export_symbols >> $output_objdir/$soname.def;
16301 $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'
16306 darwin
* | rhapsody
*)
16308 rhapsody
* | darwin1.
[012])
16309 allow_undefined_flag_CXX
='${wl}-undefined ${wl}suppress'
16312 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
16313 allow_undefined_flag_CXX
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16315 case ${MACOSX_DEPLOYMENT_TARGET} in
16317 allow_undefined_flag_CXX
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
16320 allow_undefined_flag_CXX
='${wl}-undefined ${wl}dynamic_lookup'
16326 archive_cmds_need_lc_CXX
=no
16327 hardcode_direct_CXX
=no
16328 hardcode_automatic_CXX
=yes
16329 hardcode_shlibpath_var_CXX
=unsupported
16330 whole_archive_flag_spec_CXX
=''
16331 link_all_deplibs_CXX
=yes
16333 if test "$GXX" = yes ; then
16334 lt_int_apple_cc_single_mod
=no
16335 output_verbose_link_cmd
='echo'
16336 if $CC -dumpspecs 2>&1 |
$EGREP 'single_module' >/dev
/null
; then
16337 lt_int_apple_cc_single_mod
=yes
16339 if test "X$lt_int_apple_cc_single_mod" = Xyes
; then
16340 archive_cmds_CXX
='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
16342 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'
16344 module_cmds_CXX
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16345 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16346 if test "X$lt_int_apple_cc_single_mod" = Xyes
; then
16347 archive_expsym_cmds_CXX
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16349 archive_expsym_cmds_CXX
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "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~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16351 module_expsym_cmds_CXX
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16353 case $cc_basename in
16355 output_verbose_link_cmd
='echo'
16356 archive_cmds_CXX
='$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
16357 module_cmds_CXX
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
16358 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
16359 archive_expsym_cmds_CXX
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj ${wl}-single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16360 module_expsym_cmds_CXX
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
16370 case $cc_basename in
16372 # FIXME: insert proper C++ library support
16376 # Green Hills C++ Compiler
16377 # FIXME: insert proper C++ library support
16381 # FIXME: insert proper C++ library support
16387 # C++ shared libraries reported to be fairly broken before switch to ELF
16391 archive_cmds_need_lc_CXX
=no
16393 freebsd
* | dragonfly
*)
16394 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
16401 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
16402 hardcode_libdir_separator_CXX
=:
16403 export_dynamic_flag_spec_CXX
='${wl}-E'
16404 hardcode_direct_CXX
=yes
16405 hardcode_minus_L_CXX
=yes # Not in the search PATH,
16406 # but as the default
16407 # location of the library.
16409 case $cc_basename in
16411 # FIXME: insert proper C++ library support
16415 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'
16416 # Commands to make compiler produce verbose output that lists
16417 # what "hidden" libraries, object files and flags are used when
16418 # linking a shared library.
16420 # There doesn't appear to be a way to prevent this compiler from
16421 # explicitly linking system object files so we need to strip them
16422 # from the output so that they don't get included in the library
16424 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 $list'
16427 if test "$GXX" = yes; then
16428 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'
16430 # FIXME: insert proper C++ library support
16437 if test $with_gnu_ld = no
; then
16438 hardcode_libdir_flag_spec_CXX
='${wl}+b ${wl}$libdir'
16439 hardcode_libdir_separator_CXX
=:
16444 export_dynamic_flag_spec_CXX
='${wl}-E'
16450 hardcode_direct_CXX
=no
16451 hardcode_shlibpath_var_CXX
=no
16454 hardcode_direct_CXX
=yes
16455 hardcode_minus_L_CXX
=yes # Not in the search PATH,
16456 # but as the default
16457 # location of the library.
16461 case $cc_basename in
16463 # FIXME: insert proper C++ library support
16469 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16472 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16475 archive_cmds_CXX
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16478 # Commands to make compiler produce verbose output that lists
16479 # what "hidden" libraries, object files and flags are used when
16480 # linking a shared library.
16482 # There doesn't appear to be a way to prevent this compiler from
16483 # explicitly linking system object files so we need to strip them
16484 # from the output so that they don't get included in the library
16486 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 $list'
16489 if test "$GXX" = yes; then
16490 if test $with_gnu_ld = no
; then
16493 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16496 archive_cmds_CXX
='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16499 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'
16504 # FIXME: insert proper C++ library support
16511 hardcode_direct_CXX
=no
16512 hardcode_shlibpath_var_CXX
=no
16513 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
16514 export_dynamic_flag_spec_CXX
='${wl}-E'
16515 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
16516 # Instead, shared libraries are loaded at an image base (0x10000000 by
16517 # default) and relocated if they conflict, which is a slow very memory
16518 # consuming and fragmenting process. To avoid this, we pick a random,
16519 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
16520 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
16521 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'
16522 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'
16525 case $cc_basename in
16528 archive_cmds_CXX
='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16530 # Archives containing C++ object files must be created using
16531 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
16532 # necessary to make sure instantiated templates are included
16534 old_archive_cmds_CXX
='$CC -ar -WR,-u -o $oldlib $oldobjs'
16537 if test "$GXX" = yes; then
16538 if test "$with_gnu_ld" = no
; then
16539 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16541 archive_cmds_CXX
='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib'
16544 link_all_deplibs_CXX
=yes
16547 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
16548 hardcode_libdir_separator_CXX
=:
16550 linux
* | k
*bsd
*-gnu)
16551 case $cc_basename in
16553 # Kuck and Associates, Inc. (KAI) C++ Compiler
16555 # KCC will only create a shared library if the output file
16556 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16557 # to its proper name (with version) after linking.
16558 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'
16559 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'
16560 # Commands to make compiler produce verbose output that lists
16561 # what "hidden" libraries, object files and flags are used when
16562 # linking a shared library.
16564 # There doesn't appear to be a way to prevent this compiler from
16565 # explicitly linking system object files so we need to strip them
16566 # from the output so that they don't get included in the library
16568 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 $list'
16570 hardcode_libdir_flag_spec_CXX
='${wl}--rpath,$libdir'
16571 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
16573 # Archives containing C++ object files must be created using
16574 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16575 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
16580 # version 8.0 and above of icpc choke on multiply defined symbols
16581 # if we add $predep_objects and $postdep_objects, however 7.1 and
16582 # earlier do not add the objects themselves.
16583 case `$CC -V 2>&1` in
16585 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16586 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'
16588 *) # Version 8.0 or newer
16591 ia64
*) tmp_idyn
=' -i_dynamic';;
16593 archive_cmds_CXX
='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
16594 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'
16597 archive_cmds_need_lc_CXX
=no
16598 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
16599 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
16600 whole_archive_flag_spec_CXX
='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
16603 # Portland Group C++ compiler
16604 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
16605 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'
16607 hardcode_libdir_flag_spec_CXX
='${wl}--rpath ${wl}$libdir'
16608 export_dynamic_flag_spec_CXX
='${wl}--export-dynamic'
16609 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'
16613 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
16614 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'
16616 runpath_var
=LD_RUN_PATH
16617 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
16618 hardcode_libdir_separator_CXX
=:
16620 # Commands to make compiler produce verbose output that lists
16621 # what "hidden" libraries, object files and flags are used when
16622 # linking a shared library.
16624 # There doesn't appear to be a way to prevent this compiler from
16625 # explicitly linking system object files so we need to strip them
16626 # from the output so that they don't get included in the library
16628 output_verbose_link_cmd
='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "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 $list'
16631 case `$CC -V 2>&1 | sed 5q` in
16634 no_undefined_flag_CXX
=' -zdefs'
16635 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16636 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'
16637 hardcode_libdir_flag_spec_CXX
='-R$libdir'
16638 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'
16640 # Not sure whether something based on
16641 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
16643 output_verbose_link_cmd
='echo'
16645 # Archives containing C++ object files must be created using
16646 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16647 # necessary to make sure instantiated templates are included
16649 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
16656 # FIXME: insert proper C++ library support
16660 # FIXME: insert proper C++ library support
16664 case $cc_basename in
16666 # FIXME: insert proper C++ library support
16670 # FIXME: insert proper C++ library support
16676 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
16677 archive_cmds_CXX
='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
16679 hardcode_libdir_flag_spec_CXX
='-R$libdir'
16680 hardcode_direct_CXX
=yes
16681 hardcode_shlibpath_var_CXX
=no
16683 # Workaround some broken pre-1.5 toolchains
16684 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
16687 # C++ shared libraries are fairly broken
16691 if test -f /usr
/libexec
/ld.so
; then
16692 hardcode_direct_CXX
=yes
16693 hardcode_shlibpath_var_CXX
=no
16694 archive_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
16695 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
16696 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
16697 archive_expsym_cmds_CXX
='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
16698 export_dynamic_flag_spec_CXX
='${wl}-E'
16699 whole_archive_flag_spec_CXX
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
16701 output_verbose_link_cmd
='echo'
16707 case $cc_basename in
16709 # Kuck and Associates, Inc. (KAI) C++ Compiler
16711 # KCC will only create a shared library if the output file
16712 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16713 # to its proper name (with version) after linking.
16714 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'
16716 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
16717 hardcode_libdir_separator_CXX
=:
16719 # Archives containing C++ object files must be created using
16720 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
16721 old_archive_cmds_CXX
='$CC -Bstatic -o $oldlib $oldobjs'
16725 # Rational C++ 2.4.1
16726 # FIXME: insert proper C++ library support
16730 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
16731 archive_cmds_CXX
='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16733 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
16734 hardcode_libdir_separator_CXX
=:
16736 # Commands to make compiler produce verbose output that lists
16737 # what "hidden" libraries, object files and flags are used when
16738 # linking a shared library.
16740 # There doesn't appear to be a way to prevent this compiler from
16741 # explicitly linking system object files so we need to strip them
16742 # from the output so that they don't get included in the library
16744 output_verbose_link_cmd
='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "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 $list'
16747 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
16748 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
16749 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 ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16751 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
16752 hardcode_libdir_separator_CXX
=:
16754 # Commands to make compiler produce verbose output that lists
16755 # what "hidden" libraries, object files and flags are used when
16756 # linking a shared library.
16757 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16760 # FIXME: insert proper C++ library support
16767 case $cc_basename in
16769 # Kuck and Associates, Inc. (KAI) C++ Compiler
16771 # KCC will only create a shared library if the output file
16772 # ends with ".so" (or ".sl" for HP-UX), so rename the library
16773 # to its proper name (with version) after linking.
16774 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'
16776 hardcode_libdir_flag_spec_CXX
='${wl}-rpath,$libdir'
16777 hardcode_libdir_separator_CXX
=:
16779 # Archives containing C++ object files must be created using
16780 # the KAI C++ compiler.
16781 old_archive_cmds_CXX
='$CC -o $oldlib $oldobjs'
16784 # Rational C++ 2.4.1
16785 # FIXME: insert proper C++ library support
16789 allow_undefined_flag_CXX
=' -expect_unresolved \*'
16790 archive_cmds_CXX
='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
16791 archive_expsym_cmds_CXX
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
16792 echo "-hidden">> $lib.exp~
16793 $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 -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~
16796 hardcode_libdir_flag_spec_CXX
='-rpath $libdir'
16797 hardcode_libdir_separator_CXX
=:
16799 # Commands to make compiler produce verbose output that lists
16800 # what "hidden" libraries, object files and flags are used when
16801 # linking a shared library.
16803 # There doesn't appear to be a way to prevent this compiler from
16804 # explicitly linking system object files so we need to strip them
16805 # from the output so that they don't get included in the library
16807 output_verbose_link_cmd
='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "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 $list'
16810 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
16811 allow_undefined_flag_CXX
=' ${wl}-expect_unresolved ${wl}\*'
16812 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` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
16814 hardcode_libdir_flag_spec_CXX
='${wl}-rpath ${wl}$libdir'
16815 hardcode_libdir_separator_CXX
=:
16817 # Commands to make compiler produce verbose output that lists
16818 # what "hidden" libraries, object files and flags are used when
16819 # linking a shared library.
16820 output_verbose_link_cmd
='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
16823 # FIXME: insert proper C++ library support
16830 # FIXME: insert proper C++ library support
16834 case $cc_basename in
16837 # FIXME: insert proper C++ library support
16842 # FIXME: insert proper C++ library support
16846 # FIXME: insert proper C++ library support
16852 case $cc_basename in
16854 # Sun C++ 4.2, 5.x and Centerline C++
16855 archive_cmds_need_lc_CXX
=yes
16856 no_undefined_flag_CXX
=' -zdefs'
16857 archive_cmds_CXX
='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
16858 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16859 $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'
16861 hardcode_libdir_flag_spec_CXX
='-R$libdir'
16862 hardcode_shlibpath_var_CXX
=no
16864 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16866 # The compiler driver will combine and reorder linker options,
16867 # but understands `-z linker_flag'.
16868 # Supported since Solaris 2.6 (maybe 2.5.1?)
16869 whole_archive_flag_spec_CXX
='-z allextract$convenience -z defaultextract'
16872 link_all_deplibs_CXX
=yes
16874 output_verbose_link_cmd
='echo'
16876 # Archives containing C++ object files must be created using
16877 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16878 # necessary to make sure instantiated templates are included
16880 old_archive_cmds_CXX
='$CC -xar -o $oldlib $oldobjs'
16883 # Green Hills C++ Compiler
16884 archive_cmds_CXX
='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16886 # The C++ compiler must be used to create the archive.
16887 old_archive_cmds_CXX
='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16890 # GNU C++ compiler with Solaris linker
16891 if test "$GXX" = yes && test "$with_gnu_ld" = no
; then
16892 no_undefined_flag_CXX
=' ${wl}-z ${wl}defs'
16893 if $CC --version |
grep -v '^2\.7' > /dev
/null
; then
16894 archive_cmds_CXX
='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16895 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16896 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16898 # Commands to make compiler produce verbose output that lists
16899 # what "hidden" libraries, object files and flags are used when
16900 # linking a shared library.
16901 output_verbose_link_cmd
="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16903 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16905 archive_cmds_CXX
='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16906 archive_expsym_cmds_CXX
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16907 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16909 # Commands to make compiler produce verbose output that lists
16910 # what "hidden" libraries, object files and flags are used when
16911 # linking a shared library.
16912 output_verbose_link_cmd
="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16915 hardcode_libdir_flag_spec_CXX
='${wl}-R $wl$libdir'
16917 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
16919 whole_archive_flag_spec_CXX
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16926 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
16927 no_undefined_flag_CXX
='${wl}-z,text'
16928 archive_cmds_need_lc_CXX
=no
16929 hardcode_shlibpath_var_CXX
=no
16930 runpath_var
='LD_RUN_PATH'
16932 case $cc_basename in
16934 archive_cmds_CXX
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16935 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16938 archive_cmds_CXX
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16939 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
16943 sysv5
* | sco3.2v5
* | sco5v6
*)
16944 # Note: We can NOT use -z defs as we might desire, because we do not
16945 # link with -lc, and that would cause any symbols used from libc to
16946 # always be unresolved, which means just about no library would
16947 # ever link correctly. If we're not using GNU ld we use -z text
16948 # though, which does catch some bad symbols but isn't as heavy-handed
16950 # For security reasons, it is highly recommended that you always
16951 # use absolute paths for naming shared libraries, and exclude the
16952 # DT_RUNPATH tag from executables and libraries. But doing so
16953 # requires that you compile everything twice, which is a pain.
16954 # So that behaviour is only enabled if SCOABSPATH is set to a
16955 # non-empty value in the environment. Most likely only useful for
16956 # creating official distributions of packages.
16957 # This is a hack until libtool officially supports absolute path
16958 # names for shared libraries.
16959 no_undefined_flag_CXX
='${wl}-z,text'
16960 allow_undefined_flag_CXX
='${wl}-z,nodefs'
16961 archive_cmds_need_lc_CXX
=no
16962 hardcode_shlibpath_var_CXX
=no
16963 hardcode_libdir_flag_spec_CXX
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
16964 hardcode_libdir_separator_CXX
=':'
16965 link_all_deplibs_CXX
=yes
16966 export_dynamic_flag_spec_CXX
='${wl}-Bexport'
16967 runpath_var
='LD_RUN_PATH'
16969 case $cc_basename in
16971 archive_cmds_CXX
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16972 archive_expsym_cmds_CXX
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16975 archive_cmds_CXX
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16976 archive_expsym_cmds_CXX
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
16981 case $cc_basename in
16983 # NonStop-UX NCC 3.20
16984 # FIXME: insert proper C++ library support
16988 # FIXME: insert proper C++ library support
16994 # FIXME: insert proper C++ library support
16998 # FIXME: insert proper C++ library support
17002 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
17003 echo "${ECHO_T}$ld_shlibs_CXX" >&6
17004 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
17010 cat > conftest.
$ac_ext <<EOF
17014 Foo (void) { a = 0; }
17020 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17021 (eval $ac_compile) 2>&5
17023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17024 (exit $ac_status); }; then
17025 # Parse the compiler output and extract the necessary
17026 # objects, libraries and library flags.
17028 # Sentinel used to keep track of whether or not we are before
17029 # the conftest object file.
17030 pre_test_object_deps_done
=no
17032 # The `*' in the case matches for architectures that use `case' in
17033 # $output_verbose_cmd can trigger glob expansion during the loop
17034 # eval without this substitution.
17035 output_verbose_link_cmd
=`$echo "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"`
17037 for p
in `eval $output_verbose_link_cmd`; do
17041 # Some compilers place space between "-{L,R}" and the path.
17042 # Remove the space.
17043 if test $p = "-L" \
17044 ||
test $p = "-R"; then
17051 if test "$pre_test_object_deps_done" = no
; then
17054 # Internal compiler library paths should come after those
17055 # provided the user. The postdeps already come after the
17056 # user supplied libs so there is no need to process them.
17057 if test -z "$compiler_lib_search_path_CXX"; then
17058 compiler_lib_search_path_CXX
="${prev}${p}"
17060 compiler_lib_search_path_CXX
="${compiler_lib_search_path_CXX} ${prev}${p}"
17063 # The "-l" case would never come before the object being
17064 # linked, so don't bother handling this case.
17067 if test -z "$postdeps_CXX"; then
17068 postdeps_CXX
="${prev}${p}"
17070 postdeps_CXX
="${postdeps_CXX} ${prev}${p}"
17076 # This assumes that the test object file only shows up
17077 # once in the compiler output.
17078 if test "$p" = "conftest.$objext"; then
17079 pre_test_object_deps_done
=yes
17083 if test "$pre_test_object_deps_done" = no
; then
17084 if test -z "$predep_objects_CXX"; then
17085 predep_objects_CXX
="$p"
17087 predep_objects_CXX
="$predep_objects_CXX $p"
17090 if test -z "$postdep_objects_CXX"; then
17091 postdep_objects_CXX
="$p"
17093 postdep_objects_CXX
="$postdep_objects_CXX $p"
17098 *) ;; # Ignore the rest.
17106 echo "libtool.m4: error: problem compiling CXX test program"
17109 $rm -f confest.
$objext
17111 # PORTME: override above test on systems where it is broken
17114 # Interix 3.5 installs completely hosed .la files for C++, so rather than
17115 # hack all around it, let's just trust "g++" to DTRT.
17116 predep_objects_CXX
=
17117 postdep_objects_CXX
=
17122 case `$CC -V 2>&1 | sed 5q` in
17126 # The more standards-conforming stlport4 library is
17127 # incompatible with the Cstd library. Avoid specifying
17128 # it if it's in CXXFLAGS. Ignore libCrun as
17129 # -library=stlport4 depends on it.
17130 case " $CXX $CXXFLAGS " in
17131 *" -library=stlport4 "*)
17132 solaris_use_stlport4
=yes
17135 if test "$solaris_use_stlport4" != yes; then
17136 postdeps_CXX
='-library=Cstd -library=Crun'
17143 case $cc_basename in
17145 # The more standards-conforming stlport4 library is
17146 # incompatible with the Cstd library. Avoid specifying
17147 # it if it's in CXXFLAGS. Ignore libCrun as
17148 # -library=stlport4 depends on it.
17149 case " $CXX $CXXFLAGS " in
17150 *" -library=stlport4 "*)
17151 solaris_use_stlport4
=yes
17155 # Adding this requires a known-good setup of shared libraries for
17156 # Sun compiler versions before 5.6, else PIC objects from an old
17157 # archive will be linked into the output, leading to subtle bugs.
17158 if test "$solaris_use_stlport4" != yes; then
17159 postdeps_CXX
='-library=Cstd -library=Crun'
17167 case " $postdeps_CXX " in
17168 *" -lc "*) archive_cmds_need_lc_CXX
=no
;;
17171 lt_prog_compiler_wl_CXX
=
17172 lt_prog_compiler_pic_CXX
=
17173 lt_prog_compiler_static_CXX
=
17175 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
17176 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
17178 # C++ specific cases for pic, static, wl, etc.
17179 if test "$GXX" = yes; then
17180 lt_prog_compiler_wl_CXX
='-Wl,'
17181 lt_prog_compiler_static_CXX
='-static'
17185 # All AIX code is PIC.
17186 if test "$host_cpu" = ia64
; then
17187 # AIX 5 now supports IA64 processor
17188 lt_prog_compiler_static_CXX
='-Bstatic'
17192 # FIXME: we need at least 68020 code to build shared libraries, but
17193 # adding the `-m68020' flag to GCC prevents building anything better,
17195 lt_prog_compiler_pic_CXX
='-m68020 -resident32 -malways-restore-a4'
17197 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
17198 # PIC is the default for these OSes.
17200 mingw
* | cygwin
* | os2
* | pw32
*)
17201 # This hack is so that the source file can tell whether it is being
17202 # built for inclusion in a dll (and should export symbols for example).
17203 # Although the cygwin gcc ignores -fPIC, still need this for old-style
17204 # (--disable-auto-import) libraries
17205 lt_prog_compiler_pic_CXX
='-DDLL_EXPORT'
17207 darwin
* | rhapsody
*)
17208 # PIC is the default on this platform
17209 # Common symbols not allowed in MH_DYLIB files
17210 lt_prog_compiler_pic_CXX
='-fno-common'
17213 # DJGPP does not support shared libraries at all
17214 lt_prog_compiler_pic_CXX
=
17217 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
17218 # Instead, we relocate shared libraries at runtime.
17221 if test -d /usr
/nec
; then
17222 lt_prog_compiler_pic_CXX
=-Kconform_pic
17226 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
17227 # not for PA HP-UX.
17232 lt_prog_compiler_pic_CXX
='-fPIC'
17237 lt_prog_compiler_pic_CXX
='-fPIC'
17243 # All AIX code is PIC.
17244 if test "$host_cpu" = ia64
; then
17245 # AIX 5 now supports IA64 processor
17246 lt_prog_compiler_static_CXX
='-Bstatic'
17248 lt_prog_compiler_static_CXX
='-bnso -bI:/lib/syscalls.exp'
17252 case $cc_basename in
17254 # Green Hills C++ Compiler
17255 # _LT_AC_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"
17260 # PIC is the default on this platform
17261 # Common symbols not allowed in MH_DYLIB files
17262 case $cc_basename in
17264 lt_prog_compiler_pic_CXX
='-qnocommon'
17265 lt_prog_compiler_wl_CXX
='-Wl,'
17270 case $cc_basename in
17272 lt_prog_compiler_pic_CXX
='-KPIC'
17275 # Green Hills C++ Compiler
17276 lt_prog_compiler_pic_CXX
='-pic'
17282 freebsd
* | dragonfly
*)
17283 # FreeBSD uses GNU C++
17285 hpux9
* | hpux10
* | hpux11
*)
17286 case $cc_basename in
17288 lt_prog_compiler_wl_CXX
='-Wl,'
17289 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
17290 if test "$host_cpu" != ia64
; then
17291 lt_prog_compiler_pic_CXX
='+Z'
17295 lt_prog_compiler_wl_CXX
='-Wl,'
17296 lt_prog_compiler_static_CXX
='${wl}-a ${wl}archive'
17302 lt_prog_compiler_pic_CXX
='+Z'
17311 # This is c89, which is MS Visual C++ (no shared libs)
17312 # Anyone wants to do a port?
17314 irix5
* | irix6
* | nonstopux
*)
17315 case $cc_basename in
17317 lt_prog_compiler_wl_CXX
='-Wl,'
17318 lt_prog_compiler_static_CXX
='-non_shared'
17319 # CC pic flag -KPIC is the default.
17325 linux
* | k
*bsd
*-gnu)
17326 case $cc_basename in
17329 lt_prog_compiler_wl_CXX
='--backend -Wl,'
17330 lt_prog_compiler_pic_CXX
='-fPIC'
17334 lt_prog_compiler_wl_CXX
='-Wl,'
17335 lt_prog_compiler_pic_CXX
='-KPIC'
17336 lt_prog_compiler_static_CXX
='-static'
17339 # Portland Group C++ compiler.
17340 lt_prog_compiler_wl_CXX
='-Wl,'
17341 lt_prog_compiler_pic_CXX
='-fpic'
17342 lt_prog_compiler_static_CXX
='-Bstatic'
17346 # Make sure the PIC flag is empty. It appears that all Alpha
17347 # Linux and Compaq Tru64 Unix objects are PIC.
17348 lt_prog_compiler_pic_CXX
=
17349 lt_prog_compiler_static_CXX
='-non_shared'
17352 case `$CC -V 2>&1 | sed 5q` in
17355 lt_prog_compiler_pic_CXX
='-KPIC'
17356 lt_prog_compiler_static_CXX
='-Bstatic'
17357 lt_prog_compiler_wl_CXX
='-Qoption ld '
17368 case $cc_basename in
17370 lt_prog_compiler_pic_CXX
='-W c,exportall'
17378 osf3
* | osf4
* | osf5
*)
17379 case $cc_basename in
17381 lt_prog_compiler_wl_CXX
='--backend -Wl,'
17384 # Rational C++ 2.4.1
17385 lt_prog_compiler_pic_CXX
='-pic'
17388 # Digital/Compaq C++
17389 lt_prog_compiler_wl_CXX
='-Wl,'
17390 # Make sure the PIC flag is empty. It appears that all Alpha
17391 # Linux and Compaq Tru64 Unix objects are PIC.
17392 lt_prog_compiler_pic_CXX
=
17393 lt_prog_compiler_static_CXX
='-non_shared'
17402 case $cc_basename in
17404 # Sun C++ 4.2, 5.x and Centerline C++
17405 lt_prog_compiler_pic_CXX
='-KPIC'
17406 lt_prog_compiler_static_CXX
='-Bstatic'
17407 lt_prog_compiler_wl_CXX
='-Qoption ld '
17410 # Green Hills C++ Compiler
17411 lt_prog_compiler_pic_CXX
='-PIC'
17418 case $cc_basename in
17421 lt_prog_compiler_pic_CXX
='-pic'
17422 lt_prog_compiler_static_CXX
='-Bstatic'
17426 lt_prog_compiler_pic_CXX
='-pic'
17433 case $cc_basename in
17435 # NonStop-UX NCC 3.20
17436 lt_prog_compiler_pic_CXX
='-KPIC'
17442 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
17443 case $cc_basename in
17445 lt_prog_compiler_wl_CXX
='-Wl,'
17446 lt_prog_compiler_pic_CXX
='-KPIC'
17447 lt_prog_compiler_static_CXX
='-Bstatic'
17454 lt_prog_compiler_can_build_shared_CXX
=no
17459 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
17460 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
17463 # Check to make sure the PIC flag actually works.
17465 if test -n "$lt_prog_compiler_pic_CXX"; then
17467 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
17468 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
17469 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
17470 echo $ECHO_N "(cached) $ECHO_C" >&6
17472 lt_prog_compiler_pic_works_CXX
=no
17473 ac_outfile
=conftest.
$ac_objext
17474 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
17475 lt_compiler_flag
="$lt_prog_compiler_pic_CXX -DPIC"
17476 # Insert the option either (1) after the last *FLAGS variable, or
17477 # (2) before a word containing "conftest.", or (3) at the end.
17478 # Note that $ac_compile itself does not contain backslashes and begins
17479 # with a dollar sign (not a hyphen), so the echo should work correctly.
17480 # The option is referenced via a variable to avoid confusing sed.
17481 lt_compile
=`echo "$ac_compile" | $SED \
17482 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17483 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17484 -e 's:$: $lt_compiler_flag:'`
17485 (eval echo "\"\$as_me:17485: $lt_compile\"" >&5)
17486 (eval "$lt_compile" 2>conftest.err
)
17488 cat conftest.err
>&5
17489 echo "$as_me:17489: \$? = $ac_status" >&5
17490 if (exit $ac_status) && test -s "$ac_outfile"; then
17491 # The compiler can only warn and ignore the option if not recognized
17492 # So say no if there are warnings other than the usual output.
17493 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
17494 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
17495 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
17496 lt_prog_compiler_pic_works_CXX
=yes
17502 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
17503 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
17505 if test x
"$lt_prog_compiler_pic_works_CXX" = xyes
; then
17506 case $lt_prog_compiler_pic_CXX in
17508 *) lt_prog_compiler_pic_CXX
=" $lt_prog_compiler_pic_CXX" ;;
17511 lt_prog_compiler_pic_CXX
=
17512 lt_prog_compiler_can_build_shared_CXX
=no
17517 # For platforms which do not support PIC, -DPIC is meaningless:
17519 lt_prog_compiler_pic_CXX
=
17522 lt_prog_compiler_pic_CXX
="$lt_prog_compiler_pic_CXX -DPIC"
17527 # Check to make sure the static flag actually works.
17529 wl
=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_CXX\"
17530 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
17531 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
17532 if test "${lt_prog_compiler_static_works_CXX+set}" = set; then
17533 echo $ECHO_N "(cached) $ECHO_C" >&6
17535 lt_prog_compiler_static_works_CXX
=no
17536 save_LDFLAGS
="$LDFLAGS"
17537 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
17538 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
17539 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
17540 # The linker can only warn and ignore the option if not recognized
17541 # So say no if there are warnings
17542 if test -s conftest.err
; then
17543 # Append any errors to the config.log.
17544 cat conftest.err
1>&5
17545 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
17546 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
17547 if diff conftest.exp conftest.er2
>/dev
/null
; then
17548 lt_prog_compiler_static_works_CXX
=yes
17551 lt_prog_compiler_static_works_CXX
=yes
17555 LDFLAGS
="$save_LDFLAGS"
17558 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_CXX" >&5
17559 echo "${ECHO_T}$lt_prog_compiler_static_works_CXX" >&6
17561 if test x
"$lt_prog_compiler_static_works_CXX" = xyes
; then
17564 lt_prog_compiler_static_CXX
=
17568 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
17569 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
17570 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
17571 echo $ECHO_N "(cached) $ECHO_C" >&6
17573 lt_cv_prog_compiler_c_o_CXX
=no
17574 $rm -r conftest
2>/dev
/null
17578 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
17580 lt_compiler_flag
="-o out/conftest2.$ac_objext"
17581 # Insert the option either (1) after the last *FLAGS variable, or
17582 # (2) before a word containing "conftest.", or (3) at the end.
17583 # Note that $ac_compile itself does not contain backslashes and begins
17584 # with a dollar sign (not a hyphen), so the echo should work correctly.
17585 lt_compile
=`echo "$ac_compile" | $SED \
17586 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
17587 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
17588 -e 's:$: $lt_compiler_flag:'`
17589 (eval echo "\"\$as_me:17589: $lt_compile\"" >&5)
17590 (eval "$lt_compile" 2>out
/conftest.err
)
17592 cat out
/conftest.err
>&5
17593 echo "$as_me:17593: \$? = $ac_status" >&5
17594 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
17596 # The compiler can only warn and ignore the option if not recognized
17597 # So say no if there are warnings
17598 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
17599 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
17600 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
17601 lt_cv_prog_compiler_c_o_CXX
=yes
17606 # SGI C++ compiler will create directory out/ii_files/ for
17607 # template instantiation
17608 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
17609 $rm out
/* && rmdir out
17615 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
17616 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
17619 hard_links
="nottested"
17620 if test "$lt_cv_prog_compiler_c_o_CXX" = no
&& test "$need_locks" != no
; then
17621 # do not overwrite the value of need_locks provided by the user
17622 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
17623 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
17626 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
17628 ln conftest.a conftest.b
2>&5 || hard_links
=no
17629 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
17630 echo "$as_me:$LINENO: result: $hard_links" >&5
17631 echo "${ECHO_T}$hard_links" >&6
17632 if test "$hard_links" = no
; then
17633 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
17634 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
17641 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
17642 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
17644 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17647 # If we're using GNU nm, then we don't want the "-C" option.
17648 # -C means demangle to AIX nm, but means don't demangle with GNU nm
17649 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
17650 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'
17652 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'
17656 export_symbols_cmds_CXX
="$ltdll_cmds"
17659 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'
17662 export_symbols_cmds_CXX
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
17666 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
17667 echo "${ECHO_T}$ld_shlibs_CXX" >&6
17668 test "$ld_shlibs_CXX" = no
&& can_build_shared
=no
17671 # Do we need to explicitly link libc?
17673 case "x$archive_cmds_need_lc_CXX" in
17675 # Assume -lc should be added
17676 archive_cmds_need_lc_CXX
=yes
17678 if test "$enable_shared" = yes && test "$GCC" = yes; then
17679 case $archive_cmds_CXX in
17681 # FIXME: we may have to deal with multi-command sequences.
17684 # Test whether the compiler implicitly links with -lc since on some
17685 # systems, -lgcc has to come before -lc. If gcc already passes -lc
17686 # to ld, don't add -lc before -lgcc.
17687 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
17688 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
17690 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
17692 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
17693 (eval $ac_compile) 2>&5
17695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17696 (exit $ac_status); } 2>conftest.err
; then
17699 libobjs
=conftest.
$ac_objext
17701 wl
=$lt_prog_compiler_wl_CXX
17702 pic_flag
=$lt_prog_compiler_pic_CXX
17708 lt_save_allow_undefined_flag
=$allow_undefined_flag_CXX
17709 allow_undefined_flag_CXX
=
17710 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
17711 (eval $archive_cmds_CXX 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); }
17716 archive_cmds_need_lc_CXX
=no
17718 archive_cmds_need_lc_CXX
=yes
17720 allow_undefined_flag_CXX
=$lt_save_allow_undefined_flag
17722 cat conftest.err
1>&5
17725 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
17726 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
17733 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
17734 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
17735 library_names_spec
=
17736 libname_spec
='lib$name'
17740 postuninstall_cmds
=
17744 shlibpath_overrides_runpath
=unknown
17746 dynamic_linker
="$host_os ld.so"
17747 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
17749 need_lib_prefix
=unknown
17750 hardcode_into_libs
=no
17752 # when you set need_version to no, make sure it does not cause -set_version
17753 # flags to be left without arguments
17754 need_version
=unknown
17759 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
17760 shlibpath_var
=LIBPATH
17762 # AIX 3 has no versioning support, so we append a major version to the name.
17763 soname_spec
='${libname}${release}${shared_ext}$major'
17770 hardcode_into_libs
=yes
17771 if test "$host_cpu" = ia64
; then
17772 # AIX 5 supports IA64
17773 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
17774 shlibpath_var
=LD_LIBRARY_PATH
17776 # With GCC up to 2.95.x, collect2 would create an import file
17777 # for dependence libraries. The import file would start with
17778 # the line `#! .'. This would cause the generated library to
17779 # depend on `.', always an invalid library. This was fixed in
17780 # development snapshots of GCC prior to 3.0.
17782 aix4 | aix4.
[01] | aix4.
[01].
*)
17783 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
17785 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
17788 can_build_shared
=no
17792 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
17793 # soname into executable. Probably we can add versioning support to
17794 # collect2, so additional links can be useful in future.
17795 if test "$aix_use_runtimelinking" = yes; then
17796 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
17797 # instead of lib<name>.a to let people know that these are not
17798 # typical AIX shared libraries.
17799 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17801 # We preserve .a as extension for shared libraries through AIX4.2
17802 # and later when we are not doing run time linking.
17803 library_names_spec
='${libname}${release}.a $libname.a'
17804 soname_spec
='${libname}${release}${shared_ext}$major'
17806 shlibpath_var
=LIBPATH
17811 library_names_spec
='$libname.ixlibrary $libname.a'
17812 # Create ${libname}_ixlibrary.a entries in /sys/libs.
17813 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'
17817 library_names_spec
='${libname}${shared_ext}'
17818 dynamic_linker
="$host_os ld.so"
17819 shlibpath_var
=LIBRARY_PATH
17825 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17826 soname_spec
='${libname}${release}${shared_ext}$major'
17827 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
17828 shlibpath_var
=LD_LIBRARY_PATH
17829 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
17830 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
17831 # the default ld.so.conf also contains /usr/contrib/lib and
17832 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
17833 # libtool to hard-code these into programs
17836 cygwin
* | mingw
* | pw32
*)
17837 version_type
=windows
17842 case $GCC,$host_os in
17843 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
17844 library_names_spec
='$libname.dll.a'
17845 # DLL is installed to $(libdir)/../bin by postinstall_cmds
17846 postinstall_cmds
='base_file=`basename \${file}`~
17847 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
17848 dldir=$destdir/`dirname \$dlpath`~
17849 test -d \$dldir || mkdir -p \$dldir~
17850 $install_prog $dir/$dlname \$dldir/$dlname~
17851 chmod a+x \$dldir/$dlname'
17852 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
17853 dlpath=$dir/\$dldll~
17855 shlibpath_overrides_runpath
=yes
17859 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
17860 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17861 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
17864 # MinGW DLLs use traditional 'lib' prefix
17865 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17866 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
17867 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
17868 # It is most probably a Windows format PATH printed by
17869 # mingw gcc, but we are running on Cygwin. Gcc prints its search
17870 # path with ; separators, and with drive letters. We can handle the
17871 # drive letters (cygwin fileutils understands them), so leave them,
17872 # especially as we might pass files found there to a mingw objdump,
17873 # which wouldn't understand a cygwinified path. Ahh.
17874 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
17876 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
17880 # pw32 DLLs use 'pw' prefix rather than 'lib'
17881 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
17887 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
17890 dynamic_linker
='Win32 ld.exe'
17891 # FIXME: first we should search . and the directory the executable is in
17895 darwin
* | rhapsody
*)
17896 dynamic_linker
="$host_os dyld"
17897 version_type
=darwin
17900 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
17901 soname_spec
='${libname}${release}${major}$shared_ext'
17902 shlibpath_overrides_runpath
=yes
17903 shlibpath_var
=DYLD_LIBRARY_PATH
17904 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
17906 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
17913 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
17914 soname_spec
='${libname}${release}${shared_ext}$major'
17915 shlibpath_var
=LD_LIBRARY_PATH
17922 freebsd
* | dragonfly
*)
17923 # DragonFly does not have aout. When/if they implement a new
17924 # versioning mechanism, adjust this.
17925 if test -x /usr
/bin
/objformat
; then
17926 objformat
=`/usr/bin/objformat`
17929 freebsd
[123]*) objformat
=aout
;;
17930 *) objformat
=elf
;;
17933 version_type
=freebsd-
$objformat
17934 case $version_type in
17936 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
17941 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
17945 shlibpath_var
=LD_LIBRARY_PATH
17948 shlibpath_overrides_runpath
=yes
17950 freebsd3.
[01]* | freebsdelf3.
[01]*)
17951 shlibpath_overrides_runpath
=yes
17952 hardcode_into_libs
=yes
17954 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
17955 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
17956 shlibpath_overrides_runpath
=no
17957 hardcode_into_libs
=yes
17959 *) # from 4.6 on, and DragonFly
17960 shlibpath_overrides_runpath
=yes
17961 hardcode_into_libs
=yes
17970 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
17971 soname_spec
='${libname}${release}${shared_ext}$major'
17972 shlibpath_var
=LD_LIBRARY_PATH
17973 hardcode_into_libs
=yes
17976 hpux9
* | hpux10
* | hpux11
*)
17977 # Give a soname corresponding to the major version so that dld.sl refuses to
17978 # link against other versions.
17985 hardcode_into_libs
=yes
17986 dynamic_linker
="$host_os dld.so"
17987 shlibpath_var
=LD_LIBRARY_PATH
17988 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
17989 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17990 soname_spec
='${libname}${release}${shared_ext}$major'
17991 if test "X$HPUX_IA64_MODE" = X32
; then
17992 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
17994 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
17996 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
18000 hardcode_into_libs
=yes
18001 dynamic_linker
="$host_os dld.sl"
18002 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
18003 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
18004 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18005 soname_spec
='${libname}${release}${shared_ext}$major'
18006 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
18007 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
18011 dynamic_linker
="$host_os dld.sl"
18012 shlibpath_var
=SHLIB_PATH
18013 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
18014 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18015 soname_spec
='${libname}${release}${shared_ext}$major'
18018 # HP-UX runs *really* slowly unless shared libraries are mode 555.
18019 postinstall_cmds
='chmod 555 $lib'
18026 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18027 soname_spec
='${libname}${release}${shared_ext}$major'
18028 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
18029 shlibpath_var
=LD_LIBRARY_PATH
18030 shlibpath_overrides_runpath
=no
18031 hardcode_into_libs
=yes
18034 irix5
* | irix6
* | nonstopux
*)
18036 nonstopux
*) version_type
=nonstopux
;;
18038 if test "$lt_cv_prog_gnu_ld" = yes; then
18046 soname_spec
='${libname}${release}${shared_ext}$major'
18047 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
18049 irix5
* | nonstopux
*)
18050 libsuff
= shlibsuff
=
18053 case $LD in # libtool.m4 will add one of these switches to LD
18054 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
18055 libsuff
= shlibsuff
= libmagic
=32-bit;;
18056 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
18057 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
18058 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
18059 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
18060 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
18064 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
18065 shlibpath_overrides_runpath
=no
18066 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
18067 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
18068 hardcode_into_libs
=yes
18071 # No shared lib support for Linux oldld, aout, or coff.
18072 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
18076 # This must be Linux ELF.
18077 linux
* | k
*bsd
*-gnu)
18081 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18082 soname_spec
='${libname}${release}${shared_ext}$major'
18083 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
18084 shlibpath_var
=LD_LIBRARY_PATH
18085 shlibpath_overrides_runpath
=no
18086 # This implies no fast_install, which is unacceptable.
18087 # Some rework will be needed to allow for fast_install
18088 # before this can be enabled.
18089 hardcode_into_libs
=yes
18091 # Append ld.so.conf contents to the search path
18092 if test -f /etc
/ld.so.conf
; then
18093 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' ' '`
18094 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
18097 # We used to test for /lib/ld.so.1 and disable shared libraries on
18098 # powerpc, because MkLinux only supported shared libraries with the
18099 # GNU dynamic linker. Since this was broken with cross compilers,
18100 # most powerpc-linux boxes support dynamic linking these days and
18101 # people can always --disable-shared, the test was removed, and we
18102 # assume the GNU/Linux dynamic linker is in use.
18103 dynamic_linker
='GNU/Linux ld.so'
18110 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
18111 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18112 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18113 dynamic_linker
='NetBSD (a.out) ld.so'
18115 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
18116 soname_spec
='${libname}${release}${shared_ext}$major'
18117 dynamic_linker
='NetBSD ld.elf_so'
18119 shlibpath_var
=LD_LIBRARY_PATH
18120 shlibpath_overrides_runpath
=yes
18121 hardcode_into_libs
=yes
18126 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18127 shlibpath_var
=LD_LIBRARY_PATH
18128 shlibpath_overrides_runpath
=yes
18135 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18136 soname_spec
='${libname}${release}${shared_ext}$major'
18137 shlibpath_var
=LD_LIBRARY_PATH
18138 shlibpath_overrides_runpath
=yes
18143 sys_lib_dlsearch_path_spec
="/usr/lib"
18145 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
18147 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
18148 *) need_version
=no
;;
18150 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18151 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
18152 shlibpath_var
=LD_LIBRARY_PATH
18153 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
18155 openbsd2.
[89] | openbsd2.
[89].
*)
18156 shlibpath_overrides_runpath
=no
18159 shlibpath_overrides_runpath
=yes
18163 shlibpath_overrides_runpath
=yes
18168 libname_spec
='$name'
18171 library_names_spec
='$libname${shared_ext} $libname.a'
18172 dynamic_linker
='OS/2 ld.exe'
18173 shlibpath_var
=LIBPATH
18176 osf3
* | osf4
* | osf5
*)
18180 soname_spec
='${libname}${release}${shared_ext}$major'
18181 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18182 shlibpath_var
=LD_LIBRARY_PATH
18183 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
18184 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
18195 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18196 soname_spec
='${libname}${release}${shared_ext}$major'
18197 shlibpath_var
=LD_LIBRARY_PATH
18198 shlibpath_overrides_runpath
=yes
18199 hardcode_into_libs
=yes
18200 # ldd complains unless libraries are executable
18201 postinstall_cmds
='chmod +x $lib'
18206 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
18207 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
18208 shlibpath_var
=LD_LIBRARY_PATH
18209 shlibpath_overrides_runpath
=yes
18210 if test "$with_gnu_ld" = yes; then
18218 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18219 soname_spec
='${libname}${release}${shared_ext}$major'
18220 shlibpath_var
=LD_LIBRARY_PATH
18221 case $host_vendor in
18223 shlibpath_overrides_runpath
=no
18225 export_dynamic_flag_spec
='${wl}-Blargedynsym'
18226 runpath_var
=LD_RUN_PATH
18234 shlibpath_overrides_runpath
=no
18235 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
18241 if test -d /usr
/nec
;then
18243 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
18244 soname_spec
='$libname${shared_ext}.$major'
18245 shlibpath_var
=LD_LIBRARY_PATH
18249 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
18250 version_type
=freebsd-elf
18253 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
18254 soname_spec
='${libname}${release}${shared_ext}$major'
18255 shlibpath_var
=LD_LIBRARY_PATH
18256 hardcode_into_libs
=yes
18257 if test "$with_gnu_ld" = yes; then
18258 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
18259 shlibpath_overrides_runpath
=no
18261 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
18262 shlibpath_overrides_runpath
=yes
18265 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
18269 sys_lib_dlsearch_path_spec
='/usr/lib'
18274 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
18275 soname_spec
='${libname}${release}${shared_ext}$major'
18276 shlibpath_var
=LD_LIBRARY_PATH
18283 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
18284 echo "${ECHO_T}$dynamic_linker" >&6
18285 test "$dynamic_linker" = no
&& can_build_shared
=no
18287 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
18288 if test "$GCC" = yes; then
18289 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
18292 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
18293 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
18294 hardcode_action_CXX
=
18295 if test -n "$hardcode_libdir_flag_spec_CXX" || \
18296 test -n "$runpath_var_CXX" || \
18297 test "X$hardcode_automatic_CXX" = "Xyes" ; then
18299 # We can hardcode non-existant directories.
18300 if test "$hardcode_direct_CXX" != no
&&
18301 # If the only mechanism to avoid hardcoding is shlibpath_var, we
18302 # have to relink, otherwise we might link with an installed library
18303 # when we should be linking with a yet-to-be-installed one
18304 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
18305 test "$hardcode_minus_L_CXX" != no
; then
18306 # Linking always hardcodes the temporary library directory.
18307 hardcode_action_CXX
=relink
18309 # We can link without hardcoding, and we can hardcode nonexisting dirs.
18310 hardcode_action_CXX
=immediate
18313 # We cannot hardcode anything, or else we can only hardcode existing
18315 hardcode_action_CXX
=unsupported
18317 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
18318 echo "${ECHO_T}$hardcode_action_CXX" >&6
18320 if test "$hardcode_action_CXX" = relink
; then
18321 # Fast installation is not supported
18322 enable_fast_install
=no
18323 elif test "$shlibpath_overrides_runpath" = yes ||
18324 test "$enable_shared" = no
; then
18325 # Fast installation is not necessary
18326 enable_fast_install
=needless
18330 # The else clause should only fire when bootstrapping the
18331 # libtool distribution, otherwise you forgot to ship ltmain.sh
18332 # with your package, and you will get complaints that there are
18333 # no rules to generate ltmain.sh.
18334 if test -f "$ltmain"; then
18335 # See if we are running on zsh, and set the options which allow our commands through
18336 # without removal of \ escapes.
18337 if test -n "${ZSH_VERSION+set}" ; then
18338 setopt NO_GLOB_SUBST
18340 # Now quote all the things that may contain metacharacters while being
18341 # careful not to overquote the AC_SUBSTed values. We take copies of the
18342 # variables and quote the copies for generation of the libtool script.
18343 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
18345 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18346 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18347 deplibs_check_method reload_flag reload_cmds need_locks \
18348 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18349 lt_cv_sys_global_symbol_to_c_name_address \
18350 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18351 old_postinstall_cmds old_postuninstall_cmds \
18355 lt_prog_compiler_wl_CXX \
18356 lt_prog_compiler_pic_CXX \
18357 lt_prog_compiler_static_CXX \
18358 lt_prog_compiler_no_builtin_flag_CXX \
18359 export_dynamic_flag_spec_CXX \
18360 thread_safe_flag_spec_CXX \
18361 whole_archive_flag_spec_CXX \
18362 enable_shared_with_static_runtimes_CXX \
18363 old_archive_cmds_CXX \
18364 old_archive_from_new_cmds_CXX \
18365 predep_objects_CXX \
18366 postdep_objects_CXX \
18369 compiler_lib_search_path_CXX \
18371 archive_expsym_cmds_CXX \
18372 postinstall_cmds_CXX \
18373 postuninstall_cmds_CXX \
18374 old_archive_from_expsyms_cmds_CXX \
18375 allow_undefined_flag_CXX \
18376 no_undefined_flag_CXX \
18377 export_symbols_cmds_CXX \
18378 hardcode_libdir_flag_spec_CXX \
18379 hardcode_libdir_flag_spec_ld_CXX \
18380 hardcode_libdir_separator_CXX \
18381 hardcode_automatic_CXX \
18383 module_expsym_cmds_CXX \
18384 lt_cv_prog_compiler_c_o_CXX \
18385 fix_srcfile_path_CXX \
18386 exclude_expsyms_CXX \
18387 include_expsyms_CXX
; do
18390 old_archive_cmds_CXX | \
18391 old_archive_from_new_cmds_CXX | \
18392 archive_cmds_CXX | \
18393 archive_expsym_cmds_CXX | \
18394 module_cmds_CXX | \
18395 module_expsym_cmds_CXX | \
18396 old_archive_from_expsyms_cmds_CXX | \
18397 export_symbols_cmds_CXX | \
18398 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18399 postinstall_cmds | postuninstall_cmds | \
18400 old_postinstall_cmds | old_postuninstall_cmds | \
18401 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
18402 # Double-quote double-evaled strings.
18403 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18406 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18412 *'\$0 --fallback-echo"')
18413 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18419 cat <<__EOF__ >> "$cfgfile"
18420 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18422 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18424 # Shell to use when invoking shell scripts.
18427 # Whether or not to build shared libraries.
18428 build_libtool_libs=$enable_shared
18430 # Whether or not to build static libraries.
18431 build_old_libs=$enable_static
18433 # Whether or not to add -lc for building shared libraries.
18434 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18436 # Whether or not to disallow shared libs when runtime libs are static
18437 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18439 # Whether or not to optimize for fast installation.
18440 fast_install=$enable_fast_install
18443 host_alias=$host_alias
18447 # The build system.
18448 build_alias=$build_alias
18452 # An echo program that does not interpret backslashes.
18457 AR_FLAGS=$lt_AR_FLAGS
18462 # LTCC compiler flags.
18463 LTCFLAGS=$lt_LTCFLAGS
18465 # A language-specific compiler.
18466 CC=$lt_compiler_CXX
18468 # Is the compiler the GNU C compiler?
18474 # The linker used to build libraries.
18477 # Whether we need hard or soft links.
18480 # A BSD-compatible nm program.
18483 # A symbol stripping program
18486 # Used to examine libraries when file_magic_cmd begins "file"
18487 MAGIC_CMD=$MAGIC_CMD
18489 # Used on cygwin: DLL creation program.
18492 # Used on cygwin: object dumper.
18495 # Used on cygwin: assembler.
18498 # The name of the directory that contains temporary libtool files.
18501 # How to create reloadable object files.
18502 reload_flag=$lt_reload_flag
18503 reload_cmds=$lt_reload_cmds
18505 # How to pass a linker flag through the compiler.
18506 wl=$lt_lt_prog_compiler_wl_CXX
18508 # Object file suffix (normally "o").
18509 objext="$ac_objext"
18511 # Old archive suffix (normally "a").
18514 # Shared library suffix (normally ".so").
18515 shrext_cmds='$shrext_cmds'
18517 # Executable file suffix (normally "").
18520 # Additional compiler flags for building library objects.
18521 pic_flag=$lt_lt_prog_compiler_pic_CXX
18524 # What is the maximum length of a command?
18525 max_cmd_len=$lt_cv_sys_max_cmd_len
18527 # Does compiler simultaneously support -c and -o options?
18528 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18530 # Must we lock files when doing compilation?
18531 need_locks=$lt_need_locks
18533 # Do we need the lib prefix for modules?
18534 need_lib_prefix=$need_lib_prefix
18536 # Do we need a version for libraries?
18537 need_version=$need_version
18539 # Whether dlopen is supported.
18540 dlopen_support=$enable_dlopen
18542 # Whether dlopen of programs is supported.
18543 dlopen_self=$enable_dlopen_self
18545 # Whether dlopen of statically linked programs is supported.
18546 dlopen_self_static=$enable_dlopen_self_static
18548 # Compiler flag to prevent dynamic linking.
18549 link_static_flag=$lt_lt_prog_compiler_static_CXX
18551 # Compiler flag to turn off builtin functions.
18552 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18554 # Compiler flag to allow reflexive dlopens.
18555 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18557 # Compiler flag to generate shared objects directly from archives.
18558 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18560 # Compiler flag to generate thread-safe objects.
18561 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18563 # Library versioning type.
18564 version_type=$version_type
18566 # Format of library name prefix.
18567 libname_spec=$lt_libname_spec
18569 # List of archive names. First name is the real one, the rest are links.
18570 # The last name is the one that the linker finds with -lNAME.
18571 library_names_spec=$lt_library_names_spec
18573 # The coded name of the library, if different from the real name.
18574 soname_spec=$lt_soname_spec
18576 # Commands used to build and install an old-style archive.
18578 old_archive_cmds=$lt_old_archive_cmds_CXX
18579 old_postinstall_cmds=$lt_old_postinstall_cmds
18580 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18582 # Create an old-style archive from a shared archive.
18583 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18585 # Create a temporary old-style archive to link instead of a shared archive.
18586 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18588 # Commands used to build and install a shared archive.
18589 archive_cmds=$lt_archive_cmds_CXX
18590 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18591 postinstall_cmds=$lt_postinstall_cmds
18592 postuninstall_cmds=$lt_postuninstall_cmds
18594 # Commands used to build a loadable module (assumed same as above if empty)
18595 module_cmds=$lt_module_cmds_CXX
18596 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18598 # Commands to strip libraries.
18599 old_striplib=$lt_old_striplib
18600 striplib=$lt_striplib
18602 # Dependencies to place before the objects being linked to create a
18604 predep_objects=$lt_predep_objects_CXX
18606 # Dependencies to place after the objects being linked to create a
18608 postdep_objects=$lt_postdep_objects_CXX
18610 # Dependencies to place before the objects being linked to create a
18612 predeps=$lt_predeps_CXX
18614 # Dependencies to place after the objects being linked to create a
18616 postdeps=$lt_postdeps_CXX
18618 # The library search path used internally by the compiler when linking
18619 # a shared library.
18620 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18622 # Method to check whether dependent libraries are shared objects.
18623 deplibs_check_method=$lt_deplibs_check_method
18625 # Command to use when deplibs_check_method == file_magic.
18626 file_magic_cmd=$lt_file_magic_cmd
18628 # Flag that allows shared libraries with undefined symbols to be built.
18629 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18631 # Flag that forces no undefined symbols.
18632 no_undefined_flag=$lt_no_undefined_flag_CXX
18634 # Commands used to finish a libtool library installation in a directory.
18635 finish_cmds=$lt_finish_cmds
18637 # Same as above, but a single script fragment to be evaled but not shown.
18638 finish_eval=$lt_finish_eval
18640 # Take the output of nm and produce a listing of raw symbols and C names.
18641 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18643 # Transform the output of nm in a proper C declaration
18644 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18646 # Transform the output of nm in a C name address pair
18647 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18649 # This is the shared library runtime path variable.
18650 runpath_var=$runpath_var
18652 # This is the shared library path variable.
18653 shlibpath_var=$shlibpath_var
18655 # Is shlibpath searched before the hard-coded library search path?
18656 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18658 # How to hardcode a shared library path into an executable.
18659 hardcode_action=$hardcode_action_CXX
18661 # Whether we should hardcode library paths into libraries.
18662 hardcode_into_libs=$hardcode_into_libs
18664 # Flag to hardcode \$libdir into a binary during linking.
18665 # This must work even if \$libdir does not exist.
18666 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18668 # If ld is used when linking, flag to hardcode \$libdir into
18669 # a binary during linking. This must work even if \$libdir does
18671 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18673 # Whether we need a single -rpath flag with a separated argument.
18674 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18676 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18677 # resulting binary.
18678 hardcode_direct=$hardcode_direct_CXX
18680 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18681 # resulting binary.
18682 hardcode_minus_L=$hardcode_minus_L_CXX
18684 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18685 # the resulting binary.
18686 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18688 # Set to yes if building a shared library automatically hardcodes DIR into the library
18689 # and all subsequent libraries and executables linked against it.
18690 hardcode_automatic=$hardcode_automatic_CXX
18692 # Variables whose values should be saved in libtool wrapper scripts and
18693 # restored at relink time.
18694 variables_saved_for_relink="$variables_saved_for_relink"
18696 # Whether libtool must link a program against all its dependency libraries.
18697 link_all_deplibs=$link_all_deplibs_CXX
18699 # Compile-time system search path for libraries
18700 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18702 # Run-time system search path for libraries
18703 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18705 # Fix the shell variable \$srcfile for the compiler.
18706 fix_srcfile_path=$lt_fix_srcfile_path
18708 # Set to yes if exported symbols are required.
18709 always_export_symbols=$always_export_symbols_CXX
18711 # The commands to list exported symbols.
18712 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18714 # The commands to extract the exported symbol list from a shared archive.
18715 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18717 # Symbols that should not be listed in the preloaded symbols.
18718 exclude_expsyms=$lt_exclude_expsyms_CXX
18720 # Symbols that must always be exported.
18721 include_expsyms=$lt_include_expsyms_CXX
18723 # ### END LIBTOOL TAG CONFIG: $tagname
18729 # If there is no Makefile yet, we rely on a make rule to execute
18730 # `config.status --recheck' to rerun these tests and create the
18731 # libtool script then.
18732 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18733 if test -f "$ltmain_in"; then
18734 test -f Makefile
&& make "$ltmain"
18740 ac_cpp
='$CPP $CPPFLAGS'
18741 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18742 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18743 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
18749 with_gnu_ldcxx
=$with_gnu_ld
18750 with_gnu_ld
=$lt_save_with_gnu_ld
18751 lt_cv_path_LDCXX
=$lt_cv_path_LD
18752 lt_cv_path_LD
=$lt_save_path_LD
18753 lt_cv_prog_gnu_ldcxx
=$lt_cv_prog_gnu_ld
18754 lt_cv_prog_gnu_ld
=$lt_save_with_gnu_ld
18762 if test -n "$F77" && test "X$F77" != "Xno"; then
18765 ac_compile
='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18766 ac_link
='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18767 ac_compiler_gnu
=$ac_cv_f77_compiler_gnu
18770 archive_cmds_need_lc_F77
=no
18771 allow_undefined_flag_F77
=
18772 always_export_symbols_F77
=no
18773 archive_expsym_cmds_F77
=
18774 export_dynamic_flag_spec_F77
=
18775 hardcode_direct_F77
=no
18776 hardcode_libdir_flag_spec_F77
=
18777 hardcode_libdir_flag_spec_ld_F77
=
18778 hardcode_libdir_separator_F77
=
18779 hardcode_minus_L_F77
=no
18780 hardcode_automatic_F77
=no
18782 module_expsym_cmds_F77
=
18783 link_all_deplibs_F77
=unknown
18784 old_archive_cmds_F77
=$old_archive_cmds
18785 no_undefined_flag_F77
=
18786 whole_archive_flag_spec_F77
=
18787 enable_shared_with_static_runtimes_F77
=no
18789 # Source file extension for f77 test sources.
18792 # Object file extension for compiled f77 test sources.
18796 # Code to be used in simple compile tests
18797 lt_simple_compile_test_code
="\
18803 # Code to be used in simple link tests
18804 lt_simple_link_test_code
="\
18809 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18811 # If no C compiler was specified, use CC.
18814 # If no C compiler flags were specified, use CFLAGS.
18815 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
18817 # Allow CC to be a program name with arguments.
18821 # save warnings/boilerplate of simple test code
18822 ac_outfile
=conftest.
$ac_objext
18823 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
18824 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18825 _lt_compiler_boilerplate
=`cat conftest.err`
18828 ac_outfile
=conftest.
$ac_objext
18829 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
18830 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
18831 _lt_linker_boilerplate
=`cat conftest.err`
18835 # Allow CC to be a program name with arguments.
18840 for cc_temp
in $compiler""; do
18842 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
18843 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
18848 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
18851 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18852 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18853 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18854 echo "${ECHO_T}$can_build_shared" >&6
18856 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18857 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18858 test "$can_build_shared" = "no" && enable_shared
=no
18860 # On AIX, shared libraries and static libraries use the same namespace, and
18861 # are all built from PIC.
18864 test "$enable_shared" = yes && enable_static
=no
18865 if test -n "$RANLIB"; then
18866 archive_cmds
="$archive_cmds~\$RANLIB \$lib"
18867 postinstall_cmds
='$RANLIB $lib'
18871 if test "$host_cpu" != ia64
&& test "$aix_use_runtimelinking" = no
; then
18872 test "$enable_shared" = yes && enable_static
=no
18876 echo "$as_me:$LINENO: result: $enable_shared" >&5
18877 echo "${ECHO_T}$enable_shared" >&6
18879 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18880 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18881 # Make sure either enable_shared or enable_static is yes.
18882 test "$enable_shared" = yes || enable_static
=yes
18883 echo "$as_me:$LINENO: result: $enable_static" >&5
18884 echo "${ECHO_T}$enable_static" >&6
18889 lt_prog_compiler_wl_F77
=
18890 lt_prog_compiler_pic_F77
=
18891 lt_prog_compiler_static_F77
=
18893 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18894 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18896 if test "$GCC" = yes; then
18897 lt_prog_compiler_wl_F77
='-Wl,'
18898 lt_prog_compiler_static_F77
='-static'
18902 # All AIX code is PIC.
18903 if test "$host_cpu" = ia64
; then
18904 # AIX 5 now supports IA64 processor
18905 lt_prog_compiler_static_F77
='-Bstatic'
18910 # FIXME: we need at least 68020 code to build shared libraries, but
18911 # adding the `-m68020' flag to GCC prevents building anything better,
18913 lt_prog_compiler_pic_F77
='-m68020 -resident32 -malways-restore-a4'
18916 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
18917 # PIC is the default for these OSes.
18920 mingw
* | cygwin
* | pw32
* | os2
*)
18921 # This hack is so that the source file can tell whether it is being
18922 # built for inclusion in a dll (and should export symbols for example).
18923 # Although the cygwin gcc ignores -fPIC, still need this for old-style
18924 # (--disable-auto-import) libraries
18925 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
18928 darwin
* | rhapsody
*)
18929 # PIC is the default on this platform
18930 # Common symbols not allowed in MH_DYLIB files
18931 lt_prog_compiler_pic_F77
='-fno-common'
18935 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
18936 # Instead, we relocate shared libraries at runtime.
18940 # Just because we use GCC doesn't mean we suddenly get shared libraries
18941 # on systems that don't support them.
18942 lt_prog_compiler_can_build_shared_F77
=no
18947 if test -d /usr
/nec
; then
18948 lt_prog_compiler_pic_F77
=-Kconform_pic
18953 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18954 # not for PA HP-UX.
18960 lt_prog_compiler_pic_F77
='-fPIC'
18966 lt_prog_compiler_pic_F77
='-fPIC'
18970 # PORTME Check for flag to pass linker flags through the system compiler.
18973 lt_prog_compiler_wl_F77
='-Wl,'
18974 if test "$host_cpu" = ia64
; then
18975 # AIX 5 now supports IA64 processor
18976 lt_prog_compiler_static_F77
='-Bstatic'
18978 lt_prog_compiler_static_F77
='-bnso -bI:/lib/syscalls.exp'
18982 # PIC is the default on this platform
18983 # Common symbols not allowed in MH_DYLIB files
18984 case $cc_basename in
18986 lt_prog_compiler_pic_F77
='-qnocommon'
18987 lt_prog_compiler_wl_F77
='-Wl,'
18992 mingw
* | cygwin
* | pw32
* | os2
*)
18993 # This hack is so that the source file can tell whether it is being
18994 # built for inclusion in a dll (and should export symbols for example).
18995 lt_prog_compiler_pic_F77
='-DDLL_EXPORT'
18998 hpux9
* | hpux10
* | hpux11
*)
18999 lt_prog_compiler_wl_F77
='-Wl,'
19000 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
19001 # not for PA HP-UX.
19007 lt_prog_compiler_pic_F77
='+Z'
19010 # Is there a better lt_prog_compiler_static that works with the bundled CC?
19011 lt_prog_compiler_static_F77
='${wl}-a ${wl}archive'
19014 irix5
* | irix6
* | nonstopux
*)
19015 lt_prog_compiler_wl_F77
='-Wl,'
19016 # PIC (with -KPIC) is the default.
19017 lt_prog_compiler_static_F77
='-non_shared'
19021 lt_prog_compiler_pic_F77
='-KPIC'
19022 lt_prog_compiler_static_F77
='-Bstatic'
19025 linux
* | k
*bsd
*-gnu)
19026 case $cc_basename in
19028 lt_prog_compiler_wl_F77
='-Wl,'
19029 lt_prog_compiler_pic_F77
='-KPIC'
19030 lt_prog_compiler_static_F77
='-static'
19032 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
19033 # Portland Group compilers (*not* the Pentium gcc compiler,
19034 # which looks to be a dead project)
19035 lt_prog_compiler_wl_F77
='-Wl,'
19036 lt_prog_compiler_pic_F77
='-fpic'
19037 lt_prog_compiler_static_F77
='-Bstatic'
19040 lt_prog_compiler_wl_F77
='-Wl,'
19041 # All Alpha code is PIC.
19042 lt_prog_compiler_static_F77
='-non_shared'
19045 case `$CC -V 2>&1 | sed 5q` in
19048 lt_prog_compiler_pic_F77
='-KPIC'
19049 lt_prog_compiler_static_F77
='-Bstatic'
19050 lt_prog_compiler_wl_F77
='-Wl,'
19053 # Sun Fortran 8.3 passes all unrecognized flags to the linker
19054 lt_prog_compiler_pic_F77
='-KPIC'
19055 lt_prog_compiler_static_F77
='-Bstatic'
19056 lt_prog_compiler_wl_F77
=''
19063 osf3
* | osf4
* | osf5
*)
19064 lt_prog_compiler_wl_F77
='-Wl,'
19065 # All OSF/1 code is PIC.
19066 lt_prog_compiler_static_F77
='-non_shared'
19070 lt_prog_compiler_static_F77
='-non_shared'
19074 lt_prog_compiler_pic_F77
='-KPIC'
19075 lt_prog_compiler_static_F77
='-Bstatic'
19076 case $cc_basename in
19077 f77
* | f90
* | f95
*)
19078 lt_prog_compiler_wl_F77
='-Qoption ld ';;
19080 lt_prog_compiler_wl_F77
='-Wl,';;
19085 lt_prog_compiler_wl_F77
='-Qoption ld '
19086 lt_prog_compiler_pic_F77
='-PIC'
19087 lt_prog_compiler_static_F77
='-Bstatic'
19090 sysv4 | sysv4.2uw2
* | sysv4.3
*)
19091 lt_prog_compiler_wl_F77
='-Wl,'
19092 lt_prog_compiler_pic_F77
='-KPIC'
19093 lt_prog_compiler_static_F77
='-Bstatic'
19097 if test -d /usr
/nec
;then
19098 lt_prog_compiler_pic_F77
='-Kconform_pic'
19099 lt_prog_compiler_static_F77
='-Bstatic'
19103 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
19104 lt_prog_compiler_wl_F77
='-Wl,'
19105 lt_prog_compiler_pic_F77
='-KPIC'
19106 lt_prog_compiler_static_F77
='-Bstatic'
19110 lt_prog_compiler_wl_F77
='-Wl,'
19111 lt_prog_compiler_can_build_shared_F77
=no
19115 lt_prog_compiler_pic_F77
='-pic'
19116 lt_prog_compiler_static_F77
='-Bstatic'
19120 lt_prog_compiler_can_build_shared_F77
=no
19125 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
19126 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
19129 # Check to make sure the PIC flag actually works.
19131 if test -n "$lt_prog_compiler_pic_F77"; then
19133 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
19134 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
19135 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
19136 echo $ECHO_N "(cached) $ECHO_C" >&6
19138 lt_prog_compiler_pic_works_F77
=no
19139 ac_outfile
=conftest.
$ac_objext
19140 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
19141 lt_compiler_flag
="$lt_prog_compiler_pic_F77"
19142 # Insert the option either (1) after the last *FLAGS variable, or
19143 # (2) before a word containing "conftest.", or (3) at the end.
19144 # Note that $ac_compile itself does not contain backslashes and begins
19145 # with a dollar sign (not a hyphen), so the echo should work correctly.
19146 # The option is referenced via a variable to avoid confusing sed.
19147 lt_compile
=`echo "$ac_compile" | $SED \
19148 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19149 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19150 -e 's:$: $lt_compiler_flag:'`
19151 (eval echo "\"\$as_me:19151: $lt_compile\"" >&5)
19152 (eval "$lt_compile" 2>conftest.err
)
19154 cat conftest.err
>&5
19155 echo "$as_me:19155: \$? = $ac_status" >&5
19156 if (exit $ac_status) && test -s "$ac_outfile"; then
19157 # The compiler can only warn and ignore the option if not recognized
19158 # So say no if there are warnings other than the usual output.
19159 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
19160 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
19161 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
19162 lt_prog_compiler_pic_works_F77
=yes
19168 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
19169 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
19171 if test x
"$lt_prog_compiler_pic_works_F77" = xyes
; then
19172 case $lt_prog_compiler_pic_F77 in
19174 *) lt_prog_compiler_pic_F77
=" $lt_prog_compiler_pic_F77" ;;
19177 lt_prog_compiler_pic_F77
=
19178 lt_prog_compiler_can_build_shared_F77
=no
19183 # For platforms which do not support PIC, -DPIC is meaningless:
19185 lt_prog_compiler_pic_F77
=
19188 lt_prog_compiler_pic_F77
="$lt_prog_compiler_pic_F77"
19193 # Check to make sure the static flag actually works.
19195 wl
=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_F77\"
19196 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
19197 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
19198 if test "${lt_prog_compiler_static_works_F77+set}" = set; then
19199 echo $ECHO_N "(cached) $ECHO_C" >&6
19201 lt_prog_compiler_static_works_F77
=no
19202 save_LDFLAGS
="$LDFLAGS"
19203 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
19204 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
19205 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
19206 # The linker can only warn and ignore the option if not recognized
19207 # So say no if there are warnings
19208 if test -s conftest.err
; then
19209 # Append any errors to the config.log.
19210 cat conftest.err
1>&5
19211 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
19212 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
19213 if diff conftest.exp conftest.er2
>/dev
/null
; then
19214 lt_prog_compiler_static_works_F77
=yes
19217 lt_prog_compiler_static_works_F77
=yes
19221 LDFLAGS
="$save_LDFLAGS"
19224 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_F77" >&5
19225 echo "${ECHO_T}$lt_prog_compiler_static_works_F77" >&6
19227 if test x
"$lt_prog_compiler_static_works_F77" = xyes
; then
19230 lt_prog_compiler_static_F77
=
19234 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
19235 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
19236 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
19237 echo $ECHO_N "(cached) $ECHO_C" >&6
19239 lt_cv_prog_compiler_c_o_F77
=no
19240 $rm -r conftest
2>/dev
/null
19244 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
19246 lt_compiler_flag
="-o out/conftest2.$ac_objext"
19247 # Insert the option either (1) after the last *FLAGS variable, or
19248 # (2) before a word containing "conftest.", or (3) at the end.
19249 # Note that $ac_compile itself does not contain backslashes and begins
19250 # with a dollar sign (not a hyphen), so the echo should work correctly.
19251 lt_compile
=`echo "$ac_compile" | $SED \
19252 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
19253 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
19254 -e 's:$: $lt_compiler_flag:'`
19255 (eval echo "\"\$as_me:19255: $lt_compile\"" >&5)
19256 (eval "$lt_compile" 2>out
/conftest.err
)
19258 cat out
/conftest.err
>&5
19259 echo "$as_me:19259: \$? = $ac_status" >&5
19260 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
19262 # The compiler can only warn and ignore the option if not recognized
19263 # So say no if there are warnings
19264 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
19265 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
19266 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
19267 lt_cv_prog_compiler_c_o_F77
=yes
19272 # SGI C++ compiler will create directory out/ii_files/ for
19273 # template instantiation
19274 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
19275 $rm out
/* && rmdir out
19281 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
19282 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
19285 hard_links
="nottested"
19286 if test "$lt_cv_prog_compiler_c_o_F77" = no
&& test "$need_locks" != no
; then
19287 # do not overwrite the value of need_locks provided by the user
19288 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
19289 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
19292 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
19294 ln conftest.a conftest.b
2>&5 || hard_links
=no
19295 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
19296 echo "$as_me:$LINENO: result: $hard_links" >&5
19297 echo "${ECHO_T}$hard_links" >&6
19298 if test "$hard_links" = no
; then
19299 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
19300 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
19307 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
19308 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
19311 allow_undefined_flag_F77
=
19312 enable_shared_with_static_runtimes_F77
=no
19314 archive_expsym_cmds_F77
=
19315 old_archive_From_new_cmds_F77
=
19316 old_archive_from_expsyms_cmds_F77
=
19317 export_dynamic_flag_spec_F77
=
19318 whole_archive_flag_spec_F77
=
19319 thread_safe_flag_spec_F77
=
19320 hardcode_libdir_flag_spec_F77
=
19321 hardcode_libdir_flag_spec_ld_F77
=
19322 hardcode_libdir_separator_F77
=
19323 hardcode_direct_F77
=no
19324 hardcode_minus_L_F77
=no
19325 hardcode_shlibpath_var_F77
=unsupported
19326 link_all_deplibs_F77
=unknown
19327 hardcode_automatic_F77
=no
19329 module_expsym_cmds_F77
=
19330 always_export_symbols_F77
=no
19331 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
19332 # include_expsyms should be a list of space-separated symbols to be *always*
19333 # included in the symbol list
19334 include_expsyms_F77
=
19335 # exclude_expsyms can be an extended regexp of symbols to exclude
19336 # it will be wrapped by ` (' and `)$', so one must not match beginning or
19337 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
19338 # as well as any symbol that contains `d'.
19339 exclude_expsyms_F77
="_GLOBAL_OFFSET_TABLE_"
19340 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
19341 # platforms (ab)use it in PIC code, but their linkers get confused if
19342 # the symbol is explicitly referenced. Since portable code cannot
19343 # rely on this symbol name, it's probably fine to never include it in
19344 # preloaded symbol tables.
19345 extract_expsyms_cmds
=
19346 # Just being paranoid about ensuring that cc_basename is set.
19347 for cc_temp
in $compiler""; do
19349 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
19350 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
19355 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
19358 cygwin
* | mingw
* | pw32
*)
19359 # FIXME: the MSVC++ port hasn't been tested in a loooong time
19360 # When not using gcc, we currently assume that we are using
19361 # Microsoft Visual C++.
19362 if test "$GCC" != yes; then
19367 # we just hope/assume this is gcc and not c89 (= MSVC++)
19376 if test "$with_gnu_ld" = yes; then
19377 # If archive_cmds runs LD, not CC, wlarc should be empty
19380 # Set some defaults for GNU ld with shared library support. These
19381 # are reset later if shared libraries are not supported. Putting them
19382 # here allows them to be overridden if necessary.
19383 runpath_var
=LD_RUN_PATH
19384 hardcode_libdir_flag_spec_F77
='${wl}--rpath ${wl}$libdir'
19385 export_dynamic_flag_spec_F77
='${wl}--export-dynamic'
19386 # ancient GNU ld didn't support --whole-archive et. al.
19387 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
19388 whole_archive_flag_spec_F77
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19390 whole_archive_flag_spec_F77
=
19392 supports_anon_versioning
=no
19393 case `$LD -v 2>/dev/null` in
19394 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
19395 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
19396 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
19397 *\
2.11.
*) ;; # other 2.11 versions
19398 *) supports_anon_versioning
=yes ;;
19401 # See if GNU ld supports shared libraries.
19403 aix3
* | aix4
* | aix5
*)
19404 # On AIX/PPC, the GNU linker is very broken
19405 if test "$host_cpu" != ia64
; then
19409 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19410 *** to be unable to reliably create shared libraries on AIX.
19411 *** Therefore, libtool is disabling shared libraries support. If you
19412 *** really care for shared libraries, you may want to modify your PATH
19413 *** so that a non-GNU linker is found, and then restart.
19420 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)'
19421 hardcode_libdir_flag_spec_F77
='-L$libdir'
19422 hardcode_minus_L_F77
=yes
19424 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19425 # that the semantics of dynamic libraries on AmigaOS, at least up
19426 # to version 4, is to share data among multiple programs linked
19427 # with the same dynamic library. Since this doesn't match the
19428 # behavior of shared libraries on other platforms, we can't use
19434 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
19435 allow_undefined_flag_F77
=unsupported
19436 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19437 # support --undefined. This deserves some investigation. FIXME
19438 archive_cmds_F77
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19444 cygwin
* | mingw
* | pw32
*)
19445 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19446 # as there is no search path for DLLs.
19447 hardcode_libdir_flag_spec_F77
='-L$libdir'
19448 allow_undefined_flag_F77
=unsupported
19449 always_export_symbols_F77
=no
19450 enable_shared_with_static_runtimes_F77
=yes
19451 export_symbols_cmds_F77
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
19453 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
19454 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19455 # If the export-symbols file already is a .def file (1st line
19456 # is EXPORTS), use it as is; otherwise, prepend...
19457 archive_expsym_cmds_F77
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19458 cp $export_symbols $output_objdir/$soname.def;
19460 echo EXPORTS > $output_objdir/$soname.def;
19461 cat $export_symbols >> $output_objdir/$soname.def;
19463 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
19470 hardcode_direct_F77
=no
19471 hardcode_shlibpath_var_F77
=no
19472 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
19473 export_dynamic_flag_spec_F77
='${wl}-E'
19474 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
19475 # Instead, shared libraries are loaded at an image base (0x10000000 by
19476 # default) and relocated if they conflict, which is a slow very memory
19477 # consuming and fragmenting process. To avoid this, we pick a random,
19478 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
19479 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
19480 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'
19481 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'
19484 gnu
* | linux
* | k
*bsd
*-gnu)
19485 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
19487 case $cc_basename,$host_cpu in
19488 pgcc
*) # Portland Group C compiler
19489 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'
19490 tmp_addflag
=' $pic_flag'
19492 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
19493 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'
19494 tmp_addflag
=' $pic_flag -Mnomain' ;;
19495 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
19496 tmp_addflag
=' -i_dynamic' ;;
19497 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
19498 tmp_addflag
=' -i_dynamic -nofor_main' ;;
19499 ifc
* | ifort
*) # Intel Fortran compiler
19500 tmp_addflag
=' -nofor_main' ;;
19502 case `$CC -V 2>&1 | sed 5q` in
19503 *Sun\ C
*) # Sun C 5.9
19504 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'
19505 tmp_sharedflag
='-G' ;;
19506 *Sun\ F
*) # Sun Fortran 8.3
19507 tmp_sharedflag
='-G' ;;
19509 tmp_sharedflag
='-shared' ;;
19511 archive_cmds_F77
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19513 if test $supports_anon_versioning = yes; then
19514 archive_expsym_cmds_F77
='$echo "{ global:" > $output_objdir/$libname.ver~
19515 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19516 $echo "local: *; };" >> $output_objdir/$libname.ver~
19517 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19525 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
19526 archive_cmds_F77
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19529 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19530 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19535 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
19539 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19540 *** create shared libraries on Solaris systems. Therefore, libtool
19541 *** is disabling shared libraries support. We urge you to upgrade GNU
19542 *** binutils to release 2.9.1 or newer. Another option is to modify
19543 *** your PATH or compiler configuration so that the native linker is
19544 *** used, and then restart.
19547 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
19548 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19549 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19555 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
19556 case `$LD -v 2>&1` in
19557 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
19561 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
19562 *** reliably create shared libraries on SCO systems. Therefore, libtool
19563 *** is disabling shared libraries support. We urge you to upgrade GNU
19564 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
19565 *** your PATH or compiler configuration so that the native linker is
19566 *** used, and then restart.
19571 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
19572 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
19573 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
19574 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
19583 archive_cmds_F77
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19585 hardcode_direct_F77
=yes
19586 hardcode_shlibpath_var_F77
=no
19590 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
19591 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19592 archive_expsym_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19599 if test "$ld_shlibs_F77" = no
; then
19601 hardcode_libdir_flag_spec_F77
=
19602 export_dynamic_flag_spec_F77
=
19603 whole_archive_flag_spec_F77
=
19606 # PORTME fill in a description of your system's linker (not GNU ld)
19609 allow_undefined_flag_F77
=unsupported
19610 always_export_symbols_F77
=yes
19611 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'
19612 # Note: this linker hardcodes the directories in LIBPATH if there
19613 # are no directories specified by -L.
19614 hardcode_minus_L_F77
=yes
19615 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
19616 # Neither direct hardcoding nor static linking is supported with a
19618 hardcode_direct_F77
=unsupported
19623 if test "$host_cpu" = ia64
; then
19624 # On IA64, the linker does run time linking by default, so we don't
19625 # have to do anything special.
19626 aix_use_runtimelinking
=no
19627 exp_sym_flag
='-Bexport'
19630 # If we're using GNU nm, then we don't want the "-C" option.
19631 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19632 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
19633 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'
19635 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'
19637 aix_use_runtimelinking
=no
19639 # Test if we are trying to use run time linking or normal
19640 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19641 # need to do runtime linking.
19642 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
19643 for ld_flag
in $LDFLAGS; do
19644 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
19645 aix_use_runtimelinking
=yes
19652 exp_sym_flag
='-bexport'
19653 no_entry_flag
='-bnoentry'
19656 # When large executables or shared objects are built, AIX ld can
19657 # have problems creating the table of contents. If linking a library
19658 # or program results in "error TOC overflow" add -mminimal-toc to
19659 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19660 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19662 archive_cmds_F77
=''
19663 hardcode_direct_F77
=yes
19664 hardcode_libdir_separator_F77
=':'
19665 link_all_deplibs_F77
=yes
19667 if test "$GCC" = yes; then
19668 case $host_os in aix4.
[012]|aix4.
[012].
*)
19669 # We only want to do this on AIX 4.2 and lower, the check
19670 # below for broken collect2 doesn't work under 4.3+
19671 collect2name
=`${CC} -print-prog-name=collect2`
19672 if test -f "$collect2name" && \
19673 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
19675 # We have reworked collect2
19678 # We have old collect2
19679 hardcode_direct_F77
=unsupported
19680 # It fails to find uninstalled libraries when the uninstalled
19681 # path is not listed in the libpath. Setting hardcode_minus_L
19682 # to unsupported forces relinking
19683 hardcode_minus_L_F77
=yes
19684 hardcode_libdir_flag_spec_F77
='-L$libdir'
19685 hardcode_libdir_separator_F77
=
19689 shared_flag
='-shared'
19690 if test "$aix_use_runtimelinking" = yes; then
19691 shared_flag
="$shared_flag "'${wl}-G'
19695 if test "$host_cpu" = ia64
; then
19696 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19697 # chokes on -Wl,-G. The following line is correct:
19700 if test "$aix_use_runtimelinking" = yes; then
19701 shared_flag
='${wl}-G'
19703 shared_flag
='${wl}-bM:SRE'
19708 # It seems that -bexpall does not export symbols beginning with
19709 # underscore (_), so it is better to generate a list of symbols to export.
19710 always_export_symbols_F77
=yes
19711 if test "$aix_use_runtimelinking" = yes; then
19712 # Warning - without using the other runtime loading flags (-brtl),
19713 # -berok will link without error, but may produce a broken library.
19714 allow_undefined_flag_F77
='-berok'
19715 # Determine the default libpath from the value encoded in an empty executable.
19716 cat >conftest.
$ac_ext <<_ACEOF
19721 rm -f conftest.
$ac_objext conftest
$ac_exeext
19722 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19723 (eval $ac_link) 2>conftest.er1
19725 grep -v '^ *+' conftest.er1
>conftest.err
19727 cat conftest.err
>&5
19728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19729 (exit $ac_status); } &&
19730 { ac_try
='test -z "$ac_f77_werror_flag"
19731 || test ! -s conftest.err'
19732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19733 (eval $ac_try) 2>&5
19735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19736 (exit $ac_status); }; } &&
19737 { ac_try
='test -s conftest$ac_exeext'
19738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19739 (eval $ac_try) 2>&5
19741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19742 (exit $ac_status); }; }; then
19744 lt_aix_libpath_sed
='
19745 /Import File Strings/,/^$/ {
19751 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19752 # Check for a 64-bit object if we didn't find anything.
19753 if test -z "$aix_libpath"; then
19754 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19757 echo "$as_me: failed program was:" >&5
19758 sed 's/^/| /' conftest.
$ac_ext >&5
19761 rm -f conftest.err conftest.
$ac_objext \
19762 conftest
$ac_exeext conftest.
$ac_ext
19763 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19765 hardcode_libdir_flag_spec_F77
='${wl}-blibpath:$libdir:'"$aix_libpath"
19766 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 "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
19768 if test "$host_cpu" = ia64
; then
19769 hardcode_libdir_flag_spec_F77
='${wl}-R $libdir:/usr/lib:/lib'
19770 allow_undefined_flag_F77
="-z nodefs"
19771 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"
19773 # Determine the default libpath from the value encoded in an empty executable.
19774 cat >conftest.
$ac_ext <<_ACEOF
19779 rm -f conftest.
$ac_objext conftest
$ac_exeext
19780 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19781 (eval $ac_link) 2>conftest.er1
19783 grep -v '^ *+' conftest.er1
>conftest.err
19785 cat conftest.err
>&5
19786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19787 (exit $ac_status); } &&
19788 { ac_try
='test -z "$ac_f77_werror_flag"
19789 || test ! -s conftest.err'
19790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19791 (eval $ac_try) 2>&5
19793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19794 (exit $ac_status); }; } &&
19795 { ac_try
='test -s conftest$ac_exeext'
19796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19797 (eval $ac_try) 2>&5
19799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800 (exit $ac_status); }; }; then
19802 lt_aix_libpath_sed
='
19803 /Import File Strings/,/^$/ {
19809 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19810 # Check for a 64-bit object if we didn't find anything.
19811 if test -z "$aix_libpath"; then
19812 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
19815 echo "$as_me: failed program was:" >&5
19816 sed 's/^/| /' conftest.
$ac_ext >&5
19819 rm -f conftest.err conftest.
$ac_objext \
19820 conftest
$ac_exeext conftest.
$ac_ext
19821 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
19823 hardcode_libdir_flag_spec_F77
='${wl}-blibpath:$libdir:'"$aix_libpath"
19824 # Warning - without using the other run time loading flags,
19825 # -berok will link without error, but may produce a broken library.
19826 no_undefined_flag_F77
=' ${wl}-bernotok'
19827 allow_undefined_flag_F77
=' ${wl}-berok'
19828 # Exported symbols can be pulled into shared objects from archives
19829 whole_archive_flag_spec_F77
='$convenience'
19830 archive_cmds_need_lc_F77
=yes
19831 # This is similar to how AIX traditionally builds its shared libraries.
19832 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'
19838 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)'
19839 hardcode_libdir_flag_spec_F77
='-L$libdir'
19840 hardcode_minus_L_F77
=yes
19841 # see comment about different semantics on the GNU ld section
19846 export_dynamic_flag_spec_F77
=-rdynamic
19849 cygwin
* | mingw
* | pw32
*)
19850 # When not using gcc, we currently assume that we are using
19851 # Microsoft Visual C++.
19852 # hardcode_libdir_flag_spec is actually meaningless, as there is
19853 # no search path for DLLs.
19854 hardcode_libdir_flag_spec_F77
=' '
19855 allow_undefined_flag_F77
=unsupported
19856 # Tell ltmain to make .lib files, not .a files.
19858 # Tell ltmain to make .dll files, not .so files.
19860 # FIXME: Setting linknames here is a bad hack.
19861 archive_cmds_F77
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19862 # The linker will automatically build a .lib file if we build a DLL.
19863 old_archive_From_new_cmds_F77
='true'
19864 # FIXME: Should let the user specify the lib program.
19865 old_archive_cmds_F77
='lib -OUT:$oldlib$oldobjs$old_deplibs'
19866 fix_srcfile_path_F77
='`cygpath -w "$srcfile"`'
19867 enable_shared_with_static_runtimes_F77
=yes
19870 darwin
* | rhapsody
*)
19872 rhapsody
* | darwin1.
[012])
19873 allow_undefined_flag_F77
='${wl}-undefined ${wl}suppress'
19876 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19877 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19879 case ${MACOSX_DEPLOYMENT_TARGET} in
19881 allow_undefined_flag_F77
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
19884 allow_undefined_flag_F77
='${wl}-undefined ${wl}dynamic_lookup'
19890 archive_cmds_need_lc_F77
=no
19891 hardcode_direct_F77
=no
19892 hardcode_automatic_F77
=yes
19893 hardcode_shlibpath_var_F77
=unsupported
19894 whole_archive_flag_spec_F77
=''
19895 link_all_deplibs_F77
=yes
19896 if test "$GCC" = yes ; then
19897 output_verbose_link_cmd
='echo'
19898 archive_cmds_F77
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19899 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19900 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19901 archive_expsym_cmds_F77
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19902 module_expsym_cmds_F77
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19904 case $cc_basename in
19906 output_verbose_link_cmd
='echo'
19907 archive_cmds_F77
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
19908 module_cmds_F77
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19909 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
19910 archive_expsym_cmds_F77
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19911 module_expsym_cmds_F77
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
19921 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19922 hardcode_libdir_flag_spec_F77
='-L$libdir'
19923 hardcode_shlibpath_var_F77
=no
19930 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19931 # support. Future versions do this automatically, but an explicit c++rt0.o
19932 # does not break anything, and helps significantly (at the cost of a little
19935 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19936 hardcode_libdir_flag_spec_F77
='-R$libdir'
19937 hardcode_direct_F77
=yes
19938 hardcode_shlibpath_var_F77
=no
19941 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19943 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19944 hardcode_direct_F77
=yes
19945 hardcode_minus_L_F77
=yes
19946 hardcode_shlibpath_var_F77
=no
19949 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19950 freebsd
* | dragonfly
*)
19951 archive_cmds_F77
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19952 hardcode_libdir_flag_spec_F77
='-R$libdir'
19953 hardcode_direct_F77
=yes
19954 hardcode_shlibpath_var_F77
=no
19958 if test "$GCC" = yes; then
19959 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'
19961 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'
19963 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
19964 hardcode_libdir_separator_F77
=:
19965 hardcode_direct_F77
=yes
19967 # hardcode_minus_L: Not really in the search PATH,
19968 # but as the default location of the library.
19969 hardcode_minus_L_F77
=yes
19970 export_dynamic_flag_spec_F77
='${wl}-E'
19974 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
19975 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19977 archive_cmds_F77
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19979 if test "$with_gnu_ld" = no
; then
19980 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
19981 hardcode_libdir_separator_F77
=:
19983 hardcode_direct_F77
=yes
19984 export_dynamic_flag_spec_F77
='${wl}-E'
19986 # hardcode_minus_L: Not really in the search PATH,
19987 # but as the default location of the library.
19988 hardcode_minus_L_F77
=yes
19993 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
19996 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19999 archive_cmds_F77
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
20002 archive_cmds_F77
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20008 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20011 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
20014 archive_cmds_F77
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
20018 if test "$with_gnu_ld" = no
; then
20019 hardcode_libdir_flag_spec_F77
='${wl}+b ${wl}$libdir'
20020 hardcode_libdir_separator_F77
=:
20024 hardcode_libdir_flag_spec_ld_F77
='+b $libdir'
20025 hardcode_direct_F77
=no
20026 hardcode_shlibpath_var_F77
=no
20029 hardcode_direct_F77
=yes
20030 export_dynamic_flag_spec_F77
='${wl}-E'
20032 # hardcode_minus_L: Not really in the search PATH,
20033 # but as the default location of the library.
20034 hardcode_minus_L_F77
=yes
20040 irix5
* | irix6
* | nonstopux
*)
20041 if test "$GCC" = yes; then
20042 archive_cmds_F77
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
20044 archive_cmds_F77
='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
20045 hardcode_libdir_flag_spec_ld_F77
='-rpath $libdir'
20047 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
20048 hardcode_libdir_separator_F77
=:
20049 link_all_deplibs_F77
=yes
20053 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
20054 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
20056 archive_cmds_F77
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
20058 hardcode_libdir_flag_spec_F77
='-R$libdir'
20059 hardcode_direct_F77
=yes
20060 hardcode_shlibpath_var_F77
=no
20064 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20065 hardcode_direct_F77
=yes
20066 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
20067 hardcode_libdir_separator_F77
=:
20068 hardcode_shlibpath_var_F77
=no
20072 if test -f /usr
/libexec
/ld.so
; then
20073 hardcode_direct_F77
=yes
20074 hardcode_shlibpath_var_F77
=no
20075 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20076 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20077 archive_expsym_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
20078 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
20079 export_dynamic_flag_spec_F77
='${wl}-E'
20082 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
20083 archive_cmds_F77
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
20084 hardcode_libdir_flag_spec_F77
='-R$libdir'
20087 archive_cmds_F77
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
20088 hardcode_libdir_flag_spec_F77
='${wl}-rpath,$libdir'
20098 hardcode_libdir_flag_spec_F77
='-L$libdir'
20099 hardcode_minus_L_F77
=yes
20100 allow_undefined_flag_F77
=unsupported
20101 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'
20102 old_archive_From_new_cmds_F77
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
20106 if test "$GCC" = yes; then
20107 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
20108 archive_cmds_F77
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
20110 allow_undefined_flag_F77
=' -expect_unresolved \*'
20111 archive_cmds_F77
='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
20113 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
20114 hardcode_libdir_separator_F77
=:
20117 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
20118 if test "$GCC" = yes; then
20119 allow_undefined_flag_F77
=' ${wl}-expect_unresolved ${wl}\*'
20120 archive_cmds_F77
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
20121 hardcode_libdir_flag_spec_F77
='${wl}-rpath ${wl}$libdir'
20123 allow_undefined_flag_F77
=' -expect_unresolved \*'
20124 archive_cmds_F77
='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
20125 archive_expsym_cmds_F77
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
20126 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
20128 # Both c and cxx compiler support -rpath directly
20129 hardcode_libdir_flag_spec_F77
='-rpath $libdir'
20131 hardcode_libdir_separator_F77
=:
20135 no_undefined_flag_F77
=' -z text'
20136 if test "$GCC" = yes; then
20138 archive_cmds_F77
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
20139 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20140 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
20143 archive_cmds_F77
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
20144 archive_expsym_cmds_F77
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
20145 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
20147 hardcode_libdir_flag_spec_F77
='-R$libdir'
20148 hardcode_shlibpath_var_F77
=no
20150 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
20152 # The compiler driver will combine and reorder linker options,
20153 # but understands `-z linker_flag'. GCC discards it without `$wl',
20154 # but is careful enough not to reorder.
20155 # Supported since Solaris 2.6 (maybe 2.5.1?)
20156 if test "$GCC" = yes; then
20157 whole_archive_flag_spec_F77
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
20159 whole_archive_flag_spec_F77
='-z allextract$convenience -z defaultextract'
20163 link_all_deplibs_F77
=yes
20167 if test "x$host_vendor" = xsequent
; then
20168 # Use $CC to link under sequent, because it throws in some extra .o
20169 # files that make .init and .fini sections work.
20170 archive_cmds_F77
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
20172 archive_cmds_F77
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
20174 hardcode_libdir_flag_spec_F77
='-L$libdir'
20175 hardcode_direct_F77
=yes
20176 hardcode_minus_L_F77
=yes
20177 hardcode_shlibpath_var_F77
=no
20181 case $host_vendor in
20183 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20184 hardcode_direct_F77
=yes # is this really true???
20187 ## LD is ld it makes a PLAMLIB
20188 ## CC just makes a GrossModule.
20189 archive_cmds_F77
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
20190 reload_cmds_F77
='$CC -r -o $output$reload_objs'
20191 hardcode_direct_F77
=no
20194 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20195 hardcode_direct_F77
=no
#Motorola manual says yes, but my tests say they lie
20198 runpath_var
='LD_RUN_PATH'
20199 hardcode_shlibpath_var_F77
=no
20203 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20204 hardcode_shlibpath_var_F77
=no
20205 export_dynamic_flag_spec_F77
='-Bexport'
20209 if test -d /usr
/nec
; then
20210 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20211 hardcode_shlibpath_var_F77
=no
20212 runpath_var
=LD_RUN_PATH
20213 hardcode_runpath_var
=yes
20218 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
20219 no_undefined_flag_F77
='${wl}-z,text'
20220 archive_cmds_need_lc_F77
=no
20221 hardcode_shlibpath_var_F77
=no
20222 runpath_var
='LD_RUN_PATH'
20224 if test "$GCC" = yes; then
20225 archive_cmds_F77
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20226 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20228 archive_cmds_F77
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20229 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
20233 sysv5
* | sco3.2v5
* | sco5v6
*)
20234 # Note: We can NOT use -z defs as we might desire, because we do not
20235 # link with -lc, and that would cause any symbols used from libc to
20236 # always be unresolved, which means just about no library would
20237 # ever link correctly. If we're not using GNU ld we use -z text
20238 # though, which does catch some bad symbols but isn't as heavy-handed
20240 no_undefined_flag_F77
='${wl}-z,text'
20241 allow_undefined_flag_F77
='${wl}-z,nodefs'
20242 archive_cmds_need_lc_F77
=no
20243 hardcode_shlibpath_var_F77
=no
20244 hardcode_libdir_flag_spec_F77
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
20245 hardcode_libdir_separator_F77
=':'
20246 link_all_deplibs_F77
=yes
20247 export_dynamic_flag_spec_F77
='${wl}-Bexport'
20248 runpath_var
='LD_RUN_PATH'
20250 if test "$GCC" = yes; then
20251 archive_cmds_F77
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20252 archive_expsym_cmds_F77
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20254 archive_cmds_F77
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20255 archive_expsym_cmds_F77
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
20260 archive_cmds_F77
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
20261 hardcode_libdir_flag_spec_F77
='-L$libdir'
20262 hardcode_shlibpath_var_F77
=no
20271 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
20272 echo "${ECHO_T}$ld_shlibs_F77" >&6
20273 test "$ld_shlibs_F77" = no
&& can_build_shared
=no
20276 # Do we need to explicitly link libc?
20278 case "x$archive_cmds_need_lc_F77" in
20280 # Assume -lc should be added
20281 archive_cmds_need_lc_F77
=yes
20283 if test "$enable_shared" = yes && test "$GCC" = yes; then
20284 case $archive_cmds_F77 in
20286 # FIXME: we may have to deal with multi-command sequences.
20289 # Test whether the compiler implicitly links with -lc since on some
20290 # systems, -lgcc has to come before -lc. If gcc already passes -lc
20291 # to ld, don't add -lc before -lgcc.
20292 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
20293 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
20295 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
20297 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
20298 (eval $ac_compile) 2>&5
20300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20301 (exit $ac_status); } 2>conftest.err
; then
20304 libobjs
=conftest.
$ac_objext
20306 wl
=$lt_prog_compiler_wl_F77
20307 pic_flag
=$lt_prog_compiler_pic_F77
20313 lt_save_allow_undefined_flag
=$allow_undefined_flag_F77
20314 allow_undefined_flag_F77
=
20315 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
20316 (eval $archive_cmds_F77 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
20318 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20319 (exit $ac_status); }
20321 archive_cmds_need_lc_F77
=no
20323 archive_cmds_need_lc_F77
=yes
20325 allow_undefined_flag_F77
=$lt_save_allow_undefined_flag
20327 cat conftest.err
1>&5
20330 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
20331 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
20338 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
20339 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
20340 library_names_spec
=
20341 libname_spec
='lib$name'
20345 postuninstall_cmds
=
20349 shlibpath_overrides_runpath
=unknown
20351 dynamic_linker
="$host_os ld.so"
20352 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
20354 need_lib_prefix
=unknown
20355 hardcode_into_libs
=no
20357 # when you set need_version to no, make sure it does not cause -set_version
20358 # flags to be left without arguments
20359 need_version
=unknown
20364 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
20365 shlibpath_var
=LIBPATH
20367 # AIX 3 has no versioning support, so we append a major version to the name.
20368 soname_spec
='${libname}${release}${shared_ext}$major'
20375 hardcode_into_libs
=yes
20376 if test "$host_cpu" = ia64
; then
20377 # AIX 5 supports IA64
20378 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
20379 shlibpath_var
=LD_LIBRARY_PATH
20381 # With GCC up to 2.95.x, collect2 would create an import file
20382 # for dependence libraries. The import file would start with
20383 # the line `#! .'. This would cause the generated library to
20384 # depend on `.', always an invalid library. This was fixed in
20385 # development snapshots of GCC prior to 3.0.
20387 aix4 | aix4.
[01] | aix4.
[01].
*)
20388 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
20390 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
20393 can_build_shared
=no
20397 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
20398 # soname into executable. Probably we can add versioning support to
20399 # collect2, so additional links can be useful in future.
20400 if test "$aix_use_runtimelinking" = yes; then
20401 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
20402 # instead of lib<name>.a to let people know that these are not
20403 # typical AIX shared libraries.
20404 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20406 # We preserve .a as extension for shared libraries through AIX4.2
20407 # and later when we are not doing run time linking.
20408 library_names_spec
='${libname}${release}.a $libname.a'
20409 soname_spec
='${libname}${release}${shared_ext}$major'
20411 shlibpath_var
=LIBPATH
20416 library_names_spec
='$libname.ixlibrary $libname.a'
20417 # Create ${libname}_ixlibrary.a entries in /sys/libs.
20418 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'
20422 library_names_spec
='${libname}${shared_ext}'
20423 dynamic_linker
="$host_os ld.so"
20424 shlibpath_var
=LIBRARY_PATH
20430 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20431 soname_spec
='${libname}${release}${shared_ext}$major'
20432 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
20433 shlibpath_var
=LD_LIBRARY_PATH
20434 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
20435 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
20436 # the default ld.so.conf also contains /usr/contrib/lib and
20437 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
20438 # libtool to hard-code these into programs
20441 cygwin
* | mingw
* | pw32
*)
20442 version_type
=windows
20447 case $GCC,$host_os in
20448 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
20449 library_names_spec
='$libname.dll.a'
20450 # DLL is installed to $(libdir)/../bin by postinstall_cmds
20451 postinstall_cmds
='base_file=`basename \${file}`~
20452 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
20453 dldir=$destdir/`dirname \$dlpath`~
20454 test -d \$dldir || mkdir -p \$dldir~
20455 $install_prog $dir/$dlname \$dldir/$dlname~
20456 chmod a+x \$dldir/$dlname'
20457 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
20458 dlpath=$dir/\$dldll~
20460 shlibpath_overrides_runpath
=yes
20464 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
20465 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20466 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
20469 # MinGW DLLs use traditional 'lib' prefix
20470 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20471 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
20472 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
20473 # It is most probably a Windows format PATH printed by
20474 # mingw gcc, but we are running on Cygwin. Gcc prints its search
20475 # path with ; separators, and with drive letters. We can handle the
20476 # drive letters (cygwin fileutils understands them), so leave them,
20477 # especially as we might pass files found there to a mingw objdump,
20478 # which wouldn't understand a cygwinified path. Ahh.
20479 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
20481 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
20485 # pw32 DLLs use 'pw' prefix rather than 'lib'
20486 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
20492 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20495 dynamic_linker
='Win32 ld.exe'
20496 # FIXME: first we should search . and the directory the executable is in
20500 darwin
* | rhapsody
*)
20501 dynamic_linker
="$host_os dyld"
20502 version_type
=darwin
20505 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20506 soname_spec
='${libname}${release}${major}$shared_ext'
20507 shlibpath_overrides_runpath
=yes
20508 shlibpath_var
=DYLD_LIBRARY_PATH
20509 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
20511 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
20518 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20519 soname_spec
='${libname}${release}${shared_ext}$major'
20520 shlibpath_var
=LD_LIBRARY_PATH
20527 freebsd
* | dragonfly
*)
20528 # DragonFly does not have aout. When/if they implement a new
20529 # versioning mechanism, adjust this.
20530 if test -x /usr
/bin
/objformat
; then
20531 objformat
=`/usr/bin/objformat`
20534 freebsd
[123]*) objformat
=aout
;;
20535 *) objformat
=elf
;;
20538 version_type
=freebsd-
$objformat
20539 case $version_type in
20541 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20546 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20550 shlibpath_var
=LD_LIBRARY_PATH
20553 shlibpath_overrides_runpath
=yes
20555 freebsd3.
[01]* | freebsdelf3.
[01]*)
20556 shlibpath_overrides_runpath
=yes
20557 hardcode_into_libs
=yes
20559 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
20560 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
20561 shlibpath_overrides_runpath
=no
20562 hardcode_into_libs
=yes
20564 *) # from 4.6 on, and DragonFly
20565 shlibpath_overrides_runpath
=yes
20566 hardcode_into_libs
=yes
20575 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20576 soname_spec
='${libname}${release}${shared_ext}$major'
20577 shlibpath_var
=LD_LIBRARY_PATH
20578 hardcode_into_libs
=yes
20581 hpux9
* | hpux10
* | hpux11
*)
20582 # Give a soname corresponding to the major version so that dld.sl refuses to
20583 # link against other versions.
20590 hardcode_into_libs
=yes
20591 dynamic_linker
="$host_os dld.so"
20592 shlibpath_var
=LD_LIBRARY_PATH
20593 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20594 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20595 soname_spec
='${libname}${release}${shared_ext}$major'
20596 if test "X$HPUX_IA64_MODE" = X32
; then
20597 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20599 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
20601 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20605 hardcode_into_libs
=yes
20606 dynamic_linker
="$host_os dld.sl"
20607 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
20608 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
20609 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20610 soname_spec
='${libname}${release}${shared_ext}$major'
20611 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20612 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
20616 dynamic_linker
="$host_os dld.sl"
20617 shlibpath_var
=SHLIB_PATH
20618 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
20619 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20620 soname_spec
='${libname}${release}${shared_ext}$major'
20623 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20624 postinstall_cmds
='chmod 555 $lib'
20631 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20632 soname_spec
='${libname}${release}${shared_ext}$major'
20633 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
20634 shlibpath_var
=LD_LIBRARY_PATH
20635 shlibpath_overrides_runpath
=no
20636 hardcode_into_libs
=yes
20639 irix5
* | irix6
* | nonstopux
*)
20641 nonstopux
*) version_type
=nonstopux
;;
20643 if test "$lt_cv_prog_gnu_ld" = yes; then
20651 soname_spec
='${libname}${release}${shared_ext}$major'
20652 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20654 irix5
* | nonstopux
*)
20655 libsuff
= shlibsuff
=
20658 case $LD in # libtool.m4 will add one of these switches to LD
20659 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
20660 libsuff
= shlibsuff
= libmagic
=32-bit;;
20661 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
20662 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
20663 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
20664 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
20665 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
20669 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
20670 shlibpath_overrides_runpath
=no
20671 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20672 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
20673 hardcode_into_libs
=yes
20676 # No shared lib support for Linux oldld, aout, or coff.
20677 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
20681 # This must be Linux ELF.
20682 linux
* | k
*bsd
*-gnu)
20686 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20687 soname_spec
='${libname}${release}${shared_ext}$major'
20688 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20689 shlibpath_var
=LD_LIBRARY_PATH
20690 shlibpath_overrides_runpath
=no
20691 # This implies no fast_install, which is unacceptable.
20692 # Some rework will be needed to allow for fast_install
20693 # before this can be enabled.
20694 hardcode_into_libs
=yes
20696 # Append ld.so.conf contents to the search path
20697 if test -f /etc
/ld.so.conf
; then
20698 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' ' '`
20699 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
20702 # We used to test for /lib/ld.so.1 and disable shared libraries on
20703 # powerpc, because MkLinux only supported shared libraries with the
20704 # GNU dynamic linker. Since this was broken with cross compilers,
20705 # most powerpc-linux boxes support dynamic linking these days and
20706 # people can always --disable-shared, the test was removed, and we
20707 # assume the GNU/Linux dynamic linker is in use.
20708 dynamic_linker
='GNU/Linux ld.so'
20715 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
20716 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20717 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20718 dynamic_linker
='NetBSD (a.out) ld.so'
20720 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20721 soname_spec
='${libname}${release}${shared_ext}$major'
20722 dynamic_linker
='NetBSD ld.elf_so'
20724 shlibpath_var
=LD_LIBRARY_PATH
20725 shlibpath_overrides_runpath
=yes
20726 hardcode_into_libs
=yes
20731 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20732 shlibpath_var
=LD_LIBRARY_PATH
20733 shlibpath_overrides_runpath
=yes
20740 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20741 soname_spec
='${libname}${release}${shared_ext}$major'
20742 shlibpath_var
=LD_LIBRARY_PATH
20743 shlibpath_overrides_runpath
=yes
20748 sys_lib_dlsearch_path_spec
="/usr/lib"
20750 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
20752 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
20753 *) need_version
=no
;;
20755 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20756 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20757 shlibpath_var
=LD_LIBRARY_PATH
20758 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20760 openbsd2.
[89] | openbsd2.
[89].
*)
20761 shlibpath_overrides_runpath
=no
20764 shlibpath_overrides_runpath
=yes
20768 shlibpath_overrides_runpath
=yes
20773 libname_spec
='$name'
20776 library_names_spec
='$libname${shared_ext} $libname.a'
20777 dynamic_linker
='OS/2 ld.exe'
20778 shlibpath_var
=LIBPATH
20781 osf3
* | osf4
* | osf5
*)
20785 soname_spec
='${libname}${release}${shared_ext}$major'
20786 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20787 shlibpath_var
=LD_LIBRARY_PATH
20788 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20789 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
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 shlibpath_var
=LD_LIBRARY_PATH
20803 shlibpath_overrides_runpath
=yes
20804 hardcode_into_libs
=yes
20805 # ldd complains unless libraries are executable
20806 postinstall_cmds
='chmod +x $lib'
20811 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20812 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20813 shlibpath_var
=LD_LIBRARY_PATH
20814 shlibpath_overrides_runpath
=yes
20815 if test "$with_gnu_ld" = yes; then
20823 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20824 soname_spec
='${libname}${release}${shared_ext}$major'
20825 shlibpath_var
=LD_LIBRARY_PATH
20826 case $host_vendor in
20828 shlibpath_overrides_runpath
=no
20830 export_dynamic_flag_spec
='${wl}-Blargedynsym'
20831 runpath_var
=LD_RUN_PATH
20839 shlibpath_overrides_runpath
=no
20840 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
20846 if test -d /usr
/nec
;then
20848 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20849 soname_spec
='$libname${shared_ext}.$major'
20850 shlibpath_var
=LD_LIBRARY_PATH
20854 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
20855 version_type
=freebsd-elf
20858 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20859 soname_spec
='${libname}${release}${shared_ext}$major'
20860 shlibpath_var
=LD_LIBRARY_PATH
20861 hardcode_into_libs
=yes
20862 if test "$with_gnu_ld" = yes; then
20863 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
20864 shlibpath_overrides_runpath
=no
20866 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
20867 shlibpath_overrides_runpath
=yes
20870 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
20874 sys_lib_dlsearch_path_spec
='/usr/lib'
20879 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20880 soname_spec
='${libname}${release}${shared_ext}$major'
20881 shlibpath_var
=LD_LIBRARY_PATH
20888 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20889 echo "${ECHO_T}$dynamic_linker" >&6
20890 test "$dynamic_linker" = no
&& can_build_shared
=no
20892 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
20893 if test "$GCC" = yes; then
20894 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
20897 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20898 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20899 hardcode_action_F77
=
20900 if test -n "$hardcode_libdir_flag_spec_F77" || \
20901 test -n "$runpath_var_F77" || \
20902 test "X$hardcode_automatic_F77" = "Xyes" ; then
20904 # We can hardcode non-existant directories.
20905 if test "$hardcode_direct_F77" != no
&&
20906 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20907 # have to relink, otherwise we might link with an installed library
20908 # when we should be linking with a yet-to-be-installed one
20909 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20910 test "$hardcode_minus_L_F77" != no
; then
20911 # Linking always hardcodes the temporary library directory.
20912 hardcode_action_F77
=relink
20914 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20915 hardcode_action_F77
=immediate
20918 # We cannot hardcode anything, or else we can only hardcode existing
20920 hardcode_action_F77
=unsupported
20922 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20923 echo "${ECHO_T}$hardcode_action_F77" >&6
20925 if test "$hardcode_action_F77" = relink
; then
20926 # Fast installation is not supported
20927 enable_fast_install
=no
20928 elif test "$shlibpath_overrides_runpath" = yes ||
20929 test "$enable_shared" = no
; then
20930 # Fast installation is not necessary
20931 enable_fast_install
=needless
20935 # The else clause should only fire when bootstrapping the
20936 # libtool distribution, otherwise you forgot to ship ltmain.sh
20937 # with your package, and you will get complaints that there are
20938 # no rules to generate ltmain.sh.
20939 if test -f "$ltmain"; then
20940 # See if we are running on zsh, and set the options which allow our commands through
20941 # without removal of \ escapes.
20942 if test -n "${ZSH_VERSION+set}" ; then
20943 setopt NO_GLOB_SUBST
20945 # Now quote all the things that may contain metacharacters while being
20946 # careful not to overquote the AC_SUBSTed values. We take copies of the
20947 # variables and quote the copies for generation of the libtool script.
20948 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
20950 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20951 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20952 deplibs_check_method reload_flag reload_cmds need_locks \
20953 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20954 lt_cv_sys_global_symbol_to_c_name_address \
20955 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20956 old_postinstall_cmds old_postuninstall_cmds \
20960 lt_prog_compiler_wl_F77 \
20961 lt_prog_compiler_pic_F77 \
20962 lt_prog_compiler_static_F77 \
20963 lt_prog_compiler_no_builtin_flag_F77 \
20964 export_dynamic_flag_spec_F77 \
20965 thread_safe_flag_spec_F77 \
20966 whole_archive_flag_spec_F77 \
20967 enable_shared_with_static_runtimes_F77 \
20968 old_archive_cmds_F77 \
20969 old_archive_from_new_cmds_F77 \
20970 predep_objects_F77 \
20971 postdep_objects_F77 \
20974 compiler_lib_search_path_F77 \
20976 archive_expsym_cmds_F77 \
20977 postinstall_cmds_F77 \
20978 postuninstall_cmds_F77 \
20979 old_archive_from_expsyms_cmds_F77 \
20980 allow_undefined_flag_F77 \
20981 no_undefined_flag_F77 \
20982 export_symbols_cmds_F77 \
20983 hardcode_libdir_flag_spec_F77 \
20984 hardcode_libdir_flag_spec_ld_F77 \
20985 hardcode_libdir_separator_F77 \
20986 hardcode_automatic_F77 \
20988 module_expsym_cmds_F77 \
20989 lt_cv_prog_compiler_c_o_F77 \
20990 fix_srcfile_path_F77 \
20991 exclude_expsyms_F77 \
20992 include_expsyms_F77
; do
20995 old_archive_cmds_F77 | \
20996 old_archive_from_new_cmds_F77 | \
20997 archive_cmds_F77 | \
20998 archive_expsym_cmds_F77 | \
20999 module_cmds_F77 | \
21000 module_expsym_cmds_F77 | \
21001 old_archive_from_expsyms_cmds_F77 | \
21002 export_symbols_cmds_F77 | \
21003 extract_expsyms_cmds | reload_cmds | finish_cmds | \
21004 postinstall_cmds | postuninstall_cmds | \
21005 old_postinstall_cmds | old_postuninstall_cmds | \
21006 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
21007 # Double-quote double-evaled strings.
21008 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
21011 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
21017 *'\$0 --fallback-echo"')
21018 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
21024 cat <<__EOF__ >> "$cfgfile"
21025 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
21027 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
21029 # Shell to use when invoking shell scripts.
21032 # Whether or not to build shared libraries.
21033 build_libtool_libs=$enable_shared
21035 # Whether or not to build static libraries.
21036 build_old_libs=$enable_static
21038 # Whether or not to add -lc for building shared libraries.
21039 build_libtool_need_lc=$archive_cmds_need_lc_F77
21041 # Whether or not to disallow shared libs when runtime libs are static
21042 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
21044 # Whether or not to optimize for fast installation.
21045 fast_install=$enable_fast_install
21048 host_alias=$host_alias
21052 # The build system.
21053 build_alias=$build_alias
21057 # An echo program that does not interpret backslashes.
21062 AR_FLAGS=$lt_AR_FLAGS
21067 # LTCC compiler flags.
21068 LTCFLAGS=$lt_LTCFLAGS
21070 # A language-specific compiler.
21071 CC=$lt_compiler_F77
21073 # Is the compiler the GNU C compiler?
21079 # The linker used to build libraries.
21082 # Whether we need hard or soft links.
21085 # A BSD-compatible nm program.
21088 # A symbol stripping program
21091 # Used to examine libraries when file_magic_cmd begins "file"
21092 MAGIC_CMD=$MAGIC_CMD
21094 # Used on cygwin: DLL creation program.
21097 # Used on cygwin: object dumper.
21100 # Used on cygwin: assembler.
21103 # The name of the directory that contains temporary libtool files.
21106 # How to create reloadable object files.
21107 reload_flag=$lt_reload_flag
21108 reload_cmds=$lt_reload_cmds
21110 # How to pass a linker flag through the compiler.
21111 wl=$lt_lt_prog_compiler_wl_F77
21113 # Object file suffix (normally "o").
21114 objext="$ac_objext"
21116 # Old archive suffix (normally "a").
21119 # Shared library suffix (normally ".so").
21120 shrext_cmds='$shrext_cmds'
21122 # Executable file suffix (normally "").
21125 # Additional compiler flags for building library objects.
21126 pic_flag=$lt_lt_prog_compiler_pic_F77
21129 # What is the maximum length of a command?
21130 max_cmd_len=$lt_cv_sys_max_cmd_len
21132 # Does compiler simultaneously support -c and -o options?
21133 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
21135 # Must we lock files when doing compilation?
21136 need_locks=$lt_need_locks
21138 # Do we need the lib prefix for modules?
21139 need_lib_prefix=$need_lib_prefix
21141 # Do we need a version for libraries?
21142 need_version=$need_version
21144 # Whether dlopen is supported.
21145 dlopen_support=$enable_dlopen
21147 # Whether dlopen of programs is supported.
21148 dlopen_self=$enable_dlopen_self
21150 # Whether dlopen of statically linked programs is supported.
21151 dlopen_self_static=$enable_dlopen_self_static
21153 # Compiler flag to prevent dynamic linking.
21154 link_static_flag=$lt_lt_prog_compiler_static_F77
21156 # Compiler flag to turn off builtin functions.
21157 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
21159 # Compiler flag to allow reflexive dlopens.
21160 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
21162 # Compiler flag to generate shared objects directly from archives.
21163 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
21165 # Compiler flag to generate thread-safe objects.
21166 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
21168 # Library versioning type.
21169 version_type=$version_type
21171 # Format of library name prefix.
21172 libname_spec=$lt_libname_spec
21174 # List of archive names. First name is the real one, the rest are links.
21175 # The last name is the one that the linker finds with -lNAME.
21176 library_names_spec=$lt_library_names_spec
21178 # The coded name of the library, if different from the real name.
21179 soname_spec=$lt_soname_spec
21181 # Commands used to build and install an old-style archive.
21183 old_archive_cmds=$lt_old_archive_cmds_F77
21184 old_postinstall_cmds=$lt_old_postinstall_cmds
21185 old_postuninstall_cmds=$lt_old_postuninstall_cmds
21187 # Create an old-style archive from a shared archive.
21188 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
21190 # Create a temporary old-style archive to link instead of a shared archive.
21191 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
21193 # Commands used to build and install a shared archive.
21194 archive_cmds=$lt_archive_cmds_F77
21195 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
21196 postinstall_cmds=$lt_postinstall_cmds
21197 postuninstall_cmds=$lt_postuninstall_cmds
21199 # Commands used to build a loadable module (assumed same as above if empty)
21200 module_cmds=$lt_module_cmds_F77
21201 module_expsym_cmds=$lt_module_expsym_cmds_F77
21203 # Commands to strip libraries.
21204 old_striplib=$lt_old_striplib
21205 striplib=$lt_striplib
21207 # Dependencies to place before the objects being linked to create a
21209 predep_objects=$lt_predep_objects_F77
21211 # Dependencies to place after the objects being linked to create a
21213 postdep_objects=$lt_postdep_objects_F77
21215 # Dependencies to place before the objects being linked to create a
21217 predeps=$lt_predeps_F77
21219 # Dependencies to place after the objects being linked to create a
21221 postdeps=$lt_postdeps_F77
21223 # The library search path used internally by the compiler when linking
21224 # a shared library.
21225 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
21227 # Method to check whether dependent libraries are shared objects.
21228 deplibs_check_method=$lt_deplibs_check_method
21230 # Command to use when deplibs_check_method == file_magic.
21231 file_magic_cmd=$lt_file_magic_cmd
21233 # Flag that allows shared libraries with undefined symbols to be built.
21234 allow_undefined_flag=$lt_allow_undefined_flag_F77
21236 # Flag that forces no undefined symbols.
21237 no_undefined_flag=$lt_no_undefined_flag_F77
21239 # Commands used to finish a libtool library installation in a directory.
21240 finish_cmds=$lt_finish_cmds
21242 # Same as above, but a single script fragment to be evaled but not shown.
21243 finish_eval=$lt_finish_eval
21245 # Take the output of nm and produce a listing of raw symbols and C names.
21246 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
21248 # Transform the output of nm in a proper C declaration
21249 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
21251 # Transform the output of nm in a C name address pair
21252 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
21254 # This is the shared library runtime path variable.
21255 runpath_var=$runpath_var
21257 # This is the shared library path variable.
21258 shlibpath_var=$shlibpath_var
21260 # Is shlibpath searched before the hard-coded library search path?
21261 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
21263 # How to hardcode a shared library path into an executable.
21264 hardcode_action=$hardcode_action_F77
21266 # Whether we should hardcode library paths into libraries.
21267 hardcode_into_libs=$hardcode_into_libs
21269 # Flag to hardcode \$libdir into a binary during linking.
21270 # This must work even if \$libdir does not exist.
21271 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
21273 # If ld is used when linking, flag to hardcode \$libdir into
21274 # a binary during linking. This must work even if \$libdir does
21276 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
21278 # Whether we need a single -rpath flag with a separated argument.
21279 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
21281 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
21282 # resulting binary.
21283 hardcode_direct=$hardcode_direct_F77
21285 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
21286 # resulting binary.
21287 hardcode_minus_L=$hardcode_minus_L_F77
21289 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
21290 # the resulting binary.
21291 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
21293 # Set to yes if building a shared library automatically hardcodes DIR into the library
21294 # and all subsequent libraries and executables linked against it.
21295 hardcode_automatic=$hardcode_automatic_F77
21297 # Variables whose values should be saved in libtool wrapper scripts and
21298 # restored at relink time.
21299 variables_saved_for_relink="$variables_saved_for_relink"
21301 # Whether libtool must link a program against all its dependency libraries.
21302 link_all_deplibs=$link_all_deplibs_F77
21304 # Compile-time system search path for libraries
21305 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
21307 # Run-time system search path for libraries
21308 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
21310 # Fix the shell variable \$srcfile for the compiler.
21311 fix_srcfile_path=$lt_fix_srcfile_path
21313 # Set to yes if exported symbols are required.
21314 always_export_symbols=$always_export_symbols_F77
21316 # The commands to list exported symbols.
21317 export_symbols_cmds=$lt_export_symbols_cmds_F77
21319 # The commands to extract the exported symbol list from a shared archive.
21320 extract_expsyms_cmds=$lt_extract_expsyms_cmds
21322 # Symbols that should not be listed in the preloaded symbols.
21323 exclude_expsyms=$lt_exclude_expsyms_F77
21325 # Symbols that must always be exported.
21326 include_expsyms=$lt_include_expsyms_F77
21328 # ### END LIBTOOL TAG CONFIG: $tagname
21334 # If there is no Makefile yet, we rely on a make rule to execute
21335 # `config.status --recheck' to rerun these tests and create the
21336 # libtool script then.
21337 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
21338 if test -f "$ltmain_in"; then
21339 test -f Makefile
&& make "$ltmain"
21345 ac_cpp
='$CPP $CPPFLAGS'
21346 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
21347 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
21348 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
21358 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
21362 # Source file extension for Java test sources.
21365 # Object file extension for compiled Java test sources.
21369 # Code to be used in simple compile tests
21370 lt_simple_compile_test_code
="class foo {}"
21372 # Code to be used in simple link tests
21373 lt_simple_link_test_code
='public class conftest { public static void main(String[] argv) {}; }'
21375 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
21377 # If no C compiler was specified, use CC.
21380 # If no C compiler flags were specified, use CFLAGS.
21381 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
21383 # Allow CC to be a program name with arguments.
21387 # save warnings/boilerplate of simple test code
21388 ac_outfile
=conftest.
$ac_objext
21389 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
21390 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
21391 _lt_compiler_boilerplate
=`cat conftest.err`
21394 ac_outfile
=conftest.
$ac_objext
21395 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
21396 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
21397 _lt_linker_boilerplate
=`cat conftest.err`
21401 # Allow CC to be a program name with arguments.
21406 for cc_temp
in $compiler""; do
21408 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
21409 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
21414 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21417 # GCJ did not exist at the time GCC didn't implicitly link libc in.
21418 archive_cmds_need_lc_GCJ
=no
21420 old_archive_cmds_GCJ
=$old_archive_cmds
21423 lt_prog_compiler_no_builtin_flag_GCJ
=
21425 if test "$GCC" = yes; then
21426 lt_prog_compiler_no_builtin_flag_GCJ
=' -fno-builtin'
21429 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
21430 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
21431 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
21432 echo $ECHO_N "(cached) $ECHO_C" >&6
21434 lt_cv_prog_compiler_rtti_exceptions
=no
21435 ac_outfile
=conftest.
$ac_objext
21436 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
21437 lt_compiler_flag
="-fno-rtti -fno-exceptions"
21438 # Insert the option either (1) after the last *FLAGS variable, or
21439 # (2) before a word containing "conftest.", or (3) at the end.
21440 # Note that $ac_compile itself does not contain backslashes and begins
21441 # with a dollar sign (not a hyphen), so the echo should work correctly.
21442 # The option is referenced via a variable to avoid confusing sed.
21443 lt_compile
=`echo "$ac_compile" | $SED \
21444 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21445 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21446 -e 's:$: $lt_compiler_flag:'`
21447 (eval echo "\"\$as_me:21447: $lt_compile\"" >&5)
21448 (eval "$lt_compile" 2>conftest.err
)
21450 cat conftest.err
>&5
21451 echo "$as_me:21451: \$? = $ac_status" >&5
21452 if (exit $ac_status) && test -s "$ac_outfile"; then
21453 # The compiler can only warn and ignore the option if not recognized
21454 # So say no if there are warnings other than the usual output.
21455 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
21456 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
21457 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
21458 lt_cv_prog_compiler_rtti_exceptions
=yes
21464 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
21465 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
21467 if test x
"$lt_cv_prog_compiler_rtti_exceptions" = xyes
; then
21468 lt_prog_compiler_no_builtin_flag_GCJ
="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
21475 lt_prog_compiler_wl_GCJ
=
21476 lt_prog_compiler_pic_GCJ
=
21477 lt_prog_compiler_static_GCJ
=
21479 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
21480 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
21482 if test "$GCC" = yes; then
21483 lt_prog_compiler_wl_GCJ
='-Wl,'
21484 lt_prog_compiler_static_GCJ
='-static'
21488 # All AIX code is PIC.
21489 if test "$host_cpu" = ia64
; then
21490 # AIX 5 now supports IA64 processor
21491 lt_prog_compiler_static_GCJ
='-Bstatic'
21496 # FIXME: we need at least 68020 code to build shared libraries, but
21497 # adding the `-m68020' flag to GCC prevents building anything better,
21499 lt_prog_compiler_pic_GCJ
='-m68020 -resident32 -malways-restore-a4'
21502 beos
* | irix5
* | irix6
* | nonstopux
* | osf3
* | osf4
* | osf5
*)
21503 # PIC is the default for these OSes.
21506 mingw
* | cygwin
* | pw32
* | os2
*)
21507 # This hack is so that the source file can tell whether it is being
21508 # built for inclusion in a dll (and should export symbols for example).
21509 # Although the cygwin gcc ignores -fPIC, still need this for old-style
21510 # (--disable-auto-import) libraries
21511 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
21514 darwin
* | rhapsody
*)
21515 # PIC is the default on this platform
21516 # Common symbols not allowed in MH_DYLIB files
21517 lt_prog_compiler_pic_GCJ
='-fno-common'
21521 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
21522 # Instead, we relocate shared libraries at runtime.
21526 # Just because we use GCC doesn't mean we suddenly get shared libraries
21527 # on systems that don't support them.
21528 lt_prog_compiler_can_build_shared_GCJ
=no
21533 if test -d /usr
/nec
; then
21534 lt_prog_compiler_pic_GCJ
=-Kconform_pic
21539 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21540 # not for PA HP-UX.
21546 lt_prog_compiler_pic_GCJ
='-fPIC'
21552 lt_prog_compiler_pic_GCJ
='-fPIC'
21556 # PORTME Check for flag to pass linker flags through the system compiler.
21559 lt_prog_compiler_wl_GCJ
='-Wl,'
21560 if test "$host_cpu" = ia64
; then
21561 # AIX 5 now supports IA64 processor
21562 lt_prog_compiler_static_GCJ
='-Bstatic'
21564 lt_prog_compiler_static_GCJ
='-bnso -bI:/lib/syscalls.exp'
21568 # PIC is the default on this platform
21569 # Common symbols not allowed in MH_DYLIB files
21570 case $cc_basename in
21572 lt_prog_compiler_pic_GCJ
='-qnocommon'
21573 lt_prog_compiler_wl_GCJ
='-Wl,'
21578 mingw
* | cygwin
* | pw32
* | os2
*)
21579 # This hack is so that the source file can tell whether it is being
21580 # built for inclusion in a dll (and should export symbols for example).
21581 lt_prog_compiler_pic_GCJ
='-DDLL_EXPORT'
21584 hpux9
* | hpux10
* | hpux11
*)
21585 lt_prog_compiler_wl_GCJ
='-Wl,'
21586 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21587 # not for PA HP-UX.
21593 lt_prog_compiler_pic_GCJ
='+Z'
21596 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21597 lt_prog_compiler_static_GCJ
='${wl}-a ${wl}archive'
21600 irix5
* | irix6
* | nonstopux
*)
21601 lt_prog_compiler_wl_GCJ
='-Wl,'
21602 # PIC (with -KPIC) is the default.
21603 lt_prog_compiler_static_GCJ
='-non_shared'
21607 lt_prog_compiler_pic_GCJ
='-KPIC'
21608 lt_prog_compiler_static_GCJ
='-Bstatic'
21611 linux
* | k
*bsd
*-gnu)
21612 case $cc_basename in
21614 lt_prog_compiler_wl_GCJ
='-Wl,'
21615 lt_prog_compiler_pic_GCJ
='-KPIC'
21616 lt_prog_compiler_static_GCJ
='-static'
21618 pgcc
* | pgf77
* | pgf90
* | pgf95
*)
21619 # Portland Group compilers (*not* the Pentium gcc compiler,
21620 # which looks to be a dead project)
21621 lt_prog_compiler_wl_GCJ
='-Wl,'
21622 lt_prog_compiler_pic_GCJ
='-fpic'
21623 lt_prog_compiler_static_GCJ
='-Bstatic'
21626 lt_prog_compiler_wl_GCJ
='-Wl,'
21627 # All Alpha code is PIC.
21628 lt_prog_compiler_static_GCJ
='-non_shared'
21631 case `$CC -V 2>&1 | sed 5q` in
21634 lt_prog_compiler_pic_GCJ
='-KPIC'
21635 lt_prog_compiler_static_GCJ
='-Bstatic'
21636 lt_prog_compiler_wl_GCJ
='-Wl,'
21639 # Sun Fortran 8.3 passes all unrecognized flags to the linker
21640 lt_prog_compiler_pic_GCJ
='-KPIC'
21641 lt_prog_compiler_static_GCJ
='-Bstatic'
21642 lt_prog_compiler_wl_GCJ
=''
21649 osf3
* | osf4
* | osf5
*)
21650 lt_prog_compiler_wl_GCJ
='-Wl,'
21651 # All OSF/1 code is PIC.
21652 lt_prog_compiler_static_GCJ
='-non_shared'
21656 lt_prog_compiler_static_GCJ
='-non_shared'
21660 lt_prog_compiler_pic_GCJ
='-KPIC'
21661 lt_prog_compiler_static_GCJ
='-Bstatic'
21662 case $cc_basename in
21663 f77
* | f90
* | f95
*)
21664 lt_prog_compiler_wl_GCJ
='-Qoption ld ';;
21666 lt_prog_compiler_wl_GCJ
='-Wl,';;
21671 lt_prog_compiler_wl_GCJ
='-Qoption ld '
21672 lt_prog_compiler_pic_GCJ
='-PIC'
21673 lt_prog_compiler_static_GCJ
='-Bstatic'
21676 sysv4 | sysv4.2uw2
* | sysv4.3
*)
21677 lt_prog_compiler_wl_GCJ
='-Wl,'
21678 lt_prog_compiler_pic_GCJ
='-KPIC'
21679 lt_prog_compiler_static_GCJ
='-Bstatic'
21683 if test -d /usr
/nec
;then
21684 lt_prog_compiler_pic_GCJ
='-Kconform_pic'
21685 lt_prog_compiler_static_GCJ
='-Bstatic'
21689 sysv5
* | unixware
* | sco3.2v5
* | sco5v6
* | OpenUNIX
*)
21690 lt_prog_compiler_wl_GCJ
='-Wl,'
21691 lt_prog_compiler_pic_GCJ
='-KPIC'
21692 lt_prog_compiler_static_GCJ
='-Bstatic'
21696 lt_prog_compiler_wl_GCJ
='-Wl,'
21697 lt_prog_compiler_can_build_shared_GCJ
=no
21701 lt_prog_compiler_pic_GCJ
='-pic'
21702 lt_prog_compiler_static_GCJ
='-Bstatic'
21706 lt_prog_compiler_can_build_shared_GCJ
=no
21711 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21712 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21715 # Check to make sure the PIC flag actually works.
21717 if test -n "$lt_prog_compiler_pic_GCJ"; then
21719 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21720 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21721 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21722 echo $ECHO_N "(cached) $ECHO_C" >&6
21724 lt_prog_compiler_pic_works_GCJ
=no
21725 ac_outfile
=conftest.
$ac_objext
21726 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
21727 lt_compiler_flag
="$lt_prog_compiler_pic_GCJ"
21728 # Insert the option either (1) after the last *FLAGS variable, or
21729 # (2) before a word containing "conftest.", or (3) at the end.
21730 # Note that $ac_compile itself does not contain backslashes and begins
21731 # with a dollar sign (not a hyphen), so the echo should work correctly.
21732 # The option is referenced via a variable to avoid confusing sed.
21733 lt_compile
=`echo "$ac_compile" | $SED \
21734 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21735 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21736 -e 's:$: $lt_compiler_flag:'`
21737 (eval echo "\"\$as_me:21737: $lt_compile\"" >&5)
21738 (eval "$lt_compile" 2>conftest.err
)
21740 cat conftest.err
>&5
21741 echo "$as_me:21741: \$? = $ac_status" >&5
21742 if (exit $ac_status) && test -s "$ac_outfile"; then
21743 # The compiler can only warn and ignore the option if not recognized
21744 # So say no if there are warnings other than the usual output.
21745 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' >conftest.exp
21746 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
21747 if test ! -s conftest.er2 ||
diff conftest.exp conftest.er2
>/dev
/null
; then
21748 lt_prog_compiler_pic_works_GCJ
=yes
21754 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21755 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21757 if test x
"$lt_prog_compiler_pic_works_GCJ" = xyes
; then
21758 case $lt_prog_compiler_pic_GCJ in
21760 *) lt_prog_compiler_pic_GCJ
=" $lt_prog_compiler_pic_GCJ" ;;
21763 lt_prog_compiler_pic_GCJ
=
21764 lt_prog_compiler_can_build_shared_GCJ
=no
21769 # For platforms which do not support PIC, -DPIC is meaningless:
21771 lt_prog_compiler_pic_GCJ
=
21774 lt_prog_compiler_pic_GCJ
="$lt_prog_compiler_pic_GCJ"
21779 # Check to make sure the static flag actually works.
21781 wl
=$lt_prog_compiler_wl_GCJ eval lt_tmp_static_flag
=\"$lt_prog_compiler_static_GCJ\"
21782 echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5
21783 echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6
21784 if test "${lt_prog_compiler_static_works_GCJ+set}" = set; then
21785 echo $ECHO_N "(cached) $ECHO_C" >&6
21787 lt_prog_compiler_static_works_GCJ
=no
21788 save_LDFLAGS
="$LDFLAGS"
21789 LDFLAGS
="$LDFLAGS $lt_tmp_static_flag"
21790 echo "$lt_simple_link_test_code" > conftest.
$ac_ext
21791 if (eval $ac_link 2>conftest.err
) && test -s conftest
$ac_exeext; then
21792 # The linker can only warn and ignore the option if not recognized
21793 # So say no if there are warnings
21794 if test -s conftest.err
; then
21795 # Append any errors to the config.log.
21796 cat conftest.err
1>&5
21797 $echo "X$_lt_linker_boilerplate" |
$Xsed -e '/^$/d' > conftest.exp
21798 $SED '/^$/d; /^ *+/d' conftest.err
>conftest.er2
21799 if diff conftest.exp conftest.er2
>/dev
/null
; then
21800 lt_prog_compiler_static_works_GCJ
=yes
21803 lt_prog_compiler_static_works_GCJ
=yes
21807 LDFLAGS
="$save_LDFLAGS"
21810 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_GCJ" >&5
21811 echo "${ECHO_T}$lt_prog_compiler_static_works_GCJ" >&6
21813 if test x
"$lt_prog_compiler_static_works_GCJ" = xyes
; then
21816 lt_prog_compiler_static_GCJ
=
21820 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21821 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21822 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21823 echo $ECHO_N "(cached) $ECHO_C" >&6
21825 lt_cv_prog_compiler_c_o_GCJ
=no
21826 $rm -r conftest
2>/dev
/null
21830 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
21832 lt_compiler_flag
="-o out/conftest2.$ac_objext"
21833 # Insert the option either (1) after the last *FLAGS variable, or
21834 # (2) before a word containing "conftest.", or (3) at the end.
21835 # Note that $ac_compile itself does not contain backslashes and begins
21836 # with a dollar sign (not a hyphen), so the echo should work correctly.
21837 lt_compile
=`echo "$ac_compile" | $SED \
21838 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
21839 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21840 -e 's:$: $lt_compiler_flag:'`
21841 (eval echo "\"\$as_me:21841: $lt_compile\"" >&5)
21842 (eval "$lt_compile" 2>out
/conftest.err
)
21844 cat out
/conftest.err
>&5
21845 echo "$as_me:21845: \$? = $ac_status" >&5
21846 if (exit $ac_status) && test -s out
/conftest2.
$ac_objext
21848 # The compiler can only warn and ignore the option if not recognized
21849 # So say no if there are warnings
21850 $echo "X$_lt_compiler_boilerplate" |
$Xsed -e '/^$/d' > out
/conftest.exp
21851 $SED '/^$/d; /^ *+/d' out
/conftest.err
>out
/conftest.er2
21852 if test ! -s out
/conftest.er2 ||
diff out
/conftest.exp out
/conftest.er2
>/dev
/null
; then
21853 lt_cv_prog_compiler_c_o_GCJ
=yes
21858 # SGI C++ compiler will create directory out/ii_files/ for
21859 # template instantiation
21860 test -d out
/ii_files
&& $rm out
/ii_files
/* && rmdir out
/ii_files
21861 $rm out
/* && rmdir out
21867 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21868 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21871 hard_links
="nottested"
21872 if test "$lt_cv_prog_compiler_c_o_GCJ" = no
&& test "$need_locks" != no
; then
21873 # do not overwrite the value of need_locks provided by the user
21874 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21875 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21878 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
21880 ln conftest.a conftest.b
2>&5 || hard_links
=no
21881 ln conftest.a conftest.b
2>/dev
/null
&& hard_links
=no
21882 echo "$as_me:$LINENO: result: $hard_links" >&5
21883 echo "${ECHO_T}$hard_links" >&6
21884 if test "$hard_links" = no
; then
21885 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21886 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21893 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21894 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21897 allow_undefined_flag_GCJ
=
21898 enable_shared_with_static_runtimes_GCJ
=no
21900 archive_expsym_cmds_GCJ
=
21901 old_archive_From_new_cmds_GCJ
=
21902 old_archive_from_expsyms_cmds_GCJ
=
21903 export_dynamic_flag_spec_GCJ
=
21904 whole_archive_flag_spec_GCJ
=
21905 thread_safe_flag_spec_GCJ
=
21906 hardcode_libdir_flag_spec_GCJ
=
21907 hardcode_libdir_flag_spec_ld_GCJ
=
21908 hardcode_libdir_separator_GCJ
=
21909 hardcode_direct_GCJ
=no
21910 hardcode_minus_L_GCJ
=no
21911 hardcode_shlibpath_var_GCJ
=unsupported
21912 link_all_deplibs_GCJ
=unknown
21913 hardcode_automatic_GCJ
=no
21915 module_expsym_cmds_GCJ
=
21916 always_export_symbols_GCJ
=no
21917 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21918 # include_expsyms should be a list of space-separated symbols to be *always*
21919 # included in the symbol list
21920 include_expsyms_GCJ
=
21921 # exclude_expsyms can be an extended regexp of symbols to exclude
21922 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21923 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21924 # as well as any symbol that contains `d'.
21925 exclude_expsyms_GCJ
="_GLOBAL_OFFSET_TABLE_"
21926 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21927 # platforms (ab)use it in PIC code, but their linkers get confused if
21928 # the symbol is explicitly referenced. Since portable code cannot
21929 # rely on this symbol name, it's probably fine to never include it in
21930 # preloaded symbol tables.
21931 extract_expsyms_cmds
=
21932 # Just being paranoid about ensuring that cc_basename is set.
21933 for cc_temp
in $compiler""; do
21935 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
21936 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
21941 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
21944 cygwin
* | mingw
* | pw32
*)
21945 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21946 # When not using gcc, we currently assume that we are using
21947 # Microsoft Visual C++.
21948 if test "$GCC" != yes; then
21953 # we just hope/assume this is gcc and not c89 (= MSVC++)
21962 if test "$with_gnu_ld" = yes; then
21963 # If archive_cmds runs LD, not CC, wlarc should be empty
21966 # Set some defaults for GNU ld with shared library support. These
21967 # are reset later if shared libraries are not supported. Putting them
21968 # here allows them to be overridden if necessary.
21969 runpath_var
=LD_RUN_PATH
21970 hardcode_libdir_flag_spec_GCJ
='${wl}--rpath ${wl}$libdir'
21971 export_dynamic_flag_spec_GCJ
='${wl}--export-dynamic'
21972 # ancient GNU ld didn't support --whole-archive et. al.
21973 if $LD --help 2>&1 |
grep 'no-whole-archive' > /dev
/null
; then
21974 whole_archive_flag_spec_GCJ
="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21976 whole_archive_flag_spec_GCJ
=
21978 supports_anon_versioning
=no
21979 case `$LD -v 2>/dev/null` in
21980 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.10.
*) ;; # catch versions < 2.11
21981 *\
2.11.93.0.2\
*) supports_anon_versioning
=yes ;; # RH7.3 ...
21982 *\
2.11.92.0.12\
*) supports_anon_versioning
=yes ;; # Mandrake 8.2 ...
21983 *\
2.11.
*) ;; # other 2.11 versions
21984 *) supports_anon_versioning
=yes ;;
21987 # See if GNU ld supports shared libraries.
21989 aix3
* | aix4
* | aix5
*)
21990 # On AIX/PPC, the GNU linker is very broken
21991 if test "$host_cpu" != ia64
; then
21995 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21996 *** to be unable to reliably create shared libraries on AIX.
21997 *** Therefore, libtool is disabling shared libraries support. If you
21998 *** really care for shared libraries, you may want to modify your PATH
21999 *** so that a non-GNU linker is found, and then restart.
22006 archive_cmds_GCJ
='$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)'
22007 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
22008 hardcode_minus_L_GCJ
=yes
22010 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
22011 # that the semantics of dynamic libraries on AmigaOS, at least up
22012 # to version 4, is to share data among multiple programs linked
22013 # with the same dynamic library. Since this doesn't match the
22014 # behavior of shared libraries on other platforms, we can't use
22020 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
22021 allow_undefined_flag_GCJ
=unsupported
22022 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
22023 # support --undefined. This deserves some investigation. FIXME
22024 archive_cmds_GCJ
='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22030 cygwin
* | mingw
* | pw32
*)
22031 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
22032 # as there is no search path for DLLs.
22033 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
22034 allow_undefined_flag_GCJ
=unsupported
22035 always_export_symbols_GCJ
=no
22036 enable_shared_with_static_runtimes_GCJ
=yes
22037 export_symbols_cmds_GCJ
='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
22039 if $LD --help 2>&1 |
grep 'auto-import' > /dev
/null
; then
22040 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22041 # If the export-symbols file already is a .def file (1st line
22042 # is EXPORTS), use it as is; otherwise, prepend...
22043 archive_expsym_cmds_GCJ
='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
22044 cp $export_symbols $output_objdir/$soname.def;
22046 echo EXPORTS > $output_objdir/$soname.def;
22047 cat $export_symbols >> $output_objdir/$soname.def;
22049 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
22056 hardcode_direct_GCJ
=no
22057 hardcode_shlibpath_var_GCJ
=no
22058 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
22059 export_dynamic_flag_spec_GCJ
='${wl}-E'
22060 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
22061 # Instead, shared libraries are loaded at an image base (0x10000000 by
22062 # default) and relocated if they conflict, which is a slow very memory
22063 # consuming and fragmenting process. To avoid this, we pick a random,
22064 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
22065 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
22066 archive_cmds_GCJ
='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
22067 archive_expsym_cmds_GCJ
='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'
22070 gnu
* | linux
* | k
*bsd
*-gnu)
22071 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
22073 case $cc_basename,$host_cpu in
22074 pgcc
*) # Portland Group C compiler
22075 whole_archive_flag_spec_GCJ
='${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'
22078 pgf77
* | pgf90
* | pgf95
*) # Portland Group f77 and f90 compilers
22079 whole_archive_flag_spec_GCJ
='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $echo \"$new_convenience\"` ${wl}--no-whole-archive'
22080 tmp_addflag
=' $pic_flag -Mnomain' ;;
22081 ecc
*,ia64
* | icc
*,ia64
*) # Intel C compiler on ia64
22082 tmp_addflag
=' -i_dynamic' ;;
22083 efc
*,ia64
* | ifort
*,ia64
*) # Intel Fortran compiler on ia64
22084 tmp_addflag
=' -i_dynamic -nofor_main' ;;
22085 ifc
* | ifort
*) # Intel Fortran compiler
22086 tmp_addflag
=' -nofor_main' ;;
22088 case `$CC -V 2>&1 | sed 5q` in
22089 *Sun\ C
*) # Sun C 5.9
22090 whole_archive_flag_spec_GCJ
='${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'
22091 tmp_sharedflag
='-G' ;;
22092 *Sun\ F
*) # Sun Fortran 8.3
22093 tmp_sharedflag
='-G' ;;
22095 tmp_sharedflag
='-shared' ;;
22097 archive_cmds_GCJ
='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22099 if test $supports_anon_versioning = yes; then
22100 archive_expsym_cmds_GCJ
='$echo "{ global:" > $output_objdir/$libname.ver~
22101 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
22102 $echo "local: *; };" >> $output_objdir/$libname.ver~
22103 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
22111 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
22112 archive_cmds_GCJ
='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
22115 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22116 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22121 if $LD -v 2>&1 |
grep 'BFD 2\.8' > /dev
/null
; then
22125 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
22126 *** create shared libraries on Solaris systems. Therefore, libtool
22127 *** is disabling shared libraries support. We urge you to upgrade GNU
22128 *** binutils to release 2.9.1 or newer. Another option is to modify
22129 *** your PATH or compiler configuration so that the native linker is
22130 *** used, and then restart.
22133 elif $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
22134 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22135 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22141 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
*)
22142 case `$LD -v 2>&1` in
22143 *\
[01].
* |
*\
2.
[0-9].
* |
*\
2.1[0-5].
*)
22147 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
22148 *** reliably create shared libraries on SCO systems. Therefore, libtool
22149 *** is disabling shared libraries support. We urge you to upgrade GNU
22150 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
22151 *** your PATH or compiler configuration so that the native linker is
22152 *** used, and then restart.
22157 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
22158 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-rpath,$libdir`'
22159 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib'
22160 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname,\${SCOABSPATH:+${install_libdir}/}$soname,-retain-symbols-file,$export_symbols -o $lib'
22169 archive_cmds_GCJ
='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22171 hardcode_direct_GCJ
=yes
22172 hardcode_shlibpath_var_GCJ
=no
22176 if $LD --help 2>&1 |
grep ': supported targets:.* elf' > /dev
/null
; then
22177 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
22178 archive_expsym_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
22185 if test "$ld_shlibs_GCJ" = no
; then
22187 hardcode_libdir_flag_spec_GCJ
=
22188 export_dynamic_flag_spec_GCJ
=
22189 whole_archive_flag_spec_GCJ
=
22192 # PORTME fill in a description of your system's linker (not GNU ld)
22195 allow_undefined_flag_GCJ
=unsupported
22196 always_export_symbols_GCJ
=yes
22197 archive_expsym_cmds_GCJ
='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
22198 # Note: this linker hardcodes the directories in LIBPATH if there
22199 # are no directories specified by -L.
22200 hardcode_minus_L_GCJ
=yes
22201 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
22202 # Neither direct hardcoding nor static linking is supported with a
22204 hardcode_direct_GCJ
=unsupported
22209 if test "$host_cpu" = ia64
; then
22210 # On IA64, the linker does run time linking by default, so we don't
22211 # have to do anything special.
22212 aix_use_runtimelinking
=no
22213 exp_sym_flag
='-Bexport'
22216 # If we're using GNU nm, then we don't want the "-C" option.
22217 # -C means demangle to AIX nm, but means don't demangle with GNU nm
22218 if $NM -V 2>&1 |
grep 'GNU' > /dev
/null
; then
22219 export_symbols_cmds_GCJ
='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
22221 export_symbols_cmds_GCJ
='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols'
22223 aix_use_runtimelinking
=no
22225 # Test if we are trying to use run time linking or normal
22226 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
22227 # need to do runtime linking.
22228 case $host_os in aix4.
[23]|aix4.
[23].
*|aix5
*)
22229 for ld_flag
in $LDFLAGS; do
22230 if (test $ld_flag = "-brtl" ||
test $ld_flag = "-Wl,-brtl"); then
22231 aix_use_runtimelinking
=yes
22238 exp_sym_flag
='-bexport'
22239 no_entry_flag
='-bnoentry'
22242 # When large executables or shared objects are built, AIX ld can
22243 # have problems creating the table of contents. If linking a library
22244 # or program results in "error TOC overflow" add -mminimal-toc to
22245 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
22246 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
22248 archive_cmds_GCJ
=''
22249 hardcode_direct_GCJ
=yes
22250 hardcode_libdir_separator_GCJ
=':'
22251 link_all_deplibs_GCJ
=yes
22253 if test "$GCC" = yes; then
22254 case $host_os in aix4.
[012]|aix4.
[012].
*)
22255 # We only want to do this on AIX 4.2 and lower, the check
22256 # below for broken collect2 doesn't work under 4.3+
22257 collect2name
=`${CC} -print-prog-name=collect2`
22258 if test -f "$collect2name" && \
22259 strings "$collect2name" |
grep resolve_lib_name
>/dev
/null
22261 # We have reworked collect2
22264 # We have old collect2
22265 hardcode_direct_GCJ
=unsupported
22266 # It fails to find uninstalled libraries when the uninstalled
22267 # path is not listed in the libpath. Setting hardcode_minus_L
22268 # to unsupported forces relinking
22269 hardcode_minus_L_GCJ
=yes
22270 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
22271 hardcode_libdir_separator_GCJ
=
22275 shared_flag
='-shared'
22276 if test "$aix_use_runtimelinking" = yes; then
22277 shared_flag
="$shared_flag "'${wl}-G'
22281 if test "$host_cpu" = ia64
; then
22282 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
22283 # chokes on -Wl,-G. The following line is correct:
22286 if test "$aix_use_runtimelinking" = yes; then
22287 shared_flag
='${wl}-G'
22289 shared_flag
='${wl}-bM:SRE'
22294 # It seems that -bexpall does not export symbols beginning with
22295 # underscore (_), so it is better to generate a list of symbols to export.
22296 always_export_symbols_GCJ
=yes
22297 if test "$aix_use_runtimelinking" = yes; then
22298 # Warning - without using the other runtime loading flags (-brtl),
22299 # -berok will link without error, but may produce a broken library.
22300 allow_undefined_flag_GCJ
='-berok'
22301 # Determine the default libpath from the value encoded in an empty executable.
22302 cat >conftest.
$ac_ext <<_ACEOF
22305 cat confdefs.h
>>conftest.
$ac_ext
22306 cat >>conftest.
$ac_ext <<_ACEOF
22307 /* end confdefs.h. */
22317 rm -f conftest.
$ac_objext conftest
$ac_exeext
22318 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22319 (eval $ac_link) 2>conftest.er1
22321 grep -v '^ *+' conftest.er1
>conftest.err
22323 cat conftest.err
>&5
22324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22325 (exit $ac_status); } &&
22326 { ac_try
='test -z "$ac_c_werror_flag"
22327 || test ! -s conftest.err'
22328 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22329 (eval $ac_try) 2>&5
22331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22332 (exit $ac_status); }; } &&
22333 { ac_try
='test -s conftest$ac_exeext'
22334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22335 (eval $ac_try) 2>&5
22337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22338 (exit $ac_status); }; }; then
22340 lt_aix_libpath_sed
='
22341 /Import File Strings/,/^$/ {
22347 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22348 # Check for a 64-bit object if we didn't find anything.
22349 if test -z "$aix_libpath"; then
22350 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22353 echo "$as_me: failed program was:" >&5
22354 sed 's/^/| /' conftest.
$ac_ext >&5
22357 rm -f conftest.err conftest.
$ac_objext \
22358 conftest
$ac_exeext conftest.
$ac_ext
22359 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
22361 hardcode_libdir_flag_spec_GCJ
='${wl}-blibpath:$libdir:'"$aix_libpath"
22362 archive_expsym_cmds_GCJ
="\$CC"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
22364 if test "$host_cpu" = ia64
; then
22365 hardcode_libdir_flag_spec_GCJ
='${wl}-R $libdir:/usr/lib:/lib'
22366 allow_undefined_flag_GCJ
="-z nodefs"
22367 archive_expsym_cmds_GCJ
="\$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"
22369 # Determine the default libpath from the value encoded in an empty executable.
22370 cat >conftest.
$ac_ext <<_ACEOF
22373 cat confdefs.h
>>conftest.
$ac_ext
22374 cat >>conftest.
$ac_ext <<_ACEOF
22375 /* end confdefs.h. */
22385 rm -f conftest.
$ac_objext conftest
$ac_exeext
22386 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22387 (eval $ac_link) 2>conftest.er1
22389 grep -v '^ *+' conftest.er1
>conftest.err
22391 cat conftest.err
>&5
22392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22393 (exit $ac_status); } &&
22394 { ac_try
='test -z "$ac_c_werror_flag"
22395 || test ! -s conftest.err'
22396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22397 (eval $ac_try) 2>&5
22399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22400 (exit $ac_status); }; } &&
22401 { ac_try
='test -s conftest$ac_exeext'
22402 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22403 (eval $ac_try) 2>&5
22405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22406 (exit $ac_status); }; }; then
22408 lt_aix_libpath_sed
='
22409 /Import File Strings/,/^$/ {
22415 aix_libpath
=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22416 # Check for a 64-bit object if we didn't find anything.
22417 if test -z "$aix_libpath"; then
22418 aix_libpath
=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
22421 echo "$as_me: failed program was:" >&5
22422 sed 's/^/| /' conftest.
$ac_ext >&5
22425 rm -f conftest.err conftest.
$ac_objext \
22426 conftest
$ac_exeext conftest.
$ac_ext
22427 if test -z "$aix_libpath"; then aix_libpath
="/usr/lib:/lib"; fi
22429 hardcode_libdir_flag_spec_GCJ
='${wl}-blibpath:$libdir:'"$aix_libpath"
22430 # Warning - without using the other run time loading flags,
22431 # -berok will link without error, but may produce a broken library.
22432 no_undefined_flag_GCJ
=' ${wl}-bernotok'
22433 allow_undefined_flag_GCJ
=' ${wl}-berok'
22434 # Exported symbols can be pulled into shared objects from archives
22435 whole_archive_flag_spec_GCJ
='$convenience'
22436 archive_cmds_need_lc_GCJ
=yes
22437 # This is similar to how AIX traditionally builds its shared libraries.
22438 archive_expsym_cmds_GCJ
="\$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'
22444 archive_cmds_GCJ
='$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)'
22445 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
22446 hardcode_minus_L_GCJ
=yes
22447 # see comment about different semantics on the GNU ld section
22452 export_dynamic_flag_spec_GCJ
=-rdynamic
22455 cygwin
* | mingw
* | pw32
*)
22456 # When not using gcc, we currently assume that we are using
22457 # Microsoft Visual C++.
22458 # hardcode_libdir_flag_spec is actually meaningless, as there is
22459 # no search path for DLLs.
22460 hardcode_libdir_flag_spec_GCJ
=' '
22461 allow_undefined_flag_GCJ
=unsupported
22462 # Tell ltmain to make .lib files, not .a files.
22464 # Tell ltmain to make .dll files, not .so files.
22466 # FIXME: Setting linknames here is a bad hack.
22467 archive_cmds_GCJ
='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
22468 # The linker will automatically build a .lib file if we build a DLL.
22469 old_archive_From_new_cmds_GCJ
='true'
22470 # FIXME: Should let the user specify the lib program.
22471 old_archive_cmds_GCJ
='lib -OUT:$oldlib$oldobjs$old_deplibs'
22472 fix_srcfile_path_GCJ
='`cygpath -w "$srcfile"`'
22473 enable_shared_with_static_runtimes_GCJ
=yes
22476 darwin
* | rhapsody
*)
22478 rhapsody
* | darwin1.
[012])
22479 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}suppress'
22482 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
22483 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22485 case ${MACOSX_DEPLOYMENT_TARGET} in
22487 allow_undefined_flag_GCJ
='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
22490 allow_undefined_flag_GCJ
='${wl}-undefined ${wl}dynamic_lookup'
22496 archive_cmds_need_lc_GCJ
=no
22497 hardcode_direct_GCJ
=no
22498 hardcode_automatic_GCJ
=yes
22499 hardcode_shlibpath_var_GCJ
=unsupported
22500 whole_archive_flag_spec_GCJ
=''
22501 link_all_deplibs_GCJ
=yes
22502 if test "$GCC" = yes ; then
22503 output_verbose_link_cmd
='echo'
22504 archive_cmds_GCJ
='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
22505 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22506 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22507 archive_expsym_cmds_GCJ
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
22508 module_expsym_cmds_GCJ
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
22510 case $cc_basename in
22512 output_verbose_link_cmd
='echo'
22513 archive_cmds_GCJ
='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $xlcverstring'
22514 module_cmds_GCJ
='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
22515 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds
22516 archive_expsym_cmds_GCJ
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $xlcverstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
22517 module_expsym_cmds_GCJ
='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
22527 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22528 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
22529 hardcode_shlibpath_var_GCJ
=no
22536 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
22537 # support. Future versions do this automatically, but an explicit c++rt0.o
22538 # does not break anything, and helps significantly (at the cost of a little
22541 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
22542 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
22543 hardcode_direct_GCJ
=yes
22544 hardcode_shlibpath_var_GCJ
=no
22547 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
22549 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22550 hardcode_direct_GCJ
=yes
22551 hardcode_minus_L_GCJ
=yes
22552 hardcode_shlibpath_var_GCJ
=no
22555 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
22556 freebsd
* | dragonfly
*)
22557 archive_cmds_GCJ
='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
22558 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
22559 hardcode_direct_GCJ
=yes
22560 hardcode_shlibpath_var_GCJ
=no
22564 if test "$GCC" = yes; then
22565 archive_cmds_GCJ
='$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'
22567 archive_cmds_GCJ
='$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'
22569 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
22570 hardcode_libdir_separator_GCJ
=:
22571 hardcode_direct_GCJ
=yes
22573 # hardcode_minus_L: Not really in the search PATH,
22574 # but as the default location of the library.
22575 hardcode_minus_L_GCJ
=yes
22576 export_dynamic_flag_spec_GCJ
='${wl}-E'
22580 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
22581 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22583 archive_cmds_GCJ
='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
22585 if test "$with_gnu_ld" = no
; then
22586 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
22587 hardcode_libdir_separator_GCJ
=:
22589 hardcode_direct_GCJ
=yes
22590 export_dynamic_flag_spec_GCJ
='${wl}-E'
22592 # hardcode_minus_L: Not really in the search PATH,
22593 # but as the default location of the library.
22594 hardcode_minus_L_GCJ
=yes
22599 if test "$GCC" = yes -a "$with_gnu_ld" = no
; then
22602 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22605 archive_cmds_GCJ
='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22608 archive_cmds_GCJ
='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22614 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22617 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
22620 archive_cmds_GCJ
='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
22624 if test "$with_gnu_ld" = no
; then
22625 hardcode_libdir_flag_spec_GCJ
='${wl}+b ${wl}$libdir'
22626 hardcode_libdir_separator_GCJ
=:
22630 hardcode_libdir_flag_spec_ld_GCJ
='+b $libdir'
22631 hardcode_direct_GCJ
=no
22632 hardcode_shlibpath_var_GCJ
=no
22635 hardcode_direct_GCJ
=yes
22636 export_dynamic_flag_spec_GCJ
='${wl}-E'
22638 # hardcode_minus_L: Not really in the search PATH,
22639 # but as the default location of the library.
22640 hardcode_minus_L_GCJ
=yes
22646 irix5
* | irix6
* | nonstopux
*)
22647 if test "$GCC" = yes; then
22648 archive_cmds_GCJ
='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
22650 archive_cmds_GCJ
='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
22651 hardcode_libdir_flag_spec_ld_GCJ
='-rpath $libdir'
22653 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
22654 hardcode_libdir_separator_GCJ
=:
22655 link_all_deplibs_GCJ
=yes
22659 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
22660 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
22662 archive_cmds_GCJ
='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
22664 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
22665 hardcode_direct_GCJ
=yes
22666 hardcode_shlibpath_var_GCJ
=no
22670 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22671 hardcode_direct_GCJ
=yes
22672 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
22673 hardcode_libdir_separator_GCJ
=:
22674 hardcode_shlibpath_var_GCJ
=no
22678 if test -f /usr
/libexec
/ld.so
; then
22679 hardcode_direct_GCJ
=yes
22680 hardcode_shlibpath_var_GCJ
=no
22681 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22682 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22683 archive_expsym_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
22684 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
22685 export_dynamic_flag_spec_GCJ
='${wl}-E'
22688 openbsd
[01].
* | openbsd2.
[0-7] | openbsd2.
[0-7].
*)
22689 archive_cmds_GCJ
='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
22690 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
22693 archive_cmds_GCJ
='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
22694 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath,$libdir'
22704 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
22705 hardcode_minus_L_GCJ
=yes
22706 allow_undefined_flag_GCJ
=unsupported
22707 archive_cmds_GCJ
='$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'
22708 old_archive_From_new_cmds_GCJ
='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
22712 if test "$GCC" = yes; then
22713 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
22714 archive_cmds_GCJ
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
22716 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
22717 archive_cmds_GCJ
='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
22719 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
22720 hardcode_libdir_separator_GCJ
=:
22723 osf4
* | osf5
*) # as osf3* with the addition of -msym flag
22724 if test "$GCC" = yes; then
22725 allow_undefined_flag_GCJ
=' ${wl}-expect_unresolved ${wl}\*'
22726 archive_cmds_GCJ
='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
22727 hardcode_libdir_flag_spec_GCJ
='${wl}-rpath ${wl}$libdir'
22729 allow_undefined_flag_GCJ
=' -expect_unresolved \*'
22730 archive_cmds_GCJ
='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
22731 archive_expsym_cmds_GCJ
='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
22732 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib~$rm $lib.exp'
22734 # Both c and cxx compiler support -rpath directly
22735 hardcode_libdir_flag_spec_GCJ
='-rpath $libdir'
22737 hardcode_libdir_separator_GCJ
=:
22741 no_undefined_flag_GCJ
=' -z text'
22742 if test "$GCC" = yes; then
22744 archive_cmds_GCJ
='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22745 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22746 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22749 archive_cmds_GCJ
='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22750 archive_expsym_cmds_GCJ
='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22751 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22753 hardcode_libdir_flag_spec_GCJ
='-R$libdir'
22754 hardcode_shlibpath_var_GCJ
=no
22756 solaris2.
[0-5] | solaris2.
[0-5].
*) ;;
22758 # The compiler driver will combine and reorder linker options,
22759 # but understands `-z linker_flag'. GCC discards it without `$wl',
22760 # but is careful enough not to reorder.
22761 # Supported since Solaris 2.6 (maybe 2.5.1?)
22762 if test "$GCC" = yes; then
22763 whole_archive_flag_spec_GCJ
='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
22765 whole_archive_flag_spec_GCJ
='-z allextract$convenience -z defaultextract'
22769 link_all_deplibs_GCJ
=yes
22773 if test "x$host_vendor" = xsequent
; then
22774 # Use $CC to link under sequent, because it throws in some extra .o
22775 # files that make .init and .fini sections work.
22776 archive_cmds_GCJ
='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22778 archive_cmds_GCJ
='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22780 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
22781 hardcode_direct_GCJ
=yes
22782 hardcode_minus_L_GCJ
=yes
22783 hardcode_shlibpath_var_GCJ
=no
22787 case $host_vendor in
22789 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22790 hardcode_direct_GCJ
=yes # is this really true???
22793 ## LD is ld it makes a PLAMLIB
22794 ## CC just makes a GrossModule.
22795 archive_cmds_GCJ
='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22796 reload_cmds_GCJ
='$CC -r -o $output$reload_objs'
22797 hardcode_direct_GCJ
=no
22800 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22801 hardcode_direct_GCJ
=no
#Motorola manual says yes, but my tests say they lie
22804 runpath_var
='LD_RUN_PATH'
22805 hardcode_shlibpath_var_GCJ
=no
22809 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22810 hardcode_shlibpath_var_GCJ
=no
22811 export_dynamic_flag_spec_GCJ
='-Bexport'
22815 if test -d /usr
/nec
; then
22816 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22817 hardcode_shlibpath_var_GCJ
=no
22818 runpath_var
=LD_RUN_PATH
22819 hardcode_runpath_var
=yes
22824 sysv4
*uw2
* | sysv5OpenUNIX
* | sysv5UnixWare7.
[01].
[10]* | unixware7
* | sco3.2v5.0.
[024]*)
22825 no_undefined_flag_GCJ
='${wl}-z,text'
22826 archive_cmds_need_lc_GCJ
=no
22827 hardcode_shlibpath_var_GCJ
=no
22828 runpath_var
='LD_RUN_PATH'
22830 if test "$GCC" = yes; then
22831 archive_cmds_GCJ
='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22832 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22834 archive_cmds_GCJ
='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22835 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
22839 sysv5
* | sco3.2v5
* | sco5v6
*)
22840 # Note: We can NOT use -z defs as we might desire, because we do not
22841 # link with -lc, and that would cause any symbols used from libc to
22842 # always be unresolved, which means just about no library would
22843 # ever link correctly. If we're not using GNU ld we use -z text
22844 # though, which does catch some bad symbols but isn't as heavy-handed
22846 no_undefined_flag_GCJ
='${wl}-z,text'
22847 allow_undefined_flag_GCJ
='${wl}-z,nodefs'
22848 archive_cmds_need_lc_GCJ
=no
22849 hardcode_shlibpath_var_GCJ
=no
22850 hardcode_libdir_flag_spec_GCJ
='`test -z "$SCOABSPATH" && echo ${wl}-R,$libdir`'
22851 hardcode_libdir_separator_GCJ
=':'
22852 link_all_deplibs_GCJ
=yes
22853 export_dynamic_flag_spec_GCJ
='${wl}-Bexport'
22854 runpath_var
='LD_RUN_PATH'
22856 if test "$GCC" = yes; then
22857 archive_cmds_GCJ
='$CC -shared ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22858 archive_expsym_cmds_GCJ
='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22860 archive_cmds_GCJ
='$CC -G ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22861 archive_expsym_cmds_GCJ
='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,\${SCOABSPATH:+${install_libdir}/}$soname -o $lib $libobjs $deplibs $compiler_flags'
22866 archive_cmds_GCJ
='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22867 hardcode_libdir_flag_spec_GCJ
='-L$libdir'
22868 hardcode_shlibpath_var_GCJ
=no
22877 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22878 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22879 test "$ld_shlibs_GCJ" = no
&& can_build_shared
=no
22882 # Do we need to explicitly link libc?
22884 case "x$archive_cmds_need_lc_GCJ" in
22886 # Assume -lc should be added
22887 archive_cmds_need_lc_GCJ
=yes
22889 if test "$enable_shared" = yes && test "$GCC" = yes; then
22890 case $archive_cmds_GCJ in
22892 # FIXME: we may have to deal with multi-command sequences.
22895 # Test whether the compiler implicitly links with -lc since on some
22896 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22897 # to ld, don't add -lc before -lgcc.
22898 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22899 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22901 echo "$lt_simple_compile_test_code" > conftest.
$ac_ext
22903 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22904 (eval $ac_compile) 2>&5
22906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22907 (exit $ac_status); } 2>conftest.err
; then
22910 libobjs
=conftest.
$ac_objext
22912 wl
=$lt_prog_compiler_wl_GCJ
22913 pic_flag
=$lt_prog_compiler_pic_GCJ
22919 lt_save_allow_undefined_flag
=$allow_undefined_flag_GCJ
22920 allow_undefined_flag_GCJ
=
22921 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22922 (eval $archive_cmds_GCJ 2\
>\
&1 \|
grep \" -lc \" \
>/dev
/null
2\
>\
&1) 2>&5
22924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22925 (exit $ac_status); }
22927 archive_cmds_need_lc_GCJ
=no
22929 archive_cmds_need_lc_GCJ
=yes
22931 allow_undefined_flag_GCJ
=$lt_save_allow_undefined_flag
22933 cat conftest.err
1>&5
22936 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22937 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22944 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22945 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22946 library_names_spec
=
22947 libname_spec
='lib$name'
22951 postuninstall_cmds
=
22955 shlibpath_overrides_runpath
=unknown
22957 dynamic_linker
="$host_os ld.so"
22958 sys_lib_dlsearch_path_spec
="/lib /usr/lib"
22960 need_lib_prefix
=unknown
22961 hardcode_into_libs
=no
22963 # when you set need_version to no, make sure it does not cause -set_version
22964 # flags to be left without arguments
22965 need_version
=unknown
22970 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname.a'
22971 shlibpath_var
=LIBPATH
22973 # AIX 3 has no versioning support, so we append a major version to the name.
22974 soname_spec
='${libname}${release}${shared_ext}$major'
22981 hardcode_into_libs
=yes
22982 if test "$host_cpu" = ia64
; then
22983 # AIX 5 supports IA64
22984 library_names_spec
='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22985 shlibpath_var
=LD_LIBRARY_PATH
22987 # With GCC up to 2.95.x, collect2 would create an import file
22988 # for dependence libraries. The import file would start with
22989 # the line `#! .'. This would cause the generated library to
22990 # depend on `.', always an invalid library. This was fixed in
22991 # development snapshots of GCC prior to 3.0.
22993 aix4 | aix4.
[01] | aix4.
[01].
*)
22994 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22996 echo '#endif'; } |
${CC} -E - |
grep yes > /dev
/null
; then
22999 can_build_shared
=no
23003 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
23004 # soname into executable. Probably we can add versioning support to
23005 # collect2, so additional links can be useful in future.
23006 if test "$aix_use_runtimelinking" = yes; then
23007 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
23008 # instead of lib<name>.a to let people know that these are not
23009 # typical AIX shared libraries.
23010 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23012 # We preserve .a as extension for shared libraries through AIX4.2
23013 # and later when we are not doing run time linking.
23014 library_names_spec
='${libname}${release}.a $libname.a'
23015 soname_spec
='${libname}${release}${shared_ext}$major'
23017 shlibpath_var
=LIBPATH
23022 library_names_spec
='$libname.ixlibrary $libname.a'
23023 # Create ${libname}_ixlibrary.a entries in /sys/libs.
23024 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'
23028 library_names_spec
='${libname}${shared_ext}'
23029 dynamic_linker
="$host_os ld.so"
23030 shlibpath_var
=LIBRARY_PATH
23036 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23037 soname_spec
='${libname}${release}${shared_ext}$major'
23038 finish_cmds
='PATH="\$PATH:/sbin" ldconfig $libdir'
23039 shlibpath_var
=LD_LIBRARY_PATH
23040 sys_lib_search_path_spec
="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
23041 sys_lib_dlsearch_path_spec
="/shlib /usr/lib /usr/local/lib"
23042 # the default ld.so.conf also contains /usr/contrib/lib and
23043 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
23044 # libtool to hard-code these into programs
23047 cygwin
* | mingw
* | pw32
*)
23048 version_type
=windows
23053 case $GCC,$host_os in
23054 yes,cygwin
* |
yes,mingw
* |
yes,pw32
*)
23055 library_names_spec
='$libname.dll.a'
23056 # DLL is installed to $(libdir)/../bin by postinstall_cmds
23057 postinstall_cmds
='base_file=`basename \${file}`~
23058 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
23059 dldir=$destdir/`dirname \$dlpath`~
23060 test -d \$dldir || mkdir -p \$dldir~
23061 $install_prog $dir/$dlname \$dldir/$dlname~
23062 chmod a+x \$dldir/$dlname'
23063 postuninstall_cmds
='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
23064 dlpath=$dir/\$dldll~
23066 shlibpath_overrides_runpath
=yes
23070 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
23071 soname_spec
='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23072 sys_lib_search_path_spec
="/usr/lib /lib/w32api /lib /usr/local/lib"
23075 # MinGW DLLs use traditional 'lib' prefix
23076 soname_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23077 sys_lib_search_path_spec
=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
23078 if echo "$sys_lib_search_path_spec" |
grep ';[c-zC-Z]:/' >/dev
/null
; then
23079 # It is most probably a Windows format PATH printed by
23080 # mingw gcc, but we are running on Cygwin. Gcc prints its search
23081 # path with ; separators, and with drive letters. We can handle the
23082 # drive letters (cygwin fileutils understands them), so leave them,
23083 # especially as we might pass files found there to a mingw objdump,
23084 # which wouldn't understand a cygwinified path. Ahh.
23085 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
23087 sys_lib_search_path_spec
=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
23091 # pw32 DLLs use 'pw' prefix rather than 'lib'
23092 library_names_spec
='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
23098 library_names_spec
='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
23101 dynamic_linker
='Win32 ld.exe'
23102 # FIXME: first we should search . and the directory the executable is in
23106 darwin
* | rhapsody
*)
23107 dynamic_linker
="$host_os dyld"
23108 version_type
=darwin
23111 library_names_spec
='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
23112 soname_spec
='${libname}${release}${major}$shared_ext'
23113 shlibpath_overrides_runpath
=yes
23114 shlibpath_var
=DYLD_LIBRARY_PATH
23115 shrext_cmds
='`test .$module = .yes && echo .so || echo .dylib`'
23117 sys_lib_dlsearch_path_spec
='/usr/local/lib /lib /usr/lib'
23124 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
23125 soname_spec
='${libname}${release}${shared_ext}$major'
23126 shlibpath_var
=LD_LIBRARY_PATH
23133 freebsd
* | dragonfly
*)
23134 # DragonFly does not have aout. When/if they implement a new
23135 # versioning mechanism, adjust this.
23136 if test -x /usr
/bin
/objformat
; then
23137 objformat
=`/usr/bin/objformat`
23140 freebsd
[123]*) objformat
=aout
;;
23141 *) objformat
=elf
;;
23144 version_type
=freebsd-
$objformat
23145 case $version_type in
23147 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23152 library_names_spec
='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
23156 shlibpath_var
=LD_LIBRARY_PATH
23159 shlibpath_overrides_runpath
=yes
23161 freebsd3.
[01]* | freebsdelf3.
[01]*)
23162 shlibpath_overrides_runpath
=yes
23163 hardcode_into_libs
=yes
23165 freebsd3.
[2-9]* | freebsdelf3.
[2-9]* | \
23166 freebsd4.
[0-5] | freebsdelf4.
[0-5] | freebsd4.1
.1 | freebsdelf4.1
.1)
23167 shlibpath_overrides_runpath
=no
23168 hardcode_into_libs
=yes
23170 *) # from 4.6 on, and DragonFly
23171 shlibpath_overrides_runpath
=yes
23172 hardcode_into_libs
=yes
23181 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
23182 soname_spec
='${libname}${release}${shared_ext}$major'
23183 shlibpath_var
=LD_LIBRARY_PATH
23184 hardcode_into_libs
=yes
23187 hpux9
* | hpux10
* | hpux11
*)
23188 # Give a soname corresponding to the major version so that dld.sl refuses to
23189 # link against other versions.
23196 hardcode_into_libs
=yes
23197 dynamic_linker
="$host_os dld.so"
23198 shlibpath_var
=LD_LIBRARY_PATH
23199 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
23200 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23201 soname_spec
='${libname}${release}${shared_ext}$major'
23202 if test "X$HPUX_IA64_MODE" = X32
; then
23203 sys_lib_search_path_spec
="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
23205 sys_lib_search_path_spec
="/usr/lib/hpux64 /usr/local/lib/hpux64"
23207 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
23211 hardcode_into_libs
=yes
23212 dynamic_linker
="$host_os dld.sl"
23213 shlibpath_var
=LD_LIBRARY_PATH
# How should we handle SHLIB_PATH
23214 shlibpath_overrides_runpath
=yes # Unless +noenvvar is specified.
23215 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23216 soname_spec
='${libname}${release}${shared_ext}$major'
23217 sys_lib_search_path_spec
="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
23218 sys_lib_dlsearch_path_spec
=$sys_lib_search_path_spec
23222 dynamic_linker
="$host_os dld.sl"
23223 shlibpath_var
=SHLIB_PATH
23224 shlibpath_overrides_runpath
=no
# +s is required to enable SHLIB_PATH
23225 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23226 soname_spec
='${libname}${release}${shared_ext}$major'
23229 # HP-UX runs *really* slowly unless shared libraries are mode 555.
23230 postinstall_cmds
='chmod 555 $lib'
23237 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23238 soname_spec
='${libname}${release}${shared_ext}$major'
23239 dynamic_linker
='Interix 3.x ld.so.1 (PE, like ELF)'
23240 shlibpath_var
=LD_LIBRARY_PATH
23241 shlibpath_overrides_runpath
=no
23242 hardcode_into_libs
=yes
23245 irix5
* | irix6
* | nonstopux
*)
23247 nonstopux
*) version_type
=nonstopux
;;
23249 if test "$lt_cv_prog_gnu_ld" = yes; then
23257 soname_spec
='${libname}${release}${shared_ext}$major'
23258 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
23260 irix5
* | nonstopux
*)
23261 libsuff
= shlibsuff
=
23264 case $LD in # libtool.m4 will add one of these switches to LD
23265 *-32|
*"-32 "|
*-melf32bsmip|
*"-melf32bsmip ")
23266 libsuff
= shlibsuff
= libmagic
=32-bit;;
23267 *-n32|
*"-n32 "|
*-melf32bmipn32|
*"-melf32bmipn32 ")
23268 libsuff
=32 shlibsuff
=N32 libmagic
=N32
;;
23269 *-64|
*"-64 "|
*-melf64bmip|
*"-melf64bmip ")
23270 libsuff
=64 shlibsuff
=64 libmagic
=64-bit;;
23271 *) libsuff
= shlibsuff
= libmagic
=never-match
;;
23275 shlibpath_var
=LD_LIBRARY
${shlibsuff}_PATH
23276 shlibpath_overrides_runpath
=no
23277 sys_lib_search_path_spec
="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
23278 sys_lib_dlsearch_path_spec
="/usr/lib${libsuff} /lib${libsuff}"
23279 hardcode_into_libs
=yes
23282 # No shared lib support for Linux oldld, aout, or coff.
23283 linux
*oldld
* | linux
*aout
* | linux
*coff
*)
23287 # This must be Linux ELF.
23288 linux
* | k
*bsd
*-gnu)
23292 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23293 soname_spec
='${libname}${release}${shared_ext}$major'
23294 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -n $libdir'
23295 shlibpath_var
=LD_LIBRARY_PATH
23296 shlibpath_overrides_runpath
=no
23297 # This implies no fast_install, which is unacceptable.
23298 # Some rework will be needed to allow for fast_install
23299 # before this can be enabled.
23300 hardcode_into_libs
=yes
23302 # Append ld.so.conf contents to the search path
23303 if test -f /etc
/ld.so.conf
; then
23304 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' ' '`
23305 sys_lib_dlsearch_path_spec
="/lib /usr/lib $lt_ld_extra"
23308 # We used to test for /lib/ld.so.1 and disable shared libraries on
23309 # powerpc, because MkLinux only supported shared libraries with the
23310 # GNU dynamic linker. Since this was broken with cross compilers,
23311 # most powerpc-linux boxes support dynamic linking these days and
23312 # people can always --disable-shared, the test was removed, and we
23313 # assume the GNU/Linux dynamic linker is in use.
23314 dynamic_linker
='GNU/Linux ld.so'
23321 if echo __ELF__ |
$CC -E - |
grep __ELF__
>/dev
/null
; then
23322 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23323 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23324 dynamic_linker
='NetBSD (a.out) ld.so'
23326 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
23327 soname_spec
='${libname}${release}${shared_ext}$major'
23328 dynamic_linker
='NetBSD ld.elf_so'
23330 shlibpath_var
=LD_LIBRARY_PATH
23331 shlibpath_overrides_runpath
=yes
23332 hardcode_into_libs
=yes
23337 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23338 shlibpath_var
=LD_LIBRARY_PATH
23339 shlibpath_overrides_runpath
=yes
23346 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23347 soname_spec
='${libname}${release}${shared_ext}$major'
23348 shlibpath_var
=LD_LIBRARY_PATH
23349 shlibpath_overrides_runpath
=yes
23354 sys_lib_dlsearch_path_spec
="/usr/lib"
23356 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
23358 openbsd3.3 | openbsd3.3.
*) need_version
=yes ;;
23359 *) need_version
=no
;;
23361 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23362 finish_cmds
='PATH="\$PATH:/sbin" ldconfig -m $libdir'
23363 shlibpath_var
=LD_LIBRARY_PATH
23364 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" ||
test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
23366 openbsd2.
[89] | openbsd2.
[89].
*)
23367 shlibpath_overrides_runpath
=no
23370 shlibpath_overrides_runpath
=yes
23374 shlibpath_overrides_runpath
=yes
23379 libname_spec
='$name'
23382 library_names_spec
='$libname${shared_ext} $libname.a'
23383 dynamic_linker
='OS/2 ld.exe'
23384 shlibpath_var
=LIBPATH
23387 osf3
* | osf4
* | osf5
*)
23391 soname_spec
='${libname}${release}${shared_ext}$major'
23392 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23393 shlibpath_var
=LD_LIBRARY_PATH
23394 sys_lib_search_path_spec
="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
23395 sys_lib_dlsearch_path_spec
="$sys_lib_search_path_spec"
23406 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23407 soname_spec
='${libname}${release}${shared_ext}$major'
23408 shlibpath_var
=LD_LIBRARY_PATH
23409 shlibpath_overrides_runpath
=yes
23410 hardcode_into_libs
=yes
23411 # ldd complains unless libraries are executable
23412 postinstall_cmds
='chmod +x $lib'
23417 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
23418 finish_cmds
='PATH="\$PATH:/usr/etc" ldconfig $libdir'
23419 shlibpath_var
=LD_LIBRARY_PATH
23420 shlibpath_overrides_runpath
=yes
23421 if test "$with_gnu_ld" = yes; then
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 case $host_vendor in
23434 shlibpath_overrides_runpath
=no
23436 export_dynamic_flag_spec
='${wl}-Blargedynsym'
23437 runpath_var
=LD_RUN_PATH
23445 shlibpath_overrides_runpath
=no
23446 sys_lib_search_path_spec
='/lib /usr/lib /usr/ccs/lib'
23452 if test -d /usr
/nec
;then
23454 library_names_spec
='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
23455 soname_spec
='$libname${shared_ext}.$major'
23456 shlibpath_var
=LD_LIBRARY_PATH
23460 sysv5
* | sco3.2v5
* | sco5v6
* | unixware
* | OpenUNIX
* | sysv4
*uw2
*)
23461 version_type
=freebsd-elf
23464 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
23465 soname_spec
='${libname}${release}${shared_ext}$major'
23466 shlibpath_var
=LD_LIBRARY_PATH
23467 hardcode_into_libs
=yes
23468 if test "$with_gnu_ld" = yes; then
23469 sys_lib_search_path_spec
='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
23470 shlibpath_overrides_runpath
=no
23472 sys_lib_search_path_spec
='/usr/ccs/lib /usr/lib'
23473 shlibpath_overrides_runpath
=yes
23476 sys_lib_search_path_spec
="$sys_lib_search_path_spec /lib"
23480 sys_lib_dlsearch_path_spec
='/usr/lib'
23485 library_names_spec
='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
23486 soname_spec
='${libname}${release}${shared_ext}$major'
23487 shlibpath_var
=LD_LIBRARY_PATH
23494 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
23495 echo "${ECHO_T}$dynamic_linker" >&6
23496 test "$dynamic_linker" = no
&& can_build_shared
=no
23498 variables_saved_for_relink
="PATH $shlibpath_var $runpath_var"
23499 if test "$GCC" = yes; then
23500 variables_saved_for_relink
="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
23503 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
23504 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
23505 hardcode_action_GCJ
=
23506 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
23507 test -n "$runpath_var_GCJ" || \
23508 test "X$hardcode_automatic_GCJ" = "Xyes" ; then
23510 # We can hardcode non-existant directories.
23511 if test "$hardcode_direct_GCJ" != no
&&
23512 # If the only mechanism to avoid hardcoding is shlibpath_var, we
23513 # have to relink, otherwise we might link with an installed library
23514 # when we should be linking with a yet-to-be-installed one
23515 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
23516 test "$hardcode_minus_L_GCJ" != no
; then
23517 # Linking always hardcodes the temporary library directory.
23518 hardcode_action_GCJ
=relink
23520 # We can link without hardcoding, and we can hardcode nonexisting dirs.
23521 hardcode_action_GCJ
=immediate
23524 # We cannot hardcode anything, or else we can only hardcode existing
23526 hardcode_action_GCJ
=unsupported
23528 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
23529 echo "${ECHO_T}$hardcode_action_GCJ" >&6
23531 if test "$hardcode_action_GCJ" = relink
; then
23532 # Fast installation is not supported
23533 enable_fast_install
=no
23534 elif test "$shlibpath_overrides_runpath" = yes ||
23535 test "$enable_shared" = no
; then
23536 # Fast installation is not necessary
23537 enable_fast_install
=needless
23541 # The else clause should only fire when bootstrapping the
23542 # libtool distribution, otherwise you forgot to ship ltmain.sh
23543 # with your package, and you will get complaints that there are
23544 # no rules to generate ltmain.sh.
23545 if test -f "$ltmain"; then
23546 # See if we are running on zsh, and set the options which allow our commands through
23547 # without removal of \ escapes.
23548 if test -n "${ZSH_VERSION+set}" ; then
23549 setopt NO_GLOB_SUBST
23551 # Now quote all the things that may contain metacharacters while being
23552 # careful not to overquote the AC_SUBSTed values. We take copies of the
23553 # variables and quote the copies for generation of the libtool script.
23554 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
23556 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23557 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23558 deplibs_check_method reload_flag reload_cmds need_locks \
23559 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23560 lt_cv_sys_global_symbol_to_c_name_address \
23561 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23562 old_postinstall_cmds old_postuninstall_cmds \
23566 lt_prog_compiler_wl_GCJ \
23567 lt_prog_compiler_pic_GCJ \
23568 lt_prog_compiler_static_GCJ \
23569 lt_prog_compiler_no_builtin_flag_GCJ \
23570 export_dynamic_flag_spec_GCJ \
23571 thread_safe_flag_spec_GCJ \
23572 whole_archive_flag_spec_GCJ \
23573 enable_shared_with_static_runtimes_GCJ \
23574 old_archive_cmds_GCJ \
23575 old_archive_from_new_cmds_GCJ \
23576 predep_objects_GCJ \
23577 postdep_objects_GCJ \
23580 compiler_lib_search_path_GCJ \
23582 archive_expsym_cmds_GCJ \
23583 postinstall_cmds_GCJ \
23584 postuninstall_cmds_GCJ \
23585 old_archive_from_expsyms_cmds_GCJ \
23586 allow_undefined_flag_GCJ \
23587 no_undefined_flag_GCJ \
23588 export_symbols_cmds_GCJ \
23589 hardcode_libdir_flag_spec_GCJ \
23590 hardcode_libdir_flag_spec_ld_GCJ \
23591 hardcode_libdir_separator_GCJ \
23592 hardcode_automatic_GCJ \
23594 module_expsym_cmds_GCJ \
23595 lt_cv_prog_compiler_c_o_GCJ \
23596 fix_srcfile_path_GCJ \
23597 exclude_expsyms_GCJ \
23598 include_expsyms_GCJ
; do
23601 old_archive_cmds_GCJ | \
23602 old_archive_from_new_cmds_GCJ | \
23603 archive_cmds_GCJ | \
23604 archive_expsym_cmds_GCJ | \
23605 module_cmds_GCJ | \
23606 module_expsym_cmds_GCJ | \
23607 old_archive_from_expsyms_cmds_GCJ | \
23608 export_symbols_cmds_GCJ | \
23609 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23610 postinstall_cmds | postuninstall_cmds | \
23611 old_postinstall_cmds | old_postuninstall_cmds | \
23612 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
23613 # Double-quote double-evaled strings.
23614 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23617 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23623 *'\$0 --fallback-echo"')
23624 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23630 cat <<__EOF__ >> "$cfgfile"
23631 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23633 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23635 # Shell to use when invoking shell scripts.
23638 # Whether or not to build shared libraries.
23639 build_libtool_libs=$enable_shared
23641 # Whether or not to build static libraries.
23642 build_old_libs=$enable_static
23644 # Whether or not to add -lc for building shared libraries.
23645 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23647 # Whether or not to disallow shared libs when runtime libs are static
23648 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23650 # Whether or not to optimize for fast installation.
23651 fast_install=$enable_fast_install
23654 host_alias=$host_alias
23658 # The build system.
23659 build_alias=$build_alias
23663 # An echo program that does not interpret backslashes.
23668 AR_FLAGS=$lt_AR_FLAGS
23673 # LTCC compiler flags.
23674 LTCFLAGS=$lt_LTCFLAGS
23676 # A language-specific compiler.
23677 CC=$lt_compiler_GCJ
23679 # Is the compiler the GNU C compiler?
23685 # The linker used to build libraries.
23688 # Whether we need hard or soft links.
23691 # A BSD-compatible nm program.
23694 # A symbol stripping program
23697 # Used to examine libraries when file_magic_cmd begins "file"
23698 MAGIC_CMD=$MAGIC_CMD
23700 # Used on cygwin: DLL creation program.
23703 # Used on cygwin: object dumper.
23706 # Used on cygwin: assembler.
23709 # The name of the directory that contains temporary libtool files.
23712 # How to create reloadable object files.
23713 reload_flag=$lt_reload_flag
23714 reload_cmds=$lt_reload_cmds
23716 # How to pass a linker flag through the compiler.
23717 wl=$lt_lt_prog_compiler_wl_GCJ
23719 # Object file suffix (normally "o").
23720 objext="$ac_objext"
23722 # Old archive suffix (normally "a").
23725 # Shared library suffix (normally ".so").
23726 shrext_cmds='$shrext_cmds'
23728 # Executable file suffix (normally "").
23731 # Additional compiler flags for building library objects.
23732 pic_flag=$lt_lt_prog_compiler_pic_GCJ
23735 # What is the maximum length of a command?
23736 max_cmd_len=$lt_cv_sys_max_cmd_len
23738 # Does compiler simultaneously support -c and -o options?
23739 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23741 # Must we lock files when doing compilation?
23742 need_locks=$lt_need_locks
23744 # Do we need the lib prefix for modules?
23745 need_lib_prefix=$need_lib_prefix
23747 # Do we need a version for libraries?
23748 need_version=$need_version
23750 # Whether dlopen is supported.
23751 dlopen_support=$enable_dlopen
23753 # Whether dlopen of programs is supported.
23754 dlopen_self=$enable_dlopen_self
23756 # Whether dlopen of statically linked programs is supported.
23757 dlopen_self_static=$enable_dlopen_self_static
23759 # Compiler flag to prevent dynamic linking.
23760 link_static_flag=$lt_lt_prog_compiler_static_GCJ
23762 # Compiler flag to turn off builtin functions.
23763 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23765 # Compiler flag to allow reflexive dlopens.
23766 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23768 # Compiler flag to generate shared objects directly from archives.
23769 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23771 # Compiler flag to generate thread-safe objects.
23772 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23774 # Library versioning type.
23775 version_type=$version_type
23777 # Format of library name prefix.
23778 libname_spec=$lt_libname_spec
23780 # List of archive names. First name is the real one, the rest are links.
23781 # The last name is the one that the linker finds with -lNAME.
23782 library_names_spec=$lt_library_names_spec
23784 # The coded name of the library, if different from the real name.
23785 soname_spec=$lt_soname_spec
23787 # Commands used to build and install an old-style archive.
23789 old_archive_cmds=$lt_old_archive_cmds_GCJ
23790 old_postinstall_cmds=$lt_old_postinstall_cmds
23791 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23793 # Create an old-style archive from a shared archive.
23794 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23796 # Create a temporary old-style archive to link instead of a shared archive.
23797 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23799 # Commands used to build and install a shared archive.
23800 archive_cmds=$lt_archive_cmds_GCJ
23801 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23802 postinstall_cmds=$lt_postinstall_cmds
23803 postuninstall_cmds=$lt_postuninstall_cmds
23805 # Commands used to build a loadable module (assumed same as above if empty)
23806 module_cmds=$lt_module_cmds_GCJ
23807 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
23809 # Commands to strip libraries.
23810 old_striplib=$lt_old_striplib
23811 striplib=$lt_striplib
23813 # Dependencies to place before the objects being linked to create a
23815 predep_objects=$lt_predep_objects_GCJ
23817 # Dependencies to place after the objects being linked to create a
23819 postdep_objects=$lt_postdep_objects_GCJ
23821 # Dependencies to place before the objects being linked to create a
23823 predeps=$lt_predeps_GCJ
23825 # Dependencies to place after the objects being linked to create a
23827 postdeps=$lt_postdeps_GCJ
23829 # The library search path used internally by the compiler when linking
23830 # a shared library.
23831 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
23833 # Method to check whether dependent libraries are shared objects.
23834 deplibs_check_method=$lt_deplibs_check_method
23836 # Command to use when deplibs_check_method == file_magic.
23837 file_magic_cmd=$lt_file_magic_cmd
23839 # Flag that allows shared libraries with undefined symbols to be built.
23840 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
23842 # Flag that forces no undefined symbols.
23843 no_undefined_flag=$lt_no_undefined_flag_GCJ
23845 # Commands used to finish a libtool library installation in a directory.
23846 finish_cmds=$lt_finish_cmds
23848 # Same as above, but a single script fragment to be evaled but not shown.
23849 finish_eval=$lt_finish_eval
23851 # Take the output of nm and produce a listing of raw symbols and C names.
23852 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23854 # Transform the output of nm in a proper C declaration
23855 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23857 # Transform the output of nm in a C name address pair
23858 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23860 # This is the shared library runtime path variable.
23861 runpath_var=$runpath_var
23863 # This is the shared library path variable.
23864 shlibpath_var=$shlibpath_var
23866 # Is shlibpath searched before the hard-coded library search path?
23867 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23869 # How to hardcode a shared library path into an executable.
23870 hardcode_action=$hardcode_action_GCJ
23872 # Whether we should hardcode library paths into libraries.
23873 hardcode_into_libs=$hardcode_into_libs
23875 # Flag to hardcode \$libdir into a binary during linking.
23876 # This must work even if \$libdir does not exist.
23877 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
23879 # If ld is used when linking, flag to hardcode \$libdir into
23880 # a binary during linking. This must work even if \$libdir does
23882 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
23884 # Whether we need a single -rpath flag with a separated argument.
23885 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
23887 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23888 # resulting binary.
23889 hardcode_direct=$hardcode_direct_GCJ
23891 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23892 # resulting binary.
23893 hardcode_minus_L=$hardcode_minus_L_GCJ
23895 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23896 # the resulting binary.
23897 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
23899 # Set to yes if building a shared library automatically hardcodes DIR into the library
23900 # and all subsequent libraries and executables linked against it.
23901 hardcode_automatic=$hardcode_automatic_GCJ
23903 # Variables whose values should be saved in libtool wrapper scripts and
23904 # restored at relink time.
23905 variables_saved_for_relink="$variables_saved_for_relink"
23907 # Whether libtool must link a program against all its dependency libraries.
23908 link_all_deplibs=$link_all_deplibs_GCJ
23910 # Compile-time system search path for libraries
23911 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23913 # Run-time system search path for libraries
23914 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23916 # Fix the shell variable \$srcfile for the compiler.
23917 fix_srcfile_path=$lt_fix_srcfile_path
23919 # Set to yes if exported symbols are required.
23920 always_export_symbols=$always_export_symbols_GCJ
23922 # The commands to list exported symbols.
23923 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
23925 # The commands to extract the exported symbol list from a shared archive.
23926 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23928 # Symbols that should not be listed in the preloaded symbols.
23929 exclude_expsyms=$lt_exclude_expsyms_GCJ
23931 # Symbols that must always be exported.
23932 include_expsyms=$lt_include_expsyms_GCJ
23934 # ### END LIBTOOL TAG CONFIG: $tagname
23940 # If there is no Makefile yet, we rely on a make rule to execute
23941 # `config.status --recheck' to rerun these tests and create the
23942 # libtool script then.
23943 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23944 if test -f "$ltmain_in"; then
23945 test -f Makefile
&& make "$ltmain"
23951 ac_cpp
='$CPP $CPPFLAGS'
23952 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
23953 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
23954 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
23967 # Source file extension for RC test sources.
23970 # Object file extension for compiled RC test sources.
23974 # Code to be used in simple compile tests
23975 lt_simple_compile_test_code
='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
23977 # Code to be used in simple link tests
23978 lt_simple_link_test_code
="$lt_simple_compile_test_code"
23980 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
23982 # If no C compiler was specified, use CC.
23985 # If no C compiler flags were specified, use CFLAGS.
23986 LTCFLAGS
=${LTCFLAGS-"$CFLAGS"}
23988 # Allow CC to be a program name with arguments.
23992 # save warnings/boilerplate of simple test code
23993 ac_outfile
=conftest.
$ac_objext
23994 echo "$lt_simple_compile_test_code" >conftest.
$ac_ext
23995 eval "$ac_compile" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
23996 _lt_compiler_boilerplate
=`cat conftest.err`
23999 ac_outfile
=conftest.
$ac_objext
24000 echo "$lt_simple_link_test_code" >conftest.
$ac_ext
24001 eval "$ac_link" 2>&1 >/dev
/null |
$SED '/^$/d; /^ *+/d' >conftest.err
24002 _lt_linker_boilerplate
=`cat conftest.err`
24006 # Allow CC to be a program name with arguments.
24011 for cc_temp
in $compiler""; do
24013 compile |
*[\\/]compile | ccache |
*[\\/]ccache
) ;;
24014 distcc |
*[\\/]distcc | purify |
*[\\/]purify
) ;;
24019 cc_basename
=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
24021 lt_cv_prog_compiler_c_o_RC
=yes
24023 # The else clause should only fire when bootstrapping the
24024 # libtool distribution, otherwise you forgot to ship ltmain.sh
24025 # with your package, and you will get complaints that there are
24026 # no rules to generate ltmain.sh.
24027 if test -f "$ltmain"; then
24028 # See if we are running on zsh, and set the options which allow our commands through
24029 # without removal of \ escapes.
24030 if test -n "${ZSH_VERSION+set}" ; then
24031 setopt NO_GLOB_SUBST
24033 # Now quote all the things that may contain metacharacters while being
24034 # careful not to overquote the AC_SUBSTed values. We take copies of the
24035 # variables and quote the copies for generation of the libtool script.
24036 for var
in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC LTCFLAGS NM \
24038 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24039 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24040 deplibs_check_method reload_flag reload_cmds need_locks \
24041 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24042 lt_cv_sys_global_symbol_to_c_name_address \
24043 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24044 old_postinstall_cmds old_postuninstall_cmds \
24048 lt_prog_compiler_wl_RC \
24049 lt_prog_compiler_pic_RC \
24050 lt_prog_compiler_static_RC \
24051 lt_prog_compiler_no_builtin_flag_RC \
24052 export_dynamic_flag_spec_RC \
24053 thread_safe_flag_spec_RC \
24054 whole_archive_flag_spec_RC \
24055 enable_shared_with_static_runtimes_RC \
24056 old_archive_cmds_RC \
24057 old_archive_from_new_cmds_RC \
24058 predep_objects_RC \
24059 postdep_objects_RC \
24062 compiler_lib_search_path_RC \
24064 archive_expsym_cmds_RC \
24065 postinstall_cmds_RC \
24066 postuninstall_cmds_RC \
24067 old_archive_from_expsyms_cmds_RC \
24068 allow_undefined_flag_RC \
24069 no_undefined_flag_RC \
24070 export_symbols_cmds_RC \
24071 hardcode_libdir_flag_spec_RC \
24072 hardcode_libdir_flag_spec_ld_RC \
24073 hardcode_libdir_separator_RC \
24074 hardcode_automatic_RC \
24076 module_expsym_cmds_RC \
24077 lt_cv_prog_compiler_c_o_RC \
24078 fix_srcfile_path_RC \
24079 exclude_expsyms_RC \
24080 include_expsyms_RC
; do
24083 old_archive_cmds_RC | \
24084 old_archive_from_new_cmds_RC | \
24085 archive_cmds_RC | \
24086 archive_expsym_cmds_RC | \
24088 module_expsym_cmds_RC | \
24089 old_archive_from_expsyms_cmds_RC | \
24090 export_symbols_cmds_RC | \
24091 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24092 postinstall_cmds | postuninstall_cmds | \
24093 old_postinstall_cmds | old_postuninstall_cmds | \
24094 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec
)
24095 # Double-quote double-evaled strings.
24096 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24099 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24105 *'\$0 --fallback-echo"')
24106 lt_echo
=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24112 cat <<__EOF__ >> "$cfgfile"
24113 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24115 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24117 # Shell to use when invoking shell scripts.
24120 # Whether or not to build shared libraries.
24121 build_libtool_libs=$enable_shared
24123 # Whether or not to build static libraries.
24124 build_old_libs=$enable_static
24126 # Whether or not to add -lc for building shared libraries.
24127 build_libtool_need_lc=$archive_cmds_need_lc_RC
24129 # Whether or not to disallow shared libs when runtime libs are static
24130 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24132 # Whether or not to optimize for fast installation.
24133 fast_install=$enable_fast_install
24136 host_alias=$host_alias
24140 # The build system.
24141 build_alias=$build_alias
24145 # An echo program that does not interpret backslashes.
24150 AR_FLAGS=$lt_AR_FLAGS
24155 # LTCC compiler flags.
24156 LTCFLAGS=$lt_LTCFLAGS
24158 # A language-specific compiler.
24161 # Is the compiler the GNU C compiler?
24167 # The linker used to build libraries.
24170 # Whether we need hard or soft links.
24173 # A BSD-compatible nm program.
24176 # A symbol stripping program
24179 # Used to examine libraries when file_magic_cmd begins "file"
24180 MAGIC_CMD=$MAGIC_CMD
24182 # Used on cygwin: DLL creation program.
24185 # Used on cygwin: object dumper.
24188 # Used on cygwin: assembler.
24191 # The name of the directory that contains temporary libtool files.
24194 # How to create reloadable object files.
24195 reload_flag=$lt_reload_flag
24196 reload_cmds=$lt_reload_cmds
24198 # How to pass a linker flag through the compiler.
24199 wl=$lt_lt_prog_compiler_wl_RC
24201 # Object file suffix (normally "o").
24202 objext="$ac_objext"
24204 # Old archive suffix (normally "a").
24207 # Shared library suffix (normally ".so").
24208 shrext_cmds='$shrext_cmds'
24210 # Executable file suffix (normally "").
24213 # Additional compiler flags for building library objects.
24214 pic_flag=$lt_lt_prog_compiler_pic_RC
24217 # What is the maximum length of a command?
24218 max_cmd_len=$lt_cv_sys_max_cmd_len
24220 # Does compiler simultaneously support -c and -o options?
24221 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24223 # Must we lock files when doing compilation?
24224 need_locks=$lt_need_locks
24226 # Do we need the lib prefix for modules?
24227 need_lib_prefix=$need_lib_prefix
24229 # Do we need a version for libraries?
24230 need_version=$need_version
24232 # Whether dlopen is supported.
24233 dlopen_support=$enable_dlopen
24235 # Whether dlopen of programs is supported.
24236 dlopen_self=$enable_dlopen_self
24238 # Whether dlopen of statically linked programs is supported.
24239 dlopen_self_static=$enable_dlopen_self_static
24241 # Compiler flag to prevent dynamic linking.
24242 link_static_flag=$lt_lt_prog_compiler_static_RC
24244 # Compiler flag to turn off builtin functions.
24245 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24247 # Compiler flag to allow reflexive dlopens.
24248 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24250 # Compiler flag to generate shared objects directly from archives.
24251 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24253 # Compiler flag to generate thread-safe objects.
24254 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24256 # Library versioning type.
24257 version_type=$version_type
24259 # Format of library name prefix.
24260 libname_spec=$lt_libname_spec
24262 # List of archive names. First name is the real one, the rest are links.
24263 # The last name is the one that the linker finds with -lNAME.
24264 library_names_spec=$lt_library_names_spec
24266 # The coded name of the library, if different from the real name.
24267 soname_spec=$lt_soname_spec
24269 # Commands used to build and install an old-style archive.
24271 old_archive_cmds=$lt_old_archive_cmds_RC
24272 old_postinstall_cmds=$lt_old_postinstall_cmds
24273 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24275 # Create an old-style archive from a shared archive.
24276 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24278 # Create a temporary old-style archive to link instead of a shared archive.
24279 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24281 # Commands used to build and install a shared archive.
24282 archive_cmds=$lt_archive_cmds_RC
24283 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24284 postinstall_cmds=$lt_postinstall_cmds
24285 postuninstall_cmds=$lt_postuninstall_cmds
24287 # Commands used to build a loadable module (assumed same as above if empty)
24288 module_cmds=$lt_module_cmds_RC
24289 module_expsym_cmds=$lt_module_expsym_cmds_RC
24291 # Commands to strip libraries.
24292 old_striplib=$lt_old_striplib
24293 striplib=$lt_striplib
24295 # Dependencies to place before the objects being linked to create a
24297 predep_objects=$lt_predep_objects_RC
24299 # Dependencies to place after the objects being linked to create a
24301 postdep_objects=$lt_postdep_objects_RC
24303 # Dependencies to place before the objects being linked to create a
24305 predeps=$lt_predeps_RC
24307 # Dependencies to place after the objects being linked to create a
24309 postdeps=$lt_postdeps_RC
24311 # The library search path used internally by the compiler when linking
24312 # a shared library.
24313 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24315 # Method to check whether dependent libraries are shared objects.
24316 deplibs_check_method=$lt_deplibs_check_method
24318 # Command to use when deplibs_check_method == file_magic.
24319 file_magic_cmd=$lt_file_magic_cmd
24321 # Flag that allows shared libraries with undefined symbols to be built.
24322 allow_undefined_flag=$lt_allow_undefined_flag_RC
24324 # Flag that forces no undefined symbols.
24325 no_undefined_flag=$lt_no_undefined_flag_RC
24327 # Commands used to finish a libtool library installation in a directory.
24328 finish_cmds=$lt_finish_cmds
24330 # Same as above, but a single script fragment to be evaled but not shown.
24331 finish_eval=$lt_finish_eval
24333 # Take the output of nm and produce a listing of raw symbols and C names.
24334 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24336 # Transform the output of nm in a proper C declaration
24337 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24339 # Transform the output of nm in a C name address pair
24340 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24342 # This is the shared library runtime path variable.
24343 runpath_var=$runpath_var
24345 # This is the shared library path variable.
24346 shlibpath_var=$shlibpath_var
24348 # Is shlibpath searched before the hard-coded library search path?
24349 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24351 # How to hardcode a shared library path into an executable.
24352 hardcode_action=$hardcode_action_RC
24354 # Whether we should hardcode library paths into libraries.
24355 hardcode_into_libs=$hardcode_into_libs
24357 # Flag to hardcode \$libdir into a binary during linking.
24358 # This must work even if \$libdir does not exist.
24359 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24361 # If ld is used when linking, flag to hardcode \$libdir into
24362 # a binary during linking. This must work even if \$libdir does
24364 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24366 # Whether we need a single -rpath flag with a separated argument.
24367 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24369 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24370 # resulting binary.
24371 hardcode_direct=$hardcode_direct_RC
24373 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24374 # resulting binary.
24375 hardcode_minus_L=$hardcode_minus_L_RC
24377 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24378 # the resulting binary.
24379 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24381 # Set to yes if building a shared library automatically hardcodes DIR into the library
24382 # and all subsequent libraries and executables linked against it.
24383 hardcode_automatic=$hardcode_automatic_RC
24385 # Variables whose values should be saved in libtool wrapper scripts and
24386 # restored at relink time.
24387 variables_saved_for_relink="$variables_saved_for_relink"
24389 # Whether libtool must link a program against all its dependency libraries.
24390 link_all_deplibs=$link_all_deplibs_RC
24392 # Compile-time system search path for libraries
24393 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24395 # Run-time system search path for libraries
24396 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24398 # Fix the shell variable \$srcfile for the compiler.
24399 fix_srcfile_path=$lt_fix_srcfile_path
24401 # Set to yes if exported symbols are required.
24402 always_export_symbols=$always_export_symbols_RC
24404 # The commands to list exported symbols.
24405 export_symbols_cmds=$lt_export_symbols_cmds_RC
24407 # The commands to extract the exported symbol list from a shared archive.
24408 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24410 # Symbols that should not be listed in the preloaded symbols.
24411 exclude_expsyms=$lt_exclude_expsyms_RC
24413 # Symbols that must always be exported.
24414 include_expsyms=$lt_include_expsyms_RC
24416 # ### END LIBTOOL TAG CONFIG: $tagname
24422 # If there is no Makefile yet, we rely on a make rule to execute
24423 # `config.status --recheck' to rerun these tests and create the
24424 # libtool script then.
24425 ltmain_in
=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24426 if test -f "$ltmain_in"; then
24427 test -f Makefile
&& make "$ltmain"
24433 ac_cpp
='$CPP $CPPFLAGS'
24434 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24435 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24436 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
24443 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24444 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24445 { (exit 1); exit 1; }; }
24449 # Append the new tag name to the list of available tags.
24450 if test -n "$tagname" ; then
24451 available_tags
="$available_tags $tagname"
24457 # Now substitute the updated list of available tags.
24458 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24459 mv "${ofile}T" "$ofile"
24463 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24464 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24465 { (exit 1); exit 1; }; }
24471 # This can be used to rebuild libtool when needed
24472 LIBTOOL_DEPS
="$ac_aux_dir/ltmain.sh"
24474 # Always use our own libtool.
24475 LIBTOOL
='$(SHELL) $(top_builddir)/libtool'
24477 # Prevent multiple expansion
24499 # Generate an error here if attempting to build both shared and static when
24500 # $libname.a is in $library_names_spec (as mentioned above), rather than
24501 # wait for ar or ld to fail.
24503 if test "$enable_shared" = yes && test "$enable_static" = yes; then
24504 case $library_names_spec in
24506 { { echo "$as_me:$LINENO: error: cannot create both shared and static libraries on this system, --disable one of the two" >&5
24507 echo "$as_me: error: cannot create both shared and static libraries on this system, --disable one of the two" >&2;}
24508 { (exit 1); exit 1; }; }
24515 if test "$enable_static" = yes; then
24516 ENABLE_STATIC_TRUE
=
24517 ENABLE_STATIC_FALSE
='#'
24519 ENABLE_STATIC_TRUE
='#'
24520 ENABLE_STATIC_FALSE
=
24525 # Many of these library and header checks are for the benefit of
24526 # supplementary programs. libgmp doesn't use anything too weird.
24528 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
24529 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
24530 if test "${ac_cv_header_stdc+set}" = set; then
24531 echo $ECHO_N "(cached) $ECHO_C" >&6
24533 cat >conftest.
$ac_ext <<_ACEOF
24536 cat confdefs.h
>>conftest.
$ac_ext
24537 cat >>conftest.
$ac_ext <<_ACEOF
24538 /* end confdefs.h. */
24539 #include <stdlib.h>
24540 #include <stdarg.h>
24541 #include <string.h>
24552 rm -f conftest.
$ac_objext
24553 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24554 (eval $ac_compile) 2>conftest.er1
24556 grep -v '^ *+' conftest.er1
>conftest.err
24558 cat conftest.err
>&5
24559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24560 (exit $ac_status); } &&
24561 { ac_try
='test -z "$ac_c_werror_flag"
24562 || test ! -s conftest.err'
24563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24564 (eval $ac_try) 2>&5
24566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24567 (exit $ac_status); }; } &&
24568 { ac_try
='test -s conftest.$ac_objext'
24569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24570 (eval $ac_try) 2>&5
24572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24573 (exit $ac_status); }; }; then
24574 ac_cv_header_stdc
=yes
24576 echo "$as_me: failed program was:" >&5
24577 sed 's/^/| /' conftest.
$ac_ext >&5
24579 ac_cv_header_stdc
=no
24581 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
24583 if test $ac_cv_header_stdc = yes; then
24584 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
24585 cat >conftest.
$ac_ext <<_ACEOF
24588 cat confdefs.h
>>conftest.
$ac_ext
24589 cat >>conftest.
$ac_ext <<_ACEOF
24590 /* end confdefs.h. */
24591 #include <string.h>
24594 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24595 $EGREP "memchr" >/dev
/null
2>&1; then
24598 ac_cv_header_stdc
=no
24604 if test $ac_cv_header_stdc = yes; then
24605 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
24606 cat >conftest.
$ac_ext <<_ACEOF
24609 cat confdefs.h
>>conftest.
$ac_ext
24610 cat >>conftest.
$ac_ext <<_ACEOF
24611 /* end confdefs.h. */
24612 #include <stdlib.h>
24615 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24616 $EGREP "free" >/dev
/null
2>&1; then
24619 ac_cv_header_stdc
=no
24625 if test $ac_cv_header_stdc = yes; then
24626 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
24627 if test "$cross_compiling" = yes; then
24630 cat >conftest.
$ac_ext <<_ACEOF
24633 cat confdefs.h
>>conftest.
$ac_ext
24634 cat >>conftest.
$ac_ext <<_ACEOF
24635 /* end confdefs.h. */
24637 #if ((' ' & 0x0FF) == 0x020)
24638 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
24639 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
24641 # define ISLOWER(c) \
24642 (('a' <= (c) && (c) <= 'i') \
24643 || ('j' <= (c) && (c) <= 'r') \
24644 || ('s' <= (c) && (c) <= 'z'))
24645 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
24648 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
24653 for (i = 0; i < 256; i++)
24654 if (XOR (islower (i), ISLOWER (i))
24655 || toupper (i) != TOUPPER (i))
24660 rm -f conftest
$ac_exeext
24661 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24662 (eval $ac_link) 2>&5
24664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24665 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
24666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24667 (eval $ac_try) 2>&5
24669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24670 (exit $ac_status); }; }; then
24673 echo "$as_me: program exited with status $ac_status" >&5
24674 echo "$as_me: failed program was:" >&5
24675 sed 's/^/| /' conftest.
$ac_ext >&5
24677 ( exit $ac_status )
24678 ac_cv_header_stdc
=no
24680 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
24684 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
24685 echo "${ECHO_T}$ac_cv_header_stdc" >&6
24686 if test $ac_cv_header_stdc = yes; then
24688 cat >>confdefs.h
<<\_ACEOF
24689 #define STDC_HEADERS 1
24694 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
24695 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
24696 if test "${ac_cv_header_time+set}" = set; then
24697 echo $ECHO_N "(cached) $ECHO_C" >&6
24699 cat >conftest.
$ac_ext <<_ACEOF
24702 cat confdefs.h
>>conftest.
$ac_ext
24703 cat >>conftest.
$ac_ext <<_ACEOF
24704 /* end confdefs.h. */
24705 #include <sys/types.h>
24706 #include <sys/time.h>
24712 if ((struct tm *) 0)
24718 rm -f conftest.
$ac_objext
24719 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24720 (eval $ac_compile) 2>conftest.er1
24722 grep -v '^ *+' conftest.er1
>conftest.err
24724 cat conftest.err
>&5
24725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24726 (exit $ac_status); } &&
24727 { ac_try
='test -z "$ac_c_werror_flag"
24728 || test ! -s conftest.err'
24729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24730 (eval $ac_try) 2>&5
24732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24733 (exit $ac_status); }; } &&
24734 { ac_try
='test -s conftest.$ac_objext'
24735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24736 (eval $ac_try) 2>&5
24738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24739 (exit $ac_status); }; }; then
24740 ac_cv_header_time
=yes
24742 echo "$as_me: failed program was:" >&5
24743 sed 's/^/| /' conftest.
$ac_ext >&5
24745 ac_cv_header_time
=no
24747 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
24749 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
24750 echo "${ECHO_T}$ac_cv_header_time" >&6
24751 if test $ac_cv_header_time = yes; then
24753 cat >>confdefs.h
<<\_ACEOF
24754 #define TIME_WITH_SYS_TIME 1
24760 # Reasons for testing:
24761 # float.h - not in SunOS bundled cc
24762 # invent.h - IRIX specific
24763 # langinfo.h - X/Open standard only, not in djgpp for instance
24764 # locale.h - old systems won't have this
24765 # nl_types.h - X/Open standard only, not in djgpp for instance
24766 # (usually langinfo.h gives nl_item etc, but not on netbsd 1.4.1)
24767 # sys/attributes.h - IRIX specific
24768 # sys/iograph.h - IRIX specific
24769 # sys/mman.h - not in Cray Unicos
24770 # sys/param.h - not in mingw
24771 # sys/processor.h - solaris specific, though also present in macos
24772 # sys/pstat.h - HPUX specific
24773 # sys/resource.h - not in mingw
24774 # sys/sysctl.h - not in mingw
24775 # sys/sysinfo.h - OSF specific
24776 # sys/syssgi.h - IRIX specific
24777 # sys/systemcfg.h - AIX specific
24778 # sys/time.h - autoconf suggests testing, don't know anywhere without it
24779 # sys/times.h - not in mingw
24780 # machine/hal_sysinfo.h - OSF specific
24782 # inttypes.h, stdint.h, unistd.h and sys/types.h are already in the autoconf
24802 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
24804 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24805 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24806 echo "$as_me:$LINENO: checking for $ac_header" >&5
24807 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24808 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24809 echo $ECHO_N "(cached) $ECHO_C" >&6
24811 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24812 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24814 # Is the header compilable?
24815 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24816 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24817 cat >conftest.
$ac_ext <<_ACEOF
24820 cat confdefs.h
>>conftest.
$ac_ext
24821 cat >>conftest.
$ac_ext <<_ACEOF
24822 /* end confdefs.h. */
24823 $ac_includes_default
24824 #include <$ac_header>
24826 rm -f conftest.
$ac_objext
24827 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24828 (eval $ac_compile) 2>conftest.er1
24830 grep -v '^ *+' conftest.er1
>conftest.err
24832 cat conftest.err
>&5
24833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24834 (exit $ac_status); } &&
24835 { ac_try
='test -z "$ac_c_werror_flag"
24836 || test ! -s conftest.err'
24837 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24838 (eval $ac_try) 2>&5
24840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24841 (exit $ac_status); }; } &&
24842 { ac_try
='test -s conftest.$ac_objext'
24843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24844 (eval $ac_try) 2>&5
24846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24847 (exit $ac_status); }; }; then
24848 ac_header_compiler
=yes
24850 echo "$as_me: failed program was:" >&5
24851 sed 's/^/| /' conftest.
$ac_ext >&5
24853 ac_header_compiler
=no
24855 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
24856 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24857 echo "${ECHO_T}$ac_header_compiler" >&6
24859 # Is the header present?
24860 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24861 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24862 cat >conftest.
$ac_ext <<_ACEOF
24865 cat confdefs.h
>>conftest.
$ac_ext
24866 cat >>conftest.
$ac_ext <<_ACEOF
24867 /* end confdefs.h. */
24868 #include <$ac_header>
24870 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24871 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
24873 grep -v '^ *+' conftest.er1
>conftest.err
24875 cat conftest.err
>&5
24876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24877 (exit $ac_status); } >/dev
/null
; then
24878 if test -s conftest.err
; then
24879 ac_cpp_err
=$ac_c_preproc_warn_flag
24880 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
24887 if test -z "$ac_cpp_err"; then
24888 ac_header_preproc
=yes
24890 echo "$as_me: failed program was:" >&5
24891 sed 's/^/| /' conftest.
$ac_ext >&5
24893 ac_header_preproc
=no
24895 rm -f conftest.err conftest.
$ac_ext
24896 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24897 echo "${ECHO_T}$ac_header_preproc" >&6
24899 # So? What about this header?
24900 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24902 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24903 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24905 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24906 ac_header_preproc
=yes
24909 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24910 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24911 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24912 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24913 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24914 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24915 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24916 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24917 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24918 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24919 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24920 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24923 ## ---------------------------------- ##
24924 ## Report this to gmp-bugs@gmplib.org ##
24925 ## ---------------------------------- ##
24928 sed "s/^/$as_me: WARNING: /" >&2
24931 echo "$as_me:$LINENO: checking for $ac_header" >&5
24932 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24933 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24934 echo $ECHO_N "(cached) $ECHO_C" >&6
24936 eval "$as_ac_Header=\$ac_header_preproc"
24938 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24939 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24942 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24943 cat >>confdefs.h
<<_ACEOF
24944 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24952 # On SunOS, sys/resource.h needs sys/time.h (for struct timeval)
24954 for ac_header
in sys
/resource.h
24956 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24957 echo "$as_me:$LINENO: checking for $ac_header" >&5
24958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24959 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24960 echo $ECHO_N "(cached) $ECHO_C" >&6
24962 cat >conftest.
$ac_ext <<_ACEOF
24965 cat confdefs.h
>>conftest.
$ac_ext
24966 cat >>conftest.
$ac_ext <<_ACEOF
24967 /* end confdefs.h. */
24968 #if TIME_WITH_SYS_TIME
24969 # include <sys/time.h>
24972 # if HAVE_SYS_TIME_H
24973 # include <sys/time.h>
24979 #include <$ac_header>
24981 rm -f conftest.
$ac_objext
24982 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24983 (eval $ac_compile) 2>conftest.er1
24985 grep -v '^ *+' conftest.er1
>conftest.err
24987 cat conftest.err
>&5
24988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24989 (exit $ac_status); } &&
24990 { ac_try
='test -z "$ac_c_werror_flag"
24991 || test ! -s conftest.err'
24992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24993 (eval $ac_try) 2>&5
24995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24996 (exit $ac_status); }; } &&
24997 { ac_try
='test -s conftest.$ac_objext'
24998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24999 (eval $ac_try) 2>&5
25001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25002 (exit $ac_status); }; }; then
25003 eval "$as_ac_Header=yes"
25005 echo "$as_me: failed program was:" >&5
25006 sed 's/^/| /' conftest.
$ac_ext >&5
25008 eval "$as_ac_Header=no"
25010 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
25012 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25013 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25014 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25015 cat >>confdefs.h
<<_ACEOF
25016 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25024 # On NetBSD and OpenBSD, sys/sysctl.h needs sys/param.h for various constants
25026 for ac_header
in sys
/sysctl.h
25028 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25029 echo "$as_me:$LINENO: checking for $ac_header" >&5
25030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25031 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25032 echo $ECHO_N "(cached) $ECHO_C" >&6
25034 cat >conftest.
$ac_ext <<_ACEOF
25037 cat confdefs.h
>>conftest.
$ac_ext
25038 cat >>conftest.
$ac_ext <<_ACEOF
25039 /* end confdefs.h. */
25040 #if HAVE_SYS_PARAM_H
25041 # include <sys/param.h>
25044 #include <$ac_header>
25046 rm -f conftest.
$ac_objext
25047 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25048 (eval $ac_compile) 2>conftest.er1
25050 grep -v '^ *+' conftest.er1
>conftest.err
25052 cat conftest.err
>&5
25053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25054 (exit $ac_status); } &&
25055 { ac_try
='test -z "$ac_c_werror_flag"
25056 || test ! -s conftest.err'
25057 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25058 (eval $ac_try) 2>&5
25060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25061 (exit $ac_status); }; } &&
25062 { ac_try
='test -s conftest.$ac_objext'
25063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25064 (eval $ac_try) 2>&5
25066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25067 (exit $ac_status); }; }; then
25068 eval "$as_ac_Header=yes"
25070 echo "$as_me: failed program was:" >&5
25071 sed 's/^/| /' conftest.
$ac_ext >&5
25073 eval "$as_ac_Header=no"
25075 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
25077 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25078 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25079 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25080 cat >>confdefs.h
<<_ACEOF
25081 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25089 # On OSF 4.0, <machine/hal_sysinfo.h> must have <sys/sysinfo.h> for ulong_t
25091 for ac_header
in machine
/hal_sysinfo.h
25093 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25094 echo "$as_me:$LINENO: checking for $ac_header" >&5
25095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25096 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25097 echo $ECHO_N "(cached) $ECHO_C" >&6
25099 cat >conftest.
$ac_ext <<_ACEOF
25102 cat confdefs.h
>>conftest.
$ac_ext
25103 cat >>conftest.
$ac_ext <<_ACEOF
25104 /* end confdefs.h. */
25105 #if HAVE_SYS_SYSINFO_H
25106 # include <sys/sysinfo.h>
25109 #include <$ac_header>
25111 rm -f conftest.
$ac_objext
25112 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25113 (eval $ac_compile) 2>conftest.er1
25115 grep -v '^ *+' conftest.er1
>conftest.err
25117 cat conftest.err
>&5
25118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25119 (exit $ac_status); } &&
25120 { ac_try
='test -z "$ac_c_werror_flag"
25121 || test ! -s conftest.err'
25122 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25123 (eval $ac_try) 2>&5
25125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25126 (exit $ac_status); }; } &&
25127 { ac_try
='test -s conftest.$ac_objext'
25128 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25129 (eval $ac_try) 2>&5
25131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25132 (exit $ac_status); }; }; then
25133 eval "$as_ac_Header=yes"
25135 echo "$as_me: failed program was:" >&5
25136 sed 's/^/| /' conftest.
$ac_ext >&5
25138 eval "$as_ac_Header=no"
25140 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
25142 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25143 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25144 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25145 cat >>confdefs.h
<<_ACEOF
25146 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25154 # Reasons for testing:
25155 # optarg - not declared in mingw
25156 # fgetc, fscanf, ungetc, vfprintf - not declared in SunOS 4
25157 # sys_errlist, sys_nerr - not declared in SunOS 4
25159 # optarg should be in unistd.h and the rest in stdio.h, both of which are
25160 # in the autoconf default includes.
25162 # sys_errlist and sys_nerr are supposed to be in <errno.h> on SunOS according
25163 # to the man page (but aren't), in glibc they're in stdio.h.
25165 echo "$as_me:$LINENO: checking whether fgetc is declared" >&5
25166 echo $ECHO_N "checking whether fgetc is declared... $ECHO_C" >&6
25167 if test "${ac_cv_have_decl_fgetc+set}" = set; then
25168 echo $ECHO_N "(cached) $ECHO_C" >&6
25170 cat >conftest.
$ac_ext <<_ACEOF
25173 cat confdefs.h
>>conftest.
$ac_ext
25174 cat >>conftest.
$ac_ext <<_ACEOF
25175 /* end confdefs.h. */
25176 $ac_includes_default
25181 char *p = (char *) fgetc;
25188 rm -f conftest.
$ac_objext
25189 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25190 (eval $ac_compile) 2>conftest.er1
25192 grep -v '^ *+' conftest.er1
>conftest.err
25194 cat conftest.err
>&5
25195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25196 (exit $ac_status); } &&
25197 { ac_try
='test -z "$ac_c_werror_flag"
25198 || test ! -s conftest.err'
25199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25200 (eval $ac_try) 2>&5
25202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25203 (exit $ac_status); }; } &&
25204 { ac_try
='test -s conftest.$ac_objext'
25205 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25206 (eval $ac_try) 2>&5
25208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25209 (exit $ac_status); }; }; then
25210 ac_cv_have_decl_fgetc
=yes
25212 echo "$as_me: failed program was:" >&5
25213 sed 's/^/| /' conftest.
$ac_ext >&5
25215 ac_cv_have_decl_fgetc
=no
25217 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
25219 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgetc" >&5
25220 echo "${ECHO_T}$ac_cv_have_decl_fgetc" >&6
25221 if test $ac_cv_have_decl_fgetc = yes; then
25223 cat >>confdefs.h
<<_ACEOF
25224 #define HAVE_DECL_FGETC 1
25229 cat >>confdefs.h
<<_ACEOF
25230 #define HAVE_DECL_FGETC 0
25235 echo "$as_me:$LINENO: checking whether fscanf is declared" >&5
25236 echo $ECHO_N "checking whether fscanf is declared... $ECHO_C" >&6
25237 if test "${ac_cv_have_decl_fscanf+set}" = set; then
25238 echo $ECHO_N "(cached) $ECHO_C" >&6
25240 cat >conftest.
$ac_ext <<_ACEOF
25243 cat confdefs.h
>>conftest.
$ac_ext
25244 cat >>conftest.
$ac_ext <<_ACEOF
25245 /* end confdefs.h. */
25246 $ac_includes_default
25251 char *p = (char *) fscanf;
25258 rm -f conftest.
$ac_objext
25259 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25260 (eval $ac_compile) 2>conftest.er1
25262 grep -v '^ *+' conftest.er1
>conftest.err
25264 cat conftest.err
>&5
25265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25266 (exit $ac_status); } &&
25267 { ac_try
='test -z "$ac_c_werror_flag"
25268 || test ! -s conftest.err'
25269 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25270 (eval $ac_try) 2>&5
25272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25273 (exit $ac_status); }; } &&
25274 { ac_try
='test -s conftest.$ac_objext'
25275 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25276 (eval $ac_try) 2>&5
25278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25279 (exit $ac_status); }; }; then
25280 ac_cv_have_decl_fscanf
=yes
25282 echo "$as_me: failed program was:" >&5
25283 sed 's/^/| /' conftest.
$ac_ext >&5
25285 ac_cv_have_decl_fscanf
=no
25287 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
25289 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fscanf" >&5
25290 echo "${ECHO_T}$ac_cv_have_decl_fscanf" >&6
25291 if test $ac_cv_have_decl_fscanf = yes; then
25293 cat >>confdefs.h
<<_ACEOF
25294 #define HAVE_DECL_FSCANF 1
25299 cat >>confdefs.h
<<_ACEOF
25300 #define HAVE_DECL_FSCANF 0
25305 echo "$as_me:$LINENO: checking whether optarg is declared" >&5
25306 echo $ECHO_N "checking whether optarg is declared... $ECHO_C" >&6
25307 if test "${ac_cv_have_decl_optarg+set}" = set; then
25308 echo $ECHO_N "(cached) $ECHO_C" >&6
25310 cat >conftest.
$ac_ext <<_ACEOF
25313 cat confdefs.h
>>conftest.
$ac_ext
25314 cat >>conftest.
$ac_ext <<_ACEOF
25315 /* end confdefs.h. */
25316 $ac_includes_default
25321 char *p = (char *) optarg;
25328 rm -f conftest.
$ac_objext
25329 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25330 (eval $ac_compile) 2>conftest.er1
25332 grep -v '^ *+' conftest.er1
>conftest.err
25334 cat conftest.err
>&5
25335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25336 (exit $ac_status); } &&
25337 { ac_try
='test -z "$ac_c_werror_flag"
25338 || test ! -s conftest.err'
25339 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25340 (eval $ac_try) 2>&5
25342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25343 (exit $ac_status); }; } &&
25344 { ac_try
='test -s conftest.$ac_objext'
25345 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25346 (eval $ac_try) 2>&5
25348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25349 (exit $ac_status); }; }; then
25350 ac_cv_have_decl_optarg
=yes
25352 echo "$as_me: failed program was:" >&5
25353 sed 's/^/| /' conftest.
$ac_ext >&5
25355 ac_cv_have_decl_optarg
=no
25357 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
25359 echo "$as_me:$LINENO: result: $ac_cv_have_decl_optarg" >&5
25360 echo "${ECHO_T}$ac_cv_have_decl_optarg" >&6
25361 if test $ac_cv_have_decl_optarg = yes; then
25363 cat >>confdefs.h
<<_ACEOF
25364 #define HAVE_DECL_OPTARG 1
25369 cat >>confdefs.h
<<_ACEOF
25370 #define HAVE_DECL_OPTARG 0
25375 echo "$as_me:$LINENO: checking whether ungetc is declared" >&5
25376 echo $ECHO_N "checking whether ungetc is declared... $ECHO_C" >&6
25377 if test "${ac_cv_have_decl_ungetc+set}" = set; then
25378 echo $ECHO_N "(cached) $ECHO_C" >&6
25380 cat >conftest.
$ac_ext <<_ACEOF
25383 cat confdefs.h
>>conftest.
$ac_ext
25384 cat >>conftest.
$ac_ext <<_ACEOF
25385 /* end confdefs.h. */
25386 $ac_includes_default
25391 char *p = (char *) ungetc;
25398 rm -f conftest.
$ac_objext
25399 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25400 (eval $ac_compile) 2>conftest.er1
25402 grep -v '^ *+' conftest.er1
>conftest.err
25404 cat conftest.err
>&5
25405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25406 (exit $ac_status); } &&
25407 { ac_try
='test -z "$ac_c_werror_flag"
25408 || test ! -s conftest.err'
25409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25410 (eval $ac_try) 2>&5
25412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25413 (exit $ac_status); }; } &&
25414 { ac_try
='test -s conftest.$ac_objext'
25415 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25416 (eval $ac_try) 2>&5
25418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25419 (exit $ac_status); }; }; then
25420 ac_cv_have_decl_ungetc
=yes
25422 echo "$as_me: failed program was:" >&5
25423 sed 's/^/| /' conftest.
$ac_ext >&5
25425 ac_cv_have_decl_ungetc
=no
25427 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
25429 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ungetc" >&5
25430 echo "${ECHO_T}$ac_cv_have_decl_ungetc" >&6
25431 if test $ac_cv_have_decl_ungetc = yes; then
25433 cat >>confdefs.h
<<_ACEOF
25434 #define HAVE_DECL_UNGETC 1
25439 cat >>confdefs.h
<<_ACEOF
25440 #define HAVE_DECL_UNGETC 0
25445 echo "$as_me:$LINENO: checking whether vfprintf is declared" >&5
25446 echo $ECHO_N "checking whether vfprintf is declared... $ECHO_C" >&6
25447 if test "${ac_cv_have_decl_vfprintf+set}" = set; then
25448 echo $ECHO_N "(cached) $ECHO_C" >&6
25450 cat >conftest.
$ac_ext <<_ACEOF
25453 cat confdefs.h
>>conftest.
$ac_ext
25454 cat >>conftest.
$ac_ext <<_ACEOF
25455 /* end confdefs.h. */
25456 $ac_includes_default
25461 char *p = (char *) vfprintf;
25468 rm -f conftest.
$ac_objext
25469 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25470 (eval $ac_compile) 2>conftest.er1
25472 grep -v '^ *+' conftest.er1
>conftest.err
25474 cat conftest.err
>&5
25475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25476 (exit $ac_status); } &&
25477 { ac_try
='test -z "$ac_c_werror_flag"
25478 || test ! -s conftest.err'
25479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25480 (eval $ac_try) 2>&5
25482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25483 (exit $ac_status); }; } &&
25484 { ac_try
='test -s conftest.$ac_objext'
25485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25486 (eval $ac_try) 2>&5
25488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25489 (exit $ac_status); }; }; then
25490 ac_cv_have_decl_vfprintf
=yes
25492 echo "$as_me: failed program was:" >&5
25493 sed 's/^/| /' conftest.
$ac_ext >&5
25495 ac_cv_have_decl_vfprintf
=no
25497 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
25499 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vfprintf" >&5
25500 echo "${ECHO_T}$ac_cv_have_decl_vfprintf" >&6
25501 if test $ac_cv_have_decl_vfprintf = yes; then
25503 cat >>confdefs.h
<<_ACEOF
25504 #define HAVE_DECL_VFPRINTF 1
25509 cat >>confdefs.h
<<_ACEOF
25510 #define HAVE_DECL_VFPRINTF 0
25517 echo "$as_me:$LINENO: checking whether sys_errlist is declared" >&5
25518 echo $ECHO_N "checking whether sys_errlist is declared... $ECHO_C" >&6
25519 if test "${ac_cv_have_decl_sys_errlist+set}" = set; then
25520 echo $ECHO_N "(cached) $ECHO_C" >&6
25522 cat >conftest.
$ac_ext <<_ACEOF
25525 cat confdefs.h
>>conftest.
$ac_ext
25526 cat >>conftest.
$ac_ext <<_ACEOF
25527 /* end confdefs.h. */
25534 #ifndef sys_errlist
25535 char *p = (char *) sys_errlist;
25542 rm -f conftest.
$ac_objext
25543 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25544 (eval $ac_compile) 2>conftest.er1
25546 grep -v '^ *+' conftest.er1
>conftest.err
25548 cat conftest.err
>&5
25549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25550 (exit $ac_status); } &&
25551 { ac_try
='test -z "$ac_c_werror_flag"
25552 || test ! -s conftest.err'
25553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25554 (eval $ac_try) 2>&5
25556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25557 (exit $ac_status); }; } &&
25558 { ac_try
='test -s conftest.$ac_objext'
25559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25560 (eval $ac_try) 2>&5
25562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25563 (exit $ac_status); }; }; then
25564 ac_cv_have_decl_sys_errlist
=yes
25566 echo "$as_me: failed program was:" >&5
25567 sed 's/^/| /' conftest.
$ac_ext >&5
25569 ac_cv_have_decl_sys_errlist
=no
25571 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
25573 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_errlist" >&5
25574 echo "${ECHO_T}$ac_cv_have_decl_sys_errlist" >&6
25575 if test $ac_cv_have_decl_sys_errlist = yes; then
25577 cat >>confdefs.h
<<_ACEOF
25578 #define HAVE_DECL_SYS_ERRLIST 1
25583 cat >>confdefs.h
<<_ACEOF
25584 #define HAVE_DECL_SYS_ERRLIST 0
25589 echo "$as_me:$LINENO: checking whether sys_nerr is declared" >&5
25590 echo $ECHO_N "checking whether sys_nerr is declared... $ECHO_C" >&6
25591 if test "${ac_cv_have_decl_sys_nerr+set}" = set; then
25592 echo $ECHO_N "(cached) $ECHO_C" >&6
25594 cat >conftest.
$ac_ext <<_ACEOF
25597 cat confdefs.h
>>conftest.
$ac_ext
25598 cat >>conftest.
$ac_ext <<_ACEOF
25599 /* end confdefs.h. */
25607 char *p = (char *) sys_nerr;
25614 rm -f conftest.
$ac_objext
25615 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25616 (eval $ac_compile) 2>conftest.er1
25618 grep -v '^ *+' conftest.er1
>conftest.err
25620 cat conftest.err
>&5
25621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25622 (exit $ac_status); } &&
25623 { ac_try
='test -z "$ac_c_werror_flag"
25624 || test ! -s conftest.err'
25625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25626 (eval $ac_try) 2>&5
25628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25629 (exit $ac_status); }; } &&
25630 { ac_try
='test -s conftest.$ac_objext'
25631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25632 (eval $ac_try) 2>&5
25634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25635 (exit $ac_status); }; }; then
25636 ac_cv_have_decl_sys_nerr
=yes
25638 echo "$as_me: failed program was:" >&5
25639 sed 's/^/| /' conftest.
$ac_ext >&5
25641 ac_cv_have_decl_sys_nerr
=no
25643 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
25645 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_nerr" >&5
25646 echo "${ECHO_T}$ac_cv_have_decl_sys_nerr" >&6
25647 if test $ac_cv_have_decl_sys_nerr = yes; then
25649 cat >>confdefs.h
<<_ACEOF
25650 #define HAVE_DECL_SYS_NERR 1
25655 cat >>confdefs.h
<<_ACEOF
25656 #define HAVE_DECL_SYS_NERR 0
25664 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
25665 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
25666 if test "${ac_cv_type_signal+set}" = set; then
25667 echo $ECHO_N "(cached) $ECHO_C" >&6
25669 cat >conftest.
$ac_ext <<_ACEOF
25672 cat confdefs.h
>>conftest.
$ac_ext
25673 cat >>conftest.
$ac_ext <<_ACEOF
25674 /* end confdefs.h. */
25675 #include <sys/types.h>
25676 #include <signal.h>
25681 extern "C" void (*signal (int, void (*)(int)))(int);
25683 void (*signal ()) ();
25694 rm -f conftest.
$ac_objext
25695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25696 (eval $ac_compile) 2>conftest.er1
25698 grep -v '^ *+' conftest.er1
>conftest.err
25700 cat conftest.err
>&5
25701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25702 (exit $ac_status); } &&
25703 { ac_try
='test -z "$ac_c_werror_flag"
25704 || test ! -s conftest.err'
25705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25706 (eval $ac_try) 2>&5
25708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25709 (exit $ac_status); }; } &&
25710 { ac_try
='test -s conftest.$ac_objext'
25711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25712 (eval $ac_try) 2>&5
25714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25715 (exit $ac_status); }; }; then
25716 ac_cv_type_signal
=void
25718 echo "$as_me: failed program was:" >&5
25719 sed 's/^/| /' conftest.
$ac_ext >&5
25721 ac_cv_type_signal
=int
25723 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
25725 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
25726 echo "${ECHO_T}$ac_cv_type_signal" >&6
25728 cat >>confdefs.h
<<_ACEOF
25729 #define RETSIGTYPE $ac_cv_type_signal
25734 # Reasons for testing:
25736 # long double - not in the HP bundled K&R cc
25737 # long long - only in reasonably recent compilers
25738 # ptrdiff_t - seems to be everywhere, maybe don't need to check this
25739 # quad_t - BSD specific
25740 # uint_least32_t - C99
25742 # the default includes are sufficient for all these types
25744 echo "$as_me:$LINENO: checking for intmax_t" >&5
25745 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
25746 if test "${ac_cv_type_intmax_t+set}" = set; then
25747 echo $ECHO_N "(cached) $ECHO_C" >&6
25749 cat >conftest.
$ac_ext <<_ACEOF
25752 cat confdefs.h
>>conftest.
$ac_ext
25753 cat >>conftest.
$ac_ext <<_ACEOF
25754 /* end confdefs.h. */
25755 $ac_includes_default
25759 if ((intmax_t *) 0)
25761 if (sizeof (intmax_t))
25767 rm -f conftest.
$ac_objext
25768 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25769 (eval $ac_compile) 2>conftest.er1
25771 grep -v '^ *+' conftest.er1
>conftest.err
25773 cat conftest.err
>&5
25774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25775 (exit $ac_status); } &&
25776 { ac_try
='test -z "$ac_c_werror_flag"
25777 || test ! -s conftest.err'
25778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25779 (eval $ac_try) 2>&5
25781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25782 (exit $ac_status); }; } &&
25783 { ac_try
='test -s conftest.$ac_objext'
25784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25785 (eval $ac_try) 2>&5
25787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25788 (exit $ac_status); }; }; then
25789 ac_cv_type_intmax_t
=yes
25791 echo "$as_me: failed program was:" >&5
25792 sed 's/^/| /' conftest.
$ac_ext >&5
25794 ac_cv_type_intmax_t
=no
25796 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
25798 echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
25799 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6
25800 if test $ac_cv_type_intmax_t = yes; then
25802 cat >>confdefs.h
<<_ACEOF
25803 #define HAVE_INTMAX_T 1
25808 echo "$as_me:$LINENO: checking for long double" >&5
25809 echo $ECHO_N "checking for long double... $ECHO_C" >&6
25810 if test "${ac_cv_type_long_double+set}" = set; then
25811 echo $ECHO_N "(cached) $ECHO_C" >&6
25813 cat >conftest.
$ac_ext <<_ACEOF
25816 cat confdefs.h
>>conftest.
$ac_ext
25817 cat >>conftest.
$ac_ext <<_ACEOF
25818 /* end confdefs.h. */
25819 $ac_includes_default
25823 if ((long double *) 0)
25825 if (sizeof (long double))
25831 rm -f conftest.
$ac_objext
25832 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25833 (eval $ac_compile) 2>conftest.er1
25835 grep -v '^ *+' conftest.er1
>conftest.err
25837 cat conftest.err
>&5
25838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25839 (exit $ac_status); } &&
25840 { ac_try
='test -z "$ac_c_werror_flag"
25841 || test ! -s conftest.err'
25842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25843 (eval $ac_try) 2>&5
25845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25846 (exit $ac_status); }; } &&
25847 { ac_try
='test -s conftest.$ac_objext'
25848 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25849 (eval $ac_try) 2>&5
25851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25852 (exit $ac_status); }; }; then
25853 ac_cv_type_long_double
=yes
25855 echo "$as_me: failed program was:" >&5
25856 sed 's/^/| /' conftest.
$ac_ext >&5
25858 ac_cv_type_long_double
=no
25860 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
25862 echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
25863 echo "${ECHO_T}$ac_cv_type_long_double" >&6
25864 if test $ac_cv_type_long_double = yes; then
25866 cat >>confdefs.h
<<_ACEOF
25867 #define HAVE_LONG_DOUBLE 1
25872 echo "$as_me:$LINENO: checking for long long" >&5
25873 echo $ECHO_N "checking for long long... $ECHO_C" >&6
25874 if test "${ac_cv_type_long_long+set}" = set; then
25875 echo $ECHO_N "(cached) $ECHO_C" >&6
25877 cat >conftest.
$ac_ext <<_ACEOF
25880 cat confdefs.h
>>conftest.
$ac_ext
25881 cat >>conftest.
$ac_ext <<_ACEOF
25882 /* end confdefs.h. */
25883 $ac_includes_default
25887 if ((long long *) 0)
25889 if (sizeof (long long))
25895 rm -f conftest.
$ac_objext
25896 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25897 (eval $ac_compile) 2>conftest.er1
25899 grep -v '^ *+' conftest.er1
>conftest.err
25901 cat conftest.err
>&5
25902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25903 (exit $ac_status); } &&
25904 { ac_try
='test -z "$ac_c_werror_flag"
25905 || test ! -s conftest.err'
25906 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25907 (eval $ac_try) 2>&5
25909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25910 (exit $ac_status); }; } &&
25911 { ac_try
='test -s conftest.$ac_objext'
25912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25913 (eval $ac_try) 2>&5
25915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25916 (exit $ac_status); }; }; then
25917 ac_cv_type_long_long
=yes
25919 echo "$as_me: failed program was:" >&5
25920 sed 's/^/| /' conftest.
$ac_ext >&5
25922 ac_cv_type_long_long
=no
25924 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
25926 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
25927 echo "${ECHO_T}$ac_cv_type_long_long" >&6
25928 if test $ac_cv_type_long_long = yes; then
25930 cat >>confdefs.h
<<_ACEOF
25931 #define HAVE_LONG_LONG 1
25936 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
25937 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
25938 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
25939 echo $ECHO_N "(cached) $ECHO_C" >&6
25941 cat >conftest.
$ac_ext <<_ACEOF
25944 cat confdefs.h
>>conftest.
$ac_ext
25945 cat >>conftest.
$ac_ext <<_ACEOF
25946 /* end confdefs.h. */
25947 $ac_includes_default
25951 if ((ptrdiff_t *) 0)
25953 if (sizeof (ptrdiff_t))
25959 rm -f conftest.
$ac_objext
25960 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25961 (eval $ac_compile) 2>conftest.er1
25963 grep -v '^ *+' conftest.er1
>conftest.err
25965 cat conftest.err
>&5
25966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25967 (exit $ac_status); } &&
25968 { ac_try
='test -z "$ac_c_werror_flag"
25969 || test ! -s conftest.err'
25970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25971 (eval $ac_try) 2>&5
25973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25974 (exit $ac_status); }; } &&
25975 { ac_try
='test -s conftest.$ac_objext'
25976 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25977 (eval $ac_try) 2>&5
25979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25980 (exit $ac_status); }; }; then
25981 ac_cv_type_ptrdiff_t
=yes
25983 echo "$as_me: failed program was:" >&5
25984 sed 's/^/| /' conftest.
$ac_ext >&5
25986 ac_cv_type_ptrdiff_t
=no
25988 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
25990 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
25991 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
25992 if test $ac_cv_type_ptrdiff_t = yes; then
25994 cat >>confdefs.h
<<_ACEOF
25995 #define HAVE_PTRDIFF_T 1
26000 echo "$as_me:$LINENO: checking for quad_t" >&5
26001 echo $ECHO_N "checking for quad_t... $ECHO_C" >&6
26002 if test "${ac_cv_type_quad_t+set}" = set; then
26003 echo $ECHO_N "(cached) $ECHO_C" >&6
26005 cat >conftest.
$ac_ext <<_ACEOF
26008 cat confdefs.h
>>conftest.
$ac_ext
26009 cat >>conftest.
$ac_ext <<_ACEOF
26010 /* end confdefs.h. */
26011 $ac_includes_default
26017 if (sizeof (quad_t))
26023 rm -f conftest.
$ac_objext
26024 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26025 (eval $ac_compile) 2>conftest.er1
26027 grep -v '^ *+' conftest.er1
>conftest.err
26029 cat conftest.err
>&5
26030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26031 (exit $ac_status); } &&
26032 { ac_try
='test -z "$ac_c_werror_flag"
26033 || test ! -s conftest.err'
26034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26035 (eval $ac_try) 2>&5
26037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26038 (exit $ac_status); }; } &&
26039 { ac_try
='test -s conftest.$ac_objext'
26040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26041 (eval $ac_try) 2>&5
26043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26044 (exit $ac_status); }; }; then
26045 ac_cv_type_quad_t
=yes
26047 echo "$as_me: failed program was:" >&5
26048 sed 's/^/| /' conftest.
$ac_ext >&5
26050 ac_cv_type_quad_t
=no
26052 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
26054 echo "$as_me:$LINENO: result: $ac_cv_type_quad_t" >&5
26055 echo "${ECHO_T}$ac_cv_type_quad_t" >&6
26056 if test $ac_cv_type_quad_t = yes; then
26058 cat >>confdefs.h
<<_ACEOF
26059 #define HAVE_QUAD_T 1
26064 echo "$as_me:$LINENO: checking for uint_least32_t" >&5
26065 echo $ECHO_N "checking for uint_least32_t... $ECHO_C" >&6
26066 if test "${ac_cv_type_uint_least32_t+set}" = set; then
26067 echo $ECHO_N "(cached) $ECHO_C" >&6
26069 cat >conftest.
$ac_ext <<_ACEOF
26072 cat confdefs.h
>>conftest.
$ac_ext
26073 cat >>conftest.
$ac_ext <<_ACEOF
26074 /* end confdefs.h. */
26075 $ac_includes_default
26079 if ((uint_least32_t *) 0)
26081 if (sizeof (uint_least32_t))
26087 rm -f conftest.
$ac_objext
26088 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26089 (eval $ac_compile) 2>conftest.er1
26091 grep -v '^ *+' conftest.er1
>conftest.err
26093 cat conftest.err
>&5
26094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26095 (exit $ac_status); } &&
26096 { ac_try
='test -z "$ac_c_werror_flag"
26097 || test ! -s conftest.err'
26098 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26099 (eval $ac_try) 2>&5
26101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26102 (exit $ac_status); }; } &&
26103 { ac_try
='test -s conftest.$ac_objext'
26104 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26105 (eval $ac_try) 2>&5
26107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26108 (exit $ac_status); }; }; then
26109 ac_cv_type_uint_least32_t
=yes
26111 echo "$as_me: failed program was:" >&5
26112 sed 's/^/| /' conftest.
$ac_ext >&5
26114 ac_cv_type_uint_least32_t
=no
26116 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
26118 echo "$as_me:$LINENO: result: $ac_cv_type_uint_least32_t" >&5
26119 echo "${ECHO_T}$ac_cv_type_uint_least32_t" >&6
26120 if test $ac_cv_type_uint_least32_t = yes; then
26122 cat >>confdefs.h
<<_ACEOF
26123 #define HAVE_UINT_LEAST32_T 1
26130 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
26131 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
26132 if test "${ac_cv_c_stringize+set}" = set; then
26133 echo $ECHO_N "(cached) $ECHO_C" >&6
26135 cat >conftest.
$ac_ext <<_ACEOF
26138 cat confdefs.h
>>conftest.
$ac_ext
26139 cat >>conftest.
$ac_ext <<_ACEOF
26140 /* end confdefs.h. */
26143 char *s = x(teststring);
26145 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26146 $EGREP "#teststring" >/dev
/null
2>&1; then
26147 ac_cv_c_stringize
=no
26149 ac_cv_c_stringize
=yes
26154 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
26155 echo "${ECHO_T}$ac_cv_c_stringize" >&6
26156 if test $ac_cv_c_stringize = yes; then
26158 cat >>confdefs.h
<<\_ACEOF
26159 #define HAVE_STRINGIZE 1
26165 # FIXME: Really want #ifndef __cplusplus around the #define volatile
26166 # replacement autoconf gives, since volatile is always available in C++.
26167 # But we don't use it in C++ currently.
26168 echo "$as_me:$LINENO: checking for working volatile" >&5
26169 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
26170 if test "${ac_cv_c_volatile+set}" = set; then
26171 echo $ECHO_N "(cached) $ECHO_C" >&6
26173 cat >conftest.
$ac_ext <<_ACEOF
26176 cat confdefs.h
>>conftest.
$ac_ext
26177 cat >>conftest.
$ac_ext <<_ACEOF
26178 /* end confdefs.h. */
26190 rm -f conftest.
$ac_objext
26191 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26192 (eval $ac_compile) 2>conftest.er1
26194 grep -v '^ *+' conftest.er1
>conftest.err
26196 cat conftest.err
>&5
26197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26198 (exit $ac_status); } &&
26199 { ac_try
='test -z "$ac_c_werror_flag"
26200 || test ! -s conftest.err'
26201 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26202 (eval $ac_try) 2>&5
26204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26205 (exit $ac_status); }; } &&
26206 { ac_try
='test -s conftest.$ac_objext'
26207 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26208 (eval $ac_try) 2>&5
26210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26211 (exit $ac_status); }; }; then
26212 ac_cv_c_volatile
=yes
26214 echo "$as_me: failed program was:" >&5
26215 sed 's/^/| /' conftest.
$ac_ext >&5
26217 ac_cv_c_volatile
=no
26219 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
26221 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
26222 echo "${ECHO_T}$ac_cv_c_volatile" >&6
26223 if test $ac_cv_c_volatile = no
; then
26225 cat >>confdefs.h
<<\_ACEOF
26232 echo "$as_me:$LINENO: checking for C/C++ restrict keyword" >&5
26233 echo $ECHO_N "checking for C/C++ restrict keyword... $ECHO_C" >&6
26234 if test "${ac_cv_c_restrict+set}" = set; then
26235 echo $ECHO_N "(cached) $ECHO_C" >&6
26237 ac_cv_c_restrict
=no
26238 # Try the official restrict keyword, then gcc's __restrict, and
26239 # the less common variants.
26240 for ac_kw
in restrict __restrict __restrict__ _Restrict
; do
26241 cat >conftest.
$ac_ext <<_ACEOF
26244 cat confdefs.h
>>conftest.
$ac_ext
26245 cat >>conftest.
$ac_ext <<_ACEOF
26246 /* end confdefs.h. */
26249 rm -f conftest.
$ac_objext
26250 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26251 (eval $ac_compile) 2>conftest.er1
26253 grep -v '^ *+' conftest.er1
>conftest.err
26255 cat conftest.err
>&5
26256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26257 (exit $ac_status); } &&
26258 { ac_try
='test -z "$ac_c_werror_flag"
26259 || test ! -s conftest.err'
26260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26261 (eval $ac_try) 2>&5
26263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26264 (exit $ac_status); }; } &&
26265 { ac_try
='test -s conftest.$ac_objext'
26266 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26267 (eval $ac_try) 2>&5
26269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26270 (exit $ac_status); }; }; then
26271 ac_cv_c_restrict
=$ac_kw; break
26273 echo "$as_me: failed program was:" >&5
26274 sed 's/^/| /' conftest.
$ac_ext >&5
26277 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
26281 echo "$as_me:$LINENO: result: $ac_cv_c_restrict" >&5
26282 echo "${ECHO_T}$ac_cv_c_restrict" >&6
26283 case $ac_cv_c_restrict in
26286 cat >>confdefs.h
<<\_ACEOF
26290 *) cat >>confdefs.h
<<_ACEOF
26291 #define restrict $ac_cv_c_restrict
26297 echo "$as_me:$LINENO: checking whether <stdarg.h> exists and works" >&5
26298 echo $ECHO_N "checking whether <stdarg.h> exists and works... $ECHO_C" >&6
26299 if test "${gmp_cv_c_stdarg+set}" = set; then
26300 echo $ECHO_N "(cached) $ECHO_C" >&6
26302 cat >conftest.
$ac_ext <<_ACEOF
26305 cat confdefs.h
>>conftest.
$ac_ext
26306 cat >>conftest.
$ac_ext <<_ACEOF
26307 /* end confdefs.h. */
26308 #include <stdarg.h>
26309 int foo (int x, ...)
26314 y = va_arg (ap, int);
26326 rm -f conftest.
$ac_objext
26327 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26328 (eval $ac_compile) 2>conftest.er1
26330 grep -v '^ *+' conftest.er1
>conftest.err
26332 cat conftest.err
>&5
26333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26334 (exit $ac_status); } &&
26335 { ac_try
='test -z "$ac_c_werror_flag"
26336 || test ! -s conftest.err'
26337 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26338 (eval $ac_try) 2>&5
26340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26341 (exit $ac_status); }; } &&
26342 { ac_try
='test -s conftest.$ac_objext'
26343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26344 (eval $ac_try) 2>&5
26346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26347 (exit $ac_status); }; }; then
26348 gmp_cv_c_stdarg
=yes
26350 echo "$as_me: failed program was:" >&5
26351 sed 's/^/| /' conftest.
$ac_ext >&5
26355 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
26358 echo "$as_me:$LINENO: result: $gmp_cv_c_stdarg" >&5
26359 echo "${ECHO_T}$gmp_cv_c_stdarg" >&6
26360 if test $gmp_cv_c_stdarg = yes; then
26362 cat >>confdefs.h
<<\_ACEOF
26363 #define HAVE_STDARG 1
26368 echo "$as_me:$LINENO: checking whether gcc __attribute__ ((const)) works" >&5
26369 echo $ECHO_N "checking whether gcc __attribute__ ((const)) works... $ECHO_C" >&6
26370 if test "${gmp_cv_c_attribute_const+set}" = set; then
26371 echo $ECHO_N "(cached) $ECHO_C" >&6
26373 cat >conftest.
$ac_ext <<_ACEOF
26376 cat confdefs.h
>>conftest.
$ac_ext
26377 cat >>conftest.
$ac_ext <<_ACEOF
26378 /* end confdefs.h. */
26379 int foo (int x) __attribute__ ((const));
26388 rm -f conftest.
$ac_objext
26389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26390 (eval $ac_compile) 2>conftest.er1
26392 grep -v '^ *+' conftest.er1
>conftest.err
26394 cat conftest.err
>&5
26395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26396 (exit $ac_status); } &&
26397 { ac_try
='test -z "$ac_c_werror_flag"
26398 || test ! -s conftest.err'
26399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26400 (eval $ac_try) 2>&5
26402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26403 (exit $ac_status); }; } &&
26404 { ac_try
='test -s conftest.$ac_objext'
26405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26406 (eval $ac_try) 2>&5
26408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26409 (exit $ac_status); }; }; then
26410 gmp_cv_c_attribute_const
=yes
26412 echo "$as_me: failed program was:" >&5
26413 sed 's/^/| /' conftest.
$ac_ext >&5
26415 gmp_cv_c_attribute_const
=no
26417 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
26420 echo "$as_me:$LINENO: result: $gmp_cv_c_attribute_const" >&5
26421 echo "${ECHO_T}$gmp_cv_c_attribute_const" >&6
26422 if test $gmp_cv_c_attribute_const = yes; then
26424 cat >>confdefs.h
<<\_ACEOF
26425 #define HAVE_ATTRIBUTE_CONST 1
26430 echo "$as_me:$LINENO: checking whether gcc __attribute__ ((malloc)) works" >&5
26431 echo $ECHO_N "checking whether gcc __attribute__ ((malloc)) works... $ECHO_C" >&6
26432 if test "${gmp_cv_c_attribute_malloc+set}" = set; then
26433 echo $ECHO_N "(cached) $ECHO_C" >&6
26435 cat >conftest.c
<<EOF
26436 void *foo (int x) __attribute__ ((malloc));
26438 gmp_compile
="$CC $CFLAGS $CPPFLAGS -c conftest.c >conftest.out 2>&1"
26439 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
26440 (eval $gmp_compile) 2>&5
26442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26443 (exit $ac_status); }; then
26444 if grep "attribute directive ignored" conftest.out
>/dev
/null
; then
26445 gmp_cv_c_attribute_malloc
=no
26447 gmp_cv_c_attribute_malloc
=yes
26450 gmp_cv_c_attribute_malloc
=no
26452 cat conftest.out
>&5
26456 echo "$as_me:$LINENO: result: $gmp_cv_c_attribute_malloc" >&5
26457 echo "${ECHO_T}$gmp_cv_c_attribute_malloc" >&6
26458 if test $gmp_cv_c_attribute_malloc = yes; then
26460 cat >>confdefs.h
<<\_ACEOF
26461 #define HAVE_ATTRIBUTE_MALLOC 1
26466 echo "$as_me:$LINENO: checking whether gcc __attribute__ ((mode (XX))) works" >&5
26467 echo $ECHO_N "checking whether gcc __attribute__ ((mode (XX))) works... $ECHO_C" >&6
26468 if test "${gmp_cv_c_attribute_mode+set}" = set; then
26469 echo $ECHO_N "(cached) $ECHO_C" >&6
26471 cat >conftest.
$ac_ext <<_ACEOF
26474 cat confdefs.h
>>conftest.
$ac_ext
26475 cat >>conftest.
$ac_ext <<_ACEOF
26476 /* end confdefs.h. */
26477 typedef int SItype __attribute__ ((mode (SI)));
26486 rm -f conftest.
$ac_objext
26487 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26488 (eval $ac_compile) 2>conftest.er1
26490 grep -v '^ *+' conftest.er1
>conftest.err
26492 cat conftest.err
>&5
26493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26494 (exit $ac_status); } &&
26495 { ac_try
='test -z "$ac_c_werror_flag"
26496 || test ! -s conftest.err'
26497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26498 (eval $ac_try) 2>&5
26500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26501 (exit $ac_status); }; } &&
26502 { ac_try
='test -s conftest.$ac_objext'
26503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26504 (eval $ac_try) 2>&5
26506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26507 (exit $ac_status); }; }; then
26508 gmp_cv_c_attribute_mode
=yes
26510 echo "$as_me: failed program was:" >&5
26511 sed 's/^/| /' conftest.
$ac_ext >&5
26513 gmp_cv_c_attribute_mode
=no
26515 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
26518 echo "$as_me:$LINENO: result: $gmp_cv_c_attribute_mode" >&5
26519 echo "${ECHO_T}$gmp_cv_c_attribute_mode" >&6
26520 if test $gmp_cv_c_attribute_mode = yes; then
26522 cat >>confdefs.h
<<\_ACEOF
26523 #define HAVE_ATTRIBUTE_MODE 1
26528 echo "$as_me:$LINENO: checking whether gcc __attribute__ ((noreturn)) works" >&5
26529 echo $ECHO_N "checking whether gcc __attribute__ ((noreturn)) works... $ECHO_C" >&6
26530 if test "${gmp_cv_c_attribute_noreturn+set}" = set; then
26531 echo $ECHO_N "(cached) $ECHO_C" >&6
26533 cat >conftest.
$ac_ext <<_ACEOF
26536 cat confdefs.h
>>conftest.
$ac_ext
26537 cat >>conftest.
$ac_ext <<_ACEOF
26538 /* end confdefs.h. */
26539 void foo (int x) __attribute__ ((noreturn));
26548 rm -f conftest.
$ac_objext
26549 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26550 (eval $ac_compile) 2>conftest.er1
26552 grep -v '^ *+' conftest.er1
>conftest.err
26554 cat conftest.err
>&5
26555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26556 (exit $ac_status); } &&
26557 { ac_try
='test -z "$ac_c_werror_flag"
26558 || test ! -s conftest.err'
26559 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26560 (eval $ac_try) 2>&5
26562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26563 (exit $ac_status); }; } &&
26564 { ac_try
='test -s conftest.$ac_objext'
26565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26566 (eval $ac_try) 2>&5
26568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26569 (exit $ac_status); }; }; then
26570 gmp_cv_c_attribute_noreturn
=yes
26572 echo "$as_me: failed program was:" >&5
26573 sed 's/^/| /' conftest.
$ac_ext >&5
26575 gmp_cv_c_attribute_noreturn
=no
26577 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
26580 echo "$as_me:$LINENO: result: $gmp_cv_c_attribute_noreturn" >&5
26581 echo "${ECHO_T}$gmp_cv_c_attribute_noreturn" >&6
26582 if test $gmp_cv_c_attribute_noreturn = yes; then
26584 cat >>confdefs.h
<<\_ACEOF
26585 #define HAVE_ATTRIBUTE_NORETURN 1
26591 echo "$as_me:$LINENO: checking for inline" >&5
26592 echo $ECHO_N "checking for inline... $ECHO_C" >&6
26593 if test "${ac_cv_c_inline+set}" = set; then
26594 echo $ECHO_N "(cached) $ECHO_C" >&6
26597 for ac_kw
in inline __inline__ __inline
; do
26598 cat >conftest.
$ac_ext <<_ACEOF
26601 cat confdefs.h
>>conftest.
$ac_ext
26602 cat >>conftest.
$ac_ext <<_ACEOF
26603 /* end confdefs.h. */
26604 #ifndef __cplusplus
26606 static $ac_kw foo_t static_foo () {return 0; }
26607 $ac_kw foo_t foo () {return 0; }
26611 rm -f conftest.
$ac_objext
26612 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26613 (eval $ac_compile) 2>conftest.er1
26615 grep -v '^ *+' conftest.er1
>conftest.err
26617 cat conftest.err
>&5
26618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26619 (exit $ac_status); } &&
26620 { ac_try
='test -z "$ac_c_werror_flag"
26621 || test ! -s conftest.err'
26622 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26623 (eval $ac_try) 2>&5
26625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26626 (exit $ac_status); }; } &&
26627 { ac_try
='test -s conftest.$ac_objext'
26628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26629 (eval $ac_try) 2>&5
26631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26632 (exit $ac_status); }; }; then
26633 ac_cv_c_inline
=$ac_kw; break
26635 echo "$as_me: failed program was:" >&5
26636 sed 's/^/| /' conftest.
$ac_ext >&5
26639 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
26643 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
26644 echo "${ECHO_T}$ac_cv_c_inline" >&6
26647 case $ac_cv_c_inline in
26650 case $ac_cv_c_inline in
26652 *) ac_val
=$ac_cv_c_inline;;
26654 cat >>confdefs.h
<<_ACEOF
26655 #ifndef __cplusplus
26656 #define inline $ac_val
26663 case $ac_cv_c_inline in
26666 cat >conftest.
$ac_ext <<_ACEOF
26669 cat confdefs.h
>>conftest.
$ac_ext
26670 cat >>conftest.
$ac_ext <<_ACEOF
26671 /* end confdefs.h. */
26672 #define __GMP_WITHIN_CONFIGURE_INLINE 1
26673 #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
26674 #define GMP_NAIL_BITS $GMP_NAIL_BITS
26675 #define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */
26676 #define GMP_LIMB_BITS 123
26677 $DEFN_LONG_LONG_LIMB
26678 #include "$srcdir/gmp-h.in"
26680 #ifndef __GMP_EXTERN_INLINE
26692 rm -f conftest.
$ac_objext
26693 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26694 (eval $ac_compile) 2>conftest.er1
26696 grep -v '^ *+' conftest.er1
>conftest.err
26698 cat conftest.err
>&5
26699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26700 (exit $ac_status); } &&
26701 { ac_try
='test -z "$ac_c_werror_flag"
26702 || test ! -s conftest.err'
26703 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26704 (eval $ac_try) 2>&5
26706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26707 (exit $ac_status); }; } &&
26708 { ac_try
='test -s conftest.$ac_objext'
26709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26710 (eval $ac_try) 2>&5
26712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26713 (exit $ac_status); }; }; then
26716 echo "$as_me: failed program was:" >&5
26717 sed 's/^/| /' conftest.
$ac_ext >&5
26719 case $ac_cv_c_inline in
26720 yes) tmp_inline
=inline
;;
26721 *) tmp_inline
=$ac_cv_c_inline ;;
26723 { echo "$as_me:$LINENO: WARNING: gmp.h doesnt recognise compiler \"$tmp_inline\", inlines will be unavailable" >&5
26724 echo "$as_me: WARNING: gmp.h doesnt recognise compiler \"$tmp_inline\", inlines will be unavailable" >&2;}
26726 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
26734 *-*-beos* |
*-*-cygwin* |
*-*-pw32* |
*-*-darwin*)
26735 # These system don't have libm, or don't need it
26738 echo "$as_me:$LINENO: checking for _mwvalidcheckl in -lmw" >&5
26739 echo $ECHO_N "checking for _mwvalidcheckl in -lmw... $ECHO_C" >&6
26740 if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then
26741 echo $ECHO_N "(cached) $ECHO_C" >&6
26743 ac_check_lib_save_LIBS
=$LIBS
26745 cat >conftest.
$ac_ext <<_ACEOF
26748 cat confdefs.h
>>conftest.
$ac_ext
26749 cat >>conftest.
$ac_ext <<_ACEOF
26750 /* end confdefs.h. */
26752 /* Override any gcc2 internal prototype to avoid an error. */
26756 /* We use char because int might match the return type of a gcc2
26757 builtin and then its argument prototype would still apply. */
26758 char _mwvalidcheckl ();
26767 rm -f conftest.
$ac_objext conftest
$ac_exeext
26768 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26769 (eval $ac_link) 2>conftest.er1
26771 grep -v '^ *+' conftest.er1
>conftest.err
26773 cat conftest.err
>&5
26774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26775 (exit $ac_status); } &&
26776 { ac_try
='test -z "$ac_c_werror_flag"
26777 || test ! -s conftest.err'
26778 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26779 (eval $ac_try) 2>&5
26781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26782 (exit $ac_status); }; } &&
26783 { ac_try
='test -s conftest$ac_exeext'
26784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26785 (eval $ac_try) 2>&5
26787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26788 (exit $ac_status); }; }; then
26789 ac_cv_lib_mw__mwvalidcheckl
=yes
26791 echo "$as_me: failed program was:" >&5
26792 sed 's/^/| /' conftest.
$ac_ext >&5
26794 ac_cv_lib_mw__mwvalidcheckl
=no
26796 rm -f conftest.err conftest.
$ac_objext \
26797 conftest
$ac_exeext conftest.
$ac_ext
26798 LIBS
=$ac_check_lib_save_LIBS
26800 echo "$as_me:$LINENO: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
26801 echo "${ECHO_T}$ac_cv_lib_mw__mwvalidcheckl" >&6
26802 if test $ac_cv_lib_mw__mwvalidcheckl = yes; then
26806 echo "$as_me:$LINENO: checking for cos in -lm" >&5
26807 echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
26808 if test "${ac_cv_lib_m_cos+set}" = set; then
26809 echo $ECHO_N "(cached) $ECHO_C" >&6
26811 ac_check_lib_save_LIBS
=$LIBS
26813 cat >conftest.
$ac_ext <<_ACEOF
26816 cat confdefs.h
>>conftest.
$ac_ext
26817 cat >>conftest.
$ac_ext <<_ACEOF
26818 /* end confdefs.h. */
26820 /* Override any gcc2 internal prototype to avoid an error. */
26824 /* We use char because int might match the return type of a gcc2
26825 builtin and then its argument prototype would still apply. */
26835 rm -f conftest.
$ac_objext conftest
$ac_exeext
26836 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26837 (eval $ac_link) 2>conftest.er1
26839 grep -v '^ *+' conftest.er1
>conftest.err
26841 cat conftest.err
>&5
26842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26843 (exit $ac_status); } &&
26844 { ac_try
='test -z "$ac_c_werror_flag"
26845 || test ! -s conftest.err'
26846 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26847 (eval $ac_try) 2>&5
26849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26850 (exit $ac_status); }; } &&
26851 { ac_try
='test -s conftest$ac_exeext'
26852 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26853 (eval $ac_try) 2>&5
26855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26856 (exit $ac_status); }; }; then
26857 ac_cv_lib_m_cos
=yes
26859 echo "$as_me: failed program was:" >&5
26860 sed 's/^/| /' conftest.
$ac_ext >&5
26864 rm -f conftest.err conftest.
$ac_objext \
26865 conftest
$ac_exeext conftest.
$ac_ext
26866 LIBS
=$ac_check_lib_save_LIBS
26868 echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
26869 echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
26870 if test $ac_cv_lib_m_cos = yes; then
26876 echo "$as_me:$LINENO: checking for cos in -lm" >&5
26877 echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
26878 if test "${ac_cv_lib_m_cos+set}" = set; then
26879 echo $ECHO_N "(cached) $ECHO_C" >&6
26881 ac_check_lib_save_LIBS
=$LIBS
26883 cat >conftest.
$ac_ext <<_ACEOF
26886 cat confdefs.h
>>conftest.
$ac_ext
26887 cat >>conftest.
$ac_ext <<_ACEOF
26888 /* end confdefs.h. */
26890 /* Override any gcc2 internal prototype to avoid an error. */
26894 /* We use char because int might match the return type of a gcc2
26895 builtin and then its argument prototype would still apply. */
26905 rm -f conftest.
$ac_objext conftest
$ac_exeext
26906 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26907 (eval $ac_link) 2>conftest.er1
26909 grep -v '^ *+' conftest.er1
>conftest.err
26911 cat conftest.err
>&5
26912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26913 (exit $ac_status); } &&
26914 { ac_try
='test -z "$ac_c_werror_flag"
26915 || test ! -s conftest.err'
26916 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26917 (eval $ac_try) 2>&5
26919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26920 (exit $ac_status); }; } &&
26921 { ac_try
='test -s conftest$ac_exeext'
26922 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26923 (eval $ac_try) 2>&5
26925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26926 (exit $ac_status); }; }; then
26927 ac_cv_lib_m_cos
=yes
26929 echo "$as_me: failed program was:" >&5
26930 sed 's/^/| /' conftest.
$ac_ext >&5
26934 rm -f conftest.err conftest.
$ac_objext \
26935 conftest
$ac_exeext conftest.
$ac_ext
26936 LIBS
=$ac_check_lib_save_LIBS
26938 echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
26939 echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
26940 if test $ac_cv_lib_m_cos = yes; then
26949 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
26950 # for constant arguments. Useless!
26951 echo "$as_me:$LINENO: checking for working alloca.h" >&5
26952 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
26953 if test "${gmp_cv_header_alloca+set}" = set; then
26954 echo $ECHO_N "(cached) $ECHO_C" >&6
26956 cat >conftest.
$ac_ext <<_ACEOF
26959 cat confdefs.h
>>conftest.
$ac_ext
26960 cat >>conftest.
$ac_ext <<_ACEOF
26961 /* end confdefs.h. */
26962 #include <alloca.h>
26966 char *p = (char *) alloca (2 * sizeof (int));
26971 rm -f conftest.
$ac_objext conftest
$ac_exeext
26972 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26973 (eval $ac_link) 2>conftest.er1
26975 grep -v '^ *+' conftest.er1
>conftest.err
26977 cat conftest.err
>&5
26978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26979 (exit $ac_status); } &&
26980 { ac_try
='test -z "$ac_c_werror_flag"
26981 || test ! -s conftest.err'
26982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26983 (eval $ac_try) 2>&5
26985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26986 (exit $ac_status); }; } &&
26987 { ac_try
='test -s conftest$ac_exeext'
26988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26989 (eval $ac_try) 2>&5
26991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26992 (exit $ac_status); }; }; then
26993 gmp_cv_header_alloca
=yes
26995 echo "$as_me: failed program was:" >&5
26996 sed 's/^/| /' conftest.
$ac_ext >&5
26998 gmp_cv_header_alloca
=no
27000 rm -f conftest.err conftest.
$ac_objext \
27001 conftest
$ac_exeext conftest.
$ac_ext
27003 echo "$as_me:$LINENO: result: $gmp_cv_header_alloca" >&5
27004 echo "${ECHO_T}$gmp_cv_header_alloca" >&6
27005 if test $gmp_cv_header_alloca = yes; then
27007 cat >>confdefs.h
<<\_ACEOF
27008 #define HAVE_ALLOCA_H 1
27014 echo "$as_me:$LINENO: checking for alloca (via gmp-impl.h)" >&5
27015 echo $ECHO_N "checking for alloca (via gmp-impl.h)... $ECHO_C" >&6
27016 if test "${gmp_cv_func_alloca+set}" = set; then
27017 echo $ECHO_N "(cached) $ECHO_C" >&6
27019 cat >conftest.
$ac_ext <<_ACEOF
27022 cat confdefs.h
>>conftest.
$ac_ext
27023 cat >>conftest.
$ac_ext <<_ACEOF
27024 /* end confdefs.h. */
27025 #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
27026 #define GMP_NAIL_BITS $GMP_NAIL_BITS
27027 #define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */
27028 #define GMP_LIMB_BITS 123
27029 $DEFN_LONG_LONG_LIMB
27030 #include "$srcdir/gmp-h.in"
27032 #include "$srcdir/gmp-impl.h"
27037 char *p = (char *) alloca (1);
27042 rm -f conftest.
$ac_objext conftest
$ac_exeext
27043 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27044 (eval $ac_link) 2>conftest.er1
27046 grep -v '^ *+' conftest.er1
>conftest.err
27048 cat conftest.err
>&5
27049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27050 (exit $ac_status); } &&
27051 { ac_try
='test -z "$ac_c_werror_flag"
27052 || test ! -s conftest.err'
27053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27054 (eval $ac_try) 2>&5
27056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27057 (exit $ac_status); }; } &&
27058 { ac_try
='test -s conftest$ac_exeext'
27059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27060 (eval $ac_try) 2>&5
27062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27063 (exit $ac_status); }; }; then
27064 gmp_cv_func_alloca
=yes
27066 echo "$as_me: failed program was:" >&5
27067 sed 's/^/| /' conftest.
$ac_ext >&5
27069 gmp_cv_func_alloca
=no
27071 rm -f conftest.err conftest.
$ac_objext \
27072 conftest
$ac_exeext conftest.
$ac_ext
27074 echo "$as_me:$LINENO: result: $gmp_cv_func_alloca" >&5
27075 echo "${ECHO_T}$gmp_cv_func_alloca" >&6
27076 if test $gmp_cv_func_alloca = yes; then
27078 cat >>confdefs.h
<<\_ACEOF
27079 #define HAVE_ALLOCA 1
27085 echo "$as_me:$LINENO: checking how to allocate temporary memory" >&5
27086 echo $ECHO_N "checking how to allocate temporary memory... $ECHO_C" >&6
27087 if test "${gmp_cv_option_alloca+set}" = set; then
27088 echo $ECHO_N "(cached) $ECHO_C" >&6
27090 case $enable_alloca in
27092 gmp_cv_option_alloca
=alloca
27095 gmp_cv_option_alloca
=malloc-reentrant
27097 reentrant | notreentrant
)
27098 case $gmp_cv_func_alloca in
27099 yes) gmp_cv_option_alloca
=alloca
;;
27100 *) gmp_cv_option_alloca
=malloc-
$enable_alloca ;;
27104 gmp_cv_option_alloca
=$enable_alloca
27109 echo "$as_me:$LINENO: result: $gmp_cv_option_alloca" >&5
27110 echo "${ECHO_T}$gmp_cv_option_alloca" >&6
27115 case $gmp_cv_option_alloca in
27117 if test $gmp_cv_func_alloca = no
; then
27118 { { echo "$as_me:$LINENO: error: --enable-alloca=alloca specified, but alloca not available" >&5
27119 echo "$as_me: error: --enable-alloca=alloca specified, but alloca not available" >&2;}
27120 { (exit 1); exit 1; }; }
27122 cat >>confdefs.h
<<\_ACEOF
27123 #define WANT_TMP_ALLOCA 1
27126 TAL_OBJECT
=tal-reent
$U.lo
27129 cat >>confdefs.h
<<\_ACEOF
27130 #define WANT_TMP_REENTRANT 1
27133 TAL_OBJECT
=tal-reent
$U.lo
27135 malloc-notreentrant
)
27136 cat >>confdefs.h
<<\_ACEOF
27137 #define WANT_TMP_NOTREENTRANT 1
27140 TAL_OBJECT
=tal-notreent
$U.lo
27143 cat >>confdefs.h
<<\_ACEOF
27144 #define WANT_TMP_DEBUG 1
27147 TAL_OBJECT
=tal-debug
$U.lo
27150 # checks at the start of configure.in should protect us
27151 { { echo "$as_me:$LINENO: error: unrecognised --enable-alloca=$gmp_cv_option_alloca" >&5
27152 echo "$as_me: error: unrecognised --enable-alloca=$gmp_cv_option_alloca" >&2;}
27153 { (exit 1); exit 1; }; }
27159 cat >conftest.
$ac_ext <<_ACEOF
27162 cat confdefs.h
>>conftest.
$ac_ext
27163 cat >>conftest.
$ac_ext <<_ACEOF
27164 /* end confdefs.h. */
27166 #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
27167 #define GMP_NAIL_BITS $GMP_NAIL_BITS
27168 #define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */
27169 #define GMP_LIMB_BITS 123
27170 $DEFN_LONG_LONG_LIMB
27171 #include "$srcdir/gmp-h.in"
27173 #if ! _GMP_H_HAVE_FILE
27185 rm -f conftest.
$ac_objext
27186 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27187 (eval $ac_compile) 2>conftest.er1
27189 grep -v '^ *+' conftest.er1
>conftest.err
27191 cat conftest.err
>&5
27192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27193 (exit $ac_status); } &&
27194 { ac_try
='test -z "$ac_c_werror_flag"
27195 || test ! -s conftest.err'
27196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27197 (eval $ac_try) 2>&5
27199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27200 (exit $ac_status); }; } &&
27201 { ac_try
='test -s conftest.$ac_objext'
27202 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27203 (eval $ac_try) 2>&5
27205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27206 (exit $ac_status); }; }; then
27209 echo "$as_me: failed program was:" >&5
27210 sed 's/^/| /' conftest.
$ac_ext >&5
27212 { echo "$as_me:$LINENO: WARNING: gmp.h doesnt recognise <stdio.h>, FILE prototypes will be unavailable" >&5
27213 echo "$as_me: WARNING: gmp.h doesnt recognise <stdio.h>, FILE prototypes will be unavailable" >&2;}
27215 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
27218 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
27219 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
27220 if test "${ac_cv_c_bigendian+set}" = set; then
27221 echo $ECHO_N "(cached) $ECHO_C" >&6
27223 # See if sys/param.h defines the BYTE_ORDER macro.
27224 cat >conftest.
$ac_ext <<_ACEOF
27227 cat confdefs.h
>>conftest.
$ac_ext
27228 cat >>conftest.
$ac_ext <<_ACEOF
27229 /* end confdefs.h. */
27230 #include <sys/types.h>
27231 #include <sys/param.h>
27236 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
27237 bogus endian macros
27244 rm -f conftest.
$ac_objext
27245 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27246 (eval $ac_compile) 2>conftest.er1
27248 grep -v '^ *+' conftest.er1
>conftest.err
27250 cat conftest.err
>&5
27251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27252 (exit $ac_status); } &&
27253 { ac_try
='test -z "$ac_c_werror_flag"
27254 || test ! -s conftest.err'
27255 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27256 (eval $ac_try) 2>&5
27258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27259 (exit $ac_status); }; } &&
27260 { ac_try
='test -s conftest.$ac_objext'
27261 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27262 (eval $ac_try) 2>&5
27264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27265 (exit $ac_status); }; }; then
27266 # It does; now see whether it defined to BIG_ENDIAN or not.
27267 cat >conftest.
$ac_ext <<_ACEOF
27270 cat confdefs.h
>>conftest.
$ac_ext
27271 cat >>conftest.
$ac_ext <<_ACEOF
27272 /* end confdefs.h. */
27273 #include <sys/types.h>
27274 #include <sys/param.h>
27279 #if BYTE_ORDER != BIG_ENDIAN
27287 rm -f conftest.
$ac_objext
27288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27289 (eval $ac_compile) 2>conftest.er1
27291 grep -v '^ *+' conftest.er1
>conftest.err
27293 cat conftest.err
>&5
27294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27295 (exit $ac_status); } &&
27296 { ac_try
='test -z "$ac_c_werror_flag"
27297 || test ! -s conftest.err'
27298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27299 (eval $ac_try) 2>&5
27301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27302 (exit $ac_status); }; } &&
27303 { ac_try
='test -s conftest.$ac_objext'
27304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27305 (eval $ac_try) 2>&5
27307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27308 (exit $ac_status); }; }; then
27309 ac_cv_c_bigendian
=yes
27311 echo "$as_me: failed program was:" >&5
27312 sed 's/^/| /' conftest.
$ac_ext >&5
27314 ac_cv_c_bigendian
=no
27316 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
27318 echo "$as_me: failed program was:" >&5
27319 sed 's/^/| /' conftest.
$ac_ext >&5
27321 # It does not; compile a test program.
27322 if test "$cross_compiling" = yes; then
27323 # try to guess the endianness by grepping values into an object file
27324 ac_cv_c_bigendian
=unknown
27325 cat >conftest.
$ac_ext <<_ACEOF
27328 cat confdefs.h
>>conftest.
$ac_ext
27329 cat >>conftest.
$ac_ext <<_ACEOF
27330 /* end confdefs.h. */
27331 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
27332 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
27333 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
27334 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
27335 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
27336 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
27340 _ascii (); _ebcdic ();
27345 rm -f conftest.
$ac_objext
27346 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27347 (eval $ac_compile) 2>conftest.er1
27349 grep -v '^ *+' conftest.er1
>conftest.err
27351 cat conftest.err
>&5
27352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27353 (exit $ac_status); } &&
27354 { ac_try
='test -z "$ac_c_werror_flag"
27355 || test ! -s conftest.err'
27356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27357 (eval $ac_try) 2>&5
27359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27360 (exit $ac_status); }; } &&
27361 { ac_try
='test -s conftest.$ac_objext'
27362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27363 (eval $ac_try) 2>&5
27365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27366 (exit $ac_status); }; }; then
27367 if grep BIGenDianSyS conftest.
$ac_objext >/dev
/null
; then
27368 ac_cv_c_bigendian
=yes
27370 if grep LiTTleEnDian conftest.
$ac_objext >/dev
/null
; then
27371 if test "$ac_cv_c_bigendian" = unknown
; then
27372 ac_cv_c_bigendian
=no
27374 # finding both strings is unlikely to happen, but who knows?
27375 ac_cv_c_bigendian
=unknown
27379 echo "$as_me: failed program was:" >&5
27380 sed 's/^/| /' conftest.
$ac_ext >&5
27383 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
27385 cat >conftest.
$ac_ext <<_ACEOF
27388 cat confdefs.h
>>conftest.
$ac_ext
27389 cat >>conftest.
$ac_ext <<_ACEOF
27390 /* end confdefs.h. */
27394 /* Are we little or big endian? From Harbison&Steele. */
27398 char c[sizeof (long)];
27401 exit (u.c[sizeof (long) - 1] == 1);
27404 rm -f conftest
$ac_exeext
27405 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27406 (eval $ac_link) 2>&5
27408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27409 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
27410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27411 (eval $ac_try) 2>&5
27413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27414 (exit $ac_status); }; }; then
27415 ac_cv_c_bigendian
=no
27417 echo "$as_me: program exited with status $ac_status" >&5
27418 echo "$as_me: failed program was:" >&5
27419 sed 's/^/| /' conftest.
$ac_ext >&5
27421 ( exit $ac_status )
27422 ac_cv_c_bigendian
=yes
27424 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
27427 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
27429 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
27430 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
27431 case $ac_cv_c_bigendian in
27433 cat >>confdefs.h
<<\_ACEOF
27434 #define HAVE_LIMB_BIG_ENDIAN 1
27438 echo "define_not_for_expansion(\`HAVE_LIMB_BIG_ENDIAN')" >> $gmp_tmpconfigm4p
27441 cat >>confdefs.h
<<\_ACEOF
27442 #define HAVE_LIMB_LITTLE_ENDIAN 1
27446 echo "define_not_for_expansion(\`HAVE_LIMB_LITTLE_ENDIAN')" >> $gmp_tmpconfigm4p
27458 echo "$as_me:$LINENO: checking format of \`double' floating point" >&5
27459 echo $ECHO_N "checking format of \`double' floating point... $ECHO_C" >&6
27460 if test "${gmp_cv_c_double_format+set}" = set; then
27461 echo $ECHO_N "(cached) $ECHO_C" >&6
27463 gmp_cv_c_double_format
=unknown
27464 cat >conftest.c
<<\EOF
27470 { '\001', '\043', '\105', '\147', '\211', '\253', '\315', '\357' },
27472 { '\376', '\334', '\272', '\230', '\166', '\124', '\062', '\020' },
27475 gmp_compile
="$CC $CFLAGS $CPPFLAGS -c conftest.c >&5 2>&1"
27476 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
27477 (eval $gmp_compile) 2>&5
27479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27480 (exit $ac_status); }; then
27481 cat >conftest.
awk <<\EOF
27488 for (f
= 2; f
<= NF
; f
++)
27490 for (i
= 0; i
< 23; i
++)
27494 # match the special begin and end sequences
27495 if (got
[0] != "001") continue
27496 if (got
[1] != "043") continue
27497 if (got
[2] != "105") continue
27498 if (got
[3] != "147") continue
27499 if (got
[4] != "211") continue
27500 if (got
[5] != "253") continue
27501 if (got
[6] != "315") continue
27502 if (got
[7] != "357") continue
27503 if (got
[16] != "376") continue
27504 if (got
[17] != "334") continue
27505 if (got
[18] != "272") continue
27506 if (got
[19] != "230") continue
27507 if (got
[20] != "166") continue
27508 if (got
[21] != "124") continue
27509 if (got
[22] != "062") continue
27510 if (got
[23] != "020") continue
27512 saw
= " (" got
[8] " " got
[9] " " got
[10] " " got
[11] " " got
[12] " " got
[13] " " got
[14] " " got
[15] ")"
27514 if (got
[8] == "000" && \
27515 got
[9] == "000" && \
27516 got
[10] == "000" && \
27517 got
[11] == "124" && \
27518 got
[12] == "064" && \
27519 got
[13] == "157" && \
27520 got
[14] == "235" && \
27523 print
"IEEE little endian"
27528 # Little endian with the two 4-byte halves swapped, as used by ARM
27529 # when the chip is in little endian mode.
27531 if (got
[8] == "064" && \
27532 got
[9] == "157" && \
27533 got
[10] == "235" && \
27534 got
[11] == "301" && \
27535 got
[12] == "000" && \
27536 got
[13] == "000" && \
27537 got
[14] == "000" && \
27540 print
"IEEE little endian, swapped halves"
27545 # gcc 2.95.4 on one GNU/Linux ARM system was seen generating 000 in
27546 # the last byte, whereas 124 is correct. Not sure where the bug
27547 # actually lies, but a running program didn't seem to get a full
27548 # mantissa worth of working bits.
27550 # We match this case explicitly so we can give a nice result message,
27551 # but we deliberately exclude it from the normal IEEE double setups
27552 # since it's too broken.
27554 if (got
[8] == "064" && \
27555 got
[9] == "157" && \
27556 got
[10] == "235" && \
27557 got
[11] == "301" && \
27558 got
[12] == "000" && \
27559 got
[13] == "000" && \
27560 got
[14] == "000" && \
27563 print
"bad ARM software floats"
27568 if (got
[8] == "301" && \
27569 got
[9] == "235" && \
27570 got
[10] == "157" && \
27571 got
[11] == "064" && \
27572 got
[12] == "124" && \
27573 got
[13] == "000" && \
27574 got
[14] == "000" && \
27577 print
"IEEE big endian"
27582 if (got
[8] == "353" && \
27583 got
[9] == "315" && \
27584 got
[10] == "242" && \
27585 got
[11] == "171" && \
27586 got
[12] == "000" && \
27587 got
[13] == "240" && \
27588 got
[14] == "000" && \
27596 if (got
[8] == "275" && \
27597 got
[9] == "301" && \
27598 got
[10] == "064" && \
27599 got
[11] == "157" && \
27600 got
[12] == "000" && \
27601 got
[13] == "124" && \
27602 got
[14] == "000" && \
27610 if (got
[8] == "300" && \
27611 got
[9] == "033" && \
27612 got
[10] == "353" && \
27613 got
[11] == "171" && \
27614 got
[12] == "242" && \
27615 got
[13] == "240" && \
27616 got
[14] == "000" && \
27628 print
"unknown", saw
27632 gmp_cv_c_double_format
=`od -b conftest.$OBJEXT | $AWK -f conftest.awk`
27633 case $gmp_cv_c_double_format in
27635 echo "cannot match anything, conftest.$OBJEXT contains" >&5
27636 od -b conftest.
$OBJEXT >&5
27640 { echo "$as_me:$LINENO: WARNING: oops, cannot compile test program" >&5
27641 echo "$as_me: WARNING: oops, cannot compile test program" >&2;}
27646 echo "$as_me:$LINENO: result: $gmp_cv_c_double_format" >&5
27647 echo "${ECHO_T}$gmp_cv_c_double_format" >&6
27652 case $gmp_cv_c_double_format in
27654 cat >>confdefs.h
<<\_ACEOF
27655 #define HAVE_DOUBLE_IEEE_BIG_ENDIAN 1
27659 echo "define_not_for_expansion(\`HAVE_DOUBLE_IEEE_BIG_ENDIAN')" >> $gmp_tmpconfigm4p
27662 "IEEE little endian")
27663 cat >>confdefs.h
<<\_ACEOF
27664 #define HAVE_DOUBLE_IEEE_LITTLE_ENDIAN 1
27668 echo "define_not_for_expansion(\`HAVE_DOUBLE_IEEE_LITTLE_ENDIAN')" >> $gmp_tmpconfigm4p
27671 "IEEE little endian, swapped halves")
27672 cat >>confdefs.h
<<\_ACEOF
27673 #define HAVE_DOUBLE_IEEE_LITTLE_SWAPPED 1
27677 cat >>confdefs.h
<<\_ACEOF
27678 #define HAVE_DOUBLE_VAX_D 1
27682 cat >>confdefs.h
<<\_ACEOF
27683 #define HAVE_DOUBLE_VAX_G 1
27687 cat >>confdefs.h
<<\_ACEOF
27688 #define HAVE_DOUBLE_CRAY_CFP 1
27691 "bad ARM software floats")
27694 { echo "$as_me:$LINENO: WARNING: Could not determine float format." >&5
27695 echo "$as_me: WARNING: Could not determine float format." >&2;}
27696 { echo "$as_me:$LINENO: WARNING: Conversions to and from \"double\" may be slow." >&5
27697 echo "$as_me: WARNING: Conversions to and from \"double\" may be slow." >&2;}
27700 { echo "$as_me:$LINENO: WARNING: oops, unrecognised float format: $gmp_cv_c_double_format" >&5
27701 echo "$as_me: WARNING: oops, unrecognised float format: $gmp_cv_c_double_format" >&2;}
27707 # Reasons for testing:
27708 # alarm - not in mingw
27709 # attr_get - IRIX specific
27710 # clock_gettime - not in glibc 2.2.4, only very recent systems
27711 # cputime - not in glibc
27712 # getsysinfo - OSF specific
27713 # getrusage - not in mingw
27714 # gettimeofday - not in mingw
27715 # mmap - not in mingw, djgpp
27716 # nl_langinfo - X/Open standard only, not in djgpp for instance
27717 # obstack_vprintf - glibc specific
27718 # processor_info - solaris specific
27719 # pstat_getprocessor - HPUX specific (10.x and up)
27720 # raise - an ANSI-ism, though probably almost universal by now
27721 # read_real_time - AIX specific
27722 # sigaction - not in mingw
27723 # sigaltstack - not in mingw, or old AIX (reputedly)
27724 # sigstack - not in mingw
27725 # strerror - not in SunOS
27726 # strnlen - glibc extension (some other systems too)
27727 # syssgi - IRIX specific
27728 # times - not in mingw
27730 # clock_gettime is in librt on *-*-osf5.1. We could look for it
27731 # there, but that's not worth bothering with unless it has a decent
27732 # resolution (in a quick test clock_getres said only 1 millisecond).
27734 # AC_FUNC_STRNLEN is not used because we don't want the AC_LIBOBJ
27735 # replacement setups it gives. It detects a faulty strnlen on AIX, but
27736 # missing out on that test is ok since our only use of strnlen is in
27737 # __gmp_replacement_vsnprintf which is not required on AIX since it has a
27773 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
27775 as_ac_var
=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27776 echo "$as_me:$LINENO: checking for $ac_func" >&5
27777 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27778 if eval "test \"\${$as_ac_var+set}\" = set"; then
27779 echo $ECHO_N "(cached) $ECHO_C" >&6
27781 cat >conftest.
$ac_ext <<_ACEOF
27784 cat confdefs.h
>>conftest.
$ac_ext
27785 cat >>conftest.
$ac_ext <<_ACEOF
27786 /* end confdefs.h. */
27787 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27788 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27789 #define $ac_func innocuous_$ac_func
27791 /* System header to define __stub macros and hopefully few prototypes,
27792 which can conflict with char $ac_func (); below.
27793 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27794 <limits.h> exists even on freestanding compilers. */
27797 # include <limits.h>
27799 # include <assert.h>
27804 /* Override any gcc2 internal prototype to avoid an error. */
27809 /* We use char because int might match the return type of a gcc2
27810 builtin and then its argument prototype would still apply. */
27812 /* The GNU C library defines this for functions which it implements
27813 to always fail with ENOSYS. Some functions are actually named
27814 something starting with __ and the normal name is an alias. */
27815 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27818 char (*f) () = $ac_func;
27827 return f != $ac_func;
27832 rm -f conftest.
$ac_objext conftest
$ac_exeext
27833 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27834 (eval $ac_link) 2>conftest.er1
27836 grep -v '^ *+' conftest.er1
>conftest.err
27838 cat conftest.err
>&5
27839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27840 (exit $ac_status); } &&
27841 { ac_try
='test -z "$ac_c_werror_flag"
27842 || test ! -s conftest.err'
27843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27844 (eval $ac_try) 2>&5
27846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27847 (exit $ac_status); }; } &&
27848 { ac_try
='test -s conftest$ac_exeext'
27849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27850 (eval $ac_try) 2>&5
27852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27853 (exit $ac_status); }; }; then
27854 eval "$as_ac_var=yes"
27856 echo "$as_me: failed program was:" >&5
27857 sed 's/^/| /' conftest.
$ac_ext >&5
27859 eval "$as_ac_var=no"
27861 rm -f conftest.err conftest.
$ac_objext \
27862 conftest
$ac_exeext conftest.
$ac_ext
27864 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27865 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27866 if test `eval echo '${'$as_ac_var'}'` = yes; then
27867 cat >>confdefs.h
<<_ACEOF
27868 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27876 echo "$as_me:$LINENO: checking for vsnprintf" >&5
27877 echo $ECHO_N "checking for vsnprintf... $ECHO_C" >&6
27878 if test "${ac_cv_func_vsnprintf+set}" = set; then
27879 echo $ECHO_N "(cached) $ECHO_C" >&6
27881 cat >conftest.
$ac_ext <<_ACEOF
27884 cat confdefs.h
>>conftest.
$ac_ext
27885 cat >>conftest.
$ac_ext <<_ACEOF
27886 /* end confdefs.h. */
27887 /* Define vsnprintf to an innocuous variant, in case <limits.h> declares vsnprintf.
27888 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27889 #define vsnprintf innocuous_vsnprintf
27891 /* System header to define __stub macros and hopefully few prototypes,
27892 which can conflict with char vsnprintf (); below.
27893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27894 <limits.h> exists even on freestanding compilers. */
27897 # include <limits.h>
27899 # include <assert.h>
27904 /* Override any gcc2 internal prototype to avoid an error. */
27909 /* We use char because int might match the return type of a gcc2
27910 builtin and then its argument prototype would still apply. */
27912 /* The GNU C library defines this for functions which it implements
27913 to always fail with ENOSYS. Some functions are actually named
27914 something starting with __ and the normal name is an alias. */
27915 #if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
27918 char (*f) () = vsnprintf;
27927 return f != vsnprintf;
27932 rm -f conftest.
$ac_objext conftest
$ac_exeext
27933 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27934 (eval $ac_link) 2>conftest.er1
27936 grep -v '^ *+' conftest.er1
>conftest.err
27938 cat conftest.err
>&5
27939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27940 (exit $ac_status); } &&
27941 { ac_try
='test -z "$ac_c_werror_flag"
27942 || test ! -s conftest.err'
27943 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27944 (eval $ac_try) 2>&5
27946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27947 (exit $ac_status); }; } &&
27948 { ac_try
='test -s conftest$ac_exeext'
27949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27950 (eval $ac_try) 2>&5
27952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27953 (exit $ac_status); }; }; then
27954 ac_cv_func_vsnprintf
=yes
27956 echo "$as_me: failed program was:" >&5
27957 sed 's/^/| /' conftest.
$ac_ext >&5
27959 ac_cv_func_vsnprintf
=no
27961 rm -f conftest.err conftest.
$ac_objext \
27962 conftest
$ac_exeext conftest.
$ac_ext
27964 echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf" >&5
27965 echo "${ECHO_T}$ac_cv_func_vsnprintf" >&6
27966 if test $ac_cv_func_vsnprintf = yes; then
27967 gmp_vsnprintf_exists
=yes
27969 gmp_vsnprintf_exists
=no
27972 if test "$gmp_vsnprintf_exists" = no
; then
27973 gmp_cv_func_vsnprintf
=no
27975 echo "$as_me:$LINENO: checking whether vsnprintf works" >&5
27976 echo $ECHO_N "checking whether vsnprintf works... $ECHO_C" >&6
27977 if test "${gmp_cv_func_vsnprintf+set}" = set; then
27978 echo $ECHO_N "(cached) $ECHO_C" >&6
27980 gmp_cv_func_vsnprintf
=yes
27981 for i
in 'check ("hello world");' 'int n; check ("%nhello world", &n);'; do
27982 if test "$cross_compiling" = yes; then
27983 gmp_cv_func_vsnprintf
=probably
; break
27985 cat >conftest.
$ac_ext <<_ACEOF
27988 cat confdefs.h
>>conftest.
$ac_ext
27989 cat >>conftest.
$ac_ext <<_ACEOF
27990 /* end confdefs.h. */
27992 #include <string.h> /* for strcmp */
27993 #include <stdio.h> /* for vsnprintf */
27996 #include <stdarg.h>
27998 #include <varargs.h>
28003 check (const char *fmt, ...)
28009 static char buf[128];
28014 va_start (ap, fmt);
28018 fmt = va_arg (ap, char *);
28021 ret = vsnprintf (buf, 4, fmt, ap);
28023 if (strcmp (buf, "hel") != 0)
28026 /* allowed return values */
28027 if (ret != -1 && ret != 3 && ret != 11)
28041 rm -f conftest
$ac_exeext
28042 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
28043 (eval $ac_link) 2>&5
28045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28046 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
28047 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28048 (eval $ac_try) 2>&5
28050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28051 (exit $ac_status); }; }; then
28054 echo "$as_me: program exited with status $ac_status" >&5
28055 echo "$as_me: failed program was:" >&5
28056 sed 's/^/| /' conftest.
$ac_ext >&5
28058 ( exit $ac_status )
28059 gmp_cv_func_vsnprintf
=no
; break
28061 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
28066 echo "$as_me:$LINENO: result: $gmp_cv_func_vsnprintf" >&5
28067 echo "${ECHO_T}$gmp_cv_func_vsnprintf" >&6
28068 if test "$gmp_cv_func_vsnprintf" = probably
; then
28069 { echo "$as_me:$LINENO: WARNING: cannot check for properly working vsnprintf when cross compiling, will assume it's ok" >&5
28070 echo "$as_me: WARNING: cannot check for properly working vsnprintf when cross compiling, will assume it's ok" >&2;}
28072 if test "$gmp_cv_func_vsnprintf" != no
; then
28074 cat >>confdefs.h
<<\_ACEOF
28075 #define HAVE_VSNPRINTF 1
28081 echo "$as_me:$LINENO: checking whether sscanf needs writable input" >&5
28082 echo $ECHO_N "checking whether sscanf needs writable input... $ECHO_C" >&6
28083 if test "${gmp_cv_func_sscanf_writable_input+set}" = set; then
28084 echo $ECHO_N "(cached) $ECHO_C" >&6
28087 *-*-hpux9 |
*-*-hpux9.
*)
28088 gmp_cv_func_sscanf_writable_input
=yes ;;
28089 *) gmp_cv_func_sscanf_writable_input
=no
;;
28093 echo "$as_me:$LINENO: result: $gmp_cv_func_sscanf_writable_input" >&5
28094 echo "${ECHO_T}$gmp_cv_func_sscanf_writable_input" >&6
28095 case $gmp_cv_func_sscanf_writable_input in
28097 cat >>confdefs.h
<<\_ACEOF
28098 #define SSCANF_WRITABLE_INPUT 1
28102 *) { { echo "$as_me:$LINENO: error: unrecognised \$gmp_cv_func_sscanf_writable_input" >&5
28103 echo "$as_me: error: unrecognised \$gmp_cv_func_sscanf_writable_input" >&2;}
28104 { (exit 1); exit 1; }; } ;;
28108 # Reasons for checking:
28109 # pst_processor psp_iticksperclktick - not in hpux 9
28111 echo "$as_me:$LINENO: checking for struct pst_processor.psp_iticksperclktick" >&5
28112 echo $ECHO_N "checking for struct pst_processor.psp_iticksperclktick... $ECHO_C" >&6
28113 if test "${ac_cv_member_struct_pst_processor_psp_iticksperclktick+set}" = set; then
28114 echo $ECHO_N "(cached) $ECHO_C" >&6
28116 cat >conftest.
$ac_ext <<_ACEOF
28119 cat confdefs.h
>>conftest.
$ac_ext
28120 cat >>conftest.
$ac_ext <<_ACEOF
28121 /* end confdefs.h. */
28122 #include <sys/pstat.h>
28127 static struct pst_processor ac_aggr;
28128 if (ac_aggr.psp_iticksperclktick)
28134 rm -f conftest.
$ac_objext
28135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28136 (eval $ac_compile) 2>conftest.er1
28138 grep -v '^ *+' conftest.er1
>conftest.err
28140 cat conftest.err
>&5
28141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28142 (exit $ac_status); } &&
28143 { ac_try
='test -z "$ac_c_werror_flag"
28144 || test ! -s conftest.err'
28145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28146 (eval $ac_try) 2>&5
28148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28149 (exit $ac_status); }; } &&
28150 { ac_try
='test -s conftest.$ac_objext'
28151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28152 (eval $ac_try) 2>&5
28154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28155 (exit $ac_status); }; }; then
28156 ac_cv_member_struct_pst_processor_psp_iticksperclktick
=yes
28158 echo "$as_me: failed program was:" >&5
28159 sed 's/^/| /' conftest.
$ac_ext >&5
28161 cat >conftest.
$ac_ext <<_ACEOF
28164 cat confdefs.h
>>conftest.
$ac_ext
28165 cat >>conftest.
$ac_ext <<_ACEOF
28166 /* end confdefs.h. */
28167 #include <sys/pstat.h>
28172 static struct pst_processor ac_aggr;
28173 if (sizeof ac_aggr.psp_iticksperclktick)
28179 rm -f conftest.
$ac_objext
28180 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28181 (eval $ac_compile) 2>conftest.er1
28183 grep -v '^ *+' conftest.er1
>conftest.err
28185 cat conftest.err
>&5
28186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28187 (exit $ac_status); } &&
28188 { ac_try
='test -z "$ac_c_werror_flag"
28189 || test ! -s conftest.err'
28190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28191 (eval $ac_try) 2>&5
28193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28194 (exit $ac_status); }; } &&
28195 { ac_try
='test -s conftest.$ac_objext'
28196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28197 (eval $ac_try) 2>&5
28199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28200 (exit $ac_status); }; }; then
28201 ac_cv_member_struct_pst_processor_psp_iticksperclktick
=yes
28203 echo "$as_me: failed program was:" >&5
28204 sed 's/^/| /' conftest.
$ac_ext >&5
28206 ac_cv_member_struct_pst_processor_psp_iticksperclktick
=no
28208 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
28210 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
28212 echo "$as_me:$LINENO: result: $ac_cv_member_struct_pst_processor_psp_iticksperclktick" >&5
28213 echo "${ECHO_T}$ac_cv_member_struct_pst_processor_psp_iticksperclktick" >&6
28214 if test $ac_cv_member_struct_pst_processor_psp_iticksperclktick = yes; then
28216 cat >>confdefs.h
<<\_ACEOF
28217 #define HAVE_PSP_ITICKSPERCLKTICK 1
28223 # C++ tests, when required
28225 if test $enable_cxx = yes; then
28227 ac_cpp
='$CXXCPP $CPPFLAGS'
28228 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28229 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28230 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
28233 # Reasons for testing:
28234 # <sstream> - not in g++ 2.95.2
28235 # std::locale - not in g++ 2.95.4
28239 for ac_header
in sstream
28241 as_ac_Header
=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28242 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28243 echo "$as_me:$LINENO: checking for $ac_header" >&5
28244 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28245 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28246 echo $ECHO_N "(cached) $ECHO_C" >&6
28248 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28249 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28251 # Is the header compilable?
28252 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28253 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28254 cat >conftest.
$ac_ext <<_ACEOF
28257 cat confdefs.h
>>conftest.
$ac_ext
28258 cat >>conftest.
$ac_ext <<_ACEOF
28259 /* end confdefs.h. */
28260 $ac_includes_default
28261 #include <$ac_header>
28263 rm -f conftest.
$ac_objext
28264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28265 (eval $ac_compile) 2>conftest.er1
28267 grep -v '^ *+' conftest.er1
>conftest.err
28269 cat conftest.err
>&5
28270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28271 (exit $ac_status); } &&
28272 { ac_try
='test -z "$ac_cxx_werror_flag"
28273 || test ! -s conftest.err'
28274 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28275 (eval $ac_try) 2>&5
28277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28278 (exit $ac_status); }; } &&
28279 { ac_try
='test -s conftest.$ac_objext'
28280 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28281 (eval $ac_try) 2>&5
28283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28284 (exit $ac_status); }; }; then
28285 ac_header_compiler
=yes
28287 echo "$as_me: failed program was:" >&5
28288 sed 's/^/| /' conftest.
$ac_ext >&5
28290 ac_header_compiler
=no
28292 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
28293 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28294 echo "${ECHO_T}$ac_header_compiler" >&6
28296 # Is the header present?
28297 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28298 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28299 cat >conftest.
$ac_ext <<_ACEOF
28302 cat confdefs.h
>>conftest.
$ac_ext
28303 cat >>conftest.
$ac_ext <<_ACEOF
28304 /* end confdefs.h. */
28305 #include <$ac_header>
28307 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28308 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
28310 grep -v '^ *+' conftest.er1
>conftest.err
28312 cat conftest.err
>&5
28313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28314 (exit $ac_status); } >/dev
/null
; then
28315 if test -s conftest.err
; then
28316 ac_cpp_err
=$ac_cxx_preproc_warn_flag
28317 ac_cpp_err
=$ac_cpp_err$ac_cxx_werror_flag
28324 if test -z "$ac_cpp_err"; then
28325 ac_header_preproc
=yes
28327 echo "$as_me: failed program was:" >&5
28328 sed 's/^/| /' conftest.
$ac_ext >&5
28330 ac_header_preproc
=no
28332 rm -f conftest.err conftest.
$ac_ext
28333 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28334 echo "${ECHO_T}$ac_header_preproc" >&6
28336 # So? What about this header?
28337 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
28339 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28340 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28341 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28342 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28343 ac_header_preproc
=yes
28346 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28347 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28348 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28349 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28350 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28351 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28352 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28353 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28354 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28355 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28356 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28357 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28360 ## ---------------------------------- ##
28361 ## Report this to gmp-bugs@gmplib.org ##
28362 ## ---------------------------------- ##
28365 sed "s/^/$as_me: WARNING: /" >&2
28368 echo "$as_me:$LINENO: checking for $ac_header" >&5
28369 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28370 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28371 echo $ECHO_N "(cached) $ECHO_C" >&6
28373 eval "$as_ac_Header=\$ac_header_preproc"
28375 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28376 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28379 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28380 cat >>confdefs.h
<<_ACEOF
28381 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28388 echo "$as_me:$LINENO: checking for std::locale" >&5
28389 echo $ECHO_N "checking for std::locale... $ECHO_C" >&6
28390 if test "${ac_cv_type_std__locale+set}" = set; then
28391 echo $ECHO_N "(cached) $ECHO_C" >&6
28393 cat >conftest.
$ac_ext <<_ACEOF
28396 cat confdefs.h
>>conftest.
$ac_ext
28397 cat >>conftest.
$ac_ext <<_ACEOF
28398 /* end confdefs.h. */
28404 if ((std::locale *) 0)
28406 if (sizeof (std::locale))
28412 rm -f conftest.
$ac_objext
28413 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28414 (eval $ac_compile) 2>conftest.er1
28416 grep -v '^ *+' conftest.er1
>conftest.err
28418 cat conftest.err
>&5
28419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28420 (exit $ac_status); } &&
28421 { ac_try
='test -z "$ac_cxx_werror_flag"
28422 || test ! -s conftest.err'
28423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28424 (eval $ac_try) 2>&5
28426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28427 (exit $ac_status); }; } &&
28428 { ac_try
='test -s conftest.$ac_objext'
28429 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28430 (eval $ac_try) 2>&5
28432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28433 (exit $ac_status); }; }; then
28434 ac_cv_type_std__locale
=yes
28436 echo "$as_me: failed program was:" >&5
28437 sed 's/^/| /' conftest.
$ac_ext >&5
28439 ac_cv_type_std__locale
=no
28441 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
28443 echo "$as_me:$LINENO: result: $ac_cv_type_std__locale" >&5
28444 echo "${ECHO_T}$ac_cv_type_std__locale" >&6
28445 if test $ac_cv_type_std__locale = yes; then
28447 cat >>confdefs.h
<<_ACEOF
28448 #define HAVE_STD__LOCALE 1
28456 ac_cpp
='$CPP $CPPFLAGS'
28457 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28458 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28459 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
28464 # Pick the correct source files in $path and link them to mpn/.
28465 # $gmp_mpn_functions lists all functions we need.
28467 # The rule is to find a file with the function name and a .asm, .S,
28468 # .s, or .c extension. Certain multi-function files with special names
28469 # can provide some functions too. (mpn/Makefile.am passes
28470 # -DOPERATION_<func> to get them to generate the right code.)
28472 # Note: The following lines defining $gmp_mpn_functions_optional
28473 # and $gmp_mpn_functions are parsed by the "macos/configure"
28474 # Perl script. So if you change the lines in a major way
28475 # make sure to run and examine the output from
28477 # % (cd macos; perl configure)
28479 # Note: $gmp_mpn_functions must have mod_1 before pre_mod_1 so the former
28480 # can optionally provide the latter as an extra entrypoint. Likewise
28481 # divrem_1 and pre_divrem_1.
28483 gmp_mpn_functions_optional
="umul udiv copyi copyd com_n
28484 and_n andn_n nand_n ior_n iorn_n nior_n xor_n xnor_n \
28485 invert_limb sqr_diagonal \
28486 mul_2 mul_3 mul_4 \
28487 addmul_2 addmul_3 addmul_4 addmul_5 addmul_6 addmul_7 addmul_8 \
28488 addlsh1_n sublsh1_n rsh1add_n rsh1sub_n addsub_n addaddmul_1msb0 lshiftc"
28490 gmp_mpn_functions
="$extra_functions \
28491 add add_1 add_n sub sub_1 sub_n neg_n mul_1 addmul_1 \
28492 submul_1 lshift rshift dive_1 diveby3 divis divrem divrem_1 divrem_2 \
28493 fib2_ui mod_1 mod_34lsub1 mode1o pre_divrem_1 pre_mod_1 dump \
28494 mod_1_1 mod_1_2 mod_1_3 mod_1_4 \
28495 mul mul_fft mul_n mul_basecase sqr_basecase random random2 pow_1 \
28496 rootrem sqrtrem get_str set_str scan0 scan1 popcount hamdist cmp perfsqr \
28497 bdivmod gcd_1 gcd gcdext_1 gcdext gcd_lehmer gcd_subdiv_step \
28498 gcdext_lehmer gcdext_subdiv_step \
28499 tdiv_qr dc_divrem_n sb_divrem_mn jacbase get_d \
28500 matrix22_mul hgcd2 hgcd mullow_n mullow_basecase \
28501 toom22_mul toom33_mul toom44_mul \
28502 toom32_mul toom42_mul toom62_mul toom53_mul \
28503 toom2_sqr toom3_sqr toom4_sqr \
28504 toom_interpolate_5pts toom_interpolate_7pts invert binvert \
28505 sb_div_qr sb_divappr_q sb_div_q dc_div_qr dc_divappr_q dc_div_q \
28506 mu_div_qr mu_divappr_q mu_div_q \
28507 sb_bdiv_q sb_bdiv_qr dc_bdiv_q dc_bdiv_qr mu_bdiv_q mu_bdiv_qr \
28508 divexact bdiv_dbm1c redc_1 redc_2 powm powlo powm_sec subcnd_n \
28509 $gmp_mpn_functions_optional"
28513 # the list of all object files used by mpn/Makefile.in and the
28514 # top-level Makefile.in, respectively
28516 mpn_objs_in_libgmp
=
28518 # links from the sources, to be removed by "make distclean"
28522 # mpn_relative_top_srcdir is $top_srcdir, but for use from within the mpn
28523 # build directory. If $srcdir is relative then we use a relative path too,
28524 # so the two trees can be moved together.
28526 [\\/]* | ?
:[\\/]*) # absolute, as per autoconf
28527 mpn_relative_top_srcdir
=$srcdir ;;
28529 mpn_relative_top_srcdir
=..
/$srcdir ;;
28537 # Fat binary setups.
28539 # We proceed through each $fat_path directory, and look for $fat_function
28540 # routines there. Those found are incorporated in the build by generating a
28541 # little mpn/<foo>.asm or mpn/<foo>.c file in the build directory, with
28542 # suitable function renaming, and adding that to $mpn_objects (the same as a
28543 # normal mpn file).
28545 # fat.h is generated with macros to let internal calls to each $fat_function
28546 # go directly through __gmpn_cpuvec, plus macros and declarations helping to
28547 # setup that structure, on a per-directory basis ready for
28548 # mpn/<cpu>/fat/fat.c.
28550 # fat.h includes thesholds listed in $fat_thresholds, extracted from
28551 # gmp-mparam.h in each directory. An overall maximum for each threshold is
28552 # established, for use in making fixed size arrays of temporary space.
28553 # (Eg. MUL_TOOM3_THRESHOLD_LIMIT used by mpn/generic/mul.c.)
28555 # It'd be possible to do some of this manually, but when there's more than a
28556 # few functions and a few directories it becomes very tedious, and very
28557 # prone to having some routine accidentally omitted. On that basis it seems
28558 # best to automate as much as possible, even if the code to do so is a bit
28562 if test -n "$fat_path"; then
28563 # Usually the mpn build directory is created with mpn/Makefile
28564 # instantiation, but we want to write to it sooner.
28565 mkdir mpn
2>/dev
/null
28567 echo "/* fat.h - setups for fat binaries." >fat.h
28568 echo " Generated by configure - DO NOT EDIT. */" >>fat.h
28571 cat >>confdefs.h
<<\_ACEOF
28572 #define WANT_FAT_BINARY 1
28576 echo 'define(<WANT_FAT_BINARY>, <yes>)' >>$gmp_tmpconfigm4
28579 # Don't want normal copies of fat functions
28580 for tmp_fn
in $fat_functions; do
28581 remove_from_list_tmp
=
28582 for remove_from_list_i
in $gmp_mpn_functions; do
28583 if test $remove_from_list_i = $tmp_fn; then :;
28585 remove_from_list_tmp
="$remove_from_list_tmp $remove_from_list_i"
28588 gmp_mpn_functions
=$remove_from_list_tmp
28590 remove_from_list_tmp
=
28591 for remove_from_list_i
in $gmp_mpn_functions_optional; do
28592 if test $remove_from_list_i = $tmp_fn; then :;
28594 remove_from_list_tmp
="$remove_from_list_tmp $remove_from_list_i"
28597 gmp_mpn_functions_optional
=$remove_from_list_tmp
28601 for tmp_fn
in $fat_functions; do
28603 dive_1
) tmp_fbase
=divexact_1
;;
28604 diveby3
) tmp_fbase
=divexact_by3c
;;
28605 pre_divrem_1
) tmp_fbase
=preinv_divrem_1
;;
28606 mode1o
) tmp_fbase
=modexact_1c_odd
;;
28607 pre_mod_1
) tmp_fbase
=preinv_mod_1
;;
28608 *) tmp_fbase
=$tmp_fn ;;
28612 #ifndef OPERATION_$tmp_fn
28613 #undef mpn_$tmp_fbase
28614 #define mpn_$tmp_fbase (*__gmpn_cpuvec.$tmp_fbase)
28616 DECL_$tmp_fbase (__MPN(${tmp_fbase}_init));" >>fat.h
28617 # encourage various macros to use fat functions
28618 cat >>confdefs.h
<<_ACEOF
28619 #define HAVE_NATIVE_$tmp_fbase 1
28625 echo "/* variable thresholds */" >>fat.h
28626 for tmp_tn
in $fat_thresholds; do
28627 echo "#undef $tmp_tn" >>fat.h
28628 echo "#define $tmp_tn CPUVEC_THRESHOLD (`echo $tmp_tn | tr A-Z a-z`)" >>fat.h
28632 /* Copy all fields into __gmpn_cpuvec.
28633 memcpy is not used because it might operate byte-wise (depending on its
28634 implemenation), and we need the function pointer writes to be atomic.
28635 "volatile
" discourages the compiler from trying to optimize this. */
28636 #define CPUVEC_INSTALL(vec) \\
28638 volatile struct cpuvec_t *p = &__gmpn_cpuvec; \\" >>fat.h
28639 for tmp_fn
in $fat_functions; do
28641 dive_1
) tmp_fbase
=divexact_1
;;
28642 diveby3
) tmp_fbase
=divexact_by3c
;;
28643 pre_divrem_1
) tmp_fbase
=preinv_divrem_1
;;
28644 mode1o
) tmp_fbase
=modexact_1c_odd
;;
28645 pre_mod_1
) tmp_fbase
=preinv_mod_1
;;
28646 *) tmp_fbase
=$tmp_fn ;;
28649 echo " p->$tmp_fbase = vec.$tmp_fbase; \\" >>fat.h
28651 for tmp_tn
in $fat_thresholds; do
28652 tmp_field_name
=`echo $tmp_tn | tr A-Z a-z`
28653 echo " p->$tmp_field_name = vec.$tmp_field_name; \\" >>fat.h
28655 echo " } while (0)" >>fat.h
28658 /* A helper to check all fields are filled. */
28659 #define ASSERT_CPUVEC(vec) \\
28661 for tmp_fn
in $fat_functions; do
28663 dive_1
) tmp_fbase
=divexact_1
;;
28664 diveby3
) tmp_fbase
=divexact_by3c
;;
28665 pre_divrem_1
) tmp_fbase
=preinv_divrem_1
;;
28666 mode1o
) tmp_fbase
=modexact_1c_odd
;;
28667 pre_mod_1
) tmp_fbase
=preinv_mod_1
;;
28668 *) tmp_fbase
=$tmp_fn ;;
28671 echo " ASSERT (vec.$tmp_fbase != NULL); \\" >>fat.h
28673 for tmp_tn
in $fat_thresholds; do
28674 tmp_field_name
=`echo $tmp_tn | tr A-Z a-z`
28675 echo " ASSERT (vec.$tmp_field_name != 0); \\" >>fat.h
28677 echo " } while (0)" >>fat.h
28680 /* Call ITERATE(field) for each fat threshold field. */
28681 #define ITERATE_FAT_THRESHOLDS() \\
28683 for tmp_tn
in $fat_thresholds; do
28684 tmp_field_name
=`echo $tmp_tn | tr A-Z a-z`
28685 echo " ITERATE ($tmp_tn, $tmp_field_name); \\" >>fat.h
28687 echo " } while (0)" >>fat.h
28689 for tmp_dir
in $fat_path; do
28693 tmp_suffix
=`echo $tmp_dir | sed -e '/\//s:^[^/]*/::' -e 's:[\\/]:_:g'`
28695 # In order to keep names unique on a DOS 8.3 filesystem, use a prefix
28696 # (rather than a suffix) for the generated file names, and abbreviate.
28697 case $tmp_suffix in
28698 pentium
) tmp_prefix
=p
;;
28699 pentium_mmx
) tmp_prefix
=pm
;;
28700 p6_mmx
) tmp_prefix
=p2
;;
28701 p6_p3mmx
) tmp_prefix
=p3
;;
28702 pentium4
) tmp_prefix
=p4
;;
28703 pentium4_mmx
) tmp_prefix
=p4m
;;
28704 pentium4_sse2
) tmp_prefix
=p4s
;;
28705 k6_mmx
) tmp_prefix
=k6m
;;
28706 k6_k62mmx
) tmp_prefix
=k62
;;
28707 k7_mmx
) tmp_prefix
=k7m
;;
28708 *) tmp_prefix
=$tmp_suffix ;;
28711 # Extract desired thresholds from gmp-mparam.h file in this directory,
28713 tmp_mparam
=$srcdir/mpn
/$tmp_dir/gmp-mparam.h
28714 if test -f $tmp_mparam; then
28715 for tmp_tn
in $fat_thresholds; do
28716 tmp_thresh
=`sed -n "s/^#define $tmp_tn[ ]*\\([0-9][0-9]*\\).*$/\\1/p" $tmp_mparam`
28717 if test -n "$tmp_thresh"; then
28718 THRESH_ASM_SETUP
="${THRESH_ASM_SETUP}define($tmp_tn,$tmp_thresh)
28720 CPUVEC_SETUP
="$CPUVEC_SETUP decided_cpuvec.`echo $tmp_tn | tr A-Z a-z` = $tmp_thresh; \\
28722 eval tmp_limit
=\$
${tmp_tn}_LIMIT
28723 if test -z "$tmp_limit"; then
28726 if test $tmp_thresh -gt $tmp_limit; then
28727 eval ${tmp_tn}_LIMIT
=$tmp_thresh
28733 for tmp_fn
in $fat_functions; do
28734 # functions that can be provided by multi-function files
28737 add_n|sub_n
) tmp_mulfunc
="aors_n" ;;
28738 addmul_1|submul_1
) tmp_mulfunc
="aorsmul_1" ;;
28739 popcount|hamdist
) tmp_mulfunc
="popham" ;;
28740 and_n|andn_n|nand_n | ior_n|iorn_n|nior_n | xor_n|xnor_n
)
28741 tmp_mulfunc
="logops_n" ;;
28742 lshift|rshift
) tmp_mulfunc
="lorrshift";;
28743 addlsh1_n|sublsh1_n
)
28744 tmp_mulfunc
="aorslsh1_n";;
28745 rsh1add_n|rsh1sub_n
)
28746 tmp_mulfunc
="rsh1aors_n";;
28750 for tmp_base
in $tmp_fn $tmp_mulfunc; do
28751 for tmp_ext
in asm S s c
; do
28752 tmp_file
=$srcdir/mpn
/$tmp_dir/$tmp_base.
$tmp_ext
28753 if test -f $tmp_file; then
28755 mpn_objects
="$mpn_objects ${tmp_prefix}_$tmp_fn.lo"
28756 mpn_objs_in_libgmp
="$mpn_objs_in_libgmp mpn/${tmp_prefix}_$tmp_fn.lo"
28759 dive_1
) tmp_fbase
=divexact_1
;;
28760 diveby3
) tmp_fbase
=divexact_by3c
;;
28761 pre_divrem_1
) tmp_fbase
=preinv_divrem_1
;;
28762 mode1o
) tmp_fbase
=modexact_1c_odd
;;
28763 pre_mod_1
) tmp_fbase
=preinv_mod_1
;;
28764 *) tmp_fbase
=$tmp_fn ;;
28768 # carry-in variant, eg. divrem_1c or modexact_1c_odd
28770 *_1
*) tmp_fbasec
=`echo $tmp_fbase | sed 's/_1/_1c/'` ;;
28771 *) tmp_fbasec
=${tmp_fbase}c
;;
28774 # Create a little file doing an include from srcdir. The
28775 # OPERATION and renamings aren't all needed all the time, but
28776 # they don't hurt if unused.
28778 # FIXME: Should generate these via config.status commands.
28779 # Would need them all in one AC_CONFIG_COMMANDS though, since
28780 # that macro doesn't accept a set of separate commands generated
28785 # hide the d-n-l from autoconf's error checking
28787 echo "$tmp_d_n_l mpn_$tmp_fbase - from $tmp_dir directory for fat binary.
28788 $tmp_d_n_l Generated by configure - DO NOT EDIT.
28790 define(OPERATION_$tmp_fn)
28791 define(__gmpn_$tmp_fbase, __gmpn_${tmp_fbase}_$tmp_suffix)
28792 define(__gmpn_$tmp_fbasec,__gmpn_${tmp_fbasec}_${tmp_suffix})
28793 define(__gmpn_preinv_${tmp_fbase},__gmpn_preinv_${tmp_fbase}_${tmp_suffix})
28795 $tmp_d_n_l For k6 and k7 gcd_1 calling their corresponding mpn_modexact_1_odd
28796 ifdef(\`__gmpn_modexact_1_odd',,
28797 \`define(__gmpn_modexact_1_odd,__gmpn_modexact_1_odd_${tmp_suffix})')
28800 include($mpn_relative_top_srcdir/mpn/$tmp_dir/$tmp_base.asm)
28801 " >mpn
/${tmp_prefix}_
$tmp_fn.asm
28804 echo "/* mpn_$tmp_fbase - from $tmp_dir directory for fat binary.
28805 Generated by configure - DO NOT EDIT. */
28807 #define OPERATION_$tmp_fn 1
28808 #define __gmpn_$tmp_fbase __gmpn_${tmp_fbase}_$tmp_suffix
28809 #define __gmpn_$tmp_fbasec __gmpn_${tmp_fbasec}_${tmp_suffix}
28810 #define __gmpn_preinv_${tmp_fbase} __gmpn_preinv_${tmp_fbase}_${tmp_suffix}
28812 #include \"$mpn_relative_top_srcdir/mpn/$tmp_dir/$tmp_base.c\"
28813 " >mpn
/${tmp_prefix}_
$tmp_fn.c
28817 # Prototype, and append to CPUVEC_SETUP for this directory.
28818 echo "DECL_$tmp_fbase (__gmpn_${tmp_fbase}_$tmp_suffix);" >>fat.h
28819 CPUVEC_SETUP
="$CPUVEC_SETUP decided_cpuvec.$tmp_fbase = __gmpn_${tmp_fbase}_${tmp_suffix}; \\
28821 # Ditto for any preinv variant (preinv_divrem_1, preinv_mod_1).
28822 if grep "^PROLOGUE(mpn_preinv_$tmp_fn)" $tmp_file >/dev
/null
; then
28823 echo "DECL_preinv_$tmp_fbase (__gmpn_preinv_${tmp_fbase}_$tmp_suffix);" >>fat.h
28824 CPUVEC_SETUP
="$CPUVEC_SETUP decided_cpuvec.preinv_$tmp_fbase = __gmpn_preinv_${tmp_fbase}_${tmp_suffix}; \\
28832 # Emit CPUVEC_SETUP for this directory
28834 echo "#define CPUVEC_SETUP_$tmp_suffix \\" >>fat.h
28835 echo " do { \\" >>fat.h
28836 echo "$CPUVEC_SETUP } while (0)" >>fat.h
28839 # Emit threshold limits
28841 for tmp_tn
in $fat_thresholds; do
28842 eval tmp_limit
=\$
${tmp_tn}_LIMIT
28843 echo "#define ${tmp_tn}_LIMIT $tmp_limit" >>fat.h
28848 # Normal binary setups.
28851 for tmp_ext
in asm S s c
; do
28852 eval found_
$tmp_ext=no
28855 for tmp_fn
in $gmp_mpn_functions; do
28856 for tmp_ext
in asm S s c
; do
28857 test "$no_create" = yes ||
rm -f mpn
/$tmp_fn.
$tmp_ext
28860 # mpn_preinv_divrem_1 might have been provided by divrem_1.asm, likewise
28861 # mpn_preinv_mod_1 by mod_1.asm.
28864 if test "$HAVE_NATIVE_mpn_preinv_divrem_1" = yes; then continue; fi ;;
28866 if test "$HAVE_NATIVE_mpn_preinv_mod_1" = yes; then continue; fi ;;
28869 # functions that can be provided by multi-function files
28872 add_n|sub_n
) tmp_mulfunc
="aors_n" ;;
28873 addmul_1|submul_1
) tmp_mulfunc
="aorsmul_1" ;;
28874 popcount|hamdist
) tmp_mulfunc
="popham" ;;
28875 and_n|andn_n|nand_n | ior_n|iorn_n|nior_n | xor_n|xnor_n
)
28876 tmp_mulfunc
="logops_n" ;;
28877 lshift|rshift
) tmp_mulfunc
="lorrshift";;
28878 addlsh1_n|sublsh1_n
)
28879 tmp_mulfunc
="aorslsh1_n";;
28880 rsh1add_n|rsh1sub_n
)
28881 tmp_mulfunc
="rsh1aors_n";;
28886 for tmp_dir
in $path; do
28887 for tmp_base
in $tmp_fn $tmp_mulfunc; do
28888 for tmp_ext
in asm S s c
; do
28889 tmp_file
=$srcdir/mpn
/$tmp_dir/$tmp_base.
$tmp_ext
28890 if test -f $tmp_file; then
28892 # For a nails build, check if the file supports our nail bits.
28893 # Generic code always supports all nails.
28895 # FIXME: When a multi-function file is selected to provide one of
28896 # the nails-neutral routines, like logops_n for and_n, the
28897 # PROLOGUE grepping will create HAVE_NATIVE_mpn_<foo> defines for
28898 # all functions in that file, even if they haven't all been
28899 # nailified. Not sure what to do about this, it's only really a
28900 # problem for logops_n, and it's not too terrible to insist those
28901 # get nailified always.
28903 if test $GMP_NAIL_BITS != 0 && test $tmp_dir != generic
; then
28905 and_n | ior_n | xor_n | andn_n | \
28907 popcount | hamdist | \
28908 udiv | udiv_w_sdiv | umul | \
28909 cntlz | invert_limb
)
28910 # these operations are either unaffected by nails or defined
28911 # to operate on full limbs
28914 nails
=`sed -n 's/^[ ]*NAILS_SUPPORT(\(.*\))/\1/p' $tmp_file `
28915 for n
in $nails; do
28918 n_start
=`echo "$n" | sed -n 's/\(.*\)-.*/\1/p'`
28919 n_end
=`echo "$n" | sed -n 's/.*-\(.*\)/\1/p'`
28926 if test $GMP_NAIL_BITS -ge $n_start && test $GMP_NAIL_BITS -le $n_end; then
28931 if test $found != yes; then
28939 eval found_
$tmp_ext=yes
28941 if test $tmp_ext = c
; then
28947 mpn_objects
="$mpn_objects $tmp_fn$tmp_u.lo"
28948 mpn_objs_in_libgmp
="$mpn_objs_in_libgmp mpn/$tmp_fn$tmp_u.lo"
28949 ac_config_links
="$ac_config_links mpn/$tmp_fn.$tmp_ext:mpn/$tmp_dir/$tmp_base.$tmp_ext"
28951 gmp_srclinks
="$gmp_srclinks mpn/$tmp_fn.$tmp_ext"
28953 # Duplicate AC_DEFINEs are harmless, so it doesn't matter
28954 # that multi-function files get grepped here repeatedly.
28955 # The PROLOGUE pattern excludes the optional second parameter.
28957 sed -n 's/^[ ]*MULFUNC_PROLOGUE(\(.*\))/\1/p' $tmp_file ;
28958 sed -n 's/^[ ]*PROLOGUE(\([^,]*\).*)/\1/p' $tmp_file
28960 for gmp_tmp
in $gmp_ep; do
28961 cat >>confdefs.h
<<_ACEOF
28962 #define HAVE_NATIVE_$gmp_tmp 1
28965 eval HAVE_NATIVE_
$gmp_tmp=yes
28969 sqr_basecase
) sqr_basecase_source
=$tmp_file ;;
28975 if test $found = yes; then break ; fi
28977 if test $found = yes; then break ; fi
28980 if test $found = no
; then
28981 for tmp_optional
in $gmp_mpn_functions_optional; do
28982 if test $tmp_optional = $tmp_fn; then
28986 if test $found = no
; then
28987 { { echo "$as_me:$LINENO: error: no version of $tmp_fn found in path: $path" >&5
28988 echo "$as_me: error: no version of $tmp_fn found in path: $path" >&2;}
28989 { (exit 1); exit 1; }; }
28994 # All cycle counters are .asm files currently
28995 if test -n "$SPEED_CYCLECOUNTER_OBJ"; then
29004 # Don't demand an m4 unless it's actually needed.
29005 if test $found_asm = yes; then
29007 echo "$as_me:$LINENO: checking for suitable m4" >&5
29008 echo $ECHO_N "checking for suitable m4... $ECHO_C" >&6
29009 if test "${gmp_cv_prog_m4+set}" = set; then
29010 echo $ECHO_N "(cached) $ECHO_C" >&6
29012 if test -n "$M4"; then
29013 gmp_cv_prog_m4
="$M4"
29015 cat >conftest.
m4 <<\EOF
29016 define
(dollarhash
,``$#'')ifelse
(dollarhash
(x
),1,`define(t1,Y)',
29017 ``bad: $# not supported (SunOS /usr/bin/m4)
29018 '')ifelse(eval(89),89,`define
(t2
,Y
)',
29019 `bad: eval() doesnt support 8 or 9 in a constant (OpenBSD 2.6 m4)
29020 ')ifelse
(t1
`'t2,YY,`good
29023 echo "trying m4" >&5
29024 gmp_tmp_val=`(m4 conftest.m4) 2>&5`
29025 echo "$gmp_tmp_val" >&5
29026 if test "$gmp_tmp_val" = good; then
29027 gmp_cv_prog_m4="m4"
29029 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
29030 ac_dummy="$PATH:/usr/5bin"
29031 for ac_dir in $ac_dummy; do
29032 test -z "$ac_dir" && ac_dir=.
29033 echo "trying $ac_dir/m4" >&5
29034 gmp_tmp_val=`($ac_dir/m4 conftest.m4) 2>&5`
29035 echo "$gmp_tmp_val" >&5
29036 if test "$gmp_tmp_val" = good; then
29037 gmp_cv_prog_m4="$ac_dir/m4"
29042 if test -z "$gmp_cv_prog_m4"; then
29043 { { echo "$as_me:$LINENO: error: No usable m4 in \$PATH or /usr/5bin (see config.log for reasons)." >&5
29044 echo "$as_me: error: No usable m4 in \$PATH or /usr/5bin (see config.log for reasons)." >&2;}
29045 { (exit 1); exit 1; }; }
29051 echo "$as_me:$LINENO: result: $gmp_cv_prog_m4" >&5
29052 echo "${ECHO_T}$gmp_cv_prog_m4" >&6
29053 M4="$gmp_cv_prog_m4"
29057 echo "$as_me:$LINENO: checking if m4wrap produces spurious output" >&5
29058 echo $ECHO_N "checking if m4wrap produces spurious output... $ECHO_C" >&6
29059 if test "${gmp_cv_m4_m4wrap_spurious+set}" = set; then
29060 echo $ECHO_N "(cached) $ECHO_C" >&6
29062 # hide the d-n-l from autoconf's error checking
29064 cat >conftest.
m4 <<EOF
29065 changequote({,})define(x,)m4wrap({x})$tmp_d_n_l
29067 echo test input is
>&5
29068 cat conftest.
m4 >&5
29069 tmp_chars
=`$M4 conftest.m4 | wc -c`
29070 echo produces
$tmp_chars chars output
>&5
29072 if test $tmp_chars = 0; then
29073 gmp_cv_m4_m4wrap_spurious
=no
29075 gmp_cv_m4_m4wrap_spurious
=yes
29079 echo "$as_me:$LINENO: result: $gmp_cv_m4_m4wrap_spurious" >&5
29080 echo "${ECHO_T}$gmp_cv_m4_m4wrap_spurious" >&6
29082 echo "define(<M4WRAP_SPURIOUS>,<$gmp_cv_m4_m4wrap_spurious>)" >> $gmp_tmpconfigm4
29089 # Only do the GMP_ASM checks if there's a .S or .asm wanting them.
29090 if test $found_asm = no
&& test $found_S = no
; then
29091 gmp_asm_syntax_testing
=no
29094 if test "$gmp_asm_syntax_testing" != no
; then
29095 echo "$as_me:$LINENO: checking how to switch to text section" >&5
29096 echo $ECHO_N "checking how to switch to text section... $ECHO_C" >&6
29097 if test "${gmp_cv_asm_text+set}" = set; then
29098 echo $ECHO_N "(cached) $ECHO_C" >&6
29100 for i
in ".text" ".code" ".csect .text[PR]"; do
29101 echo "trying $i" >&5
29102 cat >conftest.s
<<EOF
29105 gmp_assemble
="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
29106 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
29107 (eval $gmp_assemble) 2>&5
29109 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29110 (exit $ac_status); }; then
29111 cat conftest.out
>&5
29116 cat conftest.out
>&5
29117 echo "configure: failed program was:" >&5
29124 if test -z "$gmp_cv_asm_text"; then
29125 { { echo "$as_me:$LINENO: error: Cannot determine text section directive" >&5
29126 echo "$as_me: error: Cannot determine text section directive" >&2;}
29127 { (exit 1); exit 1; }; }
29131 echo "$as_me:$LINENO: result: $gmp_cv_asm_text" >&5
29132 echo "${ECHO_T}$gmp_cv_asm_text" >&6
29133 echo "define(<TEXT>, <$gmp_cv_asm_text>)" >> $gmp_tmpconfigm4
29135 echo "$as_me:$LINENO: checking how to switch to data section" >&5
29136 echo $ECHO_N "checking how to switch to data section... $ECHO_C" >&6
29137 if test "${gmp_cv_asm_data+set}" = set; then
29138 echo $ECHO_N "(cached) $ECHO_C" >&6
29141 *-*-aix*) gmp_cv_asm_data
=".csect .data[RW]" ;;
29142 *) gmp_cv_asm_data
=".data" ;;
29146 echo "$as_me:$LINENO: result: $gmp_cv_asm_data" >&5
29147 echo "${ECHO_T}$gmp_cv_asm_data" >&6
29148 echo "define(<DATA>, <$gmp_cv_asm_data>)" >> $gmp_tmpconfigm4
29151 echo "$as_me:$LINENO: checking for assembler label suffix" >&5
29152 echo $ECHO_N "checking for assembler label suffix... $ECHO_C" >&6
29153 if test "${gmp_cv_asm_label_suffix+set}" = set; then
29154 echo $ECHO_N "(cached) $ECHO_C" >&6
29156 gmp_cv_asm_label_suffix
=unknown
29157 for i
in "" ":"; do
29158 echo "trying $i" >&5
29159 cat >conftest.s
<<EOF
29163 gmp_assemble
="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
29164 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
29165 (eval $gmp_assemble) 2>&5
29167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29168 (exit $ac_status); }; then
29169 cat conftest.out
>&5
29170 gmp_cv_asm_label_suffix
=$i
29174 cat conftest.out
>&5
29175 echo "configure: failed program was:" >&5
29177 cat conftest.out
>&5
29182 if test "$gmp_cv_asm_label_suffix" = "unknown"; then
29183 { { echo "$as_me:$LINENO: error: Cannot determine label suffix" >&5
29184 echo "$as_me: error: Cannot determine label suffix" >&2;}
29185 { (exit 1); exit 1; }; }
29189 echo "$as_me:$LINENO: result: $gmp_cv_asm_label_suffix" >&5
29190 echo "${ECHO_T}$gmp_cv_asm_label_suffix" >&6
29191 echo "define(<LABEL_SUFFIX>, <$gmp_cv_asm_label_suffix>)" >> $gmp_tmpconfigm4
29194 echo "$as_me:$LINENO: checking for assembler global directive" >&5
29195 echo $ECHO_N "checking for assembler global directive... $ECHO_C" >&6
29196 if test "${gmp_cv_asm_globl+set}" = set; then
29197 echo $ECHO_N "(cached) $ECHO_C" >&6
29200 hppa
*-*-*) gmp_cv_asm_globl
=.
export ;;
29201 ia64
*-*-* | itanium-
*-* | itanium2-
*-*) gmp_cv_asm_globl
=.global
;;
29202 *) gmp_cv_asm_globl
=.globl
;;
29206 echo "$as_me:$LINENO: result: $gmp_cv_asm_globl" >&5
29207 echo "${ECHO_T}$gmp_cv_asm_globl" >&6
29208 echo "define(<GLOBL>, <$gmp_cv_asm_globl>)" >> $gmp_tmpconfigm4
29211 echo "$as_me:$LINENO: checking for assembler global directive attribute" >&5
29212 echo $ECHO_N "checking for assembler global directive attribute... $ECHO_C" >&6
29213 if test "${gmp_cv_asm_globl_attr+set}" = set; then
29214 echo $ECHO_N "(cached) $ECHO_C" >&6
29216 case $gmp_cv_asm_globl in
29217 .
export) gmp_cv_asm_globl_attr
=",entry" ;;
29218 *) gmp_cv_asm_globl_attr
="" ;;
29222 echo "$as_me:$LINENO: result: $gmp_cv_asm_globl_attr" >&5
29223 echo "${ECHO_T}$gmp_cv_asm_globl_attr" >&6
29224 echo "define(<GLOBL_ATTR>, <$gmp_cv_asm_globl_attr>)" >> $gmp_tmpconfigm4
29227 echo "$as_me:$LINENO: checking if globals are prefixed by underscore" >&5
29228 echo $ECHO_N "checking if globals are prefixed by underscore... $ECHO_C" >&6
29229 if test "${gmp_cv_asm_underscore+set}" = set; then
29230 echo $ECHO_N "(cached) $ECHO_C" >&6
29232 gmp_cv_asm_underscore
="unknown"
29233 cat >conftest.c
<<EOF
29236 gmp_compile
="$CC $CFLAGS $CPPFLAGS -c conftest.c >&5"
29237 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
29238 (eval $gmp_compile) 2>&5
29240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29241 (exit $ac_status); }; then
29242 $NM conftest.
$OBJEXT >conftest.out
29243 if grep _gurkmacka conftest.out
>/dev
/null
; then
29244 gmp_cv_asm_underscore
=yes
29245 elif grep gurkmacka conftest.out
>/dev
/null
; then
29246 gmp_cv_asm_underscore
=no
29248 echo "configure: $NM doesn't have gurkmacka:" >&5
29249 cat conftest.out
>&5
29252 echo "configure: failed program was:" >&5
29258 echo "$as_me:$LINENO: result: $gmp_cv_asm_underscore" >&5
29259 echo "${ECHO_T}$gmp_cv_asm_underscore" >&6
29260 case $gmp_cv_asm_underscore in
29263 echo 'define(<GSYM_PREFIX>, <_>)' >>$gmp_tmpconfigm4
29267 echo 'define(<GSYM_PREFIX>, <>)' >>$gmp_tmpconfigm4
29270 { echo "$as_me:$LINENO: WARNING: +----------------------------------------------------------" >&5
29271 echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
29272 { echo "$as_me:$LINENO: WARNING: | Cannot determine global symbol prefix." >&5
29273 echo "$as_me: WARNING: | Cannot determine global symbol prefix." >&2;}
29274 { echo "$as_me:$LINENO: WARNING: | $NM output doesn't contain a global data symbol." >&5
29275 echo "$as_me: WARNING: | $NM output doesn't contain a global data symbol." >&2;}
29276 { echo "$as_me:$LINENO: WARNING: | Will proceed with no underscore." >&5
29277 echo "$as_me: WARNING: | Will proceed with no underscore." >&2;}
29278 { echo "$as_me:$LINENO: WARNING: | If this is wrong then you'll get link errors referring" >&5
29279 echo "$as_me: WARNING: | If this is wrong then you'll get link errors referring" >&2;}
29280 { echo "$as_me:$LINENO: WARNING: | to ___gmpn_add_n (note three underscores)." >&5
29281 echo "$as_me: WARNING: | to ___gmpn_add_n (note three underscores)." >&2;}
29282 { echo "$as_me:$LINENO: WARNING: | In this case do a fresh build with an override," >&5
29283 echo "$as_me: WARNING: | In this case do a fresh build with an override," >&2;}
29284 { echo "$as_me:$LINENO: WARNING: | ./configure gmp_cv_asm_underscore=yes" >&5
29285 echo "$as_me: WARNING: | ./configure gmp_cv_asm_underscore=yes" >&2;}
29286 { echo "$as_me:$LINENO: WARNING: +----------------------------------------------------------" >&5
29287 echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
29289 echo 'define(<GSYM_PREFIX>, <>)' >>$gmp_tmpconfigm4
29298 echo "$as_me:$LINENO: checking how to switch to read-only data section" >&5
29299 echo $ECHO_N "checking how to switch to read-only data section... $ECHO_C" >&6
29300 if test "${gmp_cv_asm_rodata+set}" = set; then
29301 echo $ECHO_N "(cached) $ECHO_C" >&6
29305 i?
86*-*-* | k
[5-8]*-*-* | pentium
*-*-* | athlon-
*-* | viac3
*-*-* | geode
*-*-* | x86_64-
*-*)
29306 gmp_cv_asm_rodata
="$gmp_cv_asm_data" ;;
29308 gmp_cv_asm_rodata
="$gmp_cv_asm_text" ;;
29311 cat >conftest.c
<<EOF
29312 const int foo = 123;
29314 echo "Test program:" >&5
29316 gmp_compile
="$CC $CFLAGS $CPPFLAGS -S conftest.c >&5"
29317 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
29318 (eval $gmp_compile) 2>&5
29320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29321 (exit $ac_status); }; then
29322 echo "Compiler output:" >&5
29324 if test $gmp_cv_asm_underscore = yes; then
29329 # must see our label
29330 if grep "^${tmp_gsym_prefix}foo$gmp_cv_asm_label_suffix" conftest.s
>/dev
/null
2>&5; then
29331 # take the last directive before our label (hence skipping segments
29332 # getting debugging info etc)
29333 tmp_match
=`sed -n "/^${tmp_gsym_prefix}foo$gmp_cv_asm_label_suffix/q
29339 /^[. ]*CSECT/p" conftest.s | sed -n '$p'`
29340 echo "Match: $tmp_match" >&5
29341 if test -n "$tmp_match"; then
29342 gmp_cv_asm_rodata
=$tmp_match
29345 echo "Couldn't find label: ^${tmp_gsym_prefix}foo$gmp_cv_asm_label_suffix" >&5
29351 echo "$as_me:$LINENO: result: $gmp_cv_asm_rodata" >&5
29352 echo "${ECHO_T}$gmp_cv_asm_rodata" >&6
29353 echo "define(<RODATA>, <$gmp_cv_asm_rodata>)" >> $gmp_tmpconfigm4
29355 echo "$as_me:$LINENO: checking for assembler .type directive" >&5
29356 echo $ECHO_N "checking for assembler .type directive... $ECHO_C" >&6
29357 if test "${gmp_cv_asm_type+set}" = set; then
29358 echo $ECHO_N "(cached) $ECHO_C" >&6
29361 for gmp_tmp_prefix
in @ \
# %; do
29362 cat >conftest.s
<<EOF
29363 .type sym,${gmp_tmp_prefix}function
29365 gmp_assemble
="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
29366 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
29367 (eval $gmp_assemble) 2>&5
29369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29370 (exit $ac_status); }; then
29371 cat conftest.out
>&5
29372 if grep "\.type pseudo-op used outside of \.def/\.endef ignored" conftest.out
>/dev
/null
; then : ;
29374 gmp_cv_asm_type
=".type \$1,${gmp_tmp_prefix}\$2"
29378 cat conftest.out
>&5
29379 echo "configure: failed program was:" >&5
29389 echo "$as_me:$LINENO: result: $gmp_cv_asm_type" >&5
29390 echo "${ECHO_T}$gmp_cv_asm_type" >&6
29391 echo "define(<TYPE>, <$gmp_cv_asm_type>)" >> $gmp_tmpconfigm4
29393 echo "$as_me:$LINENO: checking for assembler .size directive" >&5
29394 echo $ECHO_N "checking for assembler .size directive... $ECHO_C" >&6
29395 if test "${gmp_cv_asm_size+set}" = set; then
29396 echo $ECHO_N "(cached) $ECHO_C" >&6
29399 cat >conftest.s
<<EOF
29402 gmp_assemble
="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
29403 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
29404 (eval $gmp_assemble) 2>&5
29406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29407 (exit $ac_status); }; then
29408 cat conftest.out
>&5
29409 if grep "\.size pseudo-op used outside of \.def/\.endef ignored" conftest.out
>/dev
/null
; then : ;
29411 gmp_cv_asm_size
=".size \$1,\$2"
29414 cat conftest.out
>&5
29415 echo "configure: failed program was:" >&5
29423 echo "$as_me:$LINENO: result: $gmp_cv_asm_size" >&5
29424 echo "${ECHO_T}$gmp_cv_asm_size" >&6
29425 echo "define(<SIZE>, <$gmp_cv_asm_size>)" >> $gmp_tmpconfigm4
29430 echo "$as_me:$LINENO: checking for assembler local label prefix" >&5
29431 echo $ECHO_N "checking for assembler local label prefix... $ECHO_C" >&6
29432 if test "${gmp_cv_asm_lsym_prefix+set}" = set; then
29433 echo $ECHO_N "(cached) $ECHO_C" >&6
29435 gmp_tmp_pre_appears
=yes
29436 for gmp_tmp_pre
in L .L $ L$
; do
29437 echo "Trying $gmp_tmp_pre" >&5
29438 cat >conftest.s
<<EOF
29440 dummy${gmp_cv_asm_label_suffix}
29441 ${gmp_tmp_pre}gurkmacka${gmp_cv_asm_label_suffix}
29443 gmp_assemble
="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
29444 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
29445 (eval $gmp_assemble) 2>&5
29447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29448 (exit $ac_status); }; then
29449 cat conftest.out
>&5
29450 if $NM conftest.
$OBJEXT >conftest.nm
2>&5; then : ; else
29451 cat conftest.nm
>&5
29452 { echo "$as_me:$LINENO: WARNING: \"$NM\" failure" >&5
29453 echo "$as_me: WARNING: \"$NM\" failure" >&2;}
29456 cat conftest.nm
>&5
29457 if grep gurkmacka conftest.nm
>/dev
/null
; then : ; else
29458 # no mention of the symbol, this is good
29459 echo "$gmp_tmp_pre label doesn't appear in object file at all (good)" >&5
29460 gmp_cv_asm_lsym_prefix
="$gmp_tmp_pre"
29461 gmp_tmp_pre_appears
=no
29464 if grep ' [a-zN] .*gurkmacka' conftest.nm
>/dev
/null
; then
29465 # symbol mentioned as a local, use this if nothing better
29466 echo "$gmp_tmp_pre label is local but still in object file" >&5
29467 if test -z "$gmp_cv_asm_lsym_prefix"; then
29468 gmp_cv_asm_lsym_prefix
="$gmp_tmp_pre"
29471 echo "$gmp_tmp_pre label is something unknown" >&5
29475 cat conftest.out
>&5
29476 echo "configure: failed program was:" >&5
29484 if test -z "$gmp_cv_asm_lsym_prefix"; then
29485 gmp_cv_asm_lsym_prefix
=L
29486 { echo "$as_me:$LINENO: WARNING: cannot determine local label, using default $gmp_cv_asm_lsym_prefix" >&5
29487 echo "$as_me: WARNING: cannot determine local label, using default $gmp_cv_asm_lsym_prefix" >&2;}
29489 # for development purposes, note whether we got a purely temporary local label
29490 echo "Local label appears in object files: $gmp_tmp_pre_appears" >&5
29493 echo "$as_me:$LINENO: result: $gmp_cv_asm_lsym_prefix" >&5
29494 echo "${ECHO_T}$gmp_cv_asm_lsym_prefix" >&6
29495 echo "define(<LSYM_PREFIX>, <${gmp_cv_asm_lsym_prefix}>)" >> $gmp_tmpconfigm4
29497 cat >>confdefs.h
<<_ACEOF
29498 #define LSYM_PREFIX "$gmp_cv_asm_lsym_prefix"
29504 echo "$as_me:$LINENO: checking for assembler byte directive" >&5
29505 echo $ECHO_N "checking for assembler byte directive... $ECHO_C" >&6
29506 if test "${gmp_cv_asm_byte+set}" = set; then
29507 echo $ECHO_N "(cached) $ECHO_C" >&6
29509 for i
in .byte data1
; do
29510 echo "trying $i" >&5
29511 cat >conftest.s
<<EOF
29516 gmp_assemble
="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
29517 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
29518 (eval $gmp_assemble) 2>&5
29520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29521 (exit $ac_status); }; then
29522 cat conftest.out
>&5
29527 cat conftest.out
>&5
29528 echo "configure: failed program was:" >&5
29530 cat conftest.out
>&5
29535 if test -z "$gmp_cv_asm_byte"; then
29536 { { echo "$as_me:$LINENO: error: Cannot determine how to emit a data byte" >&5
29537 echo "$as_me: error: Cannot determine how to emit a data byte" >&2;}
29538 { (exit 1); exit 1; }; }
29542 echo "$as_me:$LINENO: result: $gmp_cv_asm_byte" >&5
29543 echo "${ECHO_T}$gmp_cv_asm_byte" >&6
29550 echo "$as_me:$LINENO: checking how to define a 32-bit word" >&5
29551 echo $ECHO_N "checking how to define a 32-bit word... $ECHO_C" >&6
29552 if test "${gmp_cv_asm_w32+set}" = set; then
29553 echo $ECHO_N "(cached) $ECHO_C" >&6
29557 # FIXME: HPUX puts first symbol at 0x40000000, breaking our assumption
29558 # that it's at 0x0. We'll have to declare another symbol before the
29559 # .long/.word and look at the distance between the two symbols. The
29560 # only problem is that the sed expression(s) barfs (on Solaris, for
29561 # example) for the symbol with value 0. For now, HPUX uses .word.
29562 gmp_cv_asm_w32
=".word"
29566 for gmp_tmp_op
in .long .word data4
; do
29567 cat >conftest.s
<<EOF
29569 $gmp_cv_asm_globl foo
29571 foo$gmp_cv_asm_label_suffix
29574 gmp_assemble
="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
29575 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
29576 (eval $gmp_assemble) 2>&5
29578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29579 (exit $ac_status); }; then
29580 cat conftest.out
>&5
29581 gmp_tmp_val
=`$NM conftest.$OBJEXT | grep foo | \
29582 sed -e 's;[[][0-9][]]\(.*\);\1;' -e 's;[^1-9]*\([0-9]*\).*;\1;'`
29583 if test "$gmp_tmp_val" = 4; then
29584 gmp_cv_asm_w32
="$gmp_tmp_op"
29588 cat conftest.out
>&5
29589 echo "configure: failed program was:" >&5
29599 if test -z "$gmp_cv_asm_w32"; then
29600 { { echo "$as_me:$LINENO: error: cannot determine how to define a 32-bit word" >&5
29601 echo "$as_me: error: cannot determine how to define a 32-bit word" >&2;}
29602 { (exit 1); exit 1; }; }
29606 echo "$as_me:$LINENO: result: $gmp_cv_asm_w32" >&5
29607 echo "${ECHO_T}$gmp_cv_asm_w32" >&6
29608 echo "define(<W32>, <$gmp_cv_asm_w32>)" >> $gmp_tmpconfigm4
29615 echo "$as_me:$LINENO: checking if .align assembly directive is logarithmic" >&5
29616 echo $ECHO_N "checking if .align assembly directive is logarithmic... $ECHO_C" >&6
29617 if test "${gmp_cv_asm_align_log+set}" = set; then
29618 echo $ECHO_N "(cached) $ECHO_C" >&6
29620 cat >conftest.s
<<EOF
29623 $gmp_cv_asm_globl foo
29626 foo$gmp_cv_asm_label_suffix
29629 gmp_assemble
="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
29630 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
29631 (eval $gmp_assemble) 2>&5
29633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29634 (exit $ac_status); }; then
29635 cat conftest.out
>&5
29636 gmp_tmp_val
=`$NM conftest.$OBJEXT | grep foo | \
29637 sed -e 's;[[][0-9][]]\(.*\);\1;' -e 's;[^1-9]*\([0-9]*\).*;\1;'`
29638 if test "$gmp_tmp_val" = "10" ||
test "$gmp_tmp_val" = "16"; then
29639 gmp_cv_asm_align_log
=yes
29641 gmp_cv_asm_align_log
=no
29644 cat conftest.out
>&5
29645 echo "configure: failed program was:" >&5
29647 { { echo "$as_me:$LINENO: error: cannot assemble alignment test" >&5
29648 echo "$as_me: error: cannot assemble alignment test" >&2;}
29649 { (exit 1); exit 1; }; }
29654 echo "$as_me:$LINENO: result: $gmp_cv_asm_align_log" >&5
29655 echo "${ECHO_T}$gmp_cv_asm_align_log" >&6
29658 echo "define(<ALIGN_LOGARITHMIC>,<$gmp_cv_asm_align_log>)" >> $gmp_tmpconfigm4
29664 # for both pa32 and pa64
29666 echo "include_mpn(\`pa32/pa-defs.m4')" >> $gmp_tmpconfigm4i
29669 ia64
*-*-* | itanium-
*-* | itanium2-
*-*)
29670 echo "$as_me:$LINENO: checking whether assembler .align padding is good" >&5
29671 echo $ECHO_N "checking whether assembler .align padding is good... $ECHO_C" >&6
29672 if test "${gmp_cv_asm_ia64_align_ok+set}" = set; then
29673 echo $ECHO_N "(cached) $ECHO_C" >&6
29675 cat >conftest.
awk <<\EOF
29731 for (f
= 2; f
<= NF
; f
++)
29733 for (i
= 0; i
< 47; i
++)
29738 for (i
= 0; i
< 48; i
++)
29739 if (got
[i
] != want
[i
])
29755 cat >conftest.s
<<EOF
29758 { .mmi; add r14 = r15, r16
29760 add r20 = r21, r22 ;; }
29762 { .mmi; add r23 = r24, r25
29764 add r29 = r30, r31 ;; }
29767 gmp_assemble
="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
29768 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
29769 (eval $gmp_assemble) 2>&5
29771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29772 (exit $ac_status); }; then
29773 cat conftest.out
>&5
29774 gmp_cv_asm_ia64_align_ok
=`od -b conftest.$OBJEXT | $AWK -f conftest.awk`
29776 cat conftest.out
>&5
29777 echo "configure: failed program was:" >&5
29779 { echo "$as_me:$LINENO: WARNING: oops, cannot compile test program" >&5
29780 echo "$as_me: WARNING: oops, cannot compile test program" >&2;}
29781 gmp_cv_asm_ia64_align_ok
=yes
29787 echo "$as_me:$LINENO: result: $gmp_cv_asm_ia64_align_ok" >&5
29788 echo "${ECHO_T}$gmp_cv_asm_ia64_align_ok" >&6
29790 echo "define(<IA64_ALIGN_OK>, <\`$gmp_cv_asm_ia64_align_ok'>)" >> $gmp_tmpconfigm4
29794 m68k-
*-* | m68
[0-9][0-9][0-9]-*-*)
29796 echo "$as_me:$LINENO: checking assembler instruction and register style" >&5
29797 echo $ECHO_N "checking assembler instruction and register style... $ECHO_C" >&6
29798 if test "${gmp_cv_asm_m68k_instruction+set}" = set; then
29799 echo $ECHO_N "(cached) $ECHO_C" >&6
29801 for i
in "addl %d0,%d1" "add.l %d0,%d1" "addl d0,d1" "add.l d0,d1"; do
29802 cat >conftest.s
<<EOF
29806 gmp_assemble
="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
29807 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
29808 (eval $gmp_assemble) 2>&5
29810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29811 (exit $ac_status); }; then
29812 cat conftest.out
>&5
29813 gmp_cv_asm_m68k_instruction
=$i
29817 cat conftest.out
>&5
29818 echo "configure: failed program was:" >&5
29825 if test -z "$gmp_cv_asm_m68k_instruction"; then
29826 { { echo "$as_me:$LINENO: error: cannot determine assembler instruction and register style" >&5
29827 echo "$as_me: error: cannot determine assembler instruction and register style" >&2;}
29828 { (exit 1); exit 1; }; }
29832 echo "$as_me:$LINENO: result: $gmp_cv_asm_m68k_instruction" >&5
29833 echo "${ECHO_T}$gmp_cv_asm_m68k_instruction" >&6
29834 case $gmp_cv_asm_m68k_instruction in
29835 "addl d0,d1") want_dot_size
=no
; want_register_percent
=no
;;
29836 "addl %d0,%d1") want_dot_size
=no
; want_register_percent
=yes ;;
29837 "add.l d0,d1") want_dot_size
=yes; want_register_percent
=no
;;
29838 "add.l %d0,%d1") want_dot_size
=yes; want_register_percent
=yes ;;
29839 *) { { echo "$as_me:$LINENO: error: oops, unrecognised instruction and register style" >&5
29840 echo "$as_me: error: oops, unrecognised instruction and register style" >&2;}
29841 { (exit 1); exit 1; }; } ;;
29844 echo "define(<WANT_REGISTER_PERCENT>, <\`$want_register_percent'>)" >> $gmp_tmpconfigm4
29847 echo "define(<WANT_DOT_SIZE>, <\`$want_dot_size'>)" >> $gmp_tmpconfigm4
29852 echo "$as_me:$LINENO: checking assembler addressing style" >&5
29853 echo $ECHO_N "checking assembler addressing style... $ECHO_C" >&6
29854 if test "${gmp_cv_asm_m68k_addressing+set}" = set; then
29855 echo $ECHO_N "(cached) $ECHO_C" >&6
29857 case $gmp_cv_asm_m68k_instruction in
29858 addl
*) movel
=movel
;;
29859 add.l
*) movel
=move.l
;;
29860 *) { { echo "$as_me:$LINENO: error: oops, unrecognised gmp_cv_asm_m68k_instruction" >&5
29861 echo "$as_me: error: oops, unrecognised gmp_cv_asm_m68k_instruction" >&2;}
29862 { (exit 1); exit 1; }; } ;;
29864 case $gmp_cv_asm_m68k_instruction in
29865 *"%d0,%d1") dreg
=%d0
; areg
=%a0
;;
29866 *"d0,d1") dreg
=d0
; areg
=a0
;;
29867 *) { { echo "$as_me:$LINENO: error: oops, unrecognised gmp_cv_asm_m68k_instruction" >&5
29868 echo "$as_me: error: oops, unrecognised gmp_cv_asm_m68k_instruction" >&2;}
29869 { (exit 1); exit 1; }; } ;;
29871 cat >conftest.s
<<EOF
29873 $movel $dreg, $areg@-
29875 gmp_assemble
="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
29876 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
29877 (eval $gmp_assemble) 2>&5
29879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29880 (exit $ac_status); }; then
29881 cat conftest.out
>&5
29882 gmp_cv_asm_m68k_addressing
=mit
29884 cat conftest.out
>&5
29885 echo "configure: failed program was:" >&5
29887 cat >conftest.s
<<EOF
29889 $movel $dreg, -($areg)
29891 gmp_assemble
="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
29892 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
29893 (eval $gmp_assemble) 2>&5
29895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29896 (exit $ac_status); }; then
29897 cat conftest.out
>&5
29898 gmp_cv_asm_m68k_addressing
=motorola
29900 cat conftest.out
>&5
29901 echo "configure: failed program was:" >&5
29903 { { echo "$as_me:$LINENO: error: cannot determine assembler addressing style" >&5
29904 echo "$as_me: error: cannot determine assembler addressing style" >&2;}
29905 { (exit 1); exit 1; }; }
29914 echo "$as_me:$LINENO: result: $gmp_cv_asm_m68k_addressing" >&5
29915 echo "${ECHO_T}$gmp_cv_asm_m68k_addressing" >&6
29917 echo "define(<WANT_ADDRESSING>, <\`$gmp_cv_asm_m68k_addressing'>)" >> $gmp_tmpconfigm4
29921 echo "$as_me:$LINENO: checking assembler shortest branches" >&5
29922 echo $ECHO_N "checking assembler shortest branches... $ECHO_C" >&6
29923 if test "${gmp_cv_asm_m68k_branches+set}" = set; then
29924 echo $ECHO_N "(cached) $ECHO_C" >&6
29926 for i
in jra jbra bra
; do
29927 cat >conftest.s
<<EOF
29929 foo$gmp_cv_asm_label_suffix
29932 gmp_assemble
="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
29933 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
29934 (eval $gmp_assemble) 2>&5
29936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29937 (exit $ac_status); }; then
29938 cat conftest.out
>&5
29939 gmp_cv_asm_m68k_branches
=$i
29943 cat conftest.out
>&5
29944 echo "configure: failed program was:" >&5
29951 if test -z "$gmp_cv_asm_m68k_branches"; then
29952 { { echo "$as_me:$LINENO: error: cannot determine assembler branching style" >&5
29953 echo "$as_me: error: cannot determine assembler branching style" >&2;}
29954 { (exit 1); exit 1; }; }
29958 echo "$as_me:$LINENO: result: $gmp_cv_asm_m68k_branches" >&5
29959 echo "${ECHO_T}$gmp_cv_asm_m68k_branches" >&6
29961 echo "define(<WANT_BRANCHES>, <\`$gmp_cv_asm_m68k_branches'>)" >> $gmp_tmpconfigm4
29965 powerpc
*-*-* | power
[3-9]-*-*)
29967 echo "$as_me:$LINENO: checking whether compiler output is PIC by default" >&5
29968 echo $ECHO_N "checking whether compiler output is PIC by default... $ECHO_C" >&6
29969 if test "${gmp_cv_asm_powerpc_pic+set}" = set; then
29970 echo $ECHO_N "(cached) $ECHO_C" >&6
29972 gmp_cv_asm_powerpc_pic
=yes
29973 cat >conftest.c
<<EOF
29975 int *bar() { return &foo; }
29977 echo "Test program:" >&5
29979 gmp_compile
="$CC $CFLAGS $CPPFLAGS -S conftest.c >&5"
29980 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
29981 (eval $gmp_compile) 2>&5
29983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29984 (exit $ac_status); }; then
29985 echo "Compiler output:" >&5
29987 if grep 'foo@ha' conftest.s
>/dev
/null
2>&5; then
29988 gmp_cv_asm_powerpc_pic
=no
29990 if grep 'ha16(_foo)' conftest.s
>/dev
/null
2>&5; then
29991 gmp_cv_asm_powerpc_pic
=no
29997 echo "$as_me:$LINENO: result: $gmp_cv_asm_powerpc_pic" >&5
29998 echo "${ECHO_T}$gmp_cv_asm_powerpc_pic" >&6
30000 echo "define(<PIC_ALWAYS>,<$gmp_cv_asm_powerpc_pic>)" >> $gmp_tmpconfigm4
30004 echo "$as_me:$LINENO: checking if the assembler needs r on registers" >&5
30005 echo $ECHO_N "checking if the assembler needs r on registers... $ECHO_C" >&6
30006 if test "${gmp_cv_asm_powerpc_r_registers+set}" = set; then
30007 echo $ECHO_N "(cached) $ECHO_C" >&6
30009 cat >conftest.s
<<EOF
30013 gmp_assemble
="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
30014 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
30015 (eval $gmp_assemble) 2>&5
30017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30018 (exit $ac_status); }; then
30019 cat conftest.out
>&5
30020 gmp_cv_asm_powerpc_r_registers
=no
30022 cat conftest.out
>&5
30023 echo "configure: failed program was:" >&5
30025 cat >conftest.s
<<EOF
30029 gmp_assemble
="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
30030 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
30031 (eval $gmp_assemble) 2>&5
30033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30034 (exit $ac_status); }; then
30035 cat conftest.out
>&5
30036 gmp_cv_asm_powerpc_r_registers
=yes
30038 cat conftest.out
>&5
30039 echo "configure: failed program was:" >&5
30041 { { echo "$as_me:$LINENO: error: neither \"mtctr 6\" nor \"mtctr r6\" works" >&5
30042 echo "$as_me: error: neither \"mtctr 6\" nor \"mtctr r6\" works" >&2;}
30043 { (exit 1); exit 1; }; }
30051 echo "$as_me:$LINENO: result: $gmp_cv_asm_powerpc_r_registers" >&5
30052 echo "${ECHO_T}$gmp_cv_asm_powerpc_r_registers" >&6
30055 echo "define(<WANT_R_REGISTERS>,<$gmp_cv_asm_powerpc_r_registers>)" >> $gmp_tmpconfigm4
30059 echo "include_mpn(\`powerpc32/powerpc-defs.m4')" >> $gmp_tmpconfigm4i
30065 echo "include_mpn(\`powerpc64/aix.m4')" >> $gmp_tmpconfigm4i
30068 echo "include_mpn(\`powerpc32/aix.m4')" >> $gmp_tmpconfigm4i
30072 *-*-linux* |
*-*-*bsd
*)
30075 echo "include_mpn(\`powerpc64/elf.m4')" >> $gmp_tmpconfigm4i
30078 echo "include_mpn(\`powerpc32/elf.m4')" >> $gmp_tmpconfigm4i
30085 echo "include_mpn(\`powerpc64/darwin.m4')" >> $gmp_tmpconfigm4i
30088 echo "include_mpn(\`powerpc32/darwin.m4')" >> $gmp_tmpconfigm4i
30093 # Assume unrecognized operating system is the powerpc eABI
30095 echo "include_mpn(\`powerpc32/eabi.m4')" >> $gmp_tmpconfigm4i
30102 echo "include_mpn(\`powerpc32/aix.m4')" >> $gmp_tmpconfigm4i
30105 sparcv9
*-*-* | ultrasparc
*-*-* | sparc64-
*-*)
30109 echo "$as_me:$LINENO: checking if the assembler accepts \".register\"" >&5
30110 echo $ECHO_N "checking if the assembler accepts \".register\"... $ECHO_C" >&6
30111 if test "${gmp_cv_asm_sparc_register+set}" = set; then
30112 echo $ECHO_N "(cached) $ECHO_C" >&6
30114 cat >conftest.s
<<EOF
30116 .register %g2,#scratch
30119 gmp_assemble
="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
30120 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
30121 (eval $gmp_assemble) 2>&5
30123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30124 (exit $ac_status); }; then
30125 cat conftest.out
>&5
30126 gmp_cv_asm_sparc_register
=yes
30128 cat conftest.out
>&5
30129 echo "configure: failed program was:" >&5
30131 gmp_cv_asm_sparc_register
=no
30136 echo "$as_me:$LINENO: result: $gmp_cv_asm_sparc_register" >&5
30137 echo "${ECHO_T}$gmp_cv_asm_sparc_register" >&6
30140 echo "define(<HAVE_REGISTER>,<$gmp_cv_asm_sparc_register>)" >> $gmp_tmpconfigm4
30146 i?
86*-*-* | k
[5-8]*-*-* | pentium
*-*-* | athlon-
*-* | viac3
*-*-* | geode
*-*-* | athlon64-
*-* | atom-
*-* | core2-
*-* | x86_64-
*-*)
30148 echo "$as_me:$LINENO: checking if the .align directive accepts an 0x90 fill in .text" >&5
30149 echo $ECHO_N "checking if the .align directive accepts an 0x90 fill in .text... $ECHO_C" >&6
30150 if test "${gmp_cv_asm_align_fill_0x90+set}" = set; then
30151 echo $ECHO_N "(cached) $ECHO_C" >&6
30153 cat >conftest.s
<<EOF
30159 gmp_assemble
="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
30160 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
30161 (eval $gmp_assemble) 2>&5
30163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30164 (exit $ac_status); }; then
30165 cat conftest.out
>&5
30166 if grep "Warning: Fill parameter ignored for executable section" conftest.out
>/dev
/null
; then
30167 echo "Supressing this warning by omitting 0x90" 1>&5
30168 gmp_cv_asm_align_fill_0x90
=no
30170 gmp_cv_asm_align_fill_0x90
=yes
30173 cat conftest.out
>&5
30174 echo "configure: failed program was:" >&5
30176 gmp_cv_asm_align_fill_0x90
=no
30181 echo "$as_me:$LINENO: result: $gmp_cv_asm_align_fill_0x90" >&5
30182 echo "${ECHO_T}$gmp_cv_asm_align_fill_0x90" >&6
30185 echo "define(<ALIGN_FILL_0x90>,<$gmp_cv_asm_align_fill_0x90>)" >> $gmp_tmpconfigm4
30191 echo "include_mpn(\`x86/x86-defs.m4')" >> $gmp_tmpconfigm4i
30193 cat >>confdefs.h
<<\_ACEOF
30194 #define HAVE_HOST_CPU_FAMILY_x86 1
30202 echo "$as_me:$LINENO: checking for assembler COFF type directives" >&5
30203 echo $ECHO_N "checking for assembler COFF type directives... $ECHO_C" >&6
30204 if test "${gmp_cv_asm_x86_coff_type+set}" = set; then
30205 echo $ECHO_N "(cached) $ECHO_C" >&6
30207 cat >conftest.s
<<EOF
30209 $gmp_cv_asm_globl ${tmp_gsym_prefix}foo$gmp_cv_asm_globl_attr
30210 .def ${tmp_gsym_prefix}foo
30214 ${tmp_gsym_prefix}foo$gmp_cv_asm_label_suffix
30217 gmp_assemble
="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
30218 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
30219 (eval $gmp_assemble) 2>&5
30221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30222 (exit $ac_status); }; then
30223 cat conftest.out
>&5
30224 gmp_cv_asm_x86_coff_type
=yes
30226 cat conftest.out
>&5
30227 echo "configure: failed program was:" >&5
30229 gmp_cv_asm_x86_coff_type
=no
30235 echo "$as_me:$LINENO: result: $gmp_cv_asm_x86_coff_type" >&5
30236 echo "${ECHO_T}$gmp_cv_asm_x86_coff_type" >&6
30237 echo "define(<HAVE_COFF_TYPE>, <$gmp_cv_asm_x86_coff_type>)" >> $gmp_tmpconfigm4
30245 echo "$as_me:$LINENO: checking if _GLOBAL_OFFSET_TABLE_ is prefixed by underscore" >&5
30246 echo $ECHO_N "checking if _GLOBAL_OFFSET_TABLE_ is prefixed by underscore... $ECHO_C" >&6
30247 if test "${gmp_cv_asm_x86_got_underscore+set}" = set; then
30248 echo $ECHO_N "(cached) $ECHO_C" >&6
30250 gmp_cv_asm_x86_got_underscore
="not applicable"
30251 if test $gmp_cv_asm_underscore = yes; then
30256 for tmp_underscore
in "" "_"; do
30257 cat >conftest.s
<<EOF
30259 $gmp_cv_asm_globl ${tmp_gsym_prefix}main$gmp_cv_asm_globl_attr
30260 ${tmp_gsym_prefix}main$gmp_cv_asm_label_suffix
30261 addl $ ${tmp_underscore}_GLOBAL_OFFSET_TABLE_, %ebx
30263 gmp_compile
="$CCAS $CFLAGS $CPPFLAGS $lt_prog_compiler_pic conftest.s >&5 && $CC $CFLAGS $CPPFLAGS $lt_prog_compiler_pic conftest.$OBJEXT >&5"
30264 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
30265 (eval $gmp_compile) 2>&5
30267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30268 (exit $ac_status); }; then
30269 if test "$tmp_underscore" = "_"; then
30270 gmp_cv_asm_x86_got_underscore
=yes
30272 gmp_cv_asm_x86_got_underscore
=no
30277 rm -f conftest
* a.out b.out a.exe a_out.exe
30280 echo "$as_me:$LINENO: result: $gmp_cv_asm_x86_got_underscore" >&5
30281 echo "${ECHO_T}$gmp_cv_asm_x86_got_underscore" >&6
30282 if test "$gmp_cv_asm_x86_got_underscore" = "yes"; then
30284 echo 'define(<GOT_GSYM_PREFIX>, <_>)' >>$gmp_tmpconfigm4
30288 echo 'define(<GOT_GSYM_PREFIX>, <>)' >>$gmp_tmpconfigm4
30293 echo "$as_me:$LINENO: checking if the assembler takes cl with shldl" >&5
30294 echo $ECHO_N "checking if the assembler takes cl with shldl... $ECHO_C" >&6
30295 if test "${gmp_cv_asm_x86_shldl_cl+set}" = set; then
30296 echo $ECHO_N "(cached) $ECHO_C" >&6
30298 cat >conftest.s
<<EOF
30300 shldl %cl, %eax, %ebx
30302 gmp_assemble
="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
30303 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
30304 (eval $gmp_assemble) 2>&5
30306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30307 (exit $ac_status); }; then
30308 cat conftest.out
>&5
30309 gmp_cv_asm_x86_shldl_cl
=yes
30311 cat conftest.out
>&5
30312 echo "configure: failed program was:" >&5
30314 gmp_cv_asm_x86_shldl_cl
=no
30320 echo "$as_me:$LINENO: result: $gmp_cv_asm_x86_shldl_cl" >&5
30321 echo "${ECHO_T}$gmp_cv_asm_x86_shldl_cl" >&6
30322 if test "$gmp_cv_asm_x86_shldl_cl" = "yes"; then
30324 echo 'define(<WANT_SHLDL_CL>, <1>)' >>$gmp_tmpconfigm4
30328 echo 'define(<WANT_SHLDL_CL>, <0>)' >>$gmp_tmpconfigm4
30332 case $enable_profiling in
30335 echo "$as_me:$LINENO: checking how to call x86 mcount" >&5
30336 echo $ECHO_N "checking how to call x86 mcount... $ECHO_C" >&6
30337 cat >conftest.c
<<EOF
30341 if test "$enable_static" = yes; then
30342 gmp_asmout_compile
="$CC $CFLAGS $CPPFLAGS -S conftest.c 1>&5"
30343 if { (eval echo "$as_me:$LINENO: \"$gmp_asmout_compile\"") >&5
30344 (eval $gmp_asmout_compile) 2>&5
30346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30347 (exit $ac_status); }; then
30348 if grep '\.data' conftest.s
>/dev
/null
; then
30349 mcount_nonpic_reg
=`sed -n '/esp/!s/.*movl.*,\(%[a-z]*\).*$/\1/p' conftest.s`
30353 mcount_nonpic_call
=`grep 'call.*mcount' conftest.s`
30354 if test -z "$mcount_nonpic_call"; then
30355 { { echo "$as_me:$LINENO: error: Cannot find mcount call for non-PIC" >&5
30356 echo "$as_me: error: Cannot find mcount call for non-PIC" >&2;}
30357 { (exit 1); exit 1; }; }
30360 { { echo "$as_me:$LINENO: error: Cannot compile test program for non-PIC" >&5
30361 echo "$as_me: error: Cannot compile test program for non-PIC" >&2;}
30362 { (exit 1); exit 1; }; }
30366 if test "$enable_shared" = yes; then
30367 gmp_asmout_compile
="$CC $CFLAGS $CPPFLAGS $lt_prog_compiler_pic -S conftest.c 1>&5"
30368 if { (eval echo "$as_me:$LINENO: \"$gmp_asmout_compile\"") >&5
30369 (eval $gmp_asmout_compile) 2>&5
30371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30372 (exit $ac_status); }; then
30373 if grep '\.data' conftest.s
>/dev
/null
; then
30374 case $lt_prog_compiler_pic in
30376 # Windows DLLs have non-PIC style mcount
30377 mcount_pic_reg
=`sed -n '/esp/!s/.*movl.*,\(%[a-z]*\).*$/\1/p' conftest.s`
30380 mcount_pic_reg
=`sed -n 's/.*GOTOFF.*,\(%[a-z]*\).*$/\1/p' conftest.s`
30386 mcount_pic_call
=`grep 'call.*mcount' conftest.s`
30387 if test -z "$mcount_pic_call"; then
30388 { { echo "$as_me:$LINENO: error: Cannot find mcount call for PIC" >&5
30389 echo "$as_me: error: Cannot find mcount call for PIC" >&2;}
30390 { (exit 1); exit 1; }; }
30393 { { echo "$as_me:$LINENO: error: Cannot compile test program for PIC" >&5
30394 echo "$as_me: error: Cannot compile test program for PIC" >&2;}
30395 { (exit 1); exit 1; }; }
30400 echo "define(<MCOUNT_NONPIC_REG>, <\`$mcount_nonpic_reg'>)" >> $gmp_tmpconfigm4
30403 echo "define(<MCOUNT_NONPIC_CALL>,<\`$mcount_nonpic_call'>)" >> $gmp_tmpconfigm4
30406 echo "define(<MCOUNT_PIC_REG>, <\`$mcount_pic_reg'>)" >> $gmp_tmpconfigm4
30409 echo "define(<MCOUNT_PIC_CALL>, <\`$mcount_pic_call'>)" >> $gmp_tmpconfigm4
30413 echo "$as_me:$LINENO: result: determined" >&5
30414 echo "${ECHO_T}determined" >&6
30420 echo "include_mpn(\`x86/darwin.m4')" >> $gmp_tmpconfigm4i
30426 echo "include_mpn(\`x86_64/x86_64-defs.m4')" >> $gmp_tmpconfigm4i
30431 echo "include_mpn(\`x86_64/darwin.m4')" >> $gmp_tmpconfigm4i
30440 # For --enable-minithres, prepend "minithres" to path so that its special
30441 # gmp-mparam.h will be used.
30442 if test $enable_minithres = yes; then
30443 path
="minithres $path"
30446 # Create link for gmp-mparam.h.
30448 for gmp_mparam_dir
in $path; do
30449 test "$no_create" = yes ||
rm -f gmp-mparam.h
30450 tmp_file
=$srcdir/mpn
/$gmp_mparam_dir/gmp-mparam.h
30451 if test -f $tmp_file; then
30452 ac_config_links
="$ac_config_links gmp-mparam.h:mpn/$gmp_mparam_dir/gmp-mparam.h"
30454 gmp_srclinks
="$gmp_srclinks gmp-mparam.h"
30455 gmp_mparam_source
=$tmp_file
30459 if test -z "$gmp_mparam_source"; then
30460 { { echo "$as_me:$LINENO: error: no version of gmp-mparam.h found in path: $path" >&5
30461 echo "$as_me: error: no version of gmp-mparam.h found in path: $path" >&2;}
30462 { (exit 1); exit 1; }; }
30465 # For a helpful message from tune/tuneup.c
30466 gmp_mparam_suggest
=$gmp_mparam_source
30467 if test "$gmp_mparam_dir" = generic
; then
30468 for i
in $path; do break; done
30469 if test "$i" != generic
; then
30470 gmp_mparam_suggest
="new file $srcdir/mpn/$i/gmp-mparam.h"
30474 cat >>confdefs.h
<<_ACEOF
30475 #define GMP_MPARAM_H_SUGGEST "$gmp_mparam_source"
30480 # Copy any SQR_KARATSUBA_THRESHOLD from gmp-mparam.h to config.m4.
30481 # Some versions of sqr_basecase.asm use this.
30482 # Fat binaries do this on a per-file basis, so skip in that case.
30484 if test -z "$fat_path"; then
30485 tmp_gmp_karatsuba_sqr_threshold
=`sed -n 's/^#define SQR_KARATSUBA_THRESHOLD[ ]*\([0-9][0-9]*\).*$/\1/p' $gmp_mparam_source`
30486 if test -n "$tmp_gmp_karatsuba_sqr_threshold"; then
30488 echo "define(<SQR_KARATSUBA_THRESHOLD>,<$tmp_gmp_karatsuba_sqr_threshold>)" >> $gmp_tmpconfigm4
30494 # Sizes of some types, needed at preprocessing time.
30496 # FIXME: The assumption that BITS_PER_MP_LIMB is 8*sizeof(mp_limb_t) might
30497 # be slightly rash, but it's true everwhere we know of and ought to be true
30498 # of any sensible system. In a generic C build, grepping LONG_BIT out of
30499 # <limits.h> might be an alternative, for maximum portability.
30501 echo "$as_me:$LINENO: checking for unsigned short" >&5
30502 echo $ECHO_N "checking for unsigned short... $ECHO_C" >&6
30503 if test "${ac_cv_type_unsigned_short+set}" = set; then
30504 echo $ECHO_N "(cached) $ECHO_C" >&6
30506 cat >conftest.
$ac_ext <<_ACEOF
30509 cat confdefs.h
>>conftest.
$ac_ext
30510 cat >>conftest.
$ac_ext <<_ACEOF
30511 /* end confdefs.h. */
30512 $ac_includes_default
30516 if ((unsigned short *) 0)
30518 if (sizeof (unsigned short))
30524 rm -f conftest.
$ac_objext
30525 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30526 (eval $ac_compile) 2>conftest.er1
30528 grep -v '^ *+' conftest.er1
>conftest.err
30530 cat conftest.err
>&5
30531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30532 (exit $ac_status); } &&
30533 { ac_try
='test -z "$ac_c_werror_flag"
30534 || test ! -s conftest.err'
30535 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30536 (eval $ac_try) 2>&5
30538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30539 (exit $ac_status); }; } &&
30540 { ac_try
='test -s conftest.$ac_objext'
30541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30542 (eval $ac_try) 2>&5
30544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30545 (exit $ac_status); }; }; then
30546 ac_cv_type_unsigned_short
=yes
30548 echo "$as_me: failed program was:" >&5
30549 sed 's/^/| /' conftest.
$ac_ext >&5
30551 ac_cv_type_unsigned_short
=no
30553 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
30555 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short" >&5
30556 echo "${ECHO_T}$ac_cv_type_unsigned_short" >&6
30558 echo "$as_me:$LINENO: checking size of unsigned short" >&5
30559 echo $ECHO_N "checking size of unsigned short... $ECHO_C" >&6
30560 if test "${ac_cv_sizeof_unsigned_short+set}" = set; then
30561 echo $ECHO_N "(cached) $ECHO_C" >&6
30563 if test "$ac_cv_type_unsigned_short" = yes; then
30564 # The cast to unsigned long works around a bug in the HP C Compiler
30565 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
30566 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
30567 # This bug is HP SR number 8606223364.
30568 if test "$cross_compiling" = yes; then
30569 # Depending upon the size, compute the lo and hi bounds.
30570 cat >conftest.
$ac_ext <<_ACEOF
30573 cat confdefs.h
>>conftest.
$ac_ext
30574 cat >>conftest.
$ac_ext <<_ACEOF
30575 /* end confdefs.h. */
30576 $ac_includes_default
30580 static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) >= 0)];
30587 rm -f conftest.
$ac_objext
30588 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30589 (eval $ac_compile) 2>conftest.er1
30591 grep -v '^ *+' conftest.er1
>conftest.err
30593 cat conftest.err
>&5
30594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30595 (exit $ac_status); } &&
30596 { ac_try
='test -z "$ac_c_werror_flag"
30597 || test ! -s conftest.err'
30598 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30599 (eval $ac_try) 2>&5
30601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30602 (exit $ac_status); }; } &&
30603 { ac_try
='test -s conftest.$ac_objext'
30604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30605 (eval $ac_try) 2>&5
30607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30608 (exit $ac_status); }; }; then
30611 cat >conftest.
$ac_ext <<_ACEOF
30614 cat confdefs.h
>>conftest.
$ac_ext
30615 cat >>conftest.
$ac_ext <<_ACEOF
30616 /* end confdefs.h. */
30617 $ac_includes_default
30621 static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) <= $ac_mid)];
30628 rm -f conftest.
$ac_objext
30629 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30630 (eval $ac_compile) 2>conftest.er1
30632 grep -v '^ *+' conftest.er1
>conftest.err
30634 cat conftest.err
>&5
30635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30636 (exit $ac_status); } &&
30637 { ac_try
='test -z "$ac_c_werror_flag"
30638 || test ! -s conftest.err'
30639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30640 (eval $ac_try) 2>&5
30642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30643 (exit $ac_status); }; } &&
30644 { ac_try
='test -s conftest.$ac_objext'
30645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30646 (eval $ac_try) 2>&5
30648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30649 (exit $ac_status); }; }; then
30650 ac_hi
=$ac_mid; break
30652 echo "$as_me: failed program was:" >&5
30653 sed 's/^/| /' conftest.
$ac_ext >&5
30655 ac_lo
=`expr $ac_mid + 1`
30656 if test $ac_lo -le $ac_mid; then
30660 ac_mid
=`expr 2 '*' $ac_mid + 1`
30662 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
30665 echo "$as_me: failed program was:" >&5
30666 sed 's/^/| /' conftest.
$ac_ext >&5
30668 cat >conftest.
$ac_ext <<_ACEOF
30671 cat confdefs.h
>>conftest.
$ac_ext
30672 cat >>conftest.
$ac_ext <<_ACEOF
30673 /* end confdefs.h. */
30674 $ac_includes_default
30678 static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) < 0)];
30685 rm -f conftest.
$ac_objext
30686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30687 (eval $ac_compile) 2>conftest.er1
30689 grep -v '^ *+' conftest.er1
>conftest.err
30691 cat conftest.err
>&5
30692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30693 (exit $ac_status); } &&
30694 { ac_try
='test -z "$ac_c_werror_flag"
30695 || test ! -s conftest.err'
30696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30697 (eval $ac_try) 2>&5
30699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30700 (exit $ac_status); }; } &&
30701 { ac_try
='test -s conftest.$ac_objext'
30702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30703 (eval $ac_try) 2>&5
30705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30706 (exit $ac_status); }; }; then
30709 cat >conftest.
$ac_ext <<_ACEOF
30712 cat confdefs.h
>>conftest.
$ac_ext
30713 cat >>conftest.
$ac_ext <<_ACEOF
30714 /* end confdefs.h. */
30715 $ac_includes_default
30719 static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) >= $ac_mid)];
30726 rm -f conftest.
$ac_objext
30727 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30728 (eval $ac_compile) 2>conftest.er1
30730 grep -v '^ *+' conftest.er1
>conftest.err
30732 cat conftest.err
>&5
30733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30734 (exit $ac_status); } &&
30735 { ac_try
='test -z "$ac_c_werror_flag"
30736 || test ! -s conftest.err'
30737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30738 (eval $ac_try) 2>&5
30740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30741 (exit $ac_status); }; } &&
30742 { ac_try
='test -s conftest.$ac_objext'
30743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30744 (eval $ac_try) 2>&5
30746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30747 (exit $ac_status); }; }; then
30748 ac_lo
=$ac_mid; break
30750 echo "$as_me: failed program was:" >&5
30751 sed 's/^/| /' conftest.
$ac_ext >&5
30753 ac_hi
=`expr '(' $ac_mid ')' - 1`
30754 if test $ac_mid -le $ac_hi; then
30758 ac_mid
=`expr 2 '*' $ac_mid`
30760 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
30763 echo "$as_me: failed program was:" >&5
30764 sed 's/^/| /' conftest.
$ac_ext >&5
30768 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
30770 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
30771 # Binary search between lo and hi bounds.
30772 while test "x$ac_lo" != "x$ac_hi"; do
30773 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
30774 cat >conftest.
$ac_ext <<_ACEOF
30777 cat confdefs.h
>>conftest.
$ac_ext
30778 cat >>conftest.
$ac_ext <<_ACEOF
30779 /* end confdefs.h. */
30780 $ac_includes_default
30784 static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) <= $ac_mid)];
30791 rm -f conftest.
$ac_objext
30792 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30793 (eval $ac_compile) 2>conftest.er1
30795 grep -v '^ *+' conftest.er1
>conftest.err
30797 cat conftest.err
>&5
30798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30799 (exit $ac_status); } &&
30800 { ac_try
='test -z "$ac_c_werror_flag"
30801 || test ! -s conftest.err'
30802 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30803 (eval $ac_try) 2>&5
30805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30806 (exit $ac_status); }; } &&
30807 { ac_try
='test -s conftest.$ac_objext'
30808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30809 (eval $ac_try) 2>&5
30811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30812 (exit $ac_status); }; }; then
30815 echo "$as_me: failed program was:" >&5
30816 sed 's/^/| /' conftest.
$ac_ext >&5
30818 ac_lo
=`expr '(' $ac_mid ')' + 1`
30820 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
30823 ?
*) ac_cv_sizeof_unsigned_short
=$ac_lo;;
30824 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short), 77
30825 See \`config.log' for more details." >&5
30826 echo "$as_me: error: cannot compute sizeof (unsigned short), 77
30827 See \`config.log' for more details." >&2;}
30828 { (exit 1); exit 1; }; } ;;
30831 if test "$cross_compiling" = yes; then
30832 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
30833 See \`config.log' for more details." >&5
30834 echo "$as_me: error: cannot run test program while cross compiling
30835 See \`config.log' for more details." >&2;}
30836 { (exit 1); exit 1; }; }
30838 cat >conftest.
$ac_ext <<_ACEOF
30841 cat confdefs.h
>>conftest.
$ac_ext
30842 cat >>conftest.
$ac_ext <<_ACEOF
30843 /* end confdefs.h. */
30844 $ac_includes_default
30845 long longval () { return (long) (sizeof (unsigned short)); }
30846 unsigned long ulongval () { return (long) (sizeof (unsigned short)); }
30848 #include <stdlib.h>
30853 FILE *f = fopen ("conftest.val", "w");
30856 if (((long) (sizeof (unsigned short))) < 0)
30858 long i = longval ();
30859 if (i != ((long) (sizeof (unsigned short))))
30861 fprintf (f, "%ld\n", i);
30865 unsigned long i = ulongval ();
30866 if (i != ((long) (sizeof (unsigned short))))
30868 fprintf (f, "%lu\n", i);
30870 exit (ferror (f) || fclose (f) != 0);
30876 rm -f conftest
$ac_exeext
30877 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30878 (eval $ac_link) 2>&5
30880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30881 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
30882 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30883 (eval $ac_try) 2>&5
30885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30886 (exit $ac_status); }; }; then
30887 ac_cv_sizeof_unsigned_short
=`cat conftest.val`
30889 echo "$as_me: program exited with status $ac_status" >&5
30890 echo "$as_me: failed program was:" >&5
30891 sed 's/^/| /' conftest.
$ac_ext >&5
30893 ( exit $ac_status )
30894 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short), 77
30895 See \`config.log' for more details." >&5
30896 echo "$as_me: error: cannot compute sizeof (unsigned short), 77
30897 See \`config.log' for more details." >&2;}
30898 { (exit 1); exit 1; }; }
30900 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
30905 ac_cv_sizeof_unsigned_short
=0
30908 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5
30909 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short" >&6
30910 cat >>confdefs.h
<<_ACEOF
30911 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
30915 echo "$as_me:$LINENO: checking for unsigned" >&5
30916 echo $ECHO_N "checking for unsigned... $ECHO_C" >&6
30917 if test "${ac_cv_type_unsigned+set}" = set; then
30918 echo $ECHO_N "(cached) $ECHO_C" >&6
30920 cat >conftest.
$ac_ext <<_ACEOF
30923 cat confdefs.h
>>conftest.
$ac_ext
30924 cat >>conftest.
$ac_ext <<_ACEOF
30925 /* end confdefs.h. */
30926 $ac_includes_default
30930 if ((unsigned *) 0)
30932 if (sizeof (unsigned))
30938 rm -f conftest.
$ac_objext
30939 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30940 (eval $ac_compile) 2>conftest.er1
30942 grep -v '^ *+' conftest.er1
>conftest.err
30944 cat conftest.err
>&5
30945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30946 (exit $ac_status); } &&
30947 { ac_try
='test -z "$ac_c_werror_flag"
30948 || test ! -s conftest.err'
30949 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30950 (eval $ac_try) 2>&5
30952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30953 (exit $ac_status); }; } &&
30954 { ac_try
='test -s conftest.$ac_objext'
30955 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30956 (eval $ac_try) 2>&5
30958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30959 (exit $ac_status); }; }; then
30960 ac_cv_type_unsigned
=yes
30962 echo "$as_me: failed program was:" >&5
30963 sed 's/^/| /' conftest.
$ac_ext >&5
30965 ac_cv_type_unsigned
=no
30967 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
30969 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned" >&5
30970 echo "${ECHO_T}$ac_cv_type_unsigned" >&6
30972 echo "$as_me:$LINENO: checking size of unsigned" >&5
30973 echo $ECHO_N "checking size of unsigned... $ECHO_C" >&6
30974 if test "${ac_cv_sizeof_unsigned+set}" = set; then
30975 echo $ECHO_N "(cached) $ECHO_C" >&6
30977 if test "$ac_cv_type_unsigned" = yes; then
30978 # The cast to unsigned long works around a bug in the HP C Compiler
30979 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
30980 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
30981 # This bug is HP SR number 8606223364.
30982 if test "$cross_compiling" = yes; then
30983 # Depending upon the size, compute the lo and hi bounds.
30984 cat >conftest.
$ac_ext <<_ACEOF
30987 cat confdefs.h
>>conftest.
$ac_ext
30988 cat >>conftest.
$ac_ext <<_ACEOF
30989 /* end confdefs.h. */
30990 $ac_includes_default
30994 static int test_array [1 - 2 * !(((long) (sizeof (unsigned))) >= 0)];
31001 rm -f conftest.
$ac_objext
31002 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31003 (eval $ac_compile) 2>conftest.er1
31005 grep -v '^ *+' conftest.er1
>conftest.err
31007 cat conftest.err
>&5
31008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31009 (exit $ac_status); } &&
31010 { ac_try
='test -z "$ac_c_werror_flag"
31011 || test ! -s conftest.err'
31012 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31013 (eval $ac_try) 2>&5
31015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31016 (exit $ac_status); }; } &&
31017 { ac_try
='test -s conftest.$ac_objext'
31018 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31019 (eval $ac_try) 2>&5
31021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31022 (exit $ac_status); }; }; then
31025 cat >conftest.
$ac_ext <<_ACEOF
31028 cat confdefs.h
>>conftest.
$ac_ext
31029 cat >>conftest.
$ac_ext <<_ACEOF
31030 /* end confdefs.h. */
31031 $ac_includes_default
31035 static int test_array [1 - 2 * !(((long) (sizeof (unsigned))) <= $ac_mid)];
31042 rm -f conftest.
$ac_objext
31043 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31044 (eval $ac_compile) 2>conftest.er1
31046 grep -v '^ *+' conftest.er1
>conftest.err
31048 cat conftest.err
>&5
31049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31050 (exit $ac_status); } &&
31051 { ac_try
='test -z "$ac_c_werror_flag"
31052 || test ! -s conftest.err'
31053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31054 (eval $ac_try) 2>&5
31056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31057 (exit $ac_status); }; } &&
31058 { ac_try
='test -s conftest.$ac_objext'
31059 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31060 (eval $ac_try) 2>&5
31062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31063 (exit $ac_status); }; }; then
31064 ac_hi
=$ac_mid; break
31066 echo "$as_me: failed program was:" >&5
31067 sed 's/^/| /' conftest.
$ac_ext >&5
31069 ac_lo
=`expr $ac_mid + 1`
31070 if test $ac_lo -le $ac_mid; then
31074 ac_mid
=`expr 2 '*' $ac_mid + 1`
31076 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
31079 echo "$as_me: failed program was:" >&5
31080 sed 's/^/| /' conftest.
$ac_ext >&5
31082 cat >conftest.
$ac_ext <<_ACEOF
31085 cat confdefs.h
>>conftest.
$ac_ext
31086 cat >>conftest.
$ac_ext <<_ACEOF
31087 /* end confdefs.h. */
31088 $ac_includes_default
31092 static int test_array [1 - 2 * !(((long) (sizeof (unsigned))) < 0)];
31099 rm -f conftest.
$ac_objext
31100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31101 (eval $ac_compile) 2>conftest.er1
31103 grep -v '^ *+' conftest.er1
>conftest.err
31105 cat conftest.err
>&5
31106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31107 (exit $ac_status); } &&
31108 { ac_try
='test -z "$ac_c_werror_flag"
31109 || test ! -s conftest.err'
31110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31111 (eval $ac_try) 2>&5
31113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31114 (exit $ac_status); }; } &&
31115 { ac_try
='test -s conftest.$ac_objext'
31116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31117 (eval $ac_try) 2>&5
31119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31120 (exit $ac_status); }; }; then
31123 cat >conftest.
$ac_ext <<_ACEOF
31126 cat confdefs.h
>>conftest.
$ac_ext
31127 cat >>conftest.
$ac_ext <<_ACEOF
31128 /* end confdefs.h. */
31129 $ac_includes_default
31133 static int test_array [1 - 2 * !(((long) (sizeof (unsigned))) >= $ac_mid)];
31140 rm -f conftest.
$ac_objext
31141 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31142 (eval $ac_compile) 2>conftest.er1
31144 grep -v '^ *+' conftest.er1
>conftest.err
31146 cat conftest.err
>&5
31147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31148 (exit $ac_status); } &&
31149 { ac_try
='test -z "$ac_c_werror_flag"
31150 || test ! -s conftest.err'
31151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31152 (eval $ac_try) 2>&5
31154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31155 (exit $ac_status); }; } &&
31156 { ac_try
='test -s conftest.$ac_objext'
31157 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31158 (eval $ac_try) 2>&5
31160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31161 (exit $ac_status); }; }; then
31162 ac_lo
=$ac_mid; break
31164 echo "$as_me: failed program was:" >&5
31165 sed 's/^/| /' conftest.
$ac_ext >&5
31167 ac_hi
=`expr '(' $ac_mid ')' - 1`
31168 if test $ac_mid -le $ac_hi; then
31172 ac_mid
=`expr 2 '*' $ac_mid`
31174 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
31177 echo "$as_me: failed program was:" >&5
31178 sed 's/^/| /' conftest.
$ac_ext >&5
31182 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
31184 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
31185 # Binary search between lo and hi bounds.
31186 while test "x$ac_lo" != "x$ac_hi"; do
31187 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
31188 cat >conftest.
$ac_ext <<_ACEOF
31191 cat confdefs.h
>>conftest.
$ac_ext
31192 cat >>conftest.
$ac_ext <<_ACEOF
31193 /* end confdefs.h. */
31194 $ac_includes_default
31198 static int test_array [1 - 2 * !(((long) (sizeof (unsigned))) <= $ac_mid)];
31205 rm -f conftest.
$ac_objext
31206 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31207 (eval $ac_compile) 2>conftest.er1
31209 grep -v '^ *+' conftest.er1
>conftest.err
31211 cat conftest.err
>&5
31212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31213 (exit $ac_status); } &&
31214 { ac_try
='test -z "$ac_c_werror_flag"
31215 || test ! -s conftest.err'
31216 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31217 (eval $ac_try) 2>&5
31219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31220 (exit $ac_status); }; } &&
31221 { ac_try
='test -s conftest.$ac_objext'
31222 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31223 (eval $ac_try) 2>&5
31225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31226 (exit $ac_status); }; }; then
31229 echo "$as_me: failed program was:" >&5
31230 sed 's/^/| /' conftest.
$ac_ext >&5
31232 ac_lo
=`expr '(' $ac_mid ')' + 1`
31234 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
31237 ?
*) ac_cv_sizeof_unsigned
=$ac_lo;;
31238 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned), 77
31239 See \`config.log' for more details." >&5
31240 echo "$as_me: error: cannot compute sizeof (unsigned), 77
31241 See \`config.log' for more details." >&2;}
31242 { (exit 1); exit 1; }; } ;;
31245 if test "$cross_compiling" = yes; then
31246 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
31247 See \`config.log' for more details." >&5
31248 echo "$as_me: error: cannot run test program while cross compiling
31249 See \`config.log' for more details." >&2;}
31250 { (exit 1); exit 1; }; }
31252 cat >conftest.
$ac_ext <<_ACEOF
31255 cat confdefs.h
>>conftest.
$ac_ext
31256 cat >>conftest.
$ac_ext <<_ACEOF
31257 /* end confdefs.h. */
31258 $ac_includes_default
31259 long longval () { return (long) (sizeof (unsigned)); }
31260 unsigned long ulongval () { return (long) (sizeof (unsigned)); }
31262 #include <stdlib.h>
31267 FILE *f = fopen ("conftest.val", "w");
31270 if (((long) (sizeof (unsigned))) < 0)
31272 long i = longval ();
31273 if (i != ((long) (sizeof (unsigned))))
31275 fprintf (f, "%ld\n", i);
31279 unsigned long i = ulongval ();
31280 if (i != ((long) (sizeof (unsigned))))
31282 fprintf (f, "%lu\n", i);
31284 exit (ferror (f) || fclose (f) != 0);
31290 rm -f conftest
$ac_exeext
31291 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31292 (eval $ac_link) 2>&5
31294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31295 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
31296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31297 (eval $ac_try) 2>&5
31299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31300 (exit $ac_status); }; }; then
31301 ac_cv_sizeof_unsigned
=`cat conftest.val`
31303 echo "$as_me: program exited with status $ac_status" >&5
31304 echo "$as_me: failed program was:" >&5
31305 sed 's/^/| /' conftest.
$ac_ext >&5
31307 ( exit $ac_status )
31308 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned), 77
31309 See \`config.log' for more details." >&5
31310 echo "$as_me: error: cannot compute sizeof (unsigned), 77
31311 See \`config.log' for more details." >&2;}
31312 { (exit 1); exit 1; }; }
31314 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
31319 ac_cv_sizeof_unsigned
=0
31322 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned" >&5
31323 echo "${ECHO_T}$ac_cv_sizeof_unsigned" >&6
31324 cat >>confdefs.h
<<_ACEOF
31325 #define SIZEOF_UNSIGNED $ac_cv_sizeof_unsigned
31329 echo "$as_me:$LINENO: checking for unsigned long" >&5
31330 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
31331 if test "${ac_cv_type_unsigned_long+set}" = set; then
31332 echo $ECHO_N "(cached) $ECHO_C" >&6
31334 cat >conftest.
$ac_ext <<_ACEOF
31337 cat confdefs.h
>>conftest.
$ac_ext
31338 cat >>conftest.
$ac_ext <<_ACEOF
31339 /* end confdefs.h. */
31340 $ac_includes_default
31344 if ((unsigned long *) 0)
31346 if (sizeof (unsigned long))
31352 rm -f conftest.
$ac_objext
31353 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31354 (eval $ac_compile) 2>conftest.er1
31356 grep -v '^ *+' conftest.er1
>conftest.err
31358 cat conftest.err
>&5
31359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31360 (exit $ac_status); } &&
31361 { ac_try
='test -z "$ac_c_werror_flag"
31362 || test ! -s conftest.err'
31363 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31364 (eval $ac_try) 2>&5
31366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31367 (exit $ac_status); }; } &&
31368 { ac_try
='test -s conftest.$ac_objext'
31369 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31370 (eval $ac_try) 2>&5
31372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31373 (exit $ac_status); }; }; then
31374 ac_cv_type_unsigned_long
=yes
31376 echo "$as_me: failed program was:" >&5
31377 sed 's/^/| /' conftest.
$ac_ext >&5
31379 ac_cv_type_unsigned_long
=no
31381 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
31383 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
31384 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
31386 echo "$as_me:$LINENO: checking size of unsigned long" >&5
31387 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
31388 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
31389 echo $ECHO_N "(cached) $ECHO_C" >&6
31391 if test "$ac_cv_type_unsigned_long" = yes; then
31392 # The cast to unsigned long works around a bug in the HP C Compiler
31393 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
31394 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
31395 # This bug is HP SR number 8606223364.
31396 if test "$cross_compiling" = yes; then
31397 # Depending upon the size, compute the lo and hi bounds.
31398 cat >conftest.
$ac_ext <<_ACEOF
31401 cat confdefs.h
>>conftest.
$ac_ext
31402 cat >>conftest.
$ac_ext <<_ACEOF
31403 /* end confdefs.h. */
31404 $ac_includes_default
31408 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
31415 rm -f conftest.
$ac_objext
31416 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31417 (eval $ac_compile) 2>conftest.er1
31419 grep -v '^ *+' conftest.er1
>conftest.err
31421 cat conftest.err
>&5
31422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31423 (exit $ac_status); } &&
31424 { ac_try
='test -z "$ac_c_werror_flag"
31425 || test ! -s conftest.err'
31426 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31427 (eval $ac_try) 2>&5
31429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31430 (exit $ac_status); }; } &&
31431 { ac_try
='test -s conftest.$ac_objext'
31432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31433 (eval $ac_try) 2>&5
31435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31436 (exit $ac_status); }; }; then
31439 cat >conftest.
$ac_ext <<_ACEOF
31442 cat confdefs.h
>>conftest.
$ac_ext
31443 cat >>conftest.
$ac_ext <<_ACEOF
31444 /* end confdefs.h. */
31445 $ac_includes_default
31449 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
31456 rm -f conftest.
$ac_objext
31457 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31458 (eval $ac_compile) 2>conftest.er1
31460 grep -v '^ *+' conftest.er1
>conftest.err
31462 cat conftest.err
>&5
31463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31464 (exit $ac_status); } &&
31465 { ac_try
='test -z "$ac_c_werror_flag"
31466 || test ! -s conftest.err'
31467 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31468 (eval $ac_try) 2>&5
31470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31471 (exit $ac_status); }; } &&
31472 { ac_try
='test -s conftest.$ac_objext'
31473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31474 (eval $ac_try) 2>&5
31476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31477 (exit $ac_status); }; }; then
31478 ac_hi
=$ac_mid; break
31480 echo "$as_me: failed program was:" >&5
31481 sed 's/^/| /' conftest.
$ac_ext >&5
31483 ac_lo
=`expr $ac_mid + 1`
31484 if test $ac_lo -le $ac_mid; then
31488 ac_mid
=`expr 2 '*' $ac_mid + 1`
31490 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
31493 echo "$as_me: failed program was:" >&5
31494 sed 's/^/| /' conftest.
$ac_ext >&5
31496 cat >conftest.
$ac_ext <<_ACEOF
31499 cat confdefs.h
>>conftest.
$ac_ext
31500 cat >>conftest.
$ac_ext <<_ACEOF
31501 /* end confdefs.h. */
31502 $ac_includes_default
31506 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
31513 rm -f conftest.
$ac_objext
31514 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31515 (eval $ac_compile) 2>conftest.er1
31517 grep -v '^ *+' conftest.er1
>conftest.err
31519 cat conftest.err
>&5
31520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31521 (exit $ac_status); } &&
31522 { ac_try
='test -z "$ac_c_werror_flag"
31523 || test ! -s conftest.err'
31524 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31525 (eval $ac_try) 2>&5
31527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31528 (exit $ac_status); }; } &&
31529 { ac_try
='test -s conftest.$ac_objext'
31530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31531 (eval $ac_try) 2>&5
31533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31534 (exit $ac_status); }; }; then
31537 cat >conftest.
$ac_ext <<_ACEOF
31540 cat confdefs.h
>>conftest.
$ac_ext
31541 cat >>conftest.
$ac_ext <<_ACEOF
31542 /* end confdefs.h. */
31543 $ac_includes_default
31547 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
31554 rm -f conftest.
$ac_objext
31555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31556 (eval $ac_compile) 2>conftest.er1
31558 grep -v '^ *+' conftest.er1
>conftest.err
31560 cat conftest.err
>&5
31561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31562 (exit $ac_status); } &&
31563 { ac_try
='test -z "$ac_c_werror_flag"
31564 || test ! -s conftest.err'
31565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31566 (eval $ac_try) 2>&5
31568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31569 (exit $ac_status); }; } &&
31570 { ac_try
='test -s conftest.$ac_objext'
31571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31572 (eval $ac_try) 2>&5
31574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31575 (exit $ac_status); }; }; then
31576 ac_lo
=$ac_mid; break
31578 echo "$as_me: failed program was:" >&5
31579 sed 's/^/| /' conftest.
$ac_ext >&5
31581 ac_hi
=`expr '(' $ac_mid ')' - 1`
31582 if test $ac_mid -le $ac_hi; then
31586 ac_mid
=`expr 2 '*' $ac_mid`
31588 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
31591 echo "$as_me: failed program was:" >&5
31592 sed 's/^/| /' conftest.
$ac_ext >&5
31596 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
31598 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
31599 # Binary search between lo and hi bounds.
31600 while test "x$ac_lo" != "x$ac_hi"; do
31601 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
31602 cat >conftest.
$ac_ext <<_ACEOF
31605 cat confdefs.h
>>conftest.
$ac_ext
31606 cat >>conftest.
$ac_ext <<_ACEOF
31607 /* end confdefs.h. */
31608 $ac_includes_default
31612 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
31619 rm -f conftest.
$ac_objext
31620 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31621 (eval $ac_compile) 2>conftest.er1
31623 grep -v '^ *+' conftest.er1
>conftest.err
31625 cat conftest.err
>&5
31626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31627 (exit $ac_status); } &&
31628 { ac_try
='test -z "$ac_c_werror_flag"
31629 || test ! -s conftest.err'
31630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31631 (eval $ac_try) 2>&5
31633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31634 (exit $ac_status); }; } &&
31635 { ac_try
='test -s conftest.$ac_objext'
31636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31637 (eval $ac_try) 2>&5
31639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31640 (exit $ac_status); }; }; then
31643 echo "$as_me: failed program was:" >&5
31644 sed 's/^/| /' conftest.
$ac_ext >&5
31646 ac_lo
=`expr '(' $ac_mid ')' + 1`
31648 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
31651 ?
*) ac_cv_sizeof_unsigned_long
=$ac_lo;;
31652 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
31653 See \`config.log' for more details." >&5
31654 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
31655 See \`config.log' for more details." >&2;}
31656 { (exit 1); exit 1; }; } ;;
31659 if test "$cross_compiling" = yes; then
31660 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
31661 See \`config.log' for more details." >&5
31662 echo "$as_me: error: cannot run test program while cross compiling
31663 See \`config.log' for more details." >&2;}
31664 { (exit 1); exit 1; }; }
31666 cat >conftest.
$ac_ext <<_ACEOF
31669 cat confdefs.h
>>conftest.
$ac_ext
31670 cat >>conftest.
$ac_ext <<_ACEOF
31671 /* end confdefs.h. */
31672 $ac_includes_default
31673 long longval () { return (long) (sizeof (unsigned long)); }
31674 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
31676 #include <stdlib.h>
31681 FILE *f = fopen ("conftest.val", "w");
31684 if (((long) (sizeof (unsigned long))) < 0)
31686 long i = longval ();
31687 if (i != ((long) (sizeof (unsigned long))))
31689 fprintf (f, "%ld\n", i);
31693 unsigned long i = ulongval ();
31694 if (i != ((long) (sizeof (unsigned long))))
31696 fprintf (f, "%lu\n", i);
31698 exit (ferror (f) || fclose (f) != 0);
31704 rm -f conftest
$ac_exeext
31705 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31706 (eval $ac_link) 2>&5
31708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31709 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
31710 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31711 (eval $ac_try) 2>&5
31713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31714 (exit $ac_status); }; }; then
31715 ac_cv_sizeof_unsigned_long
=`cat conftest.val`
31717 echo "$as_me: program exited with status $ac_status" >&5
31718 echo "$as_me: failed program was:" >&5
31719 sed 's/^/| /' conftest.
$ac_ext >&5
31721 ( exit $ac_status )
31722 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
31723 See \`config.log' for more details." >&5
31724 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
31725 See \`config.log' for more details." >&2;}
31726 { (exit 1); exit 1; }; }
31728 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
31733 ac_cv_sizeof_unsigned_long
=0
31736 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
31737 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
31738 cat >>confdefs.h
<<_ACEOF
31739 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
31743 echo "$as_me:$LINENO: checking for mp_limb_t" >&5
31744 echo $ECHO_N "checking for mp_limb_t... $ECHO_C" >&6
31745 if test "${ac_cv_type_mp_limb_t+set}" = set; then
31746 echo $ECHO_N "(cached) $ECHO_C" >&6
31748 cat >conftest.
$ac_ext <<_ACEOF
31751 cat confdefs.h
>>conftest.
$ac_ext
31752 cat >>conftest.
$ac_ext <<_ACEOF
31753 /* end confdefs.h. */
31754 #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
31755 #define GMP_NAIL_BITS $GMP_NAIL_BITS
31756 #define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */
31757 #define GMP_LIMB_BITS 123
31758 $DEFN_LONG_LONG_LIMB
31759 #include "$srcdir/gmp-h.in"
31765 if ((mp_limb_t *) 0)
31767 if (sizeof (mp_limb_t))
31773 rm -f conftest.
$ac_objext
31774 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31775 (eval $ac_compile) 2>conftest.er1
31777 grep -v '^ *+' conftest.er1
>conftest.err
31779 cat conftest.err
>&5
31780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31781 (exit $ac_status); } &&
31782 { ac_try
='test -z "$ac_c_werror_flag"
31783 || test ! -s conftest.err'
31784 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31785 (eval $ac_try) 2>&5
31787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31788 (exit $ac_status); }; } &&
31789 { ac_try
='test -s conftest.$ac_objext'
31790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31791 (eval $ac_try) 2>&5
31793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31794 (exit $ac_status); }; }; then
31795 ac_cv_type_mp_limb_t
=yes
31797 echo "$as_me: failed program was:" >&5
31798 sed 's/^/| /' conftest.
$ac_ext >&5
31800 ac_cv_type_mp_limb_t
=no
31802 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
31804 echo "$as_me:$LINENO: result: $ac_cv_type_mp_limb_t" >&5
31805 echo "${ECHO_T}$ac_cv_type_mp_limb_t" >&6
31807 echo "$as_me:$LINENO: checking size of mp_limb_t" >&5
31808 echo $ECHO_N "checking size of mp_limb_t... $ECHO_C" >&6
31809 if test "${ac_cv_sizeof_mp_limb_t+set}" = set; then
31810 echo $ECHO_N "(cached) $ECHO_C" >&6
31812 if test "$ac_cv_type_mp_limb_t" = yes; then
31813 # The cast to unsigned long works around a bug in the HP C Compiler
31814 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
31815 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
31816 # This bug is HP SR number 8606223364.
31817 if test "$cross_compiling" = yes; then
31818 # Depending upon the size, compute the lo and hi bounds.
31819 cat >conftest.
$ac_ext <<_ACEOF
31822 cat confdefs.h
>>conftest.
$ac_ext
31823 cat >>conftest.
$ac_ext <<_ACEOF
31824 /* end confdefs.h. */
31825 #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
31826 #define GMP_NAIL_BITS $GMP_NAIL_BITS
31827 #define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */
31828 #define GMP_LIMB_BITS 123
31829 $DEFN_LONG_LONG_LIMB
31830 #include "$srcdir/gmp-h.in"
31836 static int test_array [1 - 2 * !(((long) (sizeof (mp_limb_t))) >= 0)];
31843 rm -f conftest.
$ac_objext
31844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31845 (eval $ac_compile) 2>conftest.er1
31847 grep -v '^ *+' conftest.er1
>conftest.err
31849 cat conftest.err
>&5
31850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31851 (exit $ac_status); } &&
31852 { ac_try
='test -z "$ac_c_werror_flag"
31853 || test ! -s conftest.err'
31854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31855 (eval $ac_try) 2>&5
31857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31858 (exit $ac_status); }; } &&
31859 { ac_try
='test -s conftest.$ac_objext'
31860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31861 (eval $ac_try) 2>&5
31863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31864 (exit $ac_status); }; }; then
31867 cat >conftest.
$ac_ext <<_ACEOF
31870 cat confdefs.h
>>conftest.
$ac_ext
31871 cat >>conftest.
$ac_ext <<_ACEOF
31872 /* end confdefs.h. */
31873 #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
31874 #define GMP_NAIL_BITS $GMP_NAIL_BITS
31875 #define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */
31876 #define GMP_LIMB_BITS 123
31877 $DEFN_LONG_LONG_LIMB
31878 #include "$srcdir/gmp-h.in"
31884 static int test_array [1 - 2 * !(((long) (sizeof (mp_limb_t))) <= $ac_mid)];
31891 rm -f conftest.
$ac_objext
31892 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31893 (eval $ac_compile) 2>conftest.er1
31895 grep -v '^ *+' conftest.er1
>conftest.err
31897 cat conftest.err
>&5
31898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31899 (exit $ac_status); } &&
31900 { ac_try
='test -z "$ac_c_werror_flag"
31901 || test ! -s conftest.err'
31902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31903 (eval $ac_try) 2>&5
31905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31906 (exit $ac_status); }; } &&
31907 { ac_try
='test -s conftest.$ac_objext'
31908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31909 (eval $ac_try) 2>&5
31911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31912 (exit $ac_status); }; }; then
31913 ac_hi
=$ac_mid; break
31915 echo "$as_me: failed program was:" >&5
31916 sed 's/^/| /' conftest.
$ac_ext >&5
31918 ac_lo
=`expr $ac_mid + 1`
31919 if test $ac_lo -le $ac_mid; then
31923 ac_mid
=`expr 2 '*' $ac_mid + 1`
31925 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
31928 echo "$as_me: failed program was:" >&5
31929 sed 's/^/| /' conftest.
$ac_ext >&5
31931 cat >conftest.
$ac_ext <<_ACEOF
31934 cat confdefs.h
>>conftest.
$ac_ext
31935 cat >>conftest.
$ac_ext <<_ACEOF
31936 /* end confdefs.h. */
31937 #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
31938 #define GMP_NAIL_BITS $GMP_NAIL_BITS
31939 #define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */
31940 #define GMP_LIMB_BITS 123
31941 $DEFN_LONG_LONG_LIMB
31942 #include "$srcdir/gmp-h.in"
31948 static int test_array [1 - 2 * !(((long) (sizeof (mp_limb_t))) < 0)];
31955 rm -f conftest.
$ac_objext
31956 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31957 (eval $ac_compile) 2>conftest.er1
31959 grep -v '^ *+' conftest.er1
>conftest.err
31961 cat conftest.err
>&5
31962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31963 (exit $ac_status); } &&
31964 { ac_try
='test -z "$ac_c_werror_flag"
31965 || test ! -s conftest.err'
31966 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31967 (eval $ac_try) 2>&5
31969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31970 (exit $ac_status); }; } &&
31971 { ac_try
='test -s conftest.$ac_objext'
31972 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31973 (eval $ac_try) 2>&5
31975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31976 (exit $ac_status); }; }; then
31979 cat >conftest.
$ac_ext <<_ACEOF
31982 cat confdefs.h
>>conftest.
$ac_ext
31983 cat >>conftest.
$ac_ext <<_ACEOF
31984 /* end confdefs.h. */
31985 #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
31986 #define GMP_NAIL_BITS $GMP_NAIL_BITS
31987 #define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */
31988 #define GMP_LIMB_BITS 123
31989 $DEFN_LONG_LONG_LIMB
31990 #include "$srcdir/gmp-h.in"
31996 static int test_array [1 - 2 * !(((long) (sizeof (mp_limb_t))) >= $ac_mid)];
32003 rm -f conftest.
$ac_objext
32004 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32005 (eval $ac_compile) 2>conftest.er1
32007 grep -v '^ *+' conftest.er1
>conftest.err
32009 cat conftest.err
>&5
32010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32011 (exit $ac_status); } &&
32012 { ac_try
='test -z "$ac_c_werror_flag"
32013 || test ! -s conftest.err'
32014 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32015 (eval $ac_try) 2>&5
32017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32018 (exit $ac_status); }; } &&
32019 { ac_try
='test -s conftest.$ac_objext'
32020 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32021 (eval $ac_try) 2>&5
32023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32024 (exit $ac_status); }; }; then
32025 ac_lo
=$ac_mid; break
32027 echo "$as_me: failed program was:" >&5
32028 sed 's/^/| /' conftest.
$ac_ext >&5
32030 ac_hi
=`expr '(' $ac_mid ')' - 1`
32031 if test $ac_mid -le $ac_hi; then
32035 ac_mid
=`expr 2 '*' $ac_mid`
32037 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
32040 echo "$as_me: failed program was:" >&5
32041 sed 's/^/| /' conftest.
$ac_ext >&5
32045 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
32047 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
32048 # Binary search between lo and hi bounds.
32049 while test "x$ac_lo" != "x$ac_hi"; do
32050 ac_mid
=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
32051 cat >conftest.
$ac_ext <<_ACEOF
32054 cat confdefs.h
>>conftest.
$ac_ext
32055 cat >>conftest.
$ac_ext <<_ACEOF
32056 /* end confdefs.h. */
32057 #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
32058 #define GMP_NAIL_BITS $GMP_NAIL_BITS
32059 #define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */
32060 #define GMP_LIMB_BITS 123
32061 $DEFN_LONG_LONG_LIMB
32062 #include "$srcdir/gmp-h.in"
32068 static int test_array [1 - 2 * !(((long) (sizeof (mp_limb_t))) <= $ac_mid)];
32075 rm -f conftest.
$ac_objext
32076 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32077 (eval $ac_compile) 2>conftest.er1
32079 grep -v '^ *+' conftest.er1
>conftest.err
32081 cat conftest.err
>&5
32082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32083 (exit $ac_status); } &&
32084 { ac_try
='test -z "$ac_c_werror_flag"
32085 || test ! -s conftest.err'
32086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32087 (eval $ac_try) 2>&5
32089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32090 (exit $ac_status); }; } &&
32091 { ac_try
='test -s conftest.$ac_objext'
32092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32093 (eval $ac_try) 2>&5
32095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32096 (exit $ac_status); }; }; then
32099 echo "$as_me: failed program was:" >&5
32100 sed 's/^/| /' conftest.
$ac_ext >&5
32102 ac_lo
=`expr '(' $ac_mid ')' + 1`
32104 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
32107 ?
*) ac_cv_sizeof_mp_limb_t
=$ac_lo;;
32108 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (mp_limb_t), 77
32109 See \`config.log' for more details." >&5
32110 echo "$as_me: error: cannot compute sizeof (mp_limb_t), 77
32111 See \`config.log' for more details." >&2;}
32112 { (exit 1); exit 1; }; } ;;
32115 if test "$cross_compiling" = yes; then
32116 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
32117 See \`config.log' for more details." >&5
32118 echo "$as_me: error: cannot run test program while cross compiling
32119 See \`config.log' for more details." >&2;}
32120 { (exit 1); exit 1; }; }
32122 cat >conftest.
$ac_ext <<_ACEOF
32125 cat confdefs.h
>>conftest.
$ac_ext
32126 cat >>conftest.
$ac_ext <<_ACEOF
32127 /* end confdefs.h. */
32128 #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
32129 #define GMP_NAIL_BITS $GMP_NAIL_BITS
32130 #define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */
32131 #define GMP_LIMB_BITS 123
32132 $DEFN_LONG_LONG_LIMB
32133 #include "$srcdir/gmp-h.in"
32136 long longval () { return (long) (sizeof (mp_limb_t)); }
32137 unsigned long ulongval () { return (long) (sizeof (mp_limb_t)); }
32139 #include <stdlib.h>
32144 FILE *f = fopen ("conftest.val", "w");
32147 if (((long) (sizeof (mp_limb_t))) < 0)
32149 long i = longval ();
32150 if (i != ((long) (sizeof (mp_limb_t))))
32152 fprintf (f, "%ld\n", i);
32156 unsigned long i = ulongval ();
32157 if (i != ((long) (sizeof (mp_limb_t))))
32159 fprintf (f, "%lu\n", i);
32161 exit (ferror (f) || fclose (f) != 0);
32167 rm -f conftest
$ac_exeext
32168 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32169 (eval $ac_link) 2>&5
32171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32172 (exit $ac_status); } && { ac_try
='./conftest$ac_exeext'
32173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32174 (eval $ac_try) 2>&5
32176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32177 (exit $ac_status); }; }; then
32178 ac_cv_sizeof_mp_limb_t
=`cat conftest.val`
32180 echo "$as_me: program exited with status $ac_status" >&5
32181 echo "$as_me: failed program was:" >&5
32182 sed 's/^/| /' conftest.
$ac_ext >&5
32184 ( exit $ac_status )
32185 { { echo "$as_me:$LINENO: error: cannot compute sizeof (mp_limb_t), 77
32186 See \`config.log' for more details." >&5
32187 echo "$as_me: error: cannot compute sizeof (mp_limb_t), 77
32188 See \`config.log' for more details." >&2;}
32189 { (exit 1); exit 1; }; }
32191 rm -f core
*.core gmon.out bb.out conftest
$ac_exeext conftest.
$ac_objext conftest.
$ac_ext
32196 ac_cv_sizeof_mp_limb_t
=0
32199 echo "$as_me:$LINENO: result: $ac_cv_sizeof_mp_limb_t" >&5
32200 echo "${ECHO_T}$ac_cv_sizeof_mp_limb_t" >&6
32201 cat >>confdefs.h
<<_ACEOF
32202 #define SIZEOF_MP_LIMB_T $ac_cv_sizeof_mp_limb_t
32206 if test "$ac_cv_sizeof_mp_limb_t" = 0; then
32207 { { echo "$as_me:$LINENO: error: Oops, mp_limb_t doesn't seem to work" >&5
32208 echo "$as_me: error: Oops, mp_limb_t doesn't seem to work" >&2;}
32209 { (exit 1); exit 1; }; }
32211 BITS_PER_MP_LIMB
=`expr 8 \* $ac_cv_sizeof_mp_limb_t`
32214 echo "define(<SIZEOF_UNSIGNED>,<$ac_cv_sizeof_unsigned>)" >> $gmp_tmpconfigm4
32217 # Check compiler limb size matches gmp-mparam.h
32219 # FIXME: Some of the cycle counter objects in the tune directory depend on
32220 # the size of ulong, it'd be possible to check that here, though a mismatch
32221 # probably wouldn't want to be fatal, none of the libgmp assembler code
32222 # depends on ulong.
32224 mparam_bits
=`sed -n 's/^#define BITS_PER_MP_LIMB[ ][ ]*\([0-9]*\).*$/\1/p' $gmp_mparam_source`
32225 if test -n "$mparam_bits" && test "$mparam_bits" -ne $BITS_PER_MP_LIMB; then
32226 if test "$test_CFLAGS" = set; then
32227 { { echo "$as_me:$LINENO: error: Oops, mp_limb_t is $BITS_PER_MP_LIMB bits, but the assembler code
32228 in this configuration expects $mparam_bits bits.
32229 You appear to have set \$CFLAGS, perhaps you also need to tell GMP the
32230 intended ABI, see \"ABI and ISA\" in the manual." >&5
32231 echo "$as_me: error: Oops, mp_limb_t is $BITS_PER_MP_LIMB bits, but the assembler code
32232 in this configuration expects $mparam_bits bits.
32233 You appear to have set \$CFLAGS, perhaps you also need to tell GMP the
32234 intended ABI, see \"ABI and ISA\" in the manual." >&2;}
32235 { (exit 1); exit 1; }; }
32237 { { echo "$as_me:$LINENO: error: Oops, mp_limb_t is $BITS_PER_MP_LIMB bits, but the assembler code
32238 in this configuration expects $mparam_bits bits." >&5
32239 echo "$as_me: error: Oops, mp_limb_t is $BITS_PER_MP_LIMB bits, but the assembler code
32240 in this configuration expects $mparam_bits bits." >&2;}
32241 { (exit 1); exit 1; }; }
32246 echo "define(<GMP_LIMB_BITS>,$BITS_PER_MP_LIMB)" >> $gmp_tmpconfigm4
32249 echo "define(<GMP_NAIL_BITS>,$GMP_NAIL_BITS)" >> $gmp_tmpconfigm4
32252 echo "define(<GMP_NUMB_BITS>,eval(GMP_LIMB_BITS-GMP_NAIL_BITS))" >> $gmp_tmpconfigm4
32256 # Exclude the mpn random functions from mpbsd since that would drag in the
32257 # top-level rand things, all of which are unnecessary for libmp. There's
32258 # other unnecessary objects too actually, if we could be bothered figuring
32259 # out exactly which they are.
32262 for i
in $mpn_objs_in_libgmp; do
32265 *) mpn_objs_in_libmp
="$mpn_objs_in_libmp $i" ;;
32275 # A recompiled sqr_basecase for use in the tune program, if necessary.
32277 test -d tune || mkdir tune
32278 case $sqr_basecase_source in
32280 sqr_max
=`sed -n 's/^def...(SQR_KARATSUBA_THRESHOLD_MAX, *\([0-9]*\))/\1/p' $sqr_basecase_source`
32281 if test -n "$sqr_max"; then
32282 TUNE_SQR_OBJ
=sqr_asm.o
32284 cat >>confdefs.h
<<_ACEOF
32285 #define TUNE_SQR_KARATSUBA_MAX $sqr_max
32289 cat >tune
/sqr_basecase.c
<<EOF
32290 /* not sure that an empty file can compile, so put in a dummy */
32291 int sqr_basecase_dummy;
32296 cat >>confdefs.h
<<\_ACEOF
32297 #define TUNE_SQR_KARATSUBA_MAX SQR_KARATSUBA_MAX_GENERIC
32300 cat >tune
/sqr_basecase.c
<<EOF
32301 #define TUNE_PROGRAM_BUILD 1
32302 #define TUNE_PROGRAM_BUILD_SQR 1
32303 #include "mpn/sqr_basecase.c"
32310 # Configs for demos/pexpr.c.
32312 ac_config_files
="$ac_config_files demos/pexpr-config.h:demos/pexpr-config-h.in"
32314 case $ac_cv_func_clock in
32315 yes) HAVE_CLOCK_01
=1
32317 no
) HAVE_CLOCK_01
=0 ;;
32320 case $ac_cv_func_cputime in
32321 yes) HAVE_CPUTIME_01
=1
32323 no
) HAVE_CPUTIME_01
=0 ;;
32326 case $ac_cv_func_getrusage in
32327 yes) HAVE_GETRUSAGE_01
=1
32329 no
) HAVE_GETRUSAGE_01
=0 ;;
32332 case $ac_cv_func_gettimeofday in
32333 yes) HAVE_GETTIMEOFDAY_01
=1
32335 no
) HAVE_GETTIMEOFDAY_01
=0 ;;
32338 case $ac_cv_func_sigaction in
32339 yes) HAVE_SIGACTION_01
=1
32341 no
) HAVE_SIGACTION_01
=0 ;;
32344 case $ac_cv_func_sigaltstack in
32345 yes) HAVE_SIGALTSTACK_01
=1
32347 no
) HAVE_SIGALTSTACK_01
=0 ;;
32350 case $ac_cv_func_sigstack in
32351 yes) HAVE_SIGSTACK_01
=1
32353 no
) HAVE_SIGSTACK_01
=0 ;;
32357 case $ac_cv_header_sys_resource_h in
32358 yes) HAVE_SYS_RESOURCE_H_01
=1
32360 no
) HAVE_SYS_RESOURCE_H_01
=0 ;;
32364 echo "$as_me:$LINENO: checking for stack_t" >&5
32365 echo $ECHO_N "checking for stack_t... $ECHO_C" >&6
32366 if test "${ac_cv_type_stack_t+set}" = set; then
32367 echo $ECHO_N "(cached) $ECHO_C" >&6
32369 cat >conftest.
$ac_ext <<_ACEOF
32372 cat confdefs.h
>>conftest.
$ac_ext
32373 cat >>conftest.
$ac_ext <<_ACEOF
32374 /* end confdefs.h. */
32375 #include <signal.h>
32382 if (sizeof (stack_t))
32388 rm -f conftest.
$ac_objext
32389 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32390 (eval $ac_compile) 2>conftest.er1
32392 grep -v '^ *+' conftest.er1
>conftest.err
32394 cat conftest.err
>&5
32395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32396 (exit $ac_status); } &&
32397 { ac_try
='test -z "$ac_c_werror_flag"
32398 || test ! -s conftest.err'
32399 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32400 (eval $ac_try) 2>&5
32402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32403 (exit $ac_status); }; } &&
32404 { ac_try
='test -s conftest.$ac_objext'
32405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32406 (eval $ac_try) 2>&5
32408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32409 (exit $ac_status); }; }; then
32410 ac_cv_type_stack_t
=yes
32412 echo "$as_me: failed program was:" >&5
32413 sed 's/^/| /' conftest.
$ac_ext >&5
32415 ac_cv_type_stack_t
=no
32417 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
32419 echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
32420 echo "${ECHO_T}$ac_cv_type_stack_t" >&6
32421 if test $ac_cv_type_stack_t = yes; then
32423 cat >>confdefs.h
<<_ACEOF
32424 #define HAVE_STACK_T 1
32434 # Configs for demos/calc directory
32436 # AC_SUBST+AC_CONFIG_FILES is used for calc-config.h, rather than AC_DEFINE+
32437 # AC_CONFIG_HEADERS, since with the latter automake (1.8) will then put the
32438 # directory (ie. demos/calc) into $(DEFAULT_INCLUDES) for every Makefile.in,
32439 # which would look very strange.
32441 # -lcurses is required by libreadline. On a typical SVR4 style system this
32442 # normally doesn't have to be given explicitly, since libreadline.so will
32443 # have a NEEDED record for it. But if someone for some reason is using only
32444 # a static libreadline.a then we must give -lcurses. Readline (as of
32445 # version 4.3) doesn't use libtool, so we can't rely on a .la to cover
32446 # necessary dependencies.
32448 # On a couple of systems we've seen libreadline available, but the headers
32449 # not in the default include path, so check for readline/readline.h. We've
32450 # also seen readline/history.h missing, not sure if that's just a broken
32451 # install or a very old version, but check that too.
32453 ac_config_files
="$ac_config_files demos/calc/calc-config.h:demos/calc/calc-config-h.in"
32456 if test $with_readline != no
; then
32457 echo "$as_me:$LINENO: checking for tputs in -lncurses" >&5
32458 echo $ECHO_N "checking for tputs in -lncurses... $ECHO_C" >&6
32459 if test "${ac_cv_lib_ncurses_tputs+set}" = set; then
32460 echo $ECHO_N "(cached) $ECHO_C" >&6
32462 ac_check_lib_save_LIBS
=$LIBS
32463 LIBS
="-lncurses $LIBS"
32464 cat >conftest.
$ac_ext <<_ACEOF
32467 cat confdefs.h
>>conftest.
$ac_ext
32468 cat >>conftest.
$ac_ext <<_ACEOF
32469 /* end confdefs.h. */
32471 /* Override any gcc2 internal prototype to avoid an error. */
32475 /* We use char because int might match the return type of a gcc2
32476 builtin and then its argument prototype would still apply. */
32486 rm -f conftest.
$ac_objext conftest
$ac_exeext
32487 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32488 (eval $ac_link) 2>conftest.er1
32490 grep -v '^ *+' conftest.er1
>conftest.err
32492 cat conftest.err
>&5
32493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32494 (exit $ac_status); } &&
32495 { ac_try
='test -z "$ac_c_werror_flag"
32496 || test ! -s conftest.err'
32497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32498 (eval $ac_try) 2>&5
32500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32501 (exit $ac_status); }; } &&
32502 { ac_try
='test -s conftest$ac_exeext'
32503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32504 (eval $ac_try) 2>&5
32506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32507 (exit $ac_status); }; }; then
32508 ac_cv_lib_ncurses_tputs
=yes
32510 echo "$as_me: failed program was:" >&5
32511 sed 's/^/| /' conftest.
$ac_ext >&5
32513 ac_cv_lib_ncurses_tputs
=no
32515 rm -f conftest.err conftest.
$ac_objext \
32516 conftest
$ac_exeext conftest.
$ac_ext
32517 LIBS
=$ac_check_lib_save_LIBS
32519 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tputs" >&5
32520 echo "${ECHO_T}$ac_cv_lib_ncurses_tputs" >&6
32521 if test $ac_cv_lib_ncurses_tputs = yes; then
32522 LIBCURSES
=-lncurses
32524 echo "$as_me:$LINENO: checking for tputs in -lcurses" >&5
32525 echo $ECHO_N "checking for tputs in -lcurses... $ECHO_C" >&6
32526 if test "${ac_cv_lib_curses_tputs+set}" = set; then
32527 echo $ECHO_N "(cached) $ECHO_C" >&6
32529 ac_check_lib_save_LIBS
=$LIBS
32530 LIBS
="-lcurses $LIBS"
32531 cat >conftest.
$ac_ext <<_ACEOF
32534 cat confdefs.h
>>conftest.
$ac_ext
32535 cat >>conftest.
$ac_ext <<_ACEOF
32536 /* end confdefs.h. */
32538 /* Override any gcc2 internal prototype to avoid an error. */
32542 /* We use char because int might match the return type of a gcc2
32543 builtin and then its argument prototype would still apply. */
32553 rm -f conftest.
$ac_objext conftest
$ac_exeext
32554 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32555 (eval $ac_link) 2>conftest.er1
32557 grep -v '^ *+' conftest.er1
>conftest.err
32559 cat conftest.err
>&5
32560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32561 (exit $ac_status); } &&
32562 { ac_try
='test -z "$ac_c_werror_flag"
32563 || test ! -s conftest.err'
32564 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32565 (eval $ac_try) 2>&5
32567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32568 (exit $ac_status); }; } &&
32569 { ac_try
='test -s conftest$ac_exeext'
32570 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32571 (eval $ac_try) 2>&5
32573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32574 (exit $ac_status); }; }; then
32575 ac_cv_lib_curses_tputs
=yes
32577 echo "$as_me: failed program was:" >&5
32578 sed 's/^/| /' conftest.
$ac_ext >&5
32580 ac_cv_lib_curses_tputs
=no
32582 rm -f conftest.err conftest.
$ac_objext \
32583 conftest
$ac_exeext conftest.
$ac_ext
32584 LIBS
=$ac_check_lib_save_LIBS
32586 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tputs" >&5
32587 echo "${ECHO_T}$ac_cv_lib_curses_tputs" >&6
32588 if test $ac_cv_lib_curses_tputs = yes; then
32596 use_readline
=$with_readline
32597 if test $with_readline = detect
; then
32599 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
32600 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
32601 if test "${ac_cv_lib_readline_readline+set}" = set; then
32602 echo $ECHO_N "(cached) $ECHO_C" >&6
32604 ac_check_lib_save_LIBS
=$LIBS
32605 LIBS
="-lreadline $LIBCURSES $LIBS"
32606 cat >conftest.
$ac_ext <<_ACEOF
32609 cat confdefs.h
>>conftest.
$ac_ext
32610 cat >>conftest.
$ac_ext <<_ACEOF
32611 /* end confdefs.h. */
32613 /* Override any gcc2 internal prototype to avoid an error. */
32617 /* We use char because int might match the return type of a gcc2
32618 builtin and then its argument prototype would still apply. */
32628 rm -f conftest.
$ac_objext conftest
$ac_exeext
32629 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32630 (eval $ac_link) 2>conftest.er1
32632 grep -v '^ *+' conftest.er1
>conftest.err
32634 cat conftest.err
>&5
32635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32636 (exit $ac_status); } &&
32637 { ac_try
='test -z "$ac_c_werror_flag"
32638 || test ! -s conftest.err'
32639 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32640 (eval $ac_try) 2>&5
32642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32643 (exit $ac_status); }; } &&
32644 { ac_try
='test -s conftest$ac_exeext'
32645 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32646 (eval $ac_try) 2>&5
32648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32649 (exit $ac_status); }; }; then
32650 ac_cv_lib_readline_readline
=yes
32652 echo "$as_me: failed program was:" >&5
32653 sed 's/^/| /' conftest.
$ac_ext >&5
32655 ac_cv_lib_readline_readline
=no
32657 rm -f conftest.err conftest.
$ac_objext \
32658 conftest
$ac_exeext conftest.
$ac_ext
32659 LIBS
=$ac_check_lib_save_LIBS
32661 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
32662 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
32663 if test $ac_cv_lib_readline_readline = yes; then
32664 if test "${ac_cv_header_readline_readline_h+set}" = set; then
32665 echo "$as_me:$LINENO: checking for readline/readline.h" >&5
32666 echo $ECHO_N "checking for readline/readline.h... $ECHO_C" >&6
32667 if test "${ac_cv_header_readline_readline_h+set}" = set; then
32668 echo $ECHO_N "(cached) $ECHO_C" >&6
32670 echo "$as_me:$LINENO: result: $ac_cv_header_readline_readline_h" >&5
32671 echo "${ECHO_T}$ac_cv_header_readline_readline_h" >&6
32673 # Is the header compilable?
32674 echo "$as_me:$LINENO: checking readline/readline.h usability" >&5
32675 echo $ECHO_N "checking readline/readline.h usability... $ECHO_C" >&6
32676 cat >conftest.
$ac_ext <<_ACEOF
32679 cat confdefs.h
>>conftest.
$ac_ext
32680 cat >>conftest.
$ac_ext <<_ACEOF
32681 /* end confdefs.h. */
32682 $ac_includes_default
32683 #include <readline/readline.h>
32685 rm -f conftest.
$ac_objext
32686 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32687 (eval $ac_compile) 2>conftest.er1
32689 grep -v '^ *+' conftest.er1
>conftest.err
32691 cat conftest.err
>&5
32692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32693 (exit $ac_status); } &&
32694 { ac_try
='test -z "$ac_c_werror_flag"
32695 || test ! -s conftest.err'
32696 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32697 (eval $ac_try) 2>&5
32699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32700 (exit $ac_status); }; } &&
32701 { ac_try
='test -s conftest.$ac_objext'
32702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32703 (eval $ac_try) 2>&5
32705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32706 (exit $ac_status); }; }; then
32707 ac_header_compiler
=yes
32709 echo "$as_me: failed program was:" >&5
32710 sed 's/^/| /' conftest.
$ac_ext >&5
32712 ac_header_compiler
=no
32714 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
32715 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32716 echo "${ECHO_T}$ac_header_compiler" >&6
32718 # Is the header present?
32719 echo "$as_me:$LINENO: checking readline/readline.h presence" >&5
32720 echo $ECHO_N "checking readline/readline.h presence... $ECHO_C" >&6
32721 cat >conftest.
$ac_ext <<_ACEOF
32724 cat confdefs.h
>>conftest.
$ac_ext
32725 cat >>conftest.
$ac_ext <<_ACEOF
32726 /* end confdefs.h. */
32727 #include <readline/readline.h>
32729 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32730 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
32732 grep -v '^ *+' conftest.er1
>conftest.err
32734 cat conftest.err
>&5
32735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32736 (exit $ac_status); } >/dev
/null
; then
32737 if test -s conftest.err
; then
32738 ac_cpp_err
=$ac_c_preproc_warn_flag
32739 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
32746 if test -z "$ac_cpp_err"; then
32747 ac_header_preproc
=yes
32749 echo "$as_me: failed program was:" >&5
32750 sed 's/^/| /' conftest.
$ac_ext >&5
32752 ac_header_preproc
=no
32754 rm -f conftest.err conftest.
$ac_ext
32755 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32756 echo "${ECHO_T}$ac_header_preproc" >&6
32758 # So? What about this header?
32759 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32761 { echo "$as_me:$LINENO: WARNING: readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
32762 echo "$as_me: WARNING: readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32763 { echo "$as_me:$LINENO: WARNING: readline/readline.h: proceeding with the compiler's result" >&5
32764 echo "$as_me: WARNING: readline/readline.h: proceeding with the compiler's result" >&2;}
32765 ac_header_preproc
=yes
32768 { echo "$as_me:$LINENO: WARNING: readline/readline.h: present but cannot be compiled" >&5
32769 echo "$as_me: WARNING: readline/readline.h: present but cannot be compiled" >&2;}
32770 { echo "$as_me:$LINENO: WARNING: readline/readline.h: check for missing prerequisite headers?" >&5
32771 echo "$as_me: WARNING: readline/readline.h: check for missing prerequisite headers?" >&2;}
32772 { echo "$as_me:$LINENO: WARNING: readline/readline.h: see the Autoconf documentation" >&5
32773 echo "$as_me: WARNING: readline/readline.h: see the Autoconf documentation" >&2;}
32774 { echo "$as_me:$LINENO: WARNING: readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
32775 echo "$as_me: WARNING: readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
32776 { echo "$as_me:$LINENO: WARNING: readline/readline.h: proceeding with the preprocessor's result" >&5
32777 echo "$as_me: WARNING: readline/readline.h: proceeding with the preprocessor's result" >&2;}
32778 { echo "$as_me:$LINENO: WARNING: readline/readline.h: in the future, the compiler will take precedence" >&5
32779 echo "$as_me: WARNING: readline/readline.h: in the future, the compiler will take precedence" >&2;}
32782 ## ---------------------------------- ##
32783 ## Report this to gmp-bugs@gmplib.org ##
32784 ## ---------------------------------- ##
32787 sed "s/^/$as_me: WARNING: /" >&2
32790 echo "$as_me:$LINENO: checking for readline/readline.h" >&5
32791 echo $ECHO_N "checking for readline/readline.h... $ECHO_C" >&6
32792 if test "${ac_cv_header_readline_readline_h+set}" = set; then
32793 echo $ECHO_N "(cached) $ECHO_C" >&6
32795 ac_cv_header_readline_readline_h
=$ac_header_preproc
32797 echo "$as_me:$LINENO: result: $ac_cv_header_readline_readline_h" >&5
32798 echo "${ECHO_T}$ac_cv_header_readline_readline_h" >&6
32801 if test $ac_cv_header_readline_readline_h = yes; then
32802 if test "${ac_cv_header_readline_history_h+set}" = set; then
32803 echo "$as_me:$LINENO: checking for readline/history.h" >&5
32804 echo $ECHO_N "checking for readline/history.h... $ECHO_C" >&6
32805 if test "${ac_cv_header_readline_history_h+set}" = set; then
32806 echo $ECHO_N "(cached) $ECHO_C" >&6
32808 echo "$as_me:$LINENO: result: $ac_cv_header_readline_history_h" >&5
32809 echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6
32811 # Is the header compilable?
32812 echo "$as_me:$LINENO: checking readline/history.h usability" >&5
32813 echo $ECHO_N "checking readline/history.h usability... $ECHO_C" >&6
32814 cat >conftest.
$ac_ext <<_ACEOF
32817 cat confdefs.h
>>conftest.
$ac_ext
32818 cat >>conftest.
$ac_ext <<_ACEOF
32819 /* end confdefs.h. */
32820 $ac_includes_default
32821 #include <readline/history.h>
32823 rm -f conftest.
$ac_objext
32824 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32825 (eval $ac_compile) 2>conftest.er1
32827 grep -v '^ *+' conftest.er1
>conftest.err
32829 cat conftest.err
>&5
32830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32831 (exit $ac_status); } &&
32832 { ac_try
='test -z "$ac_c_werror_flag"
32833 || test ! -s conftest.err'
32834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32835 (eval $ac_try) 2>&5
32837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32838 (exit $ac_status); }; } &&
32839 { ac_try
='test -s conftest.$ac_objext'
32840 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32841 (eval $ac_try) 2>&5
32843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32844 (exit $ac_status); }; }; then
32845 ac_header_compiler
=yes
32847 echo "$as_me: failed program was:" >&5
32848 sed 's/^/| /' conftest.
$ac_ext >&5
32850 ac_header_compiler
=no
32852 rm -f conftest.err conftest.
$ac_objext conftest.
$ac_ext
32853 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32854 echo "${ECHO_T}$ac_header_compiler" >&6
32856 # Is the header present?
32857 echo "$as_me:$LINENO: checking readline/history.h presence" >&5
32858 echo $ECHO_N "checking readline/history.h presence... $ECHO_C" >&6
32859 cat >conftest.
$ac_ext <<_ACEOF
32862 cat confdefs.h
>>conftest.
$ac_ext
32863 cat >>conftest.
$ac_ext <<_ACEOF
32864 /* end confdefs.h. */
32865 #include <readline/history.h>
32867 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32868 (eval $ac_cpp conftest.
$ac_ext) 2>conftest.er1
32870 grep -v '^ *+' conftest.er1
>conftest.err
32872 cat conftest.err
>&5
32873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32874 (exit $ac_status); } >/dev
/null
; then
32875 if test -s conftest.err
; then
32876 ac_cpp_err
=$ac_c_preproc_warn_flag
32877 ac_cpp_err
=$ac_cpp_err$ac_c_werror_flag
32884 if test -z "$ac_cpp_err"; then
32885 ac_header_preproc
=yes
32887 echo "$as_me: failed program was:" >&5
32888 sed 's/^/| /' conftest.
$ac_ext >&5
32890 ac_header_preproc
=no
32892 rm -f conftest.err conftest.
$ac_ext
32893 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32894 echo "${ECHO_T}$ac_header_preproc" >&6
32896 # So? What about this header?
32897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32899 { echo "$as_me:$LINENO: WARNING: readline/history.h: accepted by the compiler, rejected by the preprocessor!" >&5
32900 echo "$as_me: WARNING: readline/history.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32901 { echo "$as_me:$LINENO: WARNING: readline/history.h: proceeding with the compiler's result" >&5
32902 echo "$as_me: WARNING: readline/history.h: proceeding with the compiler's result" >&2;}
32903 ac_header_preproc
=yes
32906 { echo "$as_me:$LINENO: WARNING: readline/history.h: present but cannot be compiled" >&5
32907 echo "$as_me: WARNING: readline/history.h: present but cannot be compiled" >&2;}
32908 { echo "$as_me:$LINENO: WARNING: readline/history.h: check for missing prerequisite headers?" >&5
32909 echo "$as_me: WARNING: readline/history.h: check for missing prerequisite headers?" >&2;}
32910 { echo "$as_me:$LINENO: WARNING: readline/history.h: see the Autoconf documentation" >&5
32911 echo "$as_me: WARNING: readline/history.h: see the Autoconf documentation" >&2;}
32912 { echo "$as_me:$LINENO: WARNING: readline/history.h: section \"Present But Cannot Be Compiled\"" >&5
32913 echo "$as_me: WARNING: readline/history.h: section \"Present But Cannot Be Compiled\"" >&2;}
32914 { echo "$as_me:$LINENO: WARNING: readline/history.h: proceeding with the preprocessor's result" >&5
32915 echo "$as_me: WARNING: readline/history.h: proceeding with the preprocessor's result" >&2;}
32916 { echo "$as_me:$LINENO: WARNING: readline/history.h: in the future, the compiler will take precedence" >&5
32917 echo "$as_me: WARNING: readline/history.h: in the future, the compiler will take precedence" >&2;}
32920 ## ---------------------------------- ##
32921 ## Report this to gmp-bugs@gmplib.org ##
32922 ## ---------------------------------- ##
32925 sed "s/^/$as_me: WARNING: /" >&2
32928 echo "$as_me:$LINENO: checking for readline/history.h" >&5
32929 echo $ECHO_N "checking for readline/history.h... $ECHO_C" >&6
32930 if test "${ac_cv_header_readline_history_h+set}" = set; then
32931 echo $ECHO_N "(cached) $ECHO_C" >&6
32933 ac_cv_header_readline_history_h
=$ac_header_preproc
32935 echo "$as_me:$LINENO: result: $ac_cv_header_readline_history_h" >&5
32936 echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6
32939 if test $ac_cv_header_readline_history_h = yes; then
32949 echo "$as_me:$LINENO: checking readline detected" >&5
32950 echo $ECHO_N "checking readline detected... $ECHO_C" >&6
32951 echo "$as_me:$LINENO: result: $use_readline" >&5
32952 echo "${ECHO_T}$use_readline" >&6
32954 if test $use_readline = yes; then
32957 LIBREADLINE
=-lreadline
32962 for ac_prog
in 'bison -y' byacc
32964 # Extract the first word of "$ac_prog", so it can be a program name with args.
32965 set dummy
$ac_prog; ac_word
=$2
32966 echo "$as_me:$LINENO: checking for $ac_word" >&5
32967 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32968 if test "${ac_cv_prog_YACC+set}" = set; then
32969 echo $ECHO_N "(cached) $ECHO_C" >&6
32971 if test -n "$YACC"; then
32972 ac_cv_prog_YACC
="$YACC" # Let the user override the test.
32974 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
32975 for as_dir
in $PATH
32978 test -z "$as_dir" && as_dir
=.
32979 for ac_exec_ext
in '' $ac_executable_extensions; do
32980 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32981 ac_cv_prog_YACC
="$ac_prog"
32982 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32990 YACC
=$ac_cv_prog_YACC
32991 if test -n "$YACC"; then
32992 echo "$as_me:$LINENO: result: $YACC" >&5
32993 echo "${ECHO_T}$YACC" >&6
32995 echo "$as_me:$LINENO: result: no" >&5
32996 echo "${ECHO_T}no" >&6
32999 test -n "$YACC" && break
33001 test -n "$YACC" || YACC
="yacc"
33003 for ac_prog
in flex
lex
33005 # Extract the first word of "$ac_prog", so it can be a program name with args.
33006 set dummy
$ac_prog; ac_word
=$2
33007 echo "$as_me:$LINENO: checking for $ac_word" >&5
33008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33009 if test "${ac_cv_prog_LEX+set}" = set; then
33010 echo $ECHO_N "(cached) $ECHO_C" >&6
33012 if test -n "$LEX"; then
33013 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
33015 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
33016 for as_dir
in $PATH
33019 test -z "$as_dir" && as_dir
=.
33020 for ac_exec_ext
in '' $ac_executable_extensions; do
33021 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33022 ac_cv_prog_LEX
="$ac_prog"
33023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33031 LEX
=$ac_cv_prog_LEX
33032 if test -n "$LEX"; then
33033 echo "$as_me:$LINENO: result: $LEX" >&5
33034 echo "${ECHO_T}$LEX" >&6
33036 echo "$as_me:$LINENO: result: no" >&5
33037 echo "${ECHO_T}no" >&6
33040 test -n "$LEX" && break
33042 test -n "$LEX" || LEX
=":"
33044 if test -z "$LEXLIB"
33046 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
33047 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
33048 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
33049 echo $ECHO_N "(cached) $ECHO_C" >&6
33051 ac_check_lib_save_LIBS
=$LIBS
33053 cat >conftest.
$ac_ext <<_ACEOF
33056 cat confdefs.h
>>conftest.
$ac_ext
33057 cat >>conftest.
$ac_ext <<_ACEOF
33058 /* end confdefs.h. */
33060 /* Override any gcc2 internal prototype to avoid an error. */
33064 /* We use char because int might match the return type of a gcc2
33065 builtin and then its argument prototype would still apply. */
33075 rm -f conftest.
$ac_objext conftest
$ac_exeext
33076 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33077 (eval $ac_link) 2>conftest.er1
33079 grep -v '^ *+' conftest.er1
>conftest.err
33081 cat conftest.err
>&5
33082 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33083 (exit $ac_status); } &&
33084 { ac_try
='test -z "$ac_c_werror_flag"
33085 || test ! -s conftest.err'
33086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33087 (eval $ac_try) 2>&5
33089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33090 (exit $ac_status); }; } &&
33091 { ac_try
='test -s conftest$ac_exeext'
33092 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33093 (eval $ac_try) 2>&5
33095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33096 (exit $ac_status); }; }; then
33097 ac_cv_lib_fl_yywrap
=yes
33099 echo "$as_me: failed program was:" >&5
33100 sed 's/^/| /' conftest.
$ac_ext >&5
33102 ac_cv_lib_fl_yywrap
=no
33104 rm -f conftest.err conftest.
$ac_objext \
33105 conftest
$ac_exeext conftest.
$ac_ext
33106 LIBS
=$ac_check_lib_save_LIBS
33108 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
33109 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
33110 if test $ac_cv_lib_fl_yywrap = yes; then
33113 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
33114 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
33115 if test "${ac_cv_lib_l_yywrap+set}" = set; then
33116 echo $ECHO_N "(cached) $ECHO_C" >&6
33118 ac_check_lib_save_LIBS
=$LIBS
33120 cat >conftest.
$ac_ext <<_ACEOF
33123 cat confdefs.h
>>conftest.
$ac_ext
33124 cat >>conftest.
$ac_ext <<_ACEOF
33125 /* end confdefs.h. */
33127 /* Override any gcc2 internal prototype to avoid an error. */
33131 /* We use char because int might match the return type of a gcc2
33132 builtin and then its argument prototype would still apply. */
33142 rm -f conftest.
$ac_objext conftest
$ac_exeext
33143 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33144 (eval $ac_link) 2>conftest.er1
33146 grep -v '^ *+' conftest.er1
>conftest.err
33148 cat conftest.err
>&5
33149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33150 (exit $ac_status); } &&
33151 { ac_try
='test -z "$ac_c_werror_flag"
33152 || test ! -s conftest.err'
33153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33154 (eval $ac_try) 2>&5
33156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33157 (exit $ac_status); }; } &&
33158 { ac_try
='test -s conftest$ac_exeext'
33159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33160 (eval $ac_try) 2>&5
33162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33163 (exit $ac_status); }; }; then
33164 ac_cv_lib_l_yywrap
=yes
33166 echo "$as_me: failed program was:" >&5
33167 sed 's/^/| /' conftest.
$ac_ext >&5
33169 ac_cv_lib_l_yywrap
=no
33171 rm -f conftest.err conftest.
$ac_objext \
33172 conftest
$ac_exeext conftest.
$ac_ext
33173 LIBS
=$ac_check_lib_save_LIBS
33175 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
33176 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
33177 if test $ac_cv_lib_l_yywrap = yes; then
33185 if test "x$LEX" != "x:"; then
33186 echo "$as_me:$LINENO: checking lex output file root" >&5
33187 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
33188 if test "${ac_cv_prog_lex_root+set}" = set; then
33189 echo $ECHO_N "(cached) $ECHO_C" >&6
33191 # The minimal lex program is just a single line: %%. But some broken lexes
33192 # (Solaris, I think it was) want two %% lines, so accommodate them.
33193 cat >conftest.l
<<_ACEOF
33197 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
33198 (eval $LEX conftest.l
) 2>&5
33200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33201 (exit $ac_status); }
33202 if test -f lex.yy.c
; then
33203 ac_cv_prog_lex_root
=lex.yy
33204 elif test -f lexyy.c
; then
33205 ac_cv_prog_lex_root
=lexyy
33207 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
33208 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
33209 { (exit 1); exit 1; }; }
33212 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
33213 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
33215 LEX_OUTPUT_ROOT
=$ac_cv_prog_lex_root
33217 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
33218 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
33219 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
33220 echo $ECHO_N "(cached) $ECHO_C" >&6
33222 # POSIX says lex can declare yytext either as a pointer or an array; the
33223 # default is implementation-dependent. Figure out which it is, since
33224 # not all implementations provide the %pointer and %array declarations.
33225 ac_cv_prog_lex_yytext_pointer
=no
33226 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
33228 LIBS
="$LIBS $LEXLIB"
33229 cat >conftest.
$ac_ext <<_ACEOF
33230 `cat $LEX_OUTPUT_ROOT.c`
33232 rm -f conftest.
$ac_objext conftest
$ac_exeext
33233 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33234 (eval $ac_link) 2>conftest.er1
33236 grep -v '^ *+' conftest.er1
>conftest.err
33238 cat conftest.err
>&5
33239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33240 (exit $ac_status); } &&
33241 { ac_try
='test -z "$ac_c_werror_flag"
33242 || test ! -s conftest.err'
33243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33244 (eval $ac_try) 2>&5
33246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33247 (exit $ac_status); }; } &&
33248 { ac_try
='test -s conftest$ac_exeext'
33249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33250 (eval $ac_try) 2>&5
33252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33253 (exit $ac_status); }; }; then
33254 ac_cv_prog_lex_yytext_pointer
=yes
33256 echo "$as_me: failed program was:" >&5
33257 sed 's/^/| /' conftest.
$ac_ext >&5
33260 rm -f conftest.err conftest.
$ac_objext \
33261 conftest
$ac_exeext conftest.
$ac_ext
33263 rm -f "${LEX_OUTPUT_ROOT}.c"
33266 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
33267 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
33268 if test $ac_cv_prog_lex_yytext_pointer = yes; then
33270 cat >>confdefs.h
<<\_ACEOF
33271 #define YYTEXT_POINTER 1
33277 if test "$LEX" = :; then
33278 LEX
=${am_missing_run}flex
33281 # Configs for demos/expr directory
33283 # Libtool already runs an AC_CHECK_TOOL for ranlib, but we give
33284 # AC_PROG_RANLIB anyway since automake is supposed to complain if it's not
33285 # called. (Automake 1.8.4 doesn't, at least not when the only library is in
33286 # an EXTRA_LIBRARIES.)
33288 if test -n "$ac_tool_prefix"; then
33289 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
33290 set dummy
${ac_tool_prefix}ranlib
; ac_word
=$2
33291 echo "$as_me:$LINENO: checking for $ac_word" >&5
33292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33293 if test "${ac_cv_prog_RANLIB+set}" = set; then
33294 echo $ECHO_N "(cached) $ECHO_C" >&6
33296 if test -n "$RANLIB"; then
33297 ac_cv_prog_RANLIB
="$RANLIB" # Let the user override the test.
33299 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
33300 for as_dir
in $PATH
33303 test -z "$as_dir" && as_dir
=.
33304 for ac_exec_ext
in '' $ac_executable_extensions; do
33305 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33306 ac_cv_prog_RANLIB
="${ac_tool_prefix}ranlib"
33307 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33315 RANLIB
=$ac_cv_prog_RANLIB
33316 if test -n "$RANLIB"; then
33317 echo "$as_me:$LINENO: result: $RANLIB" >&5
33318 echo "${ECHO_T}$RANLIB" >&6
33320 echo "$as_me:$LINENO: result: no" >&5
33321 echo "${ECHO_T}no" >&6
33325 if test -z "$ac_cv_prog_RANLIB"; then
33326 ac_ct_RANLIB
=$RANLIB
33327 # Extract the first word of "ranlib", so it can be a program name with args.
33328 set dummy ranlib
; ac_word
=$2
33329 echo "$as_me:$LINENO: checking for $ac_word" >&5
33330 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33331 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
33332 echo $ECHO_N "(cached) $ECHO_C" >&6
33334 if test -n "$ac_ct_RANLIB"; then
33335 ac_cv_prog_ac_ct_RANLIB
="$ac_ct_RANLIB" # Let the user override the test.
33337 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
33338 for as_dir
in $PATH
33341 test -z "$as_dir" && as_dir
=.
33342 for ac_exec_ext
in '' $ac_executable_extensions; do
33343 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33344 ac_cv_prog_ac_ct_RANLIB
="ranlib"
33345 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33351 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB
=":"
33354 ac_ct_RANLIB
=$ac_cv_prog_ac_ct_RANLIB
33355 if test -n "$ac_ct_RANLIB"; then
33356 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
33357 echo "${ECHO_T}$ac_ct_RANLIB" >&6
33359 echo "$as_me:$LINENO: result: no" >&5
33360 echo "${ECHO_T}no" >&6
33363 RANLIB
=$ac_ct_RANLIB
33365 RANLIB
="$ac_cv_prog_RANLIB"
33370 # Create config.m4.
33372 echo "creating $gmp_configm4"
33373 echo "d""nl $gmp_configm4. Generated automatically by configure." > $gmp_configm4
33374 if test -f $gmp_tmpconfigm4; then
33375 echo "changequote(<,>)" >> $gmp_configm4
33376 echo "ifdef(<__CONFIG_M4_INCLUDED__>,,<" >> $gmp_configm4
33377 cat $gmp_tmpconfigm4 >> $gmp_configm4
33378 echo ">)" >> $gmp_configm4
33379 echo "changequote(\`,')" >> $gmp_configm4
33380 rm $gmp_tmpconfigm4
33382 echo "ifdef(\`__CONFIG_M4_INCLUDED__',,\`" >> $gmp_configm4
33383 if test -f $gmp_tmpconfigm4i; then
33384 cat $gmp_tmpconfigm4i >> $gmp_configm4
33385 rm $gmp_tmpconfigm4i
33387 if test -f $gmp_tmpconfigm4p; then
33388 cat $gmp_tmpconfigm4p >> $gmp_configm4
33389 rm $gmp_tmpconfigm4p
33391 echo "')" >> $gmp_configm4
33392 echo "define(\`__CONFIG_M4_INCLUDED__')" >> $gmp_configm4
33396 # FIXME: Upcoming version of autoconf/automake may not like broken lines.
33397 # Right now automake isn't accepting the new AC_CONFIG_FILES scheme.
33399 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"
33400 cat >confcache
<<\_ACEOF
33401 # This file is a shell script that caches the results of configure
33402 # tests run on this system so they can be shared between configure
33403 # scripts and configure runs, see configure's option --config-cache.
33404 # It is not useful on other systems. If it contains results you don't
33405 # want to keep, you may remove or edit it.
33407 # config.status only pays attention to the cache file if you give it
33408 # the --recheck option to rerun configure.
33410 # `ac_cv_env_foo' variables (set or unset) will be overridden when
33411 # loading this file, other *unset* `ac_cv_foo' will be assigned the
33412 # following values.
33416 # The following way of writing the cache mishandles newlines in values,
33417 # but we know of no workaround that is simple, portable, and efficient.
33418 # So, don't put newlines in cache variables' values.
33419 # Ultrix sh set writes to stderr and can't be redirected directly,
33420 # and sets the high bit in the cache file unless we assign to the vars.
33423 case `(ac_space=' '; set | grep ac_space) 2>&1` in
33425 # `set' does not quote correctly, so add quotes (double-quote
33426 # substitution turns \\\\ into \\, and sed turns \\ into \).
33429 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33432 # `set' quotes correctly as required by POSIX, so do not add quotes.
33434 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
33441 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33443 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33445 if diff $cache_file confcache
>/dev
/null
2>&1; then :; else
33446 if test -w $cache_file; then
33447 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
33448 cat confcache
>$cache_file
33450 echo "not updating unwritable cache $cache_file"
33455 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
33456 # Let make expand exec_prefix.
33457 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
33459 # VPATH may cause trouble with some makes, so we remove $(srcdir),
33460 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
33461 # trailing colons and then remove the whole line if VPATH becomes empty
33462 # (actually we leave an empty line to preserve line numbers).
33463 if test "x$srcdir" = x.
; then
33464 ac_vpsub
='/^[ ]*VPATH[ ]*=/{
33465 s/:*\$(srcdir):*/:/;
33466 s/:*\${srcdir}:*/:/;
33468 s/^\([^=]*=[ ]*\):*/\1/;
33474 DEFS
=-DHAVE_CONFIG_H
33478 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
33479 # 1. Remove the extension, and $U if already installed.
33480 ac_i
=`echo "$ac_i" |
33481 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
33483 ac_libobjs
="$ac_libobjs $ac_i\$U.$ac_objext"
33484 ac_ltlibobjs
="$ac_ltlibobjs $ac_i"'$U.lo'
33486 LIBOBJS
=$ac_libobjs
33488 LTLIBOBJS
=$ac_ltlibobjs
33491 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
33492 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
33493 Usually this means the macro was only invoked conditionally." >&5
33494 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
33495 Usually this means the macro was only invoked conditionally." >&2;}
33496 { (exit 1); exit 1; }; }
33498 if test -z "${WANT_MPBSD_TRUE}" && test -z "${WANT_MPBSD_FALSE}"; then
33499 { { echo "$as_me:$LINENO: error: conditional \"WANT_MPBSD\" was never defined.
33500 Usually this means the macro was only invoked conditionally." >&5
33501 echo "$as_me: error: conditional \"WANT_MPBSD\" was never defined.
33502 Usually this means the macro was only invoked conditionally." >&2;}
33503 { (exit 1); exit 1; }; }
33505 if test -z "${WANT_CXX_TRUE}" && test -z "${WANT_CXX_FALSE}"; then
33506 { { echo "$as_me:$LINENO: error: conditional \"WANT_CXX\" was never defined.
33507 Usually this means the macro was only invoked conditionally." >&5
33508 echo "$as_me: error: conditional \"WANT_CXX\" was never defined.
33509 Usually this means the macro was only invoked conditionally." >&2;}
33510 { (exit 1); exit 1; }; }
33512 if test -z "${ENABLE_STATIC_TRUE}" && test -z "${ENABLE_STATIC_FALSE}"; then
33513 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_STATIC\" was never defined.
33514 Usually this means the macro was only invoked conditionally." >&5
33515 echo "$as_me: error: conditional \"ENABLE_STATIC\" was never defined.
33516 Usually this means the macro was only invoked conditionally." >&2;}
33517 { (exit 1); exit 1; }; }
33520 : ${CONFIG_STATUS=./config.status}
33521 ac_clean_files_save
=$ac_clean_files
33522 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
33523 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
33524 echo "$as_me: creating $CONFIG_STATUS" >&6;}
33525 cat >$CONFIG_STATUS <<_ACEOF
33527 # Generated by $as_me.
33528 # Run this file to recreate the current configuration.
33529 # Compiler output produced by configure, useful for debugging
33530 # configure, is in config.log if it exists.
33533 ac_cs_recheck=false
33535 SHELL=\${CONFIG_SHELL-$SHELL}
33538 cat >>$CONFIG_STATUS <<\_ACEOF
33539 ## --------------------- ##
33540 ## M4sh Initialization. ##
33541 ## --------------------- ##
33543 # Be Bourne compatible
33544 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then
33547 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
33548 # is contrary to our usage. Disable this feature.
33549 alias -g '${1+"$@"}'='"$@"'
33550 elif test -n "${BASH_VERSION+set}" && (set -o posix
) >/dev
/null
2>&1; then
33553 DUALCASE
=1; export DUALCASE
# for MKS sh
33555 # Support unset when possible.
33556 if ( (MAIL
=60; unset MAIL
) ||
exit) >/dev
/null
2>&1; then
33563 # Work around bugs in pre-3.0 UWIN ksh.
33564 $as_unset ENV MAIL MAILPATH
33571 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
33572 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
33573 LC_TELEPHONE LC_TIME
33575 if (set +x
; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
33576 eval $as_var=C
; export $as_var
33582 # Required to use basename.
33583 if expr a
: '\(a\)' >/dev
/null
2>&1; then
33589 if (basename /) >/dev
/null
2>&1 && test "X`basename / 2>&1`" = "X/"; then
33590 as_basename
=basename
33596 # Name of the executable.
33597 as_me
=`$as_basename "$0" ||
33598 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33599 X"$0" : 'X\(//\)$' \| \
33600 X"$0" : 'X\(/\)$' \| \
33601 . : '\(.\)' 2>/dev/null ||
33603 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
33604 /^X\/\(\/\/\)$/{ s//\1/; q; }
33605 /^X\/\(\/\).*/{ s//\1/; q; }
33609 # PATH needs CR, and LINENO needs CR and PATH.
33610 # Avoid depending upon Character Ranges.
33611 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
33612 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33613 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
33614 as_cr_digits
='0123456789'
33615 as_cr_alnum
=$as_cr_Letters$as_cr_digits
33617 # The user is always right.
33618 if test "${PATH_SEPARATOR+set}" != set; then
33619 echo "#! /bin/sh" >conf$$.sh
33620 echo "exit 0" >>conf$$.sh
33622 if (PATH
="/nonexistent;."; conf$$.sh
) >/dev
/null
2>&1; then
33631 as_lineno_1
=$LINENO
33632 as_lineno_2
=$LINENO
33633 as_lineno_3
=`(expr $as_lineno_1 + 1) 2>/dev/null`
33634 test "x$as_lineno_1" != "x$as_lineno_2" &&
33635 test "x$as_lineno_3" = "x$as_lineno_2" ||
{
33636 # Find who we are. Look in the path if we contain no path at all
33639 *[\\/]* ) as_myself
=$0 ;;
33640 *) as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
33641 for as_dir
in $PATH
33644 test -z "$as_dir" && as_dir
=.
33645 test -r "$as_dir/$0" && as_myself
=$as_dir/$0 && break
33650 # We did not find ourselves, most probably we were run as `sh COMMAND'
33651 # in which case we are not to be found in the path.
33652 if test "x$as_myself" = x
; then
33655 if test ! -f "$as_myself"; then
33656 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
33657 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
33658 { (exit 1); exit 1; }; }
33660 case $CONFIG_SHELL in
33662 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
33663 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
33666 test -z "$as_dir" && as_dir
=.
33667 for as_base
in sh bash ksh sh5
; do
33670 if ("$as_dir/$as_base" -c '
33671 as_lineno_1=$LINENO
33672 as_lineno_2=$LINENO
33673 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
33674 test "x$as_lineno_1" != "x$as_lineno_2" &&
33675 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev
/null
; then
33676 $as_unset BASH_ENV ||
test "${BASH_ENV+set}" != set ||
{ BASH_ENV
=; export BASH_ENV
; }
33677 $as_unset ENV ||
test "${ENV+set}" != set ||
{ ENV
=; export ENV
; }
33678 CONFIG_SHELL
=$as_dir/$as_base
33679 export CONFIG_SHELL
33680 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
33688 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
33689 # uniformly replaced by the line number. The first 'sed' inserts a
33690 # line-number line before each line; the second 'sed' does the real
33691 # work. The second script uses 'N' to pair each line-number line
33692 # with the numbered line, and appends trailing '-' during
33693 # substitution so that $LINENO is not a special case at line end.
33694 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
33695 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
33696 sed '=' <$as_myself |
33701 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
33704 s,^['$as_cr_digits']*\n,,
33705 ' >$as_me.lineno
&&
33706 chmod +x
$as_me.lineno ||
33707 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
33708 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
33709 { (exit 1); exit 1; }; }
33711 # Don't try to exec as it changes $[0], causing all sort of problems
33712 # (the dirname of $[0] is not the place where we might find the
33713 # original and so on. Autoconf is especially sensible to this).
33715 # Exit status is that of the last command.
33720 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
33721 *c
*,-n*) ECHO_N
= ECHO_C
='
33723 *c
*,* ) ECHO_N
=-n ECHO_C
= ECHO_T
= ;;
33724 *) ECHO_N
= ECHO_C
='\c' ECHO_T
= ;;
33727 if expr a
: '\(a\)' >/dev
/null
2>&1; then
33733 rm -f conf$$ conf$$.exe conf$$.
file
33735 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
33736 # We could just check for DJGPP; but this test a) works b) is more generic
33737 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
33738 if test -f conf$$.exe
; then
33739 # Don't use ln at all; we don't have any links
33744 elif ln conf$$.
file conf$$
2>/dev
/null
; then
33749 rm -f conf$$ conf$$.exe conf$$.
file
33751 if mkdir
-p .
2>/dev
/null
; then
33754 test -d .
/-p && rmdir .
/-p
33758 as_executable_p
="test -f"
33760 # Sed expression to map a string onto a valid CPP name.
33761 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33763 # Sed expression to map a string onto a valid variable name.
33764 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33768 # We need space, tab and new line, in precisely that order.
33778 # Open the log real soon, to keep \$[0] and so on meaningful, and to
33779 # report actual input values of CONFIG_FILES etc. instead of their
33780 # values after options handling. Logging --version etc. is OK.
33784 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33785 ## Running $as_me. ##
33790 This file was extended by GNU MP $as_me 4.3.1, which was
33791 generated by GNU Autoconf 2.59. Invocation command line was
33793 CONFIG_FILES = $CONFIG_FILES
33794 CONFIG_HEADERS = $CONFIG_HEADERS
33795 CONFIG_LINKS = $CONFIG_LINKS
33796 CONFIG_COMMANDS = $CONFIG_COMMANDS
33800 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
33804 # Files that config.status was made for.
33805 if test -n "$ac_config_files"; then
33806 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
33809 if test -n "$ac_config_headers"; then
33810 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
33813 if test -n "$ac_config_links"; then
33814 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
33817 if test -n "$ac_config_commands"; then
33818 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
33821 cat >>$CONFIG_STATUS <<\_ACEOF
33824 \`$as_me' instantiates files from templates according to the
33825 current configuration.
33827 Usage: $0 [OPTIONS] [FILE]...
33829 -h, --help print this help, then exit
33830 -V, --version print version number, then exit
33831 -q, --quiet do not print progress messages
33832 -d, --debug don't remove temporary files
33833 --recheck update $as_me by reconfiguring in the same conditions
33834 --file=FILE[:TEMPLATE]
33835 instantiate the configuration file FILE
33836 --header=FILE[:TEMPLATE]
33837 instantiate the configuration header FILE
33839 Configuration files:
33842 Configuration headers:
33845 Configuration links:
33848 Report bugs to <bug-autoconf@gnu.org>."
33851 cat >>$CONFIG_STATUS <<_ACEOF
33853 GNU MP config.status 4.3.1
33854 configured by $0, generated by GNU Autoconf 2.59,
33855 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
33857 Copyright (C) 2003 Free Software Foundation, Inc.
33858 This config.status script is free software; the Free Software Foundation
33859 gives unlimited permission to copy, distribute and modify it."
33864 cat >>$CONFIG_STATUS <<\_ACEOF
33865 # If no file are specified by the user, then we need to provide default
33866 # value. By we need to know if files were specified by the user.
33872 ac_option
=`expr "x$1" : 'x\([^=]*\)='`
33873 ac_optarg
=`expr "x$1" : 'x[^=]*=\(.*\)'`
33881 *) # This is not an option, so the user has probably given explicit
33884 ac_need_defaults
=false
;;
33888 # Handling of the options.
33890 cat >>$CONFIG_STATUS <<\_ACEOF
33891 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
33893 --version |
--vers* |
-V )
33894 echo "$ac_cs_version"; exit 0 ;;
33896 # Conflict between --help and --header
33897 { { echo "$as_me:$LINENO: error: ambiguous option: $1
33898 Try \`$0 --help' for more information." >&5
33899 echo "$as_me: error: ambiguous option: $1
33900 Try \`$0 --help' for more information." >&2;}
33901 { (exit 1); exit 1; }; };;
33902 --help |
--hel |
-h )
33903 echo "$ac_cs_usage"; exit 0 ;;
33904 --debug |
--d* |
-d )
33906 --file |
--fil |
--fi |
--f )
33908 CONFIG_FILES
="$CONFIG_FILES $ac_optarg"
33909 ac_need_defaults
=false
;;
33910 --header |
--heade |
--head |
--hea )
33912 CONFIG_HEADERS
="$CONFIG_HEADERS $ac_optarg"
33913 ac_need_defaults
=false
;;
33914 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
33915 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
33918 # This is an error.
33919 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
33920 Try \`$0 --help' for more information." >&5
33921 echo "$as_me: error: unrecognized option: $1
33922 Try \`$0 --help' for more information." >&2;}
33923 { (exit 1); exit 1; }; } ;;
33925 *) ac_config_targets
="$ac_config_targets $1" ;;
33931 ac_configure_extra_args
=
33933 if $ac_cs_silent; then
33935 ac_configure_extra_args
="$ac_configure_extra_args --silent"
33939 cat >>$CONFIG_STATUS <<_ACEOF
33940 if \$ac_cs_recheck; then
33941 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
33942 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33951 cat >>$CONFIG_STATUS <<\_ACEOF
33952 for ac_config_target
in $ac_config_targets
33954 case "$ac_config_target" in
33955 # Handling of arguments.
33956 "demos/pexpr-config.h" ) CONFIG_FILES
="$CONFIG_FILES demos/pexpr-config.h:demos/pexpr-config-h.in" ;;
33957 "demos/calc/calc-config.h" ) CONFIG_FILES
="$CONFIG_FILES demos/calc/calc-config.h:demos/calc/calc-config-h.in" ;;
33958 "Makefile" ) CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
33959 "mpbsd/Makefile" ) CONFIG_FILES
="$CONFIG_FILES mpbsd/Makefile" ;;
33960 "mpf/Makefile" ) CONFIG_FILES
="$CONFIG_FILES mpf/Makefile" ;;
33961 "mpn/Makefile" ) CONFIG_FILES
="$CONFIG_FILES mpn/Makefile" ;;
33962 "mpq/Makefile" ) CONFIG_FILES
="$CONFIG_FILES mpq/Makefile" ;;
33963 "mpz/Makefile" ) CONFIG_FILES
="$CONFIG_FILES mpz/Makefile" ;;
33964 "printf/Makefile" ) CONFIG_FILES
="$CONFIG_FILES printf/Makefile" ;;
33965 "scanf/Makefile" ) CONFIG_FILES
="$CONFIG_FILES scanf/Makefile" ;;
33966 "cxx/Makefile" ) CONFIG_FILES
="$CONFIG_FILES cxx/Makefile" ;;
33967 "tests/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/Makefile" ;;
33968 "tests/devel/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/devel/Makefile" ;;
33969 "tests/mpbsd/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/mpbsd/Makefile" ;;
33970 "tests/mpf/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/mpf/Makefile" ;;
33971 "tests/mpn/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/mpn/Makefile" ;;
33972 "tests/mpq/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/mpq/Makefile" ;;
33973 "tests/mpz/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/mpz/Makefile" ;;
33974 "tests/rand/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/rand/Makefile" ;;
33975 "tests/misc/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/misc/Makefile" ;;
33976 "tests/cxx/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tests/cxx/Makefile" ;;
33977 "doc/Makefile" ) CONFIG_FILES
="$CONFIG_FILES doc/Makefile" ;;
33978 "tune/Makefile" ) CONFIG_FILES
="$CONFIG_FILES tune/Makefile" ;;
33979 "demos/Makefile" ) CONFIG_FILES
="$CONFIG_FILES demos/Makefile" ;;
33980 "demos/calc/Makefile" ) CONFIG_FILES
="$CONFIG_FILES demos/calc/Makefile" ;;
33981 "demos/expr/Makefile" ) CONFIG_FILES
="$CONFIG_FILES demos/expr/Makefile" ;;
33982 "gmp.h" ) CONFIG_FILES
="$CONFIG_FILES gmp.h:gmp-h.in" ;;
33983 "mp.h" ) CONFIG_FILES
="$CONFIG_FILES mp.h:mp-h.in" ;;
33984 "mpn/$tmp_fn.$tmp_ext" ) CONFIG_LINKS
="$CONFIG_LINKS mpn/$tmp_fn.$tmp_ext:mpn/$tmp_dir/$tmp_base.$tmp_ext" ;;
33985 "gmp-mparam.h" ) CONFIG_LINKS
="$CONFIG_LINKS gmp-mparam.h:mpn/$gmp_mparam_dir/gmp-mparam.h" ;;
33986 "config.h" ) CONFIG_HEADERS
="$CONFIG_HEADERS config.h:config.in" ;;
33987 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
33988 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
33989 { (exit 1); exit 1; }; };;
33993 # If the user did not use the arguments to specify the items to instantiate,
33994 # then the envvar interface is used. Set only those that are not.
33995 # We use the long form for the default assignment because of an extremely
33996 # bizarre bug on SunOS 4.1.3.
33997 if $ac_need_defaults; then
33998 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
33999 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
34000 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS
=$config_links
34003 # Have a temporary directory for convenience. Make it in the build tree
34004 # simply because there is no reason to put it here, and in addition,
34005 # creating and moving files from /tmp can sometimes cause problems.
34006 # Create a temporary directory, and hook for its removal unless debugging.
34009 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
34010 trap '{ (exit 1); exit 1; }' 1 2 13 15
34013 # Create a (secure) tmp directory for tmp files.
34016 tmp
=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
34017 test -n "$tmp" && test -d "$tmp"
34020 tmp
=.
/confstat$$
-$RANDOM
34021 (umask 077 && mkdir
$tmp)
34024 echo "$me: cannot create a temporary directory in ." >&2
34025 { (exit 1); exit 1; }
34030 cat >>$CONFIG_STATUS <<_ACEOF
34033 # CONFIG_FILES section.
34036 # No need to generate the scripts if there are no CONFIG_FILES.
34037 # This happens for instance when ./config.status config.h
34038 if test -n "\$CONFIG_FILES"; then
34039 # Protect against being on the right side of a sed subst in config.status.
34040 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
34041 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
34042 s,@SHELL@,$SHELL,;t t
34043 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
34044 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
34045 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
34046 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
34047 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
34048 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
34049 s,@exec_prefix@,$exec_prefix,;t t
34050 s,@prefix@,$prefix,;t t
34051 s,@program_transform_name@,$program_transform_name,;t t
34052 s,@bindir@,$bindir,;t t
34053 s,@sbindir@,$sbindir,;t t
34054 s,@libexecdir@,$libexecdir,;t t
34055 s,@datadir@,$datadir,;t t
34056 s,@sysconfdir@,$sysconfdir,;t t
34057 s,@sharedstatedir@,$sharedstatedir,;t t
34058 s,@localstatedir@,$localstatedir,;t t
34059 s,@libdir@,$libdir,;t t
34060 s,@includedir@,$includedir,;t t
34061 s,@oldincludedir@,$oldincludedir,;t t
34062 s,@infodir@,$infodir,;t t
34063 s,@mandir@,$mandir,;t t
34064 s,@build_alias@,$build_alias,;t t
34065 s,@host_alias@,$host_alias,;t t
34066 s,@target_alias@,$target_alias,;t t
34067 s,@DEFS@,$DEFS,;t t
34068 s,@ECHO_C@,$ECHO_C,;t t
34069 s,@ECHO_N@,$ECHO_N,;t t
34070 s,@ECHO_T@,$ECHO_T,;t t
34071 s,@LIBS@,$LIBS,;t t
34072 s,@build@,$build,;t t
34073 s,@build_cpu@,$build_cpu,;t t
34074 s,@build_vendor@,$build_vendor,;t t
34075 s,@build_os@,$build_os,;t t
34076 s,@host@,$host,;t t
34077 s,@host_cpu@,$host_cpu,;t t
34078 s,@host_vendor@,$host_vendor,;t t
34079 s,@host_os@,$host_os,;t t
34080 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
34081 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
34082 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
34083 s,@CYGPATH_W@,$CYGPATH_W,;t t
34084 s,@PACKAGE@,$PACKAGE,;t t
34085 s,@VERSION@,$VERSION,;t t
34086 s,@ACLOCAL@,$ACLOCAL,;t t
34087 s,@AUTOCONF@,$AUTOCONF,;t t
34088 s,@AUTOMAKE@,$AUTOMAKE,;t t
34089 s,@AUTOHEADER@,$AUTOHEADER,;t t
34090 s,@MAKEINFO@,$MAKEINFO,;t t
34091 s,@AMTAR@,$AMTAR,;t t
34092 s,@install_sh@,$install_sh,;t t
34093 s,@STRIP@,$STRIP,;t t
34094 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
34095 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
34096 s,@mkdir_p@,$mkdir_p,;t t
34098 s,@SET_MAKE@,$SET_MAKE,;t t
34099 s,@am__leading_dot@,$am__leading_dot,;t t
34100 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
34101 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
34102 s,@MAINT@,$MAINT,;t t
34103 s,@WANT_MPBSD_TRUE@,$WANT_MPBSD_TRUE,;t t
34104 s,@WANT_MPBSD_FALSE@,$WANT_MPBSD_FALSE,;t t
34105 s,@GMP_NAIL_BITS@,$GMP_NAIL_BITS,;t t
34107 s,@HAVE_HOST_CPU_FAMILY_power@,$HAVE_HOST_CPU_FAMILY_power,;t t
34108 s,@HAVE_HOST_CPU_FAMILY_powerpc@,$HAVE_HOST_CPU_FAMILY_powerpc,;t t
34109 s,@GMP_LDFLAGS@,$GMP_LDFLAGS,;t t
34110 s,@LIBGMP_LDFLAGS@,$LIBGMP_LDFLAGS,;t t
34111 s,@LIBGMPXX_LDFLAGS@,$LIBGMPXX_LDFLAGS,;t t
34112 s,@SPEED_CYCLECOUNTER_OBJ@,$SPEED_CYCLECOUNTER_OBJ,;t t
34113 s,@CALLING_CONVENTIONS_OBJS@,$CALLING_CONVENTIONS_OBJS,;t t
34114 s,@DEFN_LONG_LONG_LIMB@,$DEFN_LONG_LONG_LIMB,;t t
34116 s,@CFLAGS@,$CFLAGS,;t t
34117 s,@LDFLAGS@,$LDFLAGS,;t t
34118 s,@CPPFLAGS@,$CPPFLAGS,;t t
34119 s,@ac_ct_CC@,$ac_ct_CC,;t t
34120 s,@EXEEXT@,$EXEEXT,;t t
34121 s,@OBJEXT@,$OBJEXT,;t t
34123 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
34124 s,@CPP_FOR_BUILD@,$CPP_FOR_BUILD,;t t
34125 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
34126 s,@U_FOR_BUILD@,$U_FOR_BUILD,;t t
34127 s,@LIBM_FOR_BUILD@,$LIBM_FOR_BUILD,;t t
34128 s,@CCAS@,$CCAS,;t t
34130 s,@CXXFLAGS@,$CXXFLAGS,;t t
34131 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
34132 s,@WANT_CXX_TRUE@,$WANT_CXX_TRUE,;t t
34133 s,@WANT_CXX_FALSE@,$WANT_CXX_FALSE,;t t
34134 s,@CXXCPP@,$CXXCPP,;t t
34135 s,@EGREP@,$EGREP,;t t
34137 s,@ANSI2KNR@,$ANSI2KNR,;t t
34138 s,@ASMFLAGS@,$ASMFLAGS,;t t
34140 s,@ac_ct_AR@,$ac_ct_AR,;t t
34141 s,@LIBGMP_DLL@,$LIBGMP_DLL,;t t
34143 s,@LN_S@,$LN_S,;t t
34144 s,@ECHO@,$ECHO,;t t
34145 s,@RANLIB@,$RANLIB,;t t
34146 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
34147 s,@DLLTOOL@,$DLLTOOL,;t t
34148 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
34150 s,@ac_ct_AS@,$ac_ct_AS,;t t
34151 s,@OBJDUMP@,$OBJDUMP,;t t
34152 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
34153 s,@LIBTOOL@,$LIBTOOL,;t t
34154 s,@ENABLE_STATIC_TRUE@,$ENABLE_STATIC_TRUE,;t t
34155 s,@ENABLE_STATIC_FALSE@,$ENABLE_STATIC_FALSE,;t t
34156 s,@LIBM@,$LIBM,;t t
34157 s,@TAL_OBJECT@,$TAL_OBJECT,;t t
34159 s,@BITS_PER_MP_LIMB@,$BITS_PER_MP_LIMB,;t t
34160 s,@mpn_objs_in_libmp@,$mpn_objs_in_libmp,;t t
34161 s,@mpn_objects@,$mpn_objects,;t t
34162 s,@mpn_objs_in_libgmp@,$mpn_objs_in_libgmp,;t t
34163 s,@gmp_srclinks@,$gmp_srclinks,;t t
34164 s,@TUNE_SQR_OBJ@,$TUNE_SQR_OBJ,;t t
34165 s,@HAVE_CLOCK_01@,$HAVE_CLOCK_01,;t t
34166 s,@HAVE_CPUTIME_01@,$HAVE_CPUTIME_01,;t t
34167 s,@HAVE_GETRUSAGE_01@,$HAVE_GETRUSAGE_01,;t t
34168 s,@HAVE_GETTIMEOFDAY_01@,$HAVE_GETTIMEOFDAY_01,;t t
34169 s,@HAVE_SIGACTION_01@,$HAVE_SIGACTION_01,;t t
34170 s,@HAVE_SIGALTSTACK_01@,$HAVE_SIGALTSTACK_01,;t t
34171 s,@HAVE_SIGSTACK_01@,$HAVE_SIGSTACK_01,;t t
34172 s,@HAVE_SYS_RESOURCE_H_01@,$HAVE_SYS_RESOURCE_H_01,;t t
34173 s,@HAVE_STACK_T_01@,$HAVE_STACK_T_01,;t t
34174 s,@LIBCURSES@,$LIBCURSES,;t t
34175 s,@WITH_READLINE_01@,$WITH_READLINE_01,;t t
34176 s,@LIBREADLINE@,$LIBREADLINE,;t t
34177 s,@YACC@,$YACC,;t t
34179 s,@LEXLIB@,$LEXLIB,;t t
34180 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
34181 s,@LIBOBJS@,$LIBOBJS,;t t
34182 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
34187 cat >>$CONFIG_STATUS <<\_ACEOF
34188 # Split the substitutions into bite-sized pieces for seds with
34189 # small command number limits, like on Digital OSF/1 and HP-UX.
34190 ac_max_sed_lines
=48
34191 ac_sed_frag
=1 # Number of current file.
34192 ac_beg
=1 # First line for current file.
34193 ac_end
=$ac_max_sed_lines # Line after last line for current file.
34196 while $ac_more_lines; do
34197 if test $ac_beg -gt 1; then
34198 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
34200 sed "${ac_end}q" $tmp/subs.
sed >$tmp/subs.frag
34202 if test ! -s $tmp/subs.frag
; then
34203 ac_more_lines
=false
34205 # The purpose of the label and of the branching condition is to
34206 # speed up the sed processing (if there are no `@' at all, there
34207 # is no need to browse any of the substitutions).
34208 # These are the two extra sed commands mentioned above.
34210 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag
) >$tmp/subs-
$ac_sed_frag.
sed
34211 if test -z "$ac_sed_cmds"; then
34212 ac_sed_cmds
="sed -f $tmp/subs-$ac_sed_frag.sed"
34214 ac_sed_cmds
="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
34216 ac_sed_frag
=`expr $ac_sed_frag + 1`
34218 ac_end
=`expr $ac_end + $ac_max_sed_lines`
34221 if test -z "$ac_sed_cmds"; then
34224 fi # test -n "$CONFIG_FILES"
34227 cat >>$CONFIG_STATUS <<\_ACEOF
34228 for ac_file
in : $CONFIG_FILES; do test "x$ac_file" = x
: && continue
34229 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
34231 - |
*:- |
*:-:* ) # input from stdin
34233 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
34234 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
34235 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
34236 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
34237 * ) ac_file_in
=$ac_file.
in ;;
34240 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
34241 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
34242 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34243 X"$ac_file" : 'X\(//\)[^/]' \| \
34244 X"$ac_file" : 'X\(//\)$' \| \
34245 X"$ac_file" : 'X\(/\)' \| \
34246 . : '\(.\)' 2>/dev/null ||
34248 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
34249 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
34250 /^X\(\/\/\)$/{ s//\1/; q; }
34251 /^X\(\/\).*/{ s//\1/; q; }
34253 { if $as_mkdir_p; then
34258 while test ! -d "$as_dir"; do
34259 as_dirs
="$as_dir $as_dirs"
34260 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
34261 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34262 X"$as_dir" : 'X\(//\)[^/]' \| \
34263 X"$as_dir" : 'X\(//\)$' \| \
34264 X"$as_dir" : 'X\(/\)' \| \
34265 . : '\(.\)' 2>/dev/null ||
34267 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
34268 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
34269 /^X\(\/\/\)$/{ s//\1/; q; }
34270 /^X\(\/\).*/{ s//\1/; q; }
34273 test ! -n "$as_dirs" || mkdir
$as_dirs
34274 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
34275 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
34276 { (exit 1); exit 1; }; }; }
34280 if test "$ac_dir" != .
; then
34281 ac_dir_suffix
=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
34282 # A "../" for each directory in $ac_dir_suffix.
34283 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
34285 ac_dir_suffix
= ac_top_builddir
=
34289 .
) # No --srcdir option. We are building in place.
34291 if test -z "$ac_top_builddir"; then
34294 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
34296 [\\/]* | ?
:[\\/]* ) # Absolute path.
34297 ac_srcdir
=$srcdir$ac_dir_suffix;
34298 ac_top_srcdir
=$srcdir ;;
34299 *) # Relative path.
34300 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
34301 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
34304 # Do not use `cd foo && pwd` to compute absolute paths, because
34305 # the directories may not exist.
34307 .
) ac_abs_builddir
="$ac_dir";;
34310 .
) ac_abs_builddir
=`pwd`;;
34311 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dir";;
34312 *) ac_abs_builddir
=`pwd`/"$ac_dir";;
34315 case $ac_abs_builddir in
34316 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
34318 case ${ac_top_builddir}.
in
34319 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
34320 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
34321 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
34324 case $ac_abs_builddir in
34325 .
) ac_abs_srcdir
=$ac_srcdir;;
34328 .
) ac_abs_srcdir
=$ac_abs_builddir;;
34329 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
34330 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
34333 case $ac_abs_builddir in
34334 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
34336 case $ac_top_srcdir in
34337 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
34338 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
34339 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
34345 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
34346 *) ac_INSTALL
=$ac_top_builddir$INSTALL ;;
34349 if test x
"$ac_file" != x-
; then
34350 { echo "$as_me:$LINENO: creating $ac_file" >&5
34351 echo "$as_me: creating $ac_file" >&6;}
34354 # Let's still pretend it is `configure' which instantiates (i.e., don't
34355 # use $as_me), people would be surprised to read:
34356 # /* config.h. Generated by config.status. */
34357 if test x
"$ac_file" = x-
; then
34360 configure_input
="$ac_file. "
34362 configure_input
=$configure_input"Generated from `echo $ac_file_in |
34363 sed 's,.*/,,'` by configure."
34365 # First look for the input files in the build tree, otherwise in the
34367 ac_file_inputs
=`IFS=:
34368 for f in $ac_file_in; do
34370 -) echo $tmp/stdin ;;
34372 # Absolute (can't be DOS-style, as IFS=:)
34373 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
34374 echo "$as_me: error: cannot find input file: $f" >&2;}
34375 { (exit 1); exit 1; }; }
34378 if test -f "$f"; then
34381 elif test -f "$srcdir/$f"; then
34386 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
34387 echo "$as_me: error: cannot find input file: $f" >&2;}
34388 { (exit 1); exit 1; }; }
34391 done` ||
{ (exit 1); exit 1; }
34393 cat >>$CONFIG_STATUS <<_ACEOF
34397 cat >>$CONFIG_STATUS <<\_ACEOF
34399 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
34400 s
,@configure_input@
,$configure_input,;t t
34401 s
,@srcdir@
,$ac_srcdir,;t t
34402 s
,@abs_srcdir@
,$ac_abs_srcdir,;t t
34403 s
,@top_srcdir@
,$ac_top_srcdir,;t t
34404 s
,@abs_top_srcdir@
,$ac_abs_top_srcdir,;t t
34405 s
,@builddir@
,$ac_builddir,;t t
34406 s
,@abs_builddir@
,$ac_abs_builddir,;t t
34407 s
,@top_builddir@
,$ac_top_builddir,;t t
34408 s
,@abs_top_builddir@
,$ac_abs_top_builddir,;t t
34409 s
,@INSTALL@
,$ac_INSTALL,;t t
34410 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
34412 if test x"$ac_file" != x-; then
34413 mv $tmp/out $ac_file
34421 cat >>$CONFIG_STATUS <<\_ACEOF
34424 # CONFIG_HEADER section.
34427 # These sed commands are passed to sed as "A NAME B NAME C VALUE D
", where
34428 # NAME is the cpp macro being defined and VALUE is the value it is being given.
34430 # ac_d sets the value in "#define NAME VALUE" lines.
34431 ac_dA
='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
34432 ac_dB
='[ ].*$,\1#\2'
34435 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
34436 ac_uA
='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
34437 ac_uB
='$,\1#\2define\3'
34441 for ac_file
in : $CONFIG_HEADERS; do test "x$ac_file" = x
: && continue
34442 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
34444 - |
*:- |
*:-:* ) # input from stdin
34446 ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
34447 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
34448 *:* ) ac_file_in
=`echo "$ac_file" | sed 's,[^:]*:,,'`
34449 ac_file
=`echo "$ac_file" | sed 's,:.*,,'` ;;
34450 * ) ac_file_in
=$ac_file.
in ;;
34453 test x
"$ac_file" != x-
&& { echo "$as_me:$LINENO: creating $ac_file" >&5
34454 echo "$as_me: creating $ac_file" >&6;}
34456 # First look for the input files in the build tree, otherwise in the
34458 ac_file_inputs
=`IFS=:
34459 for f in $ac_file_in; do
34461 -) echo $tmp/stdin ;;
34463 # Absolute (can't be DOS-style, as IFS=:)
34464 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
34465 echo "$as_me: error: cannot find input file: $f" >&2;}
34466 { (exit 1); exit 1; }; }
34467 # Do quote $f, to prevent DOS paths from being IFS'd.
34470 if test -f "$f"; then
34473 elif test -f "$srcdir/$f"; then
34478 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
34479 echo "$as_me: error: cannot find input file: $f" >&2;}
34480 { (exit 1); exit 1; }; }
34483 done` ||
{ (exit 1); exit 1; }
34484 # Remove the trailing spaces.
34485 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
34489 # Transform confdefs.h into two sed scripts, `conftest.defines' and
34490 # `conftest.undefs', that substitutes the proper values into
34491 # config.h.in to produce config.h. The first handles `#define'
34492 # templates, and the second `#undef' templates.
34493 # And first: Protect against being on the right side of a sed subst in
34494 # config.status. Protect against being in an unquoted here document
34495 # in config.status.
34496 rm -f conftest.defines conftest.undefs
34497 # Using a here document instead of a string reduces the quoting nightmare.
34498 # Putting comments in sed scripts is not portable.
34500 # `end' is used to avoid that the second main sed command (meant for
34501 # 0-ary CPP macros) applies to n-ary macro definitions.
34502 # See the Autoconf documentation for `clear'.
34503 cat >confdef2sed.
sed <<\_ACEOF
34508 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
34510 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
34513 # If some macros were called several times there might be several times
34514 # the same #defines, which is useless. Nevertheless, we may not want to
34515 # sort them, since we want the *last* AC-DEFINE to be honored.
34516 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
34517 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
34518 rm -f confdef2sed.sed
34520 # This sed command replaces #undef with comments. This is necessary, for
34521 # example, in the case of _POSIX_SOURCE, which is predefined and required
34522 # on some systems where configure will not decide to define it.
34523 cat >>conftest.undefs <<\_ACEOF
34524 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
34527 # Break up conftest.defines because some shells have a limit on the size
34528 # of here documents, and old seds have small limits too (100 cmds).
34529 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
34530 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
34531 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
34532 echo ' :' >>$CONFIG_STATUS
34533 rm -f conftest.tail
34534 while grep . conftest.defines >/dev/null
34536 # Write a limited-size here document to $tmp/defines.sed.
34537 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
34538 # Speed up: don't consider the non `#define' lines.
34539 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
34540 # Work around the forget-to-reset-the-flag bug.
34541 echo 't clr' >>$CONFIG_STATUS
34542 echo ': clr' >>$CONFIG_STATUS
34543 sed ${ac_max_here_lines}q conftest.defines
>>$CONFIG_STATUS
34545 sed -f $tmp/defines.sed $tmp/in >$tmp/out
34547 mv $tmp/out $tmp/in
34549 sed 1,${ac_max_here_lines}d conftest.defines
>conftest.
tail
34550 rm -f conftest.defines
34551 mv conftest.
tail conftest.defines
34553 rm -f conftest.defines
34554 echo ' fi # grep' >>$CONFIG_STATUS
34555 echo >>$CONFIG_STATUS
34557 # Break up conftest.undefs because some shells have a limit on the size
34558 # of here documents, and old seds have small limits too (100 cmds).
34559 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
34560 rm -f conftest.
tail
34561 while grep . conftest.undefs
>/dev
/null
34563 # Write a limited-size here document to $tmp/undefs.sed.
34564 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
34565 # Speed up: don't consider the non
`#undef'
34566 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
34567 # Work around the forget-to-reset-the-flag bug.
34568 echo 't clr' >>$CONFIG_STATUS
34569 echo ': clr' >>$CONFIG_STATUS
34570 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
34572 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
34574 mv $tmp/out $tmp/in
34576 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
34577 rm -f conftest.undefs
34578 mv conftest.tail conftest.undefs
34580 rm -f conftest.undefs
34582 cat >>$CONFIG_STATUS <<\_ACEOF
34583 # Let's still pretend it is `configure
' which instantiates (i.e., don't
34584 # use $as_me), people would be surprised to read:
34585 # /* config.h. Generated by config.status. */
34586 if test x
"$ac_file" = x-
; then
34587 echo "/* Generated by configure. */" >$tmp/config.h
34589 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
34591 cat $tmp/in >>$tmp/config.h
34593 if test x
"$ac_file" != x-
; then
34594 if diff $ac_file $tmp/config.h
>/dev
/null
2>&1; then
34595 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
34596 echo "$as_me: $ac_file is unchanged" >&6;}
34598 ac_dir
=`(dirname "$ac_file") 2>/dev/null ||
34599 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34600 X"$ac_file" : 'X\(//\)[^/]' \| \
34601 X"$ac_file" : 'X\(//\)$' \| \
34602 X"$ac_file" : 'X\(/\)' \| \
34603 . : '\(.\)' 2>/dev/null ||
34605 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
34606 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
34607 /^X\(\/\/\)$/{ s//\1/; q; }
34608 /^X\(\/\).*/{ s//\1/; q; }
34610 { if $as_mkdir_p; then
34615 while test ! -d "$as_dir"; do
34616 as_dirs
="$as_dir $as_dirs"
34617 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
34618 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34619 X"$as_dir" : 'X\(//\)[^/]' \| \
34620 X"$as_dir" : 'X\(//\)$' \| \
34621 X"$as_dir" : 'X\(/\)' \| \
34622 . : '\(.\)' 2>/dev/null ||
34624 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
34625 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
34626 /^X\(\/\/\)$/{ s//\1/; q; }
34627 /^X\(\/\).*/{ s//\1/; q; }
34630 test ! -n "$as_dirs" || mkdir
$as_dirs
34631 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
34632 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
34633 { (exit 1); exit 1; }; }; }
34636 mv $tmp/config.h
$ac_file
34640 rm -f $tmp/config.h
34642 # Compute $ac_file's index in $config_headers.
34644 for _am_header
in $config_headers :; do
34645 case $_am_header in
34646 $ac_file |
$ac_file:* )
34649 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
34652 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
34653 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34654 X$ac_file : 'X\(//\)[^/]' \| \
34655 X$ac_file : 'X\(//\)$' \| \
34656 X$ac_file : 'X\(/\)' \| \
34657 . : '\(.\)' 2>/dev/null ||
34659 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
34660 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
34661 /^X\(\/\/\)$/{ s//\1/; q; }
34662 /^X\(\/\).*/{ s//\1/; q; }
34663 s/.*/./; q'`/stamp-h
$_am_stamp_count
34666 cat >>$CONFIG_STATUS <<\_ACEOF
34669 # CONFIG_LINKS section.
34672 for ac_file
in : $CONFIG_LINKS; do test "x$ac_file" = x
: && continue
34673 ac_dest
=`echo "$ac_file" | sed 's,:.*,,'`
34674 ac_source
=`echo "$ac_file" | sed 's,[^:]*:,,'`
34676 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
34677 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
34679 if test ! -r $srcdir/$ac_source; then
34680 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
34681 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
34682 { (exit 1); exit 1; }; }
34686 # Make relative symlinks.
34687 ac_dest_dir
=`(dirname "$ac_dest") 2>/dev/null ||
34688 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34689 X"$ac_dest" : 'X\(//\)[^/]' \| \
34690 X"$ac_dest" : 'X\(//\)$' \| \
34691 X"$ac_dest" : 'X\(/\)' \| \
34692 . : '\(.\)' 2>/dev/null ||
34694 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
34695 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
34696 /^X\(\/\/\)$/{ s//\1/; q; }
34697 /^X\(\/\).*/{ s//\1/; q; }
34699 { if $as_mkdir_p; then
34700 mkdir
-p "$ac_dest_dir"
34702 as_dir
="$ac_dest_dir"
34704 while test ! -d "$as_dir"; do
34705 as_dirs
="$as_dir $as_dirs"
34706 as_dir
=`(dirname "$as_dir") 2>/dev/null ||
34707 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34708 X"$as_dir" : 'X\(//\)[^/]' \| \
34709 X"$as_dir" : 'X\(//\)$' \| \
34710 X"$as_dir" : 'X\(/\)' \| \
34711 . : '\(.\)' 2>/dev/null ||
34713 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
34714 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
34715 /^X\(\/\/\)$/{ s//\1/; q; }
34716 /^X\(\/\).*/{ s//\1/; q; }
34719 test ! -n "$as_dirs" || mkdir
$as_dirs
34720 fi ||
{ { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
34721 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
34722 { (exit 1); exit 1; }; }; }
34726 if test "$ac_dest_dir" != .
; then
34727 ac_dir_suffix
=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
34728 # A "../" for each directory in $ac_dir_suffix.
34729 ac_top_builddir
=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
34731 ac_dir_suffix
= ac_top_builddir
=
34735 .
) # No --srcdir option. We are building in place.
34737 if test -z "$ac_top_builddir"; then
34740 ac_top_srcdir
=`echo $ac_top_builddir | sed 's,/$,,'`
34742 [\\/]* | ?
:[\\/]* ) # Absolute path.
34743 ac_srcdir
=$srcdir$ac_dir_suffix;
34744 ac_top_srcdir
=$srcdir ;;
34745 *) # Relative path.
34746 ac_srcdir
=$ac_top_builddir$srcdir$ac_dir_suffix
34747 ac_top_srcdir
=$ac_top_builddir$srcdir ;;
34750 # Do not use `cd foo && pwd` to compute absolute paths, because
34751 # the directories may not exist.
34753 .
) ac_abs_builddir
="$ac_dest_dir";;
34755 case "$ac_dest_dir" in
34756 .
) ac_abs_builddir
=`pwd`;;
34757 [\\/]* | ?
:[\\/]* ) ac_abs_builddir
="$ac_dest_dir";;
34758 *) ac_abs_builddir
=`pwd`/"$ac_dest_dir";;
34761 case $ac_abs_builddir in
34762 .
) ac_abs_top_builddir
=${ac_top_builddir}.
;;
34764 case ${ac_top_builddir}.
in
34765 .
) ac_abs_top_builddir
=$ac_abs_builddir;;
34766 [\\/]* | ?
:[\\/]* ) ac_abs_top_builddir
=${ac_top_builddir}.
;;
34767 *) ac_abs_top_builddir
=$ac_abs_builddir/${ac_top_builddir}.
;;
34770 case $ac_abs_builddir in
34771 .
) ac_abs_srcdir
=$ac_srcdir;;
34774 .
) ac_abs_srcdir
=$ac_abs_builddir;;
34775 [\\/]* | ?
:[\\/]* ) ac_abs_srcdir
=$ac_srcdir;;
34776 *) ac_abs_srcdir
=$ac_abs_builddir/$ac_srcdir;;
34779 case $ac_abs_builddir in
34780 .
) ac_abs_top_srcdir
=$ac_top_srcdir;;
34782 case $ac_top_srcdir in
34783 .
) ac_abs_top_srcdir
=$ac_abs_builddir;;
34784 [\\/]* | ?
:[\\/]* ) ac_abs_top_srcdir
=$ac_top_srcdir;;
34785 *) ac_abs_top_srcdir
=$ac_abs_builddir/$ac_top_srcdir;;
34791 [\\/$
]* | ?
:[\\/]* ) ac_rel_source
=$srcdir/$ac_source ;;
34792 *) ac_rel_source
=$ac_top_builddir$srcdir/$ac_source ;;
34795 # Try a symlink, then a hard link, then a copy.
34796 ln -s $ac_rel_source $ac_dest 2>/dev
/null ||
34797 ln $srcdir/$ac_source $ac_dest 2>/dev
/null ||
34798 cp -p $srcdir/$ac_source $ac_dest ||
34799 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
34800 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
34801 { (exit 1); exit 1; }; }
34805 cat >>$CONFIG_STATUS <<\_ACEOF
34807 { (exit 0); exit 0; }
34809 chmod +x
$CONFIG_STATUS
34810 ac_clean_files
=$ac_clean_files_save
34813 # configure is writing to config.log, and then calls config.status.
34814 # config.status does its own redirection, appending to config.log.
34815 # Unfortunately, on DOS this fails, as config.log is still kept open
34816 # by configure, so config.status won't be able to write to it; its
34817 # output is simply discarded. So we exec the FD to /dev/null,
34818 # effectively closing config.log, so it can be properly (re)opened and
34819 # appended to by config.status. When coming back to configure, we
34820 # need to make the FD available again.
34821 if test "$no_create" != yes; then
34823 ac_config_status_args
=
34824 test "$silent" = yes &&
34825 ac_config_status_args
="$ac_config_status_args --quiet"
34827 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
34829 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34830 # would make configure fail if this is the last instruction.
34831 $ac_cs_success ||
{ (exit 1); exit 1; }