2 # From configure.in Revision: 1.11 .
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated by GNU Autoconf 2.59 for GNU MP 4.2.1.
6 # Report bugs to <gmp-bugs@swox.com>.
10 # Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
11 # 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 2.1 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; see the file COPYING.LIB. If not, write to
27 # the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
31 # Copyright (C) 2003 Free Software Foundation, Inc.
32 # This configure script is free software; the Free Software Foundation
33 # gives unlimited permission to copy, distribute and modify it.
34 ## --------------------- ##
35 ## M4sh Initialization. ##
36 ## --------------------- ##
38 # Be Bourne compatible
39 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
42 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
43 # is contrary to our usage. Disable this feature.
44 alias -g '${1+"$@"}'='"$@"'
45 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
48 DUALCASE=1; export DUALCASE # for MKS sh
50 # Support unset when possible.
51 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
58 # Work around bugs in pre-3.0 UWIN ksh.
59 $as_unset ENV MAIL MAILPATH
66 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
67 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
70 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
71 eval $as_var=C; export $as_var
77 # Required to use basename.
78 if expr a : '\(a\)' >/dev/null 2>&1; then
84 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
91 # Name of the executable.
92 as_me=`$as_basename "$0" ||
93 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
94 X"$0" : 'X\(//\)$' \| \
95 X"$0" : 'X\(/\)$' \| \
96 . : '\(.\)' 2>/dev/null ||
98 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
99 /^X\/\(\/\/\)$/{ s//\1/; q; }
100 /^X\/\(\/\).*/{ s//\1/; q; }
104 # PATH needs CR, and LINENO needs CR and PATH.
105 # Avoid depending upon Character Ranges.
106 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
107 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
108 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
109 as_cr_digits='0123456789'
110 as_cr_alnum=$as_cr_Letters$as_cr_digits
112 # The user is always right.
113 if test "${PATH_SEPARATOR+set}" != set; then
114 echo "#! /bin/sh" >conf$$.sh
115 echo "exit 0" >>conf$$.sh
117 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
128 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
129 test "x$as_lineno_1" != "x$as_lineno_2" &&
130 test "x$as_lineno_3" = "x$as_lineno_2" || {
131 # Find who we are. Look in the path if we contain no path at all
134 *[\\/]* ) as_myself=$0 ;;
135 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
139 test -z "$as_dir" && as_dir=.
140 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
145 # We did not find ourselves, most probably we were run as `sh COMMAND'
146 # in which case we are not to be found in the path.
147 if test "x$as_myself" = x; then
150 if test ! -f "$as_myself"; then
151 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
152 { (exit 1); exit 1; }; }
154 case $CONFIG_SHELL in
156 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
157 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
160 test -z "$as_dir" && as_dir=.
161 for as_base in sh bash ksh sh5; do
164 if ("$as_dir/$as_base" -c '
167 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
168 test "x$as_lineno_1" != "x$as_lineno_2" &&
169 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
170 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
171 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
172 CONFIG_SHELL=$as_dir/$as_base
174 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
182 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
183 # uniformly replaced by the line number. The first 'sed' inserts a
184 # line-number line before each line; the second 'sed' does the real
185 # work. The second script uses 'N' to pair each line-number line
186 # with the numbered line, and appends trailing '-' during
187 # substitution so that $LINENO is not a special case at line end.
188 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
189 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
190 sed '=' <$as_myself |
195 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
198 s,^['$as_cr_digits']*\n,,
200 chmod +x $as_me.lineno ||
201 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
202 { (exit 1); exit 1; }; }
204 # Don't try to exec as it changes $[0], causing all sort of problems
205 # (the dirname of $[0] is not the place where we might find the
206 # original and so on. Autoconf is especially sensible to this).
208 # Exit status is that of the last command.
213 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
214 *c*,-n*) ECHO_N= ECHO_C='
216 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
217 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
220 if expr a : '\(a\)' >/dev/null 2>&1; then
226 rm -f conf$$ conf$$.exe conf$$.file
228 if ln -s conf$$.file conf$$ 2>/dev/null; then
229 # We could just check for DJGPP; but this test a) works b) is more generic
230 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
231 if test -f conf$$.exe; then
232 # Don't use ln at all; we don't have any links
237 elif ln conf$$.file conf$$ 2>/dev/null; then
242 rm -f conf$$ conf$$.exe conf$$.file
244 if mkdir -p . 2>/dev/null; then
247 test -d ./-p && rmdir ./-p
251 as_executable_p="test -f"
253 # Sed expression to map a string onto a valid CPP name.
254 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
256 # Sed expression to map a string onto a valid variable name.
257 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
261 # We need space, tab and new line, in precisely that order.
271 # Check that we are running under the correct shell.
272 SHELL=${CONFIG_SHELL-/bin/sh}
276 # Remove one level of quotation (which was required for Make).
277 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
282 if test "X$1" = X--no-reexec; then
283 # Discard the --no-reexec flag, and continue.
285 elif test "X$1" = X--fallback-echo; then
286 # Avoid inline document here, it may be left over
288 elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
289 # Yippee, $echo works!
292 # Restart under the correct shell.
293 exec $SHELL "$0" --no-reexec ${1+"$@"}
296 if test "X$1" = X--fallback-echo; then
297 # used as fallback echo
305 # The HP-UX ksh and POSIX shell print the target directory to stdout
307 if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
309 if test -z "$ECHO"; then
310 if test "X${echo_test_string+set}" != Xset; then
311 # find a string as large as possible, as long as the shell can cope with it
312 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
313 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
314 if (echo_test_string="`eval $cmd`") 2>/dev/null &&
315 echo_test_string="`eval $cmd`" &&
316 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
323 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
324 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
325 test "X$echo_testing_string" = "X$echo_test_string"; then
328 # The Solaris, AIX, and Digital Unix default echo programs unquote
329 # backslashes. This makes it impossible to quote backslashes using
330 # echo "$something" | sed 's/\\/\\\\/g'
332 # So, first we look for a working echo in the user's PATH.
334 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
335 for dir in $PATH /usr/ucb; do
337 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
338 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
339 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
340 test "X$echo_testing_string" = "X$echo_test_string"; then
347 if test "X$echo" = Xecho; then
348 # We didn't find a better echo, so look for alternatives.
349 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
350 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
351 test "X$echo_testing_string" = "X$echo_test_string"; then
352 # This shell has a builtin print -r that does the trick.
354 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
355 test "X$CONFIG_SHELL" != X/bin/ksh; then
356 # If we have ksh, try running configure again with it.
357 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
358 export ORIGINAL_CONFIG_SHELL
359 CONFIG_SHELL=/bin/ksh
361 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
365 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
366 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
367 test "X$echo_testing_string" = "X$echo_test_string"; then
370 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
371 test "X$echo_testing_string" = 'X\t' &&
372 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
373 test "X$echo_testing_string" = "X$echo_test_string"; then
374 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
376 SHELL="$CONFIG_SHELL"
378 echo="$CONFIG_SHELL $0 --fallback-echo"
379 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
380 test "X$echo_testing_string" = 'X\t' &&
381 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
382 test "X$echo_testing_string" = "X$echo_test_string"; then
383 echo="$CONFIG_SHELL $0 --fallback-echo"
385 # maybe with a smaller string...
388 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
389 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
396 if test "$prev" != 'sed 50q "$0"'; then
397 echo_test_string=`eval $prev`
398 export echo_test_string
399 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
401 # Oops. We lost completely, so just stick with echo.
410 # Copy echo and quote the copy suitably for passing to libtool from
411 # the Makefile, instead of quoting the original, which is used later.
413 if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
414 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
420 tagnames=${tagnames+${tagnames},}CXX
422 tagnames=${tagnames+${tagnames},}F77
425 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
426 # so uname gets run too.
427 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
434 ac_default_prefix=/usr/local
435 ac_config_libobj_dir=.
440 SHELL=${CONFIG_SHELL-/bin/sh}
442 # Maximum number of lines to put in a shell here document.
443 # This variable seems obsolete. It should probably be removed, and
444 # only ac_max_sed_lines should be used.
445 : ${ac_max_here_lines=38}
447 # Identity of this package.
448 PACKAGE_NAME='GNU MP'
449 PACKAGE_TARNAME='gmp'
450 PACKAGE_VERSION='4.2.1'
451 PACKAGE_STRING='GNU MP 4.2.1'
452 PACKAGE_BUGREPORT='gmp-bugs@swox.com'
454 ac_unique_file="gmp-impl.h"
455 # Factoring default headers for most tests.
456 ac_includes_default="\
459 # include <sys/types.h>
462 # include <sys/stat.h>
473 # if !STDC_HEADERS && HAVE_MEMORY_H
479 # include <strings.h>
482 # include <inttypes.h>
492 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 AR ac_ct_AR LIBGMP_DLL 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'
495 # Initialize some variables set by options.
497 ac_init_version=false
498 # The variables have the same names as the options, with
499 # dashes changed to underlines.
507 program_transform_name=s,x,x,
515 # Installation directory options.
516 # These are left unexpanded so users can "make install exec_prefix=/foo"
517 # and all the variables that are supposed to be based on exec_prefix
518 # by default will actually change.
519 # Use braces instead of parens because sh, perl, etc. also accept them.
520 bindir='${exec_prefix}/bin'
521 sbindir='${exec_prefix}/sbin'
522 libexecdir='${exec_prefix}/libexec'
523 datadir='${prefix}/share'
524 sysconfdir='${prefix}/etc'
525 sharedstatedir='${prefix}/com'
526 localstatedir='${prefix}/var'
527 libdir='${exec_prefix}/lib'
528 includedir='${prefix}/include'
529 oldincludedir='/usr/include'
530 infodir='${prefix}/info'
531 mandir='${prefix}/man'
536 # If the previous option needs an argument, assign it.
537 if test -n "$ac_prev"; then
538 eval "$ac_prev=\$ac_option"
543 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
545 # Accept the important Cygnus configure options, so we can diagnose typos.
549 -bindir | --bindir | --bindi | --bind | --bin | --bi)
551 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
554 -build | --build | --buil | --bui | --bu)
555 ac_prev=build_alias ;;
556 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
557 build_alias=$ac_optarg ;;
559 -cache-file | --cache-file | --cache-fil | --cache-fi \
560 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
561 ac_prev=cache_file ;;
562 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
563 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
564 cache_file=$ac_optarg ;;
567 cache_file=config.cache ;;
569 -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
571 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
573 datadir=$ac_optarg ;;
575 -disable-* | --disable-*)
576 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
577 # Reject names that are not valid shell variable names.
578 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
579 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
580 { (exit 1); exit 1; }; }
581 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
582 eval "enable_$ac_feature=no" ;;
584 -enable-* | --enable-*)
585 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
586 # Reject names that are not valid shell variable names.
587 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
588 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
589 { (exit 1); exit 1; }; }
590 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
592 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595 eval "enable_$ac_feature='$ac_optarg'" ;;
597 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
598 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
599 | --exec | --exe | --ex)
600 ac_prev=exec_prefix ;;
601 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
602 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
603 | --exec=* | --exe=* | --ex=*)
604 exec_prefix=$ac_optarg ;;
606 -gas | --gas | --ga | --g)
607 # Obsolete; use --with-gas.
610 -help | --help | --hel | --he | -h)
612 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
613 ac_init_help=recursive ;;
614 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
615 ac_init_help=short ;;
617 -host | --host | --hos | --ho)
618 ac_prev=host_alias ;;
619 -host=* | --host=* | --hos=* | --ho=*)
620 host_alias=$ac_optarg ;;
622 -includedir | --includedir | --includedi | --included | --include \
623 | --includ | --inclu | --incl | --inc)
624 ac_prev=includedir ;;
625 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
626 | --includ=* | --inclu=* | --incl=* | --inc=*)
627 includedir=$ac_optarg ;;
629 -infodir | --infodir | --infodi | --infod | --info | --inf)
631 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
632 infodir=$ac_optarg ;;
634 -libdir | --libdir | --libdi | --libd)
636 -libdir=* | --libdir=* | --libdi=* | --libd=*)
639 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
640 | --libexe | --libex | --libe)
641 ac_prev=libexecdir ;;
642 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
643 | --libexe=* | --libex=* | --libe=*)
644 libexecdir=$ac_optarg ;;
646 -localstatedir | --localstatedir | --localstatedi | --localstated \
647 | --localstate | --localstat | --localsta | --localst \
648 | --locals | --local | --loca | --loc | --lo)
649 ac_prev=localstatedir ;;
650 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
651 | --localstate=* | --localstat=* | --localsta=* | --localst=* \
652 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
653 localstatedir=$ac_optarg ;;
655 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
657 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
661 # Obsolete; use --without-fp.
664 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
665 | --no-cr | --no-c | -n)
668 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
669 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
672 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
673 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
674 | --oldin | --oldi | --old | --ol | --o)
675 ac_prev=oldincludedir ;;
676 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
677 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
678 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
679 oldincludedir=$ac_optarg ;;
681 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
683 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
686 -program-prefix | --program-prefix | --program-prefi | --program-pref \
687 | --program-pre | --program-pr | --program-p)
688 ac_prev=program_prefix ;;
689 -program-prefix=* | --program-prefix=* | --program-prefi=* \
690 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
691 program_prefix=$ac_optarg ;;
693 -program-suffix | --program-suffix | --program-suffi | --program-suff \
694 | --program-suf | --program-su | --program-s)
695 ac_prev=program_suffix ;;
696 -program-suffix=* | --program-suffix=* | --program-suffi=* \
697 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
698 program_suffix=$ac_optarg ;;
700 -program-transform-name | --program-transform-name \
701 | --program-transform-nam | --program-transform-na \
702 | --program-transform-n | --program-transform- \
703 | --program-transform | --program-transfor \
704 | --program-transfo | --program-transf \
705 | --program-trans | --program-tran \
706 | --progr-tra | --program-tr | --program-t)
707 ac_prev=program_transform_name ;;
708 -program-transform-name=* | --program-transform-name=* \
709 | --program-transform-nam=* | --program-transform-na=* \
710 | --program-transform-n=* | --program-transform-=* \
711 | --program-transform=* | --program-transfor=* \
712 | --program-transfo=* | --program-transf=* \
713 | --program-trans=* | --program-tran=* \
714 | --progr-tra=* | --program-tr=* | --program-t=*)
715 program_transform_name=$ac_optarg ;;
717 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
718 | -silent | --silent | --silen | --sile | --sil)
721 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
723 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
725 sbindir=$ac_optarg ;;
727 -sharedstatedir | --sharedstatedir | --sharedstatedi \
728 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
729 | --sharedst | --shareds | --shared | --share | --shar \
731 ac_prev=sharedstatedir ;;
732 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
733 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
734 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
736 sharedstatedir=$ac_optarg ;;
738 -site | --site | --sit)
740 -site=* | --site=* | --sit=*)
743 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
745 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
748 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
749 | --syscon | --sysco | --sysc | --sys | --sy)
750 ac_prev=sysconfdir ;;
751 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
752 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
753 sysconfdir=$ac_optarg ;;
755 -target | --target | --targe | --targ | --tar | --ta | --t)
756 ac_prev=target_alias ;;
757 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
758 target_alias=$ac_optarg ;;
760 -v | -verbose | --verbose | --verbos | --verbo | --verb)
763 -version | --version | --versio | --versi | --vers | -V)
767 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
768 # Reject names that are not valid shell variable names.
769 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
770 { echo "$as_me: error: invalid package name: $ac_package" >&2
771 { (exit 1); exit 1; }; }
772 ac_package=`echo $ac_package| sed 's/-/_/g'`
774 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
777 eval "with_$ac_package='$ac_optarg'" ;;
779 -without-* | --without-*)
780 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
781 # Reject names that are not valid shell variable names.
782 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
783 { echo "$as_me: error: invalid package name: $ac_package" >&2
784 { (exit 1); exit 1; }; }
785 ac_package=`echo $ac_package | sed 's/-/_/g'`
786 eval "with_$ac_package=no" ;;
789 # Obsolete; use --with-x.
792 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
793 | --x-incl | --x-inc | --x-in | --x-i)
794 ac_prev=x_includes ;;
795 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
796 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
797 x_includes=$ac_optarg ;;
799 -x-libraries | --x-libraries | --x-librarie | --x-librari \
800 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
801 ac_prev=x_libraries ;;
802 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
803 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
804 x_libraries=$ac_optarg ;;
806 -*) { echo "$as_me: error: unrecognized option: $ac_option
807 Try \`$0 --help' for more information." >&2
808 { (exit 1); exit 1; }; }
812 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
813 # Reject names that are not valid shell variable names.
814 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
815 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
816 { (exit 1); exit 1; }; }
817 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
818 eval "$ac_envvar='$ac_optarg'"
822 # FIXME: should be removed in autoconf 3.0.
823 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
824 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
825 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
826 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
832 if test -n "$ac_prev"; then
833 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
834 { echo "$as_me: error: missing argument to $ac_option" >&2
835 { (exit 1); exit 1; }; }
838 # Be sure to have absolute paths.
839 for ac_var in exec_prefix prefix
841 eval ac_val=$`echo $ac_var`
843 [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
844 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
845 { (exit 1); exit 1; }; };;
849 # Be sure to have absolute paths.
850 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
851 localstatedir libdir includedir oldincludedir infodir mandir
853 eval ac_val=$`echo $ac_var`
855 [\\/$]* | ?:[\\/]* ) ;;
856 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
857 { (exit 1); exit 1; }; };;
861 # There might be people who depend on the old broken behavior: `$host'
862 # used to hold the argument of --host etc.
863 # FIXME: To remove some day.
868 # FIXME: To remove some day.
869 if test "x$host_alias" != x; then
870 if test "x$build_alias" = x; then
871 cross_compiling=maybe
872 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
873 If a cross compiler is detected then cross compile mode will be used." >&2
874 elif test "x$build_alias" != "x$host_alias"; then
880 test -n "$host_alias" && ac_tool_prefix=$host_alias-
882 test "$silent" = yes && exec 6>/dev/null
885 # Find the source files, if location was not specified.
886 if test -z "$srcdir"; then
887 ac_srcdir_defaulted=yes
888 # Try the directory containing this script, then its parent.
889 ac_confdir=`(dirname "$0") 2>/dev/null ||
890 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
891 X"$0" : 'X\(//\)[^/]' \| \
892 X"$0" : 'X\(//\)$' \| \
893 X"$0" : 'X\(/\)' \| \
894 . : '\(.\)' 2>/dev/null ||
896 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
897 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
898 /^X\(\/\/\)$/{ s//\1/; q; }
899 /^X\(\/\).*/{ s//\1/; q; }
902 if test ! -r $srcdir/$ac_unique_file; then
906 ac_srcdir_defaulted=no
908 if test ! -r $srcdir/$ac_unique_file; then
909 if test "$ac_srcdir_defaulted" = yes; then
910 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
911 { (exit 1); exit 1; }; }
913 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
914 { (exit 1); exit 1; }; }
917 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
918 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
919 { (exit 1); exit 1; }; }
920 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
921 ac_env_build_alias_set=${build_alias+set}
922 ac_env_build_alias_value=$build_alias
923 ac_cv_env_build_alias_set=${build_alias+set}
924 ac_cv_env_build_alias_value=$build_alias
925 ac_env_host_alias_set=${host_alias+set}
926 ac_env_host_alias_value=$host_alias
927 ac_cv_env_host_alias_set=${host_alias+set}
928 ac_cv_env_host_alias_value=$host_alias
929 ac_env_target_alias_set=${target_alias+set}
930 ac_env_target_alias_value=$target_alias
931 ac_cv_env_target_alias_set=${target_alias+set}
932 ac_cv_env_target_alias_value=$target_alias
933 ac_env_ABI_set=${ABI+set}
934 ac_env_ABI_value=$ABI
935 ac_cv_env_ABI_set=${ABI+set}
936 ac_cv_env_ABI_value=$ABI
937 ac_env_CC_set=${CC+set}
939 ac_cv_env_CC_set=${CC+set}
940 ac_cv_env_CC_value=$CC
941 ac_env_CFLAGS_set=${CFLAGS+set}
942 ac_env_CFLAGS_value=$CFLAGS
943 ac_cv_env_CFLAGS_set=${CFLAGS+set}
944 ac_cv_env_CFLAGS_value=$CFLAGS
945 ac_env_LDFLAGS_set=${LDFLAGS+set}
946 ac_env_LDFLAGS_value=$LDFLAGS
947 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
948 ac_cv_env_LDFLAGS_value=$LDFLAGS
949 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
950 ac_env_CPPFLAGS_value=$CPPFLAGS
951 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
952 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
953 ac_env_CPP_set=${CPP+set}
954 ac_env_CPP_value=$CPP
955 ac_cv_env_CPP_set=${CPP+set}
956 ac_cv_env_CPP_value=$CPP
957 ac_env_CC_FOR_BUILD_set=${CC_FOR_BUILD+set}
958 ac_env_CC_FOR_BUILD_value=$CC_FOR_BUILD
959 ac_cv_env_CC_FOR_BUILD_set=${CC_FOR_BUILD+set}
960 ac_cv_env_CC_FOR_BUILD_value=$CC_FOR_BUILD
961 ac_env_CPP_FOR_BUILD_set=${CPP_FOR_BUILD+set}
962 ac_env_CPP_FOR_BUILD_value=$CPP_FOR_BUILD
963 ac_cv_env_CPP_FOR_BUILD_set=${CPP_FOR_BUILD+set}
964 ac_cv_env_CPP_FOR_BUILD_value=$CPP_FOR_BUILD
965 ac_env_CXX_set=${CXX+set}
966 ac_env_CXX_value=$CXX
967 ac_cv_env_CXX_set=${CXX+set}
968 ac_cv_env_CXX_value=$CXX
969 ac_env_CXXFLAGS_set=${CXXFLAGS+set}
970 ac_env_CXXFLAGS_value=$CXXFLAGS
971 ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
972 ac_cv_env_CXXFLAGS_value=$CXXFLAGS
973 ac_env_CXXCPP_set=${CXXCPP+set}
974 ac_env_CXXCPP_value=$CXXCPP
975 ac_cv_env_CXXCPP_set=${CXXCPP+set}
976 ac_cv_env_CXXCPP_value=$CXXCPP
977 ac_env_M4_set=${M4+set}
979 ac_cv_env_M4_set=${M4+set}
980 ac_cv_env_M4_value=$M4
983 # Report the --help message.
985 if test "$ac_init_help" = "long"; then
986 # Omit some internal or obsolete options to make the list less imposing.
987 # This message is too long to be a string in the A/UX 3.1 sh.
989 \`configure' configures GNU MP 4.2.1 to adapt to many kinds of systems.
991 Usage: $0 [OPTION]... [VAR=VALUE]...
993 To assign environment variables (e.g., CC, CFLAGS...), specify them as
994 VAR=VALUE. See below for descriptions of some of the useful variables.
996 Defaults for the options are specified in brackets.
999 -h, --help display this help and exit
1000 --help=short display options specific to this package
1001 --help=recursive display the short help of all the included packages
1002 -V, --version display version information and exit
1003 -q, --quiet, --silent do not print \`checking...' messages
1004 --cache-file=FILE cache test results in FILE [disabled]
1005 -C, --config-cache alias for \`--cache-file=config.cache'
1006 -n, --no-create do not create output files
1007 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1012 Installation directories:
1013 --prefix=PREFIX install architecture-independent files in PREFIX
1014 [$ac_default_prefix]
1015 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1018 By default, \`make install' will install all the files in
1019 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1020 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1021 for instance \`--prefix=\$HOME'.
1023 For better control, use the options below.
1025 Fine tuning of the installation directories:
1026 --bindir=DIR user executables [EPREFIX/bin]
1027 --sbindir=DIR system admin executables [EPREFIX/sbin]
1028 --libexecdir=DIR program executables [EPREFIX/libexec]
1029 --datadir=DIR read-only architecture-independent data [PREFIX/share]
1030 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1031 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1032 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1033 --libdir=DIR object code libraries [EPREFIX/lib]
1034 --includedir=DIR C header files [PREFIX/include]
1035 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1036 --infodir=DIR info documentation [PREFIX/info]
1037 --mandir=DIR man documentation [PREFIX/man]
1043 --program-prefix=PREFIX prepend PREFIX to installed program names
1044 --program-suffix=SUFFIX append SUFFIX to installed program names
1045 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1048 --build=BUILD configure for building on BUILD [guessed]
1049 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1053 if test -n "$ac_init_help"; then
1054 case $ac_init_help in
1055 short | recursive ) echo "Configuration of GNU MP 4.2.1:";;
1060 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1061 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1062 --enable-maintainer-mode enable make rules and dependencies not useful
1063 (and sometimes confusing) to the casual installer
1064 --enable-assert enable ASSERT checking [default=no]
1065 --enable-alloca how to get temp memory [default=reentrant]
1066 --enable-cxx enable C++ support [default=no]
1067 --enable-fft enable FFTs for multiplication [default=yes]
1068 --enable-mpbsd build Berkeley MP compatibility library
1070 --enable-nails use nails on limbs [default=no]
1071 --enable-profiling build with profiler support [default=no]
1072 --enable-fat build a fat binary on systems that support it
1074 --enable-shared[=PKGS]
1075 build shared libraries [default=yes]
1076 --enable-static[=PKGS]
1077 build static libraries [default=yes]
1078 --enable-fast-install[=PKGS]
1079 optimize for fast installation [default=yes]
1080 --disable-libtool-lock avoid locking (might break parallel builds)
1083 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1084 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1085 --with-readline readline support in calc demo program
1087 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
1088 --with-pic try to use only PIC/non-PIC objects [default=use
1091 include additional configurations [automatic]
1093 Some influential environment variables:
1094 ABI desired ABI (for processors supporting more than one ABI)
1095 CC C compiler command
1096 CFLAGS C compiler flags
1097 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1098 nonstandard directory <lib dir>
1099 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
1100 headers in a nonstandard directory <include dir>
1103 build system C compiler
1105 build system C preprocessor
1106 CXX C++ compiler command
1107 CXXFLAGS C++ compiler flags
1108 CXXCPP C++ preprocessor
1109 M4 m4 macro processor
1111 Use these variables to override the choices made by `configure' or to help
1112 it to find libraries and programs with nonstandard names/locations.
1114 Report bugs to <gmp-bugs@swox.com>.
1118 if test "$ac_init_help" = "recursive"; then
1119 # If there are subdirs, report their specific --help.
1121 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1122 test -d $ac_dir || continue
1125 if test "$ac_dir" != .; then
1126 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1127 # A "../" for each directory in $ac_dir_suffix.
1128 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
1130 ac_dir_suffix= ac_top_builddir=
1134 .) # No --srcdir option. We are building in place.
1136 if test -z "$ac_top_builddir"; then
1139 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
1141 [\\/]* | ?:[\\/]* ) # Absolute path.
1142 ac_srcdir=$srcdir$ac_dir_suffix;
1143 ac_top_srcdir=$srcdir ;;
1145 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
1146 ac_top_srcdir=$ac_top_builddir$srcdir ;;
1149 # Do not use `cd foo && pwd` to compute absolute paths, because
1150 # the directories may not exist.
1152 .) ac_abs_builddir="$ac_dir";;
1155 .) ac_abs_builddir=`pwd`;;
1156 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
1157 *) ac_abs_builddir=`pwd`/"$ac_dir";;
1160 case $ac_abs_builddir in
1161 .) ac_abs_top_builddir=${ac_top_builddir}.;;
1163 case ${ac_top_builddir}. in
1164 .) ac_abs_top_builddir=$ac_abs_builddir;;
1165 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
1166 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
1169 case $ac_abs_builddir in
1170 .) ac_abs_srcdir=$ac_srcdir;;
1173 .) ac_abs_srcdir=$ac_abs_builddir;;
1174 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
1175 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
1178 case $ac_abs_builddir in
1179 .) ac_abs_top_srcdir=$ac_top_srcdir;;
1181 case $ac_top_srcdir in
1182 .) ac_abs_top_srcdir=$ac_abs_builddir;;
1183 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
1184 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
1189 # Check for guested configure; otherwise get Cygnus style configure.
1190 if test -f $ac_srcdir/configure.gnu; then
1192 $SHELL $ac_srcdir/configure.gnu --help=recursive
1193 elif test -f $ac_srcdir/configure; then
1195 $SHELL $ac_srcdir/configure --help=recursive
1196 elif test -f $ac_srcdir/configure.ac ||
1197 test -f $ac_srcdir/configure.in; then
1199 $ac_configure --help
1201 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1207 test -n "$ac_init_help" && exit 0
1208 if $ac_init_version; then
1210 GNU MP configure 4.2.1
1211 generated by GNU Autoconf 2.59
1213 Copyright (C) 2003 Free Software Foundation, Inc.
1214 This configure script is free software; the Free Software Foundation
1215 gives unlimited permission to copy, distribute and modify it.
1219 Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006
1220 Free Software Foundation, Inc.
1222 This file is part of the GNU MP Library.
1224 The GNU MP Library is free software; you can redistribute it and/or modify
1225 it under the terms of the GNU Lesser General Public License as published
1226 by the Free Software Foundation; either version 2.1 of the License, or (at
1227 your option) any later version.
1229 The GNU MP Library is distributed in the hope that it will be useful, but
1230 WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
1231 or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
1232 License for more details.
1234 You should have received a copy of the GNU Lesser General Public License
1235 along with the GNU MP Library; see the file COPYING.LIB. If not, write to
1236 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
1244 This file contains any messages produced by compilers while
1245 running configure, to aid debugging if configure makes a mistake.
1247 It was created by GNU MP $as_me 4.2.1, which was
1248 generated by GNU Autoconf 2.59. Invocation command line was
1259 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1260 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1261 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1262 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1263 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1265 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1266 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1268 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1269 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1270 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1271 hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
1272 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1273 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1274 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1282 test -z "$as_dir" && as_dir=.
1283 echo "PATH: $as_dir"
1298 # Keep a trace of the command line.
1299 # Strip out --no-create and --no-recursion so they do not pile up.
1300 # Strip out --silent because we don't want to record it for future runs.
1301 # Also quote any args containing shell meta-characters.
1302 # Make two passes to allow for proper duplicate-argument suppression.
1307 ac_must_keep_next=false
1313 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1314 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1315 | -silent | --silent | --silen | --sile | --sil)
1317 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1318 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1321 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1323 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1324 if test $ac_must_keep_next = true; then
1325 ac_must_keep_next=false # Got value, back to normal.
1328 *=* | --config-cache | -C | -disable-* | --disable-* \
1329 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1330 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1331 | -with-* | --with-* | -without-* | --without-* | --x)
1332 case "$ac_configure_args0 " in
1333 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1336 -* ) ac_must_keep_next=true ;;
1339 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1340 # Get rid of the leading space.
1346 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1347 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1349 # When interrupted or exit'd, cleanup temporary files, and complete
1350 # config.log. We remove comments because anyway the quotes in there
1351 # would cause problems or look ugly.
1352 # WARNING: Be sure not to use single quotes in there, as some shells,
1353 # such as our DU 5.0 friend, will then `close' the trap.
1354 trap 'exit_status=$?
1355 # Save into config.log some information that might help in debugging.
1360 ## ---------------- ##
1361 ## Cache variables. ##
1362 ## ---------------- ##
1365 # The following way of writing the cache mishandles newlines in values,
1368 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1371 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1372 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1376 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1383 ## ----------------- ##
1384 ## Output variables. ##
1385 ## ----------------- ##
1388 for ac_var in $ac_subst_vars
1390 eval ac_val=$`echo $ac_var`
1391 echo "$ac_var='"'"'$ac_val'"'"'"
1395 if test -n "$ac_subst_files"; then
1402 for ac_var in $ac_subst_files
1404 eval ac_val=$`echo $ac_var`
1405 echo "$ac_var='"'"'$ac_val'"'"'"
1410 if test -s confdefs.h; then
1417 sed "/^$/d" confdefs.h | sort
1420 test "$ac_signal" != 0 &&
1421 echo "$as_me: caught signal $ac_signal"
1422 echo "$as_me: exit $exit_status"
1424 rm -f core *.core &&
1425 rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1428 for ac_signal in 1 2 13 15; do
1429 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1433 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1434 rm -rf conftest* confdefs.h
1435 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1438 # Predefined preprocessor variables.
1440 cat >>confdefs.h <<_ACEOF
1441 #define PACKAGE_NAME "$PACKAGE_NAME"
1445 cat >>confdefs.h <<_ACEOF
1446 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1450 cat >>confdefs.h <<_ACEOF
1451 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1455 cat >>confdefs.h <<_ACEOF
1456 #define PACKAGE_STRING "$PACKAGE_STRING"
1460 cat >>confdefs.h <<_ACEOF
1461 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1465 # Let the site file select an alternate cache file if it wants to.
1466 # Prefer explicitly selected file to automatically selected ones.
1467 if test -z "$CONFIG_SITE"; then
1468 if test "x$prefix" != xNONE; then
1469 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1471 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1474 for ac_site_file in $CONFIG_SITE; do
1475 if test -r "$ac_site_file"; then
1476 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1477 echo "$as_me: loading site script $ac_site_file" >&6;}
1478 sed 's/^/| /' "$ac_site_file" >&5
1483 if test -r "$cache_file"; then
1484 # Some versions of bash will fail to source /dev/null (special
1485 # files actually), so we avoid doing that.
1486 if test -f "$cache_file"; then
1487 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1488 echo "$as_me: loading cache $cache_file" >&6;}
1490 [\\/]* | ?:[\\/]* ) . $cache_file;;
1491 *) . ./$cache_file;;
1495 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1496 echo "$as_me: creating cache $cache_file" >&6;}
1500 # Check that the precious variables saved in the cache have kept the same
1502 ac_cache_corrupted=false
1503 for ac_var in `(set) 2>&1 |
1504 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1505 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1506 eval ac_new_set=\$ac_env_${ac_var}_set
1507 eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1508 eval ac_new_val="\$ac_env_${ac_var}_value"
1509 case $ac_old_set,$ac_new_set in
1511 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1512 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1513 ac_cache_corrupted=: ;;
1515 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1516 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1517 ac_cache_corrupted=: ;;
1520 if test "x$ac_old_val" != "x$ac_new_val"; then
1521 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1522 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1523 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1524 echo "$as_me: former value: $ac_old_val" >&2;}
1525 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1526 echo "$as_me: current value: $ac_new_val" >&2;}
1527 ac_cache_corrupted=:
1530 # Pass precious variables to config.status.
1531 if test "$ac_new_set" = set; then
1533 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1534 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1535 *) ac_arg=$ac_var=$ac_new_val ;;
1537 case " $ac_configure_args " in
1538 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1539 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1543 if $ac_cache_corrupted; then
1544 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1545 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1546 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1547 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1548 { (exit 1); exit 1; }; }
1552 ac_cpp='$CPP $CPPFLAGS'
1553 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1554 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1555 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1591 # If --target is not used then $target_alias is empty, but if say
1592 # "./configure athlon-pc-freebsd3.5" is used, then all three of
1593 # $build_alias, $host_alias and $target_alias are set to
1594 # "athlon-pc-freebsd3.5".
1596 if test -n "$target_alias" && test "$target_alias" != "$host_alias"; then
1597 { { echo "$as_me:$LINENO: error: --target is not appropriate for GMP
1598 Use --build=CPU-VENDOR-OS if you need to specify your CPU and/or system
1599 explicitly. Use --host if cross-compiling (see \"Installing GMP\" in the
1600 manual for more on this)." >&5
1601 echo "$as_me: error: --target is not appropriate for GMP
1602 Use --build=CPU-VENDOR-OS if you need to specify your CPU and/or system
1603 explicitly. Use --host if cross-compiling (see \"Installing GMP\" in the
1604 manual for more on this)." >&2;}
1605 { (exit 1); exit 1; }; }
1608 gmp_configm4="config.m4"
1609 gmp_tmpconfigm4=cnfm4.tmp
1610 gmp_tmpconfigm4i=cnfm4i.tmp
1611 gmp_tmpconfigm4p=cnfm4p.tmp
1612 rm -f $gmp_tmpconfigm4 $gmp_tmpconfigm4i $gmp_tmpconfigm4p
1614 # CONFIG_TOP_SRCDIR is a path from the mpn builddir to the top srcdir.
1615 # The pattern here tests for an absolute path the same way as
1616 # _AC_OUTPUT_FILES in autoconf acgeneral.m4.
1618 [\\/]* | ?:[\\/]* ) tmp="$srcdir" ;;
1619 *) tmp="../$srcdir" ;;
1621 echo "define(<CONFIG_TOP_SRCDIR>,<\`$tmp'>)" >>$gmp_tmpconfigm4
1623 # All CPUs use asm-defs.m4
1624 echo "include(CONFIG_TOP_SRCDIR\`/mpn/asm-defs.m4')" >>$gmp_tmpconfigm4i
1628 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
1629 if test -f $ac_dir/install-sh; then
1631 ac_install_sh="$ac_aux_dir/install-sh -c"
1633 elif test -f $ac_dir/install.sh; then
1635 ac_install_sh="$ac_aux_dir/install.sh -c"
1637 elif test -f $ac_dir/shtool; then
1639 ac_install_sh="$ac_aux_dir/shtool install -c"
1643 if test -z "$ac_aux_dir"; then
1644 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
1645 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
1646 { (exit 1); exit 1; }; }
1648 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1649 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1650 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1652 # Make sure we can run config.sub.
1653 $ac_config_sub sun4 >/dev/null 2>&1 ||
1654 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
1655 echo "$as_me: error: cannot run $ac_config_sub" >&2;}
1656 { (exit 1); exit 1; }; }
1658 echo "$as_me:$LINENO: checking build system type" >&5
1659 echo $ECHO_N "checking build system type... $ECHO_C" >&6
1660 if test "${ac_cv_build+set}" = set; then
1661 echo $ECHO_N "(cached) $ECHO_C" >&6
1663 ac_cv_build_alias=$build_alias
1664 test -z "$ac_cv_build_alias" &&
1665 ac_cv_build_alias=`$ac_config_guess`
1666 test -z "$ac_cv_build_alias" &&
1667 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
1668 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
1669 { (exit 1); exit 1; }; }
1670 ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
1671 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
1672 echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
1673 { (exit 1); exit 1; }; }
1676 echo "$as_me:$LINENO: result: $ac_cv_build" >&5
1677 echo "${ECHO_T}$ac_cv_build" >&6
1679 build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1680 build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1681 build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1684 echo "$as_me:$LINENO: checking host system type" >&5
1685 echo $ECHO_N "checking host system type... $ECHO_C" >&6
1686 if test "${ac_cv_host+set}" = set; then
1687 echo $ECHO_N "(cached) $ECHO_C" >&6
1689 ac_cv_host_alias=$host_alias
1690 test -z "$ac_cv_host_alias" &&
1691 ac_cv_host_alias=$ac_cv_build_alias
1692 ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
1693 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
1694 echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
1695 { (exit 1); exit 1; }; }
1698 echo "$as_me:$LINENO: result: $ac_cv_host" >&5
1699 echo "${ECHO_T}$ac_cv_host" >&6
1701 host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
1702 host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
1703 host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
1707 am__api_version="1.8"
1708 # Find a good install program. We prefer a C program (faster),
1709 # so one script is as good as another. But avoid the broken or
1710 # incompatible versions:
1711 # SysV /etc/install, /usr/sbin/install
1712 # SunOS /usr/etc/install
1713 # IRIX /sbin/install
1715 # AmigaOS /C/install, which installs bootblocks on floppy discs
1716 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1717 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1718 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1719 # OS/2's system install, which has a completely different semantic
1720 # ./install, which can be erroneously created by make from ./install.sh.
1721 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1722 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
1723 if test -z "$INSTALL"; then
1724 if test "${ac_cv_path_install+set}" = set; then
1725 echo $ECHO_N "(cached) $ECHO_C" >&6
1727 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1731 test -z "$as_dir" && as_dir=.
1732 # Account for people who put trailing slashes in PATH elements.
1734 ./ | .// | /cC/* | \
1735 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1736 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1739 # OSF1 and SCO ODT 3.0 have their own names for install.
1740 # Don't use installbsd from OSF since it installs stuff as root
1742 for ac_prog in ginstall scoinst install; do
1743 for ac_exec_ext in '' $ac_executable_extensions; do
1744 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
1745 if test $ac_prog = install &&
1746 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1747 # AIX install. It has an incompatible calling convention.
1749 elif test $ac_prog = install &&
1750 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1751 # program-specific install script used by HP pwplus--don't use.
1754 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1766 if test "${ac_cv_path_install+set}" = set; then
1767 INSTALL=$ac_cv_path_install
1769 # As a last resort, use the slow shell script. We don't cache a
1770 # path for INSTALL within a source directory, because that will
1771 # break other packages using the cache if that directory is
1772 # removed, or if the path is relative.
1773 INSTALL=$ac_install_sh
1776 echo "$as_me:$LINENO: result: $INSTALL" >&5
1777 echo "${ECHO_T}$INSTALL" >&6
1779 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1780 # It thinks the first close brace ends the variable substitution.
1781 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1783 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1785 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1787 echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1788 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
1791 echo timestamp > conftest.file
1792 # Do `set' in a subshell so we don't clobber the current shell's
1793 # arguments. Must try -L first in case configure is actually a
1794 # symlink; some systems play weird games with the mod time of symlinks
1795 # (eg FreeBSD returns the mod time of the symlink's containing
1798 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1799 if test "$*" = "X"; then
1801 set X `ls -t $srcdir/configure conftest.file`
1804 if test "$*" != "X $srcdir/configure conftest.file" \
1805 && test "$*" != "X conftest.file $srcdir/configure"; then
1807 # If neither matched, then we have a broken ls. This can happen
1808 # if, for instance, CONFIG_SHELL is bash and it inherits a
1809 # broken ls alias from the environment. This has actually
1810 # happened. Such a system could not be considered "sane".
1811 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1812 alias in your environment" >&5
1813 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1814 alias in your environment" >&2;}
1815 { (exit 1); exit 1; }; }
1818 test "$2" = conftest.file
1824 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1825 Check your system clock" >&5
1826 echo "$as_me: error: newly created file is older than distributed files!
1827 Check your system clock" >&2;}
1828 { (exit 1); exit 1; }; }
1830 echo "$as_me:$LINENO: result: yes" >&5
1831 echo "${ECHO_T}yes" >&6
1832 test "$program_prefix" != NONE &&
1833 program_transform_name="s,^,$program_prefix,;$program_transform_name"
1834 # Use a double $ so make ignores it.
1835 test "$program_suffix" != NONE &&
1836 program_transform_name="s,\$,$program_suffix,;$program_transform_name"
1837 # Double any \ or $. echo might interpret backslashes.
1838 # By default was `s,x,x', remove it if useless.
1839 cat <<\_ACEOF >conftest.sed
1840 s/[\\$]/&&/g;s/;s,x,x,$//
1842 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1845 # expand $ac_aux_dir to an absolute path
1846 am_aux_dir=`cd $ac_aux_dir && pwd`
1848 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1849 # Use eval to expand $SHELL
1850 if eval "$MISSING --run true"; then
1851 am_missing_run="$MISSING --run "
1854 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1855 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1858 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1859 # Keeping the `.' argument allows $(mkdir_p) to be used without
1860 # argument. Indeed, we sometimes output rules like
1861 # $(mkdir_p) $(somedir)
1862 # where $(somedir) is conditionally defined.
1863 # (`test -n '$(somedir)' && $(mkdir_p) $(somedir)' is a more
1864 # expensive solution, as it forces Make to start a sub-shell.)
1865 mkdir_p='mkdir -p -- .'
1867 # On NextStep and OpenStep, the `mkdir' command does not
1868 # recognize any option. It will interpret all options as
1869 # directories to create, and then abort because `.' already
1871 for d in ./-p ./--version;
1873 test -d $d && rmdir $d
1875 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
1876 if test -f "$ac_aux_dir/mkinstalldirs"; then
1877 mkdir_p='$(mkinstalldirs)'
1879 mkdir_p='$(install_sh) -d'
1883 for ac_prog in gawk mawk nawk awk
1885 # Extract the first word of "$ac_prog", so it can be a program name with args.
1886 set dummy $ac_prog; ac_word=$2
1887 echo "$as_me:$LINENO: checking for $ac_word" >&5
1888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1889 if test "${ac_cv_prog_AWK+set}" = set; then
1890 echo $ECHO_N "(cached) $ECHO_C" >&6
1892 if test -n "$AWK"; then
1893 ac_cv_prog_AWK="$AWK" # Let the user override the test.
1895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1899 test -z "$as_dir" && as_dir=.
1900 for ac_exec_ext in '' $ac_executable_extensions; do
1901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1902 ac_cv_prog_AWK="$ac_prog"
1903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1912 if test -n "$AWK"; then
1913 echo "$as_me:$LINENO: result: $AWK" >&5
1914 echo "${ECHO_T}$AWK" >&6
1916 echo "$as_me:$LINENO: result: no" >&5
1917 echo "${ECHO_T}no" >&6
1920 test -n "$AWK" && break
1923 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1924 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1925 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1926 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1927 echo $ECHO_N "(cached) $ECHO_C" >&6
1929 cat >conftest.make <<\_ACEOF
1931 @echo 'ac_maketemp="$(MAKE)"'
1933 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1934 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1935 if test -n "$ac_maketemp"; then
1936 eval ac_cv_prog_make_${ac_make}_set=yes
1938 eval ac_cv_prog_make_${ac_make}_set=no
1942 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1943 echo "$as_me:$LINENO: result: yes" >&5
1944 echo "${ECHO_T}yes" >&6
1947 echo "$as_me:$LINENO: result: no" >&5
1948 echo "${ECHO_T}no" >&6
1949 SET_MAKE="MAKE=${MAKE-make}"
1952 rm -rf .tst 2>/dev/null
1953 mkdir .tst 2>/dev/null
1954 if test -d .tst; then
1959 rmdir .tst 2>/dev/null
1961 # test to see if srcdir already configured
1962 if test "`cd $srcdir && pwd`" != "`pwd`" &&
1963 test -f $srcdir/config.status; then
1964 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
1965 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
1966 { (exit 1); exit 1; }; }
1969 # test whether we have cygpath
1970 if test -z "$CYGPATH_W"; then
1971 if (cygpath --version) >/dev/null 2>/dev/null; then
1972 CYGPATH_W='cygpath -w'
1979 # Define the identity of the package.
1984 cat >>confdefs.h <<_ACEOF
1985 #define PACKAGE "$PACKAGE"
1989 cat >>confdefs.h <<_ACEOF
1990 #define VERSION "$VERSION"
1993 # Some tools Automake needs.
1995 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
1998 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2001 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2004 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2007 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2010 AMTAR=${AMTAR-"${am_missing_run}tar"}
2012 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2014 # Installed binaries are usually stripped using `strip' when the user
2015 # run `make install-strip'. However `strip' might not be the right
2016 # tool to use in cross-compilation environments, therefore Automake
2017 # will honor the `STRIP' environment variable to overrule this program.
2018 if test "$cross_compiling" != no; then
2019 if test -n "$ac_tool_prefix"; then
2020 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2021 set dummy ${ac_tool_prefix}strip; ac_word=$2
2022 echo "$as_me:$LINENO: checking for $ac_word" >&5
2023 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2024 if test "${ac_cv_prog_STRIP+set}" = set; then
2025 echo $ECHO_N "(cached) $ECHO_C" >&6
2027 if test -n "$STRIP"; then
2028 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2030 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2034 test -z "$as_dir" && as_dir=.
2035 for ac_exec_ext in '' $ac_executable_extensions; do
2036 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2037 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2038 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2046 STRIP=$ac_cv_prog_STRIP
2047 if test -n "$STRIP"; then
2048 echo "$as_me:$LINENO: result: $STRIP" >&5
2049 echo "${ECHO_T}$STRIP" >&6
2051 echo "$as_me:$LINENO: result: no" >&5
2052 echo "${ECHO_T}no" >&6
2056 if test -z "$ac_cv_prog_STRIP"; then
2058 # Extract the first word of "strip", so it can be a program name with args.
2059 set dummy strip; ac_word=$2
2060 echo "$as_me:$LINENO: checking for $ac_word" >&5
2061 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2062 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2063 echo $ECHO_N "(cached) $ECHO_C" >&6
2065 if test -n "$ac_ct_STRIP"; then
2066 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2072 test -z "$as_dir" && as_dir=.
2073 for ac_exec_ext in '' $ac_executable_extensions; do
2074 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2075 ac_cv_prog_ac_ct_STRIP="strip"
2076 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2082 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
2085 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2086 if test -n "$ac_ct_STRIP"; then
2087 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2088 echo "${ECHO_T}$ac_ct_STRIP" >&6
2090 echo "$as_me:$LINENO: result: no" >&5
2091 echo "${ECHO_T}no" >&6
2096 STRIP="$ac_cv_prog_STRIP"
2100 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2102 # We need awk for the "check" target. The system "awk" is bad on
2107 ac_config_headers="$ac_config_headers config.h:config.in"
2109 echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2110 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6
2111 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given.
2112 if test "${enable_maintainer_mode+set}" = set; then
2113 enableval="$enable_maintainer_mode"
2114 USE_MAINTAINER_MODE=$enableval
2116 USE_MAINTAINER_MODE=no
2118 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2119 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6
2122 if test $USE_MAINTAINER_MODE = yes; then
2123 MAINTAINER_MODE_TRUE=
2124 MAINTAINER_MODE_FALSE='#'
2126 MAINTAINER_MODE_TRUE='#'
2127 MAINTAINER_MODE_FALSE=
2130 MAINT=$MAINTAINER_MODE_TRUE
2135 # Check whether --enable-assert or --disable-assert was given.
2136 if test "${enable_assert+set}" = set; then
2137 enableval="$enable_assert"
2140 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-assert, need yes or no" >&5
2141 echo "$as_me: error: bad value $enableval for --enable-assert, need yes or no" >&2;}
2142 { (exit 1); exit 1; }; } ;;
2148 if test "$enable_assert" = "yes"; then
2150 cat >>confdefs.h <<\_ACEOF
2151 #define WANT_ASSERT 1
2159 echo "define(<WANT_ASSERT>,$want_assert_01)" >> $gmp_tmpconfigm4
2163 # Check whether --enable-alloca or --disable-alloca was given.
2164 if test "${enable_alloca+set}" = set; then
2165 enableval="$enable_alloca"
2167 alloca|malloc-reentrant|malloc-notreentrant) ;;
2168 yes|no|reentrant|notreentrant) ;;
2171 { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-alloca, need one of:
2172 yes no reentrant notreentrant alloca malloc-reentrant malloc-notreentrant debug" >&5
2173 echo "$as_me: error: bad value $enableval for --enable-alloca, need one of:
2174 yes no reentrant notreentrant alloca malloc-reentrant malloc-notreentrant debug" >&2;}
2175 { (exit 1); exit 1; }; } ;;
2178 enable_alloca=reentrant
2182 # IMPROVE ME: The default for C++ is disabled. The tests currently
2183 # performed below for a working C++ compiler are not particularly strong,
2184 # and in general can't be expected to get the right setup on their own. The
2185 # most significant problem is getting the ABI the same. Defaulting CXXFLAGS
2186 # to CFLAGS takes only a small step towards this. It's also probably worth
2187 # worrying whether the C and C++ runtimes from say gcc and a vendor C++ can
2188 # work together. Some rather broken C++ installations were encountered
2189 # during testing, and though such things clearly aren't GMP's problem, if
2190 # --enable-cxx=detect were to be the default then some careful checks of
2191 # which, if any, C++ compiler on the system is up to scratch would be
2194 # Check whether --enable-cxx or --disable-cxx was given.
2195 if test "${enable_cxx+set}" = set; then
2196 enableval="$enable_cxx"
2199 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-cxx, need yes/no/detect" >&5
2200 echo "$as_me: error: bad value $enableval for --enable-cxx, need yes/no/detect" >&2;}
2201 { (exit 1); exit 1; }; } ;;
2208 # Check whether --enable-fft or --disable-fft was given.
2209 if test "${enable_fft+set}" = set; then
2210 enableval="$enable_fft"
2213 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-fft, need yes or no" >&5
2214 echo "$as_me: error: bad value $enableval for --enable-fft, need yes or no" >&2;}
2215 { (exit 1); exit 1; }; } ;;
2221 if test "$enable_fft" = "yes"; then
2223 cat >>confdefs.h <<\_ACEOF
2230 # Check whether --enable-mpbsd or --disable-mpbsd was given.
2231 if test "${enable_mpbsd+set}" = set; then
2232 enableval="$enable_mpbsd"
2235 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-mpbsd, need yes or no" >&5
2236 echo "$as_me: error: bad value $enableval for --enable-mpbsd, need yes or no" >&2;}
2237 { (exit 1); exit 1; }; } ;;
2244 if test "$enable_mpbsd" = "yes"; then
2246 WANT_MPBSD_FALSE='#'
2254 # Check whether --enable-nails or --disable-nails was given.
2255 if test "${enable_nails+set}" = set; then
2256 enableval="$enable_nails"
2258 yes|no|[0-9]|[0-9][0-9]) ;;
2259 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-nails, need yes/no/number" >&5
2260 echo "$as_me: error: bad value $enableval for --enable-nails, need yes/no/number" >&2;}
2261 { (exit 1); exit 1; }; } ;;
2267 case $enable_nails in
2268 yes) GMP_NAIL_BITS=2 ;;
2269 no) GMP_NAIL_BITS=0 ;;
2270 *) GMP_NAIL_BITS=$enable_nails ;;
2275 # Check whether --enable-profiling or --disable-profiling was given.
2276 if test "${enable_profiling+set}" = set; then
2277 enableval="$enable_profiling"
2279 no|prof|gprof|instrument) ;;
2280 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-profiling, need no/prof/gprof/instrument" >&5
2281 echo "$as_me: error: bad value $enableval for --enable-profiling, need no/prof/gprof/instrument" >&2;}
2282 { (exit 1); exit 1; }; } ;;
2288 case $enable_profiling in
2291 cat >>confdefs.h <<\_ACEOF
2292 #define WANT_PROFILING_PROF 1
2298 cat >>confdefs.h <<\_ACEOF
2299 #define WANT_PROFILING_GPROF 1
2305 cat >>confdefs.h <<\_ACEOF
2306 #define WANT_PROFILING_INSTRUMENT 1
2313 echo "define(<WANT_PROFILING>,<\`$enable_profiling'>)" >> $gmp_tmpconfigm4
2316 # -fomit-frame-pointer is incompatible with -pg on some chips
2317 if test "$enable_profiling" = gprof; then
2318 fomit_frame_pointer=
2320 fomit_frame_pointer="-fomit-frame-pointer"
2325 # Check whether --with-readline or --without-readline was given.
2326 if test "${with_readline+set}" = set; then
2327 withval="$with_readline"
2330 *) { { echo "$as_me:$LINENO: error: bad value $withval for --with-readline, need yes/no/detect" >&5
2331 echo "$as_me: error: bad value $withval for --with-readline, need yes/no/detect" >&2;}
2332 { (exit 1); exit 1; }; } ;;
2335 with_readline=detect
2339 # Check whether --enable-fat or --disable-fat was given.
2340 if test "${enable_fat+set}" = set; then
2341 enableval="$enable_fat"
2344 *) { { echo "$as_me:$LINENO: error: bad value $enableval for --enable-fat, need yes or no" >&5
2345 echo "$as_me: error: bad value $enableval for --enable-fat, need yes or no" >&2;}
2346 { (exit 1); exit 1; }; } ;;
2354 tmp_host=`echo $host_cpu | sed 's/\./_/'`
2355 cat >>confdefs.h <<_ACEOF
2356 #define HAVE_HOST_CPU_$tmp_host 1
2360 echo "define_not_for_expansion(\`HAVE_HOST_CPU_$tmp_host')" >> $gmp_tmpconfigm4p
2368 # Table of compilers, options, and mpn paths. This code has various related
2371 # - better default CC/CFLAGS selections than autoconf otherwise gives
2372 # - default CC/CFLAGS selections for extra CPU types specific to GMP
2373 # - a few tests for known bad compilers
2374 # - choice of ABIs on suitable systems
2375 # - selection of corresponding mpn search path
2377 # After GMP specific searches and tests, the standard autoconf AC_PROG_CC is
2378 # called. User selections of CC etc are respected.
2380 # Care is taken not to use macros like AC_TRY_COMPILE during the GMP
2381 # pre-testing, since they of course depend on AC_PROG_CC, and also some of
2382 # them cache their results, which is not wanted.
2384 # The ABI selection mechanism is unique to GMP. All that reaches autoconf
2385 # is a different selection of CC/CFLAGS according to the best ABI the system
2386 # supports, and/or what the user selects. Naturally the mpn assembler code
2387 # selected is very dependent on the ABI.
2389 # The closest the standard tools come to a notion of ABI is something like
2390 # "sparc64" which encodes a CPU and an ABI together. This doesn't seem to
2391 # scale well for GMP, where exact CPU types like "ultrasparc2" are wanted,
2392 # separate from the ABI used on them.
2395 # The variables set here are
2397 # cclist the compiler choices
2398 # xx_cflags flags for compiler xx
2399 # xx_cflags_maybe flags for compiler xx, if they work
2400 # xx_cppflags cpp flags for compiler xx
2401 # xx_cflags_optlist list of sets of optional flags
2402 # xx_cflags_yyy set yyy of optional flags for compiler xx
2403 # xx_ldflags -Wc,-foo flags for libtool linking with compiler xx
2404 # ar_flags extra flags for $AR
2405 # nm_flags extra flags for $NM
2406 # limb limb size, can be "longlong"
2407 # path mpn search path
2408 # extra_functions extra mpn functions
2409 # fat_path fat binary mpn search path [if fat binary desired]
2410 # fat_functions fat functions
2411 # fat_thresholds fat thresholds
2413 # Suppose xx_cflags_optlist="arch", then flags from $xx_cflags_arch are
2414 # tried, and the first flag that works will be used. An optlist like "arch
2415 # cpu optimize" can be used to get multiple independent sets of flags tried.
2416 # The first that works from each will be used. If no flag in a set works
2417 # then nothing from that set is added.
2419 # For multiple ABIs, the scheme extends as follows.
2421 # abilist set of ABI choices
2422 # cclist_aa compiler choices in ABI aa
2423 # xx_aa_cflags flags for xx in ABI aa
2424 # xx_aa_cflags_maybe flags for xx in ABI aa, if they work
2425 # xx_aa_cppflags cpp flags for xx in ABI aa
2426 # xx_aa_cflags_optlist list of sets of optional flags in ABI aa
2427 # xx_aa_cflags_yyy set yyy of optional flags for compiler xx in ABI aa
2428 # xx_aa_ldflags -Wc,-foo flags for libtool linking
2429 # ar_aa_flags extra flags for $AR in ABI aa
2430 # nm_aa_flags extra flags for $NM in ABI aa
2431 # limb_aa limb size in ABI aa, can be "longlong"
2432 # path_aa mpn search path in ABI aa
2433 # extra_functions_aa extra mpn functions in ABI aa
2435 # As a convenience, the unadorned xx_cflags (etc) are used for the last ABI
2436 # in ablist, if an xx_aa_cflags for that ABI isn't given. For example if
2437 # abilist="64 32" then $cc_64_cflags will be used for the 64-bit ABI, but
2438 # for the 32-bit either $cc_32_cflags or $cc_cflags is used, whichever is
2439 # defined. This makes it easy to add some 64-bit compilers and flags to an
2440 # unadorned 32-bit set.
2442 # limb=longlong (or limb_aa=longlong) applies to all compilers within that
2443 # ABI. It won't work to have some needing long long and some not, since a
2444 # single instantiated gmp.h will be used by both.
2446 # SPEED_CYCLECOUNTER, cyclecounter_size and CALLING_CONVENTIONS_OBJS are
2447 # also set here, with an ABI suffix.
2451 # A table-driven approach like this to mapping cpu type to good compiler
2452 # options is a bit of a maintenance burden, but there's not much uniformity
2453 # between options specifications on different compilers. Some sort of
2454 # separately updatable tool might be cute.
2456 # The use of lots of variables like this, direct and indirect, tends to
2457 # obscure when and how various things are done, but unfortunately it's
2458 # pretty much the only way. If shell subroutines were portable then actual
2459 # code like "if this .. do that" could be written, but attempting the same
2460 # with full copies of GMP_PROG_CC_WORKS etc expanded at every point would
2461 # hugely bloat the output.
2466 # abilist needs to be non-empty, "standard" is just a generic name here
2469 # FIXME: We'd like to prefer an ANSI compiler, perhaps by preferring
2470 # c89 over cc here. But note that on HP-UX c89 provides a castrated
2471 # environment, and would want to be excluded somehow. Maybe
2472 # AC_PROG_CC_STDC already does enough to stick cc into ANSI mode and
2473 # we don't need to worry.
2482 SPEED_CYCLECOUNTER_OBJ=
2485 HAVE_HOST_CPU_FAMILY_power=0
2487 HAVE_HOST_CPU_FAMILY_powerpc=0
2498 cat >>confdefs.h <<\_ACEOF
2499 #define HAVE_HOST_CPU_FAMILY_alpha 1
2503 alphaev5* | alphapca5*) path="alpha/ev5 alpha" ;;
2504 alphaev67 | alphaev68 | alphaev7*)
2505 path="alpha/ev67 alpha/ev6 alpha/ev5 alpha" ;;
2506 alphaev6* | alphaev7*) path="alpha/ev6 alpha/ev5 alpha" ;;
2509 extra_functions="cntlz"
2510 gcc_cflags_optlist="asm cpu oldas" # need asm ahead of cpu, see below
2511 gcc_cflags_oldas="-Wa,-oldas" # see GMP_GCC_WA_OLDAS.
2513 # gcc 2.7.2.3 doesn't know any -mcpu= for alpha, apparently.
2514 # gcc 2.95 knows -mcpu= ev4, ev5, ev56, pca56, ev6.
2515 # gcc 3.0 adds nothing.
2516 # gcc 3.1 adds ev45, ev67 (but ev45 is the same as ev4).
2517 # gcc 3.2 adds nothing.
2519 # gcc version "2.9-gnupro-99r1" under "-O2 -mcpu=ev6" strikes internal
2520 # compiler errors too easily and is rejected by GMP_PROG_CC_WORKS. Each
2521 # -mcpu=ev6 below has a fallback to -mcpu=ev56 for this reason.
2524 alpha) gcc_cflags_cpu="-mcpu=ev4" ;;
2525 alphaev5) gcc_cflags_cpu="-mcpu=ev5" ;;
2526 alphaev56) gcc_cflags_cpu="-mcpu=ev56" ;;
2527 alphapca56 | alphapca57)
2528 gcc_cflags_cpu="-mcpu=pca56" ;;
2529 alphaev6) gcc_cflags_cpu="-mcpu=ev6 -mcpu=ev56" ;;
2530 alphaev67 | alphaev68 | alphaev7*)
2531 gcc_cflags_cpu="-mcpu=ev67 -mcpu=ev6 -mcpu=ev56" ;;
2534 # gcc version "2.9-gnupro-99r1" on alphaev68-dec-osf5.1 has been seen
2535 # accepting -mcpu=ev6, but not putting the assembler in the right mode
2536 # for what it produces. We need to do this for it, and need to do it
2537 # before testing the -mcpu options.
2539 # On old versions of gcc, which don't know -mcpu=, we believe an
2540 # explicit -Wa,-mev5 etc will be necessary to put the assembler in
2541 # the right mode for our .asm files and longlong.h asm blocks.
2543 # On newer versions of gcc, when -mcpu= is known, we must give a -Wa
2544 # which is at least as high as the code gcc will generate. gcc
2545 # establishes what it needs with a ".arch" directive, our command line
2546 # option seems to override that.
2548 # gas prior to 2.14 doesn't accept -mev67, but -mev6 seems enough for
2549 # ctlz and cttz (in 2.10.0 at least).
2551 # OSF `as' accepts ev68 but stupidly treats it as ev4. -arch only seems
2552 # to affect insns like ldbu which are expanded as macros when necessary.
2553 # Insns like ctlz which were never available as macros are always
2554 # accepted and always generate their plain code.
2557 alpha) gcc_cflags_asm="-Wa,-arch,ev4 -Wa,-mev4" ;;
2558 alphaev5) gcc_cflags_asm="-Wa,-arch,ev5 -Wa,-mev5" ;;
2559 alphaev56) gcc_cflags_asm="-Wa,-arch,ev56 -Wa,-mev56" ;;
2560 alphapca56 | alphapca57)
2561 gcc_cflags_asm="-Wa,-arch,pca56 -Wa,-mpca56" ;;
2562 alphaev6) gcc_cflags_asm="-Wa,-arch,ev6 -Wa,-mev6" ;;
2563 alphaev67 | alphaev68 | alphaev7*)
2564 gcc_cflags_asm="-Wa,-arch,ev67 -Wa,-mev67 -Wa,-arch,ev6 -Wa,-mev6" ;;
2567 # It might be better to ask "cc" whether it's Cray C or DEC C,
2568 # instead of relying on the OS part of $host. But it's hard to
2569 # imagine either of those compilers anywhere except their native
2573 echo "include_mpn(\`alpha/alpha-defs.m4')" >> $gmp_tmpconfigm4i
2577 cc_cflags="-O" # no -g, it silently disables all optimizations
2579 echo "include_mpn(\`alpha/unicos.m4')" >> $gmp_tmpconfigm4i
2581 # Don't perform any assembly syntax tests on this beast.
2582 gmp_asm_syntax_testing=no
2586 echo "include_mpn(\`alpha/default.m4')" >> $gmp_tmpconfigm4i
2589 cc_cflags_optlist="opt cpu"
2591 # not sure if -fast works on old versions, so make it optional
2592 cc_cflags_opt="-fast -O2"
2594 # DEC C V5.9-005 knows ev4, ev5, ev56, pca56, ev6.
2595 # Compaq C V6.3-029 adds ev67.
2598 alpha) cc_cflags_cpu="-arch~ev4~-tune~ev4" ;;
2599 alphaev5) cc_cflags_cpu="-arch~ev5~-tune~ev5" ;;
2600 alphaev56) cc_cflags_cpu="-arch~ev56~-tune~ev56" ;;
2601 alphapca56 | alphapca57)
2602 cc_cflags_cpu="-arch~pca56~-tune~pca56" ;;
2603 alphaev6) cc_cflags_cpu="-arch~ev6~-tune~ev6" ;;
2604 alphaev67 | alphaev68 | alphaev7*)
2605 cc_cflags_cpu="-arch~ev67~-tune~ev67 -arch~ev6~-tune~ev6" ;;
2610 echo "include_mpn(\`alpha/default.m4')" >> $gmp_tmpconfigm4i
2617 # tune/alpha.asm assumes int==4bytes but unicos uses int==8bytes
2620 SPEED_CYCLECOUNTER_OBJ=alpha.lo
2621 cyclecounter_size=1 ;;
2626 # Cray vector machines.
2627 # This must come after alpha* so that we can recognize present and future
2628 # vector processors with a wildcard.
2630 gmp_asm_syntax_testing=no
2632 # We used to have -hscalar0 here as a workaround for miscompilation of
2633 # mpz/import.c, but let's hope Cray fixes their bugs instead, since
2634 # -hscalar0 causes disastrously poor code to be generated.
2635 cc_cflags="-O3 -hnofastmd -htask0 -Wa,-B"
2642 gcc_cflags="$gcc_cflags $fomit_frame_pointer"
2643 gcc_testlist="gcc-arm-umodsi"
2645 echo "include_mpn(\`arm/arm-defs.m4')" >> $gmp_tmpconfigm4i
2656 f30[01]-fujitsu-sysv*)
2658 # FIXME: flags for vcc?
2665 # HP cc (the one sold separately) is K&R by default, but AM_C_PROTOTYPES
2666 # will add "-Ae", or "-Aa -D_HPUX_SOURCE", to put it into ansi mode, if
2669 # gcc for hppa 2.0 can be built either for 2.0n (32-bit) or 2.0w
2670 # (64-bit), but not both, so there's no option to choose the desired
2671 # mode, we must instead detect which of the two it is. This is done by
2672 # checking sizeof(long), either 4 or 8 bytes respectively. Do this in
2673 # ABI=1.0 too, in case someone tries to build that with a 2.0w gcc.
2676 gcc_cflags_optlist="arch"
2677 gcc_testlist="sizeof-long-4"
2678 SPEED_CYCLECOUNTER_OBJ=hppa.lo
2681 # FIXME: For hppa2.0*, path should be "pa32/hppa2_0 pa32/hppa1_1 pa32".
2682 # (Can't remember why this isn't done already, have to check what .asm
2683 # files are available in each and how they run on a typical 2.0 cpu.)
2686 hppa1.0*) path="pa32" ;;
2687 hppa7000*) path="pa32/hppa1_1 pa32" ;;
2689 path="pa32/hppa2_0 pa32/hppa1_1/pa7100 pa32/hppa1_1 pa32" ;;
2690 *) # default to 7100
2691 path="pa32/hppa1_1/pa7100 pa32/hppa1_1 pa32" ;;
2694 # gcc 2.7.2.3 knows -mpa-risc-1-0 and -mpa-risc-1-1
2695 # gcc 2.95 adds -mpa-risc-2-0, plus synonyms -march=1.0, 1.1 and 2.0
2697 # We don't use -mpa-risc-2-0 in ABI=1.0 because 64-bit registers may not
2698 # be saved by the kernel on an old system. Actually gcc (as of 3.2)
2699 # only adds a few float instructions with -mpa-risc-2-0, so it would
2700 # probably be safe, but let's not take the chance. In any case, a
2701 # configuration like --host=hppa2.0 ABI=1.0 is far from optimal.
2704 hppa1.0*) gcc_cflags_arch="-mpa-risc-1-0" ;;
2705 *) # default to 7100
2706 gcc_cflags_arch="-mpa-risc-1-1" ;;
2710 hppa1.0*) cc_cflags="+O2" ;;
2711 *) # default to 7100
2712 cc_cflags="+DA1.1 +O2" ;;
2716 hppa2.0*-*-* | hppa64-*-*)
2721 any_20n_testlist="sizeof-long-4"
2722 SPEED_CYCLECOUNTER_OBJ_20n=hppa2.lo
2723 cyclecounter_size_20n=2
2725 # -mpa-risc-2-0 is only an optional flag, in case an old gcc is
2726 # used. Assembler support for 2.0 is essential though, for our asm
2728 gcc_20n_cflags="-O2"
2729 gcc_20n_cflags_optlist="arch"
2730 gcc_20n_cflags_arch="-mpa-risc-2-0 -mpa-risc-1-1"
2731 gcc_20n_testlist="sizeof-long-4 hppa-level-2.0"
2733 cc_20n_cflags="+DA2.0 +e +O2 -Wl,+vnocompatwarnings"
2734 cc_20n_testlist="hpc-hppa-2-0"
2736 # ABI=2.0w is available for hppa2.0w and hppa2.0, but not for
2737 # hppa2.0n, on the assumption that that the latter indicates a
2738 # desire for ABI=2.0n.
2742 # HPUX 10 and earlier cannot run 2.0w. Not sure about other
2743 # systems (GNU/Linux for instance), but lets assume they're ok.
2745 *-*-hpux[1-9] | *-*-hpux[1-9].* | *-*-hpux10 | *-*-hpux10.*) ;;
2746 *) abilist="2.0w $abilist" ;;
2750 gcc_20w_cflags="-O2 -mpa-risc-2-0"
2751 cc_20w_cflags="+DD64 +O2"
2752 cc_20w_testlist="hpc-hppa-2-0"
2754 any_20w_testlist="sizeof-long-8"
2755 SPEED_CYCLECOUNTER_OBJ_20w=hppa2w.lo
2756 cyclecounter_size_20w=2
2769 ia64*-*-* | itanium-*-* | itanium2-*-*)
2772 echo "include_mpn(\`ia64/ia64-defs.m4')" >> $gmp_tmpconfigm4i
2774 SPEED_CYCLECOUNTER_OBJ=ia64.lo
2777 itanium) path="ia64/itanium ia64" ;;
2778 itanium2) path="ia64/itanium2 ia64" ;;
2782 gcc_64_cflags_optlist="tune"
2783 gcc_32_cflags_optlist=$gcc_64_cflags_optlist
2785 # gcc pre-release 3.4 adds -mtune itanium and itanium2
2787 itanium) gcc_cflags_tune="-mtune=itanium" ;;
2788 itanium2) gcc_cflags_tune="-mtune=itanium2" ;;
2794 icc_cflags="-no-gcc"
2795 icc_cflags_optlist="opt"
2796 # FIXME: Check if -O3 is really right. The manual warns it is for
2797 # large data sets, for which GMP uses assembly loops.
2798 icc_cflags_opt="-O3 -O2 -O1"
2802 # HP cc sometimes gets internal errors if the optimization level is
2803 # too high. GMP_PROG_CC_WORKS detects this, the "_opt" fallbacks
2804 # let us use whatever seems to work.
2811 cc_32_cflags_optlist="opt"
2812 cc_32_cflags_opt="+O3 +O2 +O1"
2813 gcc_32_cflags="-milp32 -O2"
2815 SPEED_CYCLECOUNTER_OBJ_32=ia64.lo
2816 cyclecounter_size_32=2
2818 # Must have +DD64 in CPPFLAGS to get the right __LP64__ for headers,
2819 # but also need it in CFLAGS for linking programs, since automake
2820 # only uses CFLAGS when linking, not CPPFLAGS.
2821 # FIXME: Maybe should use cc_64_ldflags for this, but that would
2822 # need GMP_LDFLAGS used consistently by all the programs.
2824 cc_64_cflags="+DD64"
2825 cc_64_cppflags="+DD64"
2826 cc_64_cflags_optlist="opt"
2827 cc_64_cflags_opt="+O3 +O2 +O1"
2828 gcc_64_cflags="-mlp64 -O2"
2836 m68k-*-* | m68[0-9][0-9][0-9]-*-*)
2837 cat >>confdefs.h <<\_ACEOF
2838 #define HAVE_HOST_CPU_FAMILY_m68k 1
2842 echo "include_mpn(\`m68k/m68k-defs.m4')" >> $gmp_tmpconfigm4i
2844 gcc_cflags="-O2 $fomit_frame_pointer"
2845 gcc_cflags_optlist="arch"
2847 # gcc 2.7.2 knows -m68000, -m68020, -m68030, -m68040.
2848 # gcc 2.95 adds -mcpu32, -m68060.
2849 # FIXME: Maybe "-m68020 -mnobitfield" would suit cpu32 on 2.7.2.
2852 m68020) gcc_cflags_arch="-m68020" ;;
2853 m68030) gcc_cflags_arch="-m68030" ;;
2854 m68040) gcc_cflags_arch="-m68040" ;;
2855 m68060) gcc_cflags_arch="-m68060 -m68000" ;;
2856 m68360) gcc_cflags_arch="-mcpu32 -m68000" ;;
2857 *) gcc_cflags_arch="-m68000" ;;
2860 # FIXME: m68k/mc68020 looks like it's ok for cpu32, but this wants to be
2861 # tested. Will need to introduce an m68k/cpu32 if m68k/mc68020 ever uses
2862 # the bitfield instructions.
2864 m680[234]0 | m68360) path="m68k/mc68020 m68k" ;;
2876 gcc_cflags="-O -m88110"
2877 path="m88k/mc88110 m88k"
2881 # National Semiconductor 32k
2887 # IRIX 5 and earlier can only run 32-bit o32.
2889 # IRIX 6 and up always has a 64-bit mips CPU can run n32 or 64. n32 is
2890 # preferred over 64, but only because that's been the default in past
2891 # versions of GMP. The two are equally efficient.
2893 # Linux kernel 2.2.13 arch/mips/kernel/irixelf.c has a comment about not
2894 # supporting n32 or 64.
2896 # For reference, libtool (eg. 1.5.6) recognises the n32 ABI and knows the
2897 # right options to use when linking (both cc and gcc), so no need for
2898 # anything special from us.
2902 gcc_cflags_optlist="abi"
2903 gcc_cflags_abi="-mabi=32"
2904 gcc_testlist="gcc-mips-o32"
2906 cc_cflags="-O2 -o32" # no -g, it disables all optimizations
2907 # this suits both mips32 and mips64
2909 echo "include_mpn(\`mips32/mips-defs.m4')" >> $gmp_tmpconfigm4i
2913 mips64*-*-* | mips*-*-irix[6789]*)
2914 abilist="n32 64 o32"
2917 gcc_n32_cflags="-O2 -mabi=n32"
2918 cc_n32_cflags="-O2 -n32" # no -g, it disables all optimizations
2923 gcc_64_cflags="-O2 -mabi=64"
2924 gcc_64_ldflags="-Wc,-mabi=64"
2925 cc_64_cflags="-O2 -64" # no -g, it disables all optimizations
2926 cc_64_ldflags="-Wc,-64"
2933 # Darwin (powerpc-apple-darwin1.3) has it's hacked gcc installed as cc.
2934 # Our usual "gcc in disguise" detection means gcc_cflags etc here gets
2937 # The darwin pre-compiling preprocessor is disabled with -no-cpp-precomp
2938 # since it doesn't like "__attribute__ ((mode (SI)))" etc in gmp-impl.h,
2939 # and so always ends up running the plain preprocessor anyway. This could
2940 # be done in CPPFLAGS rather than CFLAGS, but there's not many places
2941 # preprocessing is done separately, and this is only a speedup, the normal
2942 # preprocessor gets run if there's any problems.
2944 # We used to use -Wa,-mppc with gcc, but can't remember exactly why.
2945 # Presumably it was for old versions of gcc where -mpowerpc doesn't put
2946 # the assembler in the right mode. In any case -Wa,-mppc is not good, for
2947 # instance -mcpu=604 makes recent gcc use -m604 to get access to the
2948 # "fsel" instruction, but a -Wa,-mppc overrides that, making code that
2949 # comes out with fsel fail.
2951 # (Note also that the darwin assembler doesn't accept "-mppc", so any
2952 # -Wa,-mppc was used only if it worked. The right flag on darwin would be
2953 # "-arch ppc" or some such, but that's already the default.)
2955 powerpc*-*-* | power[3-9]-*-*)
2956 cat >>confdefs.h <<\_ACEOF
2957 #define HAVE_HOST_CPU_FAMILY_powerpc 1
2960 HAVE_HOST_CPU_FAMILY_powerpc=1
2964 gcc_cflags="-O2 -mpowerpc"
2965 gcc_cflags_optlist="precomp subtype cpu"
2966 gcc_cflags_precomp="-no-cpp-precomp"
2967 gcc_cflags_subtype="-force_cpusubtype_ALL" # for vmx on darwin
2969 # grab this object, though it's not a true cycle counter routine
2970 SPEED_CYCLECOUNTER_OBJ=powerpc.lo
2974 powerpc740 | powerpc750)
2975 path="powerpc32/750 powerpc32" ;;
2977 path="powerpc32/vmx powerpc32/750 powerpc32" ;;
2979 path="powerpc32/vmx powerpc32 powerpc32" ;;
2984 # gcc 2.7.2 knows -mcpu=403, 601, 603, 604.
2985 # gcc 2.95 adds 401, 505, 602, 603e, ec603e, 604e, 620, 740, 750,
2986 # 801, 821, 823, 860.
2987 # gcc 3.0 adds 630, rs64a.
2988 # gcc 3.1 adds 405, 7400, 7450.
2989 # gcc 3.2 adds nothing.
2990 # gcc 3.3 adds power3, power4, 8540. power3 seems to be a synonym for 630.
2991 # gcc pre-release 3.4 adds 405fp, 440, 440fp, 970.
2993 # FIXME: The way 603e falls back to 603 for gcc 2.7.2 should be
2994 # done for all the others too. But what would be the correct
2998 powerpc401) gcc_cflags_cpu="-mcpu=401" ;;
2999 powerpc403) gcc_cflags_cpu="-mcpu=403" ;;
3000 powerpc405) gcc_cflags_cpu="-mcpu=405" ;;
3001 powerpc505) gcc_cflags_cpu="-mcpu=505" ;;
3002 powerpc601) gcc_cflags_cpu="-mcpu=601" ;;
3003 powerpc602) gcc_cflags_cpu="-mcpu=602" ;;
3004 powerpc603) gcc_cflags_cpu="-mcpu=603" ;;
3005 powerpc603e) gcc_cflags_cpu="-mcpu=603e -mcpu=603" ;;
3006 powerpc604) gcc_cflags_cpu="-mcpu=604" ;;
3007 powerpc604e) gcc_cflags_cpu="-mcpu=604e -mcpu=604" ;;
3008 powerpc620) gcc_cflags_cpu="-mcpu=620" ;;
3009 powerpc630) gcc_cflags_cpu="-mcpu=630" ;;
3010 powerpc740) gcc_cflags_cpu="-mcpu=740" ;;
3011 powerpc7400 | powerpc7410)
3012 gcc_cflags_cpu="-mcpu=7400 -mcpu=750" ;;
3013 powerpc745?) gcc_cflags_cpu="-mcpu=7450" ;;
3014 powerpc750) gcc_cflags_cpu="-mcpu=750" ;;
3015 powerpc801) gcc_cflags_cpu="-mcpu=801" ;;
3016 powerpc821) gcc_cflags_cpu="-mcpu=821" ;;
3017 powerpc823) gcc_cflags_cpu="-mcpu=823" ;;
3018 powerpc860) gcc_cflags_cpu="-mcpu=860" ;;
3019 powerpc970) gcc_cflags_cpu="-mcpu=970" ;;
3025 xlc_cflags="-O2 -qmaxmem=20000"
3026 xlc_cflags_optlist="arch"
3028 # xlc (what version?) knows -qarch=ppc, ppcgr, 601, 602, 603, 604,
3030 # -qarch=ppc is needed, so ensure everything falls back to that.
3031 # FIXME: Perhaps newer versions know more flavours.
3034 powerpc403) xlc_cflags_arch="-qarch=403 -qarch=ppc" ;;
3035 powerpc601) xlc_cflags_arch="-qarch=601 -qarch=ppc" ;;
3036 powerpc602) xlc_cflags_arch="-qarch=602 -qarch=ppc" ;;
3037 powerpc603) xlc_cflags_arch="-qarch=603 -qarch=ppc" ;;
3038 powerpc603e) xlc_cflags_arch="-qarch=603 -qarch=ppc" ;;
3039 powerpc604) xlc_cflags_arch="-qarch=604 -qarch=ppc" ;;
3040 powerpc604e) xlc_cflags_arch="-qarch=604 -qarch=ppc" ;;
3041 *) xlc_cflags_arch="-qarch=ppc" ;;
3047 powerpc64-*-* | powerpc64le-*-* | powerpc620-*-* | powerpc630-*-* | powerpc970-*-* | power[3-9]-*-*)
3049 powerpc970) vmx_path="powerpc64/vmx" ;;
3054 # On AIX a true 64-bit ABI is available.
3055 # Need -Wc to pass object type flags through to the linker.
3056 abilist="aix64 $abilist"
3057 cclist_aix64="gcc xlc"
3058 gcc_aix64_cflags="-O2 -maix64 -mpowerpc64"
3059 gcc_aix64_cflags_optlist="cpu"
3060 gcc_aix64_ldflags="-Wc,-maix64"
3061 xlc_aix64_cflags="-O2 -q64 -qtune=pwr3 -qmaxmem=20000"
3062 xlc_aix64_ldflags="-Wc,-q64"
3063 # Must indicate object type to ar and nm
3064 ar_aix64_flags="-X64"
3065 nm_aix64_flags="-X64"
3066 path_aix64="powerpc64/mode64 $vmx_path powerpc64"
3067 # grab this object, though it's not a true cycle counter routine
3068 SPEED_CYCLECOUNTER_OBJ_aix64=powerpc64.lo
3069 cyclecounter_size_aix64=0
3072 # On Darwin we can use 64-bit instructions with a longlong limb,
3073 # but the chip still in 32-bit mode.
3074 # In theory this can be used on any OS which knows how to save
3075 # 64-bit registers in a context switch.
3077 # Note that we must use -mpowerpc64 with gcc, since the
3078 # longlong.h macros expect limb operands in a single 64-bit
3079 # register, not two 32-bit registers as would be given for a
3080 # long long without -mpowerpc64. In theory we could detect and
3081 # accomodate both styles, but the proper 64-bit registers will
3082 # be fastest and are what we really want to use.
3084 # One would think -mpowerpc64 would set the assembler in the right
3085 # mode to handle 64-bit instructions. But for that, also
3086 # -force_cpusubtype_ALL is needed.
3088 # Do not use -fast for Darwin, it actually adds options
3089 # incompatible with a shared library.
3091 abilist="mode64 mode32 $abilist"
3092 gcc_cflags_opt="-O3 -O2 -O1" # will this become used?
3094 gcc_mode32_cflags="-mpowerpc64"
3095 gcc_mode32_cflags_optlist="subtype cpu opt"
3096 gcc_mode32_cflags_subtype="-force_cpusubtype_ALL"
3097 gcc_mode32_cflags_opt="-O3 -O2 -O1"
3098 path_mode32="powerpc64/mode32 $vmx_path powerpc64"
3099 limb_mode32=longlong
3101 gcc_mode64_cflags="-m64"
3102 gcc_mode64_cflags_optlist="cpu opt"
3103 gcc_mode64_cflags_opt="-O3 -O2 -O1"
3104 path_mode64="powerpc64/mode64 $vmx_path powerpc64"
3105 SPEED_CYCLECOUNTER_OBJ_mode64=powerpc64.lo
3106 cyclecounter_size_mode64=0
3107 any_mode64_testlist="sizeof-long-8"
3109 *-*-linux* | *-*-*bsd*)
3110 # On GNU/Linux, assume the processor is in 64-bit mode. Some
3111 # environments have a gcc that is always in 64-bit mode, while
3112 # others require -m64, hence the use of cflags_maybe. The
3113 # sizeof-long-8 test checks the mode is right (for the no option
3116 # -mpowerpc64 is not used, since it should be the default in
3117 # 64-bit mode. (We need its effect for the various longlong.h
3118 # asm macros to be right of course.)
3120 # gcc64 was an early port of gcc to 64-bit mode, but should be
3121 # obsolete before too long. We prefer plain gcc when it knows
3124 abilist="mode64 mode32 $abilist"
3126 gcc_mode32_cflags="-mpowerpc64 -Wa,-mppc64"
3127 gcc_mode32_cflags_optlist="cpu opt"
3128 gcc_mode32_cflags_opt="-O3 -O2 -O1"
3129 path_mode32="powerpc64/mode32 $vmx_path powerpc64"
3130 limb_mode32=longlong
3131 cclist_mode64="gcc gcc64"
3132 gcc_mode64_cflags_maybe="-m64"
3133 gcc_mode64_cflags_optlist="cpu opt"
3134 gcc_mode64_cflags_opt="-O3 -O2 -O1"
3135 path_mode64="powerpc64/mode64 $vmx_path powerpc64"
3136 SPEED_CYCLECOUNTER_OBJ_mode64=powerpc64.lo
3137 cyclecounter_size_mode64=0
3138 any_mode64_testlist="sizeof-long-8"
3147 power-*-* | power[12]-*-* | power2sc-*-*)
3148 cat >>confdefs.h <<\_ACEOF
3149 #define HAVE_HOST_CPU_FAMILY_power 1
3152 HAVE_HOST_CPU_FAMILY_power=1
3154 extra_functions="udiv_w_sdiv"
3157 # gcc 2.7.2 knows rios1, rios2, rsc
3159 # -mcpu=rios2 can tickle an AIX assembler bug (see GMP_PROG_CC_WORKS) so
3160 # there needs to be a fallback to just -mpower.
3162 gcc_cflags_optlist="cpu"
3164 power-*-*) gcc_cflags_cpu="-mcpu=power -mpower" ;;
3165 power1-*-*) gcc_cflags_cpu="-mcpu=rios1 -mpower" ;;
3166 power2-*-*) gcc_cflags_cpu="-mcpu=rios2 -mpower" ;;
3167 power2sc-*-*) gcc_cflags_cpu="-mcpu=rsc -mpower" ;;
3172 xlc_cflags="-O2 -qarch=pwr -qmaxmem=20000"
3183 # IBM s/370 and similar
3185 gcc_cflags="-O2 $fomit_frame_pointer"
3187 extra_functions="udiv_w_sdiv"
3191 sh-*-*) path="sh" ;;
3192 sh2-*-*) path="sh/sh2 sh" ;;
3196 # sizeof(long)==4 or 8 is tested, to ensure we get the right ABI. We've
3197 # had various bug reports where users have set CFLAGS for their desired
3198 # mode, but not set our ABI. For some reason it's sparc where this
3199 # keeps coming up, presumably users there are accustomed to driving the
3200 # compiler mode that way. The effect of our testlist setting is to
3201 # reject ABI=64 in favour of ABI=32 if the user has forced the flags to
3206 any_testlist="sizeof-long-4"
3208 echo "include_mpn(\`sparc32/sparc-defs.m4')" >> $gmp_tmpconfigm4i
3212 sparcv8 | microsparc | turbosparc)
3213 path="sparc32/v8 sparc32" ;;
3215 path="sparc32/v8/supersparc sparc32/v8 sparc32" ;;
3216 sparc64 | sparcv9* | ultrasparc*)
3217 path="sparc32/v9 sparc32/v8 sparc32" ;;
3222 # gcc 2.7.2 doesn't know about v9 and doesn't pass -xarch=v8plus to the
3223 # assembler. Add it explicitly since the solaris assembler won't accept
3224 # our sparc32/v9 asm code without it. gas accepts -xarch=v8plus too, so
3225 # it can be in the cflags unconditionally (though gas doesn't need it).
3227 # gcc -m32 is needed to force 32-bit mode on a dual-ABI system, but past
3228 # gcc doesn't know that flag, hence cflags_maybe. Note that -m32 cannot
3229 # be done through the optlist since the plain cflags would be run first
3230 # and we don't want to require the default mode (whatever it is) works.
3232 # Note it's gcc_32_cflags_maybe and not gcc_cflags_maybe because the
3233 # latter would be used in the 64-bit ABI on systems like "*bsd" where
3234 # abilist="64" only.
3237 sparc64 | sparcv9* | ultrasparc*)
3238 gcc_cflags="-O2 -Wa,-xarch=v8plus" ;;
3242 gcc_32_cflags_maybe="-m32"
3243 gcc_cflags_optlist="cpu"
3245 # gcc 2.7.2 knows -mcypress, -msupersparc, -mv8, -msparclite.
3246 # gcc 2.95 knows -mcpu= v7, hypersparc, sparclite86x, f930, f934,
3247 # sparclet, tsc701, v9, ultrasparc. A warning is given that the
3248 # plain -m forms will disappear.
3249 # gcc 3.0 adds nothing.
3250 # gcc 3.1 adds nothing.
3251 # gcc 3.2 adds nothing.
3252 # gcc 3.3 adds ultrasparc3.
3255 supersparc) gcc_cflags_cpu="-mcpu=supersparc -msupersparc" ;;
3256 sparcv8 | microsparc | turbosparc)
3257 gcc_cflags_cpu="-mcpu=v8 -mv8" ;;
3258 sparc64 | sparcv9*) gcc_cflags_cpu="-mcpu=v9 -mv8" ;;
3259 ultrasparc3) gcc_cflags_cpu="-mcpu=ultrasparc3 -mcpu=ultrasparc -mv8" ;;
3260 ultrasparc*) gcc_cflags_cpu="-mcpu=ultrasparc -mv8" ;;
3261 *) gcc_cflags_cpu="-mcpu=v7 -mcypress" ;;
3264 # SunPRO cc and acc, and SunOS bundled cc
3266 *-*-solaris* | *-*-sunos*)
3267 # Note no -g, it disables all optimizations.
3269 cc_cflags_optlist="opt arch cpu"
3271 # SunOS cc doesn't know -xO4, fallback to -O2.
3272 cc_cflags_opt="-xO4 -O2"
3274 # SunOS cc doesn't know -xarch, apparently always generating v7
3275 # code, so make this optional
3277 sparcv8 | microsparc | supersparc | turbosparc)
3278 cc_cflags_arch="-xarch=v8" ;;
3279 sparc64 | sparcv9* | ultrasparc*) cc_cflags_arch="-xarch=v8plus" ;;
3280 *) cc_cflags_arch="-xarch=v7" ;;
3283 # SunOS cc doesn't know -xchip and doesn't seem to have an equivalent.
3284 # SunPRO cc 5 recognises -xchip=generic, old, super, super2, micro,
3285 # micro2, hyper, hyper2, powerup, ultra, ultra2, ultra2i.
3286 # SunPRO cc 6 adds -xchip=ultra2e, ultra3cu.
3288 # FIXME: Which of ultra, ultra2 or ultra2i is the best fallback for
3292 supersparc) cc_cflags_cpu="-xchip=super" ;;
3293 microsparc) cc_cflags_cpu="-xchip=micro" ;;
3294 turbosparc) cc_cflags_cpu="-xchip=micro2" ;;
3295 ultrasparc) cc_cflags_cpu="-xchip=ultra" ;;
3296 ultrasparc2) cc_cflags_cpu="-xchip=ultra2" ;;
3297 ultrasparc2i) cc_cflags_cpu="-xchip=ultra2i" ;;
3298 ultrasparc3) cc_cflags_cpu="-xchip=ultra3 -xchip=ultra" ;;
3299 *) cc_cflags_cpu="-xchip=generic" ;;
3304 sparc64 | sparcv9* | ultrasparc*)
3306 # Solaris 6 and earlier cannot run ABI=64 since it doesn't save
3307 # registers properly, so ABI=32 is left as the only choice.
3309 *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;;
3311 # BSD sparc64 ports are 64-bit-only systems, so ABI=64 is the only
3312 # choice. In fact they need no special compiler flags, gcc -m64
3313 # is the default, but it doesn't hurt to add it. v9 CPUs always
3314 # use the sparc64 port, since the plain 32-bit sparc ports don't
3317 *-*-*bsd*) abilist="64" ;;
3319 # For all other systems, we try both 64 and 32.
3321 # GNU/Linux sparc64 has only recently gained a 64-bit user mode.
3322 # In the past sparc64 meant a v9 cpu, but there were no 64-bit
3323 # operations in user mode. We assume that if "gcc -m64" works
3324 # then the system is suitable. Hopefully even if someone attempts
3325 # to put a new gcc and/or glibc on an old system it won't run.
3327 *) abilist="64 32" ;;
3332 any_64_testlist="sizeof-long-8"
3334 # gcc -mptr64 is probably implied by -m64, but we're not sure if
3335 # this was always so. On Solaris in the past we always used both
3338 # gcc -Wa,-xarch=v9 is thought to be necessary in some cases on
3339 # solaris, but it would seem likely that if gcc is going to generate
3340 # 64-bit code it will have to add that option itself where needed.
3341 # An extra copy of this option should be harmless though, but leave
3342 # it until we're sure. (Might want -xarch=v9a or -xarch=v9b for the
3343 # higher cpu types instead.)
3345 gcc_64_cflags="-O2 -m64 -mptr64"
3346 gcc_64_ldflags="-Wc,-m64"
3347 gcc_64_cflags_optlist="cpu"
3353 # -fast enables different optimizations depending on compiler
3354 # version. Unfortunately it does things according to the native
3355 # system, which may not be optimal when cross compiling (to a
3356 # different sparc). -xchip from cc_cflags_cpu will override at
3357 # least that part of its selections.
3359 # -fns=no and -fsimple=1 disable some transformations that
3360 # conflict with IEEE 754, which some compiler versions perform
3363 cclist_64="$cclist_64 cc"
3364 cc_64_cflags="-fast -fns=no -fsimple=1 -xarch=v9"
3365 cc_64_cflags_optlist="cpu"
3369 # using the v9 %tick register
3370 SPEED_CYCLECOUNTER_OBJ_32=sparcv9.lo
3371 SPEED_CYCLECOUNTER_OBJ_64=sparcv9.lo
3372 cyclecounter_size_32=2
3373 cyclecounter_size_64=2
3381 # Currently gcc (version 3.0) on vax always uses a frame pointer
3382 # (config/vax/vax.h FRAME_POINTER_REQUIRED=1), so -fomit-frame-pointer
3385 gcc_cflags="-O2 $fomit_frame_pointer"
3387 extra_functions="udiv_w_sdiv"
3391 # AMD and Intel x86 configurations, including AMD64
3393 # Rumour has it gcc -O2 used to give worse register allocation than just
3394 # -O, but lets assume that's no longer true.
3396 # -m32 forces 32-bit mode on a bi-arch 32/64 amd64 build of gcc. -m64 is
3397 # the default in such a build (we think), so -m32 is essential for ABI=32.
3398 # This is, of course, done for any $host_cpu, not just x86_64, so we can
3399 # get such a gcc into the right mode to cross-compile to say i486-*-*.
3401 # -m32 is not available in gcc 2.95 and earlier, hence cflags_maybe to use
3402 # it when it works. We check sizeof(long)==4 to ensure we get the right
3403 # mode, in case -m32 has failed not because it's an old gcc, but because
3404 # it's a dual 32/64-bit gcc without a 32-bit libc, or whatever.
3406 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | x86_64-*-*)
3409 gcc_cflags="-O2 $fomit_frame_pointer"
3410 gcc_32_cflags_maybe="-m32"
3411 icc_cflags="-no-gcc"
3412 icc_cflags_optlist="opt"
3413 icc_cflags_opt="-O3 -O2 -O1"
3414 any_32_testlist="sizeof-long-4"
3415 CALLING_CONVENTIONS_OBJS='x86call.lo x86check$U.lo'
3417 # Availability of rdtsc is checked at run-time.
3418 SPEED_CYCLECOUNTER_OBJ=pentium.lo
3420 # gcc 2.7.2 only knows i386 and i486, using -m386 or -m486. These
3421 # represent -mcpu= since -m486 doesn't generate 486 specific insns.
3422 # gcc 2.95 adds k6, pentium and pentiumpro, and takes -march= and -mcpu=.
3423 # gcc 3.0 adds athlon.
3424 # gcc 3.1 adds k6-2, k6-3, pentium-mmx, pentium2, pentium3, pentium4,
3425 # athlon-tbird, athlon-4, athlon-xp, athlon-mp.
3426 # gcc 3.2 adds winchip2.
3427 # gcc 3.3 adds winchip-c6.
3428 # gcc 3.3.1 from mandrake adds k8 and knows -mtune.
3429 # gcc 3.4 adds c3, c3-2, k8, and deprecates -mcpu in favour of -mtune.
3431 # In gcc 2.95.[0123], -march=pentiumpro provoked a stack slot bug in an
3432 # old version of mpz/powm.c. Seems to be fine with the current code, so
3433 # no need for any restrictions on that option.
3435 # -march=pentiumpro can fail if the assembler doesn't know "cmov"
3436 # (eg. solaris 2.8 native "as"), so always have -march=pentium after
3437 # that as a fallback.
3439 # -march=pentium4 and -march=k8 enable SSE2 instructions, which may or
3440 # may not be supported by the assembler and/or the OS, and is bad in gcc
3441 # prior to 3.3. The tests will reject these if no good, so fallbacks
3442 # like "-march=pentium4 -mno-sse2" are given to try also without SSE2.
3443 # Note the relevant -march types are listed in the optflags handling
3444 # below, be sure to update there if adding new types emitting SSE2.
3446 # -mtune is used at the start of each cpu option list to give something
3447 # gcc 3.4 will use, thereby avoiding warnings from -mcpu. -mcpu forms
3448 # are retained for use by prior gcc. For example pentium has
3449 # "-mtune=pentium -mcpu=pentium ...", the -mtune is for 3.4 and the
3450 # -mcpu for prior. If there's a brand new choice in 3.4 for a chip,
3451 # like k8 for x86_64, then it can be the -mtune at the start, no need to
3452 # duplicate anything.
3454 gcc_cflags_optlist="cpu arch"
3457 gcc_cflags_cpu="-mtune=i386 -mcpu=i386 -m386"
3458 gcc_cflags_arch="-march=i386"
3461 gcc_cflags_cpu="-mtune=i486 -mcpu=i486 -m486"
3462 gcc_cflags_arch="-march=i486"
3465 gcc_cflags_cpu="-mtune=pentium -mcpu=pentium -m486"
3466 gcc_cflags_arch="-march=pentium"
3469 gcc_cflags_cpu="-mtune=pentium-mmx -mcpu=pentium-mmx -mcpu=pentium -m486"
3470 gcc_cflags_arch="-march=pentium-mmx -march=pentium"
3473 gcc_cflags_cpu="-mtune=pentiumpro -mcpu=pentiumpro -mcpu=i486 -m486"
3474 gcc_cflags_arch="-march=pentiumpro -march=pentium"
3477 gcc_cflags_cpu="-mtune=pentium2 -mcpu=pentium2 -mcpu=pentiumpro -mcpu=i486 -m486"
3478 gcc_cflags_arch="-march=pentium2 -march=pentiumpro -march=pentium"
3481 gcc_cflags_cpu="-mtune=pentium3 -mcpu=pentium3 -mcpu=pentiumpro -mcpu=i486 -m486"
3482 gcc_cflags_arch="-march=pentium3 -march=pentiumpro -march=pentium"
3485 gcc_cflags_cpu="-mtune=k6 -mcpu=k6 -mcpu=i486 -m486"
3486 gcc_cflags_arch="-march=k6"
3489 gcc_cflags_cpu="-mtune=k6-2 -mcpu=k6-2 -mcpu=k6 -mcpu=i486 -m486"
3490 gcc_cflags_arch="-march=k6-2 -march=k6"
3493 gcc_cflags_cpu="-mtune=k6-3 -mcpu=k6-3 -mcpu=k6 -mcpu=i486 -m486"
3494 gcc_cflags_arch="-march=k6-3 -march=k6"
3497 # Athlon instruction costs are close to P6 (3 cycle load latency,
3498 # 4-6 cycle mul, 40 cycle div, pairable adc, etc) so if gcc doesn't
3499 # know athlon (eg. 2.95.2 doesn't) then fall back on pentiumpro.
3500 gcc_cflags_cpu="-mtune=athlon -mcpu=athlon -mcpu=pentiumpro -mcpu=i486 -m486"
3501 gcc_cflags_arch="-march=athlon -march=pentiumpro -march=pentium"
3504 # pentiumpro is the primary fallback when gcc doens't know pentium4.
3505 # This gets us cmov to eliminate branches. Maybe "athlon" would be
3506 # a possibility on gcc 3.0.
3508 gcc_cflags_cpu="-mtune=pentium4 -mcpu=pentium4 -mcpu=pentiumpro -mcpu=i486 -m486"
3509 gcc_cflags_arch="-march=pentium4 -march=pentium4~-mno-sse2 -march=pentiumpro -march=pentium"
3512 # Not sure of the best fallbacks here for -mcpu.
3513 # c3-2 has sse and mmx, so pentium3 is good for -march.
3514 gcc_cflags_cpu="-mtune=c3-2 -mcpu=c3-2 -mcpu=i486 -m486"
3515 gcc_cflags_arch="-march=c3-2 -march=pentium3 -march=pentiumpro -march=pentium"
3518 # Not sure of the best fallbacks here.
3519 gcc_cflags_cpu="-mtune=c3 -mcpu=c3 -mcpu=i486 -m486"
3520 gcc_cflags_arch="-march=c3 -march=pentium-mmx -march=pentium"
3523 gcc_cflags_cpu="-mtune=k8 -mcpu=athlon -mcpu=pentiumpro -mcpu=i486 -m486"
3524 gcc_cflags_arch="-march=k8 -march=k8~-mno-sse2 -march=athlon -march=pentiumpro -march=pentium"
3527 gcc_cflags_cpu="-mtune=i486 -mcpu=i486 -m486"
3528 gcc_cflags_arch="-march=i486"
3533 i386*) path="x86" ;;
3534 i486*) path="x86/i486 x86" ;;
3535 i586 | pentium) path="x86/pentium x86" ;;
3536 pentiummmx) path="x86/pentium/mmx x86/pentium x86" ;;
3537 i686 | pentiumpro) path="x86/p6 x86" ;;
3538 pentium2) path="x86/p6/mmx x86/p6 x86" ;;
3539 pentium3) path="x86/p6/p3mmx x86/p6/mmx x86/p6 x86";;
3540 k6[23]) path="x86/k6/k62mmx x86/k6/mmx x86/k6 x86" ;;
3541 k6) path="x86/k6/mmx x86/k6 x86" ;;
3542 # we don't have any specific 32-bit code for opteron (x86_64), the
3543 # athlon code should be reasonable
3544 athlon | x86_64) path="x86/k7/mmx x86/k7 x86" ;;
3545 i786 | pentium4) path="x86/pentium4/sse2 x86/pentium4/mmx x86/pentium4 x86" ;;
3546 # VIA/Centaur processors, sold as CyrixIII and C3.
3547 viac32) path="x86/p6/p3mmx x86/p6/mmx x86/p6 x86";;
3548 viac3*) path="x86/pentium/mmx x86/pentium x86";;
3552 # If the user asked for a fat build, override the path set above
3553 if test $enable_fat = yes; then
3554 extra_functions="$extra_functions fat fat_entry"
3556 fat_path="x86 x86/fat x86/i486
3557 x86/k6 x86/k6/mmx x86/k6/k62mmx
3559 x86/pentium x86/pentium/mmx
3560 x86/p6 x86/p6/mmx x86/p6/p3mmx
3561 x86/pentium4 x86/pentium4/mmx x86/pentium4/sse2"
3562 fat_functions="add_n addmul_1 copyd copyi
3563 dive_1 diveby3 divrem_1 gcd_1 lshift
3564 mod_1 mod_34lsub1 mode1o mul_1 mul_basecase
3565 pre_divrem_1 pre_mod_1 rshift
3566 sqr_basecase sub_n submul_1"
3567 fat_thresholds="MUL_KARATSUBA_THRESHOLD MUL_TOOM3_THRESHOLD
3568 SQR_KARATSUBA_THRESHOLD SQR_TOOM3_THRESHOLD"
3576 gcc_64_cflags="-O2 -m64"
3577 gcc_64_cflags_optlist="cpu"
3578 CALLING_CONVENTIONS_OBJS_64='amd64call.lo amd64check$U.lo'
3579 SPEED_CYCLECOUNTER_OBJ_64=x86_64.lo
3580 cyclecounter_size_64=2
3586 # FIXME: z8kx won't get through config.sub. Could make 16 versus 32 bit
3587 # limb an ABI option perhaps.
3590 extra_functions="udiv_w_sdiv"
3594 extra_functions="udiv_w_sdiv"
3598 # Special CPU "none" selects generic C. -DNO_ASM is used to disable gcc
3599 # asm blocks in longlong.h (since they're driven by cpp pre-defined
3600 # symbols like __alpha rather than the configured $host_cpu).
3603 abilist="long longlong"
3605 gcc_long_cflags=$gcc_cflags
3606 gcc_long_cppflags="-DNO_ASM"
3607 cc_long_cflags=$cc_cflags
3608 cclist_longlong=$cclist
3609 gcc_longlong_cflags=$gcc_cflags
3610 gcc_longlong_cppflags="-DNO_ASM"
3611 cc_longlong_cflags=$cc_cflags
3612 limb_longlong=longlong
3617 # mingw can be built by the cygwin gcc if -mno-cygwin is added. For
3618 # convenience add this automatically if it works. Actual mingw gcc accepts
3619 # -mno-cygwin too, but of course is the default. mingw only runs on the
3620 # x86s, but allow any CPU here so as to catch "none" too.
3624 gcc_cflags_optlist="$gcc_cflags_optlist nocygwin"
3625 gcc_cflags_nocygwin="-mno-cygwin"
3630 CFLAGS_or_unset=${CFLAGS-'(unset)'}
3631 CPPFLAGS_or_unset=${CPPFLAGS-'(unset)'}
3637 CFLAGS=$CFLAGS_or_unset
3638 CPPFLAGS=$CPPFLAGS_or_unset
3646 test_CFLAGS=${CFLAGS+set}
3647 test_CPPFLAGS=${CPPFLAGS+set}
3649 for abi in $abilist; do
3653 # If the user specifies an ABI then it must be in $abilist, after that
3654 # $abilist is restricted to just that choice.
3656 if test -n "$ABI"; then
3658 for abi in $abilist; do
3659 if test $abi = "$ABI"; then found=yes; break; fi
3661 if test $found = no; then
3662 { { echo "$as_me:$LINENO: error: ABI=$ABI is not among the following valid choices: $abilist" >&5
3663 echo "$as_me: error: ABI=$ABI is not among the following valid choices: $abilist" >&2;}
3664 { (exit 1); exit 1; }; }
3671 for abi in $abilist; do
3673 echo "checking ABI=$abi"
3675 # Suppose abilist="64 32", then for abi=64, will have abi1="_64" and
3676 # abi2="_64". For abi=32, will have abi1="_32" and abi2="". This is how
3677 # $gcc_cflags becomes a fallback for $gcc_32_cflags (the last in the
3678 # abilist), but there's no fallback for $gcc_64_cflags.
3680 abi1=`echo _$abi | sed 's/[.]//g'`
3681 if test $abi = $abi_last; then abi2=; else abi2="$abi1"; fi
3683 # Compiler choices under this ABI
3684 eval cclist_chosen=\"\$cclist$abi1\"
3685 test -n "$cclist_chosen" || eval cclist_chosen=\"\$cclist$abi2\"
3687 # If there's a user specified $CC then don't use a list for
3688 # $cclist_chosen, just a single value for $ccbase.
3690 if test -n "$CC"; then
3692 # The first word of $CC, stripped of any directory. For instance
3693 # CC="/usr/local/bin/gcc -pipe" will give "gcc".
3695 for ccbase in $CC; do break; done
3696 ccbase=`echo $ccbase | sed 's:.*/::'`
3698 # If this $ccbase is in $cclist_chosen then it's a compiler we know and
3699 # we can do flags defaulting with it. If not, then $cclist_chosen is
3700 # set to "unrecognised" so no default flags are used.
3702 # "unrecognised" is used to avoid bad effects with eval if $ccbase has
3703 # non-symbol characters. For instance ccbase=my+cc would end up with
3704 # something like cflags="$my+cc_cflags" which would give
3705 # cflags="+cc_cflags" rather than the intended empty string for an
3709 for i in $cclist_chosen; do
3710 if test "$ccbase" = $i; then
3715 cclist_chosen=$found
3718 for ccbase in $cclist_chosen; do
3720 # When cross compiling, look for a compiler with the $host_alias as a
3721 # prefix, the same way that AC_CHECK_TOOL does. But don't do this to a
3722 # user-selected $CC.
3724 # $cross_compiling will be yes/no/maybe at this point. Do the host
3725 # prefixing for "maybe" as well as "yes".
3727 if test "$cross_compiling" != no && test -z "$CC"; then
3728 cross_compiling_prefix="${host_alias}-"
3731 for ccprefix in $cross_compiling_prefix ""; do
3734 test -n "$cc" || cc="$ccprefix$ccbase"
3736 # If the compiler is gcc but installed under another name, then change
3737 # $ccbase so as to use the flags we know for gcc. This helps for
3738 # instance when specifying CC=gcc272 on Debian GNU/Linux, or the
3739 # native cc which is really gcc on NeXT or MacOS-X.
3741 # FIXME: There's a slight misfeature here. If cc is actually gcc but
3742 # gcc is not a known compiler under this $abi then we'll end up
3743 # testing it with no flags and it'll work, but chances are it won't be
3744 # in the right mode for the ABI we desire. Let's quietly hope this
3747 if test $ccbase != gcc; then
3748 cat >conftest.c <<EOF
3749 #if ! defined (__GNUC__) || defined (__INTEL_COMPILER)
3753 gmp_compile="$cc -c conftest.c >&5"
3754 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
3755 (eval $gmp_compile) 2>&5
3757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3758 (exit $ac_status); }; then
3760 echo "$as_me:$LINENO: checking whether $cc is gcc" >&5
3761 echo $ECHO_N "checking whether $cc is gcc... $ECHO_C" >&6
3762 echo "$as_me:$LINENO: result: yes" >&5
3763 echo "${ECHO_T}yes" >&6
3772 # Similarly if the compiler is IBM xlc but invoked as cc or whatever
3773 # then change $ccbase and make the default xlc flags available.
3774 if test $ccbase != xlc; then
3775 gmp_command="$cc 2>&1 | grep xlc >/dev/null"
3776 if { (eval echo "$as_me:$LINENO: \"$gmp_command\"") >&5
3777 (eval $gmp_command) 2>&5
3779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3780 (exit $ac_status); }; then
3781 echo "$as_me:$LINENO: checking whether $cc is xlc" >&5
3782 echo $ECHO_N "checking whether $cc is xlc... $ECHO_C" >&6
3783 echo "$as_me:$LINENO: result: yes" >&5
3784 echo "${ECHO_T}yes" >&6
3792 # acc was Sun's first unbundled compiler back in the SunOS days, or
3793 # something like that, but today its man page says it's not meant to
3794 # be used directly (instead via /usr/ucb/cc). The options are pretty
3795 # much the same as the main SunPRO cc, so share those configs.
3798 *sparc*-*-solaris* | *sparc*-*-sunos*)
3799 if test "$ccbase" = acc; then ccbase=cc; fi ;;
3802 for tmp_cflags_maybe in yes no; do
3803 eval cflags=\"\$${ccbase}${abi1}_cflags\"
3804 test -n "$cflags" || eval cflags=\"\$${ccbase}${abi2}_cflags\"
3806 if test "$tmp_cflags_maybe" = yes; then
3807 # don't try cflags_maybe when the user set CFLAGS
3808 if test "$test_CFLAGS" = set; then continue; fi
3809 eval cflags_maybe=\"\$${ccbase}${abi1}_cflags_maybe\"
3810 test -n "$cflags_maybe" || eval cflags_maybe=\"\$${ccbase}${abi2}_cflags_maybe\"
3811 # don't try cflags_maybe if there's nothing set
3812 if test -z "$cflags_maybe"; then continue; fi
3813 cflags="$cflags_maybe $cflags"
3816 # Any user CFLAGS, even an empty string, takes precendence
3817 if test "$test_CFLAGS" = set; then cflags=$CFLAGS; fi
3819 # Any user CPPFLAGS, even an empty string, takes precendence
3820 eval cppflags=\"\$${ccbase}${abi1}_cppflags\"
3821 test -n "$cppflags" || eval cppflags=\"\$${ccbase}${abi2}_cppflags\"
3822 if test "$test_CPPFLAGS" = set; then cppflags=$CPPFLAGS; fi
3824 # --enable-profiling adds -p/-pg even to user-specified CFLAGS.
3825 # This is convenient, but it's perhaps a bit naughty to modify user
3827 case "$enable_profiling" in
3828 prof) cflags="$cflags -p" ;;
3829 gprof) cflags="$cflags -pg" ;;
3830 instrument) cflags="$cflags -finstrument-functions" ;;
3833 echo "$as_me:$LINENO: checking compiler $cc $cflags $cppflags" >&5
3834 echo $ECHO_N "checking compiler $cc $cflags $cppflags... $ECHO_C" >&6
3835 gmp_prog_cc_works=yes
3837 # first see a simple "main()" works, then go on to other checks
3838 if test "$gmp_prog_cc_works" = yes; then
3839 # remove anything that might look like compiler output to our "||" expression
3840 rm -f conftest* a.out b.out a.exe a_out.exe
3841 cat >conftest.c <<EOF
3843 int main () { return 0; }
3845 echo "Test compile: " >&5
3846 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
3847 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
3848 (eval $gmp_compile) 2>&5
3850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3851 (exit $ac_status); }; then
3853 if test "$cross_compiling" = no; then
3854 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
3855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859 (exit $ac_status); }; }; then :;
3867 if test "$cc_works_part" != yes; then
3868 echo "failed program was:" >&5
3871 rm -f conftest* a.out b.out a.exe a_out.exe
3872 case $cc_works_part in
3877 gmp_prog_cc_works="no"
3880 gmp_prog_cc_works="no, program does not run"
3888 if test "$gmp_prog_cc_works" = yes; then
3889 # remove anything that might look like compiler output to our "||" expression
3890 rm -f conftest* a.out b.out a.exe a_out.exe
3891 cat >conftest.c <<EOF
3892 /* The following provokes an internal error from gcc 2.95.2 -mpowerpc64
3893 (without -maix64), hence detecting an unusable compiler */
3894 void *g() { return (void *) 0; }
3895 void *f() { return g(); }
3897 int main () { return 0; }
3899 echo "Test compile: function pointer return" >&5
3900 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
3901 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
3902 (eval $gmp_compile) 2>&5
3904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3905 (exit $ac_status); }; then
3907 if test "$cross_compiling" = no; then
3908 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
3909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3913 (exit $ac_status); }; }; then :;
3921 if test "$cc_works_part" != yes; then
3922 echo "failed program was:" >&5
3925 rm -f conftest* a.out b.out a.exe a_out.exe
3926 case $cc_works_part in
3931 gmp_prog_cc_works="no, function pointer return"
3934 gmp_prog_cc_works="no, function pointer return, program does not run"
3942 if test "$gmp_prog_cc_works" = yes; then
3943 # remove anything that might look like compiler output to our "||" expression
3944 rm -f conftest* a.out b.out a.exe a_out.exe
3945 cat >conftest.c <<EOF
3946 /* The following provokes an invalid instruction syntax from i386 gcc
3947 -march=pentiumpro on Solaris 2.8. The native sun assembler
3948 requires a non-standard syntax for cmov which gcc (as of 2.95.2 at
3949 least) doesn't know. */
3951 int cmov () { return (n >= 0 ? n : 0); }
3953 int main () { return 0; }
3955 echo "Test compile: cmov instruction" >&5
3956 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
3957 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
3958 (eval $gmp_compile) 2>&5
3960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3961 (exit $ac_status); }; then
3963 if test "$cross_compiling" = no; then
3964 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
3965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); }; }; then :;
3977 if test "$cc_works_part" != yes; then
3978 echo "failed program was:" >&5
3981 rm -f conftest* a.out b.out a.exe a_out.exe
3982 case $cc_works_part in
3987 gmp_prog_cc_works="no, cmov instruction"
3990 gmp_prog_cc_works="no, cmov instruction, program does not run"
3998 if test "$gmp_prog_cc_works" = yes; then
3999 # remove anything that might look like compiler output to our "||" expression
4000 rm -f conftest* a.out b.out a.exe a_out.exe
4001 cat >conftest.c <<EOF
4002 /* The following provokes a linker invocation problem with gcc 3.0.3
4003 on AIX 4.3 under "-maix64 -mpowerpc64 -mcpu=630". The -mcpu=630
4004 option causes gcc to incorrectly select the 32-bit libgcc.a, not
4005 the 64-bit one, and consequently it misses out on the __fixunsdfdi
4006 helper (double -> uint64 conversion). */
4008 unsigned long gcc303 () { return (unsigned long) d; }
4010 int main () { return 0; }
4012 echo "Test compile: double -> ulong conversion" >&5
4013 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
4014 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
4015 (eval $gmp_compile) 2>&5
4017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4018 (exit $ac_status); }; then
4020 if test "$cross_compiling" = no; then
4021 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
4022 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4026 (exit $ac_status); }; }; then :;
4034 if test "$cc_works_part" != yes; then
4035 echo "failed program was:" >&5
4038 rm -f conftest* a.out b.out a.exe a_out.exe
4039 case $cc_works_part in
4044 gmp_prog_cc_works="no, double -> ulong conversion"
4047 gmp_prog_cc_works="no, double -> ulong conversion, program does not run"
4055 if test "$gmp_prog_cc_works" = yes; then
4056 # remove anything that might look like compiler output to our "||" expression
4057 rm -f conftest* a.out b.out a.exe a_out.exe
4058 cat >conftest.c <<EOF
4059 /* The following provokes an error from hppa gcc 2.95 under -mpa-risc-2-0 if
4060 the assembler doesn't know hppa 2.0 instructions. fneg is a 2.0
4061 instruction, and a negation like this comes out using it. */
4063 unsigned long fneg () { return -fneg_data; }
4065 int main () { return 0; }
4067 echo "Test compile: double negation" >&5
4068 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
4069 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
4070 (eval $gmp_compile) 2>&5
4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4073 (exit $ac_status); }; then
4075 if test "$cross_compiling" = no; then
4076 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
4077 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4080 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4081 (exit $ac_status); }; }; then :;
4089 if test "$cc_works_part" != yes; then
4090 echo "failed program was:" >&5
4093 rm -f conftest* a.out b.out a.exe a_out.exe
4094 case $cc_works_part in
4099 gmp_prog_cc_works="no, double negation"
4102 gmp_prog_cc_works="no, double negation, program does not run"
4110 if test "$gmp_prog_cc_works" = yes; then
4111 # remove anything that might look like compiler output to our "||" expression
4112 rm -f conftest* a.out b.out a.exe a_out.exe
4113 cat >conftest.c <<EOF
4114 /* The following makes gcc 3.3 -march=pentium4 generate an SSE2 xmm insn
4115 (cvtsd2ss) which will provoke an error if the assembler doesn't recognise
4116 those instructions. Not sure how much of the gmp code will come out
4117 wanting sse2, but it's easiest to reject an option we know is bad. */
4119 float ftod () { return (float) ftod_data; }
4121 int main () { return 0; }
4123 echo "Test compile: double -> float conversion" >&5
4124 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
4125 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
4126 (eval $gmp_compile) 2>&5
4128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4129 (exit $ac_status); }; then
4131 if test "$cross_compiling" = no; then
4132 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
4133 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137 (exit $ac_status); }; }; then :;
4145 if test "$cc_works_part" != yes; then
4146 echo "failed program was:" >&5
4149 rm -f conftest* a.out b.out a.exe a_out.exe
4150 case $cc_works_part in
4155 gmp_prog_cc_works="no, double -> float conversion"
4158 gmp_prog_cc_works="no, double -> float conversion, program does not run"
4166 if test "$gmp_prog_cc_works" = yes; then
4167 # remove anything that might look like compiler output to our "||" expression
4168 rm -f conftest* a.out b.out a.exe a_out.exe
4169 cat >conftest.c <<EOF
4170 /* The following provokes an internal compiler error from gcc version
4171 "2.9-gnupro-99r1" under "-O2 -mcpu=ev6", apparently relating to char
4172 values being spilled into floating point registers. The problem doesn't
4173 show up all the time, but has occurred enough in GMP for us to reject
4174 this compiler+flags. */
4179 long d0, d1, d2, d3, d4, d5, d6;
4182 struct try_t param[6];
4187 memcpy (p, ¶m[ 2 ], sizeof (*p));
4188 memcpy (p, ¶m[ 2 ], sizeof (*p));
4190 memcpy (p, ¶m[ 1 ], sizeof (*p));
4193 memcpy (p, ¶m[ 3 ], sizeof (*p));
4196 memcpy (p, ¶m[ 4 ], sizeof (*p));
4197 memcpy (p, ¶m[ 4 ], sizeof (*p));
4199 memcpy (p, ¶m[ 5 ], sizeof (*p));
4200 memcpy (p, ¶m[ 5 ], sizeof (*p));
4201 memcpy (p, ¶m[ 5 ], sizeof (*p));
4205 int main () { return 0; }
4207 echo "Test compile: gnupro alpha ev6 char spilling" >&5
4208 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
4209 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
4210 (eval $gmp_compile) 2>&5
4212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213 (exit $ac_status); }; then
4215 if test "$cross_compiling" = no; then
4216 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
4217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4221 (exit $ac_status); }; }; then :;
4229 if test "$cc_works_part" != yes; then
4230 echo "failed program was:" >&5
4233 rm -f conftest* a.out b.out a.exe a_out.exe
4234 case $cc_works_part in
4239 gmp_prog_cc_works="no, gnupro alpha ev6 char spilling"
4242 gmp_prog_cc_works="no, gnupro alpha ev6 char spilling, program does not run"
4250 # __builtin_alloca is not available everywhere, check it exists before
4251 # seeing that it works
4252 if test "$gmp_prog_cc_works" = yes; then
4253 # remove anything that might look like compiler output to our "||" expression
4254 rm -f conftest* a.out b.out a.exe a_out.exe
4255 cat >conftest.c <<EOF
4256 int k; int foo () { __builtin_alloca (k); }
4258 echo "Test compile: __builtin_alloca availability" >&5
4259 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
4260 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
4261 (eval $gmp_compile) 2>&5
4263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4264 (exit $ac_status); }; then
4266 if test "$cross_compiling" = no; then
4267 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
4268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4272 (exit $ac_status); }; }; then :;
4280 if test "$cc_works_part" != yes; then
4281 echo "failed program was:" >&5
4284 rm -f conftest* a.out b.out a.exe a_out.exe
4285 case $cc_works_part in
4287 if test "$gmp_prog_cc_works" = yes; then
4288 # remove anything that might look like compiler output to our "||" expression
4289 rm -f conftest* a.out b.out a.exe a_out.exe
4290 cat >conftest.c <<EOF
4291 /* The following provokes an internal compiler error from Itanium HP-UX cc
4292 under +O2 or higher. We use this sort of code in mpn/generic/mul_fft.c. */
4297 a = __builtin_alloca (k);
4298 for (i = 0; i <= k; i++)
4299 a[i] = __builtin_alloca (1 << i);
4302 int main () { return 0; }
4304 echo "Test compile: alloca array" >&5
4305 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
4306 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
4307 (eval $gmp_compile) 2>&5
4309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4310 (exit $ac_status); }; then
4312 if test "$cross_compiling" = no; then
4313 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
4314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); }; }; then :;
4326 if test "$cc_works_part" != yes; then
4327 echo "failed program was:" >&5
4330 rm -f conftest* a.out b.out a.exe a_out.exe
4331 case $cc_works_part in
4336 gmp_prog_cc_works="no, alloca array"
4339 gmp_prog_cc_works="no, alloca array, program does not run"
4357 if test "$gmp_prog_cc_works" = yes; then
4358 # remove anything that might look like compiler output to our "||" expression
4359 rm -f conftest* a.out b.out a.exe a_out.exe
4360 cat >conftest.c <<EOF
4361 /* The following provokes an internal error from the assembler on
4362 power2-ibm-aix4.3.1.0. gcc -mrios2 compiles to nabs+fcirz, and this
4363 results in "Internal error related to the source program domain".
4365 For reference it seems to be the combination of nabs+fcirz which is bad,
4366 not either alone. This sort of thing occurs in mpz/get_str.c with the
4367 way double chars_per_bit_exactly is applied in MPN_SIZEINBASE. Perhaps
4368 if that code changes to a scaled-integer style then we won't need this
4376 a = (x >= 0 ? x : -x);
4380 int main () { return 0; }
4382 echo "Test compile: abs int -> double conversion" >&5
4383 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
4384 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
4385 (eval $gmp_compile) 2>&5
4387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4388 (exit $ac_status); }; then
4390 if test "$cross_compiling" = no; then
4391 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
4392 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4396 (exit $ac_status); }; }; then :;
4404 if test "$cc_works_part" != yes; then
4405 echo "failed program was:" >&5
4408 rm -f conftest* a.out b.out a.exe a_out.exe
4409 case $cc_works_part in
4414 gmp_prog_cc_works="no, abs int -> double conversion"
4417 gmp_prog_cc_works="no, abs int -> double conversion, program does not run"
4425 if test "$gmp_prog_cc_works" = yes; then
4426 # remove anything that might look like compiler output to our "||" expression
4427 rm -f conftest* a.out b.out a.exe a_out.exe
4428 cat >conftest.c <<EOF
4429 /* The following provokes a segfault in the compiler on powerpc-apple-darwin.
4430 Extracted from tests/mpn/t-iord_u.c. Causes Apple's gcc 3.3 build 1640 and
4431 1666 to segfault with e.g., -O2 -mpowerpc64. */
4434 typedef unsigned long long t1;typedef t1*t2;
4435 __inline__ t1 e(t2 rp,t2 up,int n,t1 v0)
4436 {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;}
4437 f(){static const struct{t1 n;t1 src[9];t1 want[9];}d[]={{1,{0},{1}},};t1 got[9];int i;
4438 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();}}
4444 int main () { return 0; }
4446 echo "Test compile: long long reliability test 1" >&5
4447 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
4448 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
4449 (eval $gmp_compile) 2>&5
4451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4452 (exit $ac_status); }; then
4454 if test "$cross_compiling" = no; then
4455 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
4456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4460 (exit $ac_status); }; }; then :;
4468 if test "$cc_works_part" != yes; then
4469 echo "failed program was:" >&5
4472 rm -f conftest* a.out b.out a.exe a_out.exe
4473 case $cc_works_part in
4478 gmp_prog_cc_works="no, long long reliability test 1"
4481 gmp_prog_cc_works="no, long long reliability test 1, program does not run"
4489 if test "$gmp_prog_cc_works" = yes; then
4490 # remove anything that might look like compiler output to our "||" expression
4491 rm -f conftest* a.out b.out a.exe a_out.exe
4492 cat >conftest.c <<EOF
4493 /* The following provokes an internal compiler error on powerpc-apple-darwin.
4494 Extracted from mpz/cfdiv_q_2exp.c. Causes Apple's gcc 3.3 build 1640 and
4495 1666 to get an ICE with -O1 -mpowerpc64. */
4498 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();}
4504 int main () { return 0; }
4506 echo "Test compile: long long reliability test 2" >&5
4507 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
4508 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
4509 (eval $gmp_compile) 2>&5
4511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4512 (exit $ac_status); }; then
4514 if test "$cross_compiling" = no; then
4515 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
4516 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4520 (exit $ac_status); }; }; then :;
4528 if test "$cc_works_part" != yes; then
4529 echo "failed program was:" >&5
4532 rm -f conftest* a.out b.out a.exe a_out.exe
4533 case $cc_works_part in
4538 gmp_prog_cc_works="no, long long reliability test 2"
4541 gmp_prog_cc_works="no, long long reliability test 2, program does not run"
4549 if test "$gmp_prog_cc_works" = yes; then
4550 # remove anything that might look like compiler output to our "||" expression
4551 rm -f conftest* a.out b.out a.exe a_out.exe
4552 cat >conftest.c <<EOF
4553 /* The following is mis-compiled by HP ia-64 cc version
4554 cc: HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]
4555 under "cc +O3", both in +DD32 and +DD64 modes. The mpn_lshift_com gets
4556 inlined and its return value somehow botched to be 0 instead of 1. This
4557 arises in the real mpn_lshift_com in mul_fft.c. A lower optimization
4558 level, like +O2 seems ok. This code needs to be run to show the problem,
4559 but that's fine, the offending cc is a native-only compiler so we don't
4560 have to worry about cross compiling. */
4563 lshift_com (rp, up, n, cnt)
4569 unsigned long retval, high_limb, low_limb;
4572 tnc = 8 * sizeof (unsigned long) - cnt;
4574 retval = low_limb >> tnc;
4575 high_limb = low_limb << cnt;
4576 for (i = n - 1; i != 0; i--)
4579 *rp++ = ~(high_limb | (low_limb >> tnc));
4580 high_limb = low_limb << cnt;
4587 unsigned long cy, rp[2], up[2];
4590 cy = lshift_com (rp, up, 2L, 1);
4597 echo "Test compile: mpn_lshift_com optimization" >&5
4598 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
4599 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
4600 (eval $gmp_compile) 2>&5
4602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4603 (exit $ac_status); }; then
4605 if test "$cross_compiling" = no; then
4606 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
4607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4611 (exit $ac_status); }; }; then :;
4619 if test "$cc_works_part" != yes; then
4620 echo "failed program was:" >&5
4623 rm -f conftest* a.out b.out a.exe a_out.exe
4624 case $cc_works_part in
4629 gmp_prog_cc_works="no, mpn_lshift_com optimization"
4632 gmp_prog_cc_works="no, mpn_lshift_com optimization, program does not run"
4639 if test "$gmp_prog_cc_works" = yes; then
4640 # remove anything that might look like compiler output to our "||" expression
4641 rm -f conftest* a.out b.out a.exe a_out.exe
4642 cat >conftest.c <<EOF
4643 /* The following is mis-compiled by Intel ia-64 icc version 1.8 under
4644 "icc -O3", After several calls, the function writes parial garbage to
4645 the result vector. Perhaps relates to the chk.a.nc insn. This code needs
4646 to be run to show the problem, but that's fine, the offending cc is a
4647 native-only compiler so we don't have to worry about cross compiling. */
4651 lshift_com (rp, up, n, cnt)
4657 unsigned long high_limb, low_limb;
4662 tnc = 8 * sizeof (unsigned long) - cnt;
4664 high_limb = low_limb << cnt;
4665 for (i = n - 1; i != 0; i--)
4668 *--rp = ~(high_limb | (low_limb >> tnc));
4669 high_limb = low_limb << cnt;
4676 unsigned long *r, *r2;
4677 unsigned long a[88 + 1];
4679 for (i = 0; i < 88 + 1; i++)
4681 r = malloc (10000 * sizeof (unsigned long));
4683 for (i = 0; i < 528; i += 22)
4686 i / (8 * sizeof (unsigned long)) + 1,
4687 i % (8 * sizeof (unsigned long)));
4690 if (r[2048] != 0 || r[2049] != 0 || r[2050] != 0 || r[2051] != 0 ||
4691 r[2052] != 0 || r[2053] != 0 || r[2054] != 0)
4697 echo "Test compile: mpn_lshift_com optimization 2" >&5
4698 gmp_compile="$cc $cflags $cppflags conftest.c >&5"
4699 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
4700 (eval $gmp_compile) 2>&5
4702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4703 (exit $ac_status); }; then
4705 if test "$cross_compiling" = no; then
4706 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
4707 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4711 (exit $ac_status); }; }; then :;
4719 if test "$cc_works_part" != yes; then
4720 echo "failed program was:" >&5
4723 rm -f conftest* a.out b.out a.exe a_out.exe
4724 case $cc_works_part in
4729 gmp_prog_cc_works="no, mpn_lshift_com optimization 2"
4732 gmp_prog_cc_works="no, mpn_lshift_com optimization 2, program does not run"
4740 # A certain _GLOBAL_OFFSET_TABLE_ problem in past versions of gas, tickled
4741 # by recent versions of gcc.
4743 if test "$gmp_prog_cc_works" = yes; then
4745 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-*)
4746 # this problem only arises in PIC code, so don't need to test when
4747 # --disable-shared. We don't necessarily have $enable_shared set to
4748 # yes at this point, it will still be unset for the default (which is
4749 # yes); hence the use of "!= no".
4750 if test "$enable_shared" != no; then
4751 echo "Testing gcc GOT with eax emitted" >&5
4752 cat >conftest.c <<\EOF
4754 int bar () { return foo; }
4757 gmp_compile="$cc $cflags $cppflags -fPIC -S conftest.c >&5 2>&1"
4758 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
4759 (eval $gmp_compile) 2>&5
4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4762 (exit $ac_status); }; then
4763 if grep "addl.*_GLOBAL_OFFSET_TABLE_.*eax" conftest.s >/dev/null; then
4768 echo "Result: $tmp_got_emitted" >&5
4769 if test "$tmp_got_emitted" = yes; then
4770 echo "Testing gas GOT with eax good" >&5
4771 cat >conftest.awk <<\EOF
4800 for (f = 2; f <= NF; f++)
4802 for (i = 0; i < 20; i++)
4807 for (i = 0; i < 21; i++)
4808 if (got[i] != want[i])
4824 cat >conftest.s <<\EOF
4826 .byte 1, 35, 69, 103, 137, 171, 205, 239
4827 addl $_GLOBAL_OFFSET_TABLE_, %eax
4828 .byte 254, 220, 186, 152, 118, 84, 50, 16
4831 gmp_compile="$cc $cflags $cppflags -fPIC -o conftest.o -c conftest.s >&5 2>&1"
4832 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
4833 (eval $gmp_compile) 2>&5
4835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4836 (exit $ac_status); }; then
4837 tmp_got_good=`od -b conftest.o | $AWK -f conftest.awk`
4840 echo "Result: $tmp_got_good" >&5
4841 if test "$tmp_got_good" = no; then
4842 gmp_prog_cc_works="no, bad gas GOT with eax"
4856 echo "$as_me:$LINENO: result: $gmp_prog_cc_works" >&5
4857 echo "${ECHO_T}$gmp_prog_cc_works" >&6
4858 case $gmp_prog_cc_works in
4868 # If we're supposed to be using a "long long" for a limb, check that
4870 eval limb_chosen=\"\$limb$abi1\"
4871 test -n "$limb_chosen" || eval limb_chosen=\"\$limb$abi2\"
4872 if test "$limb_chosen" = longlong; then
4873 echo "$as_me:$LINENO: checking compiler $cc $cflags $cppflags has long long" >&5
4874 echo $ECHO_N "checking compiler $cc $cflags $cppflags has long long... $ECHO_C" >&6
4875 cat >conftest.c <<EOF
4877 long long bar () { return foo; }
4878 int main () { return 0; }
4880 gmp_prog_cc_works=no
4881 gmp_compile="$cc $cflags $cppflags -c conftest.c >&5"
4882 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
4883 (eval $gmp_compile) 2>&5
4885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4886 (exit $ac_status); }; then
4887 gmp_prog_cc_works=yes
4889 echo "failed program was:" >&5
4892 rm -f conftest* a.out b.out a.exe a_out.exe
4893 echo "$as_me:$LINENO: result: $gmp_prog_cc_works" >&5
4894 echo "${ECHO_T}$gmp_prog_cc_works" >&6
4895 if test $gmp_prog_cc_works = yes; then
4903 # The tests to perform on this $cc, if any
4904 eval testlist=\"\$${ccbase}${abi1}_testlist\"
4905 test -n "$testlist" || eval testlist=\"\$${ccbase}${abi2}_testlist\"
4906 test -n "$testlist" || eval testlist=\"\$any${abi1}_testlist\"
4907 test -n "$testlist" || eval testlist=\"\$any${abi2}_testlist\"
4910 for tst in $testlist; do
4912 hpc-hppa-2-0) echo "$as_me:$LINENO: checking whether HP compiler $cc is good for 64-bits" >&5
4913 echo $ECHO_N "checking whether HP compiler $cc is good for 64-bits... $ECHO_C" >&6
4914 # Bad compiler output:
4915 # ccom: HP92453-01 G.10.32.05 HP C Compiler
4916 # Good compiler output:
4917 # ccom: HP92453-01 A.10.32.30 HP C Compiler
4918 # Let A.10.32.30 or higher be ok.
4920 gmp_tmp_vs=`$cc -V -c -o conftest.$OBJEXT conftest.c 2>&1 | grep "^ccom:"`
4921 echo "Version string: $gmp_tmp_vs" >&5
4923 gmp_tmp_v1=`echo $gmp_tmp_vs | sed 's/.* .\.\([0-9]*\).*/\1/'`
4924 gmp_tmp_v2=`echo $gmp_tmp_vs | sed 's/.* .\..*\.\(.*\)\..* HP C.*/\1/'`
4925 gmp_tmp_v3=`echo $gmp_tmp_vs | sed 's/.* .\..*\..*\.\(.*\) HP C.*/\1/'`
4926 echo "Version number: $gmp_tmp_v1.$gmp_tmp_v2.$gmp_tmp_v3" >&5
4927 if test -z "$gmp_tmp_v1"; then
4928 gmp_hpc_64bit=not-applicable
4931 if test -n "$gmp_tmp_v1"; then
4932 if test "$gmp_tmp_v1" -gt 10; then
4935 if test "$gmp_tmp_v1" -eq 10; then
4936 if test -n "$gmp_tmp_v2"; then
4937 if test "$gmp_tmp_v2" -gt 32; then
4940 if test "$gmp_tmp_v2" -eq 32; then
4941 if test -n "$gmp_tmp_v3" && test "$gmp_tmp_v3" -ge 30; then
4954 gmp_hpc_64bit=$gmp_compare_ge
4956 echo "$as_me:$LINENO: result: $gmp_hpc_64bit" >&5
4957 echo "${ECHO_T}$gmp_hpc_64bit" >&6
4958 if test $gmp_hpc_64bit = yes; then
4964 gcc-arm-umodsi) echo "$as_me:$LINENO: checking whether ARM gcc unsigned division works" >&5
4965 echo $ECHO_N "checking whether ARM gcc unsigned division works... $ECHO_C" >&6
4966 tmp_version=`$cc --version`
4967 echo "$tmp_version" >&5
4968 case $tmp_version in
4971 gmp_gcc_arm_umodsi_result="no, gcc 2.95.[0123]" ;;
4974 gmp_gcc_arm_umodsi_result=yes ;;
4976 echo "$as_me:$LINENO: result: $gmp_gcc_arm_umodsi_result" >&5
4977 echo "${ECHO_T}$gmp_gcc_arm_umodsi_result" >&6
4979 gcc-mips-o32) echo "$as_me:$LINENO: checking whether gcc supports o32" >&5
4980 echo $ECHO_N "checking whether gcc supports o32... $ECHO_C" >&6
4981 echo 'int x;' >conftest.c
4982 echo "$cc -mabi=32 -c conftest.c" >&5
4983 if $cc -mabi=32 -c conftest.c >conftest.out 2>&1; then
4986 cat conftest.out >&5
4987 if grep "cc1: Invalid option \`abi=32'" conftest.out >/dev/null; then
4994 echo "$as_me:$LINENO: result: $result" >&5
4995 echo "${ECHO_T}$result" >&6
4996 if test $result = yes; then
5002 hppa-level-2.0) echo "$as_me:$LINENO: checking $cc $cflags assembler knows hppa 2.0" >&5
5003 echo $ECHO_N "checking $cc $cflags assembler knows hppa 2.0... $ECHO_C" >&6
5005 cat >conftest.s <<EOF
5008 gmp_compile="$cc $cflags -c conftest.s >&5 2>&1"
5009 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5010 (eval $gmp_compile) 2>&5
5012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5013 (exit $ac_status); }; then
5016 echo "failed program was" >&5
5020 echo "$as_me:$LINENO: result: $result" >&5
5021 echo "${ECHO_T}$result" >&6
5022 if test "$result" = yes; then
5028 sizeof*) echo "configure: testlist $tst" >&5
5029 gmp_sizeof_type=`echo "$tst" | sed 's/sizeof-\([a-z]*\).*/\1/'`
5030 gmp_sizeof_want=`echo "$tst" | sed 's/sizeof-[a-z]*-\([0-9]*\).*/\1/'`
5031 echo "$as_me:$LINENO: checking compiler $cc $cflags has sizeof($gmp_sizeof_type)==$gmp_sizeof_want" >&5
5032 echo $ECHO_N "checking compiler $cc $cflags has sizeof($gmp_sizeof_type)==$gmp_sizeof_want... $ECHO_C" >&6
5033 cat >conftest.c <<EOF
5037 static int test_array [1 - 2 * (long) (sizeof ($gmp_sizeof_type) != $gmp_sizeof_want)];
5042 gmp_c_testlist_sizeof=no
5043 gmp_compile="$cc $cflags -c conftest.c >&5"
5044 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5045 (eval $gmp_compile) 2>&5
5047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5048 (exit $ac_status); }; then
5049 gmp_c_testlist_sizeof=yes
5052 echo "$as_me:$LINENO: result: $gmp_c_testlist_sizeof" >&5
5053 echo "${ECHO_T}$gmp_c_testlist_sizeof" >&6
5054 if test $gmp_c_testlist_sizeof = yes; then
5061 if test $testlist_pass = no; then break; fi
5064 if test $testlist_pass = yes; then
5070 if test $found_compiler = yes; then break; fi
5073 if test $found_compiler = yes; then break; fi
5076 if test $found_compiler = yes; then break; fi
5080 # If we recognised the CPU, as indicated by $path being set, then insist
5081 # that we have a working compiler, either from our $cclist choices or from
5082 # $CC. We can't let AC_PROG_CC look around for a compiler because it might
5083 # find one that we've rejected (for not supporting the modes our asm code
5086 # If we didn't recognise the CPU (and this includes host_cpu=none), then
5087 # fall through and let AC_PROG_CC look around for a compiler too. This is
5088 # mostly in the interests of following a standard autoconf setup, after all
5089 # we've already tested cc and gcc adequately (hopefully). As of autoconf
5090 # 2.50 the only thing AC_PROG_CC really adds is a check for "cl" (Microsoft
5091 # C on MS-DOS systems).
5093 if test $found_compiler = no && test -n "$path"; then
5094 { { echo "$as_me:$LINENO: error: could not find a working compiler, see config.log for details" >&5
5095 echo "$as_me: error: could not find a working compiler, see config.log for details" >&2;}
5096 { (exit 1); exit 1; }; }
5100 if test $found_compiler = yes; then
5102 # If we're creating CFLAGS, then look for optional additions. If the user
5103 # set CFLAGS then leave it alone.
5105 if test "$test_CFLAGS" != set; then
5106 eval optlist=\"\$${ccbase}${abi1}_cflags_optlist\"
5107 test -n "$optlist" || eval optlist=\"\$${ccbase}${abi2}_cflags_optlist\"
5109 for opt in $optlist; do
5110 eval optflags=\"\$${ccbase}${abi1}_cflags_${opt}\"
5111 test -n "$optflags" || eval optflags=\"\$${ccbase}${abi2}_cflags_${opt}\"
5112 test -n "$optflags" || eval optflags=\"\$${ccbase}_cflags_${opt}\"
5114 for flag in $optflags; do
5116 # ~ respresents a space in an option spec
5117 flag=`echo "$flag" | tr '~' ' '`
5120 -march=pentium4 | -march=k8)
5121 # For -march settings which enable SSE2 we exclude certain bad
5122 # gcc versions and we need an OS knowing how to save xmm regs.
5124 # This is only for ABI=32, any 64-bit gcc is good and any OS
5125 # knowing x86_64 will know xmm.
5127 # -march=k8 was only introduced in gcc 3.3, so we shouldn't need
5128 # the GMP_GCC_PENTIUM4_SSE2 check (for gcc 3.2 and prior). But
5129 # it doesn't hurt to run it anyway, sharing code with the
5132 if test "$abi" = 32; then
5133 echo "$as_me:$LINENO: checking whether gcc is good for sse2" >&5
5134 echo $ECHO_N "checking whether gcc is good for sse2... $ECHO_C" >&6
5135 case `$cc $cflags $cppflags -dumpversion` in
5136 3.[012] | 3.[012].*) result=no ;;
5139 echo "$as_me:$LINENO: result: $result" >&5
5140 echo "${ECHO_T}$result" >&6
5141 if test "$result" = yes; then
5147 echo "$as_me:$LINENO: checking whether the operating system supports XMM registers" >&5
5148 echo $ECHO_N "checking whether the operating system supports XMM registers... $ECHO_C" >&6
5149 if test "${gmp_cv_os_x86_xmm+set}" = set; then
5150 echo $ECHO_N "(cached) $ECHO_C" >&6
5152 if test "$build" = "$host"; then
5153 # remove anything that might look like compiler output to our "||" expression
5154 rm -f conftest* a.out b.out a.exe a_out.exe
5155 cat >conftest.s <<EOF
5161 .byte 0x0f, 0x57, 0xc0
5165 gmp_compile="$cc $cflags $cppflags conftest.s -o conftest >&5"
5166 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5167 (eval $gmp_compile) 2>&5
5169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5170 (exit $ac_status); }; then
5171 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5176 (exit $ac_status); }; }; then
5177 gmp_cv_os_x86_xmm=yes
5179 gmp_cv_os_x86_xmm=no
5182 { echo "$as_me:$LINENO: WARNING: Oops, cannot compile test program" >&5
5183 echo "$as_me: WARNING: Oops, cannot compile test program" >&2;}
5188 if test -z "$gmp_cv_os_x86_xmm"; then
5190 freebsd[123] | freebsd[123].*)
5191 gmp_cv_os_x86_xmm=no ;;
5193 gmp_cv_os_x86_xmm=yes ;;
5195 gmp_cv_os_x86_xmm=probably ;;
5200 echo "$as_me:$LINENO: result: $gmp_cv_os_x86_xmm" >&5
5201 echo "${ECHO_T}$gmp_cv_os_x86_xmm" >&6
5203 if test "$gmp_cv_os_x86_xmm" = probably; then
5204 { echo "$as_me:$LINENO: WARNING: Not certain of OS support for xmm when cross compiling." >&5
5205 echo "$as_me: WARNING: Not certain of OS support for xmm when cross compiling." >&2;}
5206 { echo "$as_me:$LINENO: WARNING: Will assume it's ok, expect a SIGILL if this is wrong." >&5
5207 echo "$as_me: WARNING: Will assume it's ok, expect a SIGILL if this is wrong." >&2;}
5210 case $gmp_cv_os_x86_xmm in
5222 # special check, avoiding a warning
5223 if test "$ccbase" = gcc; then
5224 echo "$as_me:$LINENO: checking compiler $cc $cflags -no-cpp-precomp" >&5
5225 echo $ECHO_N "checking compiler $cc $cflags -no-cpp-precomp... $ECHO_C" >&6
5227 cat >conftest.c <<EOF
5228 int main () { return 0; }
5230 gmp_compile="$cc $cflags -no-cpp-precomp conftest.c >conftest.out 2>&1"
5231 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5232 (eval $gmp_compile) 2>&5
5234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5235 (exit $ac_status); }; then
5236 if grep "unrecognized option.*-no-cpp-precomp" conftest.out >/dev/null; then : ;
5241 cat conftest.out >&5
5242 rm -f conftest* a.out b.out a.exe a_out.exe
5243 echo "$as_me:$LINENO: result: $result" >&5
5244 echo "${ECHO_T}$result" >&6
5245 if test "$result" = yes; then
5246 cflags="$cflags $flag"
5257 echo "$as_me:$LINENO: checking assembler $cc $cflags $flag" >&5
5258 echo $ECHO_N "checking assembler $cc $cflags $flag... $ECHO_C" >&6
5260 cat >conftest.c <<EOF
5263 gmp_compile="$cc $cflags $flag -c conftest.c >conftest.out 2>&1"
5264 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5265 (eval $gmp_compile) 2>&5
5267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5268 (exit $ac_status); }; then
5269 if grep "Unknown CPU identifier" conftest.out >/dev/null; then : ;
5274 cat conftest.out >&5
5276 echo "$as_me:$LINENO: result: $result" >&5
5277 echo "${ECHO_T}$result" >&6
5278 if test "$result" = yes; then
5288 echo "$as_me:$LINENO: checking for $cc $cflags $cppflags -Wa,-oldas" >&5
5289 echo $ECHO_N "checking for $cc $cflags $cppflags -Wa,-oldas... $ECHO_C" >&6
5291 cat >conftest.c <<EOF
5293 echo "with empty conftest.c" >&5
5294 gmp_compile="$cc $cflags $cppflags -c conftest.c >&5 2>&1"
5295 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5296 (eval $gmp_compile) 2>&5
5298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5299 (exit $ac_status); }; then : ;
5302 gmp_compile="$cc $cflags $cppflags -Wa,-oldas -c conftest.c >&5 2>&1"
5303 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5304 (eval $gmp_compile) 2>&5
5306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5307 (exit $ac_status); }; then
5308 # but with -Wa,-oldas it works
5313 echo "$as_me:$LINENO: result: $result" >&5
5314 echo "${ECHO_T}$result" >&6
5315 if test "$result" = yes; then
5316 cflags="$cflags $flag"
5325 echo "$as_me:$LINENO: checking compiler $cc $cflags $cppflags $flag" >&5
5326 echo $ECHO_N "checking compiler $cc $cflags $cppflags $flag... $ECHO_C" >&6
5327 gmp_prog_cc_works=yes
5329 # first see a simple "main()" works, then go on to other checks
5330 if test "$gmp_prog_cc_works" = yes; then
5331 # remove anything that might look like compiler output to our "||" expression
5332 rm -f conftest* a.out b.out a.exe a_out.exe
5333 cat >conftest.c <<EOF
5335 int main () { return 0; }
5337 echo "Test compile: " >&5
5338 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
5339 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5340 (eval $gmp_compile) 2>&5
5342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5343 (exit $ac_status); }; then
5345 if test "$cross_compiling" = no; then
5346 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5351 (exit $ac_status); }; }; then :;
5359 if test "$cc_works_part" != yes; then
5360 echo "failed program was:" >&5
5363 rm -f conftest* a.out b.out a.exe a_out.exe
5364 case $cc_works_part in
5369 gmp_prog_cc_works="no"
5372 gmp_prog_cc_works="no, program does not run"
5380 if test "$gmp_prog_cc_works" = yes; then
5381 # remove anything that might look like compiler output to our "||" expression
5382 rm -f conftest* a.out b.out a.exe a_out.exe
5383 cat >conftest.c <<EOF
5384 /* The following provokes an internal error from gcc 2.95.2 -mpowerpc64
5385 (without -maix64), hence detecting an unusable compiler */
5386 void *g() { return (void *) 0; }
5387 void *f() { return g(); }
5389 int main () { return 0; }
5391 echo "Test compile: function pointer return" >&5
5392 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
5393 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5394 (eval $gmp_compile) 2>&5
5396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5397 (exit $ac_status); }; then
5399 if test "$cross_compiling" = no; then
5400 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5401 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405 (exit $ac_status); }; }; then :;
5413 if test "$cc_works_part" != yes; then
5414 echo "failed program was:" >&5
5417 rm -f conftest* a.out b.out a.exe a_out.exe
5418 case $cc_works_part in
5423 gmp_prog_cc_works="no, function pointer return"
5426 gmp_prog_cc_works="no, function pointer return, program does not run"
5434 if test "$gmp_prog_cc_works" = yes; then
5435 # remove anything that might look like compiler output to our "||" expression
5436 rm -f conftest* a.out b.out a.exe a_out.exe
5437 cat >conftest.c <<EOF
5438 /* The following provokes an invalid instruction syntax from i386 gcc
5439 -march=pentiumpro on Solaris 2.8. The native sun assembler
5440 requires a non-standard syntax for cmov which gcc (as of 2.95.2 at
5441 least) doesn't know. */
5443 int cmov () { return (n >= 0 ? n : 0); }
5445 int main () { return 0; }
5447 echo "Test compile: cmov instruction" >&5
5448 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
5449 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5450 (eval $gmp_compile) 2>&5
5452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5453 (exit $ac_status); }; then
5455 if test "$cross_compiling" = no; then
5456 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5457 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461 (exit $ac_status); }; }; then :;
5469 if test "$cc_works_part" != yes; then
5470 echo "failed program was:" >&5
5473 rm -f conftest* a.out b.out a.exe a_out.exe
5474 case $cc_works_part in
5479 gmp_prog_cc_works="no, cmov instruction"
5482 gmp_prog_cc_works="no, cmov instruction, program does not run"
5490 if test "$gmp_prog_cc_works" = yes; then
5491 # remove anything that might look like compiler output to our "||" expression
5492 rm -f conftest* a.out b.out a.exe a_out.exe
5493 cat >conftest.c <<EOF
5494 /* The following provokes a linker invocation problem with gcc 3.0.3
5495 on AIX 4.3 under "-maix64 -mpowerpc64 -mcpu=630". The -mcpu=630
5496 option causes gcc to incorrectly select the 32-bit libgcc.a, not
5497 the 64-bit one, and consequently it misses out on the __fixunsdfdi
5498 helper (double -> uint64 conversion). */
5500 unsigned long gcc303 () { return (unsigned long) d; }
5502 int main () { return 0; }
5504 echo "Test compile: double -> ulong conversion" >&5
5505 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
5506 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5507 (eval $gmp_compile) 2>&5
5509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5510 (exit $ac_status); }; then
5512 if test "$cross_compiling" = no; then
5513 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5518 (exit $ac_status); }; }; then :;
5526 if test "$cc_works_part" != yes; then
5527 echo "failed program was:" >&5
5530 rm -f conftest* a.out b.out a.exe a_out.exe
5531 case $cc_works_part in
5536 gmp_prog_cc_works="no, double -> ulong conversion"
5539 gmp_prog_cc_works="no, double -> ulong conversion, program does not run"
5547 if test "$gmp_prog_cc_works" = yes; then
5548 # remove anything that might look like compiler output to our "||" expression
5549 rm -f conftest* a.out b.out a.exe a_out.exe
5550 cat >conftest.c <<EOF
5551 /* The following provokes an error from hppa gcc 2.95 under -mpa-risc-2-0 if
5552 the assembler doesn't know hppa 2.0 instructions. fneg is a 2.0
5553 instruction, and a negation like this comes out using it. */
5555 unsigned long fneg () { return -fneg_data; }
5557 int main () { return 0; }
5559 echo "Test compile: double negation" >&5
5560 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
5561 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5562 (eval $gmp_compile) 2>&5
5564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5565 (exit $ac_status); }; then
5567 if test "$cross_compiling" = no; then
5568 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573 (exit $ac_status); }; }; then :;
5581 if test "$cc_works_part" != yes; then
5582 echo "failed program was:" >&5
5585 rm -f conftest* a.out b.out a.exe a_out.exe
5586 case $cc_works_part in
5591 gmp_prog_cc_works="no, double negation"
5594 gmp_prog_cc_works="no, double negation, program does not run"
5602 if test "$gmp_prog_cc_works" = yes; then
5603 # remove anything that might look like compiler output to our "||" expression
5604 rm -f conftest* a.out b.out a.exe a_out.exe
5605 cat >conftest.c <<EOF
5606 /* The following makes gcc 3.3 -march=pentium4 generate an SSE2 xmm insn
5607 (cvtsd2ss) which will provoke an error if the assembler doesn't recognise
5608 those instructions. Not sure how much of the gmp code will come out
5609 wanting sse2, but it's easiest to reject an option we know is bad. */
5611 float ftod () { return (float) ftod_data; }
5613 int main () { return 0; }
5615 echo "Test compile: double -> float conversion" >&5
5616 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
5617 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5618 (eval $gmp_compile) 2>&5
5620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5621 (exit $ac_status); }; then
5623 if test "$cross_compiling" = no; then
5624 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5625 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5629 (exit $ac_status); }; }; then :;
5637 if test "$cc_works_part" != yes; then
5638 echo "failed program was:" >&5
5641 rm -f conftest* a.out b.out a.exe a_out.exe
5642 case $cc_works_part in
5647 gmp_prog_cc_works="no, double -> float conversion"
5650 gmp_prog_cc_works="no, double -> float conversion, program does not run"
5658 if test "$gmp_prog_cc_works" = yes; then
5659 # remove anything that might look like compiler output to our "||" expression
5660 rm -f conftest* a.out b.out a.exe a_out.exe
5661 cat >conftest.c <<EOF
5662 /* The following provokes an internal compiler error from gcc version
5663 "2.9-gnupro-99r1" under "-O2 -mcpu=ev6", apparently relating to char
5664 values being spilled into floating point registers. The problem doesn't
5665 show up all the time, but has occurred enough in GMP for us to reject
5666 this compiler+flags. */
5671 long d0, d1, d2, d3, d4, d5, d6;
5674 struct try_t param[6];
5679 memcpy (p, ¶m[ 2 ], sizeof (*p));
5680 memcpy (p, ¶m[ 2 ], sizeof (*p));
5682 memcpy (p, ¶m[ 1 ], sizeof (*p));
5685 memcpy (p, ¶m[ 3 ], sizeof (*p));
5688 memcpy (p, ¶m[ 4 ], sizeof (*p));
5689 memcpy (p, ¶m[ 4 ], sizeof (*p));
5691 memcpy (p, ¶m[ 5 ], sizeof (*p));
5692 memcpy (p, ¶m[ 5 ], sizeof (*p));
5693 memcpy (p, ¶m[ 5 ], sizeof (*p));
5697 int main () { return 0; }
5699 echo "Test compile: gnupro alpha ev6 char spilling" >&5
5700 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
5701 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5702 (eval $gmp_compile) 2>&5
5704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5705 (exit $ac_status); }; then
5707 if test "$cross_compiling" = no; then
5708 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5709 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5713 (exit $ac_status); }; }; then :;
5721 if test "$cc_works_part" != yes; then
5722 echo "failed program was:" >&5
5725 rm -f conftest* a.out b.out a.exe a_out.exe
5726 case $cc_works_part in
5731 gmp_prog_cc_works="no, gnupro alpha ev6 char spilling"
5734 gmp_prog_cc_works="no, gnupro alpha ev6 char spilling, program does not run"
5742 # __builtin_alloca is not available everywhere, check it exists before
5743 # seeing that it works
5744 if test "$gmp_prog_cc_works" = yes; then
5745 # remove anything that might look like compiler output to our "||" expression
5746 rm -f conftest* a.out b.out a.exe a_out.exe
5747 cat >conftest.c <<EOF
5748 int k; int foo () { __builtin_alloca (k); }
5750 echo "Test compile: __builtin_alloca availability" >&5
5751 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
5752 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5753 (eval $gmp_compile) 2>&5
5755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5756 (exit $ac_status); }; then
5758 if test "$cross_compiling" = no; then
5759 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5763 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5764 (exit $ac_status); }; }; then :;
5772 if test "$cc_works_part" != yes; then
5773 echo "failed program was:" >&5
5776 rm -f conftest* a.out b.out a.exe a_out.exe
5777 case $cc_works_part in
5779 if test "$gmp_prog_cc_works" = yes; then
5780 # remove anything that might look like compiler output to our "||" expression
5781 rm -f conftest* a.out b.out a.exe a_out.exe
5782 cat >conftest.c <<EOF
5783 /* The following provokes an internal compiler error from Itanium HP-UX cc
5784 under +O2 or higher. We use this sort of code in mpn/generic/mul_fft.c. */
5789 a = __builtin_alloca (k);
5790 for (i = 0; i <= k; i++)
5791 a[i] = __builtin_alloca (1 << i);
5794 int main () { return 0; }
5796 echo "Test compile: alloca array" >&5
5797 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
5798 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5799 (eval $gmp_compile) 2>&5
5801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5802 (exit $ac_status); }; then
5804 if test "$cross_compiling" = no; then
5805 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5806 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); }; }; then :;
5818 if test "$cc_works_part" != yes; then
5819 echo "failed program was:" >&5
5822 rm -f conftest* a.out b.out a.exe a_out.exe
5823 case $cc_works_part in
5828 gmp_prog_cc_works="no, alloca array"
5831 gmp_prog_cc_works="no, alloca array, program does not run"
5849 if test "$gmp_prog_cc_works" = yes; then
5850 # remove anything that might look like compiler output to our "||" expression
5851 rm -f conftest* a.out b.out a.exe a_out.exe
5852 cat >conftest.c <<EOF
5853 /* The following provokes an internal error from the assembler on
5854 power2-ibm-aix4.3.1.0. gcc -mrios2 compiles to nabs+fcirz, and this
5855 results in "Internal error related to the source program domain".
5857 For reference it seems to be the combination of nabs+fcirz which is bad,
5858 not either alone. This sort of thing occurs in mpz/get_str.c with the
5859 way double chars_per_bit_exactly is applied in MPN_SIZEINBASE. Perhaps
5860 if that code changes to a scaled-integer style then we won't need this
5868 a = (x >= 0 ? x : -x);
5872 int main () { return 0; }
5874 echo "Test compile: abs int -> double conversion" >&5
5875 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
5876 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5877 (eval $gmp_compile) 2>&5
5879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5880 (exit $ac_status); }; then
5882 if test "$cross_compiling" = no; then
5883 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5884 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5888 (exit $ac_status); }; }; then :;
5896 if test "$cc_works_part" != yes; then
5897 echo "failed program was:" >&5
5900 rm -f conftest* a.out b.out a.exe a_out.exe
5901 case $cc_works_part in
5906 gmp_prog_cc_works="no, abs int -> double conversion"
5909 gmp_prog_cc_works="no, abs int -> double conversion, program does not run"
5917 if test "$gmp_prog_cc_works" = yes; then
5918 # remove anything that might look like compiler output to our "||" expression
5919 rm -f conftest* a.out b.out a.exe a_out.exe
5920 cat >conftest.c <<EOF
5921 /* The following provokes a segfault in the compiler on powerpc-apple-darwin.
5922 Extracted from tests/mpn/t-iord_u.c. Causes Apple's gcc 3.3 build 1640 and
5923 1666 to segfault with e.g., -O2 -mpowerpc64. */
5926 typedef unsigned long long t1;typedef t1*t2;
5927 __inline__ t1 e(t2 rp,t2 up,int n,t1 v0)
5928 {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;}
5929 f(){static const struct{t1 n;t1 src[9];t1 want[9];}d[]={{1,{0},{1}},};t1 got[9];int i;
5930 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();}}
5936 int main () { return 0; }
5938 echo "Test compile: long long reliability test 1" >&5
5939 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
5940 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
5941 (eval $gmp_compile) 2>&5
5943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5944 (exit $ac_status); }; then
5946 if test "$cross_compiling" = no; then
5947 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
5948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); }; }; then :;
5960 if test "$cc_works_part" != yes; then
5961 echo "failed program was:" >&5
5964 rm -f conftest* a.out b.out a.exe a_out.exe
5965 case $cc_works_part in
5970 gmp_prog_cc_works="no, long long reliability test 1"
5973 gmp_prog_cc_works="no, long long reliability test 1, program does not run"
5981 if test "$gmp_prog_cc_works" = yes; then
5982 # remove anything that might look like compiler output to our "||" expression
5983 rm -f conftest* a.out b.out a.exe a_out.exe
5984 cat >conftest.c <<EOF
5985 /* The following provokes an internal compiler error on powerpc-apple-darwin.
5986 Extracted from mpz/cfdiv_q_2exp.c. Causes Apple's gcc 3.3 build 1640 and
5987 1666 to get an ICE with -O1 -mpowerpc64. */
5990 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();}
5996 int main () { return 0; }
5998 echo "Test compile: long long reliability test 2" >&5
5999 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
6000 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
6001 (eval $gmp_compile) 2>&5
6003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6004 (exit $ac_status); }; then
6006 if test "$cross_compiling" = no; then
6007 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6012 (exit $ac_status); }; }; then :;
6020 if test "$cc_works_part" != yes; then
6021 echo "failed program was:" >&5
6024 rm -f conftest* a.out b.out a.exe a_out.exe
6025 case $cc_works_part in
6030 gmp_prog_cc_works="no, long long reliability test 2"
6033 gmp_prog_cc_works="no, long long reliability test 2, program does not run"
6041 if test "$gmp_prog_cc_works" = yes; then
6042 # remove anything that might look like compiler output to our "||" expression
6043 rm -f conftest* a.out b.out a.exe a_out.exe
6044 cat >conftest.c <<EOF
6045 /* The following is mis-compiled by HP ia-64 cc version
6046 cc: HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]
6047 under "cc +O3", both in +DD32 and +DD64 modes. The mpn_lshift_com gets
6048 inlined and its return value somehow botched to be 0 instead of 1. This
6049 arises in the real mpn_lshift_com in mul_fft.c. A lower optimization
6050 level, like +O2 seems ok. This code needs to be run to show the problem,
6051 but that's fine, the offending cc is a native-only compiler so we don't
6052 have to worry about cross compiling. */
6055 lshift_com (rp, up, n, cnt)
6061 unsigned long retval, high_limb, low_limb;
6064 tnc = 8 * sizeof (unsigned long) - cnt;
6066 retval = low_limb >> tnc;
6067 high_limb = low_limb << cnt;
6068 for (i = n - 1; i != 0; i--)
6071 *rp++ = ~(high_limb | (low_limb >> tnc));
6072 high_limb = low_limb << cnt;
6079 unsigned long cy, rp[2], up[2];
6082 cy = lshift_com (rp, up, 2L, 1);
6089 echo "Test compile: mpn_lshift_com optimization" >&5
6090 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
6091 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
6092 (eval $gmp_compile) 2>&5
6094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6095 (exit $ac_status); }; then
6097 if test "$cross_compiling" = no; then
6098 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6099 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6103 (exit $ac_status); }; }; then :;
6111 if test "$cc_works_part" != yes; then
6112 echo "failed program was:" >&5
6115 rm -f conftest* a.out b.out a.exe a_out.exe
6116 case $cc_works_part in
6121 gmp_prog_cc_works="no, mpn_lshift_com optimization"
6124 gmp_prog_cc_works="no, mpn_lshift_com optimization, program does not run"
6131 if test "$gmp_prog_cc_works" = yes; then
6132 # remove anything that might look like compiler output to our "||" expression
6133 rm -f conftest* a.out b.out a.exe a_out.exe
6134 cat >conftest.c <<EOF
6135 /* The following is mis-compiled by Intel ia-64 icc version 1.8 under
6136 "icc -O3", After several calls, the function writes parial garbage to
6137 the result vector. Perhaps relates to the chk.a.nc insn. This code needs
6138 to be run to show the problem, but that's fine, the offending cc is a
6139 native-only compiler so we don't have to worry about cross compiling. */
6143 lshift_com (rp, up, n, cnt)
6149 unsigned long high_limb, low_limb;
6154 tnc = 8 * sizeof (unsigned long) - cnt;
6156 high_limb = low_limb << cnt;
6157 for (i = n - 1; i != 0; i--)
6160 *--rp = ~(high_limb | (low_limb >> tnc));
6161 high_limb = low_limb << cnt;
6168 unsigned long *r, *r2;
6169 unsigned long a[88 + 1];
6171 for (i = 0; i < 88 + 1; i++)
6173 r = malloc (10000 * sizeof (unsigned long));
6175 for (i = 0; i < 528; i += 22)
6178 i / (8 * sizeof (unsigned long)) + 1,
6179 i % (8 * sizeof (unsigned long)));
6182 if (r[2048] != 0 || r[2049] != 0 || r[2050] != 0 || r[2051] != 0 ||
6183 r[2052] != 0 || r[2053] != 0 || r[2054] != 0)
6189 echo "Test compile: mpn_lshift_com optimization 2" >&5
6190 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5"
6191 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
6192 (eval $gmp_compile) 2>&5
6194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195 (exit $ac_status); }; then
6197 if test "$cross_compiling" = no; then
6198 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
6199 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); }; }; then :;
6211 if test "$cc_works_part" != yes; then
6212 echo "failed program was:" >&5
6215 rm -f conftest* a.out b.out a.exe a_out.exe
6216 case $cc_works_part in
6221 gmp_prog_cc_works="no, mpn_lshift_com optimization 2"
6224 gmp_prog_cc_works="no, mpn_lshift_com optimization 2, program does not run"
6232 # A certain _GLOBAL_OFFSET_TABLE_ problem in past versions of gas, tickled
6233 # by recent versions of gcc.
6235 if test "$gmp_prog_cc_works" = yes; then
6237 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-*)
6238 # this problem only arises in PIC code, so don't need to test when
6239 # --disable-shared. We don't necessarily have $enable_shared set to
6240 # yes at this point, it will still be unset for the default (which is
6241 # yes); hence the use of "!= no".
6242 if test "$enable_shared" != no; then
6243 echo "Testing gcc GOT with eax emitted" >&5
6244 cat >conftest.c <<\EOF
6246 int bar () { return foo; }
6249 gmp_compile="$cc $cflags $cppflags $flag -fPIC -S conftest.c >&5 2>&1"
6250 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
6251 (eval $gmp_compile) 2>&5
6253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6254 (exit $ac_status); }; then
6255 if grep "addl.*_GLOBAL_OFFSET_TABLE_.*eax" conftest.s >/dev/null; then
6260 echo "Result: $tmp_got_emitted" >&5
6261 if test "$tmp_got_emitted" = yes; then
6262 echo "Testing gas GOT with eax good" >&5
6263 cat >conftest.awk <<\EOF
6292 for (f = 2; f <= NF; f++)
6294 for (i = 0; i < 20; i++)
6299 for (i = 0; i < 21; i++)
6300 if (got[i] != want[i])
6316 cat >conftest.s <<\EOF
6318 .byte 1, 35, 69, 103, 137, 171, 205, 239
6319 addl $_GLOBAL_OFFSET_TABLE_, %eax
6320 .byte 254, 220, 186, 152, 118, 84, 50, 16
6323 gmp_compile="$cc $cflags $cppflags $flag -fPIC -o conftest.o -c conftest.s >&5 2>&1"
6324 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
6325 (eval $gmp_compile) 2>&5
6327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6328 (exit $ac_status); }; then
6329 tmp_got_good=`od -b conftest.o | $AWK -f conftest.awk`
6332 echo "Result: $tmp_got_good" >&5
6333 if test "$tmp_got_good" = no; then
6334 gmp_prog_cc_works="no, bad gas GOT with eax"
6348 echo "$as_me:$LINENO: result: $gmp_prog_cc_works" >&5
6349 echo "${ECHO_T}$gmp_prog_cc_works" >&6
6350 case $gmp_prog_cc_works in
6352 cflags="$cflags $flag"
6367 CPPFLAGS="$cppflags"
6370 # Could easily have this in config.h too, if desired.
6371 ABI_nodots=`echo $ABI | sed 's/\./_/'`
6373 echo "define_not_for_expansion(\`HAVE_ABI_$ABI_nodots')" >> $gmp_tmpconfigm4p
6377 # GMP_LDFLAGS substitution, selected according to ABI.
6378 # These are needed on libgmp.la and libmp.la, but currently not on
6379 # convenience libraries like tune/libspeed.la or mpz/libmpz.la.
6381 eval GMP_LDFLAGS=\"\$${ccbase}${abi1}_ldflags\"
6382 test -n "$GMP_LDFLAGS" || eval GMP_LDFLAGS=\"\$${ccbase}${abi1}_ldflags\"
6387 # extra_functions, selected according to ABI
6388 eval tmp=\"\$extra_functions$abi1\"
6389 test -n "$tmp" || eval tmp=\"\$extra_functions$abi2\"
6390 extra_functions="$tmp"
6393 # Cycle counter, selected according to ABI.
6395 eval tmp=\"\$SPEED_CYCLECOUNTER_OBJ$abi1\"
6396 test -n "$tmp" || eval tmp=\"\$SPEED_CYCLECOUNTER_OBJ$abi2\"
6397 SPEED_CYCLECOUNTER_OBJ="$tmp"
6398 eval tmp=\"\$cyclecounter_size$abi1\"
6399 test -n "$tmp" || eval tmp=\"\$cyclecounter_size$abi2\"
6400 cyclecounter_size="$tmp"
6402 if test -n "$SPEED_CYCLECOUNTER_OBJ"; then
6404 cat >>confdefs.h <<_ACEOF
6405 #define HAVE_SPEED_CYCLECOUNTER $cyclecounter_size
6412 # Calling conventions checking, selected according to ABI.
6414 eval tmp=\"\$CALLING_CONVENTIONS_OBJS$abi1\"
6415 test -n "$tmp" || eval tmp=\"\$CALLING_CONVENTIONS_OBJS$abi2\"
6416 CALLING_CONVENTIONS_OBJS="$tmp"
6418 if test -n "$CALLING_CONVENTIONS_OBJS"; then
6420 cat >>confdefs.h <<\_ACEOF
6421 #define HAVE_CALLING_CONVENTIONS 1
6430 # If the user gave an MPN_PATH, use that verbatim, otherwise choose
6431 # according to the ABI and add "generic".
6433 if test -n "$MPN_PATH"; then
6436 eval tmp=\"\$path$abi1\"
6437 test -n "$tmp" || eval tmp=\"\$path$abi2\"
6442 # Long long limb setup for gmp.h.
6443 case $limb_chosen in
6444 longlong) DEFN_LONG_LONG_LIMB="#define _LONG_LONG_LIMB 1" ;;
6445 *) DEFN_LONG_LONG_LIMB="/* #undef _LONG_LONG_LIMB */" ;;
6450 # The C compiler and preprocessor, put into ANSI mode if possible.
6452 ac_cpp='$CPP $CPPFLAGS'
6453 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6454 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6455 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6456 if test -n "$ac_tool_prefix"; then
6457 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
6458 set dummy ${ac_tool_prefix}gcc; ac_word=$2
6459 echo "$as_me:$LINENO: checking for $ac_word" >&5
6460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6461 if test "${ac_cv_prog_CC+set}" = set; then
6462 echo $ECHO_N "(cached) $ECHO_C" >&6
6464 if test -n "$CC"; then
6465 ac_cv_prog_CC="$CC" # Let the user override the test.
6467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6471 test -z "$as_dir" && as_dir=.
6472 for ac_exec_ext in '' $ac_executable_extensions; do
6473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6474 ac_cv_prog_CC="${ac_tool_prefix}gcc"
6475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6484 if test -n "$CC"; then
6485 echo "$as_me:$LINENO: result: $CC" >&5
6486 echo "${ECHO_T}$CC" >&6
6488 echo "$as_me:$LINENO: result: no" >&5
6489 echo "${ECHO_T}no" >&6
6493 if test -z "$ac_cv_prog_CC"; then
6495 # Extract the first word of "gcc", so it can be a program name with args.
6496 set dummy gcc; ac_word=$2
6497 echo "$as_me:$LINENO: checking for $ac_word" >&5
6498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6499 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
6500 echo $ECHO_N "(cached) $ECHO_C" >&6
6502 if test -n "$ac_ct_CC"; then
6503 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6509 test -z "$as_dir" && as_dir=.
6510 for ac_exec_ext in '' $ac_executable_extensions; do
6511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6512 ac_cv_prog_ac_ct_CC="gcc"
6513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6521 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6522 if test -n "$ac_ct_CC"; then
6523 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
6524 echo "${ECHO_T}$ac_ct_CC" >&6
6526 echo "$as_me:$LINENO: result: no" >&5
6527 echo "${ECHO_T}no" >&6
6535 if test -z "$CC"; then
6536 if test -n "$ac_tool_prefix"; then
6537 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
6538 set dummy ${ac_tool_prefix}cc; ac_word=$2
6539 echo "$as_me:$LINENO: checking for $ac_word" >&5
6540 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6541 if test "${ac_cv_prog_CC+set}" = set; then
6542 echo $ECHO_N "(cached) $ECHO_C" >&6
6544 if test -n "$CC"; then
6545 ac_cv_prog_CC="$CC" # Let the user override the test.
6547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6551 test -z "$as_dir" && as_dir=.
6552 for ac_exec_ext in '' $ac_executable_extensions; do
6553 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6554 ac_cv_prog_CC="${ac_tool_prefix}cc"
6555 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6564 if test -n "$CC"; then
6565 echo "$as_me:$LINENO: result: $CC" >&5
6566 echo "${ECHO_T}$CC" >&6
6568 echo "$as_me:$LINENO: result: no" >&5
6569 echo "${ECHO_T}no" >&6
6573 if test -z "$ac_cv_prog_CC"; then
6575 # Extract the first word of "cc", so it can be a program name with args.
6576 set dummy cc; ac_word=$2
6577 echo "$as_me:$LINENO: checking for $ac_word" >&5
6578 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6579 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
6580 echo $ECHO_N "(cached) $ECHO_C" >&6
6582 if test -n "$ac_ct_CC"; then
6583 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6589 test -z "$as_dir" && as_dir=.
6590 for ac_exec_ext in '' $ac_executable_extensions; do
6591 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6592 ac_cv_prog_ac_ct_CC="cc"
6593 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6601 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6602 if test -n "$ac_ct_CC"; then
6603 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
6604 echo "${ECHO_T}$ac_ct_CC" >&6
6606 echo "$as_me:$LINENO: result: no" >&5
6607 echo "${ECHO_T}no" >&6
6616 if test -z "$CC"; then
6617 # Extract the first word of "cc", so it can be a program name with args.
6618 set dummy cc; ac_word=$2
6619 echo "$as_me:$LINENO: checking for $ac_word" >&5
6620 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6621 if test "${ac_cv_prog_CC+set}" = set; then
6622 echo $ECHO_N "(cached) $ECHO_C" >&6
6624 if test -n "$CC"; then
6625 ac_cv_prog_CC="$CC" # Let the user override the test.
6628 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6632 test -z "$as_dir" && as_dir=.
6633 for ac_exec_ext in '' $ac_executable_extensions; do
6634 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6635 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
6636 ac_prog_rejected=yes
6640 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6646 if test $ac_prog_rejected = yes; then
6647 # We found a bogon in the path, so make sure we never use it.
6648 set dummy $ac_cv_prog_CC
6650 if test $# != 0; then
6651 # We chose a different compiler from the bogus one.
6652 # However, it has the same basename, so the bogon will be chosen
6653 # first if we set CC to just the basename; use the full file name.
6655 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
6661 if test -n "$CC"; then
6662 echo "$as_me:$LINENO: result: $CC" >&5
6663 echo "${ECHO_T}$CC" >&6
6665 echo "$as_me:$LINENO: result: no" >&5
6666 echo "${ECHO_T}no" >&6
6670 if test -z "$CC"; then
6671 if test -n "$ac_tool_prefix"; then
6674 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6675 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6676 echo "$as_me:$LINENO: checking for $ac_word" >&5
6677 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6678 if test "${ac_cv_prog_CC+set}" = set; then
6679 echo $ECHO_N "(cached) $ECHO_C" >&6
6681 if test -n "$CC"; then
6682 ac_cv_prog_CC="$CC" # Let the user override the test.
6684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6688 test -z "$as_dir" && as_dir=.
6689 for ac_exec_ext in '' $ac_executable_extensions; do
6690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6691 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
6692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6701 if test -n "$CC"; then
6702 echo "$as_me:$LINENO: result: $CC" >&5
6703 echo "${ECHO_T}$CC" >&6
6705 echo "$as_me:$LINENO: result: no" >&5
6706 echo "${ECHO_T}no" >&6
6709 test -n "$CC" && break
6712 if test -z "$CC"; then
6716 # Extract the first word of "$ac_prog", so it can be a program name with args.
6717 set dummy $ac_prog; ac_word=$2
6718 echo "$as_me:$LINENO: checking for $ac_word" >&5
6719 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
6720 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
6721 echo $ECHO_N "(cached) $ECHO_C" >&6
6723 if test -n "$ac_ct_CC"; then
6724 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
6726 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6730 test -z "$as_dir" && as_dir=.
6731 for ac_exec_ext in '' $ac_executable_extensions; do
6732 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6733 ac_cv_prog_ac_ct_CC="$ac_prog"
6734 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6742 ac_ct_CC=$ac_cv_prog_ac_ct_CC
6743 if test -n "$ac_ct_CC"; then
6744 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
6745 echo "${ECHO_T}$ac_ct_CC" >&6
6747 echo "$as_me:$LINENO: result: no" >&5
6748 echo "${ECHO_T}no" >&6
6751 test -n "$ac_ct_CC" && break
6760 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
6761 See \`config.log' for more details." >&5
6762 echo "$as_me: error: no acceptable C compiler found in \$PATH
6763 See \`config.log' for more details." >&2;}
6764 { (exit 1); exit 1; }; }
6766 # Provide some information about the compiler.
6767 echo "$as_me:$LINENO:" \
6768 "checking for C compiler version" >&5
6769 ac_compiler=`set X $ac_compile; echo $2`
6770 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
6771 (eval $ac_compiler --version </dev/null >&5) 2>&5
6773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774 (exit $ac_status); }
6775 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
6776 (eval $ac_compiler -v </dev/null >&5) 2>&5
6778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6779 (exit $ac_status); }
6780 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
6781 (eval $ac_compiler -V </dev/null >&5) 2>&5
6783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784 (exit $ac_status); }
6786 cat >conftest.$ac_ext <<_ACEOF
6789 cat confdefs.h >>conftest.$ac_ext
6790 cat >>conftest.$ac_ext <<_ACEOF
6791 /* end confdefs.h. */
6801 ac_clean_files_save=$ac_clean_files
6802 ac_clean_files="$ac_clean_files a.out a.exe b.out"
6803 # Try to create an executable without -o first, disregard a.out.
6804 # It will help us diagnose broken compilers, and finding out an intuition
6806 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
6807 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
6808 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
6809 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
6810 (eval $ac_link_default) 2>&5
6812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6813 (exit $ac_status); }; then
6814 # Find the output, starting from the most likely. This scheme is
6815 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
6818 # Be careful to initialize this variable, since it used to be cached.
6819 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
6821 # b.out is created by i960 compilers.
6822 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
6824 test -f "$ac_file" || continue
6826 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
6829 # This is the source file.
6832 # We found the default executable, but exeext='' is most
6836 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
6837 # FIXME: I believe we export ac_cv_exeext for Libtool,
6838 # but it would be cool to find out if it's true. Does anybody
6839 # maintain Libtool? --akim.
6847 echo "$as_me: failed program was:" >&5
6848 sed 's/^/| /' conftest.$ac_ext >&5
6850 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
6851 See \`config.log' for more details." >&5
6852 echo "$as_me: error: C compiler cannot create executables
6853 See \`config.log' for more details." >&2;}
6854 { (exit 77); exit 77; }; }
6857 ac_exeext=$ac_cv_exeext
6858 echo "$as_me:$LINENO: result: $ac_file" >&5
6859 echo "${ECHO_T}$ac_file" >&6
6861 # Check the compiler produces executables we can run. If not, either
6862 # the compiler is broken, or we cross compile.
6863 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
6864 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
6865 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
6866 # If not cross compiling, check that we can run a simple program.
6867 if test "$cross_compiling" != yes; then
6868 if { ac_try='./$ac_file'
6869 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
6872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6873 (exit $ac_status); }; }; then
6876 if test "$cross_compiling" = maybe; then
6879 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
6880 If you meant to cross compile, use \`--host'.
6881 See \`config.log' for more details." >&5
6882 echo "$as_me: error: cannot run C compiled programs.
6883 If you meant to cross compile, use \`--host'.
6884 See \`config.log' for more details." >&2;}
6885 { (exit 1); exit 1; }; }
6889 echo "$as_me:$LINENO: result: yes" >&5
6890 echo "${ECHO_T}yes" >&6
6892 rm -f a.out a.exe conftest$ac_cv_exeext b.out
6893 ac_clean_files=$ac_clean_files_save
6894 # Check the compiler produces executables we can run. If not, either
6895 # the compiler is broken, or we cross compile.
6896 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
6897 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
6898 echo "$as_me:$LINENO: result: $cross_compiling" >&5
6899 echo "${ECHO_T}$cross_compiling" >&6
6901 echo "$as_me:$LINENO: checking for suffix of executables" >&5
6902 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
6903 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
6904 (eval $ac_link) 2>&5
6906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6907 (exit $ac_status); }; then
6908 # If both `conftest.exe' and `conftest' are `present' (well, observable)
6909 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
6910 # work properly (i.e., refer to `conftest.exe'), while it won't with
6912 for ac_file in conftest.exe conftest conftest.*; do
6913 test -f "$ac_file" || continue
6915 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
6916 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
6923 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
6924 See \`config.log' for more details." >&5
6925 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
6926 See \`config.log' for more details." >&2;}
6927 { (exit 1); exit 1; }; }
6930 rm -f conftest$ac_cv_exeext
6931 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
6932 echo "${ECHO_T}$ac_cv_exeext" >&6
6934 rm -f conftest.$ac_ext
6935 EXEEXT=$ac_cv_exeext
6937 echo "$as_me:$LINENO: checking for suffix of object files" >&5
6938 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
6939 if test "${ac_cv_objext+set}" = set; then
6940 echo $ECHO_N "(cached) $ECHO_C" >&6
6942 cat >conftest.$ac_ext <<_ACEOF
6945 cat confdefs.h >>conftest.$ac_ext
6946 cat >>conftest.$ac_ext <<_ACEOF
6947 /* end confdefs.h. */
6957 rm -f conftest.o conftest.obj
6958 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
6959 (eval $ac_compile) 2>&5
6961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6962 (exit $ac_status); }; then
6963 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
6965 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
6966 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
6971 echo "$as_me: failed program was:" >&5
6972 sed 's/^/| /' conftest.$ac_ext >&5
6974 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
6975 See \`config.log' for more details." >&5
6976 echo "$as_me: error: cannot compute suffix of object files: cannot compile
6977 See \`config.log' for more details." >&2;}
6978 { (exit 1); exit 1; }; }
6981 rm -f conftest.$ac_cv_objext conftest.$ac_ext
6983 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
6984 echo "${ECHO_T}$ac_cv_objext" >&6
6985 OBJEXT=$ac_cv_objext
6987 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
6988 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
6989 if test "${ac_cv_c_compiler_gnu+set}" = set; then
6990 echo $ECHO_N "(cached) $ECHO_C" >&6
6992 cat >conftest.$ac_ext <<_ACEOF
6995 cat confdefs.h >>conftest.$ac_ext
6996 cat >>conftest.$ac_ext <<_ACEOF
6997 /* end confdefs.h. */
7010 rm -f conftest.$ac_objext
7011 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7012 (eval $ac_compile) 2>conftest.er1
7014 grep -v '^ *+' conftest.er1 >conftest.err
7016 cat conftest.err >&5
7017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7018 (exit $ac_status); } &&
7019 { ac_try='test -z "$ac_c_werror_flag"
7020 || test ! -s conftest.err'
7021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7025 (exit $ac_status); }; } &&
7026 { ac_try='test -s conftest.$ac_objext'
7027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7031 (exit $ac_status); }; }; then
7034 echo "$as_me: failed program was:" >&5
7035 sed 's/^/| /' conftest.$ac_ext >&5
7039 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7040 ac_cv_c_compiler_gnu=$ac_compiler_gnu
7043 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
7044 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
7045 GCC=`test $ac_compiler_gnu = yes && echo yes`
7046 ac_test_CFLAGS=${CFLAGS+set}
7047 ac_save_CFLAGS=$CFLAGS
7049 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
7050 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
7051 if test "${ac_cv_prog_cc_g+set}" = set; then
7052 echo $ECHO_N "(cached) $ECHO_C" >&6
7054 cat >conftest.$ac_ext <<_ACEOF
7057 cat confdefs.h >>conftest.$ac_ext
7058 cat >>conftest.$ac_ext <<_ACEOF
7059 /* end confdefs.h. */
7069 rm -f conftest.$ac_objext
7070 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7071 (eval $ac_compile) 2>conftest.er1
7073 grep -v '^ *+' conftest.er1 >conftest.err
7075 cat conftest.err >&5
7076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077 (exit $ac_status); } &&
7078 { ac_try='test -z "$ac_c_werror_flag"
7079 || test ! -s conftest.err'
7080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7084 (exit $ac_status); }; } &&
7085 { ac_try='test -s conftest.$ac_objext'
7086 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7090 (exit $ac_status); }; }; then
7093 echo "$as_me: failed program was:" >&5
7094 sed 's/^/| /' conftest.$ac_ext >&5
7098 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7100 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
7101 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
7102 if test "$ac_test_CFLAGS" = set; then
7103 CFLAGS=$ac_save_CFLAGS
7104 elif test $ac_cv_prog_cc_g = yes; then
7105 if test "$GCC" = yes; then
7111 if test "$GCC" = yes; then
7117 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
7118 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
7119 if test "${ac_cv_prog_cc_stdc+set}" = set; then
7120 echo $ECHO_N "(cached) $ECHO_C" >&6
7122 ac_cv_prog_cc_stdc=no
7124 cat >conftest.$ac_ext <<_ACEOF
7127 cat confdefs.h >>conftest.$ac_ext
7128 cat >>conftest.$ac_ext <<_ACEOF
7129 /* end confdefs.h. */
7132 #include <sys/types.h>
7133 #include <sys/stat.h>
7134 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
7135 struct buf { int x; };
7136 FILE * (*rcsopen) (struct buf *, struct stat *, int);
7137 static char *e (p, i)
7143 static char *f (char * (*g) (char **, int), char **p, ...)
7148 s = g (p, va_arg (v,int));
7153 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
7154 function prototypes and stuff, but not '\xHH' hex character constants.
7155 These don't provoke an error unfortunately, instead are silently treated
7156 as 'x'. The following induces an error, until -std1 is added to get
7157 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
7158 array size at least. It's necessary to write '\x00'==0 to get something
7159 that's true only with -std1. */
7160 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
7162 int test (int i, double x);
7163 struct s1 {int (*f) (int a);};
7164 struct s2 {int (*f) (double a);};
7165 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
7171 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
7176 # Don't try gcc -ansi; that turns off useful extensions and
7177 # breaks some systems' header files.
7178 # AIX -qlanglvl=ansi
7179 # Ultrix and OSF/1 -std1
7180 # HP-UX 10.20 and later -Ae
7181 # HP-UX older versions -Aa -D_HPUX_SOURCE
7182 # SVR4 -Xc -D__EXTENSIONS__
7183 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
7185 CC="$ac_save_CC $ac_arg"
7186 rm -f conftest.$ac_objext
7187 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7188 (eval $ac_compile) 2>conftest.er1
7190 grep -v '^ *+' conftest.er1 >conftest.err
7192 cat conftest.err >&5
7193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7194 (exit $ac_status); } &&
7195 { ac_try='test -z "$ac_c_werror_flag"
7196 || test ! -s conftest.err'
7197 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7201 (exit $ac_status); }; } &&
7202 { ac_try='test -s conftest.$ac_objext'
7203 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7207 (exit $ac_status); }; }; then
7208 ac_cv_prog_cc_stdc=$ac_arg
7211 echo "$as_me: failed program was:" >&5
7212 sed 's/^/| /' conftest.$ac_ext >&5
7215 rm -f conftest.err conftest.$ac_objext
7217 rm -f conftest.$ac_ext conftest.$ac_objext
7222 case "x$ac_cv_prog_cc_stdc" in
7224 echo "$as_me:$LINENO: result: none needed" >&5
7225 echo "${ECHO_T}none needed" >&6 ;;
7227 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
7228 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
7229 CC="$CC $ac_cv_prog_cc_stdc" ;;
7232 # Some people use a C++ compiler to compile C. Since we use `exit',
7233 # in C++ we need to declare it. In case someone uses the same compiler
7234 # for both compiling C and C++ we need to have the C++ compiler decide
7235 # the declaration of exit, since it's the most demanding environment.
7236 cat >conftest.$ac_ext <<_ACEOF
7241 rm -f conftest.$ac_objext
7242 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7243 (eval $ac_compile) 2>conftest.er1
7245 grep -v '^ *+' conftest.er1 >conftest.err
7247 cat conftest.err >&5
7248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7249 (exit $ac_status); } &&
7250 { ac_try='test -z "$ac_c_werror_flag"
7251 || test ! -s conftest.err'
7252 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7256 (exit $ac_status); }; } &&
7257 { ac_try='test -s conftest.$ac_objext'
7258 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7262 (exit $ac_status); }; }; then
7263 for ac_declaration in \
7265 'extern "C" void std::exit (int) throw (); using std::exit;' \
7266 'extern "C" void std::exit (int); using std::exit;' \
7267 'extern "C" void exit (int) throw ();' \
7268 'extern "C" void exit (int);' \
7271 cat >conftest.$ac_ext <<_ACEOF
7274 cat confdefs.h >>conftest.$ac_ext
7275 cat >>conftest.$ac_ext <<_ACEOF
7276 /* end confdefs.h. */
7287 rm -f conftest.$ac_objext
7288 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7289 (eval $ac_compile) 2>conftest.er1
7291 grep -v '^ *+' conftest.er1 >conftest.err
7293 cat conftest.err >&5
7294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7295 (exit $ac_status); } &&
7296 { ac_try='test -z "$ac_c_werror_flag"
7297 || test ! -s conftest.err'
7298 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7302 (exit $ac_status); }; } &&
7303 { ac_try='test -s conftest.$ac_objext'
7304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7308 (exit $ac_status); }; }; then
7311 echo "$as_me: failed program was:" >&5
7312 sed 's/^/| /' conftest.$ac_ext >&5
7316 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7317 cat >conftest.$ac_ext <<_ACEOF
7320 cat confdefs.h >>conftest.$ac_ext
7321 cat >>conftest.$ac_ext <<_ACEOF
7322 /* end confdefs.h. */
7332 rm -f conftest.$ac_objext
7333 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7334 (eval $ac_compile) 2>conftest.er1
7336 grep -v '^ *+' conftest.er1 >conftest.err
7338 cat conftest.err >&5
7339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7340 (exit $ac_status); } &&
7341 { ac_try='test -z "$ac_c_werror_flag"
7342 || test ! -s conftest.err'
7343 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7347 (exit $ac_status); }; } &&
7348 { ac_try='test -s conftest.$ac_objext'
7349 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7353 (exit $ac_status); }; }; then
7356 echo "$as_me: failed program was:" >&5
7357 sed 's/^/| /' conftest.$ac_ext >&5
7360 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7363 if test -n "$ac_declaration"; then
7364 echo '#ifdef __cplusplus' >>confdefs.h
7365 echo $ac_declaration >>confdefs.h
7366 echo '#endif' >>confdefs.h
7370 echo "$as_me: failed program was:" >&5
7371 sed 's/^/| /' conftest.$ac_ext >&5
7374 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7376 ac_cpp='$CPP $CPPFLAGS'
7377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7383 ac_cpp='$CPP $CPPFLAGS'
7384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7387 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
7388 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
7389 # On Suns, sometimes $CPP names a directory.
7390 if test -n "$CPP" && test -d "$CPP"; then
7393 if test -z "$CPP"; then
7394 if test "${ac_cv_prog_CPP+set}" = set; then
7395 echo $ECHO_N "(cached) $ECHO_C" >&6
7397 # Double quotes because CPP needs to be expanded
7398 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7401 for ac_c_preproc_warn_flag in '' yes
7403 # Use a header file that comes with gcc, so configuring glibc
7404 # with a fresh cross-compiler works.
7405 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7406 # <limits.h> exists even on freestanding compilers.
7407 # On the NeXT, cc -E runs the code through the compiler's parser,
7408 # not just through cpp. "Syntax error" is here to catch this case.
7409 cat >conftest.$ac_ext <<_ACEOF
7412 cat confdefs.h >>conftest.$ac_ext
7413 cat >>conftest.$ac_ext <<_ACEOF
7414 /* end confdefs.h. */
7416 # include <limits.h>
7418 # include <assert.h>
7422 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7423 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7425 grep -v '^ *+' conftest.er1 >conftest.err
7427 cat conftest.err >&5
7428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429 (exit $ac_status); } >/dev/null; then
7430 if test -s conftest.err; then
7431 ac_cpp_err=$ac_c_preproc_warn_flag
7432 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7439 if test -z "$ac_cpp_err"; then
7442 echo "$as_me: failed program was:" >&5
7443 sed 's/^/| /' conftest.$ac_ext >&5
7445 # Broken: fails on valid input.
7448 rm -f conftest.err conftest.$ac_ext
7450 # OK, works on sane cases. Now check whether non-existent headers
7451 # can be detected and how.
7452 cat >conftest.$ac_ext <<_ACEOF
7455 cat confdefs.h >>conftest.$ac_ext
7456 cat >>conftest.$ac_ext <<_ACEOF
7457 /* end confdefs.h. */
7458 #include <ac_nonexistent.h>
7460 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7461 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7463 grep -v '^ *+' conftest.er1 >conftest.err
7465 cat conftest.err >&5
7466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7467 (exit $ac_status); } >/dev/null; then
7468 if test -s conftest.err; then
7469 ac_cpp_err=$ac_c_preproc_warn_flag
7470 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7477 if test -z "$ac_cpp_err"; then
7478 # Broken: success on invalid input.
7481 echo "$as_me: failed program was:" >&5
7482 sed 's/^/| /' conftest.$ac_ext >&5
7484 # Passes both tests.
7488 rm -f conftest.err conftest.$ac_ext
7491 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7492 rm -f conftest.err conftest.$ac_ext
7493 if $ac_preproc_ok; then
7505 echo "$as_me:$LINENO: result: $CPP" >&5
7506 echo "${ECHO_T}$CPP" >&6
7508 for ac_c_preproc_warn_flag in '' yes
7510 # Use a header file that comes with gcc, so configuring glibc
7511 # with a fresh cross-compiler works.
7512 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7513 # <limits.h> exists even on freestanding compilers.
7514 # On the NeXT, cc -E runs the code through the compiler's parser,
7515 # not just through cpp. "Syntax error" is here to catch this case.
7516 cat >conftest.$ac_ext <<_ACEOF
7519 cat confdefs.h >>conftest.$ac_ext
7520 cat >>conftest.$ac_ext <<_ACEOF
7521 /* end confdefs.h. */
7523 # include <limits.h>
7525 # include <assert.h>
7529 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7530 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7532 grep -v '^ *+' conftest.er1 >conftest.err
7534 cat conftest.err >&5
7535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7536 (exit $ac_status); } >/dev/null; then
7537 if test -s conftest.err; then
7538 ac_cpp_err=$ac_c_preproc_warn_flag
7539 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7546 if test -z "$ac_cpp_err"; then
7549 echo "$as_me: failed program was:" >&5
7550 sed 's/^/| /' conftest.$ac_ext >&5
7552 # Broken: fails on valid input.
7555 rm -f conftest.err conftest.$ac_ext
7557 # OK, works on sane cases. Now check whether non-existent headers
7558 # can be detected and how.
7559 cat >conftest.$ac_ext <<_ACEOF
7562 cat confdefs.h >>conftest.$ac_ext
7563 cat >>conftest.$ac_ext <<_ACEOF
7564 /* end confdefs.h. */
7565 #include <ac_nonexistent.h>
7567 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
7568 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
7570 grep -v '^ *+' conftest.er1 >conftest.err
7572 cat conftest.err >&5
7573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574 (exit $ac_status); } >/dev/null; then
7575 if test -s conftest.err; then
7576 ac_cpp_err=$ac_c_preproc_warn_flag
7577 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
7584 if test -z "$ac_cpp_err"; then
7585 # Broken: success on invalid input.
7588 echo "$as_me: failed program was:" >&5
7589 sed 's/^/| /' conftest.$ac_ext >&5
7591 # Passes both tests.
7595 rm -f conftest.err conftest.$ac_ext
7598 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7599 rm -f conftest.err conftest.$ac_ext
7600 if $ac_preproc_ok; then
7603 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
7604 See \`config.log' for more details." >&5
7605 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
7606 See \`config.log' for more details." >&2;}
7607 { (exit 1); exit 1; }; }
7611 ac_cpp='$CPP $CPPFLAGS'
7612 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7613 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7614 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7618 case $ac_cv_prog_cc_stdc in
7622 cat >conftest.$ac_ext <<_ACEOF
7625 cat confdefs.h >>conftest.$ac_ext
7626 cat >>conftest.$ac_ext <<_ACEOF
7627 /* end confdefs.h. */
7628 #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
7629 #define GMP_NAIL_BITS $GMP_NAIL_BITS
7630 #define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */
7631 #define GMP_LIMB_BITS 123
7632 $DEFN_LONG_LONG_LIMB
7633 #include "$srcdir/gmp-h.in"
7635 #if ! __GMP_HAVE_PROTOTYPES
7647 rm -f conftest.$ac_objext
7648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
7649 (eval $ac_compile) 2>conftest.er1
7651 grep -v '^ *+' conftest.er1 >conftest.err
7653 cat conftest.err >&5
7654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7655 (exit $ac_status); } &&
7656 { ac_try='test -z "$ac_c_werror_flag"
7657 || test ! -s conftest.err'
7658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7662 (exit $ac_status); }; } &&
7663 { ac_try='test -s conftest.$ac_objext'
7664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
7667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7668 (exit $ac_status); }; }; then
7671 echo "$as_me: failed program was:" >&5
7672 sed 's/^/| /' conftest.$ac_ext >&5
7674 { echo "$as_me:$LINENO: WARNING: gmp.h doesnt recognise compiler as ANSI, prototypes and \"const\" will be unavailable" >&5
7675 echo "$as_me: WARNING: gmp.h doesnt recognise compiler as ANSI, prototypes and \"const\" will be unavailable" >&2;}
7677 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
7683 # The C compiler on the build system, and associated tests.
7685 if test -n "$CC_FOR_BUILD"; then
7686 echo "$as_me:$LINENO: checking build system compiler $CC_FOR_BUILD" >&5
7687 echo $ECHO_N "checking build system compiler $CC_FOR_BUILD... $ECHO_C" >&6
7688 # remove anything that might look like compiler output to our "||" expression
7689 rm -f conftest* a.out b.out a.exe a_out.exe
7690 cat >conftest.c <<EOF
7697 gmp_compile="$CC_FOR_BUILD conftest.c"
7698 cc_for_build_works=no
7699 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
7700 (eval $gmp_compile) 2>&5
7702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7703 (exit $ac_status); }; then
7704 if (./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest) >&5 2>&1; then
7705 cc_for_build_works=yes
7708 rm -f conftest* a.out b.out a.exe a_out.exe
7709 echo "$as_me:$LINENO: result: $cc_for_build_works" >&5
7710 echo "${ECHO_T}$cc_for_build_works" >&6
7711 if test "$cc_for_build_works" = yes; then
7714 { { echo "$as_me:$LINENO: error: Specified CC_FOR_BUILD doesn't seem to work" >&5
7715 echo "$as_me: error: Specified CC_FOR_BUILD doesn't seem to work" >&2;}
7716 { (exit 1); exit 1; }; }
7719 elif test -n "$HOST_CC"; then
7720 echo "$as_me:$LINENO: checking build system compiler $HOST_CC" >&5
7721 echo $ECHO_N "checking build system compiler $HOST_CC... $ECHO_C" >&6
7722 # remove anything that might look like compiler output to our "||" expression
7723 rm -f conftest* a.out b.out a.exe a_out.exe
7724 cat >conftest.c <<EOF
7731 gmp_compile="$HOST_CC conftest.c"
7732 cc_for_build_works=no
7733 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
7734 (eval $gmp_compile) 2>&5
7736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7737 (exit $ac_status); }; then
7738 if (./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest) >&5 2>&1; then
7739 cc_for_build_works=yes
7742 rm -f conftest* a.out b.out a.exe a_out.exe
7743 echo "$as_me:$LINENO: result: $cc_for_build_works" >&5
7744 echo "${ECHO_T}$cc_for_build_works" >&6
7745 if test "$cc_for_build_works" = yes; then
7746 CC_FOR_BUILD=$HOST_CC
7748 { { echo "$as_me:$LINENO: error: Specified HOST_CC doesn't seem to work" >&5
7749 echo "$as_me: error: Specified HOST_CC doesn't seem to work" >&2;}
7750 { (exit 1); exit 1; }; }
7754 for i in "$CC" "$CC $CFLAGS $CPPFLAGS" cc gcc c89 c99; do
7755 echo "$as_me:$LINENO: checking build system compiler $i" >&5
7756 echo $ECHO_N "checking build system compiler $i... $ECHO_C" >&6
7757 # remove anything that might look like compiler output to our "||" expression
7758 rm -f conftest* a.out b.out a.exe a_out.exe
7759 cat >conftest.c <<EOF
7766 gmp_compile="$i conftest.c"
7767 cc_for_build_works=no
7768 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
7769 (eval $gmp_compile) 2>&5
7771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7772 (exit $ac_status); }; then
7773 if (./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest) >&5 2>&1; then
7774 cc_for_build_works=yes
7777 rm -f conftest* a.out b.out a.exe a_out.exe
7778 echo "$as_me:$LINENO: result: $cc_for_build_works" >&5
7779 echo "${ECHO_T}$cc_for_build_works" >&6
7780 if test "$cc_for_build_works" = yes; then
7788 if test -z "$CC_FOR_BUILD"; then
7789 { { echo "$as_me:$LINENO: error: Cannot find a build system compiler" >&5
7790 echo "$as_me: error: Cannot find a build system compiler" >&2;}
7791 { (exit 1); exit 1; }; }
7799 echo "$as_me:$LINENO: checking for build system preprocessor" >&5
7800 echo $ECHO_N "checking for build system preprocessor... $ECHO_C" >&6
7801 if test -z "$CPP_FOR_BUILD"; then
7802 if test "${gmp_cv_prog_cpp_for_build+set}" = set; then
7803 echo $ECHO_N "(cached) $ECHO_C" >&6
7805 cat >conftest.c <<EOF
7808 for i in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"; do
7809 gmp_compile="$i conftest.c"
7810 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
7811 (eval $gmp_compile) 2>&5
7813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7814 (exit $ac_status); } >&5 2>&1; then
7815 gmp_cv_prog_cpp_for_build=$i
7819 rm -f conftest* a.out b.out a.exe a_out.exe
7820 if test -z "$gmp_cv_prog_cpp_for_build"; then
7821 { { echo "$as_me:$LINENO: error: Cannot find build system C preprocessor." >&5
7822 echo "$as_me: error: Cannot find build system C preprocessor." >&2;}
7823 { (exit 1); exit 1; }; }
7828 CPP_FOR_BUILD=$gmp_cv_prog_cpp_for_build
7830 echo "$as_me:$LINENO: result: $CPP_FOR_BUILD" >&5
7831 echo "${ECHO_T}$CPP_FOR_BUILD" >&6
7837 echo "$as_me:$LINENO: checking for build system executable suffix" >&5
7838 echo $ECHO_N "checking for build system executable suffix... $ECHO_C" >&6
7839 if test "${gmp_cv_prog_exeext_for_build+set}" = set; then
7840 echo $ECHO_N "(cached) $ECHO_C" >&6
7842 cat >conftest.c <<EOF
7849 for i in .exe ,ff8 ""; do
7850 gmp_compile="$CC_FOR_BUILD conftest.c -o conftest$i"
7851 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
7852 (eval $gmp_compile) 2>&5
7854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7855 (exit $ac_status); }; then
7856 if (./conftest) 2>&5; then
7857 gmp_cv_prog_exeext_for_build=$i
7863 if test "${gmp_cv_prog_exeext_for_build+set}" != set; then
7864 { { echo "$as_me:$LINENO: error: Cannot determine executable suffix" >&5
7865 echo "$as_me: error: Cannot determine executable suffix" >&2;}
7866 { (exit 1); exit 1; }; }
7870 echo "$as_me:$LINENO: result: $gmp_cv_prog_exeext_for_build" >&5
7871 echo "${ECHO_T}$gmp_cv_prog_exeext_for_build" >&6
7872 EXEEXT_FOR_BUILD=$gmp_cv_prog_exeext_for_build
7876 echo "$as_me:$LINENO: checking whether build system compiler is ANSI" >&5
7877 echo $ECHO_N "checking whether build system compiler is ANSI... $ECHO_C" >&6
7878 if test "${gmp_cv_c_for_build_ansi+set}" = set; then
7879 echo $ECHO_N "(cached) $ECHO_C" >&6
7881 cat >conftest.c <<EOF
7883 main (int argc, char *argv)
7888 gmp_compile="$CC_FOR_BUILD conftest.c"
7889 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
7890 (eval $gmp_compile) 2>&5
7892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7893 (exit $ac_status); }; then
7894 gmp_cv_c_for_build_ansi=yes
7896 gmp_cv_c_for_build_ansi=no
7898 rm -f conftest* a.out b.out a.exe a_out.exe
7901 echo "$as_me:$LINENO: result: $gmp_cv_c_for_build_ansi" >&5
7902 echo "${ECHO_T}$gmp_cv_c_for_build_ansi" >&6
7903 if test "$gmp_cv_c_for_build_ansi" = yes; then
7911 echo "$as_me:$LINENO: checking for build system compiler math library" >&5
7912 echo $ECHO_N "checking for build system compiler math library... $ECHO_C" >&6
7913 if test "${gmp_cv_check_libm_for_build+set}" = set; then
7914 echo $ECHO_N "(cached) $ECHO_C" >&6
7916 cat >conftest.c <<EOF
7929 gmp_compile="$CC_FOR_BUILD conftest.c -lm"
7930 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
7931 (eval $gmp_compile) 2>&5
7933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7934 (exit $ac_status); }; then
7935 gmp_cv_check_libm_for_build=-lm
7937 gmp_cv_check_libm_for_build=no
7939 rm -f conftest* a.out b.out a.exe a_out.exe
7942 echo "$as_me:$LINENO: result: $gmp_cv_check_libm_for_build" >&5
7943 echo "${ECHO_T}$gmp_cv_check_libm_for_build" >&6
7944 case $gmp_cv_check_libm_for_build in
7945 yes) LIBM_FOR_BUILD=-lm
7947 no) LIBM_FOR_BUILD= ;;
7948 *) LIBM_FOR_BUILD=$gmp_cv_check_libm_for_build ;;
7953 # How to assemble, used with CFLAGS etc, see mpn/Makeasm.am.
7954 # Using the compiler is a lot easier than figuring out how to invoke the
7955 # assembler directly.
7957 test -n "$CCAS" || CCAS="$CC -c"
7961 # The C++ compiler, if desired.
7963 if test $enable_cxx != no; then
7964 test_CXXFLAGS=${CXXFLAGS+set}
7966 ac_cpp='$CXXCPP $CPPFLAGS'
7967 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7968 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7969 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
7970 if test -n "$ac_tool_prefix"; then
7971 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
7973 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
7974 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
7975 echo "$as_me:$LINENO: checking for $ac_word" >&5
7976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
7977 if test "${ac_cv_prog_CXX+set}" = set; then
7978 echo $ECHO_N "(cached) $ECHO_C" >&6
7980 if test -n "$CXX"; then
7981 ac_cv_prog_CXX="$CXX" # Let the user override the test.
7983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7987 test -z "$as_dir" && as_dir=.
7988 for ac_exec_ext in '' $ac_executable_extensions; do
7989 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7990 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
7991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8000 if test -n "$CXX"; then
8001 echo "$as_me:$LINENO: result: $CXX" >&5
8002 echo "${ECHO_T}$CXX" >&6
8004 echo "$as_me:$LINENO: result: no" >&5
8005 echo "${ECHO_T}no" >&6
8008 test -n "$CXX" && break
8011 if test -z "$CXX"; then
8013 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
8015 # Extract the first word of "$ac_prog", so it can be a program name with args.
8016 set dummy $ac_prog; ac_word=$2
8017 echo "$as_me:$LINENO: checking for $ac_word" >&5
8018 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
8019 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
8020 echo $ECHO_N "(cached) $ECHO_C" >&6
8022 if test -n "$ac_ct_CXX"; then
8023 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
8025 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8029 test -z "$as_dir" && as_dir=.
8030 for ac_exec_ext in '' $ac_executable_extensions; do
8031 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8032 ac_cv_prog_ac_ct_CXX="$ac_prog"
8033 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8041 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
8042 if test -n "$ac_ct_CXX"; then
8043 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
8044 echo "${ECHO_T}$ac_ct_CXX" >&6
8046 echo "$as_me:$LINENO: result: no" >&5
8047 echo "${ECHO_T}no" >&6
8050 test -n "$ac_ct_CXX" && break
8052 test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
8058 # Provide some information about the compiler.
8059 echo "$as_me:$LINENO:" \
8060 "checking for C++ compiler version" >&5
8061 ac_compiler=`set X $ac_compile; echo $2`
8062 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
8063 (eval $ac_compiler --version </dev/null >&5) 2>&5
8065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8066 (exit $ac_status); }
8067 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
8068 (eval $ac_compiler -v </dev/null >&5) 2>&5
8070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8071 (exit $ac_status); }
8072 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
8073 (eval $ac_compiler -V </dev/null >&5) 2>&5
8075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8076 (exit $ac_status); }
8078 echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
8079 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
8080 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
8081 echo $ECHO_N "(cached) $ECHO_C" >&6
8083 cat >conftest.$ac_ext <<_ACEOF
8086 cat confdefs.h >>conftest.$ac_ext
8087 cat >>conftest.$ac_ext <<_ACEOF
8088 /* end confdefs.h. */
8101 rm -f conftest.$ac_objext
8102 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8103 (eval $ac_compile) 2>conftest.er1
8105 grep -v '^ *+' conftest.er1 >conftest.err
8107 cat conftest.err >&5
8108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8109 (exit $ac_status); } &&
8110 { ac_try='test -z "$ac_cxx_werror_flag"
8111 || test ! -s conftest.err'
8112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8116 (exit $ac_status); }; } &&
8117 { ac_try='test -s conftest.$ac_objext'
8118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8122 (exit $ac_status); }; }; then
8125 echo "$as_me: failed program was:" >&5
8126 sed 's/^/| /' conftest.$ac_ext >&5
8130 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8131 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
8134 echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
8135 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
8136 GXX=`test $ac_compiler_gnu = yes && echo yes`
8137 ac_test_CXXFLAGS=${CXXFLAGS+set}
8138 ac_save_CXXFLAGS=$CXXFLAGS
8140 echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
8141 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
8142 if test "${ac_cv_prog_cxx_g+set}" = set; then
8143 echo $ECHO_N "(cached) $ECHO_C" >&6
8145 cat >conftest.$ac_ext <<_ACEOF
8148 cat confdefs.h >>conftest.$ac_ext
8149 cat >>conftest.$ac_ext <<_ACEOF
8150 /* end confdefs.h. */
8160 rm -f conftest.$ac_objext
8161 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8162 (eval $ac_compile) 2>conftest.er1
8164 grep -v '^ *+' conftest.er1 >conftest.err
8166 cat conftest.err >&5
8167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8168 (exit $ac_status); } &&
8169 { ac_try='test -z "$ac_cxx_werror_flag"
8170 || test ! -s conftest.err'
8171 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); }; } &&
8176 { ac_try='test -s conftest.$ac_objext'
8177 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8181 (exit $ac_status); }; }; then
8182 ac_cv_prog_cxx_g=yes
8184 echo "$as_me: failed program was:" >&5
8185 sed 's/^/| /' conftest.$ac_ext >&5
8189 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8191 echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
8192 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
8193 if test "$ac_test_CXXFLAGS" = set; then
8194 CXXFLAGS=$ac_save_CXXFLAGS
8195 elif test $ac_cv_prog_cxx_g = yes; then
8196 if test "$GXX" = yes; then
8202 if test "$GXX" = yes; then
8208 for ac_declaration in \
8210 'extern "C" void std::exit (int) throw (); using std::exit;' \
8211 'extern "C" void std::exit (int); using std::exit;' \
8212 'extern "C" void exit (int) throw ();' \
8213 'extern "C" void exit (int);' \
8216 cat >conftest.$ac_ext <<_ACEOF
8219 cat confdefs.h >>conftest.$ac_ext
8220 cat >>conftest.$ac_ext <<_ACEOF
8221 /* end confdefs.h. */
8232 rm -f conftest.$ac_objext
8233 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8234 (eval $ac_compile) 2>conftest.er1
8236 grep -v '^ *+' conftest.er1 >conftest.err
8238 cat conftest.err >&5
8239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8240 (exit $ac_status); } &&
8241 { ac_try='test -z "$ac_cxx_werror_flag"
8242 || test ! -s conftest.err'
8243 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8246 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8247 (exit $ac_status); }; } &&
8248 { ac_try='test -s conftest.$ac_objext'
8249 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8253 (exit $ac_status); }; }; then
8256 echo "$as_me: failed program was:" >&5
8257 sed 's/^/| /' conftest.$ac_ext >&5
8261 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8262 cat >conftest.$ac_ext <<_ACEOF
8265 cat confdefs.h >>conftest.$ac_ext
8266 cat >>conftest.$ac_ext <<_ACEOF
8267 /* end confdefs.h. */
8277 rm -f conftest.$ac_objext
8278 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
8279 (eval $ac_compile) 2>conftest.er1
8281 grep -v '^ *+' conftest.er1 >conftest.err
8283 cat conftest.err >&5
8284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8285 (exit $ac_status); } &&
8286 { ac_try='test -z "$ac_cxx_werror_flag"
8287 || test ! -s conftest.err'
8288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292 (exit $ac_status); }; } &&
8293 { ac_try='test -s conftest.$ac_objext'
8294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8298 (exit $ac_status); }; }; then
8301 echo "$as_me: failed program was:" >&5
8302 sed 's/^/| /' conftest.$ac_ext >&5
8305 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
8308 if test -n "$ac_declaration"; then
8309 echo '#ifdef __cplusplus' >>confdefs.h
8310 echo $ac_declaration >>confdefs.h
8311 echo '#endif' >>confdefs.h
8315 ac_cpp='$CPP $CPPFLAGS'
8316 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8317 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8318 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8321 echo "CXXFLAGS chosen by autoconf: $CXXFLAGS" >&5
8322 cxxflags_ac_prog_cxx=$CXXFLAGS
8323 cxxflags_list=ac_prog_cxx
8325 # If the user didn't specify $CXXFLAGS, then try $CFLAGS, with -g removed
8326 # if AC_PROG_CXX thinks that doesn't work. $CFLAGS stands a good chance
8327 # of working, eg. on a GNU system where CC=gcc and CXX=g++.
8329 if test "$test_CXXFLAGS" != set; then
8330 cxxflags_cflags=$CFLAGS
8331 cxxflags_list="cflags $cxxflags_list"
8332 if test "$ac_prog_cxx_g" = no; then
8333 cxxflags_cflags=`echo "$cxxflags_cflags" | sed -e 's/ -g //' -e 's/^-g //' -e 's/ -g$//'`
8337 # See if the C++ compiler works. If the user specified CXXFLAGS then all
8338 # we're doing is checking whether AC_PROG_CXX succeeded, since it doesn't
8339 # give a fatal error, just leaves CXX set to a default g++. If on the
8340 # other hand the user didn't specify CXXFLAGS then we get to try here our
8341 # $cxxflags_list alternatives.
8343 # Automake includes $CPPFLAGS in a C++ compile, so we do the same here.
8345 for cxxflags_choice in $cxxflags_list; do
8346 eval CXXFLAGS=\"\$cxxflags_$cxxflags_choice\"
8347 echo "$as_me:$LINENO: checking C++ compiler $CXX $CPPFLAGS $CXXFLAGS" >&5
8348 echo $ECHO_N "checking C++ compiler $CXX $CPPFLAGS $CXXFLAGS... $ECHO_C" >&6
8349 gmp_prog_cxx_works=yes
8351 # start with a plain "main()", then go on to further checks
8352 if test "$gmp_prog_cxx_works" = yes; then
8353 # remove anything that might look like compiler output to our "||" expression
8354 rm -f conftest* a.out b.out a.exe a_out.exe
8355 cat >conftest.cc <<EOF
8357 int main (void) { return 0; }
8359 echo "Test compile: " >&5
8360 gmp_cxxcompile="$CXX $CPPFLAGS $CXXFLAGS conftest.cc >&5"
8361 if { (eval echo "$as_me:$LINENO: \"$gmp_cxxcompile\"") >&5
8362 (eval $gmp_cxxcompile) 2>&5
8364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8365 (exit $ac_status); }; then
8366 if test "$cross_compiling" = no; then
8367 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
8368 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8372 (exit $ac_status); }; }; then :;
8374 gmp_prog_cxx_works="no, program does not run"
8378 gmp_prog_cxx_works="no"
8380 case $gmp_prog_cxx_works in
8382 echo "failed program was:" >&5
8386 rm -f conftest* a.out b.out a.exe a_out.exe
8390 if test "$gmp_prog_cxx_works" = yes; then
8391 # remove anything that might look like compiler output to our "||" expression
8392 rm -f conftest* a.out b.out a.exe a_out.exe
8393 cat >conftest.cc <<EOF
8395 using namespace foo;
8397 int main (void) { return 0; }
8399 echo "Test compile: namespace" >&5
8400 gmp_cxxcompile="$CXX $CPPFLAGS $CXXFLAGS conftest.cc >&5"
8401 if { (eval echo "$as_me:$LINENO: \"$gmp_cxxcompile\"") >&5
8402 (eval $gmp_cxxcompile) 2>&5
8404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405 (exit $ac_status); }; then
8406 if test "$cross_compiling" = no; then
8407 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
8408 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8412 (exit $ac_status); }; }; then :;
8414 gmp_prog_cxx_works="no, namespace, program does not run"
8418 gmp_prog_cxx_works="no, namespace"
8420 case $gmp_prog_cxx_works in
8422 echo "failed program was:" >&5
8426 rm -f conftest* a.out b.out a.exe a_out.exe
8430 # GMP requires the standard C++ iostream classes
8431 if test "$gmp_prog_cxx_works" = yes; then
8432 # remove anything that might look like compiler output to our "||" expression
8433 rm -f conftest* a.out b.out a.exe a_out.exe
8434 cat >conftest.cc <<EOF
8435 /* This test rejects g++ 2.7.2 which doesn't have <iostream>, only a
8436 pre-standard iostream.h. */
8439 /* This test rejects OSF 5.1 Compaq C++ in its default pre-standard iostream
8440 mode, since that mode puts cout in the global namespace, not "std". */
8441 void someoutput (void) { std::cout << 123; }
8443 int main (void) { return 0; }
8445 echo "Test compile: std iostream" >&5
8446 gmp_cxxcompile="$CXX $CPPFLAGS $CXXFLAGS conftest.cc >&5"
8447 if { (eval echo "$as_me:$LINENO: \"$gmp_cxxcompile\"") >&5
8448 (eval $gmp_cxxcompile) 2>&5
8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); }; then
8452 if test "$cross_compiling" = no; then
8453 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest'
8454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
8457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8458 (exit $ac_status); }; }; then :;
8460 gmp_prog_cxx_works="no, std iostream, program does not run"
8464 gmp_prog_cxx_works="no, std iostream"
8466 case $gmp_prog_cxx_works in
8468 echo "failed program was:" >&5
8472 rm -f conftest* a.out b.out a.exe a_out.exe
8476 echo "$as_me:$LINENO: result: $gmp_prog_cxx_works" >&5
8477 echo "${ECHO_T}$gmp_prog_cxx_works" >&6
8478 case $gmp_prog_cxx_works in
8490 # If --enable-cxx=yes but a C++ compiler can't be found, then abort.
8491 if test $want_cxx = no && test $enable_cxx = yes; then
8492 { { echo "$as_me:$LINENO: error: C++ compiler not available, see config.log for details" >&5
8493 echo "$as_me: error: C++ compiler not available, see config.log for details" >&2;}
8494 { (exit 1); exit 1; }; }
8500 if test $want_cxx = yes; then
8509 # FIXME: We're not interested in CXXCPP for ourselves, but if we don't do it
8510 # here then AC_PROG_LIBTOOL will AC_REQUIRE it (via _LT_AC_TAGCONFIG) and
8511 # hence execute it unconditionally, and that will fail if there's no C++
8512 # compiler (and no generic /lib/cpp).
8514 if test $want_cxx = yes; then
8516 ac_cpp='$CXXCPP $CPPFLAGS'
8517 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8518 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8519 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
8520 echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
8521 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
8522 if test -z "$CXXCPP"; then
8523 if test "${ac_cv_prog_CXXCPP+set}" = set; then
8524 echo $ECHO_N "(cached) $ECHO_C" >&6
8526 # Double quotes because CXXCPP needs to be expanded
8527 for CXXCPP in "$CXX -E" "/lib/cpp"
8530 for ac_cxx_preproc_warn_flag in '' yes
8532 # Use a header file that comes with gcc, so configuring glibc
8533 # with a fresh cross-compiler works.
8534 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8535 # <limits.h> exists even on freestanding compilers.
8536 # On the NeXT, cc -E runs the code through the compiler's parser,
8537 # not just through cpp. "Syntax error" is here to catch this case.
8538 cat >conftest.$ac_ext <<_ACEOF
8541 cat confdefs.h >>conftest.$ac_ext
8542 cat >>conftest.$ac_ext <<_ACEOF
8543 /* end confdefs.h. */
8545 # include <limits.h>
8547 # include <assert.h>
8551 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8552 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8554 grep -v '^ *+' conftest.er1 >conftest.err
8556 cat conftest.err >&5
8557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8558 (exit $ac_status); } >/dev/null; then
8559 if test -s conftest.err; then
8560 ac_cpp_err=$ac_cxx_preproc_warn_flag
8561 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8568 if test -z "$ac_cpp_err"; then
8571 echo "$as_me: failed program was:" >&5
8572 sed 's/^/| /' conftest.$ac_ext >&5
8574 # Broken: fails on valid input.
8577 rm -f conftest.err conftest.$ac_ext
8579 # OK, works on sane cases. Now check whether non-existent headers
8580 # can be detected and how.
8581 cat >conftest.$ac_ext <<_ACEOF
8584 cat confdefs.h >>conftest.$ac_ext
8585 cat >>conftest.$ac_ext <<_ACEOF
8586 /* end confdefs.h. */
8587 #include <ac_nonexistent.h>
8589 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8590 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8592 grep -v '^ *+' conftest.er1 >conftest.err
8594 cat conftest.err >&5
8595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8596 (exit $ac_status); } >/dev/null; then
8597 if test -s conftest.err; then
8598 ac_cpp_err=$ac_cxx_preproc_warn_flag
8599 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8606 if test -z "$ac_cpp_err"; then
8607 # Broken: success on invalid input.
8610 echo "$as_me: failed program was:" >&5
8611 sed 's/^/| /' conftest.$ac_ext >&5
8613 # Passes both tests.
8617 rm -f conftest.err conftest.$ac_ext
8620 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8621 rm -f conftest.err conftest.$ac_ext
8622 if $ac_preproc_ok; then
8627 ac_cv_prog_CXXCPP=$CXXCPP
8630 CXXCPP=$ac_cv_prog_CXXCPP
8632 ac_cv_prog_CXXCPP=$CXXCPP
8634 echo "$as_me:$LINENO: result: $CXXCPP" >&5
8635 echo "${ECHO_T}$CXXCPP" >&6
8637 for ac_cxx_preproc_warn_flag in '' yes
8639 # Use a header file that comes with gcc, so configuring glibc
8640 # with a fresh cross-compiler works.
8641 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8642 # <limits.h> exists even on freestanding compilers.
8643 # On the NeXT, cc -E runs the code through the compiler's parser,
8644 # not just through cpp. "Syntax error" is here to catch this case.
8645 cat >conftest.$ac_ext <<_ACEOF
8648 cat confdefs.h >>conftest.$ac_ext
8649 cat >>conftest.$ac_ext <<_ACEOF
8650 /* end confdefs.h. */
8652 # include <limits.h>
8654 # include <assert.h>
8658 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8659 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8661 grep -v '^ *+' conftest.er1 >conftest.err
8663 cat conftest.err >&5
8664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8665 (exit $ac_status); } >/dev/null; then
8666 if test -s conftest.err; then
8667 ac_cpp_err=$ac_cxx_preproc_warn_flag
8668 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8675 if test -z "$ac_cpp_err"; then
8678 echo "$as_me: failed program was:" >&5
8679 sed 's/^/| /' conftest.$ac_ext >&5
8681 # Broken: fails on valid input.
8684 rm -f conftest.err conftest.$ac_ext
8686 # OK, works on sane cases. Now check whether non-existent headers
8687 # can be detected and how.
8688 cat >conftest.$ac_ext <<_ACEOF
8691 cat confdefs.h >>conftest.$ac_ext
8692 cat >>conftest.$ac_ext <<_ACEOF
8693 /* end confdefs.h. */
8694 #include <ac_nonexistent.h>
8696 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
8697 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
8699 grep -v '^ *+' conftest.er1 >conftest.err
8701 cat conftest.err >&5
8702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8703 (exit $ac_status); } >/dev/null; then
8704 if test -s conftest.err; then
8705 ac_cpp_err=$ac_cxx_preproc_warn_flag
8706 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
8713 if test -z "$ac_cpp_err"; then
8714 # Broken: success on invalid input.
8717 echo "$as_me: failed program was:" >&5
8718 sed 's/^/| /' conftest.$ac_ext >&5
8720 # Passes both tests.
8724 rm -f conftest.err conftest.$ac_ext
8727 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
8728 rm -f conftest.err conftest.$ac_ext
8729 if $ac_preproc_ok; then
8732 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8733 See \`config.log' for more details." >&5
8734 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
8735 See \`config.log' for more details." >&2;}
8736 { (exit 1); exit 1; }; }
8740 ac_cpp='$CPP $CPPFLAGS'
8741 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8742 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8743 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8748 # Path setups for Cray, according to IEEE or CFP. These must come after
8749 # deciding the compiler.
8752 echo "$as_me:$LINENO: checking for egrep" >&5
8753 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
8754 if test "${ac_cv_prog_egrep+set}" = set; then
8755 echo $ECHO_N "(cached) $ECHO_C" >&6
8757 if echo a | (grep -E '(a|b)') >/dev/null 2>&1
8758 then ac_cv_prog_egrep='grep -E'
8759 else ac_cv_prog_egrep='egrep'
8762 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
8763 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
8764 EGREP=$ac_cv_prog_egrep
8769 cat >conftest.$ac_ext <<_ACEOF
8772 cat confdefs.h >>conftest.$ac_ext
8773 cat >>conftest.$ac_ext <<_ACEOF
8774 /* end confdefs.h. */
8779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
8780 $EGREP "yes" >/dev/null 2>&1; then
8781 add_path="cray/ieee"
8783 add_path="cray/cfp"; extra_functions="mulwwc90"
8789 add_path="cray/cfp"; extra_functions="mulwwj90"
8795 if test -z "$MPN_PATH"; then
8796 path="$add_path $path"
8799 # For a nail build, also look in "nails" subdirectories.
8801 if test $GMP_NAIL_BITS != 0 && test -z "$MPN_PATH"; then
8805 generic) new_path="$new_path $i" ;;
8806 *) new_path="$new_path $i/nails $i" ;;
8813 # Put all directories into CPUVEC_list so as to get a full set of
8814 # CPUVEC_SETUP_$tmp_suffix defines into config.h, even if some of them are
8815 # empty because mmx and/or sse2 had to be dropped.
8817 for i in $fat_path; do
8818 tmp_suffix=`echo $i | sed -e '/\//s:^[^/]*/::' -e 's:[\\/]:_:g'`
8819 CPUVEC_list="$CPUVEC_list CPUVEC_SETUP_$tmp_suffix"
8823 # If there's any sse2 or mmx in the path, check whether the assembler
8824 # supports it, and remove if not.
8826 # We only need this in ABI=32, for ABI=64 on x86_64 we can assume a new
8830 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | x86_64-*-*)
8831 if test "$ABI" = 32; then
8832 case "$path $fat_path" in
8833 *mmx*) echo "$as_me:$LINENO: checking if the assembler knows about MMX instructions" >&5
8834 echo $ECHO_N "checking if the assembler knows about MMX instructions... $ECHO_C" >&6
8835 if test "${gmp_cv_asm_x86_mmx+set}" = set; then
8836 echo $ECHO_N "(cached) $ECHO_C" >&6
8838 cat >conftest.s <<EOF
8842 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
8843 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
8844 (eval $gmp_assemble) 2>&5
8846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8847 (exit $ac_status); }; then
8848 cat conftest.out >&5
8849 gmp_cv_asm_x86_mmx=yes
8852 if (dis conftest.$OBJEXT >conftest.out) 2>/dev/null; then
8853 if grep "0f 6f c1" conftest.out >/dev/null; then
8854 gmp_cv_asm_x86_mmx=movq-bug
8857 { echo "$as_me:$LINENO: WARNING: \"dis\" not available to check for \"as\" movq bug" >&5
8858 echo "$as_me: WARNING: \"dis\" not available to check for \"as\" movq bug" >&2;}
8862 cat conftest.out >&5
8863 echo "configure: failed program was:" >&5
8865 gmp_cv_asm_x86_mmx=no
8870 echo "$as_me:$LINENO: result: $gmp_cv_asm_x86_mmx" >&5
8871 echo "${ECHO_T}$gmp_cv_asm_x86_mmx" >&6
8873 case $gmp_cv_asm_x86_mmx in
8875 { echo "$as_me:$LINENO: WARNING: +----------------------------------------------------------" >&5
8876 echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
8877 { echo "$as_me:$LINENO: WARNING: | WARNING WARNING WARNING" >&5
8878 echo "$as_me: WARNING: | WARNING WARNING WARNING" >&2;}
8879 { echo "$as_me:$LINENO: WARNING: | Host CPU has MMX code, but the assembler" >&5
8880 echo "$as_me: WARNING: | Host CPU has MMX code, but the assembler" >&2;}
8881 { echo "$as_me:$LINENO: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&5
8882 echo "$as_me: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&2;}
8883 { echo "$as_me:$LINENO: WARNING: | has the Solaris 2.6 and 2.7 bug where register to register" >&5
8884 echo "$as_me: WARNING: | has the Solaris 2.6 and 2.7 bug where register to register" >&2;}
8885 { echo "$as_me:$LINENO: WARNING: | movq operands are reversed." >&5
8886 echo "$as_me: WARNING: | movq operands are reversed." >&2;}
8887 { echo "$as_me:$LINENO: WARNING: | Non-MMX replacements will be used." >&5
8888 echo "$as_me: WARNING: | Non-MMX replacements will be used." >&2;}
8889 { echo "$as_me:$LINENO: WARNING: | This will be an inferior build." >&5
8890 echo "$as_me: WARNING: | This will be an inferior build." >&2;}
8891 { echo "$as_me:$LINENO: WARNING: +----------------------------------------------------------" >&5
8892 echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
8895 { echo "$as_me:$LINENO: WARNING: +----------------------------------------------------------" >&5
8896 echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
8897 { echo "$as_me:$LINENO: WARNING: | WARNING WARNING WARNING" >&5
8898 echo "$as_me: WARNING: | WARNING WARNING WARNING" >&2;}
8899 { echo "$as_me:$LINENO: WARNING: | Host CPU has MMX code, but it can't be assembled by" >&5
8900 echo "$as_me: WARNING: | Host CPU has MMX code, but it can't be assembled by" >&2;}
8901 { echo "$as_me:$LINENO: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&5
8902 echo "$as_me: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&2;}
8903 { echo "$as_me:$LINENO: WARNING: | Non-MMX replacements will be used." >&5
8904 echo "$as_me: WARNING: | Non-MMX replacements will be used." >&2;}
8905 { echo "$as_me:$LINENO: WARNING: | This will be an inferior build." >&5
8906 echo "$as_me: WARNING: | This will be an inferior build." >&2;}
8907 { echo "$as_me:$LINENO: WARNING: +----------------------------------------------------------" >&5
8908 echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
8911 if test "$gmp_cv_asm_x86_mmx" = yes; then
8918 *) tmp_path="$tmp_path $i" ;;
8924 for i in $fat_path; do
8927 *) tmp_path="$tmp_path $i" ;;
8930 fat_path="$tmp_path"
8936 case "$path $fat_path" in
8937 *sse2*) echo "$as_me:$LINENO: checking if the assembler knows about SSE2 instructions" >&5
8938 echo $ECHO_N "checking if the assembler knows about SSE2 instructions... $ECHO_C" >&6
8939 if test "${gmp_cv_asm_x86_sse2+set}" = set; then
8940 echo $ECHO_N "(cached) $ECHO_C" >&6
8942 cat >conftest.s <<EOF
8946 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
8947 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
8948 (eval $gmp_assemble) 2>&5
8950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8951 (exit $ac_status); }; then
8952 cat conftest.out >&5
8953 gmp_cv_asm_x86_sse2=yes
8955 cat conftest.out >&5
8956 echo "configure: failed program was:" >&5
8958 gmp_cv_asm_x86_sse2=no
8964 echo "$as_me:$LINENO: result: $gmp_cv_asm_x86_sse2" >&5
8965 echo "${ECHO_T}$gmp_cv_asm_x86_sse2" >&6
8966 case $gmp_cv_asm_x86_sse2 in
8971 { echo "$as_me:$LINENO: WARNING: +----------------------------------------------------------" >&5
8972 echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
8973 { echo "$as_me:$LINENO: WARNING: | WARNING WARNING WARNING" >&5
8974 echo "$as_me: WARNING: | WARNING WARNING WARNING" >&2;}
8975 { echo "$as_me:$LINENO: WARNING: | Host CPU has SSE2 code, but it can't be assembled by" >&5
8976 echo "$as_me: WARNING: | Host CPU has SSE2 code, but it can't be assembled by" >&2;}
8977 { echo "$as_me:$LINENO: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&5
8978 echo "$as_me: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&2;}
8979 { echo "$as_me:$LINENO: WARNING: | Non-SSE2 replacements will be used." >&5
8980 echo "$as_me: WARNING: | Non-SSE2 replacements will be used." >&2;}
8981 { echo "$as_me:$LINENO: WARNING: | This will be an inferior build." >&5
8982 echo "$as_me: WARNING: | This will be an inferior build." >&2;}
8983 { echo "$as_me:$LINENO: WARNING: +----------------------------------------------------------" >&5
8984 echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
8989 *) tmp_path="$tmp_path $i" ;;
8995 for i in $fat_path; do
8998 *) tmp_path="$tmp_path $i" ;;
9001 fat_path="$tmp_path"
9019 GMP_LDFLAGS=$GMP_LDFLAGS
9024 echo "using ABI=\"$ABI\""
9026 echo " CFLAGS=\"$CFLAGS\""
9027 echo " CPPFLAGS=\"$CPPFLAGS\""
9028 if test $want_cxx = yes; then
9029 echo " CXX=\"$CXX\""
9030 echo " CXXFLAGS=\"$CXXFLAGS\""
9032 echo " MPN_PATH=\"$path\""
9035 # Automake ansi2knr support.
9036 echo "$as_me:$LINENO: checking for function prototypes" >&5
9037 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6
9038 if test "$ac_cv_prog_cc_stdc" != no; then
9039 echo "$as_me:$LINENO: result: yes" >&5
9040 echo "${ECHO_T}yes" >&6
9042 cat >>confdefs.h <<\_ACEOF
9043 #define PROTOTYPES 1
9047 cat >>confdefs.h <<\_ACEOF
9048 #define __PROTOTYPES 1
9052 echo "$as_me:$LINENO: result: no" >&5
9053 echo "${ECHO_T}no" >&6
9056 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
9057 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
9058 if test "${ac_cv_header_stdc+set}" = set; then
9059 echo $ECHO_N "(cached) $ECHO_C" >&6
9061 cat >conftest.$ac_ext <<_ACEOF
9064 cat confdefs.h >>conftest.$ac_ext
9065 cat >>conftest.$ac_ext <<_ACEOF
9066 /* end confdefs.h. */
9080 rm -f conftest.$ac_objext
9081 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9082 (eval $ac_compile) 2>conftest.er1
9084 grep -v '^ *+' conftest.er1 >conftest.err
9086 cat conftest.err >&5
9087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9088 (exit $ac_status); } &&
9089 { ac_try='test -z "$ac_c_werror_flag"
9090 || test ! -s conftest.err'
9091 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9095 (exit $ac_status); }; } &&
9096 { ac_try='test -s conftest.$ac_objext'
9097 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9101 (exit $ac_status); }; }; then
9102 ac_cv_header_stdc=yes
9104 echo "$as_me: failed program was:" >&5
9105 sed 's/^/| /' conftest.$ac_ext >&5
9107 ac_cv_header_stdc=no
9109 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9111 if test $ac_cv_header_stdc = yes; then
9112 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9113 cat >conftest.$ac_ext <<_ACEOF
9116 cat confdefs.h >>conftest.$ac_ext
9117 cat >>conftest.$ac_ext <<_ACEOF
9118 /* end confdefs.h. */
9122 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9123 $EGREP "memchr" >/dev/null 2>&1; then
9126 ac_cv_header_stdc=no
9132 if test $ac_cv_header_stdc = yes; then
9133 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9134 cat >conftest.$ac_ext <<_ACEOF
9137 cat confdefs.h >>conftest.$ac_ext
9138 cat >>conftest.$ac_ext <<_ACEOF
9139 /* end confdefs.h. */
9143 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9144 $EGREP "free" >/dev/null 2>&1; then
9147 ac_cv_header_stdc=no
9153 if test $ac_cv_header_stdc = yes; then
9154 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9155 if test "$cross_compiling" = yes; then
9158 cat >conftest.$ac_ext <<_ACEOF
9161 cat confdefs.h >>conftest.$ac_ext
9162 cat >>conftest.$ac_ext <<_ACEOF
9163 /* end confdefs.h. */
9165 #if ((' ' & 0x0FF) == 0x020)
9166 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9167 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9169 # define ISLOWER(c) \
9170 (('a' <= (c) && (c) <= 'i') \
9171 || ('j' <= (c) && (c) <= 'r') \
9172 || ('s' <= (c) && (c) <= 'z'))
9173 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9176 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9181 for (i = 0; i < 256; i++)
9182 if (XOR (islower (i), ISLOWER (i))
9183 || toupper (i) != TOUPPER (i))
9188 rm -f conftest$ac_exeext
9189 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
9190 (eval $ac_link) 2>&5
9192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9193 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9198 (exit $ac_status); }; }; then
9201 echo "$as_me: program exited with status $ac_status" >&5
9202 echo "$as_me: failed program was:" >&5
9203 sed 's/^/| /' conftest.$ac_ext >&5
9206 ac_cv_header_stdc=no
9208 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9212 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
9213 echo "${ECHO_T}$ac_cv_header_stdc" >&6
9214 if test $ac_cv_header_stdc = yes; then
9216 cat >>confdefs.h <<\_ACEOF
9217 #define STDC_HEADERS 1
9222 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
9232 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
9233 inttypes.h stdint.h unistd.h
9235 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9236 echo "$as_me:$LINENO: checking for $ac_header" >&5
9237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9238 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9239 echo $ECHO_N "(cached) $ECHO_C" >&6
9241 cat >conftest.$ac_ext <<_ACEOF
9244 cat confdefs.h >>conftest.$ac_ext
9245 cat >>conftest.$ac_ext <<_ACEOF
9246 /* end confdefs.h. */
9247 $ac_includes_default
9249 #include <$ac_header>
9251 rm -f conftest.$ac_objext
9252 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9253 (eval $ac_compile) 2>conftest.er1
9255 grep -v '^ *+' conftest.er1 >conftest.err
9257 cat conftest.err >&5
9258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9259 (exit $ac_status); } &&
9260 { ac_try='test -z "$ac_c_werror_flag"
9261 || test ! -s conftest.err'
9262 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9266 (exit $ac_status); }; } &&
9267 { ac_try='test -s conftest.$ac_objext'
9268 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9272 (exit $ac_status); }; }; then
9273 eval "$as_ac_Header=yes"
9275 echo "$as_me: failed program was:" >&5
9276 sed 's/^/| /' conftest.$ac_ext >&5
9278 eval "$as_ac_Header=no"
9280 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9282 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9283 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9284 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9285 cat >>confdefs.h <<_ACEOF
9286 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9295 if test "$ac_cv_prog_cc_stdc" != no; then
9298 U=_ ANSI2KNR=./ansi2knr
9300 # Ensure some checks needed by ansi2knr itself.
9303 for ac_header in string.h
9305 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9306 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9307 echo "$as_me:$LINENO: checking for $ac_header" >&5
9308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9309 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9310 echo $ECHO_N "(cached) $ECHO_C" >&6
9312 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9313 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9315 # Is the header compilable?
9316 echo "$as_me:$LINENO: checking $ac_header usability" >&5
9317 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
9318 cat >conftest.$ac_ext <<_ACEOF
9321 cat confdefs.h >>conftest.$ac_ext
9322 cat >>conftest.$ac_ext <<_ACEOF
9323 /* end confdefs.h. */
9324 $ac_includes_default
9325 #include <$ac_header>
9327 rm -f conftest.$ac_objext
9328 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
9329 (eval $ac_compile) 2>conftest.er1
9331 grep -v '^ *+' conftest.er1 >conftest.err
9333 cat conftest.err >&5
9334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9335 (exit $ac_status); } &&
9336 { ac_try='test -z "$ac_c_werror_flag"
9337 || test ! -s conftest.err'
9338 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9342 (exit $ac_status); }; } &&
9343 { ac_try='test -s conftest.$ac_objext'
9344 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
9347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9348 (exit $ac_status); }; }; then
9349 ac_header_compiler=yes
9351 echo "$as_me: failed program was:" >&5
9352 sed 's/^/| /' conftest.$ac_ext >&5
9354 ac_header_compiler=no
9356 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
9357 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9358 echo "${ECHO_T}$ac_header_compiler" >&6
9360 # Is the header present?
9361 echo "$as_me:$LINENO: checking $ac_header presence" >&5
9362 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
9363 cat >conftest.$ac_ext <<_ACEOF
9366 cat confdefs.h >>conftest.$ac_ext
9367 cat >>conftest.$ac_ext <<_ACEOF
9368 /* end confdefs.h. */
9369 #include <$ac_header>
9371 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
9372 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
9374 grep -v '^ *+' conftest.er1 >conftest.err
9376 cat conftest.err >&5
9377 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9378 (exit $ac_status); } >/dev/null; then
9379 if test -s conftest.err; then
9380 ac_cpp_err=$ac_c_preproc_warn_flag
9381 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9388 if test -z "$ac_cpp_err"; then
9389 ac_header_preproc=yes
9391 echo "$as_me: failed program was:" >&5
9392 sed 's/^/| /' conftest.$ac_ext >&5
9394 ac_header_preproc=no
9396 rm -f conftest.err conftest.$ac_ext
9397 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9398 echo "${ECHO_T}$ac_header_preproc" >&6
9400 # So? What about this header?
9401 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9403 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9404 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9406 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9407 ac_header_preproc=yes
9410 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9411 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9412 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9413 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9414 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9415 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9416 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9417 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9419 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9420 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9421 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9424 ## -------------------------------- ##
9425 ## Report this to gmp-bugs@swox.com ##
9426 ## -------------------------------- ##
9429 sed "s/^/$as_me: WARNING: /" >&2
9432 echo "$as_me:$LINENO: checking for $ac_header" >&5
9433 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
9434 if eval "test \"\${$as_ac_Header+set}\" = set"; then
9435 echo $ECHO_N "(cached) $ECHO_C" >&6
9437 eval "$as_ac_Header=\$ac_header_preproc"
9439 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
9440 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
9443 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9444 cat >>confdefs.h <<_ACEOF
9445 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9456 if test -n "$ac_tool_prefix"; then
9457 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
9458 set dummy ${ac_tool_prefix}ar; ac_word=$2
9459 echo "$as_me:$LINENO: checking for $ac_word" >&5
9460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9461 if test "${ac_cv_prog_AR+set}" = set; then
9462 echo $ECHO_N "(cached) $ECHO_C" >&6
9464 if test -n "$AR"; then
9465 ac_cv_prog_AR="$AR" # Let the user override the test.
9467 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9471 test -z "$as_dir" && as_dir=.
9472 for ac_exec_ext in '' $ac_executable_extensions; do
9473 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9474 ac_cv_prog_AR="${ac_tool_prefix}ar"
9475 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9484 if test -n "$AR"; then
9485 echo "$as_me:$LINENO: result: $AR" >&5
9486 echo "${ECHO_T}$AR" >&6
9488 echo "$as_me:$LINENO: result: no" >&5
9489 echo "${ECHO_T}no" >&6
9493 if test -z "$ac_cv_prog_AR"; then
9495 # Extract the first word of "ar", so it can be a program name with args.
9496 set dummy ar; ac_word=$2
9497 echo "$as_me:$LINENO: checking for $ac_word" >&5
9498 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
9499 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
9500 echo $ECHO_N "(cached) $ECHO_C" >&6
9502 if test -n "$ac_ct_AR"; then
9503 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
9505 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9509 test -z "$as_dir" && as_dir=.
9510 for ac_exec_ext in '' $ac_executable_extensions; do
9511 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
9512 ac_cv_prog_ac_ct_AR="ar"
9513 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9519 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="ar"
9522 ac_ct_AR=$ac_cv_prog_ac_ct_AR
9523 if test -n "$ac_ct_AR"; then
9524 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
9525 echo "${ECHO_T}$ac_ct_AR" >&6
9527 echo "$as_me:$LINENO: result: no" >&5
9528 echo "${ECHO_T}no" >&6
9536 if test -z "$gmp_user_AR"; then
9537 eval arflags=\"\$ar${abi1}_flags\"
9538 test -n "$arflags" || eval arflags=\"\$ar${abi2}_flags\"
9539 if test -n "$arflags"; then
9540 echo "$as_me:$LINENO: checking for extra ar flags" >&5
9541 echo $ECHO_N "checking for extra ar flags... $ECHO_C" >&6
9543 ac_cv_prog_AR="$AR $arflags"
9544 ac_cv_prog_ac_ct_AR="$AR $arflags"
9545 echo "$as_me:$LINENO: result: $arflags" >&5
9546 echo "${ECHO_T}$arflags" >&6
9549 if test -z "$AR_FLAGS"; then
9555 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
9556 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
9557 if test "${lt_cv_path_NM+set}" = set; then
9558 echo $ECHO_N "(cached) $ECHO_C" >&6
9560 if test -n "$NM"; then
9561 # Let the user override the test.
9564 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9565 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
9567 test -z "$ac_dir" && ac_dir=.
9568 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
9569 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9570 # Check to see if the nm accepts a BSD-compat flag.
9571 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9572 # nm: unknown option "B" ignored
9573 # Tru64's nm complains that /dev/null is an invalid object file
9574 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9575 */dev/null* | *'Invalid file or object type'*)
9576 lt_cv_path_NM="$tmp_nm -B"
9580 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9582 lt_cv_path_NM="$tmp_nm -p"
9586 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9587 continue # so that we can try to find one that supports BSD flags
9594 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
9597 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
9598 echo "${ECHO_T}$lt_cv_path_NM" >&6
9602 # FIXME: When cross compiling (ie. $ac_tool_prefix not empty), libtool
9603 # defaults to plain "nm" if a "${ac_tool_prefix}nm" is not found. In this
9604 # case run it again to try the native "nm", firstly so that likely locations
9605 # are searched, secondly so that -B or -p are added if necessary for BSD
9606 # format. This is necessary for instance on OSF with "./configure
9607 # --build=alphaev5-dec-osf --host=alphaev6-dec-osf".
9609 if test -z "$gmp_user_NM" && test -n "$ac_tool_prefix" && test "$NM" = nm; then
9610 $as_unset lt_cv_path_NM
9611 gmp_save_ac_tool_prefix=$ac_tool_prefix
9614 echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
9615 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
9616 if test "${lt_cv_path_NM+set}" = set; then
9617 echo $ECHO_N "(cached) $ECHO_C" >&6
9619 if test -n "$NM"; then
9620 # Let the user override the test.
9623 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9624 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
9626 test -z "$ac_dir" && ac_dir=.
9627 tmp_nm="$ac_dir/${ac_tool_prefix}nm"
9628 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
9629 # Check to see if the nm accepts a BSD-compat flag.
9630 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
9631 # nm: unknown option "B" ignored
9632 # Tru64's nm complains that /dev/null is an invalid object file
9633 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
9634 */dev/null* | *'Invalid file or object type'*)
9635 lt_cv_path_NM="$tmp_nm -B"
9639 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
9641 lt_cv_path_NM="$tmp_nm -p"
9645 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
9646 continue # so that we can try to find one that supports BSD flags
9653 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
9656 echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
9657 echo "${ECHO_T}$lt_cv_path_NM" >&6
9660 ac_tool_prefix=$gmp_save_ac_tool_prefix
9663 if test -z "$gmp_user_NM"; then
9664 eval nmflags=\"\$nm${abi1}_flags\"
9665 test -n "$nmflags" || eval nmflags=\"\$nm${abi2}_flags\"
9666 if test -n "$nmflags"; then
9667 echo "$as_me:$LINENO: checking for extra nm flags" >&5
9668 echo $ECHO_N "checking for extra nm flags... $ECHO_C" >&6
9670 echo "$as_me:$LINENO: result: $nmflags" >&5
9671 echo "${ECHO_T}$nmflags" >&6
9677 # FIXME: On AIX 3 and 4, $libname.a is included in libtool
9678 # $library_names_spec, so libgmp.a becomes a symlink to libgmp.so, making
9679 # it impossible to build shared and static libraries simultaneously.
9680 # Disable shared libraries by default, but let the user override with
9681 # --enable-shared --disable-static.
9683 # FIXME: This $libname.a problem looks like it might apply to *-*-amigaos*
9684 # and *-*-os2* too, but wait for someone to test this before worrying
9685 # about it. If there is a problem then of course libtool is the right
9689 if test -z "$enable_shared"; then enable_shared=no; fi ;;
9693 # Configs for Windows DLLs.
9701 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
9702 # By default, build only static.
9703 if test -z "$enable_shared"; then
9706 # Don't allow both static and DLL.
9707 if test "$enable_shared" != no && test "$enable_static" != no; then
9708 { { echo "$as_me:$LINENO: error: cannot build both static and DLL, since gmp.h is different for each.
9709 Use \"--disable-static --enable-shared\" to build just a DLL." >&5
9710 echo "$as_me: error: cannot build both static and DLL, since gmp.h is different for each.
9711 Use \"--disable-static --enable-shared\" to build just a DLL." >&2;}
9712 { (exit 1); exit 1; }; }
9715 # "-no-undefined" is required when building a DLL, see documentation on
9716 # AC_LIBTOOL_WIN32_DLL.
9718 # "-Wl,--export-all-symbols" is a bit of a hack, it gets all libgmp and
9719 # libgmpxx functions and variables exported. This is what libtool did
9720 # in the past, and it's convenient for us in the test programs.
9722 # Maybe it'd be prudent to check for --export-all-symbols before using
9723 # it, but it seems to have been in ld since at least 2000, and there's
9724 # not really any alternative we want to take up at the moment.
9726 # "-Wl,output-def" is used to get a .def file for use by MS lib to make
9727 # a .lib import library, described in the manual. libgmp-3.dll.def
9728 # corresponds to the libmp-3.dll.def generated by libtool (as a result
9729 # of -export-symbols on that library).
9731 # Incidentally, libtool does generate an import library libgmp.dll.a,
9732 # but it's "ar" format and cannot be used by the MS linker. There
9733 # doesn't seem to be any GNU tool for generating or converting to .lib.
9735 # FIXME: The .def files produced by -Wl,output-def include isascii,
9736 # iscsym, iscsymf and toascii, apparently because mingw ctype.h doesn't
9737 # inline isascii (used in gmp). It gives an extern inline for
9738 # __isascii, but for some reason not the plain isascii.
9740 if test "$enable_shared" = yes; then
9741 GMP_LDFLAGS="$GMP_LDFLAGS -no-undefined -Wl,--export-all-symbols"
9742 LIBGMP_LDFLAGS="$LIBGMP_LDFLAGS -Wl,--output-def,.libs/libgmp-3.dll.def"
9743 LIBGMPXX_LDFLAGS="$LIBGMP_LDFLAGS -Wl,--output-def,.libs/libgmpxx-3.dll.def"
9750 # Ensure that $CONFIG_SHELL is available for AC_LIBTOOL_SYS_MAX_CMD_LEN.
9751 # It's often set already by _LT_AC_PROG_ECHO_BACKSLASH or
9752 # _AS_LINENO_PREPARE, but not always.
9754 # The symptom of CONFIG_SHELL unset is some "expr" errors during the test,
9755 # and an empty result. This only happens when invoked as "sh configure",
9756 # ie. no path, and can be seen for instance on ia64-*-hpux*.
9758 # FIXME: Newer libtool should have it's own fix for this.
9760 if test -z "$CONFIG_SHELL"; then
9764 # Enable CXX in libtool only if we want it, and never enable GCJ, nor RC on
9765 # mingw and cygwin. Under --disable-cxx this avoids some error messages
9766 # from libtool arising from the fact we didn't actually run AC_PROG_CXX.
9767 # Notice that any user-supplied --with-tags setting takes precedence.
9769 # FIXME: Is this the right way to get this effect? Very possibly not, but
9770 # the current _LT_AC_TAGCONFIG doesn't really suggest an alternative.
9772 if test "${with_tags+set}" != set; then
9773 if test $want_cxx = yes; then
9780 # The dead hand of AC_REQUIRE makes AC_PROG_LIBTOOL expand and execute
9781 # AC_PROG_F77, even when F77 is not in the selected with_tags. This is
9782 # probably harmless, but it's unsightly and bloats our configure, so pretend
9783 # AC_PROG_F77 has been expanded already.
9785 # FIXME: Rumour has it libtool will one day provide a way for a configure.in
9786 # to say what it wants from among supported languages etc.
9790 # Check whether --enable-shared or --disable-shared was given.
9791 if test "${enable_shared+set}" = set; then
9792 enableval="$enable_shared"
9793 p=${PACKAGE-default}
9795 yes) enable_shared=yes ;;
9796 no) enable_shared=no ;;
9799 # Look at the argument we got. We use all the common list separators.
9800 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9801 for pkg in $enableval; do
9803 if test "X$pkg" = "X$p"; then
9814 # Check whether --enable-static or --disable-static was given.
9815 if test "${enable_static+set}" = set; then
9816 enableval="$enable_static"
9817 p=${PACKAGE-default}
9819 yes) enable_static=yes ;;
9820 no) enable_static=no ;;
9823 # Look at the argument we got. We use all the common list separators.
9824 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9825 for pkg in $enableval; do
9827 if test "X$pkg" = "X$p"; then
9838 # Check whether --enable-fast-install or --disable-fast-install was given.
9839 if test "${enable_fast_install+set}" = set; then
9840 enableval="$enable_fast_install"
9841 p=${PACKAGE-default}
9843 yes) enable_fast_install=yes ;;
9844 no) enable_fast_install=no ;;
9846 enable_fast_install=no
9847 # Look at the argument we got. We use all the common list separators.
9848 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
9849 for pkg in $enableval; do
9851 if test "X$pkg" = "X$p"; then
9852 enable_fast_install=yes
9859 enable_fast_install=yes
9862 echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
9863 echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
9864 if test "${lt_cv_path_SED+set}" = set; then
9865 echo $ECHO_N "(cached) $ECHO_C" >&6
9867 # Loop through the user's path and test for sed and gsed.
9868 # Then use that list of sed's as ones to test for truncation.
9869 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9873 test -z "$as_dir" && as_dir=.
9874 for lt_ac_prog in sed gsed; do
9875 for ac_exec_ext in '' $ac_executable_extensions; do
9876 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
9877 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
9884 # Add /usr/xpg4/bin/sed as it is typically found on Solaris
9885 # along with /bin/sed that truncates output.
9886 for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
9887 test ! -f $lt_ac_sed && break
9888 cat /dev/null > conftest.in
9890 echo $ECHO_N "0123456789$ECHO_C" >conftest.in
9891 # Check for GNU sed and select it if it is found.
9892 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
9893 lt_cv_path_SED=$lt_ac_sed
9897 cat conftest.in conftest.in >conftest.tmp
9898 mv conftest.tmp conftest.in
9899 cp conftest.in conftest.nl
9901 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
9902 cmp -s conftest.out conftest.nl || break
9903 # 10000 chars as input seems more than enough
9904 test $lt_ac_count -gt 10 && break
9905 lt_ac_count=`expr $lt_ac_count + 1`
9906 if test $lt_ac_count -gt $lt_ac_max; then
9907 lt_ac_max=$lt_ac_count
9908 lt_cv_path_SED=$lt_ac_sed
9916 echo "$as_me:$LINENO: result: $SED" >&5
9917 echo "${ECHO_T}$SED" >&6
9920 # Check whether --with-gnu-ld or --without-gnu-ld was given.
9921 if test "${with_gnu_ld+set}" = set; then
9922 withval="$with_gnu_ld"
9923 test "$withval" = no || with_gnu_ld=yes
9928 if test "$GCC" = yes; then
9929 # Check if gcc -print-prog-name=ld gives a path.
9930 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
9931 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
9934 # gcc leaves a trailing carriage return which upsets mingw
9935 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
9937 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
9940 # Accept absolute paths.
9942 re_direlt='/[^/][^/]*/\.\./'
9943 # Canonicalize the pathname of ld
9944 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
9945 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
9946 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
9948 test -z "$LD" && LD="$ac_prog"
9951 # If it fails, then pretend we aren't using GCC.
9955 # If it is relative, then search for the first ld in PATH.
9959 elif test "$with_gnu_ld" = yes; then
9960 echo "$as_me:$LINENO: checking for GNU ld" >&5
9961 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
9963 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
9964 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
9966 if test "${lt_cv_path_LD+set}" = set; then
9967 echo $ECHO_N "(cached) $ECHO_C" >&6
9969 if test -z "$LD"; then
9970 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
9971 for ac_dir in $PATH; do
9973 test -z "$ac_dir" && ac_dir=.
9974 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
9975 lt_cv_path_LD="$ac_dir/$ac_prog"
9976 # Check to see if the program is GNU ld. I'd rather use --version,
9977 # but apparently some GNU ld's only accept -v.
9978 # Break only if it was the GNU/non-GNU ld that we prefer.
9979 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
9980 *GNU* | *'with BFD'*)
9981 test "$with_gnu_ld" != no && break
9984 test "$with_gnu_ld" != yes && break
9991 lt_cv_path_LD="$LD" # Let the user override the test with a path.
9996 if test -n "$LD"; then
9997 echo "$as_me:$LINENO: result: $LD" >&5
9998 echo "${ECHO_T}$LD" >&6
10000 echo "$as_me:$LINENO: result: no" >&5
10001 echo "${ECHO_T}no" >&6
10003 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
10004 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
10005 { (exit 1); exit 1; }; }
10006 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
10007 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
10008 if test "${lt_cv_prog_gnu_ld+set}" = set; then
10009 echo $ECHO_N "(cached) $ECHO_C" >&6
10011 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
10012 case `$LD -v 2>&1 </dev/null` in
10013 *GNU* | *'with BFD'*)
10014 lt_cv_prog_gnu_ld=yes
10017 lt_cv_prog_gnu_ld=no
10021 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
10022 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
10023 with_gnu_ld=$lt_cv_prog_gnu_ld
10026 echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
10027 echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
10028 if test "${lt_cv_ld_reload_flag+set}" = set; then
10029 echo $ECHO_N "(cached) $ECHO_C" >&6
10031 lt_cv_ld_reload_flag='-r'
10033 echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
10034 echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
10035 reload_flag=$lt_cv_ld_reload_flag
10036 case $reload_flag in
10038 *) reload_flag=" $reload_flag" ;;
10040 reload_cmds='$LD$reload_flag -o $output$reload_objs'
10042 echo "$as_me:$LINENO: checking whether ln -s works" >&5
10043 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
10045 if test "$LN_S" = "ln -s"; then
10046 echo "$as_me:$LINENO: result: yes" >&5
10047 echo "${ECHO_T}yes" >&6
10049 echo "$as_me:$LINENO: result: no, using $LN_S" >&5
10050 echo "${ECHO_T}no, using $LN_S" >&6
10053 echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
10054 echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
10055 if test "${lt_cv_deplibs_check_method+set}" = set; then
10056 echo $ECHO_N "(cached) $ECHO_C" >&6
10058 lt_cv_file_magic_cmd='$MAGIC_CMD'
10059 lt_cv_file_magic_test_file=
10060 lt_cv_deplibs_check_method='unknown'
10061 # Need to set the preceding variable on all platforms that support
10062 # interlibrary dependencies.
10063 # 'none' -- dependencies not supported.
10064 # `unknown' -- same as none, but documents that we really don't know.
10065 # 'pass_all' -- all dependencies passed with no checks.
10066 # 'test_compile' -- check by making test program.
10067 # 'file_magic [[regex]]' -- check by looking for files in library path
10068 # which responds to the $file_magic_cmd with a given extended regex.
10069 # If you have `file' or equivalent on your system and you're not sure
10070 # whether `pass_all' will *always* work, you probably want this one.
10074 lt_cv_deplibs_check_method=pass_all
10078 lt_cv_deplibs_check_method=pass_all
10082 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
10083 lt_cv_file_magic_cmd='/usr/bin/file -L'
10084 lt_cv_file_magic_test_file=/shlib/libc.so
10088 # func_win32_libid is a shell function defined in ltmain.sh
10089 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
10090 lt_cv_file_magic_cmd='func_win32_libid'
10094 # Base MSYS/MinGW do not provide the 'file' command needed by
10095 # func_win32_libid shell function, so use a weaker test based on 'objdump'.
10096 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
10097 lt_cv_file_magic_cmd='$OBJDUMP -f'
10100 darwin* | rhapsody*)
10101 lt_cv_deplibs_check_method=pass_all
10104 freebsd* | kfreebsd*-gnu)
10105 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10108 # Not sure whether the presence of OpenBSD here was a mistake.
10109 # Let's accept both of them until this is cleared up.
10110 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library'
10111 lt_cv_file_magic_cmd=/usr/bin/file
10112 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10116 lt_cv_deplibs_check_method=pass_all
10121 lt_cv_deplibs_check_method=pass_all
10124 hpux10.20* | hpux11*)
10125 lt_cv_file_magic_cmd=/usr/bin/file
10126 case "$host_cpu" in
10128 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
10129 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
10132 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]'
10133 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
10136 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
10137 lt_cv_file_magic_test_file=/usr/lib/libc.sl
10142 irix5* | irix6* | nonstopux*)
10144 *-32|*"-32 ") libmagic=32-bit;;
10145 *-n32|*"-n32 ") libmagic=N32;;
10146 *-64|*"-64 ") libmagic=64-bit;;
10147 *) libmagic=never-match;;
10149 lt_cv_deplibs_check_method=pass_all
10152 # This must be Linux ELF.
10155 alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*)
10156 lt_cv_deplibs_check_method=pass_all ;;
10158 # glibc up to 2.1.1 does not perform some relocations on ARM
10159 # this will be overridden with pass_all, but let us keep it just in case
10160 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;;
10162 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
10163 lt_cv_deplibs_check_method=pass_all
10167 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
10168 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
10170 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
10175 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
10176 lt_cv_file_magic_cmd=/usr/bin/file
10177 lt_cv_file_magic_test_file=/usr/lib/libnls.so
10181 lt_cv_deplibs_check_method=unknown
10185 lt_cv_file_magic_cmd=/usr/bin/file
10186 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
10187 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10188 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object'
10190 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
10194 osf3* | osf4* | osf5*)
10195 lt_cv_deplibs_check_method=pass_all
10199 lt_cv_deplibs_check_method=pass_all
10203 lt_cv_deplibs_check_method=pass_all
10206 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10207 case $host_vendor in
10209 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]'
10210 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
10213 lt_cv_deplibs_check_method=pass_all
10216 lt_cv_file_magic_cmd='/bin/file'
10217 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
10220 lt_cv_file_magic_cmd='/bin/file'
10221 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
10222 lt_cv_file_magic_test_file=/lib/libc.so
10225 lt_cv_deplibs_check_method=pass_all
10230 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
10231 lt_cv_deplibs_check_method=pass_all
10236 echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
10237 echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
10238 file_magic_cmd=$lt_cv_file_magic_cmd
10239 deplibs_check_method=$lt_cv_deplibs_check_method
10240 test -z "$deplibs_check_method" && deplibs_check_method=unknown
10245 # If no C compiler was specified, use CC.
10248 # Allow CC to be a program name with arguments.
10251 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
10252 if test "${enable_libtool_lock+set}" = set; then
10253 enableval="$enable_libtool_lock"
10256 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
10258 # Some flags need to be propagated to the compiler or linker for good
10262 # Find out which ABI we are using.
10263 echo 'int i;' > conftest.$ac_ext
10264 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10265 (eval $ac_compile) 2>&5
10267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268 (exit $ac_status); }; then
10269 case `/usr/bin/file conftest.$ac_objext` in
10271 HPUX_IA64_MODE="32"
10274 HPUX_IA64_MODE="64"
10281 # Find out which ABI we are using.
10282 echo '#line 10282 "configure"' > conftest.$ac_ext
10283 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10284 (eval $ac_compile) 2>&5
10286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10287 (exit $ac_status); }; then
10288 if test "$lt_cv_prog_gnu_ld" = yes; then
10289 case `/usr/bin/file conftest.$ac_objext` in
10291 LD="${LD-ld} -melf32bsmip"
10294 LD="${LD-ld} -melf32bmipn32"
10297 LD="${LD-ld} -melf64bmip"
10301 case `/usr/bin/file conftest.$ac_objext` in
10317 x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
10318 # Find out which ABI we are using.
10319 echo 'int i;' > conftest.$ac_ext
10320 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10321 (eval $ac_compile) 2>&5
10323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324 (exit $ac_status); }; then
10325 case "`/usr/bin/file conftest.o`" in
10329 LD="${LD-ld} -m elf_i386"
10331 ppc64-*linux*|powerpc64-*linux*)
10332 LD="${LD-ld} -m elf32ppclinux"
10335 LD="${LD-ld} -m elf_s390"
10338 LD="${LD-ld} -m elf32_sparc"
10345 LD="${LD-ld} -m elf_x86_64"
10347 ppc*-*linux*|powerpc*-*linux*)
10348 LD="${LD-ld} -m elf64ppc"
10351 LD="${LD-ld} -m elf64_s390"
10354 LD="${LD-ld} -m elf64_sparc"
10364 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
10365 SAVE_CFLAGS="$CFLAGS"
10366 CFLAGS="$CFLAGS -belf"
10367 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
10368 echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
10369 if test "${lt_cv_cc_needs_belf+set}" = set; then
10370 echo $ECHO_N "(cached) $ECHO_C" >&6
10373 ac_cpp='$CPP $CPPFLAGS'
10374 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10375 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10376 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10378 cat >conftest.$ac_ext <<_ACEOF
10381 cat confdefs.h >>conftest.$ac_ext
10382 cat >>conftest.$ac_ext <<_ACEOF
10383 /* end confdefs.h. */
10393 rm -f conftest.$ac_objext conftest$ac_exeext
10394 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10395 (eval $ac_link) 2>conftest.er1
10397 grep -v '^ *+' conftest.er1 >conftest.err
10399 cat conftest.err >&5
10400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10401 (exit $ac_status); } &&
10402 { ac_try='test -z "$ac_c_werror_flag"
10403 || test ! -s conftest.err'
10404 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10405 (eval $ac_try) 2>&5
10407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408 (exit $ac_status); }; } &&
10409 { ac_try='test -s conftest$ac_exeext'
10410 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10411 (eval $ac_try) 2>&5
10413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10414 (exit $ac_status); }; }; then
10415 lt_cv_cc_needs_belf=yes
10417 echo "$as_me: failed program was:" >&5
10418 sed 's/^/| /' conftest.$ac_ext >&5
10420 lt_cv_cc_needs_belf=no
10422 rm -f conftest.err conftest.$ac_objext \
10423 conftest$ac_exeext conftest.$ac_ext
10425 ac_cpp='$CPP $CPPFLAGS'
10426 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10427 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10428 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10431 echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
10432 echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
10433 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
10434 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
10435 CFLAGS="$SAVE_CFLAGS"
10438 *-*-cygwin* | *-*-mingw* | *-*-pw32*)
10439 if test -n "$ac_tool_prefix"; then
10440 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
10441 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
10442 echo "$as_me:$LINENO: checking for $ac_word" >&5
10443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10444 if test "${ac_cv_prog_DLLTOOL+set}" = set; then
10445 echo $ECHO_N "(cached) $ECHO_C" >&6
10447 if test -n "$DLLTOOL"; then
10448 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
10450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10451 for as_dir in $PATH
10454 test -z "$as_dir" && as_dir=.
10455 for ac_exec_ext in '' $ac_executable_extensions; do
10456 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10457 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
10458 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10466 DLLTOOL=$ac_cv_prog_DLLTOOL
10467 if test -n "$DLLTOOL"; then
10468 echo "$as_me:$LINENO: result: $DLLTOOL" >&5
10469 echo "${ECHO_T}$DLLTOOL" >&6
10471 echo "$as_me:$LINENO: result: no" >&5
10472 echo "${ECHO_T}no" >&6
10476 if test -z "$ac_cv_prog_DLLTOOL"; then
10477 ac_ct_DLLTOOL=$DLLTOOL
10478 # Extract the first word of "dlltool", so it can be a program name with args.
10479 set dummy dlltool; ac_word=$2
10480 echo "$as_me:$LINENO: checking for $ac_word" >&5
10481 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10482 if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then
10483 echo $ECHO_N "(cached) $ECHO_C" >&6
10485 if test -n "$ac_ct_DLLTOOL"; then
10486 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
10488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10489 for as_dir in $PATH
10492 test -z "$as_dir" && as_dir=.
10493 for ac_exec_ext in '' $ac_executable_extensions; do
10494 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10495 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
10496 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10502 test -z "$ac_cv_prog_ac_ct_DLLTOOL" && ac_cv_prog_ac_ct_DLLTOOL="false"
10505 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
10506 if test -n "$ac_ct_DLLTOOL"; then
10507 echo "$as_me:$LINENO: result: $ac_ct_DLLTOOL" >&5
10508 echo "${ECHO_T}$ac_ct_DLLTOOL" >&6
10510 echo "$as_me:$LINENO: result: no" >&5
10511 echo "${ECHO_T}no" >&6
10514 DLLTOOL=$ac_ct_DLLTOOL
10516 DLLTOOL="$ac_cv_prog_DLLTOOL"
10519 if test -n "$ac_tool_prefix"; then
10520 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
10521 set dummy ${ac_tool_prefix}as; ac_word=$2
10522 echo "$as_me:$LINENO: checking for $ac_word" >&5
10523 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10524 if test "${ac_cv_prog_AS+set}" = set; then
10525 echo $ECHO_N "(cached) $ECHO_C" >&6
10527 if test -n "$AS"; then
10528 ac_cv_prog_AS="$AS" # Let the user override the test.
10530 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10531 for as_dir in $PATH
10534 test -z "$as_dir" && as_dir=.
10535 for ac_exec_ext in '' $ac_executable_extensions; do
10536 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10537 ac_cv_prog_AS="${ac_tool_prefix}as"
10538 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10547 if test -n "$AS"; then
10548 echo "$as_me:$LINENO: result: $AS" >&5
10549 echo "${ECHO_T}$AS" >&6
10551 echo "$as_me:$LINENO: result: no" >&5
10552 echo "${ECHO_T}no" >&6
10556 if test -z "$ac_cv_prog_AS"; then
10558 # Extract the first word of "as", so it can be a program name with args.
10559 set dummy as; ac_word=$2
10560 echo "$as_me:$LINENO: checking for $ac_word" >&5
10561 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10562 if test "${ac_cv_prog_ac_ct_AS+set}" = set; then
10563 echo $ECHO_N "(cached) $ECHO_C" >&6
10565 if test -n "$ac_ct_AS"; then
10566 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
10568 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10569 for as_dir in $PATH
10572 test -z "$as_dir" && as_dir=.
10573 for ac_exec_ext in '' $ac_executable_extensions; do
10574 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10575 ac_cv_prog_ac_ct_AS="as"
10576 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10582 test -z "$ac_cv_prog_ac_ct_AS" && ac_cv_prog_ac_ct_AS="false"
10585 ac_ct_AS=$ac_cv_prog_ac_ct_AS
10586 if test -n "$ac_ct_AS"; then
10587 echo "$as_me:$LINENO: result: $ac_ct_AS" >&5
10588 echo "${ECHO_T}$ac_ct_AS" >&6
10590 echo "$as_me:$LINENO: result: no" >&5
10591 echo "${ECHO_T}no" >&6
10596 AS="$ac_cv_prog_AS"
10599 if test -n "$ac_tool_prefix"; then
10600 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
10601 set dummy ${ac_tool_prefix}objdump; ac_word=$2
10602 echo "$as_me:$LINENO: checking for $ac_word" >&5
10603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10604 if test "${ac_cv_prog_OBJDUMP+set}" = set; then
10605 echo $ECHO_N "(cached) $ECHO_C" >&6
10607 if test -n "$OBJDUMP"; then
10608 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
10610 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10611 for as_dir in $PATH
10614 test -z "$as_dir" && as_dir=.
10615 for ac_exec_ext in '' $ac_executable_extensions; do
10616 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10617 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
10618 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10626 OBJDUMP=$ac_cv_prog_OBJDUMP
10627 if test -n "$OBJDUMP"; then
10628 echo "$as_me:$LINENO: result: $OBJDUMP" >&5
10629 echo "${ECHO_T}$OBJDUMP" >&6
10631 echo "$as_me:$LINENO: result: no" >&5
10632 echo "${ECHO_T}no" >&6
10636 if test -z "$ac_cv_prog_OBJDUMP"; then
10637 ac_ct_OBJDUMP=$OBJDUMP
10638 # Extract the first word of "objdump", so it can be a program name with args.
10639 set dummy objdump; ac_word=$2
10640 echo "$as_me:$LINENO: checking for $ac_word" >&5
10641 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
10642 if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then
10643 echo $ECHO_N "(cached) $ECHO_C" >&6
10645 if test -n "$ac_ct_OBJDUMP"; then
10646 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
10648 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10649 for as_dir in $PATH
10652 test -z "$as_dir" && as_dir=.
10653 for ac_exec_ext in '' $ac_executable_extensions; do
10654 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10655 ac_cv_prog_ac_ct_OBJDUMP="objdump"
10656 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10662 test -z "$ac_cv_prog_ac_ct_OBJDUMP" && ac_cv_prog_ac_ct_OBJDUMP="false"
10665 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
10666 if test -n "$ac_ct_OBJDUMP"; then
10667 echo "$as_me:$LINENO: result: $ac_ct_OBJDUMP" >&5
10668 echo "${ECHO_T}$ac_ct_OBJDUMP" >&6
10670 echo "$as_me:$LINENO: result: no" >&5
10671 echo "${ECHO_T}no" >&6
10674 OBJDUMP=$ac_ct_OBJDUMP
10676 OBJDUMP="$ac_cv_prog_OBJDUMP"
10683 need_locks="$enable_libtool_lock"
10687 for ac_header in dlfcn.h
10689 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10690 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10691 echo "$as_me:$LINENO: checking for $ac_header" >&5
10692 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10693 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10694 echo $ECHO_N "(cached) $ECHO_C" >&6
10696 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10697 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10699 # Is the header compilable?
10700 echo "$as_me:$LINENO: checking $ac_header usability" >&5
10701 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
10702 cat >conftest.$ac_ext <<_ACEOF
10705 cat confdefs.h >>conftest.$ac_ext
10706 cat >>conftest.$ac_ext <<_ACEOF
10707 /* end confdefs.h. */
10708 $ac_includes_default
10709 #include <$ac_header>
10711 rm -f conftest.$ac_objext
10712 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10713 (eval $ac_compile) 2>conftest.er1
10715 grep -v '^ *+' conftest.er1 >conftest.err
10717 cat conftest.err >&5
10718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719 (exit $ac_status); } &&
10720 { ac_try='test -z "$ac_c_werror_flag"
10721 || test ! -s conftest.err'
10722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10723 (eval $ac_try) 2>&5
10725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10726 (exit $ac_status); }; } &&
10727 { ac_try='test -s conftest.$ac_objext'
10728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
10729 (eval $ac_try) 2>&5
10731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10732 (exit $ac_status); }; }; then
10733 ac_header_compiler=yes
10735 echo "$as_me: failed program was:" >&5
10736 sed 's/^/| /' conftest.$ac_ext >&5
10738 ac_header_compiler=no
10740 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
10741 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10742 echo "${ECHO_T}$ac_header_compiler" >&6
10744 # Is the header present?
10745 echo "$as_me:$LINENO: checking $ac_header presence" >&5
10746 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
10747 cat >conftest.$ac_ext <<_ACEOF
10750 cat confdefs.h >>conftest.$ac_ext
10751 cat >>conftest.$ac_ext <<_ACEOF
10752 /* end confdefs.h. */
10753 #include <$ac_header>
10755 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
10756 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
10758 grep -v '^ *+' conftest.er1 >conftest.err
10760 cat conftest.err >&5
10761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10762 (exit $ac_status); } >/dev/null; then
10763 if test -s conftest.err; then
10764 ac_cpp_err=$ac_c_preproc_warn_flag
10765 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10772 if test -z "$ac_cpp_err"; then
10773 ac_header_preproc=yes
10775 echo "$as_me: failed program was:" >&5
10776 sed 's/^/| /' conftest.$ac_ext >&5
10778 ac_header_preproc=no
10780 rm -f conftest.err conftest.$ac_ext
10781 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10782 echo "${ECHO_T}$ac_header_preproc" >&6
10784 # So? What about this header?
10785 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10787 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10788 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10789 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10790 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10791 ac_header_preproc=yes
10794 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10795 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10796 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10797 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10798 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10799 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10800 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10801 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10802 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10803 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10804 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10805 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10808 ## -------------------------------- ##
10809 ## Report this to gmp-bugs@swox.com ##
10810 ## -------------------------------- ##
10813 sed "s/^/$as_me: WARNING: /" >&2
10816 echo "$as_me:$LINENO: checking for $ac_header" >&5
10817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
10818 if eval "test \"\${$as_ac_Header+set}\" = set"; then
10819 echo $ECHO_N "(cached) $ECHO_C" >&6
10821 eval "$as_ac_Header=\$ac_header_preproc"
10823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
10824 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
10827 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10828 cat >>confdefs.h <<_ACEOF
10829 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10839 # Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
10841 # find the maximum length of command line arguments
10842 echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
10843 echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
10844 if test "${lt_cv_sys_max_cmd_len+set}" = set; then
10845 echo $ECHO_N "(cached) $ECHO_C" >&6
10852 # On DJGPP, this test can blow up pretty badly due to problems in libc
10853 # (any single argument exceeding 2000 bytes causes a buffer overrun
10854 # during glob expansion). Even if it were fixed, the result of this
10855 # check would be larger than it should be.
10856 lt_cv_sys_max_cmd_len=12288; # 12K is about right
10860 # Under GNU Hurd, this test is not required because there is
10861 # no limit to the length of command line arguments.
10862 # Libtool will interpret -1 as no limit whatsoever
10863 lt_cv_sys_max_cmd_len=-1;
10867 # On Win9x/ME, this test blows up -- it succeeds, but takes
10868 # about 5 minutes as the teststring grows exponentially.
10869 # Worse, since 9x/ME are not pre-emptively multitasking,
10870 # you end up with a "frozen" computer, even though with patience
10871 # the test eventually succeeds (with a max line length of 256k).
10872 # Instead, let's just punt: use the minimum linelength reported by
10873 # all of the supported platforms: 8192 (on NT/2K/XP).
10874 lt_cv_sys_max_cmd_len=8192;
10878 # On AmigaOS with pdksh, this test takes hours, literally.
10879 # So we just punt and use a minimum line length of 8192.
10880 lt_cv_sys_max_cmd_len=8192;
10884 # If test is not a shell built-in, we'll probably end up computing a
10885 # maximum length that is only half of the actual maximum length, but
10887 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
10888 = "XX$teststring") >/dev/null 2>&1 &&
10889 new_result=`expr "X$teststring" : ".*" 2>&1` &&
10890 lt_cv_sys_max_cmd_len=$new_result &&
10891 test $i != 17 # 1/2 MB should be enough
10894 teststring=$teststring$teststring
10897 # Add a significant safety factor because C++ compilers can tack on massive
10898 # amounts of additional arguments before passing them to the linker.
10899 # It appears as though 1/2 is a usable value.
10900 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
10906 if test -n $lt_cv_sys_max_cmd_len ; then
10907 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
10908 echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
10910 echo "$as_me:$LINENO: result: none" >&5
10911 echo "${ECHO_T}none" >&6
10917 # Check for command to grab the raw symbol name followed by C symbol from nm.
10918 echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10919 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
10920 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10921 echo $ECHO_N "(cached) $ECHO_C" >&6
10924 # These are sane defaults that work on at least a few old systems.
10925 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
10927 # Character class describing NM global symbol codes.
10928 symcode='[BCDEGRST]'
10930 # Regexp to match symbols that can be accessed directly from C.
10931 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10933 # Transform the above into a raw symbol and a C symbol.
10934 symxfrm='\1 \2\3 \3'
10936 # Transform an extracted symbol line into a proper C declaration
10937 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10939 # Transform an extracted symbol line into symbol name and symbol address
10940 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'"
10942 # Define system-specific variables.
10947 cygwin* | mingw* | pw32*)
10948 symcode='[ABCDGISTW]'
10950 hpux*) # Its linker distinguishes data from code symbols
10951 if test "$host_cpu" = ia64; then
10952 symcode='[ABCDEGRST]'
10954 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10955 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'"
10957 irix* | nonstopux*)
10958 symcode='[BCDEGRST]'
10961 symcode='[BCDEGQRST]'
10971 # Handle CRLF in mingw tool chain
10975 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10979 # If we're using GNU nm, then use its standard symbol codes.
10980 case `$NM -V 2>&1` in
10981 *GNU* | *'with BFD'*)
10982 symcode='[ABCDGIRSTW]' ;;
10985 # Try without a prefix undercore, then with it.
10986 for ac_symprfx in "" "_"; do
10988 # Write the raw and C identifiers.
10989 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
10991 # Check to see that the pipe works correctly.
10995 cat > conftest.$ac_ext <<EOF
11000 void nm_test_func(){}
11004 int main(){nm_test_var='a';nm_test_func();return(0);}
11007 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11008 (eval $ac_compile) 2>&5
11010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11011 (exit $ac_status); }; then
11012 # Now try to grab the symbols.
11014 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
11015 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
11017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11018 (exit $ac_status); } && test -s "$nlist"; then
11019 # Try sorting and uniquifying the output.
11020 if sort "$nlist" | uniq > "$nlist"T; then
11021 mv -f "$nlist"T "$nlist"
11026 # Make sure that we snagged all the symbols we need.
11027 if grep ' nm_test_var$' "$nlist" >/dev/null; then
11028 if grep ' nm_test_func$' "$nlist" >/dev/null; then
11029 cat <<EOF > conftest.$ac_ext
11035 # Now generate the symbol file.
11036 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
11038 cat <<EOF >> conftest.$ac_ext
11039 #if defined (__STDC__) && __STDC__
11040 # define lt_ptr_t void *
11042 # define lt_ptr_t char *
11046 /* The mapping between symbol names and symbols. */
11051 lt_preloaded_symbols[] =
11054 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
11055 cat <<\EOF >> conftest.$ac_ext
11063 # Now try linking the two files.
11064 mv conftest.$ac_objext conftstm.$ac_objext
11065 lt_save_LIBS="$LIBS"
11066 lt_save_CFLAGS="$CFLAGS"
11067 LIBS="conftstm.$ac_objext"
11068 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
11069 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11070 (eval $ac_link) 2>&5
11072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073 (exit $ac_status); } && test -s conftest${ac_exeext}; then
11076 LIBS="$lt_save_LIBS"
11077 CFLAGS="$lt_save_CFLAGS"
11079 echo "cannot find nm_test_func in $nlist" >&5
11082 echo "cannot find nm_test_var in $nlist" >&5
11085 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
11088 echo "$progname: failed program was:" >&5
11089 cat conftest.$ac_ext >&5
11091 rm -f conftest* conftst*
11093 # Do not use the global_symbol_pipe unless it works.
11094 if test "$pipe_works" = yes; then
11097 lt_cv_sys_global_symbol_pipe=
11103 if test -z "$lt_cv_sys_global_symbol_pipe"; then
11104 lt_cv_sys_global_symbol_to_cdecl=
11106 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
11107 echo "$as_me:$LINENO: result: failed" >&5
11108 echo "${ECHO_T}failed" >&6
11110 echo "$as_me:$LINENO: result: ok" >&5
11111 echo "${ECHO_T}ok" >&6
11114 echo "$as_me:$LINENO: checking for objdir" >&5
11115 echo $ECHO_N "checking for objdir... $ECHO_C" >&6
11116 if test "${lt_cv_objdir+set}" = set; then
11117 echo $ECHO_N "(cached) $ECHO_C" >&6
11119 rm -f .libs 2>/dev/null
11120 mkdir .libs 2>/dev/null
11121 if test -d .libs; then
11124 # MS-DOS does not allow filenames that begin with a dot.
11127 rmdir .libs 2>/dev/null
11129 echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
11130 echo "${ECHO_T}$lt_cv_objdir" >&6
11131 objdir=$lt_cv_objdir
11139 # AIX sometimes has problems with the GCC collect2 program. For some
11140 # reason, if we set the COLLECT_NAMES environment variable, the problems
11141 # vanish in a puff of smoke.
11142 if test "X${COLLECT_NAMES+set}" != Xset; then
11144 export COLLECT_NAMES
11149 # Sed substitution that helps us do robust quoting. It backslashifies
11150 # metacharacters that are still active within double-quoted strings.
11151 Xsed='sed -e s/^X//'
11152 sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
11154 # Same as above, but do not quote variable references.
11155 double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
11157 # Sed substitution to delay expansion of an escaped shell variable in a
11158 # double_quote_subst'ed string.
11159 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
11161 # Sed substitution to avoid accidental globbing in evaled expressions
11162 no_glob_subst='s/\*/\\\*/g'
11167 # Global variables:
11168 default_ofile=libtool
11169 can_build_shared=yes
11171 # All known linkers require a `.a' archive for static linking (except M$VC,
11172 # which needs '.lib').
11174 ltmain="$ac_aux_dir/ltmain.sh"
11175 ofile="$default_ofile"
11176 with_gnu_ld="$lt_cv_prog_gnu_ld"
11178 if test -n "$ac_tool_prefix"; then
11179 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
11180 set dummy ${ac_tool_prefix}ar; ac_word=$2
11181 echo "$as_me:$LINENO: checking for $ac_word" >&5
11182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11183 if test "${ac_cv_prog_AR+set}" = set; then
11184 echo $ECHO_N "(cached) $ECHO_C" >&6
11186 if test -n "$AR"; then
11187 ac_cv_prog_AR="$AR" # Let the user override the test.
11189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11190 for as_dir in $PATH
11193 test -z "$as_dir" && as_dir=.
11194 for ac_exec_ext in '' $ac_executable_extensions; do
11195 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11196 ac_cv_prog_AR="${ac_tool_prefix}ar"
11197 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11206 if test -n "$AR"; then
11207 echo "$as_me:$LINENO: result: $AR" >&5
11208 echo "${ECHO_T}$AR" >&6
11210 echo "$as_me:$LINENO: result: no" >&5
11211 echo "${ECHO_T}no" >&6
11215 if test -z "$ac_cv_prog_AR"; then
11217 # Extract the first word of "ar", so it can be a program name with args.
11218 set dummy ar; ac_word=$2
11219 echo "$as_me:$LINENO: checking for $ac_word" >&5
11220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11221 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
11222 echo $ECHO_N "(cached) $ECHO_C" >&6
11224 if test -n "$ac_ct_AR"; then
11225 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
11227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11228 for as_dir in $PATH
11231 test -z "$as_dir" && as_dir=.
11232 for ac_exec_ext in '' $ac_executable_extensions; do
11233 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11234 ac_cv_prog_ac_ct_AR="ar"
11235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11241 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
11244 ac_ct_AR=$ac_cv_prog_ac_ct_AR
11245 if test -n "$ac_ct_AR"; then
11246 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
11247 echo "${ECHO_T}$ac_ct_AR" >&6
11249 echo "$as_me:$LINENO: result: no" >&5
11250 echo "${ECHO_T}no" >&6
11255 AR="$ac_cv_prog_AR"
11258 if test -n "$ac_tool_prefix"; then
11259 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
11260 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
11261 echo "$as_me:$LINENO: checking for $ac_word" >&5
11262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11263 if test "${ac_cv_prog_RANLIB+set}" = set; then
11264 echo $ECHO_N "(cached) $ECHO_C" >&6
11266 if test -n "$RANLIB"; then
11267 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
11269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11270 for as_dir in $PATH
11273 test -z "$as_dir" && as_dir=.
11274 for ac_exec_ext in '' $ac_executable_extensions; do
11275 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11276 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
11277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11285 RANLIB=$ac_cv_prog_RANLIB
11286 if test -n "$RANLIB"; then
11287 echo "$as_me:$LINENO: result: $RANLIB" >&5
11288 echo "${ECHO_T}$RANLIB" >&6
11290 echo "$as_me:$LINENO: result: no" >&5
11291 echo "${ECHO_T}no" >&6
11295 if test -z "$ac_cv_prog_RANLIB"; then
11296 ac_ct_RANLIB=$RANLIB
11297 # Extract the first word of "ranlib", so it can be a program name with args.
11298 set dummy ranlib; ac_word=$2
11299 echo "$as_me:$LINENO: checking for $ac_word" >&5
11300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11301 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
11302 echo $ECHO_N "(cached) $ECHO_C" >&6
11304 if test -n "$ac_ct_RANLIB"; then
11305 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
11307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11308 for as_dir in $PATH
11311 test -z "$as_dir" && as_dir=.
11312 for ac_exec_ext in '' $ac_executable_extensions; do
11313 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11314 ac_cv_prog_ac_ct_RANLIB="ranlib"
11315 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11321 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
11324 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
11325 if test -n "$ac_ct_RANLIB"; then
11326 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
11327 echo "${ECHO_T}$ac_ct_RANLIB" >&6
11329 echo "$as_me:$LINENO: result: no" >&5
11330 echo "${ECHO_T}no" >&6
11333 RANLIB=$ac_ct_RANLIB
11335 RANLIB="$ac_cv_prog_RANLIB"
11338 if test -n "$ac_tool_prefix"; then
11339 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
11340 set dummy ${ac_tool_prefix}strip; ac_word=$2
11341 echo "$as_me:$LINENO: checking for $ac_word" >&5
11342 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11343 if test "${ac_cv_prog_STRIP+set}" = set; then
11344 echo $ECHO_N "(cached) $ECHO_C" >&6
11346 if test -n "$STRIP"; then
11347 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
11349 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11350 for as_dir in $PATH
11353 test -z "$as_dir" && as_dir=.
11354 for ac_exec_ext in '' $ac_executable_extensions; do
11355 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11356 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
11357 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11365 STRIP=$ac_cv_prog_STRIP
11366 if test -n "$STRIP"; then
11367 echo "$as_me:$LINENO: result: $STRIP" >&5
11368 echo "${ECHO_T}$STRIP" >&6
11370 echo "$as_me:$LINENO: result: no" >&5
11371 echo "${ECHO_T}no" >&6
11375 if test -z "$ac_cv_prog_STRIP"; then
11377 # Extract the first word of "strip", so it can be a program name with args.
11378 set dummy strip; ac_word=$2
11379 echo "$as_me:$LINENO: checking for $ac_word" >&5
11380 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
11381 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
11382 echo $ECHO_N "(cached) $ECHO_C" >&6
11384 if test -n "$ac_ct_STRIP"; then
11385 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
11387 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11388 for as_dir in $PATH
11391 test -z "$as_dir" && as_dir=.
11392 for ac_exec_ext in '' $ac_executable_extensions; do
11393 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
11394 ac_cv_prog_ac_ct_STRIP="strip"
11395 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11401 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
11404 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
11405 if test -n "$ac_ct_STRIP"; then
11406 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
11407 echo "${ECHO_T}$ac_ct_STRIP" >&6
11409 echo "$as_me:$LINENO: result: no" >&5
11410 echo "${ECHO_T}no" >&6
11415 STRIP="$ac_cv_prog_STRIP"
11420 old_CFLAGS="$CFLAGS"
11422 # Set sane defaults for various variables
11423 test -z "$AR" && AR=ar
11424 test -z "$AR_FLAGS" && AR_FLAGS=cru
11425 test -z "$AS" && AS=as
11426 test -z "$CC" && CC=cc
11427 test -z "$LTCC" && LTCC=$CC
11428 test -z "$DLLTOOL" && DLLTOOL=dlltool
11429 test -z "$LD" && LD=ld
11430 test -z "$LN_S" && LN_S="ln -s"
11431 test -z "$MAGIC_CMD" && MAGIC_CMD=file
11432 test -z "$NM" && NM=nm
11433 test -z "$SED" && SED=sed
11434 test -z "$OBJDUMP" && OBJDUMP=objdump
11435 test -z "$RANLIB" && RANLIB=:
11436 test -z "$STRIP" && STRIP=:
11437 test -z "$ac_objext" && ac_objext=o
11439 # Determine commands to create old-style static archives.
11440 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
11441 old_postinstall_cmds='chmod 644 $oldlib'
11442 old_postuninstall_cmds=
11444 if test -n "$RANLIB"; then
11447 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
11450 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
11453 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
11456 # Only perform the check for file, if the check method requires it
11457 case $deplibs_check_method in
11459 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
11460 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
11461 echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
11462 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11463 echo $ECHO_N "(cached) $ECHO_C" >&6
11467 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11470 lt_save_MAGIC_CMD="$MAGIC_CMD"
11471 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11472 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11473 for ac_dir in $ac_dummy; do
11475 test -z "$ac_dir" && ac_dir=.
11476 if test -f $ac_dir/${ac_tool_prefix}file; then
11477 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
11478 if test -n "$file_magic_test_file"; then
11479 case $deplibs_check_method in
11481 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11482 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11483 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11484 $EGREP "$file_magic_regex" > /dev/null; then
11489 *** Warning: the command libtool uses to detect shared libraries,
11490 *** $file_magic_cmd, produces output that libtool cannot recognize.
11491 *** The result is that libtool may fail to recognize shared libraries
11492 *** as such. This will affect the creation of libtool libraries that
11493 *** depend on shared libraries, but programs linked with such libtool
11494 *** libraries will work regardless of this problem. Nevertheless, you
11495 *** may want to report the problem to your system manager and/or to
11496 *** bug-libtool@gnu.org
11506 MAGIC_CMD="$lt_save_MAGIC_CMD"
11511 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11512 if test -n "$MAGIC_CMD"; then
11513 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11514 echo "${ECHO_T}$MAGIC_CMD" >&6
11516 echo "$as_me:$LINENO: result: no" >&5
11517 echo "${ECHO_T}no" >&6
11520 if test -z "$lt_cv_path_MAGIC_CMD"; then
11521 if test -n "$ac_tool_prefix"; then
11522 echo "$as_me:$LINENO: checking for file" >&5
11523 echo $ECHO_N "checking for file... $ECHO_C" >&6
11524 if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
11525 echo $ECHO_N "(cached) $ECHO_C" >&6
11529 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
11532 lt_save_MAGIC_CMD="$MAGIC_CMD"
11533 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
11534 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
11535 for ac_dir in $ac_dummy; do
11537 test -z "$ac_dir" && ac_dir=.
11538 if test -f $ac_dir/file; then
11539 lt_cv_path_MAGIC_CMD="$ac_dir/file"
11540 if test -n "$file_magic_test_file"; then
11541 case $deplibs_check_method in
11543 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
11544 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11545 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
11546 $EGREP "$file_magic_regex" > /dev/null; then
11551 *** Warning: the command libtool uses to detect shared libraries,
11552 *** $file_magic_cmd, produces output that libtool cannot recognize.
11553 *** The result is that libtool may fail to recognize shared libraries
11554 *** as such. This will affect the creation of libtool libraries that
11555 *** depend on shared libraries, but programs linked with such libtool
11556 *** libraries will work regardless of this problem. Nevertheless, you
11557 *** may want to report the problem to your system manager and/or to
11558 *** bug-libtool@gnu.org
11568 MAGIC_CMD="$lt_save_MAGIC_CMD"
11573 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
11574 if test -n "$MAGIC_CMD"; then
11575 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
11576 echo "${ECHO_T}$MAGIC_CMD" >&6
11578 echo "$as_me:$LINENO: result: no" >&5
11579 echo "${ECHO_T}no" >&6
11592 enable_win32_dll=yes
11594 # Check whether --enable-libtool-lock or --disable-libtool-lock was given.
11595 if test "${enable_libtool_lock+set}" = set; then
11596 enableval="$enable_libtool_lock"
11599 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
11602 # Check whether --with-pic or --without-pic was given.
11603 if test "${with_pic+set}" = set; then
11604 withval="$with_pic"
11605 pic_mode="$withval"
11609 test -z "$pic_mode" && pic_mode=default
11611 # Use C for the default configuration in the libtool script
11615 ac_cpp='$CPP $CPPFLAGS'
11616 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11617 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11618 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11621 # Source file extension for C test sources.
11624 # Object file extension for compiled C test sources.
11628 # Code to be used in simple compile tests
11629 lt_simple_compile_test_code="int some_variable = 0;\n"
11631 # Code to be used in simple link tests
11632 lt_simple_link_test_code='int main(){return(0);}\n'
11635 # If no C compiler was specified, use CC.
11638 # Allow CC to be a program name with arguments.
11643 # Check for any special shared library compilation flags.
11646 if test "$GCC" = no; then
11649 lt_prog_cc_shlib='-belf'
11653 if test -n "$lt_prog_cc_shlib"; then
11654 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
11655 echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
11656 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
11658 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
11659 echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
11660 lt_cv_prog_cc_can_build_shared=no
11666 # Check to make sure the static flag actually works.
11668 echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
11669 echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
11670 if test "${lt_prog_compiler_static_works+set}" = set; then
11671 echo $ECHO_N "(cached) $ECHO_C" >&6
11673 lt_prog_compiler_static_works=no
11674 save_LDFLAGS="$LDFLAGS"
11675 LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
11676 printf "$lt_simple_link_test_code" > conftest.$ac_ext
11677 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
11678 # The compiler can only warn and ignore the option if not recognized
11679 # So say no if there are warnings
11680 if test -s conftest.err; then
11681 # Append any errors to the config.log.
11682 cat conftest.err 1>&5
11684 lt_prog_compiler_static_works=yes
11688 LDFLAGS="$save_LDFLAGS"
11691 echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
11692 echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
11694 if test x"$lt_prog_compiler_static_works" = xyes; then
11697 lt_prog_compiler_static=
11703 lt_prog_compiler_no_builtin_flag=
11705 if test "$GCC" = yes; then
11706 lt_prog_compiler_no_builtin_flag=' -fno-builtin'
11709 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
11710 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
11711 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
11712 echo $ECHO_N "(cached) $ECHO_C" >&6
11714 lt_cv_prog_compiler_rtti_exceptions=no
11715 ac_outfile=conftest.$ac_objext
11716 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11717 lt_compiler_flag="-fno-rtti -fno-exceptions"
11718 # Insert the option either (1) after the last *FLAGS variable, or
11719 # (2) before a word containing "conftest.", or (3) at the end.
11720 # Note that $ac_compile itself does not contain backslashes and begins
11721 # with a dollar sign (not a hyphen), so the echo should work correctly.
11722 # The option is referenced via a variable to avoid confusing sed.
11723 lt_compile=`echo "$ac_compile" | $SED \
11724 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11725 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11726 -e 's:$: $lt_compiler_flag:'`
11727 (eval echo "\"\$as_me:11727: $lt_compile\"" >&5)
11728 (eval "$lt_compile" 2>conftest.err)
11730 cat conftest.err >&5
11731 echo "$as_me:11731: \$? = $ac_status" >&5
11732 if (exit $ac_status) && test -s "$ac_outfile"; then
11733 # The compiler can only warn and ignore the option if not recognized
11734 # So say no if there are warnings
11735 if test ! -s conftest.err; then
11736 lt_cv_prog_compiler_rtti_exceptions=yes
11742 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
11743 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
11745 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
11746 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
11753 lt_prog_compiler_wl=
11754 lt_prog_compiler_pic=
11755 lt_prog_compiler_static=
11757 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
11758 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
11760 if test "$GCC" = yes; then
11761 lt_prog_compiler_wl='-Wl,'
11762 lt_prog_compiler_static='-static'
11766 # All AIX code is PIC.
11767 if test "$host_cpu" = ia64; then
11768 # AIX 5 now supports IA64 processor
11769 lt_prog_compiler_static='-Bstatic'
11774 # FIXME: we need at least 68020 code to build shared libraries, but
11775 # adding the `-m68020' flag to GCC prevents building anything better,
11777 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
11780 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
11781 # PIC is the default for these OSes.
11784 mingw* | pw32* | os2*)
11785 # This hack is so that the source file can tell whether it is being
11786 # built for inclusion in a dll (and should export symbols for example).
11787 lt_prog_compiler_pic='-DDLL_EXPORT'
11790 darwin* | rhapsody*)
11791 # PIC is the default on this platform
11792 # Common symbols not allowed in MH_DYLIB files
11793 lt_prog_compiler_pic='-fno-common'
11797 # Just because we use GCC doesn't mean we suddenly get shared libraries
11798 # on systems that don't support them.
11799 lt_prog_compiler_can_build_shared=no
11804 if test -d /usr/nec; then
11805 lt_prog_compiler_pic=-Kconform_pic
11810 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11811 # not for PA HP-UX.
11812 case "$host_cpu" in
11817 lt_prog_compiler_pic='-fPIC'
11823 lt_prog_compiler_pic='-fPIC'
11827 # PORTME Check for flag to pass linker flags through the system compiler.
11830 lt_prog_compiler_wl='-Wl,'
11831 if test "$host_cpu" = ia64; then
11832 # AIX 5 now supports IA64 processor
11833 lt_prog_compiler_static='-Bstatic'
11835 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
11839 mingw* | pw32* | os2*)
11840 # This hack is so that the source file can tell whether it is being
11841 # built for inclusion in a dll (and should export symbols for example).
11842 lt_prog_compiler_pic='-DDLL_EXPORT'
11845 hpux9* | hpux10* | hpux11*)
11846 lt_prog_compiler_wl='-Wl,'
11847 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
11848 # not for PA HP-UX.
11849 case "$host_cpu" in
11854 lt_prog_compiler_pic='+Z'
11857 # Is there a better lt_prog_compiler_static that works with the bundled CC?
11858 lt_prog_compiler_static='${wl}-a ${wl}archive'
11861 irix5* | irix6* | nonstopux*)
11862 lt_prog_compiler_wl='-Wl,'
11863 # PIC (with -KPIC) is the default.
11864 lt_prog_compiler_static='-non_shared'
11868 lt_prog_compiler_pic='-KPIC'
11869 lt_prog_compiler_static='-Bstatic'
11875 lt_prog_compiler_wl='-Wl,'
11876 lt_prog_compiler_pic='-KPIC'
11877 lt_prog_compiler_static='-static'
11880 lt_prog_compiler_wl='-Wl,'
11881 # All Alpha code is PIC.
11882 lt_prog_compiler_static='-non_shared'
11887 osf3* | osf4* | osf5*)
11888 lt_prog_compiler_wl='-Wl,'
11889 # All OSF/1 code is PIC.
11890 lt_prog_compiler_static='-non_shared'
11894 lt_prog_compiler_pic='-Kpic'
11895 lt_prog_compiler_static='-dn'
11899 lt_prog_compiler_wl='-Wl,'
11900 lt_prog_compiler_pic='-KPIC'
11901 lt_prog_compiler_static='-Bstatic'
11905 lt_prog_compiler_wl='-Qoption ld '
11906 lt_prog_compiler_pic='-PIC'
11907 lt_prog_compiler_static='-Bstatic'
11910 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
11911 lt_prog_compiler_wl='-Wl,'
11912 lt_prog_compiler_pic='-KPIC'
11913 lt_prog_compiler_static='-Bstatic'
11917 if test -d /usr/nec ;then
11918 lt_prog_compiler_pic='-Kconform_pic'
11919 lt_prog_compiler_static='-Bstatic'
11924 lt_prog_compiler_pic='-pic'
11925 lt_prog_compiler_static='-Bstatic'
11929 lt_prog_compiler_can_build_shared=no
11934 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
11935 echo "${ECHO_T}$lt_prog_compiler_pic" >&6
11938 # Check to make sure the PIC flag actually works.
11940 if test -n "$lt_prog_compiler_pic"; then
11942 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
11943 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
11944 if test "${lt_prog_compiler_pic_works+set}" = set; then
11945 echo $ECHO_N "(cached) $ECHO_C" >&6
11947 lt_prog_compiler_pic_works=no
11948 ac_outfile=conftest.$ac_objext
11949 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
11950 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
11951 # Insert the option either (1) after the last *FLAGS variable, or
11952 # (2) before a word containing "conftest.", or (3) at the end.
11953 # Note that $ac_compile itself does not contain backslashes and begins
11954 # with a dollar sign (not a hyphen), so the echo should work correctly.
11955 # The option is referenced via a variable to avoid confusing sed.
11956 lt_compile=`echo "$ac_compile" | $SED \
11957 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
11958 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
11959 -e 's:$: $lt_compiler_flag:'`
11960 (eval echo "\"\$as_me:11960: $lt_compile\"" >&5)
11961 (eval "$lt_compile" 2>conftest.err)
11963 cat conftest.err >&5
11964 echo "$as_me:11964: \$? = $ac_status" >&5
11965 if (exit $ac_status) && test -s "$ac_outfile"; then
11966 # The compiler can only warn and ignore the option if not recognized
11967 # So say no if there are warnings
11968 if test ! -s conftest.err; then
11969 lt_prog_compiler_pic_works=yes
11975 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
11976 echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
11978 if test x"$lt_prog_compiler_pic_works" = xyes; then
11979 case $lt_prog_compiler_pic in
11981 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
11984 lt_prog_compiler_pic=
11985 lt_prog_compiler_can_build_shared=no
11990 # For platforms which do not support PIC, -DPIC is meaningless:
11992 lt_prog_compiler_pic=
11995 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
11999 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
12000 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
12001 if test "${lt_cv_prog_compiler_c_o+set}" = set; then
12002 echo $ECHO_N "(cached) $ECHO_C" >&6
12004 lt_cv_prog_compiler_c_o=no
12005 $rm -r conftest 2>/dev/null
12009 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12011 lt_compiler_flag="-o out/conftest2.$ac_objext"
12012 # Insert the option either (1) after the last *FLAGS variable, or
12013 # (2) before a word containing "conftest.", or (3) at the end.
12014 # Note that $ac_compile itself does not contain backslashes and begins
12015 # with a dollar sign (not a hyphen), so the echo should work correctly.
12016 lt_compile=`echo "$ac_compile" | $SED \
12017 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
12018 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
12019 -e 's:$: $lt_compiler_flag:'`
12020 (eval echo "\"\$as_me:12020: $lt_compile\"" >&5)
12021 (eval "$lt_compile" 2>out/conftest.err)
12023 cat out/conftest.err >&5
12024 echo "$as_me:12024: \$? = $ac_status" >&5
12025 if (exit $ac_status) && test -s out/conftest2.$ac_objext
12027 # The compiler can only warn and ignore the option if not recognized
12028 # So say no if there are warnings
12029 if test ! -s out/conftest.err; then
12030 lt_cv_prog_compiler_c_o=yes
12035 # SGI C++ compiler will create directory out/ii_files/ for
12036 # template instantiation
12037 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
12038 $rm out/* && rmdir out
12044 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
12045 echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
12048 hard_links="nottested"
12049 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
12050 # do not overwrite the value of need_locks provided by the user
12051 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
12052 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
12055 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12057 ln conftest.a conftest.b 2>&5 || hard_links=no
12058 ln conftest.a conftest.b 2>/dev/null && hard_links=no
12059 echo "$as_me:$LINENO: result: $hard_links" >&5
12060 echo "${ECHO_T}$hard_links" >&6
12061 if test "$hard_links" = no; then
12062 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
12063 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
12070 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
12071 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
12074 allow_undefined_flag=
12075 enable_shared_with_static_runtimes=no
12077 archive_expsym_cmds=
12078 old_archive_From_new_cmds=
12079 old_archive_from_expsyms_cmds=
12080 export_dynamic_flag_spec=
12081 whole_archive_flag_spec=
12082 thread_safe_flag_spec=
12083 hardcode_libdir_flag_spec=
12084 hardcode_libdir_flag_spec_ld=
12085 hardcode_libdir_separator=
12087 hardcode_minus_L=no
12088 hardcode_shlibpath_var=unsupported
12089 link_all_deplibs=unknown
12090 hardcode_automatic=no
12092 module_expsym_cmds=
12093 always_export_symbols=no
12094 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
12095 # include_expsyms should be a list of space-separated symbols to be *always*
12096 # included in the symbol list
12098 # exclude_expsyms can be an extended regexp of symbols to exclude
12099 # it will be wrapped by ` (' and `)$', so one must not match beginning or
12100 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
12101 # as well as any symbol that contains `d'.
12102 exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
12103 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
12104 # platforms (ab)use it in PIC code, but their linkers get confused if
12105 # the symbol is explicitly referenced. Since portable code cannot
12106 # rely on this symbol name, it's probably fine to never include it in
12107 # preloaded symbol tables.
12108 extract_expsyms_cmds=
12111 cygwin* | mingw* | pw32*)
12112 # FIXME: the MSVC++ port hasn't been tested in a loooong time
12113 # When not using gcc, we currently assume that we are using
12114 # Microsoft Visual C++.
12115 if test "$GCC" != yes; then
12125 if test "$with_gnu_ld" = yes; then
12126 # If archive_cmds runs LD, not CC, wlarc should be empty
12129 # See if GNU ld supports shared libraries.
12131 aix3* | aix4* | aix5*)
12132 # On AIX/PPC, the GNU linker is very broken
12133 if test "$host_cpu" != ia64; then
12137 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
12138 *** to be unable to reliably create shared libraries on AIX.
12139 *** Therefore, libtool is disabling shared libraries support. If you
12140 *** really care for shared libraries, you may want to modify your PATH
12141 *** so that a non-GNU linker is found, and then restart.
12148 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)'
12149 hardcode_libdir_flag_spec='-L$libdir'
12150 hardcode_minus_L=yes
12152 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
12153 # that the semantics of dynamic libraries on AmigaOS, at least up
12154 # to version 4, is to share data among multiple programs linked
12155 # with the same dynamic library. Since this doesn't match the
12156 # behavior of shared libraries on other platforms, we can't use
12162 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12163 allow_undefined_flag=unsupported
12164 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
12165 # support --undefined. This deserves some investigation. FIXME
12166 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12172 cygwin* | mingw* | pw32*)
12173 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
12174 # as there is no search path for DLLs.
12175 hardcode_libdir_flag_spec='-L$libdir'
12176 allow_undefined_flag=unsupported
12177 always_export_symbols=no
12178 enable_shared_with_static_runtimes=yes
12179 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
12181 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
12182 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12183 # If the export-symbols file already is a .def file (1st line
12184 # is EXPORTS), use it as is; otherwise, prepend...
12185 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
12186 cp $export_symbols $output_objdir/$soname.def;
12188 echo EXPORTS > $output_objdir/$soname.def;
12189 cat $export_symbols >> $output_objdir/$soname.def;
12191 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
12198 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12199 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
12202 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12203 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12208 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
12212 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
12213 *** create shared libraries on Solaris systems. Therefore, libtool
12214 *** is disabling shared libraries support. We urge you to upgrade GNU
12215 *** binutils to release 2.9.1 or newer. Another option is to modify
12216 *** your PATH or compiler configuration so that the native linker is
12217 *** used, and then restart.
12220 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12221 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12222 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12229 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12231 hardcode_direct=yes
12232 hardcode_shlibpath_var=no
12236 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12237 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12238 archive_cmds="$tmp_archive_cmds"
12239 supports_anon_versioning=no
12240 case `$LD -v 2>/dev/null` in
12241 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
12242 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
12243 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
12244 *\ 2.11.*) ;; # other 2.11 versions
12245 *) supports_anon_versioning=yes ;;
12247 if test $supports_anon_versioning = yes; then
12248 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
12249 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
12250 $echo "local: *; };" >> $output_objdir/$libname.ver~
12251 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
12253 archive_expsym_cmds="$tmp_archive_cmds"
12261 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
12262 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
12263 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
12270 if test "$ld_shlibs" = yes; then
12271 runpath_var=LD_RUN_PATH
12272 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
12273 export_dynamic_flag_spec='${wl}--export-dynamic'
12274 # ancient GNU ld didn't support --whole-archive et. al.
12275 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
12276 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
12278 whole_archive_flag_spec=
12282 # PORTME fill in a description of your system's linker (not GNU ld)
12285 allow_undefined_flag=unsupported
12286 always_export_symbols=yes
12287 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'
12288 # Note: this linker hardcodes the directories in LIBPATH if there
12289 # are no directories specified by -L.
12290 hardcode_minus_L=yes
12291 if test "$GCC" = yes && test -z "$link_static_flag"; then
12292 # Neither direct hardcoding nor static linking is supported with a
12294 hardcode_direct=unsupported
12299 if test "$host_cpu" = ia64; then
12300 # On IA64, the linker does run time linking by default, so we don't
12301 # have to do anything special.
12302 aix_use_runtimelinking=no
12303 exp_sym_flag='-Bexport'
12306 # If we're using GNU nm, then we don't want the "-C" option.
12307 # -C means demangle to AIX nm, but means don't demangle with GNU nm
12308 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
12309 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'
12311 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'
12313 aix_use_runtimelinking=no
12315 # Test if we are trying to use run time linking or normal
12316 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
12317 # need to do runtime linking.
12318 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
12319 for ld_flag in $LDFLAGS; do
12320 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
12321 aix_use_runtimelinking=yes
12327 exp_sym_flag='-bexport'
12328 no_entry_flag='-bnoentry'
12331 # When large executables or shared objects are built, AIX ld can
12332 # have problems creating the table of contents. If linking a library
12333 # or program results in "error TOC overflow" add -mminimal-toc to
12334 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
12335 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
12338 hardcode_direct=yes
12339 hardcode_libdir_separator=':'
12340 link_all_deplibs=yes
12342 if test "$GCC" = yes; then
12343 case $host_os in aix4.012|aix4.012.*)
12344 # We only want to do this on AIX 4.2 and lower, the check
12345 # below for broken collect2 doesn't work under 4.3+
12346 collect2name=`${CC} -print-prog-name=collect2`
12347 if test -f "$collect2name" && \
12348 strings "$collect2name" | grep resolve_lib_name >/dev/null
12350 # We have reworked collect2
12351 hardcode_direct=yes
12353 # We have old collect2
12354 hardcode_direct=unsupported
12355 # It fails to find uninstalled libraries when the uninstalled
12356 # path is not listed in the libpath. Setting hardcode_minus_L
12357 # to unsupported forces relinking
12358 hardcode_minus_L=yes
12359 hardcode_libdir_flag_spec='-L$libdir'
12360 hardcode_libdir_separator=
12363 shared_flag='-shared'
12366 if test "$host_cpu" = ia64; then
12367 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
12368 # chokes on -Wl,-G. The following line is correct:
12371 if test "$aix_use_runtimelinking" = yes; then
12372 shared_flag='${wl}-G'
12374 shared_flag='${wl}-bM:SRE'
12379 # It seems that -bexpall does not export symbols beginning with
12380 # underscore (_), so it is better to generate a list of symbols to export.
12381 always_export_symbols=yes
12382 if test "$aix_use_runtimelinking" = yes; then
12383 # Warning - without using the other runtime loading flags (-brtl),
12384 # -berok will link without error, but may produce a broken library.
12385 allow_undefined_flag='-berok'
12386 # Determine the default libpath from the value encoded in an empty executable.
12387 cat >conftest.$ac_ext <<_ACEOF
12390 cat confdefs.h >>conftest.$ac_ext
12391 cat >>conftest.$ac_ext <<_ACEOF
12392 /* end confdefs.h. */
12402 rm -f conftest.$ac_objext conftest$ac_exeext
12403 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12404 (eval $ac_link) 2>conftest.er1
12406 grep -v '^ *+' conftest.er1 >conftest.err
12408 cat conftest.err >&5
12409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12410 (exit $ac_status); } &&
12411 { ac_try='test -z "$ac_c_werror_flag"
12412 || test ! -s conftest.err'
12413 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12414 (eval $ac_try) 2>&5
12416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12417 (exit $ac_status); }; } &&
12418 { ac_try='test -s conftest$ac_exeext'
12419 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12420 (eval $ac_try) 2>&5
12422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12423 (exit $ac_status); }; }; then
12425 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12427 # Check for a 64-bit object if we didn't find anything.
12428 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12431 echo "$as_me: failed program was:" >&5
12432 sed 's/^/| /' conftest.$ac_ext >&5
12435 rm -f conftest.err conftest.$ac_objext \
12436 conftest$ac_exeext conftest.$ac_ext
12437 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12439 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12440 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
12442 if test "$host_cpu" = ia64; then
12443 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
12444 allow_undefined_flag="-z nodefs"
12445 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
12447 # Determine the default libpath from the value encoded in an empty executable.
12448 cat >conftest.$ac_ext <<_ACEOF
12451 cat confdefs.h >>conftest.$ac_ext
12452 cat >>conftest.$ac_ext <<_ACEOF
12453 /* end confdefs.h. */
12463 rm -f conftest.$ac_objext conftest$ac_exeext
12464 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
12465 (eval $ac_link) 2>conftest.er1
12467 grep -v '^ *+' conftest.er1 >conftest.err
12469 cat conftest.err >&5
12470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12471 (exit $ac_status); } &&
12472 { ac_try='test -z "$ac_c_werror_flag"
12473 || test ! -s conftest.err'
12474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12475 (eval $ac_try) 2>&5
12477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12478 (exit $ac_status); }; } &&
12479 { ac_try='test -s conftest$ac_exeext'
12480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
12481 (eval $ac_try) 2>&5
12483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12484 (exit $ac_status); }; }; then
12486 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12488 # Check for a 64-bit object if we didn't find anything.
12489 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
12492 echo "$as_me: failed program was:" >&5
12493 sed 's/^/| /' conftest.$ac_ext >&5
12496 rm -f conftest.err conftest.$ac_objext \
12497 conftest$ac_exeext conftest.$ac_ext
12498 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
12500 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
12501 # Warning - without using the other run time loading flags,
12502 # -berok will link without error, but may produce a broken library.
12503 no_undefined_flag=' ${wl}-bernotok'
12504 allow_undefined_flag=' ${wl}-berok'
12505 # -bexpall does not export symbols beginning with underscore (_)
12506 always_export_symbols=yes
12507 # Exported symbols can be pulled into shared objects from archives
12508 whole_archive_flag_spec=' '
12509 archive_cmds_need_lc=yes
12510 # This is similar to how AIX traditionally builds it's shared libraries.
12511 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
12517 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)'
12518 hardcode_libdir_flag_spec='-L$libdir'
12519 hardcode_minus_L=yes
12520 # see comment about different semantics on the GNU ld section
12525 export_dynamic_flag_spec=-rdynamic
12528 cygwin* | mingw* | pw32*)
12529 # When not using gcc, we currently assume that we are using
12530 # Microsoft Visual C++.
12531 # hardcode_libdir_flag_spec is actually meaningless, as there is
12532 # no search path for DLLs.
12533 hardcode_libdir_flag_spec=' '
12534 allow_undefined_flag=unsupported
12535 # Tell ltmain to make .lib files, not .a files.
12537 # Tell ltmain to make .dll files, not .so files.
12539 # FIXME: Setting linknames here is a bad hack.
12540 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
12541 # The linker will automatically build a .lib file if we build a DLL.
12542 old_archive_From_new_cmds='true'
12543 # FIXME: Should let the user specify the lib program.
12544 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
12545 fix_srcfile_path='`cygpath -w "$srcfile"`'
12546 enable_shared_with_static_runtimes=yes
12549 darwin* | rhapsody*)
12550 if test "$GXX" = yes ; then
12551 archive_cmds_need_lc=no
12553 rhapsody* | darwin1.[012])
12554 allow_undefined_flag='-undefined suppress'
12557 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
12558 allow_undefined_flag='-flat_namespace -undefined suppress'
12560 case ${MACOSX_DEPLOYMENT_TARGET} in
12562 allow_undefined_flag='-flat_namespace -undefined suppress'
12565 allow_undefined_flag='-undefined dynamic_lookup'
12571 lt_int_apple_cc_single_mod=no
12572 output_verbose_link_cmd='echo'
12573 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
12574 lt_int_apple_cc_single_mod=yes
12576 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12577 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
12579 archive_cmds='$CC -r ${wl}-bind_at_load -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'
12581 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
12582 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
12583 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
12584 archive_expsym_cmds='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}'
12586 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
12588 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}'
12590 hardcode_automatic=yes
12591 hardcode_shlibpath_var=unsupported
12592 whole_archive_flag_spec='-all_load $convenience'
12593 link_all_deplibs=yes
12600 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12601 hardcode_libdir_flag_spec='-L$libdir'
12602 hardcode_shlibpath_var=no
12609 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
12610 # support. Future versions do this automatically, but an explicit c++rt0.o
12611 # does not break anything, and helps significantly (at the cost of a little
12614 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
12615 hardcode_libdir_flag_spec='-R$libdir'
12616 hardcode_direct=yes
12617 hardcode_shlibpath_var=no
12620 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
12622 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12623 hardcode_direct=yes
12624 hardcode_minus_L=yes
12625 hardcode_shlibpath_var=no
12628 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
12629 freebsd* | kfreebsd*-gnu)
12630 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
12631 hardcode_libdir_flag_spec='-R$libdir'
12632 hardcode_direct=yes
12633 hardcode_shlibpath_var=no
12637 if test "$GCC" = yes; then
12638 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'
12640 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'
12642 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12643 hardcode_libdir_separator=:
12644 hardcode_direct=yes
12646 # hardcode_minus_L: Not really in the search PATH,
12647 # but as the default location of the library.
12648 hardcode_minus_L=yes
12649 export_dynamic_flag_spec='${wl}-E'
12653 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
12654 case "$host_cpu" in
12656 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12659 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
12663 case "$host_cpu" in
12665 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
12668 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
12672 if test "$with_gnu_ld" = no; then
12673 case "$host_cpu" in
12675 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12676 hardcode_libdir_flag_spec_ld='+b $libdir'
12677 hardcode_libdir_separator=:
12679 hardcode_shlibpath_var=no
12682 hardcode_libdir_flag_spec='-L$libdir'
12684 hardcode_shlibpath_var=no
12686 # hardcode_minus_L: Not really in the search PATH,
12687 # but as the default location of the library.
12688 hardcode_minus_L=yes
12691 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
12692 hardcode_libdir_separator=:
12693 hardcode_direct=yes
12694 export_dynamic_flag_spec='${wl}-E'
12696 # hardcode_minus_L: Not really in the search PATH,
12697 # but as the default location of the library.
12698 hardcode_minus_L=yes
12704 irix5* | irix6* | nonstopux*)
12705 if test "$GCC" = yes; then
12706 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'
12708 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'
12709 hardcode_libdir_flag_spec_ld='-rpath $libdir'
12711 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12712 hardcode_libdir_separator=:
12713 link_all_deplibs=yes
12717 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
12718 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
12720 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
12722 hardcode_libdir_flag_spec='-R$libdir'
12723 hardcode_direct=yes
12724 hardcode_shlibpath_var=no
12728 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12729 hardcode_direct=yes
12730 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12731 hardcode_libdir_separator=:
12732 hardcode_shlibpath_var=no
12736 hardcode_direct=yes
12737 hardcode_shlibpath_var=no
12738 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
12739 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12740 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12741 export_dynamic_flag_spec='${wl}-E'
12744 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
12745 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
12746 hardcode_libdir_flag_spec='-R$libdir'
12749 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
12750 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
12757 hardcode_libdir_flag_spec='-L$libdir'
12758 hardcode_minus_L=yes
12759 allow_undefined_flag=unsupported
12760 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'
12761 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
12765 if test "$GCC" = yes; then
12766 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12767 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'
12769 allow_undefined_flag=' -expect_unresolved \*'
12770 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'
12772 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12773 hardcode_libdir_separator=:
12776 osf4* | osf5*) # as osf3* with the addition of -msym flag
12777 if test "$GCC" = yes; then
12778 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
12779 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'
12780 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
12782 allow_undefined_flag=' -expect_unresolved \*'
12783 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'
12784 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
12785 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
12787 # Both c and cxx compiler support -rpath directly
12788 hardcode_libdir_flag_spec='-rpath $libdir'
12790 hardcode_libdir_separator=:
12794 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12795 hardcode_shlibpath_var=no
12796 export_dynamic_flag_spec='${wl}-Bexport'
12797 runpath_var=LD_RUN_PATH
12798 hardcode_runpath_var=yes
12802 no_undefined_flag=' -z text'
12803 if test "$GCC" = yes; then
12804 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12805 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12806 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
12808 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12809 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12810 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12812 hardcode_libdir_flag_spec='-R$libdir'
12813 hardcode_shlibpath_var=no
12815 solaris2.[0-5] | solaris2.[0-5].*) ;;
12816 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
12817 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
12819 link_all_deplibs=yes
12823 if test "x$host_vendor" = xsequent; then
12824 # Use $CC to link under sequent, because it throws in some extra .o
12825 # files that make .init and .fini sections work.
12826 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
12828 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
12830 hardcode_libdir_flag_spec='-L$libdir'
12831 hardcode_direct=yes
12832 hardcode_minus_L=yes
12833 hardcode_shlibpath_var=no
12837 case $host_vendor in
12839 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12840 hardcode_direct=yes # is this really true???
12843 ## LD is ld it makes a PLAMLIB
12844 ## CC just makes a GrossModule.
12845 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12846 reload_cmds='$CC -r -o $output$reload_objs'
12850 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12851 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
12854 runpath_var='LD_RUN_PATH'
12855 hardcode_shlibpath_var=no
12859 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12860 hardcode_shlibpath_var=no
12861 export_dynamic_flag_spec='-Bexport'
12865 if test -d /usr/nec; then
12866 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12867 hardcode_shlibpath_var=no
12868 runpath_var=LD_RUN_PATH
12869 hardcode_runpath_var=yes
12875 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
12876 hardcode_direct=yes
12877 hardcode_minus_L=no
12878 hardcode_shlibpath_var=no
12879 hardcode_runpath_var=yes
12880 runpath_var=LD_RUN_PATH
12883 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
12884 no_undefined_flag='${wl}-z ${wl}text'
12885 if test "$GCC" = yes; then
12886 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12888 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
12890 runpath_var='LD_RUN_PATH'
12891 hardcode_shlibpath_var=no
12895 no_undefined_flag=' -z text'
12896 # $CC -shared without GNU ld will not create a library from C++
12897 # object files and a static libstdc++, better avoid it by now
12898 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
12899 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
12900 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
12901 hardcode_libdir_flag_spec=
12902 hardcode_shlibpath_var=no
12903 runpath_var='LD_RUN_PATH'
12907 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
12908 hardcode_libdir_flag_spec='-L$libdir'
12909 hardcode_shlibpath_var=no
12918 echo "$as_me:$LINENO: result: $ld_shlibs" >&5
12919 echo "${ECHO_T}$ld_shlibs" >&6
12920 test "$ld_shlibs" = no && can_build_shared=no
12922 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
12923 if test "$GCC" = yes; then
12924 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
12928 # Do we need to explicitly link libc?
12930 case "x$archive_cmds_need_lc" in
12932 # Assume -lc should be added
12933 archive_cmds_need_lc=yes
12935 if test "$enable_shared" = yes && test "$GCC" = yes; then
12936 case $archive_cmds in
12938 # FIXME: we may have to deal with multi-command sequences.
12941 # Test whether the compiler implicitly links with -lc since on some
12942 # systems, -lgcc has to come before -lc. If gcc already passes -lc
12943 # to ld, don't add -lc before -lgcc.
12944 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
12945 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
12947 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
12949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
12950 (eval $ac_compile) 2>&5
12952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12953 (exit $ac_status); } 2>conftest.err; then
12956 libobjs=conftest.$ac_objext
12958 wl=$lt_prog_compiler_wl
12964 lt_save_allow_undefined_flag=$allow_undefined_flag
12965 allow_undefined_flag=
12966 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
12967 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
12969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12970 (exit $ac_status); }
12972 archive_cmds_need_lc=no
12974 archive_cmds_need_lc=yes
12976 allow_undefined_flag=$lt_save_allow_undefined_flag
12978 cat conftest.err 1>&5
12981 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
12982 echo "${ECHO_T}$archive_cmds_need_lc" >&6
12989 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
12990 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
12991 library_names_spec=
12992 libname_spec='lib$name'
12996 postuninstall_cmds=
13000 shlibpath_overrides_runpath=unknown
13002 dynamic_linker="$host_os ld.so"
13003 sys_lib_dlsearch_path_spec="/lib /usr/lib"
13004 if test "$GCC" = yes; then
13005 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13006 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
13007 # if the path contains ";" then we assume it to be the separator
13008 # otherwise default to the standard path separator (i.e. ":") - it is
13009 # assumed that no part of a normal pathname contains ";" but that should
13010 # okay in the real world where ";" in dirpaths is itself problematic.
13011 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13013 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13016 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
13018 need_lib_prefix=unknown
13019 hardcode_into_libs=no
13021 # when you set need_version to no, make sure it does not cause -set_version
13022 # flags to be left without arguments
13023 need_version=unknown
13028 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
13029 shlibpath_var=LIBPATH
13031 # AIX 3 has no versioning support, so we append a major version to the name.
13032 soname_spec='${libname}${release}${shared_ext}$major'
13039 hardcode_into_libs=yes
13040 if test "$host_cpu" = ia64; then
13041 # AIX 5 supports IA64
13042 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
13043 shlibpath_var=LD_LIBRARY_PATH
13045 # With GCC up to 2.95.x, collect2 would create an import file
13046 # for dependence libraries. The import file would start with
13047 # the line `#! .'. This would cause the generated library to
13048 # depend on `.', always an invalid library. This was fixed in
13049 # development snapshots of GCC prior to 3.0.
13051 aix4 | aix4.[01] | aix4.[01].*)
13052 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
13054 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
13057 can_build_shared=no
13061 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
13062 # soname into executable. Probably we can add versioning support to
13063 # collect2, so additional links can be useful in future.
13064 if test "$aix_use_runtimelinking" = yes; then
13065 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
13066 # instead of lib<name>.a to let people know that these are not
13067 # typical AIX shared libraries.
13068 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13070 # We preserve .a as extension for shared libraries through AIX4.2
13071 # and later when we are not doing run time linking.
13072 library_names_spec='${libname}${release}.a $libname.a'
13073 soname_spec='${libname}${release}${shared_ext}$major'
13075 shlibpath_var=LIBPATH
13080 library_names_spec='$libname.ixlibrary $libname.a'
13081 # Create ${libname}_ixlibrary.a entries in /sys/libs.
13082 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'
13086 library_names_spec='${libname}${shared_ext}'
13087 dynamic_linker="$host_os ld.so"
13088 shlibpath_var=LIBRARY_PATH
13094 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13095 soname_spec='${libname}${release}${shared_ext}$major'
13096 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
13097 shlibpath_var=LD_LIBRARY_PATH
13098 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
13099 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
13100 # the default ld.so.conf also contains /usr/contrib/lib and
13101 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
13102 # libtool to hard-code these into programs
13105 cygwin* | mingw* | pw32*)
13106 version_type=windows
13111 case $GCC,$host_os in
13112 yes,cygwin* | yes,mingw* | yes,pw32*)
13113 library_names_spec='$libname.dll.a'
13114 # DLL is installed to $(libdir)/../bin by postinstall_cmds
13115 postinstall_cmds='base_file=`basename \${file}`~
13116 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
13117 dldir=$destdir/`dirname \$dlpath`~
13118 test -d \$dldir || mkdir -p \$dldir~
13119 $install_prog $dir/$dlname \$dldir/$dlname'
13120 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
13121 dlpath=$dir/\$dldll~
13123 shlibpath_overrides_runpath=yes
13127 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
13128 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13129 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
13132 # MinGW DLLs use traditional 'lib' prefix
13133 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
13134 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
13135 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
13136 # It is most probably a Windows format PATH printed by
13137 # mingw gcc, but we are running on Cygwin. Gcc prints its search
13138 # path with ; separators, and with drive letters. We can handle the
13139 # drive letters (cygwin fileutils understands them), so leave them,
13140 # especially as we might pass files found there to a mingw objdump,
13141 # which wouldn't understand a cygwinified path. Ahh.
13142 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
13144 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
13148 # pw32 DLLs use 'pw' prefix rather than 'lib'
13149 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
13155 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
13158 dynamic_linker='Win32 ld.exe'
13159 # FIXME: first we should search . and the directory the executable is in
13163 darwin* | rhapsody*)
13164 dynamic_linker="$host_os dyld"
13165 version_type=darwin
13168 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
13169 soname_spec='${libname}${release}${major}$shared_ext'
13170 shlibpath_overrides_runpath=yes
13171 shlibpath_var=DYLD_LIBRARY_PATH
13172 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
13173 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
13174 if test "$GCC" = yes; then
13175 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
13177 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
13179 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
13186 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
13187 soname_spec='${libname}${release}${shared_ext}$major'
13188 shlibpath_var=LD_LIBRARY_PATH
13199 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13200 soname_spec='${libname}${release}${shared_ext}$major'
13201 shlibpath_var=LD_LIBRARY_PATH
13202 shlibpath_overrides_runpath=no
13203 hardcode_into_libs=yes
13204 dynamic_linker='GNU ld.so'
13208 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
13209 version_type=freebsd-$objformat
13210 case $version_type in
13212 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
13217 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
13221 shlibpath_var=LD_LIBRARY_PATH
13224 shlibpath_overrides_runpath=yes
13226 freebsd3.01* | freebsdelf3.01*)
13227 shlibpath_overrides_runpath=yes
13228 hardcode_into_libs=yes
13231 shlibpath_overrides_runpath=no
13232 hardcode_into_libs=yes
13241 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
13242 soname_spec='${libname}${release}${shared_ext}$major'
13243 shlibpath_var=LD_LIBRARY_PATH
13244 hardcode_into_libs=yes
13247 hpux9* | hpux10* | hpux11*)
13248 # Give a soname corresponding to the major version so that dld.sl refuses to
13249 # link against other versions.
13253 case "$host_cpu" in
13256 hardcode_into_libs=yes
13257 dynamic_linker="$host_os dld.so"
13258 shlibpath_var=LD_LIBRARY_PATH
13259 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13260 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13261 soname_spec='${libname}${release}${shared_ext}$major'
13262 if test "X$HPUX_IA64_MODE" = X32; then
13263 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
13265 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
13267 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13271 hardcode_into_libs=yes
13272 dynamic_linker="$host_os dld.sl"
13273 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
13274 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
13275 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13276 soname_spec='${libname}${release}${shared_ext}$major'
13277 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
13278 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
13282 dynamic_linker="$host_os dld.sl"
13283 shlibpath_var=SHLIB_PATH
13284 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
13285 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13286 soname_spec='${libname}${release}${shared_ext}$major'
13289 # HP-UX runs *really* slowly unless shared libraries are mode 555.
13290 postinstall_cmds='chmod 555 $lib'
13293 irix5* | irix6* | nonstopux*)
13295 nonstopux*) version_type=nonstopux ;;
13297 if test "$lt_cv_prog_gnu_ld" = yes; then
13305 soname_spec='${libname}${release}${shared_ext}$major'
13306 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
13308 irix5* | nonstopux*)
13309 libsuff= shlibsuff=
13312 case $LD in # libtool.m4 will add one of these switches to LD
13313 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
13314 libsuff= shlibsuff= libmagic=32-bit;;
13315 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
13316 libsuff=32 shlibsuff=N32 libmagic=N32;;
13317 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
13318 libsuff=64 shlibsuff=64 libmagic=64-bit;;
13319 *) libsuff= shlibsuff= libmagic=never-match;;
13323 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
13324 shlibpath_overrides_runpath=no
13325 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
13326 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
13327 hardcode_into_libs=yes
13330 # No shared lib support for Linux oldld, aout, or coff.
13331 linux*oldld* | linux*aout* | linux*coff*)
13335 # This must be Linux ELF.
13340 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13341 soname_spec='${libname}${release}${shared_ext}$major'
13342 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
13343 shlibpath_var=LD_LIBRARY_PATH
13344 shlibpath_overrides_runpath=no
13345 # This implies no fast_install, which is unacceptable.
13346 # Some rework will be needed to allow for fast_install
13347 # before this can be enabled.
13348 hardcode_into_libs=yes
13350 # Append ld.so.conf contents to the search path
13351 if test -f /etc/ld.so.conf; then
13352 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
13353 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
13356 # We used to test for /lib/ld.so.1 and disable shared libraries on
13357 # powerpc, because MkLinux only supported shared libraries with the
13358 # GNU dynamic linker. Since this was broken with cross compilers,
13359 # most powerpc-linux boxes support dynamic linking these days and
13360 # people can always --disable-shared, the test was removed, and we
13361 # assume the GNU/Linux dynamic linker is in use.
13362 dynamic_linker='GNU/Linux ld.so'
13369 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13370 soname_spec='${libname}${release}${shared_ext}$major'
13371 shlibpath_var=LD_LIBRARY_PATH
13372 shlibpath_overrides_runpath=no
13373 hardcode_into_libs=yes
13374 dynamic_linker='GNU ld.so'
13381 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
13382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13383 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13384 dynamic_linker='NetBSD (a.out) ld.so'
13386 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
13387 soname_spec='${libname}${release}${shared_ext}$major'
13388 dynamic_linker='NetBSD ld.elf_so'
13390 shlibpath_var=LD_LIBRARY_PATH
13391 shlibpath_overrides_runpath=yes
13392 hardcode_into_libs=yes
13397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13398 shlibpath_var=LD_LIBRARY_PATH
13399 shlibpath_overrides_runpath=yes
13406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13407 soname_spec='${libname}${release}${shared_ext}$major'
13408 shlibpath_var=LD_LIBRARY_PATH
13409 shlibpath_overrides_runpath=yes
13416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13417 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
13418 shlibpath_var=LD_LIBRARY_PATH
13419 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
13421 openbsd2.[89] | openbsd2.[89].*)
13422 shlibpath_overrides_runpath=no
13425 shlibpath_overrides_runpath=yes
13429 shlibpath_overrides_runpath=yes
13434 libname_spec='$name'
13437 library_names_spec='$libname${shared_ext} $libname.a'
13438 dynamic_linker='OS/2 ld.exe'
13439 shlibpath_var=LIBPATH
13442 osf3* | osf4* | osf5*)
13446 soname_spec='${libname}${release}${shared_ext}$major'
13447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13448 shlibpath_var=LD_LIBRARY_PATH
13449 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
13450 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
13455 soname_spec='${libname}${release}${shared_ext}$major'
13456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13457 shlibpath_var=LD_LIBRARY_PATH
13464 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13465 soname_spec='${libname}${release}${shared_ext}$major'
13466 shlibpath_var=LD_LIBRARY_PATH
13467 shlibpath_overrides_runpath=yes
13468 hardcode_into_libs=yes
13469 # ldd complains unless libraries are executable
13470 postinstall_cmds='chmod +x $lib'
13475 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
13476 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
13477 shlibpath_var=LD_LIBRARY_PATH
13478 shlibpath_overrides_runpath=yes
13479 if test "$with_gnu_ld" = yes; then
13485 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
13487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13488 soname_spec='${libname}${release}${shared_ext}$major'
13489 shlibpath_var=LD_LIBRARY_PATH
13490 case $host_vendor in
13492 shlibpath_overrides_runpath=no
13494 export_dynamic_flag_spec='${wl}-Blargedynsym'
13495 runpath_var=LD_RUN_PATH
13503 shlibpath_overrides_runpath=no
13504 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
13510 if test -d /usr/nec ;then
13512 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
13513 soname_spec='$libname${shared_ext}.$major'
13514 shlibpath_var=LD_LIBRARY_PATH
13520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
13521 soname_spec='${libname}${release}${shared_ext}$major'
13522 shlibpath_var=LD_LIBRARY_PATH
13529 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
13530 echo "${ECHO_T}$dynamic_linker" >&6
13531 test "$dynamic_linker" = no && can_build_shared=no
13533 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
13534 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
13536 if test -n "$hardcode_libdir_flag_spec" || \
13537 test -n "$runpath_var " || \
13538 test "X$hardcode_automatic"="Xyes" ; then
13540 # We can hardcode non-existant directories.
13541 if test "$hardcode_direct" != no &&
13542 # If the only mechanism to avoid hardcoding is shlibpath_var, we
13543 # have to relink, otherwise we might link with an installed library
13544 # when we should be linking with a yet-to-be-installed one
13545 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
13546 test "$hardcode_minus_L" != no; then
13547 # Linking always hardcodes the temporary library directory.
13548 hardcode_action=relink
13550 # We can link without hardcoding, and we can hardcode nonexisting dirs.
13551 hardcode_action=immediate
13554 # We cannot hardcode anything, or else we can only hardcode existing
13556 hardcode_action=unsupported
13558 echo "$as_me:$LINENO: result: $hardcode_action" >&5
13559 echo "${ECHO_T}$hardcode_action" >&6
13561 if test "$hardcode_action" = relink; then
13562 # Fast installation is not supported
13563 enable_fast_install=no
13564 elif test "$shlibpath_overrides_runpath" = yes ||
13565 test "$enable_shared" = no; then
13566 # Fast installation is not necessary
13567 enable_fast_install=needless
13572 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
13573 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
13574 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
13575 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
13576 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
13577 echo "$as_me:$LINENO: result: yes" >&5
13578 echo "${ECHO_T}yes" >&6
13580 # FIXME - insert some real tests, host_os isn't really good enough
13583 if test -n "$STRIP" ; then
13584 striplib="$STRIP -x"
13585 echo "$as_me:$LINENO: result: yes" >&5
13586 echo "${ECHO_T}yes" >&6
13588 echo "$as_me:$LINENO: result: no" >&5
13589 echo "${ECHO_T}no" >&6
13593 echo "$as_me:$LINENO: result: no" >&5
13594 echo "${ECHO_T}no" >&6
13599 if test "x$enable_dlopen" != xyes; then
13600 enable_dlopen=unknown
13601 enable_dlopen_self=unknown
13602 enable_dlopen_self_static=unknown
13609 lt_cv_dlopen="load_add_on"
13611 lt_cv_dlopen_self=yes
13615 lt_cv_dlopen="LoadLibrary"
13620 lt_cv_dlopen="dlopen"
13625 # if libdl is installed we need to link against it
13626 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13627 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13628 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13629 echo $ECHO_N "(cached) $ECHO_C" >&6
13631 ac_check_lib_save_LIBS=$LIBS
13633 cat >conftest.$ac_ext <<_ACEOF
13636 cat confdefs.h >>conftest.$ac_ext
13637 cat >>conftest.$ac_ext <<_ACEOF
13638 /* end confdefs.h. */
13640 /* Override any gcc2 internal prototype to avoid an error. */
13644 /* We use char because int might match the return type of a gcc2
13645 builtin and then its argument prototype would still apply. */
13655 rm -f conftest.$ac_objext conftest$ac_exeext
13656 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13657 (eval $ac_link) 2>conftest.er1
13659 grep -v '^ *+' conftest.er1 >conftest.err
13661 cat conftest.err >&5
13662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663 (exit $ac_status); } &&
13664 { ac_try='test -z "$ac_c_werror_flag"
13665 || test ! -s conftest.err'
13666 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13667 (eval $ac_try) 2>&5
13669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13670 (exit $ac_status); }; } &&
13671 { ac_try='test -s conftest$ac_exeext'
13672 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13673 (eval $ac_try) 2>&5
13675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676 (exit $ac_status); }; }; then
13677 ac_cv_lib_dl_dlopen=yes
13679 echo "$as_me: failed program was:" >&5
13680 sed 's/^/| /' conftest.$ac_ext >&5
13682 ac_cv_lib_dl_dlopen=no
13684 rm -f conftest.err conftest.$ac_objext \
13685 conftest$ac_exeext conftest.$ac_ext
13686 LIBS=$ac_check_lib_save_LIBS
13688 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
13689 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
13690 if test $ac_cv_lib_dl_dlopen = yes; then
13691 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
13694 lt_cv_dlopen="dyld"
13696 lt_cv_dlopen_self=yes
13703 echo "$as_me:$LINENO: checking for shl_load" >&5
13704 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
13705 if test "${ac_cv_func_shl_load+set}" = set; then
13706 echo $ECHO_N "(cached) $ECHO_C" >&6
13708 cat >conftest.$ac_ext <<_ACEOF
13711 cat confdefs.h >>conftest.$ac_ext
13712 cat >>conftest.$ac_ext <<_ACEOF
13713 /* end confdefs.h. */
13714 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
13715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13716 #define shl_load innocuous_shl_load
13718 /* System header to define __stub macros and hopefully few prototypes,
13719 which can conflict with char shl_load (); below.
13720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13721 <limits.h> exists even on freestanding compilers. */
13724 # include <limits.h>
13726 # include <assert.h>
13731 /* Override any gcc2 internal prototype to avoid an error. */
13736 /* We use char because int might match the return type of a gcc2
13737 builtin and then its argument prototype would still apply. */
13739 /* The GNU C library defines this for functions which it implements
13740 to always fail with ENOSYS. Some functions are actually named
13741 something starting with __ and the normal name is an alias. */
13742 #if defined (__stub_shl_load) || defined (__stub___shl_load)
13745 char (*f) () = shl_load;
13754 return f != shl_load;
13759 rm -f conftest.$ac_objext conftest$ac_exeext
13760 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13761 (eval $ac_link) 2>conftest.er1
13763 grep -v '^ *+' conftest.er1 >conftest.err
13765 cat conftest.err >&5
13766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13767 (exit $ac_status); } &&
13768 { ac_try='test -z "$ac_c_werror_flag"
13769 || test ! -s conftest.err'
13770 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13771 (eval $ac_try) 2>&5
13773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774 (exit $ac_status); }; } &&
13775 { ac_try='test -s conftest$ac_exeext'
13776 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13777 (eval $ac_try) 2>&5
13779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13780 (exit $ac_status); }; }; then
13781 ac_cv_func_shl_load=yes
13783 echo "$as_me: failed program was:" >&5
13784 sed 's/^/| /' conftest.$ac_ext >&5
13786 ac_cv_func_shl_load=no
13788 rm -f conftest.err conftest.$ac_objext \
13789 conftest$ac_exeext conftest.$ac_ext
13791 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
13792 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
13793 if test $ac_cv_func_shl_load = yes; then
13794 lt_cv_dlopen="shl_load"
13796 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
13797 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
13798 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
13799 echo $ECHO_N "(cached) $ECHO_C" >&6
13801 ac_check_lib_save_LIBS=$LIBS
13803 cat >conftest.$ac_ext <<_ACEOF
13806 cat confdefs.h >>conftest.$ac_ext
13807 cat >>conftest.$ac_ext <<_ACEOF
13808 /* end confdefs.h. */
13810 /* Override any gcc2 internal prototype to avoid an error. */
13814 /* We use char because int might match the return type of a gcc2
13815 builtin and then its argument prototype would still apply. */
13825 rm -f conftest.$ac_objext conftest$ac_exeext
13826 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13827 (eval $ac_link) 2>conftest.er1
13829 grep -v '^ *+' conftest.er1 >conftest.err
13831 cat conftest.err >&5
13832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13833 (exit $ac_status); } &&
13834 { ac_try='test -z "$ac_c_werror_flag"
13835 || test ! -s conftest.err'
13836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13837 (eval $ac_try) 2>&5
13839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13840 (exit $ac_status); }; } &&
13841 { ac_try='test -s conftest$ac_exeext'
13842 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13843 (eval $ac_try) 2>&5
13845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13846 (exit $ac_status); }; }; then
13847 ac_cv_lib_dld_shl_load=yes
13849 echo "$as_me: failed program was:" >&5
13850 sed 's/^/| /' conftest.$ac_ext >&5
13852 ac_cv_lib_dld_shl_load=no
13854 rm -f conftest.err conftest.$ac_objext \
13855 conftest$ac_exeext conftest.$ac_ext
13856 LIBS=$ac_check_lib_save_LIBS
13858 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
13859 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
13860 if test $ac_cv_lib_dld_shl_load = yes; then
13861 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
13863 echo "$as_me:$LINENO: checking for dlopen" >&5
13864 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
13865 if test "${ac_cv_func_dlopen+set}" = set; then
13866 echo $ECHO_N "(cached) $ECHO_C" >&6
13868 cat >conftest.$ac_ext <<_ACEOF
13871 cat confdefs.h >>conftest.$ac_ext
13872 cat >>conftest.$ac_ext <<_ACEOF
13873 /* end confdefs.h. */
13874 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
13875 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13876 #define dlopen innocuous_dlopen
13878 /* System header to define __stub macros and hopefully few prototypes,
13879 which can conflict with char dlopen (); below.
13880 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13881 <limits.h> exists even on freestanding compilers. */
13884 # include <limits.h>
13886 # include <assert.h>
13891 /* Override any gcc2 internal prototype to avoid an error. */
13896 /* We use char because int might match the return type of a gcc2
13897 builtin and then its argument prototype would still apply. */
13899 /* The GNU C library defines this for functions which it implements
13900 to always fail with ENOSYS. Some functions are actually named
13901 something starting with __ and the normal name is an alias. */
13902 #if defined (__stub_dlopen) || defined (__stub___dlopen)
13905 char (*f) () = dlopen;
13914 return f != dlopen;
13919 rm -f conftest.$ac_objext conftest$ac_exeext
13920 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13921 (eval $ac_link) 2>conftest.er1
13923 grep -v '^ *+' conftest.er1 >conftest.err
13925 cat conftest.err >&5
13926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13927 (exit $ac_status); } &&
13928 { ac_try='test -z "$ac_c_werror_flag"
13929 || test ! -s conftest.err'
13930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13931 (eval $ac_try) 2>&5
13933 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13934 (exit $ac_status); }; } &&
13935 { ac_try='test -s conftest$ac_exeext'
13936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13937 (eval $ac_try) 2>&5
13939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13940 (exit $ac_status); }; }; then
13941 ac_cv_func_dlopen=yes
13943 echo "$as_me: failed program was:" >&5
13944 sed 's/^/| /' conftest.$ac_ext >&5
13946 ac_cv_func_dlopen=no
13948 rm -f conftest.err conftest.$ac_objext \
13949 conftest$ac_exeext conftest.$ac_ext
13951 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
13952 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
13953 if test $ac_cv_func_dlopen = yes; then
13954 lt_cv_dlopen="dlopen"
13956 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
13957 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
13958 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
13959 echo $ECHO_N "(cached) $ECHO_C" >&6
13961 ac_check_lib_save_LIBS=$LIBS
13963 cat >conftest.$ac_ext <<_ACEOF
13966 cat confdefs.h >>conftest.$ac_ext
13967 cat >>conftest.$ac_ext <<_ACEOF
13968 /* end confdefs.h. */
13970 /* Override any gcc2 internal prototype to avoid an error. */
13974 /* We use char because int might match the return type of a gcc2
13975 builtin and then its argument prototype would still apply. */
13985 rm -f conftest.$ac_objext conftest$ac_exeext
13986 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
13987 (eval $ac_link) 2>conftest.er1
13989 grep -v '^ *+' conftest.er1 >conftest.err
13991 cat conftest.err >&5
13992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993 (exit $ac_status); } &&
13994 { ac_try='test -z "$ac_c_werror_flag"
13995 || test ! -s conftest.err'
13996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
13997 (eval $ac_try) 2>&5
13999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14000 (exit $ac_status); }; } &&
14001 { ac_try='test -s conftest$ac_exeext'
14002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14003 (eval $ac_try) 2>&5
14005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14006 (exit $ac_status); }; }; then
14007 ac_cv_lib_dl_dlopen=yes
14009 echo "$as_me: failed program was:" >&5
14010 sed 's/^/| /' conftest.$ac_ext >&5
14012 ac_cv_lib_dl_dlopen=no
14014 rm -f conftest.err conftest.$ac_objext \
14015 conftest$ac_exeext conftest.$ac_ext
14016 LIBS=$ac_check_lib_save_LIBS
14018 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
14019 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
14020 if test $ac_cv_lib_dl_dlopen = yes; then
14021 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
14023 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
14024 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
14025 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
14026 echo $ECHO_N "(cached) $ECHO_C" >&6
14028 ac_check_lib_save_LIBS=$LIBS
14029 LIBS="-lsvld $LIBS"
14030 cat >conftest.$ac_ext <<_ACEOF
14033 cat confdefs.h >>conftest.$ac_ext
14034 cat >>conftest.$ac_ext <<_ACEOF
14035 /* end confdefs.h. */
14037 /* Override any gcc2 internal prototype to avoid an error. */
14041 /* We use char because int might match the return type of a gcc2
14042 builtin and then its argument prototype would still apply. */
14052 rm -f conftest.$ac_objext conftest$ac_exeext
14053 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14054 (eval $ac_link) 2>conftest.er1
14056 grep -v '^ *+' conftest.er1 >conftest.err
14058 cat conftest.err >&5
14059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14060 (exit $ac_status); } &&
14061 { ac_try='test -z "$ac_c_werror_flag"
14062 || test ! -s conftest.err'
14063 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14064 (eval $ac_try) 2>&5
14066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14067 (exit $ac_status); }; } &&
14068 { ac_try='test -s conftest$ac_exeext'
14069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14070 (eval $ac_try) 2>&5
14072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14073 (exit $ac_status); }; }; then
14074 ac_cv_lib_svld_dlopen=yes
14076 echo "$as_me: failed program was:" >&5
14077 sed 's/^/| /' conftest.$ac_ext >&5
14079 ac_cv_lib_svld_dlopen=no
14081 rm -f conftest.err conftest.$ac_objext \
14082 conftest$ac_exeext conftest.$ac_ext
14083 LIBS=$ac_check_lib_save_LIBS
14085 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
14086 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
14087 if test $ac_cv_lib_svld_dlopen = yes; then
14088 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
14090 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
14091 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
14092 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
14093 echo $ECHO_N "(cached) $ECHO_C" >&6
14095 ac_check_lib_save_LIBS=$LIBS
14097 cat >conftest.$ac_ext <<_ACEOF
14100 cat confdefs.h >>conftest.$ac_ext
14101 cat >>conftest.$ac_ext <<_ACEOF
14102 /* end confdefs.h. */
14104 /* Override any gcc2 internal prototype to avoid an error. */
14108 /* We use char because int might match the return type of a gcc2
14109 builtin and then its argument prototype would still apply. */
14119 rm -f conftest.$ac_objext conftest$ac_exeext
14120 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14121 (eval $ac_link) 2>conftest.er1
14123 grep -v '^ *+' conftest.er1 >conftest.err
14125 cat conftest.err >&5
14126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14127 (exit $ac_status); } &&
14128 { ac_try='test -z "$ac_c_werror_flag"
14129 || test ! -s conftest.err'
14130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14131 (eval $ac_try) 2>&5
14133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14134 (exit $ac_status); }; } &&
14135 { ac_try='test -s conftest$ac_exeext'
14136 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
14137 (eval $ac_try) 2>&5
14139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14140 (exit $ac_status); }; }; then
14141 ac_cv_lib_dld_dld_link=yes
14143 echo "$as_me: failed program was:" >&5
14144 sed 's/^/| /' conftest.$ac_ext >&5
14146 ac_cv_lib_dld_dld_link=no
14148 rm -f conftest.err conftest.$ac_objext \
14149 conftest$ac_exeext conftest.$ac_ext
14150 LIBS=$ac_check_lib_save_LIBS
14152 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
14153 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
14154 if test $ac_cv_lib_dld_dld_link = yes; then
14155 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
14176 if test "x$lt_cv_dlopen" != xno; then
14182 case $lt_cv_dlopen in
14184 save_CPPFLAGS="$CPPFLAGS"
14185 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
14187 save_LDFLAGS="$LDFLAGS"
14188 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
14191 LIBS="$lt_cv_dlopen_libs $LIBS"
14193 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
14194 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
14195 if test "${lt_cv_dlopen_self+set}" = set; then
14196 echo $ECHO_N "(cached) $ECHO_C" >&6
14198 if test "$cross_compiling" = yes; then :
14199 lt_cv_dlopen_self=cross
14201 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14202 lt_status=$lt_dlunknown
14203 cat > conftest.$ac_ext <<EOF
14204 #line 14204 "configure"
14205 #include "confdefs.h"
14214 # define LT_DLGLOBAL RTLD_GLOBAL
14217 # define LT_DLGLOBAL DL_GLOBAL
14219 # define LT_DLGLOBAL 0
14223 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14224 find out it does not work in some platform. */
14225 #ifndef LT_DLLAZY_OR_NOW
14227 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14230 # define LT_DLLAZY_OR_NOW DL_LAZY
14233 # define LT_DLLAZY_OR_NOW RTLD_NOW
14236 # define LT_DLLAZY_OR_NOW DL_NOW
14238 # define LT_DLLAZY_OR_NOW 0
14246 extern "C" void exit (int);
14249 void fnord() { int i=42;}
14252 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14253 int status = $lt_dlunknown;
14257 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14258 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14259 /* dlclose (self); */
14265 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14266 (eval $ac_link) 2>&5
14268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14269 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14270 (./conftest; exit; ) 2>/dev/null
14272 case x$lt_status in
14273 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
14274 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
14275 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
14278 # compilation failed
14279 lt_cv_dlopen_self=no
14286 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
14287 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
14289 if test "x$lt_cv_dlopen_self" = xyes; then
14290 LDFLAGS="$LDFLAGS $link_static_flag"
14291 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
14292 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
14293 if test "${lt_cv_dlopen_self_static+set}" = set; then
14294 echo $ECHO_N "(cached) $ECHO_C" >&6
14296 if test "$cross_compiling" = yes; then :
14297 lt_cv_dlopen_self_static=cross
14299 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
14300 lt_status=$lt_dlunknown
14301 cat > conftest.$ac_ext <<EOF
14302 #line 14302 "configure"
14303 #include "confdefs.h"
14312 # define LT_DLGLOBAL RTLD_GLOBAL
14315 # define LT_DLGLOBAL DL_GLOBAL
14317 # define LT_DLGLOBAL 0
14321 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
14322 find out it does not work in some platform. */
14323 #ifndef LT_DLLAZY_OR_NOW
14325 # define LT_DLLAZY_OR_NOW RTLD_LAZY
14328 # define LT_DLLAZY_OR_NOW DL_LAZY
14331 # define LT_DLLAZY_OR_NOW RTLD_NOW
14334 # define LT_DLLAZY_OR_NOW DL_NOW
14336 # define LT_DLLAZY_OR_NOW 0
14344 extern "C" void exit (int);
14347 void fnord() { int i=42;}
14350 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
14351 int status = $lt_dlunknown;
14355 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
14356 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
14357 /* dlclose (self); */
14363 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
14364 (eval $ac_link) 2>&5
14366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14367 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
14368 (./conftest; exit; ) 2>/dev/null
14370 case x$lt_status in
14371 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
14372 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
14373 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
14376 # compilation failed
14377 lt_cv_dlopen_self_static=no
14384 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
14385 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
14388 CPPFLAGS="$save_CPPFLAGS"
14389 LDFLAGS="$save_LDFLAGS"
14394 case $lt_cv_dlopen_self in
14395 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
14396 *) enable_dlopen_self=unknown ;;
14399 case $lt_cv_dlopen_self_static in
14400 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
14401 *) enable_dlopen_self_static=unknown ;;
14406 # Report which librarie types wil actually be built
14407 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
14408 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
14409 echo "$as_me:$LINENO: result: $can_build_shared" >&5
14410 echo "${ECHO_T}$can_build_shared" >&6
14412 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
14413 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
14414 test "$can_build_shared" = "no" && enable_shared=no
14416 # On AIX, shared libraries and static libraries use the same namespace, and
14417 # are all built from PIC.
14420 test "$enable_shared" = yes && enable_static=no
14421 if test -n "$RANLIB"; then
14422 archive_cmds="$archive_cmds~\$RANLIB \$lib"
14423 postinstall_cmds='$RANLIB $lib'
14428 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
14429 test "$enable_shared" = yes && enable_static=no
14432 darwin* | rhapsody*)
14433 if test "$GCC" = yes; then
14434 archive_cmds_need_lc=no
14436 rhapsody* | darwin1.[012])
14437 allow_undefined_flag='-undefined suppress'
14440 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
14441 allow_undefined_flag='-flat_namespace -undefined suppress'
14443 case ${MACOSX_DEPLOYMENT_TARGET} in
14445 allow_undefined_flag='-flat_namespace -undefined suppress'
14448 allow_undefined_flag='-undefined dynamic_lookup'
14454 output_verbose_link_cmd='echo'
14455 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
14456 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
14457 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
14458 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}'
14459 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}'
14461 hardcode_automatic=yes
14462 hardcode_shlibpath_var=unsupported
14463 whole_archive_flag_spec='-all_load $convenience'
14464 link_all_deplibs=yes
14470 echo "$as_me:$LINENO: result: $enable_shared" >&5
14471 echo "${ECHO_T}$enable_shared" >&6
14473 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
14474 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
14475 # Make sure either enable_shared or enable_static is yes.
14476 test "$enable_shared" = yes || enable_static=yes
14477 echo "$as_me:$LINENO: result: $enable_static" >&5
14478 echo "${ECHO_T}$enable_static" >&6
14480 # The else clause should only fire when bootstrapping the
14481 # libtool distribution, otherwise you forgot to ship ltmain.sh
14482 # with your package, and you will get complaints that there are
14483 # no rules to generate ltmain.sh.
14484 if test -f "$ltmain"; then
14485 # See if we are running on zsh, and set the options which allow our commands through
14486 # without removal of \ escapes.
14487 if test -n "${ZSH_VERSION+set}" ; then
14488 setopt NO_GLOB_SUBST
14490 # Now quote all the things that may contain metacharacters while being
14491 # careful not to overquote the AC_SUBSTed values. We take copies of the
14492 # variables and quote the copies for generation of the libtool script.
14493 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
14495 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
14496 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
14497 deplibs_check_method reload_flag reload_cmds need_locks \
14498 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
14499 lt_cv_sys_global_symbol_to_c_name_address \
14500 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
14501 old_postinstall_cmds old_postuninstall_cmds \
14505 lt_prog_compiler_wl \
14506 lt_prog_compiler_pic \
14507 lt_prog_compiler_static \
14508 lt_prog_compiler_no_builtin_flag \
14509 export_dynamic_flag_spec \
14510 thread_safe_flag_spec \
14511 whole_archive_flag_spec \
14512 enable_shared_with_static_runtimes \
14514 old_archive_from_new_cmds \
14519 compiler_lib_search_path \
14521 archive_expsym_cmds \
14523 postuninstall_cmds \
14524 old_archive_from_expsyms_cmds \
14525 allow_undefined_flag \
14526 no_undefined_flag \
14527 export_symbols_cmds \
14528 hardcode_libdir_flag_spec \
14529 hardcode_libdir_flag_spec_ld \
14530 hardcode_libdir_separator \
14531 hardcode_automatic \
14533 module_expsym_cmds \
14534 lt_cv_prog_compiler_c_o \
14536 include_expsyms; do
14539 old_archive_cmds | \
14540 old_archive_from_new_cmds | \
14542 archive_expsym_cmds | \
14544 module_expsym_cmds | \
14545 old_archive_from_expsyms_cmds | \
14546 export_symbols_cmds | \
14547 extract_expsyms_cmds | reload_cmds | finish_cmds | \
14548 postinstall_cmds | postuninstall_cmds | \
14549 old_postinstall_cmds | old_postuninstall_cmds | \
14550 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
14551 # Double-quote double-evaled strings.
14552 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
14555 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
14561 *'\$0 --fallback-echo"')
14562 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
14566 cfgfile="${ofile}T"
14567 trap "$rm \"$cfgfile\"; exit 1" 1 2 15
14569 { echo "$as_me:$LINENO: creating $ofile" >&5
14570 echo "$as_me: creating $ofile" >&6;}
14572 cat <<__EOF__ >> "$cfgfile"
14575 # `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
14576 # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
14577 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
14579 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
14580 # Free Software Foundation, Inc.
14582 # This file is part of GNU Libtool:
14583 # Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
14585 # This program is free software; you can redistribute it and/or modify
14586 # it under the terms of the GNU General Public License as published by
14587 # the Free Software Foundation; either version 2 of the License, or
14588 # (at your option) any later version.
14590 # This program is distributed in the hope that it will be useful, but
14591 # WITHOUT ANY WARRANTY; without even the implied warranty of
14592 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14593 # General Public License for more details.
14595 # You should have received a copy of the GNU General Public License along
14596 # with this program; if not, write to the Free Software Foundation, Inc.,
14597 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
14599 # As a special exception to the GNU General Public License, if you
14600 # distribute this file as part of a program that contains a
14601 # configuration script generated by Autoconf, you may include it under
14602 # the same distribution terms that you use for the rest of that program.
14604 # A sed program that does not truncate output.
14607 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
14608 Xsed="$SED -e s/^X//"
14610 # The HP-UX ksh and POSIX shell print the target directory to stdout
14611 # if CDPATH is set.
14612 if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
14614 # The names of the tagged configurations supported by this script.
14617 # ### BEGIN LIBTOOL CONFIG
14619 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
14621 # Shell to use when invoking shell scripts.
14624 # Whether or not to build shared libraries.
14625 build_libtool_libs=$enable_shared
14627 # Whether or not to build static libraries.
14628 build_old_libs=$enable_static
14630 # Whether or not to add -lc for building shared libraries.
14631 build_libtool_need_lc=$archive_cmds_need_lc
14633 # Whether or not to disallow shared libs when runtime libs are static
14634 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
14636 # Whether or not to optimize for fast installation.
14637 fast_install=$enable_fast_install
14640 host_alias=$host_alias
14643 # An echo program that does not interpret backslashes.
14648 AR_FLAGS=$lt_AR_FLAGS
14653 # A language-specific compiler.
14656 # Is the compiler the GNU C compiler?
14662 # The linker used to build libraries.
14665 # Whether we need hard or soft links.
14668 # A BSD-compatible nm program.
14671 # A symbol stripping program
14674 # Used to examine libraries when file_magic_cmd begins "file"
14675 MAGIC_CMD=$MAGIC_CMD
14677 # Used on cygwin: DLL creation program.
14680 # Used on cygwin: object dumper.
14683 # Used on cygwin: assembler.
14686 # The name of the directory that contains temporary libtool files.
14689 # How to create reloadable object files.
14690 reload_flag=$lt_reload_flag
14691 reload_cmds=$lt_reload_cmds
14693 # How to pass a linker flag through the compiler.
14694 wl=$lt_lt_prog_compiler_wl
14696 # Object file suffix (normally "o").
14697 objext="$ac_objext"
14699 # Old archive suffix (normally "a").
14702 # Shared library suffix (normally ".so").
14703 shrext_cmds='$shrext_cmds'
14705 # Executable file suffix (normally "").
14708 # Additional compiler flags for building library objects.
14709 pic_flag=$lt_lt_prog_compiler_pic
14712 # What is the maximum length of a command?
14713 max_cmd_len=$lt_cv_sys_max_cmd_len
14715 # Does compiler simultaneously support -c and -o options?
14716 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
14718 # Must we lock files when doing compilation ?
14719 need_locks=$lt_need_locks
14721 # Do we need the lib prefix for modules?
14722 need_lib_prefix=$need_lib_prefix
14724 # Do we need a version for libraries?
14725 need_version=$need_version
14727 # Whether dlopen is supported.
14728 dlopen_support=$enable_dlopen
14730 # Whether dlopen of programs is supported.
14731 dlopen_self=$enable_dlopen_self
14733 # Whether dlopen of statically linked programs is supported.
14734 dlopen_self_static=$enable_dlopen_self_static
14736 # Compiler flag to prevent dynamic linking.
14737 link_static_flag=$lt_lt_prog_compiler_static
14739 # Compiler flag to turn off builtin functions.
14740 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
14742 # Compiler flag to allow reflexive dlopens.
14743 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
14745 # Compiler flag to generate shared objects directly from archives.
14746 whole_archive_flag_spec=$lt_whole_archive_flag_spec
14748 # Compiler flag to generate thread-safe objects.
14749 thread_safe_flag_spec=$lt_thread_safe_flag_spec
14751 # Library versioning type.
14752 version_type=$version_type
14754 # Format of library name prefix.
14755 libname_spec=$lt_libname_spec
14757 # List of archive names. First name is the real one, the rest are links.
14758 # The last name is the one that the linker finds with -lNAME.
14759 library_names_spec=$lt_library_names_spec
14761 # The coded name of the library, if different from the real name.
14762 soname_spec=$lt_soname_spec
14764 # Commands used to build and install an old-style archive.
14766 old_archive_cmds=$lt_old_archive_cmds
14767 old_postinstall_cmds=$lt_old_postinstall_cmds
14768 old_postuninstall_cmds=$lt_old_postuninstall_cmds
14770 # Create an old-style archive from a shared archive.
14771 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
14773 # Create a temporary old-style archive to link instead of a shared archive.
14774 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
14776 # Commands used to build and install a shared archive.
14777 archive_cmds=$lt_archive_cmds
14778 archive_expsym_cmds=$lt_archive_expsym_cmds
14779 postinstall_cmds=$lt_postinstall_cmds
14780 postuninstall_cmds=$lt_postuninstall_cmds
14782 # Commands used to build a loadable module (assumed same as above if empty)
14783 module_cmds=$lt_module_cmds
14784 module_expsym_cmds=$lt_module_expsym_cmds
14786 # Commands to strip libraries.
14787 old_striplib=$lt_old_striplib
14788 striplib=$lt_striplib
14790 # Dependencies to place before the objects being linked to create a
14792 predep_objects=$lt_predep_objects
14794 # Dependencies to place after the objects being linked to create a
14796 postdep_objects=$lt_postdep_objects
14798 # Dependencies to place before the objects being linked to create a
14800 predeps=$lt_predeps
14802 # Dependencies to place after the objects being linked to create a
14804 postdeps=$lt_postdeps
14806 # The library search path used internally by the compiler when linking
14807 # a shared library.
14808 compiler_lib_search_path=$lt_compiler_lib_search_path
14810 # Method to check whether dependent libraries are shared objects.
14811 deplibs_check_method=$lt_deplibs_check_method
14813 # Command to use when deplibs_check_method == file_magic.
14814 file_magic_cmd=$lt_file_magic_cmd
14816 # Flag that allows shared libraries with undefined symbols to be built.
14817 allow_undefined_flag=$lt_allow_undefined_flag
14819 # Flag that forces no undefined symbols.
14820 no_undefined_flag=$lt_no_undefined_flag
14822 # Commands used to finish a libtool library installation in a directory.
14823 finish_cmds=$lt_finish_cmds
14825 # Same as above, but a single script fragment to be evaled but not shown.
14826 finish_eval=$lt_finish_eval
14828 # Take the output of nm and produce a listing of raw symbols and C names.
14829 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
14831 # Transform the output of nm in a proper C declaration
14832 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
14834 # Transform the output of nm in a C name address pair
14835 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
14837 # This is the shared library runtime path variable.
14838 runpath_var=$runpath_var
14840 # This is the shared library path variable.
14841 shlibpath_var=$shlibpath_var
14843 # Is shlibpath searched before the hard-coded library search path?
14844 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
14846 # How to hardcode a shared library path into an executable.
14847 hardcode_action=$hardcode_action
14849 # Whether we should hardcode library paths into libraries.
14850 hardcode_into_libs=$hardcode_into_libs
14852 # Flag to hardcode \$libdir into a binary during linking.
14853 # This must work even if \$libdir does not exist.
14854 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
14856 # If ld is used when linking, flag to hardcode \$libdir into
14857 # a binary during linking. This must work even if \$libdir does
14859 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
14861 # Whether we need a single -rpath flag with a separated argument.
14862 hardcode_libdir_separator=$lt_hardcode_libdir_separator
14864 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
14865 # resulting binary.
14866 hardcode_direct=$hardcode_direct
14868 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
14869 # resulting binary.
14870 hardcode_minus_L=$hardcode_minus_L
14872 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
14873 # the resulting binary.
14874 hardcode_shlibpath_var=$hardcode_shlibpath_var
14876 # Set to yes if building a shared library automatically hardcodes DIR into the library
14877 # and all subsequent libraries and executables linked against it.
14878 hardcode_automatic=$hardcode_automatic
14880 # Variables whose values should be saved in libtool wrapper scripts and
14881 # restored at relink time.
14882 variables_saved_for_relink="$variables_saved_for_relink"
14884 # Whether libtool must link a program against all its dependency libraries.
14885 link_all_deplibs=$link_all_deplibs
14887 # Compile-time system search path for libraries
14888 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
14890 # Run-time system search path for libraries
14891 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
14893 # Fix the shell variable \$srcfile for the compiler.
14894 fix_srcfile_path="$fix_srcfile_path"
14896 # Set to yes if exported symbols are required.
14897 always_export_symbols=$always_export_symbols
14899 # The commands to list exported symbols.
14900 export_symbols_cmds=$lt_export_symbols_cmds
14902 # The commands to extract the exported symbol list from a shared archive.
14903 extract_expsyms_cmds=$lt_extract_expsyms_cmds
14905 # Symbols that should not be listed in the preloaded symbols.
14906 exclude_expsyms=$lt_exclude_expsyms
14908 # Symbols that must always be exported.
14909 include_expsyms=$lt_include_expsyms
14911 # ### END LIBTOOL CONFIG
14918 cat <<\EOF >> "$cfgfile"
14920 # AIX sometimes has problems with the GCC collect2 program. For some
14921 # reason, if we set the COLLECT_NAMES environment variable, the problems
14922 # vanish in a puff of smoke.
14923 if test "X${COLLECT_NAMES+set}" != Xset; then
14925 export COLLECT_NAMES
14931 # We use sed instead of cat because bash on DJGPP gets confused if
14932 # if finds mixed CR/LF and LF-only lines. Since sed operates in
14933 # text mode, it properly converts lines to CR/LF. This bash problem
14934 # is reportedly fixed, but why not run on old versions too?
14935 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
14937 mv -f "$cfgfile" "$ofile" || \
14938 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
14942 # If there is no Makefile yet, we rely on a make rule to execute
14943 # `config.status --recheck' to rerun these tests and create the
14944 # libtool script then.
14945 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
14946 if test -f "$ltmain_in"; then
14947 test -f Makefile && make "$ltmain"
14953 ac_cpp='$CPP $CPPFLAGS'
14954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14961 # Check whether --with-tags or --without-tags was given.
14962 if test "${with_tags+set}" = set; then
14963 withval="$with_tags"
14964 tagnames="$withval"
14967 if test -f "$ltmain" && test -n "$tagnames"; then
14968 if test ! -f "${ofile}"; then
14969 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
14970 echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
14973 if test -z "$LTCC"; then
14974 eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
14975 if test -z "$LTCC"; then
14976 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
14977 echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
14979 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
14980 echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
14984 # Extract list of available tagged configurations in $ofile.
14985 # Note that this assumes the entire list is on one line.
14986 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
14988 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14989 for tagname in $tagnames; do
14991 # Check whether tagname contains only valid characters
14992 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
14994 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
14995 echo "$as_me: error: invalid tag name: $tagname" >&2;}
14996 { (exit 1); exit 1; }; }
15000 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
15002 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
15003 echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
15004 { (exit 1); exit 1; }; }
15007 # Update the list of available tags.
15008 if test -n "$tagname"; then
15009 echo appending configuration tag \"$tagname\" to $ofile
15013 if test -n "$CXX" && test "X$CXX" != "Xno"; then
15015 ac_cpp='$CXXCPP $CPPFLAGS'
15016 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15017 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15018 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
15023 archive_cmds_need_lc_CXX=no
15024 allow_undefined_flag_CXX=
15025 always_export_symbols_CXX=no
15026 archive_expsym_cmds_CXX=
15027 export_dynamic_flag_spec_CXX=
15028 hardcode_direct_CXX=no
15029 hardcode_libdir_flag_spec_CXX=
15030 hardcode_libdir_flag_spec_ld_CXX=
15031 hardcode_libdir_separator_CXX=
15032 hardcode_minus_L_CXX=no
15033 hardcode_automatic_CXX=no
15035 module_expsym_cmds_CXX=
15036 link_all_deplibs_CXX=unknown
15037 old_archive_cmds_CXX=$old_archive_cmds
15038 no_undefined_flag_CXX=
15039 whole_archive_flag_spec_CXX=
15040 enable_shared_with_static_runtimes_CXX=no
15042 # Dependencies to place before and after the object being linked:
15043 predep_objects_CXX=
15044 postdep_objects_CXX=
15047 compiler_lib_search_path_CXX=
15049 # Source file extension for C++ test sources.
15052 # Object file extension for compiled C++ test sources.
15056 # Code to be used in simple compile tests
15057 lt_simple_compile_test_code="int some_variable = 0;\n"
15059 # Code to be used in simple link tests
15060 lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
15062 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
15064 # If no C compiler was specified, use CC.
15067 # Allow CC to be a program name with arguments.
15071 # Allow CC to be a program name with arguments.
15076 lt_save_with_gnu_ld=$with_gnu_ld
15077 lt_save_path_LD=$lt_cv_path_LD
15078 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
15079 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
15081 unset lt_cv_prog_gnu_ld
15083 if test -n "${lt_cv_path_LDCXX+set}"; then
15084 lt_cv_path_LD=$lt_cv_path_LDCXX
15086 unset lt_cv_path_LD
15088 test -z "${LDCXX+set}" || LD=$LDCXX
15092 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
15094 # We don't want -fno-exception wen compiling C++ code, so set the
15095 # no_builtin_flag separately
15096 if test "$GXX" = yes; then
15097 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
15099 lt_prog_compiler_no_builtin_flag_CXX=
15102 if test "$GXX" = yes; then
15103 # Set up default GNU C++ configuration
15106 # Check whether --with-gnu-ld or --without-gnu-ld was given.
15107 if test "${with_gnu_ld+set}" = set; then
15108 withval="$with_gnu_ld"
15109 test "$withval" = no || with_gnu_ld=yes
15114 if test "$GCC" = yes; then
15115 # Check if gcc -print-prog-name=ld gives a path.
15116 echo "$as_me:$LINENO: checking for ld used by $CC" >&5
15117 echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
15120 # gcc leaves a trailing carriage return which upsets mingw
15121 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
15123 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
15126 # Accept absolute paths.
15128 re_direlt='/[^/][^/]*/\.\./'
15129 # Canonicalize the pathname of ld
15130 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
15131 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
15132 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
15134 test -z "$LD" && LD="$ac_prog"
15137 # If it fails, then pretend we aren't using GCC.
15141 # If it is relative, then search for the first ld in PATH.
15142 with_gnu_ld=unknown
15145 elif test "$with_gnu_ld" = yes; then
15146 echo "$as_me:$LINENO: checking for GNU ld" >&5
15147 echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
15149 echo "$as_me:$LINENO: checking for non-GNU ld" >&5
15150 echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
15152 if test "${lt_cv_path_LD+set}" = set; then
15153 echo $ECHO_N "(cached) $ECHO_C" >&6
15155 if test -z "$LD"; then
15156 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
15157 for ac_dir in $PATH; do
15159 test -z "$ac_dir" && ac_dir=.
15160 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
15161 lt_cv_path_LD="$ac_dir/$ac_prog"
15162 # Check to see if the program is GNU ld. I'd rather use --version,
15163 # but apparently some GNU ld's only accept -v.
15164 # Break only if it was the GNU/non-GNU ld that we prefer.
15165 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
15166 *GNU* | *'with BFD'*)
15167 test "$with_gnu_ld" != no && break
15170 test "$with_gnu_ld" != yes && break
15177 lt_cv_path_LD="$LD" # Let the user override the test with a path.
15181 LD="$lt_cv_path_LD"
15182 if test -n "$LD"; then
15183 echo "$as_me:$LINENO: result: $LD" >&5
15184 echo "${ECHO_T}$LD" >&6
15186 echo "$as_me:$LINENO: result: no" >&5
15187 echo "${ECHO_T}no" >&6
15189 test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
15190 echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
15191 { (exit 1); exit 1; }; }
15192 echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
15193 echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
15194 if test "${lt_cv_prog_gnu_ld+set}" = set; then
15195 echo $ECHO_N "(cached) $ECHO_C" >&6
15197 # I'd rather use --version here, but apparently some GNU ld's only accept -v.
15198 case `$LD -v 2>&1 </dev/null` in
15199 *GNU* | *'with BFD'*)
15200 lt_cv_prog_gnu_ld=yes
15203 lt_cv_prog_gnu_ld=no
15207 echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
15208 echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
15209 with_gnu_ld=$lt_cv_prog_gnu_ld
15213 # Check if GNU C++ uses GNU ld as the underlying linker, since the
15214 # archiving commands below assume that GNU ld is being used.
15215 if test "$with_gnu_ld" = yes; then
15216 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15217 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'
15219 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
15220 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15222 # If archive_cmds runs LD, not CC, wlarc should be empty
15223 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
15224 # investigate it a little bit more. (MM)
15227 # ancient GNU ld didn't support --whole-archive et. al.
15228 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
15229 grep 'no-whole-archive' > /dev/null; then
15230 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
15232 whole_archive_flag_spec_CXX=
15238 # A generic and very simple default shared library creation
15239 # command for GNU C++ for the case where it uses the native
15240 # linker, instead of GNU ld. If possible, this setting should
15241 # overridden to take advantage of the native linker features on
15242 # the platform it is being used on.
15243 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
15246 # Commands to make compiler produce verbose output that lists
15247 # what "hidden" libraries, object files and flags are used when
15248 # linking a shared library.
15249 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15257 # PORTME: fill in a description of your system's C++ link characteristics
15258 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
15259 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
15263 # FIXME: insert proper C++ library support
15267 if test "$host_cpu" = ia64; then
15268 # On IA64, the linker does run time linking by default, so we don't
15269 # have to do anything special.
15270 aix_use_runtimelinking=no
15271 exp_sym_flag='-Bexport'
15274 aix_use_runtimelinking=no
15276 # Test if we are trying to use run time linking or normal
15277 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
15278 # need to do runtime linking.
15279 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
15280 for ld_flag in $LDFLAGS; do
15283 aix_use_runtimelinking=yes
15290 exp_sym_flag='-bexport'
15291 no_entry_flag='-bnoentry'
15294 # When large executables or shared objects are built, AIX ld can
15295 # have problems creating the table of contents. If linking a library
15296 # or program results in "error TOC overflow" add -mminimal-toc to
15297 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
15298 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
15300 archive_cmds_CXX=''
15301 hardcode_direct_CXX=yes
15302 hardcode_libdir_separator_CXX=':'
15303 link_all_deplibs_CXX=yes
15305 if test "$GXX" = yes; then
15306 case $host_os in aix4.012|aix4.012.*)
15307 # We only want to do this on AIX 4.2 and lower, the check
15308 # below for broken collect2 doesn't work under 4.3+
15309 collect2name=`${CC} -print-prog-name=collect2`
15310 if test -f "$collect2name" && \
15311 strings "$collect2name" | grep resolve_lib_name >/dev/null
15313 # We have reworked collect2
15314 hardcode_direct_CXX=yes
15316 # We have old collect2
15317 hardcode_direct_CXX=unsupported
15318 # It fails to find uninstalled libraries when the uninstalled
15319 # path is not listed in the libpath. Setting hardcode_minus_L
15320 # to unsupported forces relinking
15321 hardcode_minus_L_CXX=yes
15322 hardcode_libdir_flag_spec_CXX='-L$libdir'
15323 hardcode_libdir_separator_CXX=
15326 shared_flag='-shared'
15329 if test "$host_cpu" = ia64; then
15330 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
15331 # chokes on -Wl,-G. The following line is correct:
15334 if test "$aix_use_runtimelinking" = yes; then
15335 shared_flag='${wl}-G'
15337 shared_flag='${wl}-bM:SRE'
15342 # It seems that -bexpall does not export symbols beginning with
15343 # underscore (_), so it is better to generate a list of symbols to export.
15344 always_export_symbols_CXX=yes
15345 if test "$aix_use_runtimelinking" = yes; then
15346 # Warning - without using the other runtime loading flags (-brtl),
15347 # -berok will link without error, but may produce a broken library.
15348 allow_undefined_flag_CXX='-berok'
15349 # Determine the default libpath from the value encoded in an empty executable.
15350 cat >conftest.$ac_ext <<_ACEOF
15353 cat confdefs.h >>conftest.$ac_ext
15354 cat >>conftest.$ac_ext <<_ACEOF
15355 /* end confdefs.h. */
15365 rm -f conftest.$ac_objext conftest$ac_exeext
15366 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15367 (eval $ac_link) 2>conftest.er1
15369 grep -v '^ *+' conftest.er1 >conftest.err
15371 cat conftest.err >&5
15372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15373 (exit $ac_status); } &&
15374 { ac_try='test -z "$ac_cxx_werror_flag"
15375 || test ! -s conftest.err'
15376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15377 (eval $ac_try) 2>&5
15379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15380 (exit $ac_status); }; } &&
15381 { ac_try='test -s conftest$ac_exeext'
15382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15383 (eval $ac_try) 2>&5
15385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386 (exit $ac_status); }; }; then
15388 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15390 # Check for a 64-bit object if we didn't find anything.
15391 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15394 echo "$as_me: failed program was:" >&5
15395 sed 's/^/| /' conftest.$ac_ext >&5
15398 rm -f conftest.err conftest.$ac_objext \
15399 conftest$ac_exeext conftest.$ac_ext
15400 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15402 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15404 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
15406 if test "$host_cpu" = ia64; then
15407 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
15408 allow_undefined_flag_CXX="-z nodefs"
15409 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
15411 # Determine the default libpath from the value encoded in an empty executable.
15412 cat >conftest.$ac_ext <<_ACEOF
15415 cat confdefs.h >>conftest.$ac_ext
15416 cat >>conftest.$ac_ext <<_ACEOF
15417 /* end confdefs.h. */
15427 rm -f conftest.$ac_objext conftest$ac_exeext
15428 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
15429 (eval $ac_link) 2>conftest.er1
15431 grep -v '^ *+' conftest.er1 >conftest.err
15433 cat conftest.err >&5
15434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15435 (exit $ac_status); } &&
15436 { ac_try='test -z "$ac_cxx_werror_flag"
15437 || test ! -s conftest.err'
15438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15439 (eval $ac_try) 2>&5
15441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442 (exit $ac_status); }; } &&
15443 { ac_try='test -s conftest$ac_exeext'
15444 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
15445 (eval $ac_try) 2>&5
15447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15448 (exit $ac_status); }; }; then
15450 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15452 # Check for a 64-bit object if we didn't find anything.
15453 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
15456 echo "$as_me: failed program was:" >&5
15457 sed 's/^/| /' conftest.$ac_ext >&5
15460 rm -f conftest.err conftest.$ac_objext \
15461 conftest$ac_exeext conftest.$ac_ext
15462 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
15464 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
15465 # Warning - without using the other run time loading flags,
15466 # -berok will link without error, but may produce a broken library.
15467 no_undefined_flag_CXX=' ${wl}-bernotok'
15468 allow_undefined_flag_CXX=' ${wl}-berok'
15469 # -bexpall does not export symbols beginning with underscore (_)
15470 always_export_symbols_CXX=yes
15471 # Exported symbols can be pulled into shared objects from archives
15472 whole_archive_flag_spec_CXX=' '
15473 archive_cmds_need_lc_CXX=yes
15474 # This is similar to how AIX traditionally builds it's shared libraries.
15475 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
15480 case $cc_basename in
15482 # FIXME: insert proper C++ library support
15488 cygwin* | mingw* | pw32*)
15489 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
15490 # as there is no search path for DLLs.
15491 hardcode_libdir_flag_spec_CXX='-L$libdir'
15492 allow_undefined_flag_CXX=unsupported
15493 always_export_symbols_CXX=no
15494 enable_shared_with_static_runtimes_CXX=yes
15496 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
15497 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15498 # If the export-symbols file already is a .def file (1st line
15499 # is EXPORTS), use it as is; otherwise, prepend...
15500 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
15501 cp $export_symbols $output_objdir/$soname.def;
15503 echo EXPORTS > $output_objdir/$soname.def;
15504 cat $export_symbols >> $output_objdir/$soname.def;
15506 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
15512 darwin* | rhapsody*)
15513 if test "$GXX" = yes; then
15514 archive_cmds_need_lc_CXX=no
15516 rhapsody* | darwin1.[012])
15517 allow_undefined_flag_CXX='-undefined suppress'
15520 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
15521 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
15523 case ${MACOSX_DEPLOYMENT_TARGET} in
15525 allow_undefined_flag_CXX='-flat_namespace -undefined suppress'
15528 allow_undefined_flag_CXX='-undefined dynamic_lookup'
15534 lt_int_apple_cc_single_mod=no
15535 output_verbose_link_cmd='echo'
15536 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
15537 lt_int_apple_cc_single_mod=yes
15539 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15540 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
15542 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -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'
15544 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
15546 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
15547 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
15548 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}'
15550 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
15552 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}'
15553 hardcode_direct_CXX=no
15554 hardcode_automatic_CXX=yes
15555 hardcode_shlibpath_var_CXX=unsupported
15556 whole_archive_flag_spec_CXX='-all_load $convenience'
15557 link_all_deplibs_CXX=yes
15564 case $cc_basename in
15566 # FIXME: insert proper C++ library support
15570 # Green Hills C++ Compiler
15571 # FIXME: insert proper C++ library support
15575 # FIXME: insert proper C++ library support
15581 # C++ shared libraries reported to be fairly broken before switch to ELF
15585 archive_cmds_need_lc_CXX=no
15587 freebsd* | kfreebsd*-gnu)
15588 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
15595 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15596 hardcode_libdir_separator_CXX=:
15597 export_dynamic_flag_spec_CXX='${wl}-E'
15598 hardcode_direct_CXX=yes
15599 hardcode_minus_L_CXX=yes # Not in the search PATH,
15600 # but as the default
15601 # location of the library.
15603 case $cc_basename in
15605 # FIXME: insert proper C++ library support
15609 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'
15610 # Commands to make compiler produce verbose output that lists
15611 # what "hidden" libraries, object files and flags are used when
15612 # linking a shared library.
15614 # There doesn't appear to be a way to prevent this compiler from
15615 # explicitly linking system object files so we need to strip them
15616 # from the output so that they don't get included in the library
15618 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'
15621 if test "$GXX" = yes; then
15622 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'
15624 # FIXME: insert proper C++ library support
15631 if test $with_gnu_ld = no; then
15632 case "$host_cpu" in
15634 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15635 hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
15636 hardcode_libdir_separator_CXX=:
15639 hardcode_libdir_flag_spec_CXX='-L$libdir'
15642 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
15643 hardcode_libdir_separator_CXX=:
15644 export_dynamic_flag_spec_CXX='${wl}-E'
15648 case "$host_cpu" in
15650 hardcode_direct_CXX=no
15651 hardcode_shlibpath_var_CXX=no
15654 hardcode_direct_CXX=no
15655 hardcode_shlibpath_var_CXX=no
15656 hardcode_minus_L_CXX=yes # Not in the search PATH,
15657 # but as the default
15658 # location of the library.
15661 hardcode_direct_CXX=yes
15662 hardcode_minus_L_CXX=yes # Not in the search PATH,
15663 # but as the default
15664 # location of the library.
15668 case $cc_basename in
15670 # FIXME: insert proper C++ library support
15674 case "$host_cpu" in
15676 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15679 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15682 # Commands to make compiler produce verbose output that lists
15683 # what "hidden" libraries, object files and flags are used when
15684 # linking a shared library.
15686 # There doesn't appear to be a way to prevent this compiler from
15687 # explicitly linking system object files so we need to strip them
15688 # from the output so that they don't get included in the library
15690 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'
15693 if test "$GXX" = yes; then
15694 if test $with_gnu_ld = no; then
15695 case "$host_cpu" in
15697 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
15700 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'
15705 # FIXME: insert proper C++ library support
15712 case $cc_basename in
15715 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 ${objdir}/so_locations -o $lib'
15717 # Archives containing C++ object files must be created using
15718 # "CC -ar", where "CC" is the IRIX C++ compiler. This is
15719 # necessary to make sure instantiated templates are included
15721 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
15724 if test "$GXX" = yes; then
15725 if test "$with_gnu_ld" = no; then
15726 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}${objdir}/so_locations -o $lib'
15728 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'
15731 link_all_deplibs_CXX=yes
15734 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15735 hardcode_libdir_separator_CXX=:
15738 case $cc_basename in
15740 # Kuck and Associates, Inc. (KAI) C++ Compiler
15742 # KCC will only create a shared library if the output file
15743 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15744 # to its proper name (with version) after linking.
15745 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'
15746 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'
15747 # Commands to make compiler produce verbose output that lists
15748 # what "hidden" libraries, object files and flags are used when
15749 # linking a shared library.
15751 # There doesn't appear to be a way to prevent this compiler from
15752 # explicitly linking system object files so we need to strip them
15753 # from the output so that they don't get included in the library
15755 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'
15757 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
15758 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15760 # Archives containing C++ object files must be created using
15761 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15762 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15767 archive_cmds_need_lc_CXX=no
15768 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15769 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'
15770 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15771 export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
15772 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
15776 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
15777 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'
15779 runpath_var=LD_RUN_PATH
15780 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15781 hardcode_libdir_separator_CXX=:
15783 # Commands to make compiler produce verbose output that lists
15784 # what "hidden" libraries, object files and flags are used when
15785 # linking a shared library.
15787 # There doesn't appear to be a way to prevent this compiler from
15788 # explicitly linking system object files so we need to strip them
15789 # from the output so that they don't get included in the library
15791 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'
15796 # FIXME: insert proper C++ library support
15800 # FIXME: insert proper C++ library support
15804 case $cc_basename in
15806 # FIXME: insert proper C++ library support
15810 # FIXME: insert proper C++ library support
15816 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
15817 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
15819 hardcode_libdir_flag_spec_CXX='-R$libdir'
15820 hardcode_direct_CXX=yes
15821 hardcode_shlibpath_var_CXX=no
15823 # Workaround some broken pre-1.5 toolchains
15824 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
15827 case $cc_basename in
15829 # Kuck and Associates, Inc. (KAI) C++ Compiler
15831 # KCC will only create a shared library if the output file
15832 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15833 # to its proper name (with version) after linking.
15834 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'
15836 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15837 hardcode_libdir_separator_CXX=:
15839 # Archives containing C++ object files must be created using
15840 # "CC -Bstatic", where "CC" is the KAI C++ compiler.
15841 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
15845 # Rational C++ 2.4.1
15846 # FIXME: insert proper C++ library support
15850 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15851 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 ${objdir}/so_locations -o $lib'
15853 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15854 hardcode_libdir_separator_CXX=:
15856 # Commands to make compiler produce verbose output that lists
15857 # what "hidden" libraries, object files and flags are used when
15858 # linking a shared library.
15860 # There doesn't appear to be a way to prevent this compiler from
15861 # explicitly linking system object files so we need to strip them
15862 # from the output so that they don't get included in the library
15864 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'
15867 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15868 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15869 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}${objdir}/so_locations -o $lib'
15871 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15872 hardcode_libdir_separator_CXX=:
15874 # Commands to make compiler produce verbose output that lists
15875 # what "hidden" libraries, object files and flags are used when
15876 # linking a shared library.
15877 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15880 # FIXME: insert proper C++ library support
15887 case $cc_basename in
15889 # Kuck and Associates, Inc. (KAI) C++ Compiler
15891 # KCC will only create a shared library if the output file
15892 # ends with ".so" (or ".sl" for HP-UX), so rename the library
15893 # to its proper name (with version) after linking.
15894 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'
15896 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
15897 hardcode_libdir_separator_CXX=:
15899 # Archives containing C++ object files must be created using
15900 # the KAI C++ compiler.
15901 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
15904 # Rational C++ 2.4.1
15905 # FIXME: insert proper C++ library support
15909 allow_undefined_flag_CXX=' -expect_unresolved \*'
15910 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 ${objdir}/so_locations -o $lib'
15911 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
15912 echo "-hidden">> $lib.exp~
15913 $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 $objdir/so_locations -o $lib~
15916 hardcode_libdir_flag_spec_CXX='-rpath $libdir'
15917 hardcode_libdir_separator_CXX=:
15919 # Commands to make compiler produce verbose output that lists
15920 # what "hidden" libraries, object files and flags are used when
15921 # linking a shared library.
15923 # There doesn't appear to be a way to prevent this compiler from
15924 # explicitly linking system object files so we need to strip them
15925 # from the output so that they don't get included in the library
15927 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'
15930 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
15931 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
15932 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}${objdir}/so_locations -o $lib'
15934 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
15935 hardcode_libdir_separator_CXX=:
15937 # Commands to make compiler produce verbose output that lists
15938 # what "hidden" libraries, object files and flags are used when
15939 # linking a shared library.
15940 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
15943 # FIXME: insert proper C++ library support
15950 # FIXME: insert proper C++ library support
15954 archive_cmds_need_lc_CXX=no
15955 case $cc_basename in
15957 # FIXME: insert proper C++ library support
15961 # FIXME: insert proper C++ library support
15967 case $cc_basename in
15970 # FIXME: insert proper C++ library support
15975 # FIXME: insert proper C++ library support
15979 # FIXME: insert proper C++ library support
15985 case $cc_basename in
15987 # Sun C++ 4.2, 5.x and Centerline C++
15988 no_undefined_flag_CXX=' -zdefs'
15989 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
15990 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
15991 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
15993 hardcode_libdir_flag_spec_CXX='-R$libdir'
15994 hardcode_shlibpath_var_CXX=no
15996 solaris2.0-5 | solaris2.0-5.*) ;;
15998 # The C++ compiler is used as linker so we must use $wl
15999 # flag to pass the commands to the underlying system
16001 # Supported since Solaris 2.6 (maybe 2.5.1?)
16002 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
16005 link_all_deplibs_CXX=yes
16007 # Commands to make compiler produce verbose output that lists
16008 # what "hidden" libraries, object files and flags are used when
16009 # linking a shared library.
16011 # There doesn't appear to be a way to prevent this compiler from
16012 # explicitly linking system object files so we need to strip them
16013 # from the output so that they don't get included in the library
16015 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list'
16017 # Archives containing C++ object files must be created using
16018 # "CC -xar", where "CC" is the Sun C++ compiler. This is
16019 # necessary to make sure instantiated templates are included
16021 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
16024 # Green Hills C++ Compiler
16025 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16027 # The C++ compiler must be used to create the archive.
16028 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
16031 # GNU C++ compiler with Solaris linker
16032 if test "$GXX" = yes && test "$with_gnu_ld" = no; then
16033 no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
16034 if $CC --version | grep -v '^2\.7' > /dev/null; then
16035 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16036 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16037 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16039 # Commands to make compiler produce verbose output that lists
16040 # what "hidden" libraries, object files and flags are used when
16041 # linking a shared library.
16042 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16044 # g++ 2.7 appears to require `-G' NOT `-shared' on this
16046 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
16047 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
16048 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
16050 # Commands to make compiler produce verbose output that lists
16051 # what "hidden" libraries, object files and flags are used when
16052 # linking a shared library.
16053 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
16056 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
16061 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
16062 archive_cmds_need_lc_CXX=no
16065 case $cc_basename in
16067 # NonStop-UX NCC 3.20
16068 # FIXME: insert proper C++ library support
16072 # FIXME: insert proper C++ library support
16078 # FIXME: insert proper C++ library support
16082 # FIXME: insert proper C++ library support
16086 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16087 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16088 test "$ld_shlibs_CXX" = no && can_build_shared=no
16094 cat > conftest.$ac_ext <<EOF
16098 Foo (void) { a = 0; }
16104 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16105 (eval $ac_compile) 2>&5
16107 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16108 (exit $ac_status); }; then
16109 # Parse the compiler output and extract the necessary
16110 # objects, libraries and library flags.
16112 # Sentinel used to keep track of whether or not we are before
16113 # the conftest object file.
16114 pre_test_object_deps_done=no
16116 # The `*' in the case matches for architectures that use `case' in
16117 # $output_verbose_cmd can trigger glob expansion during the loop
16118 # eval without this substitution.
16119 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
16121 for p in `eval $output_verbose_link_cmd`; do
16125 # Some compilers place space between "-{L,R}" and the path.
16126 # Remove the space.
16127 if test $p = "-L" \
16128 || test $p = "-R"; then
16135 if test "$pre_test_object_deps_done" = no; then
16138 # Internal compiler library paths should come after those
16139 # provided the user. The postdeps already come after the
16140 # user supplied libs so there is no need to process them.
16141 if test -z "$compiler_lib_search_path_CXX"; then
16142 compiler_lib_search_path_CXX="${prev}${p}"
16144 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
16147 # The "-l" case would never come before the object being
16148 # linked, so don't bother handling this case.
16151 if test -z "$postdeps_CXX"; then
16152 postdeps_CXX="${prev}${p}"
16154 postdeps_CXX="${postdeps_CXX} ${prev}${p}"
16160 # This assumes that the test object file only shows up
16161 # once in the compiler output.
16162 if test "$p" = "conftest.$objext"; then
16163 pre_test_object_deps_done=yes
16167 if test "$pre_test_object_deps_done" = no; then
16168 if test -z "$predep_objects_CXX"; then
16169 predep_objects_CXX="$p"
16171 predep_objects_CXX="$predep_objects_CXX $p"
16174 if test -z "$postdep_objects_CXX"; then
16175 postdep_objects_CXX="$p"
16177 postdep_objects_CXX="$postdep_objects_CXX $p"
16182 *) ;; # Ignore the rest.
16190 echo "libtool.m4: error: problem compiling CXX test program"
16193 $rm -f confest.$objext
16195 case " $postdeps_CXX " in
16196 *" -lc "*) archive_cmds_need_lc_CXX=no ;;
16199 lt_prog_compiler_wl_CXX=
16200 lt_prog_compiler_pic_CXX=
16201 lt_prog_compiler_static_CXX=
16203 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
16204 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
16206 # C++ specific cases for pic, static, wl, etc.
16207 if test "$GXX" = yes; then
16208 lt_prog_compiler_wl_CXX='-Wl,'
16209 lt_prog_compiler_static_CXX='-static'
16213 # All AIX code is PIC.
16214 if test "$host_cpu" = ia64; then
16215 # AIX 5 now supports IA64 processor
16216 lt_prog_compiler_static_CXX='-Bstatic'
16220 # FIXME: we need at least 68020 code to build shared libraries, but
16221 # adding the `-m68020' flag to GCC prevents building anything better,
16223 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
16225 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
16226 # PIC is the default for these OSes.
16228 cygwin* | mingw* | os2* | pw32*)
16229 # This hack is so that the source file can tell whether it is being
16230 # built for inclusion in a dll (and should export symbols for example).
16231 lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
16233 darwin* | rhapsody*)
16234 # PIC is the default on this platform
16235 # Common symbols not allowed in MH_DYLIB files
16236 lt_prog_compiler_pic_CXX='-fno-common'
16239 # DJGPP does not support shared libraries at all
16240 lt_prog_compiler_pic_CXX=
16243 if test -d /usr/nec; then
16244 lt_prog_compiler_pic_CXX=-Kconform_pic
16248 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
16249 # not for PA HP-UX.
16250 case "$host_cpu" in
16254 lt_prog_compiler_pic_CXX='-fPIC'
16259 lt_prog_compiler_pic_CXX='-fPIC'
16265 # All AIX code is PIC.
16266 if test "$host_cpu" = ia64; then
16267 # AIX 5 now supports IA64 processor
16268 lt_prog_compiler_static_CXX='-Bstatic'
16270 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
16274 case $cc_basename in
16276 # Green Hills C++ Compiler
16277 # _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"
16282 case $cc_basename in
16284 lt_prog_compiler_pic_CXX='-KPIC'
16287 # Green Hills C++ Compiler
16288 lt_prog_compiler_pic_CXX='-pic'
16294 freebsd* | kfreebsd*-gnu)
16295 # FreeBSD uses GNU C++
16297 hpux9* | hpux10* | hpux11*)
16298 case $cc_basename in
16300 lt_prog_compiler_wl_CXX='-Wl,'
16301 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16302 if test "$host_cpu" != ia64; then
16303 lt_prog_compiler_pic_CXX='+Z'
16307 lt_prog_compiler_wl_CXX='-Wl,'
16308 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
16309 case "$host_cpu" in
16314 lt_prog_compiler_pic_CXX='+Z'
16322 irix5* | irix6* | nonstopux*)
16323 case $cc_basename in
16325 lt_prog_compiler_wl_CXX='-Wl,'
16326 lt_prog_compiler_static_CXX='-non_shared'
16327 # CC pic flag -KPIC is the default.
16334 case $cc_basename in
16337 lt_prog_compiler_wl_CXX='--backend -Wl,'
16338 lt_prog_compiler_pic_CXX='-fPIC'
16342 lt_prog_compiler_wl_CXX='-Wl,'
16343 lt_prog_compiler_pic_CXX='-KPIC'
16344 lt_prog_compiler_static_CXX='-static'
16348 # Make sure the PIC flag is empty. It appears that all Alpha
16349 # Linux and Compaq Tru64 Unix objects are PIC.
16350 lt_prog_compiler_pic_CXX=
16351 lt_prog_compiler_static_CXX='-non_shared'
16362 case $cc_basename in
16364 lt_prog_compiler_pic_CXX='-W c,exportall'
16372 osf3* | osf4* | osf5*)
16373 case $cc_basename in
16375 lt_prog_compiler_wl_CXX='--backend -Wl,'
16378 # Rational C++ 2.4.1
16379 lt_prog_compiler_pic_CXX='-pic'
16382 # Digital/Compaq C++
16383 lt_prog_compiler_wl_CXX='-Wl,'
16384 # Make sure the PIC flag is empty. It appears that all Alpha
16385 # Linux and Compaq Tru64 Unix objects are PIC.
16386 lt_prog_compiler_pic_CXX=
16387 lt_prog_compiler_static_CXX='-non_shared'
16396 case $cc_basename in
16398 lt_prog_compiler_pic_CXX='-fPIC'
16405 case $cc_basename in
16407 # Sun C++ 4.2, 5.x and Centerline C++
16408 lt_prog_compiler_pic_CXX='-KPIC'
16409 lt_prog_compiler_static_CXX='-Bstatic'
16410 lt_prog_compiler_wl_CXX='-Qoption ld '
16413 # Green Hills C++ Compiler
16414 lt_prog_compiler_pic_CXX='-PIC'
16421 case $cc_basename in
16424 lt_prog_compiler_pic_CXX='-pic'
16425 lt_prog_compiler_static_CXX='-Bstatic'
16429 lt_prog_compiler_pic_CXX='-pic'
16436 case $cc_basename in
16438 # NonStop-UX NCC 3.20
16439 lt_prog_compiler_pic_CXX='-KPIC'
16450 lt_prog_compiler_can_build_shared_CXX=no
16455 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
16456 echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
16459 # Check to make sure the PIC flag actually works.
16461 if test -n "$lt_prog_compiler_pic_CXX"; then
16463 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
16464 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
16465 if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
16466 echo $ECHO_N "(cached) $ECHO_C" >&6
16468 lt_prog_compiler_pic_works_CXX=no
16469 ac_outfile=conftest.$ac_objext
16470 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16471 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
16472 # Insert the option either (1) after the last *FLAGS variable, or
16473 # (2) before a word containing "conftest.", or (3) at the end.
16474 # Note that $ac_compile itself does not contain backslashes and begins
16475 # with a dollar sign (not a hyphen), so the echo should work correctly.
16476 # The option is referenced via a variable to avoid confusing sed.
16477 lt_compile=`echo "$ac_compile" | $SED \
16478 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16479 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16480 -e 's:$: $lt_compiler_flag:'`
16481 (eval echo "\"\$as_me:16481: $lt_compile\"" >&5)
16482 (eval "$lt_compile" 2>conftest.err)
16484 cat conftest.err >&5
16485 echo "$as_me:16485: \$? = $ac_status" >&5
16486 if (exit $ac_status) && test -s "$ac_outfile"; then
16487 # The compiler can only warn and ignore the option if not recognized
16488 # So say no if there are warnings
16489 if test ! -s conftest.err; then
16490 lt_prog_compiler_pic_works_CXX=yes
16496 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
16497 echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
16499 if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
16500 case $lt_prog_compiler_pic_CXX in
16502 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
16505 lt_prog_compiler_pic_CXX=
16506 lt_prog_compiler_can_build_shared_CXX=no
16511 # For platforms which do not support PIC, -DPIC is meaningless:
16513 lt_prog_compiler_pic_CXX=
16516 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
16520 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
16521 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
16522 if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
16523 echo $ECHO_N "(cached) $ECHO_C" >&6
16525 lt_cv_prog_compiler_c_o_CXX=no
16526 $rm -r conftest 2>/dev/null
16530 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16532 lt_compiler_flag="-o out/conftest2.$ac_objext"
16533 # Insert the option either (1) after the last *FLAGS variable, or
16534 # (2) before a word containing "conftest.", or (3) at the end.
16535 # Note that $ac_compile itself does not contain backslashes and begins
16536 # with a dollar sign (not a hyphen), so the echo should work correctly.
16537 lt_compile=`echo "$ac_compile" | $SED \
16538 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
16539 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
16540 -e 's:$: $lt_compiler_flag:'`
16541 (eval echo "\"\$as_me:16541: $lt_compile\"" >&5)
16542 (eval "$lt_compile" 2>out/conftest.err)
16544 cat out/conftest.err >&5
16545 echo "$as_me:16545: \$? = $ac_status" >&5
16546 if (exit $ac_status) && test -s out/conftest2.$ac_objext
16548 # The compiler can only warn and ignore the option if not recognized
16549 # So say no if there are warnings
16550 if test ! -s out/conftest.err; then
16551 lt_cv_prog_compiler_c_o_CXX=yes
16556 # SGI C++ compiler will create directory out/ii_files/ for
16557 # template instantiation
16558 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
16559 $rm out/* && rmdir out
16565 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
16566 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
16569 hard_links="nottested"
16570 if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
16571 # do not overwrite the value of need_locks provided by the user
16572 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
16573 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
16576 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16578 ln conftest.a conftest.b 2>&5 || hard_links=no
16579 ln conftest.a conftest.b 2>/dev/null && hard_links=no
16580 echo "$as_me:$LINENO: result: $hard_links" >&5
16581 echo "${ECHO_T}$hard_links" >&6
16582 if test "$hard_links" = no; then
16583 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
16584 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
16591 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
16592 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
16594 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16597 # If we're using GNU nm, then we don't want the "-C" option.
16598 # -C means demangle to AIX nm, but means don't demangle with GNU nm
16599 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
16600 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'
16602 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'
16606 export_symbols_cmds_CXX="$ltdll_cmds"
16609 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
16612 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
16616 echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
16617 echo "${ECHO_T}$ld_shlibs_CXX" >&6
16618 test "$ld_shlibs_CXX" = no && can_build_shared=no
16620 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
16621 if test "$GCC" = yes; then
16622 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
16626 # Do we need to explicitly link libc?
16628 case "x$archive_cmds_need_lc_CXX" in
16630 # Assume -lc should be added
16631 archive_cmds_need_lc_CXX=yes
16633 if test "$enable_shared" = yes && test "$GCC" = yes; then
16634 case $archive_cmds_CXX in
16636 # FIXME: we may have to deal with multi-command sequences.
16639 # Test whether the compiler implicitly links with -lc since on some
16640 # systems, -lgcc has to come before -lc. If gcc already passes -lc
16641 # to ld, don't add -lc before -lgcc.
16642 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
16643 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
16645 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
16647 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
16648 (eval $ac_compile) 2>&5
16650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16651 (exit $ac_status); } 2>conftest.err; then
16654 libobjs=conftest.$ac_objext
16656 wl=$lt_prog_compiler_wl_CXX
16662 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
16663 allow_undefined_flag_CXX=
16664 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
16665 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
16667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16668 (exit $ac_status); }
16670 archive_cmds_need_lc_CXX=no
16672 archive_cmds_need_lc_CXX=yes
16674 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
16676 cat conftest.err 1>&5
16679 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
16680 echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
16687 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
16688 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
16689 library_names_spec=
16690 libname_spec='lib$name'
16694 postuninstall_cmds=
16698 shlibpath_overrides_runpath=unknown
16700 dynamic_linker="$host_os ld.so"
16701 sys_lib_dlsearch_path_spec="/lib /usr/lib"
16702 if test "$GCC" = yes; then
16703 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16704 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
16705 # if the path contains ";" then we assume it to be the separator
16706 # otherwise default to the standard path separator (i.e. ":") - it is
16707 # assumed that no part of a normal pathname contains ";" but that should
16708 # okay in the real world where ";" in dirpaths is itself problematic.
16709 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16711 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16714 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
16716 need_lib_prefix=unknown
16717 hardcode_into_libs=no
16719 # when you set need_version to no, make sure it does not cause -set_version
16720 # flags to be left without arguments
16721 need_version=unknown
16726 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
16727 shlibpath_var=LIBPATH
16729 # AIX 3 has no versioning support, so we append a major version to the name.
16730 soname_spec='${libname}${release}${shared_ext}$major'
16737 hardcode_into_libs=yes
16738 if test "$host_cpu" = ia64; then
16739 # AIX 5 supports IA64
16740 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
16741 shlibpath_var=LD_LIBRARY_PATH
16743 # With GCC up to 2.95.x, collect2 would create an import file
16744 # for dependence libraries. The import file would start with
16745 # the line `#! .'. This would cause the generated library to
16746 # depend on `.', always an invalid library. This was fixed in
16747 # development snapshots of GCC prior to 3.0.
16749 aix4 | aix4.[01] | aix4.[01].*)
16750 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
16752 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
16755 can_build_shared=no
16759 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
16760 # soname into executable. Probably we can add versioning support to
16761 # collect2, so additional links can be useful in future.
16762 if test "$aix_use_runtimelinking" = yes; then
16763 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
16764 # instead of lib<name>.a to let people know that these are not
16765 # typical AIX shared libraries.
16766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16768 # We preserve .a as extension for shared libraries through AIX4.2
16769 # and later when we are not doing run time linking.
16770 library_names_spec='${libname}${release}.a $libname.a'
16771 soname_spec='${libname}${release}${shared_ext}$major'
16773 shlibpath_var=LIBPATH
16778 library_names_spec='$libname.ixlibrary $libname.a'
16779 # Create ${libname}_ixlibrary.a entries in /sys/libs.
16780 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'
16784 library_names_spec='${libname}${shared_ext}'
16785 dynamic_linker="$host_os ld.so"
16786 shlibpath_var=LIBRARY_PATH
16792 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16793 soname_spec='${libname}${release}${shared_ext}$major'
16794 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
16795 shlibpath_var=LD_LIBRARY_PATH
16796 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
16797 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
16798 # the default ld.so.conf also contains /usr/contrib/lib and
16799 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
16800 # libtool to hard-code these into programs
16803 cygwin* | mingw* | pw32*)
16804 version_type=windows
16809 case $GCC,$host_os in
16810 yes,cygwin* | yes,mingw* | yes,pw32*)
16811 library_names_spec='$libname.dll.a'
16812 # DLL is installed to $(libdir)/../bin by postinstall_cmds
16813 postinstall_cmds='base_file=`basename \${file}`~
16814 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
16815 dldir=$destdir/`dirname \$dlpath`~
16816 test -d \$dldir || mkdir -p \$dldir~
16817 $install_prog $dir/$dlname \$dldir/$dlname'
16818 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
16819 dlpath=$dir/\$dldll~
16821 shlibpath_overrides_runpath=yes
16825 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
16826 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16827 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
16830 # MinGW DLLs use traditional 'lib' prefix
16831 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
16832 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
16833 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
16834 # It is most probably a Windows format PATH printed by
16835 # mingw gcc, but we are running on Cygwin. Gcc prints its search
16836 # path with ; separators, and with drive letters. We can handle the
16837 # drive letters (cygwin fileutils understands them), so leave them,
16838 # especially as we might pass files found there to a mingw objdump,
16839 # which wouldn't understand a cygwinified path. Ahh.
16840 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
16842 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
16846 # pw32 DLLs use 'pw' prefix rather than 'lib'
16847 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
16853 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
16856 dynamic_linker='Win32 ld.exe'
16857 # FIXME: first we should search . and the directory the executable is in
16861 darwin* | rhapsody*)
16862 dynamic_linker="$host_os dyld"
16863 version_type=darwin
16866 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
16867 soname_spec='${libname}${release}${major}$shared_ext'
16868 shlibpath_overrides_runpath=yes
16869 shlibpath_var=DYLD_LIBRARY_PATH
16870 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
16871 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
16872 if test "$GCC" = yes; then
16873 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
16875 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
16877 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
16884 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
16885 soname_spec='${libname}${release}${shared_ext}$major'
16886 shlibpath_var=LD_LIBRARY_PATH
16897 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
16898 soname_spec='${libname}${release}${shared_ext}$major'
16899 shlibpath_var=LD_LIBRARY_PATH
16900 shlibpath_overrides_runpath=no
16901 hardcode_into_libs=yes
16902 dynamic_linker='GNU ld.so'
16906 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
16907 version_type=freebsd-$objformat
16908 case $version_type in
16910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
16915 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
16919 shlibpath_var=LD_LIBRARY_PATH
16922 shlibpath_overrides_runpath=yes
16924 freebsd3.01* | freebsdelf3.01*)
16925 shlibpath_overrides_runpath=yes
16926 hardcode_into_libs=yes
16929 shlibpath_overrides_runpath=no
16930 hardcode_into_libs=yes
16939 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
16940 soname_spec='${libname}${release}${shared_ext}$major'
16941 shlibpath_var=LD_LIBRARY_PATH
16942 hardcode_into_libs=yes
16945 hpux9* | hpux10* | hpux11*)
16946 # Give a soname corresponding to the major version so that dld.sl refuses to
16947 # link against other versions.
16951 case "$host_cpu" in
16954 hardcode_into_libs=yes
16955 dynamic_linker="$host_os dld.so"
16956 shlibpath_var=LD_LIBRARY_PATH
16957 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16958 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16959 soname_spec='${libname}${release}${shared_ext}$major'
16960 if test "X$HPUX_IA64_MODE" = X32; then
16961 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
16963 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
16965 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16969 hardcode_into_libs=yes
16970 dynamic_linker="$host_os dld.sl"
16971 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
16972 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
16973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16974 soname_spec='${libname}${release}${shared_ext}$major'
16975 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
16976 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
16980 dynamic_linker="$host_os dld.sl"
16981 shlibpath_var=SHLIB_PATH
16982 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
16983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
16984 soname_spec='${libname}${release}${shared_ext}$major'
16987 # HP-UX runs *really* slowly unless shared libraries are mode 555.
16988 postinstall_cmds='chmod 555 $lib'
16991 irix5* | irix6* | nonstopux*)
16993 nonstopux*) version_type=nonstopux ;;
16995 if test "$lt_cv_prog_gnu_ld" = yes; then
17003 soname_spec='${libname}${release}${shared_ext}$major'
17004 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
17006 irix5* | nonstopux*)
17007 libsuff= shlibsuff=
17010 case $LD in # libtool.m4 will add one of these switches to LD
17011 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
17012 libsuff= shlibsuff= libmagic=32-bit;;
17013 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
17014 libsuff=32 shlibsuff=N32 libmagic=N32;;
17015 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
17016 libsuff=64 shlibsuff=64 libmagic=64-bit;;
17017 *) libsuff= shlibsuff= libmagic=never-match;;
17021 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
17022 shlibpath_overrides_runpath=no
17023 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
17024 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
17025 hardcode_into_libs=yes
17028 # No shared lib support for Linux oldld, aout, or coff.
17029 linux*oldld* | linux*aout* | linux*coff*)
17033 # This must be Linux ELF.
17038 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17039 soname_spec='${libname}${release}${shared_ext}$major'
17040 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
17041 shlibpath_var=LD_LIBRARY_PATH
17042 shlibpath_overrides_runpath=no
17043 # This implies no fast_install, which is unacceptable.
17044 # Some rework will be needed to allow for fast_install
17045 # before this can be enabled.
17046 hardcode_into_libs=yes
17048 # Append ld.so.conf contents to the search path
17049 if test -f /etc/ld.so.conf; then
17050 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
17051 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
17054 # We used to test for /lib/ld.so.1 and disable shared libraries on
17055 # powerpc, because MkLinux only supported shared libraries with the
17056 # GNU dynamic linker. Since this was broken with cross compilers,
17057 # most powerpc-linux boxes support dynamic linking these days and
17058 # people can always --disable-shared, the test was removed, and we
17059 # assume the GNU/Linux dynamic linker is in use.
17060 dynamic_linker='GNU/Linux ld.so'
17067 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17068 soname_spec='${libname}${release}${shared_ext}$major'
17069 shlibpath_var=LD_LIBRARY_PATH
17070 shlibpath_overrides_runpath=no
17071 hardcode_into_libs=yes
17072 dynamic_linker='GNU ld.so'
17079 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
17080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17081 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17082 dynamic_linker='NetBSD (a.out) ld.so'
17084 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
17085 soname_spec='${libname}${release}${shared_ext}$major'
17086 dynamic_linker='NetBSD ld.elf_so'
17088 shlibpath_var=LD_LIBRARY_PATH
17089 shlibpath_overrides_runpath=yes
17090 hardcode_into_libs=yes
17095 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17096 shlibpath_var=LD_LIBRARY_PATH
17097 shlibpath_overrides_runpath=yes
17104 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17105 soname_spec='${libname}${release}${shared_ext}$major'
17106 shlibpath_var=LD_LIBRARY_PATH
17107 shlibpath_overrides_runpath=yes
17114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17115 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
17116 shlibpath_var=LD_LIBRARY_PATH
17117 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
17119 openbsd2.[89] | openbsd2.[89].*)
17120 shlibpath_overrides_runpath=no
17123 shlibpath_overrides_runpath=yes
17127 shlibpath_overrides_runpath=yes
17132 libname_spec='$name'
17135 library_names_spec='$libname${shared_ext} $libname.a'
17136 dynamic_linker='OS/2 ld.exe'
17137 shlibpath_var=LIBPATH
17140 osf3* | osf4* | osf5*)
17144 soname_spec='${libname}${release}${shared_ext}$major'
17145 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17146 shlibpath_var=LD_LIBRARY_PATH
17147 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
17148 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
17153 soname_spec='${libname}${release}${shared_ext}$major'
17154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17155 shlibpath_var=LD_LIBRARY_PATH
17162 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17163 soname_spec='${libname}${release}${shared_ext}$major'
17164 shlibpath_var=LD_LIBRARY_PATH
17165 shlibpath_overrides_runpath=yes
17166 hardcode_into_libs=yes
17167 # ldd complains unless libraries are executable
17168 postinstall_cmds='chmod +x $lib'
17173 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
17174 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
17175 shlibpath_var=LD_LIBRARY_PATH
17176 shlibpath_overrides_runpath=yes
17177 if test "$with_gnu_ld" = yes; then
17183 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
17185 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17186 soname_spec='${libname}${release}${shared_ext}$major'
17187 shlibpath_var=LD_LIBRARY_PATH
17188 case $host_vendor in
17190 shlibpath_overrides_runpath=no
17192 export_dynamic_flag_spec='${wl}-Blargedynsym'
17193 runpath_var=LD_RUN_PATH
17201 shlibpath_overrides_runpath=no
17202 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
17208 if test -d /usr/nec ;then
17210 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
17211 soname_spec='$libname${shared_ext}.$major'
17212 shlibpath_var=LD_LIBRARY_PATH
17218 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
17219 soname_spec='${libname}${release}${shared_ext}$major'
17220 shlibpath_var=LD_LIBRARY_PATH
17227 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
17228 echo "${ECHO_T}$dynamic_linker" >&6
17229 test "$dynamic_linker" = no && can_build_shared=no
17231 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
17232 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
17233 hardcode_action_CXX=
17234 if test -n "$hardcode_libdir_flag_spec_CXX" || \
17235 test -n "$runpath_var CXX" || \
17236 test "X$hardcode_automatic_CXX"="Xyes" ; then
17238 # We can hardcode non-existant directories.
17239 if test "$hardcode_direct_CXX" != no &&
17240 # If the only mechanism to avoid hardcoding is shlibpath_var, we
17241 # have to relink, otherwise we might link with an installed library
17242 # when we should be linking with a yet-to-be-installed one
17243 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
17244 test "$hardcode_minus_L_CXX" != no; then
17245 # Linking always hardcodes the temporary library directory.
17246 hardcode_action_CXX=relink
17248 # We can link without hardcoding, and we can hardcode nonexisting dirs.
17249 hardcode_action_CXX=immediate
17252 # We cannot hardcode anything, or else we can only hardcode existing
17254 hardcode_action_CXX=unsupported
17256 echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
17257 echo "${ECHO_T}$hardcode_action_CXX" >&6
17259 if test "$hardcode_action_CXX" = relink; then
17260 # Fast installation is not supported
17261 enable_fast_install=no
17262 elif test "$shlibpath_overrides_runpath" = yes ||
17263 test "$enable_shared" = no; then
17264 # Fast installation is not necessary
17265 enable_fast_install=needless
17270 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
17271 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
17272 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
17273 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
17274 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
17275 echo "$as_me:$LINENO: result: yes" >&5
17276 echo "${ECHO_T}yes" >&6
17278 # FIXME - insert some real tests, host_os isn't really good enough
17281 if test -n "$STRIP" ; then
17282 striplib="$STRIP -x"
17283 echo "$as_me:$LINENO: result: yes" >&5
17284 echo "${ECHO_T}yes" >&6
17286 echo "$as_me:$LINENO: result: no" >&5
17287 echo "${ECHO_T}no" >&6
17291 echo "$as_me:$LINENO: result: no" >&5
17292 echo "${ECHO_T}no" >&6
17297 if test "x$enable_dlopen" != xyes; then
17298 enable_dlopen=unknown
17299 enable_dlopen_self=unknown
17300 enable_dlopen_self_static=unknown
17307 lt_cv_dlopen="load_add_on"
17309 lt_cv_dlopen_self=yes
17313 lt_cv_dlopen="LoadLibrary"
17318 lt_cv_dlopen="dlopen"
17323 # if libdl is installed we need to link against it
17324 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17325 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17326 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17327 echo $ECHO_N "(cached) $ECHO_C" >&6
17329 ac_check_lib_save_LIBS=$LIBS
17331 cat >conftest.$ac_ext <<_ACEOF
17334 cat confdefs.h >>conftest.$ac_ext
17335 cat >>conftest.$ac_ext <<_ACEOF
17336 /* end confdefs.h. */
17338 /* Override any gcc2 internal prototype to avoid an error. */
17342 /* We use char because int might match the return type of a gcc2
17343 builtin and then its argument prototype would still apply. */
17353 rm -f conftest.$ac_objext conftest$ac_exeext
17354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17355 (eval $ac_link) 2>conftest.er1
17357 grep -v '^ *+' conftest.er1 >conftest.err
17359 cat conftest.err >&5
17360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17361 (exit $ac_status); } &&
17362 { ac_try='test -z "$ac_cxx_werror_flag"
17363 || test ! -s conftest.err'
17364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17365 (eval $ac_try) 2>&5
17367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17368 (exit $ac_status); }; } &&
17369 { ac_try='test -s conftest$ac_exeext'
17370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17371 (eval $ac_try) 2>&5
17373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17374 (exit $ac_status); }; }; then
17375 ac_cv_lib_dl_dlopen=yes
17377 echo "$as_me: failed program was:" >&5
17378 sed 's/^/| /' conftest.$ac_ext >&5
17380 ac_cv_lib_dl_dlopen=no
17382 rm -f conftest.err conftest.$ac_objext \
17383 conftest$ac_exeext conftest.$ac_ext
17384 LIBS=$ac_check_lib_save_LIBS
17386 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17387 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17388 if test $ac_cv_lib_dl_dlopen = yes; then
17389 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17392 lt_cv_dlopen="dyld"
17394 lt_cv_dlopen_self=yes
17401 echo "$as_me:$LINENO: checking for shl_load" >&5
17402 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
17403 if test "${ac_cv_func_shl_load+set}" = set; then
17404 echo $ECHO_N "(cached) $ECHO_C" >&6
17406 cat >conftest.$ac_ext <<_ACEOF
17409 cat confdefs.h >>conftest.$ac_ext
17410 cat >>conftest.$ac_ext <<_ACEOF
17411 /* end confdefs.h. */
17412 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
17413 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17414 #define shl_load innocuous_shl_load
17416 /* System header to define __stub macros and hopefully few prototypes,
17417 which can conflict with char shl_load (); below.
17418 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17419 <limits.h> exists even on freestanding compilers. */
17422 # include <limits.h>
17424 # include <assert.h>
17429 /* Override any gcc2 internal prototype to avoid an error. */
17434 /* We use char because int might match the return type of a gcc2
17435 builtin and then its argument prototype would still apply. */
17437 /* The GNU C library defines this for functions which it implements
17438 to always fail with ENOSYS. Some functions are actually named
17439 something starting with __ and the normal name is an alias. */
17440 #if defined (__stub_shl_load) || defined (__stub___shl_load)
17443 char (*f) () = shl_load;
17452 return f != shl_load;
17457 rm -f conftest.$ac_objext conftest$ac_exeext
17458 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17459 (eval $ac_link) 2>conftest.er1
17461 grep -v '^ *+' conftest.er1 >conftest.err
17463 cat conftest.err >&5
17464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17465 (exit $ac_status); } &&
17466 { ac_try='test -z "$ac_cxx_werror_flag"
17467 || test ! -s conftest.err'
17468 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17469 (eval $ac_try) 2>&5
17471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17472 (exit $ac_status); }; } &&
17473 { ac_try='test -s conftest$ac_exeext'
17474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17475 (eval $ac_try) 2>&5
17477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17478 (exit $ac_status); }; }; then
17479 ac_cv_func_shl_load=yes
17481 echo "$as_me: failed program was:" >&5
17482 sed 's/^/| /' conftest.$ac_ext >&5
17484 ac_cv_func_shl_load=no
17486 rm -f conftest.err conftest.$ac_objext \
17487 conftest$ac_exeext conftest.$ac_ext
17489 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
17490 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
17491 if test $ac_cv_func_shl_load = yes; then
17492 lt_cv_dlopen="shl_load"
17494 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
17495 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
17496 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
17497 echo $ECHO_N "(cached) $ECHO_C" >&6
17499 ac_check_lib_save_LIBS=$LIBS
17501 cat >conftest.$ac_ext <<_ACEOF
17504 cat confdefs.h >>conftest.$ac_ext
17505 cat >>conftest.$ac_ext <<_ACEOF
17506 /* end confdefs.h. */
17508 /* Override any gcc2 internal prototype to avoid an error. */
17512 /* We use char because int might match the return type of a gcc2
17513 builtin and then its argument prototype would still apply. */
17523 rm -f conftest.$ac_objext conftest$ac_exeext
17524 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17525 (eval $ac_link) 2>conftest.er1
17527 grep -v '^ *+' conftest.er1 >conftest.err
17529 cat conftest.err >&5
17530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17531 (exit $ac_status); } &&
17532 { ac_try='test -z "$ac_cxx_werror_flag"
17533 || test ! -s conftest.err'
17534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17535 (eval $ac_try) 2>&5
17537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17538 (exit $ac_status); }; } &&
17539 { ac_try='test -s conftest$ac_exeext'
17540 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17541 (eval $ac_try) 2>&5
17543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17544 (exit $ac_status); }; }; then
17545 ac_cv_lib_dld_shl_load=yes
17547 echo "$as_me: failed program was:" >&5
17548 sed 's/^/| /' conftest.$ac_ext >&5
17550 ac_cv_lib_dld_shl_load=no
17552 rm -f conftest.err conftest.$ac_objext \
17553 conftest$ac_exeext conftest.$ac_ext
17554 LIBS=$ac_check_lib_save_LIBS
17556 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
17557 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
17558 if test $ac_cv_lib_dld_shl_load = yes; then
17559 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
17561 echo "$as_me:$LINENO: checking for dlopen" >&5
17562 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
17563 if test "${ac_cv_func_dlopen+set}" = set; then
17564 echo $ECHO_N "(cached) $ECHO_C" >&6
17566 cat >conftest.$ac_ext <<_ACEOF
17569 cat confdefs.h >>conftest.$ac_ext
17570 cat >>conftest.$ac_ext <<_ACEOF
17571 /* end confdefs.h. */
17572 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
17573 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17574 #define dlopen innocuous_dlopen
17576 /* System header to define __stub macros and hopefully few prototypes,
17577 which can conflict with char dlopen (); below.
17578 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17579 <limits.h> exists even on freestanding compilers. */
17582 # include <limits.h>
17584 # include <assert.h>
17589 /* Override any gcc2 internal prototype to avoid an error. */
17594 /* We use char because int might match the return type of a gcc2
17595 builtin and then its argument prototype would still apply. */
17597 /* The GNU C library defines this for functions which it implements
17598 to always fail with ENOSYS. Some functions are actually named
17599 something starting with __ and the normal name is an alias. */
17600 #if defined (__stub_dlopen) || defined (__stub___dlopen)
17603 char (*f) () = dlopen;
17612 return f != dlopen;
17617 rm -f conftest.$ac_objext conftest$ac_exeext
17618 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17619 (eval $ac_link) 2>conftest.er1
17621 grep -v '^ *+' conftest.er1 >conftest.err
17623 cat conftest.err >&5
17624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17625 (exit $ac_status); } &&
17626 { ac_try='test -z "$ac_cxx_werror_flag"
17627 || test ! -s conftest.err'
17628 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17629 (eval $ac_try) 2>&5
17631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17632 (exit $ac_status); }; } &&
17633 { ac_try='test -s conftest$ac_exeext'
17634 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17635 (eval $ac_try) 2>&5
17637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17638 (exit $ac_status); }; }; then
17639 ac_cv_func_dlopen=yes
17641 echo "$as_me: failed program was:" >&5
17642 sed 's/^/| /' conftest.$ac_ext >&5
17644 ac_cv_func_dlopen=no
17646 rm -f conftest.err conftest.$ac_objext \
17647 conftest$ac_exeext conftest.$ac_ext
17649 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
17650 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
17651 if test $ac_cv_func_dlopen = yes; then
17652 lt_cv_dlopen="dlopen"
17654 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
17655 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
17656 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
17657 echo $ECHO_N "(cached) $ECHO_C" >&6
17659 ac_check_lib_save_LIBS=$LIBS
17661 cat >conftest.$ac_ext <<_ACEOF
17664 cat confdefs.h >>conftest.$ac_ext
17665 cat >>conftest.$ac_ext <<_ACEOF
17666 /* end confdefs.h. */
17668 /* Override any gcc2 internal prototype to avoid an error. */
17672 /* We use char because int might match the return type of a gcc2
17673 builtin and then its argument prototype would still apply. */
17683 rm -f conftest.$ac_objext conftest$ac_exeext
17684 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17685 (eval $ac_link) 2>conftest.er1
17687 grep -v '^ *+' conftest.er1 >conftest.err
17689 cat conftest.err >&5
17690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17691 (exit $ac_status); } &&
17692 { ac_try='test -z "$ac_cxx_werror_flag"
17693 || test ! -s conftest.err'
17694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17695 (eval $ac_try) 2>&5
17697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17698 (exit $ac_status); }; } &&
17699 { ac_try='test -s conftest$ac_exeext'
17700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17701 (eval $ac_try) 2>&5
17703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17704 (exit $ac_status); }; }; then
17705 ac_cv_lib_dl_dlopen=yes
17707 echo "$as_me: failed program was:" >&5
17708 sed 's/^/| /' conftest.$ac_ext >&5
17710 ac_cv_lib_dl_dlopen=no
17712 rm -f conftest.err conftest.$ac_objext \
17713 conftest$ac_exeext conftest.$ac_ext
17714 LIBS=$ac_check_lib_save_LIBS
17716 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
17717 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
17718 if test $ac_cv_lib_dl_dlopen = yes; then
17719 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
17721 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
17722 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
17723 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
17724 echo $ECHO_N "(cached) $ECHO_C" >&6
17726 ac_check_lib_save_LIBS=$LIBS
17727 LIBS="-lsvld $LIBS"
17728 cat >conftest.$ac_ext <<_ACEOF
17731 cat confdefs.h >>conftest.$ac_ext
17732 cat >>conftest.$ac_ext <<_ACEOF
17733 /* end confdefs.h. */
17735 /* Override any gcc2 internal prototype to avoid an error. */
17739 /* We use char because int might match the return type of a gcc2
17740 builtin and then its argument prototype would still apply. */
17750 rm -f conftest.$ac_objext conftest$ac_exeext
17751 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17752 (eval $ac_link) 2>conftest.er1
17754 grep -v '^ *+' conftest.er1 >conftest.err
17756 cat conftest.err >&5
17757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17758 (exit $ac_status); } &&
17759 { ac_try='test -z "$ac_cxx_werror_flag"
17760 || test ! -s conftest.err'
17761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17762 (eval $ac_try) 2>&5
17764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17765 (exit $ac_status); }; } &&
17766 { ac_try='test -s conftest$ac_exeext'
17767 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17768 (eval $ac_try) 2>&5
17770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17771 (exit $ac_status); }; }; then
17772 ac_cv_lib_svld_dlopen=yes
17774 echo "$as_me: failed program was:" >&5
17775 sed 's/^/| /' conftest.$ac_ext >&5
17777 ac_cv_lib_svld_dlopen=no
17779 rm -f conftest.err conftest.$ac_objext \
17780 conftest$ac_exeext conftest.$ac_ext
17781 LIBS=$ac_check_lib_save_LIBS
17783 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
17784 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
17785 if test $ac_cv_lib_svld_dlopen = yes; then
17786 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
17788 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
17789 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
17790 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
17791 echo $ECHO_N "(cached) $ECHO_C" >&6
17793 ac_check_lib_save_LIBS=$LIBS
17795 cat >conftest.$ac_ext <<_ACEOF
17798 cat confdefs.h >>conftest.$ac_ext
17799 cat >>conftest.$ac_ext <<_ACEOF
17800 /* end confdefs.h. */
17802 /* Override any gcc2 internal prototype to avoid an error. */
17806 /* We use char because int might match the return type of a gcc2
17807 builtin and then its argument prototype would still apply. */
17817 rm -f conftest.$ac_objext conftest$ac_exeext
17818 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17819 (eval $ac_link) 2>conftest.er1
17821 grep -v '^ *+' conftest.er1 >conftest.err
17823 cat conftest.err >&5
17824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17825 (exit $ac_status); } &&
17826 { ac_try='test -z "$ac_cxx_werror_flag"
17827 || test ! -s conftest.err'
17828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17829 (eval $ac_try) 2>&5
17831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17832 (exit $ac_status); }; } &&
17833 { ac_try='test -s conftest$ac_exeext'
17834 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
17835 (eval $ac_try) 2>&5
17837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17838 (exit $ac_status); }; }; then
17839 ac_cv_lib_dld_dld_link=yes
17841 echo "$as_me: failed program was:" >&5
17842 sed 's/^/| /' conftest.$ac_ext >&5
17844 ac_cv_lib_dld_dld_link=no
17846 rm -f conftest.err conftest.$ac_objext \
17847 conftest$ac_exeext conftest.$ac_ext
17848 LIBS=$ac_check_lib_save_LIBS
17850 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
17851 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
17852 if test $ac_cv_lib_dld_dld_link = yes; then
17853 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
17874 if test "x$lt_cv_dlopen" != xno; then
17880 case $lt_cv_dlopen in
17882 save_CPPFLAGS="$CPPFLAGS"
17883 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
17885 save_LDFLAGS="$LDFLAGS"
17886 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
17889 LIBS="$lt_cv_dlopen_libs $LIBS"
17891 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
17892 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
17893 if test "${lt_cv_dlopen_self+set}" = set; then
17894 echo $ECHO_N "(cached) $ECHO_C" >&6
17896 if test "$cross_compiling" = yes; then :
17897 lt_cv_dlopen_self=cross
17899 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17900 lt_status=$lt_dlunknown
17901 cat > conftest.$ac_ext <<EOF
17902 #line 17902 "configure"
17903 #include "confdefs.h"
17912 # define LT_DLGLOBAL RTLD_GLOBAL
17915 # define LT_DLGLOBAL DL_GLOBAL
17917 # define LT_DLGLOBAL 0
17921 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
17922 find out it does not work in some platform. */
17923 #ifndef LT_DLLAZY_OR_NOW
17925 # define LT_DLLAZY_OR_NOW RTLD_LAZY
17928 # define LT_DLLAZY_OR_NOW DL_LAZY
17931 # define LT_DLLAZY_OR_NOW RTLD_NOW
17934 # define LT_DLLAZY_OR_NOW DL_NOW
17936 # define LT_DLLAZY_OR_NOW 0
17944 extern "C" void exit (int);
17947 void fnord() { int i=42;}
17950 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
17951 int status = $lt_dlunknown;
17955 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
17956 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
17957 /* dlclose (self); */
17963 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
17964 (eval $ac_link) 2>&5
17966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17967 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
17968 (./conftest; exit; ) 2>/dev/null
17970 case x$lt_status in
17971 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
17972 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
17973 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
17976 # compilation failed
17977 lt_cv_dlopen_self=no
17984 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
17985 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
17987 if test "x$lt_cv_dlopen_self" = xyes; then
17988 LDFLAGS="$LDFLAGS $link_static_flag"
17989 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
17990 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
17991 if test "${lt_cv_dlopen_self_static+set}" = set; then
17992 echo $ECHO_N "(cached) $ECHO_C" >&6
17994 if test "$cross_compiling" = yes; then :
17995 lt_cv_dlopen_self_static=cross
17997 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
17998 lt_status=$lt_dlunknown
17999 cat > conftest.$ac_ext <<EOF
18000 #line 18000 "configure"
18001 #include "confdefs.h"
18010 # define LT_DLGLOBAL RTLD_GLOBAL
18013 # define LT_DLGLOBAL DL_GLOBAL
18015 # define LT_DLGLOBAL 0
18019 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
18020 find out it does not work in some platform. */
18021 #ifndef LT_DLLAZY_OR_NOW
18023 # define LT_DLLAZY_OR_NOW RTLD_LAZY
18026 # define LT_DLLAZY_OR_NOW DL_LAZY
18029 # define LT_DLLAZY_OR_NOW RTLD_NOW
18032 # define LT_DLLAZY_OR_NOW DL_NOW
18034 # define LT_DLLAZY_OR_NOW 0
18042 extern "C" void exit (int);
18045 void fnord() { int i=42;}
18048 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
18049 int status = $lt_dlunknown;
18053 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
18054 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
18055 /* dlclose (self); */
18061 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
18062 (eval $ac_link) 2>&5
18064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18065 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
18066 (./conftest; exit; ) 2>/dev/null
18068 case x$lt_status in
18069 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
18070 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
18071 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
18074 # compilation failed
18075 lt_cv_dlopen_self_static=no
18082 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
18083 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
18086 CPPFLAGS="$save_CPPFLAGS"
18087 LDFLAGS="$save_LDFLAGS"
18092 case $lt_cv_dlopen_self in
18093 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
18094 *) enable_dlopen_self=unknown ;;
18097 case $lt_cv_dlopen_self_static in
18098 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
18099 *) enable_dlopen_self_static=unknown ;;
18104 # The else clause should only fire when bootstrapping the
18105 # libtool distribution, otherwise you forgot to ship ltmain.sh
18106 # with your package, and you will get complaints that there are
18107 # no rules to generate ltmain.sh.
18108 if test -f "$ltmain"; then
18109 # See if we are running on zsh, and set the options which allow our commands through
18110 # without removal of \ escapes.
18111 if test -n "${ZSH_VERSION+set}" ; then
18112 setopt NO_GLOB_SUBST
18114 # Now quote all the things that may contain metacharacters while being
18115 # careful not to overquote the AC_SUBSTed values. We take copies of the
18116 # variables and quote the copies for generation of the libtool script.
18117 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
18119 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
18120 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
18121 deplibs_check_method reload_flag reload_cmds need_locks \
18122 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
18123 lt_cv_sys_global_symbol_to_c_name_address \
18124 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
18125 old_postinstall_cmds old_postuninstall_cmds \
18129 lt_prog_compiler_wl_CXX \
18130 lt_prog_compiler_pic_CXX \
18131 lt_prog_compiler_static_CXX \
18132 lt_prog_compiler_no_builtin_flag_CXX \
18133 export_dynamic_flag_spec_CXX \
18134 thread_safe_flag_spec_CXX \
18135 whole_archive_flag_spec_CXX \
18136 enable_shared_with_static_runtimes_CXX \
18137 old_archive_cmds_CXX \
18138 old_archive_from_new_cmds_CXX \
18139 predep_objects_CXX \
18140 postdep_objects_CXX \
18143 compiler_lib_search_path_CXX \
18145 archive_expsym_cmds_CXX \
18146 postinstall_cmds_CXX \
18147 postuninstall_cmds_CXX \
18148 old_archive_from_expsyms_cmds_CXX \
18149 allow_undefined_flag_CXX \
18150 no_undefined_flag_CXX \
18151 export_symbols_cmds_CXX \
18152 hardcode_libdir_flag_spec_CXX \
18153 hardcode_libdir_flag_spec_ld_CXX \
18154 hardcode_libdir_separator_CXX \
18155 hardcode_automatic_CXX \
18157 module_expsym_cmds_CXX \
18158 lt_cv_prog_compiler_c_o_CXX \
18159 exclude_expsyms_CXX \
18160 include_expsyms_CXX; do
18163 old_archive_cmds_CXX | \
18164 old_archive_from_new_cmds_CXX | \
18165 archive_cmds_CXX | \
18166 archive_expsym_cmds_CXX | \
18167 module_cmds_CXX | \
18168 module_expsym_cmds_CXX | \
18169 old_archive_from_expsyms_cmds_CXX | \
18170 export_symbols_cmds_CXX | \
18171 extract_expsyms_cmds | reload_cmds | finish_cmds | \
18172 postinstall_cmds | postuninstall_cmds | \
18173 old_postinstall_cmds | old_postuninstall_cmds | \
18174 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
18175 # Double-quote double-evaled strings.
18176 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
18179 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
18185 *'\$0 --fallback-echo"')
18186 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
18192 cat <<__EOF__ >> "$cfgfile"
18193 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
18195 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
18197 # Shell to use when invoking shell scripts.
18200 # Whether or not to build shared libraries.
18201 build_libtool_libs=$enable_shared
18203 # Whether or not to build static libraries.
18204 build_old_libs=$enable_static
18206 # Whether or not to add -lc for building shared libraries.
18207 build_libtool_need_lc=$archive_cmds_need_lc_CXX
18209 # Whether or not to disallow shared libs when runtime libs are static
18210 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
18212 # Whether or not to optimize for fast installation.
18213 fast_install=$enable_fast_install
18216 host_alias=$host_alias
18219 # An echo program that does not interpret backslashes.
18224 AR_FLAGS=$lt_AR_FLAGS
18229 # A language-specific compiler.
18230 CC=$lt_compiler_CXX
18232 # Is the compiler the GNU C compiler?
18238 # The linker used to build libraries.
18241 # Whether we need hard or soft links.
18244 # A BSD-compatible nm program.
18247 # A symbol stripping program
18250 # Used to examine libraries when file_magic_cmd begins "file"
18251 MAGIC_CMD=$MAGIC_CMD
18253 # Used on cygwin: DLL creation program.
18256 # Used on cygwin: object dumper.
18259 # Used on cygwin: assembler.
18262 # The name of the directory that contains temporary libtool files.
18265 # How to create reloadable object files.
18266 reload_flag=$lt_reload_flag
18267 reload_cmds=$lt_reload_cmds
18269 # How to pass a linker flag through the compiler.
18270 wl=$lt_lt_prog_compiler_wl_CXX
18272 # Object file suffix (normally "o").
18273 objext="$ac_objext"
18275 # Old archive suffix (normally "a").
18278 # Shared library suffix (normally ".so").
18279 shrext_cmds='$shrext_cmds'
18281 # Executable file suffix (normally "").
18284 # Additional compiler flags for building library objects.
18285 pic_flag=$lt_lt_prog_compiler_pic_CXX
18288 # What is the maximum length of a command?
18289 max_cmd_len=$lt_cv_sys_max_cmd_len
18291 # Does compiler simultaneously support -c and -o options?
18292 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
18294 # Must we lock files when doing compilation ?
18295 need_locks=$lt_need_locks
18297 # Do we need the lib prefix for modules?
18298 need_lib_prefix=$need_lib_prefix
18300 # Do we need a version for libraries?
18301 need_version=$need_version
18303 # Whether dlopen is supported.
18304 dlopen_support=$enable_dlopen
18306 # Whether dlopen of programs is supported.
18307 dlopen_self=$enable_dlopen_self
18309 # Whether dlopen of statically linked programs is supported.
18310 dlopen_self_static=$enable_dlopen_self_static
18312 # Compiler flag to prevent dynamic linking.
18313 link_static_flag=$lt_lt_prog_compiler_static_CXX
18315 # Compiler flag to turn off builtin functions.
18316 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
18318 # Compiler flag to allow reflexive dlopens.
18319 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
18321 # Compiler flag to generate shared objects directly from archives.
18322 whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
18324 # Compiler flag to generate thread-safe objects.
18325 thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
18327 # Library versioning type.
18328 version_type=$version_type
18330 # Format of library name prefix.
18331 libname_spec=$lt_libname_spec
18333 # List of archive names. First name is the real one, the rest are links.
18334 # The last name is the one that the linker finds with -lNAME.
18335 library_names_spec=$lt_library_names_spec
18337 # The coded name of the library, if different from the real name.
18338 soname_spec=$lt_soname_spec
18340 # Commands used to build and install an old-style archive.
18342 old_archive_cmds=$lt_old_archive_cmds_CXX
18343 old_postinstall_cmds=$lt_old_postinstall_cmds
18344 old_postuninstall_cmds=$lt_old_postuninstall_cmds
18346 # Create an old-style archive from a shared archive.
18347 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
18349 # Create a temporary old-style archive to link instead of a shared archive.
18350 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
18352 # Commands used to build and install a shared archive.
18353 archive_cmds=$lt_archive_cmds_CXX
18354 archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
18355 postinstall_cmds=$lt_postinstall_cmds
18356 postuninstall_cmds=$lt_postuninstall_cmds
18358 # Commands used to build a loadable module (assumed same as above if empty)
18359 module_cmds=$lt_module_cmds_CXX
18360 module_expsym_cmds=$lt_module_expsym_cmds_CXX
18362 # Commands to strip libraries.
18363 old_striplib=$lt_old_striplib
18364 striplib=$lt_striplib
18366 # Dependencies to place before the objects being linked to create a
18368 predep_objects=$lt_predep_objects_CXX
18370 # Dependencies to place after the objects being linked to create a
18372 postdep_objects=$lt_postdep_objects_CXX
18374 # Dependencies to place before the objects being linked to create a
18376 predeps=$lt_predeps_CXX
18378 # Dependencies to place after the objects being linked to create a
18380 postdeps=$lt_postdeps_CXX
18382 # The library search path used internally by the compiler when linking
18383 # a shared library.
18384 compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
18386 # Method to check whether dependent libraries are shared objects.
18387 deplibs_check_method=$lt_deplibs_check_method
18389 # Command to use when deplibs_check_method == file_magic.
18390 file_magic_cmd=$lt_file_magic_cmd
18392 # Flag that allows shared libraries with undefined symbols to be built.
18393 allow_undefined_flag=$lt_allow_undefined_flag_CXX
18395 # Flag that forces no undefined symbols.
18396 no_undefined_flag=$lt_no_undefined_flag_CXX
18398 # Commands used to finish a libtool library installation in a directory.
18399 finish_cmds=$lt_finish_cmds
18401 # Same as above, but a single script fragment to be evaled but not shown.
18402 finish_eval=$lt_finish_eval
18404 # Take the output of nm and produce a listing of raw symbols and C names.
18405 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
18407 # Transform the output of nm in a proper C declaration
18408 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
18410 # Transform the output of nm in a C name address pair
18411 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
18413 # This is the shared library runtime path variable.
18414 runpath_var=$runpath_var
18416 # This is the shared library path variable.
18417 shlibpath_var=$shlibpath_var
18419 # Is shlibpath searched before the hard-coded library search path?
18420 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
18422 # How to hardcode a shared library path into an executable.
18423 hardcode_action=$hardcode_action_CXX
18425 # Whether we should hardcode library paths into libraries.
18426 hardcode_into_libs=$hardcode_into_libs
18428 # Flag to hardcode \$libdir into a binary during linking.
18429 # This must work even if \$libdir does not exist.
18430 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
18432 # If ld is used when linking, flag to hardcode \$libdir into
18433 # a binary during linking. This must work even if \$libdir does
18435 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
18437 # Whether we need a single -rpath flag with a separated argument.
18438 hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
18440 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
18441 # resulting binary.
18442 hardcode_direct=$hardcode_direct_CXX
18444 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
18445 # resulting binary.
18446 hardcode_minus_L=$hardcode_minus_L_CXX
18448 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
18449 # the resulting binary.
18450 hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
18452 # Set to yes if building a shared library automatically hardcodes DIR into the library
18453 # and all subsequent libraries and executables linked against it.
18454 hardcode_automatic=$hardcode_automatic_CXX
18456 # Variables whose values should be saved in libtool wrapper scripts and
18457 # restored at relink time.
18458 variables_saved_for_relink="$variables_saved_for_relink"
18460 # Whether libtool must link a program against all its dependency libraries.
18461 link_all_deplibs=$link_all_deplibs_CXX
18463 # Compile-time system search path for libraries
18464 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
18466 # Run-time system search path for libraries
18467 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
18469 # Fix the shell variable \$srcfile for the compiler.
18470 fix_srcfile_path="$fix_srcfile_path_CXX"
18472 # Set to yes if exported symbols are required.
18473 always_export_symbols=$always_export_symbols_CXX
18475 # The commands to list exported symbols.
18476 export_symbols_cmds=$lt_export_symbols_cmds_CXX
18478 # The commands to extract the exported symbol list from a shared archive.
18479 extract_expsyms_cmds=$lt_extract_expsyms_cmds
18481 # Symbols that should not be listed in the preloaded symbols.
18482 exclude_expsyms=$lt_exclude_expsyms_CXX
18484 # Symbols that must always be exported.
18485 include_expsyms=$lt_include_expsyms_CXX
18487 # ### END LIBTOOL TAG CONFIG: $tagname
18493 # If there is no Makefile yet, we rely on a make rule to execute
18494 # `config.status --recheck' to rerun these tests and create the
18495 # libtool script then.
18496 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
18497 if test -f "$ltmain_in"; then
18498 test -f Makefile && make "$ltmain"
18504 ac_cpp='$CPP $CPPFLAGS'
18505 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18506 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18507 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18513 with_gnu_ldcxx=$with_gnu_ld
18514 with_gnu_ld=$lt_save_with_gnu_ld
18515 lt_cv_path_LDCXX=$lt_cv_path_LD
18516 lt_cv_path_LD=$lt_save_path_LD
18517 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
18518 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
18526 if test -n "$F77" && test "X$F77" != "Xno"; then
18529 ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
18530 ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18531 ac_compiler_gnu=$ac_cv_f77_compiler_gnu
18534 archive_cmds_need_lc_F77=no
18535 allow_undefined_flag_F77=
18536 always_export_symbols_F77=no
18537 archive_expsym_cmds_F77=
18538 export_dynamic_flag_spec_F77=
18539 hardcode_direct_F77=no
18540 hardcode_libdir_flag_spec_F77=
18541 hardcode_libdir_flag_spec_ld_F77=
18542 hardcode_libdir_separator_F77=
18543 hardcode_minus_L_F77=no
18544 hardcode_automatic_F77=no
18546 module_expsym_cmds_F77=
18547 link_all_deplibs_F77=unknown
18548 old_archive_cmds_F77=$old_archive_cmds
18549 no_undefined_flag_F77=
18550 whole_archive_flag_spec_F77=
18551 enable_shared_with_static_runtimes_F77=no
18553 # Source file extension for f77 test sources.
18556 # Object file extension for compiled f77 test sources.
18560 # Code to be used in simple compile tests
18561 lt_simple_compile_test_code=" subroutine t\n return\n end\n"
18563 # Code to be used in simple link tests
18564 lt_simple_link_test_code=" program t\n end\n"
18566 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
18568 # If no C compiler was specified, use CC.
18571 # Allow CC to be a program name with arguments.
18575 # Allow CC to be a program name with arguments.
18580 cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
18582 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
18583 echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
18584 echo "$as_me:$LINENO: result: $can_build_shared" >&5
18585 echo "${ECHO_T}$can_build_shared" >&6
18587 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
18588 echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
18589 test "$can_build_shared" = "no" && enable_shared=no
18591 # On AIX, shared libraries and static libraries use the same namespace, and
18592 # are all built from PIC.
18595 test "$enable_shared" = yes && enable_static=no
18596 if test -n "$RANLIB"; then
18597 archive_cmds="$archive_cmds~\$RANLIB \$lib"
18598 postinstall_cmds='$RANLIB $lib'
18602 test "$enable_shared" = yes && enable_static=no
18605 echo "$as_me:$LINENO: result: $enable_shared" >&5
18606 echo "${ECHO_T}$enable_shared" >&6
18608 echo "$as_me:$LINENO: checking whether to build static libraries" >&5
18609 echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
18610 # Make sure either enable_shared or enable_static is yes.
18611 test "$enable_shared" = yes || enable_static=yes
18612 echo "$as_me:$LINENO: result: $enable_static" >&5
18613 echo "${ECHO_T}$enable_static" >&6
18615 test "$ld_shlibs_F77" = no && can_build_shared=no
18620 lt_prog_compiler_wl_F77=
18621 lt_prog_compiler_pic_F77=
18622 lt_prog_compiler_static_F77=
18624 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
18625 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
18627 if test "$GCC" = yes; then
18628 lt_prog_compiler_wl_F77='-Wl,'
18629 lt_prog_compiler_static_F77='-static'
18633 # All AIX code is PIC.
18634 if test "$host_cpu" = ia64; then
18635 # AIX 5 now supports IA64 processor
18636 lt_prog_compiler_static_F77='-Bstatic'
18641 # FIXME: we need at least 68020 code to build shared libraries, but
18642 # adding the `-m68020' flag to GCC prevents building anything better,
18644 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
18647 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
18648 # PIC is the default for these OSes.
18651 mingw* | pw32* | os2*)
18652 # This hack is so that the source file can tell whether it is being
18653 # built for inclusion in a dll (and should export symbols for example).
18654 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18657 darwin* | rhapsody*)
18658 # PIC is the default on this platform
18659 # Common symbols not allowed in MH_DYLIB files
18660 lt_prog_compiler_pic_F77='-fno-common'
18664 # Just because we use GCC doesn't mean we suddenly get shared libraries
18665 # on systems that don't support them.
18666 lt_prog_compiler_can_build_shared_F77=no
18671 if test -d /usr/nec; then
18672 lt_prog_compiler_pic_F77=-Kconform_pic
18677 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18678 # not for PA HP-UX.
18679 case "$host_cpu" in
18684 lt_prog_compiler_pic_F77='-fPIC'
18690 lt_prog_compiler_pic_F77='-fPIC'
18694 # PORTME Check for flag to pass linker flags through the system compiler.
18697 lt_prog_compiler_wl_F77='-Wl,'
18698 if test "$host_cpu" = ia64; then
18699 # AIX 5 now supports IA64 processor
18700 lt_prog_compiler_static_F77='-Bstatic'
18702 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
18706 mingw* | pw32* | os2*)
18707 # This hack is so that the source file can tell whether it is being
18708 # built for inclusion in a dll (and should export symbols for example).
18709 lt_prog_compiler_pic_F77='-DDLL_EXPORT'
18712 hpux9* | hpux10* | hpux11*)
18713 lt_prog_compiler_wl_F77='-Wl,'
18714 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
18715 # not for PA HP-UX.
18716 case "$host_cpu" in
18721 lt_prog_compiler_pic_F77='+Z'
18724 # Is there a better lt_prog_compiler_static that works with the bundled CC?
18725 lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
18728 irix5* | irix6* | nonstopux*)
18729 lt_prog_compiler_wl_F77='-Wl,'
18730 # PIC (with -KPIC) is the default.
18731 lt_prog_compiler_static_F77='-non_shared'
18735 lt_prog_compiler_pic_F77='-KPIC'
18736 lt_prog_compiler_static_F77='-Bstatic'
18742 lt_prog_compiler_wl_F77='-Wl,'
18743 lt_prog_compiler_pic_F77='-KPIC'
18744 lt_prog_compiler_static_F77='-static'
18747 lt_prog_compiler_wl_F77='-Wl,'
18748 # All Alpha code is PIC.
18749 lt_prog_compiler_static_F77='-non_shared'
18754 osf3* | osf4* | osf5*)
18755 lt_prog_compiler_wl_F77='-Wl,'
18756 # All OSF/1 code is PIC.
18757 lt_prog_compiler_static_F77='-non_shared'
18761 lt_prog_compiler_pic_F77='-Kpic'
18762 lt_prog_compiler_static_F77='-dn'
18766 lt_prog_compiler_wl_F77='-Wl,'
18767 lt_prog_compiler_pic_F77='-KPIC'
18768 lt_prog_compiler_static_F77='-Bstatic'
18772 lt_prog_compiler_wl_F77='-Qoption ld '
18773 lt_prog_compiler_pic_F77='-PIC'
18774 lt_prog_compiler_static_F77='-Bstatic'
18777 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
18778 lt_prog_compiler_wl_F77='-Wl,'
18779 lt_prog_compiler_pic_F77='-KPIC'
18780 lt_prog_compiler_static_F77='-Bstatic'
18784 if test -d /usr/nec ;then
18785 lt_prog_compiler_pic_F77='-Kconform_pic'
18786 lt_prog_compiler_static_F77='-Bstatic'
18791 lt_prog_compiler_pic_F77='-pic'
18792 lt_prog_compiler_static_F77='-Bstatic'
18796 lt_prog_compiler_can_build_shared_F77=no
18801 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
18802 echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
18805 # Check to make sure the PIC flag actually works.
18807 if test -n "$lt_prog_compiler_pic_F77"; then
18809 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
18810 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
18811 if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
18812 echo $ECHO_N "(cached) $ECHO_C" >&6
18814 lt_prog_compiler_pic_works_F77=no
18815 ac_outfile=conftest.$ac_objext
18816 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18817 lt_compiler_flag="$lt_prog_compiler_pic_F77"
18818 # Insert the option either (1) after the last *FLAGS variable, or
18819 # (2) before a word containing "conftest.", or (3) at the end.
18820 # Note that $ac_compile itself does not contain backslashes and begins
18821 # with a dollar sign (not a hyphen), so the echo should work correctly.
18822 # The option is referenced via a variable to avoid confusing sed.
18823 lt_compile=`echo "$ac_compile" | $SED \
18824 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18825 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18826 -e 's:$: $lt_compiler_flag:'`
18827 (eval echo "\"\$as_me:18827: $lt_compile\"" >&5)
18828 (eval "$lt_compile" 2>conftest.err)
18830 cat conftest.err >&5
18831 echo "$as_me:18831: \$? = $ac_status" >&5
18832 if (exit $ac_status) && test -s "$ac_outfile"; then
18833 # The compiler can only warn and ignore the option if not recognized
18834 # So say no if there are warnings
18835 if test ! -s conftest.err; then
18836 lt_prog_compiler_pic_works_F77=yes
18842 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
18843 echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
18845 if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
18846 case $lt_prog_compiler_pic_F77 in
18848 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
18851 lt_prog_compiler_pic_F77=
18852 lt_prog_compiler_can_build_shared_F77=no
18857 # For platforms which do not support PIC, -DPIC is meaningless:
18859 lt_prog_compiler_pic_F77=
18862 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
18866 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
18867 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
18868 if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
18869 echo $ECHO_N "(cached) $ECHO_C" >&6
18871 lt_cv_prog_compiler_c_o_F77=no
18872 $rm -r conftest 2>/dev/null
18876 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
18878 lt_compiler_flag="-o out/conftest2.$ac_objext"
18879 # Insert the option either (1) after the last *FLAGS variable, or
18880 # (2) before a word containing "conftest.", or (3) at the end.
18881 # Note that $ac_compile itself does not contain backslashes and begins
18882 # with a dollar sign (not a hyphen), so the echo should work correctly.
18883 lt_compile=`echo "$ac_compile" | $SED \
18884 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
18885 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
18886 -e 's:$: $lt_compiler_flag:'`
18887 (eval echo "\"\$as_me:18887: $lt_compile\"" >&5)
18888 (eval "$lt_compile" 2>out/conftest.err)
18890 cat out/conftest.err >&5
18891 echo "$as_me:18891: \$? = $ac_status" >&5
18892 if (exit $ac_status) && test -s out/conftest2.$ac_objext
18894 # The compiler can only warn and ignore the option if not recognized
18895 # So say no if there are warnings
18896 if test ! -s out/conftest.err; then
18897 lt_cv_prog_compiler_c_o_F77=yes
18902 # SGI C++ compiler will create directory out/ii_files/ for
18903 # template instantiation
18904 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
18905 $rm out/* && rmdir out
18911 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
18912 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
18915 hard_links="nottested"
18916 if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
18917 # do not overwrite the value of need_locks provided by the user
18918 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
18919 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
18922 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18924 ln conftest.a conftest.b 2>&5 || hard_links=no
18925 ln conftest.a conftest.b 2>/dev/null && hard_links=no
18926 echo "$as_me:$LINENO: result: $hard_links" >&5
18927 echo "${ECHO_T}$hard_links" >&6
18928 if test "$hard_links" = no; then
18929 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
18930 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
18937 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
18938 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
18941 allow_undefined_flag_F77=
18942 enable_shared_with_static_runtimes_F77=no
18944 archive_expsym_cmds_F77=
18945 old_archive_From_new_cmds_F77=
18946 old_archive_from_expsyms_cmds_F77=
18947 export_dynamic_flag_spec_F77=
18948 whole_archive_flag_spec_F77=
18949 thread_safe_flag_spec_F77=
18950 hardcode_libdir_flag_spec_F77=
18951 hardcode_libdir_flag_spec_ld_F77=
18952 hardcode_libdir_separator_F77=
18953 hardcode_direct_F77=no
18954 hardcode_minus_L_F77=no
18955 hardcode_shlibpath_var_F77=unsupported
18956 link_all_deplibs_F77=unknown
18957 hardcode_automatic_F77=no
18959 module_expsym_cmds_F77=
18960 always_export_symbols_F77=no
18961 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
18962 # include_expsyms should be a list of space-separated symbols to be *always*
18963 # included in the symbol list
18964 include_expsyms_F77=
18965 # exclude_expsyms can be an extended regexp of symbols to exclude
18966 # it will be wrapped by ` (' and `)$', so one must not match beginning or
18967 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
18968 # as well as any symbol that contains `d'.
18969 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
18970 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
18971 # platforms (ab)use it in PIC code, but their linkers get confused if
18972 # the symbol is explicitly referenced. Since portable code cannot
18973 # rely on this symbol name, it's probably fine to never include it in
18974 # preloaded symbol tables.
18975 extract_expsyms_cmds=
18978 cygwin* | mingw* | pw32*)
18979 # FIXME: the MSVC++ port hasn't been tested in a loooong time
18980 # When not using gcc, we currently assume that we are using
18981 # Microsoft Visual C++.
18982 if test "$GCC" != yes; then
18992 if test "$with_gnu_ld" = yes; then
18993 # If archive_cmds runs LD, not CC, wlarc should be empty
18996 # See if GNU ld supports shared libraries.
18998 aix3* | aix4* | aix5*)
18999 # On AIX/PPC, the GNU linker is very broken
19000 if test "$host_cpu" != ia64; then
19004 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
19005 *** to be unable to reliably create shared libraries on AIX.
19006 *** Therefore, libtool is disabling shared libraries support. If you
19007 *** really care for shared libraries, you may want to modify your PATH
19008 *** so that a non-GNU linker is found, and then restart.
19015 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)'
19016 hardcode_libdir_flag_spec_F77='-L$libdir'
19017 hardcode_minus_L_F77=yes
19019 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
19020 # that the semantics of dynamic libraries on AmigaOS, at least up
19021 # to version 4, is to share data among multiple programs linked
19022 # with the same dynamic library. Since this doesn't match the
19023 # behavior of shared libraries on other platforms, we can't use
19029 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19030 allow_undefined_flag_F77=unsupported
19031 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
19032 # support --undefined. This deserves some investigation. FIXME
19033 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19039 cygwin* | mingw* | pw32*)
19040 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
19041 # as there is no search path for DLLs.
19042 hardcode_libdir_flag_spec_F77='-L$libdir'
19043 allow_undefined_flag_F77=unsupported
19044 always_export_symbols_F77=no
19045 enable_shared_with_static_runtimes_F77=yes
19046 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
19048 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
19049 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19050 # If the export-symbols file already is a .def file (1st line
19051 # is EXPORTS), use it as is; otherwise, prepend...
19052 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
19053 cp $export_symbols $output_objdir/$soname.def;
19055 echo EXPORTS > $output_objdir/$soname.def;
19056 cat $export_symbols >> $output_objdir/$soname.def;
19058 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
19065 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19066 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
19069 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19070 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19075 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
19079 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
19080 *** create shared libraries on Solaris systems. Therefore, libtool
19081 *** is disabling shared libraries support. We urge you to upgrade GNU
19082 *** binutils to release 2.9.1 or newer. Another option is to modify
19083 *** your PATH or compiler configuration so that the native linker is
19084 *** used, and then restart.
19087 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19088 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19089 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19096 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19098 hardcode_direct_F77=yes
19099 hardcode_shlibpath_var_F77=no
19103 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19104 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19105 archive_cmds_F77="$tmp_archive_cmds"
19106 supports_anon_versioning=no
19107 case `$LD -v 2>/dev/null` in
19108 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
19109 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
19110 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
19111 *\ 2.11.*) ;; # other 2.11 versions
19112 *) supports_anon_versioning=yes ;;
19114 if test $supports_anon_versioning = yes; then
19115 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
19116 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
19117 $echo "local: *; };" >> $output_objdir/$libname.ver~
19118 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
19120 archive_expsym_cmds_F77="$tmp_archive_cmds"
19128 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
19129 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
19130 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
19137 if test "$ld_shlibs_F77" = yes; then
19138 runpath_var=LD_RUN_PATH
19139 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
19140 export_dynamic_flag_spec_F77='${wl}--export-dynamic'
19141 # ancient GNU ld didn't support --whole-archive et. al.
19142 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
19143 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
19145 whole_archive_flag_spec_F77=
19149 # PORTME fill in a description of your system's linker (not GNU ld)
19152 allow_undefined_flag_F77=unsupported
19153 always_export_symbols_F77=yes
19154 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'
19155 # Note: this linker hardcodes the directories in LIBPATH if there
19156 # are no directories specified by -L.
19157 hardcode_minus_L_F77=yes
19158 if test "$GCC" = yes && test -z "$link_static_flag"; then
19159 # Neither direct hardcoding nor static linking is supported with a
19161 hardcode_direct_F77=unsupported
19166 if test "$host_cpu" = ia64; then
19167 # On IA64, the linker does run time linking by default, so we don't
19168 # have to do anything special.
19169 aix_use_runtimelinking=no
19170 exp_sym_flag='-Bexport'
19173 # If we're using GNU nm, then we don't want the "-C" option.
19174 # -C means demangle to AIX nm, but means don't demangle with GNU nm
19175 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
19176 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'
19178 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'
19180 aix_use_runtimelinking=no
19182 # Test if we are trying to use run time linking or normal
19183 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
19184 # need to do runtime linking.
19185 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
19186 for ld_flag in $LDFLAGS; do
19187 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
19188 aix_use_runtimelinking=yes
19194 exp_sym_flag='-bexport'
19195 no_entry_flag='-bnoentry'
19198 # When large executables or shared objects are built, AIX ld can
19199 # have problems creating the table of contents. If linking a library
19200 # or program results in "error TOC overflow" add -mminimal-toc to
19201 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
19202 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
19204 archive_cmds_F77=''
19205 hardcode_direct_F77=yes
19206 hardcode_libdir_separator_F77=':'
19207 link_all_deplibs_F77=yes
19209 if test "$GCC" = yes; then
19210 case $host_os in aix4.012|aix4.012.*)
19211 # We only want to do this on AIX 4.2 and lower, the check
19212 # below for broken collect2 doesn't work under 4.3+
19213 collect2name=`${CC} -print-prog-name=collect2`
19214 if test -f "$collect2name" && \
19215 strings "$collect2name" | grep resolve_lib_name >/dev/null
19217 # We have reworked collect2
19218 hardcode_direct_F77=yes
19220 # We have old collect2
19221 hardcode_direct_F77=unsupported
19222 # It fails to find uninstalled libraries when the uninstalled
19223 # path is not listed in the libpath. Setting hardcode_minus_L
19224 # to unsupported forces relinking
19225 hardcode_minus_L_F77=yes
19226 hardcode_libdir_flag_spec_F77='-L$libdir'
19227 hardcode_libdir_separator_F77=
19230 shared_flag='-shared'
19233 if test "$host_cpu" = ia64; then
19234 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
19235 # chokes on -Wl,-G. The following line is correct:
19238 if test "$aix_use_runtimelinking" = yes; then
19239 shared_flag='${wl}-G'
19241 shared_flag='${wl}-bM:SRE'
19246 # It seems that -bexpall does not export symbols beginning with
19247 # underscore (_), so it is better to generate a list of symbols to export.
19248 always_export_symbols_F77=yes
19249 if test "$aix_use_runtimelinking" = yes; then
19250 # Warning - without using the other runtime loading flags (-brtl),
19251 # -berok will link without error, but may produce a broken library.
19252 allow_undefined_flag_F77='-berok'
19253 # Determine the default libpath from the value encoded in an empty executable.
19254 cat >conftest.$ac_ext <<_ACEOF
19259 rm -f conftest.$ac_objext conftest$ac_exeext
19260 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19261 (eval $ac_link) 2>conftest.er1
19263 grep -v '^ *+' conftest.er1 >conftest.err
19265 cat conftest.err >&5
19266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19267 (exit $ac_status); } &&
19268 { ac_try='test -z "$ac_f77_werror_flag"
19269 || test ! -s conftest.err'
19270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19271 (eval $ac_try) 2>&5
19273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19274 (exit $ac_status); }; } &&
19275 { ac_try='test -s conftest$ac_exeext'
19276 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19277 (eval $ac_try) 2>&5
19279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19280 (exit $ac_status); }; }; then
19282 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19284 # Check for a 64-bit object if we didn't find anything.
19285 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19288 echo "$as_me: failed program was:" >&5
19289 sed 's/^/| /' conftest.$ac_ext >&5
19292 rm -f conftest.err conftest.$ac_objext \
19293 conftest$ac_exeext conftest.$ac_ext
19294 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19296 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19297 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
19299 if test "$host_cpu" = ia64; then
19300 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
19301 allow_undefined_flag_F77="-z nodefs"
19302 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
19304 # Determine the default libpath from the value encoded in an empty executable.
19305 cat >conftest.$ac_ext <<_ACEOF
19310 rm -f conftest.$ac_objext conftest$ac_exeext
19311 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
19312 (eval $ac_link) 2>conftest.er1
19314 grep -v '^ *+' conftest.er1 >conftest.err
19316 cat conftest.err >&5
19317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19318 (exit $ac_status); } &&
19319 { ac_try='test -z "$ac_f77_werror_flag"
19320 || test ! -s conftest.err'
19321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19322 (eval $ac_try) 2>&5
19324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19325 (exit $ac_status); }; } &&
19326 { ac_try='test -s conftest$ac_exeext'
19327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
19328 (eval $ac_try) 2>&5
19330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19331 (exit $ac_status); }; }; then
19333 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19335 # Check for a 64-bit object if we didn't find anything.
19336 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
19339 echo "$as_me: failed program was:" >&5
19340 sed 's/^/| /' conftest.$ac_ext >&5
19343 rm -f conftest.err conftest.$ac_objext \
19344 conftest$ac_exeext conftest.$ac_ext
19345 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
19347 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
19348 # Warning - without using the other run time loading flags,
19349 # -berok will link without error, but may produce a broken library.
19350 no_undefined_flag_F77=' ${wl}-bernotok'
19351 allow_undefined_flag_F77=' ${wl}-berok'
19352 # -bexpall does not export symbols beginning with underscore (_)
19353 always_export_symbols_F77=yes
19354 # Exported symbols can be pulled into shared objects from archives
19355 whole_archive_flag_spec_F77=' '
19356 archive_cmds_need_lc_F77=yes
19357 # This is similar to how AIX traditionally builds it's shared libraries.
19358 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
19364 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)'
19365 hardcode_libdir_flag_spec_F77='-L$libdir'
19366 hardcode_minus_L_F77=yes
19367 # see comment about different semantics on the GNU ld section
19372 export_dynamic_flag_spec_F77=-rdynamic
19375 cygwin* | mingw* | pw32*)
19376 # When not using gcc, we currently assume that we are using
19377 # Microsoft Visual C++.
19378 # hardcode_libdir_flag_spec is actually meaningless, as there is
19379 # no search path for DLLs.
19380 hardcode_libdir_flag_spec_F77=' '
19381 allow_undefined_flag_F77=unsupported
19382 # Tell ltmain to make .lib files, not .a files.
19384 # Tell ltmain to make .dll files, not .so files.
19386 # FIXME: Setting linknames here is a bad hack.
19387 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
19388 # The linker will automatically build a .lib file if we build a DLL.
19389 old_archive_From_new_cmds_F77='true'
19390 # FIXME: Should let the user specify the lib program.
19391 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
19392 fix_srcfile_path='`cygpath -w "$srcfile"`'
19393 enable_shared_with_static_runtimes_F77=yes
19396 darwin* | rhapsody*)
19397 if test "$GXX" = yes ; then
19398 archive_cmds_need_lc_F77=no
19400 rhapsody* | darwin1.[012])
19401 allow_undefined_flag_F77='-undefined suppress'
19404 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
19405 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
19407 case ${MACOSX_DEPLOYMENT_TARGET} in
19409 allow_undefined_flag_F77='-flat_namespace -undefined suppress'
19412 allow_undefined_flag_F77='-undefined dynamic_lookup'
19418 lt_int_apple_cc_single_mod=no
19419 output_verbose_link_cmd='echo'
19420 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
19421 lt_int_apple_cc_single_mod=yes
19423 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19424 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
19426 archive_cmds_F77='$CC -r ${wl}-bind_at_load -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'
19428 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
19429 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
19430 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
19431 archive_expsym_cmds_F77='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}'
19433 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
19435 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}'
19436 hardcode_direct_F77=no
19437 hardcode_automatic_F77=yes
19438 hardcode_shlibpath_var_F77=unsupported
19439 whole_archive_flag_spec_F77='-all_load $convenience'
19440 link_all_deplibs_F77=yes
19447 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19448 hardcode_libdir_flag_spec_F77='-L$libdir'
19449 hardcode_shlibpath_var_F77=no
19456 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
19457 # support. Future versions do this automatically, but an explicit c++rt0.o
19458 # does not break anything, and helps significantly (at the cost of a little
19461 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
19462 hardcode_libdir_flag_spec_F77='-R$libdir'
19463 hardcode_direct_F77=yes
19464 hardcode_shlibpath_var_F77=no
19467 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
19469 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19470 hardcode_direct_F77=yes
19471 hardcode_minus_L_F77=yes
19472 hardcode_shlibpath_var_F77=no
19475 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
19476 freebsd* | kfreebsd*-gnu)
19477 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
19478 hardcode_libdir_flag_spec_F77='-R$libdir'
19479 hardcode_direct_F77=yes
19480 hardcode_shlibpath_var_F77=no
19484 if test "$GCC" = yes; then
19485 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'
19487 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'
19489 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19490 hardcode_libdir_separator_F77=:
19491 hardcode_direct_F77=yes
19493 # hardcode_minus_L: Not really in the search PATH,
19494 # but as the default location of the library.
19495 hardcode_minus_L_F77=yes
19496 export_dynamic_flag_spec_F77='${wl}-E'
19500 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
19501 case "$host_cpu" in
19503 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19506 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
19510 case "$host_cpu" in
19512 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
19515 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
19519 if test "$with_gnu_ld" = no; then
19520 case "$host_cpu" in
19522 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19523 hardcode_libdir_flag_spec_ld_F77='+b $libdir'
19524 hardcode_libdir_separator_F77=:
19525 hardcode_direct_F77=no
19526 hardcode_shlibpath_var_F77=no
19529 hardcode_libdir_flag_spec_F77='-L$libdir'
19530 hardcode_direct_F77=no
19531 hardcode_shlibpath_var_F77=no
19533 # hardcode_minus_L: Not really in the search PATH,
19534 # but as the default location of the library.
19535 hardcode_minus_L_F77=yes
19538 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
19539 hardcode_libdir_separator_F77=:
19540 hardcode_direct_F77=yes
19541 export_dynamic_flag_spec_F77='${wl}-E'
19543 # hardcode_minus_L: Not really in the search PATH,
19544 # but as the default location of the library.
19545 hardcode_minus_L_F77=yes
19551 irix5* | irix6* | nonstopux*)
19552 if test "$GCC" = yes; then
19553 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'
19555 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'
19556 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
19558 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19559 hardcode_libdir_separator_F77=:
19560 link_all_deplibs_F77=yes
19564 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
19565 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
19567 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
19569 hardcode_libdir_flag_spec_F77='-R$libdir'
19570 hardcode_direct_F77=yes
19571 hardcode_shlibpath_var_F77=no
19575 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19576 hardcode_direct_F77=yes
19577 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19578 hardcode_libdir_separator_F77=:
19579 hardcode_shlibpath_var_F77=no
19583 hardcode_direct_F77=yes
19584 hardcode_shlibpath_var_F77=no
19585 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
19586 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19587 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19588 export_dynamic_flag_spec_F77='${wl}-E'
19591 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
19592 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
19593 hardcode_libdir_flag_spec_F77='-R$libdir'
19596 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
19597 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
19604 hardcode_libdir_flag_spec_F77='-L$libdir'
19605 hardcode_minus_L_F77=yes
19606 allow_undefined_flag_F77=unsupported
19607 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'
19608 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
19612 if test "$GCC" = yes; then
19613 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19614 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'
19616 allow_undefined_flag_F77=' -expect_unresolved \*'
19617 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'
19619 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19620 hardcode_libdir_separator_F77=:
19623 osf4* | osf5*) # as osf3* with the addition of -msym flag
19624 if test "$GCC" = yes; then
19625 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
19626 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'
19627 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
19629 allow_undefined_flag_F77=' -expect_unresolved \*'
19630 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'
19631 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~
19632 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
19634 # Both c and cxx compiler support -rpath directly
19635 hardcode_libdir_flag_spec_F77='-rpath $libdir'
19637 hardcode_libdir_separator_F77=:
19641 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19642 hardcode_shlibpath_var_F77=no
19643 export_dynamic_flag_spec_F77='${wl}-Bexport'
19644 runpath_var=LD_RUN_PATH
19645 hardcode_runpath_var=yes
19649 no_undefined_flag_F77=' -z text'
19650 if test "$GCC" = yes; then
19651 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19652 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19653 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
19655 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19656 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19657 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19659 hardcode_libdir_flag_spec_F77='-R$libdir'
19660 hardcode_shlibpath_var_F77=no
19662 solaris2.[0-5] | solaris2.[0-5].*) ;;
19663 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
19664 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
19666 link_all_deplibs_F77=yes
19670 if test "x$host_vendor" = xsequent; then
19671 # Use $CC to link under sequent, because it throws in some extra .o
19672 # files that make .init and .fini sections work.
19673 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
19675 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
19677 hardcode_libdir_flag_spec_F77='-L$libdir'
19678 hardcode_direct_F77=yes
19679 hardcode_minus_L_F77=yes
19680 hardcode_shlibpath_var_F77=no
19684 case $host_vendor in
19686 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19687 hardcode_direct_F77=yes # is this really true???
19690 ## LD is ld it makes a PLAMLIB
19691 ## CC just makes a GrossModule.
19692 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19693 reload_cmds_F77='$CC -r -o $output$reload_objs'
19694 hardcode_direct_F77=no
19697 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19698 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
19701 runpath_var='LD_RUN_PATH'
19702 hardcode_shlibpath_var_F77=no
19706 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19707 hardcode_shlibpath_var_F77=no
19708 export_dynamic_flag_spec_F77='-Bexport'
19712 if test -d /usr/nec; then
19713 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19714 hardcode_shlibpath_var_F77=no
19715 runpath_var=LD_RUN_PATH
19716 hardcode_runpath_var=yes
19722 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
19723 hardcode_direct_F77=yes
19724 hardcode_minus_L_F77=no
19725 hardcode_shlibpath_var_F77=no
19726 hardcode_runpath_var=yes
19727 runpath_var=LD_RUN_PATH
19730 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
19731 no_undefined_flag_F77='${wl}-z ${wl}text'
19732 if test "$GCC" = yes; then
19733 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19735 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
19737 runpath_var='LD_RUN_PATH'
19738 hardcode_shlibpath_var_F77=no
19742 no_undefined_flag_F77=' -z text'
19743 # $CC -shared without GNU ld will not create a library from C++
19744 # object files and a static libstdc++, better avoid it by now
19745 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
19746 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
19747 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
19748 hardcode_libdir_flag_spec_F77=
19749 hardcode_shlibpath_var_F77=no
19750 runpath_var='LD_RUN_PATH'
19754 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
19755 hardcode_libdir_flag_spec_F77='-L$libdir'
19756 hardcode_shlibpath_var_F77=no
19765 echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
19766 echo "${ECHO_T}$ld_shlibs_F77" >&6
19767 test "$ld_shlibs_F77" = no && can_build_shared=no
19769 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
19770 if test "$GCC" = yes; then
19771 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
19775 # Do we need to explicitly link libc?
19777 case "x$archive_cmds_need_lc_F77" in
19779 # Assume -lc should be added
19780 archive_cmds_need_lc_F77=yes
19782 if test "$enable_shared" = yes && test "$GCC" = yes; then
19783 case $archive_cmds_F77 in
19785 # FIXME: we may have to deal with multi-command sequences.
19788 # Test whether the compiler implicitly links with -lc since on some
19789 # systems, -lgcc has to come before -lc. If gcc already passes -lc
19790 # to ld, don't add -lc before -lgcc.
19791 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
19792 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
19794 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
19796 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
19797 (eval $ac_compile) 2>&5
19799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19800 (exit $ac_status); } 2>conftest.err; then
19803 libobjs=conftest.$ac_objext
19805 wl=$lt_prog_compiler_wl_F77
19811 lt_save_allow_undefined_flag=$allow_undefined_flag_F77
19812 allow_undefined_flag_F77=
19813 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
19814 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
19816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19817 (exit $ac_status); }
19819 archive_cmds_need_lc_F77=no
19821 archive_cmds_need_lc_F77=yes
19823 allow_undefined_flag_F77=$lt_save_allow_undefined_flag
19825 cat conftest.err 1>&5
19828 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
19829 echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
19836 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
19837 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
19838 library_names_spec=
19839 libname_spec='lib$name'
19843 postuninstall_cmds=
19847 shlibpath_overrides_runpath=unknown
19849 dynamic_linker="$host_os ld.so"
19850 sys_lib_dlsearch_path_spec="/lib /usr/lib"
19851 if test "$GCC" = yes; then
19852 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19853 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
19854 # if the path contains ";" then we assume it to be the separator
19855 # otherwise default to the standard path separator (i.e. ":") - it is
19856 # assumed that no part of a normal pathname contains ";" but that should
19857 # okay in the real world where ";" in dirpaths is itself problematic.
19858 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19860 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19863 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
19865 need_lib_prefix=unknown
19866 hardcode_into_libs=no
19868 # when you set need_version to no, make sure it does not cause -set_version
19869 # flags to be left without arguments
19870 need_version=unknown
19875 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
19876 shlibpath_var=LIBPATH
19878 # AIX 3 has no versioning support, so we append a major version to the name.
19879 soname_spec='${libname}${release}${shared_ext}$major'
19886 hardcode_into_libs=yes
19887 if test "$host_cpu" = ia64; then
19888 # AIX 5 supports IA64
19889 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
19890 shlibpath_var=LD_LIBRARY_PATH
19892 # With GCC up to 2.95.x, collect2 would create an import file
19893 # for dependence libraries. The import file would start with
19894 # the line `#! .'. This would cause the generated library to
19895 # depend on `.', always an invalid library. This was fixed in
19896 # development snapshots of GCC prior to 3.0.
19898 aix4 | aix4.[01] | aix4.[01].*)
19899 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
19901 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
19904 can_build_shared=no
19908 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
19909 # soname into executable. Probably we can add versioning support to
19910 # collect2, so additional links can be useful in future.
19911 if test "$aix_use_runtimelinking" = yes; then
19912 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
19913 # instead of lib<name>.a to let people know that these are not
19914 # typical AIX shared libraries.
19915 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19917 # We preserve .a as extension for shared libraries through AIX4.2
19918 # and later when we are not doing run time linking.
19919 library_names_spec='${libname}${release}.a $libname.a'
19920 soname_spec='${libname}${release}${shared_ext}$major'
19922 shlibpath_var=LIBPATH
19927 library_names_spec='$libname.ixlibrary $libname.a'
19928 # Create ${libname}_ixlibrary.a entries in /sys/libs.
19929 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'
19933 library_names_spec='${libname}${shared_ext}'
19934 dynamic_linker="$host_os ld.so"
19935 shlibpath_var=LIBRARY_PATH
19941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
19942 soname_spec='${libname}${release}${shared_ext}$major'
19943 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
19944 shlibpath_var=LD_LIBRARY_PATH
19945 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
19946 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
19947 # the default ld.so.conf also contains /usr/contrib/lib and
19948 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
19949 # libtool to hard-code these into programs
19952 cygwin* | mingw* | pw32*)
19953 version_type=windows
19958 case $GCC,$host_os in
19959 yes,cygwin* | yes,mingw* | yes,pw32*)
19960 library_names_spec='$libname.dll.a'
19961 # DLL is installed to $(libdir)/../bin by postinstall_cmds
19962 postinstall_cmds='base_file=`basename \${file}`~
19963 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
19964 dldir=$destdir/`dirname \$dlpath`~
19965 test -d \$dldir || mkdir -p \$dldir~
19966 $install_prog $dir/$dlname \$dldir/$dlname'
19967 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
19968 dlpath=$dir/\$dldll~
19970 shlibpath_overrides_runpath=yes
19974 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
19975 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19976 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
19979 # MinGW DLLs use traditional 'lib' prefix
19980 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
19981 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
19982 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
19983 # It is most probably a Windows format PATH printed by
19984 # mingw gcc, but we are running on Cygwin. Gcc prints its search
19985 # path with ; separators, and with drive letters. We can handle the
19986 # drive letters (cygwin fileutils understands them), so leave them,
19987 # especially as we might pass files found there to a mingw objdump,
19988 # which wouldn't understand a cygwinified path. Ahh.
19989 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
19991 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
19995 # pw32 DLLs use 'pw' prefix rather than 'lib'
19996 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
20002 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
20005 dynamic_linker='Win32 ld.exe'
20006 # FIXME: first we should search . and the directory the executable is in
20010 darwin* | rhapsody*)
20011 dynamic_linker="$host_os dyld"
20012 version_type=darwin
20015 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
20016 soname_spec='${libname}${release}${major}$shared_ext'
20017 shlibpath_overrides_runpath=yes
20018 shlibpath_var=DYLD_LIBRARY_PATH
20019 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
20020 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
20021 if test "$GCC" = yes; then
20022 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
20024 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
20026 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
20033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
20034 soname_spec='${libname}${release}${shared_ext}$major'
20035 shlibpath_var=LD_LIBRARY_PATH
20046 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20047 soname_spec='${libname}${release}${shared_ext}$major'
20048 shlibpath_var=LD_LIBRARY_PATH
20049 shlibpath_overrides_runpath=no
20050 hardcode_into_libs=yes
20051 dynamic_linker='GNU ld.so'
20055 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
20056 version_type=freebsd-$objformat
20057 case $version_type in
20059 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
20064 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
20068 shlibpath_var=LD_LIBRARY_PATH
20071 shlibpath_overrides_runpath=yes
20073 freebsd3.01* | freebsdelf3.01*)
20074 shlibpath_overrides_runpath=yes
20075 hardcode_into_libs=yes
20078 shlibpath_overrides_runpath=no
20079 hardcode_into_libs=yes
20088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
20089 soname_spec='${libname}${release}${shared_ext}$major'
20090 shlibpath_var=LD_LIBRARY_PATH
20091 hardcode_into_libs=yes
20094 hpux9* | hpux10* | hpux11*)
20095 # Give a soname corresponding to the major version so that dld.sl refuses to
20096 # link against other versions.
20100 case "$host_cpu" in
20103 hardcode_into_libs=yes
20104 dynamic_linker="$host_os dld.so"
20105 shlibpath_var=LD_LIBRARY_PATH
20106 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20107 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20108 soname_spec='${libname}${release}${shared_ext}$major'
20109 if test "X$HPUX_IA64_MODE" = X32; then
20110 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
20112 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
20114 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20118 hardcode_into_libs=yes
20119 dynamic_linker="$host_os dld.sl"
20120 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
20121 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
20122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20123 soname_spec='${libname}${release}${shared_ext}$major'
20124 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
20125 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
20129 dynamic_linker="$host_os dld.sl"
20130 shlibpath_var=SHLIB_PATH
20131 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
20132 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20133 soname_spec='${libname}${release}${shared_ext}$major'
20136 # HP-UX runs *really* slowly unless shared libraries are mode 555.
20137 postinstall_cmds='chmod 555 $lib'
20140 irix5* | irix6* | nonstopux*)
20142 nonstopux*) version_type=nonstopux ;;
20144 if test "$lt_cv_prog_gnu_ld" = yes; then
20152 soname_spec='${libname}${release}${shared_ext}$major'
20153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
20155 irix5* | nonstopux*)
20156 libsuff= shlibsuff=
20159 case $LD in # libtool.m4 will add one of these switches to LD
20160 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
20161 libsuff= shlibsuff= libmagic=32-bit;;
20162 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
20163 libsuff=32 shlibsuff=N32 libmagic=N32;;
20164 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
20165 libsuff=64 shlibsuff=64 libmagic=64-bit;;
20166 *) libsuff= shlibsuff= libmagic=never-match;;
20170 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
20171 shlibpath_overrides_runpath=no
20172 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
20173 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
20174 hardcode_into_libs=yes
20177 # No shared lib support for Linux oldld, aout, or coff.
20178 linux*oldld* | linux*aout* | linux*coff*)
20182 # This must be Linux ELF.
20187 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20188 soname_spec='${libname}${release}${shared_ext}$major'
20189 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
20190 shlibpath_var=LD_LIBRARY_PATH
20191 shlibpath_overrides_runpath=no
20192 # This implies no fast_install, which is unacceptable.
20193 # Some rework will be needed to allow for fast_install
20194 # before this can be enabled.
20195 hardcode_into_libs=yes
20197 # Append ld.so.conf contents to the search path
20198 if test -f /etc/ld.so.conf; then
20199 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
20200 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
20203 # We used to test for /lib/ld.so.1 and disable shared libraries on
20204 # powerpc, because MkLinux only supported shared libraries with the
20205 # GNU dynamic linker. Since this was broken with cross compilers,
20206 # most powerpc-linux boxes support dynamic linking these days and
20207 # people can always --disable-shared, the test was removed, and we
20208 # assume the GNU/Linux dynamic linker is in use.
20209 dynamic_linker='GNU/Linux ld.so'
20216 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20217 soname_spec='${libname}${release}${shared_ext}$major'
20218 shlibpath_var=LD_LIBRARY_PATH
20219 shlibpath_overrides_runpath=no
20220 hardcode_into_libs=yes
20221 dynamic_linker='GNU ld.so'
20228 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
20229 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20230 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20231 dynamic_linker='NetBSD (a.out) ld.so'
20233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
20234 soname_spec='${libname}${release}${shared_ext}$major'
20235 dynamic_linker='NetBSD ld.elf_so'
20237 shlibpath_var=LD_LIBRARY_PATH
20238 shlibpath_overrides_runpath=yes
20239 hardcode_into_libs=yes
20244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20245 shlibpath_var=LD_LIBRARY_PATH
20246 shlibpath_overrides_runpath=yes
20253 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20254 soname_spec='${libname}${release}${shared_ext}$major'
20255 shlibpath_var=LD_LIBRARY_PATH
20256 shlibpath_overrides_runpath=yes
20263 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20264 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
20265 shlibpath_var=LD_LIBRARY_PATH
20266 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
20268 openbsd2.[89] | openbsd2.[89].*)
20269 shlibpath_overrides_runpath=no
20272 shlibpath_overrides_runpath=yes
20276 shlibpath_overrides_runpath=yes
20281 libname_spec='$name'
20284 library_names_spec='$libname${shared_ext} $libname.a'
20285 dynamic_linker='OS/2 ld.exe'
20286 shlibpath_var=LIBPATH
20289 osf3* | osf4* | osf5*)
20293 soname_spec='${libname}${release}${shared_ext}$major'
20294 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20295 shlibpath_var=LD_LIBRARY_PATH
20296 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
20297 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
20302 soname_spec='${libname}${release}${shared_ext}$major'
20303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20304 shlibpath_var=LD_LIBRARY_PATH
20311 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20312 soname_spec='${libname}${release}${shared_ext}$major'
20313 shlibpath_var=LD_LIBRARY_PATH
20314 shlibpath_overrides_runpath=yes
20315 hardcode_into_libs=yes
20316 # ldd complains unless libraries are executable
20317 postinstall_cmds='chmod +x $lib'
20322 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
20323 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
20324 shlibpath_var=LD_LIBRARY_PATH
20325 shlibpath_overrides_runpath=yes
20326 if test "$with_gnu_ld" = yes; then
20332 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
20334 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20335 soname_spec='${libname}${release}${shared_ext}$major'
20336 shlibpath_var=LD_LIBRARY_PATH
20337 case $host_vendor in
20339 shlibpath_overrides_runpath=no
20341 export_dynamic_flag_spec='${wl}-Blargedynsym'
20342 runpath_var=LD_RUN_PATH
20350 shlibpath_overrides_runpath=no
20351 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
20357 if test -d /usr/nec ;then
20359 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
20360 soname_spec='$libname${shared_ext}.$major'
20361 shlibpath_var=LD_LIBRARY_PATH
20367 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
20368 soname_spec='${libname}${release}${shared_ext}$major'
20369 shlibpath_var=LD_LIBRARY_PATH
20376 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
20377 echo "${ECHO_T}$dynamic_linker" >&6
20378 test "$dynamic_linker" = no && can_build_shared=no
20380 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
20381 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
20382 hardcode_action_F77=
20383 if test -n "$hardcode_libdir_flag_spec_F77" || \
20384 test -n "$runpath_var F77" || \
20385 test "X$hardcode_automatic_F77"="Xyes" ; then
20387 # We can hardcode non-existant directories.
20388 if test "$hardcode_direct_F77" != no &&
20389 # If the only mechanism to avoid hardcoding is shlibpath_var, we
20390 # have to relink, otherwise we might link with an installed library
20391 # when we should be linking with a yet-to-be-installed one
20392 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
20393 test "$hardcode_minus_L_F77" != no; then
20394 # Linking always hardcodes the temporary library directory.
20395 hardcode_action_F77=relink
20397 # We can link without hardcoding, and we can hardcode nonexisting dirs.
20398 hardcode_action_F77=immediate
20401 # We cannot hardcode anything, or else we can only hardcode existing
20403 hardcode_action_F77=unsupported
20405 echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
20406 echo "${ECHO_T}$hardcode_action_F77" >&6
20408 if test "$hardcode_action_F77" = relink; then
20409 # Fast installation is not supported
20410 enable_fast_install=no
20411 elif test "$shlibpath_overrides_runpath" = yes ||
20412 test "$enable_shared" = no; then
20413 # Fast installation is not necessary
20414 enable_fast_install=needless
20419 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
20420 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
20421 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
20422 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
20423 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
20424 echo "$as_me:$LINENO: result: yes" >&5
20425 echo "${ECHO_T}yes" >&6
20427 # FIXME - insert some real tests, host_os isn't really good enough
20430 if test -n "$STRIP" ; then
20431 striplib="$STRIP -x"
20432 echo "$as_me:$LINENO: result: yes" >&5
20433 echo "${ECHO_T}yes" >&6
20435 echo "$as_me:$LINENO: result: no" >&5
20436 echo "${ECHO_T}no" >&6
20440 echo "$as_me:$LINENO: result: no" >&5
20441 echo "${ECHO_T}no" >&6
20448 # The else clause should only fire when bootstrapping the
20449 # libtool distribution, otherwise you forgot to ship ltmain.sh
20450 # with your package, and you will get complaints that there are
20451 # no rules to generate ltmain.sh.
20452 if test -f "$ltmain"; then
20453 # See if we are running on zsh, and set the options which allow our commands through
20454 # without removal of \ escapes.
20455 if test -n "${ZSH_VERSION+set}" ; then
20456 setopt NO_GLOB_SUBST
20458 # Now quote all the things that may contain metacharacters while being
20459 # careful not to overquote the AC_SUBSTed values. We take copies of the
20460 # variables and quote the copies for generation of the libtool script.
20461 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
20463 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
20464 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
20465 deplibs_check_method reload_flag reload_cmds need_locks \
20466 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
20467 lt_cv_sys_global_symbol_to_c_name_address \
20468 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
20469 old_postinstall_cmds old_postuninstall_cmds \
20473 lt_prog_compiler_wl_F77 \
20474 lt_prog_compiler_pic_F77 \
20475 lt_prog_compiler_static_F77 \
20476 lt_prog_compiler_no_builtin_flag_F77 \
20477 export_dynamic_flag_spec_F77 \
20478 thread_safe_flag_spec_F77 \
20479 whole_archive_flag_spec_F77 \
20480 enable_shared_with_static_runtimes_F77 \
20481 old_archive_cmds_F77 \
20482 old_archive_from_new_cmds_F77 \
20483 predep_objects_F77 \
20484 postdep_objects_F77 \
20487 compiler_lib_search_path_F77 \
20489 archive_expsym_cmds_F77 \
20490 postinstall_cmds_F77 \
20491 postuninstall_cmds_F77 \
20492 old_archive_from_expsyms_cmds_F77 \
20493 allow_undefined_flag_F77 \
20494 no_undefined_flag_F77 \
20495 export_symbols_cmds_F77 \
20496 hardcode_libdir_flag_spec_F77 \
20497 hardcode_libdir_flag_spec_ld_F77 \
20498 hardcode_libdir_separator_F77 \
20499 hardcode_automatic_F77 \
20501 module_expsym_cmds_F77 \
20502 lt_cv_prog_compiler_c_o_F77 \
20503 exclude_expsyms_F77 \
20504 include_expsyms_F77; do
20507 old_archive_cmds_F77 | \
20508 old_archive_from_new_cmds_F77 | \
20509 archive_cmds_F77 | \
20510 archive_expsym_cmds_F77 | \
20511 module_cmds_F77 | \
20512 module_expsym_cmds_F77 | \
20513 old_archive_from_expsyms_cmds_F77 | \
20514 export_symbols_cmds_F77 | \
20515 extract_expsyms_cmds | reload_cmds | finish_cmds | \
20516 postinstall_cmds | postuninstall_cmds | \
20517 old_postinstall_cmds | old_postuninstall_cmds | \
20518 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
20519 # Double-quote double-evaled strings.
20520 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
20523 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
20529 *'\$0 --fallback-echo"')
20530 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
20536 cat <<__EOF__ >> "$cfgfile"
20537 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
20539 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
20541 # Shell to use when invoking shell scripts.
20544 # Whether or not to build shared libraries.
20545 build_libtool_libs=$enable_shared
20547 # Whether or not to build static libraries.
20548 build_old_libs=$enable_static
20550 # Whether or not to add -lc for building shared libraries.
20551 build_libtool_need_lc=$archive_cmds_need_lc_F77
20553 # Whether or not to disallow shared libs when runtime libs are static
20554 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
20556 # Whether or not to optimize for fast installation.
20557 fast_install=$enable_fast_install
20560 host_alias=$host_alias
20563 # An echo program that does not interpret backslashes.
20568 AR_FLAGS=$lt_AR_FLAGS
20573 # A language-specific compiler.
20574 CC=$lt_compiler_F77
20576 # Is the compiler the GNU C compiler?
20582 # The linker used to build libraries.
20585 # Whether we need hard or soft links.
20588 # A BSD-compatible nm program.
20591 # A symbol stripping program
20594 # Used to examine libraries when file_magic_cmd begins "file"
20595 MAGIC_CMD=$MAGIC_CMD
20597 # Used on cygwin: DLL creation program.
20600 # Used on cygwin: object dumper.
20603 # Used on cygwin: assembler.
20606 # The name of the directory that contains temporary libtool files.
20609 # How to create reloadable object files.
20610 reload_flag=$lt_reload_flag
20611 reload_cmds=$lt_reload_cmds
20613 # How to pass a linker flag through the compiler.
20614 wl=$lt_lt_prog_compiler_wl_F77
20616 # Object file suffix (normally "o").
20617 objext="$ac_objext"
20619 # Old archive suffix (normally "a").
20622 # Shared library suffix (normally ".so").
20623 shrext_cmds='$shrext_cmds'
20625 # Executable file suffix (normally "").
20628 # Additional compiler flags for building library objects.
20629 pic_flag=$lt_lt_prog_compiler_pic_F77
20632 # What is the maximum length of a command?
20633 max_cmd_len=$lt_cv_sys_max_cmd_len
20635 # Does compiler simultaneously support -c and -o options?
20636 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
20638 # Must we lock files when doing compilation ?
20639 need_locks=$lt_need_locks
20641 # Do we need the lib prefix for modules?
20642 need_lib_prefix=$need_lib_prefix
20644 # Do we need a version for libraries?
20645 need_version=$need_version
20647 # Whether dlopen is supported.
20648 dlopen_support=$enable_dlopen
20650 # Whether dlopen of programs is supported.
20651 dlopen_self=$enable_dlopen_self
20653 # Whether dlopen of statically linked programs is supported.
20654 dlopen_self_static=$enable_dlopen_self_static
20656 # Compiler flag to prevent dynamic linking.
20657 link_static_flag=$lt_lt_prog_compiler_static_F77
20659 # Compiler flag to turn off builtin functions.
20660 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
20662 # Compiler flag to allow reflexive dlopens.
20663 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
20665 # Compiler flag to generate shared objects directly from archives.
20666 whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
20668 # Compiler flag to generate thread-safe objects.
20669 thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
20671 # Library versioning type.
20672 version_type=$version_type
20674 # Format of library name prefix.
20675 libname_spec=$lt_libname_spec
20677 # List of archive names. First name is the real one, the rest are links.
20678 # The last name is the one that the linker finds with -lNAME.
20679 library_names_spec=$lt_library_names_spec
20681 # The coded name of the library, if different from the real name.
20682 soname_spec=$lt_soname_spec
20684 # Commands used to build and install an old-style archive.
20686 old_archive_cmds=$lt_old_archive_cmds_F77
20687 old_postinstall_cmds=$lt_old_postinstall_cmds
20688 old_postuninstall_cmds=$lt_old_postuninstall_cmds
20690 # Create an old-style archive from a shared archive.
20691 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
20693 # Create a temporary old-style archive to link instead of a shared archive.
20694 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
20696 # Commands used to build and install a shared archive.
20697 archive_cmds=$lt_archive_cmds_F77
20698 archive_expsym_cmds=$lt_archive_expsym_cmds_F77
20699 postinstall_cmds=$lt_postinstall_cmds
20700 postuninstall_cmds=$lt_postuninstall_cmds
20702 # Commands used to build a loadable module (assumed same as above if empty)
20703 module_cmds=$lt_module_cmds_F77
20704 module_expsym_cmds=$lt_module_expsym_cmds_F77
20706 # Commands to strip libraries.
20707 old_striplib=$lt_old_striplib
20708 striplib=$lt_striplib
20710 # Dependencies to place before the objects being linked to create a
20712 predep_objects=$lt_predep_objects_F77
20714 # Dependencies to place after the objects being linked to create a
20716 postdep_objects=$lt_postdep_objects_F77
20718 # Dependencies to place before the objects being linked to create a
20720 predeps=$lt_predeps_F77
20722 # Dependencies to place after the objects being linked to create a
20724 postdeps=$lt_postdeps_F77
20726 # The library search path used internally by the compiler when linking
20727 # a shared library.
20728 compiler_lib_search_path=$lt_compiler_lib_search_path_F77
20730 # Method to check whether dependent libraries are shared objects.
20731 deplibs_check_method=$lt_deplibs_check_method
20733 # Command to use when deplibs_check_method == file_magic.
20734 file_magic_cmd=$lt_file_magic_cmd
20736 # Flag that allows shared libraries with undefined symbols to be built.
20737 allow_undefined_flag=$lt_allow_undefined_flag_F77
20739 # Flag that forces no undefined symbols.
20740 no_undefined_flag=$lt_no_undefined_flag_F77
20742 # Commands used to finish a libtool library installation in a directory.
20743 finish_cmds=$lt_finish_cmds
20745 # Same as above, but a single script fragment to be evaled but not shown.
20746 finish_eval=$lt_finish_eval
20748 # Take the output of nm and produce a listing of raw symbols and C names.
20749 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
20751 # Transform the output of nm in a proper C declaration
20752 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
20754 # Transform the output of nm in a C name address pair
20755 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
20757 # This is the shared library runtime path variable.
20758 runpath_var=$runpath_var
20760 # This is the shared library path variable.
20761 shlibpath_var=$shlibpath_var
20763 # Is shlibpath searched before the hard-coded library search path?
20764 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
20766 # How to hardcode a shared library path into an executable.
20767 hardcode_action=$hardcode_action_F77
20769 # Whether we should hardcode library paths into libraries.
20770 hardcode_into_libs=$hardcode_into_libs
20772 # Flag to hardcode \$libdir into a binary during linking.
20773 # This must work even if \$libdir does not exist.
20774 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
20776 # If ld is used when linking, flag to hardcode \$libdir into
20777 # a binary during linking. This must work even if \$libdir does
20779 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
20781 # Whether we need a single -rpath flag with a separated argument.
20782 hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
20784 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
20785 # resulting binary.
20786 hardcode_direct=$hardcode_direct_F77
20788 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
20789 # resulting binary.
20790 hardcode_minus_L=$hardcode_minus_L_F77
20792 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
20793 # the resulting binary.
20794 hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
20796 # Set to yes if building a shared library automatically hardcodes DIR into the library
20797 # and all subsequent libraries and executables linked against it.
20798 hardcode_automatic=$hardcode_automatic_F77
20800 # Variables whose values should be saved in libtool wrapper scripts and
20801 # restored at relink time.
20802 variables_saved_for_relink="$variables_saved_for_relink"
20804 # Whether libtool must link a program against all its dependency libraries.
20805 link_all_deplibs=$link_all_deplibs_F77
20807 # Compile-time system search path for libraries
20808 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
20810 # Run-time system search path for libraries
20811 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
20813 # Fix the shell variable \$srcfile for the compiler.
20814 fix_srcfile_path="$fix_srcfile_path_F77"
20816 # Set to yes if exported symbols are required.
20817 always_export_symbols=$always_export_symbols_F77
20819 # The commands to list exported symbols.
20820 export_symbols_cmds=$lt_export_symbols_cmds_F77
20822 # The commands to extract the exported symbol list from a shared archive.
20823 extract_expsyms_cmds=$lt_extract_expsyms_cmds
20825 # Symbols that should not be listed in the preloaded symbols.
20826 exclude_expsyms=$lt_exclude_expsyms_F77
20828 # Symbols that must always be exported.
20829 include_expsyms=$lt_include_expsyms_F77
20831 # ### END LIBTOOL TAG CONFIG: $tagname
20837 # If there is no Makefile yet, we rely on a make rule to execute
20838 # `config.status --recheck' to rerun these tests and create the
20839 # libtool script then.
20840 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
20841 if test -f "$ltmain_in"; then
20842 test -f Makefile && make "$ltmain"
20848 ac_cpp='$CPP $CPPFLAGS'
20849 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20850 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20851 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20861 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
20865 # Source file extension for Java test sources.
20868 # Object file extension for compiled Java test sources.
20872 # Code to be used in simple compile tests
20873 lt_simple_compile_test_code="class foo {}\n"
20875 # Code to be used in simple link tests
20876 lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n'
20878 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
20880 # If no C compiler was specified, use CC.
20883 # Allow CC to be a program name with arguments.
20887 # Allow CC to be a program name with arguments.
20893 # GCJ did not exist at the time GCC didn't implicitly link libc in.
20894 archive_cmds_need_lc_GCJ=no
20897 lt_prog_compiler_no_builtin_flag_GCJ=
20899 if test "$GCC" = yes; then
20900 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
20903 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
20904 echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
20905 if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
20906 echo $ECHO_N "(cached) $ECHO_C" >&6
20908 lt_cv_prog_compiler_rtti_exceptions=no
20909 ac_outfile=conftest.$ac_objext
20910 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
20911 lt_compiler_flag="-fno-rtti -fno-exceptions"
20912 # Insert the option either (1) after the last *FLAGS variable, or
20913 # (2) before a word containing "conftest.", or (3) at the end.
20914 # Note that $ac_compile itself does not contain backslashes and begins
20915 # with a dollar sign (not a hyphen), so the echo should work correctly.
20916 # The option is referenced via a variable to avoid confusing sed.
20917 lt_compile=`echo "$ac_compile" | $SED \
20918 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
20919 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
20920 -e 's:$: $lt_compiler_flag:'`
20921 (eval echo "\"\$as_me:20921: $lt_compile\"" >&5)
20922 (eval "$lt_compile" 2>conftest.err)
20924 cat conftest.err >&5
20925 echo "$as_me:20925: \$? = $ac_status" >&5
20926 if (exit $ac_status) && test -s "$ac_outfile"; then
20927 # The compiler can only warn and ignore the option if not recognized
20928 # So say no if there are warnings
20929 if test ! -s conftest.err; then
20930 lt_cv_prog_compiler_rtti_exceptions=yes
20936 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
20937 echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
20939 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
20940 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
20947 lt_prog_compiler_wl_GCJ=
20948 lt_prog_compiler_pic_GCJ=
20949 lt_prog_compiler_static_GCJ=
20951 echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
20952 echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
20954 if test "$GCC" = yes; then
20955 lt_prog_compiler_wl_GCJ='-Wl,'
20956 lt_prog_compiler_static_GCJ='-static'
20960 # All AIX code is PIC.
20961 if test "$host_cpu" = ia64; then
20962 # AIX 5 now supports IA64 processor
20963 lt_prog_compiler_static_GCJ='-Bstatic'
20968 # FIXME: we need at least 68020 code to build shared libraries, but
20969 # adding the `-m68020' flag to GCC prevents building anything better,
20971 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
20974 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
20975 # PIC is the default for these OSes.
20978 mingw* | pw32* | os2*)
20979 # This hack is so that the source file can tell whether it is being
20980 # built for inclusion in a dll (and should export symbols for example).
20981 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
20984 darwin* | rhapsody*)
20985 # PIC is the default on this platform
20986 # Common symbols not allowed in MH_DYLIB files
20987 lt_prog_compiler_pic_GCJ='-fno-common'
20991 # Just because we use GCC doesn't mean we suddenly get shared libraries
20992 # on systems that don't support them.
20993 lt_prog_compiler_can_build_shared_GCJ=no
20998 if test -d /usr/nec; then
20999 lt_prog_compiler_pic_GCJ=-Kconform_pic
21004 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21005 # not for PA HP-UX.
21006 case "$host_cpu" in
21011 lt_prog_compiler_pic_GCJ='-fPIC'
21017 lt_prog_compiler_pic_GCJ='-fPIC'
21021 # PORTME Check for flag to pass linker flags through the system compiler.
21024 lt_prog_compiler_wl_GCJ='-Wl,'
21025 if test "$host_cpu" = ia64; then
21026 # AIX 5 now supports IA64 processor
21027 lt_prog_compiler_static_GCJ='-Bstatic'
21029 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
21033 mingw* | pw32* | os2*)
21034 # This hack is so that the source file can tell whether it is being
21035 # built for inclusion in a dll (and should export symbols for example).
21036 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
21039 hpux9* | hpux10* | hpux11*)
21040 lt_prog_compiler_wl_GCJ='-Wl,'
21041 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
21042 # not for PA HP-UX.
21043 case "$host_cpu" in
21048 lt_prog_compiler_pic_GCJ='+Z'
21051 # Is there a better lt_prog_compiler_static that works with the bundled CC?
21052 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
21055 irix5* | irix6* | nonstopux*)
21056 lt_prog_compiler_wl_GCJ='-Wl,'
21057 # PIC (with -KPIC) is the default.
21058 lt_prog_compiler_static_GCJ='-non_shared'
21062 lt_prog_compiler_pic_GCJ='-KPIC'
21063 lt_prog_compiler_static_GCJ='-Bstatic'
21069 lt_prog_compiler_wl_GCJ='-Wl,'
21070 lt_prog_compiler_pic_GCJ='-KPIC'
21071 lt_prog_compiler_static_GCJ='-static'
21074 lt_prog_compiler_wl_GCJ='-Wl,'
21075 # All Alpha code is PIC.
21076 lt_prog_compiler_static_GCJ='-non_shared'
21081 osf3* | osf4* | osf5*)
21082 lt_prog_compiler_wl_GCJ='-Wl,'
21083 # All OSF/1 code is PIC.
21084 lt_prog_compiler_static_GCJ='-non_shared'
21088 lt_prog_compiler_pic_GCJ='-Kpic'
21089 lt_prog_compiler_static_GCJ='-dn'
21093 lt_prog_compiler_wl_GCJ='-Wl,'
21094 lt_prog_compiler_pic_GCJ='-KPIC'
21095 lt_prog_compiler_static_GCJ='-Bstatic'
21099 lt_prog_compiler_wl_GCJ='-Qoption ld '
21100 lt_prog_compiler_pic_GCJ='-PIC'
21101 lt_prog_compiler_static_GCJ='-Bstatic'
21104 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
21105 lt_prog_compiler_wl_GCJ='-Wl,'
21106 lt_prog_compiler_pic_GCJ='-KPIC'
21107 lt_prog_compiler_static_GCJ='-Bstatic'
21111 if test -d /usr/nec ;then
21112 lt_prog_compiler_pic_GCJ='-Kconform_pic'
21113 lt_prog_compiler_static_GCJ='-Bstatic'
21118 lt_prog_compiler_pic_GCJ='-pic'
21119 lt_prog_compiler_static_GCJ='-Bstatic'
21123 lt_prog_compiler_can_build_shared_GCJ=no
21128 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
21129 echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
21132 # Check to make sure the PIC flag actually works.
21134 if test -n "$lt_prog_compiler_pic_GCJ"; then
21136 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
21137 echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
21138 if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
21139 echo $ECHO_N "(cached) $ECHO_C" >&6
21141 lt_prog_compiler_pic_works_GCJ=no
21142 ac_outfile=conftest.$ac_objext
21143 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21144 lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
21145 # Insert the option either (1) after the last *FLAGS variable, or
21146 # (2) before a word containing "conftest.", or (3) at the end.
21147 # Note that $ac_compile itself does not contain backslashes and begins
21148 # with a dollar sign (not a hyphen), so the echo should work correctly.
21149 # The option is referenced via a variable to avoid confusing sed.
21150 lt_compile=`echo "$ac_compile" | $SED \
21151 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21152 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21153 -e 's:$: $lt_compiler_flag:'`
21154 (eval echo "\"\$as_me:21154: $lt_compile\"" >&5)
21155 (eval "$lt_compile" 2>conftest.err)
21157 cat conftest.err >&5
21158 echo "$as_me:21158: \$? = $ac_status" >&5
21159 if (exit $ac_status) && test -s "$ac_outfile"; then
21160 # The compiler can only warn and ignore the option if not recognized
21161 # So say no if there are warnings
21162 if test ! -s conftest.err; then
21163 lt_prog_compiler_pic_works_GCJ=yes
21169 echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
21170 echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
21172 if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
21173 case $lt_prog_compiler_pic_GCJ in
21175 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
21178 lt_prog_compiler_pic_GCJ=
21179 lt_prog_compiler_can_build_shared_GCJ=no
21184 # For platforms which do not support PIC, -DPIC is meaningless:
21186 lt_prog_compiler_pic_GCJ=
21189 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
21193 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
21194 echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
21195 if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
21196 echo $ECHO_N "(cached) $ECHO_C" >&6
21198 lt_cv_prog_compiler_c_o_GCJ=no
21199 $rm -r conftest 2>/dev/null
21203 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
21205 lt_compiler_flag="-o out/conftest2.$ac_objext"
21206 # Insert the option either (1) after the last *FLAGS variable, or
21207 # (2) before a word containing "conftest.", or (3) at the end.
21208 # Note that $ac_compile itself does not contain backslashes and begins
21209 # with a dollar sign (not a hyphen), so the echo should work correctly.
21210 lt_compile=`echo "$ac_compile" | $SED \
21211 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
21212 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
21213 -e 's:$: $lt_compiler_flag:'`
21214 (eval echo "\"\$as_me:21214: $lt_compile\"" >&5)
21215 (eval "$lt_compile" 2>out/conftest.err)
21217 cat out/conftest.err >&5
21218 echo "$as_me:21218: \$? = $ac_status" >&5
21219 if (exit $ac_status) && test -s out/conftest2.$ac_objext
21221 # The compiler can only warn and ignore the option if not recognized
21222 # So say no if there are warnings
21223 if test ! -s out/conftest.err; then
21224 lt_cv_prog_compiler_c_o_GCJ=yes
21229 # SGI C++ compiler will create directory out/ii_files/ for
21230 # template instantiation
21231 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
21232 $rm out/* && rmdir out
21238 echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
21239 echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
21242 hard_links="nottested"
21243 if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
21244 # do not overwrite the value of need_locks provided by the user
21245 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
21246 echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
21249 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21251 ln conftest.a conftest.b 2>&5 || hard_links=no
21252 ln conftest.a conftest.b 2>/dev/null && hard_links=no
21253 echo "$as_me:$LINENO: result: $hard_links" >&5
21254 echo "${ECHO_T}$hard_links" >&6
21255 if test "$hard_links" = no; then
21256 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
21257 echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
21264 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
21265 echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
21268 allow_undefined_flag_GCJ=
21269 enable_shared_with_static_runtimes_GCJ=no
21271 archive_expsym_cmds_GCJ=
21272 old_archive_From_new_cmds_GCJ=
21273 old_archive_from_expsyms_cmds_GCJ=
21274 export_dynamic_flag_spec_GCJ=
21275 whole_archive_flag_spec_GCJ=
21276 thread_safe_flag_spec_GCJ=
21277 hardcode_libdir_flag_spec_GCJ=
21278 hardcode_libdir_flag_spec_ld_GCJ=
21279 hardcode_libdir_separator_GCJ=
21280 hardcode_direct_GCJ=no
21281 hardcode_minus_L_GCJ=no
21282 hardcode_shlibpath_var_GCJ=unsupported
21283 link_all_deplibs_GCJ=unknown
21284 hardcode_automatic_GCJ=no
21286 module_expsym_cmds_GCJ=
21287 always_export_symbols_GCJ=no
21288 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
21289 # include_expsyms should be a list of space-separated symbols to be *always*
21290 # included in the symbol list
21291 include_expsyms_GCJ=
21292 # exclude_expsyms can be an extended regexp of symbols to exclude
21293 # it will be wrapped by ` (' and `)$', so one must not match beginning or
21294 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
21295 # as well as any symbol that contains `d'.
21296 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
21297 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
21298 # platforms (ab)use it in PIC code, but their linkers get confused if
21299 # the symbol is explicitly referenced. Since portable code cannot
21300 # rely on this symbol name, it's probably fine to never include it in
21301 # preloaded symbol tables.
21302 extract_expsyms_cmds=
21305 cygwin* | mingw* | pw32*)
21306 # FIXME: the MSVC++ port hasn't been tested in a loooong time
21307 # When not using gcc, we currently assume that we are using
21308 # Microsoft Visual C++.
21309 if test "$GCC" != yes; then
21319 if test "$with_gnu_ld" = yes; then
21320 # If archive_cmds runs LD, not CC, wlarc should be empty
21323 # See if GNU ld supports shared libraries.
21325 aix3* | aix4* | aix5*)
21326 # On AIX/PPC, the GNU linker is very broken
21327 if test "$host_cpu" != ia64; then
21331 *** Warning: the GNU linker, at least up to release 2.9.1, is reported
21332 *** to be unable to reliably create shared libraries on AIX.
21333 *** Therefore, libtool is disabling shared libraries support. If you
21334 *** really care for shared libraries, you may want to modify your PATH
21335 *** so that a non-GNU linker is found, and then restart.
21342 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)'
21343 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21344 hardcode_minus_L_GCJ=yes
21346 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
21347 # that the semantics of dynamic libraries on AmigaOS, at least up
21348 # to version 4, is to share data among multiple programs linked
21349 # with the same dynamic library. Since this doesn't match the
21350 # behavior of shared libraries on other platforms, we can't use
21356 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21357 allow_undefined_flag_GCJ=unsupported
21358 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
21359 # support --undefined. This deserves some investigation. FIXME
21360 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21366 cygwin* | mingw* | pw32*)
21367 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
21368 # as there is no search path for DLLs.
21369 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21370 allow_undefined_flag_GCJ=unsupported
21371 always_export_symbols_GCJ=no
21372 enable_shared_with_static_runtimes_GCJ=yes
21373 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
21375 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
21376 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21377 # If the export-symbols file already is a .def file (1st line
21378 # is EXPORTS), use it as is; otherwise, prepend...
21379 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
21380 cp $export_symbols $output_objdir/$soname.def;
21382 echo EXPORTS > $output_objdir/$soname.def;
21383 cat $export_symbols >> $output_objdir/$soname.def;
21385 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
21392 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21393 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
21396 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21397 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21402 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
21406 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
21407 *** create shared libraries on Solaris systems. Therefore, libtool
21408 *** is disabling shared libraries support. We urge you to upgrade GNU
21409 *** binutils to release 2.9.1 or newer. Another option is to modify
21410 *** your PATH or compiler configuration so that the native linker is
21411 *** used, and then restart.
21414 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21415 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21416 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21423 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21425 hardcode_direct_GCJ=yes
21426 hardcode_shlibpath_var_GCJ=no
21430 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21431 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21432 archive_cmds_GCJ="$tmp_archive_cmds"
21433 supports_anon_versioning=no
21434 case `$LD -v 2>/dev/null` in
21435 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
21436 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
21437 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
21438 *\ 2.11.*) ;; # other 2.11 versions
21439 *) supports_anon_versioning=yes ;;
21441 if test $supports_anon_versioning = yes; then
21442 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
21443 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
21444 $echo "local: *; };" >> $output_objdir/$libname.ver~
21445 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
21447 archive_expsym_cmds_GCJ="$tmp_archive_cmds"
21455 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
21456 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
21457 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
21464 if test "$ld_shlibs_GCJ" = yes; then
21465 runpath_var=LD_RUN_PATH
21466 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
21467 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
21468 # ancient GNU ld didn't support --whole-archive et. al.
21469 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
21470 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
21472 whole_archive_flag_spec_GCJ=
21476 # PORTME fill in a description of your system's linker (not GNU ld)
21479 allow_undefined_flag_GCJ=unsupported
21480 always_export_symbols_GCJ=yes
21481 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'
21482 # Note: this linker hardcodes the directories in LIBPATH if there
21483 # are no directories specified by -L.
21484 hardcode_minus_L_GCJ=yes
21485 if test "$GCC" = yes && test -z "$link_static_flag"; then
21486 # Neither direct hardcoding nor static linking is supported with a
21488 hardcode_direct_GCJ=unsupported
21493 if test "$host_cpu" = ia64; then
21494 # On IA64, the linker does run time linking by default, so we don't
21495 # have to do anything special.
21496 aix_use_runtimelinking=no
21497 exp_sym_flag='-Bexport'
21500 # If we're using GNU nm, then we don't want the "-C" option.
21501 # -C means demangle to AIX nm, but means don't demangle with GNU nm
21502 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
21503 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'
21505 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'
21507 aix_use_runtimelinking=no
21509 # Test if we are trying to use run time linking or normal
21510 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
21511 # need to do runtime linking.
21512 case $host_os in aix4.[23]|aix4.[23].*|aix5*)
21513 for ld_flag in $LDFLAGS; do
21514 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
21515 aix_use_runtimelinking=yes
21521 exp_sym_flag='-bexport'
21522 no_entry_flag='-bnoentry'
21525 # When large executables or shared objects are built, AIX ld can
21526 # have problems creating the table of contents. If linking a library
21527 # or program results in "error TOC overflow" add -mminimal-toc to
21528 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
21529 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
21531 archive_cmds_GCJ=''
21532 hardcode_direct_GCJ=yes
21533 hardcode_libdir_separator_GCJ=':'
21534 link_all_deplibs_GCJ=yes
21536 if test "$GCC" = yes; then
21537 case $host_os in aix4.012|aix4.012.*)
21538 # We only want to do this on AIX 4.2 and lower, the check
21539 # below for broken collect2 doesn't work under 4.3+
21540 collect2name=`${CC} -print-prog-name=collect2`
21541 if test -f "$collect2name" && \
21542 strings "$collect2name" | grep resolve_lib_name >/dev/null
21544 # We have reworked collect2
21545 hardcode_direct_GCJ=yes
21547 # We have old collect2
21548 hardcode_direct_GCJ=unsupported
21549 # It fails to find uninstalled libraries when the uninstalled
21550 # path is not listed in the libpath. Setting hardcode_minus_L
21551 # to unsupported forces relinking
21552 hardcode_minus_L_GCJ=yes
21553 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21554 hardcode_libdir_separator_GCJ=
21557 shared_flag='-shared'
21560 if test "$host_cpu" = ia64; then
21561 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
21562 # chokes on -Wl,-G. The following line is correct:
21565 if test "$aix_use_runtimelinking" = yes; then
21566 shared_flag='${wl}-G'
21568 shared_flag='${wl}-bM:SRE'
21573 # It seems that -bexpall does not export symbols beginning with
21574 # underscore (_), so it is better to generate a list of symbols to export.
21575 always_export_symbols_GCJ=yes
21576 if test "$aix_use_runtimelinking" = yes; then
21577 # Warning - without using the other runtime loading flags (-brtl),
21578 # -berok will link without error, but may produce a broken library.
21579 allow_undefined_flag_GCJ='-berok'
21580 # Determine the default libpath from the value encoded in an empty executable.
21581 cat >conftest.$ac_ext <<_ACEOF
21584 cat confdefs.h >>conftest.$ac_ext
21585 cat >>conftest.$ac_ext <<_ACEOF
21586 /* end confdefs.h. */
21596 rm -f conftest.$ac_objext conftest$ac_exeext
21597 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21598 (eval $ac_link) 2>conftest.er1
21600 grep -v '^ *+' conftest.er1 >conftest.err
21602 cat conftest.err >&5
21603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21604 (exit $ac_status); } &&
21605 { ac_try='test -z "$ac_c_werror_flag"
21606 || test ! -s conftest.err'
21607 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21608 (eval $ac_try) 2>&5
21610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21611 (exit $ac_status); }; } &&
21612 { ac_try='test -s conftest$ac_exeext'
21613 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21614 (eval $ac_try) 2>&5
21616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21617 (exit $ac_status); }; }; then
21619 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21621 # Check for a 64-bit object if we didn't find anything.
21622 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21625 echo "$as_me: failed program was:" >&5
21626 sed 's/^/| /' conftest.$ac_ext >&5
21629 rm -f conftest.err conftest.$ac_objext \
21630 conftest$ac_exeext conftest.$ac_ext
21631 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21633 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21634 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag"
21636 if test "$host_cpu" = ia64; then
21637 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
21638 allow_undefined_flag_GCJ="-z nodefs"
21639 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
21641 # Determine the default libpath from the value encoded in an empty executable.
21642 cat >conftest.$ac_ext <<_ACEOF
21645 cat confdefs.h >>conftest.$ac_ext
21646 cat >>conftest.$ac_ext <<_ACEOF
21647 /* end confdefs.h. */
21657 rm -f conftest.$ac_objext conftest$ac_exeext
21658 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
21659 (eval $ac_link) 2>conftest.er1
21661 grep -v '^ *+' conftest.er1 >conftest.err
21663 cat conftest.err >&5
21664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21665 (exit $ac_status); } &&
21666 { ac_try='test -z "$ac_c_werror_flag"
21667 || test ! -s conftest.err'
21668 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21669 (eval $ac_try) 2>&5
21671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21672 (exit $ac_status); }; } &&
21673 { ac_try='test -s conftest$ac_exeext'
21674 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
21675 (eval $ac_try) 2>&5
21677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21678 (exit $ac_status); }; }; then
21680 aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21682 # Check for a 64-bit object if we didn't find anything.
21683 if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
21686 echo "$as_me: failed program was:" >&5
21687 sed 's/^/| /' conftest.$ac_ext >&5
21690 rm -f conftest.err conftest.$ac_objext \
21691 conftest$ac_exeext conftest.$ac_ext
21692 if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
21694 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
21695 # Warning - without using the other run time loading flags,
21696 # -berok will link without error, but may produce a broken library.
21697 no_undefined_flag_GCJ=' ${wl}-bernotok'
21698 allow_undefined_flag_GCJ=' ${wl}-berok'
21699 # -bexpall does not export symbols beginning with underscore (_)
21700 always_export_symbols_GCJ=yes
21701 # Exported symbols can be pulled into shared objects from archives
21702 whole_archive_flag_spec_GCJ=' '
21703 archive_cmds_need_lc_GCJ=yes
21704 # This is similar to how AIX traditionally builds it's shared libraries.
21705 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
21711 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)'
21712 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21713 hardcode_minus_L_GCJ=yes
21714 # see comment about different semantics on the GNU ld section
21719 export_dynamic_flag_spec_GCJ=-rdynamic
21722 cygwin* | mingw* | pw32*)
21723 # When not using gcc, we currently assume that we are using
21724 # Microsoft Visual C++.
21725 # hardcode_libdir_flag_spec is actually meaningless, as there is
21726 # no search path for DLLs.
21727 hardcode_libdir_flag_spec_GCJ=' '
21728 allow_undefined_flag_GCJ=unsupported
21729 # Tell ltmain to make .lib files, not .a files.
21731 # Tell ltmain to make .dll files, not .so files.
21733 # FIXME: Setting linknames here is a bad hack.
21734 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
21735 # The linker will automatically build a .lib file if we build a DLL.
21736 old_archive_From_new_cmds_GCJ='true'
21737 # FIXME: Should let the user specify the lib program.
21738 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
21739 fix_srcfile_path='`cygpath -w "$srcfile"`'
21740 enable_shared_with_static_runtimes_GCJ=yes
21743 darwin* | rhapsody*)
21744 if test "$GXX" = yes ; then
21745 archive_cmds_need_lc_GCJ=no
21747 rhapsody* | darwin1.[012])
21748 allow_undefined_flag_GCJ='-undefined suppress'
21751 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
21752 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
21754 case ${MACOSX_DEPLOYMENT_TARGET} in
21756 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress'
21759 allow_undefined_flag_GCJ='-undefined dynamic_lookup'
21765 lt_int_apple_cc_single_mod=no
21766 output_verbose_link_cmd='echo'
21767 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
21768 lt_int_apple_cc_single_mod=yes
21770 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
21771 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
21773 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -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'
21775 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
21776 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
21777 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
21778 archive_expsym_cmds_GCJ='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}'
21780 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -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}'
21782 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}'
21783 hardcode_direct_GCJ=no
21784 hardcode_automatic_GCJ=yes
21785 hardcode_shlibpath_var_GCJ=unsupported
21786 whole_archive_flag_spec_GCJ='-all_load $convenience'
21787 link_all_deplibs_GCJ=yes
21794 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21795 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21796 hardcode_shlibpath_var_GCJ=no
21803 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
21804 # support. Future versions do this automatically, but an explicit c++rt0.o
21805 # does not break anything, and helps significantly (at the cost of a little
21808 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
21809 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21810 hardcode_direct_GCJ=yes
21811 hardcode_shlibpath_var_GCJ=no
21814 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
21816 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21817 hardcode_direct_GCJ=yes
21818 hardcode_minus_L_GCJ=yes
21819 hardcode_shlibpath_var_GCJ=no
21822 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
21823 freebsd* | kfreebsd*-gnu)
21824 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
21825 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21826 hardcode_direct_GCJ=yes
21827 hardcode_shlibpath_var_GCJ=no
21831 if test "$GCC" = yes; then
21832 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'
21834 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'
21836 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21837 hardcode_libdir_separator_GCJ=:
21838 hardcode_direct_GCJ=yes
21840 # hardcode_minus_L: Not really in the search PATH,
21841 # but as the default location of the library.
21842 hardcode_minus_L_GCJ=yes
21843 export_dynamic_flag_spec_GCJ='${wl}-E'
21847 if test "$GCC" = yes -a "$with_gnu_ld" = no; then
21848 case "$host_cpu" in
21850 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21853 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
21857 case "$host_cpu" in
21859 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
21862 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
21866 if test "$with_gnu_ld" = no; then
21867 case "$host_cpu" in
21869 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21870 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
21871 hardcode_libdir_separator_GCJ=:
21872 hardcode_direct_GCJ=no
21873 hardcode_shlibpath_var_GCJ=no
21876 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21877 hardcode_direct_GCJ=no
21878 hardcode_shlibpath_var_GCJ=no
21880 # hardcode_minus_L: Not really in the search PATH,
21881 # but as the default location of the library.
21882 hardcode_minus_L_GCJ=yes
21885 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
21886 hardcode_libdir_separator_GCJ=:
21887 hardcode_direct_GCJ=yes
21888 export_dynamic_flag_spec_GCJ='${wl}-E'
21890 # hardcode_minus_L: Not really in the search PATH,
21891 # but as the default location of the library.
21892 hardcode_minus_L_GCJ=yes
21898 irix5* | irix6* | nonstopux*)
21899 if test "$GCC" = yes; then
21900 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'
21902 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'
21903 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
21905 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21906 hardcode_libdir_separator_GCJ=:
21907 link_all_deplibs_GCJ=yes
21911 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
21912 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
21914 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
21916 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21917 hardcode_direct_GCJ=yes
21918 hardcode_shlibpath_var_GCJ=no
21922 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21923 hardcode_direct_GCJ=yes
21924 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21925 hardcode_libdir_separator_GCJ=:
21926 hardcode_shlibpath_var_GCJ=no
21930 hardcode_direct_GCJ=yes
21931 hardcode_shlibpath_var_GCJ=no
21932 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
21933 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21934 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
21935 export_dynamic_flag_spec_GCJ='${wl}-E'
21938 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
21939 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
21940 hardcode_libdir_flag_spec_GCJ='-R$libdir'
21943 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
21944 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
21951 hardcode_libdir_flag_spec_GCJ='-L$libdir'
21952 hardcode_minus_L_GCJ=yes
21953 allow_undefined_flag_GCJ=unsupported
21954 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'
21955 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
21959 if test "$GCC" = yes; then
21960 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
21961 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'
21963 allow_undefined_flag_GCJ=' -expect_unresolved \*'
21964 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'
21966 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21967 hardcode_libdir_separator_GCJ=:
21970 osf4* | osf5*) # as osf3* with the addition of -msym flag
21971 if test "$GCC" = yes; then
21972 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
21973 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'
21974 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
21976 allow_undefined_flag_GCJ=' -expect_unresolved \*'
21977 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'
21978 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~
21979 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
21981 # Both c and cxx compiler support -rpath directly
21982 hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
21984 hardcode_libdir_separator_GCJ=:
21988 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
21989 hardcode_shlibpath_var_GCJ=no
21990 export_dynamic_flag_spec_GCJ='${wl}-Bexport'
21991 runpath_var=LD_RUN_PATH
21992 hardcode_runpath_var=yes
21996 no_undefined_flag_GCJ=' -z text'
21997 if test "$GCC" = yes; then
21998 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
21999 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22000 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
22002 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22003 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22004 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22006 hardcode_libdir_flag_spec_GCJ='-R$libdir'
22007 hardcode_shlibpath_var_GCJ=no
22009 solaris2.[0-5] | solaris2.[0-5].*) ;;
22010 *) # Supported since Solaris 2.6 (maybe 2.5.1?)
22011 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
22013 link_all_deplibs_GCJ=yes
22017 if test "x$host_vendor" = xsequent; then
22018 # Use $CC to link under sequent, because it throws in some extra .o
22019 # files that make .init and .fini sections work.
22020 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
22022 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
22024 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22025 hardcode_direct_GCJ=yes
22026 hardcode_minus_L_GCJ=yes
22027 hardcode_shlibpath_var_GCJ=no
22031 case $host_vendor in
22033 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22034 hardcode_direct_GCJ=yes # is this really true???
22037 ## LD is ld it makes a PLAMLIB
22038 ## CC just makes a GrossModule.
22039 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22040 reload_cmds_GCJ='$CC -r -o $output$reload_objs'
22041 hardcode_direct_GCJ=no
22044 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22045 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
22048 runpath_var='LD_RUN_PATH'
22049 hardcode_shlibpath_var_GCJ=no
22053 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22054 hardcode_shlibpath_var_GCJ=no
22055 export_dynamic_flag_spec_GCJ='-Bexport'
22059 if test -d /usr/nec; then
22060 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22061 hardcode_shlibpath_var_GCJ=no
22062 runpath_var=LD_RUN_PATH
22063 hardcode_runpath_var=yes
22069 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
22070 hardcode_direct_GCJ=yes
22071 hardcode_minus_L_GCJ=no
22072 hardcode_shlibpath_var_GCJ=no
22073 hardcode_runpath_var=yes
22074 runpath_var=LD_RUN_PATH
22077 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
22078 no_undefined_flag_GCJ='${wl}-z ${wl}text'
22079 if test "$GCC" = yes; then
22080 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22082 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
22084 runpath_var='LD_RUN_PATH'
22085 hardcode_shlibpath_var_GCJ=no
22089 no_undefined_flag_GCJ=' -z text'
22090 # $CC -shared without GNU ld will not create a library from C++
22091 # object files and a static libstdc++, better avoid it by now
22092 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
22093 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
22094 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
22095 hardcode_libdir_flag_spec_GCJ=
22096 hardcode_shlibpath_var_GCJ=no
22097 runpath_var='LD_RUN_PATH'
22101 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
22102 hardcode_libdir_flag_spec_GCJ='-L$libdir'
22103 hardcode_shlibpath_var_GCJ=no
22112 echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
22113 echo "${ECHO_T}$ld_shlibs_GCJ" >&6
22114 test "$ld_shlibs_GCJ" = no && can_build_shared=no
22116 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
22117 if test "$GCC" = yes; then
22118 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
22122 # Do we need to explicitly link libc?
22124 case "x$archive_cmds_need_lc_GCJ" in
22126 # Assume -lc should be added
22127 archive_cmds_need_lc_GCJ=yes
22129 if test "$enable_shared" = yes && test "$GCC" = yes; then
22130 case $archive_cmds_GCJ in
22132 # FIXME: we may have to deal with multi-command sequences.
22135 # Test whether the compiler implicitly links with -lc since on some
22136 # systems, -lgcc has to come before -lc. If gcc already passes -lc
22137 # to ld, don't add -lc before -lgcc.
22138 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
22139 echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
22141 printf "$lt_simple_compile_test_code" > conftest.$ac_ext
22143 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
22144 (eval $ac_compile) 2>&5
22146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22147 (exit $ac_status); } 2>conftest.err; then
22150 libobjs=conftest.$ac_objext
22152 wl=$lt_prog_compiler_wl_GCJ
22158 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
22159 allow_undefined_flag_GCJ=
22160 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
22161 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
22163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22164 (exit $ac_status); }
22166 archive_cmds_need_lc_GCJ=no
22168 archive_cmds_need_lc_GCJ=yes
22170 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
22172 cat conftest.err 1>&5
22175 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
22176 echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
22183 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
22184 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
22185 library_names_spec=
22186 libname_spec='lib$name'
22190 postuninstall_cmds=
22194 shlibpath_overrides_runpath=unknown
22196 dynamic_linker="$host_os ld.so"
22197 sys_lib_dlsearch_path_spec="/lib /usr/lib"
22198 if test "$GCC" = yes; then
22199 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22200 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
22201 # if the path contains ";" then we assume it to be the separator
22202 # otherwise default to the standard path separator (i.e. ":") - it is
22203 # assumed that no part of a normal pathname contains ";" but that should
22204 # okay in the real world where ";" in dirpaths is itself problematic.
22205 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22207 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22210 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
22212 need_lib_prefix=unknown
22213 hardcode_into_libs=no
22215 # when you set need_version to no, make sure it does not cause -set_version
22216 # flags to be left without arguments
22217 need_version=unknown
22222 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
22223 shlibpath_var=LIBPATH
22225 # AIX 3 has no versioning support, so we append a major version to the name.
22226 soname_spec='${libname}${release}${shared_ext}$major'
22233 hardcode_into_libs=yes
22234 if test "$host_cpu" = ia64; then
22235 # AIX 5 supports IA64
22236 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
22237 shlibpath_var=LD_LIBRARY_PATH
22239 # With GCC up to 2.95.x, collect2 would create an import file
22240 # for dependence libraries. The import file would start with
22241 # the line `#! .'. This would cause the generated library to
22242 # depend on `.', always an invalid library. This was fixed in
22243 # development snapshots of GCC prior to 3.0.
22245 aix4 | aix4.[01] | aix4.[01].*)
22246 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
22248 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
22251 can_build_shared=no
22255 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
22256 # soname into executable. Probably we can add versioning support to
22257 # collect2, so additional links can be useful in future.
22258 if test "$aix_use_runtimelinking" = yes; then
22259 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
22260 # instead of lib<name>.a to let people know that these are not
22261 # typical AIX shared libraries.
22262 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22264 # We preserve .a as extension for shared libraries through AIX4.2
22265 # and later when we are not doing run time linking.
22266 library_names_spec='${libname}${release}.a $libname.a'
22267 soname_spec='${libname}${release}${shared_ext}$major'
22269 shlibpath_var=LIBPATH
22274 library_names_spec='$libname.ixlibrary $libname.a'
22275 # Create ${libname}_ixlibrary.a entries in /sys/libs.
22276 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'
22280 library_names_spec='${libname}${shared_ext}'
22281 dynamic_linker="$host_os ld.so"
22282 shlibpath_var=LIBRARY_PATH
22288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22289 soname_spec='${libname}${release}${shared_ext}$major'
22290 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
22291 shlibpath_var=LD_LIBRARY_PATH
22292 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
22293 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
22294 # the default ld.so.conf also contains /usr/contrib/lib and
22295 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
22296 # libtool to hard-code these into programs
22299 cygwin* | mingw* | pw32*)
22300 version_type=windows
22305 case $GCC,$host_os in
22306 yes,cygwin* | yes,mingw* | yes,pw32*)
22307 library_names_spec='$libname.dll.a'
22308 # DLL is installed to $(libdir)/../bin by postinstall_cmds
22309 postinstall_cmds='base_file=`basename \${file}`~
22310 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
22311 dldir=$destdir/`dirname \$dlpath`~
22312 test -d \$dldir || mkdir -p \$dldir~
22313 $install_prog $dir/$dlname \$dldir/$dlname'
22314 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
22315 dlpath=$dir/\$dldll~
22317 shlibpath_overrides_runpath=yes
22321 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
22322 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22323 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
22326 # MinGW DLLs use traditional 'lib' prefix
22327 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
22328 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
22329 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
22330 # It is most probably a Windows format PATH printed by
22331 # mingw gcc, but we are running on Cygwin. Gcc prints its search
22332 # path with ; separators, and with drive letters. We can handle the
22333 # drive letters (cygwin fileutils understands them), so leave them,
22334 # especially as we might pass files found there to a mingw objdump,
22335 # which wouldn't understand a cygwinified path. Ahh.
22336 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
22338 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
22342 # pw32 DLLs use 'pw' prefix rather than 'lib'
22343 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}'
22349 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
22352 dynamic_linker='Win32 ld.exe'
22353 # FIXME: first we should search . and the directory the executable is in
22357 darwin* | rhapsody*)
22358 dynamic_linker="$host_os dyld"
22359 version_type=darwin
22362 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
22363 soname_spec='${libname}${release}${major}$shared_ext'
22364 shlibpath_overrides_runpath=yes
22365 shlibpath_var=DYLD_LIBRARY_PATH
22366 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
22367 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
22368 if test "$GCC" = yes; then
22369 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"`
22371 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
22373 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
22380 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
22381 soname_spec='${libname}${release}${shared_ext}$major'
22382 shlibpath_var=LD_LIBRARY_PATH
22393 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22394 soname_spec='${libname}${release}${shared_ext}$major'
22395 shlibpath_var=LD_LIBRARY_PATH
22396 shlibpath_overrides_runpath=no
22397 hardcode_into_libs=yes
22398 dynamic_linker='GNU ld.so'
22402 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
22403 version_type=freebsd-$objformat
22404 case $version_type in
22406 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
22411 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
22415 shlibpath_var=LD_LIBRARY_PATH
22418 shlibpath_overrides_runpath=yes
22420 freebsd3.01* | freebsdelf3.01*)
22421 shlibpath_overrides_runpath=yes
22422 hardcode_into_libs=yes
22425 shlibpath_overrides_runpath=no
22426 hardcode_into_libs=yes
22435 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
22436 soname_spec='${libname}${release}${shared_ext}$major'
22437 shlibpath_var=LD_LIBRARY_PATH
22438 hardcode_into_libs=yes
22441 hpux9* | hpux10* | hpux11*)
22442 # Give a soname corresponding to the major version so that dld.sl refuses to
22443 # link against other versions.
22447 case "$host_cpu" in
22450 hardcode_into_libs=yes
22451 dynamic_linker="$host_os dld.so"
22452 shlibpath_var=LD_LIBRARY_PATH
22453 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22454 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22455 soname_spec='${libname}${release}${shared_ext}$major'
22456 if test "X$HPUX_IA64_MODE" = X32; then
22457 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
22459 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
22461 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22465 hardcode_into_libs=yes
22466 dynamic_linker="$host_os dld.sl"
22467 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
22468 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
22469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22470 soname_spec='${libname}${release}${shared_ext}$major'
22471 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
22472 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
22476 dynamic_linker="$host_os dld.sl"
22477 shlibpath_var=SHLIB_PATH
22478 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
22479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22480 soname_spec='${libname}${release}${shared_ext}$major'
22483 # HP-UX runs *really* slowly unless shared libraries are mode 555.
22484 postinstall_cmds='chmod 555 $lib'
22487 irix5* | irix6* | nonstopux*)
22489 nonstopux*) version_type=nonstopux ;;
22491 if test "$lt_cv_prog_gnu_ld" = yes; then
22499 soname_spec='${libname}${release}${shared_ext}$major'
22500 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
22502 irix5* | nonstopux*)
22503 libsuff= shlibsuff=
22506 case $LD in # libtool.m4 will add one of these switches to LD
22507 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
22508 libsuff= shlibsuff= libmagic=32-bit;;
22509 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
22510 libsuff=32 shlibsuff=N32 libmagic=N32;;
22511 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
22512 libsuff=64 shlibsuff=64 libmagic=64-bit;;
22513 *) libsuff= shlibsuff= libmagic=never-match;;
22517 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
22518 shlibpath_overrides_runpath=no
22519 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
22520 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
22521 hardcode_into_libs=yes
22524 # No shared lib support for Linux oldld, aout, or coff.
22525 linux*oldld* | linux*aout* | linux*coff*)
22529 # This must be Linux ELF.
22534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22535 soname_spec='${libname}${release}${shared_ext}$major'
22536 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
22537 shlibpath_var=LD_LIBRARY_PATH
22538 shlibpath_overrides_runpath=no
22539 # This implies no fast_install, which is unacceptable.
22540 # Some rework will be needed to allow for fast_install
22541 # before this can be enabled.
22542 hardcode_into_libs=yes
22544 # Append ld.so.conf contents to the search path
22545 if test -f /etc/ld.so.conf; then
22546 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '`
22547 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
22550 # We used to test for /lib/ld.so.1 and disable shared libraries on
22551 # powerpc, because MkLinux only supported shared libraries with the
22552 # GNU dynamic linker. Since this was broken with cross compilers,
22553 # most powerpc-linux boxes support dynamic linking these days and
22554 # people can always --disable-shared, the test was removed, and we
22555 # assume the GNU/Linux dynamic linker is in use.
22556 dynamic_linker='GNU/Linux ld.so'
22563 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22564 soname_spec='${libname}${release}${shared_ext}$major'
22565 shlibpath_var=LD_LIBRARY_PATH
22566 shlibpath_overrides_runpath=no
22567 hardcode_into_libs=yes
22568 dynamic_linker='GNU ld.so'
22575 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
22576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22577 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22578 dynamic_linker='NetBSD (a.out) ld.so'
22580 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
22581 soname_spec='${libname}${release}${shared_ext}$major'
22582 dynamic_linker='NetBSD ld.elf_so'
22584 shlibpath_var=LD_LIBRARY_PATH
22585 shlibpath_overrides_runpath=yes
22586 hardcode_into_libs=yes
22591 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22592 shlibpath_var=LD_LIBRARY_PATH
22593 shlibpath_overrides_runpath=yes
22600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22601 soname_spec='${libname}${release}${shared_ext}$major'
22602 shlibpath_var=LD_LIBRARY_PATH
22603 shlibpath_overrides_runpath=yes
22610 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22611 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
22612 shlibpath_var=LD_LIBRARY_PATH
22613 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
22615 openbsd2.[89] | openbsd2.[89].*)
22616 shlibpath_overrides_runpath=no
22619 shlibpath_overrides_runpath=yes
22623 shlibpath_overrides_runpath=yes
22628 libname_spec='$name'
22631 library_names_spec='$libname${shared_ext} $libname.a'
22632 dynamic_linker='OS/2 ld.exe'
22633 shlibpath_var=LIBPATH
22636 osf3* | osf4* | osf5*)
22640 soname_spec='${libname}${release}${shared_ext}$major'
22641 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22642 shlibpath_var=LD_LIBRARY_PATH
22643 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
22644 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
22649 soname_spec='${libname}${release}${shared_ext}$major'
22650 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22651 shlibpath_var=LD_LIBRARY_PATH
22658 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22659 soname_spec='${libname}${release}${shared_ext}$major'
22660 shlibpath_var=LD_LIBRARY_PATH
22661 shlibpath_overrides_runpath=yes
22662 hardcode_into_libs=yes
22663 # ldd complains unless libraries are executable
22664 postinstall_cmds='chmod +x $lib'
22669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
22670 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
22671 shlibpath_var=LD_LIBRARY_PATH
22672 shlibpath_overrides_runpath=yes
22673 if test "$with_gnu_ld" = yes; then
22679 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
22681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22682 soname_spec='${libname}${release}${shared_ext}$major'
22683 shlibpath_var=LD_LIBRARY_PATH
22684 case $host_vendor in
22686 shlibpath_overrides_runpath=no
22688 export_dynamic_flag_spec='${wl}-Blargedynsym'
22689 runpath_var=LD_RUN_PATH
22697 shlibpath_overrides_runpath=no
22698 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
22704 if test -d /usr/nec ;then
22706 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
22707 soname_spec='$libname${shared_ext}.$major'
22708 shlibpath_var=LD_LIBRARY_PATH
22714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
22715 soname_spec='${libname}${release}${shared_ext}$major'
22716 shlibpath_var=LD_LIBRARY_PATH
22723 echo "$as_me:$LINENO: result: $dynamic_linker" >&5
22724 echo "${ECHO_T}$dynamic_linker" >&6
22725 test "$dynamic_linker" = no && can_build_shared=no
22727 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
22728 echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
22729 hardcode_action_GCJ=
22730 if test -n "$hardcode_libdir_flag_spec_GCJ" || \
22731 test -n "$runpath_var GCJ" || \
22732 test "X$hardcode_automatic_GCJ"="Xyes" ; then
22734 # We can hardcode non-existant directories.
22735 if test "$hardcode_direct_GCJ" != no &&
22736 # If the only mechanism to avoid hardcoding is shlibpath_var, we
22737 # have to relink, otherwise we might link with an installed library
22738 # when we should be linking with a yet-to-be-installed one
22739 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
22740 test "$hardcode_minus_L_GCJ" != no; then
22741 # Linking always hardcodes the temporary library directory.
22742 hardcode_action_GCJ=relink
22744 # We can link without hardcoding, and we can hardcode nonexisting dirs.
22745 hardcode_action_GCJ=immediate
22748 # We cannot hardcode anything, or else we can only hardcode existing
22750 hardcode_action_GCJ=unsupported
22752 echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
22753 echo "${ECHO_T}$hardcode_action_GCJ" >&6
22755 if test "$hardcode_action_GCJ" = relink; then
22756 # Fast installation is not supported
22757 enable_fast_install=no
22758 elif test "$shlibpath_overrides_runpath" = yes ||
22759 test "$enable_shared" = no; then
22760 # Fast installation is not necessary
22761 enable_fast_install=needless
22766 echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
22767 echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
22768 if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
22769 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
22770 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
22771 echo "$as_me:$LINENO: result: yes" >&5
22772 echo "${ECHO_T}yes" >&6
22774 # FIXME - insert some real tests, host_os isn't really good enough
22777 if test -n "$STRIP" ; then
22778 striplib="$STRIP -x"
22779 echo "$as_me:$LINENO: result: yes" >&5
22780 echo "${ECHO_T}yes" >&6
22782 echo "$as_me:$LINENO: result: no" >&5
22783 echo "${ECHO_T}no" >&6
22787 echo "$as_me:$LINENO: result: no" >&5
22788 echo "${ECHO_T}no" >&6
22793 if test "x$enable_dlopen" != xyes; then
22794 enable_dlopen=unknown
22795 enable_dlopen_self=unknown
22796 enable_dlopen_self_static=unknown
22803 lt_cv_dlopen="load_add_on"
22805 lt_cv_dlopen_self=yes
22809 lt_cv_dlopen="LoadLibrary"
22814 lt_cv_dlopen="dlopen"
22819 # if libdl is installed we need to link against it
22820 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
22821 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
22822 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
22823 echo $ECHO_N "(cached) $ECHO_C" >&6
22825 ac_check_lib_save_LIBS=$LIBS
22827 cat >conftest.$ac_ext <<_ACEOF
22830 cat confdefs.h >>conftest.$ac_ext
22831 cat >>conftest.$ac_ext <<_ACEOF
22832 /* end confdefs.h. */
22834 /* Override any gcc2 internal prototype to avoid an error. */
22838 /* We use char because int might match the return type of a gcc2
22839 builtin and then its argument prototype would still apply. */
22849 rm -f conftest.$ac_objext conftest$ac_exeext
22850 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22851 (eval $ac_link) 2>conftest.er1
22853 grep -v '^ *+' conftest.er1 >conftest.err
22855 cat conftest.err >&5
22856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22857 (exit $ac_status); } &&
22858 { ac_try='test -z "$ac_c_werror_flag"
22859 || test ! -s conftest.err'
22860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22861 (eval $ac_try) 2>&5
22863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22864 (exit $ac_status); }; } &&
22865 { ac_try='test -s conftest$ac_exeext'
22866 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22867 (eval $ac_try) 2>&5
22869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22870 (exit $ac_status); }; }; then
22871 ac_cv_lib_dl_dlopen=yes
22873 echo "$as_me: failed program was:" >&5
22874 sed 's/^/| /' conftest.$ac_ext >&5
22876 ac_cv_lib_dl_dlopen=no
22878 rm -f conftest.err conftest.$ac_objext \
22879 conftest$ac_exeext conftest.$ac_ext
22880 LIBS=$ac_check_lib_save_LIBS
22882 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
22883 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
22884 if test $ac_cv_lib_dl_dlopen = yes; then
22885 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
22888 lt_cv_dlopen="dyld"
22890 lt_cv_dlopen_self=yes
22897 echo "$as_me:$LINENO: checking for shl_load" >&5
22898 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
22899 if test "${ac_cv_func_shl_load+set}" = set; then
22900 echo $ECHO_N "(cached) $ECHO_C" >&6
22902 cat >conftest.$ac_ext <<_ACEOF
22905 cat confdefs.h >>conftest.$ac_ext
22906 cat >>conftest.$ac_ext <<_ACEOF
22907 /* end confdefs.h. */
22908 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
22909 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22910 #define shl_load innocuous_shl_load
22912 /* System header to define __stub macros and hopefully few prototypes,
22913 which can conflict with char shl_load (); below.
22914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22915 <limits.h> exists even on freestanding compilers. */
22918 # include <limits.h>
22920 # include <assert.h>
22925 /* Override any gcc2 internal prototype to avoid an error. */
22930 /* We use char because int might match the return type of a gcc2
22931 builtin and then its argument prototype would still apply. */
22933 /* The GNU C library defines this for functions which it implements
22934 to always fail with ENOSYS. Some functions are actually named
22935 something starting with __ and the normal name is an alias. */
22936 #if defined (__stub_shl_load) || defined (__stub___shl_load)
22939 char (*f) () = shl_load;
22948 return f != shl_load;
22953 rm -f conftest.$ac_objext conftest$ac_exeext
22954 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
22955 (eval $ac_link) 2>conftest.er1
22957 grep -v '^ *+' conftest.er1 >conftest.err
22959 cat conftest.err >&5
22960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22961 (exit $ac_status); } &&
22962 { ac_try='test -z "$ac_c_werror_flag"
22963 || test ! -s conftest.err'
22964 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22965 (eval $ac_try) 2>&5
22967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22968 (exit $ac_status); }; } &&
22969 { ac_try='test -s conftest$ac_exeext'
22970 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
22971 (eval $ac_try) 2>&5
22973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22974 (exit $ac_status); }; }; then
22975 ac_cv_func_shl_load=yes
22977 echo "$as_me: failed program was:" >&5
22978 sed 's/^/| /' conftest.$ac_ext >&5
22980 ac_cv_func_shl_load=no
22982 rm -f conftest.err conftest.$ac_objext \
22983 conftest$ac_exeext conftest.$ac_ext
22985 echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
22986 echo "${ECHO_T}$ac_cv_func_shl_load" >&6
22987 if test $ac_cv_func_shl_load = yes; then
22988 lt_cv_dlopen="shl_load"
22990 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
22991 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
22992 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
22993 echo $ECHO_N "(cached) $ECHO_C" >&6
22995 ac_check_lib_save_LIBS=$LIBS
22997 cat >conftest.$ac_ext <<_ACEOF
23000 cat confdefs.h >>conftest.$ac_ext
23001 cat >>conftest.$ac_ext <<_ACEOF
23002 /* end confdefs.h. */
23004 /* Override any gcc2 internal prototype to avoid an error. */
23008 /* We use char because int might match the return type of a gcc2
23009 builtin and then its argument prototype would still apply. */
23019 rm -f conftest.$ac_objext conftest$ac_exeext
23020 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23021 (eval $ac_link) 2>conftest.er1
23023 grep -v '^ *+' conftest.er1 >conftest.err
23025 cat conftest.err >&5
23026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23027 (exit $ac_status); } &&
23028 { ac_try='test -z "$ac_c_werror_flag"
23029 || test ! -s conftest.err'
23030 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23031 (eval $ac_try) 2>&5
23033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23034 (exit $ac_status); }; } &&
23035 { ac_try='test -s conftest$ac_exeext'
23036 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23037 (eval $ac_try) 2>&5
23039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23040 (exit $ac_status); }; }; then
23041 ac_cv_lib_dld_shl_load=yes
23043 echo "$as_me: failed program was:" >&5
23044 sed 's/^/| /' conftest.$ac_ext >&5
23046 ac_cv_lib_dld_shl_load=no
23048 rm -f conftest.err conftest.$ac_objext \
23049 conftest$ac_exeext conftest.$ac_ext
23050 LIBS=$ac_check_lib_save_LIBS
23052 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
23053 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
23054 if test $ac_cv_lib_dld_shl_load = yes; then
23055 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
23057 echo "$as_me:$LINENO: checking for dlopen" >&5
23058 echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
23059 if test "${ac_cv_func_dlopen+set}" = set; then
23060 echo $ECHO_N "(cached) $ECHO_C" >&6
23062 cat >conftest.$ac_ext <<_ACEOF
23065 cat confdefs.h >>conftest.$ac_ext
23066 cat >>conftest.$ac_ext <<_ACEOF
23067 /* end confdefs.h. */
23068 /* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
23069 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23070 #define dlopen innocuous_dlopen
23072 /* System header to define __stub macros and hopefully few prototypes,
23073 which can conflict with char dlopen (); below.
23074 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23075 <limits.h> exists even on freestanding compilers. */
23078 # include <limits.h>
23080 # include <assert.h>
23085 /* Override any gcc2 internal prototype to avoid an error. */
23090 /* We use char because int might match the return type of a gcc2
23091 builtin and then its argument prototype would still apply. */
23093 /* The GNU C library defines this for functions which it implements
23094 to always fail with ENOSYS. Some functions are actually named
23095 something starting with __ and the normal name is an alias. */
23096 #if defined (__stub_dlopen) || defined (__stub___dlopen)
23099 char (*f) () = dlopen;
23108 return f != dlopen;
23113 rm -f conftest.$ac_objext conftest$ac_exeext
23114 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23115 (eval $ac_link) 2>conftest.er1
23117 grep -v '^ *+' conftest.er1 >conftest.err
23119 cat conftest.err >&5
23120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23121 (exit $ac_status); } &&
23122 { ac_try='test -z "$ac_c_werror_flag"
23123 || test ! -s conftest.err'
23124 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23125 (eval $ac_try) 2>&5
23127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23128 (exit $ac_status); }; } &&
23129 { ac_try='test -s conftest$ac_exeext'
23130 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23131 (eval $ac_try) 2>&5
23133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23134 (exit $ac_status); }; }; then
23135 ac_cv_func_dlopen=yes
23137 echo "$as_me: failed program was:" >&5
23138 sed 's/^/| /' conftest.$ac_ext >&5
23140 ac_cv_func_dlopen=no
23142 rm -f conftest.err conftest.$ac_objext \
23143 conftest$ac_exeext conftest.$ac_ext
23145 echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
23146 echo "${ECHO_T}$ac_cv_func_dlopen" >&6
23147 if test $ac_cv_func_dlopen = yes; then
23148 lt_cv_dlopen="dlopen"
23150 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
23151 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
23152 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
23153 echo $ECHO_N "(cached) $ECHO_C" >&6
23155 ac_check_lib_save_LIBS=$LIBS
23157 cat >conftest.$ac_ext <<_ACEOF
23160 cat confdefs.h >>conftest.$ac_ext
23161 cat >>conftest.$ac_ext <<_ACEOF
23162 /* end confdefs.h. */
23164 /* Override any gcc2 internal prototype to avoid an error. */
23168 /* We use char because int might match the return type of a gcc2
23169 builtin and then its argument prototype would still apply. */
23179 rm -f conftest.$ac_objext conftest$ac_exeext
23180 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23181 (eval $ac_link) 2>conftest.er1
23183 grep -v '^ *+' conftest.er1 >conftest.err
23185 cat conftest.err >&5
23186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23187 (exit $ac_status); } &&
23188 { ac_try='test -z "$ac_c_werror_flag"
23189 || test ! -s conftest.err'
23190 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23191 (eval $ac_try) 2>&5
23193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23194 (exit $ac_status); }; } &&
23195 { ac_try='test -s conftest$ac_exeext'
23196 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23197 (eval $ac_try) 2>&5
23199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23200 (exit $ac_status); }; }; then
23201 ac_cv_lib_dl_dlopen=yes
23203 echo "$as_me: failed program was:" >&5
23204 sed 's/^/| /' conftest.$ac_ext >&5
23206 ac_cv_lib_dl_dlopen=no
23208 rm -f conftest.err conftest.$ac_objext \
23209 conftest$ac_exeext conftest.$ac_ext
23210 LIBS=$ac_check_lib_save_LIBS
23212 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
23213 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
23214 if test $ac_cv_lib_dl_dlopen = yes; then
23215 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
23217 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
23218 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
23219 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
23220 echo $ECHO_N "(cached) $ECHO_C" >&6
23222 ac_check_lib_save_LIBS=$LIBS
23223 LIBS="-lsvld $LIBS"
23224 cat >conftest.$ac_ext <<_ACEOF
23227 cat confdefs.h >>conftest.$ac_ext
23228 cat >>conftest.$ac_ext <<_ACEOF
23229 /* end confdefs.h. */
23231 /* Override any gcc2 internal prototype to avoid an error. */
23235 /* We use char because int might match the return type of a gcc2
23236 builtin and then its argument prototype would still apply. */
23246 rm -f conftest.$ac_objext conftest$ac_exeext
23247 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23248 (eval $ac_link) 2>conftest.er1
23250 grep -v '^ *+' conftest.er1 >conftest.err
23252 cat conftest.err >&5
23253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23254 (exit $ac_status); } &&
23255 { ac_try='test -z "$ac_c_werror_flag"
23256 || test ! -s conftest.err'
23257 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23258 (eval $ac_try) 2>&5
23260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23261 (exit $ac_status); }; } &&
23262 { ac_try='test -s conftest$ac_exeext'
23263 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23264 (eval $ac_try) 2>&5
23266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23267 (exit $ac_status); }; }; then
23268 ac_cv_lib_svld_dlopen=yes
23270 echo "$as_me: failed program was:" >&5
23271 sed 's/^/| /' conftest.$ac_ext >&5
23273 ac_cv_lib_svld_dlopen=no
23275 rm -f conftest.err conftest.$ac_objext \
23276 conftest$ac_exeext conftest.$ac_ext
23277 LIBS=$ac_check_lib_save_LIBS
23279 echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
23280 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
23281 if test $ac_cv_lib_svld_dlopen = yes; then
23282 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
23284 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
23285 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
23286 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
23287 echo $ECHO_N "(cached) $ECHO_C" >&6
23289 ac_check_lib_save_LIBS=$LIBS
23291 cat >conftest.$ac_ext <<_ACEOF
23294 cat confdefs.h >>conftest.$ac_ext
23295 cat >>conftest.$ac_ext <<_ACEOF
23296 /* end confdefs.h. */
23298 /* Override any gcc2 internal prototype to avoid an error. */
23302 /* We use char because int might match the return type of a gcc2
23303 builtin and then its argument prototype would still apply. */
23313 rm -f conftest.$ac_objext conftest$ac_exeext
23314 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23315 (eval $ac_link) 2>conftest.er1
23317 grep -v '^ *+' conftest.er1 >conftest.err
23319 cat conftest.err >&5
23320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23321 (exit $ac_status); } &&
23322 { ac_try='test -z "$ac_c_werror_flag"
23323 || test ! -s conftest.err'
23324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23325 (eval $ac_try) 2>&5
23327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23328 (exit $ac_status); }; } &&
23329 { ac_try='test -s conftest$ac_exeext'
23330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
23331 (eval $ac_try) 2>&5
23333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23334 (exit $ac_status); }; }; then
23335 ac_cv_lib_dld_dld_link=yes
23337 echo "$as_me: failed program was:" >&5
23338 sed 's/^/| /' conftest.$ac_ext >&5
23340 ac_cv_lib_dld_dld_link=no
23342 rm -f conftest.err conftest.$ac_objext \
23343 conftest$ac_exeext conftest.$ac_ext
23344 LIBS=$ac_check_lib_save_LIBS
23346 echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
23347 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
23348 if test $ac_cv_lib_dld_dld_link = yes; then
23349 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
23370 if test "x$lt_cv_dlopen" != xno; then
23376 case $lt_cv_dlopen in
23378 save_CPPFLAGS="$CPPFLAGS"
23379 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
23381 save_LDFLAGS="$LDFLAGS"
23382 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
23385 LIBS="$lt_cv_dlopen_libs $LIBS"
23387 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
23388 echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
23389 if test "${lt_cv_dlopen_self+set}" = set; then
23390 echo $ECHO_N "(cached) $ECHO_C" >&6
23392 if test "$cross_compiling" = yes; then :
23393 lt_cv_dlopen_self=cross
23395 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23396 lt_status=$lt_dlunknown
23397 cat > conftest.$ac_ext <<EOF
23398 #line 23398 "configure"
23399 #include "confdefs.h"
23408 # define LT_DLGLOBAL RTLD_GLOBAL
23411 # define LT_DLGLOBAL DL_GLOBAL
23413 # define LT_DLGLOBAL 0
23417 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23418 find out it does not work in some platform. */
23419 #ifndef LT_DLLAZY_OR_NOW
23421 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23424 # define LT_DLLAZY_OR_NOW DL_LAZY
23427 # define LT_DLLAZY_OR_NOW RTLD_NOW
23430 # define LT_DLLAZY_OR_NOW DL_NOW
23432 # define LT_DLLAZY_OR_NOW 0
23440 extern "C" void exit (int);
23443 void fnord() { int i=42;}
23446 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23447 int status = $lt_dlunknown;
23451 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23452 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23453 /* dlclose (self); */
23459 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23460 (eval $ac_link) 2>&5
23462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23463 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23464 (./conftest; exit; ) 2>/dev/null
23466 case x$lt_status in
23467 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
23468 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
23469 x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
23472 # compilation failed
23473 lt_cv_dlopen_self=no
23480 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
23481 echo "${ECHO_T}$lt_cv_dlopen_self" >&6
23483 if test "x$lt_cv_dlopen_self" = xyes; then
23484 LDFLAGS="$LDFLAGS $link_static_flag"
23485 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
23486 echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
23487 if test "${lt_cv_dlopen_self_static+set}" = set; then
23488 echo $ECHO_N "(cached) $ECHO_C" >&6
23490 if test "$cross_compiling" = yes; then :
23491 lt_cv_dlopen_self_static=cross
23493 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
23494 lt_status=$lt_dlunknown
23495 cat > conftest.$ac_ext <<EOF
23496 #line 23496 "configure"
23497 #include "confdefs.h"
23506 # define LT_DLGLOBAL RTLD_GLOBAL
23509 # define LT_DLGLOBAL DL_GLOBAL
23511 # define LT_DLGLOBAL 0
23515 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
23516 find out it does not work in some platform. */
23517 #ifndef LT_DLLAZY_OR_NOW
23519 # define LT_DLLAZY_OR_NOW RTLD_LAZY
23522 # define LT_DLLAZY_OR_NOW DL_LAZY
23525 # define LT_DLLAZY_OR_NOW RTLD_NOW
23528 # define LT_DLLAZY_OR_NOW DL_NOW
23530 # define LT_DLLAZY_OR_NOW 0
23538 extern "C" void exit (int);
23541 void fnord() { int i=42;}
23544 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
23545 int status = $lt_dlunknown;
23549 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
23550 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
23551 /* dlclose (self); */
23557 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
23558 (eval $ac_link) 2>&5
23560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23561 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
23562 (./conftest; exit; ) 2>/dev/null
23564 case x$lt_status in
23565 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
23566 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
23567 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
23570 # compilation failed
23571 lt_cv_dlopen_self_static=no
23578 echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
23579 echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
23582 CPPFLAGS="$save_CPPFLAGS"
23583 LDFLAGS="$save_LDFLAGS"
23588 case $lt_cv_dlopen_self in
23589 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
23590 *) enable_dlopen_self=unknown ;;
23593 case $lt_cv_dlopen_self_static in
23594 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
23595 *) enable_dlopen_self_static=unknown ;;
23600 # The else clause should only fire when bootstrapping the
23601 # libtool distribution, otherwise you forgot to ship ltmain.sh
23602 # with your package, and you will get complaints that there are
23603 # no rules to generate ltmain.sh.
23604 if test -f "$ltmain"; then
23605 # See if we are running on zsh, and set the options which allow our commands through
23606 # without removal of \ escapes.
23607 if test -n "${ZSH_VERSION+set}" ; then
23608 setopt NO_GLOB_SUBST
23610 # Now quote all the things that may contain metacharacters while being
23611 # careful not to overquote the AC_SUBSTed values. We take copies of the
23612 # variables and quote the copies for generation of the libtool script.
23613 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
23615 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
23616 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
23617 deplibs_check_method reload_flag reload_cmds need_locks \
23618 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
23619 lt_cv_sys_global_symbol_to_c_name_address \
23620 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
23621 old_postinstall_cmds old_postuninstall_cmds \
23625 lt_prog_compiler_wl_GCJ \
23626 lt_prog_compiler_pic_GCJ \
23627 lt_prog_compiler_static_GCJ \
23628 lt_prog_compiler_no_builtin_flag_GCJ \
23629 export_dynamic_flag_spec_GCJ \
23630 thread_safe_flag_spec_GCJ \
23631 whole_archive_flag_spec_GCJ \
23632 enable_shared_with_static_runtimes_GCJ \
23633 old_archive_cmds_GCJ \
23634 old_archive_from_new_cmds_GCJ \
23635 predep_objects_GCJ \
23636 postdep_objects_GCJ \
23639 compiler_lib_search_path_GCJ \
23641 archive_expsym_cmds_GCJ \
23642 postinstall_cmds_GCJ \
23643 postuninstall_cmds_GCJ \
23644 old_archive_from_expsyms_cmds_GCJ \
23645 allow_undefined_flag_GCJ \
23646 no_undefined_flag_GCJ \
23647 export_symbols_cmds_GCJ \
23648 hardcode_libdir_flag_spec_GCJ \
23649 hardcode_libdir_flag_spec_ld_GCJ \
23650 hardcode_libdir_separator_GCJ \
23651 hardcode_automatic_GCJ \
23653 module_expsym_cmds_GCJ \
23654 lt_cv_prog_compiler_c_o_GCJ \
23655 exclude_expsyms_GCJ \
23656 include_expsyms_GCJ; do
23659 old_archive_cmds_GCJ | \
23660 old_archive_from_new_cmds_GCJ | \
23661 archive_cmds_GCJ | \
23662 archive_expsym_cmds_GCJ | \
23663 module_cmds_GCJ | \
23664 module_expsym_cmds_GCJ | \
23665 old_archive_from_expsyms_cmds_GCJ | \
23666 export_symbols_cmds_GCJ | \
23667 extract_expsyms_cmds | reload_cmds | finish_cmds | \
23668 postinstall_cmds | postuninstall_cmds | \
23669 old_postinstall_cmds | old_postuninstall_cmds | \
23670 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
23671 # Double-quote double-evaled strings.
23672 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
23675 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
23681 *'\$0 --fallback-echo"')
23682 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
23688 cat <<__EOF__ >> "$cfgfile"
23689 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
23691 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
23693 # Shell to use when invoking shell scripts.
23696 # Whether or not to build shared libraries.
23697 build_libtool_libs=$enable_shared
23699 # Whether or not to build static libraries.
23700 build_old_libs=$enable_static
23702 # Whether or not to add -lc for building shared libraries.
23703 build_libtool_need_lc=$archive_cmds_need_lc_GCJ
23705 # Whether or not to disallow shared libs when runtime libs are static
23706 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
23708 # Whether or not to optimize for fast installation.
23709 fast_install=$enable_fast_install
23712 host_alias=$host_alias
23715 # An echo program that does not interpret backslashes.
23720 AR_FLAGS=$lt_AR_FLAGS
23725 # A language-specific compiler.
23726 CC=$lt_compiler_GCJ
23728 # Is the compiler the GNU C compiler?
23734 # The linker used to build libraries.
23737 # Whether we need hard or soft links.
23740 # A BSD-compatible nm program.
23743 # A symbol stripping program
23746 # Used to examine libraries when file_magic_cmd begins "file"
23747 MAGIC_CMD=$MAGIC_CMD
23749 # Used on cygwin: DLL creation program.
23752 # Used on cygwin: object dumper.
23755 # Used on cygwin: assembler.
23758 # The name of the directory that contains temporary libtool files.
23761 # How to create reloadable object files.
23762 reload_flag=$lt_reload_flag
23763 reload_cmds=$lt_reload_cmds
23765 # How to pass a linker flag through the compiler.
23766 wl=$lt_lt_prog_compiler_wl_GCJ
23768 # Object file suffix (normally "o").
23769 objext="$ac_objext"
23771 # Old archive suffix (normally "a").
23774 # Shared library suffix (normally ".so").
23775 shrext_cmds='$shrext_cmds'
23777 # Executable file suffix (normally "").
23780 # Additional compiler flags for building library objects.
23781 pic_flag=$lt_lt_prog_compiler_pic_GCJ
23784 # What is the maximum length of a command?
23785 max_cmd_len=$lt_cv_sys_max_cmd_len
23787 # Does compiler simultaneously support -c and -o options?
23788 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
23790 # Must we lock files when doing compilation ?
23791 need_locks=$lt_need_locks
23793 # Do we need the lib prefix for modules?
23794 need_lib_prefix=$need_lib_prefix
23796 # Do we need a version for libraries?
23797 need_version=$need_version
23799 # Whether dlopen is supported.
23800 dlopen_support=$enable_dlopen
23802 # Whether dlopen of programs is supported.
23803 dlopen_self=$enable_dlopen_self
23805 # Whether dlopen of statically linked programs is supported.
23806 dlopen_self_static=$enable_dlopen_self_static
23808 # Compiler flag to prevent dynamic linking.
23809 link_static_flag=$lt_lt_prog_compiler_static_GCJ
23811 # Compiler flag to turn off builtin functions.
23812 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
23814 # Compiler flag to allow reflexive dlopens.
23815 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
23817 # Compiler flag to generate shared objects directly from archives.
23818 whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
23820 # Compiler flag to generate thread-safe objects.
23821 thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
23823 # Library versioning type.
23824 version_type=$version_type
23826 # Format of library name prefix.
23827 libname_spec=$lt_libname_spec
23829 # List of archive names. First name is the real one, the rest are links.
23830 # The last name is the one that the linker finds with -lNAME.
23831 library_names_spec=$lt_library_names_spec
23833 # The coded name of the library, if different from the real name.
23834 soname_spec=$lt_soname_spec
23836 # Commands used to build and install an old-style archive.
23838 old_archive_cmds=$lt_old_archive_cmds_GCJ
23839 old_postinstall_cmds=$lt_old_postinstall_cmds
23840 old_postuninstall_cmds=$lt_old_postuninstall_cmds
23842 # Create an old-style archive from a shared archive.
23843 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
23845 # Create a temporary old-style archive to link instead of a shared archive.
23846 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
23848 # Commands used to build and install a shared archive.
23849 archive_cmds=$lt_archive_cmds_GCJ
23850 archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
23851 postinstall_cmds=$lt_postinstall_cmds
23852 postuninstall_cmds=$lt_postuninstall_cmds
23854 # Commands used to build a loadable module (assumed same as above if empty)
23855 module_cmds=$lt_module_cmds_GCJ
23856 module_expsym_cmds=$lt_module_expsym_cmds_GCJ
23858 # Commands to strip libraries.
23859 old_striplib=$lt_old_striplib
23860 striplib=$lt_striplib
23862 # Dependencies to place before the objects being linked to create a
23864 predep_objects=$lt_predep_objects_GCJ
23866 # Dependencies to place after the objects being linked to create a
23868 postdep_objects=$lt_postdep_objects_GCJ
23870 # Dependencies to place before the objects being linked to create a
23872 predeps=$lt_predeps_GCJ
23874 # Dependencies to place after the objects being linked to create a
23876 postdeps=$lt_postdeps_GCJ
23878 # The library search path used internally by the compiler when linking
23879 # a shared library.
23880 compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
23882 # Method to check whether dependent libraries are shared objects.
23883 deplibs_check_method=$lt_deplibs_check_method
23885 # Command to use when deplibs_check_method == file_magic.
23886 file_magic_cmd=$lt_file_magic_cmd
23888 # Flag that allows shared libraries with undefined symbols to be built.
23889 allow_undefined_flag=$lt_allow_undefined_flag_GCJ
23891 # Flag that forces no undefined symbols.
23892 no_undefined_flag=$lt_no_undefined_flag_GCJ
23894 # Commands used to finish a libtool library installation in a directory.
23895 finish_cmds=$lt_finish_cmds
23897 # Same as above, but a single script fragment to be evaled but not shown.
23898 finish_eval=$lt_finish_eval
23900 # Take the output of nm and produce a listing of raw symbols and C names.
23901 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
23903 # Transform the output of nm in a proper C declaration
23904 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
23906 # Transform the output of nm in a C name address pair
23907 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
23909 # This is the shared library runtime path variable.
23910 runpath_var=$runpath_var
23912 # This is the shared library path variable.
23913 shlibpath_var=$shlibpath_var
23915 # Is shlibpath searched before the hard-coded library search path?
23916 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
23918 # How to hardcode a shared library path into an executable.
23919 hardcode_action=$hardcode_action_GCJ
23921 # Whether we should hardcode library paths into libraries.
23922 hardcode_into_libs=$hardcode_into_libs
23924 # Flag to hardcode \$libdir into a binary during linking.
23925 # This must work even if \$libdir does not exist.
23926 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
23928 # If ld is used when linking, flag to hardcode \$libdir into
23929 # a binary during linking. This must work even if \$libdir does
23931 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
23933 # Whether we need a single -rpath flag with a separated argument.
23934 hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
23936 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
23937 # resulting binary.
23938 hardcode_direct=$hardcode_direct_GCJ
23940 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
23941 # resulting binary.
23942 hardcode_minus_L=$hardcode_minus_L_GCJ
23944 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
23945 # the resulting binary.
23946 hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
23948 # Set to yes if building a shared library automatically hardcodes DIR into the library
23949 # and all subsequent libraries and executables linked against it.
23950 hardcode_automatic=$hardcode_automatic_GCJ
23952 # Variables whose values should be saved in libtool wrapper scripts and
23953 # restored at relink time.
23954 variables_saved_for_relink="$variables_saved_for_relink"
23956 # Whether libtool must link a program against all its dependency libraries.
23957 link_all_deplibs=$link_all_deplibs_GCJ
23959 # Compile-time system search path for libraries
23960 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
23962 # Run-time system search path for libraries
23963 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
23965 # Fix the shell variable \$srcfile for the compiler.
23966 fix_srcfile_path="$fix_srcfile_path_GCJ"
23968 # Set to yes if exported symbols are required.
23969 always_export_symbols=$always_export_symbols_GCJ
23971 # The commands to list exported symbols.
23972 export_symbols_cmds=$lt_export_symbols_cmds_GCJ
23974 # The commands to extract the exported symbol list from a shared archive.
23975 extract_expsyms_cmds=$lt_extract_expsyms_cmds
23977 # Symbols that should not be listed in the preloaded symbols.
23978 exclude_expsyms=$lt_exclude_expsyms_GCJ
23980 # Symbols that must always be exported.
23981 include_expsyms=$lt_include_expsyms_GCJ
23983 # ### END LIBTOOL TAG CONFIG: $tagname
23989 # If there is no Makefile yet, we rely on a make rule to execute
23990 # `config.status --recheck' to rerun these tests and create the
23991 # libtool script then.
23992 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
23993 if test -f "$ltmain_in"; then
23994 test -f Makefile && make "$ltmain"
24000 ac_cpp='$CPP $CPPFLAGS'
24001 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24002 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24003 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24016 # Source file extension for RC test sources.
24019 # Object file extension for compiled RC test sources.
24023 # Code to be used in simple compile tests
24024 lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
24026 # Code to be used in simple link tests
24027 lt_simple_link_test_code="$lt_simple_compile_test_code"
24029 # ltmain only uses $CC for tagged configurations so make sure $CC is set.
24031 # If no C compiler was specified, use CC.
24034 # Allow CC to be a program name with arguments.
24038 # Allow CC to be a program name with arguments.
24043 lt_cv_prog_compiler_c_o_RC=yes
24045 # The else clause should only fire when bootstrapping the
24046 # libtool distribution, otherwise you forgot to ship ltmain.sh
24047 # with your package, and you will get complaints that there are
24048 # no rules to generate ltmain.sh.
24049 if test -f "$ltmain"; then
24050 # See if we are running on zsh, and set the options which allow our commands through
24051 # without removal of \ escapes.
24052 if test -n "${ZSH_VERSION+set}" ; then
24053 setopt NO_GLOB_SUBST
24055 # Now quote all the things that may contain metacharacters while being
24056 # careful not to overquote the AC_SUBSTed values. We take copies of the
24057 # variables and quote the copies for generation of the libtool script.
24058 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
24060 libname_spec library_names_spec soname_spec extract_expsyms_cmds \
24061 old_striplib striplib file_magic_cmd finish_cmds finish_eval \
24062 deplibs_check_method reload_flag reload_cmds need_locks \
24063 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
24064 lt_cv_sys_global_symbol_to_c_name_address \
24065 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
24066 old_postinstall_cmds old_postuninstall_cmds \
24070 lt_prog_compiler_wl_RC \
24071 lt_prog_compiler_pic_RC \
24072 lt_prog_compiler_static_RC \
24073 lt_prog_compiler_no_builtin_flag_RC \
24074 export_dynamic_flag_spec_RC \
24075 thread_safe_flag_spec_RC \
24076 whole_archive_flag_spec_RC \
24077 enable_shared_with_static_runtimes_RC \
24078 old_archive_cmds_RC \
24079 old_archive_from_new_cmds_RC \
24080 predep_objects_RC \
24081 postdep_objects_RC \
24084 compiler_lib_search_path_RC \
24086 archive_expsym_cmds_RC \
24087 postinstall_cmds_RC \
24088 postuninstall_cmds_RC \
24089 old_archive_from_expsyms_cmds_RC \
24090 allow_undefined_flag_RC \
24091 no_undefined_flag_RC \
24092 export_symbols_cmds_RC \
24093 hardcode_libdir_flag_spec_RC \
24094 hardcode_libdir_flag_spec_ld_RC \
24095 hardcode_libdir_separator_RC \
24096 hardcode_automatic_RC \
24098 module_expsym_cmds_RC \
24099 lt_cv_prog_compiler_c_o_RC \
24100 exclude_expsyms_RC \
24101 include_expsyms_RC; do
24104 old_archive_cmds_RC | \
24105 old_archive_from_new_cmds_RC | \
24106 archive_cmds_RC | \
24107 archive_expsym_cmds_RC | \
24109 module_expsym_cmds_RC | \
24110 old_archive_from_expsyms_cmds_RC | \
24111 export_symbols_cmds_RC | \
24112 extract_expsyms_cmds | reload_cmds | finish_cmds | \
24113 postinstall_cmds | postuninstall_cmds | \
24114 old_postinstall_cmds | old_postuninstall_cmds | \
24115 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
24116 # Double-quote double-evaled strings.
24117 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
24120 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
24126 *'\$0 --fallback-echo"')
24127 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
24133 cat <<__EOF__ >> "$cfgfile"
24134 # ### BEGIN LIBTOOL TAG CONFIG: $tagname
24136 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
24138 # Shell to use when invoking shell scripts.
24141 # Whether or not to build shared libraries.
24142 build_libtool_libs=$enable_shared
24144 # Whether or not to build static libraries.
24145 build_old_libs=$enable_static
24147 # Whether or not to add -lc for building shared libraries.
24148 build_libtool_need_lc=$archive_cmds_need_lc_RC
24150 # Whether or not to disallow shared libs when runtime libs are static
24151 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
24153 # Whether or not to optimize for fast installation.
24154 fast_install=$enable_fast_install
24157 host_alias=$host_alias
24160 # An echo program that does not interpret backslashes.
24165 AR_FLAGS=$lt_AR_FLAGS
24170 # A language-specific compiler.
24173 # Is the compiler the GNU C compiler?
24179 # The linker used to build libraries.
24182 # Whether we need hard or soft links.
24185 # A BSD-compatible nm program.
24188 # A symbol stripping program
24191 # Used to examine libraries when file_magic_cmd begins "file"
24192 MAGIC_CMD=$MAGIC_CMD
24194 # Used on cygwin: DLL creation program.
24197 # Used on cygwin: object dumper.
24200 # Used on cygwin: assembler.
24203 # The name of the directory that contains temporary libtool files.
24206 # How to create reloadable object files.
24207 reload_flag=$lt_reload_flag
24208 reload_cmds=$lt_reload_cmds
24210 # How to pass a linker flag through the compiler.
24211 wl=$lt_lt_prog_compiler_wl_RC
24213 # Object file suffix (normally "o").
24214 objext="$ac_objext"
24216 # Old archive suffix (normally "a").
24219 # Shared library suffix (normally ".so").
24220 shrext_cmds='$shrext_cmds'
24222 # Executable file suffix (normally "").
24225 # Additional compiler flags for building library objects.
24226 pic_flag=$lt_lt_prog_compiler_pic_RC
24229 # What is the maximum length of a command?
24230 max_cmd_len=$lt_cv_sys_max_cmd_len
24232 # Does compiler simultaneously support -c and -o options?
24233 compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
24235 # Must we lock files when doing compilation ?
24236 need_locks=$lt_need_locks
24238 # Do we need the lib prefix for modules?
24239 need_lib_prefix=$need_lib_prefix
24241 # Do we need a version for libraries?
24242 need_version=$need_version
24244 # Whether dlopen is supported.
24245 dlopen_support=$enable_dlopen
24247 # Whether dlopen of programs is supported.
24248 dlopen_self=$enable_dlopen_self
24250 # Whether dlopen of statically linked programs is supported.
24251 dlopen_self_static=$enable_dlopen_self_static
24253 # Compiler flag to prevent dynamic linking.
24254 link_static_flag=$lt_lt_prog_compiler_static_RC
24256 # Compiler flag to turn off builtin functions.
24257 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
24259 # Compiler flag to allow reflexive dlopens.
24260 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
24262 # Compiler flag to generate shared objects directly from archives.
24263 whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
24265 # Compiler flag to generate thread-safe objects.
24266 thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
24268 # Library versioning type.
24269 version_type=$version_type
24271 # Format of library name prefix.
24272 libname_spec=$lt_libname_spec
24274 # List of archive names. First name is the real one, the rest are links.
24275 # The last name is the one that the linker finds with -lNAME.
24276 library_names_spec=$lt_library_names_spec
24278 # The coded name of the library, if different from the real name.
24279 soname_spec=$lt_soname_spec
24281 # Commands used to build and install an old-style archive.
24283 old_archive_cmds=$lt_old_archive_cmds_RC
24284 old_postinstall_cmds=$lt_old_postinstall_cmds
24285 old_postuninstall_cmds=$lt_old_postuninstall_cmds
24287 # Create an old-style archive from a shared archive.
24288 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
24290 # Create a temporary old-style archive to link instead of a shared archive.
24291 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
24293 # Commands used to build and install a shared archive.
24294 archive_cmds=$lt_archive_cmds_RC
24295 archive_expsym_cmds=$lt_archive_expsym_cmds_RC
24296 postinstall_cmds=$lt_postinstall_cmds
24297 postuninstall_cmds=$lt_postuninstall_cmds
24299 # Commands used to build a loadable module (assumed same as above if empty)
24300 module_cmds=$lt_module_cmds_RC
24301 module_expsym_cmds=$lt_module_expsym_cmds_RC
24303 # Commands to strip libraries.
24304 old_striplib=$lt_old_striplib
24305 striplib=$lt_striplib
24307 # Dependencies to place before the objects being linked to create a
24309 predep_objects=$lt_predep_objects_RC
24311 # Dependencies to place after the objects being linked to create a
24313 postdep_objects=$lt_postdep_objects_RC
24315 # Dependencies to place before the objects being linked to create a
24317 predeps=$lt_predeps_RC
24319 # Dependencies to place after the objects being linked to create a
24321 postdeps=$lt_postdeps_RC
24323 # The library search path used internally by the compiler when linking
24324 # a shared library.
24325 compiler_lib_search_path=$lt_compiler_lib_search_path_RC
24327 # Method to check whether dependent libraries are shared objects.
24328 deplibs_check_method=$lt_deplibs_check_method
24330 # Command to use when deplibs_check_method == file_magic.
24331 file_magic_cmd=$lt_file_magic_cmd
24333 # Flag that allows shared libraries with undefined symbols to be built.
24334 allow_undefined_flag=$lt_allow_undefined_flag_RC
24336 # Flag that forces no undefined symbols.
24337 no_undefined_flag=$lt_no_undefined_flag_RC
24339 # Commands used to finish a libtool library installation in a directory.
24340 finish_cmds=$lt_finish_cmds
24342 # Same as above, but a single script fragment to be evaled but not shown.
24343 finish_eval=$lt_finish_eval
24345 # Take the output of nm and produce a listing of raw symbols and C names.
24346 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
24348 # Transform the output of nm in a proper C declaration
24349 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
24351 # Transform the output of nm in a C name address pair
24352 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
24354 # This is the shared library runtime path variable.
24355 runpath_var=$runpath_var
24357 # This is the shared library path variable.
24358 shlibpath_var=$shlibpath_var
24360 # Is shlibpath searched before the hard-coded library search path?
24361 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
24363 # How to hardcode a shared library path into an executable.
24364 hardcode_action=$hardcode_action_RC
24366 # Whether we should hardcode library paths into libraries.
24367 hardcode_into_libs=$hardcode_into_libs
24369 # Flag to hardcode \$libdir into a binary during linking.
24370 # This must work even if \$libdir does not exist.
24371 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
24373 # If ld is used when linking, flag to hardcode \$libdir into
24374 # a binary during linking. This must work even if \$libdir does
24376 hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
24378 # Whether we need a single -rpath flag with a separated argument.
24379 hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
24381 # Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
24382 # resulting binary.
24383 hardcode_direct=$hardcode_direct_RC
24385 # Set to yes if using the -LDIR flag during linking hardcodes DIR into the
24386 # resulting binary.
24387 hardcode_minus_L=$hardcode_minus_L_RC
24389 # Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
24390 # the resulting binary.
24391 hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
24393 # Set to yes if building a shared library automatically hardcodes DIR into the library
24394 # and all subsequent libraries and executables linked against it.
24395 hardcode_automatic=$hardcode_automatic_RC
24397 # Variables whose values should be saved in libtool wrapper scripts and
24398 # restored at relink time.
24399 variables_saved_for_relink="$variables_saved_for_relink"
24401 # Whether libtool must link a program against all its dependency libraries.
24402 link_all_deplibs=$link_all_deplibs_RC
24404 # Compile-time system search path for libraries
24405 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
24407 # Run-time system search path for libraries
24408 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
24410 # Fix the shell variable \$srcfile for the compiler.
24411 fix_srcfile_path="$fix_srcfile_path_RC"
24413 # Set to yes if exported symbols are required.
24414 always_export_symbols=$always_export_symbols_RC
24416 # The commands to list exported symbols.
24417 export_symbols_cmds=$lt_export_symbols_cmds_RC
24419 # The commands to extract the exported symbol list from a shared archive.
24420 extract_expsyms_cmds=$lt_extract_expsyms_cmds
24422 # Symbols that should not be listed in the preloaded symbols.
24423 exclude_expsyms=$lt_exclude_expsyms_RC
24425 # Symbols that must always be exported.
24426 include_expsyms=$lt_include_expsyms_RC
24428 # ### END LIBTOOL TAG CONFIG: $tagname
24434 # If there is no Makefile yet, we rely on a make rule to execute
24435 # `config.status --recheck' to rerun these tests and create the
24436 # libtool script then.
24437 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
24438 if test -f "$ltmain_in"; then
24439 test -f Makefile && make "$ltmain"
24445 ac_cpp='$CPP $CPPFLAGS'
24446 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
24447 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
24448 ac_compiler_gnu=$ac_cv_c_compiler_gnu
24455 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
24456 echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
24457 { (exit 1); exit 1; }; }
24461 # Append the new tag name to the list of available tags.
24462 if test -n "$tagname" ; then
24463 available_tags="$available_tags $tagname"
24469 # Now substitute the updated list of available tags.
24470 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
24471 mv "${ofile}T" "$ofile"
24475 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
24476 echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
24477 { (exit 1); exit 1; }; }
24483 # This can be used to rebuild libtool when needed
24484 LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
24486 # Always use our own libtool.
24487 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
24489 # Prevent multiple expansion
24511 # Generate an error here if attempting to build both shared and static when
24512 # $libname.a is in $library_names_spec (as mentioned above), rather than
24513 # wait for ar or ld to fail.
24515 if test "$enable_shared" = yes && test "$enable_static" = yes; then
24516 case $library_names_spec in
24518 { { echo "$as_me:$LINENO: error: cannot create both shared and static libraries on this system, --disable one of the two" >&5
24519 echo "$as_me: error: cannot create both shared and static libraries on this system, --disable one of the two" >&2;}
24520 { (exit 1); exit 1; }; }
24527 if test "$enable_static" = yes; then
24528 ENABLE_STATIC_TRUE=
24529 ENABLE_STATIC_FALSE='#'
24531 ENABLE_STATIC_TRUE='#'
24532 ENABLE_STATIC_FALSE=
24537 # Many of these library and header checks are for the benefit of
24538 # supplementary programs. libgmp doesn't use anything too weird.
24540 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
24541 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
24542 if test "${ac_cv_header_stdc+set}" = set; then
24543 echo $ECHO_N "(cached) $ECHO_C" >&6
24545 cat >conftest.$ac_ext <<_ACEOF
24548 cat confdefs.h >>conftest.$ac_ext
24549 cat >>conftest.$ac_ext <<_ACEOF
24550 /* end confdefs.h. */
24551 #include <stdlib.h>
24552 #include <stdarg.h>
24553 #include <string.h>
24564 rm -f conftest.$ac_objext
24565 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24566 (eval $ac_compile) 2>conftest.er1
24568 grep -v '^ *+' conftest.er1 >conftest.err
24570 cat conftest.err >&5
24571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24572 (exit $ac_status); } &&
24573 { ac_try='test -z "$ac_c_werror_flag"
24574 || test ! -s conftest.err'
24575 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24576 (eval $ac_try) 2>&5
24578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24579 (exit $ac_status); }; } &&
24580 { ac_try='test -s conftest.$ac_objext'
24581 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24582 (eval $ac_try) 2>&5
24584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24585 (exit $ac_status); }; }; then
24586 ac_cv_header_stdc=yes
24588 echo "$as_me: failed program was:" >&5
24589 sed 's/^/| /' conftest.$ac_ext >&5
24591 ac_cv_header_stdc=no
24593 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24595 if test $ac_cv_header_stdc = yes; then
24596 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
24597 cat >conftest.$ac_ext <<_ACEOF
24600 cat confdefs.h >>conftest.$ac_ext
24601 cat >>conftest.$ac_ext <<_ACEOF
24602 /* end confdefs.h. */
24603 #include <string.h>
24606 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24607 $EGREP "memchr" >/dev/null 2>&1; then
24610 ac_cv_header_stdc=no
24616 if test $ac_cv_header_stdc = yes; then
24617 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
24618 cat >conftest.$ac_ext <<_ACEOF
24621 cat confdefs.h >>conftest.$ac_ext
24622 cat >>conftest.$ac_ext <<_ACEOF
24623 /* end confdefs.h. */
24624 #include <stdlib.h>
24627 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24628 $EGREP "free" >/dev/null 2>&1; then
24631 ac_cv_header_stdc=no
24637 if test $ac_cv_header_stdc = yes; then
24638 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
24639 if test "$cross_compiling" = yes; then
24642 cat >conftest.$ac_ext <<_ACEOF
24645 cat confdefs.h >>conftest.$ac_ext
24646 cat >>conftest.$ac_ext <<_ACEOF
24647 /* end confdefs.h. */
24649 #if ((' ' & 0x0FF) == 0x020)
24650 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
24651 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
24653 # define ISLOWER(c) \
24654 (('a' <= (c) && (c) <= 'i') \
24655 || ('j' <= (c) && (c) <= 'r') \
24656 || ('s' <= (c) && (c) <= 'z'))
24657 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
24660 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
24665 for (i = 0; i < 256; i++)
24666 if (XOR (islower (i), ISLOWER (i))
24667 || toupper (i) != TOUPPER (i))
24672 rm -f conftest$ac_exeext
24673 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
24674 (eval $ac_link) 2>&5
24676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24677 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
24678 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24679 (eval $ac_try) 2>&5
24681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24682 (exit $ac_status); }; }; then
24685 echo "$as_me: program exited with status $ac_status" >&5
24686 echo "$as_me: failed program was:" >&5
24687 sed 's/^/| /' conftest.$ac_ext >&5
24689 ( exit $ac_status )
24690 ac_cv_header_stdc=no
24692 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
24696 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
24697 echo "${ECHO_T}$ac_cv_header_stdc" >&6
24698 if test $ac_cv_header_stdc = yes; then
24700 cat >>confdefs.h <<\_ACEOF
24701 #define STDC_HEADERS 1
24706 echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
24707 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
24708 if test "${ac_cv_header_time+set}" = set; then
24709 echo $ECHO_N "(cached) $ECHO_C" >&6
24711 cat >conftest.$ac_ext <<_ACEOF
24714 cat confdefs.h >>conftest.$ac_ext
24715 cat >>conftest.$ac_ext <<_ACEOF
24716 /* end confdefs.h. */
24717 #include <sys/types.h>
24718 #include <sys/time.h>
24724 if ((struct tm *) 0)
24730 rm -f conftest.$ac_objext
24731 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24732 (eval $ac_compile) 2>conftest.er1
24734 grep -v '^ *+' conftest.er1 >conftest.err
24736 cat conftest.err >&5
24737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24738 (exit $ac_status); } &&
24739 { ac_try='test -z "$ac_c_werror_flag"
24740 || test ! -s conftest.err'
24741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24742 (eval $ac_try) 2>&5
24744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24745 (exit $ac_status); }; } &&
24746 { ac_try='test -s conftest.$ac_objext'
24747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24748 (eval $ac_try) 2>&5
24750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24751 (exit $ac_status); }; }; then
24752 ac_cv_header_time=yes
24754 echo "$as_me: failed program was:" >&5
24755 sed 's/^/| /' conftest.$ac_ext >&5
24757 ac_cv_header_time=no
24759 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24761 echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
24762 echo "${ECHO_T}$ac_cv_header_time" >&6
24763 if test $ac_cv_header_time = yes; then
24765 cat >>confdefs.h <<\_ACEOF
24766 #define TIME_WITH_SYS_TIME 1
24772 # Reasons for testing:
24773 # float.h - not in SunOS bundled cc
24774 # invent.h - IRIX specific
24775 # langinfo.h - X/Open standard only, not in djgpp for instance
24776 # locale.h - old systems won't have this
24777 # nl_types.h - X/Open standard only, not in djgpp for instance
24778 # (usually langinfo.h gives nl_item etc, but not on netbsd 1.4.1)
24779 # sys/attributes.h - IRIX specific
24780 # sys/iograph.h - IRIX specific
24781 # sys/mman.h - not in Cray Unicos
24782 # sys/param.h - not in mingw
24783 # sys/processor.h - solaris specific, though also present in macos
24784 # sys/pstat.h - HPUX specific
24785 # sys/resource.h - not in mingw
24786 # sys/sysctl.h - not in mingw
24787 # sys/sysinfo.h - OSF specific
24788 # sys/syssgi.h - IRIX specific
24789 # sys/systemcfg.h - AIX specific
24790 # sys/time.h - autoconf suggests testing, don't know anywhere without it
24791 # sys/times.h - not in mingw
24792 # machine/hal_sysinfo.h - OSF specific
24794 # inttypes.h, stdint.h, unistd.h and sys/types.h are already in the autoconf
24814 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
24816 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24817 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24818 echo "$as_me:$LINENO: checking for $ac_header" >&5
24819 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24820 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24821 echo $ECHO_N "(cached) $ECHO_C" >&6
24823 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24824 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24826 # Is the header compilable?
24827 echo "$as_me:$LINENO: checking $ac_header usability" >&5
24828 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
24829 cat >conftest.$ac_ext <<_ACEOF
24832 cat confdefs.h >>conftest.$ac_ext
24833 cat >>conftest.$ac_ext <<_ACEOF
24834 /* end confdefs.h. */
24835 $ac_includes_default
24836 #include <$ac_header>
24838 rm -f conftest.$ac_objext
24839 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24840 (eval $ac_compile) 2>conftest.er1
24842 grep -v '^ *+' conftest.er1 >conftest.err
24844 cat conftest.err >&5
24845 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24846 (exit $ac_status); } &&
24847 { ac_try='test -z "$ac_c_werror_flag"
24848 || test ! -s conftest.err'
24849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24850 (eval $ac_try) 2>&5
24852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24853 (exit $ac_status); }; } &&
24854 { ac_try='test -s conftest.$ac_objext'
24855 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
24856 (eval $ac_try) 2>&5
24858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24859 (exit $ac_status); }; }; then
24860 ac_header_compiler=yes
24862 echo "$as_me: failed program was:" >&5
24863 sed 's/^/| /' conftest.$ac_ext >&5
24865 ac_header_compiler=no
24867 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
24868 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24869 echo "${ECHO_T}$ac_header_compiler" >&6
24871 # Is the header present?
24872 echo "$as_me:$LINENO: checking $ac_header presence" >&5
24873 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
24874 cat >conftest.$ac_ext <<_ACEOF
24877 cat confdefs.h >>conftest.$ac_ext
24878 cat >>conftest.$ac_ext <<_ACEOF
24879 /* end confdefs.h. */
24880 #include <$ac_header>
24882 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
24883 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
24885 grep -v '^ *+' conftest.er1 >conftest.err
24887 cat conftest.err >&5
24888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24889 (exit $ac_status); } >/dev/null; then
24890 if test -s conftest.err; then
24891 ac_cpp_err=$ac_c_preproc_warn_flag
24892 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24899 if test -z "$ac_cpp_err"; then
24900 ac_header_preproc=yes
24902 echo "$as_me: failed program was:" >&5
24903 sed 's/^/| /' conftest.$ac_ext >&5
24905 ac_header_preproc=no
24907 rm -f conftest.err conftest.$ac_ext
24908 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24909 echo "${ECHO_T}$ac_header_preproc" >&6
24911 # So? What about this header?
24912 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24914 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24915 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24916 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24917 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24918 ac_header_preproc=yes
24921 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24922 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24923 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24924 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24925 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24926 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24927 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24928 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24929 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24930 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24931 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24932 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24935 ## -------------------------------- ##
24936 ## Report this to gmp-bugs@swox.com ##
24937 ## -------------------------------- ##
24940 sed "s/^/$as_me: WARNING: /" >&2
24943 echo "$as_me:$LINENO: checking for $ac_header" >&5
24944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24945 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24946 echo $ECHO_N "(cached) $ECHO_C" >&6
24948 eval "$as_ac_Header=\$ac_header_preproc"
24950 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
24951 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
24954 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24955 cat >>confdefs.h <<_ACEOF
24956 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24964 # On SunOS, sys/resource.h needs sys/time.h (for struct timeval)
24966 for ac_header in sys/resource.h
24968 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24969 echo "$as_me:$LINENO: checking for $ac_header" >&5
24970 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
24971 if eval "test \"\${$as_ac_Header+set}\" = set"; then
24972 echo $ECHO_N "(cached) $ECHO_C" >&6
24974 cat >conftest.$ac_ext <<_ACEOF
24977 cat confdefs.h >>conftest.$ac_ext
24978 cat >>conftest.$ac_ext <<_ACEOF
24979 /* end confdefs.h. */
24980 #if TIME_WITH_SYS_TIME
24981 # include <sys/time.h>
24984 # if HAVE_SYS_TIME_H
24985 # include <sys/time.h>
24991 #include <$ac_header>
24993 rm -f conftest.$ac_objext
24994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
24995 (eval $ac_compile) 2>conftest.er1
24997 grep -v '^ *+' conftest.er1 >conftest.err
24999 cat conftest.err >&5
25000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25001 (exit $ac_status); } &&
25002 { ac_try='test -z "$ac_c_werror_flag"
25003 || test ! -s conftest.err'
25004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25005 (eval $ac_try) 2>&5
25007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25008 (exit $ac_status); }; } &&
25009 { ac_try='test -s conftest.$ac_objext'
25010 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25011 (eval $ac_try) 2>&5
25013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25014 (exit $ac_status); }; }; then
25015 eval "$as_ac_Header=yes"
25017 echo "$as_me: failed program was:" >&5
25018 sed 's/^/| /' conftest.$ac_ext >&5
25020 eval "$as_ac_Header=no"
25022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25024 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25025 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25026 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25027 cat >>confdefs.h <<_ACEOF
25028 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25036 # On NetBSD and OpenBSD, sys/sysctl.h needs sys/param.h for various constants
25038 for ac_header in sys/sysctl.h
25040 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25041 echo "$as_me:$LINENO: checking for $ac_header" >&5
25042 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25043 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25044 echo $ECHO_N "(cached) $ECHO_C" >&6
25046 cat >conftest.$ac_ext <<_ACEOF
25049 cat confdefs.h >>conftest.$ac_ext
25050 cat >>conftest.$ac_ext <<_ACEOF
25051 /* end confdefs.h. */
25052 #if HAVE_SYS_PARAM_H
25053 # include <sys/param.h>
25056 #include <$ac_header>
25058 rm -f conftest.$ac_objext
25059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25060 (eval $ac_compile) 2>conftest.er1
25062 grep -v '^ *+' conftest.er1 >conftest.err
25064 cat conftest.err >&5
25065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25066 (exit $ac_status); } &&
25067 { ac_try='test -z "$ac_c_werror_flag"
25068 || test ! -s conftest.err'
25069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25070 (eval $ac_try) 2>&5
25072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25073 (exit $ac_status); }; } &&
25074 { ac_try='test -s conftest.$ac_objext'
25075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25076 (eval $ac_try) 2>&5
25078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25079 (exit $ac_status); }; }; then
25080 eval "$as_ac_Header=yes"
25082 echo "$as_me: failed program was:" >&5
25083 sed 's/^/| /' conftest.$ac_ext >&5
25085 eval "$as_ac_Header=no"
25087 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25089 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25090 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25091 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25092 cat >>confdefs.h <<_ACEOF
25093 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25101 # On OSF 4.0, <machine/hal_sysinfo.h> must have <sys/sysinfo.h> for ulong_t
25103 for ac_header in machine/hal_sysinfo.h
25105 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
25106 echo "$as_me:$LINENO: checking for $ac_header" >&5
25107 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
25108 if eval "test \"\${$as_ac_Header+set}\" = set"; then
25109 echo $ECHO_N "(cached) $ECHO_C" >&6
25111 cat >conftest.$ac_ext <<_ACEOF
25114 cat confdefs.h >>conftest.$ac_ext
25115 cat >>conftest.$ac_ext <<_ACEOF
25116 /* end confdefs.h. */
25117 #if HAVE_SYS_SYSINFO_H
25118 # include <sys/sysinfo.h>
25121 #include <$ac_header>
25123 rm -f conftest.$ac_objext
25124 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25125 (eval $ac_compile) 2>conftest.er1
25127 grep -v '^ *+' conftest.er1 >conftest.err
25129 cat conftest.err >&5
25130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25131 (exit $ac_status); } &&
25132 { ac_try='test -z "$ac_c_werror_flag"
25133 || test ! -s conftest.err'
25134 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25135 (eval $ac_try) 2>&5
25137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25138 (exit $ac_status); }; } &&
25139 { ac_try='test -s conftest.$ac_objext'
25140 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25141 (eval $ac_try) 2>&5
25143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25144 (exit $ac_status); }; }; then
25145 eval "$as_ac_Header=yes"
25147 echo "$as_me: failed program was:" >&5
25148 sed 's/^/| /' conftest.$ac_ext >&5
25150 eval "$as_ac_Header=no"
25152 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25154 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
25155 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
25156 if test `eval echo '${'$as_ac_Header'}'` = yes; then
25157 cat >>confdefs.h <<_ACEOF
25158 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
25166 # Reasons for testing:
25167 # optarg - not declared in mingw
25168 # fgetc, fscanf, ungetc, vfprintf - not declared in SunOS 4
25169 # sys_errlist, sys_nerr - not declared in SunOS 4
25171 # optarg should be in unistd.h and the rest in stdio.h, both of which are
25172 # in the autoconf default includes.
25174 # sys_errlist and sys_nerr are supposed to be in <errno.h> on SunOS according
25175 # to the man page (but aren't), in glibc they're in stdio.h.
25177 echo "$as_me:$LINENO: checking whether fgetc is declared" >&5
25178 echo $ECHO_N "checking whether fgetc is declared... $ECHO_C" >&6
25179 if test "${ac_cv_have_decl_fgetc+set}" = set; then
25180 echo $ECHO_N "(cached) $ECHO_C" >&6
25182 cat >conftest.$ac_ext <<_ACEOF
25185 cat confdefs.h >>conftest.$ac_ext
25186 cat >>conftest.$ac_ext <<_ACEOF
25187 /* end confdefs.h. */
25188 $ac_includes_default
25193 char *p = (char *) fgetc;
25200 rm -f conftest.$ac_objext
25201 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25202 (eval $ac_compile) 2>conftest.er1
25204 grep -v '^ *+' conftest.er1 >conftest.err
25206 cat conftest.err >&5
25207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25208 (exit $ac_status); } &&
25209 { ac_try='test -z "$ac_c_werror_flag"
25210 || test ! -s conftest.err'
25211 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25212 (eval $ac_try) 2>&5
25214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25215 (exit $ac_status); }; } &&
25216 { ac_try='test -s conftest.$ac_objext'
25217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25218 (eval $ac_try) 2>&5
25220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25221 (exit $ac_status); }; }; then
25222 ac_cv_have_decl_fgetc=yes
25224 echo "$as_me: failed program was:" >&5
25225 sed 's/^/| /' conftest.$ac_ext >&5
25227 ac_cv_have_decl_fgetc=no
25229 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25231 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fgetc" >&5
25232 echo "${ECHO_T}$ac_cv_have_decl_fgetc" >&6
25233 if test $ac_cv_have_decl_fgetc = yes; then
25235 cat >>confdefs.h <<_ACEOF
25236 #define HAVE_DECL_FGETC 1
25241 cat >>confdefs.h <<_ACEOF
25242 #define HAVE_DECL_FGETC 0
25247 echo "$as_me:$LINENO: checking whether fscanf is declared" >&5
25248 echo $ECHO_N "checking whether fscanf is declared... $ECHO_C" >&6
25249 if test "${ac_cv_have_decl_fscanf+set}" = set; then
25250 echo $ECHO_N "(cached) $ECHO_C" >&6
25252 cat >conftest.$ac_ext <<_ACEOF
25255 cat confdefs.h >>conftest.$ac_ext
25256 cat >>conftest.$ac_ext <<_ACEOF
25257 /* end confdefs.h. */
25258 $ac_includes_default
25263 char *p = (char *) fscanf;
25270 rm -f conftest.$ac_objext
25271 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25272 (eval $ac_compile) 2>conftest.er1
25274 grep -v '^ *+' conftest.er1 >conftest.err
25276 cat conftest.err >&5
25277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25278 (exit $ac_status); } &&
25279 { ac_try='test -z "$ac_c_werror_flag"
25280 || test ! -s conftest.err'
25281 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25282 (eval $ac_try) 2>&5
25284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25285 (exit $ac_status); }; } &&
25286 { ac_try='test -s conftest.$ac_objext'
25287 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25288 (eval $ac_try) 2>&5
25290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25291 (exit $ac_status); }; }; then
25292 ac_cv_have_decl_fscanf=yes
25294 echo "$as_me: failed program was:" >&5
25295 sed 's/^/| /' conftest.$ac_ext >&5
25297 ac_cv_have_decl_fscanf=no
25299 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25301 echo "$as_me:$LINENO: result: $ac_cv_have_decl_fscanf" >&5
25302 echo "${ECHO_T}$ac_cv_have_decl_fscanf" >&6
25303 if test $ac_cv_have_decl_fscanf = yes; then
25305 cat >>confdefs.h <<_ACEOF
25306 #define HAVE_DECL_FSCANF 1
25311 cat >>confdefs.h <<_ACEOF
25312 #define HAVE_DECL_FSCANF 0
25317 echo "$as_me:$LINENO: checking whether optarg is declared" >&5
25318 echo $ECHO_N "checking whether optarg is declared... $ECHO_C" >&6
25319 if test "${ac_cv_have_decl_optarg+set}" = set; then
25320 echo $ECHO_N "(cached) $ECHO_C" >&6
25322 cat >conftest.$ac_ext <<_ACEOF
25325 cat confdefs.h >>conftest.$ac_ext
25326 cat >>conftest.$ac_ext <<_ACEOF
25327 /* end confdefs.h. */
25328 $ac_includes_default
25333 char *p = (char *) optarg;
25340 rm -f conftest.$ac_objext
25341 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25342 (eval $ac_compile) 2>conftest.er1
25344 grep -v '^ *+' conftest.er1 >conftest.err
25346 cat conftest.err >&5
25347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25348 (exit $ac_status); } &&
25349 { ac_try='test -z "$ac_c_werror_flag"
25350 || test ! -s conftest.err'
25351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25352 (eval $ac_try) 2>&5
25354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25355 (exit $ac_status); }; } &&
25356 { ac_try='test -s conftest.$ac_objext'
25357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25358 (eval $ac_try) 2>&5
25360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25361 (exit $ac_status); }; }; then
25362 ac_cv_have_decl_optarg=yes
25364 echo "$as_me: failed program was:" >&5
25365 sed 's/^/| /' conftest.$ac_ext >&5
25367 ac_cv_have_decl_optarg=no
25369 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25371 echo "$as_me:$LINENO: result: $ac_cv_have_decl_optarg" >&5
25372 echo "${ECHO_T}$ac_cv_have_decl_optarg" >&6
25373 if test $ac_cv_have_decl_optarg = yes; then
25375 cat >>confdefs.h <<_ACEOF
25376 #define HAVE_DECL_OPTARG 1
25381 cat >>confdefs.h <<_ACEOF
25382 #define HAVE_DECL_OPTARG 0
25387 echo "$as_me:$LINENO: checking whether ungetc is declared" >&5
25388 echo $ECHO_N "checking whether ungetc is declared... $ECHO_C" >&6
25389 if test "${ac_cv_have_decl_ungetc+set}" = set; then
25390 echo $ECHO_N "(cached) $ECHO_C" >&6
25392 cat >conftest.$ac_ext <<_ACEOF
25395 cat confdefs.h >>conftest.$ac_ext
25396 cat >>conftest.$ac_ext <<_ACEOF
25397 /* end confdefs.h. */
25398 $ac_includes_default
25403 char *p = (char *) ungetc;
25410 rm -f conftest.$ac_objext
25411 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25412 (eval $ac_compile) 2>conftest.er1
25414 grep -v '^ *+' conftest.er1 >conftest.err
25416 cat conftest.err >&5
25417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25418 (exit $ac_status); } &&
25419 { ac_try='test -z "$ac_c_werror_flag"
25420 || test ! -s conftest.err'
25421 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25422 (eval $ac_try) 2>&5
25424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25425 (exit $ac_status); }; } &&
25426 { ac_try='test -s conftest.$ac_objext'
25427 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25428 (eval $ac_try) 2>&5
25430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25431 (exit $ac_status); }; }; then
25432 ac_cv_have_decl_ungetc=yes
25434 echo "$as_me: failed program was:" >&5
25435 sed 's/^/| /' conftest.$ac_ext >&5
25437 ac_cv_have_decl_ungetc=no
25439 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25441 echo "$as_me:$LINENO: result: $ac_cv_have_decl_ungetc" >&5
25442 echo "${ECHO_T}$ac_cv_have_decl_ungetc" >&6
25443 if test $ac_cv_have_decl_ungetc = yes; then
25445 cat >>confdefs.h <<_ACEOF
25446 #define HAVE_DECL_UNGETC 1
25451 cat >>confdefs.h <<_ACEOF
25452 #define HAVE_DECL_UNGETC 0
25457 echo "$as_me:$LINENO: checking whether vfprintf is declared" >&5
25458 echo $ECHO_N "checking whether vfprintf is declared... $ECHO_C" >&6
25459 if test "${ac_cv_have_decl_vfprintf+set}" = set; then
25460 echo $ECHO_N "(cached) $ECHO_C" >&6
25462 cat >conftest.$ac_ext <<_ACEOF
25465 cat confdefs.h >>conftest.$ac_ext
25466 cat >>conftest.$ac_ext <<_ACEOF
25467 /* end confdefs.h. */
25468 $ac_includes_default
25473 char *p = (char *) vfprintf;
25480 rm -f conftest.$ac_objext
25481 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25482 (eval $ac_compile) 2>conftest.er1
25484 grep -v '^ *+' conftest.er1 >conftest.err
25486 cat conftest.err >&5
25487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25488 (exit $ac_status); } &&
25489 { ac_try='test -z "$ac_c_werror_flag"
25490 || test ! -s conftest.err'
25491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25492 (eval $ac_try) 2>&5
25494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25495 (exit $ac_status); }; } &&
25496 { ac_try='test -s conftest.$ac_objext'
25497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25498 (eval $ac_try) 2>&5
25500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25501 (exit $ac_status); }; }; then
25502 ac_cv_have_decl_vfprintf=yes
25504 echo "$as_me: failed program was:" >&5
25505 sed 's/^/| /' conftest.$ac_ext >&5
25507 ac_cv_have_decl_vfprintf=no
25509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25511 echo "$as_me:$LINENO: result: $ac_cv_have_decl_vfprintf" >&5
25512 echo "${ECHO_T}$ac_cv_have_decl_vfprintf" >&6
25513 if test $ac_cv_have_decl_vfprintf = yes; then
25515 cat >>confdefs.h <<_ACEOF
25516 #define HAVE_DECL_VFPRINTF 1
25521 cat >>confdefs.h <<_ACEOF
25522 #define HAVE_DECL_VFPRINTF 0
25529 echo "$as_me:$LINENO: checking whether sys_errlist is declared" >&5
25530 echo $ECHO_N "checking whether sys_errlist is declared... $ECHO_C" >&6
25531 if test "${ac_cv_have_decl_sys_errlist+set}" = set; then
25532 echo $ECHO_N "(cached) $ECHO_C" >&6
25534 cat >conftest.$ac_ext <<_ACEOF
25537 cat confdefs.h >>conftest.$ac_ext
25538 cat >>conftest.$ac_ext <<_ACEOF
25539 /* end confdefs.h. */
25546 #ifndef sys_errlist
25547 char *p = (char *) sys_errlist;
25554 rm -f conftest.$ac_objext
25555 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25556 (eval $ac_compile) 2>conftest.er1
25558 grep -v '^ *+' conftest.er1 >conftest.err
25560 cat conftest.err >&5
25561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25562 (exit $ac_status); } &&
25563 { ac_try='test -z "$ac_c_werror_flag"
25564 || test ! -s conftest.err'
25565 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25566 (eval $ac_try) 2>&5
25568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25569 (exit $ac_status); }; } &&
25570 { ac_try='test -s conftest.$ac_objext'
25571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25572 (eval $ac_try) 2>&5
25574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25575 (exit $ac_status); }; }; then
25576 ac_cv_have_decl_sys_errlist=yes
25578 echo "$as_me: failed program was:" >&5
25579 sed 's/^/| /' conftest.$ac_ext >&5
25581 ac_cv_have_decl_sys_errlist=no
25583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25585 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_errlist" >&5
25586 echo "${ECHO_T}$ac_cv_have_decl_sys_errlist" >&6
25587 if test $ac_cv_have_decl_sys_errlist = yes; then
25589 cat >>confdefs.h <<_ACEOF
25590 #define HAVE_DECL_SYS_ERRLIST 1
25595 cat >>confdefs.h <<_ACEOF
25596 #define HAVE_DECL_SYS_ERRLIST 0
25601 echo "$as_me:$LINENO: checking whether sys_nerr is declared" >&5
25602 echo $ECHO_N "checking whether sys_nerr is declared... $ECHO_C" >&6
25603 if test "${ac_cv_have_decl_sys_nerr+set}" = set; then
25604 echo $ECHO_N "(cached) $ECHO_C" >&6
25606 cat >conftest.$ac_ext <<_ACEOF
25609 cat confdefs.h >>conftest.$ac_ext
25610 cat >>conftest.$ac_ext <<_ACEOF
25611 /* end confdefs.h. */
25619 char *p = (char *) sys_nerr;
25626 rm -f conftest.$ac_objext
25627 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25628 (eval $ac_compile) 2>conftest.er1
25630 grep -v '^ *+' conftest.er1 >conftest.err
25632 cat conftest.err >&5
25633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25634 (exit $ac_status); } &&
25635 { ac_try='test -z "$ac_c_werror_flag"
25636 || test ! -s conftest.err'
25637 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25638 (eval $ac_try) 2>&5
25640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25641 (exit $ac_status); }; } &&
25642 { ac_try='test -s conftest.$ac_objext'
25643 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25644 (eval $ac_try) 2>&5
25646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25647 (exit $ac_status); }; }; then
25648 ac_cv_have_decl_sys_nerr=yes
25650 echo "$as_me: failed program was:" >&5
25651 sed 's/^/| /' conftest.$ac_ext >&5
25653 ac_cv_have_decl_sys_nerr=no
25655 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25657 echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_nerr" >&5
25658 echo "${ECHO_T}$ac_cv_have_decl_sys_nerr" >&6
25659 if test $ac_cv_have_decl_sys_nerr = yes; then
25661 cat >>confdefs.h <<_ACEOF
25662 #define HAVE_DECL_SYS_NERR 1
25667 cat >>confdefs.h <<_ACEOF
25668 #define HAVE_DECL_SYS_NERR 0
25676 echo "$as_me:$LINENO: checking return type of signal handlers" >&5
25677 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6
25678 if test "${ac_cv_type_signal+set}" = set; then
25679 echo $ECHO_N "(cached) $ECHO_C" >&6
25681 cat >conftest.$ac_ext <<_ACEOF
25684 cat confdefs.h >>conftest.$ac_ext
25685 cat >>conftest.$ac_ext <<_ACEOF
25686 /* end confdefs.h. */
25687 #include <sys/types.h>
25688 #include <signal.h>
25693 extern "C" void (*signal (int, void (*)(int)))(int);
25695 void (*signal ()) ();
25706 rm -f conftest.$ac_objext
25707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25708 (eval $ac_compile) 2>conftest.er1
25710 grep -v '^ *+' conftest.er1 >conftest.err
25712 cat conftest.err >&5
25713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25714 (exit $ac_status); } &&
25715 { ac_try='test -z "$ac_c_werror_flag"
25716 || test ! -s conftest.err'
25717 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25718 (eval $ac_try) 2>&5
25720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25721 (exit $ac_status); }; } &&
25722 { ac_try='test -s conftest.$ac_objext'
25723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25724 (eval $ac_try) 2>&5
25726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25727 (exit $ac_status); }; }; then
25728 ac_cv_type_signal=void
25730 echo "$as_me: failed program was:" >&5
25731 sed 's/^/| /' conftest.$ac_ext >&5
25733 ac_cv_type_signal=int
25735 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25737 echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
25738 echo "${ECHO_T}$ac_cv_type_signal" >&6
25740 cat >>confdefs.h <<_ACEOF
25741 #define RETSIGTYPE $ac_cv_type_signal
25746 # Reasons for testing:
25748 # long double - not in the HP bundled K&R cc
25749 # long long - only in reasonably recent compilers
25750 # ptrdiff_t - seems to be everywhere, maybe don't need to check this
25751 # quad_t - BSD specific
25752 # uint_least32_t - C99
25754 # the default includes are sufficient for all these types
25756 echo "$as_me:$LINENO: checking for intmax_t" >&5
25757 echo $ECHO_N "checking for intmax_t... $ECHO_C" >&6
25758 if test "${ac_cv_type_intmax_t+set}" = set; then
25759 echo $ECHO_N "(cached) $ECHO_C" >&6
25761 cat >conftest.$ac_ext <<_ACEOF
25764 cat confdefs.h >>conftest.$ac_ext
25765 cat >>conftest.$ac_ext <<_ACEOF
25766 /* end confdefs.h. */
25767 $ac_includes_default
25771 if ((intmax_t *) 0)
25773 if (sizeof (intmax_t))
25779 rm -f conftest.$ac_objext
25780 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25781 (eval $ac_compile) 2>conftest.er1
25783 grep -v '^ *+' conftest.er1 >conftest.err
25785 cat conftest.err >&5
25786 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25787 (exit $ac_status); } &&
25788 { ac_try='test -z "$ac_c_werror_flag"
25789 || test ! -s conftest.err'
25790 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25791 (eval $ac_try) 2>&5
25793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25794 (exit $ac_status); }; } &&
25795 { ac_try='test -s conftest.$ac_objext'
25796 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25797 (eval $ac_try) 2>&5
25799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25800 (exit $ac_status); }; }; then
25801 ac_cv_type_intmax_t=yes
25803 echo "$as_me: failed program was:" >&5
25804 sed 's/^/| /' conftest.$ac_ext >&5
25806 ac_cv_type_intmax_t=no
25808 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25810 echo "$as_me:$LINENO: result: $ac_cv_type_intmax_t" >&5
25811 echo "${ECHO_T}$ac_cv_type_intmax_t" >&6
25812 if test $ac_cv_type_intmax_t = yes; then
25814 cat >>confdefs.h <<_ACEOF
25815 #define HAVE_INTMAX_T 1
25820 echo "$as_me:$LINENO: checking for long double" >&5
25821 echo $ECHO_N "checking for long double... $ECHO_C" >&6
25822 if test "${ac_cv_type_long_double+set}" = set; then
25823 echo $ECHO_N "(cached) $ECHO_C" >&6
25825 cat >conftest.$ac_ext <<_ACEOF
25828 cat confdefs.h >>conftest.$ac_ext
25829 cat >>conftest.$ac_ext <<_ACEOF
25830 /* end confdefs.h. */
25831 $ac_includes_default
25835 if ((long double *) 0)
25837 if (sizeof (long double))
25843 rm -f conftest.$ac_objext
25844 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25845 (eval $ac_compile) 2>conftest.er1
25847 grep -v '^ *+' conftest.er1 >conftest.err
25849 cat conftest.err >&5
25850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25851 (exit $ac_status); } &&
25852 { ac_try='test -z "$ac_c_werror_flag"
25853 || test ! -s conftest.err'
25854 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25855 (eval $ac_try) 2>&5
25857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25858 (exit $ac_status); }; } &&
25859 { ac_try='test -s conftest.$ac_objext'
25860 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25861 (eval $ac_try) 2>&5
25863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25864 (exit $ac_status); }; }; then
25865 ac_cv_type_long_double=yes
25867 echo "$as_me: failed program was:" >&5
25868 sed 's/^/| /' conftest.$ac_ext >&5
25870 ac_cv_type_long_double=no
25872 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25874 echo "$as_me:$LINENO: result: $ac_cv_type_long_double" >&5
25875 echo "${ECHO_T}$ac_cv_type_long_double" >&6
25876 if test $ac_cv_type_long_double = yes; then
25878 cat >>confdefs.h <<_ACEOF
25879 #define HAVE_LONG_DOUBLE 1
25884 echo "$as_me:$LINENO: checking for long long" >&5
25885 echo $ECHO_N "checking for long long... $ECHO_C" >&6
25886 if test "${ac_cv_type_long_long+set}" = set; then
25887 echo $ECHO_N "(cached) $ECHO_C" >&6
25889 cat >conftest.$ac_ext <<_ACEOF
25892 cat confdefs.h >>conftest.$ac_ext
25893 cat >>conftest.$ac_ext <<_ACEOF
25894 /* end confdefs.h. */
25895 $ac_includes_default
25899 if ((long long *) 0)
25901 if (sizeof (long long))
25907 rm -f conftest.$ac_objext
25908 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25909 (eval $ac_compile) 2>conftest.er1
25911 grep -v '^ *+' conftest.er1 >conftest.err
25913 cat conftest.err >&5
25914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25915 (exit $ac_status); } &&
25916 { ac_try='test -z "$ac_c_werror_flag"
25917 || test ! -s conftest.err'
25918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25919 (eval $ac_try) 2>&5
25921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25922 (exit $ac_status); }; } &&
25923 { ac_try='test -s conftest.$ac_objext'
25924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25925 (eval $ac_try) 2>&5
25927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25928 (exit $ac_status); }; }; then
25929 ac_cv_type_long_long=yes
25931 echo "$as_me: failed program was:" >&5
25932 sed 's/^/| /' conftest.$ac_ext >&5
25934 ac_cv_type_long_long=no
25936 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
25938 echo "$as_me:$LINENO: result: $ac_cv_type_long_long" >&5
25939 echo "${ECHO_T}$ac_cv_type_long_long" >&6
25940 if test $ac_cv_type_long_long = yes; then
25942 cat >>confdefs.h <<_ACEOF
25943 #define HAVE_LONG_LONG 1
25948 echo "$as_me:$LINENO: checking for ptrdiff_t" >&5
25949 echo $ECHO_N "checking for ptrdiff_t... $ECHO_C" >&6
25950 if test "${ac_cv_type_ptrdiff_t+set}" = set; then
25951 echo $ECHO_N "(cached) $ECHO_C" >&6
25953 cat >conftest.$ac_ext <<_ACEOF
25956 cat confdefs.h >>conftest.$ac_ext
25957 cat >>conftest.$ac_ext <<_ACEOF
25958 /* end confdefs.h. */
25959 $ac_includes_default
25963 if ((ptrdiff_t *) 0)
25965 if (sizeof (ptrdiff_t))
25971 rm -f conftest.$ac_objext
25972 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
25973 (eval $ac_compile) 2>conftest.er1
25975 grep -v '^ *+' conftest.er1 >conftest.err
25977 cat conftest.err >&5
25978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25979 (exit $ac_status); } &&
25980 { ac_try='test -z "$ac_c_werror_flag"
25981 || test ! -s conftest.err'
25982 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25983 (eval $ac_try) 2>&5
25985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25986 (exit $ac_status); }; } &&
25987 { ac_try='test -s conftest.$ac_objext'
25988 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
25989 (eval $ac_try) 2>&5
25991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25992 (exit $ac_status); }; }; then
25993 ac_cv_type_ptrdiff_t=yes
25995 echo "$as_me: failed program was:" >&5
25996 sed 's/^/| /' conftest.$ac_ext >&5
25998 ac_cv_type_ptrdiff_t=no
26000 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26002 echo "$as_me:$LINENO: result: $ac_cv_type_ptrdiff_t" >&5
26003 echo "${ECHO_T}$ac_cv_type_ptrdiff_t" >&6
26004 if test $ac_cv_type_ptrdiff_t = yes; then
26006 cat >>confdefs.h <<_ACEOF
26007 #define HAVE_PTRDIFF_T 1
26012 echo "$as_me:$LINENO: checking for quad_t" >&5
26013 echo $ECHO_N "checking for quad_t... $ECHO_C" >&6
26014 if test "${ac_cv_type_quad_t+set}" = set; then
26015 echo $ECHO_N "(cached) $ECHO_C" >&6
26017 cat >conftest.$ac_ext <<_ACEOF
26020 cat confdefs.h >>conftest.$ac_ext
26021 cat >>conftest.$ac_ext <<_ACEOF
26022 /* end confdefs.h. */
26023 $ac_includes_default
26029 if (sizeof (quad_t))
26035 rm -f conftest.$ac_objext
26036 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26037 (eval $ac_compile) 2>conftest.er1
26039 grep -v '^ *+' conftest.er1 >conftest.err
26041 cat conftest.err >&5
26042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26043 (exit $ac_status); } &&
26044 { ac_try='test -z "$ac_c_werror_flag"
26045 || test ! -s conftest.err'
26046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26047 (eval $ac_try) 2>&5
26049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26050 (exit $ac_status); }; } &&
26051 { ac_try='test -s conftest.$ac_objext'
26052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26053 (eval $ac_try) 2>&5
26055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26056 (exit $ac_status); }; }; then
26057 ac_cv_type_quad_t=yes
26059 echo "$as_me: failed program was:" >&5
26060 sed 's/^/| /' conftest.$ac_ext >&5
26062 ac_cv_type_quad_t=no
26064 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26066 echo "$as_me:$LINENO: result: $ac_cv_type_quad_t" >&5
26067 echo "${ECHO_T}$ac_cv_type_quad_t" >&6
26068 if test $ac_cv_type_quad_t = yes; then
26070 cat >>confdefs.h <<_ACEOF
26071 #define HAVE_QUAD_T 1
26076 echo "$as_me:$LINENO: checking for uint_least32_t" >&5
26077 echo $ECHO_N "checking for uint_least32_t... $ECHO_C" >&6
26078 if test "${ac_cv_type_uint_least32_t+set}" = set; then
26079 echo $ECHO_N "(cached) $ECHO_C" >&6
26081 cat >conftest.$ac_ext <<_ACEOF
26084 cat confdefs.h >>conftest.$ac_ext
26085 cat >>conftest.$ac_ext <<_ACEOF
26086 /* end confdefs.h. */
26087 $ac_includes_default
26091 if ((uint_least32_t *) 0)
26093 if (sizeof (uint_least32_t))
26099 rm -f conftest.$ac_objext
26100 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26101 (eval $ac_compile) 2>conftest.er1
26103 grep -v '^ *+' conftest.er1 >conftest.err
26105 cat conftest.err >&5
26106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26107 (exit $ac_status); } &&
26108 { ac_try='test -z "$ac_c_werror_flag"
26109 || test ! -s conftest.err'
26110 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26111 (eval $ac_try) 2>&5
26113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26114 (exit $ac_status); }; } &&
26115 { ac_try='test -s conftest.$ac_objext'
26116 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26117 (eval $ac_try) 2>&5
26119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26120 (exit $ac_status); }; }; then
26121 ac_cv_type_uint_least32_t=yes
26123 echo "$as_me: failed program was:" >&5
26124 sed 's/^/| /' conftest.$ac_ext >&5
26126 ac_cv_type_uint_least32_t=no
26128 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26130 echo "$as_me:$LINENO: result: $ac_cv_type_uint_least32_t" >&5
26131 echo "${ECHO_T}$ac_cv_type_uint_least32_t" >&6
26132 if test $ac_cv_type_uint_least32_t = yes; then
26134 cat >>confdefs.h <<_ACEOF
26135 #define HAVE_UINT_LEAST32_T 1
26142 echo "$as_me:$LINENO: checking for preprocessor stringizing operator" >&5
26143 echo $ECHO_N "checking for preprocessor stringizing operator... $ECHO_C" >&6
26144 if test "${ac_cv_c_stringize+set}" = set; then
26145 echo $ECHO_N "(cached) $ECHO_C" >&6
26147 cat >conftest.$ac_ext <<_ACEOF
26150 cat confdefs.h >>conftest.$ac_ext
26151 cat >>conftest.$ac_ext <<_ACEOF
26152 /* end confdefs.h. */
26155 char *s = x(teststring);
26157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
26158 $EGREP "#teststring" >/dev/null 2>&1; then
26159 ac_cv_c_stringize=no
26161 ac_cv_c_stringize=yes
26166 echo "$as_me:$LINENO: result: $ac_cv_c_stringize" >&5
26167 echo "${ECHO_T}$ac_cv_c_stringize" >&6
26168 if test $ac_cv_c_stringize = yes; then
26170 cat >>confdefs.h <<\_ACEOF
26171 #define HAVE_STRINGIZE 1
26177 # FIXME: Really want #ifndef __cplusplus around the #define volatile
26178 # replacement autoconf gives, since volatile is always available in C++.
26179 # But we don't use it in C++ currently.
26180 echo "$as_me:$LINENO: checking for working volatile" >&5
26181 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6
26182 if test "${ac_cv_c_volatile+set}" = set; then
26183 echo $ECHO_N "(cached) $ECHO_C" >&6
26185 cat >conftest.$ac_ext <<_ACEOF
26188 cat confdefs.h >>conftest.$ac_ext
26189 cat >>conftest.$ac_ext <<_ACEOF
26190 /* end confdefs.h. */
26202 rm -f conftest.$ac_objext
26203 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26204 (eval $ac_compile) 2>conftest.er1
26206 grep -v '^ *+' conftest.er1 >conftest.err
26208 cat conftest.err >&5
26209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26210 (exit $ac_status); } &&
26211 { ac_try='test -z "$ac_c_werror_flag"
26212 || test ! -s conftest.err'
26213 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26214 (eval $ac_try) 2>&5
26216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26217 (exit $ac_status); }; } &&
26218 { ac_try='test -s conftest.$ac_objext'
26219 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26220 (eval $ac_try) 2>&5
26222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26223 (exit $ac_status); }; }; then
26224 ac_cv_c_volatile=yes
26226 echo "$as_me: failed program was:" >&5
26227 sed 's/^/| /' conftest.$ac_ext >&5
26229 ac_cv_c_volatile=no
26231 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26233 echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
26234 echo "${ECHO_T}$ac_cv_c_volatile" >&6
26235 if test $ac_cv_c_volatile = no; then
26237 cat >>confdefs.h <<\_ACEOF
26246 echo "$as_me:$LINENO: checking whether <stdarg.h> exists and works" >&5
26247 echo $ECHO_N "checking whether <stdarg.h> exists and works... $ECHO_C" >&6
26248 if test "${gmp_cv_c_stdarg+set}" = set; then
26249 echo $ECHO_N "(cached) $ECHO_C" >&6
26251 cat >conftest.$ac_ext <<_ACEOF
26254 cat confdefs.h >>conftest.$ac_ext
26255 cat >>conftest.$ac_ext <<_ACEOF
26256 /* end confdefs.h. */
26257 #include <stdarg.h>
26258 int foo (int x, ...)
26263 y = va_arg (ap, int);
26275 rm -f conftest.$ac_objext
26276 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26277 (eval $ac_compile) 2>conftest.er1
26279 grep -v '^ *+' conftest.er1 >conftest.err
26281 cat conftest.err >&5
26282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26283 (exit $ac_status); } &&
26284 { ac_try='test -z "$ac_c_werror_flag"
26285 || test ! -s conftest.err'
26286 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26287 (eval $ac_try) 2>&5
26289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26290 (exit $ac_status); }; } &&
26291 { ac_try='test -s conftest.$ac_objext'
26292 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26293 (eval $ac_try) 2>&5
26295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26296 (exit $ac_status); }; }; then
26297 gmp_cv_c_stdarg=yes
26299 echo "$as_me: failed program was:" >&5
26300 sed 's/^/| /' conftest.$ac_ext >&5
26304 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26307 echo "$as_me:$LINENO: result: $gmp_cv_c_stdarg" >&5
26308 echo "${ECHO_T}$gmp_cv_c_stdarg" >&6
26309 if test $gmp_cv_c_stdarg = yes; then
26311 cat >>confdefs.h <<\_ACEOF
26312 #define HAVE_STDARG 1
26317 echo "$as_me:$LINENO: checking whether gcc __attribute__ ((const)) works" >&5
26318 echo $ECHO_N "checking whether gcc __attribute__ ((const)) works... $ECHO_C" >&6
26319 if test "${gmp_cv_c_attribute_const+set}" = set; then
26320 echo $ECHO_N "(cached) $ECHO_C" >&6
26322 cat >conftest.$ac_ext <<_ACEOF
26325 cat confdefs.h >>conftest.$ac_ext
26326 cat >>conftest.$ac_ext <<_ACEOF
26327 /* end confdefs.h. */
26328 int foo (int x) __attribute__ ((const));
26337 rm -f conftest.$ac_objext
26338 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26339 (eval $ac_compile) 2>conftest.er1
26341 grep -v '^ *+' conftest.er1 >conftest.err
26343 cat conftest.err >&5
26344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26345 (exit $ac_status); } &&
26346 { ac_try='test -z "$ac_c_werror_flag"
26347 || test ! -s conftest.err'
26348 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26349 (eval $ac_try) 2>&5
26351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26352 (exit $ac_status); }; } &&
26353 { ac_try='test -s conftest.$ac_objext'
26354 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26355 (eval $ac_try) 2>&5
26357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26358 (exit $ac_status); }; }; then
26359 gmp_cv_c_attribute_const=yes
26361 echo "$as_me: failed program was:" >&5
26362 sed 's/^/| /' conftest.$ac_ext >&5
26364 gmp_cv_c_attribute_const=no
26366 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26369 echo "$as_me:$LINENO: result: $gmp_cv_c_attribute_const" >&5
26370 echo "${ECHO_T}$gmp_cv_c_attribute_const" >&6
26371 if test $gmp_cv_c_attribute_const = yes; then
26373 cat >>confdefs.h <<\_ACEOF
26374 #define HAVE_ATTRIBUTE_CONST 1
26379 echo "$as_me:$LINENO: checking whether gcc __attribute__ ((malloc)) works" >&5
26380 echo $ECHO_N "checking whether gcc __attribute__ ((malloc)) works... $ECHO_C" >&6
26381 if test "${gmp_cv_c_attribute_malloc+set}" = set; then
26382 echo $ECHO_N "(cached) $ECHO_C" >&6
26384 cat >conftest.c <<EOF
26385 void *foo (int x) __attribute__ ((malloc));
26387 gmp_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >conftest.out 2>&1"
26388 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
26389 (eval $gmp_compile) 2>&5
26391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26392 (exit $ac_status); }; then
26393 if grep "attribute directive ignored" conftest.out >/dev/null; then
26394 gmp_cv_c_attribute_malloc=no
26396 gmp_cv_c_attribute_malloc=yes
26399 gmp_cv_c_attribute_malloc=no
26401 cat conftest.out >&5
26405 echo "$as_me:$LINENO: result: $gmp_cv_c_attribute_malloc" >&5
26406 echo "${ECHO_T}$gmp_cv_c_attribute_malloc" >&6
26407 if test $gmp_cv_c_attribute_malloc = yes; then
26409 cat >>confdefs.h <<\_ACEOF
26410 #define HAVE_ATTRIBUTE_MALLOC 1
26415 echo "$as_me:$LINENO: checking whether gcc __attribute__ ((mode (XX))) works" >&5
26416 echo $ECHO_N "checking whether gcc __attribute__ ((mode (XX))) works... $ECHO_C" >&6
26417 if test "${gmp_cv_c_attribute_mode+set}" = set; then
26418 echo $ECHO_N "(cached) $ECHO_C" >&6
26420 cat >conftest.$ac_ext <<_ACEOF
26423 cat confdefs.h >>conftest.$ac_ext
26424 cat >>conftest.$ac_ext <<_ACEOF
26425 /* end confdefs.h. */
26426 typedef int SItype __attribute__ ((mode (SI)));
26435 rm -f conftest.$ac_objext
26436 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26437 (eval $ac_compile) 2>conftest.er1
26439 grep -v '^ *+' conftest.er1 >conftest.err
26441 cat conftest.err >&5
26442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26443 (exit $ac_status); } &&
26444 { ac_try='test -z "$ac_c_werror_flag"
26445 || test ! -s conftest.err'
26446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26447 (eval $ac_try) 2>&5
26449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26450 (exit $ac_status); }; } &&
26451 { ac_try='test -s conftest.$ac_objext'
26452 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26453 (eval $ac_try) 2>&5
26455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26456 (exit $ac_status); }; }; then
26457 gmp_cv_c_attribute_mode=yes
26459 echo "$as_me: failed program was:" >&5
26460 sed 's/^/| /' conftest.$ac_ext >&5
26462 gmp_cv_c_attribute_mode=no
26464 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26467 echo "$as_me:$LINENO: result: $gmp_cv_c_attribute_mode" >&5
26468 echo "${ECHO_T}$gmp_cv_c_attribute_mode" >&6
26469 if test $gmp_cv_c_attribute_mode = yes; then
26471 cat >>confdefs.h <<\_ACEOF
26472 #define HAVE_ATTRIBUTE_MODE 1
26477 echo "$as_me:$LINENO: checking whether gcc __attribute__ ((noreturn)) works" >&5
26478 echo $ECHO_N "checking whether gcc __attribute__ ((noreturn)) works... $ECHO_C" >&6
26479 if test "${gmp_cv_c_attribute_noreturn+set}" = set; then
26480 echo $ECHO_N "(cached) $ECHO_C" >&6
26482 cat >conftest.$ac_ext <<_ACEOF
26485 cat confdefs.h >>conftest.$ac_ext
26486 cat >>conftest.$ac_ext <<_ACEOF
26487 /* end confdefs.h. */
26488 void foo (int x) __attribute__ ((noreturn));
26497 rm -f conftest.$ac_objext
26498 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26499 (eval $ac_compile) 2>conftest.er1
26501 grep -v '^ *+' conftest.er1 >conftest.err
26503 cat conftest.err >&5
26504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26505 (exit $ac_status); } &&
26506 { ac_try='test -z "$ac_c_werror_flag"
26507 || test ! -s conftest.err'
26508 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26509 (eval $ac_try) 2>&5
26511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26512 (exit $ac_status); }; } &&
26513 { ac_try='test -s conftest.$ac_objext'
26514 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26515 (eval $ac_try) 2>&5
26517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26518 (exit $ac_status); }; }; then
26519 gmp_cv_c_attribute_noreturn=yes
26521 echo "$as_me: failed program was:" >&5
26522 sed 's/^/| /' conftest.$ac_ext >&5
26524 gmp_cv_c_attribute_noreturn=no
26526 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26529 echo "$as_me:$LINENO: result: $gmp_cv_c_attribute_noreturn" >&5
26530 echo "${ECHO_T}$gmp_cv_c_attribute_noreturn" >&6
26531 if test $gmp_cv_c_attribute_noreturn = yes; then
26533 cat >>confdefs.h <<\_ACEOF
26534 #define HAVE_ATTRIBUTE_NORETURN 1
26540 echo "$as_me:$LINENO: checking for inline" >&5
26541 echo $ECHO_N "checking for inline... $ECHO_C" >&6
26542 if test "${ac_cv_c_inline+set}" = set; then
26543 echo $ECHO_N "(cached) $ECHO_C" >&6
26546 for ac_kw in inline __inline__ __inline; do
26547 cat >conftest.$ac_ext <<_ACEOF
26550 cat confdefs.h >>conftest.$ac_ext
26551 cat >>conftest.$ac_ext <<_ACEOF
26552 /* end confdefs.h. */
26553 #ifndef __cplusplus
26555 static $ac_kw foo_t static_foo () {return 0; }
26556 $ac_kw foo_t foo () {return 0; }
26560 rm -f conftest.$ac_objext
26561 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26562 (eval $ac_compile) 2>conftest.er1
26564 grep -v '^ *+' conftest.er1 >conftest.err
26566 cat conftest.err >&5
26567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26568 (exit $ac_status); } &&
26569 { ac_try='test -z "$ac_c_werror_flag"
26570 || test ! -s conftest.err'
26571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26572 (eval $ac_try) 2>&5
26574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26575 (exit $ac_status); }; } &&
26576 { ac_try='test -s conftest.$ac_objext'
26577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26578 (eval $ac_try) 2>&5
26580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26581 (exit $ac_status); }; }; then
26582 ac_cv_c_inline=$ac_kw; break
26584 echo "$as_me: failed program was:" >&5
26585 sed 's/^/| /' conftest.$ac_ext >&5
26588 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26592 echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5
26593 echo "${ECHO_T}$ac_cv_c_inline" >&6
26596 case $ac_cv_c_inline in
26599 case $ac_cv_c_inline in
26601 *) ac_val=$ac_cv_c_inline;;
26603 cat >>confdefs.h <<_ACEOF
26604 #ifndef __cplusplus
26605 #define inline $ac_val
26612 case $ac_cv_c_inline in
26615 cat >conftest.$ac_ext <<_ACEOF
26618 cat confdefs.h >>conftest.$ac_ext
26619 cat >>conftest.$ac_ext <<_ACEOF
26620 /* end confdefs.h. */
26621 #define __GMP_WITHIN_CONFIGURE_INLINE 1
26622 #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
26623 #define GMP_NAIL_BITS $GMP_NAIL_BITS
26624 #define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */
26625 #define GMP_LIMB_BITS 123
26626 $DEFN_LONG_LONG_LIMB
26627 #include "$srcdir/gmp-h.in"
26629 #ifndef __GMP_EXTERN_INLINE
26641 rm -f conftest.$ac_objext
26642 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
26643 (eval $ac_compile) 2>conftest.er1
26645 grep -v '^ *+' conftest.er1 >conftest.err
26647 cat conftest.err >&5
26648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26649 (exit $ac_status); } &&
26650 { ac_try='test -z "$ac_c_werror_flag"
26651 || test ! -s conftest.err'
26652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26653 (eval $ac_try) 2>&5
26655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26656 (exit $ac_status); }; } &&
26657 { ac_try='test -s conftest.$ac_objext'
26658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26659 (eval $ac_try) 2>&5
26661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26662 (exit $ac_status); }; }; then
26665 echo "$as_me: failed program was:" >&5
26666 sed 's/^/| /' conftest.$ac_ext >&5
26668 case $ac_cv_c_inline in
26669 yes) tmp_inline=inline ;;
26670 *) tmp_inline=$ac_cv_c_inline ;;
26672 { echo "$as_me:$LINENO: WARNING: gmp.h doesnt recognise compiler \"$tmp_inline\", inlines will be unavailable" >&5
26673 echo "$as_me: WARNING: gmp.h doesnt recognise compiler \"$tmp_inline\", inlines will be unavailable" >&2;}
26675 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
26683 *-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
26684 # These system don't have libm, or don't need it
26687 echo "$as_me:$LINENO: checking for _mwvalidcheckl in -lmw" >&5
26688 echo $ECHO_N "checking for _mwvalidcheckl in -lmw... $ECHO_C" >&6
26689 if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then
26690 echo $ECHO_N "(cached) $ECHO_C" >&6
26692 ac_check_lib_save_LIBS=$LIBS
26694 cat >conftest.$ac_ext <<_ACEOF
26697 cat confdefs.h >>conftest.$ac_ext
26698 cat >>conftest.$ac_ext <<_ACEOF
26699 /* end confdefs.h. */
26701 /* Override any gcc2 internal prototype to avoid an error. */
26705 /* We use char because int might match the return type of a gcc2
26706 builtin and then its argument prototype would still apply. */
26707 char _mwvalidcheckl ();
26716 rm -f conftest.$ac_objext conftest$ac_exeext
26717 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26718 (eval $ac_link) 2>conftest.er1
26720 grep -v '^ *+' conftest.er1 >conftest.err
26722 cat conftest.err >&5
26723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26724 (exit $ac_status); } &&
26725 { ac_try='test -z "$ac_c_werror_flag"
26726 || test ! -s conftest.err'
26727 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26728 (eval $ac_try) 2>&5
26730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26731 (exit $ac_status); }; } &&
26732 { ac_try='test -s conftest$ac_exeext'
26733 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26734 (eval $ac_try) 2>&5
26736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26737 (exit $ac_status); }; }; then
26738 ac_cv_lib_mw__mwvalidcheckl=yes
26740 echo "$as_me: failed program was:" >&5
26741 sed 's/^/| /' conftest.$ac_ext >&5
26743 ac_cv_lib_mw__mwvalidcheckl=no
26745 rm -f conftest.err conftest.$ac_objext \
26746 conftest$ac_exeext conftest.$ac_ext
26747 LIBS=$ac_check_lib_save_LIBS
26749 echo "$as_me:$LINENO: result: $ac_cv_lib_mw__mwvalidcheckl" >&5
26750 echo "${ECHO_T}$ac_cv_lib_mw__mwvalidcheckl" >&6
26751 if test $ac_cv_lib_mw__mwvalidcheckl = yes; then
26755 echo "$as_me:$LINENO: checking for cos in -lm" >&5
26756 echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
26757 if test "${ac_cv_lib_m_cos+set}" = set; then
26758 echo $ECHO_N "(cached) $ECHO_C" >&6
26760 ac_check_lib_save_LIBS=$LIBS
26762 cat >conftest.$ac_ext <<_ACEOF
26765 cat confdefs.h >>conftest.$ac_ext
26766 cat >>conftest.$ac_ext <<_ACEOF
26767 /* end confdefs.h. */
26769 /* Override any gcc2 internal prototype to avoid an error. */
26773 /* We use char because int might match the return type of a gcc2
26774 builtin and then its argument prototype would still apply. */
26784 rm -f conftest.$ac_objext conftest$ac_exeext
26785 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26786 (eval $ac_link) 2>conftest.er1
26788 grep -v '^ *+' conftest.er1 >conftest.err
26790 cat conftest.err >&5
26791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26792 (exit $ac_status); } &&
26793 { ac_try='test -z "$ac_c_werror_flag"
26794 || test ! -s conftest.err'
26795 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26796 (eval $ac_try) 2>&5
26798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26799 (exit $ac_status); }; } &&
26800 { ac_try='test -s conftest$ac_exeext'
26801 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26802 (eval $ac_try) 2>&5
26804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26805 (exit $ac_status); }; }; then
26806 ac_cv_lib_m_cos=yes
26808 echo "$as_me: failed program was:" >&5
26809 sed 's/^/| /' conftest.$ac_ext >&5
26813 rm -f conftest.err conftest.$ac_objext \
26814 conftest$ac_exeext conftest.$ac_ext
26815 LIBS=$ac_check_lib_save_LIBS
26817 echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
26818 echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
26819 if test $ac_cv_lib_m_cos = yes; then
26825 echo "$as_me:$LINENO: checking for cos in -lm" >&5
26826 echo $ECHO_N "checking for cos in -lm... $ECHO_C" >&6
26827 if test "${ac_cv_lib_m_cos+set}" = set; then
26828 echo $ECHO_N "(cached) $ECHO_C" >&6
26830 ac_check_lib_save_LIBS=$LIBS
26832 cat >conftest.$ac_ext <<_ACEOF
26835 cat confdefs.h >>conftest.$ac_ext
26836 cat >>conftest.$ac_ext <<_ACEOF
26837 /* end confdefs.h. */
26839 /* Override any gcc2 internal prototype to avoid an error. */
26843 /* We use char because int might match the return type of a gcc2
26844 builtin and then its argument prototype would still apply. */
26854 rm -f conftest.$ac_objext conftest$ac_exeext
26855 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26856 (eval $ac_link) 2>conftest.er1
26858 grep -v '^ *+' conftest.er1 >conftest.err
26860 cat conftest.err >&5
26861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26862 (exit $ac_status); } &&
26863 { ac_try='test -z "$ac_c_werror_flag"
26864 || test ! -s conftest.err'
26865 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26866 (eval $ac_try) 2>&5
26868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26869 (exit $ac_status); }; } &&
26870 { ac_try='test -s conftest$ac_exeext'
26871 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26872 (eval $ac_try) 2>&5
26874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26875 (exit $ac_status); }; }; then
26876 ac_cv_lib_m_cos=yes
26878 echo "$as_me: failed program was:" >&5
26879 sed 's/^/| /' conftest.$ac_ext >&5
26883 rm -f conftest.err conftest.$ac_objext \
26884 conftest$ac_exeext conftest.$ac_ext
26885 LIBS=$ac_check_lib_save_LIBS
26887 echo "$as_me:$LINENO: result: $ac_cv_lib_m_cos" >&5
26888 echo "${ECHO_T}$ac_cv_lib_m_cos" >&6
26889 if test $ac_cv_lib_m_cos = yes; then
26898 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
26899 # for constant arguments. Useless!
26900 echo "$as_me:$LINENO: checking for working alloca.h" >&5
26901 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6
26902 if test "${gmp_cv_header_alloca+set}" = set; then
26903 echo $ECHO_N "(cached) $ECHO_C" >&6
26905 cat >conftest.$ac_ext <<_ACEOF
26908 cat confdefs.h >>conftest.$ac_ext
26909 cat >>conftest.$ac_ext <<_ACEOF
26910 /* end confdefs.h. */
26911 #include <alloca.h>
26915 char *p = (char *) alloca (2 * sizeof (int));
26920 rm -f conftest.$ac_objext conftest$ac_exeext
26921 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26922 (eval $ac_link) 2>conftest.er1
26924 grep -v '^ *+' conftest.er1 >conftest.err
26926 cat conftest.err >&5
26927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26928 (exit $ac_status); } &&
26929 { ac_try='test -z "$ac_c_werror_flag"
26930 || test ! -s conftest.err'
26931 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26932 (eval $ac_try) 2>&5
26934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26935 (exit $ac_status); }; } &&
26936 { ac_try='test -s conftest$ac_exeext'
26937 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
26938 (eval $ac_try) 2>&5
26940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26941 (exit $ac_status); }; }; then
26942 gmp_cv_header_alloca=yes
26944 echo "$as_me: failed program was:" >&5
26945 sed 's/^/| /' conftest.$ac_ext >&5
26947 gmp_cv_header_alloca=no
26949 rm -f conftest.err conftest.$ac_objext \
26950 conftest$ac_exeext conftest.$ac_ext
26952 echo "$as_me:$LINENO: result: $gmp_cv_header_alloca" >&5
26953 echo "${ECHO_T}$gmp_cv_header_alloca" >&6
26954 if test $gmp_cv_header_alloca = yes; then
26956 cat >>confdefs.h <<\_ACEOF
26957 #define HAVE_ALLOCA_H 1
26963 echo "$as_me:$LINENO: checking for alloca (via gmp-impl.h)" >&5
26964 echo $ECHO_N "checking for alloca (via gmp-impl.h)... $ECHO_C" >&6
26965 if test "${gmp_cv_func_alloca+set}" = set; then
26966 echo $ECHO_N "(cached) $ECHO_C" >&6
26968 cat >conftest.$ac_ext <<_ACEOF
26971 cat confdefs.h >>conftest.$ac_ext
26972 cat >>conftest.$ac_ext <<_ACEOF
26973 /* end confdefs.h. */
26974 #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
26975 #define GMP_NAIL_BITS $GMP_NAIL_BITS
26976 #define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */
26977 #define GMP_LIMB_BITS 123
26978 $DEFN_LONG_LONG_LIMB
26979 #include "$srcdir/gmp-h.in"
26981 #include "$srcdir/gmp-impl.h"
26986 char *p = (char *) alloca (1);
26991 rm -f conftest.$ac_objext conftest$ac_exeext
26992 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
26993 (eval $ac_link) 2>conftest.er1
26995 grep -v '^ *+' conftest.er1 >conftest.err
26997 cat conftest.err >&5
26998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
26999 (exit $ac_status); } &&
27000 { ac_try='test -z "$ac_c_werror_flag"
27001 || test ! -s conftest.err'
27002 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27003 (eval $ac_try) 2>&5
27005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27006 (exit $ac_status); }; } &&
27007 { ac_try='test -s conftest$ac_exeext'
27008 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27009 (eval $ac_try) 2>&5
27011 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27012 (exit $ac_status); }; }; then
27013 gmp_cv_func_alloca=yes
27015 echo "$as_me: failed program was:" >&5
27016 sed 's/^/| /' conftest.$ac_ext >&5
27018 gmp_cv_func_alloca=no
27020 rm -f conftest.err conftest.$ac_objext \
27021 conftest$ac_exeext conftest.$ac_ext
27023 echo "$as_me:$LINENO: result: $gmp_cv_func_alloca" >&5
27024 echo "${ECHO_T}$gmp_cv_func_alloca" >&6
27025 if test $gmp_cv_func_alloca = yes; then
27027 cat >>confdefs.h <<\_ACEOF
27028 #define HAVE_ALLOCA 1
27034 echo "$as_me:$LINENO: checking how to allocate temporary memory" >&5
27035 echo $ECHO_N "checking how to allocate temporary memory... $ECHO_C" >&6
27036 if test "${gmp_cv_option_alloca+set}" = set; then
27037 echo $ECHO_N "(cached) $ECHO_C" >&6
27039 case $enable_alloca in
27041 gmp_cv_option_alloca=alloca
27044 gmp_cv_option_alloca=malloc-reentrant
27046 reentrant | notreentrant)
27047 case $gmp_cv_func_alloca in
27048 yes) gmp_cv_option_alloca=alloca ;;
27049 *) gmp_cv_option_alloca=malloc-$enable_alloca ;;
27053 gmp_cv_option_alloca=$enable_alloca
27058 echo "$as_me:$LINENO: result: $gmp_cv_option_alloca" >&5
27059 echo "${ECHO_T}$gmp_cv_option_alloca" >&6
27064 case $gmp_cv_option_alloca in
27066 if test $gmp_cv_func_alloca = no; then
27067 { { echo "$as_me:$LINENO: error: --enable-alloca=alloca specified, but alloca not available" >&5
27068 echo "$as_me: error: --enable-alloca=alloca specified, but alloca not available" >&2;}
27069 { (exit 1); exit 1; }; }
27071 cat >>confdefs.h <<\_ACEOF
27072 #define WANT_TMP_ALLOCA 1
27075 TAL_OBJECT=tal-reent$U.lo
27078 cat >>confdefs.h <<\_ACEOF
27079 #define WANT_TMP_REENTRANT 1
27082 TAL_OBJECT=tal-reent$U.lo
27084 malloc-notreentrant)
27085 cat >>confdefs.h <<\_ACEOF
27086 #define WANT_TMP_NOTREENTRANT 1
27089 TAL_OBJECT=tal-notreent$U.lo
27092 cat >>confdefs.h <<\_ACEOF
27093 #define WANT_TMP_DEBUG 1
27096 TAL_OBJECT=tal-debug$U.lo
27099 # checks at the start of configure.in should protect us
27100 { { echo "$as_me:$LINENO: error: unrecognised --enable-alloca=$gmp_cv_option_alloca" >&5
27101 echo "$as_me: error: unrecognised --enable-alloca=$gmp_cv_option_alloca" >&2;}
27102 { (exit 1); exit 1; }; }
27108 cat >conftest.$ac_ext <<_ACEOF
27111 cat confdefs.h >>conftest.$ac_ext
27112 cat >>conftest.$ac_ext <<_ACEOF
27113 /* end confdefs.h. */
27115 #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
27116 #define GMP_NAIL_BITS $GMP_NAIL_BITS
27117 #define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */
27118 #define GMP_LIMB_BITS 123
27119 $DEFN_LONG_LONG_LIMB
27120 #include "$srcdir/gmp-h.in"
27122 #if ! _GMP_H_HAVE_FILE
27134 rm -f conftest.$ac_objext
27135 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27136 (eval $ac_compile) 2>conftest.er1
27138 grep -v '^ *+' conftest.er1 >conftest.err
27140 cat conftest.err >&5
27141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27142 (exit $ac_status); } &&
27143 { ac_try='test -z "$ac_c_werror_flag"
27144 || test ! -s conftest.err'
27145 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27146 (eval $ac_try) 2>&5
27148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27149 (exit $ac_status); }; } &&
27150 { ac_try='test -s conftest.$ac_objext'
27151 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27152 (eval $ac_try) 2>&5
27154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27155 (exit $ac_status); }; }; then
27158 echo "$as_me: failed program was:" >&5
27159 sed 's/^/| /' conftest.$ac_ext >&5
27161 { echo "$as_me:$LINENO: WARNING: gmp.h doesnt recognise <stdio.h>, FILE prototypes will be unavailable" >&5
27162 echo "$as_me: WARNING: gmp.h doesnt recognise <stdio.h>, FILE prototypes will be unavailable" >&2;}
27164 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27167 echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
27168 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6
27169 if test "${ac_cv_c_bigendian+set}" = set; then
27170 echo $ECHO_N "(cached) $ECHO_C" >&6
27172 # See if sys/param.h defines the BYTE_ORDER macro.
27173 cat >conftest.$ac_ext <<_ACEOF
27176 cat confdefs.h >>conftest.$ac_ext
27177 cat >>conftest.$ac_ext <<_ACEOF
27178 /* end confdefs.h. */
27179 #include <sys/types.h>
27180 #include <sys/param.h>
27185 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
27186 bogus endian macros
27193 rm -f conftest.$ac_objext
27194 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27195 (eval $ac_compile) 2>conftest.er1
27197 grep -v '^ *+' conftest.er1 >conftest.err
27199 cat conftest.err >&5
27200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27201 (exit $ac_status); } &&
27202 { ac_try='test -z "$ac_c_werror_flag"
27203 || test ! -s conftest.err'
27204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27205 (eval $ac_try) 2>&5
27207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27208 (exit $ac_status); }; } &&
27209 { ac_try='test -s conftest.$ac_objext'
27210 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27211 (eval $ac_try) 2>&5
27213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27214 (exit $ac_status); }; }; then
27215 # It does; now see whether it defined to BIG_ENDIAN or not.
27216 cat >conftest.$ac_ext <<_ACEOF
27219 cat confdefs.h >>conftest.$ac_ext
27220 cat >>conftest.$ac_ext <<_ACEOF
27221 /* end confdefs.h. */
27222 #include <sys/types.h>
27223 #include <sys/param.h>
27228 #if BYTE_ORDER != BIG_ENDIAN
27236 rm -f conftest.$ac_objext
27237 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27238 (eval $ac_compile) 2>conftest.er1
27240 grep -v '^ *+' conftest.er1 >conftest.err
27242 cat conftest.err >&5
27243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27244 (exit $ac_status); } &&
27245 { ac_try='test -z "$ac_c_werror_flag"
27246 || test ! -s conftest.err'
27247 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27248 (eval $ac_try) 2>&5
27250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27251 (exit $ac_status); }; } &&
27252 { ac_try='test -s conftest.$ac_objext'
27253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27254 (eval $ac_try) 2>&5
27256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27257 (exit $ac_status); }; }; then
27258 ac_cv_c_bigendian=yes
27260 echo "$as_me: failed program was:" >&5
27261 sed 's/^/| /' conftest.$ac_ext >&5
27263 ac_cv_c_bigendian=no
27265 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27267 echo "$as_me: failed program was:" >&5
27268 sed 's/^/| /' conftest.$ac_ext >&5
27270 # It does not; compile a test program.
27271 if test "$cross_compiling" = yes; then
27272 # try to guess the endianness by grepping values into an object file
27273 ac_cv_c_bigendian=unknown
27274 cat >conftest.$ac_ext <<_ACEOF
27277 cat confdefs.h >>conftest.$ac_ext
27278 cat >>conftest.$ac_ext <<_ACEOF
27279 /* end confdefs.h. */
27280 short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
27281 short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
27282 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
27283 short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
27284 short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
27285 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
27289 _ascii (); _ebcdic ();
27294 rm -f conftest.$ac_objext
27295 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
27296 (eval $ac_compile) 2>conftest.er1
27298 grep -v '^ *+' conftest.er1 >conftest.err
27300 cat conftest.err >&5
27301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27302 (exit $ac_status); } &&
27303 { ac_try='test -z "$ac_c_werror_flag"
27304 || test ! -s conftest.err'
27305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27306 (eval $ac_try) 2>&5
27308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27309 (exit $ac_status); }; } &&
27310 { ac_try='test -s conftest.$ac_objext'
27311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27312 (eval $ac_try) 2>&5
27314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27315 (exit $ac_status); }; }; then
27316 if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
27317 ac_cv_c_bigendian=yes
27319 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
27320 if test "$ac_cv_c_bigendian" = unknown; then
27321 ac_cv_c_bigendian=no
27323 # finding both strings is unlikely to happen, but who knows?
27324 ac_cv_c_bigendian=unknown
27328 echo "$as_me: failed program was:" >&5
27329 sed 's/^/| /' conftest.$ac_ext >&5
27332 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27334 cat >conftest.$ac_ext <<_ACEOF
27337 cat confdefs.h >>conftest.$ac_ext
27338 cat >>conftest.$ac_ext <<_ACEOF
27339 /* end confdefs.h. */
27343 /* Are we little or big endian? From Harbison&Steele. */
27347 char c[sizeof (long)];
27350 exit (u.c[sizeof (long) - 1] == 1);
27353 rm -f conftest$ac_exeext
27354 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27355 (eval $ac_link) 2>&5
27357 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27358 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27359 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27360 (eval $ac_try) 2>&5
27362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27363 (exit $ac_status); }; }; then
27364 ac_cv_c_bigendian=no
27366 echo "$as_me: program exited with status $ac_status" >&5
27367 echo "$as_me: failed program was:" >&5
27368 sed 's/^/| /' conftest.$ac_ext >&5
27370 ( exit $ac_status )
27371 ac_cv_c_bigendian=yes
27373 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
27376 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
27378 echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
27379 echo "${ECHO_T}$ac_cv_c_bigendian" >&6
27380 case $ac_cv_c_bigendian in
27382 cat >>confdefs.h <<\_ACEOF
27383 #define HAVE_LIMB_BIG_ENDIAN 1
27387 echo "define_not_for_expansion(\`HAVE_LIMB_BIG_ENDIAN')" >> $gmp_tmpconfigm4p
27390 cat >>confdefs.h <<\_ACEOF
27391 #define HAVE_LIMB_LITTLE_ENDIAN 1
27395 echo "define_not_for_expansion(\`HAVE_LIMB_LITTLE_ENDIAN')" >> $gmp_tmpconfigm4p
27407 echo "$as_me:$LINENO: checking format of \`double' floating point" >&5
27408 echo $ECHO_N "checking format of \`double' floating point... $ECHO_C" >&6
27409 if test "${gmp_cv_c_double_format+set}" = set; then
27410 echo $ECHO_N "(cached) $ECHO_C" >&6
27412 gmp_cv_c_double_format=unknown
27413 cat >conftest.c <<\EOF
27419 { '\001', '\043', '\105', '\147', '\211', '\253', '\315', '\357' },
27421 { '\376', '\334', '\272', '\230', '\166', '\124', '\062', '\020' },
27424 gmp_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >&5 2>&1"
27425 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
27426 (eval $gmp_compile) 2>&5
27428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27429 (exit $ac_status); }; then
27430 cat >conftest.awk <<\EOF
27437 for (f = 2; f <= NF; f++)
27439 for (i = 0; i < 23; i++)
27443 # match the special begin and end sequences
27444 if (got[0] != "001") continue
27445 if (got[1] != "043") continue
27446 if (got[2] != "105") continue
27447 if (got[3] != "147") continue
27448 if (got[4] != "211") continue
27449 if (got[5] != "253") continue
27450 if (got[6] != "315") continue
27451 if (got[7] != "357") continue
27452 if (got[16] != "376") continue
27453 if (got[17] != "334") continue
27454 if (got[18] != "272") continue
27455 if (got[19] != "230") continue
27456 if (got[20] != "166") continue
27457 if (got[21] != "124") continue
27458 if (got[22] != "062") continue
27459 if (got[23] != "020") continue
27461 saw = " (" got[8] " " got[9] " " got[10] " " got[11] " " got[12] " " got[13] " " got[14] " " got[15] ")"
27463 if (got[8] == "000" && \
27464 got[9] == "000" && \
27465 got[10] == "000" && \
27466 got[11] == "124" && \
27467 got[12] == "064" && \
27468 got[13] == "157" && \
27469 got[14] == "235" && \
27472 print "IEEE little endian"
27477 # Little endian with the two 4-byte halves swapped, as used by ARM
27478 # when the chip is in little endian mode.
27480 if (got[8] == "064" && \
27481 got[9] == "157" && \
27482 got[10] == "235" && \
27483 got[11] == "301" && \
27484 got[12] == "000" && \
27485 got[13] == "000" && \
27486 got[14] == "000" && \
27489 print "IEEE little endian, swapped halves"
27494 # gcc 2.95.4 on one GNU/Linux ARM system was seen generating 000 in
27495 # the last byte, whereas 124 is correct. Not sure where the bug
27496 # actually lies, but a running program didn't seem to get a full
27497 # mantissa worth of working bits.
27499 # We match this case explicitly so we can give a nice result message,
27500 # but we deliberately exclude it from the normal IEEE double setups
27501 # since it's too broken.
27503 if (got[8] == "064" && \
27504 got[9] == "157" && \
27505 got[10] == "235" && \
27506 got[11] == "301" && \
27507 got[12] == "000" && \
27508 got[13] == "000" && \
27509 got[14] == "000" && \
27512 print "bad ARM software floats"
27517 if (got[8] == "301" && \
27518 got[9] == "235" && \
27519 got[10] == "157" && \
27520 got[11] == "064" && \
27521 got[12] == "124" && \
27522 got[13] == "000" && \
27523 got[14] == "000" && \
27526 print "IEEE big endian"
27531 if (got[8] == "353" && \
27532 got[9] == "315" && \
27533 got[10] == "242" && \
27534 got[11] == "171" && \
27535 got[12] == "000" && \
27536 got[13] == "240" && \
27537 got[14] == "000" && \
27545 if (got[8] == "275" && \
27546 got[9] == "301" && \
27547 got[10] == "064" && \
27548 got[11] == "157" && \
27549 got[12] == "000" && \
27550 got[13] == "124" && \
27551 got[14] == "000" && \
27559 if (got[8] == "300" && \
27560 got[9] == "033" && \
27561 got[10] == "353" && \
27562 got[11] == "171" && \
27563 got[12] == "242" && \
27564 got[13] == "240" && \
27565 got[14] == "000" && \
27577 print "unknown", saw
27581 gmp_cv_c_double_format=`od -b conftest.$OBJEXT | $AWK -f conftest.awk`
27582 case $gmp_cv_c_double_format in
27584 echo "cannot match anything, conftest.$OBJEXT contains" >&5
27585 od -b conftest.$OBJEXT >&5
27589 { echo "$as_me:$LINENO: WARNING: oops, cannot compile test program" >&5
27590 echo "$as_me: WARNING: oops, cannot compile test program" >&2;}
27595 echo "$as_me:$LINENO: result: $gmp_cv_c_double_format" >&5
27596 echo "${ECHO_T}$gmp_cv_c_double_format" >&6
27601 case $gmp_cv_c_double_format in
27603 cat >>confdefs.h <<\_ACEOF
27604 #define HAVE_DOUBLE_IEEE_BIG_ENDIAN 1
27608 echo "define_not_for_expansion(\`HAVE_DOUBLE_IEEE_BIG_ENDIAN')" >> $gmp_tmpconfigm4p
27611 "IEEE little endian")
27612 cat >>confdefs.h <<\_ACEOF
27613 #define HAVE_DOUBLE_IEEE_LITTLE_ENDIAN 1
27617 echo "define_not_for_expansion(\`HAVE_DOUBLE_IEEE_LITTLE_ENDIAN')" >> $gmp_tmpconfigm4p
27620 "IEEE little endian, swapped halves")
27621 cat >>confdefs.h <<\_ACEOF
27622 #define HAVE_DOUBLE_IEEE_LITTLE_SWAPPED 1
27626 cat >>confdefs.h <<\_ACEOF
27627 #define HAVE_DOUBLE_VAX_D 1
27631 cat >>confdefs.h <<\_ACEOF
27632 #define HAVE_DOUBLE_VAX_G 1
27636 cat >>confdefs.h <<\_ACEOF
27637 #define HAVE_DOUBLE_CRAY_CFP 1
27640 "bad ARM software floats")
27643 { echo "$as_me:$LINENO: WARNING: Could not determine float format." >&5
27644 echo "$as_me: WARNING: Could not determine float format." >&2;}
27645 { echo "$as_me:$LINENO: WARNING: Conversions to and from \"double\" may be slow." >&5
27646 echo "$as_me: WARNING: Conversions to and from \"double\" may be slow." >&2;}
27649 { echo "$as_me:$LINENO: WARNING: oops, unrecognised float format: $gmp_cv_c_double_format" >&5
27650 echo "$as_me: WARNING: oops, unrecognised float format: $gmp_cv_c_double_format" >&2;}
27656 # Reasons for testing:
27657 # alarm - not in mingw
27658 # attr_get - IRIX specific
27659 # clock_gettime - not in glibc 2.2.4, only very recent systems
27660 # cputime - not in glibc
27661 # getsysinfo - OSF specific
27662 # getrusage - not in mingw
27663 # gettimeofday - not in mingw
27664 # mmap - not in mingw, djgpp
27665 # nl_langinfo - X/Open standard only, not in djgpp for instance
27666 # obstack_vprintf - glibc specific
27667 # processor_info - solaris specific
27668 # pstat_getprocessor - HPUX specific (10.x and up)
27669 # raise - an ANSI-ism, though probably almost universal by now
27670 # read_real_time - AIX specific
27671 # sigaction - not in mingw
27672 # sigaltstack - not in mingw, or old AIX (reputedly)
27673 # sigstack - not in mingw
27674 # strerror - not in SunOS
27675 # strnlen - glibc extension (some other systems too)
27676 # syssgi - IRIX specific
27677 # times - not in mingw
27679 # clock_gettime is in librt on *-*-osf5.1. We could look for it
27680 # there, but that's not worth bothering with unless it has a decent
27681 # resolution (in a quick test clock_getres said only 1 millisecond).
27683 # AC_FUNC_STRNLEN is not used because we don't want the AC_LIBOBJ
27684 # replacement setups it gives. It detects a faulty strnlen on AIX, but
27685 # missing out on that test is ok since our only use of strnlen is in
27686 # __gmp_replacement_vsnprintf which is not required on AIX since it has a
27722 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
27724 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
27725 echo "$as_me:$LINENO: checking for $ac_func" >&5
27726 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
27727 if eval "test \"\${$as_ac_var+set}\" = set"; then
27728 echo $ECHO_N "(cached) $ECHO_C" >&6
27730 cat >conftest.$ac_ext <<_ACEOF
27733 cat confdefs.h >>conftest.$ac_ext
27734 cat >>conftest.$ac_ext <<_ACEOF
27735 /* end confdefs.h. */
27736 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
27737 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27738 #define $ac_func innocuous_$ac_func
27740 /* System header to define __stub macros and hopefully few prototypes,
27741 which can conflict with char $ac_func (); below.
27742 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27743 <limits.h> exists even on freestanding compilers. */
27746 # include <limits.h>
27748 # include <assert.h>
27753 /* Override any gcc2 internal prototype to avoid an error. */
27758 /* We use char because int might match the return type of a gcc2
27759 builtin and then its argument prototype would still apply. */
27761 /* The GNU C library defines this for functions which it implements
27762 to always fail with ENOSYS. Some functions are actually named
27763 something starting with __ and the normal name is an alias. */
27764 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
27767 char (*f) () = $ac_func;
27776 return f != $ac_func;
27781 rm -f conftest.$ac_objext conftest$ac_exeext
27782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27783 (eval $ac_link) 2>conftest.er1
27785 grep -v '^ *+' conftest.er1 >conftest.err
27787 cat conftest.err >&5
27788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27789 (exit $ac_status); } &&
27790 { ac_try='test -z "$ac_c_werror_flag"
27791 || test ! -s conftest.err'
27792 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27793 (eval $ac_try) 2>&5
27795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27796 (exit $ac_status); }; } &&
27797 { ac_try='test -s conftest$ac_exeext'
27798 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27799 (eval $ac_try) 2>&5
27801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27802 (exit $ac_status); }; }; then
27803 eval "$as_ac_var=yes"
27805 echo "$as_me: failed program was:" >&5
27806 sed 's/^/| /' conftest.$ac_ext >&5
27808 eval "$as_ac_var=no"
27810 rm -f conftest.err conftest.$ac_objext \
27811 conftest$ac_exeext conftest.$ac_ext
27813 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
27814 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
27815 if test `eval echo '${'$as_ac_var'}'` = yes; then
27816 cat >>confdefs.h <<_ACEOF
27817 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
27825 echo "$as_me:$LINENO: checking for vsnprintf" >&5
27826 echo $ECHO_N "checking for vsnprintf... $ECHO_C" >&6
27827 if test "${ac_cv_func_vsnprintf+set}" = set; then
27828 echo $ECHO_N "(cached) $ECHO_C" >&6
27830 cat >conftest.$ac_ext <<_ACEOF
27833 cat confdefs.h >>conftest.$ac_ext
27834 cat >>conftest.$ac_ext <<_ACEOF
27835 /* end confdefs.h. */
27836 /* Define vsnprintf to an innocuous variant, in case <limits.h> declares vsnprintf.
27837 For example, HP-UX 11i <limits.h> declares gettimeofday. */
27838 #define vsnprintf innocuous_vsnprintf
27840 /* System header to define __stub macros and hopefully few prototypes,
27841 which can conflict with char vsnprintf (); below.
27842 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
27843 <limits.h> exists even on freestanding compilers. */
27846 # include <limits.h>
27848 # include <assert.h>
27853 /* Override any gcc2 internal prototype to avoid an error. */
27858 /* We use char because int might match the return type of a gcc2
27859 builtin and then its argument prototype would still apply. */
27861 /* The GNU C library defines this for functions which it implements
27862 to always fail with ENOSYS. Some functions are actually named
27863 something starting with __ and the normal name is an alias. */
27864 #if defined (__stub_vsnprintf) || defined (__stub___vsnprintf)
27867 char (*f) () = vsnprintf;
27876 return f != vsnprintf;
27881 rm -f conftest.$ac_objext conftest$ac_exeext
27882 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27883 (eval $ac_link) 2>conftest.er1
27885 grep -v '^ *+' conftest.er1 >conftest.err
27887 cat conftest.err >&5
27888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27889 (exit $ac_status); } &&
27890 { ac_try='test -z "$ac_c_werror_flag"
27891 || test ! -s conftest.err'
27892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27893 (eval $ac_try) 2>&5
27895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27896 (exit $ac_status); }; } &&
27897 { ac_try='test -s conftest$ac_exeext'
27898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27899 (eval $ac_try) 2>&5
27901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27902 (exit $ac_status); }; }; then
27903 ac_cv_func_vsnprintf=yes
27905 echo "$as_me: failed program was:" >&5
27906 sed 's/^/| /' conftest.$ac_ext >&5
27908 ac_cv_func_vsnprintf=no
27910 rm -f conftest.err conftest.$ac_objext \
27911 conftest$ac_exeext conftest.$ac_ext
27913 echo "$as_me:$LINENO: result: $ac_cv_func_vsnprintf" >&5
27914 echo "${ECHO_T}$ac_cv_func_vsnprintf" >&6
27915 if test $ac_cv_func_vsnprintf = yes; then
27916 gmp_vsnprintf_exists=yes
27918 gmp_vsnprintf_exists=no
27921 if test "$gmp_vsnprintf_exists" = no; then
27922 gmp_cv_func_vsnprintf=no
27924 echo "$as_me:$LINENO: checking whether vsnprintf works" >&5
27925 echo $ECHO_N "checking whether vsnprintf works... $ECHO_C" >&6
27926 if test "${gmp_cv_func_vsnprintf+set}" = set; then
27927 echo $ECHO_N "(cached) $ECHO_C" >&6
27929 gmp_cv_func_vsnprintf=yes
27930 for i in 'check ("hello world");' 'int n; check ("%nhello world", &n);'; do
27931 if test "$cross_compiling" = yes; then
27932 gmp_cv_func_vsnprintf=probably; break
27934 cat >conftest.$ac_ext <<_ACEOF
27937 cat confdefs.h >>conftest.$ac_ext
27938 cat >>conftest.$ac_ext <<_ACEOF
27939 /* end confdefs.h. */
27941 #include <string.h> /* for strcmp */
27942 #include <stdio.h> /* for vsnprintf */
27945 #include <stdarg.h>
27947 #include <varargs.h>
27952 check (const char *fmt, ...)
27958 static char buf[128];
27963 va_start (ap, fmt);
27967 fmt = va_arg (ap, char *);
27970 ret = vsnprintf (buf, 4, fmt, ap);
27972 if (strcmp (buf, "hel") != 0)
27975 /* allowed return values */
27976 if (ret != -1 && ret != 3 && ret != 11)
27990 rm -f conftest$ac_exeext
27991 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
27992 (eval $ac_link) 2>&5
27994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
27995 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
27996 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
27997 (eval $ac_try) 2>&5
27999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28000 (exit $ac_status); }; }; then
28003 echo "$as_me: program exited with status $ac_status" >&5
28004 echo "$as_me: failed program was:" >&5
28005 sed 's/^/| /' conftest.$ac_ext >&5
28007 ( exit $ac_status )
28008 gmp_cv_func_vsnprintf=no; break
28010 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
28015 echo "$as_me:$LINENO: result: $gmp_cv_func_vsnprintf" >&5
28016 echo "${ECHO_T}$gmp_cv_func_vsnprintf" >&6
28017 if test "$gmp_cv_func_vsnprintf" = probably; then
28018 { echo "$as_me:$LINENO: WARNING: cannot check for properly working vsnprintf when cross compiling, will assume it's ok" >&5
28019 echo "$as_me: WARNING: cannot check for properly working vsnprintf when cross compiling, will assume it's ok" >&2;}
28021 if test "$gmp_cv_func_vsnprintf" != no; then
28023 cat >>confdefs.h <<\_ACEOF
28024 #define HAVE_VSNPRINTF 1
28030 echo "$as_me:$LINENO: checking whether sscanf needs writable input" >&5
28031 echo $ECHO_N "checking whether sscanf needs writable input... $ECHO_C" >&6
28032 if test "${gmp_cv_func_sscanf_writable_input+set}" = set; then
28033 echo $ECHO_N "(cached) $ECHO_C" >&6
28036 *-*-hpux9 | *-*-hpux9.*)
28037 gmp_cv_func_sscanf_writable_input=yes ;;
28038 *) gmp_cv_func_sscanf_writable_input=no ;;
28042 echo "$as_me:$LINENO: result: $gmp_cv_func_sscanf_writable_input" >&5
28043 echo "${ECHO_T}$gmp_cv_func_sscanf_writable_input" >&6
28044 case $gmp_cv_func_sscanf_writable_input in
28046 cat >>confdefs.h <<\_ACEOF
28047 #define SSCANF_WRITABLE_INPUT 1
28051 *) { { echo "$as_me:$LINENO: error: unrecognised \$gmp_cv_func_sscanf_writable_input" >&5
28052 echo "$as_me: error: unrecognised \$gmp_cv_func_sscanf_writable_input" >&2;}
28053 { (exit 1); exit 1; }; } ;;
28057 # Reasons for checking:
28058 # pst_processor psp_iticksperclktick - not in hpux 9
28060 echo "$as_me:$LINENO: checking for struct pst_processor.psp_iticksperclktick" >&5
28061 echo $ECHO_N "checking for struct pst_processor.psp_iticksperclktick... $ECHO_C" >&6
28062 if test "${ac_cv_member_struct_pst_processor_psp_iticksperclktick+set}" = set; then
28063 echo $ECHO_N "(cached) $ECHO_C" >&6
28065 cat >conftest.$ac_ext <<_ACEOF
28068 cat confdefs.h >>conftest.$ac_ext
28069 cat >>conftest.$ac_ext <<_ACEOF
28070 /* end confdefs.h. */
28071 #include <sys/pstat.h>
28076 static struct pst_processor ac_aggr;
28077 if (ac_aggr.psp_iticksperclktick)
28083 rm -f conftest.$ac_objext
28084 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28085 (eval $ac_compile) 2>conftest.er1
28087 grep -v '^ *+' conftest.er1 >conftest.err
28089 cat conftest.err >&5
28090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28091 (exit $ac_status); } &&
28092 { ac_try='test -z "$ac_c_werror_flag"
28093 || test ! -s conftest.err'
28094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28095 (eval $ac_try) 2>&5
28097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28098 (exit $ac_status); }; } &&
28099 { ac_try='test -s conftest.$ac_objext'
28100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28101 (eval $ac_try) 2>&5
28103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28104 (exit $ac_status); }; }; then
28105 ac_cv_member_struct_pst_processor_psp_iticksperclktick=yes
28107 echo "$as_me: failed program was:" >&5
28108 sed 's/^/| /' conftest.$ac_ext >&5
28110 cat >conftest.$ac_ext <<_ACEOF
28113 cat confdefs.h >>conftest.$ac_ext
28114 cat >>conftest.$ac_ext <<_ACEOF
28115 /* end confdefs.h. */
28116 #include <sys/pstat.h>
28121 static struct pst_processor ac_aggr;
28122 if (sizeof ac_aggr.psp_iticksperclktick)
28128 rm -f conftest.$ac_objext
28129 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28130 (eval $ac_compile) 2>conftest.er1
28132 grep -v '^ *+' conftest.er1 >conftest.err
28134 cat conftest.err >&5
28135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28136 (exit $ac_status); } &&
28137 { ac_try='test -z "$ac_c_werror_flag"
28138 || test ! -s conftest.err'
28139 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28140 (eval $ac_try) 2>&5
28142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28143 (exit $ac_status); }; } &&
28144 { ac_try='test -s conftest.$ac_objext'
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); }; }; then
28150 ac_cv_member_struct_pst_processor_psp_iticksperclktick=yes
28152 echo "$as_me: failed program was:" >&5
28153 sed 's/^/| /' conftest.$ac_ext >&5
28155 ac_cv_member_struct_pst_processor_psp_iticksperclktick=no
28157 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28159 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28161 echo "$as_me:$LINENO: result: $ac_cv_member_struct_pst_processor_psp_iticksperclktick" >&5
28162 echo "${ECHO_T}$ac_cv_member_struct_pst_processor_psp_iticksperclktick" >&6
28163 if test $ac_cv_member_struct_pst_processor_psp_iticksperclktick = yes; then
28165 cat >>confdefs.h <<\_ACEOF
28166 #define HAVE_PSP_ITICKSPERCLKTICK 1
28172 # C++ tests, when required
28174 if test $enable_cxx = yes; then
28176 ac_cpp='$CXXCPP $CPPFLAGS'
28177 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28178 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28179 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
28182 # Reasons for testing:
28183 # <sstream> - not in g++ 2.95.2
28184 # std::locale - not in g++ 2.95.4
28188 for ac_header in sstream
28190 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
28191 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28192 echo "$as_me:$LINENO: checking for $ac_header" >&5
28193 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28194 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28195 echo $ECHO_N "(cached) $ECHO_C" >&6
28197 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28198 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28200 # Is the header compilable?
28201 echo "$as_me:$LINENO: checking $ac_header usability" >&5
28202 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
28203 cat >conftest.$ac_ext <<_ACEOF
28206 cat confdefs.h >>conftest.$ac_ext
28207 cat >>conftest.$ac_ext <<_ACEOF
28208 /* end confdefs.h. */
28209 $ac_includes_default
28210 #include <$ac_header>
28212 rm -f conftest.$ac_objext
28213 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28214 (eval $ac_compile) 2>conftest.er1
28216 grep -v '^ *+' conftest.er1 >conftest.err
28218 cat conftest.err >&5
28219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28220 (exit $ac_status); } &&
28221 { ac_try='test -z "$ac_cxx_werror_flag"
28222 || test ! -s conftest.err'
28223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28224 (eval $ac_try) 2>&5
28226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28227 (exit $ac_status); }; } &&
28228 { ac_try='test -s conftest.$ac_objext'
28229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28230 (eval $ac_try) 2>&5
28232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28233 (exit $ac_status); }; }; then
28234 ac_header_compiler=yes
28236 echo "$as_me: failed program was:" >&5
28237 sed 's/^/| /' conftest.$ac_ext >&5
28239 ac_header_compiler=no
28241 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28242 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
28243 echo "${ECHO_T}$ac_header_compiler" >&6
28245 # Is the header present?
28246 echo "$as_me:$LINENO: checking $ac_header presence" >&5
28247 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
28248 cat >conftest.$ac_ext <<_ACEOF
28251 cat confdefs.h >>conftest.$ac_ext
28252 cat >>conftest.$ac_ext <<_ACEOF
28253 /* end confdefs.h. */
28254 #include <$ac_header>
28256 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
28257 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
28259 grep -v '^ *+' conftest.er1 >conftest.err
28261 cat conftest.err >&5
28262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28263 (exit $ac_status); } >/dev/null; then
28264 if test -s conftest.err; then
28265 ac_cpp_err=$ac_cxx_preproc_warn_flag
28266 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
28273 if test -z "$ac_cpp_err"; then
28274 ac_header_preproc=yes
28276 echo "$as_me: failed program was:" >&5
28277 sed 's/^/| /' conftest.$ac_ext >&5
28279 ac_header_preproc=no
28281 rm -f conftest.err conftest.$ac_ext
28282 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
28283 echo "${ECHO_T}$ac_header_preproc" >&6
28285 # So? What about this header?
28286 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
28288 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
28289 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
28290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
28291 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
28292 ac_header_preproc=yes
28295 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
28296 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
28297 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
28298 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
28299 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
28300 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
28301 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
28302 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
28303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
28304 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
28305 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
28306 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
28309 ## -------------------------------- ##
28310 ## Report this to gmp-bugs@swox.com ##
28311 ## -------------------------------- ##
28314 sed "s/^/$as_me: WARNING: /" >&2
28317 echo "$as_me:$LINENO: checking for $ac_header" >&5
28318 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
28319 if eval "test \"\${$as_ac_Header+set}\" = set"; then
28320 echo $ECHO_N "(cached) $ECHO_C" >&6
28322 eval "$as_ac_Header=\$ac_header_preproc"
28324 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
28325 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
28328 if test `eval echo '${'$as_ac_Header'}'` = yes; then
28329 cat >>confdefs.h <<_ACEOF
28330 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
28337 echo "$as_me:$LINENO: checking for std::locale" >&5
28338 echo $ECHO_N "checking for std::locale... $ECHO_C" >&6
28339 if test "${ac_cv_type_std__locale+set}" = set; then
28340 echo $ECHO_N "(cached) $ECHO_C" >&6
28342 cat >conftest.$ac_ext <<_ACEOF
28345 cat confdefs.h >>conftest.$ac_ext
28346 cat >>conftest.$ac_ext <<_ACEOF
28347 /* end confdefs.h. */
28353 if ((std::locale *) 0)
28355 if (sizeof (std::locale))
28361 rm -f conftest.$ac_objext
28362 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
28363 (eval $ac_compile) 2>conftest.er1
28365 grep -v '^ *+' conftest.er1 >conftest.err
28367 cat conftest.err >&5
28368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28369 (exit $ac_status); } &&
28370 { ac_try='test -z "$ac_cxx_werror_flag"
28371 || test ! -s conftest.err'
28372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28373 (eval $ac_try) 2>&5
28375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28376 (exit $ac_status); }; } &&
28377 { ac_try='test -s conftest.$ac_objext'
28378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
28379 (eval $ac_try) 2>&5
28381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
28382 (exit $ac_status); }; }; then
28383 ac_cv_type_std__locale=yes
28385 echo "$as_me: failed program was:" >&5
28386 sed 's/^/| /' conftest.$ac_ext >&5
28388 ac_cv_type_std__locale=no
28390 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
28392 echo "$as_me:$LINENO: result: $ac_cv_type_std__locale" >&5
28393 echo "${ECHO_T}$ac_cv_type_std__locale" >&6
28394 if test $ac_cv_type_std__locale = yes; then
28396 cat >>confdefs.h <<_ACEOF
28397 #define HAVE_STD__LOCALE 1
28405 ac_cpp='$CPP $CPPFLAGS'
28406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
28407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
28408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
28413 # Pick the correct source files in $path and link them to mpn/.
28414 # $gmp_mpn_functions lists all functions we need.
28416 # The rule is to find a file with the function name and a .asm, .S,
28417 # .s, or .c extension. Certain multi-function files with special names
28418 # can provide some functions too. (mpn/Makefile.am passes
28419 # -DOPERATION_<func> to get them to generate the right code.)
28421 # Note: The following lines defining $gmp_mpn_functions_optional
28422 # and $gmp_mpn_functions are parsed by the "macos/configure"
28423 # Perl script. So if you change the lines in a major way
28424 # make sure to run and examine the output from
28426 # % (cd macos; perl configure)
28428 # Note: $gmp_mpn_functions must have mod_1 before pre_mod_1 so the former
28429 # can optionally provide the latter as an extra entrypoint. Likewise
28430 # divrem_1 and pre_divrem_1.
28432 gmp_mpn_functions_optional="umul udiv copyi copyd com_n
28433 and_n andn_n nand_n ior_n iorn_n nior_n xor_n xnor_n \
28434 gcd_finda invert_limb sqr_diagonal \
28435 mul_2 mul_3 mul_4 \
28436 addmul_2 addmul_3 addmul_4 addmul_5 addmul_6 addmul_7 addmul_8 \
28437 addlsh1_n sublsh1_n rsh1add_n rsh1sub_n addsub_n lshiftc"
28439 gmp_mpn_functions="$extra_functions \
28440 add add_1 add_n sub sub_1 sub_n mul_1 addmul_1 \
28441 submul_1 lshift rshift dive_1 diveby3 divis divrem divrem_1 divrem_2 \
28442 fib2_ui mod_1 mod_34lsub1 mode1o pre_divrem_1 pre_mod_1 dump \
28443 mul mul_fft mul_n mul_basecase sqr_basecase random random2 pow_1 \
28444 rootrem sqrtrem get_str set_str scan0 scan1 popcount hamdist cmp perfsqr \
28445 bdivmod gcd_1 gcd gcdext tdiv_qr dc_divrem_n sb_divrem_mn jacbase get_d \
28446 mullow_n mullow_basecase \
28447 $gmp_mpn_functions_optional"
28451 # the list of all object files used by mpn/Makefile.in and the
28452 # top-level Makefile.in, respectively
28454 mpn_objs_in_libgmp=
28456 # links from the sources, to be removed by "make distclean"
28460 # mpn_relative_top_srcdir is $top_srcdir, but for use from within the mpn
28461 # build directory. If $srcdir is relative then we use a relative path too,
28462 # so the two trees can be moved together.
28464 [\\/]* | ?:[\\/]*) # absolute, as per autoconf
28465 mpn_relative_top_srcdir=$srcdir ;;
28467 mpn_relative_top_srcdir=../$srcdir ;;
28475 # Fat binary setups.
28477 # We proceed through each $fat_path directory, and look for $fat_function
28478 # routines there. Those found are incorporated in the build by generating a
28479 # little mpn/<foo>.asm or mpn/<foo>.c file in the build directory, with
28480 # suitable function renaming, and adding that to $mpn_objects (the same as a
28481 # normal mpn file).
28483 # fat.h is generated with macros to let internal calls to each $fat_function
28484 # go directly through __gmpn_cpuvec, plus macros and declarations helping to
28485 # setup that structure, on a per-directory basis ready for
28486 # mpn/<cpu>/fat/fat.c.
28488 # fat.h includes thesholds listed in $fat_thresholds, extracted from
28489 # gmp-mparam.h in each directory. An overall maximum for each threshold is
28490 # established, for use in making fixed size arrays of temporary space.
28491 # (Eg. MUL_TOOM3_THRESHOLD_LIMIT used by mpn/generic/mul.c.)
28493 # It'd be possible to do some of this manually, but when there's more than a
28494 # few functions and a few directories it becomes very tedious, and very
28495 # prone to having some routine accidentally omitted. On that basis it seems
28496 # best to automate as much as possible, even if the code to do so is a bit
28500 if test -n "$fat_path"; then
28501 # Usually the mpn build directory is created with mpn/Makefile
28502 # instantiation, but we want to write to it sooner.
28503 mkdir mpn 2>/dev/null
28505 echo "/* fat.h - setups for fat binaries." >fat.h
28506 echo " Generated by configure - DO NOT EDIT. */" >>fat.h
28509 cat >>confdefs.h <<\_ACEOF
28510 #define WANT_FAT_BINARY 1
28514 echo 'define(<WANT_FAT_BINARY>, <yes>)' >>$gmp_tmpconfigm4
28517 # Don't want normal copies of fat functions
28518 for tmp_fn in $fat_functions; do
28519 remove_from_list_tmp=
28520 for remove_from_list_i in $gmp_mpn_functions; do
28521 if test $remove_from_list_i = $tmp_fn; then :;
28523 remove_from_list_tmp="$remove_from_list_tmp $remove_from_list_i"
28526 gmp_mpn_functions=$remove_from_list_tmp
28528 remove_from_list_tmp=
28529 for remove_from_list_i in $gmp_mpn_functions_optional; do
28530 if test $remove_from_list_i = $tmp_fn; then :;
28532 remove_from_list_tmp="$remove_from_list_tmp $remove_from_list_i"
28535 gmp_mpn_functions_optional=$remove_from_list_tmp
28539 for tmp_fn in $fat_functions; do
28541 dive_1) tmp_fbase=divexact_1 ;;
28542 diveby3) tmp_fbase=divexact_by3c ;;
28543 pre_divrem_1) tmp_fbase=preinv_divrem_1 ;;
28544 mode1o) tmp_fbase=modexact_1c_odd ;;
28545 pre_mod_1) tmp_fbase=preinv_mod_1 ;;
28546 *) tmp_fbase=$tmp_fn ;;
28550 #ifndef OPERATION_$tmp_fn
28551 #undef mpn_$tmp_fbase
28552 #define mpn_$tmp_fbase (*__gmpn_cpuvec.$tmp_fbase)
28554 DECL_$tmp_fbase (__MPN(${tmp_fbase}_init));" >>fat.h
28555 # encourage various macros to use fat functions
28556 cat >>confdefs.h <<_ACEOF
28557 #define HAVE_NATIVE_$tmp_fbase 1
28563 echo "/* variable thresholds */" >>fat.h
28564 for tmp_tn in $fat_thresholds; do
28565 echo "#undef $tmp_tn" >>fat.h
28566 echo "#define $tmp_tn CPUVEC_THRESHOLD (`echo $tmp_tn | tr A-Z a-z`)" >>fat.h
28570 /* Copy all fields into __gmpn_cpuvec.
28571 memcpy is not used because it might operate byte-wise (depending on its
28572 implemenation), and we need the function pointer writes to be atomic.
28573 "volatile" discourages the compiler from trying to optimize this. */
28574 #define CPUVEC_INSTALL(vec) \\
28576 volatile struct cpuvec_t *p = &__gmpn_cpuvec; \\" >>fat.h
28577 for tmp_fn in $fat_functions; do
28579 dive_1) tmp_fbase=divexact_1 ;;
28580 diveby3) tmp_fbase=divexact_by3c ;;
28581 pre_divrem_1) tmp_fbase=preinv_divrem_1 ;;
28582 mode1o) tmp_fbase=modexact_1c_odd ;;
28583 pre_mod_1) tmp_fbase=preinv_mod_1 ;;
28584 *) tmp_fbase=$tmp_fn ;;
28587 echo " p->$tmp_fbase = vec.$tmp_fbase; \\" >>fat.h
28589 for tmp_tn in $fat_thresholds; do
28590 tmp_field_name=`echo $tmp_tn | tr A-Z a-z`
28591 echo " p->$tmp_field_name = vec.$tmp_field_name; \\" >>fat.h
28593 echo " } while (0)" >>fat.h
28596 /* A helper to check all fields are filled. */
28597 #define ASSERT_CPUVEC(vec) \\
28599 for tmp_fn in $fat_functions; do
28601 dive_1) tmp_fbase=divexact_1 ;;
28602 diveby3) tmp_fbase=divexact_by3c ;;
28603 pre_divrem_1) tmp_fbase=preinv_divrem_1 ;;
28604 mode1o) tmp_fbase=modexact_1c_odd ;;
28605 pre_mod_1) tmp_fbase=preinv_mod_1 ;;
28606 *) tmp_fbase=$tmp_fn ;;
28609 echo " ASSERT (vec.$tmp_fbase != NULL); \\" >>fat.h
28611 for tmp_tn in $fat_thresholds; do
28612 tmp_field_name=`echo $tmp_tn | tr A-Z a-z`
28613 echo " ASSERT (vec.$tmp_field_name != 0); \\" >>fat.h
28615 echo " } while (0)" >>fat.h
28618 /* Call ITERATE(field) for each fat threshold field. */
28619 #define ITERATE_FAT_THRESHOLDS() \\
28621 for tmp_tn in $fat_thresholds; do
28622 tmp_field_name=`echo $tmp_tn | tr A-Z a-z`
28623 echo " ITERATE ($tmp_tn, $tmp_field_name); \\" >>fat.h
28625 echo " } while (0)" >>fat.h
28627 for tmp_dir in $fat_path; do
28631 tmp_suffix=`echo $tmp_dir | sed -e '/\//s:^[^/]*/::' -e 's:[\\/]:_:g'`
28633 # In order to keep names unique on a DOS 8.3 filesystem, use a prefix
28634 # (rather than a suffix) for the generated file names, and abbreviate.
28635 case $tmp_suffix in
28636 pentium) tmp_prefix=p ;;
28637 pentium_mmx) tmp_prefix=pm ;;
28638 p6_mmx) tmp_prefix=p2 ;;
28639 p6_p3mmx) tmp_prefix=p3 ;;
28640 pentium4) tmp_prefix=p4 ;;
28641 pentium4_mmx) tmp_prefix=p4m ;;
28642 pentium4_sse2) tmp_prefix=p4s ;;
28643 k6_mmx) tmp_prefix=k6m ;;
28644 k6_k62mmx) tmp_prefix=k62 ;;
28645 k7_mmx) tmp_prefix=k7m ;;
28646 *) tmp_prefix=$tmp_suffix ;;
28649 # Extract desired thresholds from gmp-mparam.h file in this directory,
28651 tmp_mparam=$srcdir/mpn/$tmp_dir/gmp-mparam.h
28652 if test -f $tmp_mparam; then
28653 for tmp_tn in $fat_thresholds; do
28654 tmp_thresh=`sed -n "s/^#define $tmp_tn[ ]*\\([0-9][0-9]*\\).*$/\\1/p" $tmp_mparam`
28655 if test -n "$tmp_thresh"; then
28656 THRESH_ASM_SETUP="${THRESH_ASM_SETUP}define($tmp_tn,$tmp_thresh)
28658 CPUVEC_SETUP="$CPUVEC_SETUP decided_cpuvec.`echo $tmp_tn | tr A-Z a-z` = $tmp_thresh; \\
28660 eval tmp_limit=\$${tmp_tn}_LIMIT
28661 if test -z "$tmp_limit"; then
28664 if test $tmp_thresh -gt $tmp_limit; then
28665 eval ${tmp_tn}_LIMIT=$tmp_thresh
28671 for tmp_fn in $fat_functions; do
28672 # functions that can be provided by multi-function files
28675 add_n|sub_n) tmp_mulfunc="aors_n" ;;
28676 addmul_1|submul_1) tmp_mulfunc="aorsmul_1" ;;
28677 popcount|hamdist) tmp_mulfunc="popham" ;;
28678 and_n|andn_n|nand_n | ior_n|iorn_n|nior_n | xor_n|xnor_n)
28679 tmp_mulfunc="logops_n" ;;
28680 lshift|rshift) tmp_mulfunc="lorrshift";;
28681 addlsh1_n|sublsh1_n)
28682 tmp_mulfunc="aorslsh1_n";;
28683 rsh1add_n|rsh1sub_n)
28684 tmp_mulfunc="rsh1aors_n";;
28688 for tmp_base in $tmp_fn $tmp_mulfunc; do
28689 for tmp_ext in asm S s c; do
28690 tmp_file=$srcdir/mpn/$tmp_dir/$tmp_base.$tmp_ext
28691 if test -f $tmp_file; then
28693 mpn_objects="$mpn_objects ${tmp_prefix}_$tmp_fn.lo"
28694 mpn_objs_in_libgmp="$mpn_objs_in_libgmp mpn/${tmp_prefix}_$tmp_fn.lo"
28697 dive_1) tmp_fbase=divexact_1 ;;
28698 diveby3) tmp_fbase=divexact_by3c ;;
28699 pre_divrem_1) tmp_fbase=preinv_divrem_1 ;;
28700 mode1o) tmp_fbase=modexact_1c_odd ;;
28701 pre_mod_1) tmp_fbase=preinv_mod_1 ;;
28702 *) tmp_fbase=$tmp_fn ;;
28706 # carry-in variant, eg. divrem_1c or modexact_1c_odd
28708 *_1*) tmp_fbasec=`echo $tmp_fbase | sed 's/_1/_1c/'` ;;
28709 *) tmp_fbasec=${tmp_fbase}c ;;
28712 # Create a little file doing an include from srcdir. The
28713 # OPERATION and renamings aren't all needed all the time, but
28714 # they don't hurt if unused.
28716 # FIXME: Should generate these via config.status commands.
28717 # Would need them all in one AC_CONFIG_COMMANDS though, since
28718 # that macro doesn't accept a set of separate commands generated
28723 # hide the d-n-l from autoconf's error checking
28725 echo "$tmp_d_n_l mpn_$tmp_fbase - from $tmp_dir directory for fat binary.
28726 $tmp_d_n_l Generated by configure - DO NOT EDIT.
28728 define(OPERATION_$tmp_fn)
28729 define(__gmpn_$tmp_fbase, __gmpn_${tmp_fbase}_$tmp_suffix)
28730 define(__gmpn_$tmp_fbasec,__gmpn_${tmp_fbasec}_${tmp_suffix})
28731 define(__gmpn_preinv_${tmp_fbase},__gmpn_preinv_${tmp_fbase}_${tmp_suffix})
28733 $tmp_d_n_l For k6 and k7 gcd_1 calling their corresponding mpn_modexact_1_odd
28734 ifdef(\`__gmpn_modexact_1_odd',,
28735 \`define(__gmpn_modexact_1_odd,__gmpn_modexact_1_odd_${tmp_suffix})')
28738 include($mpn_relative_top_srcdir/mpn/$tmp_dir/$tmp_base.asm)
28739 " >mpn/${tmp_prefix}_$tmp_fn.asm
28742 echo "/* mpn_$tmp_fbase - from $tmp_dir directory for fat binary.
28743 Generated by configure - DO NOT EDIT. */
28745 #define OPERATION_$tmp_fn 1
28746 #define __gmpn_$tmp_fbase __gmpn_${tmp_fbase}_$tmp_suffix
28747 #define __gmpn_$tmp_fbasec __gmpn_${tmp_fbasec}_${tmp_suffix}
28748 #define __gmpn_preinv_${tmp_fbase} __gmpn_preinv_${tmp_fbase}_${tmp_suffix}
28750 #include \"$mpn_relative_top_srcdir/mpn/$tmp_dir/$tmp_base.c\"
28751 " >mpn/${tmp_prefix}_$tmp_fn.c
28755 # Prototype, and append to CPUVEC_SETUP for this directory.
28756 echo "DECL_$tmp_fbase (__gmpn_${tmp_fbase}_$tmp_suffix);" >>fat.h
28757 CPUVEC_SETUP="$CPUVEC_SETUP decided_cpuvec.$tmp_fbase = __gmpn_${tmp_fbase}_${tmp_suffix}; \\
28759 # Ditto for any preinv variant (preinv_divrem_1, preinv_mod_1).
28760 if grep "^PROLOGUE(mpn_preinv_$tmp_fn)" $tmp_file >/dev/null; then
28761 echo "DECL_preinv_$tmp_fbase (__gmpn_preinv_${tmp_fbase}_$tmp_suffix);" >>fat.h
28762 CPUVEC_SETUP="$CPUVEC_SETUP decided_cpuvec.preinv_$tmp_fbase = __gmpn_preinv_${tmp_fbase}_${tmp_suffix}; \\
28770 # Emit CPUVEC_SETUP for this directory
28772 echo "#define CPUVEC_SETUP_$tmp_suffix \\" >>fat.h
28773 echo " do { \\" >>fat.h
28774 echo "$CPUVEC_SETUP } while (0)" >>fat.h
28777 # Emit threshold limits
28779 for tmp_tn in $fat_thresholds; do
28780 eval tmp_limit=\$${tmp_tn}_LIMIT
28781 echo "#define ${tmp_tn}_LIMIT $tmp_limit" >>fat.h
28786 # Normal binary setups.
28789 for tmp_ext in asm S s c; do
28790 eval found_$tmp_ext=no
28793 for tmp_fn in $gmp_mpn_functions; do
28794 for tmp_ext in asm S s c; do
28795 test "$no_create" = yes || rm -f mpn/$tmp_fn.$tmp_ext
28798 # mpn_preinv_divrem_1 might have been provided by divrem_1.asm, likewise
28799 # mpn_preinv_mod_1 by mod_1.asm.
28802 if test "$HAVE_NATIVE_mpn_preinv_divrem_1" = yes; then continue; fi ;;
28804 if test "$HAVE_NATIVE_mpn_preinv_mod_1" = yes; then continue; fi ;;
28807 # functions that can be provided by multi-function files
28810 add_n|sub_n) tmp_mulfunc="aors_n" ;;
28811 addmul_1|submul_1) tmp_mulfunc="aorsmul_1" ;;
28812 popcount|hamdist) tmp_mulfunc="popham" ;;
28813 and_n|andn_n|nand_n | ior_n|iorn_n|nior_n | xor_n|xnor_n)
28814 tmp_mulfunc="logops_n" ;;
28815 lshift|rshift) tmp_mulfunc="lorrshift";;
28816 addlsh1_n|sublsh1_n)
28817 tmp_mulfunc="aorslsh1_n";;
28818 rsh1add_n|rsh1sub_n)
28819 tmp_mulfunc="rsh1aors_n";;
28824 for tmp_dir in $path; do
28825 for tmp_base in $tmp_fn $tmp_mulfunc; do
28826 for tmp_ext in asm S s c; do
28827 tmp_file=$srcdir/mpn/$tmp_dir/$tmp_base.$tmp_ext
28828 if test -f $tmp_file; then
28830 # For a nails build, check if the file supports our nail bits.
28831 # Generic code always supports all nails.
28833 # FIXME: When a multi-function file is selected to provide one of
28834 # the nails-neutral routines, like logops_n for and_n, the
28835 # PROLOGUE grepping will create HAVE_NATIVE_mpn_<foo> defines for
28836 # all functions in that file, even if they haven't all been
28837 # nailified. Not sure what to do about this, it's only really a
28838 # problem for logops_n, and it's not too terrible to insist those
28839 # get nailified always.
28841 if test $GMP_NAIL_BITS != 0 && test $tmp_dir != generic; then
28843 and_n | ior_n | xor_n | andn_n | \
28845 popcount | hamdist | \
28846 udiv | udiv_w_sdiv | umul | \
28847 cntlz | invert_limb)
28848 # these operations are either unaffected by nails or defined
28849 # to operate on full limbs
28852 nails=`sed -n 's/^[ ]*NAILS_SUPPORT(\(.*\))/\1/p' $tmp_file `
28853 for n in $nails; do
28856 n_start=`echo "$n" | sed -n 's/\(.*\)-.*/\1/p'`
28857 n_end=`echo "$n" | sed -n 's/.*-\(.*\)/\1/p'`
28864 if test $GMP_NAIL_BITS -ge $n_start && test $GMP_NAIL_BITS -le $n_end; then
28869 if test $found != yes; then
28877 eval found_$tmp_ext=yes
28879 if test $tmp_ext = c; then
28885 mpn_objects="$mpn_objects $tmp_fn$tmp_u.lo"
28886 mpn_objs_in_libgmp="$mpn_objs_in_libgmp mpn/$tmp_fn$tmp_u.lo"
28887 ac_config_links="$ac_config_links mpn/$tmp_fn.$tmp_ext:mpn/$tmp_dir/$tmp_base.$tmp_ext"
28889 gmp_srclinks="$gmp_srclinks mpn/$tmp_fn.$tmp_ext"
28891 # Duplicate AC_DEFINEs are harmless, so it doesn't matter
28892 # that multi-function files get grepped here repeatedly.
28893 # The PROLOGUE pattern excludes the optional second parameter.
28895 sed -n 's/^[ ]*MULFUNC_PROLOGUE(\(.*\))/\1/p' $tmp_file ;
28896 sed -n 's/^[ ]*PROLOGUE(\([^,]*\).*)/\1/p' $tmp_file
28898 for gmp_tmp in $gmp_ep; do
28899 cat >>confdefs.h <<_ACEOF
28900 #define HAVE_NATIVE_$gmp_tmp 1
28903 eval HAVE_NATIVE_$gmp_tmp=yes
28907 sqr_basecase) sqr_basecase_source=$tmp_file ;;
28913 if test $found = yes; then break ; fi
28915 if test $found = yes; then break ; fi
28918 if test $found = no; then
28919 for tmp_optional in $gmp_mpn_functions_optional; do
28920 if test $tmp_optional = $tmp_fn; then
28924 if test $found = no; then
28925 { { echo "$as_me:$LINENO: error: no version of $tmp_fn found in path: $path" >&5
28926 echo "$as_me: error: no version of $tmp_fn found in path: $path" >&2;}
28927 { (exit 1); exit 1; }; }
28932 # All cycle counters are .asm files currently
28933 if test -n "$SPEED_CYCLECOUNTER_OBJ"; then
28942 # Don't demand an m4 unless it's actually needed.
28943 if test $found_asm = yes; then
28945 echo "$as_me:$LINENO: checking for suitable m4" >&5
28946 echo $ECHO_N "checking for suitable m4... $ECHO_C" >&6
28947 if test "${gmp_cv_prog_m4+set}" = set; then
28948 echo $ECHO_N "(cached) $ECHO_C" >&6
28950 if test -n "$M4"; then
28951 gmp_cv_prog_m4="$M4"
28953 cat >conftest.m4 <<\EOF
28954 define(dollarhash,``$#'')ifelse(dollarhash(x),1,`define(t1,Y)',
28955 ``bad: $# not supported (SunOS /usr/bin/m4)
28956 '')ifelse(eval(89),89,`define(t2,Y)',
28957 `bad: eval() doesnt support 8 or 9 in a constant (OpenBSD 2.6 m4)
28958 ')ifelse(t1`'t2,YY,`good
28961 echo "trying m4" >&5
28962 gmp_tmp_val=`(m4 conftest.m4) 2>&5`
28963 echo "$gmp_tmp_val" >&5
28964 if test "$gmp_tmp_val" = good; then
28965 gmp_cv_prog_m4="m4"
28967 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
28968 ac_dummy="$PATH:/usr/5bin"
28969 for ac_dir in $ac_dummy; do
28970 test -z "$ac_dir" && ac_dir=.
28971 echo "trying $ac_dir/m4" >&5
28972 gmp_tmp_val=`($ac_dir/m4 conftest.m4) 2>&5`
28973 echo "$gmp_tmp_val" >&5
28974 if test "$gmp_tmp_val" = good; then
28975 gmp_cv_prog_m4="$ac_dir/m4"
28980 if test -z "$gmp_cv_prog_m4"; then
28981 { { echo "$as_me:$LINENO: error: No usable m4 in \$PATH or /usr/5bin (see config.log for reasons)." >&5
28982 echo "$as_me: error: No usable m4 in \$PATH or /usr/5bin (see config.log for reasons)." >&2;}
28983 { (exit 1); exit 1; }; }
28989 echo "$as_me:$LINENO: result: $gmp_cv_prog_m4" >&5
28990 echo "${ECHO_T}$gmp_cv_prog_m4" >&6
28991 M4="$gmp_cv_prog_m4"
28995 echo "$as_me:$LINENO: checking if m4wrap produces spurious output" >&5
28996 echo $ECHO_N "checking if m4wrap produces spurious output... $ECHO_C" >&6
28997 if test "${gmp_cv_m4_m4wrap_spurious+set}" = set; then
28998 echo $ECHO_N "(cached) $ECHO_C" >&6
29000 # hide the d-n-l from autoconf's error checking
29002 cat >conftest.m4 <<EOF
29003 changequote({,})define(x,)m4wrap({x})$tmp_d_n_l
29005 echo test input is >&5
29006 cat conftest.m4 >&5
29007 tmp_chars=`$M4 conftest.m4 | wc -c`
29008 echo produces $tmp_chars chars output >&5
29010 if test $tmp_chars = 0; then
29011 gmp_cv_m4_m4wrap_spurious=no
29013 gmp_cv_m4_m4wrap_spurious=yes
29017 echo "$as_me:$LINENO: result: $gmp_cv_m4_m4wrap_spurious" >&5
29018 echo "${ECHO_T}$gmp_cv_m4_m4wrap_spurious" >&6
29020 echo "define(<M4WRAP_SPURIOUS>,<$gmp_cv_m4_m4wrap_spurious>)" >> $gmp_tmpconfigm4
29027 # Only do the GMP_ASM checks if there's a .S or .asm wanting them.
29028 if test $found_asm = no && test $found_S = no; then
29029 gmp_asm_syntax_testing=no
29032 if test "$gmp_asm_syntax_testing" != no; then
29033 echo "$as_me:$LINENO: checking how to switch to text section" >&5
29034 echo $ECHO_N "checking how to switch to text section... $ECHO_C" >&6
29035 if test "${gmp_cv_asm_text+set}" = set; then
29036 echo $ECHO_N "(cached) $ECHO_C" >&6
29038 for i in ".text" ".code" ".csect .text[PR]"; do
29039 echo "trying $i" >&5
29040 cat >conftest.s <<EOF
29043 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
29044 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
29045 (eval $gmp_assemble) 2>&5
29047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29048 (exit $ac_status); }; then
29049 cat conftest.out >&5
29054 cat conftest.out >&5
29055 echo "configure: failed program was:" >&5
29062 if test -z "$gmp_cv_asm_text"; then
29063 { { echo "$as_me:$LINENO: error: Cannot determine text section directive" >&5
29064 echo "$as_me: error: Cannot determine text section directive" >&2;}
29065 { (exit 1); exit 1; }; }
29069 echo "$as_me:$LINENO: result: $gmp_cv_asm_text" >&5
29070 echo "${ECHO_T}$gmp_cv_asm_text" >&6
29071 echo "define(<TEXT>, <$gmp_cv_asm_text>)" >> $gmp_tmpconfigm4
29073 echo "$as_me:$LINENO: checking how to switch to data section" >&5
29074 echo $ECHO_N "checking how to switch to data section... $ECHO_C" >&6
29075 if test "${gmp_cv_asm_data+set}" = set; then
29076 echo $ECHO_N "(cached) $ECHO_C" >&6
29079 *-*-aix*) gmp_cv_asm_data=".csect .data[RW]" ;;
29080 *) gmp_cv_asm_data=".data" ;;
29084 echo "$as_me:$LINENO: result: $gmp_cv_asm_data" >&5
29085 echo "${ECHO_T}$gmp_cv_asm_data" >&6
29086 echo "define(<DATA>, <$gmp_cv_asm_data>)" >> $gmp_tmpconfigm4
29089 echo "$as_me:$LINENO: checking for assembler label suffix" >&5
29090 echo $ECHO_N "checking for assembler label suffix... $ECHO_C" >&6
29091 if test "${gmp_cv_asm_label_suffix+set}" = set; then
29092 echo $ECHO_N "(cached) $ECHO_C" >&6
29094 gmp_cv_asm_label_suffix=unknown
29095 for i in "" ":"; do
29096 echo "trying $i" >&5
29097 cat >conftest.s <<EOF
29101 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
29102 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
29103 (eval $gmp_assemble) 2>&5
29105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29106 (exit $ac_status); }; then
29107 cat conftest.out >&5
29108 gmp_cv_asm_label_suffix=$i
29112 cat conftest.out >&5
29113 echo "configure: failed program was:" >&5
29115 cat conftest.out >&5
29120 if test "$gmp_cv_asm_label_suffix" = "unknown"; then
29121 { { echo "$as_me:$LINENO: error: Cannot determine label suffix" >&5
29122 echo "$as_me: error: Cannot determine label suffix" >&2;}
29123 { (exit 1); exit 1; }; }
29127 echo "$as_me:$LINENO: result: $gmp_cv_asm_label_suffix" >&5
29128 echo "${ECHO_T}$gmp_cv_asm_label_suffix" >&6
29129 echo "define(<LABEL_SUFFIX>, <$gmp_cv_asm_label_suffix>)" >> $gmp_tmpconfigm4
29132 echo "$as_me:$LINENO: checking for assembler global directive" >&5
29133 echo $ECHO_N "checking for assembler global directive... $ECHO_C" >&6
29134 if test "${gmp_cv_asm_globl+set}" = set; then
29135 echo $ECHO_N "(cached) $ECHO_C" >&6
29138 hppa*-*-*) gmp_cv_asm_globl=.export ;;
29139 ia64*-*-* | itanium-*-* | itanium2-*-*) gmp_cv_asm_globl=.global ;;
29140 *) gmp_cv_asm_globl=.globl ;;
29144 echo "$as_me:$LINENO: result: $gmp_cv_asm_globl" >&5
29145 echo "${ECHO_T}$gmp_cv_asm_globl" >&6
29146 echo "define(<GLOBL>, <$gmp_cv_asm_globl>)" >> $gmp_tmpconfigm4
29149 echo "$as_me:$LINENO: checking for assembler global directive attribute" >&5
29150 echo $ECHO_N "checking for assembler global directive attribute... $ECHO_C" >&6
29151 if test "${gmp_cv_asm_globl_attr+set}" = set; then
29152 echo $ECHO_N "(cached) $ECHO_C" >&6
29154 case $gmp_cv_asm_globl in
29155 .export) gmp_cv_asm_globl_attr=",entry" ;;
29156 *) gmp_cv_asm_globl_attr="" ;;
29160 echo "$as_me:$LINENO: result: $gmp_cv_asm_globl_attr" >&5
29161 echo "${ECHO_T}$gmp_cv_asm_globl_attr" >&6
29162 echo "define(<GLOBL_ATTR>, <$gmp_cv_asm_globl_attr>)" >> $gmp_tmpconfigm4
29165 echo "$as_me:$LINENO: checking if globals are prefixed by underscore" >&5
29166 echo $ECHO_N "checking if globals are prefixed by underscore... $ECHO_C" >&6
29167 if test "${gmp_cv_asm_underscore+set}" = set; then
29168 echo $ECHO_N "(cached) $ECHO_C" >&6
29170 gmp_cv_asm_underscore="unknown"
29171 cat >conftest.c <<EOF
29174 gmp_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >&5"
29175 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
29176 (eval $gmp_compile) 2>&5
29178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29179 (exit $ac_status); }; then
29180 $NM conftest.$OBJEXT >conftest.out
29181 if grep _gurkmacka conftest.out >/dev/null; then
29182 gmp_cv_asm_underscore=yes
29183 elif grep gurkmacka conftest.out >/dev/null; then
29184 gmp_cv_asm_underscore=no
29186 echo "configure: $NM doesn't have gurkmacka:" >&5
29187 cat conftest.out >&5
29190 echo "configure: failed program was:" >&5
29196 echo "$as_me:$LINENO: result: $gmp_cv_asm_underscore" >&5
29197 echo "${ECHO_T}$gmp_cv_asm_underscore" >&6
29198 case $gmp_cv_asm_underscore in
29201 echo 'define(<GSYM_PREFIX>, <_>)' >>$gmp_tmpconfigm4
29205 echo 'define(<GSYM_PREFIX>, <>)' >>$gmp_tmpconfigm4
29208 { echo "$as_me:$LINENO: WARNING: +----------------------------------------------------------" >&5
29209 echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
29210 { echo "$as_me:$LINENO: WARNING: | Cannot determine global symbol prefix." >&5
29211 echo "$as_me: WARNING: | Cannot determine global symbol prefix." >&2;}
29212 { echo "$as_me:$LINENO: WARNING: | $NM output doesn't contain a global data symbol." >&5
29213 echo "$as_me: WARNING: | $NM output doesn't contain a global data symbol." >&2;}
29214 { echo "$as_me:$LINENO: WARNING: | Will proceed with no underscore." >&5
29215 echo "$as_me: WARNING: | Will proceed with no underscore." >&2;}
29216 { echo "$as_me:$LINENO: WARNING: | If this is wrong then you'll get link errors referring" >&5
29217 echo "$as_me: WARNING: | If this is wrong then you'll get link errors referring" >&2;}
29218 { echo "$as_me:$LINENO: WARNING: | to ___gmpn_add_n (note three underscores)." >&5
29219 echo "$as_me: WARNING: | to ___gmpn_add_n (note three underscores)." >&2;}
29220 { echo "$as_me:$LINENO: WARNING: | In this case do a fresh build with an override," >&5
29221 echo "$as_me: WARNING: | In this case do a fresh build with an override," >&2;}
29222 { echo "$as_me:$LINENO: WARNING: | ./configure gmp_cv_asm_underscore=yes" >&5
29223 echo "$as_me: WARNING: | ./configure gmp_cv_asm_underscore=yes" >&2;}
29224 { echo "$as_me:$LINENO: WARNING: +----------------------------------------------------------" >&5
29225 echo "$as_me: WARNING: +----------------------------------------------------------" >&2;}
29227 echo 'define(<GSYM_PREFIX>, <>)' >>$gmp_tmpconfigm4
29236 echo "$as_me:$LINENO: checking how to switch to read-only data section" >&5
29237 echo $ECHO_N "checking how to switch to read-only data section... $ECHO_C" >&6
29238 if test "${gmp_cv_asm_rodata+set}" = set; then
29239 echo $ECHO_N "(cached) $ECHO_C" >&6
29243 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | x86_64-*-*)
29244 gmp_cv_asm_rodata="$gmp_cv_asm_data" ;;
29246 gmp_cv_asm_rodata="$gmp_cv_asm_text" ;;
29249 cat >conftest.c <<EOF
29250 const int foo = 123;
29252 echo "Test program:" >&5
29254 gmp_compile="$CC $CFLAGS $CPPFLAGS -S conftest.c >&5"
29255 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
29256 (eval $gmp_compile) 2>&5
29258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29259 (exit $ac_status); }; then
29260 echo "Compiler output:" >&5
29262 if test $gmp_cv_asm_underscore = yes; then
29267 # must see our label
29268 if grep "^${tmp_gsym_prefix}foo$gmp_cv_asm_label_suffix" conftest.s >/dev/null 2>&5; then
29269 # take the last directive before our label (hence skipping segments
29270 # getting debugging info etc)
29271 tmp_match=`sed -n "/^${tmp_gsym_prefix}foo$gmp_cv_asm_label_suffix/q
29277 /^[. ]*CSECT/p" conftest.s | sed -n '$p'`
29278 echo "Match: $tmp_match" >&5
29279 if test -n "$tmp_match"; then
29280 gmp_cv_asm_rodata=$tmp_match
29283 echo "Couldn't find label: ^${tmp_gsym_prefix}foo$gmp_cv_asm_label_suffix" >&5
29289 echo "$as_me:$LINENO: result: $gmp_cv_asm_rodata" >&5
29290 echo "${ECHO_T}$gmp_cv_asm_rodata" >&6
29291 echo "define(<RODATA>, <$gmp_cv_asm_rodata>)" >> $gmp_tmpconfigm4
29293 echo "$as_me:$LINENO: checking for assembler .type directive" >&5
29294 echo $ECHO_N "checking for assembler .type directive... $ECHO_C" >&6
29295 if test "${gmp_cv_asm_type+set}" = set; then
29296 echo $ECHO_N "(cached) $ECHO_C" >&6
29299 for gmp_tmp_prefix in @ \# %; do
29300 cat >conftest.s <<EOF
29301 .type sym,${gmp_tmp_prefix}function
29303 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
29304 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
29305 (eval $gmp_assemble) 2>&5
29307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29308 (exit $ac_status); }; then
29309 cat conftest.out >&5
29310 if grep "\.type pseudo-op used outside of \.def/\.endef ignored" conftest.out >/dev/null; then : ;
29312 gmp_cv_asm_type=".type \$1,${gmp_tmp_prefix}\$2"
29316 cat conftest.out >&5
29317 echo "configure: failed program was:" >&5
29327 echo "$as_me:$LINENO: result: $gmp_cv_asm_type" >&5
29328 echo "${ECHO_T}$gmp_cv_asm_type" >&6
29329 echo "define(<TYPE>, <$gmp_cv_asm_type>)" >> $gmp_tmpconfigm4
29331 echo "$as_me:$LINENO: checking for assembler .size directive" >&5
29332 echo $ECHO_N "checking for assembler .size directive... $ECHO_C" >&6
29333 if test "${gmp_cv_asm_size+set}" = set; then
29334 echo $ECHO_N "(cached) $ECHO_C" >&6
29337 cat >conftest.s <<EOF
29340 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
29341 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
29342 (eval $gmp_assemble) 2>&5
29344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29345 (exit $ac_status); }; then
29346 cat conftest.out >&5
29347 if grep "\.size pseudo-op used outside of \.def/\.endef ignored" conftest.out >/dev/null; then : ;
29349 gmp_cv_asm_size=".size \$1,\$2"
29352 cat conftest.out >&5
29353 echo "configure: failed program was:" >&5
29361 echo "$as_me:$LINENO: result: $gmp_cv_asm_size" >&5
29362 echo "${ECHO_T}$gmp_cv_asm_size" >&6
29363 echo "define(<SIZE>, <$gmp_cv_asm_size>)" >> $gmp_tmpconfigm4
29368 echo "$as_me:$LINENO: checking for assembler local label prefix" >&5
29369 echo $ECHO_N "checking for assembler local label prefix... $ECHO_C" >&6
29370 if test "${gmp_cv_asm_lsym_prefix+set}" = set; then
29371 echo $ECHO_N "(cached) $ECHO_C" >&6
29373 gmp_tmp_pre_appears=yes
29374 for gmp_tmp_pre in L .L $ L$; do
29375 echo "Trying $gmp_tmp_pre" >&5
29376 cat >conftest.s <<EOF
29378 dummy${gmp_cv_asm_label_suffix}
29379 ${gmp_tmp_pre}gurkmacka${gmp_cv_asm_label_suffix}
29381 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
29382 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
29383 (eval $gmp_assemble) 2>&5
29385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29386 (exit $ac_status); }; then
29387 cat conftest.out >&5
29388 if $NM conftest.$OBJEXT >conftest.nm 2>&5; then : ; else
29389 cat conftest.nm >&5
29390 { echo "$as_me:$LINENO: WARNING: \"$NM\" failure" >&5
29391 echo "$as_me: WARNING: \"$NM\" failure" >&2;}
29394 cat conftest.nm >&5
29395 if grep gurkmacka conftest.nm >/dev/null; then : ; else
29396 # no mention of the symbol, this is good
29397 echo "$gmp_tmp_pre label doesn't appear in object file at all (good)" >&5
29398 gmp_cv_asm_lsym_prefix="$gmp_tmp_pre"
29399 gmp_tmp_pre_appears=no
29402 if grep ' [a-zN] .*gurkmacka' conftest.nm >/dev/null; then
29403 # symbol mentioned as a local, use this if nothing better
29404 echo "$gmp_tmp_pre label is local but still in object file" >&5
29405 if test -z "$gmp_cv_asm_lsym_prefix"; then
29406 gmp_cv_asm_lsym_prefix="$gmp_tmp_pre"
29409 echo "$gmp_tmp_pre label is something unknown" >&5
29413 cat conftest.out >&5
29414 echo "configure: failed program was:" >&5
29422 if test -z "$gmp_cv_asm_lsym_prefix"; then
29423 gmp_cv_asm_lsym_prefix=L
29424 { echo "$as_me:$LINENO: WARNING: cannot determine local label, using default $gmp_cv_asm_lsym_prefix" >&5
29425 echo "$as_me: WARNING: cannot determine local label, using default $gmp_cv_asm_lsym_prefix" >&2;}
29427 # for development purposes, note whether we got a purely temporary local label
29428 echo "Local label appears in object files: $gmp_tmp_pre_appears" >&5
29431 echo "$as_me:$LINENO: result: $gmp_cv_asm_lsym_prefix" >&5
29432 echo "${ECHO_T}$gmp_cv_asm_lsym_prefix" >&6
29433 echo "define(<LSYM_PREFIX>, <${gmp_cv_asm_lsym_prefix}>)" >> $gmp_tmpconfigm4
29435 cat >>confdefs.h <<_ACEOF
29436 #define LSYM_PREFIX "$gmp_cv_asm_lsym_prefix"
29442 echo "$as_me:$LINENO: checking for assembler byte directive" >&5
29443 echo $ECHO_N "checking for assembler byte directive... $ECHO_C" >&6
29444 if test "${gmp_cv_asm_byte+set}" = set; then
29445 echo $ECHO_N "(cached) $ECHO_C" >&6
29447 for i in .byte data1; do
29448 echo "trying $i" >&5
29449 cat >conftest.s <<EOF
29454 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
29455 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
29456 (eval $gmp_assemble) 2>&5
29458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29459 (exit $ac_status); }; then
29460 cat conftest.out >&5
29465 cat conftest.out >&5
29466 echo "configure: failed program was:" >&5
29468 cat conftest.out >&5
29473 if test -z "$gmp_cv_asm_byte"; then
29474 { { echo "$as_me:$LINENO: error: Cannot determine how to emit a data byte" >&5
29475 echo "$as_me: error: Cannot determine how to emit a data byte" >&2;}
29476 { (exit 1); exit 1; }; }
29480 echo "$as_me:$LINENO: result: $gmp_cv_asm_byte" >&5
29481 echo "${ECHO_T}$gmp_cv_asm_byte" >&6
29488 echo "$as_me:$LINENO: checking how to define a 32-bit word" >&5
29489 echo $ECHO_N "checking how to define a 32-bit word... $ECHO_C" >&6
29490 if test "${gmp_cv_asm_w32+set}" = set; then
29491 echo $ECHO_N "(cached) $ECHO_C" >&6
29495 # FIXME: HPUX puts first symbol at 0x40000000, breaking our assumption
29496 # that it's at 0x0. We'll have to declare another symbol before the
29497 # .long/.word and look at the distance between the two symbols. The
29498 # only problem is that the sed expression(s) barfs (on Solaris, for
29499 # example) for the symbol with value 0. For now, HPUX uses .word.
29500 gmp_cv_asm_w32=".word"
29504 for gmp_tmp_op in .long .word data4; do
29505 cat >conftest.s <<EOF
29507 $gmp_cv_asm_globl foo
29509 foo$gmp_cv_asm_label_suffix
29512 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
29513 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
29514 (eval $gmp_assemble) 2>&5
29516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29517 (exit $ac_status); }; then
29518 cat conftest.out >&5
29519 gmp_tmp_val=`$NM conftest.$OBJEXT | grep foo | \
29520 sed -e 's;[[][0-9][]]\(.*\);\1;' -e 's;[^1-9]*\([0-9]*\).*;\1;'`
29521 if test "$gmp_tmp_val" = 4; then
29522 gmp_cv_asm_w32="$gmp_tmp_op"
29526 cat conftest.out >&5
29527 echo "configure: failed program was:" >&5
29537 if test -z "$gmp_cv_asm_w32"; then
29538 { { echo "$as_me:$LINENO: error: cannot determine how to define a 32-bit word" >&5
29539 echo "$as_me: error: cannot determine how to define a 32-bit word" >&2;}
29540 { (exit 1); exit 1; }; }
29544 echo "$as_me:$LINENO: result: $gmp_cv_asm_w32" >&5
29545 echo "${ECHO_T}$gmp_cv_asm_w32" >&6
29546 echo "define(<W32>, <$gmp_cv_asm_w32>)" >> $gmp_tmpconfigm4
29553 echo "$as_me:$LINENO: checking if .align assembly directive is logarithmic" >&5
29554 echo $ECHO_N "checking if .align assembly directive is logarithmic... $ECHO_C" >&6
29555 if test "${gmp_cv_asm_align_log+set}" = set; then
29556 echo $ECHO_N "(cached) $ECHO_C" >&6
29558 cat >conftest.s <<EOF
29561 $gmp_cv_asm_globl foo
29564 foo$gmp_cv_asm_label_suffix
29567 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
29568 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
29569 (eval $gmp_assemble) 2>&5
29571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29572 (exit $ac_status); }; then
29573 cat conftest.out >&5
29574 gmp_tmp_val=`$NM conftest.$OBJEXT | grep foo | \
29575 sed -e 's;[[][0-9][]]\(.*\);\1;' -e 's;[^1-9]*\([0-9]*\).*;\1;'`
29576 if test "$gmp_tmp_val" = "10" || test "$gmp_tmp_val" = "16"; then
29577 gmp_cv_asm_align_log=yes
29579 gmp_cv_asm_align_log=no
29582 cat conftest.out >&5
29583 echo "configure: failed program was:" >&5
29585 { { echo "$as_me:$LINENO: error: cannot assemble alignment test" >&5
29586 echo "$as_me: error: cannot assemble alignment test" >&2;}
29587 { (exit 1); exit 1; }; }
29592 echo "$as_me:$LINENO: result: $gmp_cv_asm_align_log" >&5
29593 echo "${ECHO_T}$gmp_cv_asm_align_log" >&6
29596 echo "define(<ALIGN_LOGARITHMIC>,<$gmp_cv_asm_align_log>)" >> $gmp_tmpconfigm4
29602 # for both pa32 and pa64
29604 echo "include_mpn(\`pa32/pa-defs.m4')" >> $gmp_tmpconfigm4i
29607 ia64*-*-* | itanium-*-* | itanium2-*-*)
29608 echo "$as_me:$LINENO: checking whether assembler .align padding is good" >&5
29609 echo $ECHO_N "checking whether assembler .align padding is good... $ECHO_C" >&6
29610 if test "${gmp_cv_asm_ia64_align_ok+set}" = set; then
29611 echo $ECHO_N "(cached) $ECHO_C" >&6
29613 cat >conftest.awk <<\EOF
29669 for (f = 2; f <= NF; f++)
29671 for (i = 0; i < 47; i++)
29676 for (i = 0; i < 48; i++)
29677 if (got[i] != want[i])
29693 cat >conftest.s <<EOF
29696 { .mmi; add r14 = r15, r16
29698 add r20 = r21, r22 ;; }
29700 { .mmi; add r23 = r24, r25
29702 add r29 = r30, r31 ;; }
29705 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
29706 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
29707 (eval $gmp_assemble) 2>&5
29709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29710 (exit $ac_status); }; then
29711 cat conftest.out >&5
29712 gmp_cv_asm_ia64_align_ok=`od -b conftest.$OBJEXT | $AWK -f conftest.awk`
29714 cat conftest.out >&5
29715 echo "configure: failed program was:" >&5
29717 { echo "$as_me:$LINENO: WARNING: oops, cannot compile test program" >&5
29718 echo "$as_me: WARNING: oops, cannot compile test program" >&2;}
29719 gmp_cv_asm_ia64_align_ok=yes
29725 echo "$as_me:$LINENO: result: $gmp_cv_asm_ia64_align_ok" >&5
29726 echo "${ECHO_T}$gmp_cv_asm_ia64_align_ok" >&6
29728 echo "define(<IA64_ALIGN_OK>, <\`$gmp_cv_asm_ia64_align_ok'>)" >> $gmp_tmpconfigm4
29732 m68k-*-* | m68[0-9][0-9][0-9]-*-*)
29734 echo "$as_me:$LINENO: checking assembler instruction and register style" >&5
29735 echo $ECHO_N "checking assembler instruction and register style... $ECHO_C" >&6
29736 if test "${gmp_cv_asm_m68k_instruction+set}" = set; then
29737 echo $ECHO_N "(cached) $ECHO_C" >&6
29739 for i in "addl %d0,%d1" "add.l %d0,%d1" "addl d0,d1" "add.l d0,d1"; do
29740 cat >conftest.s <<EOF
29744 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
29745 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
29746 (eval $gmp_assemble) 2>&5
29748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29749 (exit $ac_status); }; then
29750 cat conftest.out >&5
29751 gmp_cv_asm_m68k_instruction=$i
29755 cat conftest.out >&5
29756 echo "configure: failed program was:" >&5
29763 if test -z "$gmp_cv_asm_m68k_instruction"; then
29764 { { echo "$as_me:$LINENO: error: cannot determine assembler instruction and register style" >&5
29765 echo "$as_me: error: cannot determine assembler instruction and register style" >&2;}
29766 { (exit 1); exit 1; }; }
29770 echo "$as_me:$LINENO: result: $gmp_cv_asm_m68k_instruction" >&5
29771 echo "${ECHO_T}$gmp_cv_asm_m68k_instruction" >&6
29772 case $gmp_cv_asm_m68k_instruction in
29773 "addl d0,d1") want_dot_size=no; want_register_percent=no ;;
29774 "addl %d0,%d1") want_dot_size=no; want_register_percent=yes ;;
29775 "add.l d0,d1") want_dot_size=yes; want_register_percent=no ;;
29776 "add.l %d0,%d1") want_dot_size=yes; want_register_percent=yes ;;
29777 *) { { echo "$as_me:$LINENO: error: oops, unrecognised instruction and register style" >&5
29778 echo "$as_me: error: oops, unrecognised instruction and register style" >&2;}
29779 { (exit 1); exit 1; }; } ;;
29782 echo "define(<WANT_REGISTER_PERCENT>, <\`$want_register_percent'>)" >> $gmp_tmpconfigm4
29785 echo "define(<WANT_DOT_SIZE>, <\`$want_dot_size'>)" >> $gmp_tmpconfigm4
29790 echo "$as_me:$LINENO: checking assembler addressing style" >&5
29791 echo $ECHO_N "checking assembler addressing style... $ECHO_C" >&6
29792 if test "${gmp_cv_asm_m68k_addressing+set}" = set; then
29793 echo $ECHO_N "(cached) $ECHO_C" >&6
29795 case $gmp_cv_asm_m68k_instruction in
29796 addl*) movel=movel ;;
29797 add.l*) movel=move.l ;;
29798 *) { { echo "$as_me:$LINENO: error: oops, unrecognised gmp_cv_asm_m68k_instruction" >&5
29799 echo "$as_me: error: oops, unrecognised gmp_cv_asm_m68k_instruction" >&2;}
29800 { (exit 1); exit 1; }; } ;;
29802 case $gmp_cv_asm_m68k_instruction in
29803 *"%d0,%d1") dreg=%d0; areg=%a0 ;;
29804 *"d0,d1") dreg=d0; areg=a0 ;;
29805 *) { { echo "$as_me:$LINENO: error: oops, unrecognised gmp_cv_asm_m68k_instruction" >&5
29806 echo "$as_me: error: oops, unrecognised gmp_cv_asm_m68k_instruction" >&2;}
29807 { (exit 1); exit 1; }; } ;;
29809 cat >conftest.s <<EOF
29811 $movel $dreg, $areg@-
29813 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
29814 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
29815 (eval $gmp_assemble) 2>&5
29817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29818 (exit $ac_status); }; then
29819 cat conftest.out >&5
29820 gmp_cv_asm_m68k_addressing=mit
29822 cat conftest.out >&5
29823 echo "configure: failed program was:" >&5
29825 cat >conftest.s <<EOF
29827 $movel $dreg, -($areg)
29829 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
29830 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
29831 (eval $gmp_assemble) 2>&5
29833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29834 (exit $ac_status); }; then
29835 cat conftest.out >&5
29836 gmp_cv_asm_m68k_addressing=motorola
29838 cat conftest.out >&5
29839 echo "configure: failed program was:" >&5
29841 { { echo "$as_me:$LINENO: error: cannot determine assembler addressing style" >&5
29842 echo "$as_me: error: cannot determine assembler addressing style" >&2;}
29843 { (exit 1); exit 1; }; }
29852 echo "$as_me:$LINENO: result: $gmp_cv_asm_m68k_addressing" >&5
29853 echo "${ECHO_T}$gmp_cv_asm_m68k_addressing" >&6
29855 echo "define(<WANT_ADDRESSING>, <\`$gmp_cv_asm_m68k_addressing'>)" >> $gmp_tmpconfigm4
29859 echo "$as_me:$LINENO: checking assembler shortest branches" >&5
29860 echo $ECHO_N "checking assembler shortest branches... $ECHO_C" >&6
29861 if test "${gmp_cv_asm_m68k_branches+set}" = set; then
29862 echo $ECHO_N "(cached) $ECHO_C" >&6
29864 for i in jra jbra bra; do
29865 cat >conftest.s <<EOF
29867 foo$gmp_cv_asm_label_suffix
29870 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
29871 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
29872 (eval $gmp_assemble) 2>&5
29874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29875 (exit $ac_status); }; then
29876 cat conftest.out >&5
29877 gmp_cv_asm_m68k_branches=$i
29881 cat conftest.out >&5
29882 echo "configure: failed program was:" >&5
29889 if test -z "$gmp_cv_asm_m68k_branches"; then
29890 { { echo "$as_me:$LINENO: error: cannot determine assembler branching style" >&5
29891 echo "$as_me: error: cannot determine assembler branching style" >&2;}
29892 { (exit 1); exit 1; }; }
29896 echo "$as_me:$LINENO: result: $gmp_cv_asm_m68k_branches" >&5
29897 echo "${ECHO_T}$gmp_cv_asm_m68k_branches" >&6
29899 echo "define(<WANT_BRANCHES>, <\`$gmp_cv_asm_m68k_branches'>)" >> $gmp_tmpconfigm4
29903 powerpc*-*-* | power[3-9]-*-*)
29905 echo "$as_me:$LINENO: checking whether compiler output is PIC by default" >&5
29906 echo $ECHO_N "checking whether compiler output is PIC by default... $ECHO_C" >&6
29907 if test "${gmp_cv_asm_powerpc_pic+set}" = set; then
29908 echo $ECHO_N "(cached) $ECHO_C" >&6
29910 gmp_cv_asm_powerpc_pic=yes
29911 cat >conftest.c <<EOF
29913 int *bar() { return &foo; }
29915 echo "Test program:" >&5
29917 gmp_compile="$CC $CFLAGS $CPPFLAGS -S conftest.c >&5"
29918 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
29919 (eval $gmp_compile) 2>&5
29921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29922 (exit $ac_status); }; then
29923 echo "Compiler output:" >&5
29925 if grep 'foo@ha' conftest.s >/dev/null 2>&5; then
29926 gmp_cv_asm_powerpc_pic=no
29928 if grep 'ha16(_foo)' conftest.s >/dev/null 2>&5; then
29929 gmp_cv_asm_powerpc_pic=no
29935 echo "$as_me:$LINENO: result: $gmp_cv_asm_powerpc_pic" >&5
29936 echo "${ECHO_T}$gmp_cv_asm_powerpc_pic" >&6
29938 echo "define(<PIC_ALWAYS>,<$gmp_cv_asm_powerpc_pic>)" >> $gmp_tmpconfigm4
29942 echo "$as_me:$LINENO: checking if the assembler needs r on registers" >&5
29943 echo $ECHO_N "checking if the assembler needs r on registers... $ECHO_C" >&6
29944 if test "${gmp_cv_asm_powerpc_r_registers+set}" = set; then
29945 echo $ECHO_N "(cached) $ECHO_C" >&6
29947 cat >conftest.s <<EOF
29951 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
29952 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
29953 (eval $gmp_assemble) 2>&5
29955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29956 (exit $ac_status); }; then
29957 cat conftest.out >&5
29958 gmp_cv_asm_powerpc_r_registers=no
29960 cat conftest.out >&5
29961 echo "configure: failed program was:" >&5
29963 cat >conftest.s <<EOF
29967 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
29968 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
29969 (eval $gmp_assemble) 2>&5
29971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
29972 (exit $ac_status); }; then
29973 cat conftest.out >&5
29974 gmp_cv_asm_powerpc_r_registers=yes
29976 cat conftest.out >&5
29977 echo "configure: failed program was:" >&5
29979 { { echo "$as_me:$LINENO: error: neither \"mtctr 6\" nor \"mtctr r6\" works" >&5
29980 echo "$as_me: error: neither \"mtctr 6\" nor \"mtctr r6\" works" >&2;}
29981 { (exit 1); exit 1; }; }
29989 echo "$as_me:$LINENO: result: $gmp_cv_asm_powerpc_r_registers" >&5
29990 echo "${ECHO_T}$gmp_cv_asm_powerpc_r_registers" >&6
29993 echo "define(<WANT_R_REGISTERS>,<$gmp_cv_asm_powerpc_r_registers>)" >> $gmp_tmpconfigm4
29997 echo "include_mpn(\`powerpc32/powerpc-defs.m4')" >> $gmp_tmpconfigm4i
30003 echo "include_mpn(\`powerpc64/aix.m4')" >> $gmp_tmpconfigm4i
30006 echo "include_mpn(\`powerpc32/aix.m4')" >> $gmp_tmpconfigm4i
30010 *-*-linux* | *-*-*bsd*)
30013 echo "include_mpn(\`powerpc64/elf.m4')" >> $gmp_tmpconfigm4i
30016 echo "include_mpn(\`powerpc32/elf.m4')" >> $gmp_tmpconfigm4i
30023 echo "include_mpn(\`powerpc64/darwin.m4')" >> $gmp_tmpconfigm4i
30026 echo "include_mpn(\`powerpc32/darwin.m4')" >> $gmp_tmpconfigm4i
30031 # Assume unrecognized operating system is the powerpc eABI
30033 echo "include_mpn(\`powerpc32/eabi.m4')" >> $gmp_tmpconfigm4i
30040 echo "include_mpn(\`powerpc32/aix.m4')" >> $gmp_tmpconfigm4i
30043 sparcv9*-*-* | ultrasparc*-*-* | sparc64-*-*)
30047 echo "$as_me:$LINENO: checking if the assembler accepts \".register\"" >&5
30048 echo $ECHO_N "checking if the assembler accepts \".register\"... $ECHO_C" >&6
30049 if test "${gmp_cv_asm_sparc_register+set}" = set; then
30050 echo $ECHO_N "(cached) $ECHO_C" >&6
30052 cat >conftest.s <<EOF
30054 .register %g2,#scratch
30057 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
30058 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
30059 (eval $gmp_assemble) 2>&5
30061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30062 (exit $ac_status); }; then
30063 cat conftest.out >&5
30064 gmp_cv_asm_sparc_register=yes
30066 cat conftest.out >&5
30067 echo "configure: failed program was:" >&5
30069 gmp_cv_asm_sparc_register=no
30074 echo "$as_me:$LINENO: result: $gmp_cv_asm_sparc_register" >&5
30075 echo "${ECHO_T}$gmp_cv_asm_sparc_register" >&6
30078 echo "define(<HAVE_REGISTER>,<$gmp_cv_asm_sparc_register>)" >> $gmp_tmpconfigm4
30084 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | x86_64-*-*)
30086 echo "$as_me:$LINENO: checking if the .align directive accepts an 0x90 fill in .text" >&5
30087 echo $ECHO_N "checking if the .align directive accepts an 0x90 fill in .text... $ECHO_C" >&6
30088 if test "${gmp_cv_asm_align_fill_0x90+set}" = set; then
30089 echo $ECHO_N "(cached) $ECHO_C" >&6
30091 cat >conftest.s <<EOF
30097 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
30098 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
30099 (eval $gmp_assemble) 2>&5
30101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30102 (exit $ac_status); }; then
30103 cat conftest.out >&5
30104 if grep "Warning: Fill parameter ignored for executable section" conftest.out >/dev/null; then
30105 echo "Supressing this warning by omitting 0x90" 1>&5
30106 gmp_cv_asm_align_fill_0x90=no
30108 gmp_cv_asm_align_fill_0x90=yes
30111 cat conftest.out >&5
30112 echo "configure: failed program was:" >&5
30114 gmp_cv_asm_align_fill_0x90=no
30119 echo "$as_me:$LINENO: result: $gmp_cv_asm_align_fill_0x90" >&5
30120 echo "${ECHO_T}$gmp_cv_asm_align_fill_0x90" >&6
30123 echo "define(<ALIGN_FILL_0x90>,<$gmp_cv_asm_align_fill_0x90>)" >> $gmp_tmpconfigm4
30129 echo "include_mpn(\`x86/x86-defs.m4')" >> $gmp_tmpconfigm4i
30131 cat >>confdefs.h <<\_ACEOF
30132 #define HAVE_HOST_CPU_FAMILY_x86 1
30140 echo "$as_me:$LINENO: checking for assembler COFF type directives" >&5
30141 echo $ECHO_N "checking for assembler COFF type directives... $ECHO_C" >&6
30142 if test "${gmp_cv_asm_x86_coff_type+set}" = set; then
30143 echo $ECHO_N "(cached) $ECHO_C" >&6
30145 cat >conftest.s <<EOF
30147 $gmp_cv_asm_globl ${tmp_gsym_prefix}foo$gmp_cv_asm_globl_attr
30148 .def ${tmp_gsym_prefix}foo
30152 ${tmp_gsym_prefix}foo$gmp_cv_asm_label_suffix
30155 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
30156 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
30157 (eval $gmp_assemble) 2>&5
30159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30160 (exit $ac_status); }; then
30161 cat conftest.out >&5
30162 gmp_cv_asm_x86_coff_type=yes
30164 cat conftest.out >&5
30165 echo "configure: failed program was:" >&5
30167 gmp_cv_asm_x86_coff_type=no
30173 echo "$as_me:$LINENO: result: $gmp_cv_asm_x86_coff_type" >&5
30174 echo "${ECHO_T}$gmp_cv_asm_x86_coff_type" >&6
30175 echo "define(<HAVE_COFF_TYPE>, <$gmp_cv_asm_x86_coff_type>)" >> $gmp_tmpconfigm4
30183 echo "$as_me:$LINENO: checking if _GLOBAL_OFFSET_TABLE_ is prefixed by underscore" >&5
30184 echo $ECHO_N "checking if _GLOBAL_OFFSET_TABLE_ is prefixed by underscore... $ECHO_C" >&6
30185 if test "${gmp_cv_asm_x86_got_underscore+set}" = set; then
30186 echo $ECHO_N "(cached) $ECHO_C" >&6
30188 gmp_cv_asm_x86_got_underscore="not applicable"
30189 if test $gmp_cv_asm_underscore = yes; then
30194 for tmp_underscore in "" "_"; do
30195 cat >conftest.s <<EOF
30197 $gmp_cv_asm_globl ${tmp_gsym_prefix}main$gmp_cv_asm_globl_attr
30198 ${tmp_gsym_prefix}main$gmp_cv_asm_label_suffix
30199 addl $ ${tmp_underscore}_GLOBAL_OFFSET_TABLE_, %ebx
30201 gmp_compile="$CCAS $CFLAGS $CPPFLAGS $lt_prog_compiler_pic conftest.s >&5 && $CC $CFLAGS $CPPFLAGS $lt_prog_compiler_pic conftest.$OBJEXT >&5"
30202 if { (eval echo "$as_me:$LINENO: \"$gmp_compile\"") >&5
30203 (eval $gmp_compile) 2>&5
30205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30206 (exit $ac_status); }; then
30207 if test "$tmp_underscore" = "_"; then
30208 gmp_cv_asm_x86_got_underscore=yes
30210 gmp_cv_asm_x86_got_underscore=no
30215 rm -f conftest* a.out b.out a.exe a_out.exe
30218 echo "$as_me:$LINENO: result: $gmp_cv_asm_x86_got_underscore" >&5
30219 echo "${ECHO_T}$gmp_cv_asm_x86_got_underscore" >&6
30220 if test "$gmp_cv_asm_x86_got_underscore" = "yes"; then
30222 echo 'define(<GOT_GSYM_PREFIX>, <_>)' >>$gmp_tmpconfigm4
30226 echo 'define(<GOT_GSYM_PREFIX>, <>)' >>$gmp_tmpconfigm4
30231 echo "$as_me:$LINENO: checking if the assembler takes cl with shldl" >&5
30232 echo $ECHO_N "checking if the assembler takes cl with shldl... $ECHO_C" >&6
30233 if test "${gmp_cv_asm_x86_shldl_cl+set}" = set; then
30234 echo $ECHO_N "(cached) $ECHO_C" >&6
30236 cat >conftest.s <<EOF
30238 shldl %cl, %eax, %ebx
30240 gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1"
30241 if { (eval echo "$as_me:$LINENO: \"$gmp_assemble\"") >&5
30242 (eval $gmp_assemble) 2>&5
30244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30245 (exit $ac_status); }; then
30246 cat conftest.out >&5
30247 gmp_cv_asm_x86_shldl_cl=yes
30249 cat conftest.out >&5
30250 echo "configure: failed program was:" >&5
30252 gmp_cv_asm_x86_shldl_cl=no
30258 echo "$as_me:$LINENO: result: $gmp_cv_asm_x86_shldl_cl" >&5
30259 echo "${ECHO_T}$gmp_cv_asm_x86_shldl_cl" >&6
30260 if test "$gmp_cv_asm_x86_shldl_cl" = "yes"; then
30262 echo 'define(<WANT_SHLDL_CL>, <1>)' >>$gmp_tmpconfigm4
30266 echo 'define(<WANT_SHLDL_CL>, <0>)' >>$gmp_tmpconfigm4
30270 case $enable_profiling in
30273 echo "$as_me:$LINENO: checking how to call x86 mcount" >&5
30274 echo $ECHO_N "checking how to call x86 mcount... $ECHO_C" >&6
30275 cat >conftest.c <<EOF
30279 if test "$enable_static" = yes; then
30280 gmp_asmout_compile="$CC $CFLAGS $CPPFLAGS -S conftest.c 1>&5"
30281 if { (eval echo "$as_me:$LINENO: \"$gmp_asmout_compile\"") >&5
30282 (eval $gmp_asmout_compile) 2>&5
30284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30285 (exit $ac_status); }; then
30286 if grep '\.data' conftest.s >/dev/null; then
30287 mcount_nonpic_reg=`sed -n '/esp/!s/.*movl.*,\(%[a-z]*\).*$/\1/p' conftest.s`
30291 mcount_nonpic_call=`grep 'call.*mcount' conftest.s`
30292 if test -z "$mcount_nonpic_call"; then
30293 { { echo "$as_me:$LINENO: error: Cannot find mcount call for non-PIC" >&5
30294 echo "$as_me: error: Cannot find mcount call for non-PIC" >&2;}
30295 { (exit 1); exit 1; }; }
30298 { { echo "$as_me:$LINENO: error: Cannot compile test program for non-PIC" >&5
30299 echo "$as_me: error: Cannot compile test program for non-PIC" >&2;}
30300 { (exit 1); exit 1; }; }
30304 if test "$enable_shared" = yes; then
30305 gmp_asmout_compile="$CC $CFLAGS $CPPFLAGS $lt_prog_compiler_pic -S conftest.c 1>&5"
30306 if { (eval echo "$as_me:$LINENO: \"$gmp_asmout_compile\"") >&5
30307 (eval $gmp_asmout_compile) 2>&5
30309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30310 (exit $ac_status); }; then
30311 if grep '\.data' conftest.s >/dev/null; then
30312 case $lt_prog_compiler_pic in
30314 # Windows DLLs have non-PIC style mcount
30315 mcount_pic_reg=`sed -n '/esp/!s/.*movl.*,\(%[a-z]*\).*$/\1/p' conftest.s`
30318 mcount_pic_reg=`sed -n 's/.*GOTOFF.*,\(%[a-z]*\).*$/\1/p' conftest.s`
30324 mcount_pic_call=`grep 'call.*mcount' conftest.s`
30325 if test -z "$mcount_pic_call"; then
30326 { { echo "$as_me:$LINENO: error: Cannot find mcount call for PIC" >&5
30327 echo "$as_me: error: Cannot find mcount call for PIC" >&2;}
30328 { (exit 1); exit 1; }; }
30331 { { echo "$as_me:$LINENO: error: Cannot compile test program for PIC" >&5
30332 echo "$as_me: error: Cannot compile test program for PIC" >&2;}
30333 { (exit 1); exit 1; }; }
30338 echo "define(<MCOUNT_NONPIC_REG>, <\`$mcount_nonpic_reg'>)" >> $gmp_tmpconfigm4
30341 echo "define(<MCOUNT_NONPIC_CALL>,<\`$mcount_nonpic_call'>)" >> $gmp_tmpconfigm4
30344 echo "define(<MCOUNT_PIC_REG>, <\`$mcount_pic_reg'>)" >> $gmp_tmpconfigm4
30347 echo "define(<MCOUNT_PIC_CALL>, <\`$mcount_pic_call'>)" >> $gmp_tmpconfigm4
30351 echo "$as_me:$LINENO: result: determined" >&5
30352 echo "${ECHO_T}determined" >&6
30358 echo "include_mpn(\`x86_64/x86_64-defs.m4')" >> $gmp_tmpconfigm4i
30367 # Create link for gmp-mparam.h.
30369 for gmp_mparam_dir in $path; do
30370 test "$no_create" = yes || rm -f gmp-mparam.h
30371 tmp_file=$srcdir/mpn/$gmp_mparam_dir/gmp-mparam.h
30372 if test -f $tmp_file; then
30373 ac_config_links="$ac_config_links gmp-mparam.h:mpn/$gmp_mparam_dir/gmp-mparam.h"
30375 gmp_srclinks="$gmp_srclinks gmp-mparam.h"
30376 gmp_mparam_source=$tmp_file
30380 if test -z "$gmp_mparam_source"; then
30381 { { echo "$as_me:$LINENO: error: no version of gmp-mparam.h found in path: $path" >&5
30382 echo "$as_me: error: no version of gmp-mparam.h found in path: $path" >&2;}
30383 { (exit 1); exit 1; }; }
30386 # For a helpful message from tune/tuneup.c
30387 gmp_mparam_suggest=$gmp_mparam_source
30388 if test "$gmp_mparam_dir" = generic; then
30389 for i in $path; do break; done
30390 if test "$i" != generic; then
30391 gmp_mparam_suggest="new file $srcdir/mpn/$i/gmp-mparam.h"
30395 cat >>confdefs.h <<_ACEOF
30396 #define GMP_MPARAM_H_SUGGEST "$gmp_mparam_source"
30401 # Copy any SQR_KARATSUBA_THRESHOLD from gmp-mparam.h to config.m4.
30402 # Some versions of sqr_basecase.asm use this.
30403 # Fat binaries do this on a per-file basis, so skip in that case.
30405 if test -z "$fat_path"; then
30406 tmp_gmp_karatsuba_sqr_threshold=`sed -n 's/^#define SQR_KARATSUBA_THRESHOLD[ ]*\([0-9][0-9]*\).*$/\1/p' $gmp_mparam_source`
30407 if test -n "$tmp_gmp_karatsuba_sqr_threshold"; then
30409 echo "define(<SQR_KARATSUBA_THRESHOLD>,<$tmp_gmp_karatsuba_sqr_threshold>)" >> $gmp_tmpconfigm4
30415 # Sizes of some types, needed at preprocessing time.
30417 # FIXME: The assumption that BITS_PER_MP_LIMB is 8*sizeof(mp_limb_t) might
30418 # be slightly rash, but it's true everwhere we know of and ought to be true
30419 # of any sensible system. In a generic C build, grepping LONG_BIT out of
30420 # <limits.h> might be an alternative, for maximum portability.
30422 echo "$as_me:$LINENO: checking for unsigned short" >&5
30423 echo $ECHO_N "checking for unsigned short... $ECHO_C" >&6
30424 if test "${ac_cv_type_unsigned_short+set}" = set; then
30425 echo $ECHO_N "(cached) $ECHO_C" >&6
30427 cat >conftest.$ac_ext <<_ACEOF
30430 cat confdefs.h >>conftest.$ac_ext
30431 cat >>conftest.$ac_ext <<_ACEOF
30432 /* end confdefs.h. */
30433 $ac_includes_default
30437 if ((unsigned short *) 0)
30439 if (sizeof (unsigned short))
30445 rm -f conftest.$ac_objext
30446 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30447 (eval $ac_compile) 2>conftest.er1
30449 grep -v '^ *+' conftest.er1 >conftest.err
30451 cat conftest.err >&5
30452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30453 (exit $ac_status); } &&
30454 { ac_try='test -z "$ac_c_werror_flag"
30455 || test ! -s conftest.err'
30456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30457 (eval $ac_try) 2>&5
30459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30460 (exit $ac_status); }; } &&
30461 { ac_try='test -s conftest.$ac_objext'
30462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30463 (eval $ac_try) 2>&5
30465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30466 (exit $ac_status); }; }; then
30467 ac_cv_type_unsigned_short=yes
30469 echo "$as_me: failed program was:" >&5
30470 sed 's/^/| /' conftest.$ac_ext >&5
30472 ac_cv_type_unsigned_short=no
30474 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30476 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_short" >&5
30477 echo "${ECHO_T}$ac_cv_type_unsigned_short" >&6
30479 echo "$as_me:$LINENO: checking size of unsigned short" >&5
30480 echo $ECHO_N "checking size of unsigned short... $ECHO_C" >&6
30481 if test "${ac_cv_sizeof_unsigned_short+set}" = set; then
30482 echo $ECHO_N "(cached) $ECHO_C" >&6
30484 if test "$ac_cv_type_unsigned_short" = yes; then
30485 # The cast to unsigned long works around a bug in the HP C Compiler
30486 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
30487 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
30488 # This bug is HP SR number 8606223364.
30489 if test "$cross_compiling" = yes; then
30490 # Depending upon the size, compute the lo and hi bounds.
30491 cat >conftest.$ac_ext <<_ACEOF
30494 cat confdefs.h >>conftest.$ac_ext
30495 cat >>conftest.$ac_ext <<_ACEOF
30496 /* end confdefs.h. */
30497 $ac_includes_default
30501 static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) >= 0)];
30508 rm -f conftest.$ac_objext
30509 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30510 (eval $ac_compile) 2>conftest.er1
30512 grep -v '^ *+' conftest.er1 >conftest.err
30514 cat conftest.err >&5
30515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30516 (exit $ac_status); } &&
30517 { ac_try='test -z "$ac_c_werror_flag"
30518 || test ! -s conftest.err'
30519 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30520 (eval $ac_try) 2>&5
30522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30523 (exit $ac_status); }; } &&
30524 { ac_try='test -s conftest.$ac_objext'
30525 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30526 (eval $ac_try) 2>&5
30528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30529 (exit $ac_status); }; }; then
30532 cat >conftest.$ac_ext <<_ACEOF
30535 cat confdefs.h >>conftest.$ac_ext
30536 cat >>conftest.$ac_ext <<_ACEOF
30537 /* end confdefs.h. */
30538 $ac_includes_default
30542 static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) <= $ac_mid)];
30549 rm -f conftest.$ac_objext
30550 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30551 (eval $ac_compile) 2>conftest.er1
30553 grep -v '^ *+' conftest.er1 >conftest.err
30555 cat conftest.err >&5
30556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30557 (exit $ac_status); } &&
30558 { ac_try='test -z "$ac_c_werror_flag"
30559 || test ! -s conftest.err'
30560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30561 (eval $ac_try) 2>&5
30563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30564 (exit $ac_status); }; } &&
30565 { ac_try='test -s conftest.$ac_objext'
30566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30567 (eval $ac_try) 2>&5
30569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30570 (exit $ac_status); }; }; then
30571 ac_hi=$ac_mid; break
30573 echo "$as_me: failed program was:" >&5
30574 sed 's/^/| /' conftest.$ac_ext >&5
30576 ac_lo=`expr $ac_mid + 1`
30577 if test $ac_lo -le $ac_mid; then
30581 ac_mid=`expr 2 '*' $ac_mid + 1`
30583 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30586 echo "$as_me: failed program was:" >&5
30587 sed 's/^/| /' conftest.$ac_ext >&5
30589 cat >conftest.$ac_ext <<_ACEOF
30592 cat confdefs.h >>conftest.$ac_ext
30593 cat >>conftest.$ac_ext <<_ACEOF
30594 /* end confdefs.h. */
30595 $ac_includes_default
30599 static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) < 0)];
30606 rm -f conftest.$ac_objext
30607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30608 (eval $ac_compile) 2>conftest.er1
30610 grep -v '^ *+' conftest.er1 >conftest.err
30612 cat conftest.err >&5
30613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30614 (exit $ac_status); } &&
30615 { ac_try='test -z "$ac_c_werror_flag"
30616 || test ! -s conftest.err'
30617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30618 (eval $ac_try) 2>&5
30620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30621 (exit $ac_status); }; } &&
30622 { ac_try='test -s conftest.$ac_objext'
30623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30624 (eval $ac_try) 2>&5
30626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30627 (exit $ac_status); }; }; then
30630 cat >conftest.$ac_ext <<_ACEOF
30633 cat confdefs.h >>conftest.$ac_ext
30634 cat >>conftest.$ac_ext <<_ACEOF
30635 /* end confdefs.h. */
30636 $ac_includes_default
30640 static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) >= $ac_mid)];
30647 rm -f conftest.$ac_objext
30648 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30649 (eval $ac_compile) 2>conftest.er1
30651 grep -v '^ *+' conftest.er1 >conftest.err
30653 cat conftest.err >&5
30654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30655 (exit $ac_status); } &&
30656 { ac_try='test -z "$ac_c_werror_flag"
30657 || test ! -s conftest.err'
30658 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30659 (eval $ac_try) 2>&5
30661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30662 (exit $ac_status); }; } &&
30663 { ac_try='test -s conftest.$ac_objext'
30664 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30665 (eval $ac_try) 2>&5
30667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30668 (exit $ac_status); }; }; then
30669 ac_lo=$ac_mid; break
30671 echo "$as_me: failed program was:" >&5
30672 sed 's/^/| /' conftest.$ac_ext >&5
30674 ac_hi=`expr '(' $ac_mid ')' - 1`
30675 if test $ac_mid -le $ac_hi; then
30679 ac_mid=`expr 2 '*' $ac_mid`
30681 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30684 echo "$as_me: failed program was:" >&5
30685 sed 's/^/| /' conftest.$ac_ext >&5
30689 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30691 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30692 # Binary search between lo and hi bounds.
30693 while test "x$ac_lo" != "x$ac_hi"; do
30694 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
30695 cat >conftest.$ac_ext <<_ACEOF
30698 cat confdefs.h >>conftest.$ac_ext
30699 cat >>conftest.$ac_ext <<_ACEOF
30700 /* end confdefs.h. */
30701 $ac_includes_default
30705 static int test_array [1 - 2 * !(((long) (sizeof (unsigned short))) <= $ac_mid)];
30712 rm -f conftest.$ac_objext
30713 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30714 (eval $ac_compile) 2>conftest.er1
30716 grep -v '^ *+' conftest.er1 >conftest.err
30718 cat conftest.err >&5
30719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30720 (exit $ac_status); } &&
30721 { ac_try='test -z "$ac_c_werror_flag"
30722 || test ! -s conftest.err'
30723 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30724 (eval $ac_try) 2>&5
30726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30727 (exit $ac_status); }; } &&
30728 { ac_try='test -s conftest.$ac_objext'
30729 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30730 (eval $ac_try) 2>&5
30732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30733 (exit $ac_status); }; }; then
30736 echo "$as_me: failed program was:" >&5
30737 sed 's/^/| /' conftest.$ac_ext >&5
30739 ac_lo=`expr '(' $ac_mid ')' + 1`
30741 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30744 ?*) ac_cv_sizeof_unsigned_short=$ac_lo;;
30745 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short), 77
30746 See \`config.log' for more details." >&5
30747 echo "$as_me: error: cannot compute sizeof (unsigned short), 77
30748 See \`config.log' for more details." >&2;}
30749 { (exit 1); exit 1; }; } ;;
30752 if test "$cross_compiling" = yes; then
30753 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
30754 See \`config.log' for more details." >&5
30755 echo "$as_me: error: cannot run test program while cross compiling
30756 See \`config.log' for more details." >&2;}
30757 { (exit 1); exit 1; }; }
30759 cat >conftest.$ac_ext <<_ACEOF
30762 cat confdefs.h >>conftest.$ac_ext
30763 cat >>conftest.$ac_ext <<_ACEOF
30764 /* end confdefs.h. */
30765 $ac_includes_default
30766 long longval () { return (long) (sizeof (unsigned short)); }
30767 unsigned long ulongval () { return (long) (sizeof (unsigned short)); }
30769 #include <stdlib.h>
30774 FILE *f = fopen ("conftest.val", "w");
30777 if (((long) (sizeof (unsigned short))) < 0)
30779 long i = longval ();
30780 if (i != ((long) (sizeof (unsigned short))))
30782 fprintf (f, "%ld\n", i);
30786 unsigned long i = ulongval ();
30787 if (i != ((long) (sizeof (unsigned short))))
30789 fprintf (f, "%lu\n", i);
30791 exit (ferror (f) || fclose (f) != 0);
30797 rm -f conftest$ac_exeext
30798 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
30799 (eval $ac_link) 2>&5
30801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30802 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
30803 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30804 (eval $ac_try) 2>&5
30806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30807 (exit $ac_status); }; }; then
30808 ac_cv_sizeof_unsigned_short=`cat conftest.val`
30810 echo "$as_me: program exited with status $ac_status" >&5
30811 echo "$as_me: failed program was:" >&5
30812 sed 's/^/| /' conftest.$ac_ext >&5
30814 ( exit $ac_status )
30815 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned short), 77
30816 See \`config.log' for more details." >&5
30817 echo "$as_me: error: cannot compute sizeof (unsigned short), 77
30818 See \`config.log' for more details." >&2;}
30819 { (exit 1); exit 1; }; }
30821 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
30826 ac_cv_sizeof_unsigned_short=0
30829 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_short" >&5
30830 echo "${ECHO_T}$ac_cv_sizeof_unsigned_short" >&6
30831 cat >>confdefs.h <<_ACEOF
30832 #define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short
30836 echo "$as_me:$LINENO: checking for unsigned" >&5
30837 echo $ECHO_N "checking for unsigned... $ECHO_C" >&6
30838 if test "${ac_cv_type_unsigned+set}" = set; then
30839 echo $ECHO_N "(cached) $ECHO_C" >&6
30841 cat >conftest.$ac_ext <<_ACEOF
30844 cat confdefs.h >>conftest.$ac_ext
30845 cat >>conftest.$ac_ext <<_ACEOF
30846 /* end confdefs.h. */
30847 $ac_includes_default
30851 if ((unsigned *) 0)
30853 if (sizeof (unsigned))
30859 rm -f conftest.$ac_objext
30860 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30861 (eval $ac_compile) 2>conftest.er1
30863 grep -v '^ *+' conftest.er1 >conftest.err
30865 cat conftest.err >&5
30866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30867 (exit $ac_status); } &&
30868 { ac_try='test -z "$ac_c_werror_flag"
30869 || test ! -s conftest.err'
30870 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30871 (eval $ac_try) 2>&5
30873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30874 (exit $ac_status); }; } &&
30875 { ac_try='test -s conftest.$ac_objext'
30876 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30877 (eval $ac_try) 2>&5
30879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30880 (exit $ac_status); }; }; then
30881 ac_cv_type_unsigned=yes
30883 echo "$as_me: failed program was:" >&5
30884 sed 's/^/| /' conftest.$ac_ext >&5
30886 ac_cv_type_unsigned=no
30888 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
30890 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned" >&5
30891 echo "${ECHO_T}$ac_cv_type_unsigned" >&6
30893 echo "$as_me:$LINENO: checking size of unsigned" >&5
30894 echo $ECHO_N "checking size of unsigned... $ECHO_C" >&6
30895 if test "${ac_cv_sizeof_unsigned+set}" = set; then
30896 echo $ECHO_N "(cached) $ECHO_C" >&6
30898 if test "$ac_cv_type_unsigned" = yes; then
30899 # The cast to unsigned long works around a bug in the HP C Compiler
30900 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
30901 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
30902 # This bug is HP SR number 8606223364.
30903 if test "$cross_compiling" = yes; then
30904 # Depending upon the size, compute the lo and hi bounds.
30905 cat >conftest.$ac_ext <<_ACEOF
30908 cat confdefs.h >>conftest.$ac_ext
30909 cat >>conftest.$ac_ext <<_ACEOF
30910 /* end confdefs.h. */
30911 $ac_includes_default
30915 static int test_array [1 - 2 * !(((long) (sizeof (unsigned))) >= 0)];
30922 rm -f conftest.$ac_objext
30923 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30924 (eval $ac_compile) 2>conftest.er1
30926 grep -v '^ *+' conftest.er1 >conftest.err
30928 cat conftest.err >&5
30929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30930 (exit $ac_status); } &&
30931 { ac_try='test -z "$ac_c_werror_flag"
30932 || test ! -s conftest.err'
30933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30934 (eval $ac_try) 2>&5
30936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30937 (exit $ac_status); }; } &&
30938 { ac_try='test -s conftest.$ac_objext'
30939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30940 (eval $ac_try) 2>&5
30942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30943 (exit $ac_status); }; }; then
30946 cat >conftest.$ac_ext <<_ACEOF
30949 cat confdefs.h >>conftest.$ac_ext
30950 cat >>conftest.$ac_ext <<_ACEOF
30951 /* end confdefs.h. */
30952 $ac_includes_default
30956 static int test_array [1 - 2 * !(((long) (sizeof (unsigned))) <= $ac_mid)];
30963 rm -f conftest.$ac_objext
30964 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
30965 (eval $ac_compile) 2>conftest.er1
30967 grep -v '^ *+' conftest.er1 >conftest.err
30969 cat conftest.err >&5
30970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30971 (exit $ac_status); } &&
30972 { ac_try='test -z "$ac_c_werror_flag"
30973 || test ! -s conftest.err'
30974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30975 (eval $ac_try) 2>&5
30977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30978 (exit $ac_status); }; } &&
30979 { ac_try='test -s conftest.$ac_objext'
30980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
30981 (eval $ac_try) 2>&5
30983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
30984 (exit $ac_status); }; }; then
30985 ac_hi=$ac_mid; break
30987 echo "$as_me: failed program was:" >&5
30988 sed 's/^/| /' conftest.$ac_ext >&5
30990 ac_lo=`expr $ac_mid + 1`
30991 if test $ac_lo -le $ac_mid; then
30995 ac_mid=`expr 2 '*' $ac_mid + 1`
30997 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31000 echo "$as_me: failed program was:" >&5
31001 sed 's/^/| /' conftest.$ac_ext >&5
31003 cat >conftest.$ac_ext <<_ACEOF
31006 cat confdefs.h >>conftest.$ac_ext
31007 cat >>conftest.$ac_ext <<_ACEOF
31008 /* end confdefs.h. */
31009 $ac_includes_default
31013 static int test_array [1 - 2 * !(((long) (sizeof (unsigned))) < 0)];
31020 rm -f conftest.$ac_objext
31021 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31022 (eval $ac_compile) 2>conftest.er1
31024 grep -v '^ *+' conftest.er1 >conftest.err
31026 cat conftest.err >&5
31027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31028 (exit $ac_status); } &&
31029 { ac_try='test -z "$ac_c_werror_flag"
31030 || test ! -s conftest.err'
31031 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31032 (eval $ac_try) 2>&5
31034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31035 (exit $ac_status); }; } &&
31036 { ac_try='test -s conftest.$ac_objext'
31037 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31038 (eval $ac_try) 2>&5
31040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31041 (exit $ac_status); }; }; then
31044 cat >conftest.$ac_ext <<_ACEOF
31047 cat confdefs.h >>conftest.$ac_ext
31048 cat >>conftest.$ac_ext <<_ACEOF
31049 /* end confdefs.h. */
31050 $ac_includes_default
31054 static int test_array [1 - 2 * !(((long) (sizeof (unsigned))) >= $ac_mid)];
31061 rm -f conftest.$ac_objext
31062 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31063 (eval $ac_compile) 2>conftest.er1
31065 grep -v '^ *+' conftest.er1 >conftest.err
31067 cat conftest.err >&5
31068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31069 (exit $ac_status); } &&
31070 { ac_try='test -z "$ac_c_werror_flag"
31071 || test ! -s conftest.err'
31072 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31073 (eval $ac_try) 2>&5
31075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31076 (exit $ac_status); }; } &&
31077 { ac_try='test -s conftest.$ac_objext'
31078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31079 (eval $ac_try) 2>&5
31081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31082 (exit $ac_status); }; }; then
31083 ac_lo=$ac_mid; break
31085 echo "$as_me: failed program was:" >&5
31086 sed 's/^/| /' conftest.$ac_ext >&5
31088 ac_hi=`expr '(' $ac_mid ')' - 1`
31089 if test $ac_mid -le $ac_hi; then
31093 ac_mid=`expr 2 '*' $ac_mid`
31095 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31098 echo "$as_me: failed program was:" >&5
31099 sed 's/^/| /' conftest.$ac_ext >&5
31103 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31105 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31106 # Binary search between lo and hi bounds.
31107 while test "x$ac_lo" != "x$ac_hi"; do
31108 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
31109 cat >conftest.$ac_ext <<_ACEOF
31112 cat confdefs.h >>conftest.$ac_ext
31113 cat >>conftest.$ac_ext <<_ACEOF
31114 /* end confdefs.h. */
31115 $ac_includes_default
31119 static int test_array [1 - 2 * !(((long) (sizeof (unsigned))) <= $ac_mid)];
31126 rm -f conftest.$ac_objext
31127 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31128 (eval $ac_compile) 2>conftest.er1
31130 grep -v '^ *+' conftest.er1 >conftest.err
31132 cat conftest.err >&5
31133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31134 (exit $ac_status); } &&
31135 { ac_try='test -z "$ac_c_werror_flag"
31136 || test ! -s conftest.err'
31137 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31138 (eval $ac_try) 2>&5
31140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31141 (exit $ac_status); }; } &&
31142 { ac_try='test -s conftest.$ac_objext'
31143 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31144 (eval $ac_try) 2>&5
31146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31147 (exit $ac_status); }; }; then
31150 echo "$as_me: failed program was:" >&5
31151 sed 's/^/| /' conftest.$ac_ext >&5
31153 ac_lo=`expr '(' $ac_mid ')' + 1`
31155 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31158 ?*) ac_cv_sizeof_unsigned=$ac_lo;;
31159 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned), 77
31160 See \`config.log' for more details." >&5
31161 echo "$as_me: error: cannot compute sizeof (unsigned), 77
31162 See \`config.log' for more details." >&2;}
31163 { (exit 1); exit 1; }; } ;;
31166 if test "$cross_compiling" = yes; then
31167 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
31168 See \`config.log' for more details." >&5
31169 echo "$as_me: error: cannot run test program while cross compiling
31170 See \`config.log' for more details." >&2;}
31171 { (exit 1); exit 1; }; }
31173 cat >conftest.$ac_ext <<_ACEOF
31176 cat confdefs.h >>conftest.$ac_ext
31177 cat >>conftest.$ac_ext <<_ACEOF
31178 /* end confdefs.h. */
31179 $ac_includes_default
31180 long longval () { return (long) (sizeof (unsigned)); }
31181 unsigned long ulongval () { return (long) (sizeof (unsigned)); }
31183 #include <stdlib.h>
31188 FILE *f = fopen ("conftest.val", "w");
31191 if (((long) (sizeof (unsigned))) < 0)
31193 long i = longval ();
31194 if (i != ((long) (sizeof (unsigned))))
31196 fprintf (f, "%ld\n", i);
31200 unsigned long i = ulongval ();
31201 if (i != ((long) (sizeof (unsigned))))
31203 fprintf (f, "%lu\n", i);
31205 exit (ferror (f) || fclose (f) != 0);
31211 rm -f conftest$ac_exeext
31212 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31213 (eval $ac_link) 2>&5
31215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31216 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31218 (eval $ac_try) 2>&5
31220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31221 (exit $ac_status); }; }; then
31222 ac_cv_sizeof_unsigned=`cat conftest.val`
31224 echo "$as_me: program exited with status $ac_status" >&5
31225 echo "$as_me: failed program was:" >&5
31226 sed 's/^/| /' conftest.$ac_ext >&5
31228 ( exit $ac_status )
31229 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned), 77
31230 See \`config.log' for more details." >&5
31231 echo "$as_me: error: cannot compute sizeof (unsigned), 77
31232 See \`config.log' for more details." >&2;}
31233 { (exit 1); exit 1; }; }
31235 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31240 ac_cv_sizeof_unsigned=0
31243 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned" >&5
31244 echo "${ECHO_T}$ac_cv_sizeof_unsigned" >&6
31245 cat >>confdefs.h <<_ACEOF
31246 #define SIZEOF_UNSIGNED $ac_cv_sizeof_unsigned
31250 echo "$as_me:$LINENO: checking for unsigned long" >&5
31251 echo $ECHO_N "checking for unsigned long... $ECHO_C" >&6
31252 if test "${ac_cv_type_unsigned_long+set}" = set; then
31253 echo $ECHO_N "(cached) $ECHO_C" >&6
31255 cat >conftest.$ac_ext <<_ACEOF
31258 cat confdefs.h >>conftest.$ac_ext
31259 cat >>conftest.$ac_ext <<_ACEOF
31260 /* end confdefs.h. */
31261 $ac_includes_default
31265 if ((unsigned long *) 0)
31267 if (sizeof (unsigned long))
31273 rm -f conftest.$ac_objext
31274 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31275 (eval $ac_compile) 2>conftest.er1
31277 grep -v '^ *+' conftest.er1 >conftest.err
31279 cat conftest.err >&5
31280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31281 (exit $ac_status); } &&
31282 { ac_try='test -z "$ac_c_werror_flag"
31283 || test ! -s conftest.err'
31284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31285 (eval $ac_try) 2>&5
31287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31288 (exit $ac_status); }; } &&
31289 { ac_try='test -s conftest.$ac_objext'
31290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31291 (eval $ac_try) 2>&5
31293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31294 (exit $ac_status); }; }; then
31295 ac_cv_type_unsigned_long=yes
31297 echo "$as_me: failed program was:" >&5
31298 sed 's/^/| /' conftest.$ac_ext >&5
31300 ac_cv_type_unsigned_long=no
31302 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31304 echo "$as_me:$LINENO: result: $ac_cv_type_unsigned_long" >&5
31305 echo "${ECHO_T}$ac_cv_type_unsigned_long" >&6
31307 echo "$as_me:$LINENO: checking size of unsigned long" >&5
31308 echo $ECHO_N "checking size of unsigned long... $ECHO_C" >&6
31309 if test "${ac_cv_sizeof_unsigned_long+set}" = set; then
31310 echo $ECHO_N "(cached) $ECHO_C" >&6
31312 if test "$ac_cv_type_unsigned_long" = yes; then
31313 # The cast to unsigned long works around a bug in the HP C Compiler
31314 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
31315 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
31316 # This bug is HP SR number 8606223364.
31317 if test "$cross_compiling" = yes; then
31318 # Depending upon the size, compute the lo and hi bounds.
31319 cat >conftest.$ac_ext <<_ACEOF
31322 cat confdefs.h >>conftest.$ac_ext
31323 cat >>conftest.$ac_ext <<_ACEOF
31324 /* end confdefs.h. */
31325 $ac_includes_default
31329 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= 0)];
31336 rm -f conftest.$ac_objext
31337 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31338 (eval $ac_compile) 2>conftest.er1
31340 grep -v '^ *+' conftest.er1 >conftest.err
31342 cat conftest.err >&5
31343 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31344 (exit $ac_status); } &&
31345 { ac_try='test -z "$ac_c_werror_flag"
31346 || test ! -s conftest.err'
31347 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31348 (eval $ac_try) 2>&5
31350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31351 (exit $ac_status); }; } &&
31352 { ac_try='test -s conftest.$ac_objext'
31353 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31354 (eval $ac_try) 2>&5
31356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31357 (exit $ac_status); }; }; then
31360 cat >conftest.$ac_ext <<_ACEOF
31363 cat confdefs.h >>conftest.$ac_ext
31364 cat >>conftest.$ac_ext <<_ACEOF
31365 /* end confdefs.h. */
31366 $ac_includes_default
31370 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
31377 rm -f conftest.$ac_objext
31378 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31379 (eval $ac_compile) 2>conftest.er1
31381 grep -v '^ *+' conftest.er1 >conftest.err
31383 cat conftest.err >&5
31384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31385 (exit $ac_status); } &&
31386 { ac_try='test -z "$ac_c_werror_flag"
31387 || test ! -s conftest.err'
31388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31389 (eval $ac_try) 2>&5
31391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31392 (exit $ac_status); }; } &&
31393 { ac_try='test -s conftest.$ac_objext'
31394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31395 (eval $ac_try) 2>&5
31397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31398 (exit $ac_status); }; }; then
31399 ac_hi=$ac_mid; break
31401 echo "$as_me: failed program was:" >&5
31402 sed 's/^/| /' conftest.$ac_ext >&5
31404 ac_lo=`expr $ac_mid + 1`
31405 if test $ac_lo -le $ac_mid; then
31409 ac_mid=`expr 2 '*' $ac_mid + 1`
31411 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31414 echo "$as_me: failed program was:" >&5
31415 sed 's/^/| /' conftest.$ac_ext >&5
31417 cat >conftest.$ac_ext <<_ACEOF
31420 cat confdefs.h >>conftest.$ac_ext
31421 cat >>conftest.$ac_ext <<_ACEOF
31422 /* end confdefs.h. */
31423 $ac_includes_default
31427 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) < 0)];
31434 rm -f conftest.$ac_objext
31435 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31436 (eval $ac_compile) 2>conftest.er1
31438 grep -v '^ *+' conftest.er1 >conftest.err
31440 cat conftest.err >&5
31441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31442 (exit $ac_status); } &&
31443 { ac_try='test -z "$ac_c_werror_flag"
31444 || test ! -s conftest.err'
31445 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31446 (eval $ac_try) 2>&5
31448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31449 (exit $ac_status); }; } &&
31450 { ac_try='test -s conftest.$ac_objext'
31451 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31452 (eval $ac_try) 2>&5
31454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31455 (exit $ac_status); }; }; then
31458 cat >conftest.$ac_ext <<_ACEOF
31461 cat confdefs.h >>conftest.$ac_ext
31462 cat >>conftest.$ac_ext <<_ACEOF
31463 /* end confdefs.h. */
31464 $ac_includes_default
31468 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) >= $ac_mid)];
31475 rm -f conftest.$ac_objext
31476 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31477 (eval $ac_compile) 2>conftest.er1
31479 grep -v '^ *+' conftest.er1 >conftest.err
31481 cat conftest.err >&5
31482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31483 (exit $ac_status); } &&
31484 { ac_try='test -z "$ac_c_werror_flag"
31485 || test ! -s conftest.err'
31486 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31487 (eval $ac_try) 2>&5
31489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31490 (exit $ac_status); }; } &&
31491 { ac_try='test -s conftest.$ac_objext'
31492 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31493 (eval $ac_try) 2>&5
31495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31496 (exit $ac_status); }; }; then
31497 ac_lo=$ac_mid; break
31499 echo "$as_me: failed program was:" >&5
31500 sed 's/^/| /' conftest.$ac_ext >&5
31502 ac_hi=`expr '(' $ac_mid ')' - 1`
31503 if test $ac_mid -le $ac_hi; then
31507 ac_mid=`expr 2 '*' $ac_mid`
31509 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31512 echo "$as_me: failed program was:" >&5
31513 sed 's/^/| /' conftest.$ac_ext >&5
31517 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31519 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31520 # Binary search between lo and hi bounds.
31521 while test "x$ac_lo" != "x$ac_hi"; do
31522 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
31523 cat >conftest.$ac_ext <<_ACEOF
31526 cat confdefs.h >>conftest.$ac_ext
31527 cat >>conftest.$ac_ext <<_ACEOF
31528 /* end confdefs.h. */
31529 $ac_includes_default
31533 static int test_array [1 - 2 * !(((long) (sizeof (unsigned long))) <= $ac_mid)];
31540 rm -f conftest.$ac_objext
31541 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31542 (eval $ac_compile) 2>conftest.er1
31544 grep -v '^ *+' conftest.er1 >conftest.err
31546 cat conftest.err >&5
31547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31548 (exit $ac_status); } &&
31549 { ac_try='test -z "$ac_c_werror_flag"
31550 || test ! -s conftest.err'
31551 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31552 (eval $ac_try) 2>&5
31554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31555 (exit $ac_status); }; } &&
31556 { ac_try='test -s conftest.$ac_objext'
31557 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31558 (eval $ac_try) 2>&5
31560 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31561 (exit $ac_status); }; }; then
31564 echo "$as_me: failed program was:" >&5
31565 sed 's/^/| /' conftest.$ac_ext >&5
31567 ac_lo=`expr '(' $ac_mid ')' + 1`
31569 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31572 ?*) ac_cv_sizeof_unsigned_long=$ac_lo;;
31573 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
31574 See \`config.log' for more details." >&5
31575 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
31576 See \`config.log' for more details." >&2;}
31577 { (exit 1); exit 1; }; } ;;
31580 if test "$cross_compiling" = yes; then
31581 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
31582 See \`config.log' for more details." >&5
31583 echo "$as_me: error: cannot run test program while cross compiling
31584 See \`config.log' for more details." >&2;}
31585 { (exit 1); exit 1; }; }
31587 cat >conftest.$ac_ext <<_ACEOF
31590 cat confdefs.h >>conftest.$ac_ext
31591 cat >>conftest.$ac_ext <<_ACEOF
31592 /* end confdefs.h. */
31593 $ac_includes_default
31594 long longval () { return (long) (sizeof (unsigned long)); }
31595 unsigned long ulongval () { return (long) (sizeof (unsigned long)); }
31597 #include <stdlib.h>
31602 FILE *f = fopen ("conftest.val", "w");
31605 if (((long) (sizeof (unsigned long))) < 0)
31607 long i = longval ();
31608 if (i != ((long) (sizeof (unsigned long))))
31610 fprintf (f, "%ld\n", i);
31614 unsigned long i = ulongval ();
31615 if (i != ((long) (sizeof (unsigned long))))
31617 fprintf (f, "%lu\n", i);
31619 exit (ferror (f) || fclose (f) != 0);
31625 rm -f conftest$ac_exeext
31626 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
31627 (eval $ac_link) 2>&5
31629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31630 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
31631 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31632 (eval $ac_try) 2>&5
31634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31635 (exit $ac_status); }; }; then
31636 ac_cv_sizeof_unsigned_long=`cat conftest.val`
31638 echo "$as_me: program exited with status $ac_status" >&5
31639 echo "$as_me: failed program was:" >&5
31640 sed 's/^/| /' conftest.$ac_ext >&5
31642 ( exit $ac_status )
31643 { { echo "$as_me:$LINENO: error: cannot compute sizeof (unsigned long), 77
31644 See \`config.log' for more details." >&5
31645 echo "$as_me: error: cannot compute sizeof (unsigned long), 77
31646 See \`config.log' for more details." >&2;}
31647 { (exit 1); exit 1; }; }
31649 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
31654 ac_cv_sizeof_unsigned_long=0
31657 echo "$as_me:$LINENO: result: $ac_cv_sizeof_unsigned_long" >&5
31658 echo "${ECHO_T}$ac_cv_sizeof_unsigned_long" >&6
31659 cat >>confdefs.h <<_ACEOF
31660 #define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long
31664 echo "$as_me:$LINENO: checking for mp_limb_t" >&5
31665 echo $ECHO_N "checking for mp_limb_t... $ECHO_C" >&6
31666 if test "${ac_cv_type_mp_limb_t+set}" = set; then
31667 echo $ECHO_N "(cached) $ECHO_C" >&6
31669 cat >conftest.$ac_ext <<_ACEOF
31672 cat confdefs.h >>conftest.$ac_ext
31673 cat >>conftest.$ac_ext <<_ACEOF
31674 /* end confdefs.h. */
31675 #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
31676 #define GMP_NAIL_BITS $GMP_NAIL_BITS
31677 #define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */
31678 #define GMP_LIMB_BITS 123
31679 $DEFN_LONG_LONG_LIMB
31680 #include "$srcdir/gmp-h.in"
31686 if ((mp_limb_t *) 0)
31688 if (sizeof (mp_limb_t))
31694 rm -f conftest.$ac_objext
31695 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31696 (eval $ac_compile) 2>conftest.er1
31698 grep -v '^ *+' conftest.er1 >conftest.err
31700 cat conftest.err >&5
31701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31702 (exit $ac_status); } &&
31703 { ac_try='test -z "$ac_c_werror_flag"
31704 || test ! -s conftest.err'
31705 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31706 (eval $ac_try) 2>&5
31708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31709 (exit $ac_status); }; } &&
31710 { ac_try='test -s conftest.$ac_objext'
31711 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31712 (eval $ac_try) 2>&5
31714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31715 (exit $ac_status); }; }; then
31716 ac_cv_type_mp_limb_t=yes
31718 echo "$as_me: failed program was:" >&5
31719 sed 's/^/| /' conftest.$ac_ext >&5
31721 ac_cv_type_mp_limb_t=no
31723 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31725 echo "$as_me:$LINENO: result: $ac_cv_type_mp_limb_t" >&5
31726 echo "${ECHO_T}$ac_cv_type_mp_limb_t" >&6
31728 echo "$as_me:$LINENO: checking size of mp_limb_t" >&5
31729 echo $ECHO_N "checking size of mp_limb_t... $ECHO_C" >&6
31730 if test "${ac_cv_sizeof_mp_limb_t+set}" = set; then
31731 echo $ECHO_N "(cached) $ECHO_C" >&6
31733 if test "$ac_cv_type_mp_limb_t" = yes; then
31734 # The cast to unsigned long works around a bug in the HP C Compiler
31735 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
31736 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
31737 # This bug is HP SR number 8606223364.
31738 if test "$cross_compiling" = yes; then
31739 # Depending upon the size, compute the lo and hi bounds.
31740 cat >conftest.$ac_ext <<_ACEOF
31743 cat confdefs.h >>conftest.$ac_ext
31744 cat >>conftest.$ac_ext <<_ACEOF
31745 /* end confdefs.h. */
31746 #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
31747 #define GMP_NAIL_BITS $GMP_NAIL_BITS
31748 #define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */
31749 #define GMP_LIMB_BITS 123
31750 $DEFN_LONG_LONG_LIMB
31751 #include "$srcdir/gmp-h.in"
31757 static int test_array [1 - 2 * !(((long) (sizeof (mp_limb_t))) >= 0)];
31764 rm -f conftest.$ac_objext
31765 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31766 (eval $ac_compile) 2>conftest.er1
31768 grep -v '^ *+' conftest.er1 >conftest.err
31770 cat conftest.err >&5
31771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31772 (exit $ac_status); } &&
31773 { ac_try='test -z "$ac_c_werror_flag"
31774 || test ! -s conftest.err'
31775 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31776 (eval $ac_try) 2>&5
31778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31779 (exit $ac_status); }; } &&
31780 { ac_try='test -s conftest.$ac_objext'
31781 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31782 (eval $ac_try) 2>&5
31784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31785 (exit $ac_status); }; }; then
31788 cat >conftest.$ac_ext <<_ACEOF
31791 cat confdefs.h >>conftest.$ac_ext
31792 cat >>conftest.$ac_ext <<_ACEOF
31793 /* end confdefs.h. */
31794 #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
31795 #define GMP_NAIL_BITS $GMP_NAIL_BITS
31796 #define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */
31797 #define GMP_LIMB_BITS 123
31798 $DEFN_LONG_LONG_LIMB
31799 #include "$srcdir/gmp-h.in"
31805 static int test_array [1 - 2 * !(((long) (sizeof (mp_limb_t))) <= $ac_mid)];
31812 rm -f conftest.$ac_objext
31813 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31814 (eval $ac_compile) 2>conftest.er1
31816 grep -v '^ *+' conftest.er1 >conftest.err
31818 cat conftest.err >&5
31819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31820 (exit $ac_status); } &&
31821 { ac_try='test -z "$ac_c_werror_flag"
31822 || test ! -s conftest.err'
31823 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31824 (eval $ac_try) 2>&5
31826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31827 (exit $ac_status); }; } &&
31828 { ac_try='test -s conftest.$ac_objext'
31829 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31830 (eval $ac_try) 2>&5
31832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31833 (exit $ac_status); }; }; then
31834 ac_hi=$ac_mid; break
31836 echo "$as_me: failed program was:" >&5
31837 sed 's/^/| /' conftest.$ac_ext >&5
31839 ac_lo=`expr $ac_mid + 1`
31840 if test $ac_lo -le $ac_mid; then
31844 ac_mid=`expr 2 '*' $ac_mid + 1`
31846 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31849 echo "$as_me: failed program was:" >&5
31850 sed 's/^/| /' conftest.$ac_ext >&5
31852 cat >conftest.$ac_ext <<_ACEOF
31855 cat confdefs.h >>conftest.$ac_ext
31856 cat >>conftest.$ac_ext <<_ACEOF
31857 /* end confdefs.h. */
31858 #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
31859 #define GMP_NAIL_BITS $GMP_NAIL_BITS
31860 #define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */
31861 #define GMP_LIMB_BITS 123
31862 $DEFN_LONG_LONG_LIMB
31863 #include "$srcdir/gmp-h.in"
31869 static int test_array [1 - 2 * !(((long) (sizeof (mp_limb_t))) < 0)];
31876 rm -f conftest.$ac_objext
31877 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31878 (eval $ac_compile) 2>conftest.er1
31880 grep -v '^ *+' conftest.er1 >conftest.err
31882 cat conftest.err >&5
31883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31884 (exit $ac_status); } &&
31885 { ac_try='test -z "$ac_c_werror_flag"
31886 || test ! -s conftest.err'
31887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31888 (eval $ac_try) 2>&5
31890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31891 (exit $ac_status); }; } &&
31892 { ac_try='test -s conftest.$ac_objext'
31893 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31894 (eval $ac_try) 2>&5
31896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31897 (exit $ac_status); }; }; then
31900 cat >conftest.$ac_ext <<_ACEOF
31903 cat confdefs.h >>conftest.$ac_ext
31904 cat >>conftest.$ac_ext <<_ACEOF
31905 /* end confdefs.h. */
31906 #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
31907 #define GMP_NAIL_BITS $GMP_NAIL_BITS
31908 #define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */
31909 #define GMP_LIMB_BITS 123
31910 $DEFN_LONG_LONG_LIMB
31911 #include "$srcdir/gmp-h.in"
31917 static int test_array [1 - 2 * !(((long) (sizeof (mp_limb_t))) >= $ac_mid)];
31924 rm -f conftest.$ac_objext
31925 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31926 (eval $ac_compile) 2>conftest.er1
31928 grep -v '^ *+' conftest.er1 >conftest.err
31930 cat conftest.err >&5
31931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31932 (exit $ac_status); } &&
31933 { ac_try='test -z "$ac_c_werror_flag"
31934 || test ! -s conftest.err'
31935 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31936 (eval $ac_try) 2>&5
31938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31939 (exit $ac_status); }; } &&
31940 { ac_try='test -s conftest.$ac_objext'
31941 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
31942 (eval $ac_try) 2>&5
31944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
31945 (exit $ac_status); }; }; then
31946 ac_lo=$ac_mid; break
31948 echo "$as_me: failed program was:" >&5
31949 sed 's/^/| /' conftest.$ac_ext >&5
31951 ac_hi=`expr '(' $ac_mid ')' - 1`
31952 if test $ac_mid -le $ac_hi; then
31956 ac_mid=`expr 2 '*' $ac_mid`
31958 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31961 echo "$as_me: failed program was:" >&5
31962 sed 's/^/| /' conftest.$ac_ext >&5
31966 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31968 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
31969 # Binary search between lo and hi bounds.
31970 while test "x$ac_lo" != "x$ac_hi"; do
31971 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo`
31972 cat >conftest.$ac_ext <<_ACEOF
31975 cat confdefs.h >>conftest.$ac_ext
31976 cat >>conftest.$ac_ext <<_ACEOF
31977 /* end confdefs.h. */
31978 #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
31979 #define GMP_NAIL_BITS $GMP_NAIL_BITS
31980 #define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */
31981 #define GMP_LIMB_BITS 123
31982 $DEFN_LONG_LONG_LIMB
31983 #include "$srcdir/gmp-h.in"
31989 static int test_array [1 - 2 * !(((long) (sizeof (mp_limb_t))) <= $ac_mid)];
31996 rm -f conftest.$ac_objext
31997 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
31998 (eval $ac_compile) 2>conftest.er1
32000 grep -v '^ *+' conftest.er1 >conftest.err
32002 cat conftest.err >&5
32003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32004 (exit $ac_status); } &&
32005 { ac_try='test -z "$ac_c_werror_flag"
32006 || test ! -s conftest.err'
32007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32008 (eval $ac_try) 2>&5
32010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32011 (exit $ac_status); }; } &&
32012 { ac_try='test -s conftest.$ac_objext'
32013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32014 (eval $ac_try) 2>&5
32016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32017 (exit $ac_status); }; }; then
32020 echo "$as_me: failed program was:" >&5
32021 sed 's/^/| /' conftest.$ac_ext >&5
32023 ac_lo=`expr '(' $ac_mid ')' + 1`
32025 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32028 ?*) ac_cv_sizeof_mp_limb_t=$ac_lo;;
32029 '') { { echo "$as_me:$LINENO: error: cannot compute sizeof (mp_limb_t), 77
32030 See \`config.log' for more details." >&5
32031 echo "$as_me: error: cannot compute sizeof (mp_limb_t), 77
32032 See \`config.log' for more details." >&2;}
32033 { (exit 1); exit 1; }; } ;;
32036 if test "$cross_compiling" = yes; then
32037 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling
32038 See \`config.log' for more details." >&5
32039 echo "$as_me: error: cannot run test program while cross compiling
32040 See \`config.log' for more details." >&2;}
32041 { (exit 1); exit 1; }; }
32043 cat >conftest.$ac_ext <<_ACEOF
32046 cat confdefs.h >>conftest.$ac_ext
32047 cat >>conftest.$ac_ext <<_ACEOF
32048 /* end confdefs.h. */
32049 #define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */
32050 #define GMP_NAIL_BITS $GMP_NAIL_BITS
32051 #define __GMP_BITS_PER_MP_LIMB 123 /* dummy for GMP_NUMB_BITS etc */
32052 #define GMP_LIMB_BITS 123
32053 $DEFN_LONG_LONG_LIMB
32054 #include "$srcdir/gmp-h.in"
32057 long longval () { return (long) (sizeof (mp_limb_t)); }
32058 unsigned long ulongval () { return (long) (sizeof (mp_limb_t)); }
32060 #include <stdlib.h>
32065 FILE *f = fopen ("conftest.val", "w");
32068 if (((long) (sizeof (mp_limb_t))) < 0)
32070 long i = longval ();
32071 if (i != ((long) (sizeof (mp_limb_t))))
32073 fprintf (f, "%ld\n", i);
32077 unsigned long i = ulongval ();
32078 if (i != ((long) (sizeof (mp_limb_t))))
32080 fprintf (f, "%lu\n", i);
32082 exit (ferror (f) || fclose (f) != 0);
32088 rm -f conftest$ac_exeext
32089 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32090 (eval $ac_link) 2>&5
32092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32093 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
32094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32095 (eval $ac_try) 2>&5
32097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32098 (exit $ac_status); }; }; then
32099 ac_cv_sizeof_mp_limb_t=`cat conftest.val`
32101 echo "$as_me: program exited with status $ac_status" >&5
32102 echo "$as_me: failed program was:" >&5
32103 sed 's/^/| /' conftest.$ac_ext >&5
32105 ( exit $ac_status )
32106 { { echo "$as_me:$LINENO: error: cannot compute sizeof (mp_limb_t), 77
32107 See \`config.log' for more details." >&5
32108 echo "$as_me: error: cannot compute sizeof (mp_limb_t), 77
32109 See \`config.log' for more details." >&2;}
32110 { (exit 1); exit 1; }; }
32112 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
32117 ac_cv_sizeof_mp_limb_t=0
32120 echo "$as_me:$LINENO: result: $ac_cv_sizeof_mp_limb_t" >&5
32121 echo "${ECHO_T}$ac_cv_sizeof_mp_limb_t" >&6
32122 cat >>confdefs.h <<_ACEOF
32123 #define SIZEOF_MP_LIMB_T $ac_cv_sizeof_mp_limb_t
32127 if test "$ac_cv_sizeof_mp_limb_t" = 0; then
32128 { { echo "$as_me:$LINENO: error: Oops, mp_limb_t doesn't seem to work" >&5
32129 echo "$as_me: error: Oops, mp_limb_t doesn't seem to work" >&2;}
32130 { (exit 1); exit 1; }; }
32132 BITS_PER_MP_LIMB=`expr 8 \* $ac_cv_sizeof_mp_limb_t`
32135 echo "define(<SIZEOF_UNSIGNED>,<$ac_cv_sizeof_unsigned>)" >> $gmp_tmpconfigm4
32138 # Check compiler limb size matches gmp-mparam.h
32140 # FIXME: Some of the cycle counter objects in the tune directory depend on
32141 # the size of ulong, it'd be possible to check that here, though a mismatch
32142 # probably wouldn't want to be fatal, none of the libgmp assembler code
32143 # depends on ulong.
32145 mparam_bits=`sed -n 's/^#define BITS_PER_MP_LIMB[ ][ ]*\([0-9]*\).*$/\1/p' $gmp_mparam_source`
32146 if test -n "$mparam_bits" && test "$mparam_bits" -ne $BITS_PER_MP_LIMB; then
32147 if test "$test_CFLAGS" = set; then
32148 { { echo "$as_me:$LINENO: error: Oops, mp_limb_t is $BITS_PER_MP_LIMB bits, but the assembler code
32149 in this configuration expects $mparam_bits bits.
32150 You appear to have set \$CFLAGS, perhaps you also need to tell GMP the
32151 intended ABI, see \"ABI and ISA\" in the manual." >&5
32152 echo "$as_me: error: Oops, mp_limb_t is $BITS_PER_MP_LIMB bits, but the assembler code
32153 in this configuration expects $mparam_bits bits.
32154 You appear to have set \$CFLAGS, perhaps you also need to tell GMP the
32155 intended ABI, see \"ABI and ISA\" in the manual." >&2;}
32156 { (exit 1); exit 1; }; }
32158 { { echo "$as_me:$LINENO: error: Oops, mp_limb_t is $BITS_PER_MP_LIMB bits, but the assembler code
32159 in this configuration expects $mparam_bits bits." >&5
32160 echo "$as_me: error: Oops, mp_limb_t is $BITS_PER_MP_LIMB bits, but the assembler code
32161 in this configuration expects $mparam_bits bits." >&2;}
32162 { (exit 1); exit 1; }; }
32167 echo "define(<GMP_LIMB_BITS>,$BITS_PER_MP_LIMB)" >> $gmp_tmpconfigm4
32170 echo "define(<GMP_NAIL_BITS>,$GMP_NAIL_BITS)" >> $gmp_tmpconfigm4
32173 echo "define(<GMP_NUMB_BITS>,eval(GMP_LIMB_BITS-GMP_NAIL_BITS))" >> $gmp_tmpconfigm4
32177 # Exclude the mpn random functions from mpbsd since that would drag in the
32178 # top-level rand things, all of which are unnecessary for libmp. There's
32179 # other unnecessary objects too actually, if we could be bothered figuring
32180 # out exactly which they are.
32183 for i in $mpn_objs_in_libgmp; do
32186 *) mpn_objs_in_libmp="$mpn_objs_in_libmp $i" ;;
32196 # A recompiled sqr_basecase for use in the tune program, if necessary.
32198 test -d tune || mkdir tune
32199 case $sqr_basecase_source in
32201 sqr_max=`sed -n 's/^def...(SQR_KARATSUBA_THRESHOLD_MAX, *\([0-9]*\))/\1/p' $sqr_basecase_source`
32202 if test -n "$sqr_max"; then
32203 TUNE_SQR_OBJ=sqr_asm.o
32205 cat >>confdefs.h <<_ACEOF
32206 #define TUNE_SQR_KARATSUBA_MAX $sqr_max
32210 cat >tune/sqr_basecase.c <<EOF
32211 /* not sure that an empty file can compile, so put in a dummy */
32212 int sqr_basecase_dummy;
32217 cat >>confdefs.h <<\_ACEOF
32218 #define TUNE_SQR_KARATSUBA_MAX SQR_KARATSUBA_MAX_GENERIC
32221 cat >tune/sqr_basecase.c <<EOF
32222 #define TUNE_PROGRAM_BUILD 1
32223 #define TUNE_PROGRAM_BUILD_SQR 1
32224 #include "mpn/sqr_basecase.c"
32231 # Configs for demos/pexpr.c.
32233 ac_config_files="$ac_config_files demos/pexpr-config.h:demos/pexpr-config-h.in"
32235 case $ac_cv_func_clock in
32236 yes) HAVE_CLOCK_01=1
32238 no) HAVE_CLOCK_01=0 ;;
32241 case $ac_cv_func_cputime in
32242 yes) HAVE_CPUTIME_01=1
32244 no) HAVE_CPUTIME_01=0 ;;
32247 case $ac_cv_func_getrusage in
32248 yes) HAVE_GETRUSAGE_01=1
32250 no) HAVE_GETRUSAGE_01=0 ;;
32253 case $ac_cv_func_gettimeofday in
32254 yes) HAVE_GETTIMEOFDAY_01=1
32256 no) HAVE_GETTIMEOFDAY_01=0 ;;
32259 case $ac_cv_func_sigaction in
32260 yes) HAVE_SIGACTION_01=1
32262 no) HAVE_SIGACTION_01=0 ;;
32265 case $ac_cv_func_sigaltstack in
32266 yes) HAVE_SIGALTSTACK_01=1
32268 no) HAVE_SIGALTSTACK_01=0 ;;
32271 case $ac_cv_func_sigstack in
32272 yes) HAVE_SIGSTACK_01=1
32274 no) HAVE_SIGSTACK_01=0 ;;
32278 case $ac_cv_header_sys_resource_h in
32279 yes) HAVE_SYS_RESOURCE_H_01=1
32281 no) HAVE_SYS_RESOURCE_H_01=0 ;;
32285 echo "$as_me:$LINENO: checking for stack_t" >&5
32286 echo $ECHO_N "checking for stack_t... $ECHO_C" >&6
32287 if test "${ac_cv_type_stack_t+set}" = set; then
32288 echo $ECHO_N "(cached) $ECHO_C" >&6
32290 cat >conftest.$ac_ext <<_ACEOF
32293 cat confdefs.h >>conftest.$ac_ext
32294 cat >>conftest.$ac_ext <<_ACEOF
32295 /* end confdefs.h. */
32296 #include <signal.h>
32303 if (sizeof (stack_t))
32309 rm -f conftest.$ac_objext
32310 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32311 (eval $ac_compile) 2>conftest.er1
32313 grep -v '^ *+' conftest.er1 >conftest.err
32315 cat conftest.err >&5
32316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32317 (exit $ac_status); } &&
32318 { ac_try='test -z "$ac_c_werror_flag"
32319 || test ! -s conftest.err'
32320 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32321 (eval $ac_try) 2>&5
32323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32324 (exit $ac_status); }; } &&
32325 { ac_try='test -s conftest.$ac_objext'
32326 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32327 (eval $ac_try) 2>&5
32329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32330 (exit $ac_status); }; }; then
32331 ac_cv_type_stack_t=yes
32333 echo "$as_me: failed program was:" >&5
32334 sed 's/^/| /' conftest.$ac_ext >&5
32336 ac_cv_type_stack_t=no
32338 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32340 echo "$as_me:$LINENO: result: $ac_cv_type_stack_t" >&5
32341 echo "${ECHO_T}$ac_cv_type_stack_t" >&6
32342 if test $ac_cv_type_stack_t = yes; then
32344 cat >>confdefs.h <<_ACEOF
32345 #define HAVE_STACK_T 1
32355 # Configs for demos/calc directory
32357 # AC_SUBST+AC_CONFIG_FILES is used for calc-config.h, rather than AC_DEFINE+
32358 # AC_CONFIG_HEADERS, since with the latter automake (1.8) will then put the
32359 # directory (ie. demos/calc) into $(DEFAULT_INCLUDES) for every Makefile.in,
32360 # which would look very strange.
32362 # -lcurses is required by libreadline. On a typical SVR4 style system this
32363 # normally doesn't have to be given explicitly, since libreadline.so will
32364 # have a NEEDED record for it. But if someone for some reason is using only
32365 # a static libreadline.a then we must give -lcurses. Readline (as of
32366 # version 4.3) doesn't use libtool, so we can't rely on a .la to cover
32367 # necessary dependencies.
32369 # On a couple of systems we've seen libreadline available, but the headers
32370 # not in the default include path, so check for readline/readline.h. We've
32371 # also seen readline/history.h missing, not sure if that's just a broken
32372 # install or a very old version, but check that too.
32374 ac_config_files="$ac_config_files demos/calc/calc-config.h:demos/calc/calc-config-h.in"
32377 if test $with_readline != no; then
32378 echo "$as_me:$LINENO: checking for tputs in -lncurses" >&5
32379 echo $ECHO_N "checking for tputs in -lncurses... $ECHO_C" >&6
32380 if test "${ac_cv_lib_ncurses_tputs+set}" = set; then
32381 echo $ECHO_N "(cached) $ECHO_C" >&6
32383 ac_check_lib_save_LIBS=$LIBS
32384 LIBS="-lncurses $LIBS"
32385 cat >conftest.$ac_ext <<_ACEOF
32388 cat confdefs.h >>conftest.$ac_ext
32389 cat >>conftest.$ac_ext <<_ACEOF
32390 /* end confdefs.h. */
32392 /* Override any gcc2 internal prototype to avoid an error. */
32396 /* We use char because int might match the return type of a gcc2
32397 builtin and then its argument prototype would still apply. */
32407 rm -f conftest.$ac_objext conftest$ac_exeext
32408 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32409 (eval $ac_link) 2>conftest.er1
32411 grep -v '^ *+' conftest.er1 >conftest.err
32413 cat conftest.err >&5
32414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32415 (exit $ac_status); } &&
32416 { ac_try='test -z "$ac_c_werror_flag"
32417 || test ! -s conftest.err'
32418 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32419 (eval $ac_try) 2>&5
32421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32422 (exit $ac_status); }; } &&
32423 { ac_try='test -s conftest$ac_exeext'
32424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32425 (eval $ac_try) 2>&5
32427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32428 (exit $ac_status); }; }; then
32429 ac_cv_lib_ncurses_tputs=yes
32431 echo "$as_me: failed program was:" >&5
32432 sed 's/^/| /' conftest.$ac_ext >&5
32434 ac_cv_lib_ncurses_tputs=no
32436 rm -f conftest.err conftest.$ac_objext \
32437 conftest$ac_exeext conftest.$ac_ext
32438 LIBS=$ac_check_lib_save_LIBS
32440 echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tputs" >&5
32441 echo "${ECHO_T}$ac_cv_lib_ncurses_tputs" >&6
32442 if test $ac_cv_lib_ncurses_tputs = yes; then
32443 LIBCURSES=-lncurses
32445 echo "$as_me:$LINENO: checking for tputs in -lcurses" >&5
32446 echo $ECHO_N "checking for tputs in -lcurses... $ECHO_C" >&6
32447 if test "${ac_cv_lib_curses_tputs+set}" = set; then
32448 echo $ECHO_N "(cached) $ECHO_C" >&6
32450 ac_check_lib_save_LIBS=$LIBS
32451 LIBS="-lcurses $LIBS"
32452 cat >conftest.$ac_ext <<_ACEOF
32455 cat confdefs.h >>conftest.$ac_ext
32456 cat >>conftest.$ac_ext <<_ACEOF
32457 /* end confdefs.h. */
32459 /* Override any gcc2 internal prototype to avoid an error. */
32463 /* We use char because int might match the return type of a gcc2
32464 builtin and then its argument prototype would still apply. */
32474 rm -f conftest.$ac_objext conftest$ac_exeext
32475 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32476 (eval $ac_link) 2>conftest.er1
32478 grep -v '^ *+' conftest.er1 >conftest.err
32480 cat conftest.err >&5
32481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32482 (exit $ac_status); } &&
32483 { ac_try='test -z "$ac_c_werror_flag"
32484 || test ! -s conftest.err'
32485 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32486 (eval $ac_try) 2>&5
32488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32489 (exit $ac_status); }; } &&
32490 { ac_try='test -s conftest$ac_exeext'
32491 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32492 (eval $ac_try) 2>&5
32494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32495 (exit $ac_status); }; }; then
32496 ac_cv_lib_curses_tputs=yes
32498 echo "$as_me: failed program was:" >&5
32499 sed 's/^/| /' conftest.$ac_ext >&5
32501 ac_cv_lib_curses_tputs=no
32503 rm -f conftest.err conftest.$ac_objext \
32504 conftest$ac_exeext conftest.$ac_ext
32505 LIBS=$ac_check_lib_save_LIBS
32507 echo "$as_me:$LINENO: result: $ac_cv_lib_curses_tputs" >&5
32508 echo "${ECHO_T}$ac_cv_lib_curses_tputs" >&6
32509 if test $ac_cv_lib_curses_tputs = yes; then
32517 use_readline=$with_readline
32518 if test $with_readline = detect; then
32520 echo "$as_me:$LINENO: checking for readline in -lreadline" >&5
32521 echo $ECHO_N "checking for readline in -lreadline... $ECHO_C" >&6
32522 if test "${ac_cv_lib_readline_readline+set}" = set; then
32523 echo $ECHO_N "(cached) $ECHO_C" >&6
32525 ac_check_lib_save_LIBS=$LIBS
32526 LIBS="-lreadline $LIBCURSES $LIBS"
32527 cat >conftest.$ac_ext <<_ACEOF
32530 cat confdefs.h >>conftest.$ac_ext
32531 cat >>conftest.$ac_ext <<_ACEOF
32532 /* end confdefs.h. */
32534 /* Override any gcc2 internal prototype to avoid an error. */
32538 /* We use char because int might match the return type of a gcc2
32539 builtin and then its argument prototype would still apply. */
32549 rm -f conftest.$ac_objext conftest$ac_exeext
32550 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32551 (eval $ac_link) 2>conftest.er1
32553 grep -v '^ *+' conftest.er1 >conftest.err
32555 cat conftest.err >&5
32556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32557 (exit $ac_status); } &&
32558 { ac_try='test -z "$ac_c_werror_flag"
32559 || test ! -s conftest.err'
32560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32561 (eval $ac_try) 2>&5
32563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32564 (exit $ac_status); }; } &&
32565 { ac_try='test -s conftest$ac_exeext'
32566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32567 (eval $ac_try) 2>&5
32569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32570 (exit $ac_status); }; }; then
32571 ac_cv_lib_readline_readline=yes
32573 echo "$as_me: failed program was:" >&5
32574 sed 's/^/| /' conftest.$ac_ext >&5
32576 ac_cv_lib_readline_readline=no
32578 rm -f conftest.err conftest.$ac_objext \
32579 conftest$ac_exeext conftest.$ac_ext
32580 LIBS=$ac_check_lib_save_LIBS
32582 echo "$as_me:$LINENO: result: $ac_cv_lib_readline_readline" >&5
32583 echo "${ECHO_T}$ac_cv_lib_readline_readline" >&6
32584 if test $ac_cv_lib_readline_readline = yes; then
32585 if test "${ac_cv_header_readline_readline_h+set}" = set; then
32586 echo "$as_me:$LINENO: checking for readline/readline.h" >&5
32587 echo $ECHO_N "checking for readline/readline.h... $ECHO_C" >&6
32588 if test "${ac_cv_header_readline_readline_h+set}" = set; then
32589 echo $ECHO_N "(cached) $ECHO_C" >&6
32591 echo "$as_me:$LINENO: result: $ac_cv_header_readline_readline_h" >&5
32592 echo "${ECHO_T}$ac_cv_header_readline_readline_h" >&6
32594 # Is the header compilable?
32595 echo "$as_me:$LINENO: checking readline/readline.h usability" >&5
32596 echo $ECHO_N "checking readline/readline.h usability... $ECHO_C" >&6
32597 cat >conftest.$ac_ext <<_ACEOF
32600 cat confdefs.h >>conftest.$ac_ext
32601 cat >>conftest.$ac_ext <<_ACEOF
32602 /* end confdefs.h. */
32603 $ac_includes_default
32604 #include <readline/readline.h>
32606 rm -f conftest.$ac_objext
32607 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32608 (eval $ac_compile) 2>conftest.er1
32610 grep -v '^ *+' conftest.er1 >conftest.err
32612 cat conftest.err >&5
32613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32614 (exit $ac_status); } &&
32615 { ac_try='test -z "$ac_c_werror_flag"
32616 || test ! -s conftest.err'
32617 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32618 (eval $ac_try) 2>&5
32620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32621 (exit $ac_status); }; } &&
32622 { ac_try='test -s conftest.$ac_objext'
32623 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32624 (eval $ac_try) 2>&5
32626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32627 (exit $ac_status); }; }; then
32628 ac_header_compiler=yes
32630 echo "$as_me: failed program was:" >&5
32631 sed 's/^/| /' conftest.$ac_ext >&5
32633 ac_header_compiler=no
32635 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32636 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32637 echo "${ECHO_T}$ac_header_compiler" >&6
32639 # Is the header present?
32640 echo "$as_me:$LINENO: checking readline/readline.h presence" >&5
32641 echo $ECHO_N "checking readline/readline.h presence... $ECHO_C" >&6
32642 cat >conftest.$ac_ext <<_ACEOF
32645 cat confdefs.h >>conftest.$ac_ext
32646 cat >>conftest.$ac_ext <<_ACEOF
32647 /* end confdefs.h. */
32648 #include <readline/readline.h>
32650 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32651 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32653 grep -v '^ *+' conftest.er1 >conftest.err
32655 cat conftest.err >&5
32656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32657 (exit $ac_status); } >/dev/null; then
32658 if test -s conftest.err; then
32659 ac_cpp_err=$ac_c_preproc_warn_flag
32660 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32667 if test -z "$ac_cpp_err"; then
32668 ac_header_preproc=yes
32670 echo "$as_me: failed program was:" >&5
32671 sed 's/^/| /' conftest.$ac_ext >&5
32673 ac_header_preproc=no
32675 rm -f conftest.err conftest.$ac_ext
32676 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32677 echo "${ECHO_T}$ac_header_preproc" >&6
32679 # So? What about this header?
32680 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32682 { echo "$as_me:$LINENO: WARNING: readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&5
32683 echo "$as_me: WARNING: readline/readline.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32684 { echo "$as_me:$LINENO: WARNING: readline/readline.h: proceeding with the compiler's result" >&5
32685 echo "$as_me: WARNING: readline/readline.h: proceeding with the compiler's result" >&2;}
32686 ac_header_preproc=yes
32689 { echo "$as_me:$LINENO: WARNING: readline/readline.h: present but cannot be compiled" >&5
32690 echo "$as_me: WARNING: readline/readline.h: present but cannot be compiled" >&2;}
32691 { echo "$as_me:$LINENO: WARNING: readline/readline.h: check for missing prerequisite headers?" >&5
32692 echo "$as_me: WARNING: readline/readline.h: check for missing prerequisite headers?" >&2;}
32693 { echo "$as_me:$LINENO: WARNING: readline/readline.h: see the Autoconf documentation" >&5
32694 echo "$as_me: WARNING: readline/readline.h: see the Autoconf documentation" >&2;}
32695 { echo "$as_me:$LINENO: WARNING: readline/readline.h: section \"Present But Cannot Be Compiled\"" >&5
32696 echo "$as_me: WARNING: readline/readline.h: section \"Present But Cannot Be Compiled\"" >&2;}
32697 { echo "$as_me:$LINENO: WARNING: readline/readline.h: proceeding with the preprocessor's result" >&5
32698 echo "$as_me: WARNING: readline/readline.h: proceeding with the preprocessor's result" >&2;}
32699 { echo "$as_me:$LINENO: WARNING: readline/readline.h: in the future, the compiler will take precedence" >&5
32700 echo "$as_me: WARNING: readline/readline.h: in the future, the compiler will take precedence" >&2;}
32703 ## -------------------------------- ##
32704 ## Report this to gmp-bugs@swox.com ##
32705 ## -------------------------------- ##
32708 sed "s/^/$as_me: WARNING: /" >&2
32711 echo "$as_me:$LINENO: checking for readline/readline.h" >&5
32712 echo $ECHO_N "checking for readline/readline.h... $ECHO_C" >&6
32713 if test "${ac_cv_header_readline_readline_h+set}" = set; then
32714 echo $ECHO_N "(cached) $ECHO_C" >&6
32716 ac_cv_header_readline_readline_h=$ac_header_preproc
32718 echo "$as_me:$LINENO: result: $ac_cv_header_readline_readline_h" >&5
32719 echo "${ECHO_T}$ac_cv_header_readline_readline_h" >&6
32722 if test $ac_cv_header_readline_readline_h = yes; then
32723 if test "${ac_cv_header_readline_history_h+set}" = set; then
32724 echo "$as_me:$LINENO: checking for readline/history.h" >&5
32725 echo $ECHO_N "checking for readline/history.h... $ECHO_C" >&6
32726 if test "${ac_cv_header_readline_history_h+set}" = set; then
32727 echo $ECHO_N "(cached) $ECHO_C" >&6
32729 echo "$as_me:$LINENO: result: $ac_cv_header_readline_history_h" >&5
32730 echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6
32732 # Is the header compilable?
32733 echo "$as_me:$LINENO: checking readline/history.h usability" >&5
32734 echo $ECHO_N "checking readline/history.h usability... $ECHO_C" >&6
32735 cat >conftest.$ac_ext <<_ACEOF
32738 cat confdefs.h >>conftest.$ac_ext
32739 cat >>conftest.$ac_ext <<_ACEOF
32740 /* end confdefs.h. */
32741 $ac_includes_default
32742 #include <readline/history.h>
32744 rm -f conftest.$ac_objext
32745 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
32746 (eval $ac_compile) 2>conftest.er1
32748 grep -v '^ *+' conftest.er1 >conftest.err
32750 cat conftest.err >&5
32751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32752 (exit $ac_status); } &&
32753 { ac_try='test -z "$ac_c_werror_flag"
32754 || test ! -s conftest.err'
32755 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32756 (eval $ac_try) 2>&5
32758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32759 (exit $ac_status); }; } &&
32760 { ac_try='test -s conftest.$ac_objext'
32761 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
32762 (eval $ac_try) 2>&5
32764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32765 (exit $ac_status); }; }; then
32766 ac_header_compiler=yes
32768 echo "$as_me: failed program was:" >&5
32769 sed 's/^/| /' conftest.$ac_ext >&5
32771 ac_header_compiler=no
32773 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
32774 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
32775 echo "${ECHO_T}$ac_header_compiler" >&6
32777 # Is the header present?
32778 echo "$as_me:$LINENO: checking readline/history.h presence" >&5
32779 echo $ECHO_N "checking readline/history.h presence... $ECHO_C" >&6
32780 cat >conftest.$ac_ext <<_ACEOF
32783 cat confdefs.h >>conftest.$ac_ext
32784 cat >>conftest.$ac_ext <<_ACEOF
32785 /* end confdefs.h. */
32786 #include <readline/history.h>
32788 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
32789 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
32791 grep -v '^ *+' conftest.er1 >conftest.err
32793 cat conftest.err >&5
32794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
32795 (exit $ac_status); } >/dev/null; then
32796 if test -s conftest.err; then
32797 ac_cpp_err=$ac_c_preproc_warn_flag
32798 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
32805 if test -z "$ac_cpp_err"; then
32806 ac_header_preproc=yes
32808 echo "$as_me: failed program was:" >&5
32809 sed 's/^/| /' conftest.$ac_ext >&5
32811 ac_header_preproc=no
32813 rm -f conftest.err conftest.$ac_ext
32814 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
32815 echo "${ECHO_T}$ac_header_preproc" >&6
32817 # So? What about this header?
32818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
32820 { echo "$as_me:$LINENO: WARNING: readline/history.h: accepted by the compiler, rejected by the preprocessor!" >&5
32821 echo "$as_me: WARNING: readline/history.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
32822 { echo "$as_me:$LINENO: WARNING: readline/history.h: proceeding with the compiler's result" >&5
32823 echo "$as_me: WARNING: readline/history.h: proceeding with the compiler's result" >&2;}
32824 ac_header_preproc=yes
32827 { echo "$as_me:$LINENO: WARNING: readline/history.h: present but cannot be compiled" >&5
32828 echo "$as_me: WARNING: readline/history.h: present but cannot be compiled" >&2;}
32829 { echo "$as_me:$LINENO: WARNING: readline/history.h: check for missing prerequisite headers?" >&5
32830 echo "$as_me: WARNING: readline/history.h: check for missing prerequisite headers?" >&2;}
32831 { echo "$as_me:$LINENO: WARNING: readline/history.h: see the Autoconf documentation" >&5
32832 echo "$as_me: WARNING: readline/history.h: see the Autoconf documentation" >&2;}
32833 { echo "$as_me:$LINENO: WARNING: readline/history.h: section \"Present But Cannot Be Compiled\"" >&5
32834 echo "$as_me: WARNING: readline/history.h: section \"Present But Cannot Be Compiled\"" >&2;}
32835 { echo "$as_me:$LINENO: WARNING: readline/history.h: proceeding with the preprocessor's result" >&5
32836 echo "$as_me: WARNING: readline/history.h: proceeding with the preprocessor's result" >&2;}
32837 { echo "$as_me:$LINENO: WARNING: readline/history.h: in the future, the compiler will take precedence" >&5
32838 echo "$as_me: WARNING: readline/history.h: in the future, the compiler will take precedence" >&2;}
32841 ## -------------------------------- ##
32842 ## Report this to gmp-bugs@swox.com ##
32843 ## -------------------------------- ##
32846 sed "s/^/$as_me: WARNING: /" >&2
32849 echo "$as_me:$LINENO: checking for readline/history.h" >&5
32850 echo $ECHO_N "checking for readline/history.h... $ECHO_C" >&6
32851 if test "${ac_cv_header_readline_history_h+set}" = set; then
32852 echo $ECHO_N "(cached) $ECHO_C" >&6
32854 ac_cv_header_readline_history_h=$ac_header_preproc
32856 echo "$as_me:$LINENO: result: $ac_cv_header_readline_history_h" >&5
32857 echo "${ECHO_T}$ac_cv_header_readline_history_h" >&6
32860 if test $ac_cv_header_readline_history_h = yes; then
32870 echo "$as_me:$LINENO: checking readline detected" >&5
32871 echo $ECHO_N "checking readline detected... $ECHO_C" >&6
32872 echo "$as_me:$LINENO: result: $use_readline" >&5
32873 echo "${ECHO_T}$use_readline" >&6
32875 if test $use_readline = yes; then
32878 LIBREADLINE=-lreadline
32883 for ac_prog in 'bison -y' byacc
32885 # Extract the first word of "$ac_prog", so it can be a program name with args.
32886 set dummy $ac_prog; ac_word=$2
32887 echo "$as_me:$LINENO: checking for $ac_word" >&5
32888 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32889 if test "${ac_cv_prog_YACC+set}" = set; then
32890 echo $ECHO_N "(cached) $ECHO_C" >&6
32892 if test -n "$YACC"; then
32893 ac_cv_prog_YACC="$YACC" # Let the user override the test.
32895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32896 for as_dir in $PATH
32899 test -z "$as_dir" && as_dir=.
32900 for ac_exec_ext in '' $ac_executable_extensions; do
32901 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32902 ac_cv_prog_YACC="$ac_prog"
32903 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32911 YACC=$ac_cv_prog_YACC
32912 if test -n "$YACC"; then
32913 echo "$as_me:$LINENO: result: $YACC" >&5
32914 echo "${ECHO_T}$YACC" >&6
32916 echo "$as_me:$LINENO: result: no" >&5
32917 echo "${ECHO_T}no" >&6
32920 test -n "$YACC" && break
32922 test -n "$YACC" || YACC="yacc"
32924 for ac_prog in flex lex
32926 # Extract the first word of "$ac_prog", so it can be a program name with args.
32927 set dummy $ac_prog; ac_word=$2
32928 echo "$as_me:$LINENO: checking for $ac_word" >&5
32929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
32930 if test "${ac_cv_prog_LEX+set}" = set; then
32931 echo $ECHO_N "(cached) $ECHO_C" >&6
32933 if test -n "$LEX"; then
32934 ac_cv_prog_LEX="$LEX" # Let the user override the test.
32936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
32937 for as_dir in $PATH
32940 test -z "$as_dir" && as_dir=.
32941 for ac_exec_ext in '' $ac_executable_extensions; do
32942 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
32943 ac_cv_prog_LEX="$ac_prog"
32944 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
32952 LEX=$ac_cv_prog_LEX
32953 if test -n "$LEX"; then
32954 echo "$as_me:$LINENO: result: $LEX" >&5
32955 echo "${ECHO_T}$LEX" >&6
32957 echo "$as_me:$LINENO: result: no" >&5
32958 echo "${ECHO_T}no" >&6
32961 test -n "$LEX" && break
32963 test -n "$LEX" || LEX=":"
32965 if test -z "$LEXLIB"
32967 echo "$as_me:$LINENO: checking for yywrap in -lfl" >&5
32968 echo $ECHO_N "checking for yywrap in -lfl... $ECHO_C" >&6
32969 if test "${ac_cv_lib_fl_yywrap+set}" = set; then
32970 echo $ECHO_N "(cached) $ECHO_C" >&6
32972 ac_check_lib_save_LIBS=$LIBS
32974 cat >conftest.$ac_ext <<_ACEOF
32977 cat confdefs.h >>conftest.$ac_ext
32978 cat >>conftest.$ac_ext <<_ACEOF
32979 /* end confdefs.h. */
32981 /* Override any gcc2 internal prototype to avoid an error. */
32985 /* We use char because int might match the return type of a gcc2
32986 builtin and then its argument prototype would still apply. */
32996 rm -f conftest.$ac_objext conftest$ac_exeext
32997 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
32998 (eval $ac_link) 2>conftest.er1
33000 grep -v '^ *+' conftest.er1 >conftest.err
33002 cat conftest.err >&5
33003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33004 (exit $ac_status); } &&
33005 { ac_try='test -z "$ac_c_werror_flag"
33006 || test ! -s conftest.err'
33007 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33008 (eval $ac_try) 2>&5
33010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33011 (exit $ac_status); }; } &&
33012 { ac_try='test -s conftest$ac_exeext'
33013 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33014 (eval $ac_try) 2>&5
33016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33017 (exit $ac_status); }; }; then
33018 ac_cv_lib_fl_yywrap=yes
33020 echo "$as_me: failed program was:" >&5
33021 sed 's/^/| /' conftest.$ac_ext >&5
33023 ac_cv_lib_fl_yywrap=no
33025 rm -f conftest.err conftest.$ac_objext \
33026 conftest$ac_exeext conftest.$ac_ext
33027 LIBS=$ac_check_lib_save_LIBS
33029 echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
33030 echo "${ECHO_T}$ac_cv_lib_fl_yywrap" >&6
33031 if test $ac_cv_lib_fl_yywrap = yes; then
33034 echo "$as_me:$LINENO: checking for yywrap in -ll" >&5
33035 echo $ECHO_N "checking for yywrap in -ll... $ECHO_C" >&6
33036 if test "${ac_cv_lib_l_yywrap+set}" = set; then
33037 echo $ECHO_N "(cached) $ECHO_C" >&6
33039 ac_check_lib_save_LIBS=$LIBS
33041 cat >conftest.$ac_ext <<_ACEOF
33044 cat confdefs.h >>conftest.$ac_ext
33045 cat >>conftest.$ac_ext <<_ACEOF
33046 /* end confdefs.h. */
33048 /* Override any gcc2 internal prototype to avoid an error. */
33052 /* We use char because int might match the return type of a gcc2
33053 builtin and then its argument prototype would still apply. */
33063 rm -f conftest.$ac_objext conftest$ac_exeext
33064 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33065 (eval $ac_link) 2>conftest.er1
33067 grep -v '^ *+' conftest.er1 >conftest.err
33069 cat conftest.err >&5
33070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33071 (exit $ac_status); } &&
33072 { ac_try='test -z "$ac_c_werror_flag"
33073 || test ! -s conftest.err'
33074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33075 (eval $ac_try) 2>&5
33077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33078 (exit $ac_status); }; } &&
33079 { ac_try='test -s conftest$ac_exeext'
33080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33081 (eval $ac_try) 2>&5
33083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33084 (exit $ac_status); }; }; then
33085 ac_cv_lib_l_yywrap=yes
33087 echo "$as_me: failed program was:" >&5
33088 sed 's/^/| /' conftest.$ac_ext >&5
33090 ac_cv_lib_l_yywrap=no
33092 rm -f conftest.err conftest.$ac_objext \
33093 conftest$ac_exeext conftest.$ac_ext
33094 LIBS=$ac_check_lib_save_LIBS
33096 echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
33097 echo "${ECHO_T}$ac_cv_lib_l_yywrap" >&6
33098 if test $ac_cv_lib_l_yywrap = yes; then
33106 if test "x$LEX" != "x:"; then
33107 echo "$as_me:$LINENO: checking lex output file root" >&5
33108 echo $ECHO_N "checking lex output file root... $ECHO_C" >&6
33109 if test "${ac_cv_prog_lex_root+set}" = set; then
33110 echo $ECHO_N "(cached) $ECHO_C" >&6
33112 # The minimal lex program is just a single line: %%. But some broken lexes
33113 # (Solaris, I think it was) want two %% lines, so accommodate them.
33114 cat >conftest.l <<_ACEOF
33118 { (eval echo "$as_me:$LINENO: \"$LEX conftest.l\"") >&5
33119 (eval $LEX conftest.l) 2>&5
33121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33122 (exit $ac_status); }
33123 if test -f lex.yy.c; then
33124 ac_cv_prog_lex_root=lex.yy
33125 elif test -f lexyy.c; then
33126 ac_cv_prog_lex_root=lexyy
33128 { { echo "$as_me:$LINENO: error: cannot find output from $LEX; giving up" >&5
33129 echo "$as_me: error: cannot find output from $LEX; giving up" >&2;}
33130 { (exit 1); exit 1; }; }
33133 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_root" >&5
33134 echo "${ECHO_T}$ac_cv_prog_lex_root" >&6
33136 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
33138 echo "$as_me:$LINENO: checking whether yytext is a pointer" >&5
33139 echo $ECHO_N "checking whether yytext is a pointer... $ECHO_C" >&6
33140 if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then
33141 echo $ECHO_N "(cached) $ECHO_C" >&6
33143 # POSIX says lex can declare yytext either as a pointer or an array; the
33144 # default is implementation-dependent. Figure out which it is, since
33145 # not all implementations provide the %pointer and %array declarations.
33146 ac_cv_prog_lex_yytext_pointer=no
33147 echo 'extern char *yytext;' >>$LEX_OUTPUT_ROOT.c
33149 LIBS="$LIBS $LEXLIB"
33150 cat >conftest.$ac_ext <<_ACEOF
33151 `cat $LEX_OUTPUT_ROOT.c`
33153 rm -f conftest.$ac_objext conftest$ac_exeext
33154 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
33155 (eval $ac_link) 2>conftest.er1
33157 grep -v '^ *+' conftest.er1 >conftest.err
33159 cat conftest.err >&5
33160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33161 (exit $ac_status); } &&
33162 { ac_try='test -z "$ac_c_werror_flag"
33163 || test ! -s conftest.err'
33164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33165 (eval $ac_try) 2>&5
33167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33168 (exit $ac_status); }; } &&
33169 { ac_try='test -s conftest$ac_exeext'
33170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
33171 (eval $ac_try) 2>&5
33173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
33174 (exit $ac_status); }; }; then
33175 ac_cv_prog_lex_yytext_pointer=yes
33177 echo "$as_me: failed program was:" >&5
33178 sed 's/^/| /' conftest.$ac_ext >&5
33181 rm -f conftest.err conftest.$ac_objext \
33182 conftest$ac_exeext conftest.$ac_ext
33184 rm -f "${LEX_OUTPUT_ROOT}.c"
33187 echo "$as_me:$LINENO: result: $ac_cv_prog_lex_yytext_pointer" >&5
33188 echo "${ECHO_T}$ac_cv_prog_lex_yytext_pointer" >&6
33189 if test $ac_cv_prog_lex_yytext_pointer = yes; then
33191 cat >>confdefs.h <<\_ACEOF
33192 #define YYTEXT_POINTER 1
33198 if test "$LEX" = :; then
33199 LEX=${am_missing_run}flex
33202 # Configs for demos/expr directory
33204 # Libtool already runs an AC_CHECK_TOOL for ranlib, but we give
33205 # AC_PROG_RANLIB anyway since automake is supposed to complain if it's not
33206 # called. (Automake 1.8.4 doesn't, at least not when the only library is in
33207 # an EXTRA_LIBRARIES.)
33209 if test -n "$ac_tool_prefix"; then
33210 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
33211 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
33212 echo "$as_me:$LINENO: checking for $ac_word" >&5
33213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33214 if test "${ac_cv_prog_RANLIB+set}" = set; then
33215 echo $ECHO_N "(cached) $ECHO_C" >&6
33217 if test -n "$RANLIB"; then
33218 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
33220 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33221 for as_dir in $PATH
33224 test -z "$as_dir" && as_dir=.
33225 for ac_exec_ext in '' $ac_executable_extensions; do
33226 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33227 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
33228 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33236 RANLIB=$ac_cv_prog_RANLIB
33237 if test -n "$RANLIB"; then
33238 echo "$as_me:$LINENO: result: $RANLIB" >&5
33239 echo "${ECHO_T}$RANLIB" >&6
33241 echo "$as_me:$LINENO: result: no" >&5
33242 echo "${ECHO_T}no" >&6
33246 if test -z "$ac_cv_prog_RANLIB"; then
33247 ac_ct_RANLIB=$RANLIB
33248 # Extract the first word of "ranlib", so it can be a program name with args.
33249 set dummy ranlib; ac_word=$2
33250 echo "$as_me:$LINENO: checking for $ac_word" >&5
33251 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
33252 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
33253 echo $ECHO_N "(cached) $ECHO_C" >&6
33255 if test -n "$ac_ct_RANLIB"; then
33256 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
33258 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33259 for as_dir in $PATH
33262 test -z "$as_dir" && as_dir=.
33263 for ac_exec_ext in '' $ac_executable_extensions; do
33264 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
33265 ac_cv_prog_ac_ct_RANLIB="ranlib"
33266 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
33272 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
33275 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
33276 if test -n "$ac_ct_RANLIB"; then
33277 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
33278 echo "${ECHO_T}$ac_ct_RANLIB" >&6
33280 echo "$as_me:$LINENO: result: no" >&5
33281 echo "${ECHO_T}no" >&6
33284 RANLIB=$ac_ct_RANLIB
33286 RANLIB="$ac_cv_prog_RANLIB"
33291 # Create config.m4.
33293 echo "creating $gmp_configm4"
33294 echo "d""nl $gmp_configm4. Generated automatically by configure." > $gmp_configm4
33295 if test -f $gmp_tmpconfigm4; then
33296 echo "changequote(<,>)" >> $gmp_configm4
33297 echo "ifdef(<__CONFIG_M4_INCLUDED__>,,<" >> $gmp_configm4
33298 cat $gmp_tmpconfigm4 >> $gmp_configm4
33299 echo ">)" >> $gmp_configm4
33300 echo "changequote(\`,')" >> $gmp_configm4
33301 rm $gmp_tmpconfigm4
33303 echo "ifdef(\`__CONFIG_M4_INCLUDED__',,\`" >> $gmp_configm4
33304 if test -f $gmp_tmpconfigm4i; then
33305 cat $gmp_tmpconfigm4i >> $gmp_configm4
33306 rm $gmp_tmpconfigm4i
33308 if test -f $gmp_tmpconfigm4p; then
33309 cat $gmp_tmpconfigm4p >> $gmp_configm4
33310 rm $gmp_tmpconfigm4p
33312 echo "')" >> $gmp_configm4
33313 echo "define(\`__CONFIG_M4_INCLUDED__')" >> $gmp_configm4
33317 # FIXME: Upcoming version of autoconf/automake may not like broken lines.
33318 # Right now automake isn't accepting the new AC_CONFIG_FILES scheme.
33320 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"
33321 cat >confcache <<\_ACEOF
33322 # This file is a shell script that caches the results of configure
33323 # tests run on this system so they can be shared between configure
33324 # scripts and configure runs, see configure's option --config-cache.
33325 # It is not useful on other systems. If it contains results you don't
33326 # want to keep, you may remove or edit it.
33328 # config.status only pays attention to the cache file if you give it
33329 # the --recheck option to rerun configure.
33331 # `ac_cv_env_foo' variables (set or unset) will be overridden when
33332 # loading this file, other *unset* `ac_cv_foo' will be assigned the
33333 # following values.
33337 # The following way of writing the cache mishandles newlines in values,
33338 # but we know of no workaround that is simple, portable, and efficient.
33339 # So, don't put newlines in cache variables' values.
33340 # Ultrix sh set writes to stderr and can't be redirected directly,
33341 # and sets the high bit in the cache file unless we assign to the vars.
33344 case `(ac_space=' '; set | grep ac_space) 2>&1` in
33346 # `set' does not quote correctly, so add quotes (double-quote
33347 # substitution turns \\\\ into \\, and sed turns \\ into \).
33350 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
33353 # `set' quotes correctly as required by POSIX, so do not add quotes.
33355 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
33362 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
33364 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
33366 if diff $cache_file confcache >/dev/null 2>&1; then :; else
33367 if test -w $cache_file; then
33368 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
33369 cat confcache >$cache_file
33371 echo "not updating unwritable cache $cache_file"
33376 test "x$prefix" = xNONE && prefix=$ac_default_prefix
33377 # Let make expand exec_prefix.
33378 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
33380 # VPATH may cause trouble with some makes, so we remove $(srcdir),
33381 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
33382 # trailing colons and then remove the whole line if VPATH becomes empty
33383 # (actually we leave an empty line to preserve line numbers).
33384 if test "x$srcdir" = x.; then
33385 ac_vpsub='/^[ ]*VPATH[ ]*=/{
33386 s/:*\$(srcdir):*/:/;
33387 s/:*\${srcdir}:*/:/;
33389 s/^\([^=]*=[ ]*\):*/\1/;
33395 DEFS=-DHAVE_CONFIG_H
33399 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
33400 # 1. Remove the extension, and $U if already installed.
33401 ac_i=`echo "$ac_i" |
33402 sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
33404 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
33405 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
33407 LIBOBJS=$ac_libobjs
33409 LTLIBOBJS=$ac_ltlibobjs
33412 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
33413 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
33414 Usually this means the macro was only invoked conditionally." >&5
33415 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
33416 Usually this means the macro was only invoked conditionally." >&2;}
33417 { (exit 1); exit 1; }; }
33419 if test -z "${WANT_MPBSD_TRUE}" && test -z "${WANT_MPBSD_FALSE}"; then
33420 { { echo "$as_me:$LINENO: error: conditional \"WANT_MPBSD\" was never defined.
33421 Usually this means the macro was only invoked conditionally." >&5
33422 echo "$as_me: error: conditional \"WANT_MPBSD\" was never defined.
33423 Usually this means the macro was only invoked conditionally." >&2;}
33424 { (exit 1); exit 1; }; }
33426 if test -z "${WANT_CXX_TRUE}" && test -z "${WANT_CXX_FALSE}"; then
33427 { { echo "$as_me:$LINENO: error: conditional \"WANT_CXX\" was never defined.
33428 Usually this means the macro was only invoked conditionally." >&5
33429 echo "$as_me: error: conditional \"WANT_CXX\" was never defined.
33430 Usually this means the macro was only invoked conditionally." >&2;}
33431 { (exit 1); exit 1; }; }
33433 if test -z "${ENABLE_STATIC_TRUE}" && test -z "${ENABLE_STATIC_FALSE}"; then
33434 { { echo "$as_me:$LINENO: error: conditional \"ENABLE_STATIC\" was never defined.
33435 Usually this means the macro was only invoked conditionally." >&5
33436 echo "$as_me: error: conditional \"ENABLE_STATIC\" was never defined.
33437 Usually this means the macro was only invoked conditionally." >&2;}
33438 { (exit 1); exit 1; }; }
33441 : ${CONFIG_STATUS=./config.status}
33442 ac_clean_files_save=$ac_clean_files
33443 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
33444 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
33445 echo "$as_me: creating $CONFIG_STATUS" >&6;}
33446 cat >$CONFIG_STATUS <<_ACEOF
33448 # Generated by $as_me.
33449 # Run this file to recreate the current configuration.
33450 # Compiler output produced by configure, useful for debugging
33451 # configure, is in config.log if it exists.
33454 ac_cs_recheck=false
33456 SHELL=\${CONFIG_SHELL-$SHELL}
33459 cat >>$CONFIG_STATUS <<\_ACEOF
33460 ## --------------------- ##
33461 ## M4sh Initialization. ##
33462 ## --------------------- ##
33464 # Be Bourne compatible
33465 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
33468 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
33469 # is contrary to our usage. Disable this feature.
33470 alias -g '${1+"$@"}'='"$@"'
33471 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
33474 DUALCASE=1; export DUALCASE # for MKS sh
33476 # Support unset when possible.
33477 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
33484 # Work around bugs in pre-3.0 UWIN ksh.
33485 $as_unset ENV MAIL MAILPATH
33492 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
33493 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
33494 LC_TELEPHONE LC_TIME
33496 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
33497 eval $as_var=C; export $as_var
33503 # Required to use basename.
33504 if expr a : '\(a\)' >/dev/null 2>&1; then
33510 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
33511 as_basename=basename
33517 # Name of the executable.
33518 as_me=`$as_basename "$0" ||
33519 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
33520 X"$0" : 'X\(//\)$' \| \
33521 X"$0" : 'X\(/\)$' \| \
33522 . : '\(.\)' 2>/dev/null ||
33524 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
33525 /^X\/\(\/\/\)$/{ s//\1/; q; }
33526 /^X\/\(\/\).*/{ s//\1/; q; }
33530 # PATH needs CR, and LINENO needs CR and PATH.
33531 # Avoid depending upon Character Ranges.
33532 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33533 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
33534 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33535 as_cr_digits='0123456789'
33536 as_cr_alnum=$as_cr_Letters$as_cr_digits
33538 # The user is always right.
33539 if test "${PATH_SEPARATOR+set}" != set; then
33540 echo "#! /bin/sh" >conf$$.sh
33541 echo "exit 0" >>conf$$.sh
33543 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
33552 as_lineno_1=$LINENO
33553 as_lineno_2=$LINENO
33554 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
33555 test "x$as_lineno_1" != "x$as_lineno_2" &&
33556 test "x$as_lineno_3" = "x$as_lineno_2" || {
33557 # Find who we are. Look in the path if we contain no path at all
33560 *[\\/]* ) as_myself=$0 ;;
33561 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33562 for as_dir in $PATH
33565 test -z "$as_dir" && as_dir=.
33566 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
33571 # We did not find ourselves, most probably we were run as `sh COMMAND'
33572 # in which case we are not to be found in the path.
33573 if test "x$as_myself" = x; then
33576 if test ! -f "$as_myself"; then
33577 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
33578 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
33579 { (exit 1); exit 1; }; }
33581 case $CONFIG_SHELL in
33583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
33584 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
33587 test -z "$as_dir" && as_dir=.
33588 for as_base in sh bash ksh sh5; do
33591 if ("$as_dir/$as_base" -c '
33592 as_lineno_1=$LINENO
33593 as_lineno_2=$LINENO
33594 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
33595 test "x$as_lineno_1" != "x$as_lineno_2" &&
33596 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
33597 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
33598 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
33599 CONFIG_SHELL=$as_dir/$as_base
33600 export CONFIG_SHELL
33601 exec "$CONFIG_SHELL" "$0" ${1+"$@"}
33609 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
33610 # uniformly replaced by the line number. The first 'sed' inserts a
33611 # line-number line before each line; the second 'sed' does the real
33612 # work. The second script uses 'N' to pair each line-number line
33613 # with the numbered line, and appends trailing '-' during
33614 # substitution so that $LINENO is not a special case at line end.
33615 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
33616 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
33617 sed '=' <$as_myself |
33622 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
33625 s,^['$as_cr_digits']*\n,,
33626 ' >$as_me.lineno &&
33627 chmod +x $as_me.lineno ||
33628 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
33629 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
33630 { (exit 1); exit 1; }; }
33632 # Don't try to exec as it changes $[0], causing all sort of problems
33633 # (the dirname of $[0] is not the place where we might find the
33634 # original and so on. Autoconf is especially sensible to this).
33636 # Exit status is that of the last command.
33641 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
33642 *c*,-n*) ECHO_N= ECHO_C='
33644 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
33645 *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
33648 if expr a : '\(a\)' >/dev/null 2>&1; then
33654 rm -f conf$$ conf$$.exe conf$$.file
33656 if ln -s conf$$.file conf$$ 2>/dev/null; then
33657 # We could just check for DJGPP; but this test a) works b) is more generic
33658 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
33659 if test -f conf$$.exe; then
33660 # Don't use ln at all; we don't have any links
33665 elif ln conf$$.file conf$$ 2>/dev/null; then
33670 rm -f conf$$ conf$$.exe conf$$.file
33672 if mkdir -p . 2>/dev/null; then
33675 test -d ./-p && rmdir ./-p
33679 as_executable_p="test -f"
33681 # Sed expression to map a string onto a valid CPP name.
33682 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
33684 # Sed expression to map a string onto a valid variable name.
33685 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
33689 # We need space, tab and new line, in precisely that order.
33699 # Open the log real soon, to keep \$[0] and so on meaningful, and to
33700 # report actual input values of CONFIG_FILES etc. instead of their
33701 # values after options handling. Logging --version etc. is OK.
33705 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
33706 ## Running $as_me. ##
33711 This file was extended by GNU MP $as_me 4.2.1, which was
33712 generated by GNU Autoconf 2.59. Invocation command line was
33714 CONFIG_FILES = $CONFIG_FILES
33715 CONFIG_HEADERS = $CONFIG_HEADERS
33716 CONFIG_LINKS = $CONFIG_LINKS
33717 CONFIG_COMMANDS = $CONFIG_COMMANDS
33721 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
33725 # Files that config.status was made for.
33726 if test -n "$ac_config_files"; then
33727 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
33730 if test -n "$ac_config_headers"; then
33731 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
33734 if test -n "$ac_config_links"; then
33735 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
33738 if test -n "$ac_config_commands"; then
33739 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
33742 cat >>$CONFIG_STATUS <<\_ACEOF
33745 \`$as_me' instantiates files from templates according to the
33746 current configuration.
33748 Usage: $0 [OPTIONS] [FILE]...
33750 -h, --help print this help, then exit
33751 -V, --version print version number, then exit
33752 -q, --quiet do not print progress messages
33753 -d, --debug don't remove temporary files
33754 --recheck update $as_me by reconfiguring in the same conditions
33755 --file=FILE[:TEMPLATE]
33756 instantiate the configuration file FILE
33757 --header=FILE[:TEMPLATE]
33758 instantiate the configuration header FILE
33760 Configuration files:
33763 Configuration headers:
33766 Configuration links:
33769 Report bugs to <bug-autoconf@gnu.org>."
33772 cat >>$CONFIG_STATUS <<_ACEOF
33774 GNU MP config.status 4.2.1
33775 configured by $0, generated by GNU Autoconf 2.59,
33776 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
33778 Copyright (C) 2003 Free Software Foundation, Inc.
33779 This config.status script is free software; the Free Software Foundation
33780 gives unlimited permission to copy, distribute and modify it."
33785 cat >>$CONFIG_STATUS <<\_ACEOF
33786 # If no file are specified by the user, then we need to provide default
33787 # value. By we need to know if files were specified by the user.
33793 ac_option=`expr "x$1" : 'x\([^=]*\)='`
33794 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
33802 *) # This is not an option, so the user has probably given explicit
33805 ac_need_defaults=false;;
33809 # Handling of the options.
33811 cat >>$CONFIG_STATUS <<\_ACEOF
33812 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
33814 --version | --vers* | -V )
33815 echo "$ac_cs_version"; exit 0 ;;
33817 # Conflict between --help and --header
33818 { { echo "$as_me:$LINENO: error: ambiguous option: $1
33819 Try \`$0 --help' for more information." >&5
33820 echo "$as_me: error: ambiguous option: $1
33821 Try \`$0 --help' for more information." >&2;}
33822 { (exit 1); exit 1; }; };;
33823 --help | --hel | -h )
33824 echo "$ac_cs_usage"; exit 0 ;;
33825 --debug | --d* | -d )
33827 --file | --fil | --fi | --f )
33829 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
33830 ac_need_defaults=false;;
33831 --header | --heade | --head | --hea )
33833 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
33834 ac_need_defaults=false;;
33835 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
33836 | -silent | --silent | --silen | --sile | --sil | --si | --s)
33839 # This is an error.
33840 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
33841 Try \`$0 --help' for more information." >&5
33842 echo "$as_me: error: unrecognized option: $1
33843 Try \`$0 --help' for more information." >&2;}
33844 { (exit 1); exit 1; }; } ;;
33846 *) ac_config_targets="$ac_config_targets $1" ;;
33852 ac_configure_extra_args=
33854 if $ac_cs_silent; then
33856 ac_configure_extra_args="$ac_configure_extra_args --silent"
33860 cat >>$CONFIG_STATUS <<_ACEOF
33861 if \$ac_cs_recheck; then
33862 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
33863 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
33872 cat >>$CONFIG_STATUS <<\_ACEOF
33873 for ac_config_target in $ac_config_targets
33875 case "$ac_config_target" in
33876 # Handling of arguments.
33877 "demos/pexpr-config.h" ) CONFIG_FILES="$CONFIG_FILES demos/pexpr-config.h:demos/pexpr-config-h.in" ;;
33878 "demos/calc/calc-config.h" ) CONFIG_FILES="$CONFIG_FILES demos/calc/calc-config.h:demos/calc/calc-config-h.in" ;;
33879 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
33880 "mpbsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES mpbsd/Makefile" ;;
33881 "mpf/Makefile" ) CONFIG_FILES="$CONFIG_FILES mpf/Makefile" ;;
33882 "mpn/Makefile" ) CONFIG_FILES="$CONFIG_FILES mpn/Makefile" ;;
33883 "mpq/Makefile" ) CONFIG_FILES="$CONFIG_FILES mpq/Makefile" ;;
33884 "mpz/Makefile" ) CONFIG_FILES="$CONFIG_FILES mpz/Makefile" ;;
33885 "printf/Makefile" ) CONFIG_FILES="$CONFIG_FILES printf/Makefile" ;;
33886 "scanf/Makefile" ) CONFIG_FILES="$CONFIG_FILES scanf/Makefile" ;;
33887 "cxx/Makefile" ) CONFIG_FILES="$CONFIG_FILES cxx/Makefile" ;;
33888 "tests/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
33889 "tests/devel/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/devel/Makefile" ;;
33890 "tests/mpbsd/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/mpbsd/Makefile" ;;
33891 "tests/mpf/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/mpf/Makefile" ;;
33892 "tests/mpn/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/mpn/Makefile" ;;
33893 "tests/mpq/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/mpq/Makefile" ;;
33894 "tests/mpz/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/mpz/Makefile" ;;
33895 "tests/rand/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/rand/Makefile" ;;
33896 "tests/misc/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/misc/Makefile" ;;
33897 "tests/cxx/Makefile" ) CONFIG_FILES="$CONFIG_FILES tests/cxx/Makefile" ;;
33898 "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
33899 "tune/Makefile" ) CONFIG_FILES="$CONFIG_FILES tune/Makefile" ;;
33900 "demos/Makefile" ) CONFIG_FILES="$CONFIG_FILES demos/Makefile" ;;
33901 "demos/calc/Makefile" ) CONFIG_FILES="$CONFIG_FILES demos/calc/Makefile" ;;
33902 "demos/expr/Makefile" ) CONFIG_FILES="$CONFIG_FILES demos/expr/Makefile" ;;
33903 "gmp.h" ) CONFIG_FILES="$CONFIG_FILES gmp.h:gmp-h.in" ;;
33904 "mp.h" ) CONFIG_FILES="$CONFIG_FILES mp.h:mp-h.in" ;;
33905 "mpn/$tmp_fn.$tmp_ext" ) CONFIG_LINKS="$CONFIG_LINKS mpn/$tmp_fn.$tmp_ext:mpn/$tmp_dir/$tmp_base.$tmp_ext" ;;
33906 "gmp-mparam.h" ) CONFIG_LINKS="$CONFIG_LINKS gmp-mparam.h:mpn/$gmp_mparam_dir/gmp-mparam.h" ;;
33907 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;;
33908 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
33909 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
33910 { (exit 1); exit 1; }; };;
33914 # If the user did not use the arguments to specify the items to instantiate,
33915 # then the envvar interface is used. Set only those that are not.
33916 # We use the long form for the default assignment because of an extremely
33917 # bizarre bug on SunOS 4.1.3.
33918 if $ac_need_defaults; then
33919 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
33920 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
33921 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links
33924 # Have a temporary directory for convenience. Make it in the build tree
33925 # simply because there is no reason to put it here, and in addition,
33926 # creating and moving files from /tmp can sometimes cause problems.
33927 # Create a temporary directory, and hook for its removal unless debugging.
33930 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
33931 trap '{ (exit 1); exit 1; }' 1 2 13 15
33934 # Create a (secure) tmp directory for tmp files.
33937 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
33938 test -n "$tmp" && test -d "$tmp"
33941 tmp=./confstat$$-$RANDOM
33942 (umask 077 && mkdir $tmp)
33945 echo "$me: cannot create a temporary directory in ." >&2
33946 { (exit 1); exit 1; }
33951 cat >>$CONFIG_STATUS <<_ACEOF
33954 # CONFIG_FILES section.
33957 # No need to generate the scripts if there are no CONFIG_FILES.
33958 # This happens for instance when ./config.status config.h
33959 if test -n "\$CONFIG_FILES"; then
33960 # Protect against being on the right side of a sed subst in config.status.
33961 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
33962 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
33963 s,@SHELL@,$SHELL,;t t
33964 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
33965 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
33966 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
33967 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
33968 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
33969 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
33970 s,@exec_prefix@,$exec_prefix,;t t
33971 s,@prefix@,$prefix,;t t
33972 s,@program_transform_name@,$program_transform_name,;t t
33973 s,@bindir@,$bindir,;t t
33974 s,@sbindir@,$sbindir,;t t
33975 s,@libexecdir@,$libexecdir,;t t
33976 s,@datadir@,$datadir,;t t
33977 s,@sysconfdir@,$sysconfdir,;t t
33978 s,@sharedstatedir@,$sharedstatedir,;t t
33979 s,@localstatedir@,$localstatedir,;t t
33980 s,@libdir@,$libdir,;t t
33981 s,@includedir@,$includedir,;t t
33982 s,@oldincludedir@,$oldincludedir,;t t
33983 s,@infodir@,$infodir,;t t
33984 s,@mandir@,$mandir,;t t
33985 s,@build_alias@,$build_alias,;t t
33986 s,@host_alias@,$host_alias,;t t
33987 s,@target_alias@,$target_alias,;t t
33988 s,@DEFS@,$DEFS,;t t
33989 s,@ECHO_C@,$ECHO_C,;t t
33990 s,@ECHO_N@,$ECHO_N,;t t
33991 s,@ECHO_T@,$ECHO_T,;t t
33992 s,@LIBS@,$LIBS,;t t
33993 s,@build@,$build,;t t
33994 s,@build_cpu@,$build_cpu,;t t
33995 s,@build_vendor@,$build_vendor,;t t
33996 s,@build_os@,$build_os,;t t
33997 s,@host@,$host,;t t
33998 s,@host_cpu@,$host_cpu,;t t
33999 s,@host_vendor@,$host_vendor,;t t
34000 s,@host_os@,$host_os,;t t
34001 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
34002 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
34003 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
34004 s,@CYGPATH_W@,$CYGPATH_W,;t t
34005 s,@PACKAGE@,$PACKAGE,;t t
34006 s,@VERSION@,$VERSION,;t t
34007 s,@ACLOCAL@,$ACLOCAL,;t t
34008 s,@AUTOCONF@,$AUTOCONF,;t t
34009 s,@AUTOMAKE@,$AUTOMAKE,;t t
34010 s,@AUTOHEADER@,$AUTOHEADER,;t t
34011 s,@MAKEINFO@,$MAKEINFO,;t t
34012 s,@AMTAR@,$AMTAR,;t t
34013 s,@install_sh@,$install_sh,;t t
34014 s,@STRIP@,$STRIP,;t t
34015 s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
34016 s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
34017 s,@mkdir_p@,$mkdir_p,;t t
34019 s,@SET_MAKE@,$SET_MAKE,;t t
34020 s,@am__leading_dot@,$am__leading_dot,;t t
34021 s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t
34022 s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t
34023 s,@MAINT@,$MAINT,;t t
34024 s,@WANT_MPBSD_TRUE@,$WANT_MPBSD_TRUE,;t t
34025 s,@WANT_MPBSD_FALSE@,$WANT_MPBSD_FALSE,;t t
34026 s,@GMP_NAIL_BITS@,$GMP_NAIL_BITS,;t t
34028 s,@HAVE_HOST_CPU_FAMILY_power@,$HAVE_HOST_CPU_FAMILY_power,;t t
34029 s,@HAVE_HOST_CPU_FAMILY_powerpc@,$HAVE_HOST_CPU_FAMILY_powerpc,;t t
34030 s,@GMP_LDFLAGS@,$GMP_LDFLAGS,;t t
34031 s,@LIBGMP_LDFLAGS@,$LIBGMP_LDFLAGS,;t t
34032 s,@LIBGMPXX_LDFLAGS@,$LIBGMPXX_LDFLAGS,;t t
34033 s,@SPEED_CYCLECOUNTER_OBJ@,$SPEED_CYCLECOUNTER_OBJ,;t t
34034 s,@CALLING_CONVENTIONS_OBJS@,$CALLING_CONVENTIONS_OBJS,;t t
34035 s,@DEFN_LONG_LONG_LIMB@,$DEFN_LONG_LONG_LIMB,;t t
34037 s,@CFLAGS@,$CFLAGS,;t t
34038 s,@LDFLAGS@,$LDFLAGS,;t t
34039 s,@CPPFLAGS@,$CPPFLAGS,;t t
34040 s,@ac_ct_CC@,$ac_ct_CC,;t t
34041 s,@EXEEXT@,$EXEEXT,;t t
34042 s,@OBJEXT@,$OBJEXT,;t t
34044 s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t
34045 s,@CPP_FOR_BUILD@,$CPP_FOR_BUILD,;t t
34046 s,@EXEEXT_FOR_BUILD@,$EXEEXT_FOR_BUILD,;t t
34047 s,@U_FOR_BUILD@,$U_FOR_BUILD,;t t
34048 s,@LIBM_FOR_BUILD@,$LIBM_FOR_BUILD,;t t
34049 s,@CCAS@,$CCAS,;t t
34051 s,@CXXFLAGS@,$CXXFLAGS,;t t
34052 s,@ac_ct_CXX@,$ac_ct_CXX,;t t
34053 s,@WANT_CXX_TRUE@,$WANT_CXX_TRUE,;t t
34054 s,@WANT_CXX_FALSE@,$WANT_CXX_FALSE,;t t
34055 s,@CXXCPP@,$CXXCPP,;t t
34056 s,@EGREP@,$EGREP,;t t
34058 s,@ANSI2KNR@,$ANSI2KNR,;t t
34060 s,@ac_ct_AR@,$ac_ct_AR,;t t
34061 s,@LIBGMP_DLL@,$LIBGMP_DLL,;t t
34062 s,@LN_S@,$LN_S,;t t
34063 s,@ECHO@,$ECHO,;t t
34064 s,@RANLIB@,$RANLIB,;t t
34065 s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
34066 s,@DLLTOOL@,$DLLTOOL,;t t
34067 s,@ac_ct_DLLTOOL@,$ac_ct_DLLTOOL,;t t
34069 s,@ac_ct_AS@,$ac_ct_AS,;t t
34070 s,@OBJDUMP@,$OBJDUMP,;t t
34071 s,@ac_ct_OBJDUMP@,$ac_ct_OBJDUMP,;t t
34072 s,@LIBTOOL@,$LIBTOOL,;t t
34073 s,@ENABLE_STATIC_TRUE@,$ENABLE_STATIC_TRUE,;t t
34074 s,@ENABLE_STATIC_FALSE@,$ENABLE_STATIC_FALSE,;t t
34075 s,@LIBM@,$LIBM,;t t
34076 s,@TAL_OBJECT@,$TAL_OBJECT,;t t
34078 s,@BITS_PER_MP_LIMB@,$BITS_PER_MP_LIMB,;t t
34079 s,@mpn_objs_in_libmp@,$mpn_objs_in_libmp,;t t
34080 s,@mpn_objects@,$mpn_objects,;t t
34081 s,@mpn_objs_in_libgmp@,$mpn_objs_in_libgmp,;t t
34082 s,@gmp_srclinks@,$gmp_srclinks,;t t
34083 s,@TUNE_SQR_OBJ@,$TUNE_SQR_OBJ,;t t
34084 s,@HAVE_CLOCK_01@,$HAVE_CLOCK_01,;t t
34085 s,@HAVE_CPUTIME_01@,$HAVE_CPUTIME_01,;t t
34086 s,@HAVE_GETRUSAGE_01@,$HAVE_GETRUSAGE_01,;t t
34087 s,@HAVE_GETTIMEOFDAY_01@,$HAVE_GETTIMEOFDAY_01,;t t
34088 s,@HAVE_SIGACTION_01@,$HAVE_SIGACTION_01,;t t
34089 s,@HAVE_SIGALTSTACK_01@,$HAVE_SIGALTSTACK_01,;t t
34090 s,@HAVE_SIGSTACK_01@,$HAVE_SIGSTACK_01,;t t
34091 s,@HAVE_SYS_RESOURCE_H_01@,$HAVE_SYS_RESOURCE_H_01,;t t
34092 s,@HAVE_STACK_T_01@,$HAVE_STACK_T_01,;t t
34093 s,@LIBCURSES@,$LIBCURSES,;t t
34094 s,@WITH_READLINE_01@,$WITH_READLINE_01,;t t
34095 s,@LIBREADLINE@,$LIBREADLINE,;t t
34096 s,@YACC@,$YACC,;t t
34098 s,@LEXLIB@,$LEXLIB,;t t
34099 s,@LEX_OUTPUT_ROOT@,$LEX_OUTPUT_ROOT,;t t
34100 s,@LIBOBJS@,$LIBOBJS,;t t
34101 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
34106 cat >>$CONFIG_STATUS <<\_ACEOF
34107 # Split the substitutions into bite-sized pieces for seds with
34108 # small command number limits, like on Digital OSF/1 and HP-UX.
34109 ac_max_sed_lines=48
34110 ac_sed_frag=1 # Number of current file.
34111 ac_beg=1 # First line for current file.
34112 ac_end=$ac_max_sed_lines # Line after last line for current file.
34115 while $ac_more_lines; do
34116 if test $ac_beg -gt 1; then
34117 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
34119 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
34121 if test ! -s $tmp/subs.frag; then
34122 ac_more_lines=false
34124 # The purpose of the label and of the branching condition is to
34125 # speed up the sed processing (if there are no `@' at all, there
34126 # is no need to browse any of the substitutions).
34127 # These are the two extra sed commands mentioned above.
34129 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
34130 if test -z "$ac_sed_cmds"; then
34131 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
34133 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
34135 ac_sed_frag=`expr $ac_sed_frag + 1`
34137 ac_end=`expr $ac_end + $ac_max_sed_lines`
34140 if test -z "$ac_sed_cmds"; then
34143 fi # test -n "$CONFIG_FILES"
34146 cat >>$CONFIG_STATUS <<\_ACEOF
34147 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
34148 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
34150 - | *:- | *:-:* ) # input from stdin
34152 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
34153 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
34154 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
34155 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
34156 * ) ac_file_in=$ac_file.in ;;
34159 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
34160 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
34161 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34162 X"$ac_file" : 'X\(//\)[^/]' \| \
34163 X"$ac_file" : 'X\(//\)$' \| \
34164 X"$ac_file" : 'X\(/\)' \| \
34165 . : '\(.\)' 2>/dev/null ||
34167 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
34168 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
34169 /^X\(\/\/\)$/{ s//\1/; q; }
34170 /^X\(\/\).*/{ s//\1/; q; }
34172 { if $as_mkdir_p; then
34177 while test ! -d "$as_dir"; do
34178 as_dirs="$as_dir $as_dirs"
34179 as_dir=`(dirname "$as_dir") 2>/dev/null ||
34180 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34181 X"$as_dir" : 'X\(//\)[^/]' \| \
34182 X"$as_dir" : 'X\(//\)$' \| \
34183 X"$as_dir" : 'X\(/\)' \| \
34184 . : '\(.\)' 2>/dev/null ||
34186 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
34187 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
34188 /^X\(\/\/\)$/{ s//\1/; q; }
34189 /^X\(\/\).*/{ s//\1/; q; }
34192 test ! -n "$as_dirs" || mkdir $as_dirs
34193 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
34194 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
34195 { (exit 1); exit 1; }; }; }
34199 if test "$ac_dir" != .; then
34200 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
34201 # A "../" for each directory in $ac_dir_suffix.
34202 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
34204 ac_dir_suffix= ac_top_builddir=
34208 .) # No --srcdir option. We are building in place.
34210 if test -z "$ac_top_builddir"; then
34213 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
34215 [\\/]* | ?:[\\/]* ) # Absolute path.
34216 ac_srcdir=$srcdir$ac_dir_suffix;
34217 ac_top_srcdir=$srcdir ;;
34218 *) # Relative path.
34219 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
34220 ac_top_srcdir=$ac_top_builddir$srcdir ;;
34223 # Do not use `cd foo && pwd` to compute absolute paths, because
34224 # the directories may not exist.
34226 .) ac_abs_builddir="$ac_dir";;
34229 .) ac_abs_builddir=`pwd`;;
34230 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
34231 *) ac_abs_builddir=`pwd`/"$ac_dir";;
34234 case $ac_abs_builddir in
34235 .) ac_abs_top_builddir=${ac_top_builddir}.;;
34237 case ${ac_top_builddir}. in
34238 .) ac_abs_top_builddir=$ac_abs_builddir;;
34239 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
34240 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
34243 case $ac_abs_builddir in
34244 .) ac_abs_srcdir=$ac_srcdir;;
34247 .) ac_abs_srcdir=$ac_abs_builddir;;
34248 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
34249 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
34252 case $ac_abs_builddir in
34253 .) ac_abs_top_srcdir=$ac_top_srcdir;;
34255 case $ac_top_srcdir in
34256 .) ac_abs_top_srcdir=$ac_abs_builddir;;
34257 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
34258 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
34264 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
34265 *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
34268 if test x"$ac_file" != x-; then
34269 { echo "$as_me:$LINENO: creating $ac_file" >&5
34270 echo "$as_me: creating $ac_file" >&6;}
34273 # Let's still pretend it is `configure' which instantiates (i.e., don't
34274 # use $as_me), people would be surprised to read:
34275 # /* config.h. Generated by config.status. */
34276 if test x"$ac_file" = x-; then
34279 configure_input="$ac_file. "
34281 configure_input=$configure_input"Generated from `echo $ac_file_in |
34282 sed 's,.*/,,'` by configure."
34284 # First look for the input files in the build tree, otherwise in the
34286 ac_file_inputs=`IFS=:
34287 for f in $ac_file_in; do
34289 -) echo $tmp/stdin ;;
34291 # Absolute (can't be DOS-style, as IFS=:)
34292 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
34293 echo "$as_me: error: cannot find input file: $f" >&2;}
34294 { (exit 1); exit 1; }; }
34297 if test -f "$f"; then
34300 elif test -f "$srcdir/$f"; then
34305 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
34306 echo "$as_me: error: cannot find input file: $f" >&2;}
34307 { (exit 1); exit 1; }; }
34310 done` || { (exit 1); exit 1; }
34312 cat >>$CONFIG_STATUS <<_ACEOF
34316 cat >>$CONFIG_STATUS <<\_ACEOF
34318 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
34319 s,@configure_input@,$configure_input,;t t
34320 s,@srcdir@,$ac_srcdir,;t t
34321 s,@abs_srcdir@,$ac_abs_srcdir,;t t
34322 s,@top_srcdir@,$ac_top_srcdir,;t t
34323 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
34324 s,@builddir@,$ac_builddir,;t t
34325 s,@abs_builddir@,$ac_abs_builddir,;t t
34326 s,@top_builddir@,$ac_top_builddir,;t t
34327 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
34328 s,@INSTALL@,$ac_INSTALL,;t t
34329 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
34331 if test x"$ac_file" != x-; then
34332 mv $tmp/out $ac_file
34340 cat >>$CONFIG_STATUS <<\_ACEOF
34343 # CONFIG_HEADER section.
34346 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
34347 # NAME is the cpp macro being defined and VALUE is the value it is being given.
34349 # ac_d sets the value in "#define NAME VALUE" lines.
34350 ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
34351 ac_dB='[ ].*$,\1#\2'
34354 # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
34355 ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
34356 ac_uB='$,\1#\2define\3'
34360 for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
34361 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
34363 - | *:- | *:-:* ) # input from stdin
34365 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
34366 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
34367 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
34368 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
34369 * ) ac_file_in=$ac_file.in ;;
34372 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
34373 echo "$as_me: creating $ac_file" >&6;}
34375 # First look for the input files in the build tree, otherwise in the
34377 ac_file_inputs=`IFS=:
34378 for f in $ac_file_in; do
34380 -) echo $tmp/stdin ;;
34382 # Absolute (can't be DOS-style, as IFS=:)
34383 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
34384 echo "$as_me: error: cannot find input file: $f" >&2;}
34385 { (exit 1); exit 1; }; }
34386 # Do quote $f, to prevent DOS paths from being IFS'd.
34389 if test -f "$f"; then
34392 elif test -f "$srcdir/$f"; then
34397 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
34398 echo "$as_me: error: cannot find input file: $f" >&2;}
34399 { (exit 1); exit 1; }; }
34402 done` || { (exit 1); exit 1; }
34403 # Remove the trailing spaces.
34404 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
34408 # Transform confdefs.h into two sed scripts, `conftest.defines' and
34409 # `conftest.undefs', that substitutes the proper values into
34410 # config.h.in to produce config.h. The first handles `#define'
34411 # templates, and the second `#undef' templates.
34412 # And first: Protect against being on the right side of a sed subst in
34413 # config.status. Protect against being in an unquoted here document
34414 # in config.status.
34415 rm -f conftest.defines conftest.undefs
34416 # Using a here document instead of a string reduces the quoting nightmare.
34417 # Putting comments in sed scripts is not portable.
34419 # `end' is used to avoid that the second main sed command (meant for
34420 # 0-ary CPP macros) applies to n-ary macro definitions.
34421 # See the Autoconf documentation for `clear'.
34422 cat >confdef2sed.sed <<\_ACEOF
34427 s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
34429 s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
34432 # If some macros were called several times there might be several times
34433 # the same #defines, which is useless. Nevertheless, we may not want to
34434 # sort them, since we want the *last* AC-DEFINE to be honored.
34435 uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
34436 sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
34437 rm -f confdef2sed.sed
34439 # This sed command replaces #undef with comments. This is necessary, for
34440 # example, in the case of _POSIX_SOURCE, which is predefined and required
34441 # on some systems where configure will not decide to define it.
34442 cat >>conftest.undefs <<\_ACEOF
34443 s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
34446 # Break up conftest.defines because some shells have a limit on the size
34447 # of here documents, and old seds have small limits too (100 cmds).
34448 echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
34449 echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
34450 echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
34451 echo ' :' >>$CONFIG_STATUS
34452 rm -f conftest.tail
34453 while grep . conftest.defines >/dev/null
34455 # Write a limited-size here document to $tmp/defines.sed.
34456 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
34457 # Speed up: don't consider the non `#define' lines.
34458 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
34459 # Work around the forget-to-reset-the-flag bug.
34460 echo 't clr' >>$CONFIG_STATUS
34461 echo ': clr' >>$CONFIG_STATUS
34462 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
34464 sed -f $tmp/defines.sed $tmp/in >$tmp/out
34466 mv $tmp/out $tmp/in
34468 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
34469 rm -f conftest.defines
34470 mv conftest.tail conftest.defines
34472 rm -f conftest.defines
34473 echo ' fi # grep' >>$CONFIG_STATUS
34474 echo >>$CONFIG_STATUS
34476 # Break up conftest.undefs because some shells have a limit on the size
34477 # of here documents, and old seds have small limits too (100 cmds).
34478 echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
34479 rm -f conftest.tail
34480 while grep . conftest.undefs >/dev/null
34482 # Write a limited-size here document to $tmp/undefs.sed.
34483 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
34484 # Speed up: don't consider the non `#undef'
34485 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
34486 # Work around the forget-to-reset-the-flag bug.
34487 echo 't clr' >>$CONFIG_STATUS
34488 echo ': clr' >>$CONFIG_STATUS
34489 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
34491 sed -f $tmp/undefs.sed $tmp/in >$tmp/out
34493 mv $tmp/out $tmp/in
34495 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
34496 rm -f conftest.undefs
34497 mv conftest.tail conftest.undefs
34499 rm -f conftest.undefs
34501 cat >>$CONFIG_STATUS <<\_ACEOF
34502 # Let's still pretend it is `configure' which instantiates (i.e., don't
34503 # use $as_me), people would be surprised to read:
34504 # /* config.h. Generated by config.status. */
34505 if test x"$ac_file" = x-; then
34506 echo "/* Generated by configure. */" >$tmp/config.h
34508 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
34510 cat $tmp/in >>$tmp/config.h
34512 if test x"$ac_file" != x-; then
34513 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
34514 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
34515 echo "$as_me: $ac_file is unchanged" >&6;}
34517 ac_dir=`(dirname "$ac_file") 2>/dev/null ||
34518 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34519 X"$ac_file" : 'X\(//\)[^/]' \| \
34520 X"$ac_file" : 'X\(//\)$' \| \
34521 X"$ac_file" : 'X\(/\)' \| \
34522 . : '\(.\)' 2>/dev/null ||
34524 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
34525 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
34526 /^X\(\/\/\)$/{ s//\1/; q; }
34527 /^X\(\/\).*/{ s//\1/; q; }
34529 { if $as_mkdir_p; then
34534 while test ! -d "$as_dir"; do
34535 as_dirs="$as_dir $as_dirs"
34536 as_dir=`(dirname "$as_dir") 2>/dev/null ||
34537 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34538 X"$as_dir" : 'X\(//\)[^/]' \| \
34539 X"$as_dir" : 'X\(//\)$' \| \
34540 X"$as_dir" : 'X\(/\)' \| \
34541 . : '\(.\)' 2>/dev/null ||
34543 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
34544 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
34545 /^X\(\/\/\)$/{ s//\1/; q; }
34546 /^X\(\/\).*/{ s//\1/; q; }
34549 test ! -n "$as_dirs" || mkdir $as_dirs
34550 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
34551 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
34552 { (exit 1); exit 1; }; }; }
34555 mv $tmp/config.h $ac_file
34559 rm -f $tmp/config.h
34561 # Compute $ac_file's index in $config_headers.
34563 for _am_header in $config_headers :; do
34564 case $_am_header in
34565 $ac_file | $ac_file:* )
34568 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
34571 echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
34572 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34573 X$ac_file : 'X\(//\)[^/]' \| \
34574 X$ac_file : 'X\(//\)$' \| \
34575 X$ac_file : 'X\(/\)' \| \
34576 . : '\(.\)' 2>/dev/null ||
34578 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
34579 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
34580 /^X\(\/\/\)$/{ s//\1/; q; }
34581 /^X\(\/\).*/{ s//\1/; q; }
34582 s/.*/./; q'`/stamp-h$_am_stamp_count
34585 cat >>$CONFIG_STATUS <<\_ACEOF
34588 # CONFIG_LINKS section.
34591 for ac_file in : $CONFIG_LINKS; do test "x$ac_file" = x: && continue
34592 ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
34593 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
34595 { echo "$as_me:$LINENO: linking $srcdir/$ac_source to $ac_dest" >&5
34596 echo "$as_me: linking $srcdir/$ac_source to $ac_dest" >&6;}
34598 if test ! -r $srcdir/$ac_source; then
34599 { { echo "$as_me:$LINENO: error: $srcdir/$ac_source: file not found" >&5
34600 echo "$as_me: error: $srcdir/$ac_source: file not found" >&2;}
34601 { (exit 1); exit 1; }; }
34605 # Make relative symlinks.
34606 ac_dest_dir=`(dirname "$ac_dest") 2>/dev/null ||
34607 $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34608 X"$ac_dest" : 'X\(//\)[^/]' \| \
34609 X"$ac_dest" : 'X\(//\)$' \| \
34610 X"$ac_dest" : 'X\(/\)' \| \
34611 . : '\(.\)' 2>/dev/null ||
34613 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
34614 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
34615 /^X\(\/\/\)$/{ s//\1/; q; }
34616 /^X\(\/\).*/{ s//\1/; q; }
34618 { if $as_mkdir_p; then
34619 mkdir -p "$ac_dest_dir"
34621 as_dir="$ac_dest_dir"
34623 while test ! -d "$as_dir"; do
34624 as_dirs="$as_dir $as_dirs"
34625 as_dir=`(dirname "$as_dir") 2>/dev/null ||
34626 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
34627 X"$as_dir" : 'X\(//\)[^/]' \| \
34628 X"$as_dir" : 'X\(//\)$' \| \
34629 X"$as_dir" : 'X\(/\)' \| \
34630 . : '\(.\)' 2>/dev/null ||
34632 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
34633 /^X\(\/\/\)[^/].*/{ s//\1/; q; }
34634 /^X\(\/\/\)$/{ s//\1/; q; }
34635 /^X\(\/\).*/{ s//\1/; q; }
34638 test ! -n "$as_dirs" || mkdir $as_dirs
34639 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dest_dir\"" >&5
34640 echo "$as_me: error: cannot create directory \"$ac_dest_dir\"" >&2;}
34641 { (exit 1); exit 1; }; }; }
34645 if test "$ac_dest_dir" != .; then
34646 ac_dir_suffix=/`echo "$ac_dest_dir" | sed 's,^\.[\\/],,'`
34647 # A "../" for each directory in $ac_dir_suffix.
34648 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
34650 ac_dir_suffix= ac_top_builddir=
34654 .) # No --srcdir option. We are building in place.
34656 if test -z "$ac_top_builddir"; then
34659 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
34661 [\\/]* | ?:[\\/]* ) # Absolute path.
34662 ac_srcdir=$srcdir$ac_dir_suffix;
34663 ac_top_srcdir=$srcdir ;;
34664 *) # Relative path.
34665 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
34666 ac_top_srcdir=$ac_top_builddir$srcdir ;;
34669 # Do not use `cd foo && pwd` to compute absolute paths, because
34670 # the directories may not exist.
34672 .) ac_abs_builddir="$ac_dest_dir";;
34674 case "$ac_dest_dir" in
34675 .) ac_abs_builddir=`pwd`;;
34676 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dest_dir";;
34677 *) ac_abs_builddir=`pwd`/"$ac_dest_dir";;
34680 case $ac_abs_builddir in
34681 .) ac_abs_top_builddir=${ac_top_builddir}.;;
34683 case ${ac_top_builddir}. in
34684 .) ac_abs_top_builddir=$ac_abs_builddir;;
34685 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
34686 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
34689 case $ac_abs_builddir in
34690 .) ac_abs_srcdir=$ac_srcdir;;
34693 .) ac_abs_srcdir=$ac_abs_builddir;;
34694 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
34695 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
34698 case $ac_abs_builddir in
34699 .) ac_abs_top_srcdir=$ac_top_srcdir;;
34701 case $ac_top_srcdir in
34702 .) ac_abs_top_srcdir=$ac_abs_builddir;;
34703 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
34704 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
34710 [\\/$]* | ?:[\\/]* ) ac_rel_source=$srcdir/$ac_source ;;
34711 *) ac_rel_source=$ac_top_builddir$srcdir/$ac_source ;;
34714 # Try a symlink, then a hard link, then a copy.
34715 ln -s $ac_rel_source $ac_dest 2>/dev/null ||
34716 ln $srcdir/$ac_source $ac_dest 2>/dev/null ||
34717 cp -p $srcdir/$ac_source $ac_dest ||
34718 { { echo "$as_me:$LINENO: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&5
34719 echo "$as_me: error: cannot link or copy $srcdir/$ac_source to $ac_dest" >&2;}
34720 { (exit 1); exit 1; }; }
34724 cat >>$CONFIG_STATUS <<\_ACEOF
34726 { (exit 0); exit 0; }
34728 chmod +x $CONFIG_STATUS
34729 ac_clean_files=$ac_clean_files_save
34732 # configure is writing to config.log, and then calls config.status.
34733 # config.status does its own redirection, appending to config.log.
34734 # Unfortunately, on DOS this fails, as config.log is still kept open
34735 # by configure, so config.status won't be able to write to it; its
34736 # output is simply discarded. So we exec the FD to /dev/null,
34737 # effectively closing config.log, so it can be properly (re)opened and
34738 # appended to by config.status. When coming back to configure, we
34739 # need to make the FD available again.
34740 if test "$no_create" != yes; then
34742 ac_config_status_args=
34743 test "$silent" = yes &&
34744 ac_config_status_args="$ac_config_status_args --quiet"
34746 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
34748 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
34749 # would make configure fail if this is the last instruction.
34750 $ac_cs_success || { (exit 1); exit 1; }