1#! /bin/sh 2# From configure.in Revision. 3# Guess values for system-dependent variables and create Makefiles. 4# Generated by GNU Autoconf 2.65 for GNU MP 5.0.5. 5# 6# Report bugs to <gmp-bugs@gmplib.org, see http://gmplib.org/manual/Reporting-Bugs.html>. 7# 8# 9# 10# Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 11# 2007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. 12# 13# This file is part of the GNU MP Library. 14# 15# The GNU MP Library is free software; you can redistribute it and/or modify 16# it under the terms of the GNU Lesser General Public License as published 17# by the Free Software Foundation; either version 3 of the License, or (at 18# your option) any later version. 19# 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. 24# 25# You should have received a copy of the GNU Lesser General Public License 26# along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. 27# 28# 29# 30# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 31# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, 32# Inc. 33# 34# 35# This configure script is free software; the Free Software Foundation 36# gives unlimited permission to copy, distribute and modify it. 37## -------------------- ## 38## M4sh Initialization. ## 39## -------------------- ## 40 41# Be more Bourne compatible 42DUALCASE=1; export DUALCASE # for MKS sh 43if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 44 emulate sh 45 NULLCMD=: 46 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 47 # is contrary to our usage. Disable this feature. 48 alias -g '${1+"$@"}'='"$@"' 49 setopt NO_GLOB_SUBST 50else 51 case `(set -o) 2>/dev/null` in #( 52 *posix*) : 53 set -o posix ;; #( 54 *) : 55 ;; 56esac 57fi 58 59 60as_nl=' 61' 62export as_nl 63# Printing a long string crashes Solaris 7 /usr/bin/printf. 64as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 65as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 66as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 67# Prefer a ksh shell builtin over an external printf program on Solaris, 68# but without wasting forks for bash or zsh. 69if test -z "$BASH_VERSION$ZSH_VERSION" \ 70 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 71 as_echo='print -r --' 72 as_echo_n='print -rn --' 73elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 74 as_echo='printf %s\n' 75 as_echo_n='printf %s' 76else 77 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 78 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 79 as_echo_n='/usr/ucb/echo -n' 80 else 81 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 82 as_echo_n_body='eval 83 arg=$1; 84 case $arg in #( 85 *"$as_nl"*) 86 expr "X$arg" : "X\\(.*\\)$as_nl"; 87 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 88 esac; 89 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 90 ' 91 export as_echo_n_body 92 as_echo_n='sh -c $as_echo_n_body as_echo' 93 fi 94 export as_echo_body 95 as_echo='sh -c $as_echo_body as_echo' 96fi 97 98# The user is always right. 99if test "${PATH_SEPARATOR+set}" != set; then 100 PATH_SEPARATOR=: 101 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 102 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 103 PATH_SEPARATOR=';' 104 } 105fi 106 107 108# IFS 109# We need space, tab and new line, in precisely that order. Quoting is 110# there to prevent editors from complaining about space-tab. 111# (If _AS_PATH_WALK were called with IFS unset, it would disable word 112# splitting by setting IFS to empty value.) 113IFS=" "" $as_nl" 114 115# Find who we are. Look in the path if we contain no directory separator. 116case $0 in #(( 117 *[\\/]* ) as_myself=$0 ;; 118 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 119for as_dir in $PATH 120do 121 IFS=$as_save_IFS 122 test -z "$as_dir" && as_dir=. 123 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 124 done 125IFS=$as_save_IFS 126 127 ;; 128esac 129# We did not find ourselves, most probably we were run as `sh COMMAND' 130# in which case we are not to be found in the path. 131if test "x$as_myself" = x; then 132 as_myself=$0 133fi 134if test ! -f "$as_myself"; then 135 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 136 exit 1 137fi 138 139# Unset variables that we do not need and which cause bugs (e.g. in 140# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 141# suppresses any "Segmentation fault" message there. '((' could 142# trigger a bug in pdksh 5.2.14. 143for as_var in BASH_ENV ENV MAIL MAILPATH 144do eval test x\${$as_var+set} = xset \ 145 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 146done 147PS1='$ ' 148PS2='> ' 149PS4='+ ' 150 151# NLS nuisances. 152LC_ALL=C 153export LC_ALL 154LANGUAGE=C 155export LANGUAGE 156 157# CDPATH. 158(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 159 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1" 194 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 195 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 196 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 197 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 198test \$(( 1 + 1 )) = 2 || exit 1 199 200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 204 PATH=/empty FPATH=/empty; export PATH FPATH 205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 207 if (eval "$as_required") 2>/dev/null; then : 208 as_have_required=yes 209else 210 as_have_required=no 211fi 212 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 213 214else 215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 216as_found=false 217for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 218do 219 IFS=$as_save_IFS 220 test -z "$as_dir" && as_dir=. 221 as_found=: 222 case $as_dir in #( 223 /*) 224 for as_base in sh bash ksh sh5; do 225 # Try only shells that exist, to save several forks. 226 as_shell=$as_dir/$as_base 227 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 228 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 229 CONFIG_SHELL=$as_shell as_have_required=yes 230 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 231 break 2 232fi 233fi 234 done;; 235 esac 236 as_found=false 237done 238$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 239 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 240 CONFIG_SHELL=$SHELL as_have_required=yes 241fi; } 242IFS=$as_save_IFS 243 244 245 if test "x$CONFIG_SHELL" != x; then : 246 # We cannot yet assume a decent shell, so we have to provide a 247 # neutralization value for shells without unset; and this also 248 # works around shells that cannot unset nonexistent variables. 249 BASH_ENV=/dev/null 250 ENV=/dev/null 251 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 252 export CONFIG_SHELL 253 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 254fi 255 256 if test x$as_have_required = xno; then : 257 $as_echo "$0: This script requires a shell more modern than all" 258 $as_echo "$0: the shells that I found on your system." 259 if test x${ZSH_VERSION+set} = xset ; then 260 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 261 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 262 else 263 $as_echo "$0: Please tell bug-autoconf@gnu.org and 264$0: gmp-bugs@gmplib.org, see 265$0: http://gmplib.org/manual/Reporting-Bugs.html about your 266$0: system, including any error possibly output before this 267$0: message. Then install a modern shell, or manually run 268$0: the script under such a shell if you do have one." 269 fi 270 exit 1 271fi 272fi 273fi 274SHELL=${CONFIG_SHELL-/bin/sh} 275export SHELL 276# Unset more variables known to interfere with behavior of common tools. 277CLICOLOR_FORCE= GREP_OPTIONS= 278unset CLICOLOR_FORCE GREP_OPTIONS 279 280## --------------------- ## 281## M4sh Shell Functions. ## 282## --------------------- ## 283# as_fn_unset VAR 284# --------------- 285# Portably unset VAR. 286as_fn_unset () 287{ 288 { eval $1=; unset $1;} 289} 290as_unset=as_fn_unset 291 292# as_fn_set_status STATUS 293# ----------------------- 294# Set $? to STATUS, without forking. 295as_fn_set_status () 296{ 297 return $1 298} # as_fn_set_status 299 300# as_fn_exit STATUS 301# ----------------- 302# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 303as_fn_exit () 304{ 305 set +e 306 as_fn_set_status $1 307 exit $1 308} # as_fn_exit 309 310# as_fn_mkdir_p 311# ------------- 312# Create "$as_dir" as a directory, including parents if necessary. 313as_fn_mkdir_p () 314{ 315 316 case $as_dir in #( 317 -*) as_dir=./$as_dir;; 318 esac 319 test -d "$as_dir" || eval $as_mkdir_p || { 320 as_dirs= 321 while :; do 322 case $as_dir in #( 323 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 324 *) as_qdir=$as_dir;; 325 esac 326 as_dirs="'$as_qdir' $as_dirs" 327 as_dir=`$as_dirname -- "$as_dir" || 328$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 329 X"$as_dir" : 'X\(//\)[^/]' \| \ 330 X"$as_dir" : 'X\(//\)$' \| \ 331 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 332$as_echo X"$as_dir" | 333 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 334 s//\1/ 335 q 336 } 337 /^X\(\/\/\)[^/].*/{ 338 s//\1/ 339 q 340 } 341 /^X\(\/\/\)$/{ 342 s//\1/ 343 q 344 } 345 /^X\(\/\).*/{ 346 s//\1/ 347 q 348 } 349 s/.*/./; q'` 350 test -d "$as_dir" && break 351 done 352 test -z "$as_dirs" || eval "mkdir $as_dirs" 353 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 354 355 356} # as_fn_mkdir_p 357# as_fn_append VAR VALUE 358# ---------------------- 359# Append the text in VALUE to the end of the definition contained in VAR. Take 360# advantage of any shell optimizations that allow amortized linear growth over 361# repeated appends, instead of the typical quadratic growth present in naive 362# implementations. 363if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 364 eval 'as_fn_append () 365 { 366 eval $1+=\$2 367 }' 368else 369 as_fn_append () 370 { 371 eval $1=\$$1\$2 372 } 373fi # as_fn_append 374 375# as_fn_arith ARG... 376# ------------------ 377# Perform arithmetic evaluation on the ARGs, and store the result in the 378# global $as_val. Take advantage of shells that can avoid forks. The arguments 379# must be portable across $(()) and expr. 380if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 381 eval 'as_fn_arith () 382 { 383 as_val=$(( $* )) 384 }' 385else 386 as_fn_arith () 387 { 388 as_val=`expr "$@" || test $? -eq 1` 389 } 390fi # as_fn_arith 391 392 393# as_fn_error ERROR [LINENO LOG_FD] 394# --------------------------------- 395# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 396# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 397# script with status $?, using 1 if that was 0. 398as_fn_error () 399{ 400 as_status=$?; test $as_status -eq 0 && as_status=1 401 if test "$3"; then 402 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 403 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 404 fi 405 $as_echo "$as_me: error: $1" >&2 406 as_fn_exit $as_status 407} # as_fn_error 408 409if expr a : '\(a\)' >/dev/null 2>&1 && 410 test "X`expr 00001 : '.*\(...\)'`" = X001; then 411 as_expr=expr 412else 413 as_expr=false 414fi 415 416if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 417 as_basename=basename 418else 419 as_basename=false 420fi 421 422if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 423 as_dirname=dirname 424else 425 as_dirname=false 426fi 427 428as_me=`$as_basename -- "$0" || 429$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 430 X"$0" : 'X\(//\)$' \| \ 431 X"$0" : 'X\(/\)' \| . 2>/dev/null || 432$as_echo X/"$0" | 433 sed '/^.*\/\([^/][^/]*\)\/*$/{ 434 s//\1/ 435 q 436 } 437 /^X\/\(\/\/\)$/{ 438 s//\1/ 439 q 440 } 441 /^X\/\(\/\).*/{ 442 s//\1/ 443 q 444 } 445 s/.*/./; q'` 446 447# Avoid depending upon Character Ranges. 448as_cr_letters='abcdefghijklmnopqrstuvwxyz' 449as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 450as_cr_Letters=$as_cr_letters$as_cr_LETTERS 451as_cr_digits='0123456789' 452as_cr_alnum=$as_cr_Letters$as_cr_digits 453 454 455 as_lineno_1=$LINENO as_lineno_1a=$LINENO 456 as_lineno_2=$LINENO as_lineno_2a=$LINENO 457 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 458 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 459 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 460 sed -n ' 461 p 462 /[$]LINENO/= 463 ' <$as_myself | 464 sed ' 465 s/[$]LINENO.*/&-/ 466 t lineno 467 b 468 :lineno 469 N 470 :loop 471 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 472 t loop 473 s/-\n.*// 474 ' >$as_me.lineno && 475 chmod +x "$as_me.lineno" || 476 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 477 478 # Don't try to exec as it changes $[0], causing all sort of problems 479 # (the dirname of $[0] is not the place where we might find the 480 # original and so on. Autoconf is especially sensitive to this). 481 . "./$as_me.lineno" 482 # Exit status is that of the last command. 483 exit 484} 485 486ECHO_C= ECHO_N= ECHO_T= 487case `echo -n x` in #((((( 488-n*) 489 case `echo 'xy\c'` in 490 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 491 xy) ECHO_C='\c';; 492 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 493 ECHO_T=' ';; 494 esac;; 495*) 496 ECHO_N='-n';; 497esac 498 499rm -f conf$$ conf$$.exe conf$$.file 500if test -d conf$$.dir; then 501 rm -f conf$$.dir/conf$$.file 502else 503 rm -f conf$$.dir 504 mkdir conf$$.dir 2>/dev/null 505fi 506if (echo >conf$$.file) 2>/dev/null; then 507 if ln -s conf$$.file conf$$ 2>/dev/null; then 508 as_ln_s='ln -s' 509 # ... but there are two gotchas: 510 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 511 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 512 # In both cases, we have to default to `cp -p'. 513 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 514 as_ln_s='cp -p' 515 elif ln conf$$.file conf$$ 2>/dev/null; then 516 as_ln_s=ln 517 else 518 as_ln_s='cp -p' 519 fi 520else 521 as_ln_s='cp -p' 522fi 523rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 524rmdir conf$$.dir 2>/dev/null 525 526if mkdir -p . 2>/dev/null; then 527 as_mkdir_p='mkdir -p "$as_dir"' 528else 529 test -d ./-p && rmdir ./-p 530 as_mkdir_p=false 531fi 532 533if test -x / >/dev/null 2>&1; then 534 as_test_x='test -x' 535else 536 if ls -dL / >/dev/null 2>&1; then 537 as_ls_L_option=L 538 else 539 as_ls_L_option= 540 fi 541 as_test_x=' 542 eval sh -c '\'' 543 if test -d "$1"; then 544 test -d "$1/."; 545 else 546 case $1 in #( 547 -*)set "./$1";; 548 esac; 549 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 550 ???[sx]*):;;*)false;;esac;fi 551 '\'' sh 552 ' 553fi 554as_executable_p=$as_test_x 555 556# Sed expression to map a string onto a valid CPP name. 557as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 558 559# Sed expression to map a string onto a valid variable name. 560as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 561 562SHELL=${CONFIG_SHELL-/bin/sh} 563 564 565test -n "$DJDIR" || exec 7<&0 </dev/null 566exec 6>&1 567 568# Name of the host. 569# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 570# so uname gets run too. 571ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 572 573# 574# Initializations. 575# 576ac_default_prefix=/usr/local 577ac_clean_files= 578ac_config_libobj_dir=. 579LIBOBJS= 580cross_compiling=no 581subdirs= 582MFLAGS= 583MAKEFLAGS= 584 585# Identity of this package. 586PACKAGE_NAME='GNU MP' 587PACKAGE_TARNAME='gmp' 588PACKAGE_VERSION='5.0.5' 589PACKAGE_STRING='GNU MP 5.0.5' 590PACKAGE_BUGREPORT='gmp-bugs@gmplib.org, see http://gmplib.org/manual/Reporting-Bugs.html' 591PACKAGE_URL='http://www.gnu.org/software/gmp/' 592 593ac_unique_file="gmp-impl.h" 594# Factoring default headers for most tests. 595ac_includes_default="\ 596#include <stdio.h> 597#ifdef HAVE_SYS_TYPES_H 598# include <sys/types.h> 599#endif 600#ifdef HAVE_SYS_STAT_H 601# include <sys/stat.h> 602#endif 603#ifdef STDC_HEADERS 604# include <stdlib.h> 605# include <stddef.h> 606#else 607# ifdef HAVE_STDLIB_H 608# include <stdlib.h> 609# endif 610#endif 611#ifdef HAVE_STRING_H 612# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 613# include <memory.h> 614# endif 615# include <string.h> 616#endif 617#ifdef HAVE_STRINGS_H 618# include <strings.h> 619#endif 620#ifdef HAVE_INTTYPES_H 621# include <inttypes.h> 622#endif 623#ifdef HAVE_STDINT_H 624# include <stdint.h> 625#endif 626#ifdef HAVE_UNISTD_H 627# include <unistd.h> 628#endif" 629 630ac_subst_vars='am__EXEEXT_FALSE 631am__EXEEXT_TRUE 632LTLIBOBJS 633LIBOBJS 634LEXLIB 635LEX_OUTPUT_ROOT 636LEX 637YFLAGS 638YACC 639LIBREADLINE 640WITH_READLINE_01 641LIBCURSES 642HAVE_STACK_T_01 643HAVE_SYS_RESOURCE_H_01 644HAVE_SIGSTACK_01 645HAVE_SIGALTSTACK_01 646HAVE_SIGACTION_01 647HAVE_GETTIMEOFDAY_01 648HAVE_GETRUSAGE_01 649HAVE_CPUTIME_01 650HAVE_CLOCK_01 651TUNE_SQR_OBJ 652gmp_srclinks 653mpn_objs_in_libgmp 654mpn_objects 655mpn_objs_in_libmp 656GMP_LIMB_BITS 657M4 658TAL_OBJECT 659LIBM 660ENABLE_STATIC_FALSE 661ENABLE_STATIC_TRUE 662OTOOL64 663OTOOL 664LIPO 665NMEDIT 666DSYMUTIL 667MANIFEST_TOOL 668RANLIB 669ac_ct_AR 670LN_S 671LD 672FGREP 673SED 674LIBTOOL 675LIBGMP_DLL 676OBJDUMP 677DLLTOOL 678AS 679NM 680ac_ct_DUMPBIN 681DUMPBIN 682AR 683ASMFLAGS 684ANSI2KNR 685U 686EGREP 687GREP 688CXXCPP 689WANT_CXX_FALSE 690WANT_CXX_TRUE 691ac_ct_CXX 692CXXFLAGS 693CXX 694CCAS 695LIBM_FOR_BUILD 696U_FOR_BUILD 697EXEEXT_FOR_BUILD 698CPP_FOR_BUILD 699CC_FOR_BUILD 700CPP 701OBJEXT 702EXEEXT 703ac_ct_CC 704CPPFLAGS 705LDFLAGS 706CFLAGS 707CC 708DEFN_LONG_LONG_LIMB 709CALLING_CONVENTIONS_OBJS 710SPEED_CYCLECOUNTER_OBJ 711LIBGMPXX_LDFLAGS 712LIBGMP_LDFLAGS 713GMP_LDFLAGS 714HAVE_HOST_CPU_FAMILY_powerpc 715HAVE_HOST_CPU_FAMILY_power 716ABI 717GMP_NAIL_BITS 718WANT_MPBSD_FALSE 719WANT_MPBSD_TRUE 720MAINT 721MAINTAINER_MODE_FALSE 722MAINTAINER_MODE_TRUE 723am__untar 724am__tar 725AMTAR 726am__leading_dot 727SET_MAKE 728AWK 729mkdir_p 730MKDIR_P 731INSTALL_STRIP_PROGRAM 732STRIP 733install_sh 734MAKEINFO 735AUTOHEADER 736AUTOMAKE 737AUTOCONF 738ACLOCAL 739VERSION 740PACKAGE 741CYGPATH_W 742am__isrc 743INSTALL_DATA 744INSTALL_SCRIPT 745INSTALL_PROGRAM 746host_os 747host_vendor 748host_cpu 749host 750build_os 751build_vendor 752build_cpu 753build 754target_alias 755host_alias 756build_alias 757LIBS 758ECHO_T 759ECHO_N 760ECHO_C 761DEFS 762mandir 763localedir 764libdir 765psdir 766pdfdir 767dvidir 768htmldir 769infodir 770docdir 771oldincludedir 772includedir 773localstatedir 774sharedstatedir 775sysconfdir 776datadir 777datarootdir 778libexecdir 779sbindir 780bindir 781program_transform_name 782prefix 783exec_prefix 784PACKAGE_URL 785PACKAGE_BUGREPORT 786PACKAGE_STRING 787PACKAGE_VERSION 788PACKAGE_TARNAME 789PACKAGE_NAME 790PATH_SEPARATOR 791SHELL' 792ac_subst_files='' 793ac_user_opts=' 794enable_option_checking 795enable_maintainer_mode 796enable_assert 797enable_alloca 798enable_cxx 799enable_fft 800enable_old_fft_full 801enable_mpbsd 802enable_nails 803enable_profiling 804with_readline 805enable_fat 806enable_minithres 807enable_shared 808enable_static 809with_pic 810enable_fast_install 811with_gnu_ld 812with_sysroot 813enable_libtool_lock 814' 815 ac_precious_vars='build_alias 816host_alias 817target_alias 818ABI 819CC 820CFLAGS 821LDFLAGS 822LIBS 823CPPFLAGS 824CPP 825CC_FOR_BUILD 826CPP_FOR_BUILD 827CXX 828CXXFLAGS 829CCC 830CXXCPP 831M4 832YACC 833YFLAGS' 834 835 836# Initialize some variables set by options. 837ac_init_help= 838ac_init_version=false 839ac_unrecognized_opts= 840ac_unrecognized_sep= 841# The variables have the same names as the options, with 842# dashes changed to underlines. 843cache_file=/dev/null 844exec_prefix=NONE 845no_create= 846no_recursion= 847prefix=NONE 848program_prefix=NONE 849program_suffix=NONE 850program_transform_name=s,x,x, 851silent= 852site= 853srcdir= 854verbose= 855x_includes=NONE 856x_libraries=NONE 857 858# Installation directory options. 859# These are left unexpanded so users can "make install exec_prefix=/foo" 860# and all the variables that are supposed to be based on exec_prefix 861# by default will actually change. 862# Use braces instead of parens because sh, perl, etc. also accept them. 863# (The list follows the same order as the GNU Coding Standards.) 864bindir='${exec_prefix}/bin' 865sbindir='${exec_prefix}/sbin' 866libexecdir='${exec_prefix}/libexec' 867datarootdir='${prefix}/share' 868datadir='${datarootdir}' 869sysconfdir='${prefix}/etc' 870sharedstatedir='${prefix}/com' 871localstatedir='${prefix}/var' 872includedir='${prefix}/include' 873oldincludedir='/usr/include' 874docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 875infodir='${datarootdir}/info' 876htmldir='${docdir}' 877dvidir='${docdir}' 878pdfdir='${docdir}' 879psdir='${docdir}' 880libdir='${exec_prefix}/lib' 881localedir='${datarootdir}/locale' 882mandir='${datarootdir}/man' 883 884ac_prev= 885ac_dashdash= 886for ac_option 887do 888 # If the previous option needs an argument, assign it. 889 if test -n "$ac_prev"; then 890 eval $ac_prev=\$ac_option 891 ac_prev= 892 continue 893 fi 894 895 case $ac_option in 896 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 897 *) ac_optarg=yes ;; 898 esac 899 900 # Accept the important Cygnus configure options, so we can diagnose typos. 901 902 case $ac_dashdash$ac_option in 903 --) 904 ac_dashdash=yes ;; 905 906 -bindir | --bindir | --bindi | --bind | --bin | --bi) 907 ac_prev=bindir ;; 908 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 909 bindir=$ac_optarg ;; 910 911 -build | --build | --buil | --bui | --bu) 912 ac_prev=build_alias ;; 913 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 914 build_alias=$ac_optarg ;; 915 916 -cache-file | --cache-file | --cache-fil | --cache-fi \ 917 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 918 ac_prev=cache_file ;; 919 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 920 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 921 cache_file=$ac_optarg ;; 922 923 --config-cache | -C) 924 cache_file=config.cache ;; 925 926 -datadir | --datadir | --datadi | --datad) 927 ac_prev=datadir ;; 928 -datadir=* | --datadir=* | --datadi=* | --datad=*) 929 datadir=$ac_optarg ;; 930 931 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 932 | --dataroo | --dataro | --datar) 933 ac_prev=datarootdir ;; 934 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 935 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 936 datarootdir=$ac_optarg ;; 937 938 -disable-* | --disable-*) 939 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 940 # Reject names that are not valid shell variable names. 941 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 942 as_fn_error "invalid feature name: $ac_useropt" 943 ac_useropt_orig=$ac_useropt 944 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 945 case $ac_user_opts in 946 *" 947"enable_$ac_useropt" 948"*) ;; 949 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 950 ac_unrecognized_sep=', ';; 951 esac 952 eval enable_$ac_useropt=no ;; 953 954 -docdir | --docdir | --docdi | --doc | --do) 955 ac_prev=docdir ;; 956 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 957 docdir=$ac_optarg ;; 958 959 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 960 ac_prev=dvidir ;; 961 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 962 dvidir=$ac_optarg ;; 963 964 -enable-* | --enable-*) 965 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 966 # Reject names that are not valid shell variable names. 967 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 968 as_fn_error "invalid feature name: $ac_useropt" 969 ac_useropt_orig=$ac_useropt 970 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 971 case $ac_user_opts in 972 *" 973"enable_$ac_useropt" 974"*) ;; 975 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 976 ac_unrecognized_sep=', ';; 977 esac 978 eval enable_$ac_useropt=\$ac_optarg ;; 979 980 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 981 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 982 | --exec | --exe | --ex) 983 ac_prev=exec_prefix ;; 984 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 985 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 986 | --exec=* | --exe=* | --ex=*) 987 exec_prefix=$ac_optarg ;; 988 989 -gas | --gas | --ga | --g) 990 # Obsolete; use --with-gas. 991 with_gas=yes ;; 992 993 -help | --help | --hel | --he | -h) 994 ac_init_help=long ;; 995 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 996 ac_init_help=recursive ;; 997 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 998 ac_init_help=short ;; 999 1000 -host | --host | --hos | --ho) 1001 ac_prev=host_alias ;; 1002 -host=* | --host=* | --hos=* | --ho=*) 1003 host_alias=$ac_optarg ;; 1004 1005 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1006 ac_prev=htmldir ;; 1007 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1008 | --ht=*) 1009 htmldir=$ac_optarg ;; 1010 1011 -includedir | --includedir | --includedi | --included | --include \ 1012 | --includ | --inclu | --incl | --inc) 1013 ac_prev=includedir ;; 1014 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1015 | --includ=* | --inclu=* | --incl=* | --inc=*) 1016 includedir=$ac_optarg ;; 1017 1018 -infodir | --infodir | --infodi | --infod | --info | --inf) 1019 ac_prev=infodir ;; 1020 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1021 infodir=$ac_optarg ;; 1022 1023 -libdir | --libdir | --libdi | --libd) 1024 ac_prev=libdir ;; 1025 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1026 libdir=$ac_optarg ;; 1027 1028 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1029 | --libexe | --libex | --libe) 1030 ac_prev=libexecdir ;; 1031 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1032 | --libexe=* | --libex=* | --libe=*) 1033 libexecdir=$ac_optarg ;; 1034 1035 -localedir | --localedir | --localedi | --localed | --locale) 1036 ac_prev=localedir ;; 1037 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1038 localedir=$ac_optarg ;; 1039 1040 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1041 | --localstate | --localstat | --localsta | --localst | --locals) 1042 ac_prev=localstatedir ;; 1043 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1044 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1045 localstatedir=$ac_optarg ;; 1046 1047 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1048 ac_prev=mandir ;; 1049 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1050 mandir=$ac_optarg ;; 1051 1052 -nfp | --nfp | --nf) 1053 # Obsolete; use --without-fp. 1054 with_fp=no ;; 1055 1056 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1057 | --no-cr | --no-c | -n) 1058 no_create=yes ;; 1059 1060 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1061 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1062 no_recursion=yes ;; 1063 1064 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1065 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1066 | --oldin | --oldi | --old | --ol | --o) 1067 ac_prev=oldincludedir ;; 1068 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1069 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1070 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1071 oldincludedir=$ac_optarg ;; 1072 1073 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1074 ac_prev=prefix ;; 1075 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1076 prefix=$ac_optarg ;; 1077 1078 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1079 | --program-pre | --program-pr | --program-p) 1080 ac_prev=program_prefix ;; 1081 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1082 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1083 program_prefix=$ac_optarg ;; 1084 1085 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1086 | --program-suf | --program-su | --program-s) 1087 ac_prev=program_suffix ;; 1088 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1089 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1090 program_suffix=$ac_optarg ;; 1091 1092 -program-transform-name | --program-transform-name \ 1093 | --program-transform-nam | --program-transform-na \ 1094 | --program-transform-n | --program-transform- \ 1095 | --program-transform | --program-transfor \ 1096 | --program-transfo | --program-transf \ 1097 | --program-trans | --program-tran \ 1098 | --progr-tra | --program-tr | --program-t) 1099 ac_prev=program_transform_name ;; 1100 -program-transform-name=* | --program-transform-name=* \ 1101 | --program-transform-nam=* | --program-transform-na=* \ 1102 | --program-transform-n=* | --program-transform-=* \ 1103 | --program-transform=* | --program-transfor=* \ 1104 | --program-transfo=* | --program-transf=* \ 1105 | --program-trans=* | --program-tran=* \ 1106 | --progr-tra=* | --program-tr=* | --program-t=*) 1107 program_transform_name=$ac_optarg ;; 1108 1109 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1110 ac_prev=pdfdir ;; 1111 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1112 pdfdir=$ac_optarg ;; 1113 1114 -psdir | --psdir | --psdi | --psd | --ps) 1115 ac_prev=psdir ;; 1116 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1117 psdir=$ac_optarg ;; 1118 1119 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1120 | -silent | --silent | --silen | --sile | --sil) 1121 silent=yes ;; 1122 1123 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1124 ac_prev=sbindir ;; 1125 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1126 | --sbi=* | --sb=*) 1127 sbindir=$ac_optarg ;; 1128 1129 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1130 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1131 | --sharedst | --shareds | --shared | --share | --shar \ 1132 | --sha | --sh) 1133 ac_prev=sharedstatedir ;; 1134 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1135 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1136 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1137 | --sha=* | --sh=*) 1138 sharedstatedir=$ac_optarg ;; 1139 1140 -site | --site | --sit) 1141 ac_prev=site ;; 1142 -site=* | --site=* | --sit=*) 1143 site=$ac_optarg ;; 1144 1145 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1146 ac_prev=srcdir ;; 1147 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1148 srcdir=$ac_optarg ;; 1149 1150 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1151 | --syscon | --sysco | --sysc | --sys | --sy) 1152 ac_prev=sysconfdir ;; 1153 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1154 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1155 sysconfdir=$ac_optarg ;; 1156 1157 -target | --target | --targe | --targ | --tar | --ta | --t) 1158 ac_prev=target_alias ;; 1159 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1160 target_alias=$ac_optarg ;; 1161 1162 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1163 verbose=yes ;; 1164 1165 -version | --version | --versio | --versi | --vers | -V) 1166 ac_init_version=: ;; 1167 1168 -with-* | --with-*) 1169 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1170 # Reject names that are not valid shell variable names. 1171 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1172 as_fn_error "invalid package name: $ac_useropt" 1173 ac_useropt_orig=$ac_useropt 1174 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1175 case $ac_user_opts in 1176 *" 1177"with_$ac_useropt" 1178"*) ;; 1179 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1180 ac_unrecognized_sep=', ';; 1181 esac 1182 eval with_$ac_useropt=\$ac_optarg ;; 1183 1184 -without-* | --without-*) 1185 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1186 # Reject names that are not valid shell variable names. 1187 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1188 as_fn_error "invalid package name: $ac_useropt" 1189 ac_useropt_orig=$ac_useropt 1190 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1191 case $ac_user_opts in 1192 *" 1193"with_$ac_useropt" 1194"*) ;; 1195 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1196 ac_unrecognized_sep=', ';; 1197 esac 1198 eval with_$ac_useropt=no ;; 1199 1200 --x) 1201 # Obsolete; use --with-x. 1202 with_x=yes ;; 1203 1204 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1205 | --x-incl | --x-inc | --x-in | --x-i) 1206 ac_prev=x_includes ;; 1207 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1208 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1209 x_includes=$ac_optarg ;; 1210 1211 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1212 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1213 ac_prev=x_libraries ;; 1214 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1215 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1216 x_libraries=$ac_optarg ;; 1217 1218 -*) as_fn_error "unrecognized option: \`$ac_option' 1219Try \`$0 --help' for more information." 1220 ;; 1221 1222 *=*) 1223 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1224 # Reject names that are not valid shell variable names. 1225 case $ac_envvar in #( 1226 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1227 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1228 esac 1229 eval $ac_envvar=\$ac_optarg 1230 export $ac_envvar ;; 1231 1232 *) 1233 # FIXME: should be removed in autoconf 3.0. 1234 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1235 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1236 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1237 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1238 ;; 1239 1240 esac 1241done 1242 1243if test -n "$ac_prev"; then 1244 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1245 as_fn_error "missing argument to $ac_option" 1246fi 1247 1248if test -n "$ac_unrecognized_opts"; then 1249 case $enable_option_checking in 1250 no) ;; 1251 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1252 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1253 esac 1254fi 1255 1256# Check all directory arguments for consistency. 1257for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1258 datadir sysconfdir sharedstatedir localstatedir includedir \ 1259 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1260 libdir localedir mandir 1261do 1262 eval ac_val=\$$ac_var 1263 # Remove trailing slashes. 1264 case $ac_val in 1265 */ ) 1266 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1267 eval $ac_var=\$ac_val;; 1268 esac 1269 # Be sure to have absolute directory names. 1270 case $ac_val in 1271 [\\/$]* | ?:[\\/]* ) continue;; 1272 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1273 esac 1274 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1275done 1276 1277# There might be people who depend on the old broken behavior: `$host' 1278# used to hold the argument of --host etc. 1279# FIXME: To remove some day. 1280build=$build_alias 1281host=$host_alias 1282target=$target_alias 1283 1284# FIXME: To remove some day. 1285if test "x$host_alias" != x; then 1286 if test "x$build_alias" = x; then 1287 cross_compiling=maybe 1288 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1289 If a cross compiler is detected then cross compile mode will be used." >&2 1290 elif test "x$build_alias" != "x$host_alias"; then 1291 cross_compiling=yes 1292 fi 1293fi 1294 1295ac_tool_prefix= 1296test -n "$host_alias" && ac_tool_prefix=$host_alias- 1297 1298test "$silent" = yes && exec 6>/dev/null 1299 1300 1301ac_pwd=`pwd` && test -n "$ac_pwd" && 1302ac_ls_di=`ls -di .` && 1303ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1304 as_fn_error "working directory cannot be determined" 1305test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1306 as_fn_error "pwd does not report name of working directory" 1307 1308 1309# Find the source files, if location was not specified. 1310if test -z "$srcdir"; then 1311 ac_srcdir_defaulted=yes 1312 # Try the directory containing this script, then the parent directory. 1313 ac_confdir=`$as_dirname -- "$as_myself" || 1314$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1315 X"$as_myself" : 'X\(//\)[^/]' \| \ 1316 X"$as_myself" : 'X\(//\)$' \| \ 1317 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1318$as_echo X"$as_myself" | 1319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1320 s//\1/ 1321 q 1322 } 1323 /^X\(\/\/\)[^/].*/{ 1324 s//\1/ 1325 q 1326 } 1327 /^X\(\/\/\)$/{ 1328 s//\1/ 1329 q 1330 } 1331 /^X\(\/\).*/{ 1332 s//\1/ 1333 q 1334 } 1335 s/.*/./; q'` 1336 srcdir=$ac_confdir 1337 if test ! -r "$srcdir/$ac_unique_file"; then 1338 srcdir=.. 1339 fi 1340else 1341 ac_srcdir_defaulted=no 1342fi 1343if test ! -r "$srcdir/$ac_unique_file"; then 1344 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1345 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1346fi 1347ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1348ac_abs_confdir=`( 1349 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1350 pwd)` 1351# When building in place, set srcdir=. 1352if test "$ac_abs_confdir" = "$ac_pwd"; then 1353 srcdir=. 1354fi 1355# Remove unnecessary trailing slashes from srcdir. 1356# Double slashes in file names in object file debugging info 1357# mess up M-x gdb in Emacs. 1358case $srcdir in 1359*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1360esac 1361for ac_var in $ac_precious_vars; do 1362 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1363 eval ac_env_${ac_var}_value=\$${ac_var} 1364 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1365 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1366done 1367 1368# 1369# Report the --help message. 1370# 1371if test "$ac_init_help" = "long"; then 1372 # Omit some internal or obsolete options to make the list less imposing. 1373 # This message is too long to be a string in the A/UX 3.1 sh. 1374 cat <<_ACEOF 1375\`configure' configures GNU MP 5.0.5 to adapt to many kinds of systems. 1376 1377Usage: $0 [OPTION]... [VAR=VALUE]... 1378 1379To assign environment variables (e.g., CC, CFLAGS...), specify them as 1380VAR=VALUE. See below for descriptions of some of the useful variables. 1381 1382Defaults for the options are specified in brackets. 1383 1384Configuration: 1385 -h, --help display this help and exit 1386 --help=short display options specific to this package 1387 --help=recursive display the short help of all the included packages 1388 -V, --version display version information and exit 1389 -q, --quiet, --silent do not print \`checking...' messages 1390 --cache-file=FILE cache test results in FILE [disabled] 1391 -C, --config-cache alias for \`--cache-file=config.cache' 1392 -n, --no-create do not create output files 1393 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1394 1395Installation directories: 1396 --prefix=PREFIX install architecture-independent files in PREFIX 1397 [$ac_default_prefix] 1398 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1399 [PREFIX] 1400 1401By default, \`make install' will install all the files in 1402\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1403an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1404for instance \`--prefix=\$HOME'. 1405 1406For better control, use the options below. 1407 1408Fine tuning of the installation directories: 1409 --bindir=DIR user executables [EPREFIX/bin] 1410 --sbindir=DIR system admin executables [EPREFIX/sbin] 1411 --libexecdir=DIR program executables [EPREFIX/libexec] 1412 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1413 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1414 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1415 --libdir=DIR object code libraries [EPREFIX/lib] 1416 --includedir=DIR C header files [PREFIX/include] 1417 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1418 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1419 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1420 --infodir=DIR info documentation [DATAROOTDIR/info] 1421 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1422 --mandir=DIR man documentation [DATAROOTDIR/man] 1423 --docdir=DIR documentation root [DATAROOTDIR/doc/gmp] 1424 --htmldir=DIR html documentation [DOCDIR] 1425 --dvidir=DIR dvi documentation [DOCDIR] 1426 --pdfdir=DIR pdf documentation [DOCDIR] 1427 --psdir=DIR ps documentation [DOCDIR] 1428_ACEOF 1429 1430 cat <<\_ACEOF 1431 1432Program names: 1433 --program-prefix=PREFIX prepend PREFIX to installed program names 1434 --program-suffix=SUFFIX append SUFFIX to installed program names 1435 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1436 1437System types: 1438 --build=BUILD configure for building on BUILD [guessed] 1439 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1440_ACEOF 1441fi 1442 1443if test -n "$ac_init_help"; then 1444 case $ac_init_help in 1445 short | recursive ) echo "Configuration of GNU MP 5.0.5:";; 1446 esac 1447 cat <<\_ACEOF 1448 1449Optional Features: 1450 --disable-option-checking ignore unrecognized --enable/--with options 1451 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1452 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1453 --enable-maintainer-mode enable make rules and dependencies not useful 1454 (and sometimes confusing) to the casual installer 1455 --enable-assert enable ASSERT checking [[default=no]] 1456 --enable-alloca how to get temp memory [[default=reentrant]] 1457 --enable-cxx enable C++ support [[default=no]] 1458 --enable-fft enable FFTs for multiplication [[default=yes]] 1459 --enable-old-fft-full enable old mpn_mul_fft_full for multiplication 1460 [[default=no]] 1461 --enable-mpbsd build Berkeley MP compatibility library 1462 [[default=no]] 1463 --enable-nails use nails on limbs [[default=no]] 1464 --enable-profiling build with profiler support [[default=no]] 1465 --enable-fat build a fat binary on systems that support it 1466 [[default=no]] 1467 --enable-minithres choose minimal thresholds for testing [[default=no]] 1468 --enable-shared[=PKGS] build shared libraries [default=yes] 1469 --enable-static[=PKGS] build static libraries [default=yes] 1470 --enable-fast-install[=PKGS] 1471 optimize for fast installation [default=yes] 1472 --disable-libtool-lock avoid locking (might break parallel builds) 1473 1474Optional Packages: 1475 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1476 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1477 --with-readline readline support in calc demo program 1478 [[default=detect]] 1479 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1480 both] 1481 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1482 --with-sysroot=DIR Search for dependent libraries within DIR 1483 (or the compiler's sysroot if not specified). 1484 1485Some influential environment variables: 1486 ABI desired ABI (for processors supporting more than one ABI) 1487 CC C compiler command 1488 CFLAGS C compiler flags 1489 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1490 nonstandard directory <lib dir> 1491 LIBS libraries to pass to the linker, e.g. -l<library> 1492 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1493 you have headers in a nonstandard directory <include dir> 1494 CPP C preprocessor 1495 CC_FOR_BUILD 1496 build system C compiler 1497 CPP_FOR_BUILD 1498 build system C preprocessor 1499 CXX C++ compiler command 1500 CXXFLAGS C++ compiler flags 1501 CXXCPP C++ preprocessor 1502 M4 m4 macro processor 1503 YACC The `Yet Another C Compiler' implementation to use. Defaults to 1504 the first program found out of: `bison -y', `byacc', `yacc'. 1505 YFLAGS The list of arguments that will be passed by default to $YACC. 1506 This script will default YFLAGS to the empty string to avoid a 1507 default value of `-d' given by some make applications. 1508 1509Use these variables to override the choices made by `configure' or to help 1510it to find libraries and programs with nonstandard names/locations. 1511 1512Report bugs to <gmp-bugs@gmplib.org, see http://gmplib.org/manual/Reporting-Bugs.html>. 1513GNU MP home page: <http://www.gnu.org/software/gmp/>. 1514General help using GNU software: <http://www.gnu.org/gethelp/>. 1515_ACEOF 1516ac_status=$? 1517fi 1518 1519if test "$ac_init_help" = "recursive"; then 1520 # If there are subdirs, report their specific --help. 1521 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1522 test -d "$ac_dir" || 1523 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1524 continue 1525 ac_builddir=. 1526 1527case "$ac_dir" in 1528.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1529*) 1530 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1531 # A ".." for each directory in $ac_dir_suffix. 1532 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1533 case $ac_top_builddir_sub in 1534 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1535 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1536 esac ;; 1537esac 1538ac_abs_top_builddir=$ac_pwd 1539ac_abs_builddir=$ac_pwd$ac_dir_suffix 1540# for backward compatibility: 1541ac_top_builddir=$ac_top_build_prefix 1542 1543case $srcdir in 1544 .) # We are building in place. 1545 ac_srcdir=. 1546 ac_top_srcdir=$ac_top_builddir_sub 1547 ac_abs_top_srcdir=$ac_pwd ;; 1548 [\\/]* | ?:[\\/]* ) # Absolute name. 1549 ac_srcdir=$srcdir$ac_dir_suffix; 1550 ac_top_srcdir=$srcdir 1551 ac_abs_top_srcdir=$srcdir ;; 1552 *) # Relative name. 1553 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1554 ac_top_srcdir=$ac_top_build_prefix$srcdir 1555 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1556esac 1557ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1558 1559 cd "$ac_dir" || { ac_status=$?; continue; } 1560 # Check for guested configure. 1561 if test -f "$ac_srcdir/configure.gnu"; then 1562 echo && 1563 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1564 elif test -f "$ac_srcdir/configure"; then 1565 echo && 1566 $SHELL "$ac_srcdir/configure" --help=recursive 1567 else 1568 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1569 fi || ac_status=$? 1570 cd "$ac_pwd" || { ac_status=$?; break; } 1571 done 1572fi 1573 1574test -n "$ac_init_help" && exit $ac_status 1575if $ac_init_version; then 1576 cat <<\_ACEOF 1577GNU MP configure 5.0.5 1578generated by GNU Autoconf 2.65 1579 1580Copyright (C) 2009 Free Software Foundation, Inc. 1581This configure script is free software; the Free Software Foundation 1582gives unlimited permission to copy, distribute and modify it. 1583 1584 1585 1586Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 15872007, 2008, 2009, 2010, 2011 Free Software Foundation, Inc. 1588 1589This file is part of the GNU MP Library. 1590 1591The GNU MP Library is free software; you can redistribute it and/or modify 1592it under the terms of the GNU Lesser General Public License as published 1593by the Free Software Foundation; either version 3 of the License, or (at 1594your option) any later version. 1595 1596The GNU MP Library is distributed in the hope that it will be useful, but 1597WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY 1598or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public 1599License for more details. 1600 1601You should have received a copy of the GNU Lesser General Public License 1602along with the GNU MP Library. If not, see http://www.gnu.org/licenses/. 1603 1604_ACEOF 1605 exit 1606fi 1607 1608## ------------------------ ## 1609## Autoconf initialization. ## 1610## ------------------------ ## 1611 1612# ac_fn_c_try_compile LINENO 1613# -------------------------- 1614# Try to compile conftest.$ac_ext, and return whether this succeeded. 1615ac_fn_c_try_compile () 1616{ 1617 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1618 rm -f conftest.$ac_objext 1619 if { { ac_try="$ac_compile" 1620case "(($ac_try" in 1621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1622 *) ac_try_echo=$ac_try;; 1623esac 1624eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1625$as_echo "$ac_try_echo"; } >&5 1626 (eval "$ac_compile") 2>conftest.err 1627 ac_status=$? 1628 if test -s conftest.err; then 1629 grep -v '^ *+' conftest.err >conftest.er1 1630 cat conftest.er1 >&5 1631 mv -f conftest.er1 conftest.err 1632 fi 1633 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1634 test $ac_status = 0; } && { 1635 test -z "$ac_c_werror_flag" || 1636 test ! -s conftest.err 1637 } && test -s conftest.$ac_objext; then : 1638 ac_retval=0 1639else 1640 $as_echo "$as_me: failed program was:" >&5 1641sed 's/^/| /' conftest.$ac_ext >&5 1642 1643 ac_retval=1 1644fi 1645 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1646 as_fn_set_status $ac_retval 1647 1648} # ac_fn_c_try_compile 1649 1650# ac_fn_c_try_cpp LINENO 1651# ---------------------- 1652# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1653ac_fn_c_try_cpp () 1654{ 1655 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1656 if { { ac_try="$ac_cpp conftest.$ac_ext" 1657case "(($ac_try" in 1658 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1659 *) ac_try_echo=$ac_try;; 1660esac 1661eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1662$as_echo "$ac_try_echo"; } >&5 1663 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1664 ac_status=$? 1665 if test -s conftest.err; then 1666 grep -v '^ *+' conftest.err >conftest.er1 1667 cat conftest.er1 >&5 1668 mv -f conftest.er1 conftest.err 1669 fi 1670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1671 test $ac_status = 0; } >/dev/null && { 1672 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1673 test ! -s conftest.err 1674 }; then : 1675 ac_retval=0 1676else 1677 $as_echo "$as_me: failed program was:" >&5 1678sed 's/^/| /' conftest.$ac_ext >&5 1679 1680 ac_retval=1 1681fi 1682 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1683 as_fn_set_status $ac_retval 1684 1685} # ac_fn_c_try_cpp 1686 1687# ac_fn_cxx_try_compile LINENO 1688# ---------------------------- 1689# Try to compile conftest.$ac_ext, and return whether this succeeded. 1690ac_fn_cxx_try_compile () 1691{ 1692 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1693 rm -f conftest.$ac_objext 1694 if { { ac_try="$ac_compile" 1695case "(($ac_try" in 1696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1697 *) ac_try_echo=$ac_try;; 1698esac 1699eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1700$as_echo "$ac_try_echo"; } >&5 1701 (eval "$ac_compile") 2>conftest.err 1702 ac_status=$? 1703 if test -s conftest.err; then 1704 grep -v '^ *+' conftest.err >conftest.er1 1705 cat conftest.er1 >&5 1706 mv -f conftest.er1 conftest.err 1707 fi 1708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1709 test $ac_status = 0; } && { 1710 test -z "$ac_cxx_werror_flag" || 1711 test ! -s conftest.err 1712 } && test -s conftest.$ac_objext; then : 1713 ac_retval=0 1714else 1715 $as_echo "$as_me: failed program was:" >&5 1716sed 's/^/| /' conftest.$ac_ext >&5 1717 1718 ac_retval=1 1719fi 1720 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1721 as_fn_set_status $ac_retval 1722 1723} # ac_fn_cxx_try_compile 1724 1725# ac_fn_cxx_try_cpp LINENO 1726# ------------------------ 1727# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1728ac_fn_cxx_try_cpp () 1729{ 1730 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1731 if { { ac_try="$ac_cpp conftest.$ac_ext" 1732case "(($ac_try" in 1733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1734 *) ac_try_echo=$ac_try;; 1735esac 1736eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1737$as_echo "$ac_try_echo"; } >&5 1738 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1739 ac_status=$? 1740 if test -s conftest.err; then 1741 grep -v '^ *+' conftest.err >conftest.er1 1742 cat conftest.er1 >&5 1743 mv -f conftest.er1 conftest.err 1744 fi 1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1746 test $ac_status = 0; } >/dev/null && { 1747 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1748 test ! -s conftest.err 1749 }; then : 1750 ac_retval=0 1751else 1752 $as_echo "$as_me: failed program was:" >&5 1753sed 's/^/| /' conftest.$ac_ext >&5 1754 1755 ac_retval=1 1756fi 1757 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1758 as_fn_set_status $ac_retval 1759 1760} # ac_fn_cxx_try_cpp 1761 1762# ac_fn_c_try_run LINENO 1763# ---------------------- 1764# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1765# that executables *can* be run. 1766ac_fn_c_try_run () 1767{ 1768 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1769 if { { ac_try="$ac_link" 1770case "(($ac_try" in 1771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1772 *) ac_try_echo=$ac_try;; 1773esac 1774eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1775$as_echo "$ac_try_echo"; } >&5 1776 (eval "$ac_link") 2>&5 1777 ac_status=$? 1778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1779 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1780 { { case "(($ac_try" in 1781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1782 *) ac_try_echo=$ac_try;; 1783esac 1784eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1785$as_echo "$ac_try_echo"; } >&5 1786 (eval "$ac_try") 2>&5 1787 ac_status=$? 1788 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1789 test $ac_status = 0; }; }; then : 1790 ac_retval=0 1791else 1792 $as_echo "$as_me: program exited with status $ac_status" >&5 1793 $as_echo "$as_me: failed program was:" >&5 1794sed 's/^/| /' conftest.$ac_ext >&5 1795 1796 ac_retval=$ac_status 1797fi 1798 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1799 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1800 as_fn_set_status $ac_retval 1801 1802} # ac_fn_c_try_run 1803 1804# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1805# ------------------------------------------------------- 1806# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1807# the include files in INCLUDES and setting the cache variable VAR 1808# accordingly. 1809ac_fn_c_check_header_mongrel () 1810{ 1811 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1812 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1814$as_echo_n "checking for $2... " >&6; } 1815if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1816 $as_echo_n "(cached) " >&6 1817fi 1818eval ac_res=\$$3 1819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1820$as_echo "$ac_res" >&6; } 1821else 1822 # Is the header compilable? 1823{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1824$as_echo_n "checking $2 usability... " >&6; } 1825cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1826/* end confdefs.h. */ 1827$4 1828#include <$2> 1829_ACEOF 1830if ac_fn_c_try_compile "$LINENO"; then : 1831 ac_header_compiler=yes 1832else 1833 ac_header_compiler=no 1834fi 1835rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1836{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1837$as_echo "$ac_header_compiler" >&6; } 1838 1839# Is the header present? 1840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1841$as_echo_n "checking $2 presence... " >&6; } 1842cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1843/* end confdefs.h. */ 1844#include <$2> 1845_ACEOF 1846if ac_fn_c_try_cpp "$LINENO"; then : 1847 ac_header_preproc=yes 1848else 1849 ac_header_preproc=no 1850fi 1851rm -f conftest.err conftest.$ac_ext 1852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1853$as_echo "$ac_header_preproc" >&6; } 1854 1855# So? What about this header? 1856case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1857 yes:no: ) 1858 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1859$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1861$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1862 ;; 1863 no:yes:* ) 1864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1865$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1866 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1867$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1869$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1870 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1871$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1873$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1874( cat <<\_ASBOX 1875## ssssssssssssssssssssssssssssssssss ## 1876## Report this to gmp-bugs@gmplib.org ## 1877## ssssssssssssssssssssssssssssssssss ## 1878_ASBOX 1879 ) | sed "s/^/$as_me: WARNING: /" >&2 1880 ;; 1881esac 1882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1883$as_echo_n "checking for $2... " >&6; } 1884if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1885 $as_echo_n "(cached) " >&6 1886else 1887 eval "$3=\$ac_header_compiler" 1888fi 1889eval ac_res=\$$3 1890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1891$as_echo "$ac_res" >&6; } 1892fi 1893 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1894 1895} # ac_fn_c_check_header_mongrel 1896 1897# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1898# ------------------------------------------------------- 1899# Tests whether HEADER exists and can be compiled using the include files in 1900# INCLUDES, setting the cache variable VAR accordingly. 1901ac_fn_c_check_header_compile () 1902{ 1903 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1905$as_echo_n "checking for $2... " >&6; } 1906if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1907 $as_echo_n "(cached) " >&6 1908else 1909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1910/* end confdefs.h. */ 1911$4 1912#include <$2> 1913_ACEOF 1914if ac_fn_c_try_compile "$LINENO"; then : 1915 eval "$3=yes" 1916else 1917 eval "$3=no" 1918fi 1919rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1920fi 1921eval ac_res=\$$3 1922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1923$as_echo "$ac_res" >&6; } 1924 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1925 1926} # ac_fn_c_check_header_compile 1927 1928# ac_fn_c_try_link LINENO 1929# ----------------------- 1930# Try to link conftest.$ac_ext, and return whether this succeeded. 1931ac_fn_c_try_link () 1932{ 1933 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1934 rm -f conftest.$ac_objext conftest$ac_exeext 1935 if { { ac_try="$ac_link" 1936case "(($ac_try" in 1937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1938 *) ac_try_echo=$ac_try;; 1939esac 1940eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1941$as_echo "$ac_try_echo"; } >&5 1942 (eval "$ac_link") 2>conftest.err 1943 ac_status=$? 1944 if test -s conftest.err; then 1945 grep -v '^ *+' conftest.err >conftest.er1 1946 cat conftest.er1 >&5 1947 mv -f conftest.er1 conftest.err 1948 fi 1949 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1950 test $ac_status = 0; } && { 1951 test -z "$ac_c_werror_flag" || 1952 test ! -s conftest.err 1953 } && test -s conftest$ac_exeext && { 1954 test "$cross_compiling" = yes || 1955 $as_test_x conftest$ac_exeext 1956 }; then : 1957 ac_retval=0 1958else 1959 $as_echo "$as_me: failed program was:" >&5 1960sed 's/^/| /' conftest.$ac_ext >&5 1961 1962 ac_retval=1 1963fi 1964 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1965 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1966 # interfere with the next link command; also delete a directory that is 1967 # left behind by Apple's compiler. We do this before executing the actions. 1968 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1969 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1970 as_fn_set_status $ac_retval 1971 1972} # ac_fn_c_try_link 1973 1974# ac_fn_c_check_func LINENO FUNC VAR 1975# ---------------------------------- 1976# Tests whether FUNC exists, setting the cache variable VAR accordingly 1977ac_fn_c_check_func () 1978{ 1979 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1981$as_echo_n "checking for $2... " >&6; } 1982if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1983 $as_echo_n "(cached) " >&6 1984else 1985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1986/* end confdefs.h. */ 1987/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1988 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1989#define $2 innocuous_$2 1990 1991/* System header to define __stub macros and hopefully few prototypes, 1992 which can conflict with char $2 (); below. 1993 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1994 <limits.h> exists even on freestanding compilers. */ 1995 1996#ifdef __STDC__ 1997# include <limits.h> 1998#else 1999# include <assert.h> 2000#endif 2001 2002#undef $2 2003 2004/* Override any GCC internal prototype to avoid an error. 2005 Use char because int might match the return type of a GCC 2006 builtin and then its argument prototype would still apply. */ 2007#ifdef __cplusplus 2008extern "C" 2009#endif 2010char $2 (); 2011/* The GNU C library defines this for functions which it implements 2012 to always fail with ENOSYS. Some functions are actually named 2013 something starting with __ and the normal name is an alias. */ 2014#if defined __stub_$2 || defined __stub___$2 2015choke me 2016#endif 2017 2018int 2019main () 2020{ 2021return $2 (); 2022 ; 2023 return 0; 2024} 2025_ACEOF 2026if ac_fn_c_try_link "$LINENO"; then : 2027 eval "$3=yes" 2028else 2029 eval "$3=no" 2030fi 2031rm -f core conftest.err conftest.$ac_objext \ 2032 conftest$ac_exeext conftest.$ac_ext 2033fi 2034eval ac_res=\$$3 2035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2036$as_echo "$ac_res" >&6; } 2037 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2038 2039} # ac_fn_c_check_func 2040 2041# ac_fn_cxx_try_link LINENO 2042# ------------------------- 2043# Try to link conftest.$ac_ext, and return whether this succeeded. 2044ac_fn_cxx_try_link () 2045{ 2046 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2047 rm -f conftest.$ac_objext conftest$ac_exeext 2048 if { { ac_try="$ac_link" 2049case "(($ac_try" in 2050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2051 *) ac_try_echo=$ac_try;; 2052esac 2053eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2054$as_echo "$ac_try_echo"; } >&5 2055 (eval "$ac_link") 2>conftest.err 2056 ac_status=$? 2057 if test -s conftest.err; then 2058 grep -v '^ *+' conftest.err >conftest.er1 2059 cat conftest.er1 >&5 2060 mv -f conftest.er1 conftest.err 2061 fi 2062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2063 test $ac_status = 0; } && { 2064 test -z "$ac_cxx_werror_flag" || 2065 test ! -s conftest.err 2066 } && test -s conftest$ac_exeext && { 2067 test "$cross_compiling" = yes || 2068 $as_test_x conftest$ac_exeext 2069 }; then : 2070 ac_retval=0 2071else 2072 $as_echo "$as_me: failed program was:" >&5 2073sed 's/^/| /' conftest.$ac_ext >&5 2074 2075 ac_retval=1 2076fi 2077 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2078 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2079 # interfere with the next link command; also delete a directory that is 2080 # left behind by Apple's compiler. We do this before executing the actions. 2081 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2082 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2083 as_fn_set_status $ac_retval 2084 2085} # ac_fn_cxx_try_link 2086 2087# ac_fn_f77_try_link LINENO 2088# ------------------------- 2089# Try to link conftest.$ac_ext, and return whether this succeeded. 2090ac_fn_f77_try_link () 2091{ 2092 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2093 rm -f conftest.$ac_objext conftest$ac_exeext 2094 if { { ac_try="$ac_link" 2095case "(($ac_try" in 2096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2097 *) ac_try_echo=$ac_try;; 2098esac 2099eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2100$as_echo "$ac_try_echo"; } >&5 2101 (eval "$ac_link") 2>conftest.err 2102 ac_status=$? 2103 if test -s conftest.err; then 2104 grep -v '^ *+' conftest.err >conftest.er1 2105 cat conftest.er1 >&5 2106 mv -f conftest.er1 conftest.err 2107 fi 2108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2109 test $ac_status = 0; } && { 2110 test -z "$ac_f77_werror_flag" || 2111 test ! -s conftest.err 2112 } && test -s conftest$ac_exeext && { 2113 test "$cross_compiling" = yes || 2114 $as_test_x conftest$ac_exeext 2115 }; then : 2116 ac_retval=0 2117else 2118 $as_echo "$as_me: failed program was:" >&5 2119sed 's/^/| /' conftest.$ac_ext >&5 2120 2121 ac_retval=1 2122fi 2123 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2124 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2125 # interfere with the next link command; also delete a directory that is 2126 # left behind by Apple's compiler. We do this before executing the actions. 2127 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2128 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2129 as_fn_set_status $ac_retval 2130 2131} # ac_fn_f77_try_link 2132 2133# ac_fn_c_check_decl LINENO SYMBOL VAR 2134# ------------------------------------ 2135# Tests whether SYMBOL is declared, setting cache variable VAR accordingly. 2136ac_fn_c_check_decl () 2137{ 2138 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $2 is declared" >&5 2140$as_echo_n "checking whether $2 is declared... " >&6; } 2141if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2142 $as_echo_n "(cached) " >&6 2143else 2144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2145/* end confdefs.h. */ 2146$4 2147int 2148main () 2149{ 2150#ifndef $2 2151 (void) $2; 2152#endif 2153 2154 ; 2155 return 0; 2156} 2157_ACEOF 2158if ac_fn_c_try_compile "$LINENO"; then : 2159 eval "$3=yes" 2160else 2161 eval "$3=no" 2162fi 2163rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2164fi 2165eval ac_res=\$$3 2166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2167$as_echo "$ac_res" >&6; } 2168 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2169 2170} # ac_fn_c_check_decl 2171 2172# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2173# ------------------------------------------- 2174# Tests whether TYPE exists after having included INCLUDES, setting cache 2175# variable VAR accordingly. 2176ac_fn_c_check_type () 2177{ 2178 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2180$as_echo_n "checking for $2... " >&6; } 2181if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2182 $as_echo_n "(cached) " >&6 2183else 2184 eval "$3=no" 2185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2186/* end confdefs.h. */ 2187$4 2188int 2189main () 2190{ 2191if (sizeof ($2)) 2192 return 0; 2193 ; 2194 return 0; 2195} 2196_ACEOF 2197if ac_fn_c_try_compile "$LINENO"; then : 2198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2199/* end confdefs.h. */ 2200$4 2201int 2202main () 2203{ 2204if (sizeof (($2))) 2205 return 0; 2206 ; 2207 return 0; 2208} 2209_ACEOF 2210if ac_fn_c_try_compile "$LINENO"; then : 2211 2212else 2213 eval "$3=yes" 2214fi 2215rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2216fi 2217rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2218fi 2219eval ac_res=\$$3 2220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2221$as_echo "$ac_res" >&6; } 2222 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2223 2224} # ac_fn_c_check_type 2225 2226# ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES 2227# ---------------------------------------------------- 2228# Tries to find if the field MEMBER exists in type AGGR, after including 2229# INCLUDES, setting cache variable VAR accordingly. 2230ac_fn_c_check_member () 2231{ 2232 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2234$as_echo_n "checking for $2.$3... " >&6; } 2235if { as_var=$4; eval "test \"\${$as_var+set}\" = set"; }; then : 2236 $as_echo_n "(cached) " >&6 2237else 2238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2239/* end confdefs.h. */ 2240$5 2241int 2242main () 2243{ 2244static $2 ac_aggr; 2245if (ac_aggr.$3) 2246return 0; 2247 ; 2248 return 0; 2249} 2250_ACEOF 2251if ac_fn_c_try_compile "$LINENO"; then : 2252 eval "$4=yes" 2253else 2254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2255/* end confdefs.h. */ 2256$5 2257int 2258main () 2259{ 2260static $2 ac_aggr; 2261if (sizeof ac_aggr.$3) 2262return 0; 2263 ; 2264 return 0; 2265} 2266_ACEOF 2267if ac_fn_c_try_compile "$LINENO"; then : 2268 eval "$4=yes" 2269else 2270 eval "$4=no" 2271fi 2272rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2273fi 2274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2275fi 2276eval ac_res=\$$4 2277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2278$as_echo "$ac_res" >&6; } 2279 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2280 2281} # ac_fn_c_check_member 2282 2283# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 2284# --------------------------------------------------------- 2285# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2286# the include files in INCLUDES and setting the cache variable VAR 2287# accordingly. 2288ac_fn_cxx_check_header_mongrel () 2289{ 2290 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2291 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2293$as_echo_n "checking for $2... " >&6; } 2294if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2295 $as_echo_n "(cached) " >&6 2296fi 2297eval ac_res=\$$3 2298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2299$as_echo "$ac_res" >&6; } 2300else 2301 # Is the header compilable? 2302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2303$as_echo_n "checking $2 usability... " >&6; } 2304cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2305/* end confdefs.h. */ 2306$4 2307#include <$2> 2308_ACEOF 2309if ac_fn_cxx_try_compile "$LINENO"; then : 2310 ac_header_compiler=yes 2311else 2312 ac_header_compiler=no 2313fi 2314rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2315{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2316$as_echo "$ac_header_compiler" >&6; } 2317 2318# Is the header present? 2319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2320$as_echo_n "checking $2 presence... " >&6; } 2321cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2322/* end confdefs.h. */ 2323#include <$2> 2324_ACEOF 2325if ac_fn_cxx_try_cpp "$LINENO"; then : 2326 ac_header_preproc=yes 2327else 2328 ac_header_preproc=no 2329fi 2330rm -f conftest.err conftest.$ac_ext 2331{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2332$as_echo "$ac_header_preproc" >&6; } 2333 2334# So? What about this header? 2335case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2336 yes:no: ) 2337 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2338$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2339 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2340$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2341 ;; 2342 no:yes:* ) 2343 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2344$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2345 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2346$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2347 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2348$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2349 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2350$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2351 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2352$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2353( cat <<\_ASBOX 2354## ssssssssssssssssssssssssssssssssss ## 2355## Report this to gmp-bugs@gmplib.org ## 2356## ssssssssssssssssssssssssssssssssss ## 2357_ASBOX 2358 ) | sed "s/^/$as_me: WARNING: /" >&2 2359 ;; 2360esac 2361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2362$as_echo_n "checking for $2... " >&6; } 2363if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2364 $as_echo_n "(cached) " >&6 2365else 2366 eval "$3=\$ac_header_compiler" 2367fi 2368eval ac_res=\$$3 2369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2370$as_echo "$ac_res" >&6; } 2371fi 2372 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2373 2374} # ac_fn_cxx_check_header_mongrel 2375 2376# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES 2377# --------------------------------------------- 2378# Tests whether TYPE exists after having included INCLUDES, setting cache 2379# variable VAR accordingly. 2380ac_fn_cxx_check_type () 2381{ 2382 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2384$as_echo_n "checking for $2... " >&6; } 2385if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 2386 $as_echo_n "(cached) " >&6 2387else 2388 eval "$3=no" 2389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2390/* end confdefs.h. */ 2391$4 2392int 2393main () 2394{ 2395if (sizeof ($2)) 2396 return 0; 2397 ; 2398 return 0; 2399} 2400_ACEOF 2401if ac_fn_cxx_try_compile "$LINENO"; then : 2402 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2403/* end confdefs.h. */ 2404$4 2405int 2406main () 2407{ 2408if (sizeof (($2))) 2409 return 0; 2410 ; 2411 return 0; 2412} 2413_ACEOF 2414if ac_fn_cxx_try_compile "$LINENO"; then : 2415 2416else 2417 eval "$3=yes" 2418fi 2419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2420fi 2421rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2422fi 2423eval ac_res=\$$3 2424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2425$as_echo "$ac_res" >&6; } 2426 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2427 2428} # ac_fn_cxx_check_type 2429 2430# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 2431# -------------------------------------------- 2432# Tries to find the compile-time value of EXPR in a program that includes 2433# INCLUDES, setting VAR accordingly. Returns whether the value could be 2434# computed 2435ac_fn_c_compute_int () 2436{ 2437 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2438 if test "$cross_compiling" = yes; then 2439 # Depending upon the size, compute the lo and hi bounds. 2440cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2441/* end confdefs.h. */ 2442$4 2443int 2444main () 2445{ 2446static int test_array [1 - 2 * !(($2) >= 0)]; 2447test_array [0] = 0 2448 2449 ; 2450 return 0; 2451} 2452_ACEOF 2453if ac_fn_c_try_compile "$LINENO"; then : 2454 ac_lo=0 ac_mid=0 2455 while :; do 2456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2457/* end confdefs.h. */ 2458$4 2459int 2460main () 2461{ 2462static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2463test_array [0] = 0 2464 2465 ; 2466 return 0; 2467} 2468_ACEOF 2469if ac_fn_c_try_compile "$LINENO"; then : 2470 ac_hi=$ac_mid; break 2471else 2472 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2473 if test $ac_lo -le $ac_mid; then 2474 ac_lo= ac_hi= 2475 break 2476 fi 2477 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2478fi 2479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2480 done 2481else 2482 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2483/* end confdefs.h. */ 2484$4 2485int 2486main () 2487{ 2488static int test_array [1 - 2 * !(($2) < 0)]; 2489test_array [0] = 0 2490 2491 ; 2492 return 0; 2493} 2494_ACEOF 2495if ac_fn_c_try_compile "$LINENO"; then : 2496 ac_hi=-1 ac_mid=-1 2497 while :; do 2498 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2499/* end confdefs.h. */ 2500$4 2501int 2502main () 2503{ 2504static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2505test_array [0] = 0 2506 2507 ; 2508 return 0; 2509} 2510_ACEOF 2511if ac_fn_c_try_compile "$LINENO"; then : 2512 ac_lo=$ac_mid; break 2513else 2514 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2515 if test $ac_mid -le $ac_hi; then 2516 ac_lo= ac_hi= 2517 break 2518 fi 2519 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2520fi 2521rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2522 done 2523else 2524 ac_lo= ac_hi= 2525fi 2526rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2527fi 2528rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2529# Binary search between lo and hi bounds. 2530while test "x$ac_lo" != "x$ac_hi"; do 2531 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2533/* end confdefs.h. */ 2534$4 2535int 2536main () 2537{ 2538static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2539test_array [0] = 0 2540 2541 ; 2542 return 0; 2543} 2544_ACEOF 2545if ac_fn_c_try_compile "$LINENO"; then : 2546 ac_hi=$ac_mid 2547else 2548 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2549fi 2550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2551done 2552case $ac_lo in #(( 2553?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2554'') ac_retval=1 ;; 2555esac 2556 else 2557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2558/* end confdefs.h. */ 2559$4 2560static long int longval () { return $2; } 2561static unsigned long int ulongval () { return $2; } 2562#include <stdio.h> 2563#include <stdlib.h> 2564int 2565main () 2566{ 2567 2568 FILE *f = fopen ("conftest.val", "w"); 2569 if (! f) 2570 return 1; 2571 if (($2) < 0) 2572 { 2573 long int i = longval (); 2574 if (i != ($2)) 2575 return 1; 2576 fprintf (f, "%ld", i); 2577 } 2578 else 2579 { 2580 unsigned long int i = ulongval (); 2581 if (i != ($2)) 2582 return 1; 2583 fprintf (f, "%lu", i); 2584 } 2585 /* Do not output a trailing newline, as this causes \r\n confusion 2586 on some platforms. */ 2587 return ferror (f) || fclose (f) != 0; 2588 2589 ; 2590 return 0; 2591} 2592_ACEOF 2593if ac_fn_c_try_run "$LINENO"; then : 2594 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2595else 2596 ac_retval=1 2597fi 2598rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2599 conftest.$ac_objext conftest.beam conftest.$ac_ext 2600rm -f conftest.val 2601 2602 fi 2603 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2604 as_fn_set_status $ac_retval 2605 2606} # ac_fn_c_compute_int 2607cat >config.log <<_ACEOF 2608This file contains any messages produced by compilers while 2609running configure, to aid debugging if configure makes a mistake. 2610 2611It was created by GNU MP $as_me 5.0.5, which was 2612generated by GNU Autoconf 2.65. Invocation command line was 2613 2614 $ $0 $@ 2615 2616_ACEOF 2617exec 5>>config.log 2618{ 2619cat <<_ASUNAME 2620## --------- ## 2621## Platform. ## 2622## --------- ## 2623 2624hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2625uname -m = `(uname -m) 2>/dev/null || echo unknown` 2626uname -r = `(uname -r) 2>/dev/null || echo unknown` 2627uname -s = `(uname -s) 2>/dev/null || echo unknown` 2628uname -v = `(uname -v) 2>/dev/null || echo unknown` 2629 2630/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2631/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2632 2633/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2634/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2635/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2636/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2637/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2638/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2639/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2640 2641_ASUNAME 2642 2643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2644for as_dir in $PATH 2645do 2646 IFS=$as_save_IFS 2647 test -z "$as_dir" && as_dir=. 2648 $as_echo "PATH: $as_dir" 2649 done 2650IFS=$as_save_IFS 2651 2652} >&5 2653 2654cat >&5 <<_ACEOF 2655 2656 2657## ----------- ## 2658## Core tests. ## 2659## ----------- ## 2660 2661_ACEOF 2662 2663 2664# Keep a trace of the command line. 2665# Strip out --no-create and --no-recursion so they do not pile up. 2666# Strip out --silent because we don't want to record it for future runs. 2667# Also quote any args containing shell meta-characters. 2668# Make two passes to allow for proper duplicate-argument suppression. 2669ac_configure_args= 2670ac_configure_args0= 2671ac_configure_args1= 2672ac_must_keep_next=false 2673for ac_pass in 1 2 2674do 2675 for ac_arg 2676 do 2677 case $ac_arg in 2678 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2679 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2680 | -silent | --silent | --silen | --sile | --sil) 2681 continue ;; 2682 *\'*) 2683 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2684 esac 2685 case $ac_pass in 2686 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2687 2) 2688 as_fn_append ac_configure_args1 " '$ac_arg'" 2689 if test $ac_must_keep_next = true; then 2690 ac_must_keep_next=false # Got value, back to normal. 2691 else 2692 case $ac_arg in 2693 *=* | --config-cache | -C | -disable-* | --disable-* \ 2694 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2695 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2696 | -with-* | --with-* | -without-* | --without-* | --x) 2697 case "$ac_configure_args0 " in 2698 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2699 esac 2700 ;; 2701 -* ) ac_must_keep_next=true ;; 2702 esac 2703 fi 2704 as_fn_append ac_configure_args " '$ac_arg'" 2705 ;; 2706 esac 2707 done 2708done 2709{ ac_configure_args0=; unset ac_configure_args0;} 2710{ ac_configure_args1=; unset ac_configure_args1;} 2711 2712# When interrupted or exit'd, cleanup temporary files, and complete 2713# config.log. We remove comments because anyway the quotes in there 2714# would cause problems or look ugly. 2715# WARNING: Use '\'' to represent an apostrophe within the trap. 2716# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2717trap 'exit_status=$? 2718 # Save into config.log some information that might help in debugging. 2719 { 2720 echo 2721 2722 cat <<\_ASBOX 2723## ---------------- ## 2724## Cache variables. ## 2725## ---------------- ## 2726_ASBOX 2727 echo 2728 # The following way of writing the cache mishandles newlines in values, 2729( 2730 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2731 eval ac_val=\$$ac_var 2732 case $ac_val in #( 2733 *${as_nl}*) 2734 case $ac_var in #( 2735 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2736$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2737 esac 2738 case $ac_var in #( 2739 _ | IFS | as_nl) ;; #( 2740 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2741 *) { eval $ac_var=; unset $ac_var;} ;; 2742 esac ;; 2743 esac 2744 done 2745 (set) 2>&1 | 2746 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2747 *${as_nl}ac_space=\ *) 2748 sed -n \ 2749 "s/'\''/'\''\\\\'\'''\''/g; 2750 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2751 ;; #( 2752 *) 2753 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2754 ;; 2755 esac | 2756 sort 2757) 2758 echo 2759 2760 cat <<\_ASBOX 2761## ----------------- ## 2762## Output variables. ## 2763## ----------------- ## 2764_ASBOX 2765 echo 2766 for ac_var in $ac_subst_vars 2767 do 2768 eval ac_val=\$$ac_var 2769 case $ac_val in 2770 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2771 esac 2772 $as_echo "$ac_var='\''$ac_val'\''" 2773 done | sort 2774 echo 2775 2776 if test -n "$ac_subst_files"; then 2777 cat <<\_ASBOX 2778## ------------------- ## 2779## File substitutions. ## 2780## ------------------- ## 2781_ASBOX 2782 echo 2783 for ac_var in $ac_subst_files 2784 do 2785 eval ac_val=\$$ac_var 2786 case $ac_val in 2787 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2788 esac 2789 $as_echo "$ac_var='\''$ac_val'\''" 2790 done | sort 2791 echo 2792 fi 2793 2794 if test -s confdefs.h; then 2795 cat <<\_ASBOX 2796## ----------- ## 2797## confdefs.h. ## 2798## ----------- ## 2799_ASBOX 2800 echo 2801 cat confdefs.h 2802 echo 2803 fi 2804 test "$ac_signal" != 0 && 2805 $as_echo "$as_me: caught signal $ac_signal" 2806 $as_echo "$as_me: exit $exit_status" 2807 } >&5 2808 rm -f core *.core core.conftest.* && 2809 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2810 exit $exit_status 2811' 0 2812for ac_signal in 1 2 13 15; do 2813 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2814done 2815ac_signal=0 2816 2817# confdefs.h avoids OS command line length limits that DEFS can exceed. 2818rm -f -r conftest* confdefs.h 2819 2820$as_echo "/* confdefs.h */" > confdefs.h 2821 2822# Predefined preprocessor variables. 2823 2824cat >>confdefs.h <<_ACEOF 2825#define PACKAGE_NAME "$PACKAGE_NAME" 2826_ACEOF 2827 2828cat >>confdefs.h <<_ACEOF 2829#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2830_ACEOF 2831 2832cat >>confdefs.h <<_ACEOF 2833#define PACKAGE_VERSION "$PACKAGE_VERSION" 2834_ACEOF 2835 2836cat >>confdefs.h <<_ACEOF 2837#define PACKAGE_STRING "$PACKAGE_STRING" 2838_ACEOF 2839 2840cat >>confdefs.h <<_ACEOF 2841#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2842_ACEOF 2843 2844cat >>confdefs.h <<_ACEOF 2845#define PACKAGE_URL "$PACKAGE_URL" 2846_ACEOF 2847 2848 2849# Let the site file select an alternate cache file if it wants to. 2850# Prefer an explicitly selected file to automatically selected ones. 2851ac_site_file1=NONE 2852ac_site_file2=NONE 2853if test -n "$CONFIG_SITE"; then 2854 ac_site_file1=$CONFIG_SITE 2855elif test "x$prefix" != xNONE; then 2856 ac_site_file1=$prefix/share/config.site 2857 ac_site_file2=$prefix/etc/config.site 2858else 2859 ac_site_file1=$ac_default_prefix/share/config.site 2860 ac_site_file2=$ac_default_prefix/etc/config.site 2861fi 2862for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2863do 2864 test "x$ac_site_file" = xNONE && continue 2865 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2866 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2867$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2868 sed 's/^/| /' "$ac_site_file" >&5 2869 . "$ac_site_file" 2870 fi 2871done 2872 2873if test -r "$cache_file"; then 2874 # Some versions of bash will fail to source /dev/null (special files 2875 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2876 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2877 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2878$as_echo "$as_me: loading cache $cache_file" >&6;} 2879 case $cache_file in 2880 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2881 *) . "./$cache_file";; 2882 esac 2883 fi 2884else 2885 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2886$as_echo "$as_me: creating cache $cache_file" >&6;} 2887 >$cache_file 2888fi 2889 2890# Check that the precious variables saved in the cache have kept the same 2891# value. 2892ac_cache_corrupted=false 2893for ac_var in $ac_precious_vars; do 2894 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2895 eval ac_new_set=\$ac_env_${ac_var}_set 2896 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2897 eval ac_new_val=\$ac_env_${ac_var}_value 2898 case $ac_old_set,$ac_new_set in 2899 set,) 2900 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2901$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2902 ac_cache_corrupted=: ;; 2903 ,set) 2904 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2905$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2906 ac_cache_corrupted=: ;; 2907 ,);; 2908 *) 2909 if test "x$ac_old_val" != "x$ac_new_val"; then 2910 # differences in whitespace do not lead to failure. 2911 ac_old_val_w=`echo x $ac_old_val` 2912 ac_new_val_w=`echo x $ac_new_val` 2913 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2914 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2915$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2916 ac_cache_corrupted=: 2917 else 2918 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2919$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2920 eval $ac_var=\$ac_old_val 2921 fi 2922 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2923$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2924 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2925$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2926 fi;; 2927 esac 2928 # Pass precious variables to config.status. 2929 if test "$ac_new_set" = set; then 2930 case $ac_new_val in 2931 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2932 *) ac_arg=$ac_var=$ac_new_val ;; 2933 esac 2934 case " $ac_configure_args " in 2935 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2936 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2937 esac 2938 fi 2939done 2940if $ac_cache_corrupted; then 2941 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2942$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2943 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2944$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2945 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2946fi 2947## -------------------- ## 2948## Main body of script. ## 2949## -------------------- ## 2950 2951ac_ext=c 2952ac_cpp='$CPP $CPPFLAGS' 2953ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2954ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2955ac_compiler_gnu=$ac_cv_c_compiler_gnu 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966# If --target is not used then $target_alias is empty, but if say 2967# "./configure athlon-pc-freebsd3.5" is used, then all three of 2968# $build_alias, $host_alias and $target_alias are set to 2969# "athlon-pc-freebsd3.5". 2970# 2971if test -n "$target_alias" && test "$target_alias" != "$host_alias"; then 2972 as_fn_error "--target is not appropriate for GMP 2973Use --build=CPU-VENDOR-OS if you need to specify your CPU and/or system 2974explicitly. Use --host if cross-compiling (see \"Installing GMP\" in the 2975manual for more on this)." "$LINENO" 5 2976fi 2977 2978gmp_configm4="config.m4" 2979gmp_tmpconfigm4=cnfm4.tmp 2980gmp_tmpconfigm4i=cnfm4i.tmp 2981gmp_tmpconfigm4p=cnfm4p.tmp 2982rm -f $gmp_tmpconfigm4 $gmp_tmpconfigm4i $gmp_tmpconfigm4p 2983 2984# CONFIG_TOP_SRCDIR is a path from the mpn builddir to the top srcdir. 2985# The pattern here tests for an absolute path the same way as 2986# _AC_OUTPUT_FILES in autoconf acgeneral.m4. 2987case $srcdir in 2988[\\/]* | ?:[\\/]* ) tmp="$srcdir" ;; 2989*) tmp="../$srcdir" ;; 2990esac 2991echo "define(<CONFIG_TOP_SRCDIR>,<\`$tmp'>)" >>$gmp_tmpconfigm4 2992 2993# All CPUs use asm-defs.m4 2994echo "include(CONFIG_TOP_SRCDIR\`/mpn/asm-defs.m4')" >>$gmp_tmpconfigm4i 2995 2996 2997ac_aux_dir= 2998for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2999 for ac_t in install-sh install.sh shtool; do 3000 if test -f "$ac_dir/$ac_t"; then 3001 ac_aux_dir=$ac_dir 3002 ac_install_sh="$ac_aux_dir/$ac_t -c" 3003 break 2 3004 fi 3005 done 3006done 3007if test -z "$ac_aux_dir"; then 3008 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 3009fi 3010 3011# These three variables are undocumented and unsupported, 3012# and are intended to be withdrawn in a future Autoconf release. 3013# They can cause serious problems if a builder's source tree is in a directory 3014# whose full name contains unusual characters. 3015ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 3016ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 3017ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 3018 3019 3020# Make sure we can run config.sub. 3021$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 3022 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 3023 3024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 3025$as_echo_n "checking build system type... " >&6; } 3026if test "${ac_cv_build+set}" = set; then : 3027 $as_echo_n "(cached) " >&6 3028else 3029 ac_build_alias=$build_alias 3030test "x$ac_build_alias" = x && 3031 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 3032test "x$ac_build_alias" = x && 3033 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 3034ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 3035 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 3036 3037fi 3038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 3039$as_echo "$ac_cv_build" >&6; } 3040case $ac_cv_build in 3041*-*-*) ;; 3042*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 3043esac 3044build=$ac_cv_build 3045ac_save_IFS=$IFS; IFS='-' 3046set x $ac_cv_build 3047shift 3048build_cpu=$1 3049build_vendor=$2 3050shift; shift 3051# Remember, the first character of IFS is used to create $*, 3052# except with old shells: 3053build_os=$* 3054IFS=$ac_save_IFS 3055case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 3056 3057 3058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 3059$as_echo_n "checking host system type... " >&6; } 3060if test "${ac_cv_host+set}" = set; then : 3061 $as_echo_n "(cached) " >&6 3062else 3063 if test "x$host_alias" = x; then 3064 ac_cv_host=$ac_cv_build 3065else 3066 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 3067 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 3068fi 3069 3070fi 3071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 3072$as_echo "$ac_cv_host" >&6; } 3073case $ac_cv_host in 3074*-*-*) ;; 3075*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 3076esac 3077host=$ac_cv_host 3078ac_save_IFS=$IFS; IFS='-' 3079set x $ac_cv_host 3080shift 3081host_cpu=$1 3082host_vendor=$2 3083shift; shift 3084# Remember, the first character of IFS is used to create $*, 3085# except with old shells: 3086host_os=$* 3087IFS=$ac_save_IFS 3088case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 3089 3090 3091 3092am__api_version='1.11' 3093 3094# Find a good install program. We prefer a C program (faster), 3095# so one script is as good as another. But avoid the broken or 3096# incompatible versions: 3097# SysV /etc/install, /usr/sbin/install 3098# SunOS /usr/etc/install 3099# IRIX /sbin/install 3100# AIX /bin/install 3101# AmigaOS /C/install, which installs bootblocks on floppy discs 3102# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3103# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3104# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3105# OS/2's system install, which has a completely different semantic 3106# ./install, which can be erroneously created by make from ./install.sh. 3107# Reject install programs that cannot install multiple files. 3108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 3109$as_echo_n "checking for a BSD-compatible install... " >&6; } 3110if test -z "$INSTALL"; then 3111if test "${ac_cv_path_install+set}" = set; then : 3112 $as_echo_n "(cached) " >&6 3113else 3114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3115for as_dir in $PATH 3116do 3117 IFS=$as_save_IFS 3118 test -z "$as_dir" && as_dir=. 3119 # Account for people who put trailing slashes in PATH elements. 3120case $as_dir/ in #(( 3121 ./ | .// | /[cC]/* | \ 3122 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3123 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 3124 /usr/ucb/* ) ;; 3125 *) 3126 # OSF1 and SCO ODT 3.0 have their own names for install. 3127 # Don't use installbsd from OSF since it installs stuff as root 3128 # by default. 3129 for ac_prog in ginstall scoinst install; do 3130 for ac_exec_ext in '' $ac_executable_extensions; do 3131 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 3132 if test $ac_prog = install && 3133 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3134 # AIX install. It has an incompatible calling convention. 3135 : 3136 elif test $ac_prog = install && 3137 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3138 # program-specific install script used by HP pwplus--don't use. 3139 : 3140 else 3141 rm -rf conftest.one conftest.two conftest.dir 3142 echo one > conftest.one 3143 echo two > conftest.two 3144 mkdir conftest.dir 3145 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 3146 test -s conftest.one && test -s conftest.two && 3147 test -s conftest.dir/conftest.one && 3148 test -s conftest.dir/conftest.two 3149 then 3150 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3151 break 3 3152 fi 3153 fi 3154 fi 3155 done 3156 done 3157 ;; 3158esac 3159 3160 done 3161IFS=$as_save_IFS 3162 3163rm -rf conftest.one conftest.two conftest.dir 3164 3165fi 3166 if test "${ac_cv_path_install+set}" = set; then 3167 INSTALL=$ac_cv_path_install 3168 else 3169 # As a last resort, use the slow shell script. Don't cache a 3170 # value for INSTALL within a source directory, because that will 3171 # break other packages using the cache if that directory is 3172 # removed, or if the value is a relative name. 3173 INSTALL=$ac_install_sh 3174 fi 3175fi 3176{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3177$as_echo "$INSTALL" >&6; } 3178 3179# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3180# It thinks the first close brace ends the variable substitution. 3181test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3182 3183test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3184 3185test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3186 3187{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3188$as_echo_n "checking whether build environment is sane... " >&6; } 3189# Just in case 3190sleep 1 3191echo timestamp > conftest.file 3192# Reject unsafe characters in $srcdir or the absolute working directory 3193# name. Accept space and tab only in the latter. 3194am_lf=' 3195' 3196case `pwd` in 3197 *[\\\"\#\$\&\'\`$am_lf]*) 3198 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; 3199esac 3200case $srcdir in 3201 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3202 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 3203esac 3204 3205# Do `set' in a subshell so we don't clobber the current shell's 3206# arguments. Must try -L first in case configure is actually a 3207# symlink; some systems play weird games with the mod time of symlinks 3208# (eg FreeBSD returns the mod time of the symlink's containing 3209# directory). 3210if ( 3211 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3212 if test "$*" = "X"; then 3213 # -L didn't work. 3214 set X `ls -t "$srcdir/configure" conftest.file` 3215 fi 3216 rm -f conftest.file 3217 if test "$*" != "X $srcdir/configure conftest.file" \ 3218 && test "$*" != "X conftest.file $srcdir/configure"; then 3219 3220 # If neither matched, then we have a broken ls. This can happen 3221 # if, for instance, CONFIG_SHELL is bash and it inherits a 3222 # broken ls alias from the environment. This has actually 3223 # happened. Such a system could not be considered "sane". 3224 as_fn_error "ls -t appears to fail. Make sure there is not a broken 3225alias in your environment" "$LINENO" 5 3226 fi 3227 3228 test "$2" = conftest.file 3229 ) 3230then 3231 # Ok. 3232 : 3233else 3234 as_fn_error "newly created file is older than distributed files! 3235Check your system clock" "$LINENO" 5 3236fi 3237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3238$as_echo "yes" >&6; } 3239test "$program_prefix" != NONE && 3240 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3241# Use a double $ so make ignores it. 3242test "$program_suffix" != NONE && 3243 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3244# Double any \ or $. 3245# By default was `s,x,x', remove it if useless. 3246ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3247program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3248 3249# expand $ac_aux_dir to an absolute path 3250am_aux_dir=`cd $ac_aux_dir && pwd` 3251 3252if test x"${MISSING+set}" != xset; then 3253 case $am_aux_dir in 3254 *\ * | *\ *) 3255 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 3256 *) 3257 MISSING="\${SHELL} $am_aux_dir/missing" ;; 3258 esac 3259fi 3260# Use eval to expand $SHELL 3261if eval "$MISSING --run true"; then 3262 am_missing_run="$MISSING --run " 3263else 3264 am_missing_run= 3265 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 3266$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 3267fi 3268 3269if test x"${install_sh}" != xset; then 3270 case $am_aux_dir in 3271 *\ * | *\ *) 3272 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3273 *) 3274 install_sh="\${SHELL} $am_aux_dir/install-sh" 3275 esac 3276fi 3277 3278# Installed binaries are usually stripped using `strip' when the user 3279# run `make install-strip'. However `strip' might not be the right 3280# tool to use in cross-compilation environments, therefore Automake 3281# will honor the `STRIP' environment variable to overrule this program. 3282if test "$cross_compiling" != no; then 3283 if test -n "$ac_tool_prefix"; then 3284 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3285set dummy ${ac_tool_prefix}strip; ac_word=$2 3286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3287$as_echo_n "checking for $ac_word... " >&6; } 3288if test "${ac_cv_prog_STRIP+set}" = set; then : 3289 $as_echo_n "(cached) " >&6 3290else 3291 if test -n "$STRIP"; then 3292 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3293else 3294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3295for as_dir in $PATH 3296do 3297 IFS=$as_save_IFS 3298 test -z "$as_dir" && as_dir=. 3299 for ac_exec_ext in '' $ac_executable_extensions; do 3300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3301 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3303 break 2 3304 fi 3305done 3306 done 3307IFS=$as_save_IFS 3308 3309fi 3310fi 3311STRIP=$ac_cv_prog_STRIP 3312if test -n "$STRIP"; then 3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3314$as_echo "$STRIP" >&6; } 3315else 3316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3317$as_echo "no" >&6; } 3318fi 3319 3320 3321fi 3322if test -z "$ac_cv_prog_STRIP"; then 3323 ac_ct_STRIP=$STRIP 3324 # Extract the first word of "strip", so it can be a program name with args. 3325set dummy strip; ac_word=$2 3326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3327$as_echo_n "checking for $ac_word... " >&6; } 3328if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 3329 $as_echo_n "(cached) " >&6 3330else 3331 if test -n "$ac_ct_STRIP"; then 3332 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3333else 3334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3335for as_dir in $PATH 3336do 3337 IFS=$as_save_IFS 3338 test -z "$as_dir" && as_dir=. 3339 for ac_exec_ext in '' $ac_executable_extensions; do 3340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3341 ac_cv_prog_ac_ct_STRIP="strip" 3342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3343 break 2 3344 fi 3345done 3346 done 3347IFS=$as_save_IFS 3348 3349fi 3350fi 3351ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3352if test -n "$ac_ct_STRIP"; then 3353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3354$as_echo "$ac_ct_STRIP" >&6; } 3355else 3356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3357$as_echo "no" >&6; } 3358fi 3359 3360 if test "x$ac_ct_STRIP" = x; then 3361 STRIP=":" 3362 else 3363 case $cross_compiling:$ac_tool_warned in 3364yes:) 3365{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3366$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3367ac_tool_warned=yes ;; 3368esac 3369 STRIP=$ac_ct_STRIP 3370 fi 3371else 3372 STRIP="$ac_cv_prog_STRIP" 3373fi 3374 3375fi 3376INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3377 3378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3379$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3380if test -z "$MKDIR_P"; then 3381 if test "${ac_cv_path_mkdir+set}" = set; then : 3382 $as_echo_n "(cached) " >&6 3383else 3384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3385for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3386do 3387 IFS=$as_save_IFS 3388 test -z "$as_dir" && as_dir=. 3389 for ac_prog in mkdir gmkdir; do 3390 for ac_exec_ext in '' $ac_executable_extensions; do 3391 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 3392 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3393 'mkdir (GNU coreutils) '* | \ 3394 'mkdir (coreutils) '* | \ 3395 'mkdir (fileutils) '4.1*) 3396 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3397 break 3;; 3398 esac 3399 done 3400 done 3401 done 3402IFS=$as_save_IFS 3403 3404fi 3405 3406 test -d ./--version && rmdir ./--version 3407 if test "${ac_cv_path_mkdir+set}" = set; then 3408 MKDIR_P="$ac_cv_path_mkdir -p" 3409 else 3410 # As a last resort, use the slow shell script. Don't cache a 3411 # value for MKDIR_P within a source directory, because that will 3412 # break other packages using the cache if that directory is 3413 # removed, or if the value is a relative name. 3414 MKDIR_P="$ac_install_sh -d" 3415 fi 3416fi 3417{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3418$as_echo "$MKDIR_P" >&6; } 3419 3420mkdir_p="$MKDIR_P" 3421case $mkdir_p in 3422 [\\/$]* | ?:[\\/]*) ;; 3423 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 3424esac 3425 3426for ac_prog in gawk mawk nawk awk 3427do 3428 # Extract the first word of "$ac_prog", so it can be a program name with args. 3429set dummy $ac_prog; ac_word=$2 3430{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3431$as_echo_n "checking for $ac_word... " >&6; } 3432if test "${ac_cv_prog_AWK+set}" = set; then : 3433 $as_echo_n "(cached) " >&6 3434else 3435 if test -n "$AWK"; then 3436 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3437else 3438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3439for as_dir in $PATH 3440do 3441 IFS=$as_save_IFS 3442 test -z "$as_dir" && as_dir=. 3443 for ac_exec_ext in '' $ac_executable_extensions; do 3444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3445 ac_cv_prog_AWK="$ac_prog" 3446 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3447 break 2 3448 fi 3449done 3450 done 3451IFS=$as_save_IFS 3452 3453fi 3454fi 3455AWK=$ac_cv_prog_AWK 3456if test -n "$AWK"; then 3457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3458$as_echo "$AWK" >&6; } 3459else 3460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3461$as_echo "no" >&6; } 3462fi 3463 3464 3465 test -n "$AWK" && break 3466done 3467 3468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3469$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3470set x ${MAKE-make} 3471ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3472if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 3473 $as_echo_n "(cached) " >&6 3474else 3475 cat >conftest.make <<\_ACEOF 3476SHELL = /bin/sh 3477all: 3478 @echo '@@@%%%=$(MAKE)=@@@%%%' 3479_ACEOF 3480# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3481case `${MAKE-make} -f conftest.make 2>/dev/null` in 3482 *@@@%%%=?*=@@@%%%*) 3483 eval ac_cv_prog_make_${ac_make}_set=yes;; 3484 *) 3485 eval ac_cv_prog_make_${ac_make}_set=no;; 3486esac 3487rm -f conftest.make 3488fi 3489if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3491$as_echo "yes" >&6; } 3492 SET_MAKE= 3493else 3494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3495$as_echo "no" >&6; } 3496 SET_MAKE="MAKE=${MAKE-make}" 3497fi 3498 3499rm -rf .tst 2>/dev/null 3500mkdir .tst 2>/dev/null 3501if test -d .tst; then 3502 am__leading_dot=. 3503else 3504 am__leading_dot=_ 3505fi 3506rmdir .tst 2>/dev/null 3507 3508if test "`cd $srcdir && pwd`" != "`pwd`"; then 3509 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3510 # is not polluted with repeated "-I." 3511 am__isrc=' -I$(srcdir)' 3512 # test to see if srcdir already configured 3513 if test -f $srcdir/config.status; then 3514 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3515 fi 3516fi 3517 3518# test whether we have cygpath 3519if test -z "$CYGPATH_W"; then 3520 if (cygpath --version) >/dev/null 2>/dev/null; then 3521 CYGPATH_W='cygpath -w' 3522 else 3523 CYGPATH_W=echo 3524 fi 3525fi 3526 3527 3528# Define the identity of the package. 3529 PACKAGE='gmp' 3530 VERSION='5.0.5' 3531 3532 3533cat >>confdefs.h <<_ACEOF 3534#define PACKAGE "$PACKAGE" 3535_ACEOF 3536 3537 3538cat >>confdefs.h <<_ACEOF 3539#define VERSION "$VERSION" 3540_ACEOF 3541 3542# Some tools Automake needs. 3543 3544ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3545 3546 3547AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3548 3549 3550AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3551 3552 3553AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3554 3555 3556MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3557 3558# We need awk for the "check" target. The system "awk" is bad on 3559# some platforms. 3560# Always define AMTAR for backward compatibility. 3561 3562AMTAR=${AMTAR-"${am_missing_run}tar"} 3563 3564am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 3565 3566 3567 3568 3569 3570ac_config_headers="$ac_config_headers config.h:config.in" 3571 3572 3573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 3574$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 3575 # Check whether --enable-maintainer-mode was given. 3576if test "${enable_maintainer_mode+set}" = set; then : 3577 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 3578else 3579 USE_MAINTAINER_MODE=no 3580fi 3581 3582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 3583$as_echo "$USE_MAINTAINER_MODE" >&6; } 3584 if test $USE_MAINTAINER_MODE = yes; then 3585 MAINTAINER_MODE_TRUE= 3586 MAINTAINER_MODE_FALSE='#' 3587else 3588 MAINTAINER_MODE_TRUE='#' 3589 MAINTAINER_MODE_FALSE= 3590fi 3591 3592 MAINT=$MAINTAINER_MODE_TRUE 3593 3594 3595 3596 3597# Check whether --enable-assert was given. 3598if test "${enable_assert+set}" = set; then : 3599 enableval=$enable_assert; case $enableval in 3600yes|no) ;; 3601*) as_fn_error "bad value $enableval for --enable-assert, need yes or no" "$LINENO" 5 ;; 3602esac 3603else 3604 enable_assert=no 3605fi 3606 3607 3608if test "$enable_assert" = "yes"; then 3609 3610$as_echo "#define WANT_ASSERT 1" >>confdefs.h 3611 3612 want_assert_01=1 3613else 3614 want_assert_01=0 3615fi 3616 3617echo "define(<WANT_ASSERT>,$want_assert_01)" >> $gmp_tmpconfigm4 3618 3619 3620 3621# Check whether --enable-alloca was given. 3622if test "${enable_alloca+set}" = set; then : 3623 enableval=$enable_alloca; case $enableval in 3624alloca|malloc-reentrant|malloc-notreentrant) ;; 3625yes|no|reentrant|notreentrant) ;; 3626debug) ;; 3627*) 3628 as_fn_error "bad value $enableval for --enable-alloca, need one of: 3629yes no reentrant notreentrant alloca malloc-reentrant malloc-notreentrant debug" "$LINENO" 5 ;; 3630esac 3631else 3632 enable_alloca=reentrant 3633fi 3634 3635 3636 3637# IMPROVE ME: The default for C++ is disabled. The tests currently 3638# performed below for a working C++ compiler are not particularly strong, 3639# and in general can't be expected to get the right setup on their own. The 3640# most significant problem is getting the ABI the same. Defaulting CXXFLAGS 3641# to CFLAGS takes only a small step towards this. It's also probably worth 3642# worrying whether the C and C++ runtimes from say gcc and a vendor C++ can 3643# work together. Some rather broken C++ installations were encountered 3644# during testing, and though such things clearly aren't GMP's problem, if 3645# --enable-cxx=detect were to be the default then some careful checks of 3646# which, if any, C++ compiler on the system is up to scratch would be 3647# wanted. 3648# 3649# Check whether --enable-cxx was given. 3650if test "${enable_cxx+set}" = set; then : 3651 enableval=$enable_cxx; case $enableval in 3652yes|no|detect) ;; 3653*) as_fn_error "bad value $enableval for --enable-cxx, need yes/no/detect" "$LINENO" 5 ;; 3654esac 3655else 3656 enable_cxx=no 3657fi 3658 3659 3660 3661# Check whether --enable-fft was given. 3662if test "${enable_fft+set}" = set; then : 3663 enableval=$enable_fft; case $enableval in 3664yes|no) ;; 3665*) as_fn_error "bad value $enableval for --enable-fft, need yes or no" "$LINENO" 5 ;; 3666esac 3667else 3668 enable_fft=yes 3669fi 3670 3671 3672if test "$enable_fft" = "yes"; then 3673 3674$as_echo "#define WANT_FFT 1" >>confdefs.h 3675 3676fi 3677 3678 3679# Check whether --enable-old-fft-full was given. 3680if test "${enable_old_fft_full+set}" = set; then : 3681 enableval=$enable_old_fft_full; case $enableval in 3682yes|no) ;; 3683*) as_fn_error "bad value $enableval for --enable-old-fft-full, need yes or no" "$LINENO" 5 ;; 3684esac 3685else 3686 enable_old_fft_full=no 3687fi 3688 3689 3690if test "$enable_old_fft_full" = "yes"; then 3691 3692$as_echo "#define WANT_OLD_FFT_FULL 1" >>confdefs.h 3693 3694fi 3695 3696 3697# Check whether --enable-mpbsd was given. 3698if test "${enable_mpbsd+set}" = set; then : 3699 enableval=$enable_mpbsd; case $enableval in 3700yes|no) ;; 3701*) as_fn_error "bad value $enableval for --enable-mpbsd, need yes or no" "$LINENO" 5 ;; 3702esac 3703else 3704 enable_mpbsd=no 3705fi 3706 3707 if test "$enable_mpbsd" = "yes"; then 3708 WANT_MPBSD_TRUE= 3709 WANT_MPBSD_FALSE='#' 3710else 3711 WANT_MPBSD_TRUE='#' 3712 WANT_MPBSD_FALSE= 3713fi 3714 3715 3716 3717# Check whether --enable-nails was given. 3718if test "${enable_nails+set}" = set; then : 3719 enableval=$enable_nails; case $enableval in 3720yes|no|[02468]|[0-9][02468]) ;; 3721*[13579]) 3722 as_fn_error "bad value $enableval for --enable-nails, only even nail sizes supported" "$LINENO" 5 ;; 3723*) 3724 as_fn_error "bad value $enableval for --enable-nails, need yes/no/number" "$LINENO" 5 ;; 3725esac 3726else 3727 enable_nails=no 3728fi 3729 3730 3731case $enable_nails in 3732yes) GMP_NAIL_BITS=2 ;; 3733no) GMP_NAIL_BITS=0 ;; 3734*) GMP_NAIL_BITS=$enable_nails ;; 3735esac 3736 3737 3738 3739# Check whether --enable-profiling was given. 3740if test "${enable_profiling+set}" = set; then : 3741 enableval=$enable_profiling; case $enableval in 3742no|prof|gprof|instrument) ;; 3743*) as_fn_error "bad value $enableval for --enable-profiling, need no/prof/gprof/instrument" "$LINENO" 5 ;; 3744esac 3745else 3746 enable_profiling=no 3747fi 3748 3749 3750case $enable_profiling in 3751 prof) 3752 3753$as_echo "#define WANT_PROFILING_PROF 1" >>confdefs.h 3754 3755 ;; 3756 gprof) 3757 3758$as_echo "#define WANT_PROFILING_GPROF 1" >>confdefs.h 3759 3760 ;; 3761 instrument) 3762 3763$as_echo "#define WANT_PROFILING_INSTRUMENT 1" >>confdefs.h 3764 3765 ;; 3766esac 3767 3768 3769echo "define(<WANT_PROFILING>,<\`$enable_profiling'>)" >> $gmp_tmpconfigm4 3770 3771 3772# -fomit-frame-pointer is incompatible with -pg on some chips 3773if test "$enable_profiling" = gprof; then 3774 fomit_frame_pointer= 3775else 3776 fomit_frame_pointer="-fomit-frame-pointer" 3777fi 3778 3779 3780 3781# Check whether --with-readline was given. 3782if test "${with_readline+set}" = set; then : 3783 withval=$with_readline; case $withval in 3784yes|no|detect) ;; 3785*) as_fn_error "bad value $withval for --with-readline, need yes/no/detect" "$LINENO" 5 ;; 3786esac 3787else 3788 with_readline=detect 3789fi 3790 3791 3792 3793# Check whether --enable-fat was given. 3794if test "${enable_fat+set}" = set; then : 3795 enableval=$enable_fat; case $enableval in 3796yes|no) ;; 3797*) as_fn_error "bad value $enableval for --enable-fat, need yes or no" "$LINENO" 5 ;; 3798esac 3799else 3800 enable_fat=no 3801fi 3802 3803 3804 3805# Check whether --enable-minithres was given. 3806if test "${enable_minithres+set}" = set; then : 3807 enableval=$enable_minithres; case $enableval in 3808yes|no) ;; 3809*) as_fn_error "bad value $enableval for --enable-minithres, need yes or no" "$LINENO" 5 ;; 3810esac 3811else 3812 enable_minithres=no 3813fi 3814 3815 3816 3817 3818tmp_host=`echo $host_cpu | sed 's/\./_/'` 3819cat >>confdefs.h <<_ACEOF 3820#define HAVE_HOST_CPU_$tmp_host 1 3821_ACEOF 3822 3823 3824echo "define_not_for_expansion(\`HAVE_HOST_CPU_$tmp_host')" >> $gmp_tmpconfigm4p 3825 3826 3827 3828 3829 3830 3831# Table of compilers, options, and mpn paths. This code has various related 3832# purposes 3833# 3834# - better default CC/CFLAGS selections than autoconf otherwise gives 3835# - default CC/CFLAGS selections for extra CPU types specific to GMP 3836# - a few tests for known bad compilers 3837# - choice of ABIs on suitable systems 3838# - selection of corresponding mpn search path 3839# 3840# After GMP specific searches and tests, the standard autoconf AC_PROG_CC is 3841# called. User selections of CC etc are respected. 3842# 3843# Care is taken not to use macros like AC_TRY_COMPILE during the GMP 3844# pre-testing, since they of course depend on AC_PROG_CC, and also some of 3845# them cache their results, which is not wanted. 3846# 3847# The ABI selection mechanism is unique to GMP. All that reaches autoconf 3848# is a different selection of CC/CFLAGS according to the best ABI the system 3849# supports, and/or what the user selects. Naturally the mpn assembler code 3850# selected is very dependent on the ABI. 3851# 3852# The closest the standard tools come to a notion of ABI is something like 3853# "sparc64" which encodes a CPU and an ABI together. This doesn't seem to 3854# scale well for GMP, where exact CPU types like "ultrasparc2" are wanted, 3855# separate from the ABI used on them. 3856# 3857# 3858# The variables set here are 3859# 3860# cclist the compiler choices 3861# xx_cflags flags for compiler xx 3862# xx_cflags_maybe flags for compiler xx, if they work 3863# xx_cppflags cpp flags for compiler xx 3864# xx_cflags_optlist list of sets of optional flags 3865# xx_cflags_yyy set yyy of optional flags for compiler xx 3866# xx_ldflags -Wc,-foo flags for libtool linking with compiler xx 3867# ar_flags extra flags for $AR 3868# nm_flags extra flags for $NM 3869# limb limb size, can be "longlong" 3870# path mpn search path 3871# extra_functions extra mpn functions 3872# fat_path fat binary mpn search path [if fat binary desired] 3873# fat_functions fat functions 3874# fat_thresholds fat thresholds 3875# 3876# Suppose xx_cflags_optlist="arch", then flags from $xx_cflags_arch are 3877# tried, and the first flag that works will be used. An optlist like "arch 3878# cpu optimize" can be used to get multiple independent sets of flags tried. 3879# The first that works from each will be used. If no flag in a set works 3880# then nothing from that set is added. 3881# 3882# For multiple ABIs, the scheme extends as follows. 3883# 3884# abilist set of ABI choices 3885# cclist_aa compiler choices in ABI aa 3886# xx_aa_cflags flags for xx in ABI aa 3887# xx_aa_cflags_maybe flags for xx in ABI aa, if they work 3888# xx_aa_cppflags cpp flags for xx in ABI aa 3889# xx_aa_cflags_optlist list of sets of optional flags in ABI aa 3890# xx_aa_cflags_yyy set yyy of optional flags for compiler xx in ABI aa 3891# xx_aa_ldflags -Wc,-foo flags for libtool linking 3892# ar_aa_flags extra flags for $AR in ABI aa 3893# nm_aa_flags extra flags for $NM in ABI aa 3894# limb_aa limb size in ABI aa, can be "longlong" 3895# path_aa mpn search path in ABI aa 3896# extra_functions_aa extra mpn functions in ABI aa 3897# 3898# As a convenience, the unadorned xx_cflags (etc) are used for the last ABI 3899# in ablist, if an xx_aa_cflags for that ABI isn't given. For example if 3900# abilist="64 32" then $cc_64_cflags will be used for the 64-bit ABI, but 3901# for the 32-bit either $cc_32_cflags or $cc_cflags is used, whichever is 3902# defined. This makes it easy to add some 64-bit compilers and flags to an 3903# unadorned 32-bit set. 3904# 3905# limb=longlong (or limb_aa=longlong) applies to all compilers within that 3906# ABI. It won't work to have some needing long long and some not, since a 3907# single instantiated gmp.h will be used by both. 3908# 3909# SPEED_CYCLECOUNTER, cyclecounter_size and CALLING_CONVENTIONS_OBJS are 3910# also set here, with an ABI suffix. 3911# 3912# 3913# 3914# A table-driven approach like this to mapping cpu type to good compiler 3915# options is a bit of a maintenance burden, but there's not much uniformity 3916# between options specifications on different compilers. Some sort of 3917# separately updatable tool might be cute. 3918# 3919# The use of lots of variables like this, direct and indirect, tends to 3920# obscure when and how various things are done, but unfortunately it's 3921# pretty much the only way. If shell subroutines were portable then actual 3922# code like "if this .. do that" could be written, but attempting the same 3923# with full copies of GMP_PROG_CC_WORKS etc expanded at every point would 3924# hugely bloat the output. 3925 3926 3927 3928 3929# abilist needs to be non-empty, "standard" is just a generic name here 3930abilist="standard" 3931 3932# FIXME: We'd like to prefer an ANSI compiler, perhaps by preferring 3933# c89 over cc here. But note that on HP-UX c89 provides a castrated 3934# environment, and would want to be excluded somehow. Maybe 3935# AC_PROG_CC_STDC already does enough to stick cc into ANSI mode and 3936# we don't need to worry. 3937# 3938cclist="gcc cc" 3939 3940gcc_cflags="-O2 -pedantic" 3941gcc_64_cflags="-O2 -pedantic" 3942cc_cflags="-O" 3943cc_64_cflags="-O" 3944 3945SPEED_CYCLECOUNTER_OBJ= 3946cyclecounter_size=2 3947 3948HAVE_HOST_CPU_FAMILY_power=0 3949 3950HAVE_HOST_CPU_FAMILY_powerpc=0 3951 3952 3953case $host in 3954 3955 a29k*-*-*) 3956 path="a29k" 3957 ;; 3958 3959 3960 alpha*-*-*) 3961 $as_echo "#define HAVE_HOST_CPU_FAMILY_alpha 1" >>confdefs.h 3962 3963 case $host_cpu in 3964 alphaev5* | alphapca5*) 3965 path="alpha/ev5 alpha" ;; 3966 alphaev67 | alphaev68 | alphaev7*) 3967 path="alpha/ev67 alpha/ev6 alpha" ;; 3968 alphaev6) 3969 path="alpha/ev6 alpha" ;; 3970 *) 3971 path="alpha" ;; 3972 esac 3973 extra_functions="cntlz" 3974 gcc_cflags_optlist="asm cpu oldas" # need asm ahead of cpu, see below 3975 gcc_cflags_oldas="-Wa,-oldas" # see GMP_GCC_WA_OLDAS. 3976 3977 # gcc 2.7.2.3 doesn't know any -mcpu= for alpha, apparently. 3978 # gcc 2.95 knows -mcpu= ev4, ev5, ev56, pca56, ev6. 3979 # gcc 3.0 adds nothing. 3980 # gcc 3.1 adds ev45, ev67 (but ev45 is the same as ev4). 3981 # gcc 3.2 adds nothing. 3982 # 3983 # gcc version "2.9-gnupro-99r1" under "-O2 -mcpu=ev6" strikes internal 3984 # compiler errors too easily and is rejected by GMP_PROG_CC_WORKS. Each 3985 # -mcpu=ev6 below has a fallback to -mcpu=ev56 for this reason. 3986 # 3987 case $host_cpu in 3988 alpha) gcc_cflags_cpu="-mcpu=ev4" ;; 3989 alphaev5) gcc_cflags_cpu="-mcpu=ev5" ;; 3990 alphaev56) gcc_cflags_cpu="-mcpu=ev56" ;; 3991 alphapca56 | alphapca57) 3992 gcc_cflags_cpu="-mcpu=pca56" ;; 3993 alphaev6) gcc_cflags_cpu="-mcpu=ev6 -mcpu=ev56" ;; 3994 alphaev67 | alphaev68 | alphaev7*) 3995 gcc_cflags_cpu="-mcpu=ev67 -mcpu=ev6 -mcpu=ev56" ;; 3996 esac 3997 3998 # gcc version "2.9-gnupro-99r1" on alphaev68-dec-osf5.1 has been seen 3999 # accepting -mcpu=ev6, but not putting the assembler in the right mode 4000 # for what it produces. We need to do this for it, and need to do it 4001 # before testing the -mcpu options. 4002 # 4003 # On old versions of gcc, which don't know -mcpu=, we believe an 4004 # explicit -Wa,-mev5 etc will be necessary to put the assembler in 4005 # the right mode for our .asm files and longlong.h asm blocks. 4006 # 4007 # On newer versions of gcc, when -mcpu= is known, we must give a -Wa 4008 # which is at least as high as the code gcc will generate. gcc 4009 # establishes what it needs with a ".arch" directive, our command line 4010 # option seems to override that. 4011 # 4012 # gas prior to 2.14 doesn't accept -mev67, but -mev6 seems enough for 4013 # ctlz and cttz (in 2.10.0 at least). 4014 # 4015 # OSF `as' accepts ev68 but stupidly treats it as ev4. -arch only seems 4016 # to affect insns like ldbu which are expanded as macros when necessary. 4017 # Insns like ctlz which were never available as macros are always 4018 # accepted and always generate their plain code. 4019 # 4020 case $host_cpu in 4021 alpha) gcc_cflags_asm="-Wa,-arch,ev4 -Wa,-mev4" ;; 4022 alphaev5) gcc_cflags_asm="-Wa,-arch,ev5 -Wa,-mev5" ;; 4023 alphaev56) gcc_cflags_asm="-Wa,-arch,ev56 -Wa,-mev56" ;; 4024 alphapca56 | alphapca57) 4025 gcc_cflags_asm="-Wa,-arch,pca56 -Wa,-mpca56" ;; 4026 alphaev6) gcc_cflags_asm="-Wa,-arch,ev6 -Wa,-mev6" ;; 4027 alphaev67 | alphaev68 | alphaev7*) 4028 gcc_cflags_asm="-Wa,-arch,ev67 -Wa,-mev67 -Wa,-arch,ev6 -Wa,-mev6" ;; 4029 esac 4030 4031 # It might be better to ask "cc" whether it's Cray C or DEC C, 4032 # instead of relying on the OS part of $host. But it's hard to 4033 # imagine either of those compilers anywhere except their native 4034 # systems. 4035 # 4036 4037echo "include_mpn(\`alpha/alpha-defs.m4')" >> $gmp_tmpconfigm4i 4038 4039 case $host in 4040 *-cray-unicos*) 4041 cc_cflags="-O" # no -g, it silently disables all optimizations 4042 4043echo "include_mpn(\`alpha/unicos.m4')" >> $gmp_tmpconfigm4i 4044 4045 # Don't perform any assembly syntax tests on this beast. 4046 gmp_asm_syntax_testing=no 4047 ;; 4048 *-*-osf*) 4049 4050echo "include_mpn(\`alpha/default.m4')" >> $gmp_tmpconfigm4i 4051 4052 cc_cflags="" 4053 cc_cflags_optlist="opt cpu" 4054 4055 # not sure if -fast works on old versions, so make it optional 4056 cc_cflags_opt="-fast -O2" 4057 4058 # DEC C V5.9-005 knows ev4, ev5, ev56, pca56, ev6. 4059 # Compaq C V6.3-029 adds ev67. 4060 # 4061 case $host_cpu in 4062 alpha) cc_cflags_cpu="-arch~ev4~-tune~ev4" ;; 4063 alphaev5) cc_cflags_cpu="-arch~ev5~-tune~ev5" ;; 4064 alphaev56) cc_cflags_cpu="-arch~ev56~-tune~ev56" ;; 4065 alphapca56 | alphapca57) 4066 cc_cflags_cpu="-arch~pca56~-tune~pca56" ;; 4067 alphaev6) cc_cflags_cpu="-arch~ev6~-tune~ev6" ;; 4068 alphaev67 | alphaev68 | alphaev7*) 4069 cc_cflags_cpu="-arch~ev67~-tune~ev67 -arch~ev6~-tune~ev6" ;; 4070 esac 4071 ;; 4072 *) 4073 4074echo "include_mpn(\`alpha/default.m4')" >> $gmp_tmpconfigm4i 4075 4076 ;; 4077 esac 4078 4079 case $host in 4080 *-*-unicos*) 4081 # tune/alpha.asm assumes int==4bytes but unicos uses int==8bytes 4082 ;; 4083 *) 4084 SPEED_CYCLECOUNTER_OBJ=alpha.lo 4085 cyclecounter_size=1 ;; 4086 esac 4087 ;; 4088 4089 4090 # Cray vector machines. 4091 # This must come after alpha* so that we can recognize present and future 4092 # vector processors with a wildcard. 4093 *-cray-unicos*) 4094 gmp_asm_syntax_testing=no 4095 cclist="cc" 4096 # We used to have -hscalar0 here as a workaround for miscompilation of 4097 # mpz/import.c, but let's hope Cray fixes their bugs instead, since 4098 # -hscalar0 causes disastrously poor code to be generated. 4099 cc_cflags="-O3 -hnofastmd -htask0 -Wa,-B" 4100 path="cray" 4101 ;; 4102 4103 4104 arm*-*-*) 4105 path="arm" 4106 gcc_cflags="$gcc_cflags $fomit_frame_pointer" 4107 gcc_testlist="gcc-arm-umodsi" 4108 4109echo "include_mpn(\`arm/arm-defs.m4')" >> $gmp_tmpconfigm4i 4110 4111 ;; 4112 4113 4114 clipper*-*-*) 4115 path="clipper" 4116 ;; 4117 4118 4119 # Fujitsu 4120 f30[01]-fujitsu-sysv*) 4121 cclist="gcc vcc" 4122 # FIXME: flags for vcc? 4123 vcc_cflags="-g" 4124 path="fujitsu" 4125 ;; 4126 4127 4128 hppa*-*-*) 4129 # HP cc (the one sold separately) is K&R by default, but AM_C_PROTOTYPES 4130 # will add "-Ae", or "-Aa -D_HPUX_SOURCE", to put it into ansi mode, if 4131 # possible. 4132 # 4133 # gcc for hppa 2.0 can be built either for 2.0n (32-bit) or 2.0w 4134 # (64-bit), but not both, so there's no option to choose the desired 4135 # mode, we must instead detect which of the two it is. This is done by 4136 # checking sizeof(long), either 4 or 8 bytes respectively. Do this in 4137 # ABI=1.0 too, in case someone tries to build that with a 2.0w gcc. 4138 # 4139 gcc_cflags_optlist="arch" 4140 gcc_testlist="sizeof-long-4" 4141 SPEED_CYCLECOUNTER_OBJ=hppa.lo 4142 cyclecounter_size=1 4143 4144 # FIXME: For hppa2.0*, path should be "pa32/hppa2_0 pa32/hppa1_1 pa32". 4145 # (Can't remember why this isn't done already, have to check what .asm 4146 # files are available in each and how they run on a typical 2.0 cpu.) 4147 # 4148 case $host_cpu in 4149 hppa1.0*) path="pa32" ;; 4150 hppa7000*) path="pa32/hppa1_1 pa32" ;; 4151 hppa2.0* | hppa64) 4152 path="pa32/hppa2_0 pa32/hppa1_1/pa7100 pa32/hppa1_1 pa32" ;; 4153 *) # default to 7100 4154 path="pa32/hppa1_1/pa7100 pa32/hppa1_1 pa32" ;; 4155 esac 4156 4157 # gcc 2.7.2.3 knows -mpa-risc-1-0 and -mpa-risc-1-1 4158 # gcc 2.95 adds -mpa-risc-2-0, plus synonyms -march=1.0, 1.1 and 2.0 4159 # 4160 # We don't use -mpa-risc-2-0 in ABI=1.0 because 64-bit registers may not 4161 # be saved by the kernel on an old system. Actually gcc (as of 3.2) 4162 # only adds a few float instructions with -mpa-risc-2-0, so it would 4163 # probably be safe, but let's not take the chance. In any case, a 4164 # configuration like --host=hppa2.0 ABI=1.0 is far from optimal. 4165 # 4166 case $host_cpu in 4167 hppa1.0*) gcc_cflags_arch="-mpa-risc-1-0" ;; 4168 *) # default to 7100 4169 gcc_cflags_arch="-mpa-risc-1-1" ;; 4170 esac 4171 4172 case $host_cpu in 4173 hppa1.0*) cc_cflags="+O2" ;; 4174 *) # default to 7100 4175 cc_cflags="+DA1.1 +O2" ;; 4176 esac 4177 4178 case $host in 4179 hppa2.0*-*-* | hppa64-*-*) 4180 cclist_20n="gcc cc" 4181 abilist="2.0n 1.0" 4182 path_20n="pa64" 4183 limb_20n=longlong 4184 any_20n_testlist="sizeof-long-4" 4185 SPEED_CYCLECOUNTER_OBJ_20n=hppa2.lo 4186 cyclecounter_size_20n=2 4187 4188 # -mpa-risc-2-0 is only an optional flag, in case an old gcc is 4189 # used. Assembler support for 2.0 is essential though, for our asm 4190 # files. 4191 gcc_20n_cflags="-O2" 4192 gcc_20n_cflags_optlist="arch" 4193 gcc_20n_cflags_arch="-mpa-risc-2-0 -mpa-risc-1-1" 4194 gcc_20n_testlist="sizeof-long-4 hppa-level-2.0" 4195 4196 cc_20n_cflags="+DA2.0 +e +O2 -Wl,+vnocompatwarnings" 4197 cc_20n_testlist="hpc-hppa-2-0" 4198 4199 # ABI=2.0w is available for hppa2.0w and hppa2.0, but not for 4200 # hppa2.0n, on the assumption that that the latter indicates a 4201 # desire for ABI=2.0n. 4202 case $host in 4203 hppa2.0n-*-*) ;; 4204 *) 4205 # HPUX 10 and earlier cannot run 2.0w. Not sure about other 4206 # systems (GNU/Linux for instance), but lets assume they're ok. 4207 case $host in 4208 *-*-hpux[1-9] | *-*-hpux[1-9].* | *-*-hpux10 | *-*-hpux10.*) ;; 4209 *-*-linux*) abilist="1.0" ;; # due to linux permanent kernel bug 4210 *) abilist="2.0w $abilist" ;; 4211 esac 4212 4213 cclist_20w="gcc cc" 4214 gcc_20w_cflags="-O2 -mpa-risc-2-0" 4215 cc_20w_cflags="+DD64 +O2" 4216 cc_20w_testlist="hpc-hppa-2-0" 4217 path_20w="pa64" 4218 any_20w_testlist="sizeof-long-8" 4219 SPEED_CYCLECOUNTER_OBJ_20w=hppa2w.lo 4220 cyclecounter_size_20w=2 4221 ;; 4222 esac 4223 ;; 4224 esac 4225 ;; 4226 4227 4228 i960*-*-*) 4229 path="i960" 4230 ;; 4231 4232 4233 ia64*-*-* | itanium-*-* | itanium2-*-*) 4234 abilist="64" 4235 4236echo "include_mpn(\`ia64/ia64-defs.m4')" >> $gmp_tmpconfigm4i 4237 4238 SPEED_CYCLECOUNTER_OBJ=ia64.lo 4239 4240 case $host_cpu in 4241 itanium) path="ia64/itanium ia64" ;; 4242 itanium2) path="ia64/itanium2 ia64" ;; 4243 *) path="ia64" ;; 4244 esac 4245 4246 gcc_64_cflags_optlist="tune" 4247 gcc_32_cflags_optlist=$gcc_64_cflags_optlist 4248 4249 # gcc pre-release 3.4 adds -mtune itanium and itanium2 4250 case $host_cpu in 4251 itanium) gcc_cflags_tune="-mtune=itanium" ;; 4252 itanium2) gcc_cflags_tune="-mtune=itanium2" ;; 4253 esac 4254 4255 case $host in 4256 *-*-linux*) 4257 cclist="gcc icc" 4258 icc_cflags="-no-gcc" 4259 icc_cflags_optlist="opt" 4260 # Don't use -O3, it is for "large data sets" and also miscompiles GMP. 4261 # But icc miscompiles GMP at any optimization level, at higher levels 4262 # it miscompiles more files... 4263 icc_cflags_opt="-O2 -O1" 4264 ;; 4265 4266 *-*-hpux*) 4267 # HP cc sometimes gets internal errors if the optimization level is 4268 # too high. GMP_PROG_CC_WORKS detects this, the "_opt" fallbacks 4269 # let us use whatever seems to work. 4270 # 4271 abilist="32 64" 4272 4273 cclist_32="gcc cc" 4274 path_32="ia64" 4275 cc_32_cflags="" 4276 cc_32_cflags_optlist="opt" 4277 cc_32_cflags_opt="+O3 +O2 +O1" 4278 gcc_32_cflags="-milp32 -O2" 4279 limb_32=longlong 4280 SPEED_CYCLECOUNTER_OBJ_32=ia64.lo 4281 cyclecounter_size_32=2 4282 4283 # Must have +DD64 in CPPFLAGS to get the right __LP64__ for headers, 4284 # but also need it in CFLAGS for linking programs, since automake 4285 # only uses CFLAGS when linking, not CPPFLAGS. 4286 # FIXME: Maybe should use cc_64_ldflags for this, but that would 4287 # need GMP_LDFLAGS used consistently by all the programs. 4288 # 4289 cc_64_cflags="+DD64" 4290 cc_64_cppflags="+DD64" 4291 cc_64_cflags_optlist="opt" 4292 cc_64_cflags_opt="+O3 +O2 +O1" 4293 gcc_64_cflags="$gcc_64_cflags -mlp64" 4294 ;; 4295 esac 4296 ;; 4297 4298 4299 # Motorola 68k 4300 # 4301 m68k-*-* | m68[0-9][0-9][0-9]-*-*) 4302 $as_echo "#define HAVE_HOST_CPU_FAMILY_m68k 1" >>confdefs.h 4303 4304 4305echo "include_mpn(\`m68k/m68k-defs.m4')" >> $gmp_tmpconfigm4i 4306 4307 gcc_cflags="$gcc_cflags $fomit_frame_pointer" 4308 gcc_cflags_optlist="arch" 4309 4310 # gcc 2.7.2 knows -m68000, -m68020, -m68030, -m68040. 4311 # gcc 2.95 adds -mcpu32, -m68060. 4312 # FIXME: Maybe "-m68020 -mnobitfield" would suit cpu32 on 2.7.2. 4313 # 4314 case $host_cpu in 4315 m68020) gcc_cflags_arch="-m68020" ;; 4316 m68030) gcc_cflags_arch="-m68030" ;; 4317 m68040) gcc_cflags_arch="-m68040" ;; 4318 m68060) gcc_cflags_arch="-m68060 -m68000" ;; 4319 m68360) gcc_cflags_arch="-mcpu32 -m68000" ;; 4320 *) gcc_cflags_arch="-m68000" ;; 4321 esac 4322 4323 # FIXME: m68k/mc68020 looks like it's ok for cpu32, but this wants to be 4324 # tested. Will need to introduce an m68k/cpu32 if m68k/mc68020 ever uses 4325 # the bitfield instructions. 4326 case $host_cpu in 4327 m680[234]0 | m68360) path="m68k/mc68020 m68k" ;; 4328 *) path="m68k" ;; 4329 esac 4330 ;; 4331 4332 4333 # Motorola 88k 4334 m88k*-*-*) 4335 path="m88k" 4336 ;; 4337 m88110*-*-*) 4338 gcc_cflags="$gcc_cflags -m88110" 4339 path="m88k/mc88110 m88k" 4340 ;; 4341 4342 4343 # National Semiconductor 32k 4344 ns32k*-*-*) 4345 path="ns32k" 4346 ;; 4347 4348 4349 # IRIX 5 and earlier can only run 32-bit o32. 4350 # 4351 # IRIX 6 and up always has a 64-bit mips CPU can run n32 or 64. n32 is 4352 # preferred over 64, but only because that's been the default in past 4353 # versions of GMP. The two are equally efficient. 4354 # 4355 # Linux kernel 2.2.13 arch/mips/kernel/irixelf.c has a comment about not 4356 # supporting n32 or 64. 4357 # 4358 # For reference, libtool (eg. 1.5.6) recognises the n32 ABI and knows the 4359 # right options to use when linking (both cc and gcc), so no need for 4360 # anything special from us. 4361 # 4362 mips*-*-*) 4363 abilist="o32" 4364 gcc_cflags_optlist="abi" 4365 gcc_cflags_abi="-mabi=32" 4366 gcc_testlist="gcc-mips-o32" 4367 path="mips32" 4368 cc_cflags="-O2 -o32" # no -g, it disables all optimizations 4369 # this suits both mips32 and mips64 4370 4371echo "include_mpn(\`mips32/mips-defs.m4')" >> $gmp_tmpconfigm4i 4372 4373 4374 case $host in 4375 mips64*-*-* | mips*-*-irix[6789]*) 4376 abilist="n32 64 o32" 4377 4378 cclist_n32="gcc cc" 4379 gcc_n32_cflags="-O2 -mabi=n32" 4380 cc_n32_cflags="-O2 -n32" # no -g, it disables all optimizations 4381 limb_n32=longlong 4382 path_n32="mips64" 4383 4384 cclist_64="gcc cc" 4385 gcc_64_cflags="$gcc_64_cflags -mabi=64" 4386 gcc_64_ldflags="-Wc,-mabi=64" 4387 cc_64_cflags="-O2 -64" # no -g, it disables all optimizations 4388 cc_64_ldflags="-Wc,-64" 4389 path_64="mips64" 4390 ;; 4391 esac 4392 ;; 4393 4394 4395 # Darwin (powerpc-apple-darwin1.3) has it's hacked gcc installed as cc. 4396 # Our usual "gcc in disguise" detection means gcc_cflags etc here gets 4397 # used. 4398 # 4399 # The darwin pre-compiling preprocessor is disabled with -no-cpp-precomp 4400 # since it doesn't like "__attribute__ ((mode (SI)))" etc in gmp-impl.h, 4401 # and so always ends up running the plain preprocessor anyway. This could 4402 # be done in CPPFLAGS rather than CFLAGS, but there's not many places 4403 # preprocessing is done separately, and this is only a speedup, the normal 4404 # preprocessor gets run if there's any problems. 4405 # 4406 # We used to use -Wa,-mppc with gcc, but can't remember exactly why. 4407 # Presumably it was for old versions of gcc where -mpowerpc doesn't put 4408 # the assembler in the right mode. In any case -Wa,-mppc is not good, for 4409 # instance -mcpu=604 makes recent gcc use -m604 to get access to the 4410 # "fsel" instruction, but a -Wa,-mppc overrides that, making code that 4411 # comes out with fsel fail. 4412 # 4413 # (Note also that the darwin assembler doesn't accept "-mppc", so any 4414 # -Wa,-mppc was used only if it worked. The right flag on darwin would be 4415 # "-arch ppc" or some such, but that's already the default.) 4416 # 4417 powerpc*-*-* | power[3-9]-*-*) 4418 $as_echo "#define HAVE_HOST_CPU_FAMILY_powerpc 1" >>confdefs.h 4419 4420 HAVE_HOST_CPU_FAMILY_powerpc=1 4421 abilist="32" 4422 cclist="gcc cc" 4423 cc_cflags="-O2" 4424 gcc_32_cflags="$gcc_cflags -mpowerpc" 4425 gcc_cflags_optlist="precomp subtype asm cpu" 4426 gcc_cflags_precomp="-no-cpp-precomp" 4427 gcc_cflags_subtype="-force_cpusubtype_ALL" # for vmx on darwin 4428 gcc_cflags_asm="" 4429 gcc_cflags_cpu="" 4430 vmx_path="" 4431 4432 # grab this object, though it's not a true cycle counter routine 4433 SPEED_CYCLECOUNTER_OBJ=powerpc.lo 4434 cyclecounter_size=0 4435 4436 case $host_cpu in 4437 powerpc740 | powerpc750) 4438 path="powerpc32/750 powerpc32" ;; 4439 powerpc7400 | powerpc7410) 4440 path="powerpc32/vmx powerpc32/750 powerpc32" ;; 4441 powerpc74[45]?) 4442 path="powerpc32/vmx powerpc32" ;; 4443 *) 4444 path="powerpc32" ;; 4445 esac 4446 4447 case $host_cpu in 4448 powerpc401) gcc_cflags_cpu="-mcpu=401" ;; 4449 powerpc403) gcc_cflags_cpu="-mcpu=403" 4450 xlc_cflags_arch="-qarch=403 -qarch=ppc" ;; 4451 powerpc405) gcc_cflags_cpu="-mcpu=405" ;; 4452 powerpc505) gcc_cflags_cpu="-mcpu=505" ;; 4453 powerpc601) gcc_cflags_cpu="-mcpu=601" 4454 xlc_cflags_arch="-qarch=601 -qarch=ppc" ;; 4455 powerpc602) gcc_cflags_cpu="-mcpu=602" 4456 xlc_cflags_arch="-qarch=602 -qarch=ppc" ;; 4457 powerpc603) gcc_cflags_cpu="-mcpu=603" 4458 xlc_cflags_arch="-qarch=603 -qarch=ppc" ;; 4459 powerpc603e) gcc_cflags_cpu="-mcpu=603e -mcpu=603" 4460 xlc_cflags_arch="-qarch=603 -qarch=ppc" ;; 4461 powerpc604) gcc_cflags_cpu="-mcpu=604" 4462 xlc_cflags_arch="-qarch=604 -qarch=ppc" ;; 4463 powerpc604e) gcc_cflags_cpu="-mcpu=604e -mcpu=604" 4464 xlc_cflags_arch="-qarch=604 -qarch=ppc" ;; 4465 powerpc620) gcc_cflags_cpu="-mcpu=620" ;; 4466 powerpc630) gcc_cflags_cpu="-mcpu=630" 4467 xlc_cflags_arch="-qarch=pwr3" 4468 cpu_path="p3 p3-p7" ;; 4469 powerpc740) gcc_cflags_cpu="-mcpu=740" ;; 4470 powerpc7400 | powerpc7410) 4471 gcc_cflags_asm="-Wa,-maltivec" 4472 gcc_cflags_cpu="-mcpu=7400 -mcpu=750" ;; 4473 powerpc74[45]?) 4474 gcc_cflags_asm="-Wa,-maltivec" 4475 gcc_cflags_cpu="-mcpu=7450" ;; 4476 powerpc750) gcc_cflags_cpu="-mcpu=750" ;; 4477 powerpc801) gcc_cflags_cpu="-mcpu=801" ;; 4478 powerpc821) gcc_cflags_cpu="-mcpu=821" ;; 4479 powerpc823) gcc_cflags_cpu="-mcpu=823" ;; 4480 powerpc860) gcc_cflags_cpu="-mcpu=860" ;; 4481 powerpc970) gcc_cflags_cpu="-mtune=970" 4482 xlc_cflags_arch="-qarch=970 -qarch=pwr3" 4483 vmx_path="powerpc64/vmx" 4484 cpu_path="p4 p3-p7" ;; 4485 power4) gcc_cflags_cpu="-mtune=power4" 4486 xlc_cflags_arch="-qarch=pwr4" 4487 cpu_path="p4 p3-p7" ;; 4488 power5) gcc_cflags_cpu="-mtune=power5 -mtune=power4" 4489 xlc_cflags_arch="-qarch=pwr5" 4490 cpu_path="p5 p4 p3-p7" ;; 4491 power6) gcc_cflags_cpu="-mtune=power6" 4492 xlc_cflags_arch="-qarch=pwr6" 4493 cpu_path="p6 p3-p7" ;; 4494 power7) gcc_cflags_cpu="-mtune=power7 -mtune=power5" 4495 xlc_cflags_arch="-qarch=pwr7 -qarch=pwr5" 4496 cpu_path="p7 p5 p4 p3-p7" ;; 4497 esac 4498 4499 case $host in 4500 *-*-aix*) 4501 cclist="gcc xlc cc" 4502 gcc_32_cflags_maybe="-maix32" 4503 xlc_cflags="-O2 -qmaxmem=20000" 4504 xlc_cflags_optlist="arch" 4505 xlc_32_cflags_maybe="-q32" 4506 ar_32_flags="-X32" 4507 nm_32_flags="-X32" 4508 esac 4509 4510 case $host in 4511 powerpc64-*-* | powerpc64le-*-* | powerpc620-*-* | powerpc630-*-* | powerpc970-*-* | power[3-9]-*-*) 4512 case $host in 4513 *-*-aix*) 4514 # On AIX a true 64-bit ABI is available. 4515 # Need -Wc to pass object type flags through to the linker. 4516 abilist="aix64 $abilist" 4517 cclist_aix64="gcc xlc" 4518 gcc_aix64_cflags="-O2 -maix64 -mpowerpc64" 4519 gcc_aix64_cflags_optlist="cpu" 4520 gcc_aix64_ldflags="-Wc,-maix64" 4521 xlc_aix64_cflags="-O2 -q64 -qmaxmem=20000" 4522 xlc_aix64_cflags_optlist="arch" 4523 xlc_aix64_ldflags="-Wc,-q64" 4524 # Must indicate object type to ar and nm 4525 ar_aix64_flags="-X64" 4526 nm_aix64_flags="-X64" 4527 path_aix64="" 4528 for i in $cpu_path; do path_aix64="${path_aix64}powerpc64/mode64/$i "; done 4529 path_aix64="${path_aix64}powerpc64/mode64 $vmx_path powerpc64" 4530 # grab this object, though it's not a true cycle counter routine 4531 SPEED_CYCLECOUNTER_OBJ_aix64=powerpc64.lo 4532 cyclecounter_size_aix64=0 4533 ;; 4534 *-*-darwin*) 4535 # On Darwin we can use 64-bit instructions with a longlong limb, 4536 # but the chip still in 32-bit mode. 4537 # In theory this can be used on any OS which knows how to save 4538 # 64-bit registers in a context switch. 4539 # 4540 # Note that we must use -mpowerpc64 with gcc, since the 4541 # longlong.h macros expect limb operands in a single 64-bit 4542 # register, not two 32-bit registers as would be given for a 4543 # long long without -mpowerpc64. In theory we could detect and 4544 # accommodate both styles, but the proper 64-bit registers will 4545 # be fastest and are what we really want to use. 4546 # 4547 # One would think -mpowerpc64 would set the assembler in the right 4548 # mode to handle 64-bit instructions. But for that, also 4549 # -force_cpusubtype_ALL is needed. 4550 # 4551 # Do not use -fast for Darwin, it actually adds options 4552 # incompatible with a shared library. 4553 # 4554 abilist="mode64 mode32 $abilist" 4555 gcc_32_cflags_maybe="-m32" 4556 gcc_cflags_opt="-O3 -O2 -O1" # will this become used? 4557 cclist_mode32="gcc" 4558 gcc_mode32_cflags_maybe="-m32" 4559 gcc_mode32_cflags="-mpowerpc64" 4560 gcc_mode32_cflags_optlist="subtype cpu opt" 4561 gcc_mode32_cflags_subtype="-force_cpusubtype_ALL" 4562 gcc_mode32_cflags_opt="-O3 -O2 -O1" 4563 path_mode32="powerpc64/mode32 $vmx_path powerpc64" 4564 limb_mode32=longlong 4565 cclist_mode64="gcc" 4566 gcc_mode64_cflags="-m64" 4567 gcc_mode64_cflags_optlist="cpu opt" 4568 gcc_mode64_cflags_opt="-O3 -O2 -O1" 4569 path_mode64="" 4570 for i in $cpu_path; do path_mode64="${path_mode64}powerpc64/mode64/$i "; done 4571 path_mode64="${path_mode64}powerpc64/mode64 $vmx_path powerpc64" 4572 SPEED_CYCLECOUNTER_OBJ_mode64=powerpc64.lo 4573 cyclecounter_size_mode64=0 4574 any_mode64_testlist="sizeof-long-8" 4575 ;; 4576 *-*-linux* | *-*-*bsd*) 4577 # On GNU/Linux, assume the processor is in 64-bit mode. Some 4578 # environments have a gcc that is always in 64-bit mode, while 4579 # others require -m64, hence the use of cflags_maybe. The 4580 # sizeof-long-8 test checks the mode is right (for the no option 4581 # case). 4582 # 4583 # -mpowerpc64 is not used, since it should be the default in 4584 # 64-bit mode. (We need its effect for the various longlong.h 4585 # asm macros to be right of course.) 4586 # 4587 # gcc64 was an early port of gcc to 64-bit mode, but should be 4588 # obsolete before too long. We prefer plain gcc when it knows 4589 # 64-bits. 4590 # 4591 abilist="mode64 mode32 $abilist" 4592 gcc_32_cflags_maybe="-m32" 4593 cclist_mode32="gcc" 4594 gcc_mode32_cflags_maybe="-m32" 4595 gcc_mode32_cflags="-mpowerpc64" 4596 gcc_mode32_cflags_optlist="cpu opt" 4597 gcc_mode32_cflags_opt="-O3 -O2 -O1" 4598 path_mode32="powerpc64/mode32 $vmx_path powerpc64" 4599 limb_mode32=longlong 4600 cclist_mode64="gcc gcc64" 4601 gcc_mode64_cflags_maybe="-m64" 4602 gcc_mode64_cflags_optlist="cpu opt" 4603 gcc_mode64_cflags_opt="-O3 -O2 -O1" 4604 path_mode64="" 4605 for i in $cpu_path; do path_mode64="${path_mode64}powerpc64/mode64/$i "; done 4606 path_mode64="${path_mode64}powerpc64/mode64 $vmx_path powerpc64" 4607 SPEED_CYCLECOUNTER_OBJ_mode64=powerpc64.lo 4608 cyclecounter_size_mode64=0 4609 any_mode64_testlist="sizeof-long-8" 4610 ;; 4611 esac 4612 ;; 4613 esac 4614 ;; 4615 4616 4617 # POWER 32-bit 4618 power-*-* | power[12]-*-* | power2sc-*-*) 4619 $as_echo "#define HAVE_HOST_CPU_FAMILY_power 1" >>confdefs.h 4620 4621 HAVE_HOST_CPU_FAMILY_power=1 4622 cclist="gcc" 4623 extra_functions="udiv_w_sdiv" 4624 path="power" 4625 4626 # gcc 2.7.2 knows rios1, rios2, rsc 4627 # 4628 # -mcpu=rios2 can tickle an AIX assembler bug (see GMP_PROG_CC_WORKS) so 4629 # there needs to be a fallback to just -mpower. 4630 # 4631 gcc_cflags_optlist="cpu" 4632 case $host in 4633 power-*-*) gcc_cflags_cpu="-mcpu=power -mpower" ;; 4634 power1-*-*) gcc_cflags_cpu="-mcpu=rios1 -mpower" ;; 4635 power2-*-*) gcc_cflags_cpu="-mcpu=rios2 -mpower" ;; 4636 power2sc-*-*) gcc_cflags_cpu="-mcpu=rsc -mpower" ;; 4637 esac 4638 case $host in 4639 *-*-aix*) 4640 cclist="gcc xlc" 4641 xlc_cflags="-O2 -qarch=pwr -qmaxmem=20000" 4642 ;; 4643 esac 4644 ;; 4645 4646 4647 pyramid-*-*) 4648 path="pyr" 4649 ;; 4650 4651 4652 # IBM System/390 and z/Architecture 4653 s390-*-* | z900esa-*-* | z990esa-*-* | z9esa-*-* | z10esa-*-* | z196esa-*-* | s390x-*-* | z900-*-* | z990-*-* | z9-*-* | z10-*-* | z196-*-*) 4654 abilist="32" 4655 gcc_cflags="$gcc_cflags $fomit_frame_pointer" 4656 gcc_cflags_optlist="arch" 4657 path="s390_32" 4658 extra_functions="udiv_w_sdiv" 4659 gcc_32_cflags_maybe="-m31" 4660 4661 case $host_cpu in 4662 s390) 4663 ;; 4664 z900 | z900esa) 4665 cpu="z900" 4666 gccarch="$cpu" 4667 path="s390_32/esame/$cpu s390_32/esame s390_32" 4668 gcc_cflags_arch="-march=$gccarch" 4669 cat >>confdefs.h <<_ACEOF 4670#define HAVE_HOST_CPU_s390_$cpu 1 4671_ACEOF 4672 4673 $as_echo "#define HAVE_HOST_CPU_s390_zarch 1" >>confdefs.h 4674 4675 extra_functions="" 4676 ;; 4677 z990 | z990esa) 4678 cpu="z990" 4679 gccarch="$cpu" 4680 path="s390_32/esame/$cpu s390_32/esame s390_32" 4681 gcc_cflags_arch="-march=$gccarch" 4682 cat >>confdefs.h <<_ACEOF 4683#define HAVE_HOST_CPU_s390_$cpu 1 4684_ACEOF 4685 4686 $as_echo "#define HAVE_HOST_CPU_s390_zarch 1" >>confdefs.h 4687 4688 extra_functions="" 4689 ;; 4690 z9 | z9esa) 4691 cpu="z9" 4692 gccarch="z9-109" 4693 path="s390_32/esame/$cpu s390_32/esame s390_32" 4694 gcc_cflags_arch="-march=$gccarch" 4695 cat >>confdefs.h <<_ACEOF 4696#define HAVE_HOST_CPU_s390_$cpu 1 4697_ACEOF 4698 4699 $as_echo "#define HAVE_HOST_CPU_s390_zarch 1" >>confdefs.h 4700 4701 extra_functions="" 4702 ;; 4703 z10 | z10esa) 4704 cpu="z10" 4705 gccarch="z10" 4706 path="s390_32/esame/$cpu s390_32/esame s390_32" 4707 gcc_cflags_arch="-march=$gccarch" 4708 cat >>confdefs.h <<_ACEOF 4709#define HAVE_HOST_CPU_s390_$cpu 1 4710_ACEOF 4711 4712 $as_echo "#define HAVE_HOST_CPU_s390_zarch 1" >>confdefs.h 4713 4714 extra_functions="" 4715 ;; 4716 z196 | z196esa) 4717 cpu="z196" 4718 gccarch="z196" 4719 path="s390_32/esame/$cpu s390_32/esame s390_32" 4720 gcc_cflags_arch="-march=$gccarch" 4721 cat >>confdefs.h <<_ACEOF 4722#define HAVE_HOST_CPU_s390_$cpu 1 4723_ACEOF 4724 4725 $as_echo "#define HAVE_HOST_CPU_s390_zarch 1" >>confdefs.h 4726 4727 extra_functions="" 4728 ;; 4729 esac 4730 4731 case $host in 4732 s390x-*-* | z900-*-* | z990-*-* | z9-*-* | z10-*-* | z196-*-*) 4733 abilist="64 32" 4734 cclist_64="gcc" 4735 gcc_64_cflags_optlist="arch" 4736 gcc_64_cflags="$gcc_cflags -m64" 4737 path_64="s390_64/$host_cpu s390_64" 4738 extra_functions="" 4739 ;; 4740 esac 4741 ;; 4742 4743 4744 sh-*-*) path="sh" ;; 4745 sh[2-4]-*-*) path="sh/sh2 sh" ;; 4746 4747 4748 *sparc*-*-*) 4749 # sizeof(long)==4 or 8 is tested, to ensure we get the right ABI. We've 4750 # had various bug reports where users have set CFLAGS for their desired 4751 # mode, but not set our ABI. For some reason it's sparc where this 4752 # keeps coming up, presumably users there are accustomed to driving the 4753 # compiler mode that way. The effect of our testlist setting is to 4754 # reject ABI=64 in favour of ABI=32 if the user has forced the flags to 4755 # 32-bit mode. 4756 # 4757 abilist="32" 4758 cclist="gcc acc cc" 4759 any_testlist="sizeof-long-4" 4760 4761echo "include_mpn(\`sparc32/sparc-defs.m4')" >> $gmp_tmpconfigm4i 4762 4763 4764 case $host_cpu in 4765 sparcv8 | microsparc | turbosparc) 4766 path="sparc32/v8 sparc32" ;; 4767 supersparc) 4768 path="sparc32/v8/supersparc sparc32/v8 sparc32" ;; 4769 sparc64 | sparcv9* | ultrasparc*) 4770 path="sparc32/v9 sparc32/v8 sparc32" ;; 4771 *) 4772 path="sparc32" ;; 4773 esac 4774 4775 # gcc 2.7.2 doesn't know about v9 and doesn't pass -xarch=v8plus to the 4776 # assembler. Add it explicitly since the solaris assembler won't accept 4777 # our sparc32/v9 asm code without it. gas accepts -xarch=v8plus too, so 4778 # it can be in the cflags unconditionally (though gas doesn't need it). 4779 # 4780 # gcc -m32 is needed to force 32-bit mode on a dual-ABI system, but past 4781 # gcc doesn't know that flag, hence cflags_maybe. Note that -m32 cannot 4782 # be done through the optlist since the plain cflags would be run first 4783 # and we don't want to require the default mode (whatever it is) works. 4784 # 4785 # Note it's gcc_32_cflags_maybe and not gcc_cflags_maybe because the 4786 # latter would be used in the 64-bit ABI on systems like "*bsd" where 4787 # abilist="64" only. 4788 # 4789 case $host_cpu in 4790 sparc64 | sparcv9* | ultrasparc*) 4791 gcc_cflags="$gcc_cflags -Wa,-xarch=v8plus" ;; 4792 *) 4793 gcc_cflags="$gcc_cflags" ;; 4794 esac 4795 gcc_32_cflags_maybe="-m32" 4796 gcc_cflags_optlist="cpu" 4797 4798 # gcc 2.7.2 knows -mcypress, -msupersparc, -mv8, -msparclite. 4799 # gcc 2.95 knows -mcpu= v7, hypersparc, sparclite86x, f930, f934, 4800 # sparclet, tsc701, v9, ultrasparc. A warning is given that the 4801 # plain -m forms will disappear. 4802 # gcc 3.0 adds nothing. 4803 # gcc 3.1 adds nothing. 4804 # gcc 3.2 adds nothing. 4805 # gcc 3.3 adds ultrasparc3. 4806 # 4807 case $host_cpu in 4808 supersparc) gcc_cflags_cpu="-mcpu=supersparc -msupersparc" ;; 4809 sparcv8 | microsparc | turbosparc) 4810 gcc_cflags_cpu="-mcpu=v8 -mv8" ;; 4811 sparc64 | sparcv9*) gcc_cflags_cpu="-mcpu=v9 -mv8" ;; 4812 ultrasparc3) gcc_cflags_cpu="-mcpu=ultrasparc3 -mcpu=ultrasparc -mv8" ;; 4813 ultrasparc*) gcc_cflags_cpu="-mcpu=ultrasparc -mv8" ;; 4814 *) gcc_cflags_cpu="-mcpu=v7 -mcypress" ;; 4815 esac 4816 4817 # SunPRO cc and acc, and SunOS bundled cc 4818 case $host in 4819 *-*-solaris* | *-*-sunos*) 4820 # Note no -g, it disables all optimizations. 4821 cc_cflags= 4822 cc_cflags_optlist="opt arch cpu" 4823 4824 # SunOS cc doesn't know -xO4, fallback to -O2. 4825 cc_cflags_opt="-xO4 -O2" 4826 4827 # SunOS cc doesn't know -xarch, apparently always generating v7 4828 # code, so make this optional 4829 case $host_cpu in 4830 sparcv8 | microsparc | supersparc | turbosparc) 4831 cc_cflags_arch="-xarch=v8" ;; 4832 sparc64 | sparcv9* | ultrasparc*) cc_cflags_arch="-xarch=v8plus" ;; 4833 *) cc_cflags_arch="-xarch=v7" ;; 4834 esac 4835 4836 # SunOS cc doesn't know -xchip and doesn't seem to have an equivalent. 4837 # SunPRO cc 5 recognises -xchip=generic, old, super, super2, micro, 4838 # micro2, hyper, hyper2, powerup, ultra, ultra2, ultra2i. 4839 # SunPRO cc 6 adds -xchip=ultra2e, ultra3cu. 4840 # 4841 # FIXME: Which of ultra, ultra2 or ultra2i is the best fallback for 4842 # ultrasparc3? 4843 # 4844 case $host_cpu in 4845 supersparc) cc_cflags_cpu="-xchip=super" ;; 4846 microsparc) cc_cflags_cpu="-xchip=micro" ;; 4847 turbosparc) cc_cflags_cpu="-xchip=micro2" ;; 4848 ultrasparc) cc_cflags_cpu="-xchip=ultra" ;; 4849 ultrasparc2) cc_cflags_cpu="-xchip=ultra2" ;; 4850 ultrasparc2i) cc_cflags_cpu="-xchip=ultra2i" ;; 4851 ultrasparc3) cc_cflags_cpu="-xchip=ultra3 -xchip=ultra" ;; 4852 *) cc_cflags_cpu="-xchip=generic" ;; 4853 esac 4854 esac 4855 4856 case $host_cpu in 4857 sparc64 | sparcv9* | ultrasparc*) 4858 case $host in 4859 # Solaris 6 and earlier cannot run ABI=64 since it doesn't save 4860 # registers properly, so ABI=32 is left as the only choice. 4861 # 4862 *-*-solaris2.[0-6] | *-*-solaris2.[0-6].*) ;; 4863 4864 # BSD sparc64 ports are 64-bit-only systems, so ABI=64 is the only 4865 # choice. In fact they need no special compiler flags, gcc -m64 4866 # is the default, but it doesn't hurt to add it. v9 CPUs always 4867 # use the sparc64 port, since the plain 32-bit sparc ports don't 4868 # run on a v9. 4869 # 4870 *-*-*bsd*) abilist="64" ;; 4871 4872 # For all other systems, we try both 64 and 32. 4873 # 4874 # GNU/Linux sparc64 has only recently gained a 64-bit user mode. 4875 # In the past sparc64 meant a v9 cpu, but there were no 64-bit 4876 # operations in user mode. We assume that if "gcc -m64" works 4877 # then the system is suitable. Hopefully even if someone attempts 4878 # to put a new gcc and/or glibc on an old system it won't run. 4879 # 4880 *) abilist="64 32" ;; 4881 esac 4882 4883 case $host_cpu in 4884 ultrasparc | ultrasparc2 | ultrasparc2i) 4885 path_64="sparc64/ultrasparc12 sparc64" ;; 4886 ultrasparc[34]) 4887 path_64="sparc64/ultrasparc34 sparc64/ultrasparc1234 sparc64" ;; 4888 ultrasparct[1234]) 4889 path_64="sparc64" ;; 4890 *) 4891 path_64="sparc64" 4892 esac 4893 4894 cclist_64="gcc" 4895 any_64_testlist="sizeof-long-8" 4896 4897 # gcc -mptr64 is probably implied by -m64, but we're not sure if 4898 # this was always so. On Solaris in the past we always used both 4899 # "-m64 -mptr64". 4900 # 4901 # gcc -Wa,-xarch=v9 is thought to be necessary in some cases on 4902 # solaris, but it would seem likely that if gcc is going to generate 4903 # 64-bit code it will have to add that option itself where needed. 4904 # An extra copy of this option should be harmless though, but leave 4905 # it until we're sure. (Might want -xarch=v9a or -xarch=v9b for the 4906 # higher cpu types instead.) 4907 # 4908 gcc_64_cflags="$gcc_64_cflags -m64 -mptr64" 4909 gcc_64_ldflags="-Wc,-m64" 4910 gcc_64_cflags_optlist="cpu" 4911 4912 case $host in 4913 *-*-solaris*) 4914 # Sun cc. 4915 # 4916 # We used to have -fast and some fixup options here, but it 4917 # recurrently caused problems with miscompilation. Of course, 4918 # -fast is documented as miscompiling things for the sake of speed. 4919 # 4920 cclist_64="$cclist_64 cc" 4921 cc_64_cflags="-xO3 -xarch=v9" 4922 cc_64_cflags_optlist="cpu" 4923 ;; 4924 esac 4925 4926 # using the v9 %tick register 4927 SPEED_CYCLECOUNTER_OBJ_32=sparcv9.lo 4928 SPEED_CYCLECOUNTER_OBJ_64=sparcv9.lo 4929 cyclecounter_size_32=2 4930 cyclecounter_size_64=2 4931 ;; 4932 esac 4933 ;; 4934 4935 4936 # VAX 4937 vax*-*-*) 4938 # Currently gcc (version 3.0) on vax always uses a frame pointer 4939 # (config/vax/vax.h FRAME_POINTER_REQUIRED=1), so -fomit-frame-pointer 4940 # will be ignored. 4941 # 4942 gcc_cflags="$gcc_cflags $fomit_frame_pointer" 4943 path="vax" 4944 extra_functions="udiv_w_sdiv" 4945 ;; 4946 4947 4948 # AMD and Intel x86 configurations, including AMD64 4949 # 4950 # Rumour has it gcc -O2 used to give worse register allocation than just 4951 # -O, but lets assume that's no longer true. 4952 # 4953 # -m32 forces 32-bit mode on a bi-arch 32/64 amd64 build of gcc. -m64 is 4954 # the default in such a build (we think), so -m32 is essential for ABI=32. 4955 # This is, of course, done for any $host_cpu, not just x86_64, so we can 4956 # get such a gcc into the right mode to cross-compile to say i486-*-*. 4957 # 4958 # -m32 is not available in gcc 2.95 and earlier, hence cflags_maybe to use 4959 # it when it works. We check sizeof(long)==4 to ensure we get the right 4960 # mode, in case -m32 has failed not because it's an old gcc, but because 4961 # it's a dual 32/64-bit gcc without a 32-bit libc, or whatever. 4962 # 4963 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-* | athlon64-*-* | k8-*-* | k10-*-* | bobcat-*-* | bulldozer-*-* | pentium4-*-* | atom-*-* | core2-*-* | corei*-*-* | x86_64-*-* | nano-*-*) 4964 abilist="32" 4965 cclist="gcc icc cc" 4966 gcc_cflags="$gcc_cflags $fomit_frame_pointer" 4967 gcc_32_cflags_maybe="-m32" 4968 icc_cflags="-no-gcc" 4969 icc_cflags_optlist="opt" 4970 icc_cflags_opt="-O3 -O2 -O1" 4971 any_32_testlist="sizeof-long-4" 4972 CALLING_CONVENTIONS_OBJS='x86call.lo x86check$U.lo' 4973 4974 # Availability of rdtsc is checked at run-time. 4975 SPEED_CYCLECOUNTER_OBJ=pentium.lo 4976 4977 # gcc 2.7.2 only knows i386 and i486, using -m386 or -m486. These 4978 # represent -mcpu= since -m486 doesn't generate 486 specific insns. 4979 # gcc 2.95 adds k6, pentium and pentiumpro, and takes -march= and -mcpu=. 4980 # gcc 3.0 adds athlon. 4981 # gcc 3.1 adds k6-2, k6-3, pentium-mmx, pentium2, pentium3, pentium4, 4982 # athlon-tbird, athlon-4, athlon-xp, athlon-mp. 4983 # gcc 3.2 adds winchip2. 4984 # gcc 3.3 adds winchip-c6. 4985 # gcc 3.3.1 from mandrake adds k8 and knows -mtune. 4986 # gcc 3.4 adds c3, c3-2, k8, and deprecates -mcpu in favour of -mtune. 4987 # 4988 # In gcc 2.95.[0123], -march=pentiumpro provoked a stack slot bug in an 4989 # old version of mpz/powm.c. Seems to be fine with the current code, so 4990 # no need for any restrictions on that option. 4991 # 4992 # -march=pentiumpro can fail if the assembler doesn't know "cmov" 4993 # (eg. solaris 2.8 native "as"), so always have -march=pentium after 4994 # that as a fallback. 4995 # 4996 # -march=pentium4 and -march=k8 enable SSE2 instructions, which may or 4997 # may not be supported by the assembler and/or the OS, and is bad in gcc 4998 # prior to 3.3. The tests will reject these if no good, so fallbacks 4999 # like "-march=pentium4 -mno-sse2" are given to try also without SSE2. 5000 # Note the relevant -march types are listed in the optflags handling 5001 # below, be sure to update there if adding new types emitting SSE2. 5002 # 5003 # -mtune is used at the start of each cpu option list to give something 5004 # gcc 3.4 will use, thereby avoiding warnings from -mcpu. -mcpu forms 5005 # are retained for use by prior gcc. For example pentium has 5006 # "-mtune=pentium -mcpu=pentium ...", the -mtune is for 3.4 and the 5007 # -mcpu for prior. If there's a brand new choice in 3.4 for a chip, 5008 # like k8 for x86_64, then it can be the -mtune at the start, no need to 5009 # duplicate anything. 5010 # 5011 gcc_cflags_optlist="cpu arch" 5012 case $host_cpu in 5013 i386*) 5014 gcc_cflags_cpu="-mtune=i386 -mcpu=i386 -m386" 5015 gcc_cflags_arch="-march=i386" 5016 path="x86" 5017 ;; 5018 i486*) 5019 gcc_cflags_cpu="-mtune=i486 -mcpu=i486 -m486" 5020 gcc_cflags_arch="-march=i486" 5021 path="x86/i486 x86" 5022 ;; 5023 i586 | pentium) 5024 gcc_cflags_cpu="-mtune=pentium -mcpu=pentium -m486" 5025 gcc_cflags_arch="-march=pentium" 5026 path="x86/pentium x86" 5027 ;; 5028 pentiummmx) 5029 gcc_cflags_cpu="-mtune=pentium-mmx -mcpu=pentium-mmx -mcpu=pentium -m486" 5030 gcc_cflags_arch="-march=pentium-mmx -march=pentium" 5031 path="x86/pentium/mmx x86/pentium x86" 5032 ;; 5033 i686 | pentiumpro) 5034 gcc_cflags_cpu="-mtune=pentiumpro -mcpu=pentiumpro -mcpu=i486 -m486" 5035 gcc_cflags_arch="-march=pentiumpro -march=pentium" 5036 path="x86/p6 x86" 5037 ;; 5038 pentium2) 5039 gcc_cflags_cpu="-mtune=pentium2 -mcpu=pentium2 -mcpu=pentiumpro -mcpu=i486 -m486" 5040 gcc_cflags_arch="-march=pentium2 -march=pentiumpro -march=pentium" 5041 path="x86/p6/mmx x86/p6 x86" 5042 ;; 5043 pentium3) 5044 gcc_cflags_cpu="-mtune=pentium3 -mcpu=pentium3 -mcpu=pentiumpro -mcpu=i486 -m486" 5045 gcc_cflags_arch="-march=pentium3 -march=pentiumpro -march=pentium" 5046 path="x86/p6/p3mmx x86/p6/mmx x86/p6 x86" 5047 ;; 5048 pentiumm) 5049 gcc_cflags_cpu="-mtune=pentium3 -mcpu=pentium3 -mcpu=pentiumpro -mcpu=i486 -m486" 5050 gcc_cflags_arch="-march=pentium3 -march=pentiumpro -march=pentium" 5051 path="x86/p6/sse2 x86/p6/p3mmx x86/p6/mmx x86/p6 x86" 5052 ;; 5053 k6) 5054 gcc_cflags_cpu="-mtune=k6 -mcpu=k6 -mcpu=i486 -m486" 5055 gcc_cflags_arch="-march=k6" 5056 path="x86/k6/mmx x86/k6 x86" 5057 ;; 5058 k62) 5059 gcc_cflags_cpu="-mtune=k6-2 -mcpu=k6-2 -mcpu=k6 -mcpu=i486 -m486" 5060 gcc_cflags_arch="-march=k6-2 -march=k6" 5061 path="x86/k6/k62mmx x86/k6/mmx x86/k6 x86" 5062 ;; 5063 k63) 5064 gcc_cflags_cpu="-mtune=k6-3 -mcpu=k6-3 -mcpu=k6 -mcpu=i486 -m486" 5065 gcc_cflags_arch="-march=k6-3 -march=k6" 5066 path="x86/k6/k62mmx x86/k6/mmx x86/k6 x86" 5067 ;; 5068 geode) 5069 gcc_cflags_cpu="-mtune=k6-3 -mcpu=k6-3 -mcpu=k6 -mcpu=i486 -m486" 5070 gcc_cflags_arch="-march=k6-3 -march=k6" 5071 path="x86/geode x86/k6/k62mmx x86/k6/mmx x86/k6 x86" 5072 ;; 5073 athlon) 5074 # Athlon instruction costs are close to P6 (3 cycle load latency, 5075 # 4-6 cycle mul, 40 cycle div, pairable adc, etc) so if gcc doesn't 5076 # know athlon (eg. 2.95.2 doesn't) then fall back on pentiumpro. 5077 gcc_cflags_cpu="-mtune=athlon -mcpu=athlon -mcpu=pentiumpro -mcpu=i486 -m486" 5078 gcc_cflags_arch="-march=athlon -march=pentiumpro -march=pentium" 5079 path="x86/k7/mmx x86/k7 x86" 5080 ;; 5081 i786 | pentium4) 5082 # pentiumpro is the primary fallback when gcc doesn't know pentium4. 5083 # This gets us cmov to eliminate branches. Maybe "athlon" would be 5084 # a possibility on gcc 3.0. 5085 # 5086 gcc_cflags_cpu="-mtune=pentium4 -mcpu=pentium4 -mcpu=pentiumpro -mcpu=i486 -m486" 5087 gcc_cflags_arch="-march=pentium4 -march=pentium4~-mno-sse2 -march=pentiumpro -march=pentium" 5088 gcc_64_cflags_cpu="-mtune=nocona" 5089 path="x86/pentium4/sse2 x86/pentium4/mmx x86/pentium4 x86" 5090 path_64="x86_64/pentium4 x86_64" 5091 ;; 5092 viac32) 5093 # Not sure of the best fallbacks here for -mcpu. 5094 # c3-2 has sse and mmx, so pentium3 is good for -march. 5095 gcc_cflags_cpu="-mtune=c3-2 -mcpu=c3-2 -mcpu=i486 -m486" 5096 gcc_cflags_arch="-march=c3-2 -march=pentium3 -march=pentiumpro -march=pentium" 5097 path="x86/p6/p3mmx x86/p6/mmx x86/p6 x86" 5098 ;; 5099 viac3*) 5100 # Not sure of the best fallbacks here. 5101 gcc_cflags_cpu="-mtune=c3 -mcpu=c3 -mcpu=i486 -m486" 5102 gcc_cflags_arch="-march=c3 -march=pentium-mmx -march=pentium" 5103 path="x86/pentium/mmx x86/pentium x86" 5104 ;; 5105 athlon64 | k8 | x86_64) 5106 gcc_cflags_cpu="-mtune=k8 -mcpu=athlon -mcpu=pentiumpro -mcpu=i486 -m486" 5107 gcc_cflags_arch="-march=k8 -march=k8~-mno-sse2 -march=athlon -march=pentiumpro -march=pentium" 5108 path="x86/k8 x86/k7/mmx x86/k7 x86" 5109 path_64="x86_64/k8 x86_64" 5110 ;; 5111 k10) 5112 gcc_cflags_cpu="-mtune=amdfam10 -mtune=k8" 5113 gcc_cflags_arch="-march=amdfam10 -march=k8 -march=k8~-mno-sse2" 5114 path="x86/k10 x86/k8 x86/k7/mmx x86/k7 x86" 5115 path_64="x86_64/k10 x86_64/k8 x86_64" 5116 ;; 5117 bobcat) 5118 gcc_cflags_cpu="-mtune=btver1 -mtune=amdfam10 -mtune=k8" 5119 gcc_cflags_arch="-march=btver1 -march=amdfam10 -march=k8 -march=k8~-mno-sse2" 5120 path="x86/bobcat x86/k7/mmx x86/k7 x86" 5121 path_64="x86_64/bobcat x86_64/k10 x86_64/k8 x86_64" 5122 ;; 5123 bulldozer | bd1) 5124 gcc_cflags_cpu="-mtune=bdver1 -mtune=amdfam10 -mtune=k8" 5125 gcc_cflags_arch="-march=bdver1 -march=amdfam10 -march=k8 -march=k8~-mno-sse2" 5126 path="x86/bd1 x86/k7/mmx x86/k7 x86" 5127 path_64="x86_64/bd1 x86_64" 5128 ;; 5129 core2) 5130 gcc_cflags_cpu="-mtune=core2 -mtune=k8" 5131 gcc_cflags_arch="-march=core2 -march=core2~-mno-sse2 -march=k8 -march=k8~-mno-sse2" 5132 path="x86/core2 x86/p6/sse2 x86/p6/p3mmx x86/p6/mmx x86/p6 x86" 5133 path_64="x86_64/core2 x86_64" 5134 ;; 5135 corei | coreinhm | coreiwsm) 5136 gcc_cflags_cpu="-mtune=corei7 -mtune=core2 -mtune=k8" 5137 gcc_cflags_arch="-march=corei7 -march=core2 -march=core2~-mno-sse2 -march=k8 -march=k8~-mno-sse2" 5138 path="x86/coreinhm x86/p6/sse2 x86/p6/p3mmx x86/p6/mmx x86/p6 x86" 5139 path_64="x86_64/coreinhm x86_64/core2 x86_64" 5140 ;; 5141 coreisbr) 5142 gcc_cflags_cpu="-mtune=corei7 -mtune=core2 -mtune=k8" 5143 gcc_cflags_arch="-march=corei7 -march=core2 -march=core2~-mno-sse2 -march=k8 -march=k8~-mno-sse2" 5144 path="x86/coreisbr x86/p6/sse2 x86/p6/p3mmx x86/p6/mmx x86/p6 x86" 5145 path_64="x86_64/coreisbr x86_64/coreinhm x86_64/core2 x86_64" 5146 ;; 5147 atom) 5148 gcc_cflags_cpu="-mtune=atom -mtune=pentium3" 5149 gcc_cflags_arch="-march=atom -march=pentium3" 5150 path="x86/atom/sse2 x86/atom/mmx x86/atom x86" 5151 path_64="x86_64/atom x86_64" 5152 ;; 5153 nano) 5154 gcc_cflags_cpu="-mtune=nano" 5155 gcc_cflags_arch="-march=nano" 5156 path="x86/nano x86" 5157 path_64="x86_64/nano x86_64" 5158 ;; 5159 *) 5160 gcc_cflags_cpu="-mtune=i486 -mcpu=i486 -m486" 5161 gcc_cflags_arch="-march=i486" 5162 path="x86" 5163 path_64="x86_64" 5164 ;; 5165 esac 5166 5167 case $host in 5168 athlon64-*-* | k8-*-* | k10-*-* | bobcat-*-* | bulldozer-*-* | pentium4-*-* | atom-*-* | core2-*-* | corei*-*-* | x86_64-*-* | nano-*-*) 5169 cclist_64="gcc" 5170 gcc_64_cflags="$gcc_64_cflags -m64" 5171 gcc_64_cflags_optlist="cpu arch" 5172 CALLING_CONVENTIONS_OBJS_64='amd64call.lo amd64check$U.lo' 5173 SPEED_CYCLECOUNTER_OBJ_64=x86_64.lo 5174 cyclecounter_size_64=2 5175 abilist="64 32" 5176 5177 case $host in 5178 *-*-solaris*) 5179 # Sun cc. 5180 cclist_64="$cclist_64 cc" 5181 cc_64_cflags="-xO3 -m64" 5182 ;; 5183 *-*-mingw* | *-*-cygwin) 5184 limb_64=longlong 5185 path_64="" # Windows amd64 calling conventions are *different* 5186 # Silence many pedantic warnings for w64. FIXME. 5187 gcc_64_cflags="$gcc_64_cflags -std=gnu99" 5188 ;; 5189 esac 5190 ;; 5191 esac 5192 ;; 5193 5194 5195 # FIXME: z8kx won't get through config.sub. Could make 16 versus 32 bit 5196 # limb an ABI option perhaps. 5197 z8kx*-*-*) 5198 path="z8000x" 5199 extra_functions="udiv_w_sdiv" 5200 ;; 5201 z8k*-*-*) 5202 path="z8000" 5203 extra_functions="udiv_w_sdiv" 5204 ;; 5205 5206 5207 # Special CPU "none" selects generic C. -DNO_ASM is used to disable gcc 5208 # asm blocks in longlong.h (since they're driven by cpp pre-defined 5209 # symbols like __alpha rather than the configured $host_cpu). 5210 # 5211 none-*-*) 5212 abilist="long longlong" 5213 cclist_long=$cclist 5214 gcc_long_cflags=$gcc_cflags 5215 gcc_long_cppflags="-DNO_ASM" 5216 cc_long_cflags=$cc_cflags 5217 cclist_longlong=$cclist 5218 gcc_longlong_cflags=$gcc_cflags 5219 gcc_longlong_cppflags="-DNO_ASM" 5220 cc_longlong_cflags=$cc_cflags 5221 limb_longlong=longlong 5222 ;; 5223 5224esac 5225 5226# mingw can be built by the cygwin gcc if -mno-cygwin is added. For 5227# convenience add this automatically if it works. Actual mingw gcc accepts 5228# -mno-cygwin too, but of course is the default. mingw only runs on the 5229# x86s, but allow any CPU here so as to catch "none" too. 5230# 5231case $host in 5232 *-*-mingw*) 5233 gcc_cflags_optlist="$gcc_cflags_optlist nocygwin" 5234 gcc_cflags_nocygwin="-mno-cygwin" 5235 ;; 5236esac 5237 5238 5239CFLAGS_or_unset=${CFLAGS-'(unset)'} 5240CPPFLAGS_or_unset=${CPPFLAGS-'(unset)'} 5241 5242cat >&5 <<EOF 5243User: 5244ABI=$ABI 5245CC=$CC 5246CFLAGS=$CFLAGS_or_unset 5247CPPFLAGS=$CPPFLAGS_or_unset 5248MPN_PATH=$MPN_PATH 5249GMP: 5250abilist=$abilist 5251cclist=$cclist 5252EOF 5253 5254 5255test_CFLAGS=${CFLAGS+set} 5256test_CPPFLAGS=${CPPFLAGS+set} 5257 5258for abi in $abilist; do 5259 abi_last="$abi" 5260done 5261 5262# If the user specifies an ABI then it must be in $abilist, after that 5263# $abilist is restricted to just that choice. 5264# 5265if test -n "$ABI"; then 5266 found=no 5267 for abi in $abilist; do 5268 if test $abi = "$ABI"; then found=yes; break; fi 5269 done 5270 if test $found = no; then 5271 as_fn_error "ABI=$ABI is not among the following valid choices: $abilist" "$LINENO" 5 5272 fi 5273 abilist="$ABI" 5274fi 5275 5276found_compiler=no 5277 5278for abi in $abilist; do 5279 5280 echo "checking ABI=$abi" 5281 5282 # Suppose abilist="64 32", then for abi=64, will have abi1="_64" and 5283 # abi2="_64". For abi=32, will have abi1="_32" and abi2="". This is how 5284 # $gcc_cflags becomes a fallback for $gcc_32_cflags (the last in the 5285 # abilist), but there's no fallback for $gcc_64_cflags. 5286 # 5287 abi1=`echo _$abi | sed 's/[.]//g'` 5288 if test $abi = $abi_last; then abi2=; else abi2="$abi1"; fi 5289 5290 # Compiler choices under this ABI 5291 eval cclist_chosen=\"\$cclist$abi1\" 5292 test -n "$cclist_chosen" || eval cclist_chosen=\"\$cclist$abi2\" 5293 5294 # If there's a user specified $CC then don't use a list for 5295 # $cclist_chosen, just a single value for $ccbase. 5296 # 5297 if test -n "$CC"; then 5298 5299 # The first word of $CC, stripped of any directory. For instance 5300 # CC="/usr/local/bin/gcc -pipe" will give "gcc". 5301 # 5302 for ccbase in $CC; do break; done 5303 ccbase=`echo $ccbase | sed 's:.*/::'` 5304 5305 # If this $ccbase is in $cclist_chosen then it's a compiler we know and 5306 # we can do flags defaulting with it. If not, then $cclist_chosen is 5307 # set to "unrecognised" so no default flags are used. 5308 # 5309 # "unrecognised" is used to avoid bad effects with eval if $ccbase has 5310 # non-symbol characters. For instance ccbase=my+cc would end up with 5311 # something like cflags="$my+cc_cflags" which would give 5312 # cflags="+cc_cflags" rather than the intended empty string for an 5313 # unknown compiler. 5314 # 5315 found=unrecognised 5316 for i in $cclist_chosen; do 5317 if test "$ccbase" = $i; then 5318 found=$ccbase 5319 break 5320 fi 5321 done 5322 cclist_chosen=$found 5323 fi 5324 5325 for ccbase in $cclist_chosen; do 5326 5327 # When cross compiling, look for a compiler with the $host_alias as a 5328 # prefix, the same way that AC_CHECK_TOOL does. But don't do this to a 5329 # user-selected $CC. 5330 # 5331 # $cross_compiling will be yes/no/maybe at this point. Do the host 5332 # prefixing for "maybe" as well as "yes". 5333 # 5334 if test "$cross_compiling" != no && test -z "$CC"; then 5335 cross_compiling_prefix="${host_alias}-" 5336 fi 5337 5338 for ccprefix in $cross_compiling_prefix ""; do 5339 5340 cc="$CC" 5341 test -n "$cc" || cc="$ccprefix$ccbase" 5342 5343 # If the compiler is gcc but installed under another name, then change 5344 # $ccbase so as to use the flags we know for gcc. This helps for 5345 # instance when specifying CC=gcc272 on Debian GNU/Linux, or the 5346 # native cc which is really gcc on NeXT or MacOS-X. 5347 # 5348 # FIXME: There's a slight misfeature here. If cc is actually gcc but 5349 # gcc is not a known compiler under this $abi then we'll end up 5350 # testing it with no flags and it'll work, but chances are it won't be 5351 # in the right mode for the ABI we desire. Let's quietly hope this 5352 # doesn't happen. 5353 # 5354 if test $ccbase != gcc; then 5355 cat >conftest.c <<EOF 5356#if ! defined (__GNUC__) || defined (__INTEL_COMPILER) 5357 choke me 5358#endif 5359EOF 5360gmp_compile="$cc -c conftest.c >&5" 5361if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 5362 (eval $gmp_compile) 2>&5 5363 ac_status=$? 5364 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5365 test $ac_status = 0; }; then 5366 rm -f conftest* 5367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $cc is gcc" >&5 5368$as_echo_n "checking whether $cc is gcc... " >&6; } 5369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5370$as_echo "yes" >&6; } 5371 ccbase=gcc 5372else 5373 rm -f conftest* 5374 : 5375fi 5376 5377 fi 5378 5379 # Similarly if the compiler is IBM xlc but invoked as cc or whatever 5380 # then change $ccbase and make the default xlc flags available. 5381 if test $ccbase != xlc; then 5382 gmp_command="$cc 2>&1 | grep xlc >/dev/null" 5383if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_command\""; } >&5 5384 (eval $gmp_command) 2>&5 5385 ac_status=$? 5386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5387 test $ac_status = 0; }; then 5388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $cc is xlc" >&5 5389$as_echo_n "checking whether $cc is xlc... " >&6; } 5390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5391$as_echo "yes" >&6; } 5392 ccbase=xlc 5393else 5394 : 5395fi 5396 5397 fi 5398 5399 # acc was Sun's first unbundled compiler back in the SunOS days, or 5400 # something like that, but today its man page says it's not meant to 5401 # be used directly (instead via /usr/ucb/cc). The options are pretty 5402 # much the same as the main SunPRO cc, so share those configs. 5403 # 5404 case $host in 5405 *sparc*-*-solaris* | *sparc*-*-sunos*) 5406 if test "$ccbase" = acc; then ccbase=cc; fi ;; 5407 esac 5408 5409 for tmp_cflags_maybe in yes no; do 5410 eval cflags=\"\$${ccbase}${abi1}_cflags\" 5411 test -n "$cflags" || eval cflags=\"\$${ccbase}${abi2}_cflags\" 5412 5413 if test "$tmp_cflags_maybe" = yes; then 5414 # don't try cflags_maybe when the user set CFLAGS 5415 if test "$test_CFLAGS" = set; then continue; fi 5416 eval cflags_maybe=\"\$${ccbase}${abi1}_cflags_maybe\" 5417 test -n "$cflags_maybe" || eval cflags_maybe=\"\$${ccbase}${abi2}_cflags_maybe\" 5418 # don't try cflags_maybe if there's nothing set 5419 if test -z "$cflags_maybe"; then continue; fi 5420 cflags="$cflags_maybe $cflags" 5421 fi 5422 5423 # Any user CFLAGS, even an empty string, takes precedence 5424 if test "$test_CFLAGS" = set; then cflags=$CFLAGS; fi 5425 5426 # Any user CPPFLAGS, even an empty string, takes precedence 5427 eval cppflags=\"\$${ccbase}${abi1}_cppflags\" 5428 test -n "$cppflags" || eval cppflags=\"\$${ccbase}${abi2}_cppflags\" 5429 if test "$test_CPPFLAGS" = set; then cppflags=$CPPFLAGS; fi 5430 5431 # --enable-profiling adds -p/-pg even to user-specified CFLAGS. 5432 # This is convenient, but it's perhaps a bit naughty to modify user 5433 # CFLAGS. 5434 case "$enable_profiling" in 5435 prof) cflags="$cflags -p" ;; 5436 gprof) cflags="$cflags -pg" ;; 5437 instrument) cflags="$cflags -finstrument-functions" ;; 5438 esac 5439 5440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler $cc $cflags $cppflags" >&5 5441$as_echo_n "checking compiler $cc $cflags $cppflags... " >&6; } 5442gmp_prog_cc_works=yes 5443 5444# first see a simple "main()" works, then go on to other checks 5445if test "$gmp_prog_cc_works" = yes; then 5446 # remove anything that might look like compiler output to our "||" expression 5447 rm -f conftest* a.out b.out a.exe a_out.exe 5448 cat >conftest.c <<EOF 5449 5450int main () { return 0; } 5451EOF 5452 echo "Test compile: " >&5 5453 gmp_compile="$cc $cflags $cppflags conftest.c >&5" 5454 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 5455 (eval $gmp_compile) 2>&5 5456 ac_status=$? 5457 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5458 test $ac_status = 0; }; then 5459 cc_works_part=yes 5460 if test "$cross_compiling" = no; then 5461 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' 5462 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 5463 (eval $ac_try) 2>&5 5464 ac_status=$? 5465 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5466 test $ac_status = 0; }; }; then :; 5467 else 5468 cc_works_part=norun 5469 fi 5470 fi 5471 else 5472 cc_works_part=no 5473 fi 5474 if test "$cc_works_part" != yes; then 5475 echo "failed program was:" >&5 5476 cat conftest.c >&5 5477 fi 5478 rm -f conftest* a.out b.out a.exe a_out.exe 5479 case $cc_works_part in 5480 yes) 5481 5482 ;; 5483 no) 5484 gmp_prog_cc_works="no" 5485 ;; 5486 norun) 5487 gmp_prog_cc_works="no, program does not run" 5488 ;; 5489 esac 5490fi 5491 5492 5493 5494 5495if test "$gmp_prog_cc_works" = yes; then 5496 # remove anything that might look like compiler output to our "||" expression 5497 rm -f conftest* a.out b.out a.exe a_out.exe 5498 cat >conftest.c <<EOF 5499/* The following provokes an internal error from gcc 2.95.2 -mpowerpc64 5500 (without -maix64), hence detecting an unusable compiler */ 5501void *g() { return (void *) 0; } 5502void *f() { return g(); } 5503 5504int main () { return 0; } 5505EOF 5506 echo "Test compile: function pointer return" >&5 5507 gmp_compile="$cc $cflags $cppflags conftest.c >&5" 5508 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 5509 (eval $gmp_compile) 2>&5 5510 ac_status=$? 5511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5512 test $ac_status = 0; }; then 5513 cc_works_part=yes 5514 if test "$cross_compiling" = no; then 5515 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' 5516 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 5517 (eval $ac_try) 2>&5 5518 ac_status=$? 5519 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5520 test $ac_status = 0; }; }; then :; 5521 else 5522 cc_works_part=norun 5523 fi 5524 fi 5525 else 5526 cc_works_part=no 5527 fi 5528 if test "$cc_works_part" != yes; then 5529 echo "failed program was:" >&5 5530 cat conftest.c >&5 5531 fi 5532 rm -f conftest* a.out b.out a.exe a_out.exe 5533 case $cc_works_part in 5534 yes) 5535 5536 ;; 5537 no) 5538 gmp_prog_cc_works="no, function pointer return" 5539 ;; 5540 norun) 5541 gmp_prog_cc_works="no, function pointer return, program does not run" 5542 ;; 5543 esac 5544fi 5545 5546 5547 5548 5549if test "$gmp_prog_cc_works" = yes; then 5550 # remove anything that might look like compiler output to our "||" expression 5551 rm -f conftest* a.out b.out a.exe a_out.exe 5552 cat >conftest.c <<EOF 5553/* The following provokes an invalid instruction syntax from i386 gcc 5554 -march=pentiumpro on Solaris 2.8. The native sun assembler 5555 requires a non-standard syntax for cmov which gcc (as of 2.95.2 at 5556 least) doesn't know. */ 5557int n; 5558int cmov () { return (n >= 0 ? n : 0); } 5559 5560int main () { return 0; } 5561EOF 5562 echo "Test compile: cmov instruction" >&5 5563 gmp_compile="$cc $cflags $cppflags conftest.c >&5" 5564 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 5565 (eval $gmp_compile) 2>&5 5566 ac_status=$? 5567 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5568 test $ac_status = 0; }; then 5569 cc_works_part=yes 5570 if test "$cross_compiling" = no; then 5571 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' 5572 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 5573 (eval $ac_try) 2>&5 5574 ac_status=$? 5575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5576 test $ac_status = 0; }; }; then :; 5577 else 5578 cc_works_part=norun 5579 fi 5580 fi 5581 else 5582 cc_works_part=no 5583 fi 5584 if test "$cc_works_part" != yes; then 5585 echo "failed program was:" >&5 5586 cat conftest.c >&5 5587 fi 5588 rm -f conftest* a.out b.out a.exe a_out.exe 5589 case $cc_works_part in 5590 yes) 5591 5592 ;; 5593 no) 5594 gmp_prog_cc_works="no, cmov instruction" 5595 ;; 5596 norun) 5597 gmp_prog_cc_works="no, cmov instruction, program does not run" 5598 ;; 5599 esac 5600fi 5601 5602 5603 5604 5605if test "$gmp_prog_cc_works" = yes; then 5606 # remove anything that might look like compiler output to our "||" expression 5607 rm -f conftest* a.out b.out a.exe a_out.exe 5608 cat >conftest.c <<EOF 5609/* The following provokes a linker invocation problem with gcc 3.0.3 5610 on AIX 4.3 under "-maix64 -mpowerpc64 -mcpu=630". The -mcpu=630 5611 option causes gcc to incorrectly select the 32-bit libgcc.a, not 5612 the 64-bit one, and consequently it misses out on the __fixunsdfdi 5613 helper (double -> uint64 conversion). */ 5614double d; 5615unsigned long gcc303 () { return (unsigned long) d; } 5616 5617int main () { return 0; } 5618EOF 5619 echo "Test compile: double -> ulong conversion" >&5 5620 gmp_compile="$cc $cflags $cppflags conftest.c >&5" 5621 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 5622 (eval $gmp_compile) 2>&5 5623 ac_status=$? 5624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5625 test $ac_status = 0; }; then 5626 cc_works_part=yes 5627 if test "$cross_compiling" = no; then 5628 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' 5629 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 5630 (eval $ac_try) 2>&5 5631 ac_status=$? 5632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5633 test $ac_status = 0; }; }; then :; 5634 else 5635 cc_works_part=norun 5636 fi 5637 fi 5638 else 5639 cc_works_part=no 5640 fi 5641 if test "$cc_works_part" != yes; then 5642 echo "failed program was:" >&5 5643 cat conftest.c >&5 5644 fi 5645 rm -f conftest* a.out b.out a.exe a_out.exe 5646 case $cc_works_part in 5647 yes) 5648 5649 ;; 5650 no) 5651 gmp_prog_cc_works="no, double -> ulong conversion" 5652 ;; 5653 norun) 5654 gmp_prog_cc_works="no, double -> ulong conversion, program does not run" 5655 ;; 5656 esac 5657fi 5658 5659 5660 5661 5662if test "$gmp_prog_cc_works" = yes; then 5663 # remove anything that might look like compiler output to our "||" expression 5664 rm -f conftest* a.out b.out a.exe a_out.exe 5665 cat >conftest.c <<EOF 5666/* The following provokes an error from hppa gcc 2.95 under -mpa-risc-2-0 if 5667 the assembler doesn't know hppa 2.0 instructions. fneg is a 2.0 5668 instruction, and a negation like this comes out using it. */ 5669double fneg_data; 5670unsigned long fneg () { return -fneg_data; } 5671 5672int main () { return 0; } 5673EOF 5674 echo "Test compile: double negation" >&5 5675 gmp_compile="$cc $cflags $cppflags conftest.c >&5" 5676 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 5677 (eval $gmp_compile) 2>&5 5678 ac_status=$? 5679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5680 test $ac_status = 0; }; then 5681 cc_works_part=yes 5682 if test "$cross_compiling" = no; then 5683 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' 5684 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 5685 (eval $ac_try) 2>&5 5686 ac_status=$? 5687 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5688 test $ac_status = 0; }; }; then :; 5689 else 5690 cc_works_part=norun 5691 fi 5692 fi 5693 else 5694 cc_works_part=no 5695 fi 5696 if test "$cc_works_part" != yes; then 5697 echo "failed program was:" >&5 5698 cat conftest.c >&5 5699 fi 5700 rm -f conftest* a.out b.out a.exe a_out.exe 5701 case $cc_works_part in 5702 yes) 5703 5704 ;; 5705 no) 5706 gmp_prog_cc_works="no, double negation" 5707 ;; 5708 norun) 5709 gmp_prog_cc_works="no, double negation, program does not run" 5710 ;; 5711 esac 5712fi 5713 5714 5715 5716 5717if test "$gmp_prog_cc_works" = yes; then 5718 # remove anything that might look like compiler output to our "||" expression 5719 rm -f conftest* a.out b.out a.exe a_out.exe 5720 cat >conftest.c <<EOF 5721/* The following makes gcc 3.3 -march=pentium4 generate an SSE2 xmm insn 5722 (cvtsd2ss) which will provoke an error if the assembler doesn't recognise 5723 those instructions. Not sure how much of the gmp code will come out 5724 wanting sse2, but it's easiest to reject an option we know is bad. */ 5725double ftod_data; 5726float ftod () { return (float) ftod_data; } 5727 5728int main () { return 0; } 5729EOF 5730 echo "Test compile: double -> float conversion" >&5 5731 gmp_compile="$cc $cflags $cppflags conftest.c >&5" 5732 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 5733 (eval $gmp_compile) 2>&5 5734 ac_status=$? 5735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5736 test $ac_status = 0; }; then 5737 cc_works_part=yes 5738 if test "$cross_compiling" = no; then 5739 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' 5740 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 5741 (eval $ac_try) 2>&5 5742 ac_status=$? 5743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5744 test $ac_status = 0; }; }; then :; 5745 else 5746 cc_works_part=norun 5747 fi 5748 fi 5749 else 5750 cc_works_part=no 5751 fi 5752 if test "$cc_works_part" != yes; then 5753 echo "failed program was:" >&5 5754 cat conftest.c >&5 5755 fi 5756 rm -f conftest* a.out b.out a.exe a_out.exe 5757 case $cc_works_part in 5758 yes) 5759 5760 ;; 5761 no) 5762 gmp_prog_cc_works="no, double -> float conversion" 5763 ;; 5764 norun) 5765 gmp_prog_cc_works="no, double -> float conversion, program does not run" 5766 ;; 5767 esac 5768fi 5769 5770 5771 5772 5773if test "$gmp_prog_cc_works" = yes; then 5774 # remove anything that might look like compiler output to our "||" expression 5775 rm -f conftest* a.out b.out a.exe a_out.exe 5776 cat >conftest.c <<EOF 5777/* The following provokes an internal compiler error from gcc version 5778 "2.9-gnupro-99r1" under "-O2 -mcpu=ev6", apparently relating to char 5779 values being spilled into floating point registers. The problem doesn't 5780 show up all the time, but has occurred enough in GMP for us to reject 5781 this compiler+flags. */ 5782#include <string.h> /* for memcpy */ 5783struct try_t 5784{ 5785 char dst[2]; 5786 char size; 5787 long d0, d1, d2, d3, d4, d5, d6; 5788 char overlap; 5789}; 5790struct try_t param[6]; 5791int 5792param_init () 5793{ 5794 struct try_t *p; 5795 memcpy (p, ¶m[ 2 ], sizeof (*p)); 5796 memcpy (p, ¶m[ 2 ], sizeof (*p)); 5797 p->size = 2; 5798 memcpy (p, ¶m[ 1 ], sizeof (*p)); 5799 p->dst[0] = 1; 5800 p->overlap = 2; 5801 memcpy (p, ¶m[ 3 ], sizeof (*p)); 5802 p->dst[0] = 1; 5803 p->overlap = 8; 5804 memcpy (p, ¶m[ 4 ], sizeof (*p)); 5805 memcpy (p, ¶m[ 4 ], sizeof (*p)); 5806 p->overlap = 8; 5807 memcpy (p, ¶m[ 5 ], sizeof (*p)); 5808 memcpy (p, ¶m[ 5 ], sizeof (*p)); 5809 memcpy (p, ¶m[ 5 ], sizeof (*p)); 5810 return 0; 5811} 5812 5813int main () { return 0; } 5814EOF 5815 echo "Test compile: gnupro alpha ev6 char spilling" >&5 5816 gmp_compile="$cc $cflags $cppflags conftest.c >&5" 5817 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 5818 (eval $gmp_compile) 2>&5 5819 ac_status=$? 5820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5821 test $ac_status = 0; }; then 5822 cc_works_part=yes 5823 if test "$cross_compiling" = no; then 5824 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' 5825 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 5826 (eval $ac_try) 2>&5 5827 ac_status=$? 5828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5829 test $ac_status = 0; }; }; then :; 5830 else 5831 cc_works_part=norun 5832 fi 5833 fi 5834 else 5835 cc_works_part=no 5836 fi 5837 if test "$cc_works_part" != yes; then 5838 echo "failed program was:" >&5 5839 cat conftest.c >&5 5840 fi 5841 rm -f conftest* a.out b.out a.exe a_out.exe 5842 case $cc_works_part in 5843 yes) 5844 5845 ;; 5846 no) 5847 gmp_prog_cc_works="no, gnupro alpha ev6 char spilling" 5848 ;; 5849 norun) 5850 gmp_prog_cc_works="no, gnupro alpha ev6 char spilling, program does not run" 5851 ;; 5852 esac 5853fi 5854 5855 5856 5857 5858# __builtin_alloca is not available everywhere, check it exists before 5859# seeing that it works 5860if test "$gmp_prog_cc_works" = yes; then 5861 # remove anything that might look like compiler output to our "||" expression 5862 rm -f conftest* a.out b.out a.exe a_out.exe 5863 cat >conftest.c <<EOF 5864int k; int foo () { __builtin_alloca (k); } 5865EOF 5866 echo "Test compile: __builtin_alloca availability" >&5 5867 gmp_compile="$cc $cflags $cppflags conftest.c >&5" 5868 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 5869 (eval $gmp_compile) 2>&5 5870 ac_status=$? 5871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5872 test $ac_status = 0; }; then 5873 cc_works_part=yes 5874 if test "$cross_compiling" = no; then 5875 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' 5876 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 5877 (eval $ac_try) 2>&5 5878 ac_status=$? 5879 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5880 test $ac_status = 0; }; }; then :; 5881 else 5882 cc_works_part=norun 5883 fi 5884 fi 5885 else 5886 cc_works_part=no 5887 fi 5888 if test "$cc_works_part" != yes; then 5889 echo "failed program was:" >&5 5890 cat conftest.c >&5 5891 fi 5892 rm -f conftest* a.out b.out a.exe a_out.exe 5893 case $cc_works_part in 5894 yes) 5895 if test "$gmp_prog_cc_works" = yes; then 5896 # remove anything that might look like compiler output to our "||" expression 5897 rm -f conftest* a.out b.out a.exe a_out.exe 5898 cat >conftest.c <<EOF 5899/* The following provokes an internal compiler error from Itanium HP-UX cc 5900 under +O2 or higher. We use this sort of code in mpn/generic/mul_fft.c. */ 5901int k; 5902int foo () 5903{ 5904 int i, **a; 5905 a = __builtin_alloca (k); 5906 for (i = 0; i <= k; i++) 5907 a[i] = __builtin_alloca (1 << i); 5908} 5909 5910int main () { return 0; } 5911EOF 5912 echo "Test compile: alloca array" >&5 5913 gmp_compile="$cc $cflags $cppflags conftest.c >&5" 5914 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 5915 (eval $gmp_compile) 2>&5 5916 ac_status=$? 5917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5918 test $ac_status = 0; }; then 5919 cc_works_part=yes 5920 if test "$cross_compiling" = no; then 5921 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' 5922 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 5923 (eval $ac_try) 2>&5 5924 ac_status=$? 5925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5926 test $ac_status = 0; }; }; then :; 5927 else 5928 cc_works_part=norun 5929 fi 5930 fi 5931 else 5932 cc_works_part=no 5933 fi 5934 if test "$cc_works_part" != yes; then 5935 echo "failed program was:" >&5 5936 cat conftest.c >&5 5937 fi 5938 rm -f conftest* a.out b.out a.exe a_out.exe 5939 case $cc_works_part in 5940 yes) 5941 5942 ;; 5943 no) 5944 gmp_prog_cc_works="no, alloca array" 5945 ;; 5946 norun) 5947 gmp_prog_cc_works="no, alloca array, program does not run" 5948 ;; 5949 esac 5950fi 5951 5952 5953 5954 ;; 5955 no) 5956 5957 ;; 5958 norun) 5959 5960 ;; 5961 esac 5962fi 5963 5964 5965if test "$gmp_prog_cc_works" = yes; then 5966 # remove anything that might look like compiler output to our "||" expression 5967 rm -f conftest* a.out b.out a.exe a_out.exe 5968 cat >conftest.c <<EOF 5969/* The following provokes an internal error from the assembler on 5970 power2-ibm-aix4.3.1.0. gcc -mrios2 compiles to nabs+fcirz, and this 5971 results in "Internal error related to the source program domain". 5972 5973 For reference it seems to be the combination of nabs+fcirz which is bad, 5974 not either alone. This sort of thing occurs in mpz/get_str.c with the 5975 way double chars_per_bit_exactly is applied in MPN_SIZEINBASE. Perhaps 5976 if that code changes to a scaled-integer style then we won't need this 5977 test. */ 5978 5979double fp[1]; 5980int x; 5981int f () 5982{ 5983 int a; 5984 a = (x >= 0 ? x : -x); 5985 return a * fp[0]; 5986} 5987 5988int main () { return 0; } 5989EOF 5990 echo "Test compile: abs int -> double conversion" >&5 5991 gmp_compile="$cc $cflags $cppflags conftest.c >&5" 5992 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 5993 (eval $gmp_compile) 2>&5 5994 ac_status=$? 5995 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5996 test $ac_status = 0; }; then 5997 cc_works_part=yes 5998 if test "$cross_compiling" = no; then 5999 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' 6000 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 6001 (eval $ac_try) 2>&5 6002 ac_status=$? 6003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6004 test $ac_status = 0; }; }; then :; 6005 else 6006 cc_works_part=norun 6007 fi 6008 fi 6009 else 6010 cc_works_part=no 6011 fi 6012 if test "$cc_works_part" != yes; then 6013 echo "failed program was:" >&5 6014 cat conftest.c >&5 6015 fi 6016 rm -f conftest* a.out b.out a.exe a_out.exe 6017 case $cc_works_part in 6018 yes) 6019 6020 ;; 6021 no) 6022 gmp_prog_cc_works="no, abs int -> double conversion" 6023 ;; 6024 norun) 6025 gmp_prog_cc_works="no, abs int -> double conversion, program does not run" 6026 ;; 6027 esac 6028fi 6029 6030 6031 6032 6033if test "$gmp_prog_cc_works" = yes; then 6034 # remove anything that might look like compiler output to our "||" expression 6035 rm -f conftest* a.out b.out a.exe a_out.exe 6036 cat >conftest.c <<EOF 6037/* The following provokes a segfault in the compiler on powerpc-apple-darwin. 6038 Extracted from tests/mpn/t-iord_u.c. Causes Apple's gcc 3.3 build 1640 and 6039 1666 to segfault with e.g., -O2 -mpowerpc64. */ 6040 6041#if defined (__GNUC__) && ! defined (__cplusplus) 6042typedef unsigned long long t1;typedef t1*t2; 6043static __inline__ t1 e(t2 rp,t2 up,int n,t1 v0) 6044{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;} 6045f(){static const struct{t1 n;t1 src[9];t1 want[9];}d[]={{1,{0},{1}},};t1 got[9];int i; 6046for(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();}} 6047h(){}g(){} 6048#else 6049int dummy; 6050#endif 6051 6052int main () { return 0; } 6053EOF 6054 echo "Test compile: long long reliability test 1" >&5 6055 gmp_compile="$cc $cflags $cppflags conftest.c >&5" 6056 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 6057 (eval $gmp_compile) 2>&5 6058 ac_status=$? 6059 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6060 test $ac_status = 0; }; then 6061 cc_works_part=yes 6062 if test "$cross_compiling" = no; then 6063 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' 6064 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 6065 (eval $ac_try) 2>&5 6066 ac_status=$? 6067 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6068 test $ac_status = 0; }; }; then :; 6069 else 6070 cc_works_part=norun 6071 fi 6072 fi 6073 else 6074 cc_works_part=no 6075 fi 6076 if test "$cc_works_part" != yes; then 6077 echo "failed program was:" >&5 6078 cat conftest.c >&5 6079 fi 6080 rm -f conftest* a.out b.out a.exe a_out.exe 6081 case $cc_works_part in 6082 yes) 6083 6084 ;; 6085 no) 6086 gmp_prog_cc_works="no, long long reliability test 1" 6087 ;; 6088 norun) 6089 gmp_prog_cc_works="no, long long reliability test 1, program does not run" 6090 ;; 6091 esac 6092fi 6093 6094 6095 6096 6097if test "$gmp_prog_cc_works" = yes; then 6098 # remove anything that might look like compiler output to our "||" expression 6099 rm -f conftest* a.out b.out a.exe a_out.exe 6100 cat >conftest.c <<EOF 6101/* The following provokes an internal compiler error on powerpc-apple-darwin. 6102 Extracted from mpz/cfdiv_q_2exp.c. Causes Apple's gcc 3.3 build 1640 and 6103 1666 to get an ICE with -O1 -mpowerpc64. */ 6104 6105#if defined (__GNUC__) && ! defined (__cplusplus) 6106f(int u){int i;long long x;x=u?~0:0;if(x)for(i=0;i<9;i++);x&=g();if(x)g();} 6107g(){} 6108#else 6109int dummy; 6110#endif 6111 6112int main () { return 0; } 6113EOF 6114 echo "Test compile: long long reliability test 2" >&5 6115 gmp_compile="$cc $cflags $cppflags conftest.c >&5" 6116 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 6117 (eval $gmp_compile) 2>&5 6118 ac_status=$? 6119 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6120 test $ac_status = 0; }; then 6121 cc_works_part=yes 6122 if test "$cross_compiling" = no; then 6123 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' 6124 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 6125 (eval $ac_try) 2>&5 6126 ac_status=$? 6127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6128 test $ac_status = 0; }; }; then :; 6129 else 6130 cc_works_part=norun 6131 fi 6132 fi 6133 else 6134 cc_works_part=no 6135 fi 6136 if test "$cc_works_part" != yes; then 6137 echo "failed program was:" >&5 6138 cat conftest.c >&5 6139 fi 6140 rm -f conftest* a.out b.out a.exe a_out.exe 6141 case $cc_works_part in 6142 yes) 6143 6144 ;; 6145 no) 6146 gmp_prog_cc_works="no, long long reliability test 2" 6147 ;; 6148 norun) 6149 gmp_prog_cc_works="no, long long reliability test 2, program does not run" 6150 ;; 6151 esac 6152fi 6153 6154 6155 6156 6157if test "$gmp_prog_cc_works" = yes; then 6158 # remove anything that might look like compiler output to our "||" expression 6159 rm -f conftest* a.out b.out a.exe a_out.exe 6160 cat >conftest.c <<EOF 6161/* The following is mis-compiled by HP ia-64 cc version 6162 cc: HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003] 6163 under "cc +O3", both in +DD32 and +DD64 modes. The mpn_lshift_com gets 6164 inlined and its return value somehow botched to be 0 instead of 1. This 6165 arises in the real mpn_lshift_com in mul_fft.c. A lower optimization 6166 level, like +O2 seems ok. This code needs to be run to show the problem, 6167 but that's fine, the offending cc is a native-only compiler so we don't 6168 have to worry about cross compiling. */ 6169 6170#if ! defined (__cplusplus) 6171unsigned long 6172lshift_com (rp, up, n, cnt) 6173 unsigned long *rp; 6174 unsigned long *up; 6175 long n; 6176 unsigned cnt; 6177{ 6178 unsigned long retval, high_limb, low_limb; 6179 unsigned tnc; 6180 long i; 6181 tnc = 8 * sizeof (unsigned long) - cnt; 6182 low_limb = *up++; 6183 retval = low_limb >> tnc; 6184 high_limb = low_limb << cnt; 6185 for (i = n - 1; i != 0; i--) 6186 { 6187 low_limb = *up++; 6188 *rp++ = ~(high_limb | (low_limb >> tnc)); 6189 high_limb = low_limb << cnt; 6190 } 6191 return retval; 6192} 6193int 6194main () 6195{ 6196 unsigned long cy, rp[2], up[2]; 6197 up[0] = ~ 0L; 6198 up[1] = 0; 6199 cy = lshift_com (rp, up, 2L, 1); 6200 if (cy != 1L) 6201 return 1; 6202 return 0; 6203} 6204#else 6205int 6206main () 6207{ 6208 return 0; 6209} 6210#endif 6211 6212EOF 6213 echo "Test compile: mpn_lshift_com optimization" >&5 6214 gmp_compile="$cc $cflags $cppflags conftest.c >&5" 6215 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 6216 (eval $gmp_compile) 2>&5 6217 ac_status=$? 6218 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6219 test $ac_status = 0; }; then 6220 cc_works_part=yes 6221 if test "$cross_compiling" = no; then 6222 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' 6223 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 6224 (eval $ac_try) 2>&5 6225 ac_status=$? 6226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6227 test $ac_status = 0; }; }; then :; 6228 else 6229 cc_works_part=norun 6230 fi 6231 fi 6232 else 6233 cc_works_part=no 6234 fi 6235 if test "$cc_works_part" != yes; then 6236 echo "failed program was:" >&5 6237 cat conftest.c >&5 6238 fi 6239 rm -f conftest* a.out b.out a.exe a_out.exe 6240 case $cc_works_part in 6241 yes) 6242 6243 ;; 6244 no) 6245 gmp_prog_cc_works="no, mpn_lshift_com optimization" 6246 ;; 6247 norun) 6248 gmp_prog_cc_works="no, mpn_lshift_com optimization, program does not run" 6249 ;; 6250 esac 6251fi 6252 6253 6254 6255if test "$gmp_prog_cc_works" = yes; then 6256 # remove anything that might look like compiler output to our "||" expression 6257 rm -f conftest* a.out b.out a.exe a_out.exe 6258 cat >conftest.c <<EOF 6259/* The following is mis-compiled by Intel ia-64 icc version 1.8 under 6260 "icc -O3", After several calls, the function writes parial garbage to 6261 the result vector. Perhaps relates to the chk.a.nc insn. This code needs 6262 to be run to show the problem, but that's fine, the offending cc is a 6263 native-only compiler so we don't have to worry about cross compiling. */ 6264 6265#if ! defined (__cplusplus) 6266#include <stdlib.h> 6267void 6268lshift_com (rp, up, n, cnt) 6269 unsigned long *rp; 6270 unsigned long *up; 6271 long n; 6272 unsigned cnt; 6273{ 6274 unsigned long high_limb, low_limb; 6275 unsigned tnc; 6276 long i; 6277 up += n; 6278 rp += n; 6279 tnc = 8 * sizeof (unsigned long) - cnt; 6280 low_limb = *--up; 6281 high_limb = low_limb << cnt; 6282 for (i = n - 1; i != 0; i--) 6283 { 6284 low_limb = *--up; 6285 *--rp = ~(high_limb | (low_limb >> tnc)); 6286 high_limb = low_limb << cnt; 6287 } 6288 *--rp = ~high_limb; 6289} 6290int 6291main () 6292{ 6293 unsigned long *r, *r2; 6294 unsigned long a[88 + 1]; 6295 long i; 6296 for (i = 0; i < 88 + 1; i++) 6297 a[i] = ~0L; 6298 r = malloc (10000 * sizeof (unsigned long)); 6299 r2 = r; 6300 for (i = 0; i < 528; i += 22) 6301 { 6302 lshift_com (r2, a, 6303 i / (8 * sizeof (unsigned long)) + 1, 6304 i % (8 * sizeof (unsigned long))); 6305 r2 += 88 + 1; 6306 } 6307 if (r[2048] != 0 || r[2049] != 0 || r[2050] != 0 || r[2051] != 0 || 6308 r[2052] != 0 || r[2053] != 0 || r[2054] != 0) 6309 abort (); 6310 return 0; 6311} 6312#else 6313int 6314main () 6315{ 6316 return 0; 6317} 6318#endif 6319 6320EOF 6321 echo "Test compile: mpn_lshift_com optimization 2" >&5 6322 gmp_compile="$cc $cflags $cppflags conftest.c >&5" 6323 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 6324 (eval $gmp_compile) 2>&5 6325 ac_status=$? 6326 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6327 test $ac_status = 0; }; then 6328 cc_works_part=yes 6329 if test "$cross_compiling" = no; then 6330 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' 6331 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 6332 (eval $ac_try) 2>&5 6333 ac_status=$? 6334 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6335 test $ac_status = 0; }; }; then :; 6336 else 6337 cc_works_part=norun 6338 fi 6339 fi 6340 else 6341 cc_works_part=no 6342 fi 6343 if test "$cc_works_part" != yes; then 6344 echo "failed program was:" >&5 6345 cat conftest.c >&5 6346 fi 6347 rm -f conftest* a.out b.out a.exe a_out.exe 6348 case $cc_works_part in 6349 yes) 6350 6351 ;; 6352 no) 6353 gmp_prog_cc_works="no, mpn_lshift_com optimization 2" 6354 ;; 6355 norun) 6356 gmp_prog_cc_works="no, mpn_lshift_com optimization 2, program does not run" 6357 ;; 6358 esac 6359fi 6360 6361 6362 6363 6364# A certain _GLOBAL_OFFSET_TABLE_ problem in past versions of gas, tickled 6365# by recent versions of gcc. 6366# 6367if test "$gmp_prog_cc_works" = yes; then 6368 case $host in 6369 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-*) 6370 # this problem only arises in PIC code, so don't need to test when 6371 # --disable-shared. We don't necessarily have $enable_shared set to 6372 # yes at this point, it will still be unset for the default (which is 6373 # yes); hence the use of "!= no". 6374 if test "$enable_shared" != no; then 6375 echo "Testing gcc GOT with eax emitted" >&5 6376cat >conftest.c <<\EOF 6377int foo; 6378int bar () { return foo; } 6379EOF 6380tmp_got_emitted=no 6381gmp_compile="$cc $cflags $cppflags -fPIC -S conftest.c >&5 2>&1" 6382if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 6383 (eval $gmp_compile) 2>&5 6384 ac_status=$? 6385 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6386 test $ac_status = 0; }; then 6387 if grep "addl.*_GLOBAL_OFFSET_TABLE_.*eax" conftest.s >/dev/null; then 6388 tmp_got_emitted=yes 6389 fi 6390fi 6391rm -f conftest.* 6392echo "Result: $tmp_got_emitted" >&5 6393if test "$tmp_got_emitted" = yes; then 6394 echo "Testing gas GOT with eax good" >&5 6395cat >conftest.awk <<\EOF 6396BEGIN { 6397 want[0] = "001" 6398 want[1] = "043" 6399 want[2] = "105" 6400 want[3] = "147" 6401 want[4] = "211" 6402 want[5] = "253" 6403 want[6] = "315" 6404 want[7] = "357" 6405 6406 want[8] = "005" 6407 want[9] = "002" 6408 want[10] = "000" 6409 want[11] = "000" 6410 want[12] = "000" 6411 6412 want[13] = "376" 6413 want[14] = "334" 6414 want[15] = "272" 6415 want[16] = "230" 6416 want[17] = "166" 6417 want[18] = "124" 6418 want[19] = "062" 6419 want[20] = "020" 6420 6421 result = "yes" 6422} 6423{ 6424 for (f = 2; f <= NF; f++) 6425 { 6426 for (i = 0; i < 20; i++) 6427 got[i] = got[i+1]; 6428 got[20] = $f; 6429 6430 found = 1 6431 for (i = 0; i < 21; i++) 6432 if (got[i] != want[i]) 6433 { 6434 found = 0 6435 break 6436 } 6437 if (found) 6438 { 6439 result = "no" 6440 exit 6441 } 6442 } 6443} 6444END { 6445 print result 6446} 6447EOF 6448cat >conftest.s <<\EOF 6449 .text 6450 .byte 1, 35, 69, 103, 137, 171, 205, 239 6451 addl $_GLOBAL_OFFSET_TABLE_, %eax 6452 .byte 254, 220, 186, 152, 118, 84, 50, 16 6453EOF 6454tmp_got_good=yes 6455gmp_compile="$cc $cflags $cppflags -fPIC -o conftest.o -c conftest.s >&5 2>&1" 6456if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 6457 (eval $gmp_compile) 2>&5 6458 ac_status=$? 6459 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6460 test $ac_status = 0; }; then 6461 tmp_got_good=`od -b conftest.o | $AWK -f conftest.awk` 6462fi 6463rm -f conftest.* 6464echo "Result: $tmp_got_good" >&5 6465if test "$tmp_got_good" = no; then 6466 gmp_prog_cc_works="no, bad gas GOT with eax" 6467else 6468 : 6469fi 6470 6471else 6472 : 6473fi 6474 6475 fi 6476 ;; 6477 esac 6478fi 6479 6480{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_prog_cc_works" >&5 6481$as_echo "$gmp_prog_cc_works" >&6; } 6482case $gmp_prog_cc_works in 6483 yes) 6484 6485 ;; 6486 *) 6487 continue 6488 ;; 6489esac 6490 6491 6492 # If we're supposed to be using a "long long" for a limb, check that 6493 # it works. 6494 eval limb_chosen=\"\$limb$abi1\" 6495 test -n "$limb_chosen" || eval limb_chosen=\"\$limb$abi2\" 6496 if test "$limb_chosen" = longlong; then 6497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler $cc $cflags $cppflags has long long" >&5 6498$as_echo_n "checking compiler $cc $cflags $cppflags has long long... " >&6; } 6499cat >conftest.c <<EOF 6500long long foo; 6501long long bar () { return foo; } 6502int main () { return 0; } 6503EOF 6504gmp_prog_cc_works=no 6505gmp_compile="$cc $cflags $cppflags -c conftest.c >&5" 6506if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 6507 (eval $gmp_compile) 2>&5 6508 ac_status=$? 6509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6510 test $ac_status = 0; }; then 6511 gmp_prog_cc_works=yes 6512else 6513 echo "failed program was:" >&5 6514 cat conftest.c >&5 6515fi 6516rm -f conftest* a.out b.out a.exe a_out.exe 6517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_prog_cc_works" >&5 6518$as_echo "$gmp_prog_cc_works" >&6; } 6519if test $gmp_prog_cc_works = yes; then 6520 : 6521else 6522 continue 6523fi 6524 6525 fi 6526 6527 # The tests to perform on this $cc, if any 6528 eval testlist=\"\$${ccbase}${abi1}_testlist\" 6529 test -n "$testlist" || eval testlist=\"\$${ccbase}${abi2}_testlist\" 6530 test -n "$testlist" || eval testlist=\"\$any${abi1}_testlist\" 6531 test -n "$testlist" || eval testlist=\"\$any${abi2}_testlist\" 6532 6533 testlist_pass=yes 6534 for tst in $testlist; do 6535 case $tst in 6536 hpc-hppa-2-0) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether HP compiler $cc is good for 64-bits" >&5 6537$as_echo_n "checking whether HP compiler $cc is good for 64-bits... " >&6; } 6538# Bad compiler output: 6539# ccom: HP92453-01 G.10.32.05 HP C Compiler 6540# Good compiler output: 6541# ccom: HP92453-01 A.10.32.30 HP C Compiler 6542# Let A.10.32.30 or higher be ok. 6543echo >conftest.c 6544gmp_tmp_vs=`$cc -V -c -o conftest.$OBJEXT conftest.c 2>&1 | grep "^ccom:"` 6545echo "Version string: $gmp_tmp_vs" >&5 6546rm conftest* 6547gmp_tmp_v1=`echo $gmp_tmp_vs | sed 's/.* .\.\([0-9]*\).*/\1/'` 6548gmp_tmp_v2=`echo $gmp_tmp_vs | sed 's/.* .\..*\.\(.*\)\..* HP C.*/\1/'` 6549gmp_tmp_v3=`echo $gmp_tmp_vs | sed 's/.* .\..*\..*\.\(.*\) HP C.*/\1/'` 6550echo "Version number: $gmp_tmp_v1.$gmp_tmp_v2.$gmp_tmp_v3" >&5 6551if test -z "$gmp_tmp_v1"; then 6552 gmp_hpc_64bit=not-applicable 6553else 6554 gmp_compare_ge=no 6555if test -n "$gmp_tmp_v1"; then 6556 if test "$gmp_tmp_v1" -gt 10; then 6557 gmp_compare_ge=yes 6558 else 6559 if test "$gmp_tmp_v1" -eq 10; then 6560 if test -n "$gmp_tmp_v2"; then 6561 if test "$gmp_tmp_v2" -gt 32; then 6562 gmp_compare_ge=yes 6563 else 6564 if test "$gmp_tmp_v2" -eq 32; then 6565 if test -n "$gmp_tmp_v3" && test "$gmp_tmp_v3" -ge 30; then 6566 gmp_compare_ge=yes 6567fi 6568 6569 fi 6570 fi 6571fi 6572 6573 fi 6574 fi 6575fi 6576 6577 6578 gmp_hpc_64bit=$gmp_compare_ge 6579fi 6580{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_hpc_64bit" >&5 6581$as_echo "$gmp_hpc_64bit" >&6; } 6582if test $gmp_hpc_64bit = yes; then 6583 : 6584else 6585 testlist_pass=no 6586fi 6587 ;; 6588 gcc-arm-umodsi) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ARM gcc unsigned division works" >&5 6589$as_echo_n "checking whether ARM gcc unsigned division works... " >&6; } 6590tmp_version=`$cc --version` 6591echo "$tmp_version" >&5 6592case $tmp_version in 6593 2.95 | 2.95.[123]) 6594 testlist_pass=no 6595 gmp_gcc_arm_umodsi_result="no, gcc 2.95.[0123]" ;; 6596 *) 6597 : 6598 gmp_gcc_arm_umodsi_result=yes ;; 6599esac 6600{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_gcc_arm_umodsi_result" >&5 6601$as_echo "$gmp_gcc_arm_umodsi_result" >&6; } 6602 ;; 6603 gcc-mips-o32) { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc supports o32" >&5 6604$as_echo_n "checking whether gcc supports o32... " >&6; } 6605echo 'int x;' >conftest.c 6606echo "$cc -mabi=32 -c conftest.c" >&5 6607if $cc -mabi=32 -c conftest.c >conftest.out 2>&1; then 6608 result=yes 6609else 6610 cat conftest.out >&5 6611 if grep "cc1: Invalid option \`abi=32'" conftest.out >/dev/null; then 6612 result=yes 6613 else 6614 result=no 6615 fi 6616fi 6617rm -f conftest.* 6618{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 6619$as_echo "$result" >&6; } 6620if test $result = yes; then 6621 : 6622else 6623 testlist_pass=no 6624fi 6625 ;; 6626 hppa-level-2.0) { $as_echo "$as_me:${as_lineno-$LINENO}: checking $cc $cflags assembler knows hppa 2.0" >&5 6627$as_echo_n "checking $cc $cflags assembler knows hppa 2.0... " >&6; } 6628result=no 6629cat >conftest.s <<EOF 6630 .level 2.0 6631EOF 6632gmp_compile="$cc $cflags -c conftest.s >&5 2>&1" 6633if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 6634 (eval $gmp_compile) 2>&5 6635 ac_status=$? 6636 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6637 test $ac_status = 0; }; then 6638 result=yes 6639else 6640 echo "failed program was" >&5 6641 cat conftest.s >&5 6642fi 6643rm -f conftest* 6644{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 6645$as_echo "$result" >&6; } 6646if test "$result" = yes; then 6647 : 6648else 6649 testlist_pass=no 6650fi 6651 ;; 6652 sizeof*) echo "configure: testlist $tst" >&5 6653gmp_sizeof_type=`echo "$tst" | sed 's/sizeof-\([a-z]*\).*/\1/'` 6654gmp_sizeof_want=`echo "$tst" | sed 's/sizeof-[a-z]*-\([0-9]*\).*/\1/'` 6655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler $cc $cflags has sizeof($gmp_sizeof_type)==$gmp_sizeof_want" >&5 6656$as_echo_n "checking compiler $cc $cflags has sizeof($gmp_sizeof_type)==$gmp_sizeof_want... " >&6; } 6657cat >conftest.c <<EOF 6658int 6659main () 6660{ 6661 static int test_array [1 - 2 * (long) (sizeof ($gmp_sizeof_type) != $gmp_sizeof_want)]; 6662 test_array[0] = 0; 6663 return 0; 6664} 6665EOF 6666gmp_c_testlist_sizeof=no 6667gmp_compile="$cc $cflags -c conftest.c >&5" 6668if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 6669 (eval $gmp_compile) 2>&5 6670 ac_status=$? 6671 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6672 test $ac_status = 0; }; then 6673 gmp_c_testlist_sizeof=yes 6674fi 6675rm -f conftest* 6676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_c_testlist_sizeof" >&5 6677$as_echo "$gmp_c_testlist_sizeof" >&6; } 6678if test $gmp_c_testlist_sizeof = yes; then 6679 : 6680else 6681 testlist_pass=no 6682fi 6683 ;; 6684 esac 6685 if test $testlist_pass = no; then break; fi 6686 done 6687 6688 if test $testlist_pass = yes; then 6689 found_compiler=yes 6690 break 6691 fi 6692 done 6693 6694 if test $found_compiler = yes; then break; fi 6695 done 6696 6697 if test $found_compiler = yes; then break; fi 6698 done 6699 6700 if test $found_compiler = yes; then break; fi 6701done 6702 6703 6704# If we recognised the CPU, as indicated by $path being set, then insist 6705# that we have a working compiler, either from our $cclist choices or from 6706# $CC. We can't let AC_PROG_CC look around for a compiler because it might 6707# find one that we've rejected (for not supporting the modes our asm code 6708# demands, etc). 6709# 6710# If we didn't recognise the CPU (and this includes host_cpu=none), then 6711# fall through and let AC_PROG_CC look around for a compiler too. This is 6712# mostly in the interests of following a standard autoconf setup, after all 6713# we've already tested cc and gcc adequately (hopefully). As of autoconf 6714# 2.50 the only thing AC_PROG_CC really adds is a check for "cl" (Microsoft 6715# C on MS-DOS systems). 6716# 6717if test $found_compiler = no && test -n "$path"; then 6718 as_fn_error "could not find a working compiler, see config.log for details" "$LINENO" 5 6719fi 6720 6721case $host in 6722 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-* | athlon64-*-* | k8-*-* | k10-*-* | bobcat-*-* | bulldozer-*-* | pentium4-*-* | atom-*-* | core2-*-* | corei*-*-* | x86_64-*-* | nano-*-*) 6723 # If the user asked for a fat build, override the path and flags set above 6724 if test $enable_fat = yes; then 6725 gcc_cflags_cpu="" 6726 gcc_cflags_arch="" 6727 6728 if test "$abi" = 32; then 6729 extra_functions="$extra_functions fat fat_entry" 6730 path="x86/fat x86" 6731 fat_path="x86 x86/fat x86/i486 6732 x86/k6 x86/k6/mmx x86/k6/k62mmx 6733 x86/k7 x86/k7/mmx 6734 x86/pentium x86/pentium/mmx 6735 x86/p6 x86/p6/mmx x86/p6/p3mmx x86/p6/sse2 6736 x86/pentium4 x86/pentium4/mmx x86/pentium4/sse2" 6737 fi 6738 6739 if test "$abi" = 64; then 6740 gcc_64_cflags="" 6741 extra_functions_64="$extra_functions_64 fat fat_entry" 6742 path_64="x86_64/fat x86_64" 6743 fat_path="x86_64 x86_64/fat x86_64/pentium4 x86_64/core2 x86_64/coreinhm x86_64/coreisbr x86_64/atom x86_64/nano" 6744 fi 6745 6746 fat_functions="add_n addmul_1 copyd copyi 6747 dive_1 diveby3 divrem_1 gcd_1 lshift 6748 mod_1 mod_34lsub1 mode1o mul_1 mul_basecase 6749 pre_divrem_1 pre_mod_1 rshift 6750 sqr_basecase sub_n submul_1" 6751 fat_thresholds="MUL_TOOM22_THRESHOLD MUL_TOOM33_THRESHOLD 6752 SQR_TOOM2_THRESHOLD SQR_TOOM3_THRESHOLD" 6753 fi 6754 ;; 6755esac 6756 6757 6758if test $found_compiler = yes; then 6759 6760 # If we're creating CFLAGS, then look for optional additions. If the user 6761 # set CFLAGS then leave it alone. 6762 # 6763 if test "$test_CFLAGS" != set; then 6764 eval optlist=\"\$${ccbase}${abi1}_cflags_optlist\" 6765 test -n "$optlist" || eval optlist=\"\$${ccbase}${abi2}_cflags_optlist\" 6766 6767 for opt in $optlist; do 6768 eval optflags=\"\$${ccbase}${abi1}_cflags_${opt}\" 6769 test -n "$optflags" || eval optflags=\"\$${ccbase}${abi2}_cflags_${opt}\" 6770 test -n "$optflags" || eval optflags=\"\$${ccbase}_cflags_${opt}\" 6771 6772 for flag in $optflags; do 6773 6774 # ~ represents a space in an option spec 6775 flag=`echo "$flag" | tr '~' ' '` 6776 6777 case $flag in 6778 -march=pentium4 | -march=k8) 6779 # For -march settings which enable SSE2 we exclude certain bad 6780 # gcc versions and we need an OS knowing how to save xmm regs. 6781 # 6782 # This is only for ABI=32, any 64-bit gcc is good and any OS 6783 # knowing x86_64 will know xmm. 6784 # 6785 # -march=k8 was only introduced in gcc 3.3, so we shouldn't need 6786 # the GMP_GCC_PENTIUM4_SSE2 check (for gcc 3.2 and prior). But 6787 # it doesn't hurt to run it anyway, sharing code with the 6788 # pentium4 case. 6789 # 6790 if test "$abi" = 32; then 6791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc is good for sse2" >&5 6792$as_echo_n "checking whether gcc is good for sse2... " >&6; } 6793case `$cc $cflags $cppflags -dumpversion` in 6794 3.[012] | 3.[012].*) result=no ;; 6795 *) result=yes ;; 6796esac 6797{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 6798$as_echo "$result" >&6; } 6799if test "$result" = yes; then 6800 : 6801else 6802 continue 6803fi 6804 6805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the operating system supports XMM registers" >&5 6806$as_echo_n "checking whether the operating system supports XMM registers... " >&6; } 6807if test "${gmp_cv_os_x86_xmm+set}" = set; then : 6808 $as_echo_n "(cached) " >&6 6809else 6810 if test "$build" = "$host"; then 6811 # remove anything that might look like compiler output to our "||" expression 6812 rm -f conftest* a.out b.out a.exe a_out.exe 6813 cat >conftest.s <<EOF 6814 .text 6815main: 6816_main: 6817 .globl main 6818 .globl _main 6819 .byte 0x0f, 0x57, 0xc0 6820 xorl %eax, %eax 6821 ret 6822EOF 6823 gmp_compile="$cc $cflags $cppflags conftest.s -o conftest >&5" 6824 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 6825 (eval $gmp_compile) 2>&5 6826 ac_status=$? 6827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6828 test $ac_status = 0; }; then 6829 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' 6830 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 6831 (eval $ac_try) 2>&5 6832 ac_status=$? 6833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6834 test $ac_status = 0; }; }; then 6835 gmp_cv_os_x86_xmm=yes 6836 else 6837 gmp_cv_os_x86_xmm=no 6838 fi 6839 else 6840 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Oops, cannot compile test program" >&5 6841$as_echo "$as_me: WARNING: Oops, cannot compile test program" >&2;} 6842 fi 6843 rm -f conftest* 6844fi 6845 6846if test -z "$gmp_cv_os_x86_xmm"; then 6847 case $host_os in 6848 freebsd[123] | freebsd[123].*) 6849 gmp_cv_os_x86_xmm=no ;; 6850 freebsd*) 6851 gmp_cv_os_x86_xmm=yes ;; 6852 *) 6853 gmp_cv_os_x86_xmm=probably ;; 6854 esac 6855fi 6856 6857fi 6858{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_os_x86_xmm" >&5 6859$as_echo "$gmp_cv_os_x86_xmm" >&6; } 6860 6861if test "$gmp_cv_os_x86_xmm" = probably; then 6862 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Not certain of OS support for xmm when cross compiling." >&5 6863$as_echo "$as_me: WARNING: Not certain of OS support for xmm when cross compiling." >&2;} 6864 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Will assume it's ok, expect a SIGILL if this is wrong." >&5 6865$as_echo "$as_me: WARNING: Will assume it's ok, expect a SIGILL if this is wrong." >&2;} 6866fi 6867 6868case $gmp_cv_os_x86_xmm in 6869no) 6870 continue 6871 ;; 6872*) 6873 6874 ;; 6875esac 6876 6877 fi 6878 ;; 6879 -no-cpp-precomp) 6880 # special check, avoiding a warning 6881 if test "$ccbase" = gcc; then 6882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler $cc $cflags -no-cpp-precomp" >&5 6883$as_echo_n "checking compiler $cc $cflags -no-cpp-precomp... " >&6; } 6884 result=no 6885 cat >conftest.c <<EOF 6886int main () { return 0; } 6887EOF 6888 gmp_compile="$cc $cflags -no-cpp-precomp conftest.c >conftest.out 2>&1" 6889 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 6890 (eval $gmp_compile) 2>&5 6891 ac_status=$? 6892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6893 test $ac_status = 0; }; then 6894 if grep "unrecognized option.*-no-cpp-precomp" conftest.out >/dev/null; then : ; 6895 else 6896 result=yes 6897 fi 6898 fi 6899 cat conftest.out >&5 6900 rm -f conftest* a.out b.out a.exe a_out.exe 6901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 6902$as_echo "$result" >&6; } 6903 if test "$result" = yes; then 6904 cflags="$cflags $flag" 6905 break 6906 else 6907 continue 6908 fi 6909fi 6910 6911 ;; 6912 -Wa,-m*) 6913 case $host in 6914 alpha*-*-*) 6915 { $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler $cc $cflags $flag" >&5 6916$as_echo_n "checking assembler $cc $cflags $flag... " >&6; } 6917result=no 6918cat >conftest.c <<EOF 6919int main () {} 6920EOF 6921gmp_compile="$cc $cflags $flag -c conftest.c >conftest.out 2>&1" 6922if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 6923 (eval $gmp_compile) 2>&5 6924 ac_status=$? 6925 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6926 test $ac_status = 0; }; then 6927 if grep "Unknown CPU identifier" conftest.out >/dev/null; then : ; 6928 else 6929 result=yes 6930 fi 6931fi 6932cat conftest.out >&5 6933rm -f conftest* 6934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 6935$as_echo "$result" >&6; } 6936if test "$result" = yes; then 6937 : 6938else 6939 continue 6940fi 6941 6942 ;; 6943 esac 6944 ;; 6945 -Wa,-oldas) 6946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $cc $cflags $cppflags -Wa,-oldas" >&5 6947$as_echo_n "checking for $cc $cflags $cppflags -Wa,-oldas... " >&6; } 6948result=no 6949cat >conftest.c <<EOF 6950EOF 6951echo "with empty conftest.c" >&5 6952gmp_compile="$cc $cflags $cppflags -c conftest.c >&5 2>&1" 6953if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 6954 (eval $gmp_compile) 2>&5 6955 ac_status=$? 6956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6957 test $ac_status = 0; }; then : ; 6958else 6959 # empty fails 6960 gmp_compile="$cc $cflags $cppflags -Wa,-oldas -c conftest.c >&5 2>&1" 6961 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 6962 (eval $gmp_compile) 2>&5 6963 ac_status=$? 6964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6965 test $ac_status = 0; }; then 6966 # but with -Wa,-oldas it works 6967 result=yes 6968 fi 6969fi 6970rm -f conftest* 6971{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 6972$as_echo "$result" >&6; } 6973if test "$result" = yes; then 6974 cflags="$cflags $flag" 6975 break 6976else 6977 continue 6978fi 6979 6980 ;; 6981 esac 6982 6983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compiler $cc $cflags $cppflags $flag" >&5 6984$as_echo_n "checking compiler $cc $cflags $cppflags $flag... " >&6; } 6985gmp_prog_cc_works=yes 6986 6987# first see a simple "main()" works, then go on to other checks 6988if test "$gmp_prog_cc_works" = yes; then 6989 # remove anything that might look like compiler output to our "||" expression 6990 rm -f conftest* a.out b.out a.exe a_out.exe 6991 cat >conftest.c <<EOF 6992 6993int main () { return 0; } 6994EOF 6995 echo "Test compile: " >&5 6996 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5" 6997 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 6998 (eval $gmp_compile) 2>&5 6999 ac_status=$? 7000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7001 test $ac_status = 0; }; then 7002 cc_works_part=yes 7003 if test "$cross_compiling" = no; then 7004 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' 7005 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 7006 (eval $ac_try) 2>&5 7007 ac_status=$? 7008 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7009 test $ac_status = 0; }; }; then :; 7010 else 7011 cc_works_part=norun 7012 fi 7013 fi 7014 else 7015 cc_works_part=no 7016 fi 7017 if test "$cc_works_part" != yes; then 7018 echo "failed program was:" >&5 7019 cat conftest.c >&5 7020 fi 7021 rm -f conftest* a.out b.out a.exe a_out.exe 7022 case $cc_works_part in 7023 yes) 7024 7025 ;; 7026 no) 7027 gmp_prog_cc_works="no" 7028 ;; 7029 norun) 7030 gmp_prog_cc_works="no, program does not run" 7031 ;; 7032 esac 7033fi 7034 7035 7036 7037 7038if test "$gmp_prog_cc_works" = yes; then 7039 # remove anything that might look like compiler output to our "||" expression 7040 rm -f conftest* a.out b.out a.exe a_out.exe 7041 cat >conftest.c <<EOF 7042/* The following provokes an internal error from gcc 2.95.2 -mpowerpc64 7043 (without -maix64), hence detecting an unusable compiler */ 7044void *g() { return (void *) 0; } 7045void *f() { return g(); } 7046 7047int main () { return 0; } 7048EOF 7049 echo "Test compile: function pointer return" >&5 7050 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5" 7051 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 7052 (eval $gmp_compile) 2>&5 7053 ac_status=$? 7054 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7055 test $ac_status = 0; }; then 7056 cc_works_part=yes 7057 if test "$cross_compiling" = no; then 7058 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' 7059 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 7060 (eval $ac_try) 2>&5 7061 ac_status=$? 7062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7063 test $ac_status = 0; }; }; then :; 7064 else 7065 cc_works_part=norun 7066 fi 7067 fi 7068 else 7069 cc_works_part=no 7070 fi 7071 if test "$cc_works_part" != yes; then 7072 echo "failed program was:" >&5 7073 cat conftest.c >&5 7074 fi 7075 rm -f conftest* a.out b.out a.exe a_out.exe 7076 case $cc_works_part in 7077 yes) 7078 7079 ;; 7080 no) 7081 gmp_prog_cc_works="no, function pointer return" 7082 ;; 7083 norun) 7084 gmp_prog_cc_works="no, function pointer return, program does not run" 7085 ;; 7086 esac 7087fi 7088 7089 7090 7091 7092if test "$gmp_prog_cc_works" = yes; then 7093 # remove anything that might look like compiler output to our "||" expression 7094 rm -f conftest* a.out b.out a.exe a_out.exe 7095 cat >conftest.c <<EOF 7096/* The following provokes an invalid instruction syntax from i386 gcc 7097 -march=pentiumpro on Solaris 2.8. The native sun assembler 7098 requires a non-standard syntax for cmov which gcc (as of 2.95.2 at 7099 least) doesn't know. */ 7100int n; 7101int cmov () { return (n >= 0 ? n : 0); } 7102 7103int main () { return 0; } 7104EOF 7105 echo "Test compile: cmov instruction" >&5 7106 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5" 7107 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 7108 (eval $gmp_compile) 2>&5 7109 ac_status=$? 7110 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7111 test $ac_status = 0; }; then 7112 cc_works_part=yes 7113 if test "$cross_compiling" = no; then 7114 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' 7115 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 7116 (eval $ac_try) 2>&5 7117 ac_status=$? 7118 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7119 test $ac_status = 0; }; }; then :; 7120 else 7121 cc_works_part=norun 7122 fi 7123 fi 7124 else 7125 cc_works_part=no 7126 fi 7127 if test "$cc_works_part" != yes; then 7128 echo "failed program was:" >&5 7129 cat conftest.c >&5 7130 fi 7131 rm -f conftest* a.out b.out a.exe a_out.exe 7132 case $cc_works_part in 7133 yes) 7134 7135 ;; 7136 no) 7137 gmp_prog_cc_works="no, cmov instruction" 7138 ;; 7139 norun) 7140 gmp_prog_cc_works="no, cmov instruction, program does not run" 7141 ;; 7142 esac 7143fi 7144 7145 7146 7147 7148if test "$gmp_prog_cc_works" = yes; then 7149 # remove anything that might look like compiler output to our "||" expression 7150 rm -f conftest* a.out b.out a.exe a_out.exe 7151 cat >conftest.c <<EOF 7152/* The following provokes a linker invocation problem with gcc 3.0.3 7153 on AIX 4.3 under "-maix64 -mpowerpc64 -mcpu=630". The -mcpu=630 7154 option causes gcc to incorrectly select the 32-bit libgcc.a, not 7155 the 64-bit one, and consequently it misses out on the __fixunsdfdi 7156 helper (double -> uint64 conversion). */ 7157double d; 7158unsigned long gcc303 () { return (unsigned long) d; } 7159 7160int main () { return 0; } 7161EOF 7162 echo "Test compile: double -> ulong conversion" >&5 7163 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5" 7164 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 7165 (eval $gmp_compile) 2>&5 7166 ac_status=$? 7167 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7168 test $ac_status = 0; }; then 7169 cc_works_part=yes 7170 if test "$cross_compiling" = no; then 7171 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' 7172 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 7173 (eval $ac_try) 2>&5 7174 ac_status=$? 7175 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7176 test $ac_status = 0; }; }; then :; 7177 else 7178 cc_works_part=norun 7179 fi 7180 fi 7181 else 7182 cc_works_part=no 7183 fi 7184 if test "$cc_works_part" != yes; then 7185 echo "failed program was:" >&5 7186 cat conftest.c >&5 7187 fi 7188 rm -f conftest* a.out b.out a.exe a_out.exe 7189 case $cc_works_part in 7190 yes) 7191 7192 ;; 7193 no) 7194 gmp_prog_cc_works="no, double -> ulong conversion" 7195 ;; 7196 norun) 7197 gmp_prog_cc_works="no, double -> ulong conversion, program does not run" 7198 ;; 7199 esac 7200fi 7201 7202 7203 7204 7205if test "$gmp_prog_cc_works" = yes; then 7206 # remove anything that might look like compiler output to our "||" expression 7207 rm -f conftest* a.out b.out a.exe a_out.exe 7208 cat >conftest.c <<EOF 7209/* The following provokes an error from hppa gcc 2.95 under -mpa-risc-2-0 if 7210 the assembler doesn't know hppa 2.0 instructions. fneg is a 2.0 7211 instruction, and a negation like this comes out using it. */ 7212double fneg_data; 7213unsigned long fneg () { return -fneg_data; } 7214 7215int main () { return 0; } 7216EOF 7217 echo "Test compile: double negation" >&5 7218 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5" 7219 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 7220 (eval $gmp_compile) 2>&5 7221 ac_status=$? 7222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7223 test $ac_status = 0; }; then 7224 cc_works_part=yes 7225 if test "$cross_compiling" = no; then 7226 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' 7227 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 7228 (eval $ac_try) 2>&5 7229 ac_status=$? 7230 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7231 test $ac_status = 0; }; }; then :; 7232 else 7233 cc_works_part=norun 7234 fi 7235 fi 7236 else 7237 cc_works_part=no 7238 fi 7239 if test "$cc_works_part" != yes; then 7240 echo "failed program was:" >&5 7241 cat conftest.c >&5 7242 fi 7243 rm -f conftest* a.out b.out a.exe a_out.exe 7244 case $cc_works_part in 7245 yes) 7246 7247 ;; 7248 no) 7249 gmp_prog_cc_works="no, double negation" 7250 ;; 7251 norun) 7252 gmp_prog_cc_works="no, double negation, program does not run" 7253 ;; 7254 esac 7255fi 7256 7257 7258 7259 7260if test "$gmp_prog_cc_works" = yes; then 7261 # remove anything that might look like compiler output to our "||" expression 7262 rm -f conftest* a.out b.out a.exe a_out.exe 7263 cat >conftest.c <<EOF 7264/* The following makes gcc 3.3 -march=pentium4 generate an SSE2 xmm insn 7265 (cvtsd2ss) which will provoke an error if the assembler doesn't recognise 7266 those instructions. Not sure how much of the gmp code will come out 7267 wanting sse2, but it's easiest to reject an option we know is bad. */ 7268double ftod_data; 7269float ftod () { return (float) ftod_data; } 7270 7271int main () { return 0; } 7272EOF 7273 echo "Test compile: double -> float conversion" >&5 7274 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5" 7275 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 7276 (eval $gmp_compile) 2>&5 7277 ac_status=$? 7278 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7279 test $ac_status = 0; }; then 7280 cc_works_part=yes 7281 if test "$cross_compiling" = no; then 7282 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' 7283 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 7284 (eval $ac_try) 2>&5 7285 ac_status=$? 7286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7287 test $ac_status = 0; }; }; then :; 7288 else 7289 cc_works_part=norun 7290 fi 7291 fi 7292 else 7293 cc_works_part=no 7294 fi 7295 if test "$cc_works_part" != yes; then 7296 echo "failed program was:" >&5 7297 cat conftest.c >&5 7298 fi 7299 rm -f conftest* a.out b.out a.exe a_out.exe 7300 case $cc_works_part in 7301 yes) 7302 7303 ;; 7304 no) 7305 gmp_prog_cc_works="no, double -> float conversion" 7306 ;; 7307 norun) 7308 gmp_prog_cc_works="no, double -> float conversion, program does not run" 7309 ;; 7310 esac 7311fi 7312 7313 7314 7315 7316if test "$gmp_prog_cc_works" = yes; then 7317 # remove anything that might look like compiler output to our "||" expression 7318 rm -f conftest* a.out b.out a.exe a_out.exe 7319 cat >conftest.c <<EOF 7320/* The following provokes an internal compiler error from gcc version 7321 "2.9-gnupro-99r1" under "-O2 -mcpu=ev6", apparently relating to char 7322 values being spilled into floating point registers. The problem doesn't 7323 show up all the time, but has occurred enough in GMP for us to reject 7324 this compiler+flags. */ 7325#include <string.h> /* for memcpy */ 7326struct try_t 7327{ 7328 char dst[2]; 7329 char size; 7330 long d0, d1, d2, d3, d4, d5, d6; 7331 char overlap; 7332}; 7333struct try_t param[6]; 7334int 7335param_init () 7336{ 7337 struct try_t *p; 7338 memcpy (p, ¶m[ 2 ], sizeof (*p)); 7339 memcpy (p, ¶m[ 2 ], sizeof (*p)); 7340 p->size = 2; 7341 memcpy (p, ¶m[ 1 ], sizeof (*p)); 7342 p->dst[0] = 1; 7343 p->overlap = 2; 7344 memcpy (p, ¶m[ 3 ], sizeof (*p)); 7345 p->dst[0] = 1; 7346 p->overlap = 8; 7347 memcpy (p, ¶m[ 4 ], sizeof (*p)); 7348 memcpy (p, ¶m[ 4 ], sizeof (*p)); 7349 p->overlap = 8; 7350 memcpy (p, ¶m[ 5 ], sizeof (*p)); 7351 memcpy (p, ¶m[ 5 ], sizeof (*p)); 7352 memcpy (p, ¶m[ 5 ], sizeof (*p)); 7353 return 0; 7354} 7355 7356int main () { return 0; } 7357EOF 7358 echo "Test compile: gnupro alpha ev6 char spilling" >&5 7359 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5" 7360 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 7361 (eval $gmp_compile) 2>&5 7362 ac_status=$? 7363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7364 test $ac_status = 0; }; then 7365 cc_works_part=yes 7366 if test "$cross_compiling" = no; then 7367 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' 7368 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 7369 (eval $ac_try) 2>&5 7370 ac_status=$? 7371 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7372 test $ac_status = 0; }; }; then :; 7373 else 7374 cc_works_part=norun 7375 fi 7376 fi 7377 else 7378 cc_works_part=no 7379 fi 7380 if test "$cc_works_part" != yes; then 7381 echo "failed program was:" >&5 7382 cat conftest.c >&5 7383 fi 7384 rm -f conftest* a.out b.out a.exe a_out.exe 7385 case $cc_works_part in 7386 yes) 7387 7388 ;; 7389 no) 7390 gmp_prog_cc_works="no, gnupro alpha ev6 char spilling" 7391 ;; 7392 norun) 7393 gmp_prog_cc_works="no, gnupro alpha ev6 char spilling, program does not run" 7394 ;; 7395 esac 7396fi 7397 7398 7399 7400 7401# __builtin_alloca is not available everywhere, check it exists before 7402# seeing that it works 7403if test "$gmp_prog_cc_works" = yes; then 7404 # remove anything that might look like compiler output to our "||" expression 7405 rm -f conftest* a.out b.out a.exe a_out.exe 7406 cat >conftest.c <<EOF 7407int k; int foo () { __builtin_alloca (k); } 7408EOF 7409 echo "Test compile: __builtin_alloca availability" >&5 7410 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5" 7411 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 7412 (eval $gmp_compile) 2>&5 7413 ac_status=$? 7414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7415 test $ac_status = 0; }; then 7416 cc_works_part=yes 7417 if test "$cross_compiling" = no; then 7418 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' 7419 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 7420 (eval $ac_try) 2>&5 7421 ac_status=$? 7422 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7423 test $ac_status = 0; }; }; then :; 7424 else 7425 cc_works_part=norun 7426 fi 7427 fi 7428 else 7429 cc_works_part=no 7430 fi 7431 if test "$cc_works_part" != yes; then 7432 echo "failed program was:" >&5 7433 cat conftest.c >&5 7434 fi 7435 rm -f conftest* a.out b.out a.exe a_out.exe 7436 case $cc_works_part in 7437 yes) 7438 if test "$gmp_prog_cc_works" = yes; then 7439 # remove anything that might look like compiler output to our "||" expression 7440 rm -f conftest* a.out b.out a.exe a_out.exe 7441 cat >conftest.c <<EOF 7442/* The following provokes an internal compiler error from Itanium HP-UX cc 7443 under +O2 or higher. We use this sort of code in mpn/generic/mul_fft.c. */ 7444int k; 7445int foo () 7446{ 7447 int i, **a; 7448 a = __builtin_alloca (k); 7449 for (i = 0; i <= k; i++) 7450 a[i] = __builtin_alloca (1 << i); 7451} 7452 7453int main () { return 0; } 7454EOF 7455 echo "Test compile: alloca array" >&5 7456 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5" 7457 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 7458 (eval $gmp_compile) 2>&5 7459 ac_status=$? 7460 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7461 test $ac_status = 0; }; then 7462 cc_works_part=yes 7463 if test "$cross_compiling" = no; then 7464 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' 7465 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 7466 (eval $ac_try) 2>&5 7467 ac_status=$? 7468 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7469 test $ac_status = 0; }; }; then :; 7470 else 7471 cc_works_part=norun 7472 fi 7473 fi 7474 else 7475 cc_works_part=no 7476 fi 7477 if test "$cc_works_part" != yes; then 7478 echo "failed program was:" >&5 7479 cat conftest.c >&5 7480 fi 7481 rm -f conftest* a.out b.out a.exe a_out.exe 7482 case $cc_works_part in 7483 yes) 7484 7485 ;; 7486 no) 7487 gmp_prog_cc_works="no, alloca array" 7488 ;; 7489 norun) 7490 gmp_prog_cc_works="no, alloca array, program does not run" 7491 ;; 7492 esac 7493fi 7494 7495 7496 7497 ;; 7498 no) 7499 7500 ;; 7501 norun) 7502 7503 ;; 7504 esac 7505fi 7506 7507 7508if test "$gmp_prog_cc_works" = yes; then 7509 # remove anything that might look like compiler output to our "||" expression 7510 rm -f conftest* a.out b.out a.exe a_out.exe 7511 cat >conftest.c <<EOF 7512/* The following provokes an internal error from the assembler on 7513 power2-ibm-aix4.3.1.0. gcc -mrios2 compiles to nabs+fcirz, and this 7514 results in "Internal error related to the source program domain". 7515 7516 For reference it seems to be the combination of nabs+fcirz which is bad, 7517 not either alone. This sort of thing occurs in mpz/get_str.c with the 7518 way double chars_per_bit_exactly is applied in MPN_SIZEINBASE. Perhaps 7519 if that code changes to a scaled-integer style then we won't need this 7520 test. */ 7521 7522double fp[1]; 7523int x; 7524int f () 7525{ 7526 int a; 7527 a = (x >= 0 ? x : -x); 7528 return a * fp[0]; 7529} 7530 7531int main () { return 0; } 7532EOF 7533 echo "Test compile: abs int -> double conversion" >&5 7534 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5" 7535 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 7536 (eval $gmp_compile) 2>&5 7537 ac_status=$? 7538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7539 test $ac_status = 0; }; then 7540 cc_works_part=yes 7541 if test "$cross_compiling" = no; then 7542 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' 7543 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 7544 (eval $ac_try) 2>&5 7545 ac_status=$? 7546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7547 test $ac_status = 0; }; }; then :; 7548 else 7549 cc_works_part=norun 7550 fi 7551 fi 7552 else 7553 cc_works_part=no 7554 fi 7555 if test "$cc_works_part" != yes; then 7556 echo "failed program was:" >&5 7557 cat conftest.c >&5 7558 fi 7559 rm -f conftest* a.out b.out a.exe a_out.exe 7560 case $cc_works_part in 7561 yes) 7562 7563 ;; 7564 no) 7565 gmp_prog_cc_works="no, abs int -> double conversion" 7566 ;; 7567 norun) 7568 gmp_prog_cc_works="no, abs int -> double conversion, program does not run" 7569 ;; 7570 esac 7571fi 7572 7573 7574 7575 7576if test "$gmp_prog_cc_works" = yes; then 7577 # remove anything that might look like compiler output to our "||" expression 7578 rm -f conftest* a.out b.out a.exe a_out.exe 7579 cat >conftest.c <<EOF 7580/* The following provokes a segfault in the compiler on powerpc-apple-darwin. 7581 Extracted from tests/mpn/t-iord_u.c. Causes Apple's gcc 3.3 build 1640 and 7582 1666 to segfault with e.g., -O2 -mpowerpc64. */ 7583 7584#if defined (__GNUC__) && ! defined (__cplusplus) 7585typedef unsigned long long t1;typedef t1*t2; 7586static __inline__ t1 e(t2 rp,t2 up,int n,t1 v0) 7587{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;} 7588f(){static const struct{t1 n;t1 src[9];t1 want[9];}d[]={{1,{0},{1}},};t1 got[9];int i; 7589for(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();}} 7590h(){}g(){} 7591#else 7592int dummy; 7593#endif 7594 7595int main () { return 0; } 7596EOF 7597 echo "Test compile: long long reliability test 1" >&5 7598 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5" 7599 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 7600 (eval $gmp_compile) 2>&5 7601 ac_status=$? 7602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7603 test $ac_status = 0; }; then 7604 cc_works_part=yes 7605 if test "$cross_compiling" = no; then 7606 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' 7607 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 7608 (eval $ac_try) 2>&5 7609 ac_status=$? 7610 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7611 test $ac_status = 0; }; }; then :; 7612 else 7613 cc_works_part=norun 7614 fi 7615 fi 7616 else 7617 cc_works_part=no 7618 fi 7619 if test "$cc_works_part" != yes; then 7620 echo "failed program was:" >&5 7621 cat conftest.c >&5 7622 fi 7623 rm -f conftest* a.out b.out a.exe a_out.exe 7624 case $cc_works_part in 7625 yes) 7626 7627 ;; 7628 no) 7629 gmp_prog_cc_works="no, long long reliability test 1" 7630 ;; 7631 norun) 7632 gmp_prog_cc_works="no, long long reliability test 1, program does not run" 7633 ;; 7634 esac 7635fi 7636 7637 7638 7639 7640if test "$gmp_prog_cc_works" = yes; then 7641 # remove anything that might look like compiler output to our "||" expression 7642 rm -f conftest* a.out b.out a.exe a_out.exe 7643 cat >conftest.c <<EOF 7644/* The following provokes an internal compiler error on powerpc-apple-darwin. 7645 Extracted from mpz/cfdiv_q_2exp.c. Causes Apple's gcc 3.3 build 1640 and 7646 1666 to get an ICE with -O1 -mpowerpc64. */ 7647 7648#if defined (__GNUC__) && ! defined (__cplusplus) 7649f(int u){int i;long long x;x=u?~0:0;if(x)for(i=0;i<9;i++);x&=g();if(x)g();} 7650g(){} 7651#else 7652int dummy; 7653#endif 7654 7655int main () { return 0; } 7656EOF 7657 echo "Test compile: long long reliability test 2" >&5 7658 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5" 7659 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 7660 (eval $gmp_compile) 2>&5 7661 ac_status=$? 7662 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7663 test $ac_status = 0; }; then 7664 cc_works_part=yes 7665 if test "$cross_compiling" = no; then 7666 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' 7667 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 7668 (eval $ac_try) 2>&5 7669 ac_status=$? 7670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7671 test $ac_status = 0; }; }; then :; 7672 else 7673 cc_works_part=norun 7674 fi 7675 fi 7676 else 7677 cc_works_part=no 7678 fi 7679 if test "$cc_works_part" != yes; then 7680 echo "failed program was:" >&5 7681 cat conftest.c >&5 7682 fi 7683 rm -f conftest* a.out b.out a.exe a_out.exe 7684 case $cc_works_part in 7685 yes) 7686 7687 ;; 7688 no) 7689 gmp_prog_cc_works="no, long long reliability test 2" 7690 ;; 7691 norun) 7692 gmp_prog_cc_works="no, long long reliability test 2, program does not run" 7693 ;; 7694 esac 7695fi 7696 7697 7698 7699 7700if test "$gmp_prog_cc_works" = yes; then 7701 # remove anything that might look like compiler output to our "||" expression 7702 rm -f conftest* a.out b.out a.exe a_out.exe 7703 cat >conftest.c <<EOF 7704/* The following is mis-compiled by HP ia-64 cc version 7705 cc: HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003] 7706 under "cc +O3", both in +DD32 and +DD64 modes. The mpn_lshift_com gets 7707 inlined and its return value somehow botched to be 0 instead of 1. This 7708 arises in the real mpn_lshift_com in mul_fft.c. A lower optimization 7709 level, like +O2 seems ok. This code needs to be run to show the problem, 7710 but that's fine, the offending cc is a native-only compiler so we don't 7711 have to worry about cross compiling. */ 7712 7713#if ! defined (__cplusplus) 7714unsigned long 7715lshift_com (rp, up, n, cnt) 7716 unsigned long *rp; 7717 unsigned long *up; 7718 long n; 7719 unsigned cnt; 7720{ 7721 unsigned long retval, high_limb, low_limb; 7722 unsigned tnc; 7723 long i; 7724 tnc = 8 * sizeof (unsigned long) - cnt; 7725 low_limb = *up++; 7726 retval = low_limb >> tnc; 7727 high_limb = low_limb << cnt; 7728 for (i = n - 1; i != 0; i--) 7729 { 7730 low_limb = *up++; 7731 *rp++ = ~(high_limb | (low_limb >> tnc)); 7732 high_limb = low_limb << cnt; 7733 } 7734 return retval; 7735} 7736int 7737main () 7738{ 7739 unsigned long cy, rp[2], up[2]; 7740 up[0] = ~ 0L; 7741 up[1] = 0; 7742 cy = lshift_com (rp, up, 2L, 1); 7743 if (cy != 1L) 7744 return 1; 7745 return 0; 7746} 7747#else 7748int 7749main () 7750{ 7751 return 0; 7752} 7753#endif 7754 7755EOF 7756 echo "Test compile: mpn_lshift_com optimization" >&5 7757 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5" 7758 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 7759 (eval $gmp_compile) 2>&5 7760 ac_status=$? 7761 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7762 test $ac_status = 0; }; then 7763 cc_works_part=yes 7764 if test "$cross_compiling" = no; then 7765 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' 7766 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 7767 (eval $ac_try) 2>&5 7768 ac_status=$? 7769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7770 test $ac_status = 0; }; }; then :; 7771 else 7772 cc_works_part=norun 7773 fi 7774 fi 7775 else 7776 cc_works_part=no 7777 fi 7778 if test "$cc_works_part" != yes; then 7779 echo "failed program was:" >&5 7780 cat conftest.c >&5 7781 fi 7782 rm -f conftest* a.out b.out a.exe a_out.exe 7783 case $cc_works_part in 7784 yes) 7785 7786 ;; 7787 no) 7788 gmp_prog_cc_works="no, mpn_lshift_com optimization" 7789 ;; 7790 norun) 7791 gmp_prog_cc_works="no, mpn_lshift_com optimization, program does not run" 7792 ;; 7793 esac 7794fi 7795 7796 7797 7798if test "$gmp_prog_cc_works" = yes; then 7799 # remove anything that might look like compiler output to our "||" expression 7800 rm -f conftest* a.out b.out a.exe a_out.exe 7801 cat >conftest.c <<EOF 7802/* The following is mis-compiled by Intel ia-64 icc version 1.8 under 7803 "icc -O3", After several calls, the function writes parial garbage to 7804 the result vector. Perhaps relates to the chk.a.nc insn. This code needs 7805 to be run to show the problem, but that's fine, the offending cc is a 7806 native-only compiler so we don't have to worry about cross compiling. */ 7807 7808#if ! defined (__cplusplus) 7809#include <stdlib.h> 7810void 7811lshift_com (rp, up, n, cnt) 7812 unsigned long *rp; 7813 unsigned long *up; 7814 long n; 7815 unsigned cnt; 7816{ 7817 unsigned long high_limb, low_limb; 7818 unsigned tnc; 7819 long i; 7820 up += n; 7821 rp += n; 7822 tnc = 8 * sizeof (unsigned long) - cnt; 7823 low_limb = *--up; 7824 high_limb = low_limb << cnt; 7825 for (i = n - 1; i != 0; i--) 7826 { 7827 low_limb = *--up; 7828 *--rp = ~(high_limb | (low_limb >> tnc)); 7829 high_limb = low_limb << cnt; 7830 } 7831 *--rp = ~high_limb; 7832} 7833int 7834main () 7835{ 7836 unsigned long *r, *r2; 7837 unsigned long a[88 + 1]; 7838 long i; 7839 for (i = 0; i < 88 + 1; i++) 7840 a[i] = ~0L; 7841 r = malloc (10000 * sizeof (unsigned long)); 7842 r2 = r; 7843 for (i = 0; i < 528; i += 22) 7844 { 7845 lshift_com (r2, a, 7846 i / (8 * sizeof (unsigned long)) + 1, 7847 i % (8 * sizeof (unsigned long))); 7848 r2 += 88 + 1; 7849 } 7850 if (r[2048] != 0 || r[2049] != 0 || r[2050] != 0 || r[2051] != 0 || 7851 r[2052] != 0 || r[2053] != 0 || r[2054] != 0) 7852 abort (); 7853 return 0; 7854} 7855#else 7856int 7857main () 7858{ 7859 return 0; 7860} 7861#endif 7862 7863EOF 7864 echo "Test compile: mpn_lshift_com optimization 2" >&5 7865 gmp_compile="$cc $cflags $cppflags $flag conftest.c >&5" 7866 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 7867 (eval $gmp_compile) 2>&5 7868 ac_status=$? 7869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7870 test $ac_status = 0; }; then 7871 cc_works_part=yes 7872 if test "$cross_compiling" = no; then 7873 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' 7874 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 7875 (eval $ac_try) 2>&5 7876 ac_status=$? 7877 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7878 test $ac_status = 0; }; }; then :; 7879 else 7880 cc_works_part=norun 7881 fi 7882 fi 7883 else 7884 cc_works_part=no 7885 fi 7886 if test "$cc_works_part" != yes; then 7887 echo "failed program was:" >&5 7888 cat conftest.c >&5 7889 fi 7890 rm -f conftest* a.out b.out a.exe a_out.exe 7891 case $cc_works_part in 7892 yes) 7893 7894 ;; 7895 no) 7896 gmp_prog_cc_works="no, mpn_lshift_com optimization 2" 7897 ;; 7898 norun) 7899 gmp_prog_cc_works="no, mpn_lshift_com optimization 2, program does not run" 7900 ;; 7901 esac 7902fi 7903 7904 7905 7906 7907# A certain _GLOBAL_OFFSET_TABLE_ problem in past versions of gas, tickled 7908# by recent versions of gcc. 7909# 7910if test "$gmp_prog_cc_works" = yes; then 7911 case $host in 7912 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-*) 7913 # this problem only arises in PIC code, so don't need to test when 7914 # --disable-shared. We don't necessarily have $enable_shared set to 7915 # yes at this point, it will still be unset for the default (which is 7916 # yes); hence the use of "!= no". 7917 if test "$enable_shared" != no; then 7918 echo "Testing gcc GOT with eax emitted" >&5 7919cat >conftest.c <<\EOF 7920int foo; 7921int bar () { return foo; } 7922EOF 7923tmp_got_emitted=no 7924gmp_compile="$cc $cflags $cppflags $flag -fPIC -S conftest.c >&5 2>&1" 7925if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 7926 (eval $gmp_compile) 2>&5 7927 ac_status=$? 7928 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7929 test $ac_status = 0; }; then 7930 if grep "addl.*_GLOBAL_OFFSET_TABLE_.*eax" conftest.s >/dev/null; then 7931 tmp_got_emitted=yes 7932 fi 7933fi 7934rm -f conftest.* 7935echo "Result: $tmp_got_emitted" >&5 7936if test "$tmp_got_emitted" = yes; then 7937 echo "Testing gas GOT with eax good" >&5 7938cat >conftest.awk <<\EOF 7939BEGIN { 7940 want[0] = "001" 7941 want[1] = "043" 7942 want[2] = "105" 7943 want[3] = "147" 7944 want[4] = "211" 7945 want[5] = "253" 7946 want[6] = "315" 7947 want[7] = "357" 7948 7949 want[8] = "005" 7950 want[9] = "002" 7951 want[10] = "000" 7952 want[11] = "000" 7953 want[12] = "000" 7954 7955 want[13] = "376" 7956 want[14] = "334" 7957 want[15] = "272" 7958 want[16] = "230" 7959 want[17] = "166" 7960 want[18] = "124" 7961 want[19] = "062" 7962 want[20] = "020" 7963 7964 result = "yes" 7965} 7966{ 7967 for (f = 2; f <= NF; f++) 7968 { 7969 for (i = 0; i < 20; i++) 7970 got[i] = got[i+1]; 7971 got[20] = $f; 7972 7973 found = 1 7974 for (i = 0; i < 21; i++) 7975 if (got[i] != want[i]) 7976 { 7977 found = 0 7978 break 7979 } 7980 if (found) 7981 { 7982 result = "no" 7983 exit 7984 } 7985 } 7986} 7987END { 7988 print result 7989} 7990EOF 7991cat >conftest.s <<\EOF 7992 .text 7993 .byte 1, 35, 69, 103, 137, 171, 205, 239 7994 addl $_GLOBAL_OFFSET_TABLE_, %eax 7995 .byte 254, 220, 186, 152, 118, 84, 50, 16 7996EOF 7997tmp_got_good=yes 7998gmp_compile="$cc $cflags $cppflags $flag -fPIC -o conftest.o -c conftest.s >&5 2>&1" 7999if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 8000 (eval $gmp_compile) 2>&5 8001 ac_status=$? 8002 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8003 test $ac_status = 0; }; then 8004 tmp_got_good=`od -b conftest.o | $AWK -f conftest.awk` 8005fi 8006rm -f conftest.* 8007echo "Result: $tmp_got_good" >&5 8008if test "$tmp_got_good" = no; then 8009 gmp_prog_cc_works="no, bad gas GOT with eax" 8010else 8011 : 8012fi 8013 8014else 8015 : 8016fi 8017 8018 fi 8019 ;; 8020 esac 8021fi 8022 8023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_prog_cc_works" >&5 8024$as_echo "$gmp_prog_cc_works" >&6; } 8025case $gmp_prog_cc_works in 8026 yes) 8027 cflags="$cflags $flag" 8028 break 8029 ;; 8030 *) 8031 8032 ;; 8033esac 8034 8035 done 8036 done 8037 fi 8038 8039 ABI="$abi" 8040 CC="$cc" 8041 CFLAGS="$cflags" 8042 CPPFLAGS="$cppflags" 8043 8044 8045 # Could easily have this in config.h too, if desired. 8046 ABI_nodots=`echo $ABI | sed 's/\./_/'` 8047 8048echo "define_not_for_expansion(\`HAVE_ABI_$ABI_nodots')" >> $gmp_tmpconfigm4p 8049 8050 8051 8052 # GMP_LDFLAGS substitution, selected according to ABI. 8053 # These are needed on libgmp.la and libmp.la, but currently not on 8054 # convenience libraries like tune/libspeed.la or mpz/libmpz.la. 8055 # 8056 eval GMP_LDFLAGS=\"\$${ccbase}${abi1}_ldflags\" 8057 test -n "$GMP_LDFLAGS" || eval GMP_LDFLAGS=\"\$${ccbase}${abi1}_ldflags\" 8058 8059 8060 8061 8062 # extra_functions, selected according to ABI 8063 eval tmp=\"\$extra_functions$abi1\" 8064 test -n "$tmp" || eval tmp=\"\$extra_functions$abi2\" 8065 extra_functions="$tmp" 8066 8067 8068 # Cycle counter, selected according to ABI. 8069 # 8070 eval tmp=\"\$SPEED_CYCLECOUNTER_OBJ$abi1\" 8071 test -n "$tmp" || eval tmp=\"\$SPEED_CYCLECOUNTER_OBJ$abi2\" 8072 SPEED_CYCLECOUNTER_OBJ="$tmp" 8073 eval tmp=\"\$cyclecounter_size$abi1\" 8074 test -n "$tmp" || eval tmp=\"\$cyclecounter_size$abi2\" 8075 cyclecounter_size="$tmp" 8076 8077 if test -n "$SPEED_CYCLECOUNTER_OBJ"; then 8078 8079cat >>confdefs.h <<_ACEOF 8080#define HAVE_SPEED_CYCLECOUNTER $cyclecounter_size 8081_ACEOF 8082 8083 fi 8084 8085 8086 8087 # Calling conventions checking, selected according to ABI. 8088 # 8089 eval tmp=\"\$CALLING_CONVENTIONS_OBJS$abi1\" 8090 test -n "$tmp" || eval tmp=\"\$CALLING_CONVENTIONS_OBJS$abi2\" 8091 CALLING_CONVENTIONS_OBJS="$tmp" 8092 8093 if test -n "$CALLING_CONVENTIONS_OBJS"; then 8094 8095$as_echo "#define HAVE_CALLING_CONVENTIONS 1" >>confdefs.h 8096 8097 fi 8098 8099 8100fi 8101 8102 8103# If the user gave an MPN_PATH, use that verbatim, otherwise choose 8104# according to the ABI and add "generic". 8105# 8106if test -n "$MPN_PATH"; then 8107 path="$MPN_PATH" 8108else 8109 eval tmp=\"\$path$abi1\" 8110 test -n "$tmp" || eval tmp=\"\$path$abi2\" 8111 path="$tmp generic" 8112fi 8113 8114 8115# Long long limb setup for gmp.h. 8116case $limb_chosen in 8117longlong) DEFN_LONG_LONG_LIMB="#define _LONG_LONG_LIMB 1" ;; 8118*) DEFN_LONG_LONG_LIMB="/* #undef _LONG_LONG_LIMB */" ;; 8119esac 8120 8121 8122 8123# The C compiler and preprocessor, put into ANSI mode if possible. 8124ac_ext=c 8125ac_cpp='$CPP $CPPFLAGS' 8126ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8127ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8128ac_compiler_gnu=$ac_cv_c_compiler_gnu 8129if test -n "$ac_tool_prefix"; then 8130 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 8131set dummy ${ac_tool_prefix}gcc; ac_word=$2 8132{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8133$as_echo_n "checking for $ac_word... " >&6; } 8134if test "${ac_cv_prog_CC+set}" = set; then : 8135 $as_echo_n "(cached) " >&6 8136else 8137 if test -n "$CC"; then 8138 ac_cv_prog_CC="$CC" # Let the user override the test. 8139else 8140as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8141for as_dir in $PATH 8142do 8143 IFS=$as_save_IFS 8144 test -z "$as_dir" && as_dir=. 8145 for ac_exec_ext in '' $ac_executable_extensions; do 8146 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8147 ac_cv_prog_CC="${ac_tool_prefix}gcc" 8148 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8149 break 2 8150 fi 8151done 8152 done 8153IFS=$as_save_IFS 8154 8155fi 8156fi 8157CC=$ac_cv_prog_CC 8158if test -n "$CC"; then 8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 8160$as_echo "$CC" >&6; } 8161else 8162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8163$as_echo "no" >&6; } 8164fi 8165 8166 8167fi 8168if test -z "$ac_cv_prog_CC"; then 8169 ac_ct_CC=$CC 8170 # Extract the first word of "gcc", so it can be a program name with args. 8171set dummy gcc; ac_word=$2 8172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8173$as_echo_n "checking for $ac_word... " >&6; } 8174if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 8175 $as_echo_n "(cached) " >&6 8176else 8177 if test -n "$ac_ct_CC"; then 8178 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 8179else 8180as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8181for as_dir in $PATH 8182do 8183 IFS=$as_save_IFS 8184 test -z "$as_dir" && as_dir=. 8185 for ac_exec_ext in '' $ac_executable_extensions; do 8186 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8187 ac_cv_prog_ac_ct_CC="gcc" 8188 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8189 break 2 8190 fi 8191done 8192 done 8193IFS=$as_save_IFS 8194 8195fi 8196fi 8197ac_ct_CC=$ac_cv_prog_ac_ct_CC 8198if test -n "$ac_ct_CC"; then 8199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 8200$as_echo "$ac_ct_CC" >&6; } 8201else 8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8203$as_echo "no" >&6; } 8204fi 8205 8206 if test "x$ac_ct_CC" = x; then 8207 CC="" 8208 else 8209 case $cross_compiling:$ac_tool_warned in 8210yes:) 8211{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8212$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8213ac_tool_warned=yes ;; 8214esac 8215 CC=$ac_ct_CC 8216 fi 8217else 8218 CC="$ac_cv_prog_CC" 8219fi 8220 8221if test -z "$CC"; then 8222 if test -n "$ac_tool_prefix"; then 8223 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 8224set dummy ${ac_tool_prefix}cc; ac_word=$2 8225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8226$as_echo_n "checking for $ac_word... " >&6; } 8227if test "${ac_cv_prog_CC+set}" = set; then : 8228 $as_echo_n "(cached) " >&6 8229else 8230 if test -n "$CC"; then 8231 ac_cv_prog_CC="$CC" # Let the user override the test. 8232else 8233as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8234for as_dir in $PATH 8235do 8236 IFS=$as_save_IFS 8237 test -z "$as_dir" && as_dir=. 8238 for ac_exec_ext in '' $ac_executable_extensions; do 8239 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8240 ac_cv_prog_CC="${ac_tool_prefix}cc" 8241 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8242 break 2 8243 fi 8244done 8245 done 8246IFS=$as_save_IFS 8247 8248fi 8249fi 8250CC=$ac_cv_prog_CC 8251if test -n "$CC"; then 8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 8253$as_echo "$CC" >&6; } 8254else 8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8256$as_echo "no" >&6; } 8257fi 8258 8259 8260 fi 8261fi 8262if test -z "$CC"; then 8263 # Extract the first word of "cc", so it can be a program name with args. 8264set dummy cc; ac_word=$2 8265{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8266$as_echo_n "checking for $ac_word... " >&6; } 8267if test "${ac_cv_prog_CC+set}" = set; then : 8268 $as_echo_n "(cached) " >&6 8269else 8270 if test -n "$CC"; then 8271 ac_cv_prog_CC="$CC" # Let the user override the test. 8272else 8273 ac_prog_rejected=no 8274as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8275for as_dir in $PATH 8276do 8277 IFS=$as_save_IFS 8278 test -z "$as_dir" && as_dir=. 8279 for ac_exec_ext in '' $ac_executable_extensions; do 8280 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8281 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 8282 ac_prog_rejected=yes 8283 continue 8284 fi 8285 ac_cv_prog_CC="cc" 8286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8287 break 2 8288 fi 8289done 8290 done 8291IFS=$as_save_IFS 8292 8293if test $ac_prog_rejected = yes; then 8294 # We found a bogon in the path, so make sure we never use it. 8295 set dummy $ac_cv_prog_CC 8296 shift 8297 if test $# != 0; then 8298 # We chose a different compiler from the bogus one. 8299 # However, it has the same basename, so the bogon will be chosen 8300 # first if we set CC to just the basename; use the full file name. 8301 shift 8302 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 8303 fi 8304fi 8305fi 8306fi 8307CC=$ac_cv_prog_CC 8308if test -n "$CC"; then 8309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 8310$as_echo "$CC" >&6; } 8311else 8312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8313$as_echo "no" >&6; } 8314fi 8315 8316 8317fi 8318if test -z "$CC"; then 8319 if test -n "$ac_tool_prefix"; then 8320 for ac_prog in cl.exe 8321 do 8322 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 8323set dummy $ac_tool_prefix$ac_prog; ac_word=$2 8324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8325$as_echo_n "checking for $ac_word... " >&6; } 8326if test "${ac_cv_prog_CC+set}" = set; then : 8327 $as_echo_n "(cached) " >&6 8328else 8329 if test -n "$CC"; then 8330 ac_cv_prog_CC="$CC" # Let the user override the test. 8331else 8332as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8333for as_dir in $PATH 8334do 8335 IFS=$as_save_IFS 8336 test -z "$as_dir" && as_dir=. 8337 for ac_exec_ext in '' $ac_executable_extensions; do 8338 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8339 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 8340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8341 break 2 8342 fi 8343done 8344 done 8345IFS=$as_save_IFS 8346 8347fi 8348fi 8349CC=$ac_cv_prog_CC 8350if test -n "$CC"; then 8351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 8352$as_echo "$CC" >&6; } 8353else 8354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8355$as_echo "no" >&6; } 8356fi 8357 8358 8359 test -n "$CC" && break 8360 done 8361fi 8362if test -z "$CC"; then 8363 ac_ct_CC=$CC 8364 for ac_prog in cl.exe 8365do 8366 # Extract the first word of "$ac_prog", so it can be a program name with args. 8367set dummy $ac_prog; ac_word=$2 8368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8369$as_echo_n "checking for $ac_word... " >&6; } 8370if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 8371 $as_echo_n "(cached) " >&6 8372else 8373 if test -n "$ac_ct_CC"; then 8374 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 8375else 8376as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8377for as_dir in $PATH 8378do 8379 IFS=$as_save_IFS 8380 test -z "$as_dir" && as_dir=. 8381 for ac_exec_ext in '' $ac_executable_extensions; do 8382 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8383 ac_cv_prog_ac_ct_CC="$ac_prog" 8384 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8385 break 2 8386 fi 8387done 8388 done 8389IFS=$as_save_IFS 8390 8391fi 8392fi 8393ac_ct_CC=$ac_cv_prog_ac_ct_CC 8394if test -n "$ac_ct_CC"; then 8395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 8396$as_echo "$ac_ct_CC" >&6; } 8397else 8398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8399$as_echo "no" >&6; } 8400fi 8401 8402 8403 test -n "$ac_ct_CC" && break 8404done 8405 8406 if test "x$ac_ct_CC" = x; then 8407 CC="" 8408 else 8409 case $cross_compiling:$ac_tool_warned in 8410yes:) 8411{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8412$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8413ac_tool_warned=yes ;; 8414esac 8415 CC=$ac_ct_CC 8416 fi 8417fi 8418 8419fi 8420 8421 8422test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8423$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8424as_fn_error "no acceptable C compiler found in \$PATH 8425See \`config.log' for more details." "$LINENO" 5; } 8426 8427# Provide some information about the compiler. 8428$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 8429set X $ac_compile 8430ac_compiler=$2 8431for ac_option in --version -v -V -qversion; do 8432 { { ac_try="$ac_compiler $ac_option >&5" 8433case "(($ac_try" in 8434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8435 *) ac_try_echo=$ac_try;; 8436esac 8437eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 8438$as_echo "$ac_try_echo"; } >&5 8439 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 8440 ac_status=$? 8441 if test -s conftest.err; then 8442 sed '10a\ 8443... rest of stderr output deleted ... 8444 10q' conftest.err >conftest.er1 8445 cat conftest.er1 >&5 8446 fi 8447 rm -f conftest.er1 conftest.err 8448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8449 test $ac_status = 0; } 8450done 8451 8452cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8453/* end confdefs.h. */ 8454 8455int 8456main () 8457{ 8458 8459 ; 8460 return 0; 8461} 8462_ACEOF 8463ac_clean_files_save=$ac_clean_files 8464ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 8465# Try to create an executable without -o first, disregard a.out. 8466# It will help us diagnose broken compilers, and finding out an intuition 8467# of exeext. 8468{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 8469$as_echo_n "checking whether the C compiler works... " >&6; } 8470ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 8471 8472# The possible output files: 8473ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 8474 8475ac_rmfiles= 8476for ac_file in $ac_files 8477do 8478 case $ac_file in 8479 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 8480 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 8481 esac 8482done 8483rm -f $ac_rmfiles 8484 8485if { { ac_try="$ac_link_default" 8486case "(($ac_try" in 8487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8488 *) ac_try_echo=$ac_try;; 8489esac 8490eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 8491$as_echo "$ac_try_echo"; } >&5 8492 (eval "$ac_link_default") 2>&5 8493 ac_status=$? 8494 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8495 test $ac_status = 0; }; then : 8496 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 8497# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 8498# in a Makefile. We should not override ac_cv_exeext if it was cached, 8499# so that the user can short-circuit this test for compilers unknown to 8500# Autoconf. 8501for ac_file in $ac_files '' 8502do 8503 test -f "$ac_file" || continue 8504 case $ac_file in 8505 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 8506 ;; 8507 [ab].out ) 8508 # We found the default executable, but exeext='' is most 8509 # certainly right. 8510 break;; 8511 *.* ) 8512 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 8513 then :; else 8514 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 8515 fi 8516 # We set ac_cv_exeext here because the later test for it is not 8517 # safe: cross compilers may not add the suffix if given an `-o' 8518 # argument, so we may need to know it at that point already. 8519 # Even if this section looks crufty: it has the advantage of 8520 # actually working. 8521 break;; 8522 * ) 8523 break;; 8524 esac 8525done 8526test "$ac_cv_exeext" = no && ac_cv_exeext= 8527 8528else 8529 ac_file='' 8530fi 8531if test -z "$ac_file"; then : 8532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8533$as_echo "no" >&6; } 8534$as_echo "$as_me: failed program was:" >&5 8535sed 's/^/| /' conftest.$ac_ext >&5 8536 8537{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8538$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8539{ as_fn_set_status 77 8540as_fn_error "C compiler cannot create executables 8541See \`config.log' for more details." "$LINENO" 5; }; } 8542else 8543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 8544$as_echo "yes" >&6; } 8545fi 8546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 8547$as_echo_n "checking for C compiler default output file name... " >&6; } 8548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 8549$as_echo "$ac_file" >&6; } 8550ac_exeext=$ac_cv_exeext 8551 8552rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 8553ac_clean_files=$ac_clean_files_save 8554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 8555$as_echo_n "checking for suffix of executables... " >&6; } 8556if { { ac_try="$ac_link" 8557case "(($ac_try" in 8558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8559 *) ac_try_echo=$ac_try;; 8560esac 8561eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 8562$as_echo "$ac_try_echo"; } >&5 8563 (eval "$ac_link") 2>&5 8564 ac_status=$? 8565 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8566 test $ac_status = 0; }; then : 8567 # If both `conftest.exe' and `conftest' are `present' (well, observable) 8568# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 8569# work properly (i.e., refer to `conftest.exe'), while it won't with 8570# `rm'. 8571for ac_file in conftest.exe conftest conftest.*; do 8572 test -f "$ac_file" || continue 8573 case $ac_file in 8574 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 8575 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 8576 break;; 8577 * ) break;; 8578 esac 8579done 8580else 8581 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8582$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8583as_fn_error "cannot compute suffix of executables: cannot compile and link 8584See \`config.log' for more details." "$LINENO" 5; } 8585fi 8586rm -f conftest conftest$ac_cv_exeext 8587{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 8588$as_echo "$ac_cv_exeext" >&6; } 8589 8590rm -f conftest.$ac_ext 8591EXEEXT=$ac_cv_exeext 8592ac_exeext=$EXEEXT 8593cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8594/* end confdefs.h. */ 8595#include <stdio.h> 8596int 8597main () 8598{ 8599FILE *f = fopen ("conftest.out", "w"); 8600 return ferror (f) || fclose (f) != 0; 8601 8602 ; 8603 return 0; 8604} 8605_ACEOF 8606ac_clean_files="$ac_clean_files conftest.out" 8607# Check that the compiler produces executables we can run. If not, either 8608# the compiler is broken, or we cross compile. 8609{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 8610$as_echo_n "checking whether we are cross compiling... " >&6; } 8611if test "$cross_compiling" != yes; then 8612 { { ac_try="$ac_link" 8613case "(($ac_try" in 8614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8615 *) ac_try_echo=$ac_try;; 8616esac 8617eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 8618$as_echo "$ac_try_echo"; } >&5 8619 (eval "$ac_link") 2>&5 8620 ac_status=$? 8621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8622 test $ac_status = 0; } 8623 if { ac_try='./conftest$ac_cv_exeext' 8624 { { case "(($ac_try" in 8625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8626 *) ac_try_echo=$ac_try;; 8627esac 8628eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 8629$as_echo "$ac_try_echo"; } >&5 8630 (eval "$ac_try") 2>&5 8631 ac_status=$? 8632 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8633 test $ac_status = 0; }; }; then 8634 cross_compiling=no 8635 else 8636 if test "$cross_compiling" = maybe; then 8637 cross_compiling=yes 8638 else 8639 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8640$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8641as_fn_error "cannot run C compiled programs. 8642If you meant to cross compile, use \`--host'. 8643See \`config.log' for more details." "$LINENO" 5; } 8644 fi 8645 fi 8646fi 8647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 8648$as_echo "$cross_compiling" >&6; } 8649 8650rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 8651ac_clean_files=$ac_clean_files_save 8652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 8653$as_echo_n "checking for suffix of object files... " >&6; } 8654if test "${ac_cv_objext+set}" = set; then : 8655 $as_echo_n "(cached) " >&6 8656else 8657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8658/* end confdefs.h. */ 8659 8660int 8661main () 8662{ 8663 8664 ; 8665 return 0; 8666} 8667_ACEOF 8668rm -f conftest.o conftest.obj 8669if { { ac_try="$ac_compile" 8670case "(($ac_try" in 8671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 8672 *) ac_try_echo=$ac_try;; 8673esac 8674eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 8675$as_echo "$ac_try_echo"; } >&5 8676 (eval "$ac_compile") 2>&5 8677 ac_status=$? 8678 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8679 test $ac_status = 0; }; then : 8680 for ac_file in conftest.o conftest.obj conftest.*; do 8681 test -f "$ac_file" || continue; 8682 case $ac_file in 8683 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 8684 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 8685 break;; 8686 esac 8687done 8688else 8689 $as_echo "$as_me: failed program was:" >&5 8690sed 's/^/| /' conftest.$ac_ext >&5 8691 8692{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 8693$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 8694as_fn_error "cannot compute suffix of object files: cannot compile 8695See \`config.log' for more details." "$LINENO" 5; } 8696fi 8697rm -f conftest.$ac_cv_objext conftest.$ac_ext 8698fi 8699{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 8700$as_echo "$ac_cv_objext" >&6; } 8701OBJEXT=$ac_cv_objext 8702ac_objext=$OBJEXT 8703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 8704$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 8705if test "${ac_cv_c_compiler_gnu+set}" = set; then : 8706 $as_echo_n "(cached) " >&6 8707else 8708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8709/* end confdefs.h. */ 8710 8711int 8712main () 8713{ 8714#ifndef __GNUC__ 8715 choke me 8716#endif 8717 8718 ; 8719 return 0; 8720} 8721_ACEOF 8722if ac_fn_c_try_compile "$LINENO"; then : 8723 ac_compiler_gnu=yes 8724else 8725 ac_compiler_gnu=no 8726fi 8727rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8728ac_cv_c_compiler_gnu=$ac_compiler_gnu 8729 8730fi 8731{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 8732$as_echo "$ac_cv_c_compiler_gnu" >&6; } 8733if test $ac_compiler_gnu = yes; then 8734 GCC=yes 8735else 8736 GCC= 8737fi 8738ac_test_CFLAGS=${CFLAGS+set} 8739ac_save_CFLAGS=$CFLAGS 8740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 8741$as_echo_n "checking whether $CC accepts -g... " >&6; } 8742if test "${ac_cv_prog_cc_g+set}" = set; then : 8743 $as_echo_n "(cached) " >&6 8744else 8745 ac_save_c_werror_flag=$ac_c_werror_flag 8746 ac_c_werror_flag=yes 8747 ac_cv_prog_cc_g=no 8748 CFLAGS="-g" 8749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8750/* end confdefs.h. */ 8751 8752int 8753main () 8754{ 8755 8756 ; 8757 return 0; 8758} 8759_ACEOF 8760if ac_fn_c_try_compile "$LINENO"; then : 8761 ac_cv_prog_cc_g=yes 8762else 8763 CFLAGS="" 8764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8765/* end confdefs.h. */ 8766 8767int 8768main () 8769{ 8770 8771 ; 8772 return 0; 8773} 8774_ACEOF 8775if ac_fn_c_try_compile "$LINENO"; then : 8776 8777else 8778 ac_c_werror_flag=$ac_save_c_werror_flag 8779 CFLAGS="-g" 8780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8781/* end confdefs.h. */ 8782 8783int 8784main () 8785{ 8786 8787 ; 8788 return 0; 8789} 8790_ACEOF 8791if ac_fn_c_try_compile "$LINENO"; then : 8792 ac_cv_prog_cc_g=yes 8793fi 8794rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8795fi 8796rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8797fi 8798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 8799 ac_c_werror_flag=$ac_save_c_werror_flag 8800fi 8801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 8802$as_echo "$ac_cv_prog_cc_g" >&6; } 8803if test "$ac_test_CFLAGS" = set; then 8804 CFLAGS=$ac_save_CFLAGS 8805elif test $ac_cv_prog_cc_g = yes; then 8806 if test "$GCC" = yes; then 8807 CFLAGS="-g -O2" 8808 else 8809 CFLAGS="-g" 8810 fi 8811else 8812 if test "$GCC" = yes; then 8813 CFLAGS="-O2" 8814 else 8815 CFLAGS= 8816 fi 8817fi 8818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 8819$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 8820if test "${ac_cv_prog_cc_c89+set}" = set; then : 8821 $as_echo_n "(cached) " >&6 8822else 8823 ac_cv_prog_cc_c89=no 8824ac_save_CC=$CC 8825cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8826/* end confdefs.h. */ 8827#include <stdarg.h> 8828#include <stdio.h> 8829#include <sys/types.h> 8830#include <sys/stat.h> 8831/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 8832struct buf { int x; }; 8833FILE * (*rcsopen) (struct buf *, struct stat *, int); 8834static char *e (p, i) 8835 char **p; 8836 int i; 8837{ 8838 return p[i]; 8839} 8840static char *f (char * (*g) (char **, int), char **p, ...) 8841{ 8842 char *s; 8843 va_list v; 8844 va_start (v,p); 8845 s = g (p, va_arg (v,int)); 8846 va_end (v); 8847 return s; 8848} 8849 8850/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 8851 function prototypes and stuff, but not '\xHH' hex character constants. 8852 These don't provoke an error unfortunately, instead are silently treated 8853 as 'x'. The following induces an error, until -std is added to get 8854 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 8855 array size at least. It's necessary to write '\x00'==0 to get something 8856 that's true only with -std. */ 8857int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 8858 8859/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 8860 inside strings and character constants. */ 8861#define FOO(x) 'x' 8862int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 8863 8864int test (int i, double x); 8865struct s1 {int (*f) (int a);}; 8866struct s2 {int (*f) (double a);}; 8867int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 8868int argc; 8869char **argv; 8870int 8871main () 8872{ 8873return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 8874 ; 8875 return 0; 8876} 8877_ACEOF 8878for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 8879 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 8880do 8881 CC="$ac_save_CC $ac_arg" 8882 if ac_fn_c_try_compile "$LINENO"; then : 8883 ac_cv_prog_cc_c89=$ac_arg 8884fi 8885rm -f core conftest.err conftest.$ac_objext 8886 test "x$ac_cv_prog_cc_c89" != "xno" && break 8887done 8888rm -f conftest.$ac_ext 8889CC=$ac_save_CC 8890 8891fi 8892# AC_CACHE_VAL 8893case "x$ac_cv_prog_cc_c89" in 8894 x) 8895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 8896$as_echo "none needed" >&6; } ;; 8897 xno) 8898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 8899$as_echo "unsupported" >&6; } ;; 8900 *) 8901 CC="$CC $ac_cv_prog_cc_c89" 8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 8903$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 8904esac 8905if test "x$ac_cv_prog_cc_c89" != xno; then : 8906 8907fi 8908 8909ac_ext=c 8910ac_cpp='$CPP $CPPFLAGS' 8911ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8912ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8913ac_compiler_gnu=$ac_cv_c_compiler_gnu 8914 8915 case $ac_cv_prog_cc_stdc in #( 8916 no) : 8917 ac_cv_prog_cc_c99=no; ac_cv_prog_cc_c89=no ;; #( 8918 *) : 8919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 8920$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 8921if test "${ac_cv_prog_cc_c99+set}" = set; then : 8922 $as_echo_n "(cached) " >&6 8923else 8924 ac_cv_prog_cc_c99=no 8925ac_save_CC=$CC 8926cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8927/* end confdefs.h. */ 8928#include <stdarg.h> 8929#include <stdbool.h> 8930#include <stdlib.h> 8931#include <wchar.h> 8932#include <stdio.h> 8933 8934// Check varargs macros. These examples are taken from C99 6.10.3.5. 8935#define debug(...) fprintf (stderr, __VA_ARGS__) 8936#define showlist(...) puts (#__VA_ARGS__) 8937#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 8938static void 8939test_varargs_macros (void) 8940{ 8941 int x = 1234; 8942 int y = 5678; 8943 debug ("Flag"); 8944 debug ("X = %d\n", x); 8945 showlist (The first, second, and third items.); 8946 report (x>y, "x is %d but y is %d", x, y); 8947} 8948 8949// Check long long types. 8950#define BIG64 18446744073709551615ull 8951#define BIG32 4294967295ul 8952#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 8953#if !BIG_OK 8954 your preprocessor is broken; 8955#endif 8956#if BIG_OK 8957#else 8958 your preprocessor is broken; 8959#endif 8960static long long int bignum = -9223372036854775807LL; 8961static unsigned long long int ubignum = BIG64; 8962 8963struct incomplete_array 8964{ 8965 int datasize; 8966 double data[]; 8967}; 8968 8969struct named_init { 8970 int number; 8971 const wchar_t *name; 8972 double average; 8973}; 8974 8975typedef const char *ccp; 8976 8977static inline int 8978test_restrict (ccp restrict text) 8979{ 8980 // See if C++-style comments work. 8981 // Iterate through items via the restricted pointer. 8982 // Also check for declarations in for loops. 8983 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 8984 continue; 8985 return 0; 8986} 8987 8988// Check varargs and va_copy. 8989static void 8990test_varargs (const char *format, ...) 8991{ 8992 va_list args; 8993 va_start (args, format); 8994 va_list args_copy; 8995 va_copy (args_copy, args); 8996 8997 const char *str; 8998 int number; 8999 float fnumber; 9000 9001 while (*format) 9002 { 9003 switch (*format++) 9004 { 9005 case 's': // string 9006 str = va_arg (args_copy, const char *); 9007 break; 9008 case 'd': // int 9009 number = va_arg (args_copy, int); 9010 break; 9011 case 'f': // float 9012 fnumber = va_arg (args_copy, double); 9013 break; 9014 default: 9015 break; 9016 } 9017 } 9018 va_end (args_copy); 9019 va_end (args); 9020} 9021 9022int 9023main () 9024{ 9025 9026 // Check bool. 9027 _Bool success = false; 9028 9029 // Check restrict. 9030 if (test_restrict ("String literal") == 0) 9031 success = true; 9032 char *restrict newvar = "Another string"; 9033 9034 // Check varargs. 9035 test_varargs ("s, d' f .", "string", 65, 34.234); 9036 test_varargs_macros (); 9037 9038 // Check flexible array members. 9039 struct incomplete_array *ia = 9040 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 9041 ia->datasize = 10; 9042 for (int i = 0; i < ia->datasize; ++i) 9043 ia->data[i] = i * 1.234; 9044 9045 // Check named initializers. 9046 struct named_init ni = { 9047 .number = 34, 9048 .name = L"Test wide string", 9049 .average = 543.34343, 9050 }; 9051 9052 ni.number = 58; 9053 9054 int dynamic_array[ni.number]; 9055 dynamic_array[ni.number - 1] = 543; 9056 9057 // work around unused variable warnings 9058 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 9059 || dynamic_array[ni.number - 1] != 543); 9060 9061 ; 9062 return 0; 9063} 9064_ACEOF 9065for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 9066do 9067 CC="$ac_save_CC $ac_arg" 9068 if ac_fn_c_try_compile "$LINENO"; then : 9069 ac_cv_prog_cc_c99=$ac_arg 9070fi 9071rm -f core conftest.err conftest.$ac_objext 9072 test "x$ac_cv_prog_cc_c99" != "xno" && break 9073done 9074rm -f conftest.$ac_ext 9075CC=$ac_save_CC 9076 9077fi 9078# AC_CACHE_VAL 9079case "x$ac_cv_prog_cc_c99" in 9080 x) 9081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 9082$as_echo "none needed" >&6; } ;; 9083 xno) 9084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 9085$as_echo "unsupported" >&6; } ;; 9086 *) 9087 CC="$CC $ac_cv_prog_cc_c99" 9088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 9089$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 9090esac 9091if test "x$ac_cv_prog_cc_c99" != xno; then : 9092 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99 9093else 9094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 9095$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 9096if test "${ac_cv_prog_cc_c89+set}" = set; then : 9097 $as_echo_n "(cached) " >&6 9098else 9099 ac_cv_prog_cc_c89=no 9100ac_save_CC=$CC 9101cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9102/* end confdefs.h. */ 9103#include <stdarg.h> 9104#include <stdio.h> 9105#include <sys/types.h> 9106#include <sys/stat.h> 9107/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 9108struct buf { int x; }; 9109FILE * (*rcsopen) (struct buf *, struct stat *, int); 9110static char *e (p, i) 9111 char **p; 9112 int i; 9113{ 9114 return p[i]; 9115} 9116static char *f (char * (*g) (char **, int), char **p, ...) 9117{ 9118 char *s; 9119 va_list v; 9120 va_start (v,p); 9121 s = g (p, va_arg (v,int)); 9122 va_end (v); 9123 return s; 9124} 9125 9126/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 9127 function prototypes and stuff, but not '\xHH' hex character constants. 9128 These don't provoke an error unfortunately, instead are silently treated 9129 as 'x'. The following induces an error, until -std is added to get 9130 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 9131 array size at least. It's necessary to write '\x00'==0 to get something 9132 that's true only with -std. */ 9133int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 9134 9135/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 9136 inside strings and character constants. */ 9137#define FOO(x) 'x' 9138int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 9139 9140int test (int i, double x); 9141struct s1 {int (*f) (int a);}; 9142struct s2 {int (*f) (double a);}; 9143int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 9144int argc; 9145char **argv; 9146int 9147main () 9148{ 9149return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 9150 ; 9151 return 0; 9152} 9153_ACEOF 9154for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 9155 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 9156do 9157 CC="$ac_save_CC $ac_arg" 9158 if ac_fn_c_try_compile "$LINENO"; then : 9159 ac_cv_prog_cc_c89=$ac_arg 9160fi 9161rm -f core conftest.err conftest.$ac_objext 9162 test "x$ac_cv_prog_cc_c89" != "xno" && break 9163done 9164rm -f conftest.$ac_ext 9165CC=$ac_save_CC 9166 9167fi 9168# AC_CACHE_VAL 9169case "x$ac_cv_prog_cc_c89" in 9170 x) 9171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 9172$as_echo "none needed" >&6; } ;; 9173 xno) 9174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 9175$as_echo "unsupported" >&6; } ;; 9176 *) 9177 CC="$CC $ac_cv_prog_cc_c89" 9178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 9179$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 9180esac 9181if test "x$ac_cv_prog_cc_c89" != xno; then : 9182 ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89 9183else 9184 ac_cv_prog_cc_stdc=no 9185fi 9186 9187fi 9188 ;; 9189esac 9190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO Standard C" >&5 9191$as_echo_n "checking for $CC option to accept ISO Standard C... " >&6; } 9192 if test "${ac_cv_prog_cc_stdc+set}" = set; then : 9193 $as_echo_n "(cached) " >&6 9194fi 9195 9196 case $ac_cv_prog_cc_stdc in #( 9197 no) : 9198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 9199$as_echo "unsupported" >&6; } ;; #( 9200 '') : 9201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 9202$as_echo "none needed" >&6; } ;; #( 9203 *) : 9204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_stdc" >&5 9205$as_echo "$ac_cv_prog_cc_stdc" >&6; } ;; 9206esac 9207 9208ac_ext=c 9209ac_cpp='$CPP $CPPFLAGS' 9210ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9211ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9212ac_compiler_gnu=$ac_cv_c_compiler_gnu 9213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 9214$as_echo_n "checking how to run the C preprocessor... " >&6; } 9215# On Suns, sometimes $CPP names a directory. 9216if test -n "$CPP" && test -d "$CPP"; then 9217 CPP= 9218fi 9219if test -z "$CPP"; then 9220 if test "${ac_cv_prog_CPP+set}" = set; then : 9221 $as_echo_n "(cached) " >&6 9222else 9223 # Double quotes because CPP needs to be expanded 9224 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 9225 do 9226 ac_preproc_ok=false 9227for ac_c_preproc_warn_flag in '' yes 9228do 9229 # Use a header file that comes with gcc, so configuring glibc 9230 # with a fresh cross-compiler works. 9231 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9232 # <limits.h> exists even on freestanding compilers. 9233 # On the NeXT, cc -E runs the code through the compiler's parser, 9234 # not just through cpp. "Syntax error" is here to catch this case. 9235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9236/* end confdefs.h. */ 9237#ifdef __STDC__ 9238# include <limits.h> 9239#else 9240# include <assert.h> 9241#endif 9242 Syntax error 9243_ACEOF 9244if ac_fn_c_try_cpp "$LINENO"; then : 9245 9246else 9247 # Broken: fails on valid input. 9248continue 9249fi 9250rm -f conftest.err conftest.$ac_ext 9251 9252 # OK, works on sane cases. Now check whether nonexistent headers 9253 # can be detected and how. 9254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9255/* end confdefs.h. */ 9256#include <ac_nonexistent.h> 9257_ACEOF 9258if ac_fn_c_try_cpp "$LINENO"; then : 9259 # Broken: success on invalid input. 9260continue 9261else 9262 # Passes both tests. 9263ac_preproc_ok=: 9264break 9265fi 9266rm -f conftest.err conftest.$ac_ext 9267 9268done 9269# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 9270rm -f conftest.err conftest.$ac_ext 9271if $ac_preproc_ok; then : 9272 break 9273fi 9274 9275 done 9276 ac_cv_prog_CPP=$CPP 9277 9278fi 9279 CPP=$ac_cv_prog_CPP 9280else 9281 ac_cv_prog_CPP=$CPP 9282fi 9283{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 9284$as_echo "$CPP" >&6; } 9285ac_preproc_ok=false 9286for ac_c_preproc_warn_flag in '' yes 9287do 9288 # Use a header file that comes with gcc, so configuring glibc 9289 # with a fresh cross-compiler works. 9290 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9291 # <limits.h> exists even on freestanding compilers. 9292 # On the NeXT, cc -E runs the code through the compiler's parser, 9293 # not just through cpp. "Syntax error" is here to catch this case. 9294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9295/* end confdefs.h. */ 9296#ifdef __STDC__ 9297# include <limits.h> 9298#else 9299# include <assert.h> 9300#endif 9301 Syntax error 9302_ACEOF 9303if ac_fn_c_try_cpp "$LINENO"; then : 9304 9305else 9306 # Broken: fails on valid input. 9307continue 9308fi 9309rm -f conftest.err conftest.$ac_ext 9310 9311 # OK, works on sane cases. Now check whether nonexistent headers 9312 # can be detected and how. 9313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9314/* end confdefs.h. */ 9315#include <ac_nonexistent.h> 9316_ACEOF 9317if ac_fn_c_try_cpp "$LINENO"; then : 9318 # Broken: success on invalid input. 9319continue 9320else 9321 # Passes both tests. 9322ac_preproc_ok=: 9323break 9324fi 9325rm -f conftest.err conftest.$ac_ext 9326 9327done 9328# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 9329rm -f conftest.err conftest.$ac_ext 9330if $ac_preproc_ok; then : 9331 9332else 9333 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9334$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9335as_fn_error "C preprocessor \"$CPP\" fails sanity check 9336See \`config.log' for more details." "$LINENO" 5; } 9337fi 9338 9339ac_ext=c 9340ac_cpp='$CPP $CPPFLAGS' 9341ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9342ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9343ac_compiler_gnu=$ac_cv_c_compiler_gnu 9344 9345 9346 9347case $ac_cv_prog_cc_stdc in 9348 no) 9349 ;; 9350 *) 9351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9352/* end confdefs.h. */ 9353#define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */ 9354#define GMP_NAIL_BITS $GMP_NAIL_BITS 9355#define GMP_LIMB_BITS 123 9356$DEFN_LONG_LONG_LIMB 9357#include "$srcdir/gmp-h.in" 9358 9359#if ! __GMP_HAVE_PROTOTYPES 9360die die die 9361#endif 9362 9363int 9364main () 9365{ 9366 9367 ; 9368 return 0; 9369} 9370_ACEOF 9371if ac_fn_c_try_compile "$LINENO"; then : 9372 9373else 9374 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gmp.h doesnt recognise compiler as ANSI, prototypes and \"const\" will be unavailable" >&5 9375$as_echo "$as_me: WARNING: gmp.h doesnt recognise compiler as ANSI, prototypes and \"const\" will be unavailable" >&2;} 9376fi 9377rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9378 ;; 9379esac 9380 9381 9382 9383# The C compiler on the build system, and associated tests. 9384 9385if test -n "$CC_FOR_BUILD"; then 9386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system compiler $CC_FOR_BUILD" >&5 9387$as_echo_n "checking build system compiler $CC_FOR_BUILD... " >&6; } 9388# remove anything that might look like compiler output to our "||" expression 9389rm -f conftest* a.out b.out a.exe a_out.exe 9390cat >conftest.c <<EOF 9391int 9392main () 9393{ 9394 exit(0); 9395} 9396EOF 9397gmp_compile="$CC_FOR_BUILD conftest.c" 9398cc_for_build_works=no 9399if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 9400 (eval $gmp_compile) 2>&5 9401 ac_status=$? 9402 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9403 test $ac_status = 0; }; then 9404 if (./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest) >&5 2>&1; then 9405 cc_for_build_works=yes 9406 fi 9407fi 9408rm -f conftest* a.out b.out a.exe a_out.exe 9409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_for_build_works" >&5 9410$as_echo "$cc_for_build_works" >&6; } 9411if test "$cc_for_build_works" = yes; then 9412 : 9413else 9414 as_fn_error "Specified CC_FOR_BUILD doesn't seem to work" "$LINENO" 5 9415fi 9416 9417elif test -n "$HOST_CC"; then 9418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system compiler $HOST_CC" >&5 9419$as_echo_n "checking build system compiler $HOST_CC... " >&6; } 9420# remove anything that might look like compiler output to our "||" expression 9421rm -f conftest* a.out b.out a.exe a_out.exe 9422cat >conftest.c <<EOF 9423int 9424main () 9425{ 9426 exit(0); 9427} 9428EOF 9429gmp_compile="$HOST_CC conftest.c" 9430cc_for_build_works=no 9431if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 9432 (eval $gmp_compile) 2>&5 9433 ac_status=$? 9434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9435 test $ac_status = 0; }; then 9436 if (./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest) >&5 2>&1; then 9437 cc_for_build_works=yes 9438 fi 9439fi 9440rm -f conftest* a.out b.out a.exe a_out.exe 9441{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_for_build_works" >&5 9442$as_echo "$cc_for_build_works" >&6; } 9443if test "$cc_for_build_works" = yes; then 9444 CC_FOR_BUILD=$HOST_CC 9445else 9446 as_fn_error "Specified HOST_CC doesn't seem to work" "$LINENO" 5 9447fi 9448 9449else 9450 for i in "$CC" "$CC $CFLAGS $CPPFLAGS" cc gcc c89 c99; do 9451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system compiler $i" >&5 9452$as_echo_n "checking build system compiler $i... " >&6; } 9453# remove anything that might look like compiler output to our "||" expression 9454rm -f conftest* a.out b.out a.exe a_out.exe 9455cat >conftest.c <<EOF 9456int 9457main () 9458{ 9459 exit(0); 9460} 9461EOF 9462gmp_compile="$i conftest.c" 9463cc_for_build_works=no 9464if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 9465 (eval $gmp_compile) 2>&5 9466 ac_status=$? 9467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9468 test $ac_status = 0; }; then 9469 if (./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest) >&5 2>&1; then 9470 cc_for_build_works=yes 9471 fi 9472fi 9473rm -f conftest* a.out b.out a.exe a_out.exe 9474{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_for_build_works" >&5 9475$as_echo "$cc_for_build_works" >&6; } 9476if test "$cc_for_build_works" = yes; then 9477 CC_FOR_BUILD=$i 9478 break 9479else 9480 : 9481fi 9482 9483 done 9484 if test -z "$CC_FOR_BUILD"; then 9485 as_fn_error "Cannot find a build system compiler" "$LINENO" 5 9486 fi 9487fi 9488 9489 9490 9491 9492 9493{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system preprocessor" >&5 9494$as_echo_n "checking for build system preprocessor... " >&6; } 9495if test -z "$CPP_FOR_BUILD"; then 9496 if test "${gmp_cv_prog_cpp_for_build+set}" = set; then : 9497 $as_echo_n "(cached) " >&6 9498else 9499 cat >conftest.c <<EOF 9500#define FOO BAR 9501EOF 9502 for i in "$CC_FOR_BUILD -E" "$CC_FOR_BUILD -E -traditional-cpp" "/lib/cpp"; do 9503 gmp_compile="$i conftest.c" 9504 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 9505 (eval $gmp_compile) 2>&5 9506 ac_status=$? 9507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9508 test $ac_status = 0; } >&5 2>&1; then 9509 gmp_cv_prog_cpp_for_build=$i 9510 break 9511 fi 9512 done 9513 rm -f conftest* a.out b.out a.exe a_out.exe 9514 if test -z "$gmp_cv_prog_cpp_for_build"; then 9515 as_fn_error "Cannot find build system C preprocessor." "$LINENO" 5 9516 fi 9517 9518fi 9519 9520 CPP_FOR_BUILD=$gmp_cv_prog_cpp_for_build 9521fi 9522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP_FOR_BUILD" >&5 9523$as_echo "$CPP_FOR_BUILD" >&6; } 9524 9525 9526 9527 9528 9529{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system executable suffix" >&5 9530$as_echo_n "checking for build system executable suffix... " >&6; } 9531if test "${gmp_cv_prog_exeext_for_build+set}" = set; then : 9532 $as_echo_n "(cached) " >&6 9533else 9534 cat >conftest.c <<EOF 9535int 9536main () 9537{ 9538 exit (0); 9539} 9540EOF 9541for i in .exe ,ff8 ""; do 9542 gmp_compile="$CC_FOR_BUILD conftest.c -o conftest$i" 9543 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 9544 (eval $gmp_compile) 2>&5 9545 ac_status=$? 9546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9547 test $ac_status = 0; }; then 9548 if (./conftest) 2>&5; then 9549 gmp_cv_prog_exeext_for_build=$i 9550 break 9551 fi 9552 fi 9553done 9554rm -f conftest* 9555if test "${gmp_cv_prog_exeext_for_build+set}" != set; then 9556 as_fn_error "Cannot determine executable suffix" "$LINENO" 5 9557fi 9558 9559fi 9560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_prog_exeext_for_build" >&5 9561$as_echo "$gmp_cv_prog_exeext_for_build" >&6; } 9562EXEEXT_FOR_BUILD=$gmp_cv_prog_exeext_for_build 9563 9564 9565 9566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build system compiler is ANSI" >&5 9567$as_echo_n "checking whether build system compiler is ANSI... " >&6; } 9568if test "${gmp_cv_c_for_build_ansi+set}" = set; then : 9569 $as_echo_n "(cached) " >&6 9570else 9571 cat >conftest.c <<EOF 9572int 9573main (int argc, char **argv) 9574{ 9575 exit(0); 9576} 9577EOF 9578gmp_compile="$CC_FOR_BUILD conftest.c" 9579if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 9580 (eval $gmp_compile) 2>&5 9581 ac_status=$? 9582 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9583 test $ac_status = 0; }; then 9584 gmp_cv_c_for_build_ansi=yes 9585else 9586 gmp_cv_c_for_build_ansi=no 9587fi 9588rm -f conftest* a.out b.out a.exe a_out.exe 9589 9590fi 9591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_for_build_ansi" >&5 9592$as_echo "$gmp_cv_c_for_build_ansi" >&6; } 9593if test "$gmp_cv_c_for_build_ansi" = yes; then 9594 U_FOR_BUILD= 9595else 9596 U_FOR_BUILD=_ 9597 9598fi 9599 9600 9601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for build system compiler math library" >&5 9602$as_echo_n "checking for build system compiler math library... " >&6; } 9603if test "${gmp_cv_check_libm_for_build+set}" = set; then : 9604 $as_echo_n "(cached) " >&6 9605else 9606 cat >conftest.c <<EOF 9607int 9608main () 9609{ 9610 exit(0); 9611} 9612double d; 9613double 9614foo () 9615{ 9616 return log (d); 9617} 9618EOF 9619gmp_compile="$CC_FOR_BUILD conftest.c -lm" 9620if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 9621 (eval $gmp_compile) 2>&5 9622 ac_status=$? 9623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9624 test $ac_status = 0; }; then 9625 gmp_cv_check_libm_for_build=-lm 9626else 9627 gmp_cv_check_libm_for_build=no 9628fi 9629rm -f conftest* a.out b.out a.exe a_out.exe 9630 9631fi 9632{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_check_libm_for_build" >&5 9633$as_echo "$gmp_cv_check_libm_for_build" >&6; } 9634case $gmp_cv_check_libm_for_build in 9635 yes) LIBM_FOR_BUILD=-lm 9636 ;; 9637 no) LIBM_FOR_BUILD= ;; 9638 *) LIBM_FOR_BUILD=$gmp_cv_check_libm_for_build ;; 9639esac 9640 9641 9642 9643# How to assemble, used with CFLAGS etc, see mpn/Makeasm.am. 9644# Using the compiler is a lot easier than figuring out how to invoke the 9645# assembler directly. 9646# 9647test -n "$CCAS" || CCAS="$CC -c" 9648 9649 9650 9651# The C++ compiler, if desired. 9652want_cxx=no 9653if test $enable_cxx != no; then 9654 test_CXXFLAGS=${CXXFLAGS+set} 9655 ac_ext=cpp 9656ac_cpp='$CXXCPP $CPPFLAGS' 9657ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9658ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9659ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9660if test -z "$CXX"; then 9661 if test -n "$CCC"; then 9662 CXX=$CCC 9663 else 9664 if test -n "$ac_tool_prefix"; then 9665 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 9666 do 9667 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 9668set dummy $ac_tool_prefix$ac_prog; ac_word=$2 9669{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9670$as_echo_n "checking for $ac_word... " >&6; } 9671if test "${ac_cv_prog_CXX+set}" = set; then : 9672 $as_echo_n "(cached) " >&6 9673else 9674 if test -n "$CXX"; then 9675 ac_cv_prog_CXX="$CXX" # Let the user override the test. 9676else 9677as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9678for as_dir in $PATH 9679do 9680 IFS=$as_save_IFS 9681 test -z "$as_dir" && as_dir=. 9682 for ac_exec_ext in '' $ac_executable_extensions; do 9683 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9684 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 9685 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9686 break 2 9687 fi 9688done 9689 done 9690IFS=$as_save_IFS 9691 9692fi 9693fi 9694CXX=$ac_cv_prog_CXX 9695if test -n "$CXX"; then 9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 9697$as_echo "$CXX" >&6; } 9698else 9699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9700$as_echo "no" >&6; } 9701fi 9702 9703 9704 test -n "$CXX" && break 9705 done 9706fi 9707if test -z "$CXX"; then 9708 ac_ct_CXX=$CXX 9709 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 9710do 9711 # Extract the first word of "$ac_prog", so it can be a program name with args. 9712set dummy $ac_prog; ac_word=$2 9713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 9714$as_echo_n "checking for $ac_word... " >&6; } 9715if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then : 9716 $as_echo_n "(cached) " >&6 9717else 9718 if test -n "$ac_ct_CXX"; then 9719 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 9720else 9721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 9722for as_dir in $PATH 9723do 9724 IFS=$as_save_IFS 9725 test -z "$as_dir" && as_dir=. 9726 for ac_exec_ext in '' $ac_executable_extensions; do 9727 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 9728 ac_cv_prog_ac_ct_CXX="$ac_prog" 9729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 9730 break 2 9731 fi 9732done 9733 done 9734IFS=$as_save_IFS 9735 9736fi 9737fi 9738ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 9739if test -n "$ac_ct_CXX"; then 9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 9741$as_echo "$ac_ct_CXX" >&6; } 9742else 9743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9744$as_echo "no" >&6; } 9745fi 9746 9747 9748 test -n "$ac_ct_CXX" && break 9749done 9750 9751 if test "x$ac_ct_CXX" = x; then 9752 CXX="g++" 9753 else 9754 case $cross_compiling:$ac_tool_warned in 9755yes:) 9756{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 9757$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 9758ac_tool_warned=yes ;; 9759esac 9760 CXX=$ac_ct_CXX 9761 fi 9762fi 9763 9764 fi 9765fi 9766# Provide some information about the compiler. 9767$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 9768set X $ac_compile 9769ac_compiler=$2 9770for ac_option in --version -v -V -qversion; do 9771 { { ac_try="$ac_compiler $ac_option >&5" 9772case "(($ac_try" in 9773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 9774 *) ac_try_echo=$ac_try;; 9775esac 9776eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 9777$as_echo "$ac_try_echo"; } >&5 9778 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 9779 ac_status=$? 9780 if test -s conftest.err; then 9781 sed '10a\ 9782... rest of stderr output deleted ... 9783 10q' conftest.err >conftest.er1 9784 cat conftest.er1 >&5 9785 fi 9786 rm -f conftest.er1 conftest.err 9787 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9788 test $ac_status = 0; } 9789done 9790 9791{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 9792$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 9793if test "${ac_cv_cxx_compiler_gnu+set}" = set; then : 9794 $as_echo_n "(cached) " >&6 9795else 9796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9797/* end confdefs.h. */ 9798 9799int 9800main () 9801{ 9802#ifndef __GNUC__ 9803 choke me 9804#endif 9805 9806 ; 9807 return 0; 9808} 9809_ACEOF 9810if ac_fn_cxx_try_compile "$LINENO"; then : 9811 ac_compiler_gnu=yes 9812else 9813 ac_compiler_gnu=no 9814fi 9815rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9816ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 9817 9818fi 9819{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 9820$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 9821if test $ac_compiler_gnu = yes; then 9822 GXX=yes 9823else 9824 GXX= 9825fi 9826ac_test_CXXFLAGS=${CXXFLAGS+set} 9827ac_save_CXXFLAGS=$CXXFLAGS 9828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 9829$as_echo_n "checking whether $CXX accepts -g... " >&6; } 9830if test "${ac_cv_prog_cxx_g+set}" = set; then : 9831 $as_echo_n "(cached) " >&6 9832else 9833 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 9834 ac_cxx_werror_flag=yes 9835 ac_cv_prog_cxx_g=no 9836 CXXFLAGS="-g" 9837 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9838/* end confdefs.h. */ 9839 9840int 9841main () 9842{ 9843 9844 ; 9845 return 0; 9846} 9847_ACEOF 9848if ac_fn_cxx_try_compile "$LINENO"; then : 9849 ac_cv_prog_cxx_g=yes 9850else 9851 CXXFLAGS="" 9852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9853/* end confdefs.h. */ 9854 9855int 9856main () 9857{ 9858 9859 ; 9860 return 0; 9861} 9862_ACEOF 9863if ac_fn_cxx_try_compile "$LINENO"; then : 9864 9865else 9866 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 9867 CXXFLAGS="-g" 9868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9869/* end confdefs.h. */ 9870 9871int 9872main () 9873{ 9874 9875 ; 9876 return 0; 9877} 9878_ACEOF 9879if ac_fn_cxx_try_compile "$LINENO"; then : 9880 ac_cv_prog_cxx_g=yes 9881fi 9882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9883fi 9884rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9885fi 9886rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9887 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 9888fi 9889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 9890$as_echo "$ac_cv_prog_cxx_g" >&6; } 9891if test "$ac_test_CXXFLAGS" = set; then 9892 CXXFLAGS=$ac_save_CXXFLAGS 9893elif test $ac_cv_prog_cxx_g = yes; then 9894 if test "$GXX" = yes; then 9895 CXXFLAGS="-g -O2" 9896 else 9897 CXXFLAGS="-g" 9898 fi 9899else 9900 if test "$GXX" = yes; then 9901 CXXFLAGS="-O2" 9902 else 9903 CXXFLAGS= 9904 fi 9905fi 9906ac_ext=c 9907ac_cpp='$CPP $CPPFLAGS' 9908ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9909ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9910ac_compiler_gnu=$ac_cv_c_compiler_gnu 9911 9912 9913 echo "CXXFLAGS chosen by autoconf: $CXXFLAGS" >&5 9914 cxxflags_ac_prog_cxx=$CXXFLAGS 9915 cxxflags_list=ac_prog_cxx 9916 9917 # If the user didn't specify $CXXFLAGS, then try $CFLAGS, with -g removed 9918 # if AC_PROG_CXX thinks that doesn't work. $CFLAGS stands a good chance 9919 # of working, eg. on a GNU system where CC=gcc and CXX=g++. 9920 # 9921 if test "$test_CXXFLAGS" != set; then 9922 cxxflags_cflags=$CFLAGS 9923 cxxflags_list="cflags $cxxflags_list" 9924 if test "$ac_prog_cxx_g" = no; then 9925 cxxflags_cflags=`echo "$cxxflags_cflags" | sed -e 's/ -g //' -e 's/^-g //' -e 's/ -g$//'` 9926 fi 9927 fi 9928 9929 # See if the C++ compiler works. If the user specified CXXFLAGS then all 9930 # we're doing is checking whether AC_PROG_CXX succeeded, since it doesn't 9931 # give a fatal error, just leaves CXX set to a default g++. If on the 9932 # other hand the user didn't specify CXXFLAGS then we get to try here our 9933 # $cxxflags_list alternatives. 9934 # 9935 # Automake includes $CPPFLAGS in a C++ compile, so we do the same here. 9936 # 9937 for cxxflags_choice in $cxxflags_list; do 9938 eval CXXFLAGS=\"\$cxxflags_$cxxflags_choice\" 9939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking C++ compiler $CXX $CPPFLAGS $CXXFLAGS" >&5 9940$as_echo_n "checking C++ compiler $CXX $CPPFLAGS $CXXFLAGS... " >&6; } 9941gmp_prog_cxx_works=yes 9942 9943# start with a plain "main()", then go on to further checks 9944if test "$gmp_prog_cxx_works" = yes; then 9945 # remove anything that might look like compiler output to our "||" expression 9946 rm -f conftest* a.out b.out a.exe a_out.exe 9947 cat >conftest.cc <<EOF 9948 9949int main (void) { return 0; } 9950EOF 9951 echo "Test compile: " >&5 9952 gmp_cxxcompile="$CXX $CPPFLAGS $CXXFLAGS conftest.cc >&5" 9953 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_cxxcompile\""; } >&5 9954 (eval $gmp_cxxcompile) 2>&5 9955 ac_status=$? 9956 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9957 test $ac_status = 0; }; then 9958 if test "$cross_compiling" = no; then 9959 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' 9960 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 9961 (eval $ac_try) 2>&5 9962 ac_status=$? 9963 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9964 test $ac_status = 0; }; }; then :; 9965 else 9966 gmp_prog_cxx_works="no, program does not run" 9967 fi 9968 fi 9969 else 9970 gmp_prog_cxx_works="no" 9971 fi 9972 case $gmp_prog_cxx_works in 9973 no*) 9974 echo "failed program was:" >&5 9975 cat conftest.cc >&5 9976 ;; 9977 esac 9978 rm -f conftest* a.out b.out a.exe a_out.exe 9979fi 9980 9981 9982if test "$gmp_prog_cxx_works" = yes; then 9983 # remove anything that might look like compiler output to our "||" expression 9984 rm -f conftest* a.out b.out a.exe a_out.exe 9985 cat >conftest.cc <<EOF 9986namespace foo { } 9987using namespace foo; 9988 9989int main (void) { return 0; } 9990EOF 9991 echo "Test compile: namespace" >&5 9992 gmp_cxxcompile="$CXX $CPPFLAGS $CXXFLAGS conftest.cc >&5" 9993 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_cxxcompile\""; } >&5 9994 (eval $gmp_cxxcompile) 2>&5 9995 ac_status=$? 9996 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9997 test $ac_status = 0; }; then 9998 if test "$cross_compiling" = no; then 9999 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' 10000 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 10001 (eval $ac_try) 2>&5 10002 ac_status=$? 10003 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10004 test $ac_status = 0; }; }; then :; 10005 else 10006 gmp_prog_cxx_works="no, namespace, program does not run" 10007 fi 10008 fi 10009 else 10010 gmp_prog_cxx_works="no, namespace" 10011 fi 10012 case $gmp_prog_cxx_works in 10013 no*) 10014 echo "failed program was:" >&5 10015 cat conftest.cc >&5 10016 ;; 10017 esac 10018 rm -f conftest* a.out b.out a.exe a_out.exe 10019fi 10020 10021 10022# GMP requires the standard C++ iostream classes 10023if test "$gmp_prog_cxx_works" = yes; then 10024 # remove anything that might look like compiler output to our "||" expression 10025 rm -f conftest* a.out b.out a.exe a_out.exe 10026 cat >conftest.cc <<EOF 10027/* This test rejects g++ 2.7.2 which doesn't have <iostream>, only a 10028 pre-standard iostream.h. */ 10029#include <iostream> 10030 10031/* This test rejects OSF 5.1 Compaq C++ in its default pre-standard iostream 10032 mode, since that mode puts cout in the global namespace, not "std". */ 10033void someoutput (void) { std::cout << 123; } 10034 10035int main (void) { return 0; } 10036EOF 10037 echo "Test compile: std iostream" >&5 10038 gmp_cxxcompile="$CXX $CPPFLAGS $CXXFLAGS conftest.cc >&5" 10039 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_cxxcompile\""; } >&5 10040 (eval $gmp_cxxcompile) 2>&5 10041 ac_status=$? 10042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10043 test $ac_status = 0; }; then 10044 if test "$cross_compiling" = no; then 10045 if { ac_try='./a.out || ./b.out || ./a.exe || ./a_out.exe || ./conftest' 10046 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 10047 (eval $ac_try) 2>&5 10048 ac_status=$? 10049 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10050 test $ac_status = 0; }; }; then :; 10051 else 10052 gmp_prog_cxx_works="no, std iostream, program does not run" 10053 fi 10054 fi 10055 else 10056 gmp_prog_cxx_works="no, std iostream" 10057 fi 10058 case $gmp_prog_cxx_works in 10059 no*) 10060 echo "failed program was:" >&5 10061 cat conftest.cc >&5 10062 ;; 10063 esac 10064 rm -f conftest* a.out b.out a.exe a_out.exe 10065fi 10066 10067 10068{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_prog_cxx_works" >&5 10069$as_echo "$gmp_prog_cxx_works" >&6; } 10070case $gmp_prog_cxx_works in 10071 yes) 10072 want_cxx=yes 10073 break 10074 ;; 10075 *) 10076 10077 ;; 10078esac 10079 10080 done 10081 10082 # If --enable-cxx=yes but a C++ compiler can't be found, then abort. 10083 if test $want_cxx = no && test $enable_cxx = yes; then 10084 as_fn_error "C++ compiler not available, see config.log for details" "$LINENO" 5 10085 fi 10086fi 10087 10088 if test $want_cxx = yes; then 10089 WANT_CXX_TRUE= 10090 WANT_CXX_FALSE='#' 10091else 10092 WANT_CXX_TRUE='#' 10093 WANT_CXX_FALSE= 10094fi 10095 10096 10097# FIXME: We're not interested in CXXCPP for ourselves, but if we don't do it 10098# here then AC_PROG_LIBTOOL will AC_REQUIRE it (via _LT_AC_TAGCONFIG) and 10099# hence execute it unconditionally, and that will fail if there's no C++ 10100# compiler (and no generic /lib/cpp). 10101# 10102if test $want_cxx = yes; then 10103 ac_ext=cpp 10104ac_cpp='$CXXCPP $CPPFLAGS' 10105ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10106ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10107ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 10108{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 10109$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 10110if test -z "$CXXCPP"; then 10111 if test "${ac_cv_prog_CXXCPP+set}" = set; then : 10112 $as_echo_n "(cached) " >&6 10113else 10114 # Double quotes because CXXCPP needs to be expanded 10115 for CXXCPP in "$CXX -E" "/lib/cpp" 10116 do 10117 ac_preproc_ok=false 10118for ac_cxx_preproc_warn_flag in '' yes 10119do 10120 # Use a header file that comes with gcc, so configuring glibc 10121 # with a fresh cross-compiler works. 10122 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10123 # <limits.h> exists even on freestanding compilers. 10124 # On the NeXT, cc -E runs the code through the compiler's parser, 10125 # not just through cpp. "Syntax error" is here to catch this case. 10126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10127/* end confdefs.h. */ 10128#ifdef __STDC__ 10129# include <limits.h> 10130#else 10131# include <assert.h> 10132#endif 10133 Syntax error 10134_ACEOF 10135if ac_fn_cxx_try_cpp "$LINENO"; then : 10136 10137else 10138 # Broken: fails on valid input. 10139continue 10140fi 10141rm -f conftest.err conftest.$ac_ext 10142 10143 # OK, works on sane cases. Now check whether nonexistent headers 10144 # can be detected and how. 10145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10146/* end confdefs.h. */ 10147#include <ac_nonexistent.h> 10148_ACEOF 10149if ac_fn_cxx_try_cpp "$LINENO"; then : 10150 # Broken: success on invalid input. 10151continue 10152else 10153 # Passes both tests. 10154ac_preproc_ok=: 10155break 10156fi 10157rm -f conftest.err conftest.$ac_ext 10158 10159done 10160# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 10161rm -f conftest.err conftest.$ac_ext 10162if $ac_preproc_ok; then : 10163 break 10164fi 10165 10166 done 10167 ac_cv_prog_CXXCPP=$CXXCPP 10168 10169fi 10170 CXXCPP=$ac_cv_prog_CXXCPP 10171else 10172 ac_cv_prog_CXXCPP=$CXXCPP 10173fi 10174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 10175$as_echo "$CXXCPP" >&6; } 10176ac_preproc_ok=false 10177for ac_cxx_preproc_warn_flag in '' yes 10178do 10179 # Use a header file that comes with gcc, so configuring glibc 10180 # with a fresh cross-compiler works. 10181 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 10182 # <limits.h> exists even on freestanding compilers. 10183 # On the NeXT, cc -E runs the code through the compiler's parser, 10184 # not just through cpp. "Syntax error" is here to catch this case. 10185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10186/* end confdefs.h. */ 10187#ifdef __STDC__ 10188# include <limits.h> 10189#else 10190# include <assert.h> 10191#endif 10192 Syntax error 10193_ACEOF 10194if ac_fn_cxx_try_cpp "$LINENO"; then : 10195 10196else 10197 # Broken: fails on valid input. 10198continue 10199fi 10200rm -f conftest.err conftest.$ac_ext 10201 10202 # OK, works on sane cases. Now check whether nonexistent headers 10203 # can be detected and how. 10204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10205/* end confdefs.h. */ 10206#include <ac_nonexistent.h> 10207_ACEOF 10208if ac_fn_cxx_try_cpp "$LINENO"; then : 10209 # Broken: success on invalid input. 10210continue 10211else 10212 # Passes both tests. 10213ac_preproc_ok=: 10214break 10215fi 10216rm -f conftest.err conftest.$ac_ext 10217 10218done 10219# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 10220rm -f conftest.err conftest.$ac_ext 10221if $ac_preproc_ok; then : 10222 10223else 10224 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 10225$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 10226as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check 10227See \`config.log' for more details." "$LINENO" 5; } 10228fi 10229 10230ac_ext=c 10231ac_cpp='$CPP $CPPFLAGS' 10232ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10233ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10234ac_compiler_gnu=$ac_cv_c_compiler_gnu 10235 10236fi 10237 10238 10239# Path setups for Cray, according to IEEE or CFP. These must come after 10240# deciding the compiler. 10241# 10242 10243{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 10244$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 10245if test "${ac_cv_path_GREP+set}" = set; then : 10246 $as_echo_n "(cached) " >&6 10247else 10248 if test -z "$GREP"; then 10249 ac_path_GREP_found=false 10250 # Loop through the user's path and test for each of PROGNAME-LIST 10251 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10252for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 10253do 10254 IFS=$as_save_IFS 10255 test -z "$as_dir" && as_dir=. 10256 for ac_prog in grep ggrep; do 10257 for ac_exec_ext in '' $ac_executable_extensions; do 10258 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 10259 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 10260# Check for GNU ac_path_GREP and select it if it is found. 10261 # Check for GNU $ac_path_GREP 10262case `"$ac_path_GREP" --version 2>&1` in 10263*GNU*) 10264 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 10265*) 10266 ac_count=0 10267 $as_echo_n 0123456789 >"conftest.in" 10268 while : 10269 do 10270 cat "conftest.in" "conftest.in" >"conftest.tmp" 10271 mv "conftest.tmp" "conftest.in" 10272 cp "conftest.in" "conftest.nl" 10273 $as_echo 'GREP' >> "conftest.nl" 10274 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 10275 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 10276 as_fn_arith $ac_count + 1 && ac_count=$as_val 10277 if test $ac_count -gt ${ac_path_GREP_max-0}; then 10278 # Best one so far, save it but keep looking for a better one 10279 ac_cv_path_GREP="$ac_path_GREP" 10280 ac_path_GREP_max=$ac_count 10281 fi 10282 # 10*(2^10) chars as input seems more than enough 10283 test $ac_count -gt 10 && break 10284 done 10285 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 10286esac 10287 10288 $ac_path_GREP_found && break 3 10289 done 10290 done 10291 done 10292IFS=$as_save_IFS 10293 if test -z "$ac_cv_path_GREP"; then 10294 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 10295 fi 10296else 10297 ac_cv_path_GREP=$GREP 10298fi 10299 10300fi 10301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 10302$as_echo "$ac_cv_path_GREP" >&6; } 10303 GREP="$ac_cv_path_GREP" 10304 10305 10306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 10307$as_echo_n "checking for egrep... " >&6; } 10308if test "${ac_cv_path_EGREP+set}" = set; then : 10309 $as_echo_n "(cached) " >&6 10310else 10311 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 10312 then ac_cv_path_EGREP="$GREP -E" 10313 else 10314 if test -z "$EGREP"; then 10315 ac_path_EGREP_found=false 10316 # Loop through the user's path and test for each of PROGNAME-LIST 10317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10318for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 10319do 10320 IFS=$as_save_IFS 10321 test -z "$as_dir" && as_dir=. 10322 for ac_prog in egrep; do 10323 for ac_exec_ext in '' $ac_executable_extensions; do 10324 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 10325 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 10326# Check for GNU ac_path_EGREP and select it if it is found. 10327 # Check for GNU $ac_path_EGREP 10328case `"$ac_path_EGREP" --version 2>&1` in 10329*GNU*) 10330 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 10331*) 10332 ac_count=0 10333 $as_echo_n 0123456789 >"conftest.in" 10334 while : 10335 do 10336 cat "conftest.in" "conftest.in" >"conftest.tmp" 10337 mv "conftest.tmp" "conftest.in" 10338 cp "conftest.in" "conftest.nl" 10339 $as_echo 'EGREP' >> "conftest.nl" 10340 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 10341 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 10342 as_fn_arith $ac_count + 1 && ac_count=$as_val 10343 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 10344 # Best one so far, save it but keep looking for a better one 10345 ac_cv_path_EGREP="$ac_path_EGREP" 10346 ac_path_EGREP_max=$ac_count 10347 fi 10348 # 10*(2^10) chars as input seems more than enough 10349 test $ac_count -gt 10 && break 10350 done 10351 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 10352esac 10353 10354 $ac_path_EGREP_found && break 3 10355 done 10356 done 10357 done 10358IFS=$as_save_IFS 10359 if test -z "$ac_cv_path_EGREP"; then 10360 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 10361 fi 10362else 10363 ac_cv_path_EGREP=$EGREP 10364fi 10365 10366 fi 10367fi 10368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 10369$as_echo "$ac_cv_path_EGREP" >&6; } 10370 EGREP="$ac_cv_path_EGREP" 10371 10372 10373case $host_cpu in 10374 c90 | t90) 10375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10376/* end confdefs.h. */ 10377#ifdef _CRAYIEEE 10378yes 10379#endif 10380_ACEOF 10381if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10382 $EGREP "yes" >/dev/null 2>&1; then : 10383 add_path="cray/ieee" 10384else 10385 add_path="cray/cfp"; extra_functions="mulwwc90" 10386fi 10387rm -f conftest* 10388 10389 ;; 10390 j90 | sv1) 10391 add_path="cray/cfp"; extra_functions="mulwwj90" 10392 ;; 10393esac 10394 10395 10396 10397if test -z "$MPN_PATH"; then 10398 path="$add_path $path" 10399fi 10400 10401# For a nail build, also look in "nails" subdirectories. 10402# 10403if test $GMP_NAIL_BITS != 0 && test -z "$MPN_PATH"; then 10404 new_path= 10405 for i in $path; do 10406 case $i in 10407 generic) new_path="$new_path $i" ;; 10408 *) new_path="$new_path $i/nails $i" ;; 10409 esac 10410 done 10411 path=$new_path 10412fi 10413 10414 10415# Put all directories into CPUVEC_list so as to get a full set of 10416# CPUVEC_SETUP_$tmp_suffix defines into config.h, even if some of them are 10417# empty because mmx and/or sse2 had to be dropped. 10418# 10419for i in $fat_path; do 10420 tmp_suffix=`echo $i | sed -e '/\//s:^[^/]*/::' -e 's:[\\/]:_:g'` 10421 CPUVEC_list="$CPUVEC_list CPUVEC_SETUP_$tmp_suffix" 10422done 10423 10424 10425# If there's any sse2 or mmx in the path, check whether the assembler 10426# supports it, and remove if not. 10427# 10428# We only need this in ABI=32, for ABI=64 on x86_64 we can assume a new 10429# enough assembler. 10430# 10431case $host in 10432 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-* | athlon64-*-* | k8-*-* | k10-*-* | bobcat-*-* | bulldozer-*-* | pentium4-*-* | atom-*-* | core2-*-* | corei*-*-* | x86_64-*-* | nano-*-*) 10433 if test "$ABI" = 32; then 10434 case "$path $fat_path" in 10435 *mmx*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler knows about MMX instructions" >&5 10436$as_echo_n "checking if the assembler knows about MMX instructions... " >&6; } 10437if test "${gmp_cv_asm_x86_mmx+set}" = set; then : 10438 $as_echo_n "(cached) " >&6 10439else 10440 cat >conftest.s <<EOF 10441 .text 10442 movq %mm0, %mm1 10443EOF 10444gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1" 10445if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5 10446 (eval $gmp_assemble) 2>&5 10447 ac_status=$? 10448 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10449 test $ac_status = 0; }; then 10450 cat conftest.out >&5 10451 gmp_cv_asm_x86_mmx=yes 10452case $host in 10453*-*-solaris*) 10454 if (dis conftest.$OBJEXT >conftest.out) 2>/dev/null; then 10455 if grep "0f 6f c1" conftest.out >/dev/null; then 10456 gmp_cv_asm_x86_mmx=movq-bug 10457 fi 10458 else 10459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"dis\" not available to check for \"as\" movq bug" >&5 10460$as_echo "$as_me: WARNING: \"dis\" not available to check for \"as\" movq bug" >&2;} 10461 fi 10462esac 10463else 10464 cat conftest.out >&5 10465 echo "configure: failed program was:" >&5 10466 cat conftest.s >&5 10467 gmp_cv_asm_x86_mmx=no 10468fi 10469rm -f conftest* 10470 10471fi 10472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_x86_mmx" >&5 10473$as_echo "$gmp_cv_asm_x86_mmx" >&6; } 10474 10475case $gmp_cv_asm_x86_mmx in 10476movq-bug) 10477 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5 10478$as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;} 10479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | WARNING WARNING WARNING" >&5 10480$as_echo "$as_me: WARNING: | WARNING WARNING WARNING" >&2;} 10481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Host CPU has MMX code, but the assembler" >&5 10482$as_echo "$as_me: WARNING: | Host CPU has MMX code, but the assembler" >&2;} 10483 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&5 10484$as_echo "$as_me: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&2;} 10485 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | has the Solaris 2.6 and 2.7 bug where register to register" >&5 10486$as_echo "$as_me: WARNING: | has the Solaris 2.6 and 2.7 bug where register to register" >&2;} 10487 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | movq operands are reversed." >&5 10488$as_echo "$as_me: WARNING: | movq operands are reversed." >&2;} 10489 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Non-MMX replacements will be used." >&5 10490$as_echo "$as_me: WARNING: | Non-MMX replacements will be used." >&2;} 10491 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | This will be an inferior build." >&5 10492$as_echo "$as_me: WARNING: | This will be an inferior build." >&2;} 10493 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5 10494$as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;} 10495 ;; 10496no) 10497 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5 10498$as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;} 10499 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | WARNING WARNING WARNING" >&5 10500$as_echo "$as_me: WARNING: | WARNING WARNING WARNING" >&2;} 10501 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Host CPU has MMX code, but it can't be assembled by" >&5 10502$as_echo "$as_me: WARNING: | Host CPU has MMX code, but it can't be assembled by" >&2;} 10503 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&5 10504$as_echo "$as_me: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&2;} 10505 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Non-MMX replacements will be used." >&5 10506$as_echo "$as_me: WARNING: | Non-MMX replacements will be used." >&2;} 10507 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | This will be an inferior build." >&5 10508$as_echo "$as_me: WARNING: | This will be an inferior build." >&2;} 10509 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5 10510$as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;} 10511 ;; 10512esac 10513if test "$gmp_cv_asm_x86_mmx" = yes; then 10514 : 10515else 10516 tmp_path= 10517for i in $path; do 10518 case $i in 10519 */*mmx*) ;; 10520 *) tmp_path="$tmp_path $i" ;; 10521 esac 10522done 10523path="$tmp_path" 10524 10525tmp_path= 10526for i in $fat_path; do 10527 case $i in 10528 */*mmx*) ;; 10529 *) tmp_path="$tmp_path $i" ;; 10530 esac 10531done 10532fat_path="$tmp_path" 10533 10534 10535fi 10536 ;; 10537 esac 10538 case "$path $fat_path" in 10539 *sse2*) { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler knows about SSE2 instructions" >&5 10540$as_echo_n "checking if the assembler knows about SSE2 instructions... " >&6; } 10541if test "${gmp_cv_asm_x86_sse2+set}" = set; then : 10542 $as_echo_n "(cached) " >&6 10543else 10544 cat >conftest.s <<EOF 10545 .text 10546 paddq %mm0, %mm1 10547EOF 10548gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1" 10549if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5 10550 (eval $gmp_assemble) 2>&5 10551 ac_status=$? 10552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10553 test $ac_status = 0; }; then 10554 cat conftest.out >&5 10555 gmp_cv_asm_x86_sse2=yes 10556else 10557 cat conftest.out >&5 10558 echo "configure: failed program was:" >&5 10559 cat conftest.s >&5 10560 gmp_cv_asm_x86_sse2=no 10561fi 10562rm -f conftest* 10563 10564 10565fi 10566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_x86_sse2" >&5 10567$as_echo "$gmp_cv_asm_x86_sse2" >&6; } 10568case $gmp_cv_asm_x86_sse2 in 10569yes) 10570 : 10571 ;; 10572*) 10573 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5 10574$as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;} 10575 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | WARNING WARNING WARNING" >&5 10576$as_echo "$as_me: WARNING: | WARNING WARNING WARNING" >&2;} 10577 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Host CPU has SSE2 code, but it can't be assembled by" >&5 10578$as_echo "$as_me: WARNING: | Host CPU has SSE2 code, but it can't be assembled by" >&2;} 10579 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&5 10580$as_echo "$as_me: WARNING: | $CCAS $CFLAGS $CPPFLAGS" >&2;} 10581 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Non-SSE2 replacements will be used." >&5 10582$as_echo "$as_me: WARNING: | Non-SSE2 replacements will be used." >&2;} 10583 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | This will be an inferior build." >&5 10584$as_echo "$as_me: WARNING: | This will be an inferior build." >&2;} 10585 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5 10586$as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;} 10587 tmp_path= 10588for i in $path; do 10589 case $i in 10590 */sse2) ;; 10591 *) tmp_path="$tmp_path $i" ;; 10592 esac 10593done 10594path="$tmp_path" 10595 10596tmp_path= 10597for i in $fat_path; do 10598 case $i in 10599 */sse2) ;; 10600 *) tmp_path="$tmp_path $i" ;; 10601 esac 10602done 10603fat_path="$tmp_path" 10604 10605 10606 ;; 10607esac 10608 ;; 10609 esac 10610 fi 10611 ;; 10612esac 10613 10614 10615cat >&5 <<EOF 10616Decided: 10617ABI=$ABI 10618CC=$CC 10619CFLAGS=$CFLAGS 10620CPPFLAGS=$CPPFLAGS 10621GMP_LDFLAGS=$GMP_LDFLAGS 10622CXX=$CXX 10623CXXFLAGS=$CXXFLAGS 10624path=$path 10625EOF 10626echo "using ABI=\"$ABI\"" 10627echo " CC=\"$CC\"" 10628echo " CFLAGS=\"$CFLAGS\"" 10629echo " CPPFLAGS=\"$CPPFLAGS\"" 10630if test $want_cxx = yes; then 10631 echo " CXX=\"$CXX\"" 10632 echo " CXXFLAGS=\"$CXXFLAGS\"" 10633fi 10634echo " MPN_PATH=\"$path\"" 10635 10636 10637# Automake ansi2knr support. 10638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for function prototypes" >&5 10639$as_echo_n "checking for function prototypes... " >&6; } 10640if test "$ac_cv_prog_cc_c89" != no; then 10641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 10642$as_echo "yes" >&6; } 10643 10644$as_echo "#define PROTOTYPES 1" >>confdefs.h 10645 10646 10647$as_echo "#define __PROTOTYPES 1" >>confdefs.h 10648 10649else 10650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10651$as_echo "no" >&6; } 10652fi 10653 10654{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 10655$as_echo_n "checking for ANSI C header files... " >&6; } 10656if test "${ac_cv_header_stdc+set}" = set; then : 10657 $as_echo_n "(cached) " >&6 10658else 10659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10660/* end confdefs.h. */ 10661#include <stdlib.h> 10662#include <stdarg.h> 10663#include <string.h> 10664#include <float.h> 10665 10666int 10667main () 10668{ 10669 10670 ; 10671 return 0; 10672} 10673_ACEOF 10674if ac_fn_c_try_compile "$LINENO"; then : 10675 ac_cv_header_stdc=yes 10676else 10677 ac_cv_header_stdc=no 10678fi 10679rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 10680 10681if test $ac_cv_header_stdc = yes; then 10682 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 10683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10684/* end confdefs.h. */ 10685#include <string.h> 10686 10687_ACEOF 10688if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10689 $EGREP "memchr" >/dev/null 2>&1; then : 10690 10691else 10692 ac_cv_header_stdc=no 10693fi 10694rm -f conftest* 10695 10696fi 10697 10698if test $ac_cv_header_stdc = yes; then 10699 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 10700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10701/* end confdefs.h. */ 10702#include <stdlib.h> 10703 10704_ACEOF 10705if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 10706 $EGREP "free" >/dev/null 2>&1; then : 10707 10708else 10709 ac_cv_header_stdc=no 10710fi 10711rm -f conftest* 10712 10713fi 10714 10715if test $ac_cv_header_stdc = yes; then 10716 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 10717 if test "$cross_compiling" = yes; then : 10718 : 10719else 10720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10721/* end confdefs.h. */ 10722#include <ctype.h> 10723#include <stdlib.h> 10724#if ((' ' & 0x0FF) == 0x020) 10725# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 10726# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 10727#else 10728# define ISLOWER(c) \ 10729 (('a' <= (c) && (c) <= 'i') \ 10730 || ('j' <= (c) && (c) <= 'r') \ 10731 || ('s' <= (c) && (c) <= 'z')) 10732# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 10733#endif 10734 10735#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 10736int 10737main () 10738{ 10739 int i; 10740 for (i = 0; i < 256; i++) 10741 if (XOR (islower (i), ISLOWER (i)) 10742 || toupper (i) != TOUPPER (i)) 10743 return 2; 10744 return 0; 10745} 10746_ACEOF 10747if ac_fn_c_try_run "$LINENO"; then : 10748 10749else 10750 ac_cv_header_stdc=no 10751fi 10752rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 10753 conftest.$ac_objext conftest.beam conftest.$ac_ext 10754fi 10755 10756fi 10757fi 10758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 10759$as_echo "$ac_cv_header_stdc" >&6; } 10760if test $ac_cv_header_stdc = yes; then 10761 10762$as_echo "#define STDC_HEADERS 1" >>confdefs.h 10763 10764fi 10765 10766# On IRIX 5.3, sys/types and inttypes.h are conflicting. 10767for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 10768 inttypes.h stdint.h unistd.h 10769do : 10770 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 10771ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 10772" 10773eval as_val=\$$as_ac_Header 10774 if test "x$as_val" = x""yes; then : 10775 cat >>confdefs.h <<_ACEOF 10776#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 10777_ACEOF 10778 10779fi 10780 10781done 10782 10783 10784 10785if test "$ac_cv_prog_cc_stdc" != no; then 10786 U= ANSI2KNR= 10787else 10788 U=_ ANSI2KNR=./ansi2knr 10789fi 10790# Ensure some checks needed by ansi2knr itself. 10791 10792for ac_header in string.h 10793do : 10794 ac_fn_c_check_header_mongrel "$LINENO" "string.h" "ac_cv_header_string_h" "$ac_includes_default" 10795if test "x$ac_cv_header_string_h" = x""yes; then : 10796 cat >>confdefs.h <<_ACEOF 10797#define HAVE_STRING_H 1 10798_ACEOF 10799 10800fi 10801 10802done 10803 10804 10805 10806 10807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler supports --noexecstack option" >&5 10808$as_echo_n "checking whether assembler supports --noexecstack option... " >&6; } 10809if test "${cl_cv_as_noexecstack+set}" = set; then : 10810 $as_echo_n "(cached) " >&6 10811else 10812 cat > conftest.c <<EOF 10813void foo() {} 10814EOF 10815 if { ac_try='${CC} $CFLAGS $CPPFLAGS 10816 -S -o conftest.s conftest.c >/dev/null' 10817 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 10818 (eval $ac_try) 2>&5 10819 ac_status=$? 10820 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10821 test $ac_status = 0; }; } \ 10822 && grep .note.GNU-stack conftest.s >/dev/null \ 10823 && { ac_try='${CC} $CFLAGS $CPPFLAGS -Wa,--noexecstack 10824 -c -o conftest.o conftest.s >/dev/null' 10825 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 10826 (eval $ac_try) 2>&5 10827 ac_status=$? 10828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10829 test $ac_status = 0; }; } 10830 then 10831 cl_cv_as_noexecstack=yes 10832 else 10833 cl_cv_as_noexecstack=no 10834 fi 10835 rm -f conftest* 10836fi 10837{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cl_cv_as_noexecstack" >&5 10838$as_echo "$cl_cv_as_noexecstack" >&6; } 10839 if test "$cl_cv_as_noexecstack" = yes; then 10840 ASMFLAGS="$ASMFLAGS -Wa,--noexecstack" 10841 fi 10842 10843 10844 10845 10846gmp_user_AR=$AR 10847if test -n "$ac_tool_prefix"; then 10848 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 10849set dummy ${ac_tool_prefix}ar; ac_word=$2 10850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10851$as_echo_n "checking for $ac_word... " >&6; } 10852if test "${ac_cv_prog_AR+set}" = set; then : 10853 $as_echo_n "(cached) " >&6 10854else 10855 if test -n "$AR"; then 10856 ac_cv_prog_AR="$AR" # Let the user override the test. 10857else 10858as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10859for as_dir in $PATH 10860do 10861 IFS=$as_save_IFS 10862 test -z "$as_dir" && as_dir=. 10863 for ac_exec_ext in '' $ac_executable_extensions; do 10864 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10865 ac_cv_prog_AR="${ac_tool_prefix}ar" 10866 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10867 break 2 10868 fi 10869done 10870 done 10871IFS=$as_save_IFS 10872 10873fi 10874fi 10875AR=$ac_cv_prog_AR 10876if test -n "$AR"; then 10877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 10878$as_echo "$AR" >&6; } 10879else 10880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10881$as_echo "no" >&6; } 10882fi 10883 10884 10885fi 10886if test -z "$ac_cv_prog_AR"; then 10887 ac_ct_AR=$AR 10888 # Extract the first word of "ar", so it can be a program name with args. 10889set dummy ar; ac_word=$2 10890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 10891$as_echo_n "checking for $ac_word... " >&6; } 10892if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 10893 $as_echo_n "(cached) " >&6 10894else 10895 if test -n "$ac_ct_AR"; then 10896 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 10897else 10898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10899for as_dir in $PATH 10900do 10901 IFS=$as_save_IFS 10902 test -z "$as_dir" && as_dir=. 10903 for ac_exec_ext in '' $ac_executable_extensions; do 10904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 10905 ac_cv_prog_ac_ct_AR="ar" 10906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 10907 break 2 10908 fi 10909done 10910 done 10911IFS=$as_save_IFS 10912 10913fi 10914fi 10915ac_ct_AR=$ac_cv_prog_ac_ct_AR 10916if test -n "$ac_ct_AR"; then 10917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 10918$as_echo "$ac_ct_AR" >&6; } 10919else 10920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 10921$as_echo "no" >&6; } 10922fi 10923 10924 if test "x$ac_ct_AR" = x; then 10925 AR="ar" 10926 else 10927 case $cross_compiling:$ac_tool_warned in 10928yes:) 10929{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 10930$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 10931ac_tool_warned=yes ;; 10932esac 10933 AR=$ac_ct_AR 10934 fi 10935else 10936 AR="$ac_cv_prog_AR" 10937fi 10938 10939if test -z "$gmp_user_AR"; then 10940 eval arflags=\"\$ar${abi1}_flags\" 10941 test -n "$arflags" || eval arflags=\"\$ar${abi2}_flags\" 10942 if test -n "$arflags"; then 10943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra ar flags" >&5 10944$as_echo_n "checking for extra ar flags... " >&6; } 10945 AR="$AR $arflags" 10946 ac_cv_prog_AR="$AR $arflags" 10947 ac_cv_prog_ac_ct_AR="$AR $arflags" 10948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $arflags" >&5 10949$as_echo "$arflags" >&6; } 10950 fi 10951fi 10952if test -z "$AR_FLAGS"; then 10953 AR_FLAGS=cq 10954fi 10955 10956 10957gmp_user_NM=$NM 10958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 10959$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 10960if test "${lt_cv_path_NM+set}" = set; then : 10961 $as_echo_n "(cached) " >&6 10962else 10963 if test -n "$NM"; then 10964 # Let the user override the test. 10965 lt_cv_path_NM="$NM" 10966else 10967 lt_nm_to_check="${ac_tool_prefix}nm" 10968 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 10969 lt_nm_to_check="$lt_nm_to_check nm" 10970 fi 10971 for lt_tmp_nm in $lt_nm_to_check; do 10972 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 10973 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 10974 IFS="$lt_save_ifs" 10975 test -z "$ac_dir" && ac_dir=. 10976 tmp_nm="$ac_dir/$lt_tmp_nm" 10977 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 10978 # Check to see if the nm accepts a BSD-compat flag. 10979 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 10980 # nm: unknown option "B" ignored 10981 # Tru64's nm complains that /dev/null is an invalid object file 10982 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 10983 */dev/null* | *'Invalid file or object type'*) 10984 lt_cv_path_NM="$tmp_nm -B" 10985 break 10986 ;; 10987 *) 10988 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 10989 */dev/null*) 10990 lt_cv_path_NM="$tmp_nm -p" 10991 break 10992 ;; 10993 *) 10994 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 10995 continue # so that we can try to find one that supports BSD flags 10996 ;; 10997 esac 10998 ;; 10999 esac 11000 fi 11001 done 11002 IFS="$lt_save_ifs" 11003 done 11004 : ${lt_cv_path_NM=no} 11005fi 11006fi 11007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 11008$as_echo "$lt_cv_path_NM" >&6; } 11009if test "$lt_cv_path_NM" != "no"; then 11010 NM="$lt_cv_path_NM" 11011else 11012 # Didn't find any BSD compatible name lister, look for dumpbin. 11013 if test -n "$DUMPBIN"; then : 11014 # Let the user override the test. 11015 else 11016 if test -n "$ac_tool_prefix"; then 11017 for ac_prog in dumpbin "link -dump" 11018 do 11019 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11020set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11022$as_echo_n "checking for $ac_word... " >&6; } 11023if test "${ac_cv_prog_DUMPBIN+set}" = set; then : 11024 $as_echo_n "(cached) " >&6 11025else 11026 if test -n "$DUMPBIN"; then 11027 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 11028else 11029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11030for as_dir in $PATH 11031do 11032 IFS=$as_save_IFS 11033 test -z "$as_dir" && as_dir=. 11034 for ac_exec_ext in '' $ac_executable_extensions; do 11035 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11036 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 11037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11038 break 2 11039 fi 11040done 11041 done 11042IFS=$as_save_IFS 11043 11044fi 11045fi 11046DUMPBIN=$ac_cv_prog_DUMPBIN 11047if test -n "$DUMPBIN"; then 11048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 11049$as_echo "$DUMPBIN" >&6; } 11050else 11051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11052$as_echo "no" >&6; } 11053fi 11054 11055 11056 test -n "$DUMPBIN" && break 11057 done 11058fi 11059if test -z "$DUMPBIN"; then 11060 ac_ct_DUMPBIN=$DUMPBIN 11061 for ac_prog in dumpbin "link -dump" 11062do 11063 # Extract the first word of "$ac_prog", so it can be a program name with args. 11064set dummy $ac_prog; ac_word=$2 11065{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11066$as_echo_n "checking for $ac_word... " >&6; } 11067if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : 11068 $as_echo_n "(cached) " >&6 11069else 11070 if test -n "$ac_ct_DUMPBIN"; then 11071 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 11072else 11073as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11074for as_dir in $PATH 11075do 11076 IFS=$as_save_IFS 11077 test -z "$as_dir" && as_dir=. 11078 for ac_exec_ext in '' $ac_executable_extensions; do 11079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11080 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 11081 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11082 break 2 11083 fi 11084done 11085 done 11086IFS=$as_save_IFS 11087 11088fi 11089fi 11090ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 11091if test -n "$ac_ct_DUMPBIN"; then 11092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 11093$as_echo "$ac_ct_DUMPBIN" >&6; } 11094else 11095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11096$as_echo "no" >&6; } 11097fi 11098 11099 11100 test -n "$ac_ct_DUMPBIN" && break 11101done 11102 11103 if test "x$ac_ct_DUMPBIN" = x; then 11104 DUMPBIN=":" 11105 else 11106 case $cross_compiling:$ac_tool_warned in 11107yes:) 11108{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11109$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11110ac_tool_warned=yes ;; 11111esac 11112 DUMPBIN=$ac_ct_DUMPBIN 11113 fi 11114fi 11115 11116 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 11117 *COFF*) 11118 DUMPBIN="$DUMPBIN -symbols" 11119 ;; 11120 *) 11121 DUMPBIN=: 11122 ;; 11123 esac 11124 fi 11125 11126 if test "$DUMPBIN" != ":"; then 11127 NM="$DUMPBIN" 11128 fi 11129fi 11130test -z "$NM" && NM=nm 11131 11132 11133 11134 11135 11136 11137{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 11138$as_echo_n "checking the name lister ($NM) interface... " >&6; } 11139if test "${lt_cv_nm_interface+set}" = set; then : 11140 $as_echo_n "(cached) " >&6 11141else 11142 lt_cv_nm_interface="BSD nm" 11143 echo "int some_variable = 0;" > conftest.$ac_ext 11144 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 11145 (eval "$ac_compile" 2>conftest.err) 11146 cat conftest.err >&5 11147 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 11148 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 11149 cat conftest.err >&5 11150 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 11151 cat conftest.out >&5 11152 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 11153 lt_cv_nm_interface="MS dumpbin" 11154 fi 11155 rm -f conftest* 11156fi 11157{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 11158$as_echo "$lt_cv_nm_interface" >&6; } 11159 11160 11161# FIXME: When cross compiling (ie. $ac_tool_prefix not empty), libtool 11162# defaults to plain "nm" if a "${ac_tool_prefix}nm" is not found. In this 11163# case run it again to try the native "nm", firstly so that likely locations 11164# are searched, secondly so that -B or -p are added if necessary for BSD 11165# format. This is necessary for instance on OSF with "./configure 11166# --build=alphaev5-dec-osf --host=alphaev6-dec-osf". 11167# 11168if test -z "$gmp_user_NM" && test -n "$ac_tool_prefix" && test "$NM" = nm; then 11169 $as_unset lt_cv_path_NM 11170 gmp_save_ac_tool_prefix=$ac_tool_prefix 11171 ac_tool_prefix= 11172 NM= 11173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 11174$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 11175if test "${lt_cv_path_NM+set}" = set; then : 11176 $as_echo_n "(cached) " >&6 11177else 11178 if test -n "$NM"; then 11179 # Let the user override the test. 11180 lt_cv_path_NM="$NM" 11181else 11182 lt_nm_to_check="${ac_tool_prefix}nm" 11183 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 11184 lt_nm_to_check="$lt_nm_to_check nm" 11185 fi 11186 for lt_tmp_nm in $lt_nm_to_check; do 11187 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 11188 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 11189 IFS="$lt_save_ifs" 11190 test -z "$ac_dir" && ac_dir=. 11191 tmp_nm="$ac_dir/$lt_tmp_nm" 11192 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 11193 # Check to see if the nm accepts a BSD-compat flag. 11194 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 11195 # nm: unknown option "B" ignored 11196 # Tru64's nm complains that /dev/null is an invalid object file 11197 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 11198 */dev/null* | *'Invalid file or object type'*) 11199 lt_cv_path_NM="$tmp_nm -B" 11200 break 11201 ;; 11202 *) 11203 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 11204 */dev/null*) 11205 lt_cv_path_NM="$tmp_nm -p" 11206 break 11207 ;; 11208 *) 11209 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 11210 continue # so that we can try to find one that supports BSD flags 11211 ;; 11212 esac 11213 ;; 11214 esac 11215 fi 11216 done 11217 IFS="$lt_save_ifs" 11218 done 11219 : ${lt_cv_path_NM=no} 11220fi 11221fi 11222{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 11223$as_echo "$lt_cv_path_NM" >&6; } 11224if test "$lt_cv_path_NM" != "no"; then 11225 NM="$lt_cv_path_NM" 11226else 11227 # Didn't find any BSD compatible name lister, look for dumpbin. 11228 if test -n "$DUMPBIN"; then : 11229 # Let the user override the test. 11230 else 11231 if test -n "$ac_tool_prefix"; then 11232 for ac_prog in dumpbin "link -dump" 11233 do 11234 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 11235set dummy $ac_tool_prefix$ac_prog; ac_word=$2 11236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11237$as_echo_n "checking for $ac_word... " >&6; } 11238if test "${ac_cv_prog_DUMPBIN+set}" = set; then : 11239 $as_echo_n "(cached) " >&6 11240else 11241 if test -n "$DUMPBIN"; then 11242 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 11243else 11244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11245for as_dir in $PATH 11246do 11247 IFS=$as_save_IFS 11248 test -z "$as_dir" && as_dir=. 11249 for ac_exec_ext in '' $ac_executable_extensions; do 11250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11251 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 11252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11253 break 2 11254 fi 11255done 11256 done 11257IFS=$as_save_IFS 11258 11259fi 11260fi 11261DUMPBIN=$ac_cv_prog_DUMPBIN 11262if test -n "$DUMPBIN"; then 11263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 11264$as_echo "$DUMPBIN" >&6; } 11265else 11266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11267$as_echo "no" >&6; } 11268fi 11269 11270 11271 test -n "$DUMPBIN" && break 11272 done 11273fi 11274if test -z "$DUMPBIN"; then 11275 ac_ct_DUMPBIN=$DUMPBIN 11276 for ac_prog in dumpbin "link -dump" 11277do 11278 # Extract the first word of "$ac_prog", so it can be a program name with args. 11279set dummy $ac_prog; ac_word=$2 11280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11281$as_echo_n "checking for $ac_word... " >&6; } 11282if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : 11283 $as_echo_n "(cached) " >&6 11284else 11285 if test -n "$ac_ct_DUMPBIN"; then 11286 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 11287else 11288as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11289for as_dir in $PATH 11290do 11291 IFS=$as_save_IFS 11292 test -z "$as_dir" && as_dir=. 11293 for ac_exec_ext in '' $ac_executable_extensions; do 11294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11295 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 11296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11297 break 2 11298 fi 11299done 11300 done 11301IFS=$as_save_IFS 11302 11303fi 11304fi 11305ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 11306if test -n "$ac_ct_DUMPBIN"; then 11307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 11308$as_echo "$ac_ct_DUMPBIN" >&6; } 11309else 11310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11311$as_echo "no" >&6; } 11312fi 11313 11314 11315 test -n "$ac_ct_DUMPBIN" && break 11316done 11317 11318 if test "x$ac_ct_DUMPBIN" = x; then 11319 DUMPBIN=":" 11320 else 11321 case $cross_compiling:$ac_tool_warned in 11322yes:) 11323{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11324$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11325ac_tool_warned=yes ;; 11326esac 11327 DUMPBIN=$ac_ct_DUMPBIN 11328 fi 11329fi 11330 11331 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 11332 *COFF*) 11333 DUMPBIN="$DUMPBIN -symbols" 11334 ;; 11335 *) 11336 DUMPBIN=: 11337 ;; 11338 esac 11339 fi 11340 11341 if test "$DUMPBIN" != ":"; then 11342 NM="$DUMPBIN" 11343 fi 11344fi 11345test -z "$NM" && NM=nm 11346 11347 11348 11349{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 11350$as_echo_n "checking the name lister ($NM) interface... " >&6; } 11351if test "${lt_cv_nm_interface+set}" = set; then : 11352 $as_echo_n "(cached) " >&6 11353else 11354 lt_cv_nm_interface="BSD nm" 11355 echo "int some_variable = 0;" > conftest.$ac_ext 11356 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 11357 (eval "$ac_compile" 2>conftest.err) 11358 cat conftest.err >&5 11359 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 11360 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 11361 cat conftest.err >&5 11362 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 11363 cat conftest.out >&5 11364 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 11365 lt_cv_nm_interface="MS dumpbin" 11366 fi 11367 rm -f conftest* 11368fi 11369{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 11370$as_echo "$lt_cv_nm_interface" >&6; } 11371 11372 ac_tool_prefix=$gmp_save_ac_tool_prefix 11373fi 11374 11375if test -z "$gmp_user_NM"; then 11376 eval nmflags=\"\$nm${abi1}_flags\" 11377 test -n "$nmflags" || eval nmflags=\"\$nm${abi2}_flags\" 11378 if test -n "$nmflags"; then 11379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for extra nm flags" >&5 11380$as_echo_n "checking for extra nm flags... " >&6; } 11381 NM="$NM $nmflags" 11382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nmflags" >&5 11383$as_echo "$nmflags" >&6; } 11384 fi 11385fi 11386 11387 11388case $host in 11389 # FIXME: On AIX 3 and 4, $libname.a is included in libtool 11390 # $library_names_spec, so libgmp.a becomes a symlink to libgmp.so, making 11391 # it impossible to build shared and static libraries simultaneously. 11392 # Disable shared libraries by default, but let the user override with 11393 # --enable-shared --disable-static. 11394 # 11395 # FIXME: This $libname.a problem looks like it might apply to *-*-amigaos* 11396 # and *-*-os2* too, but wait for someone to test this before worrying 11397 # about it. If there is a problem then of course libtool is the right 11398 # place to fix it. 11399 # 11400 *-*-aix[34]*) 11401 if test -z "$enable_shared"; then enable_shared=no; fi ;; 11402esac 11403 11404 11405# Configs for Windows DLLs. 11406 11407enable_win32_dll=yes 11408 11409case $host in 11410*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 11411 if test -n "$ac_tool_prefix"; then 11412 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 11413set dummy ${ac_tool_prefix}as; ac_word=$2 11414{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11415$as_echo_n "checking for $ac_word... " >&6; } 11416if test "${ac_cv_prog_AS+set}" = set; then : 11417 $as_echo_n "(cached) " >&6 11418else 11419 if test -n "$AS"; then 11420 ac_cv_prog_AS="$AS" # Let the user override the test. 11421else 11422as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11423for as_dir in $PATH 11424do 11425 IFS=$as_save_IFS 11426 test -z "$as_dir" && as_dir=. 11427 for ac_exec_ext in '' $ac_executable_extensions; do 11428 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11429 ac_cv_prog_AS="${ac_tool_prefix}as" 11430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11431 break 2 11432 fi 11433done 11434 done 11435IFS=$as_save_IFS 11436 11437fi 11438fi 11439AS=$ac_cv_prog_AS 11440if test -n "$AS"; then 11441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 11442$as_echo "$AS" >&6; } 11443else 11444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11445$as_echo "no" >&6; } 11446fi 11447 11448 11449fi 11450if test -z "$ac_cv_prog_AS"; then 11451 ac_ct_AS=$AS 11452 # Extract the first word of "as", so it can be a program name with args. 11453set dummy as; ac_word=$2 11454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11455$as_echo_n "checking for $ac_word... " >&6; } 11456if test "${ac_cv_prog_ac_ct_AS+set}" = set; then : 11457 $as_echo_n "(cached) " >&6 11458else 11459 if test -n "$ac_ct_AS"; then 11460 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 11461else 11462as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11463for as_dir in $PATH 11464do 11465 IFS=$as_save_IFS 11466 test -z "$as_dir" && as_dir=. 11467 for ac_exec_ext in '' $ac_executable_extensions; do 11468 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11469 ac_cv_prog_ac_ct_AS="as" 11470 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11471 break 2 11472 fi 11473done 11474 done 11475IFS=$as_save_IFS 11476 11477fi 11478fi 11479ac_ct_AS=$ac_cv_prog_ac_ct_AS 11480if test -n "$ac_ct_AS"; then 11481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 11482$as_echo "$ac_ct_AS" >&6; } 11483else 11484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11485$as_echo "no" >&6; } 11486fi 11487 11488 if test "x$ac_ct_AS" = x; then 11489 AS="false" 11490 else 11491 case $cross_compiling:$ac_tool_warned in 11492yes:) 11493{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11494$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11495ac_tool_warned=yes ;; 11496esac 11497 AS=$ac_ct_AS 11498 fi 11499else 11500 AS="$ac_cv_prog_AS" 11501fi 11502 11503 if test -n "$ac_tool_prefix"; then 11504 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 11505set dummy ${ac_tool_prefix}dlltool; ac_word=$2 11506{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11507$as_echo_n "checking for $ac_word... " >&6; } 11508if test "${ac_cv_prog_DLLTOOL+set}" = set; then : 11509 $as_echo_n "(cached) " >&6 11510else 11511 if test -n "$DLLTOOL"; then 11512 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 11513else 11514as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11515for as_dir in $PATH 11516do 11517 IFS=$as_save_IFS 11518 test -z "$as_dir" && as_dir=. 11519 for ac_exec_ext in '' $ac_executable_extensions; do 11520 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11521 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 11522 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11523 break 2 11524 fi 11525done 11526 done 11527IFS=$as_save_IFS 11528 11529fi 11530fi 11531DLLTOOL=$ac_cv_prog_DLLTOOL 11532if test -n "$DLLTOOL"; then 11533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 11534$as_echo "$DLLTOOL" >&6; } 11535else 11536 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11537$as_echo "no" >&6; } 11538fi 11539 11540 11541fi 11542if test -z "$ac_cv_prog_DLLTOOL"; then 11543 ac_ct_DLLTOOL=$DLLTOOL 11544 # Extract the first word of "dlltool", so it can be a program name with args. 11545set dummy dlltool; ac_word=$2 11546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11547$as_echo_n "checking for $ac_word... " >&6; } 11548if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then : 11549 $as_echo_n "(cached) " >&6 11550else 11551 if test -n "$ac_ct_DLLTOOL"; then 11552 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 11553else 11554as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11555for as_dir in $PATH 11556do 11557 IFS=$as_save_IFS 11558 test -z "$as_dir" && as_dir=. 11559 for ac_exec_ext in '' $ac_executable_extensions; do 11560 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11561 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 11562 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11563 break 2 11564 fi 11565done 11566 done 11567IFS=$as_save_IFS 11568 11569fi 11570fi 11571ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 11572if test -n "$ac_ct_DLLTOOL"; then 11573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 11574$as_echo "$ac_ct_DLLTOOL" >&6; } 11575else 11576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11577$as_echo "no" >&6; } 11578fi 11579 11580 if test "x$ac_ct_DLLTOOL" = x; then 11581 DLLTOOL="false" 11582 else 11583 case $cross_compiling:$ac_tool_warned in 11584yes:) 11585{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11586$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11587ac_tool_warned=yes ;; 11588esac 11589 DLLTOOL=$ac_ct_DLLTOOL 11590 fi 11591else 11592 DLLTOOL="$ac_cv_prog_DLLTOOL" 11593fi 11594 11595 if test -n "$ac_tool_prefix"; then 11596 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 11597set dummy ${ac_tool_prefix}objdump; ac_word=$2 11598{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11599$as_echo_n "checking for $ac_word... " >&6; } 11600if test "${ac_cv_prog_OBJDUMP+set}" = set; then : 11601 $as_echo_n "(cached) " >&6 11602else 11603 if test -n "$OBJDUMP"; then 11604 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 11605else 11606as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11607for as_dir in $PATH 11608do 11609 IFS=$as_save_IFS 11610 test -z "$as_dir" && as_dir=. 11611 for ac_exec_ext in '' $ac_executable_extensions; do 11612 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11613 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 11614 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11615 break 2 11616 fi 11617done 11618 done 11619IFS=$as_save_IFS 11620 11621fi 11622fi 11623OBJDUMP=$ac_cv_prog_OBJDUMP 11624if test -n "$OBJDUMP"; then 11625 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 11626$as_echo "$OBJDUMP" >&6; } 11627else 11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11629$as_echo "no" >&6; } 11630fi 11631 11632 11633fi 11634if test -z "$ac_cv_prog_OBJDUMP"; then 11635 ac_ct_OBJDUMP=$OBJDUMP 11636 # Extract the first word of "objdump", so it can be a program name with args. 11637set dummy objdump; ac_word=$2 11638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11639$as_echo_n "checking for $ac_word... " >&6; } 11640if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : 11641 $as_echo_n "(cached) " >&6 11642else 11643 if test -n "$ac_ct_OBJDUMP"; then 11644 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 11645else 11646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11647for as_dir in $PATH 11648do 11649 IFS=$as_save_IFS 11650 test -z "$as_dir" && as_dir=. 11651 for ac_exec_ext in '' $ac_executable_extensions; do 11652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11653 ac_cv_prog_ac_ct_OBJDUMP="objdump" 11654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11655 break 2 11656 fi 11657done 11658 done 11659IFS=$as_save_IFS 11660 11661fi 11662fi 11663ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 11664if test -n "$ac_ct_OBJDUMP"; then 11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 11666$as_echo "$ac_ct_OBJDUMP" >&6; } 11667else 11668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11669$as_echo "no" >&6; } 11670fi 11671 11672 if test "x$ac_ct_OBJDUMP" = x; then 11673 OBJDUMP="false" 11674 else 11675 case $cross_compiling:$ac_tool_warned in 11676yes:) 11677{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11678$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11679ac_tool_warned=yes ;; 11680esac 11681 OBJDUMP=$ac_ct_OBJDUMP 11682 fi 11683else 11684 OBJDUMP="$ac_cv_prog_OBJDUMP" 11685fi 11686 11687 ;; 11688esac 11689 11690test -z "$AS" && AS=as 11691 11692 11693 11694 11695 11696test -z "$DLLTOOL" && DLLTOOL=dlltool 11697 11698 11699 11700 11701 11702test -z "$OBJDUMP" && OBJDUMP=objdump 11703 11704 11705 11706 11707 11708 11709 11710 11711LIBGMP_DLL=0 11712 11713case $host in 11714 *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*) 11715 # By default, build only static. 11716 if test -z "$enable_shared"; then 11717 enable_shared=no 11718 fi 11719 # Don't allow both static and DLL. 11720 if test "$enable_shared" != no && test "$enable_static" != no; then 11721 as_fn_error "cannot build both static and DLL, since gmp.h is different for each. 11722Use \"--disable-static --enable-shared\" to build just a DLL." "$LINENO" 5 11723 fi 11724 11725 # "-no-undefined" is required when building a DLL, see documentation on 11726 # AC_LIBTOOL_WIN32_DLL. 11727 # 11728 # "-Wl,--export-all-symbols" is a bit of a hack, it gets all libgmp and 11729 # libgmpxx functions and variables exported. This is what libtool did 11730 # in the past, and it's convenient for us in the test programs. 11731 # 11732 # Maybe it'd be prudent to check for --export-all-symbols before using 11733 # it, but it seems to have been in ld since at least 2000, and there's 11734 # not really any alternative we want to take up at the moment. 11735 # 11736 # "-Wl,output-def" is used to get a .def file for use by MS lib to make 11737 # a .lib import library, described in the manual. libgmp-3.dll.def 11738 # corresponds to the libmp-3.dll.def generated by libtool (as a result 11739 # of -export-symbols on that library). 11740 # 11741 # Incidentally, libtool does generate an import library libgmp.dll.a, 11742 # but it's "ar" format and cannot be used by the MS linker. There 11743 # doesn't seem to be any GNU tool for generating or converting to .lib. 11744 # 11745 # FIXME: The .def files produced by -Wl,output-def include isascii, 11746 # iscsym, iscsymf and toascii, apparently because mingw ctype.h doesn't 11747 # inline isascii (used in gmp). It gives an extern inline for 11748 # __isascii, but for some reason not the plain isascii. 11749 # 11750 if test "$enable_shared" = yes; then 11751 GMP_LDFLAGS="$GMP_LDFLAGS -no-undefined -Wl,--export-all-symbols" 11752 LIBGMP_LDFLAGS="$LIBGMP_LDFLAGS -Wl,--output-def,.libs/libgmp-3.dll.def" 11753 LIBGMPXX_LDFLAGS="$LIBGMP_LDFLAGS -Wl,--output-def,.libs/libgmpxx-3.dll.def" 11754 LIBGMP_DLL=1 11755 fi 11756 ;; 11757esac 11758 11759 11760# Ensure that $CONFIG_SHELL is available for AC_LIBTOOL_SYS_MAX_CMD_LEN. 11761# It's often set already by _LT_AC_PROG_ECHO_BACKSLASH or 11762# _AS_LINENO_PREPARE, but not always. 11763# 11764# The symptom of CONFIG_SHELL unset is some "expr" errors during the test, 11765# and an empty result. This only happens when invoked as "sh configure", 11766# ie. no path, and can be seen for instance on ia64-*-hpux*. 11767# 11768# FIXME: Newer libtool should have it's own fix for this. 11769# 11770if test -z "$CONFIG_SHELL"; then 11771 CONFIG_SHELL=$SHELL 11772fi 11773 11774# Enable CXX in libtool only if we want it, and never enable GCJ, nor RC on 11775# mingw and cygwin. Under --disable-cxx this avoids some error messages 11776# from libtool arising from the fact we didn't actually run AC_PROG_CXX. 11777# Notice that any user-supplied --with-tags setting takes precedence. 11778# 11779# FIXME: Is this the right way to get this effect? Very possibly not, but 11780# the current _LT_AC_TAGCONFIG doesn't really suggest an alternative. 11781# 11782if test "${with_tags+set}" != set; then 11783 if test $want_cxx = yes; then 11784 with_tags=CXX 11785 else 11786 with_tags= 11787 fi 11788fi 11789 11790# The dead hand of AC_REQUIRE makes AC_PROG_LIBTOOL expand and execute 11791# AC_PROG_F77, even when F77 is not in the selected with_tags. This is 11792# probably harmless, but it's unsightly and bloats our configure, so pretend 11793# AC_PROG_F77 has been expanded already. 11794# 11795# FIXME: Rumour has it libtool will one day provide a way for a configure.in 11796# to say what it wants from among supported languages etc. 11797# 11798 11799 11800case `pwd` in 11801 *\ * | *\ *) 11802 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 11803$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 11804esac 11805 11806 11807 11808macro_version='2.4.2' 11809macro_revision='1.3337' 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823ltmain="$ac_aux_dir/ltmain.sh" 11824 11825# Backslashify metacharacters that are still active within 11826# double-quoted strings. 11827sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 11828 11829# Same as above, but do not quote variable references. 11830double_quote_subst='s/\(["`\\]\)/\\\1/g' 11831 11832# Sed substitution to delay expansion of an escaped shell variable in a 11833# double_quote_subst'ed string. 11834delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 11835 11836# Sed substitution to delay expansion of an escaped single quote. 11837delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 11838 11839# Sed substitution to avoid accidental globbing in evaled expressions 11840no_glob_subst='s/\*/\\\*/g' 11841 11842ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11843ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 11844ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 11845 11846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 11847$as_echo_n "checking how to print strings... " >&6; } 11848# Test print first, because it will be a builtin if present. 11849if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 11850 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 11851 ECHO='print -r --' 11852elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 11853 ECHO='printf %s\n' 11854else 11855 # Use this function as a fallback that always works. 11856 func_fallback_echo () 11857 { 11858 eval 'cat <<_LTECHO_EOF 11859$1 11860_LTECHO_EOF' 11861 } 11862 ECHO='func_fallback_echo' 11863fi 11864 11865# func_echo_all arg... 11866# Invoke $ECHO with all args, space-separated. 11867func_echo_all () 11868{ 11869 $ECHO "" 11870} 11871 11872case "$ECHO" in 11873 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 11874$as_echo "printf" >&6; } ;; 11875 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 11876$as_echo "print -r" >&6; } ;; 11877 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 11878$as_echo "cat" >&6; } ;; 11879esac 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 11895$as_echo_n "checking for a sed that does not truncate output... " >&6; } 11896if test "${ac_cv_path_SED+set}" = set; then : 11897 $as_echo_n "(cached) " >&6 11898else 11899 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 11900 for ac_i in 1 2 3 4 5 6 7; do 11901 ac_script="$ac_script$as_nl$ac_script" 11902 done 11903 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 11904 { ac_script=; unset ac_script;} 11905 if test -z "$SED"; then 11906 ac_path_SED_found=false 11907 # Loop through the user's path and test for each of PROGNAME-LIST 11908 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11909for as_dir in $PATH 11910do 11911 IFS=$as_save_IFS 11912 test -z "$as_dir" && as_dir=. 11913 for ac_prog in sed gsed; do 11914 for ac_exec_ext in '' $ac_executable_extensions; do 11915 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 11916 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 11917# Check for GNU ac_path_SED and select it if it is found. 11918 # Check for GNU $ac_path_SED 11919case `"$ac_path_SED" --version 2>&1` in 11920*GNU*) 11921 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 11922*) 11923 ac_count=0 11924 $as_echo_n 0123456789 >"conftest.in" 11925 while : 11926 do 11927 cat "conftest.in" "conftest.in" >"conftest.tmp" 11928 mv "conftest.tmp" "conftest.in" 11929 cp "conftest.in" "conftest.nl" 11930 $as_echo '' >> "conftest.nl" 11931 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 11932 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 11933 as_fn_arith $ac_count + 1 && ac_count=$as_val 11934 if test $ac_count -gt ${ac_path_SED_max-0}; then 11935 # Best one so far, save it but keep looking for a better one 11936 ac_cv_path_SED="$ac_path_SED" 11937 ac_path_SED_max=$ac_count 11938 fi 11939 # 10*(2^10) chars as input seems more than enough 11940 test $ac_count -gt 10 && break 11941 done 11942 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 11943esac 11944 11945 $ac_path_SED_found && break 3 11946 done 11947 done 11948 done 11949IFS=$as_save_IFS 11950 if test -z "$ac_cv_path_SED"; then 11951 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 11952 fi 11953else 11954 ac_cv_path_SED=$SED 11955fi 11956 11957fi 11958{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 11959$as_echo "$ac_cv_path_SED" >&6; } 11960 SED="$ac_cv_path_SED" 11961 rm -f conftest.sed 11962 11963test -z "$SED" && SED=sed 11964Xsed="$SED -e 1s/^X//" 11965 11966 11967 11968 11969 11970 11971 11972 11973 11974 11975 11976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 11977$as_echo_n "checking for fgrep... " >&6; } 11978if test "${ac_cv_path_FGREP+set}" = set; then : 11979 $as_echo_n "(cached) " >&6 11980else 11981 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 11982 then ac_cv_path_FGREP="$GREP -F" 11983 else 11984 if test -z "$FGREP"; then 11985 ac_path_FGREP_found=false 11986 # Loop through the user's path and test for each of PROGNAME-LIST 11987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11988for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 11989do 11990 IFS=$as_save_IFS 11991 test -z "$as_dir" && as_dir=. 11992 for ac_prog in fgrep; do 11993 for ac_exec_ext in '' $ac_executable_extensions; do 11994 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 11995 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 11996# Check for GNU ac_path_FGREP and select it if it is found. 11997 # Check for GNU $ac_path_FGREP 11998case `"$ac_path_FGREP" --version 2>&1` in 11999*GNU*) 12000 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 12001*) 12002 ac_count=0 12003 $as_echo_n 0123456789 >"conftest.in" 12004 while : 12005 do 12006 cat "conftest.in" "conftest.in" >"conftest.tmp" 12007 mv "conftest.tmp" "conftest.in" 12008 cp "conftest.in" "conftest.nl" 12009 $as_echo 'FGREP' >> "conftest.nl" 12010 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 12011 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 12012 as_fn_arith $ac_count + 1 && ac_count=$as_val 12013 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 12014 # Best one so far, save it but keep looking for a better one 12015 ac_cv_path_FGREP="$ac_path_FGREP" 12016 ac_path_FGREP_max=$ac_count 12017 fi 12018 # 10*(2^10) chars as input seems more than enough 12019 test $ac_count -gt 10 && break 12020 done 12021 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 12022esac 12023 12024 $ac_path_FGREP_found && break 3 12025 done 12026 done 12027 done 12028IFS=$as_save_IFS 12029 if test -z "$ac_cv_path_FGREP"; then 12030 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 12031 fi 12032else 12033 ac_cv_path_FGREP=$FGREP 12034fi 12035 12036 fi 12037fi 12038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 12039$as_echo "$ac_cv_path_FGREP" >&6; } 12040 FGREP="$ac_cv_path_FGREP" 12041 12042 12043test -z "$GREP" && GREP=grep 12044 12045 12046 12047 12048 12049 12050 12051 12052 12053 12054 12055 12056 12057 12058 12059 12060 12061 12062 12063# Check whether --with-gnu-ld was given. 12064if test "${with_gnu_ld+set}" = set; then : 12065 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 12066else 12067 with_gnu_ld=no 12068fi 12069 12070ac_prog=ld 12071if test "$GCC" = yes; then 12072 # Check if gcc -print-prog-name=ld gives a path. 12073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 12074$as_echo_n "checking for ld used by $CC... " >&6; } 12075 case $host in 12076 *-*-mingw*) 12077 # gcc leaves a trailing carriage return which upsets mingw 12078 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12079 *) 12080 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12081 esac 12082 case $ac_prog in 12083 # Accept absolute paths. 12084 [\\/]* | ?:[\\/]*) 12085 re_direlt='/[^/][^/]*/\.\./' 12086 # Canonicalize the pathname of ld 12087 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 12088 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 12089 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 12090 done 12091 test -z "$LD" && LD="$ac_prog" 12092 ;; 12093 "") 12094 # If it fails, then pretend we aren't using GCC. 12095 ac_prog=ld 12096 ;; 12097 *) 12098 # If it is relative, then search for the first ld in PATH. 12099 with_gnu_ld=unknown 12100 ;; 12101 esac 12102elif test "$with_gnu_ld" = yes; then 12103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 12104$as_echo_n "checking for GNU ld... " >&6; } 12105else 12106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 12107$as_echo_n "checking for non-GNU ld... " >&6; } 12108fi 12109if test "${lt_cv_path_LD+set}" = set; then : 12110 $as_echo_n "(cached) " >&6 12111else 12112 if test -z "$LD"; then 12113 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 12114 for ac_dir in $PATH; do 12115 IFS="$lt_save_ifs" 12116 test -z "$ac_dir" && ac_dir=. 12117 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12118 lt_cv_path_LD="$ac_dir/$ac_prog" 12119 # Check to see if the program is GNU ld. I'd rather use --version, 12120 # but apparently some variants of GNU ld only accept -v. 12121 # Break only if it was the GNU/non-GNU ld that we prefer. 12122 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 12123 *GNU* | *'with BFD'*) 12124 test "$with_gnu_ld" != no && break 12125 ;; 12126 *) 12127 test "$with_gnu_ld" != yes && break 12128 ;; 12129 esac 12130 fi 12131 done 12132 IFS="$lt_save_ifs" 12133else 12134 lt_cv_path_LD="$LD" # Let the user override the test with a path. 12135fi 12136fi 12137 12138LD="$lt_cv_path_LD" 12139if test -n "$LD"; then 12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 12141$as_echo "$LD" >&6; } 12142else 12143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12144$as_echo "no" >&6; } 12145fi 12146test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 12147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 12148$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 12149if test "${lt_cv_prog_gnu_ld+set}" = set; then : 12150 $as_echo_n "(cached) " >&6 12151else 12152 # I'd rather use --version here, but apparently some GNU lds only accept -v. 12153case `$LD -v 2>&1 </dev/null` in 12154*GNU* | *'with BFD'*) 12155 lt_cv_prog_gnu_ld=yes 12156 ;; 12157*) 12158 lt_cv_prog_gnu_ld=no 12159 ;; 12160esac 12161fi 12162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 12163$as_echo "$lt_cv_prog_gnu_ld" >&6; } 12164with_gnu_ld=$lt_cv_prog_gnu_ld 12165 12166 12167 12168 12169 12170 12171 12172 12173 12174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 12175$as_echo_n "checking whether ln -s works... " >&6; } 12176LN_S=$as_ln_s 12177if test "$LN_S" = "ln -s"; then 12178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12179$as_echo "yes" >&6; } 12180else 12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 12182$as_echo "no, using $LN_S" >&6; } 12183fi 12184 12185# find the maximum length of command line arguments 12186{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 12187$as_echo_n "checking the maximum length of command line arguments... " >&6; } 12188if test "${lt_cv_sys_max_cmd_len+set}" = set; then : 12189 $as_echo_n "(cached) " >&6 12190else 12191 i=0 12192 teststring="ABCD" 12193 12194 case $build_os in 12195 msdosdjgpp*) 12196 # On DJGPP, this test can blow up pretty badly due to problems in libc 12197 # (any single argument exceeding 2000 bytes causes a buffer overrun 12198 # during glob expansion). Even if it were fixed, the result of this 12199 # check would be larger than it should be. 12200 lt_cv_sys_max_cmd_len=12288; # 12K is about right 12201 ;; 12202 12203 gnu*) 12204 # Under GNU Hurd, this test is not required because there is 12205 # no limit to the length of command line arguments. 12206 # Libtool will interpret -1 as no limit whatsoever 12207 lt_cv_sys_max_cmd_len=-1; 12208 ;; 12209 12210 cygwin* | mingw* | cegcc*) 12211 # On Win9x/ME, this test blows up -- it succeeds, but takes 12212 # about 5 minutes as the teststring grows exponentially. 12213 # Worse, since 9x/ME are not pre-emptively multitasking, 12214 # you end up with a "frozen" computer, even though with patience 12215 # the test eventually succeeds (with a max line length of 256k). 12216 # Instead, let's just punt: use the minimum linelength reported by 12217 # all of the supported platforms: 8192 (on NT/2K/XP). 12218 lt_cv_sys_max_cmd_len=8192; 12219 ;; 12220 12221 mint*) 12222 # On MiNT this can take a long time and run out of memory. 12223 lt_cv_sys_max_cmd_len=8192; 12224 ;; 12225 12226 amigaos*) 12227 # On AmigaOS with pdksh, this test takes hours, literally. 12228 # So we just punt and use a minimum line length of 8192. 12229 lt_cv_sys_max_cmd_len=8192; 12230 ;; 12231 12232 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 12233 # This has been around since 386BSD, at least. Likely further. 12234 if test -x /sbin/sysctl; then 12235 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 12236 elif test -x /usr/sbin/sysctl; then 12237 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 12238 else 12239 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 12240 fi 12241 # And add a safety zone 12242 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 12243 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 12244 ;; 12245 12246 interix*) 12247 # We know the value 262144 and hardcode it with a safety zone (like BSD) 12248 lt_cv_sys_max_cmd_len=196608 12249 ;; 12250 12251 os2*) 12252 # The test takes a long time on OS/2. 12253 lt_cv_sys_max_cmd_len=8192 12254 ;; 12255 12256 osf*) 12257 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 12258 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 12259 # nice to cause kernel panics so lets avoid the loop below. 12260 # First set a reasonable default. 12261 lt_cv_sys_max_cmd_len=16384 12262 # 12263 if test -x /sbin/sysconfig; then 12264 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 12265 *1*) lt_cv_sys_max_cmd_len=-1 ;; 12266 esac 12267 fi 12268 ;; 12269 sco3.2v5*) 12270 lt_cv_sys_max_cmd_len=102400 12271 ;; 12272 sysv5* | sco5v6* | sysv4.2uw2*) 12273 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 12274 if test -n "$kargmax"; then 12275 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 12276 else 12277 lt_cv_sys_max_cmd_len=32768 12278 fi 12279 ;; 12280 *) 12281 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 12282 if test -n "$lt_cv_sys_max_cmd_len"; then 12283 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 12284 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 12285 else 12286 # Make teststring a little bigger before we do anything with it. 12287 # a 1K string should be a reasonable start. 12288 for i in 1 2 3 4 5 6 7 8 ; do 12289 teststring=$teststring$teststring 12290 done 12291 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 12292 # If test is not a shell built-in, we'll probably end up computing a 12293 # maximum length that is only half of the actual maximum length, but 12294 # we can't tell. 12295 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 12296 = "X$teststring$teststring"; } >/dev/null 2>&1 && 12297 test $i != 17 # 1/2 MB should be enough 12298 do 12299 i=`expr $i + 1` 12300 teststring=$teststring$teststring 12301 done 12302 # Only check the string length outside the loop. 12303 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 12304 teststring= 12305 # Add a significant safety factor because C++ compilers can tack on 12306 # massive amounts of additional arguments before passing them to the 12307 # linker. It appears as though 1/2 is a usable value. 12308 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 12309 fi 12310 ;; 12311 esac 12312 12313fi 12314 12315if test -n $lt_cv_sys_max_cmd_len ; then 12316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 12317$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 12318else 12319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 12320$as_echo "none" >&6; } 12321fi 12322max_cmd_len=$lt_cv_sys_max_cmd_len 12323 12324 12325 12326 12327 12328 12329: ${CP="cp -f"} 12330: ${MV="mv -f"} 12331: ${RM="rm -f"} 12332 12333{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 12334$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 12335# Try some XSI features 12336xsi_shell=no 12337( _lt_dummy="a/b/c" 12338 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 12339 = c,a/b,b/c, \ 12340 && eval 'test $(( 1 + 1 )) -eq 2 \ 12341 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 12342 && xsi_shell=yes 12343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 12344$as_echo "$xsi_shell" >&6; } 12345 12346 12347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 12348$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 12349lt_shell_append=no 12350( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 12351 >/dev/null 2>&1 \ 12352 && lt_shell_append=yes 12353{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 12354$as_echo "$lt_shell_append" >&6; } 12355 12356 12357if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 12358 lt_unset=unset 12359else 12360 lt_unset=false 12361fi 12362 12363 12364 12365 12366 12367# test EBCDIC or ASCII 12368case `echo X|tr X '\101'` in 12369 A) # ASCII based system 12370 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 12371 lt_SP2NL='tr \040 \012' 12372 lt_NL2SP='tr \015\012 \040\040' 12373 ;; 12374 *) # EBCDIC based system 12375 lt_SP2NL='tr \100 \n' 12376 lt_NL2SP='tr \r\n \100\100' 12377 ;; 12378esac 12379 12380 12381 12382 12383 12384 12385 12386 12387 12388{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 12389$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 12390if test "${lt_cv_to_host_file_cmd+set}" = set; then : 12391 $as_echo_n "(cached) " >&6 12392else 12393 case $host in 12394 *-*-mingw* ) 12395 case $build in 12396 *-*-mingw* ) # actually msys 12397 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 12398 ;; 12399 *-*-cygwin* ) 12400 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 12401 ;; 12402 * ) # otherwise, assume *nix 12403 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 12404 ;; 12405 esac 12406 ;; 12407 *-*-cygwin* ) 12408 case $build in 12409 *-*-mingw* ) # actually msys 12410 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 12411 ;; 12412 *-*-cygwin* ) 12413 lt_cv_to_host_file_cmd=func_convert_file_noop 12414 ;; 12415 * ) # otherwise, assume *nix 12416 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 12417 ;; 12418 esac 12419 ;; 12420 * ) # unhandled hosts (and "normal" native builds) 12421 lt_cv_to_host_file_cmd=func_convert_file_noop 12422 ;; 12423esac 12424 12425fi 12426 12427to_host_file_cmd=$lt_cv_to_host_file_cmd 12428{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 12429$as_echo "$lt_cv_to_host_file_cmd" >&6; } 12430 12431 12432 12433 12434 12435{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 12436$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 12437if test "${lt_cv_to_tool_file_cmd+set}" = set; then : 12438 $as_echo_n "(cached) " >&6 12439else 12440 #assume ordinary cross tools, or native build. 12441lt_cv_to_tool_file_cmd=func_convert_file_noop 12442case $host in 12443 *-*-mingw* ) 12444 case $build in 12445 *-*-mingw* ) # actually msys 12446 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 12447 ;; 12448 esac 12449 ;; 12450esac 12451 12452fi 12453 12454to_tool_file_cmd=$lt_cv_to_tool_file_cmd 12455{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 12456$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 12457 12458 12459 12460 12461 12462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 12463$as_echo_n "checking for $LD option to reload object files... " >&6; } 12464if test "${lt_cv_ld_reload_flag+set}" = set; then : 12465 $as_echo_n "(cached) " >&6 12466else 12467 lt_cv_ld_reload_flag='-r' 12468fi 12469{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 12470$as_echo "$lt_cv_ld_reload_flag" >&6; } 12471reload_flag=$lt_cv_ld_reload_flag 12472case $reload_flag in 12473"" | " "*) ;; 12474*) reload_flag=" $reload_flag" ;; 12475esac 12476reload_cmds='$LD$reload_flag -o $output$reload_objs' 12477case $host_os in 12478 cygwin* | mingw* | pw32* | cegcc*) 12479 if test "$GCC" != yes; then 12480 reload_cmds=false 12481 fi 12482 ;; 12483 darwin*) 12484 if test "$GCC" = yes; then 12485 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 12486 else 12487 reload_cmds='$LD$reload_flag -o $output$reload_objs' 12488 fi 12489 ;; 12490esac 12491 12492 12493 12494 12495 12496 12497 12498 12499 12500if test -n "$ac_tool_prefix"; then 12501 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 12502set dummy ${ac_tool_prefix}objdump; ac_word=$2 12503{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12504$as_echo_n "checking for $ac_word... " >&6; } 12505if test "${ac_cv_prog_OBJDUMP+set}" = set; then : 12506 $as_echo_n "(cached) " >&6 12507else 12508 if test -n "$OBJDUMP"; then 12509 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 12510else 12511as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12512for as_dir in $PATH 12513do 12514 IFS=$as_save_IFS 12515 test -z "$as_dir" && as_dir=. 12516 for ac_exec_ext in '' $ac_executable_extensions; do 12517 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12518 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 12519 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12520 break 2 12521 fi 12522done 12523 done 12524IFS=$as_save_IFS 12525 12526fi 12527fi 12528OBJDUMP=$ac_cv_prog_OBJDUMP 12529if test -n "$OBJDUMP"; then 12530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 12531$as_echo "$OBJDUMP" >&6; } 12532else 12533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12534$as_echo "no" >&6; } 12535fi 12536 12537 12538fi 12539if test -z "$ac_cv_prog_OBJDUMP"; then 12540 ac_ct_OBJDUMP=$OBJDUMP 12541 # Extract the first word of "objdump", so it can be a program name with args. 12542set dummy objdump; ac_word=$2 12543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12544$as_echo_n "checking for $ac_word... " >&6; } 12545if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : 12546 $as_echo_n "(cached) " >&6 12547else 12548 if test -n "$ac_ct_OBJDUMP"; then 12549 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 12550else 12551as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12552for as_dir in $PATH 12553do 12554 IFS=$as_save_IFS 12555 test -z "$as_dir" && as_dir=. 12556 for ac_exec_ext in '' $ac_executable_extensions; do 12557 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12558 ac_cv_prog_ac_ct_OBJDUMP="objdump" 12559 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12560 break 2 12561 fi 12562done 12563 done 12564IFS=$as_save_IFS 12565 12566fi 12567fi 12568ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 12569if test -n "$ac_ct_OBJDUMP"; then 12570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 12571$as_echo "$ac_ct_OBJDUMP" >&6; } 12572else 12573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12574$as_echo "no" >&6; } 12575fi 12576 12577 if test "x$ac_ct_OBJDUMP" = x; then 12578 OBJDUMP="false" 12579 else 12580 case $cross_compiling:$ac_tool_warned in 12581yes:) 12582{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12583$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12584ac_tool_warned=yes ;; 12585esac 12586 OBJDUMP=$ac_ct_OBJDUMP 12587 fi 12588else 12589 OBJDUMP="$ac_cv_prog_OBJDUMP" 12590fi 12591 12592test -z "$OBJDUMP" && OBJDUMP=objdump 12593 12594 12595 12596 12597 12598 12599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 12600$as_echo_n "checking how to recognize dependent libraries... " >&6; } 12601if test "${lt_cv_deplibs_check_method+set}" = set; then : 12602 $as_echo_n "(cached) " >&6 12603else 12604 lt_cv_file_magic_cmd='$MAGIC_CMD' 12605lt_cv_file_magic_test_file= 12606lt_cv_deplibs_check_method='unknown' 12607# Need to set the preceding variable on all platforms that support 12608# interlibrary dependencies. 12609# 'none' -- dependencies not supported. 12610# `unknown' -- same as none, but documents that we really don't know. 12611# 'pass_all' -- all dependencies passed with no checks. 12612# 'test_compile' -- check by making test program. 12613# 'file_magic [[regex]]' -- check by looking for files in library path 12614# which responds to the $file_magic_cmd with a given extended regex. 12615# If you have `file' or equivalent on your system and you're not sure 12616# whether `pass_all' will *always* work, you probably want this one. 12617 12618case $host_os in 12619aix[4-9]*) 12620 lt_cv_deplibs_check_method=pass_all 12621 ;; 12622 12623beos*) 12624 lt_cv_deplibs_check_method=pass_all 12625 ;; 12626 12627bsdi[45]*) 12628 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 12629 lt_cv_file_magic_cmd='/usr/bin/file -L' 12630 lt_cv_file_magic_test_file=/shlib/libc.so 12631 ;; 12632 12633cygwin*) 12634 # func_win32_libid is a shell function defined in ltmain.sh 12635 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 12636 lt_cv_file_magic_cmd='func_win32_libid' 12637 ;; 12638 12639mingw* | pw32*) 12640 # Base MSYS/MinGW do not provide the 'file' command needed by 12641 # func_win32_libid shell function, so use a weaker test based on 'objdump', 12642 # unless we find 'file', for example because we are cross-compiling. 12643 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 12644 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 12645 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 12646 lt_cv_file_magic_cmd='func_win32_libid' 12647 else 12648 # Keep this pattern in sync with the one in func_win32_libid. 12649 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 12650 lt_cv_file_magic_cmd='$OBJDUMP -f' 12651 fi 12652 ;; 12653 12654cegcc*) 12655 # use the weaker test based on 'objdump'. See mingw*. 12656 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 12657 lt_cv_file_magic_cmd='$OBJDUMP -f' 12658 ;; 12659 12660darwin* | rhapsody*) 12661 lt_cv_deplibs_check_method=pass_all 12662 ;; 12663 12664freebsd* | dragonfly*) 12665 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12666 case $host_cpu in 12667 i*86 ) 12668 # Not sure whether the presence of OpenBSD here was a mistake. 12669 # Let's accept both of them until this is cleared up. 12670 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 12671 lt_cv_file_magic_cmd=/usr/bin/file 12672 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 12673 ;; 12674 esac 12675 else 12676 lt_cv_deplibs_check_method=pass_all 12677 fi 12678 ;; 12679 12680gnu*) 12681 lt_cv_deplibs_check_method=pass_all 12682 ;; 12683 12684haiku*) 12685 lt_cv_deplibs_check_method=pass_all 12686 ;; 12687 12688hpux10.20* | hpux11*) 12689 lt_cv_file_magic_cmd=/usr/bin/file 12690 case $host_cpu in 12691 ia64*) 12692 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 12693 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 12694 ;; 12695 hppa*64*) 12696 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' 12697 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 12698 ;; 12699 *) 12700 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 12701 lt_cv_file_magic_test_file=/usr/lib/libc.sl 12702 ;; 12703 esac 12704 ;; 12705 12706interix[3-9]*) 12707 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 12708 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 12709 ;; 12710 12711irix5* | irix6* | nonstopux*) 12712 case $LD in 12713 *-32|*"-32 ") libmagic=32-bit;; 12714 *-n32|*"-n32 ") libmagic=N32;; 12715 *-64|*"-64 ") libmagic=64-bit;; 12716 *) libmagic=never-match;; 12717 esac 12718 lt_cv_deplibs_check_method=pass_all 12719 ;; 12720 12721# This must be glibc/ELF. 12722linux* | k*bsd*-gnu | kopensolaris*-gnu) 12723 lt_cv_deplibs_check_method=pass_all 12724 ;; 12725 12726netbsd*) 12727 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 12728 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12729 else 12730 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 12731 fi 12732 ;; 12733 12734newos6*) 12735 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 12736 lt_cv_file_magic_cmd=/usr/bin/file 12737 lt_cv_file_magic_test_file=/usr/lib/libnls.so 12738 ;; 12739 12740*nto* | *qnx*) 12741 lt_cv_deplibs_check_method=pass_all 12742 ;; 12743 12744openbsd*) 12745 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12746 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 12747 else 12748 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 12749 fi 12750 ;; 12751 12752osf3* | osf4* | osf5*) 12753 lt_cv_deplibs_check_method=pass_all 12754 ;; 12755 12756rdos*) 12757 lt_cv_deplibs_check_method=pass_all 12758 ;; 12759 12760solaris*) 12761 lt_cv_deplibs_check_method=pass_all 12762 ;; 12763 12764sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12765 lt_cv_deplibs_check_method=pass_all 12766 ;; 12767 12768sysv4 | sysv4.3*) 12769 case $host_vendor in 12770 motorola) 12771 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]' 12772 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 12773 ;; 12774 ncr) 12775 lt_cv_deplibs_check_method=pass_all 12776 ;; 12777 sequent) 12778 lt_cv_file_magic_cmd='/bin/file' 12779 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 12780 ;; 12781 sni) 12782 lt_cv_file_magic_cmd='/bin/file' 12783 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 12784 lt_cv_file_magic_test_file=/lib/libc.so 12785 ;; 12786 siemens) 12787 lt_cv_deplibs_check_method=pass_all 12788 ;; 12789 pc) 12790 lt_cv_deplibs_check_method=pass_all 12791 ;; 12792 esac 12793 ;; 12794 12795tpf*) 12796 lt_cv_deplibs_check_method=pass_all 12797 ;; 12798esac 12799 12800fi 12801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 12802$as_echo "$lt_cv_deplibs_check_method" >&6; } 12803 12804file_magic_glob= 12805want_nocaseglob=no 12806if test "$build" = "$host"; then 12807 case $host_os in 12808 mingw* | pw32*) 12809 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 12810 want_nocaseglob=yes 12811 else 12812 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 12813 fi 12814 ;; 12815 esac 12816fi 12817 12818file_magic_cmd=$lt_cv_file_magic_cmd 12819deplibs_check_method=$lt_cv_deplibs_check_method 12820test -z "$deplibs_check_method" && deplibs_check_method=unknown 12821 12822 12823 12824 12825 12826 12827 12828 12829 12830 12831 12832 12833 12834 12835 12836 12837 12838 12839 12840 12841 12842 12843if test -n "$ac_tool_prefix"; then 12844 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 12845set dummy ${ac_tool_prefix}dlltool; ac_word=$2 12846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12847$as_echo_n "checking for $ac_word... " >&6; } 12848if test "${ac_cv_prog_DLLTOOL+set}" = set; then : 12849 $as_echo_n "(cached) " >&6 12850else 12851 if test -n "$DLLTOOL"; then 12852 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 12853else 12854as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12855for as_dir in $PATH 12856do 12857 IFS=$as_save_IFS 12858 test -z "$as_dir" && as_dir=. 12859 for ac_exec_ext in '' $ac_executable_extensions; do 12860 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12861 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 12862 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12863 break 2 12864 fi 12865done 12866 done 12867IFS=$as_save_IFS 12868 12869fi 12870fi 12871DLLTOOL=$ac_cv_prog_DLLTOOL 12872if test -n "$DLLTOOL"; then 12873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 12874$as_echo "$DLLTOOL" >&6; } 12875else 12876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12877$as_echo "no" >&6; } 12878fi 12879 12880 12881fi 12882if test -z "$ac_cv_prog_DLLTOOL"; then 12883 ac_ct_DLLTOOL=$DLLTOOL 12884 # Extract the first word of "dlltool", so it can be a program name with args. 12885set dummy dlltool; ac_word=$2 12886{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12887$as_echo_n "checking for $ac_word... " >&6; } 12888if test "${ac_cv_prog_ac_ct_DLLTOOL+set}" = set; then : 12889 $as_echo_n "(cached) " >&6 12890else 12891 if test -n "$ac_ct_DLLTOOL"; then 12892 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 12893else 12894as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12895for as_dir in $PATH 12896do 12897 IFS=$as_save_IFS 12898 test -z "$as_dir" && as_dir=. 12899 for ac_exec_ext in '' $ac_executable_extensions; do 12900 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12901 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 12902 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12903 break 2 12904 fi 12905done 12906 done 12907IFS=$as_save_IFS 12908 12909fi 12910fi 12911ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 12912if test -n "$ac_ct_DLLTOOL"; then 12913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 12914$as_echo "$ac_ct_DLLTOOL" >&6; } 12915else 12916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12917$as_echo "no" >&6; } 12918fi 12919 12920 if test "x$ac_ct_DLLTOOL" = x; then 12921 DLLTOOL="false" 12922 else 12923 case $cross_compiling:$ac_tool_warned in 12924yes:) 12925{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12926$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12927ac_tool_warned=yes ;; 12928esac 12929 DLLTOOL=$ac_ct_DLLTOOL 12930 fi 12931else 12932 DLLTOOL="$ac_cv_prog_DLLTOOL" 12933fi 12934 12935test -z "$DLLTOOL" && DLLTOOL=dlltool 12936 12937 12938 12939 12940 12941 12942 12943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 12944$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 12945if test "${lt_cv_sharedlib_from_linklib_cmd+set}" = set; then : 12946 $as_echo_n "(cached) " >&6 12947else 12948 lt_cv_sharedlib_from_linklib_cmd='unknown' 12949 12950case $host_os in 12951cygwin* | mingw* | pw32* | cegcc*) 12952 # two different shell functions defined in ltmain.sh 12953 # decide which to use based on capabilities of $DLLTOOL 12954 case `$DLLTOOL --help 2>&1` in 12955 *--identify-strict*) 12956 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 12957 ;; 12958 *) 12959 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 12960 ;; 12961 esac 12962 ;; 12963*) 12964 # fallback: assume linklib IS sharedlib 12965 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 12966 ;; 12967esac 12968 12969fi 12970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 12971$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 12972sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 12973test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 12974 12975 12976 12977 12978 12979 12980 12981if test -n "$ac_tool_prefix"; then 12982 for ac_prog in ar 12983 do 12984 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 12985set dummy $ac_tool_prefix$ac_prog; ac_word=$2 12986{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12987$as_echo_n "checking for $ac_word... " >&6; } 12988if test "${ac_cv_prog_AR+set}" = set; then : 12989 $as_echo_n "(cached) " >&6 12990else 12991 if test -n "$AR"; then 12992 ac_cv_prog_AR="$AR" # Let the user override the test. 12993else 12994as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12995for as_dir in $PATH 12996do 12997 IFS=$as_save_IFS 12998 test -z "$as_dir" && as_dir=. 12999 for ac_exec_ext in '' $ac_executable_extensions; do 13000 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13001 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 13002 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13003 break 2 13004 fi 13005done 13006 done 13007IFS=$as_save_IFS 13008 13009fi 13010fi 13011AR=$ac_cv_prog_AR 13012if test -n "$AR"; then 13013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 13014$as_echo "$AR" >&6; } 13015else 13016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13017$as_echo "no" >&6; } 13018fi 13019 13020 13021 test -n "$AR" && break 13022 done 13023fi 13024if test -z "$AR"; then 13025 ac_ct_AR=$AR 13026 for ac_prog in ar 13027do 13028 # Extract the first word of "$ac_prog", so it can be a program name with args. 13029set dummy $ac_prog; ac_word=$2 13030{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13031$as_echo_n "checking for $ac_word... " >&6; } 13032if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 13033 $as_echo_n "(cached) " >&6 13034else 13035 if test -n "$ac_ct_AR"; then 13036 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 13037else 13038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13039for as_dir in $PATH 13040do 13041 IFS=$as_save_IFS 13042 test -z "$as_dir" && as_dir=. 13043 for ac_exec_ext in '' $ac_executable_extensions; do 13044 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13045 ac_cv_prog_ac_ct_AR="$ac_prog" 13046 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13047 break 2 13048 fi 13049done 13050 done 13051IFS=$as_save_IFS 13052 13053fi 13054fi 13055ac_ct_AR=$ac_cv_prog_ac_ct_AR 13056if test -n "$ac_ct_AR"; then 13057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 13058$as_echo "$ac_ct_AR" >&6; } 13059else 13060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13061$as_echo "no" >&6; } 13062fi 13063 13064 13065 test -n "$ac_ct_AR" && break 13066done 13067 13068 if test "x$ac_ct_AR" = x; then 13069 AR="false" 13070 else 13071 case $cross_compiling:$ac_tool_warned in 13072yes:) 13073{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13074$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13075ac_tool_warned=yes ;; 13076esac 13077 AR=$ac_ct_AR 13078 fi 13079fi 13080 13081: ${AR=ar} 13082: ${AR_FLAGS=cru} 13083 13084 13085 13086 13087 13088 13089 13090 13091 13092 13093 13094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 13095$as_echo_n "checking for archiver @FILE support... " >&6; } 13096if test "${lt_cv_ar_at_file+set}" = set; then : 13097 $as_echo_n "(cached) " >&6 13098else 13099 lt_cv_ar_at_file=no 13100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13101/* end confdefs.h. */ 13102 13103int 13104main () 13105{ 13106 13107 ; 13108 return 0; 13109} 13110_ACEOF 13111if ac_fn_c_try_compile "$LINENO"; then : 13112 echo conftest.$ac_objext > conftest.lst 13113 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 13114 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 13115 (eval $lt_ar_try) 2>&5 13116 ac_status=$? 13117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13118 test $ac_status = 0; } 13119 if test "$ac_status" -eq 0; then 13120 # Ensure the archiver fails upon bogus file names. 13121 rm -f conftest.$ac_objext libconftest.a 13122 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 13123 (eval $lt_ar_try) 2>&5 13124 ac_status=$? 13125 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13126 test $ac_status = 0; } 13127 if test "$ac_status" -ne 0; then 13128 lt_cv_ar_at_file=@ 13129 fi 13130 fi 13131 rm -f conftest.* libconftest.a 13132 13133fi 13134rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 13135 13136fi 13137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 13138$as_echo "$lt_cv_ar_at_file" >&6; } 13139 13140if test "x$lt_cv_ar_at_file" = xno; then 13141 archiver_list_spec= 13142else 13143 archiver_list_spec=$lt_cv_ar_at_file 13144fi 13145 13146 13147 13148 13149 13150 13151 13152if test -n "$ac_tool_prefix"; then 13153 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 13154set dummy ${ac_tool_prefix}strip; ac_word=$2 13155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13156$as_echo_n "checking for $ac_word... " >&6; } 13157if test "${ac_cv_prog_STRIP+set}" = set; then : 13158 $as_echo_n "(cached) " >&6 13159else 13160 if test -n "$STRIP"; then 13161 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 13162else 13163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13164for as_dir in $PATH 13165do 13166 IFS=$as_save_IFS 13167 test -z "$as_dir" && as_dir=. 13168 for ac_exec_ext in '' $ac_executable_extensions; do 13169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13170 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 13171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13172 break 2 13173 fi 13174done 13175 done 13176IFS=$as_save_IFS 13177 13178fi 13179fi 13180STRIP=$ac_cv_prog_STRIP 13181if test -n "$STRIP"; then 13182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 13183$as_echo "$STRIP" >&6; } 13184else 13185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13186$as_echo "no" >&6; } 13187fi 13188 13189 13190fi 13191if test -z "$ac_cv_prog_STRIP"; then 13192 ac_ct_STRIP=$STRIP 13193 # Extract the first word of "strip", so it can be a program name with args. 13194set dummy strip; ac_word=$2 13195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13196$as_echo_n "checking for $ac_word... " >&6; } 13197if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 13198 $as_echo_n "(cached) " >&6 13199else 13200 if test -n "$ac_ct_STRIP"; then 13201 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 13202else 13203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13204for as_dir in $PATH 13205do 13206 IFS=$as_save_IFS 13207 test -z "$as_dir" && as_dir=. 13208 for ac_exec_ext in '' $ac_executable_extensions; do 13209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13210 ac_cv_prog_ac_ct_STRIP="strip" 13211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13212 break 2 13213 fi 13214done 13215 done 13216IFS=$as_save_IFS 13217 13218fi 13219fi 13220ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 13221if test -n "$ac_ct_STRIP"; then 13222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 13223$as_echo "$ac_ct_STRIP" >&6; } 13224else 13225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13226$as_echo "no" >&6; } 13227fi 13228 13229 if test "x$ac_ct_STRIP" = x; then 13230 STRIP=":" 13231 else 13232 case $cross_compiling:$ac_tool_warned in 13233yes:) 13234{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13235$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13236ac_tool_warned=yes ;; 13237esac 13238 STRIP=$ac_ct_STRIP 13239 fi 13240else 13241 STRIP="$ac_cv_prog_STRIP" 13242fi 13243 13244test -z "$STRIP" && STRIP=: 13245 13246 13247 13248 13249 13250 13251if test -n "$ac_tool_prefix"; then 13252 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 13253set dummy ${ac_tool_prefix}ranlib; ac_word=$2 13254{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13255$as_echo_n "checking for $ac_word... " >&6; } 13256if test "${ac_cv_prog_RANLIB+set}" = set; then : 13257 $as_echo_n "(cached) " >&6 13258else 13259 if test -n "$RANLIB"; then 13260 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 13261else 13262as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13263for as_dir in $PATH 13264do 13265 IFS=$as_save_IFS 13266 test -z "$as_dir" && as_dir=. 13267 for ac_exec_ext in '' $ac_executable_extensions; do 13268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13269 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 13270 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13271 break 2 13272 fi 13273done 13274 done 13275IFS=$as_save_IFS 13276 13277fi 13278fi 13279RANLIB=$ac_cv_prog_RANLIB 13280if test -n "$RANLIB"; then 13281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 13282$as_echo "$RANLIB" >&6; } 13283else 13284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13285$as_echo "no" >&6; } 13286fi 13287 13288 13289fi 13290if test -z "$ac_cv_prog_RANLIB"; then 13291 ac_ct_RANLIB=$RANLIB 13292 # Extract the first word of "ranlib", so it can be a program name with args. 13293set dummy ranlib; ac_word=$2 13294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13295$as_echo_n "checking for $ac_word... " >&6; } 13296if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 13297 $as_echo_n "(cached) " >&6 13298else 13299 if test -n "$ac_ct_RANLIB"; then 13300 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 13301else 13302as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13303for as_dir in $PATH 13304do 13305 IFS=$as_save_IFS 13306 test -z "$as_dir" && as_dir=. 13307 for ac_exec_ext in '' $ac_executable_extensions; do 13308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13309 ac_cv_prog_ac_ct_RANLIB="ranlib" 13310 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13311 break 2 13312 fi 13313done 13314 done 13315IFS=$as_save_IFS 13316 13317fi 13318fi 13319ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 13320if test -n "$ac_ct_RANLIB"; then 13321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 13322$as_echo "$ac_ct_RANLIB" >&6; } 13323else 13324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13325$as_echo "no" >&6; } 13326fi 13327 13328 if test "x$ac_ct_RANLIB" = x; then 13329 RANLIB=":" 13330 else 13331 case $cross_compiling:$ac_tool_warned in 13332yes:) 13333{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 13334$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 13335ac_tool_warned=yes ;; 13336esac 13337 RANLIB=$ac_ct_RANLIB 13338 fi 13339else 13340 RANLIB="$ac_cv_prog_RANLIB" 13341fi 13342 13343test -z "$RANLIB" && RANLIB=: 13344 13345 13346 13347 13348 13349 13350# Determine commands to create old-style static archives. 13351old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 13352old_postinstall_cmds='chmod 644 $oldlib' 13353old_postuninstall_cmds= 13354 13355if test -n "$RANLIB"; then 13356 case $host_os in 13357 openbsd*) 13358 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 13359 ;; 13360 *) 13361 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 13362 ;; 13363 esac 13364 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 13365fi 13366 13367case $host_os in 13368 darwin*) 13369 lock_old_archive_extraction=yes ;; 13370 *) 13371 lock_old_archive_extraction=no ;; 13372esac 13373 13374 13375 13376 13377 13378 13379 13380 13381 13382 13383 13384 13385 13386 13387 13388 13389 13390 13391 13392 13393 13394 13395 13396 13397 13398 13399 13400 13401 13402 13403 13404 13405 13406 13407 13408 13409 13410 13411 13412# If no C compiler was specified, use CC. 13413LTCC=${LTCC-"$CC"} 13414 13415# If no C compiler flags were specified, use CFLAGS. 13416LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13417 13418# Allow CC to be a program name with arguments. 13419compiler=$CC 13420 13421 13422# Check for command to grab the raw symbol name followed by C symbol from nm. 13423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 13424$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 13425if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : 13426 $as_echo_n "(cached) " >&6 13427else 13428 13429# These are sane defaults that work on at least a few old systems. 13430# [They come from Ultrix. What could be older than Ultrix?!! ;)] 13431 13432# Character class describing NM global symbol codes. 13433symcode='[BCDEGRST]' 13434 13435# Regexp to match symbols that can be accessed directly from C. 13436sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 13437 13438# Define system-specific variables. 13439case $host_os in 13440aix*) 13441 symcode='[BCDT]' 13442 ;; 13443cygwin* | mingw* | pw32* | cegcc*) 13444 symcode='[ABCDGISTW]' 13445 ;; 13446hpux*) 13447 if test "$host_cpu" = ia64; then 13448 symcode='[ABCDEGRST]' 13449 fi 13450 ;; 13451irix* | nonstopux*) 13452 symcode='[BCDEGRST]' 13453 ;; 13454osf*) 13455 symcode='[BCDEGQRST]' 13456 ;; 13457solaris*) 13458 symcode='[BDRT]' 13459 ;; 13460sco3.2v5*) 13461 symcode='[DT]' 13462 ;; 13463sysv4.2uw2*) 13464 symcode='[DT]' 13465 ;; 13466sysv5* | sco5v6* | unixware* | OpenUNIX*) 13467 symcode='[ABDT]' 13468 ;; 13469sysv4) 13470 symcode='[DFNSTU]' 13471 ;; 13472esac 13473 13474# If we're using GNU nm, then use its standard symbol codes. 13475case `$NM -V 2>&1` in 13476*GNU* | *'with BFD'*) 13477 symcode='[ABCDGIRSTW]' ;; 13478esac 13479 13480# Transform an extracted symbol line into a proper C declaration. 13481# Some systems (esp. on ia64) link data and code symbols differently, 13482# so use this general approach. 13483lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 13484 13485# Transform an extracted symbol line into symbol name and symbol address 13486lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 13487lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 13488 13489# Handle CRLF in mingw tool chain 13490opt_cr= 13491case $build_os in 13492mingw*) 13493 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 13494 ;; 13495esac 13496 13497# Try without a prefix underscore, then with it. 13498for ac_symprfx in "" "_"; do 13499 13500 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 13501 symxfrm="\\1 $ac_symprfx\\2 \\2" 13502 13503 # Write the raw and C identifiers. 13504 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13505 # Fake it for dumpbin and say T for any non-static function 13506 # and D for any global variable. 13507 # Also find C++ and __fastcall symbols from MSVC++, 13508 # which start with @ or ?. 13509 lt_cv_sys_global_symbol_pipe="$AWK '"\ 13510" {last_section=section; section=\$ 3};"\ 13511" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 13512" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 13513" \$ 0!~/External *\|/{next};"\ 13514" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 13515" {if(hide[section]) next};"\ 13516" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 13517" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 13518" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 13519" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 13520" ' prfx=^$ac_symprfx" 13521 else 13522 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 13523 fi 13524 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 13525 13526 # Check to see that the pipe works correctly. 13527 pipe_works=no 13528 13529 rm -f conftest* 13530 cat > conftest.$ac_ext <<_LT_EOF 13531#ifdef __cplusplus 13532extern "C" { 13533#endif 13534char nm_test_var; 13535void nm_test_func(void); 13536void nm_test_func(void){} 13537#ifdef __cplusplus 13538} 13539#endif 13540int main(){nm_test_var='a';nm_test_func();return(0);} 13541_LT_EOF 13542 13543 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13544 (eval $ac_compile) 2>&5 13545 ac_status=$? 13546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13547 test $ac_status = 0; }; then 13548 # Now try to grab the symbols. 13549 nlist=conftest.nm 13550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 13551 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 13552 ac_status=$? 13553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13554 test $ac_status = 0; } && test -s "$nlist"; then 13555 # Try sorting and uniquifying the output. 13556 if sort "$nlist" | uniq > "$nlist"T; then 13557 mv -f "$nlist"T "$nlist" 13558 else 13559 rm -f "$nlist"T 13560 fi 13561 13562 # Make sure that we snagged all the symbols we need. 13563 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 13564 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 13565 cat <<_LT_EOF > conftest.$ac_ext 13566/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 13567#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 13568/* DATA imports from DLLs on WIN32 con't be const, because runtime 13569 relocations are performed -- see ld's documentation on pseudo-relocs. */ 13570# define LT_DLSYM_CONST 13571#elif defined(__osf__) 13572/* This system does not cope well with relocations in const data. */ 13573# define LT_DLSYM_CONST 13574#else 13575# define LT_DLSYM_CONST const 13576#endif 13577 13578#ifdef __cplusplus 13579extern "C" { 13580#endif 13581 13582_LT_EOF 13583 # Now generate the symbol file. 13584 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 13585 13586 cat <<_LT_EOF >> conftest.$ac_ext 13587 13588/* The mapping between symbol names and symbols. */ 13589LT_DLSYM_CONST struct { 13590 const char *name; 13591 void *address; 13592} 13593lt__PROGRAM__LTX_preloaded_symbols[] = 13594{ 13595 { "@PROGRAM@", (void *) 0 }, 13596_LT_EOF 13597 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 13598 cat <<\_LT_EOF >> conftest.$ac_ext 13599 {0, (void *) 0} 13600}; 13601 13602/* This works around a problem in FreeBSD linker */ 13603#ifdef FREEBSD_WORKAROUND 13604static const void *lt_preloaded_setup() { 13605 return lt__PROGRAM__LTX_preloaded_symbols; 13606} 13607#endif 13608 13609#ifdef __cplusplus 13610} 13611#endif 13612_LT_EOF 13613 # Now try linking the two files. 13614 mv conftest.$ac_objext conftstm.$ac_objext 13615 lt_globsym_save_LIBS=$LIBS 13616 lt_globsym_save_CFLAGS=$CFLAGS 13617 LIBS="conftstm.$ac_objext" 13618 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 13619 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13620 (eval $ac_link) 2>&5 13621 ac_status=$? 13622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13623 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 13624 pipe_works=yes 13625 fi 13626 LIBS=$lt_globsym_save_LIBS 13627 CFLAGS=$lt_globsym_save_CFLAGS 13628 else 13629 echo "cannot find nm_test_func in $nlist" >&5 13630 fi 13631 else 13632 echo "cannot find nm_test_var in $nlist" >&5 13633 fi 13634 else 13635 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 13636 fi 13637 else 13638 echo "$progname: failed program was:" >&5 13639 cat conftest.$ac_ext >&5 13640 fi 13641 rm -rf conftest* conftst* 13642 13643 # Do not use the global_symbol_pipe unless it works. 13644 if test "$pipe_works" = yes; then 13645 break 13646 else 13647 lt_cv_sys_global_symbol_pipe= 13648 fi 13649done 13650 13651fi 13652 13653if test -z "$lt_cv_sys_global_symbol_pipe"; then 13654 lt_cv_sys_global_symbol_to_cdecl= 13655fi 13656if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 13657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 13658$as_echo "failed" >&6; } 13659else 13660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 13661$as_echo "ok" >&6; } 13662fi 13663 13664# Response file support. 13665if test "$lt_cv_nm_interface" = "MS dumpbin"; then 13666 nm_file_list_spec='@' 13667elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 13668 nm_file_list_spec='@' 13669fi 13670 13671 13672 13673 13674 13675 13676 13677 13678 13679 13680 13681 13682 13683 13684 13685 13686 13687 13688 13689 13690 13691 13692 13693 13694 13695 13696 13697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 13698$as_echo_n "checking for sysroot... " >&6; } 13699 13700# Check whether --with-sysroot was given. 13701if test "${with_sysroot+set}" = set; then : 13702 withval=$with_sysroot; 13703else 13704 with_sysroot=no 13705fi 13706 13707 13708lt_sysroot= 13709case ${with_sysroot} in #( 13710 yes) 13711 if test "$GCC" = yes; then 13712 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 13713 fi 13714 ;; #( 13715 /*) 13716 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 13717 ;; #( 13718 no|'') 13719 ;; #( 13720 *) 13721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 13722$as_echo "${with_sysroot}" >&6; } 13723 as_fn_error "The sysroot must be an absolute path." "$LINENO" 5 13724 ;; 13725esac 13726 13727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 13728$as_echo "${lt_sysroot:-no}" >&6; } 13729 13730 13731 13732 13733 13734# Check whether --enable-libtool-lock was given. 13735if test "${enable_libtool_lock+set}" = set; then : 13736 enableval=$enable_libtool_lock; 13737fi 13738 13739test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 13740 13741# Some flags need to be propagated to the compiler or linker for good 13742# libtool support. 13743case $host in 13744ia64-*-hpux*) 13745 # Find out which ABI we are using. 13746 echo 'int i;' > conftest.$ac_ext 13747 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13748 (eval $ac_compile) 2>&5 13749 ac_status=$? 13750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13751 test $ac_status = 0; }; then 13752 case `/usr/bin/file conftest.$ac_objext` in 13753 *ELF-32*) 13754 HPUX_IA64_MODE="32" 13755 ;; 13756 *ELF-64*) 13757 HPUX_IA64_MODE="64" 13758 ;; 13759 esac 13760 fi 13761 rm -rf conftest* 13762 ;; 13763*-*-irix6*) 13764 # Find out which ABI we are using. 13765 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 13766 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13767 (eval $ac_compile) 2>&5 13768 ac_status=$? 13769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13770 test $ac_status = 0; }; then 13771 if test "$lt_cv_prog_gnu_ld" = yes; then 13772 case `/usr/bin/file conftest.$ac_objext` in 13773 *32-bit*) 13774 LD="${LD-ld} -melf32bsmip" 13775 ;; 13776 *N32*) 13777 LD="${LD-ld} -melf32bmipn32" 13778 ;; 13779 *64-bit*) 13780 LD="${LD-ld} -melf64bmip" 13781 ;; 13782 esac 13783 else 13784 case `/usr/bin/file conftest.$ac_objext` in 13785 *32-bit*) 13786 LD="${LD-ld} -32" 13787 ;; 13788 *N32*) 13789 LD="${LD-ld} -n32" 13790 ;; 13791 *64-bit*) 13792 LD="${LD-ld} -64" 13793 ;; 13794 esac 13795 fi 13796 fi 13797 rm -rf conftest* 13798 ;; 13799 13800x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 13801s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 13802 # Find out which ABI we are using. 13803 echo 'int i;' > conftest.$ac_ext 13804 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13805 (eval $ac_compile) 2>&5 13806 ac_status=$? 13807 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13808 test $ac_status = 0; }; then 13809 case `/usr/bin/file conftest.o` in 13810 *32-bit*) 13811 case $host in 13812 x86_64-*kfreebsd*-gnu) 13813 LD="${LD-ld} -m elf_i386_fbsd" 13814 ;; 13815 x86_64-*linux*) 13816 LD="${LD-ld} -m elf_i386" 13817 ;; 13818 ppc64-*linux*|powerpc64-*linux*) 13819 LD="${LD-ld} -m elf32ppclinux" 13820 ;; 13821 s390x-*linux*) 13822 LD="${LD-ld} -m elf_s390" 13823 ;; 13824 sparc64-*linux*) 13825 LD="${LD-ld} -m elf32_sparc" 13826 ;; 13827 esac 13828 ;; 13829 *64-bit*) 13830 case $host in 13831 x86_64-*kfreebsd*-gnu) 13832 LD="${LD-ld} -m elf_x86_64_fbsd" 13833 ;; 13834 x86_64-*linux*) 13835 LD="${LD-ld} -m elf_x86_64" 13836 ;; 13837 ppc*-*linux*|powerpc*-*linux*) 13838 LD="${LD-ld} -m elf64ppc" 13839 ;; 13840 s390*-*linux*|s390*-*tpf*) 13841 LD="${LD-ld} -m elf64_s390" 13842 ;; 13843 sparc*-*linux*) 13844 LD="${LD-ld} -m elf64_sparc" 13845 ;; 13846 esac 13847 ;; 13848 esac 13849 fi 13850 rm -rf conftest* 13851 ;; 13852 13853*-*-sco3.2v5*) 13854 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 13855 SAVE_CFLAGS="$CFLAGS" 13856 CFLAGS="$CFLAGS -belf" 13857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 13858$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 13859if test "${lt_cv_cc_needs_belf+set}" = set; then : 13860 $as_echo_n "(cached) " >&6 13861else 13862 ac_ext=c 13863ac_cpp='$CPP $CPPFLAGS' 13864ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13865ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13866ac_compiler_gnu=$ac_cv_c_compiler_gnu 13867 13868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13869/* end confdefs.h. */ 13870 13871int 13872main () 13873{ 13874 13875 ; 13876 return 0; 13877} 13878_ACEOF 13879if ac_fn_c_try_link "$LINENO"; then : 13880 lt_cv_cc_needs_belf=yes 13881else 13882 lt_cv_cc_needs_belf=no 13883fi 13884rm -f core conftest.err conftest.$ac_objext \ 13885 conftest$ac_exeext conftest.$ac_ext 13886 ac_ext=c 13887ac_cpp='$CPP $CPPFLAGS' 13888ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13889ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13890ac_compiler_gnu=$ac_cv_c_compiler_gnu 13891 13892fi 13893{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 13894$as_echo "$lt_cv_cc_needs_belf" >&6; } 13895 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 13896 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 13897 CFLAGS="$SAVE_CFLAGS" 13898 fi 13899 ;; 13900*-*solaris*) 13901 # Find out which ABI we are using. 13902 echo 'int i;' > conftest.$ac_ext 13903 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 13904 (eval $ac_compile) 2>&5 13905 ac_status=$? 13906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13907 test $ac_status = 0; }; then 13908 case `/usr/bin/file conftest.o` in 13909 *64-bit*) 13910 case $lt_cv_prog_gnu_ld in 13911 yes*) 13912 case $host in 13913 i?86-*-solaris*) 13914 LD="${LD-ld} -m elf_x86_64" 13915 ;; 13916 sparc*-*-solaris*) 13917 LD="${LD-ld} -m elf64_sparc" 13918 ;; 13919 esac 13920 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 13921 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 13922 LD="${LD-ld}_sol2" 13923 fi 13924 ;; 13925 *) 13926 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 13927 LD="${LD-ld} -64" 13928 fi 13929 ;; 13930 esac 13931 ;; 13932 esac 13933 fi 13934 rm -rf conftest* 13935 ;; 13936esac 13937 13938need_locks="$enable_libtool_lock" 13939 13940if test -n "$ac_tool_prefix"; then 13941 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 13942set dummy ${ac_tool_prefix}mt; ac_word=$2 13943{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13944$as_echo_n "checking for $ac_word... " >&6; } 13945if test "${ac_cv_prog_MANIFEST_TOOL+set}" = set; then : 13946 $as_echo_n "(cached) " >&6 13947else 13948 if test -n "$MANIFEST_TOOL"; then 13949 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 13950else 13951as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13952for as_dir in $PATH 13953do 13954 IFS=$as_save_IFS 13955 test -z "$as_dir" && as_dir=. 13956 for ac_exec_ext in '' $ac_executable_extensions; do 13957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13958 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 13959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 13960 break 2 13961 fi 13962done 13963 done 13964IFS=$as_save_IFS 13965 13966fi 13967fi 13968MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 13969if test -n "$MANIFEST_TOOL"; then 13970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 13971$as_echo "$MANIFEST_TOOL" >&6; } 13972else 13973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13974$as_echo "no" >&6; } 13975fi 13976 13977 13978fi 13979if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 13980 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 13981 # Extract the first word of "mt", so it can be a program name with args. 13982set dummy mt; ac_word=$2 13983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 13984$as_echo_n "checking for $ac_word... " >&6; } 13985if test "${ac_cv_prog_ac_ct_MANIFEST_TOOL+set}" = set; then : 13986 $as_echo_n "(cached) " >&6 13987else 13988 if test -n "$ac_ct_MANIFEST_TOOL"; then 13989 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 13990else 13991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13992for as_dir in $PATH 13993do 13994 IFS=$as_save_IFS 13995 test -z "$as_dir" && as_dir=. 13996 for ac_exec_ext in '' $ac_executable_extensions; do 13997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 13998 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 13999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14000 break 2 14001 fi 14002done 14003 done 14004IFS=$as_save_IFS 14005 14006fi 14007fi 14008ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 14009if test -n "$ac_ct_MANIFEST_TOOL"; then 14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 14011$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 14012else 14013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14014$as_echo "no" >&6; } 14015fi 14016 14017 if test "x$ac_ct_MANIFEST_TOOL" = x; then 14018 MANIFEST_TOOL=":" 14019 else 14020 case $cross_compiling:$ac_tool_warned in 14021yes:) 14022{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14023$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14024ac_tool_warned=yes ;; 14025esac 14026 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 14027 fi 14028else 14029 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 14030fi 14031 14032test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 14033{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 14034$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 14035if test "${lt_cv_path_mainfest_tool+set}" = set; then : 14036 $as_echo_n "(cached) " >&6 14037else 14038 lt_cv_path_mainfest_tool=no 14039 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 14040 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 14041 cat conftest.err >&5 14042 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 14043 lt_cv_path_mainfest_tool=yes 14044 fi 14045 rm -f conftest* 14046fi 14047{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 14048$as_echo "$lt_cv_path_mainfest_tool" >&6; } 14049if test "x$lt_cv_path_mainfest_tool" != xyes; then 14050 MANIFEST_TOOL=: 14051fi 14052 14053 14054 14055 14056 14057 14058 case $host_os in 14059 rhapsody* | darwin*) 14060 if test -n "$ac_tool_prefix"; then 14061 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 14062set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 14063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14064$as_echo_n "checking for $ac_word... " >&6; } 14065if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : 14066 $as_echo_n "(cached) " >&6 14067else 14068 if test -n "$DSYMUTIL"; then 14069 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 14070else 14071as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14072for as_dir in $PATH 14073do 14074 IFS=$as_save_IFS 14075 test -z "$as_dir" && as_dir=. 14076 for ac_exec_ext in '' $ac_executable_extensions; do 14077 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 14078 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 14079 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14080 break 2 14081 fi 14082done 14083 done 14084IFS=$as_save_IFS 14085 14086fi 14087fi 14088DSYMUTIL=$ac_cv_prog_DSYMUTIL 14089if test -n "$DSYMUTIL"; then 14090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 14091$as_echo "$DSYMUTIL" >&6; } 14092else 14093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14094$as_echo "no" >&6; } 14095fi 14096 14097 14098fi 14099if test -z "$ac_cv_prog_DSYMUTIL"; then 14100 ac_ct_DSYMUTIL=$DSYMUTIL 14101 # Extract the first word of "dsymutil", so it can be a program name with args. 14102set dummy dsymutil; ac_word=$2 14103{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14104$as_echo_n "checking for $ac_word... " >&6; } 14105if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : 14106 $as_echo_n "(cached) " >&6 14107else 14108 if test -n "$ac_ct_DSYMUTIL"; then 14109 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 14110else 14111as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14112for as_dir in $PATH 14113do 14114 IFS=$as_save_IFS 14115 test -z "$as_dir" && as_dir=. 14116 for ac_exec_ext in '' $ac_executable_extensions; do 14117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 14118 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 14119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14120 break 2 14121 fi 14122done 14123 done 14124IFS=$as_save_IFS 14125 14126fi 14127fi 14128ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 14129if test -n "$ac_ct_DSYMUTIL"; then 14130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 14131$as_echo "$ac_ct_DSYMUTIL" >&6; } 14132else 14133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14134$as_echo "no" >&6; } 14135fi 14136 14137 if test "x$ac_ct_DSYMUTIL" = x; then 14138 DSYMUTIL=":" 14139 else 14140 case $cross_compiling:$ac_tool_warned in 14141yes:) 14142{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14143$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14144ac_tool_warned=yes ;; 14145esac 14146 DSYMUTIL=$ac_ct_DSYMUTIL 14147 fi 14148else 14149 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 14150fi 14151 14152 if test -n "$ac_tool_prefix"; then 14153 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 14154set dummy ${ac_tool_prefix}nmedit; ac_word=$2 14155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14156$as_echo_n "checking for $ac_word... " >&6; } 14157if test "${ac_cv_prog_NMEDIT+set}" = set; then : 14158 $as_echo_n "(cached) " >&6 14159else 14160 if test -n "$NMEDIT"; then 14161 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 14162else 14163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14164for as_dir in $PATH 14165do 14166 IFS=$as_save_IFS 14167 test -z "$as_dir" && as_dir=. 14168 for ac_exec_ext in '' $ac_executable_extensions; do 14169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 14170 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 14171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14172 break 2 14173 fi 14174done 14175 done 14176IFS=$as_save_IFS 14177 14178fi 14179fi 14180NMEDIT=$ac_cv_prog_NMEDIT 14181if test -n "$NMEDIT"; then 14182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 14183$as_echo "$NMEDIT" >&6; } 14184else 14185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14186$as_echo "no" >&6; } 14187fi 14188 14189 14190fi 14191if test -z "$ac_cv_prog_NMEDIT"; then 14192 ac_ct_NMEDIT=$NMEDIT 14193 # Extract the first word of "nmedit", so it can be a program name with args. 14194set dummy nmedit; ac_word=$2 14195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14196$as_echo_n "checking for $ac_word... " >&6; } 14197if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : 14198 $as_echo_n "(cached) " >&6 14199else 14200 if test -n "$ac_ct_NMEDIT"; then 14201 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 14202else 14203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14204for as_dir in $PATH 14205do 14206 IFS=$as_save_IFS 14207 test -z "$as_dir" && as_dir=. 14208 for ac_exec_ext in '' $ac_executable_extensions; do 14209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 14210 ac_cv_prog_ac_ct_NMEDIT="nmedit" 14211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14212 break 2 14213 fi 14214done 14215 done 14216IFS=$as_save_IFS 14217 14218fi 14219fi 14220ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 14221if test -n "$ac_ct_NMEDIT"; then 14222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 14223$as_echo "$ac_ct_NMEDIT" >&6; } 14224else 14225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14226$as_echo "no" >&6; } 14227fi 14228 14229 if test "x$ac_ct_NMEDIT" = x; then 14230 NMEDIT=":" 14231 else 14232 case $cross_compiling:$ac_tool_warned in 14233yes:) 14234{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14235$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14236ac_tool_warned=yes ;; 14237esac 14238 NMEDIT=$ac_ct_NMEDIT 14239 fi 14240else 14241 NMEDIT="$ac_cv_prog_NMEDIT" 14242fi 14243 14244 if test -n "$ac_tool_prefix"; then 14245 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 14246set dummy ${ac_tool_prefix}lipo; ac_word=$2 14247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14248$as_echo_n "checking for $ac_word... " >&6; } 14249if test "${ac_cv_prog_LIPO+set}" = set; then : 14250 $as_echo_n "(cached) " >&6 14251else 14252 if test -n "$LIPO"; then 14253 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 14254else 14255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14256for as_dir in $PATH 14257do 14258 IFS=$as_save_IFS 14259 test -z "$as_dir" && as_dir=. 14260 for ac_exec_ext in '' $ac_executable_extensions; do 14261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 14262 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 14263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14264 break 2 14265 fi 14266done 14267 done 14268IFS=$as_save_IFS 14269 14270fi 14271fi 14272LIPO=$ac_cv_prog_LIPO 14273if test -n "$LIPO"; then 14274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 14275$as_echo "$LIPO" >&6; } 14276else 14277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14278$as_echo "no" >&6; } 14279fi 14280 14281 14282fi 14283if test -z "$ac_cv_prog_LIPO"; then 14284 ac_ct_LIPO=$LIPO 14285 # Extract the first word of "lipo", so it can be a program name with args. 14286set dummy lipo; ac_word=$2 14287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14288$as_echo_n "checking for $ac_word... " >&6; } 14289if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : 14290 $as_echo_n "(cached) " >&6 14291else 14292 if test -n "$ac_ct_LIPO"; then 14293 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 14294else 14295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14296for as_dir in $PATH 14297do 14298 IFS=$as_save_IFS 14299 test -z "$as_dir" && as_dir=. 14300 for ac_exec_ext in '' $ac_executable_extensions; do 14301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 14302 ac_cv_prog_ac_ct_LIPO="lipo" 14303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14304 break 2 14305 fi 14306done 14307 done 14308IFS=$as_save_IFS 14309 14310fi 14311fi 14312ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 14313if test -n "$ac_ct_LIPO"; then 14314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 14315$as_echo "$ac_ct_LIPO" >&6; } 14316else 14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14318$as_echo "no" >&6; } 14319fi 14320 14321 if test "x$ac_ct_LIPO" = x; then 14322 LIPO=":" 14323 else 14324 case $cross_compiling:$ac_tool_warned in 14325yes:) 14326{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14327$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14328ac_tool_warned=yes ;; 14329esac 14330 LIPO=$ac_ct_LIPO 14331 fi 14332else 14333 LIPO="$ac_cv_prog_LIPO" 14334fi 14335 14336 if test -n "$ac_tool_prefix"; then 14337 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 14338set dummy ${ac_tool_prefix}otool; ac_word=$2 14339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14340$as_echo_n "checking for $ac_word... " >&6; } 14341if test "${ac_cv_prog_OTOOL+set}" = set; then : 14342 $as_echo_n "(cached) " >&6 14343else 14344 if test -n "$OTOOL"; then 14345 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 14346else 14347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14348for as_dir in $PATH 14349do 14350 IFS=$as_save_IFS 14351 test -z "$as_dir" && as_dir=. 14352 for ac_exec_ext in '' $ac_executable_extensions; do 14353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 14354 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 14355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14356 break 2 14357 fi 14358done 14359 done 14360IFS=$as_save_IFS 14361 14362fi 14363fi 14364OTOOL=$ac_cv_prog_OTOOL 14365if test -n "$OTOOL"; then 14366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 14367$as_echo "$OTOOL" >&6; } 14368else 14369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14370$as_echo "no" >&6; } 14371fi 14372 14373 14374fi 14375if test -z "$ac_cv_prog_OTOOL"; then 14376 ac_ct_OTOOL=$OTOOL 14377 # Extract the first word of "otool", so it can be a program name with args. 14378set dummy otool; ac_word=$2 14379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14380$as_echo_n "checking for $ac_word... " >&6; } 14381if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : 14382 $as_echo_n "(cached) " >&6 14383else 14384 if test -n "$ac_ct_OTOOL"; then 14385 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 14386else 14387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14388for as_dir in $PATH 14389do 14390 IFS=$as_save_IFS 14391 test -z "$as_dir" && as_dir=. 14392 for ac_exec_ext in '' $ac_executable_extensions; do 14393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 14394 ac_cv_prog_ac_ct_OTOOL="otool" 14395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14396 break 2 14397 fi 14398done 14399 done 14400IFS=$as_save_IFS 14401 14402fi 14403fi 14404ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 14405if test -n "$ac_ct_OTOOL"; then 14406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 14407$as_echo "$ac_ct_OTOOL" >&6; } 14408else 14409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14410$as_echo "no" >&6; } 14411fi 14412 14413 if test "x$ac_ct_OTOOL" = x; then 14414 OTOOL=":" 14415 else 14416 case $cross_compiling:$ac_tool_warned in 14417yes:) 14418{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14419$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14420ac_tool_warned=yes ;; 14421esac 14422 OTOOL=$ac_ct_OTOOL 14423 fi 14424else 14425 OTOOL="$ac_cv_prog_OTOOL" 14426fi 14427 14428 if test -n "$ac_tool_prefix"; then 14429 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 14430set dummy ${ac_tool_prefix}otool64; ac_word=$2 14431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14432$as_echo_n "checking for $ac_word... " >&6; } 14433if test "${ac_cv_prog_OTOOL64+set}" = set; then : 14434 $as_echo_n "(cached) " >&6 14435else 14436 if test -n "$OTOOL64"; then 14437 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 14438else 14439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14440for as_dir in $PATH 14441do 14442 IFS=$as_save_IFS 14443 test -z "$as_dir" && as_dir=. 14444 for ac_exec_ext in '' $ac_executable_extensions; do 14445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 14446 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 14447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14448 break 2 14449 fi 14450done 14451 done 14452IFS=$as_save_IFS 14453 14454fi 14455fi 14456OTOOL64=$ac_cv_prog_OTOOL64 14457if test -n "$OTOOL64"; then 14458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 14459$as_echo "$OTOOL64" >&6; } 14460else 14461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14462$as_echo "no" >&6; } 14463fi 14464 14465 14466fi 14467if test -z "$ac_cv_prog_OTOOL64"; then 14468 ac_ct_OTOOL64=$OTOOL64 14469 # Extract the first word of "otool64", so it can be a program name with args. 14470set dummy otool64; ac_word=$2 14471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14472$as_echo_n "checking for $ac_word... " >&6; } 14473if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : 14474 $as_echo_n "(cached) " >&6 14475else 14476 if test -n "$ac_ct_OTOOL64"; then 14477 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 14478else 14479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14480for as_dir in $PATH 14481do 14482 IFS=$as_save_IFS 14483 test -z "$as_dir" && as_dir=. 14484 for ac_exec_ext in '' $ac_executable_extensions; do 14485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 14486 ac_cv_prog_ac_ct_OTOOL64="otool64" 14487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14488 break 2 14489 fi 14490done 14491 done 14492IFS=$as_save_IFS 14493 14494fi 14495fi 14496ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 14497if test -n "$ac_ct_OTOOL64"; then 14498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 14499$as_echo "$ac_ct_OTOOL64" >&6; } 14500else 14501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14502$as_echo "no" >&6; } 14503fi 14504 14505 if test "x$ac_ct_OTOOL64" = x; then 14506 OTOOL64=":" 14507 else 14508 case $cross_compiling:$ac_tool_warned in 14509yes:) 14510{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14511$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14512ac_tool_warned=yes ;; 14513esac 14514 OTOOL64=$ac_ct_OTOOL64 14515 fi 14516else 14517 OTOOL64="$ac_cv_prog_OTOOL64" 14518fi 14519 14520 14521 14522 14523 14524 14525 14526 14527 14528 14529 14530 14531 14532 14533 14534 14535 14536 14537 14538 14539 14540 14541 14542 14543 14544 14545 14546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 14547$as_echo_n "checking for -single_module linker flag... " >&6; } 14548if test "${lt_cv_apple_cc_single_mod+set}" = set; then : 14549 $as_echo_n "(cached) " >&6 14550else 14551 lt_cv_apple_cc_single_mod=no 14552 if test -z "${LT_MULTI_MODULE}"; then 14553 # By default we will add the -single_module flag. You can override 14554 # by either setting the environment variable LT_MULTI_MODULE 14555 # non-empty at configure time, or by adding -multi_module to the 14556 # link flags. 14557 rm -rf libconftest.dylib* 14558 echo "int foo(void){return 1;}" > conftest.c 14559 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14560-dynamiclib -Wl,-single_module conftest.c" >&5 14561 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 14562 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 14563 _lt_result=$? 14564 # If there is a non-empty error log, and "single_module" 14565 # appears in it, assume the flag caused a linker warning 14566 if test -s conftest.err && $GREP single_module conftest.err; then 14567 cat conftest.err >&5 14568 # Otherwise, if the output was created with a 0 exit code from 14569 # the compiler, it worked. 14570 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 14571 lt_cv_apple_cc_single_mod=yes 14572 else 14573 cat conftest.err >&5 14574 fi 14575 rm -rf libconftest.dylib* 14576 rm -f conftest.* 14577 fi 14578fi 14579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 14580$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 14581 14582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 14583$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 14584if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : 14585 $as_echo_n "(cached) " >&6 14586else 14587 lt_cv_ld_exported_symbols_list=no 14588 save_LDFLAGS=$LDFLAGS 14589 echo "_main" > conftest.sym 14590 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 14591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14592/* end confdefs.h. */ 14593 14594int 14595main () 14596{ 14597 14598 ; 14599 return 0; 14600} 14601_ACEOF 14602if ac_fn_c_try_link "$LINENO"; then : 14603 lt_cv_ld_exported_symbols_list=yes 14604else 14605 lt_cv_ld_exported_symbols_list=no 14606fi 14607rm -f core conftest.err conftest.$ac_objext \ 14608 conftest$ac_exeext conftest.$ac_ext 14609 LDFLAGS="$save_LDFLAGS" 14610 14611fi 14612{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 14613$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 14614 14615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 14616$as_echo_n "checking for -force_load linker flag... " >&6; } 14617if test "${lt_cv_ld_force_load+set}" = set; then : 14618 $as_echo_n "(cached) " >&6 14619else 14620 lt_cv_ld_force_load=no 14621 cat > conftest.c << _LT_EOF 14622int forced_loaded() { return 2;} 14623_LT_EOF 14624 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 14625 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 14626 echo "$AR cru libconftest.a conftest.o" >&5 14627 $AR cru libconftest.a conftest.o 2>&5 14628 echo "$RANLIB libconftest.a" >&5 14629 $RANLIB libconftest.a 2>&5 14630 cat > conftest.c << _LT_EOF 14631int main() { return 0;} 14632_LT_EOF 14633 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 14634 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 14635 _lt_result=$? 14636 if test -s conftest.err && $GREP force_load conftest.err; then 14637 cat conftest.err >&5 14638 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 14639 lt_cv_ld_force_load=yes 14640 else 14641 cat conftest.err >&5 14642 fi 14643 rm -f conftest.err libconftest.a conftest conftest.c 14644 rm -rf conftest.dSYM 14645 14646fi 14647{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 14648$as_echo "$lt_cv_ld_force_load" >&6; } 14649 case $host_os in 14650 rhapsody* | darwin1.[012]) 14651 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 14652 darwin1.*) 14653 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 14654 darwin*) # darwin 5.x on 14655 # if running on 10.5 or later, the deployment target defaults 14656 # to the OS version, if on x86, and 10.4, the deployment 14657 # target defaults to 10.4. Don't you love it? 14658 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 14659 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 14660 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 14661 10.[012]*) 14662 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 14663 10.*) 14664 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 14665 esac 14666 ;; 14667 esac 14668 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 14669 _lt_dar_single_mod='$single_module' 14670 fi 14671 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 14672 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 14673 else 14674 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 14675 fi 14676 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 14677 _lt_dsymutil='~$DSYMUTIL $lib || :' 14678 else 14679 _lt_dsymutil= 14680 fi 14681 ;; 14682 esac 14683 14684for ac_header in dlfcn.h 14685do : 14686 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 14687" 14688if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 14689 cat >>confdefs.h <<_ACEOF 14690#define HAVE_DLFCN_H 1 14691_ACEOF 14692 14693fi 14694 14695done 14696 14697 14698 14699 14700func_stripname_cnf () 14701{ 14702 case ${2} in 14703 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 14704 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 14705 esac 14706} # func_stripname_cnf 14707 14708 14709 14710 14711 14712 14713# Set options 14714 14715 14716 14717 enable_dlopen=no 14718 14719 14720 14721 # Check whether --enable-shared was given. 14722if test "${enable_shared+set}" = set; then : 14723 enableval=$enable_shared; p=${PACKAGE-default} 14724 case $enableval in 14725 yes) enable_shared=yes ;; 14726 no) enable_shared=no ;; 14727 *) 14728 enable_shared=no 14729 # Look at the argument we got. We use all the common list separators. 14730 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 14731 for pkg in $enableval; do 14732 IFS="$lt_save_ifs" 14733 if test "X$pkg" = "X$p"; then 14734 enable_shared=yes 14735 fi 14736 done 14737 IFS="$lt_save_ifs" 14738 ;; 14739 esac 14740else 14741 enable_shared=yes 14742fi 14743 14744 14745 14746 14747 14748 14749 14750 14751 14752 # Check whether --enable-static was given. 14753if test "${enable_static+set}" = set; then : 14754 enableval=$enable_static; p=${PACKAGE-default} 14755 case $enableval in 14756 yes) enable_static=yes ;; 14757 no) enable_static=no ;; 14758 *) 14759 enable_static=no 14760 # Look at the argument we got. We use all the common list separators. 14761 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 14762 for pkg in $enableval; do 14763 IFS="$lt_save_ifs" 14764 if test "X$pkg" = "X$p"; then 14765 enable_static=yes 14766 fi 14767 done 14768 IFS="$lt_save_ifs" 14769 ;; 14770 esac 14771else 14772 enable_static=yes 14773fi 14774 14775 14776 14777 14778 14779 14780 14781 14782 14783 14784# Check whether --with-pic was given. 14785if test "${with_pic+set}" = set; then : 14786 withval=$with_pic; lt_p=${PACKAGE-default} 14787 case $withval in 14788 yes|no) pic_mode=$withval ;; 14789 *) 14790 pic_mode=default 14791 # Look at the argument we got. We use all the common list separators. 14792 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 14793 for lt_pkg in $withval; do 14794 IFS="$lt_save_ifs" 14795 if test "X$lt_pkg" = "X$lt_p"; then 14796 pic_mode=yes 14797 fi 14798 done 14799 IFS="$lt_save_ifs" 14800 ;; 14801 esac 14802else 14803 pic_mode=default 14804fi 14805 14806 14807test -z "$pic_mode" && pic_mode=default 14808 14809 14810 14811 14812 14813 14814 14815 # Check whether --enable-fast-install was given. 14816if test "${enable_fast_install+set}" = set; then : 14817 enableval=$enable_fast_install; p=${PACKAGE-default} 14818 case $enableval in 14819 yes) enable_fast_install=yes ;; 14820 no) enable_fast_install=no ;; 14821 *) 14822 enable_fast_install=no 14823 # Look at the argument we got. We use all the common list separators. 14824 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 14825 for pkg in $enableval; do 14826 IFS="$lt_save_ifs" 14827 if test "X$pkg" = "X$p"; then 14828 enable_fast_install=yes 14829 fi 14830 done 14831 IFS="$lt_save_ifs" 14832 ;; 14833 esac 14834else 14835 enable_fast_install=yes 14836fi 14837 14838 14839 14840 14841 14842 14843 14844 14845 14846 14847 14848# This can be used to rebuild libtool when needed 14849LIBTOOL_DEPS="$ltmain" 14850 14851# Always use our own libtool. 14852LIBTOOL='$(SHELL) $(top_builddir)/libtool' 14853 14854 14855 14856 14857 14858 14859 14860 14861 14862 14863 14864 14865 14866 14867 14868 14869 14870 14871 14872 14873 14874 14875 14876 14877 14878 14879 14880 14881 14882 14883test -z "$LN_S" && LN_S="ln -s" 14884 14885 14886 14887 14888 14889 14890 14891 14892 14893 14894 14895 14896 14897 14898if test -n "${ZSH_VERSION+set}" ; then 14899 setopt NO_GLOB_SUBST 14900fi 14901 14902{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 14903$as_echo_n "checking for objdir... " >&6; } 14904if test "${lt_cv_objdir+set}" = set; then : 14905 $as_echo_n "(cached) " >&6 14906else 14907 rm -f .libs 2>/dev/null 14908mkdir .libs 2>/dev/null 14909if test -d .libs; then 14910 lt_cv_objdir=.libs 14911else 14912 # MS-DOS does not allow filenames that begin with a dot. 14913 lt_cv_objdir=_libs 14914fi 14915rmdir .libs 2>/dev/null 14916fi 14917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 14918$as_echo "$lt_cv_objdir" >&6; } 14919objdir=$lt_cv_objdir 14920 14921 14922 14923 14924 14925cat >>confdefs.h <<_ACEOF 14926#define LT_OBJDIR "$lt_cv_objdir/" 14927_ACEOF 14928 14929 14930 14931 14932case $host_os in 14933aix3*) 14934 # AIX sometimes has problems with the GCC collect2 program. For some 14935 # reason, if we set the COLLECT_NAMES environment variable, the problems 14936 # vanish in a puff of smoke. 14937 if test "X${COLLECT_NAMES+set}" != Xset; then 14938 COLLECT_NAMES= 14939 export COLLECT_NAMES 14940 fi 14941 ;; 14942esac 14943 14944# Global variables: 14945ofile=libtool 14946can_build_shared=yes 14947 14948# All known linkers require a `.a' archive for static linking (except MSVC, 14949# which needs '.lib'). 14950libext=a 14951 14952with_gnu_ld="$lt_cv_prog_gnu_ld" 14953 14954old_CC="$CC" 14955old_CFLAGS="$CFLAGS" 14956 14957# Set sane defaults for various variables 14958test -z "$CC" && CC=cc 14959test -z "$LTCC" && LTCC=$CC 14960test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 14961test -z "$LD" && LD=ld 14962test -z "$ac_objext" && ac_objext=o 14963 14964for cc_temp in $compiler""; do 14965 case $cc_temp in 14966 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 14967 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 14968 \-*) ;; 14969 *) break;; 14970 esac 14971done 14972cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 14973 14974 14975# Only perform the check for file, if the check method requires it 14976test -z "$MAGIC_CMD" && MAGIC_CMD=file 14977case $deplibs_check_method in 14978file_magic*) 14979 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 14980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 14981$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 14982if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 14983 $as_echo_n "(cached) " >&6 14984else 14985 case $MAGIC_CMD in 14986[\\/*] | ?:[\\/]*) 14987 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 14988 ;; 14989*) 14990 lt_save_MAGIC_CMD="$MAGIC_CMD" 14991 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 14992 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 14993 for ac_dir in $ac_dummy; do 14994 IFS="$lt_save_ifs" 14995 test -z "$ac_dir" && ac_dir=. 14996 if test -f $ac_dir/${ac_tool_prefix}file; then 14997 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 14998 if test -n "$file_magic_test_file"; then 14999 case $deplibs_check_method in 15000 "file_magic "*) 15001 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 15002 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 15003 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 15004 $EGREP "$file_magic_regex" > /dev/null; then 15005 : 15006 else 15007 cat <<_LT_EOF 1>&2 15008 15009*** Warning: the command libtool uses to detect shared libraries, 15010*** $file_magic_cmd, produces output that libtool cannot recognize. 15011*** The result is that libtool may fail to recognize shared libraries 15012*** as such. This will affect the creation of libtool libraries that 15013*** depend on shared libraries, but programs linked with such libtool 15014*** libraries will work regardless of this problem. Nevertheless, you 15015*** may want to report the problem to your system manager and/or to 15016*** bug-libtool@gnu.org 15017 15018_LT_EOF 15019 fi ;; 15020 esac 15021 fi 15022 break 15023 fi 15024 done 15025 IFS="$lt_save_ifs" 15026 MAGIC_CMD="$lt_save_MAGIC_CMD" 15027 ;; 15028esac 15029fi 15030 15031MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 15032if test -n "$MAGIC_CMD"; then 15033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 15034$as_echo "$MAGIC_CMD" >&6; } 15035else 15036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15037$as_echo "no" >&6; } 15038fi 15039 15040 15041 15042 15043 15044if test -z "$lt_cv_path_MAGIC_CMD"; then 15045 if test -n "$ac_tool_prefix"; then 15046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 15047$as_echo_n "checking for file... " >&6; } 15048if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 15049 $as_echo_n "(cached) " >&6 15050else 15051 case $MAGIC_CMD in 15052[\\/*] | ?:[\\/]*) 15053 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 15054 ;; 15055*) 15056 lt_save_MAGIC_CMD="$MAGIC_CMD" 15057 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 15058 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 15059 for ac_dir in $ac_dummy; do 15060 IFS="$lt_save_ifs" 15061 test -z "$ac_dir" && ac_dir=. 15062 if test -f $ac_dir/file; then 15063 lt_cv_path_MAGIC_CMD="$ac_dir/file" 15064 if test -n "$file_magic_test_file"; then 15065 case $deplibs_check_method in 15066 "file_magic "*) 15067 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 15068 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 15069 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 15070 $EGREP "$file_magic_regex" > /dev/null; then 15071 : 15072 else 15073 cat <<_LT_EOF 1>&2 15074 15075*** Warning: the command libtool uses to detect shared libraries, 15076*** $file_magic_cmd, produces output that libtool cannot recognize. 15077*** The result is that libtool may fail to recognize shared libraries 15078*** as such. This will affect the creation of libtool libraries that 15079*** depend on shared libraries, but programs linked with such libtool 15080*** libraries will work regardless of this problem. Nevertheless, you 15081*** may want to report the problem to your system manager and/or to 15082*** bug-libtool@gnu.org 15083 15084_LT_EOF 15085 fi ;; 15086 esac 15087 fi 15088 break 15089 fi 15090 done 15091 IFS="$lt_save_ifs" 15092 MAGIC_CMD="$lt_save_MAGIC_CMD" 15093 ;; 15094esac 15095fi 15096 15097MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 15098if test -n "$MAGIC_CMD"; then 15099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 15100$as_echo "$MAGIC_CMD" >&6; } 15101else 15102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15103$as_echo "no" >&6; } 15104fi 15105 15106 15107 else 15108 MAGIC_CMD=: 15109 fi 15110fi 15111 15112 fi 15113 ;; 15114esac 15115 15116# Use C for the default configuration in the libtool script 15117 15118lt_save_CC="$CC" 15119ac_ext=c 15120ac_cpp='$CPP $CPPFLAGS' 15121ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15122ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15123ac_compiler_gnu=$ac_cv_c_compiler_gnu 15124 15125 15126# Source file extension for C test sources. 15127ac_ext=c 15128 15129# Object file extension for compiled C test sources. 15130objext=o 15131objext=$objext 15132 15133# Code to be used in simple compile tests 15134lt_simple_compile_test_code="int some_variable = 0;" 15135 15136# Code to be used in simple link tests 15137lt_simple_link_test_code='int main(){return(0);}' 15138 15139 15140 15141 15142 15143 15144 15145# If no C compiler was specified, use CC. 15146LTCC=${LTCC-"$CC"} 15147 15148# If no C compiler flags were specified, use CFLAGS. 15149LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15150 15151# Allow CC to be a program name with arguments. 15152compiler=$CC 15153 15154# Save the default compiler, since it gets overwritten when the other 15155# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 15156compiler_DEFAULT=$CC 15157 15158# save warnings/boilerplate of simple test code 15159ac_outfile=conftest.$ac_objext 15160echo "$lt_simple_compile_test_code" >conftest.$ac_ext 15161eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15162_lt_compiler_boilerplate=`cat conftest.err` 15163$RM conftest* 15164 15165ac_outfile=conftest.$ac_objext 15166echo "$lt_simple_link_test_code" >conftest.$ac_ext 15167eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15168_lt_linker_boilerplate=`cat conftest.err` 15169$RM -r conftest* 15170 15171 15172if test -n "$compiler"; then 15173 15174lt_prog_compiler_no_builtin_flag= 15175 15176if test "$GCC" = yes; then 15177 case $cc_basename in 15178 nvcc*) 15179 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 15180 *) 15181 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 15182 esac 15183 15184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 15185$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 15186if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 15187 $as_echo_n "(cached) " >&6 15188else 15189 lt_cv_prog_compiler_rtti_exceptions=no 15190 ac_outfile=conftest.$ac_objext 15191 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15192 lt_compiler_flag="-fno-rtti -fno-exceptions" 15193 # Insert the option either (1) after the last *FLAGS variable, or 15194 # (2) before a word containing "conftest.", or (3) at the end. 15195 # Note that $ac_compile itself does not contain backslashes and begins 15196 # with a dollar sign (not a hyphen), so the echo should work correctly. 15197 # The option is referenced via a variable to avoid confusing sed. 15198 lt_compile=`echo "$ac_compile" | $SED \ 15199 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15200 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15201 -e 's:$: $lt_compiler_flag:'` 15202 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15203 (eval "$lt_compile" 2>conftest.err) 15204 ac_status=$? 15205 cat conftest.err >&5 15206 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15207 if (exit $ac_status) && test -s "$ac_outfile"; then 15208 # The compiler can only warn and ignore the option if not recognized 15209 # So say no if there are warnings other than the usual output. 15210 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15211 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15212 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15213 lt_cv_prog_compiler_rtti_exceptions=yes 15214 fi 15215 fi 15216 $RM conftest* 15217 15218fi 15219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 15220$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 15221 15222if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 15223 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 15224else 15225 : 15226fi 15227 15228fi 15229 15230 15231 15232 15233 15234 15235 lt_prog_compiler_wl= 15236lt_prog_compiler_pic= 15237lt_prog_compiler_static= 15238 15239 15240 if test "$GCC" = yes; then 15241 lt_prog_compiler_wl='-Wl,' 15242 lt_prog_compiler_static='-static' 15243 15244 case $host_os in 15245 aix*) 15246 # All AIX code is PIC. 15247 if test "$host_cpu" = ia64; then 15248 # AIX 5 now supports IA64 processor 15249 lt_prog_compiler_static='-Bstatic' 15250 fi 15251 ;; 15252 15253 amigaos*) 15254 case $host_cpu in 15255 powerpc) 15256 # see comment about AmigaOS4 .so support 15257 lt_prog_compiler_pic='-fPIC' 15258 ;; 15259 m68k) 15260 # FIXME: we need at least 68020 code to build shared libraries, but 15261 # adding the `-m68020' flag to GCC prevents building anything better, 15262 # like `-m68040'. 15263 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 15264 ;; 15265 esac 15266 ;; 15267 15268 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15269 # PIC is the default for these OSes. 15270 ;; 15271 15272 mingw* | cygwin* | pw32* | os2* | cegcc*) 15273 # This hack is so that the source file can tell whether it is being 15274 # built for inclusion in a dll (and should export symbols for example). 15275 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15276 # (--disable-auto-import) libraries 15277 lt_prog_compiler_pic='-DDLL_EXPORT' 15278 ;; 15279 15280 darwin* | rhapsody*) 15281 # PIC is the default on this platform 15282 # Common symbols not allowed in MH_DYLIB files 15283 lt_prog_compiler_pic='-fno-common' 15284 ;; 15285 15286 haiku*) 15287 # PIC is the default for Haiku. 15288 # The "-static" flag exists, but is broken. 15289 lt_prog_compiler_static= 15290 ;; 15291 15292 hpux*) 15293 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 15294 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 15295 # sets the default TLS model and affects inlining. 15296 case $host_cpu in 15297 hppa*64*) 15298 # +Z the default 15299 ;; 15300 *) 15301 lt_prog_compiler_pic='-fPIC' 15302 ;; 15303 esac 15304 ;; 15305 15306 interix[3-9]*) 15307 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15308 # Instead, we relocate shared libraries at runtime. 15309 ;; 15310 15311 msdosdjgpp*) 15312 # Just because we use GCC doesn't mean we suddenly get shared libraries 15313 # on systems that don't support them. 15314 lt_prog_compiler_can_build_shared=no 15315 enable_shared=no 15316 ;; 15317 15318 *nto* | *qnx*) 15319 # QNX uses GNU C++, but need to define -shared option too, otherwise 15320 # it will coredump. 15321 lt_prog_compiler_pic='-fPIC -shared' 15322 ;; 15323 15324 sysv4*MP*) 15325 if test -d /usr/nec; then 15326 lt_prog_compiler_pic=-Kconform_pic 15327 fi 15328 ;; 15329 15330 *) 15331 lt_prog_compiler_pic='-fPIC' 15332 ;; 15333 esac 15334 15335 case $cc_basename in 15336 nvcc*) # Cuda Compiler Driver 2.2 15337 lt_prog_compiler_wl='-Xlinker ' 15338 if test -n "$lt_prog_compiler_pic"; then 15339 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 15340 fi 15341 ;; 15342 esac 15343 else 15344 # PORTME Check for flag to pass linker flags through the system compiler. 15345 case $host_os in 15346 aix*) 15347 lt_prog_compiler_wl='-Wl,' 15348 if test "$host_cpu" = ia64; then 15349 # AIX 5 now supports IA64 processor 15350 lt_prog_compiler_static='-Bstatic' 15351 else 15352 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 15353 fi 15354 ;; 15355 15356 mingw* | cygwin* | pw32* | os2* | cegcc*) 15357 # This hack is so that the source file can tell whether it is being 15358 # built for inclusion in a dll (and should export symbols for example). 15359 lt_prog_compiler_pic='-DDLL_EXPORT' 15360 ;; 15361 15362 hpux9* | hpux10* | hpux11*) 15363 lt_prog_compiler_wl='-Wl,' 15364 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15365 # not for PA HP-UX. 15366 case $host_cpu in 15367 hppa*64*|ia64*) 15368 # +Z the default 15369 ;; 15370 *) 15371 lt_prog_compiler_pic='+Z' 15372 ;; 15373 esac 15374 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15375 lt_prog_compiler_static='${wl}-a ${wl}archive' 15376 ;; 15377 15378 irix5* | irix6* | nonstopux*) 15379 lt_prog_compiler_wl='-Wl,' 15380 # PIC (with -KPIC) is the default. 15381 lt_prog_compiler_static='-non_shared' 15382 ;; 15383 15384 linux* | k*bsd*-gnu | kopensolaris*-gnu) 15385 case $cc_basename in 15386 # old Intel for x86_64 which still supported -KPIC. 15387 ecc*) 15388 lt_prog_compiler_wl='-Wl,' 15389 lt_prog_compiler_pic='-KPIC' 15390 lt_prog_compiler_static='-static' 15391 ;; 15392 # icc used to be incompatible with GCC. 15393 # ICC 10 doesn't accept -KPIC any more. 15394 icc* | ifort*) 15395 lt_prog_compiler_wl='-Wl,' 15396 lt_prog_compiler_pic='-fPIC' 15397 lt_prog_compiler_static='-static' 15398 ;; 15399 # Lahey Fortran 8.1. 15400 lf95*) 15401 lt_prog_compiler_wl='-Wl,' 15402 lt_prog_compiler_pic='--shared' 15403 lt_prog_compiler_static='--static' 15404 ;; 15405 nagfor*) 15406 # NAG Fortran compiler 15407 lt_prog_compiler_wl='-Wl,-Wl,,' 15408 lt_prog_compiler_pic='-PIC' 15409 lt_prog_compiler_static='-Bstatic' 15410 ;; 15411 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 15412 # Portland Group compilers (*not* the Pentium gcc compiler, 15413 # which looks to be a dead project) 15414 lt_prog_compiler_wl='-Wl,' 15415 lt_prog_compiler_pic='-fpic' 15416 lt_prog_compiler_static='-Bstatic' 15417 ;; 15418 ccc*) 15419 lt_prog_compiler_wl='-Wl,' 15420 # All Alpha code is PIC. 15421 lt_prog_compiler_static='-non_shared' 15422 ;; 15423 xl* | bgxl* | bgf* | mpixl*) 15424 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 15425 lt_prog_compiler_wl='-Wl,' 15426 lt_prog_compiler_pic='-qpic' 15427 lt_prog_compiler_static='-qstaticlink' 15428 ;; 15429 *) 15430 case `$CC -V 2>&1 | sed 5q` in 15431 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 15432 # Sun Fortran 8.3 passes all unrecognized flags to the linker 15433 lt_prog_compiler_pic='-KPIC' 15434 lt_prog_compiler_static='-Bstatic' 15435 lt_prog_compiler_wl='' 15436 ;; 15437 *Sun\ F* | *Sun*Fortran*) 15438 lt_prog_compiler_pic='-KPIC' 15439 lt_prog_compiler_static='-Bstatic' 15440 lt_prog_compiler_wl='-Qoption ld ' 15441 ;; 15442 *Sun\ C*) 15443 # Sun C 5.9 15444 lt_prog_compiler_pic='-KPIC' 15445 lt_prog_compiler_static='-Bstatic' 15446 lt_prog_compiler_wl='-Wl,' 15447 ;; 15448 *Intel*\ [CF]*Compiler*) 15449 lt_prog_compiler_wl='-Wl,' 15450 lt_prog_compiler_pic='-fPIC' 15451 lt_prog_compiler_static='-static' 15452 ;; 15453 *Portland\ Group*) 15454 lt_prog_compiler_wl='-Wl,' 15455 lt_prog_compiler_pic='-fpic' 15456 lt_prog_compiler_static='-Bstatic' 15457 ;; 15458 esac 15459 ;; 15460 esac 15461 ;; 15462 15463 newsos6) 15464 lt_prog_compiler_pic='-KPIC' 15465 lt_prog_compiler_static='-Bstatic' 15466 ;; 15467 15468 *nto* | *qnx*) 15469 # QNX uses GNU C++, but need to define -shared option too, otherwise 15470 # it will coredump. 15471 lt_prog_compiler_pic='-fPIC -shared' 15472 ;; 15473 15474 osf3* | osf4* | osf5*) 15475 lt_prog_compiler_wl='-Wl,' 15476 # All OSF/1 code is PIC. 15477 lt_prog_compiler_static='-non_shared' 15478 ;; 15479 15480 rdos*) 15481 lt_prog_compiler_static='-non_shared' 15482 ;; 15483 15484 solaris*) 15485 lt_prog_compiler_pic='-KPIC' 15486 lt_prog_compiler_static='-Bstatic' 15487 case $cc_basename in 15488 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 15489 lt_prog_compiler_wl='-Qoption ld ';; 15490 *) 15491 lt_prog_compiler_wl='-Wl,';; 15492 esac 15493 ;; 15494 15495 sunos4*) 15496 lt_prog_compiler_wl='-Qoption ld ' 15497 lt_prog_compiler_pic='-PIC' 15498 lt_prog_compiler_static='-Bstatic' 15499 ;; 15500 15501 sysv4 | sysv4.2uw2* | sysv4.3*) 15502 lt_prog_compiler_wl='-Wl,' 15503 lt_prog_compiler_pic='-KPIC' 15504 lt_prog_compiler_static='-Bstatic' 15505 ;; 15506 15507 sysv4*MP*) 15508 if test -d /usr/nec ;then 15509 lt_prog_compiler_pic='-Kconform_pic' 15510 lt_prog_compiler_static='-Bstatic' 15511 fi 15512 ;; 15513 15514 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15515 lt_prog_compiler_wl='-Wl,' 15516 lt_prog_compiler_pic='-KPIC' 15517 lt_prog_compiler_static='-Bstatic' 15518 ;; 15519 15520 unicos*) 15521 lt_prog_compiler_wl='-Wl,' 15522 lt_prog_compiler_can_build_shared=no 15523 ;; 15524 15525 uts4*) 15526 lt_prog_compiler_pic='-pic' 15527 lt_prog_compiler_static='-Bstatic' 15528 ;; 15529 15530 *) 15531 lt_prog_compiler_can_build_shared=no 15532 ;; 15533 esac 15534 fi 15535 15536case $host_os in 15537 # For platforms which do not support PIC, -DPIC is meaningless: 15538 *djgpp*) 15539 lt_prog_compiler_pic= 15540 ;; 15541 *) 15542 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 15543 ;; 15544esac 15545 15546{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15547$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 15548if test "${lt_cv_prog_compiler_pic+set}" = set; then : 15549 $as_echo_n "(cached) " >&6 15550else 15551 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 15552fi 15553{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 15554$as_echo "$lt_cv_prog_compiler_pic" >&6; } 15555lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 15556 15557# 15558# Check to make sure the PIC flag actually works. 15559# 15560if test -n "$lt_prog_compiler_pic"; then 15561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 15562$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 15563if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : 15564 $as_echo_n "(cached) " >&6 15565else 15566 lt_cv_prog_compiler_pic_works=no 15567 ac_outfile=conftest.$ac_objext 15568 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15569 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 15570 # Insert the option either (1) after the last *FLAGS variable, or 15571 # (2) before a word containing "conftest.", or (3) at the end. 15572 # Note that $ac_compile itself does not contain backslashes and begins 15573 # with a dollar sign (not a hyphen), so the echo should work correctly. 15574 # The option is referenced via a variable to avoid confusing sed. 15575 lt_compile=`echo "$ac_compile" | $SED \ 15576 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15577 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15578 -e 's:$: $lt_compiler_flag:'` 15579 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15580 (eval "$lt_compile" 2>conftest.err) 15581 ac_status=$? 15582 cat conftest.err >&5 15583 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15584 if (exit $ac_status) && test -s "$ac_outfile"; then 15585 # The compiler can only warn and ignore the option if not recognized 15586 # So say no if there are warnings other than the usual output. 15587 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15588 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15589 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15590 lt_cv_prog_compiler_pic_works=yes 15591 fi 15592 fi 15593 $RM conftest* 15594 15595fi 15596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 15597$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 15598 15599if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 15600 case $lt_prog_compiler_pic in 15601 "" | " "*) ;; 15602 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 15603 esac 15604else 15605 lt_prog_compiler_pic= 15606 lt_prog_compiler_can_build_shared=no 15607fi 15608 15609fi 15610 15611 15612 15613 15614 15615 15616 15617 15618 15619 15620 15621# 15622# Check to make sure the static flag actually works. 15623# 15624wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 15625{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15626$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15627if test "${lt_cv_prog_compiler_static_works+set}" = set; then : 15628 $as_echo_n "(cached) " >&6 15629else 15630 lt_cv_prog_compiler_static_works=no 15631 save_LDFLAGS="$LDFLAGS" 15632 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15633 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15634 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15635 # The linker can only warn and ignore the option if not recognized 15636 # So say no if there are warnings 15637 if test -s conftest.err; then 15638 # Append any errors to the config.log. 15639 cat conftest.err 1>&5 15640 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15641 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15642 if diff conftest.exp conftest.er2 >/dev/null; then 15643 lt_cv_prog_compiler_static_works=yes 15644 fi 15645 else 15646 lt_cv_prog_compiler_static_works=yes 15647 fi 15648 fi 15649 $RM -r conftest* 15650 LDFLAGS="$save_LDFLAGS" 15651 15652fi 15653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 15654$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 15655 15656if test x"$lt_cv_prog_compiler_static_works" = xyes; then 15657 : 15658else 15659 lt_prog_compiler_static= 15660fi 15661 15662 15663 15664 15665 15666 15667 15668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15669$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15670if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 15671 $as_echo_n "(cached) " >&6 15672else 15673 lt_cv_prog_compiler_c_o=no 15674 $RM -r conftest 2>/dev/null 15675 mkdir conftest 15676 cd conftest 15677 mkdir out 15678 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15679 15680 lt_compiler_flag="-o out/conftest2.$ac_objext" 15681 # Insert the option either (1) after the last *FLAGS variable, or 15682 # (2) before a word containing "conftest.", or (3) at the end. 15683 # Note that $ac_compile itself does not contain backslashes and begins 15684 # with a dollar sign (not a hyphen), so the echo should work correctly. 15685 lt_compile=`echo "$ac_compile" | $SED \ 15686 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15687 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15688 -e 's:$: $lt_compiler_flag:'` 15689 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15690 (eval "$lt_compile" 2>out/conftest.err) 15691 ac_status=$? 15692 cat out/conftest.err >&5 15693 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15694 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15695 then 15696 # The compiler can only warn and ignore the option if not recognized 15697 # So say no if there are warnings 15698 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15699 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15700 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15701 lt_cv_prog_compiler_c_o=yes 15702 fi 15703 fi 15704 chmod u+w . 2>&5 15705 $RM conftest* 15706 # SGI C++ compiler will create directory out/ii_files/ for 15707 # template instantiation 15708 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15709 $RM out/* && rmdir out 15710 cd .. 15711 $RM -r conftest 15712 $RM conftest* 15713 15714fi 15715{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 15716$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 15717 15718 15719 15720 15721 15722 15723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15724$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15725if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 15726 $as_echo_n "(cached) " >&6 15727else 15728 lt_cv_prog_compiler_c_o=no 15729 $RM -r conftest 2>/dev/null 15730 mkdir conftest 15731 cd conftest 15732 mkdir out 15733 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15734 15735 lt_compiler_flag="-o out/conftest2.$ac_objext" 15736 # Insert the option either (1) after the last *FLAGS variable, or 15737 # (2) before a word containing "conftest.", or (3) at the end. 15738 # Note that $ac_compile itself does not contain backslashes and begins 15739 # with a dollar sign (not a hyphen), so the echo should work correctly. 15740 lt_compile=`echo "$ac_compile" | $SED \ 15741 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15742 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15743 -e 's:$: $lt_compiler_flag:'` 15744 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15745 (eval "$lt_compile" 2>out/conftest.err) 15746 ac_status=$? 15747 cat out/conftest.err >&5 15748 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15749 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15750 then 15751 # The compiler can only warn and ignore the option if not recognized 15752 # So say no if there are warnings 15753 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15754 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15755 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15756 lt_cv_prog_compiler_c_o=yes 15757 fi 15758 fi 15759 chmod u+w . 2>&5 15760 $RM conftest* 15761 # SGI C++ compiler will create directory out/ii_files/ for 15762 # template instantiation 15763 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15764 $RM out/* && rmdir out 15765 cd .. 15766 $RM -r conftest 15767 $RM conftest* 15768 15769fi 15770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 15771$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 15772 15773 15774 15775 15776hard_links="nottested" 15777if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 15778 # do not overwrite the value of need_locks provided by the user 15779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15780$as_echo_n "checking if we can lock with hard links... " >&6; } 15781 hard_links=yes 15782 $RM conftest* 15783 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15784 touch conftest.a 15785 ln conftest.a conftest.b 2>&5 || hard_links=no 15786 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15788$as_echo "$hard_links" >&6; } 15789 if test "$hard_links" = no; then 15790 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 15791$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 15792 need_locks=warn 15793 fi 15794else 15795 need_locks=no 15796fi 15797 15798 15799 15800 15801 15802 15803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15804$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15805 15806 runpath_var= 15807 allow_undefined_flag= 15808 always_export_symbols=no 15809 archive_cmds= 15810 archive_expsym_cmds= 15811 compiler_needs_object=no 15812 enable_shared_with_static_runtimes=no 15813 export_dynamic_flag_spec= 15814 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15815 hardcode_automatic=no 15816 hardcode_direct=no 15817 hardcode_direct_absolute=no 15818 hardcode_libdir_flag_spec= 15819 hardcode_libdir_separator= 15820 hardcode_minus_L=no 15821 hardcode_shlibpath_var=unsupported 15822 inherit_rpath=no 15823 link_all_deplibs=unknown 15824 module_cmds= 15825 module_expsym_cmds= 15826 old_archive_from_new_cmds= 15827 old_archive_from_expsyms_cmds= 15828 thread_safe_flag_spec= 15829 whole_archive_flag_spec= 15830 # include_expsyms should be a list of space-separated symbols to be *always* 15831 # included in the symbol list 15832 include_expsyms= 15833 # exclude_expsyms can be an extended regexp of symbols to exclude 15834 # it will be wrapped by ` (' and `)$', so one must not match beginning or 15835 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 15836 # as well as any symbol that contains `d'. 15837 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15838 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 15839 # platforms (ab)use it in PIC code, but their linkers get confused if 15840 # the symbol is explicitly referenced. Since portable code cannot 15841 # rely on this symbol name, it's probably fine to never include it in 15842 # preloaded symbol tables. 15843 # Exclude shared library initialization/finalization symbols. 15844 extract_expsyms_cmds= 15845 15846 case $host_os in 15847 cygwin* | mingw* | pw32* | cegcc*) 15848 # FIXME: the MSVC++ port hasn't been tested in a loooong time 15849 # When not using gcc, we currently assume that we are using 15850 # Microsoft Visual C++. 15851 if test "$GCC" != yes; then 15852 with_gnu_ld=no 15853 fi 15854 ;; 15855 interix*) 15856 # we just hope/assume this is gcc and not c89 (= MSVC++) 15857 with_gnu_ld=yes 15858 ;; 15859 openbsd*) 15860 with_gnu_ld=no 15861 ;; 15862 esac 15863 15864 ld_shlibs=yes 15865 15866 # On some targets, GNU ld is compatible enough with the native linker 15867 # that we're better off using the native interface for both. 15868 lt_use_gnu_ld_interface=no 15869 if test "$with_gnu_ld" = yes; then 15870 case $host_os in 15871 aix*) 15872 # The AIX port of GNU ld has always aspired to compatibility 15873 # with the native linker. However, as the warning in the GNU ld 15874 # block says, versions before 2.19.5* couldn't really create working 15875 # shared libraries, regardless of the interface used. 15876 case `$LD -v 2>&1` in 15877 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 15878 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 15879 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 15880 *) 15881 lt_use_gnu_ld_interface=yes 15882 ;; 15883 esac 15884 ;; 15885 *) 15886 lt_use_gnu_ld_interface=yes 15887 ;; 15888 esac 15889 fi 15890 15891 if test "$lt_use_gnu_ld_interface" = yes; then 15892 # If archive_cmds runs LD, not CC, wlarc should be empty 15893 wlarc='${wl}' 15894 15895 # Set some defaults for GNU ld with shared library support. These 15896 # are reset later if shared libraries are not supported. Putting them 15897 # here allows them to be overridden if necessary. 15898 runpath_var=LD_RUN_PATH 15899 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 15900 export_dynamic_flag_spec='${wl}--export-dynamic' 15901 # ancient GNU ld didn't support --whole-archive et. al. 15902 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 15903 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 15904 else 15905 whole_archive_flag_spec= 15906 fi 15907 supports_anon_versioning=no 15908 case `$LD -v 2>&1` in 15909 *GNU\ gold*) supports_anon_versioning=yes ;; 15910 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 15911 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 15912 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 15913 *\ 2.11.*) ;; # other 2.11 versions 15914 *) supports_anon_versioning=yes ;; 15915 esac 15916 15917 # See if GNU ld supports shared libraries. 15918 case $host_os in 15919 aix[3-9]*) 15920 # On AIX/PPC, the GNU linker is very broken 15921 if test "$host_cpu" != ia64; then 15922 ld_shlibs=no 15923 cat <<_LT_EOF 1>&2 15924 15925*** Warning: the GNU linker, at least up to release 2.19, is reported 15926*** to be unable to reliably create shared libraries on AIX. 15927*** Therefore, libtool is disabling shared libraries support. If you 15928*** really care for shared libraries, you may want to install binutils 15929*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 15930*** You will then need to restart the configuration process. 15931 15932_LT_EOF 15933 fi 15934 ;; 15935 15936 amigaos*) 15937 case $host_cpu in 15938 powerpc) 15939 # see comment about AmigaOS4 .so support 15940 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15941 archive_expsym_cmds='' 15942 ;; 15943 m68k) 15944 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)' 15945 hardcode_libdir_flag_spec='-L$libdir' 15946 hardcode_minus_L=yes 15947 ;; 15948 esac 15949 ;; 15950 15951 beos*) 15952 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15953 allow_undefined_flag=unsupported 15954 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 15955 # support --undefined. This deserves some investigation. FIXME 15956 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15957 else 15958 ld_shlibs=no 15959 fi 15960 ;; 15961 15962 cygwin* | mingw* | pw32* | cegcc*) 15963 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 15964 # as there is no search path for DLLs. 15965 hardcode_libdir_flag_spec='-L$libdir' 15966 export_dynamic_flag_spec='${wl}--export-all-symbols' 15967 allow_undefined_flag=unsupported 15968 always_export_symbols=no 15969 enable_shared_with_static_runtimes=yes 15970 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 15971 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15972 15973 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 15974 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15975 # If the export-symbols file already is a .def file (1st line 15976 # is EXPORTS), use it as is; otherwise, prepend... 15977 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 15978 cp $export_symbols $output_objdir/$soname.def; 15979 else 15980 echo EXPORTS > $output_objdir/$soname.def; 15981 cat $export_symbols >> $output_objdir/$soname.def; 15982 fi~ 15983 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 15984 else 15985 ld_shlibs=no 15986 fi 15987 ;; 15988 15989 haiku*) 15990 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15991 link_all_deplibs=yes 15992 ;; 15993 15994 interix[3-9]*) 15995 hardcode_direct=no 15996 hardcode_shlibpath_var=no 15997 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 15998 export_dynamic_flag_spec='${wl}-E' 15999 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16000 # Instead, shared libraries are loaded at an image base (0x10000000 by 16001 # default) and relocated if they conflict, which is a slow very memory 16002 # consuming and fragmenting process. To avoid this, we pick a random, 16003 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16004 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16005 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 16006 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 16007 ;; 16008 16009 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 16010 tmp_diet=no 16011 if test "$host_os" = linux-dietlibc; then 16012 case $cc_basename in 16013 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 16014 esac 16015 fi 16016 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 16017 && test "$tmp_diet" = no 16018 then 16019 tmp_addflag=' $pic_flag' 16020 tmp_sharedflag='-shared' 16021 case $cc_basename,$host_cpu in 16022 pgcc*) # Portland Group C compiler 16023 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 16024 tmp_addflag=' $pic_flag' 16025 ;; 16026 pgf77* | pgf90* | pgf95* | pgfortran*) 16027 # Portland Group f77 and f90 compilers 16028 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 16029 tmp_addflag=' $pic_flag -Mnomain' ;; 16030 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 16031 tmp_addflag=' -i_dynamic' ;; 16032 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 16033 tmp_addflag=' -i_dynamic -nofor_main' ;; 16034 ifc* | ifort*) # Intel Fortran compiler 16035 tmp_addflag=' -nofor_main' ;; 16036 lf95*) # Lahey Fortran 8.1 16037 whole_archive_flag_spec= 16038 tmp_sharedflag='--shared' ;; 16039 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 16040 tmp_sharedflag='-qmkshrobj' 16041 tmp_addflag= ;; 16042 nvcc*) # Cuda Compiler Driver 2.2 16043 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 16044 compiler_needs_object=yes 16045 ;; 16046 esac 16047 case `$CC -V 2>&1 | sed 5q` in 16048 *Sun\ C*) # Sun C 5.9 16049 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 16050 compiler_needs_object=yes 16051 tmp_sharedflag='-G' ;; 16052 *Sun\ F*) # Sun Fortran 8.3 16053 tmp_sharedflag='-G' ;; 16054 esac 16055 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16056 16057 if test "x$supports_anon_versioning" = xyes; then 16058 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 16059 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16060 echo "local: *; };" >> $output_objdir/$libname.ver~ 16061 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 16062 fi 16063 16064 case $cc_basename in 16065 xlf* | bgf* | bgxlf* | mpixlf*) 16066 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 16067 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 16068 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 16069 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 16070 if test "x$supports_anon_versioning" = xyes; then 16071 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 16072 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16073 echo "local: *; };" >> $output_objdir/$libname.ver~ 16074 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 16075 fi 16076 ;; 16077 esac 16078 else 16079 ld_shlibs=no 16080 fi 16081 ;; 16082 16083 netbsd*) 16084 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16085 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 16086 wlarc= 16087 else 16088 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16089 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16090 fi 16091 ;; 16092 16093 solaris*) 16094 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 16095 ld_shlibs=no 16096 cat <<_LT_EOF 1>&2 16097 16098*** Warning: The releases 2.8.* of the GNU linker cannot reliably 16099*** create shared libraries on Solaris systems. Therefore, libtool 16100*** is disabling shared libraries support. We urge you to upgrade GNU 16101*** binutils to release 2.9.1 or newer. Another option is to modify 16102*** your PATH or compiler configuration so that the native linker is 16103*** used, and then restart. 16104 16105_LT_EOF 16106 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16107 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16108 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16109 else 16110 ld_shlibs=no 16111 fi 16112 ;; 16113 16114 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 16115 case `$LD -v 2>&1` in 16116 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 16117 ld_shlibs=no 16118 cat <<_LT_EOF 1>&2 16119 16120*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 16121*** reliably create shared libraries on SCO systems. Therefore, libtool 16122*** is disabling shared libraries support. We urge you to upgrade GNU 16123*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 16124*** your PATH or compiler configuration so that the native linker is 16125*** used, and then restart. 16126 16127_LT_EOF 16128 ;; 16129 *) 16130 # For security reasons, it is highly recommended that you always 16131 # use absolute paths for naming shared libraries, and exclude the 16132 # DT_RUNPATH tag from executables and libraries. But doing so 16133 # requires that you compile everything twice, which is a pain. 16134 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16135 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 16136 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16137 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16138 else 16139 ld_shlibs=no 16140 fi 16141 ;; 16142 esac 16143 ;; 16144 16145 sunos4*) 16146 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16147 wlarc= 16148 hardcode_direct=yes 16149 hardcode_shlibpath_var=no 16150 ;; 16151 16152 *) 16153 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 16154 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16155 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 16156 else 16157 ld_shlibs=no 16158 fi 16159 ;; 16160 esac 16161 16162 if test "$ld_shlibs" = no; then 16163 runpath_var= 16164 hardcode_libdir_flag_spec= 16165 export_dynamic_flag_spec= 16166 whole_archive_flag_spec= 16167 fi 16168 else 16169 # PORTME fill in a description of your system's linker (not GNU ld) 16170 case $host_os in 16171 aix3*) 16172 allow_undefined_flag=unsupported 16173 always_export_symbols=yes 16174 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' 16175 # Note: this linker hardcodes the directories in LIBPATH if there 16176 # are no directories specified by -L. 16177 hardcode_minus_L=yes 16178 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 16179 # Neither direct hardcoding nor static linking is supported with a 16180 # broken collect2. 16181 hardcode_direct=unsupported 16182 fi 16183 ;; 16184 16185 aix[4-9]*) 16186 if test "$host_cpu" = ia64; then 16187 # On IA64, the linker does run time linking by default, so we don't 16188 # have to do anything special. 16189 aix_use_runtimelinking=no 16190 exp_sym_flag='-Bexport' 16191 no_entry_flag="" 16192 else 16193 # If we're using GNU nm, then we don't want the "-C" option. 16194 # -C means demangle to AIX nm, but means don't demangle with GNU nm 16195 # Also, AIX nm treats weak defined symbols like other global 16196 # defined symbols, whereas GNU nm marks them as "W". 16197 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 16198 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 16199 else 16200 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' 16201 fi 16202 aix_use_runtimelinking=no 16203 16204 # Test if we are trying to use run time linking or normal 16205 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 16206 # need to do runtime linking. 16207 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 16208 for ld_flag in $LDFLAGS; do 16209 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 16210 aix_use_runtimelinking=yes 16211 break 16212 fi 16213 done 16214 ;; 16215 esac 16216 16217 exp_sym_flag='-bexport' 16218 no_entry_flag='-bnoentry' 16219 fi 16220 16221 # When large executables or shared objects are built, AIX ld can 16222 # have problems creating the table of contents. If linking a library 16223 # or program results in "error TOC overflow" add -mminimal-toc to 16224 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 16225 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 16226 16227 archive_cmds='' 16228 hardcode_direct=yes 16229 hardcode_direct_absolute=yes 16230 hardcode_libdir_separator=':' 16231 link_all_deplibs=yes 16232 file_list_spec='${wl}-f,' 16233 16234 if test "$GCC" = yes; then 16235 case $host_os in aix4.[012]|aix4.[012].*) 16236 # We only want to do this on AIX 4.2 and lower, the check 16237 # below for broken collect2 doesn't work under 4.3+ 16238 collect2name=`${CC} -print-prog-name=collect2` 16239 if test -f "$collect2name" && 16240 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 16241 then 16242 # We have reworked collect2 16243 : 16244 else 16245 # We have old collect2 16246 hardcode_direct=unsupported 16247 # It fails to find uninstalled libraries when the uninstalled 16248 # path is not listed in the libpath. Setting hardcode_minus_L 16249 # to unsupported forces relinking 16250 hardcode_minus_L=yes 16251 hardcode_libdir_flag_spec='-L$libdir' 16252 hardcode_libdir_separator= 16253 fi 16254 ;; 16255 esac 16256 shared_flag='-shared' 16257 if test "$aix_use_runtimelinking" = yes; then 16258 shared_flag="$shared_flag "'${wl}-G' 16259 fi 16260 else 16261 # not using gcc 16262 if test "$host_cpu" = ia64; then 16263 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 16264 # chokes on -Wl,-G. The following line is correct: 16265 shared_flag='-G' 16266 else 16267 if test "$aix_use_runtimelinking" = yes; then 16268 shared_flag='${wl}-G' 16269 else 16270 shared_flag='${wl}-bM:SRE' 16271 fi 16272 fi 16273 fi 16274 16275 export_dynamic_flag_spec='${wl}-bexpall' 16276 # It seems that -bexpall does not export symbols beginning with 16277 # underscore (_), so it is better to generate a list of symbols to export. 16278 always_export_symbols=yes 16279 if test "$aix_use_runtimelinking" = yes; then 16280 # Warning - without using the other runtime loading flags (-brtl), 16281 # -berok will link without error, but may produce a broken library. 16282 allow_undefined_flag='-berok' 16283 # Determine the default libpath from the value encoded in an 16284 # empty executable. 16285 if test "${lt_cv_aix_libpath+set}" = set; then 16286 aix_libpath=$lt_cv_aix_libpath 16287else 16288 if test "${lt_cv_aix_libpath_+set}" = set; then : 16289 $as_echo_n "(cached) " >&6 16290else 16291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16292/* end confdefs.h. */ 16293 16294int 16295main () 16296{ 16297 16298 ; 16299 return 0; 16300} 16301_ACEOF 16302if ac_fn_c_try_link "$LINENO"; then : 16303 16304 lt_aix_libpath_sed=' 16305 /Import File Strings/,/^$/ { 16306 /^0/ { 16307 s/^0 *\([^ ]*\) *$/\1/ 16308 p 16309 } 16310 }' 16311 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16312 # Check for a 64-bit object if we didn't find anything. 16313 if test -z "$lt_cv_aix_libpath_"; then 16314 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16315 fi 16316fi 16317rm -f core conftest.err conftest.$ac_objext \ 16318 conftest$ac_exeext conftest.$ac_ext 16319 if test -z "$lt_cv_aix_libpath_"; then 16320 lt_cv_aix_libpath_="/usr/lib:/lib" 16321 fi 16322 16323fi 16324 16325 aix_libpath=$lt_cv_aix_libpath_ 16326fi 16327 16328 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 16329 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 16330 else 16331 if test "$host_cpu" = ia64; then 16332 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 16333 allow_undefined_flag="-z nodefs" 16334 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 16335 else 16336 # Determine the default libpath from the value encoded in an 16337 # empty executable. 16338 if test "${lt_cv_aix_libpath+set}" = set; then 16339 aix_libpath=$lt_cv_aix_libpath 16340else 16341 if test "${lt_cv_aix_libpath_+set}" = set; then : 16342 $as_echo_n "(cached) " >&6 16343else 16344 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16345/* end confdefs.h. */ 16346 16347int 16348main () 16349{ 16350 16351 ; 16352 return 0; 16353} 16354_ACEOF 16355if ac_fn_c_try_link "$LINENO"; then : 16356 16357 lt_aix_libpath_sed=' 16358 /Import File Strings/,/^$/ { 16359 /^0/ { 16360 s/^0 *\([^ ]*\) *$/\1/ 16361 p 16362 } 16363 }' 16364 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16365 # Check for a 64-bit object if we didn't find anything. 16366 if test -z "$lt_cv_aix_libpath_"; then 16367 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 16368 fi 16369fi 16370rm -f core conftest.err conftest.$ac_objext \ 16371 conftest$ac_exeext conftest.$ac_ext 16372 if test -z "$lt_cv_aix_libpath_"; then 16373 lt_cv_aix_libpath_="/usr/lib:/lib" 16374 fi 16375 16376fi 16377 16378 aix_libpath=$lt_cv_aix_libpath_ 16379fi 16380 16381 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 16382 # Warning - without using the other run time loading flags, 16383 # -berok will link without error, but may produce a broken library. 16384 no_undefined_flag=' ${wl}-bernotok' 16385 allow_undefined_flag=' ${wl}-berok' 16386 if test "$with_gnu_ld" = yes; then 16387 # We only use this code for GNU lds that support --whole-archive. 16388 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 16389 else 16390 # Exported symbols can be pulled into shared objects from archives 16391 whole_archive_flag_spec='$convenience' 16392 fi 16393 archive_cmds_need_lc=yes 16394 # This is similar to how AIX traditionally builds its shared libraries. 16395 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 16396 fi 16397 fi 16398 ;; 16399 16400 amigaos*) 16401 case $host_cpu in 16402 powerpc) 16403 # see comment about AmigaOS4 .so support 16404 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 16405 archive_expsym_cmds='' 16406 ;; 16407 m68k) 16408 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)' 16409 hardcode_libdir_flag_spec='-L$libdir' 16410 hardcode_minus_L=yes 16411 ;; 16412 esac 16413 ;; 16414 16415 bsdi[45]*) 16416 export_dynamic_flag_spec=-rdynamic 16417 ;; 16418 16419 cygwin* | mingw* | pw32* | cegcc*) 16420 # When not using gcc, we currently assume that we are using 16421 # Microsoft Visual C++. 16422 # hardcode_libdir_flag_spec is actually meaningless, as there is 16423 # no search path for DLLs. 16424 case $cc_basename in 16425 cl*) 16426 # Native MSVC 16427 hardcode_libdir_flag_spec=' ' 16428 allow_undefined_flag=unsupported 16429 always_export_symbols=yes 16430 file_list_spec='@' 16431 # Tell ltmain to make .lib files, not .a files. 16432 libext=lib 16433 # Tell ltmain to make .dll files, not .so files. 16434 shrext_cmds=".dll" 16435 # FIXME: Setting linknames here is a bad hack. 16436 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 16437 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 16438 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 16439 else 16440 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 16441 fi~ 16442 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 16443 linknames=' 16444 # The linker will not automatically build a static lib if we build a DLL. 16445 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 16446 enable_shared_with_static_runtimes=yes 16447 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 16448 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 16449 # Don't use ranlib 16450 old_postinstall_cmds='chmod 644 $oldlib' 16451 postlink_cmds='lt_outputfile="@OUTPUT@"~ 16452 lt_tool_outputfile="@TOOL_OUTPUT@"~ 16453 case $lt_outputfile in 16454 *.exe|*.EXE) ;; 16455 *) 16456 lt_outputfile="$lt_outputfile.exe" 16457 lt_tool_outputfile="$lt_tool_outputfile.exe" 16458 ;; 16459 esac~ 16460 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 16461 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 16462 $RM "$lt_outputfile.manifest"; 16463 fi' 16464 ;; 16465 *) 16466 # Assume MSVC wrapper 16467 hardcode_libdir_flag_spec=' ' 16468 allow_undefined_flag=unsupported 16469 # Tell ltmain to make .lib files, not .a files. 16470 libext=lib 16471 # Tell ltmain to make .dll files, not .so files. 16472 shrext_cmds=".dll" 16473 # FIXME: Setting linknames here is a bad hack. 16474 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 16475 # The linker will automatically build a .lib file if we build a DLL. 16476 old_archive_from_new_cmds='true' 16477 # FIXME: Should let the user specify the lib program. 16478 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 16479 enable_shared_with_static_runtimes=yes 16480 ;; 16481 esac 16482 ;; 16483 16484 darwin* | rhapsody*) 16485 16486 16487 archive_cmds_need_lc=no 16488 hardcode_direct=no 16489 hardcode_automatic=yes 16490 hardcode_shlibpath_var=unsupported 16491 if test "$lt_cv_ld_force_load" = "yes"; then 16492 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 16493 16494 else 16495 whole_archive_flag_spec='' 16496 fi 16497 link_all_deplibs=yes 16498 allow_undefined_flag="$_lt_dar_allow_undefined" 16499 case $cc_basename in 16500 ifort*) _lt_dar_can_shared=yes ;; 16501 *) _lt_dar_can_shared=$GCC ;; 16502 esac 16503 if test "$_lt_dar_can_shared" = "yes"; then 16504 output_verbose_link_cmd=func_echo_all 16505 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 16506 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 16507 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 16508 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 16509 16510 else 16511 ld_shlibs=no 16512 fi 16513 16514 ;; 16515 16516 dgux*) 16517 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16518 hardcode_libdir_flag_spec='-L$libdir' 16519 hardcode_shlibpath_var=no 16520 ;; 16521 16522 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 16523 # support. Future versions do this automatically, but an explicit c++rt0.o 16524 # does not break anything, and helps significantly (at the cost of a little 16525 # extra space). 16526 freebsd2.2*) 16527 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 16528 hardcode_libdir_flag_spec='-R$libdir' 16529 hardcode_direct=yes 16530 hardcode_shlibpath_var=no 16531 ;; 16532 16533 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 16534 freebsd2.*) 16535 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16536 hardcode_direct=yes 16537 hardcode_minus_L=yes 16538 hardcode_shlibpath_var=no 16539 ;; 16540 16541 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 16542 freebsd* | dragonfly*) 16543 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16544 hardcode_libdir_flag_spec='-R$libdir' 16545 hardcode_direct=yes 16546 hardcode_shlibpath_var=no 16547 ;; 16548 16549 hpux9*) 16550 if test "$GCC" = yes; then 16551 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 16552 else 16553 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' 16554 fi 16555 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 16556 hardcode_libdir_separator=: 16557 hardcode_direct=yes 16558 16559 # hardcode_minus_L: Not really in the search PATH, 16560 # but as the default location of the library. 16561 hardcode_minus_L=yes 16562 export_dynamic_flag_spec='${wl}-E' 16563 ;; 16564 16565 hpux10*) 16566 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 16567 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16568 else 16569 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16570 fi 16571 if test "$with_gnu_ld" = no; then 16572 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 16573 hardcode_libdir_separator=: 16574 hardcode_direct=yes 16575 hardcode_direct_absolute=yes 16576 export_dynamic_flag_spec='${wl}-E' 16577 # hardcode_minus_L: Not really in the search PATH, 16578 # but as the default location of the library. 16579 hardcode_minus_L=yes 16580 fi 16581 ;; 16582 16583 hpux11*) 16584 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 16585 case $host_cpu in 16586 hppa*64*) 16587 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16588 ;; 16589 ia64*) 16590 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16591 ;; 16592 *) 16593 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16594 ;; 16595 esac 16596 else 16597 case $host_cpu in 16598 hppa*64*) 16599 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16600 ;; 16601 ia64*) 16602 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 16603 ;; 16604 *) 16605 16606 # Older versions of the 11.00 compiler do not understand -b yet 16607 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 16608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 16609$as_echo_n "checking if $CC understands -b... " >&6; } 16610if test "${lt_cv_prog_compiler__b+set}" = set; then : 16611 $as_echo_n "(cached) " >&6 16612else 16613 lt_cv_prog_compiler__b=no 16614 save_LDFLAGS="$LDFLAGS" 16615 LDFLAGS="$LDFLAGS -b" 16616 echo "$lt_simple_link_test_code" > conftest.$ac_ext 16617 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 16618 # The linker can only warn and ignore the option if not recognized 16619 # So say no if there are warnings 16620 if test -s conftest.err; then 16621 # Append any errors to the config.log. 16622 cat conftest.err 1>&5 16623 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 16624 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 16625 if diff conftest.exp conftest.er2 >/dev/null; then 16626 lt_cv_prog_compiler__b=yes 16627 fi 16628 else 16629 lt_cv_prog_compiler__b=yes 16630 fi 16631 fi 16632 $RM -r conftest* 16633 LDFLAGS="$save_LDFLAGS" 16634 16635fi 16636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 16637$as_echo "$lt_cv_prog_compiler__b" >&6; } 16638 16639if test x"$lt_cv_prog_compiler__b" = xyes; then 16640 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 16641else 16642 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 16643fi 16644 16645 ;; 16646 esac 16647 fi 16648 if test "$with_gnu_ld" = no; then 16649 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 16650 hardcode_libdir_separator=: 16651 16652 case $host_cpu in 16653 hppa*64*|ia64*) 16654 hardcode_direct=no 16655 hardcode_shlibpath_var=no 16656 ;; 16657 *) 16658 hardcode_direct=yes 16659 hardcode_direct_absolute=yes 16660 export_dynamic_flag_spec='${wl}-E' 16661 16662 # hardcode_minus_L: Not really in the search PATH, 16663 # but as the default location of the library. 16664 hardcode_minus_L=yes 16665 ;; 16666 esac 16667 fi 16668 ;; 16669 16670 irix5* | irix6* | nonstopux*) 16671 if test "$GCC" = yes; then 16672 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 16673 # Try to use the -exported_symbol ld option, if it does not 16674 # work, assume that -exports_file does not work either and 16675 # implicitly export all symbols. 16676 # This should be the same for all languages, so no per-tag cache variable. 16677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 16678$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 16679if test "${lt_cv_irix_exported_symbol+set}" = set; then : 16680 $as_echo_n "(cached) " >&6 16681else 16682 save_LDFLAGS="$LDFLAGS" 16683 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 16684 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16685/* end confdefs.h. */ 16686int foo (void) { return 0; } 16687_ACEOF 16688if ac_fn_c_try_link "$LINENO"; then : 16689 lt_cv_irix_exported_symbol=yes 16690else 16691 lt_cv_irix_exported_symbol=no 16692fi 16693rm -f core conftest.err conftest.$ac_objext \ 16694 conftest$ac_exeext conftest.$ac_ext 16695 LDFLAGS="$save_LDFLAGS" 16696fi 16697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 16698$as_echo "$lt_cv_irix_exported_symbol" >&6; } 16699 if test "$lt_cv_irix_exported_symbol" = yes; then 16700 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 16701 fi 16702 else 16703 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 16704 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' 16705 fi 16706 archive_cmds_need_lc='no' 16707 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 16708 hardcode_libdir_separator=: 16709 inherit_rpath=yes 16710 link_all_deplibs=yes 16711 ;; 16712 16713 netbsd*) 16714 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16715 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 16716 else 16717 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 16718 fi 16719 hardcode_libdir_flag_spec='-R$libdir' 16720 hardcode_direct=yes 16721 hardcode_shlibpath_var=no 16722 ;; 16723 16724 newsos6) 16725 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16726 hardcode_direct=yes 16727 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 16728 hardcode_libdir_separator=: 16729 hardcode_shlibpath_var=no 16730 ;; 16731 16732 *nto* | *qnx*) 16733 ;; 16734 16735 openbsd*) 16736 if test -f /usr/libexec/ld.so; then 16737 hardcode_direct=yes 16738 hardcode_shlibpath_var=no 16739 hardcode_direct_absolute=yes 16740 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16741 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16742 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 16743 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 16744 export_dynamic_flag_spec='${wl}-E' 16745 else 16746 case $host_os in 16747 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 16748 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16749 hardcode_libdir_flag_spec='-R$libdir' 16750 ;; 16751 *) 16752 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16753 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 16754 ;; 16755 esac 16756 fi 16757 else 16758 ld_shlibs=no 16759 fi 16760 ;; 16761 16762 os2*) 16763 hardcode_libdir_flag_spec='-L$libdir' 16764 hardcode_minus_L=yes 16765 allow_undefined_flag=unsupported 16766 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' 16767 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 16768 ;; 16769 16770 osf3*) 16771 if test "$GCC" = yes; then 16772 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 16773 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 16774 else 16775 allow_undefined_flag=' -expect_unresolved \*' 16776 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 16777 fi 16778 archive_cmds_need_lc='no' 16779 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 16780 hardcode_libdir_separator=: 16781 ;; 16782 16783 osf4* | osf5*) # as osf3* with the addition of -msym flag 16784 if test "$GCC" = yes; then 16785 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 16786 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 16787 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 16788 else 16789 allow_undefined_flag=' -expect_unresolved \*' 16790 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 16791 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 16792 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 16793 16794 # Both c and cxx compiler support -rpath directly 16795 hardcode_libdir_flag_spec='-rpath $libdir' 16796 fi 16797 archive_cmds_need_lc='no' 16798 hardcode_libdir_separator=: 16799 ;; 16800 16801 solaris*) 16802 no_undefined_flag=' -z defs' 16803 if test "$GCC" = yes; then 16804 wlarc='${wl}' 16805 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16806 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16807 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 16808 else 16809 case `$CC -V 2>&1` in 16810 *"Compilers 5.0"*) 16811 wlarc='' 16812 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 16813 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16814 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 16815 ;; 16816 *) 16817 wlarc='${wl}' 16818 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 16819 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16820 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 16821 ;; 16822 esac 16823 fi 16824 hardcode_libdir_flag_spec='-R$libdir' 16825 hardcode_shlibpath_var=no 16826 case $host_os in 16827 solaris2.[0-5] | solaris2.[0-5].*) ;; 16828 *) 16829 # The compiler driver will combine and reorder linker options, 16830 # but understands `-z linker_flag'. GCC discards it without `$wl', 16831 # but is careful enough not to reorder. 16832 # Supported since Solaris 2.6 (maybe 2.5.1?) 16833 if test "$GCC" = yes; then 16834 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 16835 else 16836 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 16837 fi 16838 ;; 16839 esac 16840 link_all_deplibs=yes 16841 ;; 16842 16843 sunos4*) 16844 if test "x$host_vendor" = xsequent; then 16845 # Use $CC to link under sequent, because it throws in some extra .o 16846 # files that make .init and .fini sections work. 16847 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 16848 else 16849 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 16850 fi 16851 hardcode_libdir_flag_spec='-L$libdir' 16852 hardcode_direct=yes 16853 hardcode_minus_L=yes 16854 hardcode_shlibpath_var=no 16855 ;; 16856 16857 sysv4) 16858 case $host_vendor in 16859 sni) 16860 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16861 hardcode_direct=yes # is this really true??? 16862 ;; 16863 siemens) 16864 ## LD is ld it makes a PLAMLIB 16865 ## CC just makes a GrossModule. 16866 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16867 reload_cmds='$CC -r -o $output$reload_objs' 16868 hardcode_direct=no 16869 ;; 16870 motorola) 16871 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16872 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 16873 ;; 16874 esac 16875 runpath_var='LD_RUN_PATH' 16876 hardcode_shlibpath_var=no 16877 ;; 16878 16879 sysv4.3*) 16880 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16881 hardcode_shlibpath_var=no 16882 export_dynamic_flag_spec='-Bexport' 16883 ;; 16884 16885 sysv4*MP*) 16886 if test -d /usr/nec; then 16887 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16888 hardcode_shlibpath_var=no 16889 runpath_var=LD_RUN_PATH 16890 hardcode_runpath_var=yes 16891 ld_shlibs=yes 16892 fi 16893 ;; 16894 16895 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 16896 no_undefined_flag='${wl}-z,text' 16897 archive_cmds_need_lc=no 16898 hardcode_shlibpath_var=no 16899 runpath_var='LD_RUN_PATH' 16900 16901 if test "$GCC" = yes; then 16902 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16903 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16904 else 16905 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16906 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16907 fi 16908 ;; 16909 16910 sysv5* | sco3.2v5* | sco5v6*) 16911 # Note: We can NOT use -z defs as we might desire, because we do not 16912 # link with -lc, and that would cause any symbols used from libc to 16913 # always be unresolved, which means just about no library would 16914 # ever link correctly. If we're not using GNU ld we use -z text 16915 # though, which does catch some bad symbols but isn't as heavy-handed 16916 # as -z defs. 16917 no_undefined_flag='${wl}-z,text' 16918 allow_undefined_flag='${wl}-z,nodefs' 16919 archive_cmds_need_lc=no 16920 hardcode_shlibpath_var=no 16921 hardcode_libdir_flag_spec='${wl}-R,$libdir' 16922 hardcode_libdir_separator=':' 16923 link_all_deplibs=yes 16924 export_dynamic_flag_spec='${wl}-Bexport' 16925 runpath_var='LD_RUN_PATH' 16926 16927 if test "$GCC" = yes; then 16928 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16929 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16930 else 16931 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16932 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16933 fi 16934 ;; 16935 16936 uts4*) 16937 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16938 hardcode_libdir_flag_spec='-L$libdir' 16939 hardcode_shlibpath_var=no 16940 ;; 16941 16942 *) 16943 ld_shlibs=no 16944 ;; 16945 esac 16946 16947 if test x$host_vendor = xsni; then 16948 case $host in 16949 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 16950 export_dynamic_flag_spec='${wl}-Blargedynsym' 16951 ;; 16952 esac 16953 fi 16954 fi 16955 16956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 16957$as_echo "$ld_shlibs" >&6; } 16958test "$ld_shlibs" = no && can_build_shared=no 16959 16960with_gnu_ld=$with_gnu_ld 16961 16962 16963 16964 16965 16966 16967 16968 16969 16970 16971 16972 16973 16974 16975 16976# 16977# Do we need to explicitly link libc? 16978# 16979case "x$archive_cmds_need_lc" in 16980x|xyes) 16981 # Assume -lc should be added 16982 archive_cmds_need_lc=yes 16983 16984 if test "$enable_shared" = yes && test "$GCC" = yes; then 16985 case $archive_cmds in 16986 *'~'*) 16987 # FIXME: we may have to deal with multi-command sequences. 16988 ;; 16989 '$CC '*) 16990 # Test whether the compiler implicitly links with -lc since on some 16991 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16992 # to ld, don't add -lc before -lgcc. 16993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 16994$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 16995if test "${lt_cv_archive_cmds_need_lc+set}" = set; then : 16996 $as_echo_n "(cached) " >&6 16997else 16998 $RM conftest* 16999 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17000 17001 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17002 (eval $ac_compile) 2>&5 17003 ac_status=$? 17004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17005 test $ac_status = 0; } 2>conftest.err; then 17006 soname=conftest 17007 lib=conftest 17008 libobjs=conftest.$ac_objext 17009 deplibs= 17010 wl=$lt_prog_compiler_wl 17011 pic_flag=$lt_prog_compiler_pic 17012 compiler_flags=-v 17013 linker_flags=-v 17014 verstring= 17015 output_objdir=. 17016 libname=conftest 17017 lt_save_allow_undefined_flag=$allow_undefined_flag 17018 allow_undefined_flag= 17019 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 17020 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 17021 ac_status=$? 17022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17023 test $ac_status = 0; } 17024 then 17025 lt_cv_archive_cmds_need_lc=no 17026 else 17027 lt_cv_archive_cmds_need_lc=yes 17028 fi 17029 allow_undefined_flag=$lt_save_allow_undefined_flag 17030 else 17031 cat conftest.err 1>&5 17032 fi 17033 $RM conftest* 17034 17035fi 17036{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 17037$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 17038 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 17039 ;; 17040 esac 17041 fi 17042 ;; 17043esac 17044 17045 17046 17047 17048 17049 17050 17051 17052 17053 17054 17055 17056 17057 17058 17059 17060 17061 17062 17063 17064 17065 17066 17067 17068 17069 17070 17071 17072 17073 17074 17075 17076 17077 17078 17079 17080 17081 17082 17083 17084 17085 17086 17087 17088 17089 17090 17091 17092 17093 17094 17095 17096 17097 17098 17099 17100 17101 17102 17103 17104 17105 17106 17107 17108 17109 17110 17111 17112 17113 17114 17115 17116 17117 17118 17119 17120 17121 17122 17123 17124 17125 17126 17127 17128 17129 17130 17131 17132 17133 17134 17135 17136 17137 17138 17139 17140 17141 17142 17143 17144 17145 17146 17147 17148 17149 17150 17151 17152 17153 17154 17155 17156 17157 17158 17159 17160 17161 17162 17163 17164 17165 17166 17167 17168 17169 17170 17171 17172 17173 17174 17175 17176 17177 17178 17179 17180 17181 17182 17183 17184 17185 17186 17187 17188 17189 17190 17191 17192 17193 17194 17195 17196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 17197$as_echo_n "checking dynamic linker characteristics... " >&6; } 17198 17199if test "$GCC" = yes; then 17200 case $host_os in 17201 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 17202 *) lt_awk_arg="/^libraries:/" ;; 17203 esac 17204 case $host_os in 17205 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 17206 *) lt_sed_strip_eq="s,=/,/,g" ;; 17207 esac 17208 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 17209 case $lt_search_path_spec in 17210 *\;*) 17211 # if the path contains ";" then we assume it to be the separator 17212 # otherwise default to the standard path separator (i.e. ":") - it is 17213 # assumed that no part of a normal pathname contains ";" but that should 17214 # okay in the real world where ";" in dirpaths is itself problematic. 17215 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 17216 ;; 17217 *) 17218 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 17219 ;; 17220 esac 17221 # Ok, now we have the path, separated by spaces, we can step through it 17222 # and add multilib dir if necessary. 17223 lt_tmp_lt_search_path_spec= 17224 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 17225 for lt_sys_path in $lt_search_path_spec; do 17226 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 17227 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 17228 else 17229 test -d "$lt_sys_path" && \ 17230 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 17231 fi 17232 done 17233 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 17234BEGIN {RS=" "; FS="/|\n";} { 17235 lt_foo=""; 17236 lt_count=0; 17237 for (lt_i = NF; lt_i > 0; lt_i--) { 17238 if ($lt_i != "" && $lt_i != ".") { 17239 if ($lt_i == "..") { 17240 lt_count++; 17241 } else { 17242 if (lt_count == 0) { 17243 lt_foo="/" $lt_i lt_foo; 17244 } else { 17245 lt_count--; 17246 } 17247 } 17248 } 17249 } 17250 if (lt_foo != "") { lt_freq[lt_foo]++; } 17251 if (lt_freq[lt_foo] == 1) { print lt_foo; } 17252}'` 17253 # AWK program above erroneously prepends '/' to C:/dos/paths 17254 # for these hosts. 17255 case $host_os in 17256 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 17257 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 17258 esac 17259 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 17260else 17261 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 17262fi 17263library_names_spec= 17264libname_spec='lib$name' 17265soname_spec= 17266shrext_cmds=".so" 17267postinstall_cmds= 17268postuninstall_cmds= 17269finish_cmds= 17270finish_eval= 17271shlibpath_var= 17272shlibpath_overrides_runpath=unknown 17273version_type=none 17274dynamic_linker="$host_os ld.so" 17275sys_lib_dlsearch_path_spec="/lib /usr/lib" 17276need_lib_prefix=unknown 17277hardcode_into_libs=no 17278 17279# when you set need_version to no, make sure it does not cause -set_version 17280# flags to be left without arguments 17281need_version=unknown 17282 17283case $host_os in 17284aix3*) 17285 version_type=linux # correct to gnu/linux during the next big refactor 17286 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 17287 shlibpath_var=LIBPATH 17288 17289 # AIX 3 has no versioning support, so we append a major version to the name. 17290 soname_spec='${libname}${release}${shared_ext}$major' 17291 ;; 17292 17293aix[4-9]*) 17294 version_type=linux # correct to gnu/linux during the next big refactor 17295 need_lib_prefix=no 17296 need_version=no 17297 hardcode_into_libs=yes 17298 if test "$host_cpu" = ia64; then 17299 # AIX 5 supports IA64 17300 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 17301 shlibpath_var=LD_LIBRARY_PATH 17302 else 17303 # With GCC up to 2.95.x, collect2 would create an import file 17304 # for dependence libraries. The import file would start with 17305 # the line `#! .'. This would cause the generated library to 17306 # depend on `.', always an invalid library. This was fixed in 17307 # development snapshots of GCC prior to 3.0. 17308 case $host_os in 17309 aix4 | aix4.[01] | aix4.[01].*) 17310 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17311 echo ' yes ' 17312 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 17313 : 17314 else 17315 can_build_shared=no 17316 fi 17317 ;; 17318 esac 17319 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 17320 # soname into executable. Probably we can add versioning support to 17321 # collect2, so additional links can be useful in future. 17322 if test "$aix_use_runtimelinking" = yes; then 17323 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17324 # instead of lib<name>.a to let people know that these are not 17325 # typical AIX shared libraries. 17326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17327 else 17328 # We preserve .a as extension for shared libraries through AIX4.2 17329 # and later when we are not doing run time linking. 17330 library_names_spec='${libname}${release}.a $libname.a' 17331 soname_spec='${libname}${release}${shared_ext}$major' 17332 fi 17333 shlibpath_var=LIBPATH 17334 fi 17335 ;; 17336 17337amigaos*) 17338 case $host_cpu in 17339 powerpc) 17340 # Since July 2007 AmigaOS4 officially supports .so libraries. 17341 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 17342 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17343 ;; 17344 m68k) 17345 library_names_spec='$libname.ixlibrary $libname.a' 17346 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17347 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 17348 ;; 17349 esac 17350 ;; 17351 17352beos*) 17353 library_names_spec='${libname}${shared_ext}' 17354 dynamic_linker="$host_os ld.so" 17355 shlibpath_var=LIBRARY_PATH 17356 ;; 17357 17358bsdi[45]*) 17359 version_type=linux # correct to gnu/linux during the next big refactor 17360 need_version=no 17361 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17362 soname_spec='${libname}${release}${shared_ext}$major' 17363 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17364 shlibpath_var=LD_LIBRARY_PATH 17365 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17366 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17367 # the default ld.so.conf also contains /usr/contrib/lib and 17368 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17369 # libtool to hard-code these into programs 17370 ;; 17371 17372cygwin* | mingw* | pw32* | cegcc*) 17373 version_type=windows 17374 shrext_cmds=".dll" 17375 need_version=no 17376 need_lib_prefix=no 17377 17378 case $GCC,$cc_basename in 17379 yes,*) 17380 # gcc 17381 library_names_spec='$libname.dll.a' 17382 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17383 postinstall_cmds='base_file=`basename \${file}`~ 17384 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 17385 dldir=$destdir/`dirname \$dlpath`~ 17386 test -d \$dldir || mkdir -p \$dldir~ 17387 $install_prog $dir/$dlname \$dldir/$dlname~ 17388 chmod a+x \$dldir/$dlname~ 17389 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17390 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17391 fi' 17392 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17393 dlpath=$dir/\$dldll~ 17394 $RM \$dlpath' 17395 shlibpath_overrides_runpath=yes 17396 17397 case $host_os in 17398 cygwin*) 17399 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17400 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17401 17402 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 17403 ;; 17404 mingw* | cegcc*) 17405 # MinGW DLLs use traditional 'lib' prefix 17406 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17407 ;; 17408 pw32*) 17409 # pw32 DLLs use 'pw' prefix rather than 'lib' 17410 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17411 ;; 17412 esac 17413 dynamic_linker='Win32 ld.exe' 17414 ;; 17415 17416 *,cl*) 17417 # Native MSVC 17418 libname_spec='$name' 17419 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 17420 library_names_spec='${libname}.dll.lib' 17421 17422 case $build_os in 17423 mingw*) 17424 sys_lib_search_path_spec= 17425 lt_save_ifs=$IFS 17426 IFS=';' 17427 for lt_path in $LIB 17428 do 17429 IFS=$lt_save_ifs 17430 # Let DOS variable expansion print the short 8.3 style file name. 17431 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 17432 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 17433 done 17434 IFS=$lt_save_ifs 17435 # Convert to MSYS style. 17436 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 17437 ;; 17438 cygwin*) 17439 # Convert to unix form, then to dos form, then back to unix form 17440 # but this time dos style (no spaces!) so that the unix form looks 17441 # like /cygdrive/c/PROGRA~1:/cygdr... 17442 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 17443 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 17444 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17445 ;; 17446 *) 17447 sys_lib_search_path_spec="$LIB" 17448 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 17449 # It is most probably a Windows format PATH. 17450 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17451 else 17452 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17453 fi 17454 # FIXME: find the short name or the path components, as spaces are 17455 # common. (e.g. "Program Files" -> "PROGRA~1") 17456 ;; 17457 esac 17458 17459 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17460 postinstall_cmds='base_file=`basename \${file}`~ 17461 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 17462 dldir=$destdir/`dirname \$dlpath`~ 17463 test -d \$dldir || mkdir -p \$dldir~ 17464 $install_prog $dir/$dlname \$dldir/$dlname' 17465 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17466 dlpath=$dir/\$dldll~ 17467 $RM \$dlpath' 17468 shlibpath_overrides_runpath=yes 17469 dynamic_linker='Win32 link.exe' 17470 ;; 17471 17472 *) 17473 # Assume MSVC wrapper 17474 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 17475 dynamic_linker='Win32 ld.exe' 17476 ;; 17477 esac 17478 # FIXME: first we should search . and the directory the executable is in 17479 shlibpath_var=PATH 17480 ;; 17481 17482darwin* | rhapsody*) 17483 dynamic_linker="$host_os dyld" 17484 version_type=darwin 17485 need_lib_prefix=no 17486 need_version=no 17487 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 17488 soname_spec='${libname}${release}${major}$shared_ext' 17489 shlibpath_overrides_runpath=yes 17490 shlibpath_var=DYLD_LIBRARY_PATH 17491 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 17492 17493 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 17494 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 17495 ;; 17496 17497dgux*) 17498 version_type=linux # correct to gnu/linux during the next big refactor 17499 need_lib_prefix=no 17500 need_version=no 17501 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 17502 soname_spec='${libname}${release}${shared_ext}$major' 17503 shlibpath_var=LD_LIBRARY_PATH 17504 ;; 17505 17506freebsd* | dragonfly*) 17507 # DragonFly does not have aout. When/if they implement a new 17508 # versioning mechanism, adjust this. 17509 if test -x /usr/bin/objformat; then 17510 objformat=`/usr/bin/objformat` 17511 else 17512 case $host_os in 17513 freebsd[23].*) objformat=aout ;; 17514 *) objformat=elf ;; 17515 esac 17516 fi 17517 version_type=freebsd-$objformat 17518 case $version_type in 17519 freebsd-elf*) 17520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17521 need_version=no 17522 need_lib_prefix=no 17523 ;; 17524 freebsd-*) 17525 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 17526 need_version=yes 17527 ;; 17528 esac 17529 shlibpath_var=LD_LIBRARY_PATH 17530 case $host_os in 17531 freebsd2.*) 17532 shlibpath_overrides_runpath=yes 17533 ;; 17534 freebsd3.[01]* | freebsdelf3.[01]*) 17535 shlibpath_overrides_runpath=yes 17536 hardcode_into_libs=yes 17537 ;; 17538 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 17539 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 17540 shlibpath_overrides_runpath=no 17541 hardcode_into_libs=yes 17542 ;; 17543 *) # from 4.6 on, and DragonFly 17544 shlibpath_overrides_runpath=yes 17545 hardcode_into_libs=yes 17546 ;; 17547 esac 17548 ;; 17549 17550gnu*) 17551 version_type=linux # correct to gnu/linux during the next big refactor 17552 need_lib_prefix=no 17553 need_version=no 17554 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17555 soname_spec='${libname}${release}${shared_ext}$major' 17556 shlibpath_var=LD_LIBRARY_PATH 17557 shlibpath_overrides_runpath=no 17558 hardcode_into_libs=yes 17559 ;; 17560 17561haiku*) 17562 version_type=linux # correct to gnu/linux during the next big refactor 17563 need_lib_prefix=no 17564 need_version=no 17565 dynamic_linker="$host_os runtime_loader" 17566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 17567 soname_spec='${libname}${release}${shared_ext}$major' 17568 shlibpath_var=LIBRARY_PATH 17569 shlibpath_overrides_runpath=yes 17570 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 17571 hardcode_into_libs=yes 17572 ;; 17573 17574hpux9* | hpux10* | hpux11*) 17575 # Give a soname corresponding to the major version so that dld.sl refuses to 17576 # link against other versions. 17577 version_type=sunos 17578 need_lib_prefix=no 17579 need_version=no 17580 case $host_cpu in 17581 ia64*) 17582 shrext_cmds='.so' 17583 hardcode_into_libs=yes 17584 dynamic_linker="$host_os dld.so" 17585 shlibpath_var=LD_LIBRARY_PATH 17586 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17587 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17588 soname_spec='${libname}${release}${shared_ext}$major' 17589 if test "X$HPUX_IA64_MODE" = X32; then 17590 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 17591 else 17592 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 17593 fi 17594 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17595 ;; 17596 hppa*64*) 17597 shrext_cmds='.sl' 17598 hardcode_into_libs=yes 17599 dynamic_linker="$host_os dld.sl" 17600 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 17601 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 17602 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17603 soname_spec='${libname}${release}${shared_ext}$major' 17604 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 17605 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 17606 ;; 17607 *) 17608 shrext_cmds='.sl' 17609 dynamic_linker="$host_os dld.sl" 17610 shlibpath_var=SHLIB_PATH 17611 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 17612 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17613 soname_spec='${libname}${release}${shared_ext}$major' 17614 ;; 17615 esac 17616 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 17617 postinstall_cmds='chmod 555 $lib' 17618 # or fails outright, so override atomically: 17619 install_override_mode=555 17620 ;; 17621 17622interix[3-9]*) 17623 version_type=linux # correct to gnu/linux during the next big refactor 17624 need_lib_prefix=no 17625 need_version=no 17626 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17627 soname_spec='${libname}${release}${shared_ext}$major' 17628 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 17629 shlibpath_var=LD_LIBRARY_PATH 17630 shlibpath_overrides_runpath=no 17631 hardcode_into_libs=yes 17632 ;; 17633 17634irix5* | irix6* | nonstopux*) 17635 case $host_os in 17636 nonstopux*) version_type=nonstopux ;; 17637 *) 17638 if test "$lt_cv_prog_gnu_ld" = yes; then 17639 version_type=linux # correct to gnu/linux during the next big refactor 17640 else 17641 version_type=irix 17642 fi ;; 17643 esac 17644 need_lib_prefix=no 17645 need_version=no 17646 soname_spec='${libname}${release}${shared_ext}$major' 17647 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 17648 case $host_os in 17649 irix5* | nonstopux*) 17650 libsuff= shlibsuff= 17651 ;; 17652 *) 17653 case $LD in # libtool.m4 will add one of these switches to LD 17654 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 17655 libsuff= shlibsuff= libmagic=32-bit;; 17656 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 17657 libsuff=32 shlibsuff=N32 libmagic=N32;; 17658 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 17659 libsuff=64 shlibsuff=64 libmagic=64-bit;; 17660 *) libsuff= shlibsuff= libmagic=never-match;; 17661 esac 17662 ;; 17663 esac 17664 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 17665 shlibpath_overrides_runpath=no 17666 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 17667 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 17668 hardcode_into_libs=yes 17669 ;; 17670 17671# No shared lib support for Linux oldld, aout, or coff. 17672linux*oldld* | linux*aout* | linux*coff*) 17673 dynamic_linker=no 17674 ;; 17675 17676# This must be glibc/ELF. 17677linux* | k*bsd*-gnu | kopensolaris*-gnu) 17678 version_type=linux # correct to gnu/linux during the next big refactor 17679 need_lib_prefix=no 17680 need_version=no 17681 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17682 soname_spec='${libname}${release}${shared_ext}$major' 17683 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 17684 shlibpath_var=LD_LIBRARY_PATH 17685 shlibpath_overrides_runpath=no 17686 17687 # Some binutils ld are patched to set DT_RUNPATH 17688 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : 17689 $as_echo_n "(cached) " >&6 17690else 17691 lt_cv_shlibpath_overrides_runpath=no 17692 save_LDFLAGS=$LDFLAGS 17693 save_libdir=$libdir 17694 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 17695 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 17696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17697/* end confdefs.h. */ 17698 17699int 17700main () 17701{ 17702 17703 ; 17704 return 0; 17705} 17706_ACEOF 17707if ac_fn_c_try_link "$LINENO"; then : 17708 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 17709 lt_cv_shlibpath_overrides_runpath=yes 17710fi 17711fi 17712rm -f core conftest.err conftest.$ac_objext \ 17713 conftest$ac_exeext conftest.$ac_ext 17714 LDFLAGS=$save_LDFLAGS 17715 libdir=$save_libdir 17716 17717fi 17718 17719 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 17720 17721 # This implies no fast_install, which is unacceptable. 17722 # Some rework will be needed to allow for fast_install 17723 # before this can be enabled. 17724 hardcode_into_libs=yes 17725 17726 # Append ld.so.conf contents to the search path 17727 if test -f /etc/ld.so.conf; then 17728 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 17729 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 17730 fi 17731 17732 # We used to test for /lib/ld.so.1 and disable shared libraries on 17733 # powerpc, because MkLinux only supported shared libraries with the 17734 # GNU dynamic linker. Since this was broken with cross compilers, 17735 # most powerpc-linux boxes support dynamic linking these days and 17736 # people can always --disable-shared, the test was removed, and we 17737 # assume the GNU/Linux dynamic linker is in use. 17738 dynamic_linker='GNU/Linux ld.so' 17739 ;; 17740 17741netbsd*) 17742 version_type=sunos 17743 need_lib_prefix=no 17744 need_version=no 17745 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 17746 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17747 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17748 dynamic_linker='NetBSD (a.out) ld.so' 17749 else 17750 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 17751 soname_spec='${libname}${release}${shared_ext}$major' 17752 dynamic_linker='NetBSD ld.elf_so' 17753 fi 17754 shlibpath_var=LD_LIBRARY_PATH 17755 shlibpath_overrides_runpath=yes 17756 hardcode_into_libs=yes 17757 ;; 17758 17759newsos6) 17760 version_type=linux # correct to gnu/linux during the next big refactor 17761 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17762 shlibpath_var=LD_LIBRARY_PATH 17763 shlibpath_overrides_runpath=yes 17764 ;; 17765 17766*nto* | *qnx*) 17767 version_type=qnx 17768 need_lib_prefix=no 17769 need_version=no 17770 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17771 soname_spec='${libname}${release}${shared_ext}$major' 17772 shlibpath_var=LD_LIBRARY_PATH 17773 shlibpath_overrides_runpath=no 17774 hardcode_into_libs=yes 17775 dynamic_linker='ldqnx.so' 17776 ;; 17777 17778openbsd*) 17779 version_type=sunos 17780 sys_lib_dlsearch_path_spec="/usr/lib" 17781 need_lib_prefix=no 17782 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 17783 case $host_os in 17784 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 17785 *) need_version=no ;; 17786 esac 17787 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17788 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 17789 shlibpath_var=LD_LIBRARY_PATH 17790 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 17791 case $host_os in 17792 openbsd2.[89] | openbsd2.[89].*) 17793 shlibpath_overrides_runpath=no 17794 ;; 17795 *) 17796 shlibpath_overrides_runpath=yes 17797 ;; 17798 esac 17799 else 17800 shlibpath_overrides_runpath=yes 17801 fi 17802 ;; 17803 17804os2*) 17805 libname_spec='$name' 17806 shrext_cmds=".dll" 17807 need_lib_prefix=no 17808 library_names_spec='$libname${shared_ext} $libname.a' 17809 dynamic_linker='OS/2 ld.exe' 17810 shlibpath_var=LIBPATH 17811 ;; 17812 17813osf3* | osf4* | osf5*) 17814 version_type=osf 17815 need_lib_prefix=no 17816 need_version=no 17817 soname_spec='${libname}${release}${shared_ext}$major' 17818 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17819 shlibpath_var=LD_LIBRARY_PATH 17820 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 17821 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 17822 ;; 17823 17824rdos*) 17825 dynamic_linker=no 17826 ;; 17827 17828solaris*) 17829 version_type=linux # correct to gnu/linux during the next big refactor 17830 need_lib_prefix=no 17831 need_version=no 17832 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17833 soname_spec='${libname}${release}${shared_ext}$major' 17834 shlibpath_var=LD_LIBRARY_PATH 17835 shlibpath_overrides_runpath=yes 17836 hardcode_into_libs=yes 17837 # ldd complains unless libraries are executable 17838 postinstall_cmds='chmod +x $lib' 17839 ;; 17840 17841sunos4*) 17842 version_type=sunos 17843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 17844 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 17845 shlibpath_var=LD_LIBRARY_PATH 17846 shlibpath_overrides_runpath=yes 17847 if test "$with_gnu_ld" = yes; then 17848 need_lib_prefix=no 17849 fi 17850 need_version=yes 17851 ;; 17852 17853sysv4 | sysv4.3*) 17854 version_type=linux # correct to gnu/linux during the next big refactor 17855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17856 soname_spec='${libname}${release}${shared_ext}$major' 17857 shlibpath_var=LD_LIBRARY_PATH 17858 case $host_vendor in 17859 sni) 17860 shlibpath_overrides_runpath=no 17861 need_lib_prefix=no 17862 runpath_var=LD_RUN_PATH 17863 ;; 17864 siemens) 17865 need_lib_prefix=no 17866 ;; 17867 motorola) 17868 need_lib_prefix=no 17869 need_version=no 17870 shlibpath_overrides_runpath=no 17871 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 17872 ;; 17873 esac 17874 ;; 17875 17876sysv4*MP*) 17877 if test -d /usr/nec ;then 17878 version_type=linux # correct to gnu/linux during the next big refactor 17879 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 17880 soname_spec='$libname${shared_ext}.$major' 17881 shlibpath_var=LD_LIBRARY_PATH 17882 fi 17883 ;; 17884 17885sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 17886 version_type=freebsd-elf 17887 need_lib_prefix=no 17888 need_version=no 17889 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 17890 soname_spec='${libname}${release}${shared_ext}$major' 17891 shlibpath_var=LD_LIBRARY_PATH 17892 shlibpath_overrides_runpath=yes 17893 hardcode_into_libs=yes 17894 if test "$with_gnu_ld" = yes; then 17895 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 17896 else 17897 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 17898 case $host_os in 17899 sco3.2v5*) 17900 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 17901 ;; 17902 esac 17903 fi 17904 sys_lib_dlsearch_path_spec='/usr/lib' 17905 ;; 17906 17907tpf*) 17908 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 17909 version_type=linux # correct to gnu/linux during the next big refactor 17910 need_lib_prefix=no 17911 need_version=no 17912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17913 shlibpath_var=LD_LIBRARY_PATH 17914 shlibpath_overrides_runpath=no 17915 hardcode_into_libs=yes 17916 ;; 17917 17918uts4*) 17919 version_type=linux # correct to gnu/linux during the next big refactor 17920 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 17921 soname_spec='${libname}${release}${shared_ext}$major' 17922 shlibpath_var=LD_LIBRARY_PATH 17923 ;; 17924 17925*) 17926 dynamic_linker=no 17927 ;; 17928esac 17929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 17930$as_echo "$dynamic_linker" >&6; } 17931test "$dynamic_linker" = no && can_build_shared=no 17932 17933variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 17934if test "$GCC" = yes; then 17935 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 17936fi 17937 17938if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 17939 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 17940fi 17941if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 17942 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 17943fi 17944 17945 17946 17947 17948 17949 17950 17951 17952 17953 17954 17955 17956 17957 17958 17959 17960 17961 17962 17963 17964 17965 17966 17967 17968 17969 17970 17971 17972 17973 17974 17975 17976 17977 17978 17979 17980 17981 17982 17983 17984 17985 17986 17987 17988 17989 17990 17991 17992 17993 17994 17995 17996 17997 17998 17999 18000 18001 18002 18003 18004 18005 18006 18007 18008 18009 18010 18011 18012 18013 18014 18015 18016 18017 18018 18019 18020 18021 18022 18023 18024 18025 18026 18027 18028 18029 18030 18031 18032 18033 18034 18035 18036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 18037$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 18038hardcode_action= 18039if test -n "$hardcode_libdir_flag_spec" || 18040 test -n "$runpath_var" || 18041 test "X$hardcode_automatic" = "Xyes" ; then 18042 18043 # We can hardcode non-existent directories. 18044 if test "$hardcode_direct" != no && 18045 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18046 # have to relink, otherwise we might link with an installed library 18047 # when we should be linking with a yet-to-be-installed one 18048 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 18049 test "$hardcode_minus_L" != no; then 18050 # Linking always hardcodes the temporary library directory. 18051 hardcode_action=relink 18052 else 18053 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18054 hardcode_action=immediate 18055 fi 18056else 18057 # We cannot hardcode anything, or else we can only hardcode existing 18058 # directories. 18059 hardcode_action=unsupported 18060fi 18061{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 18062$as_echo "$hardcode_action" >&6; } 18063 18064if test "$hardcode_action" = relink || 18065 test "$inherit_rpath" = yes; then 18066 # Fast installation is not supported 18067 enable_fast_install=no 18068elif test "$shlibpath_overrides_runpath" = yes || 18069 test "$enable_shared" = no; then 18070 # Fast installation is not necessary 18071 enable_fast_install=needless 18072fi 18073 18074 18075 18076 18077 18078 18079 if test "x$enable_dlopen" != xyes; then 18080 enable_dlopen=unknown 18081 enable_dlopen_self=unknown 18082 enable_dlopen_self_static=unknown 18083else 18084 lt_cv_dlopen=no 18085 lt_cv_dlopen_libs= 18086 18087 case $host_os in 18088 beos*) 18089 lt_cv_dlopen="load_add_on" 18090 lt_cv_dlopen_libs= 18091 lt_cv_dlopen_self=yes 18092 ;; 18093 18094 mingw* | pw32* | cegcc*) 18095 lt_cv_dlopen="LoadLibrary" 18096 lt_cv_dlopen_libs= 18097 ;; 18098 18099 cygwin*) 18100 lt_cv_dlopen="dlopen" 18101 lt_cv_dlopen_libs= 18102 ;; 18103 18104 darwin*) 18105 # if libdl is installed we need to link against it 18106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 18107$as_echo_n "checking for dlopen in -ldl... " >&6; } 18108if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 18109 $as_echo_n "(cached) " >&6 18110else 18111 ac_check_lib_save_LIBS=$LIBS 18112LIBS="-ldl $LIBS" 18113cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18114/* end confdefs.h. */ 18115 18116/* Override any GCC internal prototype to avoid an error. 18117 Use char because int might match the return type of a GCC 18118 builtin and then its argument prototype would still apply. */ 18119#ifdef __cplusplus 18120extern "C" 18121#endif 18122char dlopen (); 18123int 18124main () 18125{ 18126return dlopen (); 18127 ; 18128 return 0; 18129} 18130_ACEOF 18131if ac_fn_c_try_link "$LINENO"; then : 18132 ac_cv_lib_dl_dlopen=yes 18133else 18134 ac_cv_lib_dl_dlopen=no 18135fi 18136rm -f core conftest.err conftest.$ac_objext \ 18137 conftest$ac_exeext conftest.$ac_ext 18138LIBS=$ac_check_lib_save_LIBS 18139fi 18140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 18141$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 18142if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 18143 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 18144else 18145 18146 lt_cv_dlopen="dyld" 18147 lt_cv_dlopen_libs= 18148 lt_cv_dlopen_self=yes 18149 18150fi 18151 18152 ;; 18153 18154 *) 18155 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 18156if test "x$ac_cv_func_shl_load" = x""yes; then : 18157 lt_cv_dlopen="shl_load" 18158else 18159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 18160$as_echo_n "checking for shl_load in -ldld... " >&6; } 18161if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 18162 $as_echo_n "(cached) " >&6 18163else 18164 ac_check_lib_save_LIBS=$LIBS 18165LIBS="-ldld $LIBS" 18166cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18167/* end confdefs.h. */ 18168 18169/* Override any GCC internal prototype to avoid an error. 18170 Use char because int might match the return type of a GCC 18171 builtin and then its argument prototype would still apply. */ 18172#ifdef __cplusplus 18173extern "C" 18174#endif 18175char shl_load (); 18176int 18177main () 18178{ 18179return shl_load (); 18180 ; 18181 return 0; 18182} 18183_ACEOF 18184if ac_fn_c_try_link "$LINENO"; then : 18185 ac_cv_lib_dld_shl_load=yes 18186else 18187 ac_cv_lib_dld_shl_load=no 18188fi 18189rm -f core conftest.err conftest.$ac_objext \ 18190 conftest$ac_exeext conftest.$ac_ext 18191LIBS=$ac_check_lib_save_LIBS 18192fi 18193{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 18194$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 18195if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 18196 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 18197else 18198 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 18199if test "x$ac_cv_func_dlopen" = x""yes; then : 18200 lt_cv_dlopen="dlopen" 18201else 18202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 18203$as_echo_n "checking for dlopen in -ldl... " >&6; } 18204if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 18205 $as_echo_n "(cached) " >&6 18206else 18207 ac_check_lib_save_LIBS=$LIBS 18208LIBS="-ldl $LIBS" 18209cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18210/* end confdefs.h. */ 18211 18212/* Override any GCC internal prototype to avoid an error. 18213 Use char because int might match the return type of a GCC 18214 builtin and then its argument prototype would still apply. */ 18215#ifdef __cplusplus 18216extern "C" 18217#endif 18218char dlopen (); 18219int 18220main () 18221{ 18222return dlopen (); 18223 ; 18224 return 0; 18225} 18226_ACEOF 18227if ac_fn_c_try_link "$LINENO"; then : 18228 ac_cv_lib_dl_dlopen=yes 18229else 18230 ac_cv_lib_dl_dlopen=no 18231fi 18232rm -f core conftest.err conftest.$ac_objext \ 18233 conftest$ac_exeext conftest.$ac_ext 18234LIBS=$ac_check_lib_save_LIBS 18235fi 18236{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 18237$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 18238if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 18239 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 18240else 18241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 18242$as_echo_n "checking for dlopen in -lsvld... " >&6; } 18243if test "${ac_cv_lib_svld_dlopen+set}" = set; then : 18244 $as_echo_n "(cached) " >&6 18245else 18246 ac_check_lib_save_LIBS=$LIBS 18247LIBS="-lsvld $LIBS" 18248cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18249/* end confdefs.h. */ 18250 18251/* Override any GCC internal prototype to avoid an error. 18252 Use char because int might match the return type of a GCC 18253 builtin and then its argument prototype would still apply. */ 18254#ifdef __cplusplus 18255extern "C" 18256#endif 18257char dlopen (); 18258int 18259main () 18260{ 18261return dlopen (); 18262 ; 18263 return 0; 18264} 18265_ACEOF 18266if ac_fn_c_try_link "$LINENO"; then : 18267 ac_cv_lib_svld_dlopen=yes 18268else 18269 ac_cv_lib_svld_dlopen=no 18270fi 18271rm -f core conftest.err conftest.$ac_objext \ 18272 conftest$ac_exeext conftest.$ac_ext 18273LIBS=$ac_check_lib_save_LIBS 18274fi 18275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 18276$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 18277if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 18278 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 18279else 18280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 18281$as_echo_n "checking for dld_link in -ldld... " >&6; } 18282if test "${ac_cv_lib_dld_dld_link+set}" = set; then : 18283 $as_echo_n "(cached) " >&6 18284else 18285 ac_check_lib_save_LIBS=$LIBS 18286LIBS="-ldld $LIBS" 18287cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18288/* end confdefs.h. */ 18289 18290/* Override any GCC internal prototype to avoid an error. 18291 Use char because int might match the return type of a GCC 18292 builtin and then its argument prototype would still apply. */ 18293#ifdef __cplusplus 18294extern "C" 18295#endif 18296char dld_link (); 18297int 18298main () 18299{ 18300return dld_link (); 18301 ; 18302 return 0; 18303} 18304_ACEOF 18305if ac_fn_c_try_link "$LINENO"; then : 18306 ac_cv_lib_dld_dld_link=yes 18307else 18308 ac_cv_lib_dld_dld_link=no 18309fi 18310rm -f core conftest.err conftest.$ac_objext \ 18311 conftest$ac_exeext conftest.$ac_ext 18312LIBS=$ac_check_lib_save_LIBS 18313fi 18314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 18315$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 18316if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 18317 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 18318fi 18319 18320 18321fi 18322 18323 18324fi 18325 18326 18327fi 18328 18329 18330fi 18331 18332 18333fi 18334 18335 ;; 18336 esac 18337 18338 if test "x$lt_cv_dlopen" != xno; then 18339 enable_dlopen=yes 18340 else 18341 enable_dlopen=no 18342 fi 18343 18344 case $lt_cv_dlopen in 18345 dlopen) 18346 save_CPPFLAGS="$CPPFLAGS" 18347 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 18348 18349 save_LDFLAGS="$LDFLAGS" 18350 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 18351 18352 save_LIBS="$LIBS" 18353 LIBS="$lt_cv_dlopen_libs $LIBS" 18354 18355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 18356$as_echo_n "checking whether a program can dlopen itself... " >&6; } 18357if test "${lt_cv_dlopen_self+set}" = set; then : 18358 $as_echo_n "(cached) " >&6 18359else 18360 if test "$cross_compiling" = yes; then : 18361 lt_cv_dlopen_self=cross 18362else 18363 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18364 lt_status=$lt_dlunknown 18365 cat > conftest.$ac_ext <<_LT_EOF 18366#line $LINENO "configure" 18367#include "confdefs.h" 18368 18369#if HAVE_DLFCN_H 18370#include <dlfcn.h> 18371#endif 18372 18373#include <stdio.h> 18374 18375#ifdef RTLD_GLOBAL 18376# define LT_DLGLOBAL RTLD_GLOBAL 18377#else 18378# ifdef DL_GLOBAL 18379# define LT_DLGLOBAL DL_GLOBAL 18380# else 18381# define LT_DLGLOBAL 0 18382# endif 18383#endif 18384 18385/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18386 find out it does not work in some platform. */ 18387#ifndef LT_DLLAZY_OR_NOW 18388# ifdef RTLD_LAZY 18389# define LT_DLLAZY_OR_NOW RTLD_LAZY 18390# else 18391# ifdef DL_LAZY 18392# define LT_DLLAZY_OR_NOW DL_LAZY 18393# else 18394# ifdef RTLD_NOW 18395# define LT_DLLAZY_OR_NOW RTLD_NOW 18396# else 18397# ifdef DL_NOW 18398# define LT_DLLAZY_OR_NOW DL_NOW 18399# else 18400# define LT_DLLAZY_OR_NOW 0 18401# endif 18402# endif 18403# endif 18404# endif 18405#endif 18406 18407/* When -fvisbility=hidden is used, assume the code has been annotated 18408 correspondingly for the symbols needed. */ 18409#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 18410int fnord () __attribute__((visibility("default"))); 18411#endif 18412 18413int fnord () { return 42; } 18414int main () 18415{ 18416 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18417 int status = $lt_dlunknown; 18418 18419 if (self) 18420 { 18421 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18422 else 18423 { 18424 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18425 else puts (dlerror ()); 18426 } 18427 /* dlclose (self); */ 18428 } 18429 else 18430 puts (dlerror ()); 18431 18432 return status; 18433} 18434_LT_EOF 18435 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 18436 (eval $ac_link) 2>&5 18437 ac_status=$? 18438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18439 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 18440 (./conftest; exit; ) >&5 2>/dev/null 18441 lt_status=$? 18442 case x$lt_status in 18443 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 18444 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 18445 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 18446 esac 18447 else : 18448 # compilation failed 18449 lt_cv_dlopen_self=no 18450 fi 18451fi 18452rm -fr conftest* 18453 18454 18455fi 18456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 18457$as_echo "$lt_cv_dlopen_self" >&6; } 18458 18459 if test "x$lt_cv_dlopen_self" = xyes; then 18460 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 18461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 18462$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 18463if test "${lt_cv_dlopen_self_static+set}" = set; then : 18464 $as_echo_n "(cached) " >&6 18465else 18466 if test "$cross_compiling" = yes; then : 18467 lt_cv_dlopen_self_static=cross 18468else 18469 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 18470 lt_status=$lt_dlunknown 18471 cat > conftest.$ac_ext <<_LT_EOF 18472#line $LINENO "configure" 18473#include "confdefs.h" 18474 18475#if HAVE_DLFCN_H 18476#include <dlfcn.h> 18477#endif 18478 18479#include <stdio.h> 18480 18481#ifdef RTLD_GLOBAL 18482# define LT_DLGLOBAL RTLD_GLOBAL 18483#else 18484# ifdef DL_GLOBAL 18485# define LT_DLGLOBAL DL_GLOBAL 18486# else 18487# define LT_DLGLOBAL 0 18488# endif 18489#endif 18490 18491/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 18492 find out it does not work in some platform. */ 18493#ifndef LT_DLLAZY_OR_NOW 18494# ifdef RTLD_LAZY 18495# define LT_DLLAZY_OR_NOW RTLD_LAZY 18496# else 18497# ifdef DL_LAZY 18498# define LT_DLLAZY_OR_NOW DL_LAZY 18499# else 18500# ifdef RTLD_NOW 18501# define LT_DLLAZY_OR_NOW RTLD_NOW 18502# else 18503# ifdef DL_NOW 18504# define LT_DLLAZY_OR_NOW DL_NOW 18505# else 18506# define LT_DLLAZY_OR_NOW 0 18507# endif 18508# endif 18509# endif 18510# endif 18511#endif 18512 18513/* When -fvisbility=hidden is used, assume the code has been annotated 18514 correspondingly for the symbols needed. */ 18515#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 18516int fnord () __attribute__((visibility("default"))); 18517#endif 18518 18519int fnord () { return 42; } 18520int main () 18521{ 18522 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 18523 int status = $lt_dlunknown; 18524 18525 if (self) 18526 { 18527 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 18528 else 18529 { 18530 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 18531 else puts (dlerror ()); 18532 } 18533 /* dlclose (self); */ 18534 } 18535 else 18536 puts (dlerror ()); 18537 18538 return status; 18539} 18540_LT_EOF 18541 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 18542 (eval $ac_link) 2>&5 18543 ac_status=$? 18544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 18545 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 18546 (./conftest; exit; ) >&5 2>/dev/null 18547 lt_status=$? 18548 case x$lt_status in 18549 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 18550 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 18551 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 18552 esac 18553 else : 18554 # compilation failed 18555 lt_cv_dlopen_self_static=no 18556 fi 18557fi 18558rm -fr conftest* 18559 18560 18561fi 18562{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 18563$as_echo "$lt_cv_dlopen_self_static" >&6; } 18564 fi 18565 18566 CPPFLAGS="$save_CPPFLAGS" 18567 LDFLAGS="$save_LDFLAGS" 18568 LIBS="$save_LIBS" 18569 ;; 18570 esac 18571 18572 case $lt_cv_dlopen_self in 18573 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 18574 *) enable_dlopen_self=unknown ;; 18575 esac 18576 18577 case $lt_cv_dlopen_self_static in 18578 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 18579 *) enable_dlopen_self_static=unknown ;; 18580 esac 18581fi 18582 18583 18584 18585 18586 18587 18588 18589 18590 18591 18592 18593 18594 18595 18596 18597 18598 18599striplib= 18600old_striplib= 18601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 18602$as_echo_n "checking whether stripping libraries is possible... " >&6; } 18603if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 18604 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 18605 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 18606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18607$as_echo "yes" >&6; } 18608else 18609# FIXME - insert some real tests, host_os isn't really good enough 18610 case $host_os in 18611 darwin*) 18612 if test -n "$STRIP" ; then 18613 striplib="$STRIP -x" 18614 old_striplib="$STRIP -S" 18615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18616$as_echo "yes" >&6; } 18617 else 18618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18619$as_echo "no" >&6; } 18620 fi 18621 ;; 18622 *) 18623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18624$as_echo "no" >&6; } 18625 ;; 18626 esac 18627fi 18628 18629 18630 18631 18632 18633 18634 18635 18636 18637 18638 18639 18640 # Report which library types will actually be built 18641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 18642$as_echo_n "checking if libtool supports shared libraries... " >&6; } 18643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 18644$as_echo "$can_build_shared" >&6; } 18645 18646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 18647$as_echo_n "checking whether to build shared libraries... " >&6; } 18648 test "$can_build_shared" = "no" && enable_shared=no 18649 18650 # On AIX, shared libraries and static libraries use the same namespace, and 18651 # are all built from PIC. 18652 case $host_os in 18653 aix3*) 18654 test "$enable_shared" = yes && enable_static=no 18655 if test -n "$RANLIB"; then 18656 archive_cmds="$archive_cmds~\$RANLIB \$lib" 18657 postinstall_cmds='$RANLIB $lib' 18658 fi 18659 ;; 18660 18661 aix[4-9]*) 18662 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 18663 test "$enable_shared" = yes && enable_static=no 18664 fi 18665 ;; 18666 esac 18667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 18668$as_echo "$enable_shared" >&6; } 18669 18670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 18671$as_echo_n "checking whether to build static libraries... " >&6; } 18672 # Make sure either enable_shared or enable_static is yes. 18673 test "$enable_shared" = yes || enable_static=yes 18674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 18675$as_echo "$enable_static" >&6; } 18676 18677 18678 18679 18680fi 18681ac_ext=c 18682ac_cpp='$CPP $CPPFLAGS' 18683ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18684ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18685ac_compiler_gnu=$ac_cv_c_compiler_gnu 18686 18687CC="$lt_save_CC" 18688 18689 if test -n "$CXX" && ( test "X$CXX" != "Xno" && 18690 ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) || 18691 (test "X$CXX" != "Xg++"))) ; then 18692 ac_ext=cpp 18693ac_cpp='$CXXCPP $CPPFLAGS' 18694ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18695ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18696ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18697{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 18698$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 18699if test -z "$CXXCPP"; then 18700 if test "${ac_cv_prog_CXXCPP+set}" = set; then : 18701 $as_echo_n "(cached) " >&6 18702else 18703 # Double quotes because CXXCPP needs to be expanded 18704 for CXXCPP in "$CXX -E" "/lib/cpp" 18705 do 18706 ac_preproc_ok=false 18707for ac_cxx_preproc_warn_flag in '' yes 18708do 18709 # Use a header file that comes with gcc, so configuring glibc 18710 # with a fresh cross-compiler works. 18711 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18712 # <limits.h> exists even on freestanding compilers. 18713 # On the NeXT, cc -E runs the code through the compiler's parser, 18714 # not just through cpp. "Syntax error" is here to catch this case. 18715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18716/* end confdefs.h. */ 18717#ifdef __STDC__ 18718# include <limits.h> 18719#else 18720# include <assert.h> 18721#endif 18722 Syntax error 18723_ACEOF 18724if ac_fn_cxx_try_cpp "$LINENO"; then : 18725 18726else 18727 # Broken: fails on valid input. 18728continue 18729fi 18730rm -f conftest.err conftest.$ac_ext 18731 18732 # OK, works on sane cases. Now check whether nonexistent headers 18733 # can be detected and how. 18734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18735/* end confdefs.h. */ 18736#include <ac_nonexistent.h> 18737_ACEOF 18738if ac_fn_cxx_try_cpp "$LINENO"; then : 18739 # Broken: success on invalid input. 18740continue 18741else 18742 # Passes both tests. 18743ac_preproc_ok=: 18744break 18745fi 18746rm -f conftest.err conftest.$ac_ext 18747 18748done 18749# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 18750rm -f conftest.err conftest.$ac_ext 18751if $ac_preproc_ok; then : 18752 break 18753fi 18754 18755 done 18756 ac_cv_prog_CXXCPP=$CXXCPP 18757 18758fi 18759 CXXCPP=$ac_cv_prog_CXXCPP 18760else 18761 ac_cv_prog_CXXCPP=$CXXCPP 18762fi 18763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 18764$as_echo "$CXXCPP" >&6; } 18765ac_preproc_ok=false 18766for ac_cxx_preproc_warn_flag in '' yes 18767do 18768 # Use a header file that comes with gcc, so configuring glibc 18769 # with a fresh cross-compiler works. 18770 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 18771 # <limits.h> exists even on freestanding compilers. 18772 # On the NeXT, cc -E runs the code through the compiler's parser, 18773 # not just through cpp. "Syntax error" is here to catch this case. 18774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18775/* end confdefs.h. */ 18776#ifdef __STDC__ 18777# include <limits.h> 18778#else 18779# include <assert.h> 18780#endif 18781 Syntax error 18782_ACEOF 18783if ac_fn_cxx_try_cpp "$LINENO"; then : 18784 18785else 18786 # Broken: fails on valid input. 18787continue 18788fi 18789rm -f conftest.err conftest.$ac_ext 18790 18791 # OK, works on sane cases. Now check whether nonexistent headers 18792 # can be detected and how. 18793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18794/* end confdefs.h. */ 18795#include <ac_nonexistent.h> 18796_ACEOF 18797if ac_fn_cxx_try_cpp "$LINENO"; then : 18798 # Broken: success on invalid input. 18799continue 18800else 18801 # Passes both tests. 18802ac_preproc_ok=: 18803break 18804fi 18805rm -f conftest.err conftest.$ac_ext 18806 18807done 18808# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 18809rm -f conftest.err conftest.$ac_ext 18810if $ac_preproc_ok; then : 18811 18812else 18813 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18814$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18815as_fn_error "C++ preprocessor \"$CXXCPP\" fails sanity check 18816See \`config.log' for more details." "$LINENO" 5; } 18817fi 18818 18819ac_ext=c 18820ac_cpp='$CPP $CPPFLAGS' 18821ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18822ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18823ac_compiler_gnu=$ac_cv_c_compiler_gnu 18824 18825else 18826 _lt_caught_CXX_error=yes 18827fi 18828 18829ac_ext=cpp 18830ac_cpp='$CXXCPP $CPPFLAGS' 18831ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18832ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18833ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 18834 18835archive_cmds_need_lc_CXX=no 18836allow_undefined_flag_CXX= 18837always_export_symbols_CXX=no 18838archive_expsym_cmds_CXX= 18839compiler_needs_object_CXX=no 18840export_dynamic_flag_spec_CXX= 18841hardcode_direct_CXX=no 18842hardcode_direct_absolute_CXX=no 18843hardcode_libdir_flag_spec_CXX= 18844hardcode_libdir_separator_CXX= 18845hardcode_minus_L_CXX=no 18846hardcode_shlibpath_var_CXX=unsupported 18847hardcode_automatic_CXX=no 18848inherit_rpath_CXX=no 18849module_cmds_CXX= 18850module_expsym_cmds_CXX= 18851link_all_deplibs_CXX=unknown 18852old_archive_cmds_CXX=$old_archive_cmds 18853reload_flag_CXX=$reload_flag 18854reload_cmds_CXX=$reload_cmds 18855no_undefined_flag_CXX= 18856whole_archive_flag_spec_CXX= 18857enable_shared_with_static_runtimes_CXX=no 18858 18859# Source file extension for C++ test sources. 18860ac_ext=cpp 18861 18862# Object file extension for compiled C++ test sources. 18863objext=o 18864objext_CXX=$objext 18865 18866# No sense in running all these tests if we already determined that 18867# the CXX compiler isn't working. Some variables (like enable_shared) 18868# are currently assumed to apply to all compilers on this platform, 18869# and will be corrupted by setting them based on a non-working compiler. 18870if test "$_lt_caught_CXX_error" != yes; then 18871 # Code to be used in simple compile tests 18872 lt_simple_compile_test_code="int some_variable = 0;" 18873 18874 # Code to be used in simple link tests 18875 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 18876 18877 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 18878 18879 18880 18881 18882 18883 18884# If no C compiler was specified, use CC. 18885LTCC=${LTCC-"$CC"} 18886 18887# If no C compiler flags were specified, use CFLAGS. 18888LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 18889 18890# Allow CC to be a program name with arguments. 18891compiler=$CC 18892 18893 18894 # save warnings/boilerplate of simple test code 18895 ac_outfile=conftest.$ac_objext 18896echo "$lt_simple_compile_test_code" >conftest.$ac_ext 18897eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18898_lt_compiler_boilerplate=`cat conftest.err` 18899$RM conftest* 18900 18901 ac_outfile=conftest.$ac_objext 18902echo "$lt_simple_link_test_code" >conftest.$ac_ext 18903eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 18904_lt_linker_boilerplate=`cat conftest.err` 18905$RM -r conftest* 18906 18907 18908 # Allow CC to be a program name with arguments. 18909 lt_save_CC=$CC 18910 lt_save_CFLAGS=$CFLAGS 18911 lt_save_LD=$LD 18912 lt_save_GCC=$GCC 18913 GCC=$GXX 18914 lt_save_with_gnu_ld=$with_gnu_ld 18915 lt_save_path_LD=$lt_cv_path_LD 18916 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 18917 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 18918 else 18919 $as_unset lt_cv_prog_gnu_ld 18920 fi 18921 if test -n "${lt_cv_path_LDCXX+set}"; then 18922 lt_cv_path_LD=$lt_cv_path_LDCXX 18923 else 18924 $as_unset lt_cv_path_LD 18925 fi 18926 test -z "${LDCXX+set}" || LD=$LDCXX 18927 CC=${CXX-"c++"} 18928 CFLAGS=$CXXFLAGS 18929 compiler=$CC 18930 compiler_CXX=$CC 18931 for cc_temp in $compiler""; do 18932 case $cc_temp in 18933 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 18934 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 18935 \-*) ;; 18936 *) break;; 18937 esac 18938done 18939cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 18940 18941 18942 if test -n "$compiler"; then 18943 # We don't want -fno-exception when compiling C++ code, so set the 18944 # no_builtin_flag separately 18945 if test "$GXX" = yes; then 18946 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 18947 else 18948 lt_prog_compiler_no_builtin_flag_CXX= 18949 fi 18950 18951 if test "$GXX" = yes; then 18952 # Set up default GNU C++ configuration 18953 18954 18955 18956# Check whether --with-gnu-ld was given. 18957if test "${with_gnu_ld+set}" = set; then : 18958 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 18959else 18960 with_gnu_ld=no 18961fi 18962 18963ac_prog=ld 18964if test "$GCC" = yes; then 18965 # Check if gcc -print-prog-name=ld gives a path. 18966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 18967$as_echo_n "checking for ld used by $CC... " >&6; } 18968 case $host in 18969 *-*-mingw*) 18970 # gcc leaves a trailing carriage return which upsets mingw 18971 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 18972 *) 18973 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 18974 esac 18975 case $ac_prog in 18976 # Accept absolute paths. 18977 [\\/]* | ?:[\\/]*) 18978 re_direlt='/[^/][^/]*/\.\./' 18979 # Canonicalize the pathname of ld 18980 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 18981 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 18982 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 18983 done 18984 test -z "$LD" && LD="$ac_prog" 18985 ;; 18986 "") 18987 # If it fails, then pretend we aren't using GCC. 18988 ac_prog=ld 18989 ;; 18990 *) 18991 # If it is relative, then search for the first ld in PATH. 18992 with_gnu_ld=unknown 18993 ;; 18994 esac 18995elif test "$with_gnu_ld" = yes; then 18996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 18997$as_echo_n "checking for GNU ld... " >&6; } 18998else 18999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 19000$as_echo_n "checking for non-GNU ld... " >&6; } 19001fi 19002if test "${lt_cv_path_LD+set}" = set; then : 19003 $as_echo_n "(cached) " >&6 19004else 19005 if test -z "$LD"; then 19006 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 19007 for ac_dir in $PATH; do 19008 IFS="$lt_save_ifs" 19009 test -z "$ac_dir" && ac_dir=. 19010 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 19011 lt_cv_path_LD="$ac_dir/$ac_prog" 19012 # Check to see if the program is GNU ld. I'd rather use --version, 19013 # but apparently some variants of GNU ld only accept -v. 19014 # Break only if it was the GNU/non-GNU ld that we prefer. 19015 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 19016 *GNU* | *'with BFD'*) 19017 test "$with_gnu_ld" != no && break 19018 ;; 19019 *) 19020 test "$with_gnu_ld" != yes && break 19021 ;; 19022 esac 19023 fi 19024 done 19025 IFS="$lt_save_ifs" 19026else 19027 lt_cv_path_LD="$LD" # Let the user override the test with a path. 19028fi 19029fi 19030 19031LD="$lt_cv_path_LD" 19032if test -n "$LD"; then 19033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 19034$as_echo "$LD" >&6; } 19035else 19036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19037$as_echo "no" >&6; } 19038fi 19039test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 19040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 19041$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 19042if test "${lt_cv_prog_gnu_ld+set}" = set; then : 19043 $as_echo_n "(cached) " >&6 19044else 19045 # I'd rather use --version here, but apparently some GNU lds only accept -v. 19046case `$LD -v 2>&1 </dev/null` in 19047*GNU* | *'with BFD'*) 19048 lt_cv_prog_gnu_ld=yes 19049 ;; 19050*) 19051 lt_cv_prog_gnu_ld=no 19052 ;; 19053esac 19054fi 19055{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 19056$as_echo "$lt_cv_prog_gnu_ld" >&6; } 19057with_gnu_ld=$lt_cv_prog_gnu_ld 19058 19059 19060 19061 19062 19063 19064 19065 # Check if GNU C++ uses GNU ld as the underlying linker, since the 19066 # archiving commands below assume that GNU ld is being used. 19067 if test "$with_gnu_ld" = yes; then 19068 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 19069 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 19070 19071 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 19072 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 19073 19074 # If archive_cmds runs LD, not CC, wlarc should be empty 19075 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 19076 # investigate it a little bit more. (MM) 19077 wlarc='${wl}' 19078 19079 # ancient GNU ld didn't support --whole-archive et. al. 19080 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 19081 $GREP 'no-whole-archive' > /dev/null; then 19082 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 19083 else 19084 whole_archive_flag_spec_CXX= 19085 fi 19086 else 19087 with_gnu_ld=no 19088 wlarc= 19089 19090 # A generic and very simple default shared library creation 19091 # command for GNU C++ for the case where it uses the native 19092 # linker, instead of GNU ld. If possible, this setting should 19093 # overridden to take advantage of the native linker features on 19094 # the platform it is being used on. 19095 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 19096 fi 19097 19098 # Commands to make compiler produce verbose output that lists 19099 # what "hidden" libraries, object files and flags are used when 19100 # linking a shared library. 19101 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 19102 19103 else 19104 GXX=no 19105 with_gnu_ld=no 19106 wlarc= 19107 fi 19108 19109 # PORTME: fill in a description of your system's C++ link characteristics 19110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 19111$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 19112 ld_shlibs_CXX=yes 19113 case $host_os in 19114 aix3*) 19115 # FIXME: insert proper C++ library support 19116 ld_shlibs_CXX=no 19117 ;; 19118 aix[4-9]*) 19119 if test "$host_cpu" = ia64; then 19120 # On IA64, the linker does run time linking by default, so we don't 19121 # have to do anything special. 19122 aix_use_runtimelinking=no 19123 exp_sym_flag='-Bexport' 19124 no_entry_flag="" 19125 else 19126 aix_use_runtimelinking=no 19127 19128 # Test if we are trying to use run time linking or normal 19129 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 19130 # need to do runtime linking. 19131 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 19132 for ld_flag in $LDFLAGS; do 19133 case $ld_flag in 19134 *-brtl*) 19135 aix_use_runtimelinking=yes 19136 break 19137 ;; 19138 esac 19139 done 19140 ;; 19141 esac 19142 19143 exp_sym_flag='-bexport' 19144 no_entry_flag='-bnoentry' 19145 fi 19146 19147 # When large executables or shared objects are built, AIX ld can 19148 # have problems creating the table of contents. If linking a library 19149 # or program results in "error TOC overflow" add -mminimal-toc to 19150 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 19151 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 19152 19153 archive_cmds_CXX='' 19154 hardcode_direct_CXX=yes 19155 hardcode_direct_absolute_CXX=yes 19156 hardcode_libdir_separator_CXX=':' 19157 link_all_deplibs_CXX=yes 19158 file_list_spec_CXX='${wl}-f,' 19159 19160 if test "$GXX" = yes; then 19161 case $host_os in aix4.[012]|aix4.[012].*) 19162 # We only want to do this on AIX 4.2 and lower, the check 19163 # below for broken collect2 doesn't work under 4.3+ 19164 collect2name=`${CC} -print-prog-name=collect2` 19165 if test -f "$collect2name" && 19166 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 19167 then 19168 # We have reworked collect2 19169 : 19170 else 19171 # We have old collect2 19172 hardcode_direct_CXX=unsupported 19173 # It fails to find uninstalled libraries when the uninstalled 19174 # path is not listed in the libpath. Setting hardcode_minus_L 19175 # to unsupported forces relinking 19176 hardcode_minus_L_CXX=yes 19177 hardcode_libdir_flag_spec_CXX='-L$libdir' 19178 hardcode_libdir_separator_CXX= 19179 fi 19180 esac 19181 shared_flag='-shared' 19182 if test "$aix_use_runtimelinking" = yes; then 19183 shared_flag="$shared_flag "'${wl}-G' 19184 fi 19185 else 19186 # not using gcc 19187 if test "$host_cpu" = ia64; then 19188 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 19189 # chokes on -Wl,-G. The following line is correct: 19190 shared_flag='-G' 19191 else 19192 if test "$aix_use_runtimelinking" = yes; then 19193 shared_flag='${wl}-G' 19194 else 19195 shared_flag='${wl}-bM:SRE' 19196 fi 19197 fi 19198 fi 19199 19200 export_dynamic_flag_spec_CXX='${wl}-bexpall' 19201 # It seems that -bexpall does not export symbols beginning with 19202 # underscore (_), so it is better to generate a list of symbols to 19203 # export. 19204 always_export_symbols_CXX=yes 19205 if test "$aix_use_runtimelinking" = yes; then 19206 # Warning - without using the other runtime loading flags (-brtl), 19207 # -berok will link without error, but may produce a broken library. 19208 allow_undefined_flag_CXX='-berok' 19209 # Determine the default libpath from the value encoded in an empty 19210 # executable. 19211 if test "${lt_cv_aix_libpath+set}" = set; then 19212 aix_libpath=$lt_cv_aix_libpath 19213else 19214 if test "${lt_cv_aix_libpath__CXX+set}" = set; then : 19215 $as_echo_n "(cached) " >&6 19216else 19217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19218/* end confdefs.h. */ 19219 19220int 19221main () 19222{ 19223 19224 ; 19225 return 0; 19226} 19227_ACEOF 19228if ac_fn_cxx_try_link "$LINENO"; then : 19229 19230 lt_aix_libpath_sed=' 19231 /Import File Strings/,/^$/ { 19232 /^0/ { 19233 s/^0 *\([^ ]*\) *$/\1/ 19234 p 19235 } 19236 }' 19237 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 19238 # Check for a 64-bit object if we didn't find anything. 19239 if test -z "$lt_cv_aix_libpath__CXX"; then 19240 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 19241 fi 19242fi 19243rm -f core conftest.err conftest.$ac_objext \ 19244 conftest$ac_exeext conftest.$ac_ext 19245 if test -z "$lt_cv_aix_libpath__CXX"; then 19246 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 19247 fi 19248 19249fi 19250 19251 aix_libpath=$lt_cv_aix_libpath__CXX 19252fi 19253 19254 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 19255 19256 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 19257 else 19258 if test "$host_cpu" = ia64; then 19259 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 19260 allow_undefined_flag_CXX="-z nodefs" 19261 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 19262 else 19263 # Determine the default libpath from the value encoded in an 19264 # empty executable. 19265 if test "${lt_cv_aix_libpath+set}" = set; then 19266 aix_libpath=$lt_cv_aix_libpath 19267else 19268 if test "${lt_cv_aix_libpath__CXX+set}" = set; then : 19269 $as_echo_n "(cached) " >&6 19270else 19271 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19272/* end confdefs.h. */ 19273 19274int 19275main () 19276{ 19277 19278 ; 19279 return 0; 19280} 19281_ACEOF 19282if ac_fn_cxx_try_link "$LINENO"; then : 19283 19284 lt_aix_libpath_sed=' 19285 /Import File Strings/,/^$/ { 19286 /^0/ { 19287 s/^0 *\([^ ]*\) *$/\1/ 19288 p 19289 } 19290 }' 19291 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 19292 # Check for a 64-bit object if we didn't find anything. 19293 if test -z "$lt_cv_aix_libpath__CXX"; then 19294 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 19295 fi 19296fi 19297rm -f core conftest.err conftest.$ac_objext \ 19298 conftest$ac_exeext conftest.$ac_ext 19299 if test -z "$lt_cv_aix_libpath__CXX"; then 19300 lt_cv_aix_libpath__CXX="/usr/lib:/lib" 19301 fi 19302 19303fi 19304 19305 aix_libpath=$lt_cv_aix_libpath__CXX 19306fi 19307 19308 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 19309 # Warning - without using the other run time loading flags, 19310 # -berok will link without error, but may produce a broken library. 19311 no_undefined_flag_CXX=' ${wl}-bernotok' 19312 allow_undefined_flag_CXX=' ${wl}-berok' 19313 if test "$with_gnu_ld" = yes; then 19314 # We only use this code for GNU lds that support --whole-archive. 19315 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 19316 else 19317 # Exported symbols can be pulled into shared objects from archives 19318 whole_archive_flag_spec_CXX='$convenience' 19319 fi 19320 archive_cmds_need_lc_CXX=yes 19321 # This is similar to how AIX traditionally builds its shared 19322 # libraries. 19323 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 19324 fi 19325 fi 19326 ;; 19327 19328 beos*) 19329 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 19330 allow_undefined_flag_CXX=unsupported 19331 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 19332 # support --undefined. This deserves some investigation. FIXME 19333 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 19334 else 19335 ld_shlibs_CXX=no 19336 fi 19337 ;; 19338 19339 chorus*) 19340 case $cc_basename in 19341 *) 19342 # FIXME: insert proper C++ library support 19343 ld_shlibs_CXX=no 19344 ;; 19345 esac 19346 ;; 19347 19348 cygwin* | mingw* | pw32* | cegcc*) 19349 case $GXX,$cc_basename in 19350 ,cl* | no,cl*) 19351 # Native MSVC 19352 # hardcode_libdir_flag_spec is actually meaningless, as there is 19353 # no search path for DLLs. 19354 hardcode_libdir_flag_spec_CXX=' ' 19355 allow_undefined_flag_CXX=unsupported 19356 always_export_symbols_CXX=yes 19357 file_list_spec_CXX='@' 19358 # Tell ltmain to make .lib files, not .a files. 19359 libext=lib 19360 # Tell ltmain to make .dll files, not .so files. 19361 shrext_cmds=".dll" 19362 # FIXME: Setting linknames here is a bad hack. 19363 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 19364 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 19365 $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 19366 else 19367 $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 19368 fi~ 19369 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 19370 linknames=' 19371 # The linker will not automatically build a static lib if we build a DLL. 19372 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 19373 enable_shared_with_static_runtimes_CXX=yes 19374 # Don't use ranlib 19375 old_postinstall_cmds_CXX='chmod 644 $oldlib' 19376 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 19377 lt_tool_outputfile="@TOOL_OUTPUT@"~ 19378 case $lt_outputfile in 19379 *.exe|*.EXE) ;; 19380 *) 19381 lt_outputfile="$lt_outputfile.exe" 19382 lt_tool_outputfile="$lt_tool_outputfile.exe" 19383 ;; 19384 esac~ 19385 func_to_tool_file "$lt_outputfile"~ 19386 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 19387 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 19388 $RM "$lt_outputfile.manifest"; 19389 fi' 19390 ;; 19391 *) 19392 # g++ 19393 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 19394 # as there is no search path for DLLs. 19395 hardcode_libdir_flag_spec_CXX='-L$libdir' 19396 export_dynamic_flag_spec_CXX='${wl}--export-all-symbols' 19397 allow_undefined_flag_CXX=unsupported 19398 always_export_symbols_CXX=no 19399 enable_shared_with_static_runtimes_CXX=yes 19400 19401 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 19402 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 19403 # If the export-symbols file already is a .def file (1st line 19404 # is EXPORTS), use it as is; otherwise, prepend... 19405 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 19406 cp $export_symbols $output_objdir/$soname.def; 19407 else 19408 echo EXPORTS > $output_objdir/$soname.def; 19409 cat $export_symbols >> $output_objdir/$soname.def; 19410 fi~ 19411 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 19412 else 19413 ld_shlibs_CXX=no 19414 fi 19415 ;; 19416 esac 19417 ;; 19418 darwin* | rhapsody*) 19419 19420 19421 archive_cmds_need_lc_CXX=no 19422 hardcode_direct_CXX=no 19423 hardcode_automatic_CXX=yes 19424 hardcode_shlibpath_var_CXX=unsupported 19425 if test "$lt_cv_ld_force_load" = "yes"; then 19426 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 19427 19428 else 19429 whole_archive_flag_spec_CXX='' 19430 fi 19431 link_all_deplibs_CXX=yes 19432 allow_undefined_flag_CXX="$_lt_dar_allow_undefined" 19433 case $cc_basename in 19434 ifort*) _lt_dar_can_shared=yes ;; 19435 *) _lt_dar_can_shared=$GCC ;; 19436 esac 19437 if test "$_lt_dar_can_shared" = "yes"; then 19438 output_verbose_link_cmd=func_echo_all 19439 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 19440 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 19441 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 19442 module_expsym_cmds_CXX="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 19443 if test "$lt_cv_apple_cc_single_mod" != "yes"; then 19444 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}" 19445 archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}" 19446 fi 19447 19448 else 19449 ld_shlibs_CXX=no 19450 fi 19451 19452 ;; 19453 19454 dgux*) 19455 case $cc_basename in 19456 ec++*) 19457 # FIXME: insert proper C++ library support 19458 ld_shlibs_CXX=no 19459 ;; 19460 ghcx*) 19461 # Green Hills C++ Compiler 19462 # FIXME: insert proper C++ library support 19463 ld_shlibs_CXX=no 19464 ;; 19465 *) 19466 # FIXME: insert proper C++ library support 19467 ld_shlibs_CXX=no 19468 ;; 19469 esac 19470 ;; 19471 19472 freebsd2.*) 19473 # C++ shared libraries reported to be fairly broken before 19474 # switch to ELF 19475 ld_shlibs_CXX=no 19476 ;; 19477 19478 freebsd-elf*) 19479 archive_cmds_need_lc_CXX=no 19480 ;; 19481 19482 freebsd* | dragonfly*) 19483 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 19484 # conventions 19485 ld_shlibs_CXX=yes 19486 ;; 19487 19488 gnu*) 19489 ;; 19490 19491 haiku*) 19492 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 19493 link_all_deplibs_CXX=yes 19494 ;; 19495 19496 hpux9*) 19497 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 19498 hardcode_libdir_separator_CXX=: 19499 export_dynamic_flag_spec_CXX='${wl}-E' 19500 hardcode_direct_CXX=yes 19501 hardcode_minus_L_CXX=yes # Not in the search PATH, 19502 # but as the default 19503 # location of the library. 19504 19505 case $cc_basename in 19506 CC*) 19507 # FIXME: insert proper C++ library support 19508 ld_shlibs_CXX=no 19509 ;; 19510 aCC*) 19511 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' 19512 # Commands to make compiler produce verbose output that lists 19513 # what "hidden" libraries, object files and flags are used when 19514 # linking a shared library. 19515 # 19516 # There doesn't appear to be a way to prevent this compiler from 19517 # explicitly linking system object files so we need to strip them 19518 # from the output so that they don't get included in the library 19519 # dependencies. 19520 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 19521 ;; 19522 *) 19523 if test "$GXX" = yes; then 19524 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${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' 19525 else 19526 # FIXME: insert proper C++ library support 19527 ld_shlibs_CXX=no 19528 fi 19529 ;; 19530 esac 19531 ;; 19532 19533 hpux10*|hpux11*) 19534 if test $with_gnu_ld = no; then 19535 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 19536 hardcode_libdir_separator_CXX=: 19537 19538 case $host_cpu in 19539 hppa*64*|ia64*) 19540 ;; 19541 *) 19542 export_dynamic_flag_spec_CXX='${wl}-E' 19543 ;; 19544 esac 19545 fi 19546 case $host_cpu in 19547 hppa*64*|ia64*) 19548 hardcode_direct_CXX=no 19549 hardcode_shlibpath_var_CXX=no 19550 ;; 19551 *) 19552 hardcode_direct_CXX=yes 19553 hardcode_direct_absolute_CXX=yes 19554 hardcode_minus_L_CXX=yes # Not in the search PATH, 19555 # but as the default 19556 # location of the library. 19557 ;; 19558 esac 19559 19560 case $cc_basename in 19561 CC*) 19562 # FIXME: insert proper C++ library support 19563 ld_shlibs_CXX=no 19564 ;; 19565 aCC*) 19566 case $host_cpu in 19567 hppa*64*) 19568 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 19569 ;; 19570 ia64*) 19571 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 19572 ;; 19573 *) 19574 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 19575 ;; 19576 esac 19577 # Commands to make compiler produce verbose output that lists 19578 # what "hidden" libraries, object files and flags are used when 19579 # linking a shared library. 19580 # 19581 # There doesn't appear to be a way to prevent this compiler from 19582 # explicitly linking system object files so we need to strip them 19583 # from the output so that they don't get included in the library 19584 # dependencies. 19585 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; func_echo_all "$list"' 19586 ;; 19587 *) 19588 if test "$GXX" = yes; then 19589 if test $with_gnu_ld = no; then 19590 case $host_cpu in 19591 hppa*64*) 19592 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 19593 ;; 19594 ia64*) 19595 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 19596 ;; 19597 *) 19598 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 19599 ;; 19600 esac 19601 fi 19602 else 19603 # FIXME: insert proper C++ library support 19604 ld_shlibs_CXX=no 19605 fi 19606 ;; 19607 esac 19608 ;; 19609 19610 interix[3-9]*) 19611 hardcode_direct_CXX=no 19612 hardcode_shlibpath_var_CXX=no 19613 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 19614 export_dynamic_flag_spec_CXX='${wl}-E' 19615 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 19616 # Instead, shared libraries are loaded at an image base (0x10000000 by 19617 # default) and relocated if they conflict, which is a slow very memory 19618 # consuming and fragmenting process. To avoid this, we pick a random, 19619 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 19620 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 19621 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 19622 archive_expsym_cmds_CXX='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 19623 ;; 19624 irix5* | irix6*) 19625 case $cc_basename in 19626 CC*) 19627 # SGI C++ 19628 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 19629 19630 # Archives containing C++ object files must be created using 19631 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 19632 # necessary to make sure instantiated templates are included 19633 # in the archive. 19634 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 19635 ;; 19636 *) 19637 if test "$GXX" = yes; then 19638 if test "$with_gnu_ld" = no; then 19639 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 19640 else 19641 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib' 19642 fi 19643 fi 19644 link_all_deplibs_CXX=yes 19645 ;; 19646 esac 19647 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 19648 hardcode_libdir_separator_CXX=: 19649 inherit_rpath_CXX=yes 19650 ;; 19651 19652 linux* | k*bsd*-gnu | kopensolaris*-gnu) 19653 case $cc_basename in 19654 KCC*) 19655 # Kuck and Associates, Inc. (KAI) C++ Compiler 19656 19657 # KCC will only create a shared library if the output file 19658 # ends with ".so" (or ".sl" for HP-UX), so rename the library 19659 # to its proper name (with version) after linking. 19660 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' 19661 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' 19662 # Commands to make compiler produce verbose output that lists 19663 # what "hidden" libraries, object files and flags are used when 19664 # linking a shared library. 19665 # 19666 # There doesn't appear to be a way to prevent this compiler from 19667 # explicitly linking system object files so we need to strip them 19668 # from the output so that they don't get included in the library 19669 # dependencies. 19670 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; func_echo_all "$list"' 19671 19672 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 19673 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 19674 19675 # Archives containing C++ object files must be created using 19676 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 19677 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 19678 ;; 19679 icpc* | ecpc* ) 19680 # Intel C++ 19681 with_gnu_ld=yes 19682 # version 8.0 and above of icpc choke on multiply defined symbols 19683 # if we add $predep_objects and $postdep_objects, however 7.1 and 19684 # earlier do not add the objects themselves. 19685 case `$CC -V 2>&1` in 19686 *"Version 7."*) 19687 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 19688 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' 19689 ;; 19690 *) # Version 8.0 or newer 19691 tmp_idyn= 19692 case $host_cpu in 19693 ia64*) tmp_idyn=' -i_dynamic';; 19694 esac 19695 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 19696 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 19697 ;; 19698 esac 19699 archive_cmds_need_lc_CXX=no 19700 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 19701 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 19702 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 19703 ;; 19704 pgCC* | pgcpp*) 19705 # Portland Group C++ compiler 19706 case `$CC -V` in 19707 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 19708 prelink_cmds_CXX='tpldir=Template.dir~ 19709 rm -rf $tpldir~ 19710 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 19711 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 19712 old_archive_cmds_CXX='tpldir=Template.dir~ 19713 rm -rf $tpldir~ 19714 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 19715 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 19716 $RANLIB $oldlib' 19717 archive_cmds_CXX='tpldir=Template.dir~ 19718 rm -rf $tpldir~ 19719 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 19720 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 19721 archive_expsym_cmds_CXX='tpldir=Template.dir~ 19722 rm -rf $tpldir~ 19723 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 19724 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 19725 ;; 19726 *) # Version 6 and above use weak symbols 19727 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib' 19728 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib' 19729 ;; 19730 esac 19731 19732 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 19733 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 19734 whole_archive_flag_spec_CXX='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 19735 ;; 19736 cxx*) 19737 # Compaq C++ 19738 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 19739 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' 19740 19741 runpath_var=LD_RUN_PATH 19742 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 19743 hardcode_libdir_separator_CXX=: 19744 19745 # Commands to make compiler produce verbose output that lists 19746 # what "hidden" libraries, object files and flags are used when 19747 # linking a shared library. 19748 # 19749 # There doesn't appear to be a way to prevent this compiler from 19750 # explicitly linking system object files so we need to strip them 19751 # from the output so that they don't get included in the library 19752 # dependencies. 19753 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$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; func_echo_all "X$list" | $Xsed' 19754 ;; 19755 xl* | mpixl* | bgxl*) 19756 # IBM XL 8.0 on PPC, with GNU ld 19757 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 19758 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 19759 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 19760 if test "x$supports_anon_versioning" = xyes; then 19761 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 19762 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 19763 echo "local: *; };" >> $output_objdir/$libname.ver~ 19764 $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 19765 fi 19766 ;; 19767 *) 19768 case `$CC -V 2>&1 | sed 5q` in 19769 *Sun\ C*) 19770 # Sun C++ 5.9 19771 no_undefined_flag_CXX=' -zdefs' 19772 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 19773 archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols' 19774 hardcode_libdir_flag_spec_CXX='-R$libdir' 19775 whole_archive_flag_spec_CXX='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 19776 compiler_needs_object_CXX=yes 19777 19778 # Not sure whether something based on 19779 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 19780 # would be better. 19781 output_verbose_link_cmd='func_echo_all' 19782 19783 # Archives containing C++ object files must be created using 19784 # "CC -xar", where "CC" is the Sun C++ compiler. This is 19785 # necessary to make sure instantiated templates are included 19786 # in the archive. 19787 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 19788 ;; 19789 esac 19790 ;; 19791 esac 19792 ;; 19793 19794 lynxos*) 19795 # FIXME: insert proper C++ library support 19796 ld_shlibs_CXX=no 19797 ;; 19798 19799 m88k*) 19800 # FIXME: insert proper C++ library support 19801 ld_shlibs_CXX=no 19802 ;; 19803 19804 mvs*) 19805 case $cc_basename in 19806 cxx*) 19807 # FIXME: insert proper C++ library support 19808 ld_shlibs_CXX=no 19809 ;; 19810 *) 19811 # FIXME: insert proper C++ library support 19812 ld_shlibs_CXX=no 19813 ;; 19814 esac 19815 ;; 19816 19817 netbsd*) 19818 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 19819 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 19820 wlarc= 19821 hardcode_libdir_flag_spec_CXX='-R$libdir' 19822 hardcode_direct_CXX=yes 19823 hardcode_shlibpath_var_CXX=no 19824 fi 19825 # Workaround some broken pre-1.5 toolchains 19826 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 19827 ;; 19828 19829 *nto* | *qnx*) 19830 ld_shlibs_CXX=yes 19831 ;; 19832 19833 openbsd2*) 19834 # C++ shared libraries are fairly broken 19835 ld_shlibs_CXX=no 19836 ;; 19837 19838 openbsd*) 19839 if test -f /usr/libexec/ld.so; then 19840 hardcode_direct_CXX=yes 19841 hardcode_shlibpath_var_CXX=no 19842 hardcode_direct_absolute_CXX=yes 19843 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 19844 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 19845 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 19846 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib' 19847 export_dynamic_flag_spec_CXX='${wl}-E' 19848 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 19849 fi 19850 output_verbose_link_cmd=func_echo_all 19851 else 19852 ld_shlibs_CXX=no 19853 fi 19854 ;; 19855 19856 osf3* | osf4* | osf5*) 19857 case $cc_basename in 19858 KCC*) 19859 # Kuck and Associates, Inc. (KAI) C++ Compiler 19860 19861 # KCC will only create a shared library if the output file 19862 # ends with ".so" (or ".sl" for HP-UX), so rename the library 19863 # to its proper name (with version) after linking. 19864 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' 19865 19866 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 19867 hardcode_libdir_separator_CXX=: 19868 19869 # Archives containing C++ object files must be created using 19870 # the KAI C++ compiler. 19871 case $host in 19872 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 19873 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 19874 esac 19875 ;; 19876 RCC*) 19877 # Rational C++ 2.4.1 19878 # FIXME: insert proper C++ library support 19879 ld_shlibs_CXX=no 19880 ;; 19881 cxx*) 19882 case $host in 19883 osf3*) 19884 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 19885 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 19886 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 19887 ;; 19888 *) 19889 allow_undefined_flag_CXX=' -expect_unresolved \*' 19890 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 19891 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 19892 echo "-hidden">> $lib.exp~ 19893 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~ 19894 $RM $lib.exp' 19895 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 19896 ;; 19897 esac 19898 19899 hardcode_libdir_separator_CXX=: 19900 19901 # Commands to make compiler produce verbose output that lists 19902 # what "hidden" libraries, object files and flags are used when 19903 # linking a shared library. 19904 # 19905 # There doesn't appear to be a way to prevent this compiler from 19906 # explicitly linking system object files so we need to strip them 19907 # from the output so that they don't get included in the library 19908 # dependencies. 19909 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$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; func_echo_all "$list"' 19910 ;; 19911 *) 19912 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 19913 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 19914 case $host in 19915 osf3*) 19916 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 19917 ;; 19918 *) 19919 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 19920 ;; 19921 esac 19922 19923 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 19924 hardcode_libdir_separator_CXX=: 19925 19926 # Commands to make compiler produce verbose output that lists 19927 # what "hidden" libraries, object files and flags are used when 19928 # linking a shared library. 19929 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 19930 19931 else 19932 # FIXME: insert proper C++ library support 19933 ld_shlibs_CXX=no 19934 fi 19935 ;; 19936 esac 19937 ;; 19938 19939 psos*) 19940 # FIXME: insert proper C++ library support 19941 ld_shlibs_CXX=no 19942 ;; 19943 19944 sunos4*) 19945 case $cc_basename in 19946 CC*) 19947 # Sun C++ 4.x 19948 # FIXME: insert proper C++ library support 19949 ld_shlibs_CXX=no 19950 ;; 19951 lcc*) 19952 # Lucid 19953 # FIXME: insert proper C++ library support 19954 ld_shlibs_CXX=no 19955 ;; 19956 *) 19957 # FIXME: insert proper C++ library support 19958 ld_shlibs_CXX=no 19959 ;; 19960 esac 19961 ;; 19962 19963 solaris*) 19964 case $cc_basename in 19965 CC* | sunCC*) 19966 # Sun C++ 4.2, 5.x and Centerline C++ 19967 archive_cmds_need_lc_CXX=yes 19968 no_undefined_flag_CXX=' -zdefs' 19969 archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 19970 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 19971 $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 19972 19973 hardcode_libdir_flag_spec_CXX='-R$libdir' 19974 hardcode_shlibpath_var_CXX=no 19975 case $host_os in 19976 solaris2.[0-5] | solaris2.[0-5].*) ;; 19977 *) 19978 # The compiler driver will combine and reorder linker options, 19979 # but understands `-z linker_flag'. 19980 # Supported since Solaris 2.6 (maybe 2.5.1?) 19981 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 19982 ;; 19983 esac 19984 link_all_deplibs_CXX=yes 19985 19986 output_verbose_link_cmd='func_echo_all' 19987 19988 # Archives containing C++ object files must be created using 19989 # "CC -xar", where "CC" is the Sun C++ compiler. This is 19990 # necessary to make sure instantiated templates are included 19991 # in the archive. 19992 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 19993 ;; 19994 gcx*) 19995 # Green Hills C++ Compiler 19996 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 19997 19998 # The C++ compiler must be used to create the archive. 19999 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 20000 ;; 20001 *) 20002 # GNU C++ compiler with Solaris linker 20003 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 20004 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 20005 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 20006 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 20007 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 20008 $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 20009 20010 # Commands to make compiler produce verbose output that lists 20011 # what "hidden" libraries, object files and flags are used when 20012 # linking a shared library. 20013 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 20014 else 20015 # g++ 2.7 appears to require `-G' NOT `-shared' on this 20016 # platform. 20017 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 20018 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 20019 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 20020 20021 # Commands to make compiler produce verbose output that lists 20022 # what "hidden" libraries, object files and flags are used when 20023 # linking a shared library. 20024 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 20025 fi 20026 20027 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 20028 case $host_os in 20029 solaris2.[0-5] | solaris2.[0-5].*) ;; 20030 *) 20031 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 20032 ;; 20033 esac 20034 fi 20035 ;; 20036 esac 20037 ;; 20038 20039 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 20040 no_undefined_flag_CXX='${wl}-z,text' 20041 archive_cmds_need_lc_CXX=no 20042 hardcode_shlibpath_var_CXX=no 20043 runpath_var='LD_RUN_PATH' 20044 20045 case $cc_basename in 20046 CC*) 20047 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20048 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20049 ;; 20050 *) 20051 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20052 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20053 ;; 20054 esac 20055 ;; 20056 20057 sysv5* | sco3.2v5* | sco5v6*) 20058 # Note: We can NOT use -z defs as we might desire, because we do not 20059 # link with -lc, and that would cause any symbols used from libc to 20060 # always be unresolved, which means just about no library would 20061 # ever link correctly. If we're not using GNU ld we use -z text 20062 # though, which does catch some bad symbols but isn't as heavy-handed 20063 # as -z defs. 20064 no_undefined_flag_CXX='${wl}-z,text' 20065 allow_undefined_flag_CXX='${wl}-z,nodefs' 20066 archive_cmds_need_lc_CXX=no 20067 hardcode_shlibpath_var_CXX=no 20068 hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir' 20069 hardcode_libdir_separator_CXX=':' 20070 link_all_deplibs_CXX=yes 20071 export_dynamic_flag_spec_CXX='${wl}-Bexport' 20072 runpath_var='LD_RUN_PATH' 20073 20074 case $cc_basename in 20075 CC*) 20076 archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20077 archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20078 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 20079 '"$old_archive_cmds_CXX" 20080 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 20081 '"$reload_cmds_CXX" 20082 ;; 20083 *) 20084 archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20085 archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 20086 ;; 20087 esac 20088 ;; 20089 20090 tandem*) 20091 case $cc_basename in 20092 NCC*) 20093 # NonStop-UX NCC 3.20 20094 # FIXME: insert proper C++ library support 20095 ld_shlibs_CXX=no 20096 ;; 20097 *) 20098 # FIXME: insert proper C++ library support 20099 ld_shlibs_CXX=no 20100 ;; 20101 esac 20102 ;; 20103 20104 vxworks*) 20105 # FIXME: insert proper C++ library support 20106 ld_shlibs_CXX=no 20107 ;; 20108 20109 *) 20110 # FIXME: insert proper C++ library support 20111 ld_shlibs_CXX=no 20112 ;; 20113 esac 20114 20115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 20116$as_echo "$ld_shlibs_CXX" >&6; } 20117 test "$ld_shlibs_CXX" = no && can_build_shared=no 20118 20119 GCC_CXX="$GXX" 20120 LD_CXX="$LD" 20121 20122 ## CAVEAT EMPTOR: 20123 ## There is no encapsulation within the following macros, do not change 20124 ## the running order or otherwise move them around unless you know exactly 20125 ## what you are doing... 20126 # Dependencies to place before and after the object being linked: 20127predep_objects_CXX= 20128postdep_objects_CXX= 20129predeps_CXX= 20130postdeps_CXX= 20131compiler_lib_search_path_CXX= 20132 20133cat > conftest.$ac_ext <<_LT_EOF 20134class Foo 20135{ 20136public: 20137 Foo (void) { a = 0; } 20138private: 20139 int a; 20140}; 20141_LT_EOF 20142 20143 20144_lt_libdeps_save_CFLAGS=$CFLAGS 20145case "$CC $CFLAGS " in #( 20146*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 20147*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 20148*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 20149esac 20150 20151if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 20152 (eval $ac_compile) 2>&5 20153 ac_status=$? 20154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20155 test $ac_status = 0; }; then 20156 # Parse the compiler output and extract the necessary 20157 # objects, libraries and library flags. 20158 20159 # Sentinel used to keep track of whether or not we are before 20160 # the conftest object file. 20161 pre_test_object_deps_done=no 20162 20163 for p in `eval "$output_verbose_link_cmd"`; do 20164 case ${prev}${p} in 20165 20166 -L* | -R* | -l*) 20167 # Some compilers place space between "-{L,R}" and the path. 20168 # Remove the space. 20169 if test $p = "-L" || 20170 test $p = "-R"; then 20171 prev=$p 20172 continue 20173 fi 20174 20175 # Expand the sysroot to ease extracting the directories later. 20176 if test -z "$prev"; then 20177 case $p in 20178 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 20179 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 20180 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 20181 esac 20182 fi 20183 case $p in 20184 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 20185 esac 20186 if test "$pre_test_object_deps_done" = no; then 20187 case ${prev} in 20188 -L | -R) 20189 # Internal compiler library paths should come after those 20190 # provided the user. The postdeps already come after the 20191 # user supplied libs so there is no need to process them. 20192 if test -z "$compiler_lib_search_path_CXX"; then 20193 compiler_lib_search_path_CXX="${prev}${p}" 20194 else 20195 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 20196 fi 20197 ;; 20198 # The "-l" case would never come before the object being 20199 # linked, so don't bother handling this case. 20200 esac 20201 else 20202 if test -z "$postdeps_CXX"; then 20203 postdeps_CXX="${prev}${p}" 20204 else 20205 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 20206 fi 20207 fi 20208 prev= 20209 ;; 20210 20211 *.lto.$objext) ;; # Ignore GCC LTO objects 20212 *.$objext) 20213 # This assumes that the test object file only shows up 20214 # once in the compiler output. 20215 if test "$p" = "conftest.$objext"; then 20216 pre_test_object_deps_done=yes 20217 continue 20218 fi 20219 20220 if test "$pre_test_object_deps_done" = no; then 20221 if test -z "$predep_objects_CXX"; then 20222 predep_objects_CXX="$p" 20223 else 20224 predep_objects_CXX="$predep_objects_CXX $p" 20225 fi 20226 else 20227 if test -z "$postdep_objects_CXX"; then 20228 postdep_objects_CXX="$p" 20229 else 20230 postdep_objects_CXX="$postdep_objects_CXX $p" 20231 fi 20232 fi 20233 ;; 20234 20235 *) ;; # Ignore the rest. 20236 20237 esac 20238 done 20239 20240 # Clean up. 20241 rm -f a.out a.exe 20242else 20243 echo "libtool.m4: error: problem compiling CXX test program" 20244fi 20245 20246$RM -f confest.$objext 20247CFLAGS=$_lt_libdeps_save_CFLAGS 20248 20249# PORTME: override above test on systems where it is broken 20250case $host_os in 20251interix[3-9]*) 20252 # Interix 3.5 installs completely hosed .la files for C++, so rather than 20253 # hack all around it, let's just trust "g++" to DTRT. 20254 predep_objects_CXX= 20255 postdep_objects_CXX= 20256 postdeps_CXX= 20257 ;; 20258 20259linux*) 20260 case `$CC -V 2>&1 | sed 5q` in 20261 *Sun\ C*) 20262 # Sun C++ 5.9 20263 20264 # The more standards-conforming stlport4 library is 20265 # incompatible with the Cstd library. Avoid specifying 20266 # it if it's in CXXFLAGS. Ignore libCrun as 20267 # -library=stlport4 depends on it. 20268 case " $CXX $CXXFLAGS " in 20269 *" -library=stlport4 "*) 20270 solaris_use_stlport4=yes 20271 ;; 20272 esac 20273 20274 if test "$solaris_use_stlport4" != yes; then 20275 postdeps_CXX='-library=Cstd -library=Crun' 20276 fi 20277 ;; 20278 esac 20279 ;; 20280 20281solaris*) 20282 case $cc_basename in 20283 CC* | sunCC*) 20284 # The more standards-conforming stlport4 library is 20285 # incompatible with the Cstd library. Avoid specifying 20286 # it if it's in CXXFLAGS. Ignore libCrun as 20287 # -library=stlport4 depends on it. 20288 case " $CXX $CXXFLAGS " in 20289 *" -library=stlport4 "*) 20290 solaris_use_stlport4=yes 20291 ;; 20292 esac 20293 20294 # Adding this requires a known-good setup of shared libraries for 20295 # Sun compiler versions before 5.6, else PIC objects from an old 20296 # archive will be linked into the output, leading to subtle bugs. 20297 if test "$solaris_use_stlport4" != yes; then 20298 postdeps_CXX='-library=Cstd -library=Crun' 20299 fi 20300 ;; 20301 esac 20302 ;; 20303esac 20304 20305 20306case " $postdeps_CXX " in 20307*" -lc "*) archive_cmds_need_lc_CXX=no ;; 20308esac 20309 compiler_lib_search_dirs_CXX= 20310if test -n "${compiler_lib_search_path_CXX}"; then 20311 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'` 20312fi 20313 20314 20315 20316 20317 20318 20319 20320 20321 20322 20323 20324 20325 20326 20327 20328 20329 20330 20331 20332 20333 20334 20335 20336 20337 20338 20339 20340 20341 20342 20343 20344 lt_prog_compiler_wl_CXX= 20345lt_prog_compiler_pic_CXX= 20346lt_prog_compiler_static_CXX= 20347 20348 20349 # C++ specific cases for pic, static, wl, etc. 20350 if test "$GXX" = yes; then 20351 lt_prog_compiler_wl_CXX='-Wl,' 20352 lt_prog_compiler_static_CXX='-static' 20353 20354 case $host_os in 20355 aix*) 20356 # All AIX code is PIC. 20357 if test "$host_cpu" = ia64; then 20358 # AIX 5 now supports IA64 processor 20359 lt_prog_compiler_static_CXX='-Bstatic' 20360 fi 20361 ;; 20362 20363 amigaos*) 20364 case $host_cpu in 20365 powerpc) 20366 # see comment about AmigaOS4 .so support 20367 lt_prog_compiler_pic_CXX='-fPIC' 20368 ;; 20369 m68k) 20370 # FIXME: we need at least 68020 code to build shared libraries, but 20371 # adding the `-m68020' flag to GCC prevents building anything better, 20372 # like `-m68040'. 20373 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 20374 ;; 20375 esac 20376 ;; 20377 20378 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 20379 # PIC is the default for these OSes. 20380 ;; 20381 mingw* | cygwin* | os2* | pw32* | cegcc*) 20382 # This hack is so that the source file can tell whether it is being 20383 # built for inclusion in a dll (and should export symbols for example). 20384 # Although the cygwin gcc ignores -fPIC, still need this for old-style 20385 # (--disable-auto-import) libraries 20386 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 20387 ;; 20388 darwin* | rhapsody*) 20389 # PIC is the default on this platform 20390 # Common symbols not allowed in MH_DYLIB files 20391 lt_prog_compiler_pic_CXX='-fno-common' 20392 ;; 20393 *djgpp*) 20394 # DJGPP does not support shared libraries at all 20395 lt_prog_compiler_pic_CXX= 20396 ;; 20397 haiku*) 20398 # PIC is the default for Haiku. 20399 # The "-static" flag exists, but is broken. 20400 lt_prog_compiler_static_CXX= 20401 ;; 20402 interix[3-9]*) 20403 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 20404 # Instead, we relocate shared libraries at runtime. 20405 ;; 20406 sysv4*MP*) 20407 if test -d /usr/nec; then 20408 lt_prog_compiler_pic_CXX=-Kconform_pic 20409 fi 20410 ;; 20411 hpux*) 20412 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 20413 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 20414 # sets the default TLS model and affects inlining. 20415 case $host_cpu in 20416 hppa*64*) 20417 ;; 20418 *) 20419 lt_prog_compiler_pic_CXX='-fPIC' 20420 ;; 20421 esac 20422 ;; 20423 *qnx* | *nto*) 20424 # QNX uses GNU C++, but need to define -shared option too, otherwise 20425 # it will coredump. 20426 lt_prog_compiler_pic_CXX='-fPIC -shared' 20427 ;; 20428 *) 20429 lt_prog_compiler_pic_CXX='-fPIC' 20430 ;; 20431 esac 20432 else 20433 case $host_os in 20434 aix[4-9]*) 20435 # All AIX code is PIC. 20436 if test "$host_cpu" = ia64; then 20437 # AIX 5 now supports IA64 processor 20438 lt_prog_compiler_static_CXX='-Bstatic' 20439 else 20440 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 20441 fi 20442 ;; 20443 chorus*) 20444 case $cc_basename in 20445 cxch68*) 20446 # Green Hills C++ Compiler 20447 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 20448 ;; 20449 esac 20450 ;; 20451 mingw* | cygwin* | os2* | pw32* | cegcc*) 20452 # This hack is so that the source file can tell whether it is being 20453 # built for inclusion in a dll (and should export symbols for example). 20454 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 20455 ;; 20456 dgux*) 20457 case $cc_basename in 20458 ec++*) 20459 lt_prog_compiler_pic_CXX='-KPIC' 20460 ;; 20461 ghcx*) 20462 # Green Hills C++ Compiler 20463 lt_prog_compiler_pic_CXX='-pic' 20464 ;; 20465 *) 20466 ;; 20467 esac 20468 ;; 20469 freebsd* | dragonfly*) 20470 # FreeBSD uses GNU C++ 20471 ;; 20472 hpux9* | hpux10* | hpux11*) 20473 case $cc_basename in 20474 CC*) 20475 lt_prog_compiler_wl_CXX='-Wl,' 20476 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 20477 if test "$host_cpu" != ia64; then 20478 lt_prog_compiler_pic_CXX='+Z' 20479 fi 20480 ;; 20481 aCC*) 20482 lt_prog_compiler_wl_CXX='-Wl,' 20483 lt_prog_compiler_static_CXX='${wl}-a ${wl}archive' 20484 case $host_cpu in 20485 hppa*64*|ia64*) 20486 # +Z the default 20487 ;; 20488 *) 20489 lt_prog_compiler_pic_CXX='+Z' 20490 ;; 20491 esac 20492 ;; 20493 *) 20494 ;; 20495 esac 20496 ;; 20497 interix*) 20498 # This is c89, which is MS Visual C++ (no shared libs) 20499 # Anyone wants to do a port? 20500 ;; 20501 irix5* | irix6* | nonstopux*) 20502 case $cc_basename in 20503 CC*) 20504 lt_prog_compiler_wl_CXX='-Wl,' 20505 lt_prog_compiler_static_CXX='-non_shared' 20506 # CC pic flag -KPIC is the default. 20507 ;; 20508 *) 20509 ;; 20510 esac 20511 ;; 20512 linux* | k*bsd*-gnu | kopensolaris*-gnu) 20513 case $cc_basename in 20514 KCC*) 20515 # KAI C++ Compiler 20516 lt_prog_compiler_wl_CXX='--backend -Wl,' 20517 lt_prog_compiler_pic_CXX='-fPIC' 20518 ;; 20519 ecpc* ) 20520 # old Intel C++ for x86_64 which still supported -KPIC. 20521 lt_prog_compiler_wl_CXX='-Wl,' 20522 lt_prog_compiler_pic_CXX='-KPIC' 20523 lt_prog_compiler_static_CXX='-static' 20524 ;; 20525 icpc* ) 20526 # Intel C++, used to be incompatible with GCC. 20527 # ICC 10 doesn't accept -KPIC any more. 20528 lt_prog_compiler_wl_CXX='-Wl,' 20529 lt_prog_compiler_pic_CXX='-fPIC' 20530 lt_prog_compiler_static_CXX='-static' 20531 ;; 20532 pgCC* | pgcpp*) 20533 # Portland Group C++ compiler 20534 lt_prog_compiler_wl_CXX='-Wl,' 20535 lt_prog_compiler_pic_CXX='-fpic' 20536 lt_prog_compiler_static_CXX='-Bstatic' 20537 ;; 20538 cxx*) 20539 # Compaq C++ 20540 # Make sure the PIC flag is empty. It appears that all Alpha 20541 # Linux and Compaq Tru64 Unix objects are PIC. 20542 lt_prog_compiler_pic_CXX= 20543 lt_prog_compiler_static_CXX='-non_shared' 20544 ;; 20545 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 20546 # IBM XL 8.0, 9.0 on PPC and BlueGene 20547 lt_prog_compiler_wl_CXX='-Wl,' 20548 lt_prog_compiler_pic_CXX='-qpic' 20549 lt_prog_compiler_static_CXX='-qstaticlink' 20550 ;; 20551 *) 20552 case `$CC -V 2>&1 | sed 5q` in 20553 *Sun\ C*) 20554 # Sun C++ 5.9 20555 lt_prog_compiler_pic_CXX='-KPIC' 20556 lt_prog_compiler_static_CXX='-Bstatic' 20557 lt_prog_compiler_wl_CXX='-Qoption ld ' 20558 ;; 20559 esac 20560 ;; 20561 esac 20562 ;; 20563 lynxos*) 20564 ;; 20565 m88k*) 20566 ;; 20567 mvs*) 20568 case $cc_basename in 20569 cxx*) 20570 lt_prog_compiler_pic_CXX='-W c,exportall' 20571 ;; 20572 *) 20573 ;; 20574 esac 20575 ;; 20576 netbsd*) 20577 ;; 20578 *qnx* | *nto*) 20579 # QNX uses GNU C++, but need to define -shared option too, otherwise 20580 # it will coredump. 20581 lt_prog_compiler_pic_CXX='-fPIC -shared' 20582 ;; 20583 osf3* | osf4* | osf5*) 20584 case $cc_basename in 20585 KCC*) 20586 lt_prog_compiler_wl_CXX='--backend -Wl,' 20587 ;; 20588 RCC*) 20589 # Rational C++ 2.4.1 20590 lt_prog_compiler_pic_CXX='-pic' 20591 ;; 20592 cxx*) 20593 # Digital/Compaq C++ 20594 lt_prog_compiler_wl_CXX='-Wl,' 20595 # Make sure the PIC flag is empty. It appears that all Alpha 20596 # Linux and Compaq Tru64 Unix objects are PIC. 20597 lt_prog_compiler_pic_CXX= 20598 lt_prog_compiler_static_CXX='-non_shared' 20599 ;; 20600 *) 20601 ;; 20602 esac 20603 ;; 20604 psos*) 20605 ;; 20606 solaris*) 20607 case $cc_basename in 20608 CC* | sunCC*) 20609 # Sun C++ 4.2, 5.x and Centerline C++ 20610 lt_prog_compiler_pic_CXX='-KPIC' 20611 lt_prog_compiler_static_CXX='-Bstatic' 20612 lt_prog_compiler_wl_CXX='-Qoption ld ' 20613 ;; 20614 gcx*) 20615 # Green Hills C++ Compiler 20616 lt_prog_compiler_pic_CXX='-PIC' 20617 ;; 20618 *) 20619 ;; 20620 esac 20621 ;; 20622 sunos4*) 20623 case $cc_basename in 20624 CC*) 20625 # Sun C++ 4.x 20626 lt_prog_compiler_pic_CXX='-pic' 20627 lt_prog_compiler_static_CXX='-Bstatic' 20628 ;; 20629 lcc*) 20630 # Lucid 20631 lt_prog_compiler_pic_CXX='-pic' 20632 ;; 20633 *) 20634 ;; 20635 esac 20636 ;; 20637 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 20638 case $cc_basename in 20639 CC*) 20640 lt_prog_compiler_wl_CXX='-Wl,' 20641 lt_prog_compiler_pic_CXX='-KPIC' 20642 lt_prog_compiler_static_CXX='-Bstatic' 20643 ;; 20644 esac 20645 ;; 20646 tandem*) 20647 case $cc_basename in 20648 NCC*) 20649 # NonStop-UX NCC 3.20 20650 lt_prog_compiler_pic_CXX='-KPIC' 20651 ;; 20652 *) 20653 ;; 20654 esac 20655 ;; 20656 vxworks*) 20657 ;; 20658 *) 20659 lt_prog_compiler_can_build_shared_CXX=no 20660 ;; 20661 esac 20662 fi 20663 20664case $host_os in 20665 # For platforms which do not support PIC, -DPIC is meaningless: 20666 *djgpp*) 20667 lt_prog_compiler_pic_CXX= 20668 ;; 20669 *) 20670 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 20671 ;; 20672esac 20673 20674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 20675$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 20676if test "${lt_cv_prog_compiler_pic_CXX+set}" = set; then : 20677 $as_echo_n "(cached) " >&6 20678else 20679 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 20680fi 20681{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 20682$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 20683lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 20684 20685# 20686# Check to make sure the PIC flag actually works. 20687# 20688if test -n "$lt_prog_compiler_pic_CXX"; then 20689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 20690$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 20691if test "${lt_cv_prog_compiler_pic_works_CXX+set}" = set; then : 20692 $as_echo_n "(cached) " >&6 20693else 20694 lt_cv_prog_compiler_pic_works_CXX=no 20695 ac_outfile=conftest.$ac_objext 20696 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 20697 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 20698 # Insert the option either (1) after the last *FLAGS variable, or 20699 # (2) before a word containing "conftest.", or (3) at the end. 20700 # Note that $ac_compile itself does not contain backslashes and begins 20701 # with a dollar sign (not a hyphen), so the echo should work correctly. 20702 # The option is referenced via a variable to avoid confusing sed. 20703 lt_compile=`echo "$ac_compile" | $SED \ 20704 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 20705 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 20706 -e 's:$: $lt_compiler_flag:'` 20707 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 20708 (eval "$lt_compile" 2>conftest.err) 20709 ac_status=$? 20710 cat conftest.err >&5 20711 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20712 if (exit $ac_status) && test -s "$ac_outfile"; then 20713 # The compiler can only warn and ignore the option if not recognized 20714 # So say no if there are warnings other than the usual output. 20715 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 20716 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 20717 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 20718 lt_cv_prog_compiler_pic_works_CXX=yes 20719 fi 20720 fi 20721 $RM conftest* 20722 20723fi 20724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 20725$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 20726 20727if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then 20728 case $lt_prog_compiler_pic_CXX in 20729 "" | " "*) ;; 20730 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 20731 esac 20732else 20733 lt_prog_compiler_pic_CXX= 20734 lt_prog_compiler_can_build_shared_CXX=no 20735fi 20736 20737fi 20738 20739 20740 20741 20742 20743# 20744# Check to make sure the static flag actually works. 20745# 20746wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 20747{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 20748$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 20749if test "${lt_cv_prog_compiler_static_works_CXX+set}" = set; then : 20750 $as_echo_n "(cached) " >&6 20751else 20752 lt_cv_prog_compiler_static_works_CXX=no 20753 save_LDFLAGS="$LDFLAGS" 20754 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 20755 echo "$lt_simple_link_test_code" > conftest.$ac_ext 20756 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 20757 # The linker can only warn and ignore the option if not recognized 20758 # So say no if there are warnings 20759 if test -s conftest.err; then 20760 # Append any errors to the config.log. 20761 cat conftest.err 1>&5 20762 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 20763 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 20764 if diff conftest.exp conftest.er2 >/dev/null; then 20765 lt_cv_prog_compiler_static_works_CXX=yes 20766 fi 20767 else 20768 lt_cv_prog_compiler_static_works_CXX=yes 20769 fi 20770 fi 20771 $RM -r conftest* 20772 LDFLAGS="$save_LDFLAGS" 20773 20774fi 20775{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 20776$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 20777 20778if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then 20779 : 20780else 20781 lt_prog_compiler_static_CXX= 20782fi 20783 20784 20785 20786 20787 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 20788$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 20789if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : 20790 $as_echo_n "(cached) " >&6 20791else 20792 lt_cv_prog_compiler_c_o_CXX=no 20793 $RM -r conftest 2>/dev/null 20794 mkdir conftest 20795 cd conftest 20796 mkdir out 20797 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 20798 20799 lt_compiler_flag="-o out/conftest2.$ac_objext" 20800 # Insert the option either (1) after the last *FLAGS variable, or 20801 # (2) before a word containing "conftest.", or (3) at the end. 20802 # Note that $ac_compile itself does not contain backslashes and begins 20803 # with a dollar sign (not a hyphen), so the echo should work correctly. 20804 lt_compile=`echo "$ac_compile" | $SED \ 20805 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 20806 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 20807 -e 's:$: $lt_compiler_flag:'` 20808 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 20809 (eval "$lt_compile" 2>out/conftest.err) 20810 ac_status=$? 20811 cat out/conftest.err >&5 20812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20813 if (exit $ac_status) && test -s out/conftest2.$ac_objext 20814 then 20815 # The compiler can only warn and ignore the option if not recognized 20816 # So say no if there are warnings 20817 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 20818 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 20819 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 20820 lt_cv_prog_compiler_c_o_CXX=yes 20821 fi 20822 fi 20823 chmod u+w . 2>&5 20824 $RM conftest* 20825 # SGI C++ compiler will create directory out/ii_files/ for 20826 # template instantiation 20827 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 20828 $RM out/* && rmdir out 20829 cd .. 20830 $RM -r conftest 20831 $RM conftest* 20832 20833fi 20834{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 20835$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 20836 20837 20838 20839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 20840$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 20841if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then : 20842 $as_echo_n "(cached) " >&6 20843else 20844 lt_cv_prog_compiler_c_o_CXX=no 20845 $RM -r conftest 2>/dev/null 20846 mkdir conftest 20847 cd conftest 20848 mkdir out 20849 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 20850 20851 lt_compiler_flag="-o out/conftest2.$ac_objext" 20852 # Insert the option either (1) after the last *FLAGS variable, or 20853 # (2) before a word containing "conftest.", or (3) at the end. 20854 # Note that $ac_compile itself does not contain backslashes and begins 20855 # with a dollar sign (not a hyphen), so the echo should work correctly. 20856 lt_compile=`echo "$ac_compile" | $SED \ 20857 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 20858 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 20859 -e 's:$: $lt_compiler_flag:'` 20860 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 20861 (eval "$lt_compile" 2>out/conftest.err) 20862 ac_status=$? 20863 cat out/conftest.err >&5 20864 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20865 if (exit $ac_status) && test -s out/conftest2.$ac_objext 20866 then 20867 # The compiler can only warn and ignore the option if not recognized 20868 # So say no if there are warnings 20869 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 20870 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 20871 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 20872 lt_cv_prog_compiler_c_o_CXX=yes 20873 fi 20874 fi 20875 chmod u+w . 2>&5 20876 $RM conftest* 20877 # SGI C++ compiler will create directory out/ii_files/ for 20878 # template instantiation 20879 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 20880 $RM out/* && rmdir out 20881 cd .. 20882 $RM -r conftest 20883 $RM conftest* 20884 20885fi 20886{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 20887$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 20888 20889 20890 20891 20892hard_links="nottested" 20893if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 20894 # do not overwrite the value of need_locks provided by the user 20895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 20896$as_echo_n "checking if we can lock with hard links... " >&6; } 20897 hard_links=yes 20898 $RM conftest* 20899 ln conftest.a conftest.b 2>/dev/null && hard_links=no 20900 touch conftest.a 20901 ln conftest.a conftest.b 2>&5 || hard_links=no 20902 ln conftest.a conftest.b 2>/dev/null && hard_links=no 20903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 20904$as_echo "$hard_links" >&6; } 20905 if test "$hard_links" = no; then 20906 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 20907$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 20908 need_locks=warn 20909 fi 20910else 20911 need_locks=no 20912fi 20913 20914 20915 20916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 20917$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 20918 20919 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 20920 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 20921 case $host_os in 20922 aix[4-9]*) 20923 # If we're using GNU nm, then we don't want the "-C" option. 20924 # -C means demangle to AIX nm, but means don't demangle with GNU nm 20925 # Also, AIX nm treats weak defined symbols like other global defined 20926 # symbols, whereas GNU nm marks them as "W". 20927 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 20928 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 20929 else 20930 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' 20931 fi 20932 ;; 20933 pw32*) 20934 export_symbols_cmds_CXX="$ltdll_cmds" 20935 ;; 20936 cygwin* | mingw* | cegcc*) 20937 case $cc_basename in 20938 cl*) 20939 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 20940 ;; 20941 *) 20942 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 20943 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 20944 ;; 20945 esac 20946 ;; 20947 *) 20948 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 20949 ;; 20950 esac 20951 20952{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 20953$as_echo "$ld_shlibs_CXX" >&6; } 20954test "$ld_shlibs_CXX" = no && can_build_shared=no 20955 20956with_gnu_ld_CXX=$with_gnu_ld 20957 20958 20959 20960 20961 20962 20963# 20964# Do we need to explicitly link libc? 20965# 20966case "x$archive_cmds_need_lc_CXX" in 20967x|xyes) 20968 # Assume -lc should be added 20969 archive_cmds_need_lc_CXX=yes 20970 20971 if test "$enable_shared" = yes && test "$GCC" = yes; then 20972 case $archive_cmds_CXX in 20973 *'~'*) 20974 # FIXME: we may have to deal with multi-command sequences. 20975 ;; 20976 '$CC '*) 20977 # Test whether the compiler implicitly links with -lc since on some 20978 # systems, -lgcc has to come before -lc. If gcc already passes -lc 20979 # to ld, don't add -lc before -lgcc. 20980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 20981$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 20982if test "${lt_cv_archive_cmds_need_lc_CXX+set}" = set; then : 20983 $as_echo_n "(cached) " >&6 20984else 20985 $RM conftest* 20986 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 20987 20988 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 20989 (eval $ac_compile) 2>&5 20990 ac_status=$? 20991 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20992 test $ac_status = 0; } 2>conftest.err; then 20993 soname=conftest 20994 lib=conftest 20995 libobjs=conftest.$ac_objext 20996 deplibs= 20997 wl=$lt_prog_compiler_wl_CXX 20998 pic_flag=$lt_prog_compiler_pic_CXX 20999 compiler_flags=-v 21000 linker_flags=-v 21001 verstring= 21002 output_objdir=. 21003 libname=conftest 21004 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 21005 allow_undefined_flag_CXX= 21006 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 21007 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 21008 ac_status=$? 21009 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21010 test $ac_status = 0; } 21011 then 21012 lt_cv_archive_cmds_need_lc_CXX=no 21013 else 21014 lt_cv_archive_cmds_need_lc_CXX=yes 21015 fi 21016 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 21017 else 21018 cat conftest.err 1>&5 21019 fi 21020 $RM conftest* 21021 21022fi 21023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 21024$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 21025 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 21026 ;; 21027 esac 21028 fi 21029 ;; 21030esac 21031 21032 21033 21034 21035 21036 21037 21038 21039 21040 21041 21042 21043 21044 21045 21046 21047 21048 21049 21050 21051 21052 21053 21054 21055 21056 21057 21058 21059 21060 21061 21062 21063 21064 21065 21066 21067 21068 21069 21070 21071 21072 21073 21074 21075 21076 21077 21078 21079 21080 21081 21082 21083 21084 21085 21086 21087 21088 21089 21090 21091 21092 21093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 21094$as_echo_n "checking dynamic linker characteristics... " >&6; } 21095 21096library_names_spec= 21097libname_spec='lib$name' 21098soname_spec= 21099shrext_cmds=".so" 21100postinstall_cmds= 21101postuninstall_cmds= 21102finish_cmds= 21103finish_eval= 21104shlibpath_var= 21105shlibpath_overrides_runpath=unknown 21106version_type=none 21107dynamic_linker="$host_os ld.so" 21108sys_lib_dlsearch_path_spec="/lib /usr/lib" 21109need_lib_prefix=unknown 21110hardcode_into_libs=no 21111 21112# when you set need_version to no, make sure it does not cause -set_version 21113# flags to be left without arguments 21114need_version=unknown 21115 21116case $host_os in 21117aix3*) 21118 version_type=linux # correct to gnu/linux during the next big refactor 21119 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 21120 shlibpath_var=LIBPATH 21121 21122 # AIX 3 has no versioning support, so we append a major version to the name. 21123 soname_spec='${libname}${release}${shared_ext}$major' 21124 ;; 21125 21126aix[4-9]*) 21127 version_type=linux # correct to gnu/linux during the next big refactor 21128 need_lib_prefix=no 21129 need_version=no 21130 hardcode_into_libs=yes 21131 if test "$host_cpu" = ia64; then 21132 # AIX 5 supports IA64 21133 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 21134 shlibpath_var=LD_LIBRARY_PATH 21135 else 21136 # With GCC up to 2.95.x, collect2 would create an import file 21137 # for dependence libraries. The import file would start with 21138 # the line `#! .'. This would cause the generated library to 21139 # depend on `.', always an invalid library. This was fixed in 21140 # development snapshots of GCC prior to 3.0. 21141 case $host_os in 21142 aix4 | aix4.[01] | aix4.[01].*) 21143 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 21144 echo ' yes ' 21145 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 21146 : 21147 else 21148 can_build_shared=no 21149 fi 21150 ;; 21151 esac 21152 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 21153 # soname into executable. Probably we can add versioning support to 21154 # collect2, so additional links can be useful in future. 21155 if test "$aix_use_runtimelinking" = yes; then 21156 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 21157 # instead of lib<name>.a to let people know that these are not 21158 # typical AIX shared libraries. 21159 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21160 else 21161 # We preserve .a as extension for shared libraries through AIX4.2 21162 # and later when we are not doing run time linking. 21163 library_names_spec='${libname}${release}.a $libname.a' 21164 soname_spec='${libname}${release}${shared_ext}$major' 21165 fi 21166 shlibpath_var=LIBPATH 21167 fi 21168 ;; 21169 21170amigaos*) 21171 case $host_cpu in 21172 powerpc) 21173 # Since July 2007 AmigaOS4 officially supports .so libraries. 21174 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 21175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21176 ;; 21177 m68k) 21178 library_names_spec='$libname.ixlibrary $libname.a' 21179 # Create ${libname}_ixlibrary.a entries in /sys/libs. 21180 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 21181 ;; 21182 esac 21183 ;; 21184 21185beos*) 21186 library_names_spec='${libname}${shared_ext}' 21187 dynamic_linker="$host_os ld.so" 21188 shlibpath_var=LIBRARY_PATH 21189 ;; 21190 21191bsdi[45]*) 21192 version_type=linux # correct to gnu/linux during the next big refactor 21193 need_version=no 21194 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21195 soname_spec='${libname}${release}${shared_ext}$major' 21196 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 21197 shlibpath_var=LD_LIBRARY_PATH 21198 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 21199 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 21200 # the default ld.so.conf also contains /usr/contrib/lib and 21201 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 21202 # libtool to hard-code these into programs 21203 ;; 21204 21205cygwin* | mingw* | pw32* | cegcc*) 21206 version_type=windows 21207 shrext_cmds=".dll" 21208 need_version=no 21209 need_lib_prefix=no 21210 21211 case $GCC,$cc_basename in 21212 yes,*) 21213 # gcc 21214 library_names_spec='$libname.dll.a' 21215 # DLL is installed to $(libdir)/../bin by postinstall_cmds 21216 postinstall_cmds='base_file=`basename \${file}`~ 21217 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 21218 dldir=$destdir/`dirname \$dlpath`~ 21219 test -d \$dldir || mkdir -p \$dldir~ 21220 $install_prog $dir/$dlname \$dldir/$dlname~ 21221 chmod a+x \$dldir/$dlname~ 21222 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 21223 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 21224 fi' 21225 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 21226 dlpath=$dir/\$dldll~ 21227 $RM \$dlpath' 21228 shlibpath_overrides_runpath=yes 21229 21230 case $host_os in 21231 cygwin*) 21232 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 21233 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 21234 21235 ;; 21236 mingw* | cegcc*) 21237 # MinGW DLLs use traditional 'lib' prefix 21238 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 21239 ;; 21240 pw32*) 21241 # pw32 DLLs use 'pw' prefix rather than 'lib' 21242 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 21243 ;; 21244 esac 21245 dynamic_linker='Win32 ld.exe' 21246 ;; 21247 21248 *,cl*) 21249 # Native MSVC 21250 libname_spec='$name' 21251 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 21252 library_names_spec='${libname}.dll.lib' 21253 21254 case $build_os in 21255 mingw*) 21256 sys_lib_search_path_spec= 21257 lt_save_ifs=$IFS 21258 IFS=';' 21259 for lt_path in $LIB 21260 do 21261 IFS=$lt_save_ifs 21262 # Let DOS variable expansion print the short 8.3 style file name. 21263 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 21264 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 21265 done 21266 IFS=$lt_save_ifs 21267 # Convert to MSYS style. 21268 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 21269 ;; 21270 cygwin*) 21271 # Convert to unix form, then to dos form, then back to unix form 21272 # but this time dos style (no spaces!) so that the unix form looks 21273 # like /cygdrive/c/PROGRA~1:/cygdr... 21274 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 21275 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 21276 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 21277 ;; 21278 *) 21279 sys_lib_search_path_spec="$LIB" 21280 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 21281 # It is most probably a Windows format PATH. 21282 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 21283 else 21284 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 21285 fi 21286 # FIXME: find the short name or the path components, as spaces are 21287 # common. (e.g. "Program Files" -> "PROGRA~1") 21288 ;; 21289 esac 21290 21291 # DLL is installed to $(libdir)/../bin by postinstall_cmds 21292 postinstall_cmds='base_file=`basename \${file}`~ 21293 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 21294 dldir=$destdir/`dirname \$dlpath`~ 21295 test -d \$dldir || mkdir -p \$dldir~ 21296 $install_prog $dir/$dlname \$dldir/$dlname' 21297 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 21298 dlpath=$dir/\$dldll~ 21299 $RM \$dlpath' 21300 shlibpath_overrides_runpath=yes 21301 dynamic_linker='Win32 link.exe' 21302 ;; 21303 21304 *) 21305 # Assume MSVC wrapper 21306 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 21307 dynamic_linker='Win32 ld.exe' 21308 ;; 21309 esac 21310 # FIXME: first we should search . and the directory the executable is in 21311 shlibpath_var=PATH 21312 ;; 21313 21314darwin* | rhapsody*) 21315 dynamic_linker="$host_os dyld" 21316 version_type=darwin 21317 need_lib_prefix=no 21318 need_version=no 21319 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 21320 soname_spec='${libname}${release}${major}$shared_ext' 21321 shlibpath_overrides_runpath=yes 21322 shlibpath_var=DYLD_LIBRARY_PATH 21323 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 21324 21325 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 21326 ;; 21327 21328dgux*) 21329 version_type=linux # correct to gnu/linux during the next big refactor 21330 need_lib_prefix=no 21331 need_version=no 21332 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 21333 soname_spec='${libname}${release}${shared_ext}$major' 21334 shlibpath_var=LD_LIBRARY_PATH 21335 ;; 21336 21337freebsd* | dragonfly*) 21338 # DragonFly does not have aout. When/if they implement a new 21339 # versioning mechanism, adjust this. 21340 if test -x /usr/bin/objformat; then 21341 objformat=`/usr/bin/objformat` 21342 else 21343 case $host_os in 21344 freebsd[23].*) objformat=aout ;; 21345 *) objformat=elf ;; 21346 esac 21347 fi 21348 version_type=freebsd-$objformat 21349 case $version_type in 21350 freebsd-elf*) 21351 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 21352 need_version=no 21353 need_lib_prefix=no 21354 ;; 21355 freebsd-*) 21356 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 21357 need_version=yes 21358 ;; 21359 esac 21360 shlibpath_var=LD_LIBRARY_PATH 21361 case $host_os in 21362 freebsd2.*) 21363 shlibpath_overrides_runpath=yes 21364 ;; 21365 freebsd3.[01]* | freebsdelf3.[01]*) 21366 shlibpath_overrides_runpath=yes 21367 hardcode_into_libs=yes 21368 ;; 21369 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 21370 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 21371 shlibpath_overrides_runpath=no 21372 hardcode_into_libs=yes 21373 ;; 21374 *) # from 4.6 on, and DragonFly 21375 shlibpath_overrides_runpath=yes 21376 hardcode_into_libs=yes 21377 ;; 21378 esac 21379 ;; 21380 21381gnu*) 21382 version_type=linux # correct to gnu/linux during the next big refactor 21383 need_lib_prefix=no 21384 need_version=no 21385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 21386 soname_spec='${libname}${release}${shared_ext}$major' 21387 shlibpath_var=LD_LIBRARY_PATH 21388 shlibpath_overrides_runpath=no 21389 hardcode_into_libs=yes 21390 ;; 21391 21392haiku*) 21393 version_type=linux # correct to gnu/linux during the next big refactor 21394 need_lib_prefix=no 21395 need_version=no 21396 dynamic_linker="$host_os runtime_loader" 21397 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 21398 soname_spec='${libname}${release}${shared_ext}$major' 21399 shlibpath_var=LIBRARY_PATH 21400 shlibpath_overrides_runpath=yes 21401 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 21402 hardcode_into_libs=yes 21403 ;; 21404 21405hpux9* | hpux10* | hpux11*) 21406 # Give a soname corresponding to the major version so that dld.sl refuses to 21407 # link against other versions. 21408 version_type=sunos 21409 need_lib_prefix=no 21410 need_version=no 21411 case $host_cpu in 21412 ia64*) 21413 shrext_cmds='.so' 21414 hardcode_into_libs=yes 21415 dynamic_linker="$host_os dld.so" 21416 shlibpath_var=LD_LIBRARY_PATH 21417 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 21418 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21419 soname_spec='${libname}${release}${shared_ext}$major' 21420 if test "X$HPUX_IA64_MODE" = X32; then 21421 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 21422 else 21423 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 21424 fi 21425 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 21426 ;; 21427 hppa*64*) 21428 shrext_cmds='.sl' 21429 hardcode_into_libs=yes 21430 dynamic_linker="$host_os dld.sl" 21431 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 21432 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 21433 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21434 soname_spec='${libname}${release}${shared_ext}$major' 21435 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 21436 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 21437 ;; 21438 *) 21439 shrext_cmds='.sl' 21440 dynamic_linker="$host_os dld.sl" 21441 shlibpath_var=SHLIB_PATH 21442 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 21443 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21444 soname_spec='${libname}${release}${shared_ext}$major' 21445 ;; 21446 esac 21447 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 21448 postinstall_cmds='chmod 555 $lib' 21449 # or fails outright, so override atomically: 21450 install_override_mode=555 21451 ;; 21452 21453interix[3-9]*) 21454 version_type=linux # correct to gnu/linux during the next big refactor 21455 need_lib_prefix=no 21456 need_version=no 21457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 21458 soname_spec='${libname}${release}${shared_ext}$major' 21459 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 21460 shlibpath_var=LD_LIBRARY_PATH 21461 shlibpath_overrides_runpath=no 21462 hardcode_into_libs=yes 21463 ;; 21464 21465irix5* | irix6* | nonstopux*) 21466 case $host_os in 21467 nonstopux*) version_type=nonstopux ;; 21468 *) 21469 if test "$lt_cv_prog_gnu_ld" = yes; then 21470 version_type=linux # correct to gnu/linux during the next big refactor 21471 else 21472 version_type=irix 21473 fi ;; 21474 esac 21475 need_lib_prefix=no 21476 need_version=no 21477 soname_spec='${libname}${release}${shared_ext}$major' 21478 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 21479 case $host_os in 21480 irix5* | nonstopux*) 21481 libsuff= shlibsuff= 21482 ;; 21483 *) 21484 case $LD in # libtool.m4 will add one of these switches to LD 21485 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 21486 libsuff= shlibsuff= libmagic=32-bit;; 21487 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 21488 libsuff=32 shlibsuff=N32 libmagic=N32;; 21489 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 21490 libsuff=64 shlibsuff=64 libmagic=64-bit;; 21491 *) libsuff= shlibsuff= libmagic=never-match;; 21492 esac 21493 ;; 21494 esac 21495 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 21496 shlibpath_overrides_runpath=no 21497 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 21498 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 21499 hardcode_into_libs=yes 21500 ;; 21501 21502# No shared lib support for Linux oldld, aout, or coff. 21503linux*oldld* | linux*aout* | linux*coff*) 21504 dynamic_linker=no 21505 ;; 21506 21507# This must be glibc/ELF. 21508linux* | k*bsd*-gnu | kopensolaris*-gnu) 21509 version_type=linux # correct to gnu/linux during the next big refactor 21510 need_lib_prefix=no 21511 need_version=no 21512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21513 soname_spec='${libname}${release}${shared_ext}$major' 21514 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 21515 shlibpath_var=LD_LIBRARY_PATH 21516 shlibpath_overrides_runpath=no 21517 21518 # Some binutils ld are patched to set DT_RUNPATH 21519 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : 21520 $as_echo_n "(cached) " >&6 21521else 21522 lt_cv_shlibpath_overrides_runpath=no 21523 save_LDFLAGS=$LDFLAGS 21524 save_libdir=$libdir 21525 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 21526 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 21527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21528/* end confdefs.h. */ 21529 21530int 21531main () 21532{ 21533 21534 ; 21535 return 0; 21536} 21537_ACEOF 21538if ac_fn_cxx_try_link "$LINENO"; then : 21539 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 21540 lt_cv_shlibpath_overrides_runpath=yes 21541fi 21542fi 21543rm -f core conftest.err conftest.$ac_objext \ 21544 conftest$ac_exeext conftest.$ac_ext 21545 LDFLAGS=$save_LDFLAGS 21546 libdir=$save_libdir 21547 21548fi 21549 21550 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 21551 21552 # This implies no fast_install, which is unacceptable. 21553 # Some rework will be needed to allow for fast_install 21554 # before this can be enabled. 21555 hardcode_into_libs=yes 21556 21557 # Append ld.so.conf contents to the search path 21558 if test -f /etc/ld.so.conf; then 21559 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 21560 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 21561 fi 21562 21563 # We used to test for /lib/ld.so.1 and disable shared libraries on 21564 # powerpc, because MkLinux only supported shared libraries with the 21565 # GNU dynamic linker. Since this was broken with cross compilers, 21566 # most powerpc-linux boxes support dynamic linking these days and 21567 # people can always --disable-shared, the test was removed, and we 21568 # assume the GNU/Linux dynamic linker is in use. 21569 dynamic_linker='GNU/Linux ld.so' 21570 ;; 21571 21572netbsd*) 21573 version_type=sunos 21574 need_lib_prefix=no 21575 need_version=no 21576 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 21577 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 21578 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 21579 dynamic_linker='NetBSD (a.out) ld.so' 21580 else 21581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 21582 soname_spec='${libname}${release}${shared_ext}$major' 21583 dynamic_linker='NetBSD ld.elf_so' 21584 fi 21585 shlibpath_var=LD_LIBRARY_PATH 21586 shlibpath_overrides_runpath=yes 21587 hardcode_into_libs=yes 21588 ;; 21589 21590newsos6) 21591 version_type=linux # correct to gnu/linux during the next big refactor 21592 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21593 shlibpath_var=LD_LIBRARY_PATH 21594 shlibpath_overrides_runpath=yes 21595 ;; 21596 21597*nto* | *qnx*) 21598 version_type=qnx 21599 need_lib_prefix=no 21600 need_version=no 21601 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21602 soname_spec='${libname}${release}${shared_ext}$major' 21603 shlibpath_var=LD_LIBRARY_PATH 21604 shlibpath_overrides_runpath=no 21605 hardcode_into_libs=yes 21606 dynamic_linker='ldqnx.so' 21607 ;; 21608 21609openbsd*) 21610 version_type=sunos 21611 sys_lib_dlsearch_path_spec="/usr/lib" 21612 need_lib_prefix=no 21613 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 21614 case $host_os in 21615 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 21616 *) need_version=no ;; 21617 esac 21618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 21619 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 21620 shlibpath_var=LD_LIBRARY_PATH 21621 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 21622 case $host_os in 21623 openbsd2.[89] | openbsd2.[89].*) 21624 shlibpath_overrides_runpath=no 21625 ;; 21626 *) 21627 shlibpath_overrides_runpath=yes 21628 ;; 21629 esac 21630 else 21631 shlibpath_overrides_runpath=yes 21632 fi 21633 ;; 21634 21635os2*) 21636 libname_spec='$name' 21637 shrext_cmds=".dll" 21638 need_lib_prefix=no 21639 library_names_spec='$libname${shared_ext} $libname.a' 21640 dynamic_linker='OS/2 ld.exe' 21641 shlibpath_var=LIBPATH 21642 ;; 21643 21644osf3* | osf4* | osf5*) 21645 version_type=osf 21646 need_lib_prefix=no 21647 need_version=no 21648 soname_spec='${libname}${release}${shared_ext}$major' 21649 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21650 shlibpath_var=LD_LIBRARY_PATH 21651 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 21652 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 21653 ;; 21654 21655rdos*) 21656 dynamic_linker=no 21657 ;; 21658 21659solaris*) 21660 version_type=linux # correct to gnu/linux during the next big refactor 21661 need_lib_prefix=no 21662 need_version=no 21663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21664 soname_spec='${libname}${release}${shared_ext}$major' 21665 shlibpath_var=LD_LIBRARY_PATH 21666 shlibpath_overrides_runpath=yes 21667 hardcode_into_libs=yes 21668 # ldd complains unless libraries are executable 21669 postinstall_cmds='chmod +x $lib' 21670 ;; 21671 21672sunos4*) 21673 version_type=sunos 21674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 21675 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 21676 shlibpath_var=LD_LIBRARY_PATH 21677 shlibpath_overrides_runpath=yes 21678 if test "$with_gnu_ld" = yes; then 21679 need_lib_prefix=no 21680 fi 21681 need_version=yes 21682 ;; 21683 21684sysv4 | sysv4.3*) 21685 version_type=linux # correct to gnu/linux during the next big refactor 21686 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21687 soname_spec='${libname}${release}${shared_ext}$major' 21688 shlibpath_var=LD_LIBRARY_PATH 21689 case $host_vendor in 21690 sni) 21691 shlibpath_overrides_runpath=no 21692 need_lib_prefix=no 21693 runpath_var=LD_RUN_PATH 21694 ;; 21695 siemens) 21696 need_lib_prefix=no 21697 ;; 21698 motorola) 21699 need_lib_prefix=no 21700 need_version=no 21701 shlibpath_overrides_runpath=no 21702 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 21703 ;; 21704 esac 21705 ;; 21706 21707sysv4*MP*) 21708 if test -d /usr/nec ;then 21709 version_type=linux # correct to gnu/linux during the next big refactor 21710 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 21711 soname_spec='$libname${shared_ext}.$major' 21712 shlibpath_var=LD_LIBRARY_PATH 21713 fi 21714 ;; 21715 21716sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 21717 version_type=freebsd-elf 21718 need_lib_prefix=no 21719 need_version=no 21720 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 21721 soname_spec='${libname}${release}${shared_ext}$major' 21722 shlibpath_var=LD_LIBRARY_PATH 21723 shlibpath_overrides_runpath=yes 21724 hardcode_into_libs=yes 21725 if test "$with_gnu_ld" = yes; then 21726 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 21727 else 21728 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 21729 case $host_os in 21730 sco3.2v5*) 21731 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 21732 ;; 21733 esac 21734 fi 21735 sys_lib_dlsearch_path_spec='/usr/lib' 21736 ;; 21737 21738tpf*) 21739 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 21740 version_type=linux # correct to gnu/linux during the next big refactor 21741 need_lib_prefix=no 21742 need_version=no 21743 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21744 shlibpath_var=LD_LIBRARY_PATH 21745 shlibpath_overrides_runpath=no 21746 hardcode_into_libs=yes 21747 ;; 21748 21749uts4*) 21750 version_type=linux # correct to gnu/linux during the next big refactor 21751 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 21752 soname_spec='${libname}${release}${shared_ext}$major' 21753 shlibpath_var=LD_LIBRARY_PATH 21754 ;; 21755 21756*) 21757 dynamic_linker=no 21758 ;; 21759esac 21760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 21761$as_echo "$dynamic_linker" >&6; } 21762test "$dynamic_linker" = no && can_build_shared=no 21763 21764variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 21765if test "$GCC" = yes; then 21766 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 21767fi 21768 21769if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 21770 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 21771fi 21772if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 21773 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 21774fi 21775 21776 21777 21778 21779 21780 21781 21782 21783 21784 21785 21786 21787 21788 21789 21790 21791 21792 21793 21794 21795 21796 21797 21798 21799 21800 21801 21802 21803 21804 21805 21806 21807 21808 21809 21810 21811 21812 21813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 21814$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 21815hardcode_action_CXX= 21816if test -n "$hardcode_libdir_flag_spec_CXX" || 21817 test -n "$runpath_var_CXX" || 21818 test "X$hardcode_automatic_CXX" = "Xyes" ; then 21819 21820 # We can hardcode non-existent directories. 21821 if test "$hardcode_direct_CXX" != no && 21822 # If the only mechanism to avoid hardcoding is shlibpath_var, we 21823 # have to relink, otherwise we might link with an installed library 21824 # when we should be linking with a yet-to-be-installed one 21825 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 21826 test "$hardcode_minus_L_CXX" != no; then 21827 # Linking always hardcodes the temporary library directory. 21828 hardcode_action_CXX=relink 21829 else 21830 # We can link without hardcoding, and we can hardcode nonexisting dirs. 21831 hardcode_action_CXX=immediate 21832 fi 21833else 21834 # We cannot hardcode anything, or else we can only hardcode existing 21835 # directories. 21836 hardcode_action_CXX=unsupported 21837fi 21838{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 21839$as_echo "$hardcode_action_CXX" >&6; } 21840 21841if test "$hardcode_action_CXX" = relink || 21842 test "$inherit_rpath_CXX" = yes; then 21843 # Fast installation is not supported 21844 enable_fast_install=no 21845elif test "$shlibpath_overrides_runpath" = yes || 21846 test "$enable_shared" = no; then 21847 # Fast installation is not necessary 21848 enable_fast_install=needless 21849fi 21850 21851 21852 21853 21854 21855 21856 21857 fi # test -n "$compiler" 21858 21859 CC=$lt_save_CC 21860 CFLAGS=$lt_save_CFLAGS 21861 LDCXX=$LD 21862 LD=$lt_save_LD 21863 GCC=$lt_save_GCC 21864 with_gnu_ld=$lt_save_with_gnu_ld 21865 lt_cv_path_LDCXX=$lt_cv_path_LD 21866 lt_cv_path_LD=$lt_save_path_LD 21867 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 21868 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 21869fi # test "$_lt_caught_CXX_error" != yes 21870 21871ac_ext=c 21872ac_cpp='$CPP $CPPFLAGS' 21873ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21874ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21875ac_compiler_gnu=$ac_cv_c_compiler_gnu 21876 21877 21878 21879 ac_ext=f 21880ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 21881ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21882ac_compiler_gnu=$ac_cv_f77_compiler_gnu 21883 21884if test -z "$F77" || test "X$F77" = "Xno"; then 21885 _lt_disable_F77=yes 21886fi 21887 21888archive_cmds_need_lc_F77=no 21889allow_undefined_flag_F77= 21890always_export_symbols_F77=no 21891archive_expsym_cmds_F77= 21892export_dynamic_flag_spec_F77= 21893hardcode_direct_F77=no 21894hardcode_direct_absolute_F77=no 21895hardcode_libdir_flag_spec_F77= 21896hardcode_libdir_separator_F77= 21897hardcode_minus_L_F77=no 21898hardcode_automatic_F77=no 21899inherit_rpath_F77=no 21900module_cmds_F77= 21901module_expsym_cmds_F77= 21902link_all_deplibs_F77=unknown 21903old_archive_cmds_F77=$old_archive_cmds 21904reload_flag_F77=$reload_flag 21905reload_cmds_F77=$reload_cmds 21906no_undefined_flag_F77= 21907whole_archive_flag_spec_F77= 21908enable_shared_with_static_runtimes_F77=no 21909 21910# Source file extension for f77 test sources. 21911ac_ext=f 21912 21913# Object file extension for compiled f77 test sources. 21914objext=o 21915objext_F77=$objext 21916 21917# No sense in running all these tests if we already determined that 21918# the F77 compiler isn't working. Some variables (like enable_shared) 21919# are currently assumed to apply to all compilers on this platform, 21920# and will be corrupted by setting them based on a non-working compiler. 21921if test "$_lt_disable_F77" != yes; then 21922 # Code to be used in simple compile tests 21923 lt_simple_compile_test_code="\ 21924 subroutine t 21925 return 21926 end 21927" 21928 21929 # Code to be used in simple link tests 21930 lt_simple_link_test_code="\ 21931 program t 21932 end 21933" 21934 21935 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 21936 21937 21938 21939 21940 21941 21942# If no C compiler was specified, use CC. 21943LTCC=${LTCC-"$CC"} 21944 21945# If no C compiler flags were specified, use CFLAGS. 21946LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 21947 21948# Allow CC to be a program name with arguments. 21949compiler=$CC 21950 21951 21952 # save warnings/boilerplate of simple test code 21953 ac_outfile=conftest.$ac_objext 21954echo "$lt_simple_compile_test_code" >conftest.$ac_ext 21955eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 21956_lt_compiler_boilerplate=`cat conftest.err` 21957$RM conftest* 21958 21959 ac_outfile=conftest.$ac_objext 21960echo "$lt_simple_link_test_code" >conftest.$ac_ext 21961eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 21962_lt_linker_boilerplate=`cat conftest.err` 21963$RM -r conftest* 21964 21965 21966 # Allow CC to be a program name with arguments. 21967 lt_save_CC="$CC" 21968 lt_save_GCC=$GCC 21969 lt_save_CFLAGS=$CFLAGS 21970 CC=${F77-"f77"} 21971 CFLAGS=$FFLAGS 21972 compiler=$CC 21973 compiler_F77=$CC 21974 for cc_temp in $compiler""; do 21975 case $cc_temp in 21976 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 21977 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 21978 \-*) ;; 21979 *) break;; 21980 esac 21981done 21982cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 21983 21984 GCC=$G77 21985 if test -n "$compiler"; then 21986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 21987$as_echo_n "checking if libtool supports shared libraries... " >&6; } 21988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 21989$as_echo "$can_build_shared" >&6; } 21990 21991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 21992$as_echo_n "checking whether to build shared libraries... " >&6; } 21993 test "$can_build_shared" = "no" && enable_shared=no 21994 21995 # On AIX, shared libraries and static libraries use the same namespace, and 21996 # are all built from PIC. 21997 case $host_os in 21998 aix3*) 21999 test "$enable_shared" = yes && enable_static=no 22000 if test -n "$RANLIB"; then 22001 archive_cmds="$archive_cmds~\$RANLIB \$lib" 22002 postinstall_cmds='$RANLIB $lib' 22003 fi 22004 ;; 22005 aix[4-9]*) 22006 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 22007 test "$enable_shared" = yes && enable_static=no 22008 fi 22009 ;; 22010 esac 22011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 22012$as_echo "$enable_shared" >&6; } 22013 22014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 22015$as_echo_n "checking whether to build static libraries... " >&6; } 22016 # Make sure either enable_shared or enable_static is yes. 22017 test "$enable_shared" = yes || enable_static=yes 22018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 22019$as_echo "$enable_static" >&6; } 22020 22021 GCC_F77="$G77" 22022 LD_F77="$LD" 22023 22024 ## CAVEAT EMPTOR: 22025 ## There is no encapsulation within the following macros, do not change 22026 ## the running order or otherwise move them around unless you know exactly 22027 ## what you are doing... 22028 lt_prog_compiler_wl_F77= 22029lt_prog_compiler_pic_F77= 22030lt_prog_compiler_static_F77= 22031 22032 22033 if test "$GCC" = yes; then 22034 lt_prog_compiler_wl_F77='-Wl,' 22035 lt_prog_compiler_static_F77='-static' 22036 22037 case $host_os in 22038 aix*) 22039 # All AIX code is PIC. 22040 if test "$host_cpu" = ia64; then 22041 # AIX 5 now supports IA64 processor 22042 lt_prog_compiler_static_F77='-Bstatic' 22043 fi 22044 ;; 22045 22046 amigaos*) 22047 case $host_cpu in 22048 powerpc) 22049 # see comment about AmigaOS4 .so support 22050 lt_prog_compiler_pic_F77='-fPIC' 22051 ;; 22052 m68k) 22053 # FIXME: we need at least 68020 code to build shared libraries, but 22054 # adding the `-m68020' flag to GCC prevents building anything better, 22055 # like `-m68040'. 22056 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 22057 ;; 22058 esac 22059 ;; 22060 22061 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 22062 # PIC is the default for these OSes. 22063 ;; 22064 22065 mingw* | cygwin* | pw32* | os2* | cegcc*) 22066 # This hack is so that the source file can tell whether it is being 22067 # built for inclusion in a dll (and should export symbols for example). 22068 # Although the cygwin gcc ignores -fPIC, still need this for old-style 22069 # (--disable-auto-import) libraries 22070 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 22071 ;; 22072 22073 darwin* | rhapsody*) 22074 # PIC is the default on this platform 22075 # Common symbols not allowed in MH_DYLIB files 22076 lt_prog_compiler_pic_F77='-fno-common' 22077 ;; 22078 22079 haiku*) 22080 # PIC is the default for Haiku. 22081 # The "-static" flag exists, but is broken. 22082 lt_prog_compiler_static_F77= 22083 ;; 22084 22085 hpux*) 22086 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 22087 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 22088 # sets the default TLS model and affects inlining. 22089 case $host_cpu in 22090 hppa*64*) 22091 # +Z the default 22092 ;; 22093 *) 22094 lt_prog_compiler_pic_F77='-fPIC' 22095 ;; 22096 esac 22097 ;; 22098 22099 interix[3-9]*) 22100 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 22101 # Instead, we relocate shared libraries at runtime. 22102 ;; 22103 22104 msdosdjgpp*) 22105 # Just because we use GCC doesn't mean we suddenly get shared libraries 22106 # on systems that don't support them. 22107 lt_prog_compiler_can_build_shared_F77=no 22108 enable_shared=no 22109 ;; 22110 22111 *nto* | *qnx*) 22112 # QNX uses GNU C++, but need to define -shared option too, otherwise 22113 # it will coredump. 22114 lt_prog_compiler_pic_F77='-fPIC -shared' 22115 ;; 22116 22117 sysv4*MP*) 22118 if test -d /usr/nec; then 22119 lt_prog_compiler_pic_F77=-Kconform_pic 22120 fi 22121 ;; 22122 22123 *) 22124 lt_prog_compiler_pic_F77='-fPIC' 22125 ;; 22126 esac 22127 22128 case $cc_basename in 22129 nvcc*) # Cuda Compiler Driver 2.2 22130 lt_prog_compiler_wl_F77='-Xlinker ' 22131 if test -n "$lt_prog_compiler_pic_F77"; then 22132 lt_prog_compiler_pic_F77="-Xcompiler $lt_prog_compiler_pic_F77" 22133 fi 22134 ;; 22135 esac 22136 else 22137 # PORTME Check for flag to pass linker flags through the system compiler. 22138 case $host_os in 22139 aix*) 22140 lt_prog_compiler_wl_F77='-Wl,' 22141 if test "$host_cpu" = ia64; then 22142 # AIX 5 now supports IA64 processor 22143 lt_prog_compiler_static_F77='-Bstatic' 22144 else 22145 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 22146 fi 22147 ;; 22148 22149 mingw* | cygwin* | pw32* | os2* | cegcc*) 22150 # This hack is so that the source file can tell whether it is being 22151 # built for inclusion in a dll (and should export symbols for example). 22152 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 22153 ;; 22154 22155 hpux9* | hpux10* | hpux11*) 22156 lt_prog_compiler_wl_F77='-Wl,' 22157 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 22158 # not for PA HP-UX. 22159 case $host_cpu in 22160 hppa*64*|ia64*) 22161 # +Z the default 22162 ;; 22163 *) 22164 lt_prog_compiler_pic_F77='+Z' 22165 ;; 22166 esac 22167 # Is there a better lt_prog_compiler_static that works with the bundled CC? 22168 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 22169 ;; 22170 22171 irix5* | irix6* | nonstopux*) 22172 lt_prog_compiler_wl_F77='-Wl,' 22173 # PIC (with -KPIC) is the default. 22174 lt_prog_compiler_static_F77='-non_shared' 22175 ;; 22176 22177 linux* | k*bsd*-gnu | kopensolaris*-gnu) 22178 case $cc_basename in 22179 # old Intel for x86_64 which still supported -KPIC. 22180 ecc*) 22181 lt_prog_compiler_wl_F77='-Wl,' 22182 lt_prog_compiler_pic_F77='-KPIC' 22183 lt_prog_compiler_static_F77='-static' 22184 ;; 22185 # icc used to be incompatible with GCC. 22186 # ICC 10 doesn't accept -KPIC any more. 22187 icc* | ifort*) 22188 lt_prog_compiler_wl_F77='-Wl,' 22189 lt_prog_compiler_pic_F77='-fPIC' 22190 lt_prog_compiler_static_F77='-static' 22191 ;; 22192 # Lahey Fortran 8.1. 22193 lf95*) 22194 lt_prog_compiler_wl_F77='-Wl,' 22195 lt_prog_compiler_pic_F77='--shared' 22196 lt_prog_compiler_static_F77='--static' 22197 ;; 22198 nagfor*) 22199 # NAG Fortran compiler 22200 lt_prog_compiler_wl_F77='-Wl,-Wl,,' 22201 lt_prog_compiler_pic_F77='-PIC' 22202 lt_prog_compiler_static_F77='-Bstatic' 22203 ;; 22204 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 22205 # Portland Group compilers (*not* the Pentium gcc compiler, 22206 # which looks to be a dead project) 22207 lt_prog_compiler_wl_F77='-Wl,' 22208 lt_prog_compiler_pic_F77='-fpic' 22209 lt_prog_compiler_static_F77='-Bstatic' 22210 ;; 22211 ccc*) 22212 lt_prog_compiler_wl_F77='-Wl,' 22213 # All Alpha code is PIC. 22214 lt_prog_compiler_static_F77='-non_shared' 22215 ;; 22216 xl* | bgxl* | bgf* | mpixl*) 22217 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 22218 lt_prog_compiler_wl_F77='-Wl,' 22219 lt_prog_compiler_pic_F77='-qpic' 22220 lt_prog_compiler_static_F77='-qstaticlink' 22221 ;; 22222 *) 22223 case `$CC -V 2>&1 | sed 5q` in 22224 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 22225 # Sun Fortran 8.3 passes all unrecognized flags to the linker 22226 lt_prog_compiler_pic_F77='-KPIC' 22227 lt_prog_compiler_static_F77='-Bstatic' 22228 lt_prog_compiler_wl_F77='' 22229 ;; 22230 *Sun\ F* | *Sun*Fortran*) 22231 lt_prog_compiler_pic_F77='-KPIC' 22232 lt_prog_compiler_static_F77='-Bstatic' 22233 lt_prog_compiler_wl_F77='-Qoption ld ' 22234 ;; 22235 *Sun\ C*) 22236 # Sun C 5.9 22237 lt_prog_compiler_pic_F77='-KPIC' 22238 lt_prog_compiler_static_F77='-Bstatic' 22239 lt_prog_compiler_wl_F77='-Wl,' 22240 ;; 22241 *Intel*\ [CF]*Compiler*) 22242 lt_prog_compiler_wl_F77='-Wl,' 22243 lt_prog_compiler_pic_F77='-fPIC' 22244 lt_prog_compiler_static_F77='-static' 22245 ;; 22246 *Portland\ Group*) 22247 lt_prog_compiler_wl_F77='-Wl,' 22248 lt_prog_compiler_pic_F77='-fpic' 22249 lt_prog_compiler_static_F77='-Bstatic' 22250 ;; 22251 esac 22252 ;; 22253 esac 22254 ;; 22255 22256 newsos6) 22257 lt_prog_compiler_pic_F77='-KPIC' 22258 lt_prog_compiler_static_F77='-Bstatic' 22259 ;; 22260 22261 *nto* | *qnx*) 22262 # QNX uses GNU C++, but need to define -shared option too, otherwise 22263 # it will coredump. 22264 lt_prog_compiler_pic_F77='-fPIC -shared' 22265 ;; 22266 22267 osf3* | osf4* | osf5*) 22268 lt_prog_compiler_wl_F77='-Wl,' 22269 # All OSF/1 code is PIC. 22270 lt_prog_compiler_static_F77='-non_shared' 22271 ;; 22272 22273 rdos*) 22274 lt_prog_compiler_static_F77='-non_shared' 22275 ;; 22276 22277 solaris*) 22278 lt_prog_compiler_pic_F77='-KPIC' 22279 lt_prog_compiler_static_F77='-Bstatic' 22280 case $cc_basename in 22281 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 22282 lt_prog_compiler_wl_F77='-Qoption ld ';; 22283 *) 22284 lt_prog_compiler_wl_F77='-Wl,';; 22285 esac 22286 ;; 22287 22288 sunos4*) 22289 lt_prog_compiler_wl_F77='-Qoption ld ' 22290 lt_prog_compiler_pic_F77='-PIC' 22291 lt_prog_compiler_static_F77='-Bstatic' 22292 ;; 22293 22294 sysv4 | sysv4.2uw2* | sysv4.3*) 22295 lt_prog_compiler_wl_F77='-Wl,' 22296 lt_prog_compiler_pic_F77='-KPIC' 22297 lt_prog_compiler_static_F77='-Bstatic' 22298 ;; 22299 22300 sysv4*MP*) 22301 if test -d /usr/nec ;then 22302 lt_prog_compiler_pic_F77='-Kconform_pic' 22303 lt_prog_compiler_static_F77='-Bstatic' 22304 fi 22305 ;; 22306 22307 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 22308 lt_prog_compiler_wl_F77='-Wl,' 22309 lt_prog_compiler_pic_F77='-KPIC' 22310 lt_prog_compiler_static_F77='-Bstatic' 22311 ;; 22312 22313 unicos*) 22314 lt_prog_compiler_wl_F77='-Wl,' 22315 lt_prog_compiler_can_build_shared_F77=no 22316 ;; 22317 22318 uts4*) 22319 lt_prog_compiler_pic_F77='-pic' 22320 lt_prog_compiler_static_F77='-Bstatic' 22321 ;; 22322 22323 *) 22324 lt_prog_compiler_can_build_shared_F77=no 22325 ;; 22326 esac 22327 fi 22328 22329case $host_os in 22330 # For platforms which do not support PIC, -DPIC is meaningless: 22331 *djgpp*) 22332 lt_prog_compiler_pic_F77= 22333 ;; 22334 *) 22335 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 22336 ;; 22337esac 22338 22339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 22340$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 22341if test "${lt_cv_prog_compiler_pic_F77+set}" = set; then : 22342 $as_echo_n "(cached) " >&6 22343else 22344 lt_cv_prog_compiler_pic_F77=$lt_prog_compiler_pic_F77 22345fi 22346{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_F77" >&5 22347$as_echo "$lt_cv_prog_compiler_pic_F77" >&6; } 22348lt_prog_compiler_pic_F77=$lt_cv_prog_compiler_pic_F77 22349 22350# 22351# Check to make sure the PIC flag actually works. 22352# 22353if test -n "$lt_prog_compiler_pic_F77"; then 22354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 22355$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... " >&6; } 22356if test "${lt_cv_prog_compiler_pic_works_F77+set}" = set; then : 22357 $as_echo_n "(cached) " >&6 22358else 22359 lt_cv_prog_compiler_pic_works_F77=no 22360 ac_outfile=conftest.$ac_objext 22361 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 22362 lt_compiler_flag="$lt_prog_compiler_pic_F77" 22363 # Insert the option either (1) after the last *FLAGS variable, or 22364 # (2) before a word containing "conftest.", or (3) at the end. 22365 # Note that $ac_compile itself does not contain backslashes and begins 22366 # with a dollar sign (not a hyphen), so the echo should work correctly. 22367 # The option is referenced via a variable to avoid confusing sed. 22368 lt_compile=`echo "$ac_compile" | $SED \ 22369 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 22370 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 22371 -e 's:$: $lt_compiler_flag:'` 22372 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 22373 (eval "$lt_compile" 2>conftest.err) 22374 ac_status=$? 22375 cat conftest.err >&5 22376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22377 if (exit $ac_status) && test -s "$ac_outfile"; then 22378 # The compiler can only warn and ignore the option if not recognized 22379 # So say no if there are warnings other than the usual output. 22380 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 22381 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 22382 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 22383 lt_cv_prog_compiler_pic_works_F77=yes 22384 fi 22385 fi 22386 $RM conftest* 22387 22388fi 22389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_F77" >&5 22390$as_echo "$lt_cv_prog_compiler_pic_works_F77" >&6; } 22391 22392if test x"$lt_cv_prog_compiler_pic_works_F77" = xyes; then 22393 case $lt_prog_compiler_pic_F77 in 22394 "" | " "*) ;; 22395 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 22396 esac 22397else 22398 lt_prog_compiler_pic_F77= 22399 lt_prog_compiler_can_build_shared_F77=no 22400fi 22401 22402fi 22403 22404 22405 22406 22407 22408# 22409# Check to make sure the static flag actually works. 22410# 22411wl=$lt_prog_compiler_wl_F77 eval lt_tmp_static_flag=\"$lt_prog_compiler_static_F77\" 22412{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 22413$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 22414if test "${lt_cv_prog_compiler_static_works_F77+set}" = set; then : 22415 $as_echo_n "(cached) " >&6 22416else 22417 lt_cv_prog_compiler_static_works_F77=no 22418 save_LDFLAGS="$LDFLAGS" 22419 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 22420 echo "$lt_simple_link_test_code" > conftest.$ac_ext 22421 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 22422 # The linker can only warn and ignore the option if not recognized 22423 # So say no if there are warnings 22424 if test -s conftest.err; then 22425 # Append any errors to the config.log. 22426 cat conftest.err 1>&5 22427 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 22428 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 22429 if diff conftest.exp conftest.er2 >/dev/null; then 22430 lt_cv_prog_compiler_static_works_F77=yes 22431 fi 22432 else 22433 lt_cv_prog_compiler_static_works_F77=yes 22434 fi 22435 fi 22436 $RM -r conftest* 22437 LDFLAGS="$save_LDFLAGS" 22438 22439fi 22440{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_F77" >&5 22441$as_echo "$lt_cv_prog_compiler_static_works_F77" >&6; } 22442 22443if test x"$lt_cv_prog_compiler_static_works_F77" = xyes; then 22444 : 22445else 22446 lt_prog_compiler_static_F77= 22447fi 22448 22449 22450 22451 22452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 22453$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 22454if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then : 22455 $as_echo_n "(cached) " >&6 22456else 22457 lt_cv_prog_compiler_c_o_F77=no 22458 $RM -r conftest 2>/dev/null 22459 mkdir conftest 22460 cd conftest 22461 mkdir out 22462 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 22463 22464 lt_compiler_flag="-o out/conftest2.$ac_objext" 22465 # Insert the option either (1) after the last *FLAGS variable, or 22466 # (2) before a word containing "conftest.", or (3) at the end. 22467 # Note that $ac_compile itself does not contain backslashes and begins 22468 # with a dollar sign (not a hyphen), so the echo should work correctly. 22469 lt_compile=`echo "$ac_compile" | $SED \ 22470 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 22471 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 22472 -e 's:$: $lt_compiler_flag:'` 22473 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 22474 (eval "$lt_compile" 2>out/conftest.err) 22475 ac_status=$? 22476 cat out/conftest.err >&5 22477 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22478 if (exit $ac_status) && test -s out/conftest2.$ac_objext 22479 then 22480 # The compiler can only warn and ignore the option if not recognized 22481 # So say no if there are warnings 22482 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 22483 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 22484 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 22485 lt_cv_prog_compiler_c_o_F77=yes 22486 fi 22487 fi 22488 chmod u+w . 2>&5 22489 $RM conftest* 22490 # SGI C++ compiler will create directory out/ii_files/ for 22491 # template instantiation 22492 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 22493 $RM out/* && rmdir out 22494 cd .. 22495 $RM -r conftest 22496 $RM conftest* 22497 22498fi 22499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5 22500$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; } 22501 22502 22503 22504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 22505$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 22506if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then : 22507 $as_echo_n "(cached) " >&6 22508else 22509 lt_cv_prog_compiler_c_o_F77=no 22510 $RM -r conftest 2>/dev/null 22511 mkdir conftest 22512 cd conftest 22513 mkdir out 22514 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 22515 22516 lt_compiler_flag="-o out/conftest2.$ac_objext" 22517 # Insert the option either (1) after the last *FLAGS variable, or 22518 # (2) before a word containing "conftest.", or (3) at the end. 22519 # Note that $ac_compile itself does not contain backslashes and begins 22520 # with a dollar sign (not a hyphen), so the echo should work correctly. 22521 lt_compile=`echo "$ac_compile" | $SED \ 22522 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 22523 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 22524 -e 's:$: $lt_compiler_flag:'` 22525 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 22526 (eval "$lt_compile" 2>out/conftest.err) 22527 ac_status=$? 22528 cat out/conftest.err >&5 22529 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22530 if (exit $ac_status) && test -s out/conftest2.$ac_objext 22531 then 22532 # The compiler can only warn and ignore the option if not recognized 22533 # So say no if there are warnings 22534 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 22535 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 22536 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 22537 lt_cv_prog_compiler_c_o_F77=yes 22538 fi 22539 fi 22540 chmod u+w . 2>&5 22541 $RM conftest* 22542 # SGI C++ compiler will create directory out/ii_files/ for 22543 # template instantiation 22544 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 22545 $RM out/* && rmdir out 22546 cd .. 22547 $RM -r conftest 22548 $RM conftest* 22549 22550fi 22551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_F77" >&5 22552$as_echo "$lt_cv_prog_compiler_c_o_F77" >&6; } 22553 22554 22555 22556 22557hard_links="nottested" 22558if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 22559 # do not overwrite the value of need_locks provided by the user 22560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 22561$as_echo_n "checking if we can lock with hard links... " >&6; } 22562 hard_links=yes 22563 $RM conftest* 22564 ln conftest.a conftest.b 2>/dev/null && hard_links=no 22565 touch conftest.a 22566 ln conftest.a conftest.b 2>&5 || hard_links=no 22567 ln conftest.a conftest.b 2>/dev/null && hard_links=no 22568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 22569$as_echo "$hard_links" >&6; } 22570 if test "$hard_links" = no; then 22571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 22572$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 22573 need_locks=warn 22574 fi 22575else 22576 need_locks=no 22577fi 22578 22579 22580 22581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 22582$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 22583 22584 runpath_var= 22585 allow_undefined_flag_F77= 22586 always_export_symbols_F77=no 22587 archive_cmds_F77= 22588 archive_expsym_cmds_F77= 22589 compiler_needs_object_F77=no 22590 enable_shared_with_static_runtimes_F77=no 22591 export_dynamic_flag_spec_F77= 22592 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 22593 hardcode_automatic_F77=no 22594 hardcode_direct_F77=no 22595 hardcode_direct_absolute_F77=no 22596 hardcode_libdir_flag_spec_F77= 22597 hardcode_libdir_separator_F77= 22598 hardcode_minus_L_F77=no 22599 hardcode_shlibpath_var_F77=unsupported 22600 inherit_rpath_F77=no 22601 link_all_deplibs_F77=unknown 22602 module_cmds_F77= 22603 module_expsym_cmds_F77= 22604 old_archive_from_new_cmds_F77= 22605 old_archive_from_expsyms_cmds_F77= 22606 thread_safe_flag_spec_F77= 22607 whole_archive_flag_spec_F77= 22608 # include_expsyms should be a list of space-separated symbols to be *always* 22609 # included in the symbol list 22610 include_expsyms_F77= 22611 # exclude_expsyms can be an extended regexp of symbols to exclude 22612 # it will be wrapped by ` (' and `)$', so one must not match beginning or 22613 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 22614 # as well as any symbol that contains `d'. 22615 exclude_expsyms_F77='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 22616 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 22617 # platforms (ab)use it in PIC code, but their linkers get confused if 22618 # the symbol is explicitly referenced. Since portable code cannot 22619 # rely on this symbol name, it's probably fine to never include it in 22620 # preloaded symbol tables. 22621 # Exclude shared library initialization/finalization symbols. 22622 extract_expsyms_cmds= 22623 22624 case $host_os in 22625 cygwin* | mingw* | pw32* | cegcc*) 22626 # FIXME: the MSVC++ port hasn't been tested in a loooong time 22627 # When not using gcc, we currently assume that we are using 22628 # Microsoft Visual C++. 22629 if test "$GCC" != yes; then 22630 with_gnu_ld=no 22631 fi 22632 ;; 22633 interix*) 22634 # we just hope/assume this is gcc and not c89 (= MSVC++) 22635 with_gnu_ld=yes 22636 ;; 22637 openbsd*) 22638 with_gnu_ld=no 22639 ;; 22640 esac 22641 22642 ld_shlibs_F77=yes 22643 22644 # On some targets, GNU ld is compatible enough with the native linker 22645 # that we're better off using the native interface for both. 22646 lt_use_gnu_ld_interface=no 22647 if test "$with_gnu_ld" = yes; then 22648 case $host_os in 22649 aix*) 22650 # The AIX port of GNU ld has always aspired to compatibility 22651 # with the native linker. However, as the warning in the GNU ld 22652 # block says, versions before 2.19.5* couldn't really create working 22653 # shared libraries, regardless of the interface used. 22654 case `$LD -v 2>&1` in 22655 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 22656 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 22657 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 22658 *) 22659 lt_use_gnu_ld_interface=yes 22660 ;; 22661 esac 22662 ;; 22663 *) 22664 lt_use_gnu_ld_interface=yes 22665 ;; 22666 esac 22667 fi 22668 22669 if test "$lt_use_gnu_ld_interface" = yes; then 22670 # If archive_cmds runs LD, not CC, wlarc should be empty 22671 wlarc='${wl}' 22672 22673 # Set some defaults for GNU ld with shared library support. These 22674 # are reset later if shared libraries are not supported. Putting them 22675 # here allows them to be overridden if necessary. 22676 runpath_var=LD_RUN_PATH 22677 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 22678 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 22679 # ancient GNU ld didn't support --whole-archive et. al. 22680 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 22681 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 22682 else 22683 whole_archive_flag_spec_F77= 22684 fi 22685 supports_anon_versioning=no 22686 case `$LD -v 2>&1` in 22687 *GNU\ gold*) supports_anon_versioning=yes ;; 22688 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 22689 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 22690 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 22691 *\ 2.11.*) ;; # other 2.11 versions 22692 *) supports_anon_versioning=yes ;; 22693 esac 22694 22695 # See if GNU ld supports shared libraries. 22696 case $host_os in 22697 aix[3-9]*) 22698 # On AIX/PPC, the GNU linker is very broken 22699 if test "$host_cpu" != ia64; then 22700 ld_shlibs_F77=no 22701 cat <<_LT_EOF 1>&2 22702 22703*** Warning: the GNU linker, at least up to release 2.19, is reported 22704*** to be unable to reliably create shared libraries on AIX. 22705*** Therefore, libtool is disabling shared libraries support. If you 22706*** really care for shared libraries, you may want to install binutils 22707*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 22708*** You will then need to restart the configuration process. 22709 22710_LT_EOF 22711 fi 22712 ;; 22713 22714 amigaos*) 22715 case $host_cpu in 22716 powerpc) 22717 # see comment about AmigaOS4 .so support 22718 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 22719 archive_expsym_cmds_F77='' 22720 ;; 22721 m68k) 22722 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)' 22723 hardcode_libdir_flag_spec_F77='-L$libdir' 22724 hardcode_minus_L_F77=yes 22725 ;; 22726 esac 22727 ;; 22728 22729 beos*) 22730 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 22731 allow_undefined_flag_F77=unsupported 22732 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 22733 # support --undefined. This deserves some investigation. FIXME 22734 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 22735 else 22736 ld_shlibs_F77=no 22737 fi 22738 ;; 22739 22740 cygwin* | mingw* | pw32* | cegcc*) 22741 # _LT_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 22742 # as there is no search path for DLLs. 22743 hardcode_libdir_flag_spec_F77='-L$libdir' 22744 export_dynamic_flag_spec_F77='${wl}--export-all-symbols' 22745 allow_undefined_flag_F77=unsupported 22746 always_export_symbols_F77=no 22747 enable_shared_with_static_runtimes_F77=yes 22748 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 22749 exclude_expsyms_F77='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 22750 22751 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 22752 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 22753 # If the export-symbols file already is a .def file (1st line 22754 # is EXPORTS), use it as is; otherwise, prepend... 22755 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 22756 cp $export_symbols $output_objdir/$soname.def; 22757 else 22758 echo EXPORTS > $output_objdir/$soname.def; 22759 cat $export_symbols >> $output_objdir/$soname.def; 22760 fi~ 22761 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 22762 else 22763 ld_shlibs_F77=no 22764 fi 22765 ;; 22766 22767 haiku*) 22768 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 22769 link_all_deplibs_F77=yes 22770 ;; 22771 22772 interix[3-9]*) 22773 hardcode_direct_F77=no 22774 hardcode_shlibpath_var_F77=no 22775 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 22776 export_dynamic_flag_spec_F77='${wl}-E' 22777 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 22778 # Instead, shared libraries are loaded at an image base (0x10000000 by 22779 # default) and relocated if they conflict, which is a slow very memory 22780 # consuming and fragmenting process. To avoid this, we pick a random, 22781 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 22782 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 22783 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 22784 archive_expsym_cmds_F77='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 22785 ;; 22786 22787 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 22788 tmp_diet=no 22789 if test "$host_os" = linux-dietlibc; then 22790 case $cc_basename in 22791 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 22792 esac 22793 fi 22794 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 22795 && test "$tmp_diet" = no 22796 then 22797 tmp_addflag=' $pic_flag' 22798 tmp_sharedflag='-shared' 22799 case $cc_basename,$host_cpu in 22800 pgcc*) # Portland Group C compiler 22801 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 22802 tmp_addflag=' $pic_flag' 22803 ;; 22804 pgf77* | pgf90* | pgf95* | pgfortran*) 22805 # Portland Group f77 and f90 compilers 22806 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 22807 tmp_addflag=' $pic_flag -Mnomain' ;; 22808 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 22809 tmp_addflag=' -i_dynamic' ;; 22810 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 22811 tmp_addflag=' -i_dynamic -nofor_main' ;; 22812 ifc* | ifort*) # Intel Fortran compiler 22813 tmp_addflag=' -nofor_main' ;; 22814 lf95*) # Lahey Fortran 8.1 22815 whole_archive_flag_spec_F77= 22816 tmp_sharedflag='--shared' ;; 22817 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 22818 tmp_sharedflag='-qmkshrobj' 22819 tmp_addflag= ;; 22820 nvcc*) # Cuda Compiler Driver 2.2 22821 whole_archive_flag_spec_F77='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 22822 compiler_needs_object_F77=yes 22823 ;; 22824 esac 22825 case `$CC -V 2>&1 | sed 5q` in 22826 *Sun\ C*) # Sun C 5.9 22827 whole_archive_flag_spec_F77='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 22828 compiler_needs_object_F77=yes 22829 tmp_sharedflag='-G' ;; 22830 *Sun\ F*) # Sun Fortran 8.3 22831 tmp_sharedflag='-G' ;; 22832 esac 22833 archive_cmds_F77='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 22834 22835 if test "x$supports_anon_versioning" = xyes; then 22836 archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~ 22837 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 22838 echo "local: *; };" >> $output_objdir/$libname.ver~ 22839 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 22840 fi 22841 22842 case $cc_basename in 22843 xlf* | bgf* | bgxlf* | mpixlf*) 22844 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 22845 whole_archive_flag_spec_F77='--whole-archive$convenience --no-whole-archive' 22846 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 22847 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 22848 if test "x$supports_anon_versioning" = xyes; then 22849 archive_expsym_cmds_F77='echo "{ global:" > $output_objdir/$libname.ver~ 22850 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 22851 echo "local: *; };" >> $output_objdir/$libname.ver~ 22852 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 22853 fi 22854 ;; 22855 esac 22856 else 22857 ld_shlibs_F77=no 22858 fi 22859 ;; 22860 22861 netbsd*) 22862 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 22863 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 22864 wlarc= 22865 else 22866 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 22867 archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 22868 fi 22869 ;; 22870 22871 solaris*) 22872 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 22873 ld_shlibs_F77=no 22874 cat <<_LT_EOF 1>&2 22875 22876*** Warning: The releases 2.8.* of the GNU linker cannot reliably 22877*** create shared libraries on Solaris systems. Therefore, libtool 22878*** is disabling shared libraries support. We urge you to upgrade GNU 22879*** binutils to release 2.9.1 or newer. Another option is to modify 22880*** your PATH or compiler configuration so that the native linker is 22881*** used, and then restart. 22882 22883_LT_EOF 22884 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 22885 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 22886 archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 22887 else 22888 ld_shlibs_F77=no 22889 fi 22890 ;; 22891 22892 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 22893 case `$LD -v 2>&1` in 22894 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 22895 ld_shlibs_F77=no 22896 cat <<_LT_EOF 1>&2 22897 22898*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 22899*** reliably create shared libraries on SCO systems. Therefore, libtool 22900*** is disabling shared libraries support. We urge you to upgrade GNU 22901*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 22902*** your PATH or compiler configuration so that the native linker is 22903*** used, and then restart. 22904 22905_LT_EOF 22906 ;; 22907 *) 22908 # For security reasons, it is highly recommended that you always 22909 # use absolute paths for naming shared libraries, and exclude the 22910 # DT_RUNPATH tag from executables and libraries. But doing so 22911 # requires that you compile everything twice, which is a pain. 22912 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 22913 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 22914 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 22915 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 22916 else 22917 ld_shlibs_F77=no 22918 fi 22919 ;; 22920 esac 22921 ;; 22922 22923 sunos4*) 22924 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 22925 wlarc= 22926 hardcode_direct_F77=yes 22927 hardcode_shlibpath_var_F77=no 22928 ;; 22929 22930 *) 22931 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 22932 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 22933 archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 22934 else 22935 ld_shlibs_F77=no 22936 fi 22937 ;; 22938 esac 22939 22940 if test "$ld_shlibs_F77" = no; then 22941 runpath_var= 22942 hardcode_libdir_flag_spec_F77= 22943 export_dynamic_flag_spec_F77= 22944 whole_archive_flag_spec_F77= 22945 fi 22946 else 22947 # PORTME fill in a description of your system's linker (not GNU ld) 22948 case $host_os in 22949 aix3*) 22950 allow_undefined_flag_F77=unsupported 22951 always_export_symbols_F77=yes 22952 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' 22953 # Note: this linker hardcodes the directories in LIBPATH if there 22954 # are no directories specified by -L. 22955 hardcode_minus_L_F77=yes 22956 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 22957 # Neither direct hardcoding nor static linking is supported with a 22958 # broken collect2. 22959 hardcode_direct_F77=unsupported 22960 fi 22961 ;; 22962 22963 aix[4-9]*) 22964 if test "$host_cpu" = ia64; then 22965 # On IA64, the linker does run time linking by default, so we don't 22966 # have to do anything special. 22967 aix_use_runtimelinking=no 22968 exp_sym_flag='-Bexport' 22969 no_entry_flag="" 22970 else 22971 # If we're using GNU nm, then we don't want the "-C" option. 22972 # -C means demangle to AIX nm, but means don't demangle with GNU nm 22973 # Also, AIX nm treats weak defined symbols like other global 22974 # defined symbols, whereas GNU nm marks them as "W". 22975 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 22976 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 22977 else 22978 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' 22979 fi 22980 aix_use_runtimelinking=no 22981 22982 # Test if we are trying to use run time linking or normal 22983 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 22984 # need to do runtime linking. 22985 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 22986 for ld_flag in $LDFLAGS; do 22987 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 22988 aix_use_runtimelinking=yes 22989 break 22990 fi 22991 done 22992 ;; 22993 esac 22994 22995 exp_sym_flag='-bexport' 22996 no_entry_flag='-bnoentry' 22997 fi 22998 22999 # When large executables or shared objects are built, AIX ld can 23000 # have problems creating the table of contents. If linking a library 23001 # or program results in "error TOC overflow" add -mminimal-toc to 23002 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 23003 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 23004 23005 archive_cmds_F77='' 23006 hardcode_direct_F77=yes 23007 hardcode_direct_absolute_F77=yes 23008 hardcode_libdir_separator_F77=':' 23009 link_all_deplibs_F77=yes 23010 file_list_spec_F77='${wl}-f,' 23011 23012 if test "$GCC" = yes; then 23013 case $host_os in aix4.[012]|aix4.[012].*) 23014 # We only want to do this on AIX 4.2 and lower, the check 23015 # below for broken collect2 doesn't work under 4.3+ 23016 collect2name=`${CC} -print-prog-name=collect2` 23017 if test -f "$collect2name" && 23018 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 23019 then 23020 # We have reworked collect2 23021 : 23022 else 23023 # We have old collect2 23024 hardcode_direct_F77=unsupported 23025 # It fails to find uninstalled libraries when the uninstalled 23026 # path is not listed in the libpath. Setting hardcode_minus_L 23027 # to unsupported forces relinking 23028 hardcode_minus_L_F77=yes 23029 hardcode_libdir_flag_spec_F77='-L$libdir' 23030 hardcode_libdir_separator_F77= 23031 fi 23032 ;; 23033 esac 23034 shared_flag='-shared' 23035 if test "$aix_use_runtimelinking" = yes; then 23036 shared_flag="$shared_flag "'${wl}-G' 23037 fi 23038 else 23039 # not using gcc 23040 if test "$host_cpu" = ia64; then 23041 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 23042 # chokes on -Wl,-G. The following line is correct: 23043 shared_flag='-G' 23044 else 23045 if test "$aix_use_runtimelinking" = yes; then 23046 shared_flag='${wl}-G' 23047 else 23048 shared_flag='${wl}-bM:SRE' 23049 fi 23050 fi 23051 fi 23052 23053 export_dynamic_flag_spec_F77='${wl}-bexpall' 23054 # It seems that -bexpall does not export symbols beginning with 23055 # underscore (_), so it is better to generate a list of symbols to export. 23056 always_export_symbols_F77=yes 23057 if test "$aix_use_runtimelinking" = yes; then 23058 # Warning - without using the other runtime loading flags (-brtl), 23059 # -berok will link without error, but may produce a broken library. 23060 allow_undefined_flag_F77='-berok' 23061 # Determine the default libpath from the value encoded in an 23062 # empty executable. 23063 if test "${lt_cv_aix_libpath+set}" = set; then 23064 aix_libpath=$lt_cv_aix_libpath 23065else 23066 if test "${lt_cv_aix_libpath__F77+set}" = set; then : 23067 $as_echo_n "(cached) " >&6 23068else 23069 cat > conftest.$ac_ext <<_ACEOF 23070 program main 23071 23072 end 23073_ACEOF 23074if ac_fn_f77_try_link "$LINENO"; then : 23075 23076 lt_aix_libpath_sed=' 23077 /Import File Strings/,/^$/ { 23078 /^0/ { 23079 s/^0 *\([^ ]*\) *$/\1/ 23080 p 23081 } 23082 }' 23083 lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 23084 # Check for a 64-bit object if we didn't find anything. 23085 if test -z "$lt_cv_aix_libpath__F77"; then 23086 lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 23087 fi 23088fi 23089rm -f core conftest.err conftest.$ac_objext \ 23090 conftest$ac_exeext conftest.$ac_ext 23091 if test -z "$lt_cv_aix_libpath__F77"; then 23092 lt_cv_aix_libpath__F77="/usr/lib:/lib" 23093 fi 23094 23095fi 23096 23097 aix_libpath=$lt_cv_aix_libpath__F77 23098fi 23099 23100 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 23101 archive_expsym_cmds_F77='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 23102 else 23103 if test "$host_cpu" = ia64; then 23104 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 23105 allow_undefined_flag_F77="-z nodefs" 23106 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 23107 else 23108 # Determine the default libpath from the value encoded in an 23109 # empty executable. 23110 if test "${lt_cv_aix_libpath+set}" = set; then 23111 aix_libpath=$lt_cv_aix_libpath 23112else 23113 if test "${lt_cv_aix_libpath__F77+set}" = set; then : 23114 $as_echo_n "(cached) " >&6 23115else 23116 cat > conftest.$ac_ext <<_ACEOF 23117 program main 23118 23119 end 23120_ACEOF 23121if ac_fn_f77_try_link "$LINENO"; then : 23122 23123 lt_aix_libpath_sed=' 23124 /Import File Strings/,/^$/ { 23125 /^0/ { 23126 s/^0 *\([^ ]*\) *$/\1/ 23127 p 23128 } 23129 }' 23130 lt_cv_aix_libpath__F77=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 23131 # Check for a 64-bit object if we didn't find anything. 23132 if test -z "$lt_cv_aix_libpath__F77"; then 23133 lt_cv_aix_libpath__F77=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 23134 fi 23135fi 23136rm -f core conftest.err conftest.$ac_objext \ 23137 conftest$ac_exeext conftest.$ac_ext 23138 if test -z "$lt_cv_aix_libpath__F77"; then 23139 lt_cv_aix_libpath__F77="/usr/lib:/lib" 23140 fi 23141 23142fi 23143 23144 aix_libpath=$lt_cv_aix_libpath__F77 23145fi 23146 23147 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 23148 # Warning - without using the other run time loading flags, 23149 # -berok will link without error, but may produce a broken library. 23150 no_undefined_flag_F77=' ${wl}-bernotok' 23151 allow_undefined_flag_F77=' ${wl}-berok' 23152 if test "$with_gnu_ld" = yes; then 23153 # We only use this code for GNU lds that support --whole-archive. 23154 whole_archive_flag_spec_F77='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 23155 else 23156 # Exported symbols can be pulled into shared objects from archives 23157 whole_archive_flag_spec_F77='$convenience' 23158 fi 23159 archive_cmds_need_lc_F77=yes 23160 # This is similar to how AIX traditionally builds its shared libraries. 23161 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 23162 fi 23163 fi 23164 ;; 23165 23166 amigaos*) 23167 case $host_cpu in 23168 powerpc) 23169 # see comment about AmigaOS4 .so support 23170 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 23171 archive_expsym_cmds_F77='' 23172 ;; 23173 m68k) 23174 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)' 23175 hardcode_libdir_flag_spec_F77='-L$libdir' 23176 hardcode_minus_L_F77=yes 23177 ;; 23178 esac 23179 ;; 23180 23181 bsdi[45]*) 23182 export_dynamic_flag_spec_F77=-rdynamic 23183 ;; 23184 23185 cygwin* | mingw* | pw32* | cegcc*) 23186 # When not using gcc, we currently assume that we are using 23187 # Microsoft Visual C++. 23188 # hardcode_libdir_flag_spec is actually meaningless, as there is 23189 # no search path for DLLs. 23190 case $cc_basename in 23191 cl*) 23192 # Native MSVC 23193 hardcode_libdir_flag_spec_F77=' ' 23194 allow_undefined_flag_F77=unsupported 23195 always_export_symbols_F77=yes 23196 file_list_spec_F77='@' 23197 # Tell ltmain to make .lib files, not .a files. 23198 libext=lib 23199 # Tell ltmain to make .dll files, not .so files. 23200 shrext_cmds=".dll" 23201 # FIXME: Setting linknames here is a bad hack. 23202 archive_cmds_F77='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 23203 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 23204 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 23205 else 23206 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 23207 fi~ 23208 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 23209 linknames=' 23210 # The linker will not automatically build a static lib if we build a DLL. 23211 # _LT_TAGVAR(old_archive_from_new_cmds, F77)='true' 23212 enable_shared_with_static_runtimes_F77=yes 23213 exclude_expsyms_F77='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 23214 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 23215 # Don't use ranlib 23216 old_postinstall_cmds_F77='chmod 644 $oldlib' 23217 postlink_cmds_F77='lt_outputfile="@OUTPUT@"~ 23218 lt_tool_outputfile="@TOOL_OUTPUT@"~ 23219 case $lt_outputfile in 23220 *.exe|*.EXE) ;; 23221 *) 23222 lt_outputfile="$lt_outputfile.exe" 23223 lt_tool_outputfile="$lt_tool_outputfile.exe" 23224 ;; 23225 esac~ 23226 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 23227 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 23228 $RM "$lt_outputfile.manifest"; 23229 fi' 23230 ;; 23231 *) 23232 # Assume MSVC wrapper 23233 hardcode_libdir_flag_spec_F77=' ' 23234 allow_undefined_flag_F77=unsupported 23235 # Tell ltmain to make .lib files, not .a files. 23236 libext=lib 23237 # Tell ltmain to make .dll files, not .so files. 23238 shrext_cmds=".dll" 23239 # FIXME: Setting linknames here is a bad hack. 23240 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 23241 # The linker will automatically build a .lib file if we build a DLL. 23242 old_archive_from_new_cmds_F77='true' 23243 # FIXME: Should let the user specify the lib program. 23244 old_archive_cmds_F77='lib -OUT:$oldlib$oldobjs$old_deplibs' 23245 enable_shared_with_static_runtimes_F77=yes 23246 ;; 23247 esac 23248 ;; 23249 23250 darwin* | rhapsody*) 23251 23252 23253 archive_cmds_need_lc_F77=no 23254 hardcode_direct_F77=no 23255 hardcode_automatic_F77=yes 23256 hardcode_shlibpath_var_F77=unsupported 23257 if test "$lt_cv_ld_force_load" = "yes"; then 23258 whole_archive_flag_spec_F77='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 23259 compiler_needs_object_F77=yes 23260 else 23261 whole_archive_flag_spec_F77='' 23262 fi 23263 link_all_deplibs_F77=yes 23264 allow_undefined_flag_F77="$_lt_dar_allow_undefined" 23265 case $cc_basename in 23266 ifort*) _lt_dar_can_shared=yes ;; 23267 *) _lt_dar_can_shared=$GCC ;; 23268 esac 23269 if test "$_lt_dar_can_shared" = "yes"; then 23270 output_verbose_link_cmd=func_echo_all 23271 archive_cmds_F77="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 23272 module_cmds_F77="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 23273 archive_expsym_cmds_F77="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 23274 module_expsym_cmds_F77="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 23275 23276 else 23277 ld_shlibs_F77=no 23278 fi 23279 23280 ;; 23281 23282 dgux*) 23283 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 23284 hardcode_libdir_flag_spec_F77='-L$libdir' 23285 hardcode_shlibpath_var_F77=no 23286 ;; 23287 23288 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 23289 # support. Future versions do this automatically, but an explicit c++rt0.o 23290 # does not break anything, and helps significantly (at the cost of a little 23291 # extra space). 23292 freebsd2.2*) 23293 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 23294 hardcode_libdir_flag_spec_F77='-R$libdir' 23295 hardcode_direct_F77=yes 23296 hardcode_shlibpath_var_F77=no 23297 ;; 23298 23299 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 23300 freebsd2.*) 23301 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 23302 hardcode_direct_F77=yes 23303 hardcode_minus_L_F77=yes 23304 hardcode_shlibpath_var_F77=no 23305 ;; 23306 23307 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 23308 freebsd* | dragonfly*) 23309 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 23310 hardcode_libdir_flag_spec_F77='-R$libdir' 23311 hardcode_direct_F77=yes 23312 hardcode_shlibpath_var_F77=no 23313 ;; 23314 23315 hpux9*) 23316 if test "$GCC" = yes; then 23317 archive_cmds_F77='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 23318 else 23319 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' 23320 fi 23321 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 23322 hardcode_libdir_separator_F77=: 23323 hardcode_direct_F77=yes 23324 23325 # hardcode_minus_L: Not really in the search PATH, 23326 # but as the default location of the library. 23327 hardcode_minus_L_F77=yes 23328 export_dynamic_flag_spec_F77='${wl}-E' 23329 ;; 23330 23331 hpux10*) 23332 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 23333 archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 23334 else 23335 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 23336 fi 23337 if test "$with_gnu_ld" = no; then 23338 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 23339 hardcode_libdir_separator_F77=: 23340 hardcode_direct_F77=yes 23341 hardcode_direct_absolute_F77=yes 23342 export_dynamic_flag_spec_F77='${wl}-E' 23343 # hardcode_minus_L: Not really in the search PATH, 23344 # but as the default location of the library. 23345 hardcode_minus_L_F77=yes 23346 fi 23347 ;; 23348 23349 hpux11*) 23350 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 23351 case $host_cpu in 23352 hppa*64*) 23353 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 23354 ;; 23355 ia64*) 23356 archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 23357 ;; 23358 *) 23359 archive_cmds_F77='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 23360 ;; 23361 esac 23362 else 23363 case $host_cpu in 23364 hppa*64*) 23365 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 23366 ;; 23367 ia64*) 23368 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 23369 ;; 23370 *) 23371 archive_cmds_F77='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 23372 ;; 23373 esac 23374 fi 23375 if test "$with_gnu_ld" = no; then 23376 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 23377 hardcode_libdir_separator_F77=: 23378 23379 case $host_cpu in 23380 hppa*64*|ia64*) 23381 hardcode_direct_F77=no 23382 hardcode_shlibpath_var_F77=no 23383 ;; 23384 *) 23385 hardcode_direct_F77=yes 23386 hardcode_direct_absolute_F77=yes 23387 export_dynamic_flag_spec_F77='${wl}-E' 23388 23389 # hardcode_minus_L: Not really in the search PATH, 23390 # but as the default location of the library. 23391 hardcode_minus_L_F77=yes 23392 ;; 23393 esac 23394 fi 23395 ;; 23396 23397 irix5* | irix6* | nonstopux*) 23398 if test "$GCC" = yes; then 23399 archive_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 23400 # Try to use the -exported_symbol ld option, if it does not 23401 # work, assume that -exports_file does not work either and 23402 # implicitly export all symbols. 23403 # This should be the same for all languages, so no per-tag cache variable. 23404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 23405$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 23406if test "${lt_cv_irix_exported_symbol+set}" = set; then : 23407 $as_echo_n "(cached) " >&6 23408else 23409 save_LDFLAGS="$LDFLAGS" 23410 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 23411 cat > conftest.$ac_ext <<_ACEOF 23412 23413 subroutine foo 23414 end 23415_ACEOF 23416if ac_fn_f77_try_link "$LINENO"; then : 23417 lt_cv_irix_exported_symbol=yes 23418else 23419 lt_cv_irix_exported_symbol=no 23420fi 23421rm -f core conftest.err conftest.$ac_objext \ 23422 conftest$ac_exeext conftest.$ac_ext 23423 LDFLAGS="$save_LDFLAGS" 23424fi 23425{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 23426$as_echo "$lt_cv_irix_exported_symbol" >&6; } 23427 if test "$lt_cv_irix_exported_symbol" = yes; then 23428 archive_expsym_cmds_F77='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 23429 fi 23430 else 23431 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 23432 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' 23433 fi 23434 archive_cmds_need_lc_F77='no' 23435 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 23436 hardcode_libdir_separator_F77=: 23437 inherit_rpath_F77=yes 23438 link_all_deplibs_F77=yes 23439 ;; 23440 23441 netbsd*) 23442 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 23443 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 23444 else 23445 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 23446 fi 23447 hardcode_libdir_flag_spec_F77='-R$libdir' 23448 hardcode_direct_F77=yes 23449 hardcode_shlibpath_var_F77=no 23450 ;; 23451 23452 newsos6) 23453 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 23454 hardcode_direct_F77=yes 23455 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 23456 hardcode_libdir_separator_F77=: 23457 hardcode_shlibpath_var_F77=no 23458 ;; 23459 23460 *nto* | *qnx*) 23461 ;; 23462 23463 openbsd*) 23464 if test -f /usr/libexec/ld.so; then 23465 hardcode_direct_F77=yes 23466 hardcode_shlibpath_var_F77=no 23467 hardcode_direct_absolute_F77=yes 23468 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 23469 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 23470 archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 23471 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 23472 export_dynamic_flag_spec_F77='${wl}-E' 23473 else 23474 case $host_os in 23475 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 23476 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 23477 hardcode_libdir_flag_spec_F77='-R$libdir' 23478 ;; 23479 *) 23480 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 23481 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 23482 ;; 23483 esac 23484 fi 23485 else 23486 ld_shlibs_F77=no 23487 fi 23488 ;; 23489 23490 os2*) 23491 hardcode_libdir_flag_spec_F77='-L$libdir' 23492 hardcode_minus_L_F77=yes 23493 allow_undefined_flag_F77=unsupported 23494 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' 23495 old_archive_from_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 23496 ;; 23497 23498 osf3*) 23499 if test "$GCC" = yes; then 23500 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 23501 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 23502 else 23503 allow_undefined_flag_F77=' -expect_unresolved \*' 23504 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 23505 fi 23506 archive_cmds_need_lc_F77='no' 23507 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 23508 hardcode_libdir_separator_F77=: 23509 ;; 23510 23511 osf4* | osf5*) # as osf3* with the addition of -msym flag 23512 if test "$GCC" = yes; then 23513 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 23514 archive_cmds_F77='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 23515 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 23516 else 23517 allow_undefined_flag_F77=' -expect_unresolved \*' 23518 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 23519 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 23520 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 23521 23522 # Both c and cxx compiler support -rpath directly 23523 hardcode_libdir_flag_spec_F77='-rpath $libdir' 23524 fi 23525 archive_cmds_need_lc_F77='no' 23526 hardcode_libdir_separator_F77=: 23527 ;; 23528 23529 solaris*) 23530 no_undefined_flag_F77=' -z defs' 23531 if test "$GCC" = yes; then 23532 wlarc='${wl}' 23533 archive_cmds_F77='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 23534 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 23535 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 23536 else 23537 case `$CC -V 2>&1` in 23538 *"Compilers 5.0"*) 23539 wlarc='' 23540 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 23541 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 23542 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 23543 ;; 23544 *) 23545 wlarc='${wl}' 23546 archive_cmds_F77='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 23547 archive_expsym_cmds_F77='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 23548 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 23549 ;; 23550 esac 23551 fi 23552 hardcode_libdir_flag_spec_F77='-R$libdir' 23553 hardcode_shlibpath_var_F77=no 23554 case $host_os in 23555 solaris2.[0-5] | solaris2.[0-5].*) ;; 23556 *) 23557 # The compiler driver will combine and reorder linker options, 23558 # but understands `-z linker_flag'. GCC discards it without `$wl', 23559 # but is careful enough not to reorder. 23560 # Supported since Solaris 2.6 (maybe 2.5.1?) 23561 if test "$GCC" = yes; then 23562 whole_archive_flag_spec_F77='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 23563 else 23564 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' 23565 fi 23566 ;; 23567 esac 23568 link_all_deplibs_F77=yes 23569 ;; 23570 23571 sunos4*) 23572 if test "x$host_vendor" = xsequent; then 23573 # Use $CC to link under sequent, because it throws in some extra .o 23574 # files that make .init and .fini sections work. 23575 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 23576 else 23577 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 23578 fi 23579 hardcode_libdir_flag_spec_F77='-L$libdir' 23580 hardcode_direct_F77=yes 23581 hardcode_minus_L_F77=yes 23582 hardcode_shlibpath_var_F77=no 23583 ;; 23584 23585 sysv4) 23586 case $host_vendor in 23587 sni) 23588 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 23589 hardcode_direct_F77=yes # is this really true??? 23590 ;; 23591 siemens) 23592 ## LD is ld it makes a PLAMLIB 23593 ## CC just makes a GrossModule. 23594 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 23595 reload_cmds_F77='$CC -r -o $output$reload_objs' 23596 hardcode_direct_F77=no 23597 ;; 23598 motorola) 23599 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 23600 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 23601 ;; 23602 esac 23603 runpath_var='LD_RUN_PATH' 23604 hardcode_shlibpath_var_F77=no 23605 ;; 23606 23607 sysv4.3*) 23608 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 23609 hardcode_shlibpath_var_F77=no 23610 export_dynamic_flag_spec_F77='-Bexport' 23611 ;; 23612 23613 sysv4*MP*) 23614 if test -d /usr/nec; then 23615 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 23616 hardcode_shlibpath_var_F77=no 23617 runpath_var=LD_RUN_PATH 23618 hardcode_runpath_var=yes 23619 ld_shlibs_F77=yes 23620 fi 23621 ;; 23622 23623 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 23624 no_undefined_flag_F77='${wl}-z,text' 23625 archive_cmds_need_lc_F77=no 23626 hardcode_shlibpath_var_F77=no 23627 runpath_var='LD_RUN_PATH' 23628 23629 if test "$GCC" = yes; then 23630 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 23631 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 23632 else 23633 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 23634 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 23635 fi 23636 ;; 23637 23638 sysv5* | sco3.2v5* | sco5v6*) 23639 # Note: We can NOT use -z defs as we might desire, because we do not 23640 # link with -lc, and that would cause any symbols used from libc to 23641 # always be unresolved, which means just about no library would 23642 # ever link correctly. If we're not using GNU ld we use -z text 23643 # though, which does catch some bad symbols but isn't as heavy-handed 23644 # as -z defs. 23645 no_undefined_flag_F77='${wl}-z,text' 23646 allow_undefined_flag_F77='${wl}-z,nodefs' 23647 archive_cmds_need_lc_F77=no 23648 hardcode_shlibpath_var_F77=no 23649 hardcode_libdir_flag_spec_F77='${wl}-R,$libdir' 23650 hardcode_libdir_separator_F77=':' 23651 link_all_deplibs_F77=yes 23652 export_dynamic_flag_spec_F77='${wl}-Bexport' 23653 runpath_var='LD_RUN_PATH' 23654 23655 if test "$GCC" = yes; then 23656 archive_cmds_F77='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 23657 archive_expsym_cmds_F77='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 23658 else 23659 archive_cmds_F77='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 23660 archive_expsym_cmds_F77='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 23661 fi 23662 ;; 23663 23664 uts4*) 23665 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 23666 hardcode_libdir_flag_spec_F77='-L$libdir' 23667 hardcode_shlibpath_var_F77=no 23668 ;; 23669 23670 *) 23671 ld_shlibs_F77=no 23672 ;; 23673 esac 23674 23675 if test x$host_vendor = xsni; then 23676 case $host in 23677 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 23678 export_dynamic_flag_spec_F77='${wl}-Blargedynsym' 23679 ;; 23680 esac 23681 fi 23682 fi 23683 23684{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_F77" >&5 23685$as_echo "$ld_shlibs_F77" >&6; } 23686test "$ld_shlibs_F77" = no && can_build_shared=no 23687 23688with_gnu_ld_F77=$with_gnu_ld 23689 23690 23691 23692 23693 23694 23695# 23696# Do we need to explicitly link libc? 23697# 23698case "x$archive_cmds_need_lc_F77" in 23699x|xyes) 23700 # Assume -lc should be added 23701 archive_cmds_need_lc_F77=yes 23702 23703 if test "$enable_shared" = yes && test "$GCC" = yes; then 23704 case $archive_cmds_F77 in 23705 *'~'*) 23706 # FIXME: we may have to deal with multi-command sequences. 23707 ;; 23708 '$CC '*) 23709 # Test whether the compiler implicitly links with -lc since on some 23710 # systems, -lgcc has to come before -lc. If gcc already passes -lc 23711 # to ld, don't add -lc before -lgcc. 23712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 23713$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 23714if test "${lt_cv_archive_cmds_need_lc_F77+set}" = set; then : 23715 $as_echo_n "(cached) " >&6 23716else 23717 $RM conftest* 23718 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 23719 23720 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 23721 (eval $ac_compile) 2>&5 23722 ac_status=$? 23723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23724 test $ac_status = 0; } 2>conftest.err; then 23725 soname=conftest 23726 lib=conftest 23727 libobjs=conftest.$ac_objext 23728 deplibs= 23729 wl=$lt_prog_compiler_wl_F77 23730 pic_flag=$lt_prog_compiler_pic_F77 23731 compiler_flags=-v 23732 linker_flags=-v 23733 verstring= 23734 output_objdir=. 23735 libname=conftest 23736 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 23737 allow_undefined_flag_F77= 23738 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 23739 (eval $archive_cmds_F77 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 23740 ac_status=$? 23741 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 23742 test $ac_status = 0; } 23743 then 23744 lt_cv_archive_cmds_need_lc_F77=no 23745 else 23746 lt_cv_archive_cmds_need_lc_F77=yes 23747 fi 23748 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 23749 else 23750 cat conftest.err 1>&5 23751 fi 23752 $RM conftest* 23753 23754fi 23755{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_F77" >&5 23756$as_echo "$lt_cv_archive_cmds_need_lc_F77" >&6; } 23757 archive_cmds_need_lc_F77=$lt_cv_archive_cmds_need_lc_F77 23758 ;; 23759 esac 23760 fi 23761 ;; 23762esac 23763 23764 23765 23766 23767 23768 23769 23770 23771 23772 23773 23774 23775 23776 23777 23778 23779 23780 23781 23782 23783 23784 23785 23786 23787 23788 23789 23790 23791 23792 23793 23794 23795 23796 23797 23798 23799 23800 23801 23802 23803 23804 23805 23806 23807 23808 23809 23810 23811 23812 23813 23814 23815 23816 23817 23818 23819 23820 23821 23822 23823 23824 23825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 23826$as_echo_n "checking dynamic linker characteristics... " >&6; } 23827 23828library_names_spec= 23829libname_spec='lib$name' 23830soname_spec= 23831shrext_cmds=".so" 23832postinstall_cmds= 23833postuninstall_cmds= 23834finish_cmds= 23835finish_eval= 23836shlibpath_var= 23837shlibpath_overrides_runpath=unknown 23838version_type=none 23839dynamic_linker="$host_os ld.so" 23840sys_lib_dlsearch_path_spec="/lib /usr/lib" 23841need_lib_prefix=unknown 23842hardcode_into_libs=no 23843 23844# when you set need_version to no, make sure it does not cause -set_version 23845# flags to be left without arguments 23846need_version=unknown 23847 23848case $host_os in 23849aix3*) 23850 version_type=linux # correct to gnu/linux during the next big refactor 23851 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 23852 shlibpath_var=LIBPATH 23853 23854 # AIX 3 has no versioning support, so we append a major version to the name. 23855 soname_spec='${libname}${release}${shared_ext}$major' 23856 ;; 23857 23858aix[4-9]*) 23859 version_type=linux # correct to gnu/linux during the next big refactor 23860 need_lib_prefix=no 23861 need_version=no 23862 hardcode_into_libs=yes 23863 if test "$host_cpu" = ia64; then 23864 # AIX 5 supports IA64 23865 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 23866 shlibpath_var=LD_LIBRARY_PATH 23867 else 23868 # With GCC up to 2.95.x, collect2 would create an import file 23869 # for dependence libraries. The import file would start with 23870 # the line `#! .'. This would cause the generated library to 23871 # depend on `.', always an invalid library. This was fixed in 23872 # development snapshots of GCC prior to 3.0. 23873 case $host_os in 23874 aix4 | aix4.[01] | aix4.[01].*) 23875 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 23876 echo ' yes ' 23877 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 23878 : 23879 else 23880 can_build_shared=no 23881 fi 23882 ;; 23883 esac 23884 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 23885 # soname into executable. Probably we can add versioning support to 23886 # collect2, so additional links can be useful in future. 23887 if test "$aix_use_runtimelinking" = yes; then 23888 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 23889 # instead of lib<name>.a to let people know that these are not 23890 # typical AIX shared libraries. 23891 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 23892 else 23893 # We preserve .a as extension for shared libraries through AIX4.2 23894 # and later when we are not doing run time linking. 23895 library_names_spec='${libname}${release}.a $libname.a' 23896 soname_spec='${libname}${release}${shared_ext}$major' 23897 fi 23898 shlibpath_var=LIBPATH 23899 fi 23900 ;; 23901 23902amigaos*) 23903 case $host_cpu in 23904 powerpc) 23905 # Since July 2007 AmigaOS4 officially supports .so libraries. 23906 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 23907 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 23908 ;; 23909 m68k) 23910 library_names_spec='$libname.ixlibrary $libname.a' 23911 # Create ${libname}_ixlibrary.a entries in /sys/libs. 23912 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 23913 ;; 23914 esac 23915 ;; 23916 23917beos*) 23918 library_names_spec='${libname}${shared_ext}' 23919 dynamic_linker="$host_os ld.so" 23920 shlibpath_var=LIBRARY_PATH 23921 ;; 23922 23923bsdi[45]*) 23924 version_type=linux # correct to gnu/linux during the next big refactor 23925 need_version=no 23926 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 23927 soname_spec='${libname}${release}${shared_ext}$major' 23928 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 23929 shlibpath_var=LD_LIBRARY_PATH 23930 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 23931 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 23932 # the default ld.so.conf also contains /usr/contrib/lib and 23933 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 23934 # libtool to hard-code these into programs 23935 ;; 23936 23937cygwin* | mingw* | pw32* | cegcc*) 23938 version_type=windows 23939 shrext_cmds=".dll" 23940 need_version=no 23941 need_lib_prefix=no 23942 23943 case $GCC,$cc_basename in 23944 yes,*) 23945 # gcc 23946 library_names_spec='$libname.dll.a' 23947 # DLL is installed to $(libdir)/../bin by postinstall_cmds 23948 postinstall_cmds='base_file=`basename \${file}`~ 23949 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 23950 dldir=$destdir/`dirname \$dlpath`~ 23951 test -d \$dldir || mkdir -p \$dldir~ 23952 $install_prog $dir/$dlname \$dldir/$dlname~ 23953 chmod a+x \$dldir/$dlname~ 23954 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 23955 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 23956 fi' 23957 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 23958 dlpath=$dir/\$dldll~ 23959 $RM \$dlpath' 23960 shlibpath_overrides_runpath=yes 23961 23962 case $host_os in 23963 cygwin*) 23964 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 23965 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 23966 23967 ;; 23968 mingw* | cegcc*) 23969 # MinGW DLLs use traditional 'lib' prefix 23970 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 23971 ;; 23972 pw32*) 23973 # pw32 DLLs use 'pw' prefix rather than 'lib' 23974 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 23975 ;; 23976 esac 23977 dynamic_linker='Win32 ld.exe' 23978 ;; 23979 23980 *,cl*) 23981 # Native MSVC 23982 libname_spec='$name' 23983 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 23984 library_names_spec='${libname}.dll.lib' 23985 23986 case $build_os in 23987 mingw*) 23988 sys_lib_search_path_spec= 23989 lt_save_ifs=$IFS 23990 IFS=';' 23991 for lt_path in $LIB 23992 do 23993 IFS=$lt_save_ifs 23994 # Let DOS variable expansion print the short 8.3 style file name. 23995 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 23996 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 23997 done 23998 IFS=$lt_save_ifs 23999 # Convert to MSYS style. 24000 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 24001 ;; 24002 cygwin*) 24003 # Convert to unix form, then to dos form, then back to unix form 24004 # but this time dos style (no spaces!) so that the unix form looks 24005 # like /cygdrive/c/PROGRA~1:/cygdr... 24006 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 24007 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 24008 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 24009 ;; 24010 *) 24011 sys_lib_search_path_spec="$LIB" 24012 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 24013 # It is most probably a Windows format PATH. 24014 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 24015 else 24016 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 24017 fi 24018 # FIXME: find the short name or the path components, as spaces are 24019 # common. (e.g. "Program Files" -> "PROGRA~1") 24020 ;; 24021 esac 24022 24023 # DLL is installed to $(libdir)/../bin by postinstall_cmds 24024 postinstall_cmds='base_file=`basename \${file}`~ 24025 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 24026 dldir=$destdir/`dirname \$dlpath`~ 24027 test -d \$dldir || mkdir -p \$dldir~ 24028 $install_prog $dir/$dlname \$dldir/$dlname' 24029 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 24030 dlpath=$dir/\$dldll~ 24031 $RM \$dlpath' 24032 shlibpath_overrides_runpath=yes 24033 dynamic_linker='Win32 link.exe' 24034 ;; 24035 24036 *) 24037 # Assume MSVC wrapper 24038 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 24039 dynamic_linker='Win32 ld.exe' 24040 ;; 24041 esac 24042 # FIXME: first we should search . and the directory the executable is in 24043 shlibpath_var=PATH 24044 ;; 24045 24046darwin* | rhapsody*) 24047 dynamic_linker="$host_os dyld" 24048 version_type=darwin 24049 need_lib_prefix=no 24050 need_version=no 24051 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 24052 soname_spec='${libname}${release}${major}$shared_ext' 24053 shlibpath_overrides_runpath=yes 24054 shlibpath_var=DYLD_LIBRARY_PATH 24055 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 24056 24057 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 24058 ;; 24059 24060dgux*) 24061 version_type=linux # correct to gnu/linux during the next big refactor 24062 need_lib_prefix=no 24063 need_version=no 24064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 24065 soname_spec='${libname}${release}${shared_ext}$major' 24066 shlibpath_var=LD_LIBRARY_PATH 24067 ;; 24068 24069freebsd* | dragonfly*) 24070 # DragonFly does not have aout. When/if they implement a new 24071 # versioning mechanism, adjust this. 24072 if test -x /usr/bin/objformat; then 24073 objformat=`/usr/bin/objformat` 24074 else 24075 case $host_os in 24076 freebsd[23].*) objformat=aout ;; 24077 *) objformat=elf ;; 24078 esac 24079 fi 24080 version_type=freebsd-$objformat 24081 case $version_type in 24082 freebsd-elf*) 24083 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 24084 need_version=no 24085 need_lib_prefix=no 24086 ;; 24087 freebsd-*) 24088 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 24089 need_version=yes 24090 ;; 24091 esac 24092 shlibpath_var=LD_LIBRARY_PATH 24093 case $host_os in 24094 freebsd2.*) 24095 shlibpath_overrides_runpath=yes 24096 ;; 24097 freebsd3.[01]* | freebsdelf3.[01]*) 24098 shlibpath_overrides_runpath=yes 24099 hardcode_into_libs=yes 24100 ;; 24101 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 24102 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 24103 shlibpath_overrides_runpath=no 24104 hardcode_into_libs=yes 24105 ;; 24106 *) # from 4.6 on, and DragonFly 24107 shlibpath_overrides_runpath=yes 24108 hardcode_into_libs=yes 24109 ;; 24110 esac 24111 ;; 24112 24113gnu*) 24114 version_type=linux # correct to gnu/linux during the next big refactor 24115 need_lib_prefix=no 24116 need_version=no 24117 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 24118 soname_spec='${libname}${release}${shared_ext}$major' 24119 shlibpath_var=LD_LIBRARY_PATH 24120 shlibpath_overrides_runpath=no 24121 hardcode_into_libs=yes 24122 ;; 24123 24124haiku*) 24125 version_type=linux # correct to gnu/linux during the next big refactor 24126 need_lib_prefix=no 24127 need_version=no 24128 dynamic_linker="$host_os runtime_loader" 24129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 24130 soname_spec='${libname}${release}${shared_ext}$major' 24131 shlibpath_var=LIBRARY_PATH 24132 shlibpath_overrides_runpath=yes 24133 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 24134 hardcode_into_libs=yes 24135 ;; 24136 24137hpux9* | hpux10* | hpux11*) 24138 # Give a soname corresponding to the major version so that dld.sl refuses to 24139 # link against other versions. 24140 version_type=sunos 24141 need_lib_prefix=no 24142 need_version=no 24143 case $host_cpu in 24144 ia64*) 24145 shrext_cmds='.so' 24146 hardcode_into_libs=yes 24147 dynamic_linker="$host_os dld.so" 24148 shlibpath_var=LD_LIBRARY_PATH 24149 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 24150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 24151 soname_spec='${libname}${release}${shared_ext}$major' 24152 if test "X$HPUX_IA64_MODE" = X32; then 24153 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 24154 else 24155 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 24156 fi 24157 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 24158 ;; 24159 hppa*64*) 24160 shrext_cmds='.sl' 24161 hardcode_into_libs=yes 24162 dynamic_linker="$host_os dld.sl" 24163 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 24164 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 24165 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 24166 soname_spec='${libname}${release}${shared_ext}$major' 24167 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 24168 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 24169 ;; 24170 *) 24171 shrext_cmds='.sl' 24172 dynamic_linker="$host_os dld.sl" 24173 shlibpath_var=SHLIB_PATH 24174 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 24175 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 24176 soname_spec='${libname}${release}${shared_ext}$major' 24177 ;; 24178 esac 24179 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 24180 postinstall_cmds='chmod 555 $lib' 24181 # or fails outright, so override atomically: 24182 install_override_mode=555 24183 ;; 24184 24185interix[3-9]*) 24186 version_type=linux # correct to gnu/linux during the next big refactor 24187 need_lib_prefix=no 24188 need_version=no 24189 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 24190 soname_spec='${libname}${release}${shared_ext}$major' 24191 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 24192 shlibpath_var=LD_LIBRARY_PATH 24193 shlibpath_overrides_runpath=no 24194 hardcode_into_libs=yes 24195 ;; 24196 24197irix5* | irix6* | nonstopux*) 24198 case $host_os in 24199 nonstopux*) version_type=nonstopux ;; 24200 *) 24201 if test "$lt_cv_prog_gnu_ld" = yes; then 24202 version_type=linux # correct to gnu/linux during the next big refactor 24203 else 24204 version_type=irix 24205 fi ;; 24206 esac 24207 need_lib_prefix=no 24208 need_version=no 24209 soname_spec='${libname}${release}${shared_ext}$major' 24210 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 24211 case $host_os in 24212 irix5* | nonstopux*) 24213 libsuff= shlibsuff= 24214 ;; 24215 *) 24216 case $LD in # libtool.m4 will add one of these switches to LD 24217 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 24218 libsuff= shlibsuff= libmagic=32-bit;; 24219 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 24220 libsuff=32 shlibsuff=N32 libmagic=N32;; 24221 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 24222 libsuff=64 shlibsuff=64 libmagic=64-bit;; 24223 *) libsuff= shlibsuff= libmagic=never-match;; 24224 esac 24225 ;; 24226 esac 24227 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 24228 shlibpath_overrides_runpath=no 24229 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 24230 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 24231 hardcode_into_libs=yes 24232 ;; 24233 24234# No shared lib support for Linux oldld, aout, or coff. 24235linux*oldld* | linux*aout* | linux*coff*) 24236 dynamic_linker=no 24237 ;; 24238 24239# This must be glibc/ELF. 24240linux* | k*bsd*-gnu | kopensolaris*-gnu) 24241 version_type=linux # correct to gnu/linux during the next big refactor 24242 need_lib_prefix=no 24243 need_version=no 24244 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 24245 soname_spec='${libname}${release}${shared_ext}$major' 24246 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 24247 shlibpath_var=LD_LIBRARY_PATH 24248 shlibpath_overrides_runpath=no 24249 24250 # Some binutils ld are patched to set DT_RUNPATH 24251 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : 24252 $as_echo_n "(cached) " >&6 24253else 24254 lt_cv_shlibpath_overrides_runpath=no 24255 save_LDFLAGS=$LDFLAGS 24256 save_libdir=$libdir 24257 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_F77\"; \ 24258 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_F77\"" 24259 cat > conftest.$ac_ext <<_ACEOF 24260 program main 24261 24262 end 24263_ACEOF 24264if ac_fn_f77_try_link "$LINENO"; then : 24265 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 24266 lt_cv_shlibpath_overrides_runpath=yes 24267fi 24268fi 24269rm -f core conftest.err conftest.$ac_objext \ 24270 conftest$ac_exeext conftest.$ac_ext 24271 LDFLAGS=$save_LDFLAGS 24272 libdir=$save_libdir 24273 24274fi 24275 24276 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 24277 24278 # This implies no fast_install, which is unacceptable. 24279 # Some rework will be needed to allow for fast_install 24280 # before this can be enabled. 24281 hardcode_into_libs=yes 24282 24283 # Append ld.so.conf contents to the search path 24284 if test -f /etc/ld.so.conf; then 24285 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 24286 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 24287 fi 24288 24289 # We used to test for /lib/ld.so.1 and disable shared libraries on 24290 # powerpc, because MkLinux only supported shared libraries with the 24291 # GNU dynamic linker. Since this was broken with cross compilers, 24292 # most powerpc-linux boxes support dynamic linking these days and 24293 # people can always --disable-shared, the test was removed, and we 24294 # assume the GNU/Linux dynamic linker is in use. 24295 dynamic_linker='GNU/Linux ld.so' 24296 ;; 24297 24298netbsd*) 24299 version_type=sunos 24300 need_lib_prefix=no 24301 need_version=no 24302 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 24303 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 24304 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 24305 dynamic_linker='NetBSD (a.out) ld.so' 24306 else 24307 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 24308 soname_spec='${libname}${release}${shared_ext}$major' 24309 dynamic_linker='NetBSD ld.elf_so' 24310 fi 24311 shlibpath_var=LD_LIBRARY_PATH 24312 shlibpath_overrides_runpath=yes 24313 hardcode_into_libs=yes 24314 ;; 24315 24316newsos6) 24317 version_type=linux # correct to gnu/linux during the next big refactor 24318 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 24319 shlibpath_var=LD_LIBRARY_PATH 24320 shlibpath_overrides_runpath=yes 24321 ;; 24322 24323*nto* | *qnx*) 24324 version_type=qnx 24325 need_lib_prefix=no 24326 need_version=no 24327 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 24328 soname_spec='${libname}${release}${shared_ext}$major' 24329 shlibpath_var=LD_LIBRARY_PATH 24330 shlibpath_overrides_runpath=no 24331 hardcode_into_libs=yes 24332 dynamic_linker='ldqnx.so' 24333 ;; 24334 24335openbsd*) 24336 version_type=sunos 24337 sys_lib_dlsearch_path_spec="/usr/lib" 24338 need_lib_prefix=no 24339 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 24340 case $host_os in 24341 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 24342 *) need_version=no ;; 24343 esac 24344 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 24345 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 24346 shlibpath_var=LD_LIBRARY_PATH 24347 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 24348 case $host_os in 24349 openbsd2.[89] | openbsd2.[89].*) 24350 shlibpath_overrides_runpath=no 24351 ;; 24352 *) 24353 shlibpath_overrides_runpath=yes 24354 ;; 24355 esac 24356 else 24357 shlibpath_overrides_runpath=yes 24358 fi 24359 ;; 24360 24361os2*) 24362 libname_spec='$name' 24363 shrext_cmds=".dll" 24364 need_lib_prefix=no 24365 library_names_spec='$libname${shared_ext} $libname.a' 24366 dynamic_linker='OS/2 ld.exe' 24367 shlibpath_var=LIBPATH 24368 ;; 24369 24370osf3* | osf4* | osf5*) 24371 version_type=osf 24372 need_lib_prefix=no 24373 need_version=no 24374 soname_spec='${libname}${release}${shared_ext}$major' 24375 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 24376 shlibpath_var=LD_LIBRARY_PATH 24377 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 24378 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 24379 ;; 24380 24381rdos*) 24382 dynamic_linker=no 24383 ;; 24384 24385solaris*) 24386 version_type=linux # correct to gnu/linux during the next big refactor 24387 need_lib_prefix=no 24388 need_version=no 24389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 24390 soname_spec='${libname}${release}${shared_ext}$major' 24391 shlibpath_var=LD_LIBRARY_PATH 24392 shlibpath_overrides_runpath=yes 24393 hardcode_into_libs=yes 24394 # ldd complains unless libraries are executable 24395 postinstall_cmds='chmod +x $lib' 24396 ;; 24397 24398sunos4*) 24399 version_type=sunos 24400 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 24401 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 24402 shlibpath_var=LD_LIBRARY_PATH 24403 shlibpath_overrides_runpath=yes 24404 if test "$with_gnu_ld" = yes; then 24405 need_lib_prefix=no 24406 fi 24407 need_version=yes 24408 ;; 24409 24410sysv4 | sysv4.3*) 24411 version_type=linux # correct to gnu/linux during the next big refactor 24412 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 24413 soname_spec='${libname}${release}${shared_ext}$major' 24414 shlibpath_var=LD_LIBRARY_PATH 24415 case $host_vendor in 24416 sni) 24417 shlibpath_overrides_runpath=no 24418 need_lib_prefix=no 24419 runpath_var=LD_RUN_PATH 24420 ;; 24421 siemens) 24422 need_lib_prefix=no 24423 ;; 24424 motorola) 24425 need_lib_prefix=no 24426 need_version=no 24427 shlibpath_overrides_runpath=no 24428 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 24429 ;; 24430 esac 24431 ;; 24432 24433sysv4*MP*) 24434 if test -d /usr/nec ;then 24435 version_type=linux # correct to gnu/linux during the next big refactor 24436 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 24437 soname_spec='$libname${shared_ext}.$major' 24438 shlibpath_var=LD_LIBRARY_PATH 24439 fi 24440 ;; 24441 24442sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 24443 version_type=freebsd-elf 24444 need_lib_prefix=no 24445 need_version=no 24446 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 24447 soname_spec='${libname}${release}${shared_ext}$major' 24448 shlibpath_var=LD_LIBRARY_PATH 24449 shlibpath_overrides_runpath=yes 24450 hardcode_into_libs=yes 24451 if test "$with_gnu_ld" = yes; then 24452 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 24453 else 24454 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 24455 case $host_os in 24456 sco3.2v5*) 24457 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 24458 ;; 24459 esac 24460 fi 24461 sys_lib_dlsearch_path_spec='/usr/lib' 24462 ;; 24463 24464tpf*) 24465 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 24466 version_type=linux # correct to gnu/linux during the next big refactor 24467 need_lib_prefix=no 24468 need_version=no 24469 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 24470 shlibpath_var=LD_LIBRARY_PATH 24471 shlibpath_overrides_runpath=no 24472 hardcode_into_libs=yes 24473 ;; 24474 24475uts4*) 24476 version_type=linux # correct to gnu/linux during the next big refactor 24477 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 24478 soname_spec='${libname}${release}${shared_ext}$major' 24479 shlibpath_var=LD_LIBRARY_PATH 24480 ;; 24481 24482*) 24483 dynamic_linker=no 24484 ;; 24485esac 24486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 24487$as_echo "$dynamic_linker" >&6; } 24488test "$dynamic_linker" = no && can_build_shared=no 24489 24490variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 24491if test "$GCC" = yes; then 24492 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 24493fi 24494 24495if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 24496 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 24497fi 24498if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 24499 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 24500fi 24501 24502 24503 24504 24505 24506 24507 24508 24509 24510 24511 24512 24513 24514 24515 24516 24517 24518 24519 24520 24521 24522 24523 24524 24525 24526 24527 24528 24529 24530 24531 24532 24533 24534 24535 24536 24537 24538 24539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 24540$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 24541hardcode_action_F77= 24542if test -n "$hardcode_libdir_flag_spec_F77" || 24543 test -n "$runpath_var_F77" || 24544 test "X$hardcode_automatic_F77" = "Xyes" ; then 24545 24546 # We can hardcode non-existent directories. 24547 if test "$hardcode_direct_F77" != no && 24548 # If the only mechanism to avoid hardcoding is shlibpath_var, we 24549 # have to relink, otherwise we might link with an installed library 24550 # when we should be linking with a yet-to-be-installed one 24551 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, F77)" != no && 24552 test "$hardcode_minus_L_F77" != no; then 24553 # Linking always hardcodes the temporary library directory. 24554 hardcode_action_F77=relink 24555 else 24556 # We can link without hardcoding, and we can hardcode nonexisting dirs. 24557 hardcode_action_F77=immediate 24558 fi 24559else 24560 # We cannot hardcode anything, or else we can only hardcode existing 24561 # directories. 24562 hardcode_action_F77=unsupported 24563fi 24564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_F77" >&5 24565$as_echo "$hardcode_action_F77" >&6; } 24566 24567if test "$hardcode_action_F77" = relink || 24568 test "$inherit_rpath_F77" = yes; then 24569 # Fast installation is not supported 24570 enable_fast_install=no 24571elif test "$shlibpath_overrides_runpath" = yes || 24572 test "$enable_shared" = no; then 24573 # Fast installation is not necessary 24574 enable_fast_install=needless 24575fi 24576 24577 24578 24579 24580 24581 24582 24583 fi # test -n "$compiler" 24584 24585 GCC=$lt_save_GCC 24586 CC="$lt_save_CC" 24587 CFLAGS="$lt_save_CFLAGS" 24588fi # test "$_lt_disable_F77" != yes 24589 24590ac_ext=c 24591ac_cpp='$CPP $CPPFLAGS' 24592ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24593ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24594ac_compiler_gnu=$ac_cv_c_compiler_gnu 24595 24596 24597 24598 24599 24600 24601 24602 24603 24604 24605 24606 24607 24608 ac_config_commands="$ac_config_commands libtool" 24609 24610 24611 24612 24613# Only expand once: 24614 24615 24616 24617# Generate an error here if attempting to build both shared and static when 24618# $libname.a is in $library_names_spec (as mentioned above), rather than 24619# wait for ar or ld to fail. 24620# 24621if test "$enable_shared" = yes && test "$enable_static" = yes; then 24622 case $library_names_spec in 24623 *libname.a*) 24624 as_fn_error "cannot create both shared and static libraries on this system, --disable one of the two" "$LINENO" 5 24625 ;; 24626 esac 24627fi 24628 24629 if test "$enable_static" = yes; then 24630 ENABLE_STATIC_TRUE= 24631 ENABLE_STATIC_FALSE='#' 24632else 24633 ENABLE_STATIC_TRUE='#' 24634 ENABLE_STATIC_FALSE= 24635fi 24636 24637 24638 24639# Many of these library and header checks are for the benefit of 24640# supplementary programs. libgmp doesn't use anything too weird. 24641 24642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 24643$as_echo_n "checking for ANSI C header files... " >&6; } 24644if test "${ac_cv_header_stdc+set}" = set; then : 24645 $as_echo_n "(cached) " >&6 24646else 24647 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24648/* end confdefs.h. */ 24649#include <stdlib.h> 24650#include <stdarg.h> 24651#include <string.h> 24652#include <float.h> 24653 24654int 24655main () 24656{ 24657 24658 ; 24659 return 0; 24660} 24661_ACEOF 24662if ac_fn_c_try_compile "$LINENO"; then : 24663 ac_cv_header_stdc=yes 24664else 24665 ac_cv_header_stdc=no 24666fi 24667rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24668 24669if test $ac_cv_header_stdc = yes; then 24670 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 24671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24672/* end confdefs.h. */ 24673#include <string.h> 24674 24675_ACEOF 24676if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 24677 $EGREP "memchr" >/dev/null 2>&1; then : 24678 24679else 24680 ac_cv_header_stdc=no 24681fi 24682rm -f conftest* 24683 24684fi 24685 24686if test $ac_cv_header_stdc = yes; then 24687 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 24688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24689/* end confdefs.h. */ 24690#include <stdlib.h> 24691 24692_ACEOF 24693if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 24694 $EGREP "free" >/dev/null 2>&1; then : 24695 24696else 24697 ac_cv_header_stdc=no 24698fi 24699rm -f conftest* 24700 24701fi 24702 24703if test $ac_cv_header_stdc = yes; then 24704 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 24705 if test "$cross_compiling" = yes; then : 24706 : 24707else 24708 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24709/* end confdefs.h. */ 24710#include <ctype.h> 24711#include <stdlib.h> 24712#if ((' ' & 0x0FF) == 0x020) 24713# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 24714# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 24715#else 24716# define ISLOWER(c) \ 24717 (('a' <= (c) && (c) <= 'i') \ 24718 || ('j' <= (c) && (c) <= 'r') \ 24719 || ('s' <= (c) && (c) <= 'z')) 24720# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 24721#endif 24722 24723#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 24724int 24725main () 24726{ 24727 int i; 24728 for (i = 0; i < 256; i++) 24729 if (XOR (islower (i), ISLOWER (i)) 24730 || toupper (i) != TOUPPER (i)) 24731 return 2; 24732 return 0; 24733} 24734_ACEOF 24735if ac_fn_c_try_run "$LINENO"; then : 24736 24737else 24738 ac_cv_header_stdc=no 24739fi 24740rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 24741 conftest.$ac_objext conftest.beam conftest.$ac_ext 24742fi 24743 24744fi 24745fi 24746{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 24747$as_echo "$ac_cv_header_stdc" >&6; } 24748if test $ac_cv_header_stdc = yes; then 24749 24750$as_echo "#define STDC_HEADERS 1" >>confdefs.h 24751 24752fi 24753 24754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 24755$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 24756if test "${ac_cv_header_time+set}" = set; then : 24757 $as_echo_n "(cached) " >&6 24758else 24759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24760/* end confdefs.h. */ 24761#include <sys/types.h> 24762#include <sys/time.h> 24763#include <time.h> 24764 24765int 24766main () 24767{ 24768if ((struct tm *) 0) 24769return 0; 24770 ; 24771 return 0; 24772} 24773_ACEOF 24774if ac_fn_c_try_compile "$LINENO"; then : 24775 ac_cv_header_time=yes 24776else 24777 ac_cv_header_time=no 24778fi 24779rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 24780fi 24781{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 24782$as_echo "$ac_cv_header_time" >&6; } 24783if test $ac_cv_header_time = yes; then 24784 24785$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 24786 24787fi 24788 24789 24790# Reasons for testing: 24791# float.h - not in SunOS bundled cc 24792# invent.h - IRIX specific 24793# langinfo.h - X/Open standard only, not in djgpp for instance 24794# locale.h - old systems won't have this 24795# nl_types.h - X/Open standard only, not in djgpp for instance 24796# (usually langinfo.h gives nl_item etc, but not on netbsd 1.4.1) 24797# sys/attributes.h - IRIX specific 24798# sys/iograph.h - IRIX specific 24799# sys/mman.h - not in Cray Unicos 24800# sys/param.h - not in mingw 24801# sys/processor.h - solaris specific, though also present in macos 24802# sys/pstat.h - HPUX specific 24803# sys/resource.h - not in mingw 24804# sys/sysctl.h - not in mingw 24805# sys/sysinfo.h - OSF specific 24806# sys/syssgi.h - IRIX specific 24807# sys/systemcfg.h - AIX specific 24808# sys/time.h - autoconf suggests testing, don't know anywhere without it 24809# sys/times.h - not in mingw 24810# machine/hal_sysinfo.h - OSF specific 24811# 24812# inttypes.h, stdint.h, unistd.h and sys/types.h are already in the autoconf 24813# default tests 24814# 24815for 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 24816do : 24817 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 24818ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 24819eval as_val=\$$as_ac_Header 24820 if test "x$as_val" = x""yes; then : 24821 cat >>confdefs.h <<_ACEOF 24822#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 24823_ACEOF 24824 24825fi 24826 24827done 24828 24829 24830# On SunOS, sys/resource.h needs sys/time.h (for struct timeval) 24831for ac_header in sys/resource.h 24832do : 24833 ac_fn_c_check_header_compile "$LINENO" "sys/resource.h" "ac_cv_header_sys_resource_h" "#if TIME_WITH_SYS_TIME 24834# include <sys/time.h> 24835# include <time.h> 24836#else 24837# if HAVE_SYS_TIME_H 24838# include <sys/time.h> 24839# else 24840# include <time.h> 24841# endif 24842#endif 24843" 24844if test "x$ac_cv_header_sys_resource_h" = x""yes; then : 24845 cat >>confdefs.h <<_ACEOF 24846#define HAVE_SYS_RESOURCE_H 1 24847_ACEOF 24848 24849fi 24850 24851done 24852 24853 24854# On NetBSD and OpenBSD, sys/sysctl.h needs sys/param.h for various constants 24855for ac_header in sys/sysctl.h 24856do : 24857 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "#if HAVE_SYS_PARAM_H 24858# include <sys/param.h> 24859#endif 24860" 24861if test "x$ac_cv_header_sys_sysctl_h" = x""yes; then : 24862 cat >>confdefs.h <<_ACEOF 24863#define HAVE_SYS_SYSCTL_H 1 24864_ACEOF 24865 24866fi 24867 24868done 24869 24870 24871# On OSF 4.0, <machine/hal_sysinfo.h> must have <sys/sysinfo.h> for ulong_t 24872for ac_header in machine/hal_sysinfo.h 24873do : 24874 ac_fn_c_check_header_compile "$LINENO" "machine/hal_sysinfo.h" "ac_cv_header_machine_hal_sysinfo_h" "#if HAVE_SYS_SYSINFO_H 24875# include <sys/sysinfo.h> 24876#endif 24877" 24878if test "x$ac_cv_header_machine_hal_sysinfo_h" = x""yes; then : 24879 cat >>confdefs.h <<_ACEOF 24880#define HAVE_MACHINE_HAL_SYSINFO_H 1 24881_ACEOF 24882 24883fi 24884 24885done 24886 24887 24888# Reasons for testing: 24889# optarg - not declared in mingw 24890# fgetc, fscanf, ungetc, vfprintf - not declared in SunOS 4 24891# sys_errlist, sys_nerr - not declared in SunOS 4 24892# 24893# optarg should be in unistd.h and the rest in stdio.h, both of which are 24894# in the autoconf default includes. 24895# 24896# sys_errlist and sys_nerr are supposed to be in <errno.h> on SunOS according 24897# to the man page (but aren't), in glibc they're in stdio.h. 24898# 24899ac_fn_c_check_decl "$LINENO" "fgetc" "ac_cv_have_decl_fgetc" "$ac_includes_default" 24900if test "x$ac_cv_have_decl_fgetc" = x""yes; then : 24901 ac_have_decl=1 24902else 24903 ac_have_decl=0 24904fi 24905 24906cat >>confdefs.h <<_ACEOF 24907#define HAVE_DECL_FGETC $ac_have_decl 24908_ACEOF 24909ac_fn_c_check_decl "$LINENO" "fscanf" "ac_cv_have_decl_fscanf" "$ac_includes_default" 24910if test "x$ac_cv_have_decl_fscanf" = x""yes; then : 24911 ac_have_decl=1 24912else 24913 ac_have_decl=0 24914fi 24915 24916cat >>confdefs.h <<_ACEOF 24917#define HAVE_DECL_FSCANF $ac_have_decl 24918_ACEOF 24919ac_fn_c_check_decl "$LINENO" "optarg" "ac_cv_have_decl_optarg" "$ac_includes_default" 24920if test "x$ac_cv_have_decl_optarg" = x""yes; then : 24921 ac_have_decl=1 24922else 24923 ac_have_decl=0 24924fi 24925 24926cat >>confdefs.h <<_ACEOF 24927#define HAVE_DECL_OPTARG $ac_have_decl 24928_ACEOF 24929ac_fn_c_check_decl "$LINENO" "ungetc" "ac_cv_have_decl_ungetc" "$ac_includes_default" 24930if test "x$ac_cv_have_decl_ungetc" = x""yes; then : 24931 ac_have_decl=1 24932else 24933 ac_have_decl=0 24934fi 24935 24936cat >>confdefs.h <<_ACEOF 24937#define HAVE_DECL_UNGETC $ac_have_decl 24938_ACEOF 24939ac_fn_c_check_decl "$LINENO" "vfprintf" "ac_cv_have_decl_vfprintf" "$ac_includes_default" 24940if test "x$ac_cv_have_decl_vfprintf" = x""yes; then : 24941 ac_have_decl=1 24942else 24943 ac_have_decl=0 24944fi 24945 24946cat >>confdefs.h <<_ACEOF 24947#define HAVE_DECL_VFPRINTF $ac_have_decl 24948_ACEOF 24949 24950ac_fn_c_check_decl "$LINENO" "sys_errlist" "ac_cv_have_decl_sys_errlist" "#include <stdio.h> 24951#include <errno.h> 24952" 24953if test "x$ac_cv_have_decl_sys_errlist" = x""yes; then : 24954 ac_have_decl=1 24955else 24956 ac_have_decl=0 24957fi 24958 24959cat >>confdefs.h <<_ACEOF 24960#define HAVE_DECL_SYS_ERRLIST $ac_have_decl 24961_ACEOF 24962ac_fn_c_check_decl "$LINENO" "sys_nerr" "ac_cv_have_decl_sys_nerr" "#include <stdio.h> 24963#include <errno.h> 24964" 24965if test "x$ac_cv_have_decl_sys_nerr" = x""yes; then : 24966 ac_have_decl=1 24967else 24968 ac_have_decl=0 24969fi 24970 24971cat >>confdefs.h <<_ACEOF 24972#define HAVE_DECL_SYS_NERR $ac_have_decl 24973_ACEOF 24974 24975 24976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 24977$as_echo_n "checking return type of signal handlers... " >&6; } 24978if test "${ac_cv_type_signal+set}" = set; then : 24979 $as_echo_n "(cached) " >&6 24980else 24981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 24982/* end confdefs.h. */ 24983#include <sys/types.h> 24984#include <signal.h> 24985 24986int 24987main () 24988{ 24989return *(signal (0, 0)) (0) == 1; 24990 ; 24991 return 0; 24992} 24993_ACEOF 24994if ac_fn_c_try_compile "$LINENO"; then : 24995 ac_cv_type_signal=int 24996else 24997 ac_cv_type_signal=void 24998fi 24999rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25000fi 25001{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 25002$as_echo "$ac_cv_type_signal" >&6; } 25003 25004cat >>confdefs.h <<_ACEOF 25005#define RETSIGTYPE $ac_cv_type_signal 25006_ACEOF 25007 25008 25009 25010# Reasons for testing: 25011# intmax_t - C99 25012# long double - not in the HP bundled K&R cc 25013# long long - only in reasonably recent compilers 25014# ptrdiff_t - seems to be everywhere, maybe don't need to check this 25015# quad_t - BSD specific 25016# uint_least32_t - C99 25017# 25018# the default includes are sufficient for all these types 25019# 25020ac_fn_c_check_type "$LINENO" "intmax_t" "ac_cv_type_intmax_t" "$ac_includes_default" 25021if test "x$ac_cv_type_intmax_t" = x""yes; then : 25022 25023cat >>confdefs.h <<_ACEOF 25024#define HAVE_INTMAX_T 1 25025_ACEOF 25026 25027 25028fi 25029ac_fn_c_check_type "$LINENO" "long double" "ac_cv_type_long_double" "$ac_includes_default" 25030if test "x$ac_cv_type_long_double" = x""yes; then : 25031 25032cat >>confdefs.h <<_ACEOF 25033#define HAVE_LONG_DOUBLE 1 25034_ACEOF 25035 25036 25037fi 25038ac_fn_c_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" 25039if test "x$ac_cv_type_long_long" = x""yes; then : 25040 25041cat >>confdefs.h <<_ACEOF 25042#define HAVE_LONG_LONG 1 25043_ACEOF 25044 25045 25046fi 25047ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" 25048if test "x$ac_cv_type_ptrdiff_t" = x""yes; then : 25049 25050cat >>confdefs.h <<_ACEOF 25051#define HAVE_PTRDIFF_T 1 25052_ACEOF 25053 25054 25055fi 25056ac_fn_c_check_type "$LINENO" "quad_t" "ac_cv_type_quad_t" "$ac_includes_default" 25057if test "x$ac_cv_type_quad_t" = x""yes; then : 25058 25059cat >>confdefs.h <<_ACEOF 25060#define HAVE_QUAD_T 1 25061_ACEOF 25062 25063 25064fi 25065ac_fn_c_check_type "$LINENO" "uint_least32_t" "ac_cv_type_uint_least32_t" "$ac_includes_default" 25066if test "x$ac_cv_type_uint_least32_t" = x""yes; then : 25067 25068cat >>confdefs.h <<_ACEOF 25069#define HAVE_UINT_LEAST32_T 1 25070_ACEOF 25071 25072 25073fi 25074ac_fn_c_check_type "$LINENO" "intptr_t" "ac_cv_type_intptr_t" "$ac_includes_default" 25075if test "x$ac_cv_type_intptr_t" = x""yes; then : 25076 25077cat >>confdefs.h <<_ACEOF 25078#define HAVE_INTPTR_T 1 25079_ACEOF 25080 25081 25082fi 25083 25084 25085{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for preprocessor stringizing operator" >&5 25086$as_echo_n "checking for preprocessor stringizing operator... " >&6; } 25087if test "${ac_cv_c_stringize+set}" = set; then : 25088 $as_echo_n "(cached) " >&6 25089else 25090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25091/* end confdefs.h. */ 25092#define x(y) #y 25093 25094char *s = x(teststring); 25095_ACEOF 25096if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 25097 $EGREP "#teststring" >/dev/null 2>&1; then : 25098 ac_cv_c_stringize=no 25099else 25100 ac_cv_c_stringize=yes 25101fi 25102rm -f conftest* 25103 25104fi 25105{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stringize" >&5 25106$as_echo "$ac_cv_c_stringize" >&6; } 25107if test $ac_cv_c_stringize = yes; then 25108 25109$as_echo "#define HAVE_STRINGIZE 1" >>confdefs.h 25110 25111fi 25112 25113 25114# FIXME: Really want #ifndef __cplusplus around the #define volatile 25115# replacement autoconf gives, since volatile is always available in C++. 25116# But we don't use it in C++ currently. 25117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working volatile" >&5 25118$as_echo_n "checking for working volatile... " >&6; } 25119if test "${ac_cv_c_volatile+set}" = set; then : 25120 $as_echo_n "(cached) " >&6 25121else 25122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25123/* end confdefs.h. */ 25124 25125int 25126main () 25127{ 25128 25129volatile int x; 25130int * volatile y = (int *) 0; 25131return !x && !y; 25132 ; 25133 return 0; 25134} 25135_ACEOF 25136if ac_fn_c_try_compile "$LINENO"; then : 25137 ac_cv_c_volatile=yes 25138else 25139 ac_cv_c_volatile=no 25140fi 25141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25142fi 25143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_volatile" >&5 25144$as_echo "$ac_cv_c_volatile" >&6; } 25145if test $ac_cv_c_volatile = no; then 25146 25147$as_echo "#define volatile /**/" >>confdefs.h 25148 25149fi 25150 25151 25152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C/C++ restrict keyword" >&5 25153$as_echo_n "checking for C/C++ restrict keyword... " >&6; } 25154if test "${ac_cv_c_restrict+set}" = set; then : 25155 $as_echo_n "(cached) " >&6 25156else 25157 ac_cv_c_restrict=no 25158 # The order here caters to the fact that C++ does not require restrict. 25159 for ac_kw in __restrict __restrict__ _Restrict restrict; do 25160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25161/* end confdefs.h. */ 25162typedef int * int_ptr; 25163 int foo (int_ptr $ac_kw ip) { 25164 return ip[0]; 25165 } 25166int 25167main () 25168{ 25169int s[1]; 25170 int * $ac_kw t = s; 25171 t[0] = 0; 25172 return foo(t) 25173 ; 25174 return 0; 25175} 25176_ACEOF 25177if ac_fn_c_try_compile "$LINENO"; then : 25178 ac_cv_c_restrict=$ac_kw 25179fi 25180rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25181 test "$ac_cv_c_restrict" != no && break 25182 done 25183 25184fi 25185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_restrict" >&5 25186$as_echo "$ac_cv_c_restrict" >&6; } 25187 25188 case $ac_cv_c_restrict in 25189 restrict) ;; 25190 no) $as_echo "#define restrict /**/" >>confdefs.h 25191 ;; 25192 *) cat >>confdefs.h <<_ACEOF 25193#define restrict $ac_cv_c_restrict 25194_ACEOF 25195 ;; 25196 esac 25197 25198 25199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether <stdarg.h> exists and works" >&5 25200$as_echo_n "checking whether <stdarg.h> exists and works... " >&6; } 25201if test "${gmp_cv_c_stdarg+set}" = set; then : 25202 $as_echo_n "(cached) " >&6 25203else 25204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25205/* end confdefs.h. */ 25206#include <stdarg.h> 25207int foo (int x, ...) 25208{ 25209 va_list ap; 25210 int y; 25211 va_start (ap, x); 25212 y = va_arg (ap, int); 25213 va_end (ap); 25214 return y; 25215} 25216int 25217main () 25218{ 25219 25220 ; 25221 return 0; 25222} 25223_ACEOF 25224if ac_fn_c_try_compile "$LINENO"; then : 25225 gmp_cv_c_stdarg=yes 25226else 25227 gmp_cv_c_stdarg=no 25228fi 25229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25230 25231fi 25232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_stdarg" >&5 25233$as_echo "$gmp_cv_c_stdarg" >&6; } 25234if test $gmp_cv_c_stdarg = yes; then 25235 25236$as_echo "#define HAVE_STDARG 1" >>confdefs.h 25237 25238fi 25239 25240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc __attribute__ ((const)) works" >&5 25241$as_echo_n "checking whether gcc __attribute__ ((const)) works... " >&6; } 25242if test "${gmp_cv_c_attribute_const+set}" = set; then : 25243 $as_echo_n "(cached) " >&6 25244else 25245 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25246/* end confdefs.h. */ 25247int foo (int x) __attribute__ ((const)); 25248int 25249main () 25250{ 25251 25252 ; 25253 return 0; 25254} 25255_ACEOF 25256if ac_fn_c_try_compile "$LINENO"; then : 25257 gmp_cv_c_attribute_const=yes 25258else 25259 gmp_cv_c_attribute_const=no 25260fi 25261rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25262 25263fi 25264{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_attribute_const" >&5 25265$as_echo "$gmp_cv_c_attribute_const" >&6; } 25266if test $gmp_cv_c_attribute_const = yes; then 25267 25268$as_echo "#define HAVE_ATTRIBUTE_CONST 1" >>confdefs.h 25269 25270fi 25271 25272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc __attribute__ ((malloc)) works" >&5 25273$as_echo_n "checking whether gcc __attribute__ ((malloc)) works... " >&6; } 25274if test "${gmp_cv_c_attribute_malloc+set}" = set; then : 25275 $as_echo_n "(cached) " >&6 25276else 25277 cat >conftest.c <<EOF 25278void *foo (int x) __attribute__ ((malloc)); 25279EOF 25280gmp_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >conftest.out 2>&1" 25281if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 25282 (eval $gmp_compile) 2>&5 25283 ac_status=$? 25284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 25285 test $ac_status = 0; }; then 25286 if grep "attribute directive ignored" conftest.out >/dev/null; then 25287 gmp_cv_c_attribute_malloc=no 25288 else 25289 gmp_cv_c_attribute_malloc=yes 25290 fi 25291else 25292 gmp_cv_c_attribute_malloc=no 25293fi 25294cat conftest.out >&5 25295rm -f conftest* 25296 25297fi 25298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_attribute_malloc" >&5 25299$as_echo "$gmp_cv_c_attribute_malloc" >&6; } 25300if test $gmp_cv_c_attribute_malloc = yes; then 25301 25302$as_echo "#define HAVE_ATTRIBUTE_MALLOC 1" >>confdefs.h 25303 25304fi 25305 25306{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc __attribute__ ((mode (XX))) works" >&5 25307$as_echo_n "checking whether gcc __attribute__ ((mode (XX))) works... " >&6; } 25308if test "${gmp_cv_c_attribute_mode+set}" = set; then : 25309 $as_echo_n "(cached) " >&6 25310else 25311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25312/* end confdefs.h. */ 25313typedef int SItype __attribute__ ((mode (SI))); 25314int 25315main () 25316{ 25317 25318 ; 25319 return 0; 25320} 25321_ACEOF 25322if ac_fn_c_try_compile "$LINENO"; then : 25323 gmp_cv_c_attribute_mode=yes 25324else 25325 gmp_cv_c_attribute_mode=no 25326fi 25327rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25328 25329fi 25330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_attribute_mode" >&5 25331$as_echo "$gmp_cv_c_attribute_mode" >&6; } 25332if test $gmp_cv_c_attribute_mode = yes; then 25333 25334$as_echo "#define HAVE_ATTRIBUTE_MODE 1" >>confdefs.h 25335 25336fi 25337 25338{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether gcc __attribute__ ((noreturn)) works" >&5 25339$as_echo_n "checking whether gcc __attribute__ ((noreturn)) works... " >&6; } 25340if test "${gmp_cv_c_attribute_noreturn+set}" = set; then : 25341 $as_echo_n "(cached) " >&6 25342else 25343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25344/* end confdefs.h. */ 25345void foo (int x) __attribute__ ((noreturn)); 25346int 25347main () 25348{ 25349 25350 ; 25351 return 0; 25352} 25353_ACEOF 25354if ac_fn_c_try_compile "$LINENO"; then : 25355 gmp_cv_c_attribute_noreturn=yes 25356else 25357 gmp_cv_c_attribute_noreturn=no 25358fi 25359rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25360 25361fi 25362{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_attribute_noreturn" >&5 25363$as_echo "$gmp_cv_c_attribute_noreturn" >&6; } 25364if test $gmp_cv_c_attribute_noreturn = yes; then 25365 25366$as_echo "#define HAVE_ATTRIBUTE_NORETURN 1" >>confdefs.h 25367 25368fi 25369 25370 25371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 25372$as_echo_n "checking for inline... " >&6; } 25373if test "${ac_cv_c_inline+set}" = set; then : 25374 $as_echo_n "(cached) " >&6 25375else 25376 ac_cv_c_inline=no 25377for ac_kw in inline __inline__ __inline; do 25378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25379/* end confdefs.h. */ 25380#ifndef __cplusplus 25381typedef int foo_t; 25382static $ac_kw foo_t static_foo () {return 0; } 25383$ac_kw foo_t foo () {return 0; } 25384#endif 25385 25386_ACEOF 25387if ac_fn_c_try_compile "$LINENO"; then : 25388 ac_cv_c_inline=$ac_kw 25389fi 25390rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25391 test "$ac_cv_c_inline" != no && break 25392done 25393 25394fi 25395{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 25396$as_echo "$ac_cv_c_inline" >&6; } 25397 25398case $ac_cv_c_inline in 25399 inline | yes) ;; 25400 *) 25401 case $ac_cv_c_inline in 25402 no) ac_val=;; 25403 *) ac_val=$ac_cv_c_inline;; 25404 esac 25405 cat >>confdefs.h <<_ACEOF 25406#ifndef __cplusplus 25407#define inline $ac_val 25408#endif 25409_ACEOF 25410 ;; 25411esac 25412 25413 25414case $ac_cv_c_inline in 25415no) ;; 25416*) 25417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25418/* end confdefs.h. */ 25419#define __GMP_WITHIN_CONFIGURE_INLINE 1 25420#define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */ 25421#define GMP_NAIL_BITS $GMP_NAIL_BITS 25422#define GMP_LIMB_BITS 123 25423$DEFN_LONG_LONG_LIMB 25424#include "$srcdir/gmp-h.in" 25425 25426#ifndef __GMP_EXTERN_INLINE 25427die die die 25428#endif 25429 25430int 25431main () 25432{ 25433 25434 ; 25435 return 0; 25436} 25437_ACEOF 25438if ac_fn_c_try_compile "$LINENO"; then : 25439 25440else 25441 case $ac_cv_c_inline in 25442 yes) tmp_inline=inline ;; 25443 *) tmp_inline=$ac_cv_c_inline ;; 25444 esac 25445 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gmp.h doesnt recognise compiler \"$tmp_inline\", inlines will be unavailable" >&5 25446$as_echo "$as_me: WARNING: gmp.h doesnt recognise compiler \"$tmp_inline\", inlines will be unavailable" >&2;} 25447fi 25448rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25449 ;; 25450esac 25451 25452 25453# from libtool 25454LIBM= 25455case $host in 25456*-*-beos* | *-*-cegcc* | *-*-cygwin* | *-*-haiku* | *-*-pw32* | *-*-darwin*) 25457 # These system don't have libm, or don't need it 25458 ;; 25459*-ncr-sysv4.3*) 25460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _mwvalidcheckl in -lmw" >&5 25461$as_echo_n "checking for _mwvalidcheckl in -lmw... " >&6; } 25462if test "${ac_cv_lib_mw__mwvalidcheckl+set}" = set; then : 25463 $as_echo_n "(cached) " >&6 25464else 25465 ac_check_lib_save_LIBS=$LIBS 25466LIBS="-lmw $LIBS" 25467cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25468/* end confdefs.h. */ 25469 25470/* Override any GCC internal prototype to avoid an error. 25471 Use char because int might match the return type of a GCC 25472 builtin and then its argument prototype would still apply. */ 25473#ifdef __cplusplus 25474extern "C" 25475#endif 25476char _mwvalidcheckl (); 25477int 25478main () 25479{ 25480return _mwvalidcheckl (); 25481 ; 25482 return 0; 25483} 25484_ACEOF 25485if ac_fn_c_try_link "$LINENO"; then : 25486 ac_cv_lib_mw__mwvalidcheckl=yes 25487else 25488 ac_cv_lib_mw__mwvalidcheckl=no 25489fi 25490rm -f core conftest.err conftest.$ac_objext \ 25491 conftest$ac_exeext conftest.$ac_ext 25492LIBS=$ac_check_lib_save_LIBS 25493fi 25494{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mw__mwvalidcheckl" >&5 25495$as_echo "$ac_cv_lib_mw__mwvalidcheckl" >&6; } 25496if test "x$ac_cv_lib_mw__mwvalidcheckl" = x""yes; then : 25497 LIBM="-lmw" 25498fi 25499 25500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 25501$as_echo_n "checking for cos in -lm... " >&6; } 25502if test "${ac_cv_lib_m_cos+set}" = set; then : 25503 $as_echo_n "(cached) " >&6 25504else 25505 ac_check_lib_save_LIBS=$LIBS 25506LIBS="-lm $LIBS" 25507cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25508/* end confdefs.h. */ 25509 25510/* Override any GCC internal prototype to avoid an error. 25511 Use char because int might match the return type of a GCC 25512 builtin and then its argument prototype would still apply. */ 25513#ifdef __cplusplus 25514extern "C" 25515#endif 25516char cos (); 25517int 25518main () 25519{ 25520return cos (); 25521 ; 25522 return 0; 25523} 25524_ACEOF 25525if ac_fn_c_try_link "$LINENO"; then : 25526 ac_cv_lib_m_cos=yes 25527else 25528 ac_cv_lib_m_cos=no 25529fi 25530rm -f core conftest.err conftest.$ac_objext \ 25531 conftest$ac_exeext conftest.$ac_ext 25532LIBS=$ac_check_lib_save_LIBS 25533fi 25534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 25535$as_echo "$ac_cv_lib_m_cos" >&6; } 25536if test "x$ac_cv_lib_m_cos" = x""yes; then : 25537 LIBM="$LIBM -lm" 25538fi 25539 25540 ;; 25541*) 25542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cos in -lm" >&5 25543$as_echo_n "checking for cos in -lm... " >&6; } 25544if test "${ac_cv_lib_m_cos+set}" = set; then : 25545 $as_echo_n "(cached) " >&6 25546else 25547 ac_check_lib_save_LIBS=$LIBS 25548LIBS="-lm $LIBS" 25549cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25550/* end confdefs.h. */ 25551 25552/* Override any GCC internal prototype to avoid an error. 25553 Use char because int might match the return type of a GCC 25554 builtin and then its argument prototype would still apply. */ 25555#ifdef __cplusplus 25556extern "C" 25557#endif 25558char cos (); 25559int 25560main () 25561{ 25562return cos (); 25563 ; 25564 return 0; 25565} 25566_ACEOF 25567if ac_fn_c_try_link "$LINENO"; then : 25568 ac_cv_lib_m_cos=yes 25569else 25570 ac_cv_lib_m_cos=no 25571fi 25572rm -f core conftest.err conftest.$ac_objext \ 25573 conftest$ac_exeext conftest.$ac_ext 25574LIBS=$ac_check_lib_save_LIBS 25575fi 25576{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_cos" >&5 25577$as_echo "$ac_cv_lib_m_cos" >&6; } 25578if test "x$ac_cv_lib_m_cos" = x""yes; then : 25579 LIBM="-lm" 25580fi 25581 25582 ;; 25583esac 25584 25585 25586 25587 25588# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 25589# for constant arguments. Useless! 25590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 25591$as_echo_n "checking for working alloca.h... " >&6; } 25592if test "${gmp_cv_header_alloca+set}" = set; then : 25593 $as_echo_n "(cached) " >&6 25594else 25595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25596/* end confdefs.h. */ 25597#include <alloca.h> 25598int 25599main () 25600{ 25601char *p = (char *) alloca (2 * sizeof (int)); 25602 ; 25603 return 0; 25604} 25605_ACEOF 25606if ac_fn_c_try_link "$LINENO"; then : 25607 gmp_cv_header_alloca=yes 25608else 25609 gmp_cv_header_alloca=no 25610fi 25611rm -f core conftest.err conftest.$ac_objext \ 25612 conftest$ac_exeext conftest.$ac_ext 25613fi 25614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_header_alloca" >&5 25615$as_echo "$gmp_cv_header_alloca" >&6; } 25616if test $gmp_cv_header_alloca = yes; then 25617 25618$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 25619 25620fi 25621 25622 25623{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca (via gmp-impl.h)" >&5 25624$as_echo_n "checking for alloca (via gmp-impl.h)... " >&6; } 25625if test "${gmp_cv_func_alloca+set}" = set; then : 25626 $as_echo_n "(cached) " >&6 25627else 25628 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25629/* end confdefs.h. */ 25630#define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */ 25631#define GMP_NAIL_BITS $GMP_NAIL_BITS 25632#define GMP_LIMB_BITS 123 25633$DEFN_LONG_LONG_LIMB 25634#include "$srcdir/gmp-h.in" 25635 25636#include "$srcdir/gmp-impl.h" 25637 25638int 25639main () 25640{ 25641char *p = (char *) alloca (1); 25642 ; 25643 return 0; 25644} 25645_ACEOF 25646if ac_fn_c_try_link "$LINENO"; then : 25647 gmp_cv_func_alloca=yes 25648else 25649 gmp_cv_func_alloca=no 25650fi 25651rm -f core conftest.err conftest.$ac_objext \ 25652 conftest$ac_exeext conftest.$ac_ext 25653fi 25654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_func_alloca" >&5 25655$as_echo "$gmp_cv_func_alloca" >&6; } 25656if test $gmp_cv_func_alloca = yes; then 25657 25658$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 25659 25660fi 25661 25662 25663{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to allocate temporary memory" >&5 25664$as_echo_n "checking how to allocate temporary memory... " >&6; } 25665if test "${gmp_cv_option_alloca+set}" = set; then : 25666 $as_echo_n "(cached) " >&6 25667else 25668 case $enable_alloca in 25669 yes) 25670 gmp_cv_option_alloca=alloca 25671 ;; 25672 no) 25673 gmp_cv_option_alloca=malloc-reentrant 25674 ;; 25675 reentrant | notreentrant) 25676 case $gmp_cv_func_alloca in 25677 yes) gmp_cv_option_alloca=alloca ;; 25678 *) gmp_cv_option_alloca=malloc-$enable_alloca ;; 25679 esac 25680 ;; 25681 *) 25682 gmp_cv_option_alloca=$enable_alloca 25683 ;; 25684esac 25685 25686fi 25687{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_option_alloca" >&5 25688$as_echo "$gmp_cv_option_alloca" >&6; } 25689 25690 25691 25692case $gmp_cv_option_alloca in 25693 alloca) 25694 if test $gmp_cv_func_alloca = no; then 25695 as_fn_error "--enable-alloca=alloca specified, but alloca not available" "$LINENO" 5 25696 fi 25697 $as_echo "#define WANT_TMP_ALLOCA 1" >>confdefs.h 25698 25699 TAL_OBJECT=tal-reent$U.lo 25700 ;; 25701 malloc-reentrant) 25702 $as_echo "#define WANT_TMP_REENTRANT 1" >>confdefs.h 25703 25704 TAL_OBJECT=tal-reent$U.lo 25705 ;; 25706 malloc-notreentrant) 25707 $as_echo "#define WANT_TMP_NOTREENTRANT 1" >>confdefs.h 25708 25709 TAL_OBJECT=tal-notreent$U.lo 25710 ;; 25711 debug) 25712 $as_echo "#define WANT_TMP_DEBUG 1" >>confdefs.h 25713 25714 TAL_OBJECT=tal-debug$U.lo 25715 ;; 25716 *) 25717 # checks at the start of configure.in should protect us 25718 as_fn_error "unrecognised --enable-alloca=$gmp_cv_option_alloca" "$LINENO" 5 25719 ;; 25720esac 25721 25722 25723 25724cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25725/* end confdefs.h. */ 25726#include <stdio.h> 25727#define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */ 25728#define GMP_NAIL_BITS $GMP_NAIL_BITS 25729#define GMP_LIMB_BITS 123 25730$DEFN_LONG_LONG_LIMB 25731#include "$srcdir/gmp-h.in" 25732 25733#if ! _GMP_H_HAVE_FILE 25734die die die 25735#endif 25736 25737int 25738main () 25739{ 25740 25741 ; 25742 return 0; 25743} 25744_ACEOF 25745if ac_fn_c_try_compile "$LINENO"; then : 25746 25747else 25748 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: gmp.h doesnt recognise <stdio.h>, FILE prototypes will be unavailable" >&5 25749$as_echo "$as_me: WARNING: gmp.h doesnt recognise <stdio.h>, FILE prototypes will be unavailable" >&2;} 25750fi 25751rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25752 25753 25754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 25755$as_echo_n "checking whether byte ordering is bigendian... " >&6; } 25756if test "${ac_cv_c_bigendian+set}" = set; then : 25757 $as_echo_n "(cached) " >&6 25758else 25759 ac_cv_c_bigendian=unknown 25760 # See if we're dealing with a universal compiler. 25761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25762/* end confdefs.h. */ 25763#ifndef __APPLE_CC__ 25764 not a universal capable compiler 25765 #endif 25766 typedef int dummy; 25767 25768_ACEOF 25769if ac_fn_c_try_compile "$LINENO"; then : 25770 25771 # Check for potential -arch flags. It is not universal unless 25772 # there are at least two -arch flags with different values. 25773 ac_arch= 25774 ac_prev= 25775 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do 25776 if test -n "$ac_prev"; then 25777 case $ac_word in 25778 i?86 | x86_64 | ppc | ppc64) 25779 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then 25780 ac_arch=$ac_word 25781 else 25782 ac_cv_c_bigendian=universal 25783 break 25784 fi 25785 ;; 25786 esac 25787 ac_prev= 25788 elif test "x$ac_word" = "x-arch"; then 25789 ac_prev=arch 25790 fi 25791 done 25792fi 25793rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25794 if test $ac_cv_c_bigendian = unknown; then 25795 # See if sys/param.h defines the BYTE_ORDER macro. 25796 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25797/* end confdefs.h. */ 25798#include <sys/types.h> 25799 #include <sys/param.h> 25800 25801int 25802main () 25803{ 25804#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ 25805 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ 25806 && LITTLE_ENDIAN) 25807 bogus endian macros 25808 #endif 25809 25810 ; 25811 return 0; 25812} 25813_ACEOF 25814if ac_fn_c_try_compile "$LINENO"; then : 25815 # It does; now see whether it defined to BIG_ENDIAN or not. 25816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25817/* end confdefs.h. */ 25818#include <sys/types.h> 25819 #include <sys/param.h> 25820 25821int 25822main () 25823{ 25824#if BYTE_ORDER != BIG_ENDIAN 25825 not big endian 25826 #endif 25827 25828 ; 25829 return 0; 25830} 25831_ACEOF 25832if ac_fn_c_try_compile "$LINENO"; then : 25833 ac_cv_c_bigendian=yes 25834else 25835 ac_cv_c_bigendian=no 25836fi 25837rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25838fi 25839rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25840 fi 25841 if test $ac_cv_c_bigendian = unknown; then 25842 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). 25843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25844/* end confdefs.h. */ 25845#include <limits.h> 25846 25847int 25848main () 25849{ 25850#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) 25851 bogus endian macros 25852 #endif 25853 25854 ; 25855 return 0; 25856} 25857_ACEOF 25858if ac_fn_c_try_compile "$LINENO"; then : 25859 # It does; now see whether it defined to _BIG_ENDIAN or not. 25860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25861/* end confdefs.h. */ 25862#include <limits.h> 25863 25864int 25865main () 25866{ 25867#ifndef _BIG_ENDIAN 25868 not big endian 25869 #endif 25870 25871 ; 25872 return 0; 25873} 25874_ACEOF 25875if ac_fn_c_try_compile "$LINENO"; then : 25876 ac_cv_c_bigendian=yes 25877else 25878 ac_cv_c_bigendian=no 25879fi 25880rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25881fi 25882rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25883 fi 25884 if test $ac_cv_c_bigendian = unknown; then 25885 # Compile a test program. 25886 if test "$cross_compiling" = yes; then : 25887 # Try to guess by grepping values from an object file. 25888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25889/* end confdefs.h. */ 25890short int ascii_mm[] = 25891 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; 25892 short int ascii_ii[] = 25893 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; 25894 int use_ascii (int i) { 25895 return ascii_mm[i] + ascii_ii[i]; 25896 } 25897 short int ebcdic_ii[] = 25898 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; 25899 short int ebcdic_mm[] = 25900 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; 25901 int use_ebcdic (int i) { 25902 return ebcdic_mm[i] + ebcdic_ii[i]; 25903 } 25904 extern int foo; 25905 25906int 25907main () 25908{ 25909return use_ascii (foo) == use_ebcdic (foo); 25910 ; 25911 return 0; 25912} 25913_ACEOF 25914if ac_fn_c_try_compile "$LINENO"; then : 25915 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then 25916 ac_cv_c_bigendian=yes 25917 fi 25918 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then 25919 if test "$ac_cv_c_bigendian" = unknown; then 25920 ac_cv_c_bigendian=no 25921 else 25922 # finding both strings is unlikely to happen, but who knows? 25923 ac_cv_c_bigendian=unknown 25924 fi 25925 fi 25926fi 25927rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 25928else 25929 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 25930/* end confdefs.h. */ 25931$ac_includes_default 25932int 25933main () 25934{ 25935 25936 /* Are we little or big endian? From Harbison&Steele. */ 25937 union 25938 { 25939 long int l; 25940 char c[sizeof (long int)]; 25941 } u; 25942 u.l = 1; 25943 return u.c[sizeof (long int) - 1] == 1; 25944 25945 ; 25946 return 0; 25947} 25948_ACEOF 25949if ac_fn_c_try_run "$LINENO"; then : 25950 ac_cv_c_bigendian=no 25951else 25952 ac_cv_c_bigendian=yes 25953fi 25954rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 25955 conftest.$ac_objext conftest.beam conftest.$ac_ext 25956fi 25957 25958 fi 25959fi 25960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 25961$as_echo "$ac_cv_c_bigendian" >&6; } 25962 case $ac_cv_c_bigendian in #( 25963 yes) 25964 $as_echo "#define HAVE_LIMB_BIG_ENDIAN 1" >>confdefs.h 25965 25966 25967echo "define_not_for_expansion(\`HAVE_LIMB_BIG_ENDIAN')" >> $gmp_tmpconfigm4p 25968;; #( 25969 no) 25970 $as_echo "#define HAVE_LIMB_LITTLE_ENDIAN 1" >>confdefs.h 25971 25972 25973echo "define_not_for_expansion(\`HAVE_LIMB_LITTLE_ENDIAN')" >> $gmp_tmpconfigm4p 25974 25975 ;; #( 25976 universal) 25977 25978$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h 25979 25980 ;; #( 25981 *) 25982 : ;; 25983 esac 25984 25985 25986 25987 25988 25989{ $as_echo "$as_me:${as_lineno-$LINENO}: checking format of \`double' floating point" >&5 25990$as_echo_n "checking format of \`double' floating point... " >&6; } 25991if test "${gmp_cv_c_double_format+set}" = set; then : 25992 $as_echo_n "(cached) " >&6 25993else 25994 gmp_cv_c_double_format=unknown 25995cat >conftest.c <<\EOF 25996struct foo { 25997 char before[8]; 25998 double x; 25999 char after[8]; 26000}; 26001extern struct foo foo; 26002struct foo foo = { 26003 { '\001', '\043', '\105', '\147', '\211', '\253', '\315', '\357' }, 26004 -123456789.0, 26005 { '\376', '\334', '\272', '\230', '\166', '\124', '\062', '\020' }, 26006}; 26007EOF 26008gmp_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >&5 2>&1" 26009if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 26010 (eval $gmp_compile) 2>&5 26011 ac_status=$? 26012 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 26013 test $ac_status = 0; }; then 26014cat >conftest.awk <<\EOF 26015 26016BEGIN { 26017 found = 0 26018} 26019 26020{ 26021 for (f = 2; f <= NF; f++) 26022 { 26023 for (i = 0; i < 23; i++) 26024 got[i] = got[i+1]; 26025 got[23] = $f; 26026 26027 # match the special begin and end sequences 26028 if (got[0] != "001") continue 26029 if (got[1] != "043") continue 26030 if (got[2] != "105") continue 26031 if (got[3] != "147") continue 26032 if (got[4] != "211") continue 26033 if (got[5] != "253") continue 26034 if (got[6] != "315") continue 26035 if (got[7] != "357") continue 26036 if (got[16] != "376") continue 26037 if (got[17] != "334") continue 26038 if (got[18] != "272") continue 26039 if (got[19] != "230") continue 26040 if (got[20] != "166") continue 26041 if (got[21] != "124") continue 26042 if (got[22] != "062") continue 26043 if (got[23] != "020") continue 26044 26045 saw = " (" got[8] " " got[9] " " got[10] " " got[11] " " got[12] " " got[13] " " got[14] " " got[15] ")" 26046 26047 if (got[8] == "000" && \ 26048 got[9] == "000" && \ 26049 got[10] == "000" && \ 26050 got[11] == "124" && \ 26051 got[12] == "064" && \ 26052 got[13] == "157" && \ 26053 got[14] == "235" && \ 26054 got[15] == "301") 26055 { 26056 print "IEEE little endian" 26057 found = 1 26058 exit 26059 } 26060 26061 # Little endian with the two 4-byte halves swapped, as used by ARM 26062 # when the chip is in little endian mode. 26063 # 26064 if (got[8] == "064" && \ 26065 got[9] == "157" && \ 26066 got[10] == "235" && \ 26067 got[11] == "301" && \ 26068 got[12] == "000" && \ 26069 got[13] == "000" && \ 26070 got[14] == "000" && \ 26071 got[15] == "124") 26072 { 26073 print "IEEE little endian, swapped halves" 26074 found = 1 26075 exit 26076 } 26077 26078 # gcc 2.95.4 on one GNU/Linux ARM system was seen generating 000 in 26079 # the last byte, whereas 124 is correct. Not sure where the bug 26080 # actually lies, but a running program didn't seem to get a full 26081 # mantissa worth of working bits. 26082 # 26083 # We match this case explicitly so we can give a nice result message, 26084 # but we deliberately exclude it from the normal IEEE double setups 26085 # since it's too broken. 26086 # 26087 if (got[8] == "064" && \ 26088 got[9] == "157" && \ 26089 got[10] == "235" && \ 26090 got[11] == "301" && \ 26091 got[12] == "000" && \ 26092 got[13] == "000" && \ 26093 got[14] == "000" && \ 26094 got[15] == "000") 26095 { 26096 print "bad ARM software floats" 26097 found = 1 26098 exit 26099 } 26100 26101 if (got[8] == "301" && \ 26102 got[9] == "235" && \ 26103 got[10] == "157" && \ 26104 got[11] == "064" && \ 26105 got[12] == "124" && \ 26106 got[13] == "000" && \ 26107 got[14] == "000" && \ 26108 got[15] == "000") 26109 { 26110 print "IEEE big endian" 26111 found = 1 26112 exit 26113 } 26114 26115 if (got[8] == "353" && \ 26116 got[9] == "315" && \ 26117 got[10] == "242" && \ 26118 got[11] == "171" && \ 26119 got[12] == "000" && \ 26120 got[13] == "240" && \ 26121 got[14] == "000" && \ 26122 got[15] == "000") 26123 { 26124 print "VAX D" 26125 found = 1 26126 exit 26127 } 26128 26129 if (got[8] == "275" && \ 26130 got[9] == "301" && \ 26131 got[10] == "064" && \ 26132 got[11] == "157" && \ 26133 got[12] == "000" && \ 26134 got[13] == "124" && \ 26135 got[14] == "000" && \ 26136 got[15] == "000") 26137 { 26138 print "VAX G" 26139 found = 1 26140 exit 26141 } 26142 26143 if (got[8] == "300" && \ 26144 got[9] == "033" && \ 26145 got[10] == "353" && \ 26146 got[11] == "171" && \ 26147 got[12] == "242" && \ 26148 got[13] == "240" && \ 26149 got[14] == "000" && \ 26150 got[15] == "000") 26151 { 26152 print "Cray CFP" 26153 found = 1 26154 exit 26155 } 26156 } 26157} 26158 26159END { 26160 if (! found) 26161 print "unknown", saw 26162} 26163 26164EOF 26165 gmp_cv_c_double_format=`od -b conftest.$OBJEXT | $AWK -f conftest.awk` 26166 case $gmp_cv_c_double_format in 26167 unknown*) 26168 echo "cannot match anything, conftest.$OBJEXT contains" >&5 26169 od -b conftest.$OBJEXT >&5 26170 ;; 26171 esac 26172else 26173 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: oops, cannot compile test program" >&5 26174$as_echo "$as_me: WARNING: oops, cannot compile test program" >&2;} 26175fi 26176rm -f conftest* 26177 26178fi 26179{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_c_double_format" >&5 26180$as_echo "$gmp_cv_c_double_format" >&6; } 26181 26182 26183 26184case $gmp_cv_c_double_format in 26185 "IEEE big endian") 26186 $as_echo "#define HAVE_DOUBLE_IEEE_BIG_ENDIAN 1" >>confdefs.h 26187 26188 26189echo "define_not_for_expansion(\`HAVE_DOUBLE_IEEE_BIG_ENDIAN')" >> $gmp_tmpconfigm4p 26190 26191 ;; 26192 "IEEE little endian") 26193 $as_echo "#define HAVE_DOUBLE_IEEE_LITTLE_ENDIAN 1" >>confdefs.h 26194 26195 26196echo "define_not_for_expansion(\`HAVE_DOUBLE_IEEE_LITTLE_ENDIAN')" >> $gmp_tmpconfigm4p 26197 26198 ;; 26199 "IEEE little endian, swapped halves") 26200 $as_echo "#define HAVE_DOUBLE_IEEE_LITTLE_SWAPPED 1" >>confdefs.h 26201 ;; 26202 "VAX D") 26203 $as_echo "#define HAVE_DOUBLE_VAX_D 1" >>confdefs.h 26204 ;; 26205 "VAX G") 26206 $as_echo "#define HAVE_DOUBLE_VAX_G 1" >>confdefs.h 26207 ;; 26208 "Cray CFP") 26209 $as_echo "#define HAVE_DOUBLE_CRAY_CFP 1" >>confdefs.h 26210 ;; 26211 "bad ARM software floats") 26212 ;; 26213 unknown*) 26214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Could not determine float format." >&5 26215$as_echo "$as_me: WARNING: Could not determine float format." >&2;} 26216 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Conversions to and from \"double\" may be slow." >&5 26217$as_echo "$as_me: WARNING: Conversions to and from \"double\" may be slow." >&2;} 26218 ;; 26219 *) 26220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: oops, unrecognised float format: $gmp_cv_c_double_format" >&5 26221$as_echo "$as_me: WARNING: oops, unrecognised float format: $gmp_cv_c_double_format" >&2;} 26222 ;; 26223esac 26224 26225 26226 26227# Reasons for testing: 26228# alarm - not in mingw 26229# attr_get - IRIX specific 26230# clock_gettime - not in glibc 2.2.4, only very recent systems 26231# cputime - not in glibc 26232# getsysinfo - OSF specific 26233# getrusage - not in mingw 26234# gettimeofday - not in mingw 26235# mmap - not in mingw, djgpp 26236# nl_langinfo - X/Open standard only, not in djgpp for instance 26237# obstack_vprintf - glibc specific 26238# processor_info - solaris specific 26239# pstat_getprocessor - HPUX specific (10.x and up) 26240# raise - an ANSI-ism, though probably almost universal by now 26241# read_real_time - AIX specific 26242# sigaction - not in mingw 26243# sigaltstack - not in mingw, or old AIX (reputedly) 26244# sigstack - not in mingw 26245# strerror - not in SunOS 26246# strnlen - glibc extension (some other systems too) 26247# syssgi - IRIX specific 26248# times - not in mingw 26249# 26250# clock_gettime is in librt on *-*-osf5.1. We could look for it 26251# there, but that's not worth bothering with unless it has a decent 26252# resolution (in a quick test clock_getres said only 1 millisecond). 26253# 26254# AC_FUNC_STRNLEN is not used because we don't want the AC_LIBOBJ 26255# replacement setups it gives. It detects a faulty strnlen on AIX, but 26256# missing out on that test is ok since our only use of strnlen is in 26257# __gmp_replacement_vsnprintf which is not required on AIX since it has a 26258# vsnprintf. 26259# 26260for 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 26261do : 26262 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 26263ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 26264eval as_val=\$$as_ac_var 26265 if test "x$as_val" = x""yes; then : 26266 cat >>confdefs.h <<_ACEOF 26267#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 26268_ACEOF 26269 26270fi 26271done 26272 26273 26274 26275ac_fn_c_check_func "$LINENO" "vsnprintf" "ac_cv_func_vsnprintf" 26276if test "x$ac_cv_func_vsnprintf" = x""yes; then : 26277 gmp_vsnprintf_exists=yes 26278else 26279 gmp_vsnprintf_exists=no 26280fi 26281 26282if test "$gmp_vsnprintf_exists" = no; then 26283 gmp_cv_func_vsnprintf=no 26284else 26285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether vsnprintf works" >&5 26286$as_echo_n "checking whether vsnprintf works... " >&6; } 26287if test "${gmp_cv_func_vsnprintf+set}" = set; then : 26288 $as_echo_n "(cached) " >&6 26289else 26290 gmp_cv_func_vsnprintf=yes 26291 for i in 'return check ("hello world");' 'int n; return check ("%nhello world", &n);'; do 26292 if test "$cross_compiling" = yes; then : 26293 gmp_cv_func_vsnprintf=probably; break 26294else 26295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 26296/* end confdefs.h. */ 26297 26298#include <string.h> /* for strcmp */ 26299#include <stdio.h> /* for vsnprintf */ 26300 26301#if HAVE_STDARG 26302#include <stdarg.h> 26303#else 26304#include <varargs.h> 26305#endif 26306 26307int 26308#if HAVE_STDARG 26309check (const char *fmt, ...) 26310#else 26311check (va_alist) 26312 va_dcl 26313#endif 26314{ 26315 static char buf[128]; 26316 va_list ap; 26317 int ret; 26318 26319#if HAVE_STDARG 26320 va_start (ap, fmt); 26321#else 26322 char *fmt; 26323 va_start (ap); 26324 fmt = va_arg (ap, char *); 26325#endif 26326 26327 ret = vsnprintf (buf, 4, fmt, ap); 26328 26329 if (strcmp (buf, "hel") != 0) 26330 return 1; 26331 26332 /* allowed return values */ 26333 if (ret != -1 && ret != 3 && ret != 11) 26334 return 2; 26335 26336 return 0; 26337} 26338 26339int 26340main () 26341{ 26342$i 26343} 26344 26345_ACEOF 26346if ac_fn_c_try_run "$LINENO"; then : 26347 : 26348else 26349 gmp_cv_func_vsnprintf=no; break 26350fi 26351rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 26352 conftest.$ac_objext conftest.beam conftest.$ac_ext 26353fi 26354 26355 done 26356 26357fi 26358{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_func_vsnprintf" >&5 26359$as_echo "$gmp_cv_func_vsnprintf" >&6; } 26360 if test "$gmp_cv_func_vsnprintf" = probably; then 26361 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot check for properly working vsnprintf when cross compiling, will assume it's ok" >&5 26362$as_echo "$as_me: WARNING: cannot check for properly working vsnprintf when cross compiling, will assume it's ok" >&2;} 26363 fi 26364 if test "$gmp_cv_func_vsnprintf" != no; then 26365 26366$as_echo "#define HAVE_VSNPRINTF 1" >>confdefs.h 26367 26368 fi 26369fi 26370 26371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sscanf needs writable input" >&5 26372$as_echo_n "checking whether sscanf needs writable input... " >&6; } 26373if test "${gmp_cv_func_sscanf_writable_input+set}" = set; then : 26374 $as_echo_n "(cached) " >&6 26375else 26376 case $host in 26377 *-*-hpux9 | *-*-hpux9.*) 26378 gmp_cv_func_sscanf_writable_input=yes ;; 26379 *) gmp_cv_func_sscanf_writable_input=no ;; 26380esac 26381 26382fi 26383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_func_sscanf_writable_input" >&5 26384$as_echo "$gmp_cv_func_sscanf_writable_input" >&6; } 26385case $gmp_cv_func_sscanf_writable_input in 26386 yes) 26387$as_echo "#define SSCANF_WRITABLE_INPUT 1" >>confdefs.h 26388 ;; 26389 no) ;; 26390 *) as_fn_error "unrecognised \$gmp_cv_func_sscanf_writable_input" "$LINENO" 5 ;; 26391esac 26392 26393 26394# Reasons for checking: 26395# pst_processor psp_iticksperclktick - not in hpux 9 26396# 26397ac_fn_c_check_member "$LINENO" "struct pst_processor" "psp_iticksperclktick" "ac_cv_member_struct_pst_processor_psp_iticksperclktick" "#include <sys/pstat.h> 26398" 26399if test "x$ac_cv_member_struct_pst_processor_psp_iticksperclktick" = x""yes; then : 26400 26401$as_echo "#define HAVE_PSP_ITICKSPERCLKTICK 1" >>confdefs.h 26402 26403fi 26404 26405 26406# C++ tests, when required 26407# 26408if test $enable_cxx = yes; then 26409 ac_ext=cpp 26410ac_cpp='$CXXCPP $CPPFLAGS' 26411ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 26412ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 26413ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 26414 26415 26416 # Reasons for testing: 26417 # <sstream> - not in g++ 2.95.2 26418 # std::locale - not in g++ 2.95.4 26419 # 26420 26421for ac_header in sstream 26422do : 26423 ac_fn_cxx_check_header_mongrel "$LINENO" "sstream" "ac_cv_header_sstream" "$ac_includes_default" 26424if test "x$ac_cv_header_sstream" = x""yes; then : 26425 cat >>confdefs.h <<_ACEOF 26426#define HAVE_SSTREAM 1 26427_ACEOF 26428 26429fi 26430 26431done 26432 26433 ac_fn_cxx_check_type "$LINENO" "std::locale" "ac_cv_type_std__locale" "#include <locale> 26434" 26435if test "x$ac_cv_type_std__locale" = x""yes; then : 26436 26437cat >>confdefs.h <<_ACEOF 26438#define HAVE_STD__LOCALE 1 26439_ACEOF 26440 26441 26442fi 26443 26444 26445 ac_ext=c 26446ac_cpp='$CPP $CPPFLAGS' 26447ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 26448ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 26449ac_compiler_gnu=$ac_cv_c_compiler_gnu 26450 26451fi 26452 26453 26454# Pick the correct source files in $path and link them to mpn/. 26455# $gmp_mpn_functions lists all functions we need. 26456# 26457# The rule is to find a file with the function name and a .asm, .S, 26458# .s, or .c extension. Certain multi-function files with special names 26459# can provide some functions too. (mpn/Makefile.am passes 26460# -DOPERATION_<func> to get them to generate the right code.) 26461 26462# Note: $gmp_mpn_functions must have mod_1 before pre_mod_1 so the former 26463# can optionally provide the latter as an extra entrypoint. Likewise 26464# divrem_1 and pre_divrem_1. 26465 26466gmp_mpn_functions_optional="umul udiv \ 26467 invert_limb sqr_diagonal \ 26468 mul_2 mul_3 mul_4 \ 26469 addmul_2 addmul_3 addmul_4 addmul_5 addmul_6 addmul_7 addmul_8 \ 26470 addlsh1_n sublsh1_n rsblsh1_n rsh1add_n rsh1sub_n \ 26471 addlsh2_n sublsh2_n rsblsh2_n \ 26472 addlsh_n sublsh_n rsblsh_n \ 26473 add_n_sub_n addaddmul_1msb0" 26474 26475gmp_mpn_functions="$extra_functions \ 26476 add add_1 add_n sub sub_1 sub_n neg com mul_1 addmul_1 \ 26477 submul_1 lshift rshift dive_1 diveby3 divis divrem divrem_1 divrem_2 \ 26478 fib2_ui mod_1 mod_34lsub1 mode1o pre_divrem_1 pre_mod_1 dump \ 26479 mod_1_1 mod_1_2 mod_1_3 mod_1_4 lshiftc \ 26480 mul mul_fft mul_n sqr mul_basecase sqr_basecase nussbaumer_mul \ 26481 random random2 pow_1 \ 26482 rootrem sqrtrem get_str set_str scan0 scan1 popcount hamdist cmp \ 26483 perfsqr perfpow \ 26484 gcd_1 gcd gcdext_1 gcdext gcd_lehmer gcd_subdiv_step \ 26485 gcdext_lehmer gcdext_subdiv_step \ 26486 div_q tdiv_qr jacbase get_d \ 26487 matrix22_mul hgcd2 hgcd mullo_n mullo_basecase \ 26488 toom22_mul toom32_mul toom42_mul toom52_mul toom62_mul \ 26489 toom33_mul toom43_mul toom53_mul toom63_mul \ 26490 toom44_mul \ 26491 toom6h_mul toom6_sqr toom8h_mul toom8_sqr \ 26492 toom_couple_handling \ 26493 toom2_sqr toom3_sqr toom4_sqr \ 26494 toom_eval_dgr3_pm1 toom_eval_dgr3_pm2 \ 26495 toom_eval_pm1 toom_eval_pm2 toom_eval_pm2exp toom_eval_pm2rexp \ 26496 toom_interpolate_5pts toom_interpolate_6pts toom_interpolate_7pts \ 26497 toom_interpolate_8pts toom_interpolate_12pts toom_interpolate_16pts \ 26498 invertappr invert binvert mulmod_bnm1 sqrmod_bnm1 \ 26499 sbpi1_div_q sbpi1_div_qr sbpi1_divappr_q \ 26500 dcpi1_div_q dcpi1_div_qr dcpi1_divappr_q \ 26501 mu_div_qr mu_divappr_q mu_div_q \ 26502 bdiv_q_1 \ 26503 sbpi1_bdiv_q sbpi1_bdiv_qr \ 26504 dcpi1_bdiv_q dcpi1_bdiv_qr \ 26505 mu_bdiv_q mu_bdiv_qr \ 26506 bdiv_q bdiv_qr \ 26507 divexact bdiv_dbm1c redc_1 redc_2 redc_n powm powlo powm_sec subcnd_n \ 26508 redc_1_sec trialdiv remove \ 26509 and_n andn_n nand_n ior_n iorn_n nior_n xor_n xnor_n \ 26510 copyi copyd zero \ 26511 $gmp_mpn_functions_optional" 26512 26513 26514 26515# the list of all object files used by mpn/Makefile.in and the 26516# top-level Makefile.in, respectively 26517mpn_objects= 26518mpn_objs_in_libgmp= 26519 26520# links from the sources, to be removed by "make distclean" 26521gmp_srclinks= 26522 26523 26524# mpn_relative_top_srcdir is $top_srcdir, but for use from within the mpn 26525# build directory. If $srcdir is relative then we use a relative path too, 26526# so the two trees can be moved together. 26527case $srcdir in 26528 [\\/]* | ?:[\\/]*) # absolute, as per autoconf 26529 mpn_relative_top_srcdir=$srcdir ;; 26530 *) # relative 26531 mpn_relative_top_srcdir=../$srcdir ;; 26532esac 26533 26534 26535 26536 26537 26538 26539# Fat binary setups. 26540# 26541# We proceed through each $fat_path directory, and look for $fat_function 26542# routines there. Those found are incorporated in the build by generating a 26543# little mpn/<foo>.asm or mpn/<foo>.c file in the build directory, with 26544# suitable function renaming, and adding that to $mpn_objects (the same as a 26545# normal mpn file). 26546# 26547# fat.h is generated with macros to let internal calls to each $fat_function 26548# go directly through __gmpn_cpuvec, plus macros and declarations helping to 26549# setup that structure, on a per-directory basis ready for 26550# mpn/<cpu>/fat/fat.c. 26551# 26552# fat.h includes thresholds listed in $fat_thresholds, extracted from 26553# gmp-mparam.h in each directory. An overall maximum for each threshold is 26554# established, for use in making fixed size arrays of temporary space. 26555# (Eg. MUL_TOOM33_THRESHOLD_LIMIT used by mpn/generic/mul.c.) 26556# 26557# It'd be possible to do some of this manually, but when there's more than a 26558# few functions and a few directories it becomes very tedious, and very 26559# prone to having some routine accidentally omitted. On that basis it seems 26560# best to automate as much as possible, even if the code to do so is a bit 26561# ugly. 26562# 26563 26564if test -n "$fat_path"; then 26565 # Usually the mpn build directory is created with mpn/Makefile 26566 # instantiation, but we want to write to it sooner. 26567 mkdir mpn 2>/dev/null 26568 26569 echo "/* fat.h - setups for fat binaries." >fat.h 26570 echo " Generated by configure - DO NOT EDIT. */" >>fat.h 26571 26572 26573$as_echo "#define WANT_FAT_BINARY 1" >>confdefs.h 26574 26575 26576echo 'define(<WANT_FAT_BINARY>, <yes>)' >>$gmp_tmpconfigm4 26577 26578 26579 # Don't want normal copies of fat functions 26580 for tmp_fn in $fat_functions; do 26581 remove_from_list_tmp= 26582for remove_from_list_i in $gmp_mpn_functions; do 26583 if test $remove_from_list_i = $tmp_fn; then :; 26584 else 26585 remove_from_list_tmp="$remove_from_list_tmp $remove_from_list_i" 26586 fi 26587done 26588gmp_mpn_functions=$remove_from_list_tmp 26589 26590 remove_from_list_tmp= 26591for remove_from_list_i in $gmp_mpn_functions_optional; do 26592 if test $remove_from_list_i = $tmp_fn; then :; 26593 else 26594 remove_from_list_tmp="$remove_from_list_tmp $remove_from_list_i" 26595 fi 26596done 26597gmp_mpn_functions_optional=$remove_from_list_tmp 26598 26599 done 26600 26601 for tmp_fn in $fat_functions; do 26602 case $tmp_fn in 26603 dive_1) tmp_fbase=divexact_1 ;; 26604 diveby3) tmp_fbase=divexact_by3c ;; 26605 pre_divrem_1) tmp_fbase=preinv_divrem_1 ;; 26606 mode1o) tmp_fbase=modexact_1c_odd ;; 26607 pre_mod_1) tmp_fbase=preinv_mod_1 ;; 26608 *) tmp_fbase=$tmp_fn ;; 26609esac 26610 26611 echo " 26612#ifndef OPERATION_$tmp_fn 26613#undef mpn_$tmp_fbase 26614#define mpn_$tmp_fbase (*__gmpn_cpuvec.$tmp_fbase) 26615#endif 26616DECL_$tmp_fbase (__MPN(${tmp_fbase}_init));" >>fat.h 26617 # encourage various macros to use fat functions 26618 cat >>confdefs.h <<_ACEOF 26619#define HAVE_NATIVE_mpn_$tmp_fbase 1 26620_ACEOF 26621 26622 done 26623 26624 echo "" >>fat.h 26625 echo "/* variable thresholds */" >>fat.h 26626 for tmp_tn in $fat_thresholds; do 26627 echo "#undef $tmp_tn" >>fat.h 26628 echo "#define $tmp_tn CPUVEC_THRESHOLD (`echo $tmp_tn | tr [A-Z] [a-z]`)" >>fat.h 26629 done 26630 26631 echo " 26632/* Copy all fields into __gmpn_cpuvec. 26633 memcpy is not used because it might operate byte-wise (depending on its 26634 implementation), and we need the function pointer writes to be atomic. 26635 "volatile" discourages the compiler from trying to optimize this. */ 26636#define CPUVEC_INSTALL(vec) \\ 26637 do { \\ 26638 volatile struct cpuvec_t *p = &__gmpn_cpuvec; \\" >>fat.h 26639 for tmp_fn in $fat_functions; do 26640 case $tmp_fn in 26641 dive_1) tmp_fbase=divexact_1 ;; 26642 diveby3) tmp_fbase=divexact_by3c ;; 26643 pre_divrem_1) tmp_fbase=preinv_divrem_1 ;; 26644 mode1o) tmp_fbase=modexact_1c_odd ;; 26645 pre_mod_1) tmp_fbase=preinv_mod_1 ;; 26646 *) tmp_fbase=$tmp_fn ;; 26647esac 26648 26649 echo " p->$tmp_fbase = vec.$tmp_fbase; \\" >>fat.h 26650 done 26651 for tmp_tn in $fat_thresholds; do 26652 tmp_field_name=`echo $tmp_tn | tr [A-Z] [a-z]` 26653 echo " p->$tmp_field_name = vec.$tmp_field_name; \\" >>fat.h 26654 done 26655 echo " } while (0)" >>fat.h 26656 26657 echo " 26658/* A helper to check all fields are filled. */ 26659#define ASSERT_CPUVEC(vec) \\ 26660 do { \\" >>fat.h 26661 for tmp_fn in $fat_functions; do 26662 case $tmp_fn in 26663 dive_1) tmp_fbase=divexact_1 ;; 26664 diveby3) tmp_fbase=divexact_by3c ;; 26665 pre_divrem_1) tmp_fbase=preinv_divrem_1 ;; 26666 mode1o) tmp_fbase=modexact_1c_odd ;; 26667 pre_mod_1) tmp_fbase=preinv_mod_1 ;; 26668 *) tmp_fbase=$tmp_fn ;; 26669esac 26670 26671 echo " ASSERT (vec.$tmp_fbase != NULL); \\" >>fat.h 26672 done 26673 for tmp_tn in $fat_thresholds; do 26674 tmp_field_name=`echo $tmp_tn | tr [A-Z] [a-z]` 26675 echo " ASSERT (vec.$tmp_field_name != 0); \\" >>fat.h 26676 done 26677 echo " } while (0)" >>fat.h 26678 26679 echo " 26680/* Call ITERATE(field) for each fat threshold field. */ 26681#define ITERATE_FAT_THRESHOLDS() \\ 26682 do { \\" >>fat.h 26683 for tmp_tn in $fat_thresholds; do 26684 tmp_field_name=`echo $tmp_tn | tr [A-Z] [a-z]` 26685 echo " ITERATE ($tmp_tn, $tmp_field_name); \\" >>fat.h 26686 done 26687 echo " } while (0)" >>fat.h 26688 26689 for tmp_dir in $fat_path; do 26690 CPUVEC_SETUP= 26691 THRESH_ASM_SETUP= 26692 echo "" >>fat.h 26693 tmp_suffix=`echo $tmp_dir | sed -e '/\//s:^[^/]*/::' -e 's:[\\/]:_:g'` 26694 26695 # In order to keep names unique on a DOS 8.3 filesystem, use a prefix 26696 # (rather than a suffix) for the generated file names, and abbreviate. 26697 case $tmp_suffix in 26698 pentium) tmp_prefix=p ;; 26699 pentium_mmx) tmp_prefix=pm ;; 26700 p6_mmx) tmp_prefix=p2 ;; 26701 p6_p3mmx) tmp_prefix=p3 ;; 26702 pentium4) tmp_prefix=p4 ;; 26703 pentium4_mmx) tmp_prefix=p4m ;; 26704 pentium4_sse2) tmp_prefix=p4s ;; 26705 k6_mmx) tmp_prefix=k6m ;; 26706 k6_k62mmx) tmp_prefix=k62 ;; 26707 k7_mmx) tmp_prefix=k7m ;; 26708 *) tmp_prefix=$tmp_suffix ;; 26709 esac 26710 26711 # Extract desired thresholds from gmp-mparam.h file in this directory, 26712 # if present. 26713 tmp_mparam=$srcdir/mpn/$tmp_dir/gmp-mparam.h 26714 if test -f $tmp_mparam; then 26715 for tmp_tn in $fat_thresholds; do 26716 tmp_thresh=`sed -n "s/^#define $tmp_tn[ ]*\\([0-9][0-9]*\\).*$/\\1/p" $tmp_mparam` 26717 if test -n "$tmp_thresh"; then 26718 THRESH_ASM_SETUP="${THRESH_ASM_SETUP}define($tmp_tn,$tmp_thresh) 26719" 26720 CPUVEC_SETUP="$CPUVEC_SETUP decided_cpuvec.`echo $tmp_tn | tr [A-Z] [a-z]` = $tmp_thresh; \\ 26721" 26722 eval tmp_limit=\$${tmp_tn}_LIMIT 26723 if test -z "$tmp_limit"; then 26724 tmp_limit=0 26725 fi 26726 if test $tmp_thresh -gt $tmp_limit; then 26727 eval ${tmp_tn}_LIMIT=$tmp_thresh 26728 fi 26729 fi 26730 done 26731 fi 26732 26733 for tmp_fn in $fat_functions; do 26734 # functions that can be provided by multi-function files 26735tmp_mulfunc= 26736case $tmp_fn in 26737 add_n|sub_n) tmp_mulfunc="aors_n" ;; 26738 addmul_1|submul_1) tmp_mulfunc="aorsmul_1" ;; 26739 popcount|hamdist) tmp_mulfunc="popham" ;; 26740 and_n|andn_n|nand_n | ior_n|iorn_n|nior_n | xor_n|xnor_n) 26741 tmp_mulfunc="logops_n" ;; 26742 lshift|rshift) tmp_mulfunc="lorrshift";; 26743 addlsh1_n) 26744 tmp_mulfunc="aorslsh1_n aorrlsh1_n";; 26745 sublsh1_n) 26746 tmp_mulfunc="aorslsh1_n sorrlsh1_n";; 26747 rsblsh1_n) 26748 tmp_mulfunc="aorrlsh1_n sorrlsh1_n";; 26749 addlsh2_n) 26750 tmp_mulfunc="aorslsh2_n aorrlsh2_n";; 26751 sublsh2_n) 26752 tmp_mulfunc="aorslsh2_n sorrlsh2_n";; 26753 rsblsh2_n) 26754 tmp_mulfunc="aorrlsh2_n sorrlsh2_n";; 26755 addlsh_n) 26756 tmp_mulfunc="aorslsh_n aorrlsh_n";; 26757 sublsh_n) 26758 tmp_mulfunc="aorslsh_n sorrlsh_n";; 26759 rsblsh_n) 26760 tmp_mulfunc="aorrlsh_n sorrlsh_n";; 26761 rsh1add_n|rsh1sub_n) 26762 tmp_mulfunc="rsh1aors_n";; 26763esac 26764 26765 26766 for tmp_base in $tmp_fn $tmp_mulfunc; do 26767 for tmp_ext in asm S s c; do 26768 tmp_file=$srcdir/mpn/$tmp_dir/$tmp_base.$tmp_ext 26769 if test -f $tmp_file; then 26770 26771 mpn_objects="$mpn_objects ${tmp_prefix}_$tmp_fn.lo" 26772 mpn_objs_in_libgmp="$mpn_objs_in_libgmp mpn/${tmp_prefix}_$tmp_fn.lo" 26773 26774 case $tmp_fn in 26775 dive_1) tmp_fbase=divexact_1 ;; 26776 diveby3) tmp_fbase=divexact_by3c ;; 26777 pre_divrem_1) tmp_fbase=preinv_divrem_1 ;; 26778 mode1o) tmp_fbase=modexact_1c_odd ;; 26779 pre_mod_1) tmp_fbase=preinv_mod_1 ;; 26780 *) tmp_fbase=$tmp_fn ;; 26781esac 26782 26783 26784 # carry-in variant, eg. divrem_1c or modexact_1c_odd 26785 case $tmp_fbase in 26786 *_1*) tmp_fbasec=`echo $tmp_fbase | sed 's/_1/_1c/'` ;; 26787 *) tmp_fbasec=${tmp_fbase}c ;; 26788 esac 26789 26790 # Create a little file doing an include from srcdir. The 26791 # OPERATION and renamings aren't all needed all the time, but 26792 # they don't hurt if unused. 26793 # 26794 # FIXME: Should generate these via config.status commands. 26795 # Would need them all in one AC_CONFIG_COMMANDS though, since 26796 # that macro doesn't accept a set of separate commands generated 26797 # by shell code. 26798 # 26799 case $tmp_ext in 26800 asm) 26801 # hide the d-n-l from autoconf's error checking 26802 tmp_d_n_l=d""nl 26803 echo "$tmp_d_n_l mpn_$tmp_fbase - from $tmp_dir directory for fat binary. 26804$tmp_d_n_l Generated by configure - DO NOT EDIT. 26805 26806define(OPERATION_$tmp_fn) 26807define(__gmpn_$tmp_fbase, __gmpn_${tmp_fbase}_$tmp_suffix) 26808define(__gmpn_$tmp_fbasec,__gmpn_${tmp_fbasec}_${tmp_suffix}) 26809define(__gmpn_preinv_${tmp_fbase},__gmpn_preinv_${tmp_fbase}_${tmp_suffix}) 26810 26811$tmp_d_n_l For k6 and k7 gcd_1 calling their corresponding mpn_modexact_1_odd 26812ifdef(\`__gmpn_modexact_1_odd',, 26813\`define(__gmpn_modexact_1_odd,__gmpn_modexact_1_odd_${tmp_suffix})') 26814 26815$THRESH_ASM_SETUP 26816include($mpn_relative_top_srcdir/mpn/$tmp_dir/$tmp_base.asm) 26817" >mpn/${tmp_prefix}_$tmp_fn.asm 26818 ;; 26819 c) 26820 echo "/* mpn_$tmp_fbase - from $tmp_dir directory for fat binary. 26821 Generated by configure - DO NOT EDIT. */ 26822 26823#define OPERATION_$tmp_fn 1 26824#define __gmpn_$tmp_fbase __gmpn_${tmp_fbase}_$tmp_suffix 26825#define __gmpn_$tmp_fbasec __gmpn_${tmp_fbasec}_${tmp_suffix} 26826#define __gmpn_preinv_${tmp_fbase} __gmpn_preinv_${tmp_fbase}_${tmp_suffix} 26827 26828#include \"$mpn_relative_top_srcdir/mpn/$tmp_dir/$tmp_base.c\" 26829" >mpn/${tmp_prefix}_$tmp_fn.c 26830 ;; 26831 esac 26832 26833 # Prototype, and append to CPUVEC_SETUP for this directory. 26834 echo "DECL_$tmp_fbase (__gmpn_${tmp_fbase}_$tmp_suffix);" >>fat.h 26835 CPUVEC_SETUP="$CPUVEC_SETUP decided_cpuvec.$tmp_fbase = __gmpn_${tmp_fbase}_${tmp_suffix}; \\ 26836" 26837 # Ditto for any preinv variant (preinv_divrem_1, preinv_mod_1). 26838 if grep "^PROLOGUE(mpn_preinv_$tmp_fn)" $tmp_file >/dev/null; then 26839 echo "DECL_preinv_$tmp_fbase (__gmpn_preinv_${tmp_fbase}_$tmp_suffix);" >>fat.h 26840 CPUVEC_SETUP="$CPUVEC_SETUP decided_cpuvec.preinv_$tmp_fbase = __gmpn_preinv_${tmp_fbase}_${tmp_suffix}; \\ 26841" 26842 fi 26843 fi 26844 done 26845 done 26846 done 26847 26848 # Emit CPUVEC_SETUP for this directory 26849 echo "" >>fat.h 26850 echo "#define CPUVEC_SETUP_$tmp_suffix \\" >>fat.h 26851 echo " do { \\" >>fat.h 26852 echo "$CPUVEC_SETUP } while (0)" >>fat.h 26853 done 26854 26855 # Emit threshold limits 26856 echo "" >>fat.h 26857 for tmp_tn in $fat_thresholds; do 26858 eval tmp_limit=\$${tmp_tn}_LIMIT 26859 echo "#define ${tmp_tn}_LIMIT $tmp_limit" >>fat.h 26860 done 26861fi 26862 26863 26864# Normal binary setups. 26865# 26866 26867for tmp_ext in asm S s c; do 26868 eval found_$tmp_ext=no 26869done 26870 26871for tmp_fn in $gmp_mpn_functions; do 26872 for tmp_ext in asm S s c; do 26873 test "$no_create" = yes || rm -f mpn/$tmp_fn.$tmp_ext 26874 done 26875 26876 # mpn_preinv_divrem_1 might have been provided by divrem_1.asm, likewise 26877 # mpn_preinv_mod_1 by mod_1.asm. 26878 case $tmp_fn in 26879 pre_divrem_1) 26880 if test "$HAVE_NATIVE_mpn_preinv_divrem_1" = yes; then continue; fi ;; 26881 pre_mod_1) 26882 if test "$HAVE_NATIVE_mpn_preinv_mod_1" = yes; then continue; fi ;; 26883 esac 26884 26885 # functions that can be provided by multi-function files 26886tmp_mulfunc= 26887case $tmp_fn in 26888 add_n|sub_n) tmp_mulfunc="aors_n" ;; 26889 addmul_1|submul_1) tmp_mulfunc="aorsmul_1" ;; 26890 popcount|hamdist) tmp_mulfunc="popham" ;; 26891 and_n|andn_n|nand_n | ior_n|iorn_n|nior_n | xor_n|xnor_n) 26892 tmp_mulfunc="logops_n" ;; 26893 lshift|rshift) tmp_mulfunc="lorrshift";; 26894 addlsh1_n) 26895 tmp_mulfunc="aorslsh1_n aorrlsh1_n";; 26896 sublsh1_n) 26897 tmp_mulfunc="aorslsh1_n sorrlsh1_n";; 26898 rsblsh1_n) 26899 tmp_mulfunc="aorrlsh1_n sorrlsh1_n";; 26900 addlsh2_n) 26901 tmp_mulfunc="aorslsh2_n aorrlsh2_n";; 26902 sublsh2_n) 26903 tmp_mulfunc="aorslsh2_n sorrlsh2_n";; 26904 rsblsh2_n) 26905 tmp_mulfunc="aorrlsh2_n sorrlsh2_n";; 26906 addlsh_n) 26907 tmp_mulfunc="aorslsh_n aorrlsh_n";; 26908 sublsh_n) 26909 tmp_mulfunc="aorslsh_n sorrlsh_n";; 26910 rsblsh_n) 26911 tmp_mulfunc="aorrlsh_n sorrlsh_n";; 26912 rsh1add_n|rsh1sub_n) 26913 tmp_mulfunc="rsh1aors_n";; 26914esac 26915 26916 26917 found=no 26918 for tmp_dir in $path; do 26919 for tmp_base in $tmp_fn $tmp_mulfunc; do 26920 for tmp_ext in asm S s c; do 26921 tmp_file=$srcdir/mpn/$tmp_dir/$tmp_base.$tmp_ext 26922 if test -f $tmp_file; then 26923 26924 # For a nails build, check if the file supports our nail bits. 26925 # Generic code always supports all nails. 26926 # 26927 # FIXME: When a multi-function file is selected to provide one of 26928 # the nails-neutral routines, like logops_n for and_n, the 26929 # PROLOGUE grepping will create HAVE_NATIVE_mpn_<foo> defines for 26930 # all functions in that file, even if they haven't all been 26931 # nailified. Not sure what to do about this, it's only really a 26932 # problem for logops_n, and it's not too terrible to insist those 26933 # get nailified always. 26934 # 26935 if test $GMP_NAIL_BITS != 0 && test $tmp_dir != generic; then 26936 case $tmp_fn in 26937 and_n | ior_n | xor_n | andn_n | \ 26938 copyi | copyd | \ 26939 popcount | hamdist | \ 26940 udiv | udiv_w_sdiv | umul | \ 26941 cntlz | invert_limb) 26942 # these operations are either unaffected by nails or defined 26943 # to operate on full limbs 26944 ;; 26945 *) 26946 nails=`sed -n 's/^[ ]*NAILS_SUPPORT(\(.*\))/\1/p' $tmp_file ` 26947 for n in $nails; do 26948 case $n in 26949 *-*) 26950 n_start=`echo "$n" | sed -n 's/\(.*\)-.*/\1/p'` 26951 n_end=`echo "$n" | sed -n 's/.*-\(.*\)/\1/p'` 26952 ;; 26953 *) 26954 n_start=$n 26955 n_end=$n 26956 ;; 26957 esac 26958 if test $GMP_NAIL_BITS -ge $n_start && test $GMP_NAIL_BITS -le $n_end; then 26959 found=yes 26960 break 26961 fi 26962 done 26963 if test $found != yes; then 26964 continue 26965 fi 26966 ;; 26967 esac 26968 fi 26969 26970 found=yes 26971 eval found_$tmp_ext=yes 26972 26973 if test $tmp_ext = c; then 26974 tmp_u='$U' 26975 else 26976 tmp_u= 26977 fi 26978 26979 mpn_objects="$mpn_objects $tmp_fn$tmp_u.lo" 26980 mpn_objs_in_libgmp="$mpn_objs_in_libgmp mpn/$tmp_fn$tmp_u.lo" 26981 ac_config_links="$ac_config_links mpn/$tmp_fn.$tmp_ext:mpn/$tmp_dir/$tmp_base.$tmp_ext" 26982 26983 gmp_srclinks="$gmp_srclinks mpn/$tmp_fn.$tmp_ext" 26984 26985 # Duplicate AC_DEFINEs are harmless, so it doesn't matter 26986 # that multi-function files get grepped here repeatedly. 26987 # The PROLOGUE pattern excludes the optional second parameter. 26988 gmp_ep=` 26989 sed -n 's/^[ ]*MULFUNC_PROLOGUE(\(.*\))/\1/p' $tmp_file ; 26990 sed -n 's/^[ ]*PROLOGUE(\([^,]*\).*)/\1/p' $tmp_file 26991 ` 26992 for gmp_tmp in $gmp_ep; do 26993 cat >>confdefs.h <<_ACEOF 26994#define HAVE_NATIVE_$gmp_tmp 1 26995_ACEOF 26996 26997 eval HAVE_NATIVE_$gmp_tmp=yes 26998 done 26999 27000 case $tmp_fn in 27001 sqr_basecase) sqr_basecase_source=$tmp_file ;; 27002 esac 27003 27004 break 27005 fi 27006 done 27007 if test $found = yes; then break ; fi 27008 done 27009 if test $found = yes; then break ; fi 27010 done 27011 27012 if test $found = no; then 27013 for tmp_optional in $gmp_mpn_functions_optional; do 27014 if test $tmp_optional = $tmp_fn; then 27015 found=yes 27016 fi 27017 done 27018 if test $found = no; then 27019 as_fn_error "no version of $tmp_fn found in path: $path" "$LINENO" 5 27020 fi 27021 fi 27022done 27023 27024# All cycle counters are .asm files currently 27025if test -n "$SPEED_CYCLECOUNTER_OBJ"; then 27026 found_asm=yes 27027fi 27028 27029 27030 27031 27032 27033# Don't demand an m4 unless it's actually needed. 27034if test $found_asm = yes; then 27035 27036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suitable m4" >&5 27037$as_echo_n "checking for suitable m4... " >&6; } 27038if test "${gmp_cv_prog_m4+set}" = set; then : 27039 $as_echo_n "(cached) " >&6 27040else 27041 if test -n "$M4"; then 27042 gmp_cv_prog_m4="$M4" 27043else 27044 cat >conftest.m4 <<\EOF 27045define(dollarhash,``$#'')ifelse(dollarhash(x),1,`define(t1,Y)', 27046``bad: $# not supported (SunOS /usr/bin/m4) 27047'')ifelse(eval(89),89,`define(t2,Y)', 27048`bad: eval() doesnt support 8 or 9 in a constant (OpenBSD 2.6 m4) 27049')ifelse(t1`'t2,YY,`good 27050') 27051EOF 27052 echo "trying m4" >&5 27053 gmp_tmp_val=`(m4 conftest.m4) 2>&5` 27054 echo "$gmp_tmp_val" >&5 27055 if test "$gmp_tmp_val" = good; then 27056 gmp_cv_prog_m4="m4" 27057 else 27058 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":" 27059 ac_dummy="$PATH:/usr/5bin" 27060 for ac_dir in $ac_dummy; do 27061 test -z "$ac_dir" && ac_dir=. 27062 echo "trying $ac_dir/m4" >&5 27063 gmp_tmp_val=`($ac_dir/m4 conftest.m4) 2>&5` 27064 echo "$gmp_tmp_val" >&5 27065 if test "$gmp_tmp_val" = good; then 27066 gmp_cv_prog_m4="$ac_dir/m4" 27067 break 27068 fi 27069 done 27070 IFS="$ac_save_ifs" 27071 if test -z "$gmp_cv_prog_m4"; then 27072 as_fn_error "No usable m4 in \$PATH or /usr/5bin (see config.log for reasons)." "$LINENO" 5 27073 fi 27074 fi 27075 rm -f conftest.m4 27076fi 27077fi 27078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_prog_m4" >&5 27079$as_echo "$gmp_cv_prog_m4" >&6; } 27080M4="$gmp_cv_prog_m4" 27081 27082 27083 27084{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if m4wrap produces spurious output" >&5 27085$as_echo_n "checking if m4wrap produces spurious output... " >&6; } 27086if test "${gmp_cv_m4_m4wrap_spurious+set}" = set; then : 27087 $as_echo_n "(cached) " >&6 27088else 27089 # hide the d-n-l from autoconf's error checking 27090tmp_d_n_l=d""nl 27091cat >conftest.m4 <<EOF 27092changequote({,})define(x,)m4wrap({x})$tmp_d_n_l 27093EOF 27094echo test input is >&5 27095cat conftest.m4 >&5 27096tmp_chars=`$M4 conftest.m4 | wc -c` 27097echo produces $tmp_chars chars output >&5 27098rm -f conftest.m4 27099if test $tmp_chars = 0; then 27100 gmp_cv_m4_m4wrap_spurious=no 27101else 27102 gmp_cv_m4_m4wrap_spurious=yes 27103fi 27104 27105fi 27106{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_m4_m4wrap_spurious" >&5 27107$as_echo "$gmp_cv_m4_m4wrap_spurious" >&6; } 27108 27109echo "define(<M4WRAP_SPURIOUS>,<$gmp_cv_m4_m4wrap_spurious>)" >> $gmp_tmpconfigm4 27110 27111 27112# else 27113# It's unclear why this m4-not-needed stuff was ever done. 27114# if test -z "$M4" ; then 27115# M4=m4-not-needed 27116# fi 27117fi 27118 27119# Only do the GMP_ASM checks if there's a .S or .asm wanting them. 27120if test $found_asm = no && test $found_S = no; then 27121 gmp_asm_syntax_testing=no 27122fi 27123 27124if test "$gmp_asm_syntax_testing" != no; then 27125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to switch to text section" >&5 27126$as_echo_n "checking how to switch to text section... " >&6; } 27127if test "${gmp_cv_asm_text+set}" = set; then : 27128 $as_echo_n "(cached) " >&6 27129else 27130 for i in ".text" ".code" ".csect .text[PR]"; do 27131 echo "trying $i" >&5 27132 cat >conftest.s <<EOF 27133 $i 27134EOF 27135gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1" 27136if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5 27137 (eval $gmp_assemble) 2>&5 27138 ac_status=$? 27139 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27140 test $ac_status = 0; }; then 27141 cat conftest.out >&5 27142 gmp_cv_asm_text=$i 27143 rm -f conftest* 27144 break 27145else 27146 cat conftest.out >&5 27147 echo "configure: failed program was:" >&5 27148 cat conftest.s >&5 27149 : 27150fi 27151rm -f conftest* 27152 27153done 27154if test -z "$gmp_cv_asm_text"; then 27155 as_fn_error "Cannot determine text section directive" "$LINENO" 5 27156fi 27157 27158fi 27159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_text" >&5 27160$as_echo "$gmp_cv_asm_text" >&6; } 27161echo "define(<TEXT>, <$gmp_cv_asm_text>)" >> $gmp_tmpconfigm4 27162 27163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to switch to data section" >&5 27164$as_echo_n "checking how to switch to data section... " >&6; } 27165if test "${gmp_cv_asm_data+set}" = set; then : 27166 $as_echo_n "(cached) " >&6 27167else 27168 case $host in 27169 *-*-aix*) gmp_cv_asm_data=".csect .data[RW]" ;; 27170 *) gmp_cv_asm_data=".data" ;; 27171esac 27172 27173fi 27174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_data" >&5 27175$as_echo "$gmp_cv_asm_data" >&6; } 27176echo "define(<DATA>, <$gmp_cv_asm_data>)" >> $gmp_tmpconfigm4 27177 27178 27179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler label suffix" >&5 27180$as_echo_n "checking for assembler label suffix... " >&6; } 27181if test "${gmp_cv_asm_label_suffix+set}" = set; then : 27182 $as_echo_n "(cached) " >&6 27183else 27184 gmp_cv_asm_label_suffix=unknown 27185for i in "" ":"; do 27186 echo "trying $i" >&5 27187 cat >conftest.s <<EOF 27188 $gmp_cv_asm_text 27189somelabel$i 27190EOF 27191gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1" 27192if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5 27193 (eval $gmp_assemble) 2>&5 27194 ac_status=$? 27195 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27196 test $ac_status = 0; }; then 27197 cat conftest.out >&5 27198 gmp_cv_asm_label_suffix=$i 27199 rm -f conftest* 27200 break 27201else 27202 cat conftest.out >&5 27203 echo "configure: failed program was:" >&5 27204 cat conftest.s >&5 27205 cat conftest.out >&5 27206fi 27207rm -f conftest* 27208 27209done 27210if test "$gmp_cv_asm_label_suffix" = "unknown"; then 27211 as_fn_error "Cannot determine label suffix" "$LINENO" 5 27212fi 27213 27214fi 27215{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_label_suffix" >&5 27216$as_echo "$gmp_cv_asm_label_suffix" >&6; } 27217echo "define(<LABEL_SUFFIX>, <$gmp_cv_asm_label_suffix>)" >> $gmp_tmpconfigm4 27218 27219 27220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler global directive" >&5 27221$as_echo_n "checking for assembler global directive... " >&6; } 27222if test "${gmp_cv_asm_globl+set}" = set; then : 27223 $as_echo_n "(cached) " >&6 27224else 27225 case $host in 27226 hppa*-*-*) gmp_cv_asm_globl=.export ;; 27227 ia64*-*-* | itanium-*-* | itanium2-*-*) gmp_cv_asm_globl=.global ;; 27228 *) gmp_cv_asm_globl=.globl ;; 27229esac 27230 27231fi 27232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_globl" >&5 27233$as_echo "$gmp_cv_asm_globl" >&6; } 27234echo "define(<GLOBL>, <$gmp_cv_asm_globl>)" >> $gmp_tmpconfigm4 27235 27236 27237{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler global directive attribute" >&5 27238$as_echo_n "checking for assembler global directive attribute... " >&6; } 27239if test "${gmp_cv_asm_globl_attr+set}" = set; then : 27240 $as_echo_n "(cached) " >&6 27241else 27242 case $gmp_cv_asm_globl in 27243 .export) gmp_cv_asm_globl_attr=",entry" ;; 27244 *) gmp_cv_asm_globl_attr="" ;; 27245esac 27246 27247fi 27248{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_globl_attr" >&5 27249$as_echo "$gmp_cv_asm_globl_attr" >&6; } 27250echo "define(<GLOBL_ATTR>, <$gmp_cv_asm_globl_attr>)" >> $gmp_tmpconfigm4 27251 27252 27253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if globals are prefixed by underscore" >&5 27254$as_echo_n "checking if globals are prefixed by underscore... " >&6; } 27255if test "${gmp_cv_asm_underscore+set}" = set; then : 27256 $as_echo_n "(cached) " >&6 27257else 27258 gmp_cv_asm_underscore="unknown" 27259cat >conftest.c <<EOF 27260int gurkmacka; 27261EOF 27262gmp_compile="$CC $CFLAGS $CPPFLAGS -c conftest.c >&5" 27263if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 27264 (eval $gmp_compile) 2>&5 27265 ac_status=$? 27266 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27267 test $ac_status = 0; }; then 27268 $NM conftest.$OBJEXT >conftest.out 27269 if grep _gurkmacka conftest.out >/dev/null; then 27270 gmp_cv_asm_underscore=yes 27271 elif grep gurkmacka conftest.out >/dev/null; then 27272 gmp_cv_asm_underscore=no 27273 else 27274 echo "configure: $NM doesn't have gurkmacka:" >&5 27275 cat conftest.out >&5 27276 fi 27277else 27278 echo "configure: failed program was:" >&5 27279 cat conftest.c >&5 27280fi 27281rm -f conftest* 27282 27283fi 27284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_underscore" >&5 27285$as_echo "$gmp_cv_asm_underscore" >&6; } 27286case $gmp_cv_asm_underscore in 27287 yes) 27288 27289echo 'define(<GSYM_PREFIX>, <_>)' >>$gmp_tmpconfigm4 27290 ;; 27291 no) 27292 27293echo 'define(<GSYM_PREFIX>, <>)' >>$gmp_tmpconfigm4 27294 ;; 27295 *) 27296 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5 27297$as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;} 27298 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Cannot determine global symbol prefix." >&5 27299$as_echo "$as_me: WARNING: | Cannot determine global symbol prefix." >&2;} 27300 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | $NM output doesn't contain a global data symbol." >&5 27301$as_echo "$as_me: WARNING: | $NM output doesn't contain a global data symbol." >&2;} 27302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | Will proceed with no underscore." >&5 27303$as_echo "$as_me: WARNING: | Will proceed with no underscore." >&2;} 27304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | If this is wrong then you'll get link errors referring" >&5 27305$as_echo "$as_me: WARNING: | If this is wrong then you'll get link errors referring" >&2;} 27306 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | to ___gmpn_add_n (note three underscores)." >&5 27307$as_echo "$as_me: WARNING: | to ___gmpn_add_n (note three underscores)." >&2;} 27308 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | In this case do a fresh build with an override," >&5 27309$as_echo "$as_me: WARNING: | In this case do a fresh build with an override," >&2;} 27310 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | ./configure gmp_cv_asm_underscore=yes" >&5 27311$as_echo "$as_me: WARNING: | ./configure gmp_cv_asm_underscore=yes" >&2;} 27312 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: +----------------------------------------------------------" >&5 27313$as_echo "$as_me: WARNING: +----------------------------------------------------------" >&2;} 27314 27315echo 'define(<GSYM_PREFIX>, <>)' >>$gmp_tmpconfigm4 27316 27317 ;; 27318esac 27319 27320 27321 27322 27323 27324{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to switch to read-only data section" >&5 27325$as_echo_n "checking how to switch to read-only data section... " >&6; } 27326if test "${gmp_cv_asm_rodata+set}" = set; then : 27327 $as_echo_n "(cached) " >&6 27328else 27329 27330case $host in 27331i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-* | x86_64-*-*) 27332 gmp_cv_asm_rodata="$gmp_cv_asm_data" ;; 27333*) 27334 gmp_cv_asm_rodata="$gmp_cv_asm_text" ;; 27335esac 27336 27337cat >conftest.c <<EOF 27338extern const int foo[]; /* Suppresses C++'s suppression of foo */ 27339const int foo[] = {1,2,3}; 27340EOF 27341echo "Test program:" >&5 27342cat conftest.c >&5 27343gmp_compile="$CC $CFLAGS $CPPFLAGS -S conftest.c >&5" 27344if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 27345 (eval $gmp_compile) 2>&5 27346 ac_status=$? 27347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27348 test $ac_status = 0; }; then 27349 echo "Compiler output:" >&5 27350 cat conftest.s >&5 27351 if test $gmp_cv_asm_underscore = yes; then 27352 tmp_gsym_prefix=_ 27353 else 27354 tmp_gsym_prefix= 27355 fi 27356 # must see our label 27357 if grep "^${tmp_gsym_prefix}foo$gmp_cv_asm_label_suffix" conftest.s >/dev/null 2>&5; then 27358 # take the last directive before our label (hence skipping segments 27359 # getting debugging info etc) 27360 tmp_match=`sed -n "/^${tmp_gsym_prefix}foo$gmp_cv_asm_label_suffix/q 27361 /^[. ]*data/p 27362 /^[. ]*rdata/p 27363 /^[. ]*text/p 27364 /^[. ]*section/p 27365 /^[. ]*csect/p 27366 /^[. ]*CSECT/p" conftest.s | sed -n '$p'` 27367 echo "Match: $tmp_match" >&5 27368 if test -n "$tmp_match"; then 27369 gmp_cv_asm_rodata=$tmp_match 27370 fi 27371 else 27372 echo "Couldn't find label: ^${tmp_gsym_prefix}foo$gmp_cv_asm_label_suffix" >&5 27373 fi 27374fi 27375rm -f conftest* 27376 27377fi 27378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_rodata" >&5 27379$as_echo "$gmp_cv_asm_rodata" >&6; } 27380echo "define(<RODATA>, <$gmp_cv_asm_rodata>)" >> $gmp_tmpconfigm4 27381 27382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .type directive" >&5 27383$as_echo_n "checking for assembler .type directive... " >&6; } 27384if test "${gmp_cv_asm_type+set}" = set; then : 27385 $as_echo_n "(cached) " >&6 27386else 27387 gmp_cv_asm_type= 27388for gmp_tmp_prefix in @ \# %; do 27389 cat >conftest.s <<EOF 27390 .type sym,${gmp_tmp_prefix}function 27391EOF 27392gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1" 27393if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5 27394 (eval $gmp_assemble) 2>&5 27395 ac_status=$? 27396 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27397 test $ac_status = 0; }; then 27398 cat conftest.out >&5 27399 if grep "\.type pseudo-op used outside of \.def/\.endef ignored" conftest.out >/dev/null; then : ; 27400 else 27401 gmp_cv_asm_type=".type \$1,${gmp_tmp_prefix}\$2" 27402 break 27403 fi 27404else 27405 cat conftest.out >&5 27406 echo "configure: failed program was:" >&5 27407 cat conftest.s >&5 27408 : 27409fi 27410rm -f conftest* 27411 27412done 27413rm -f conftest* 27414 27415fi 27416{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_type" >&5 27417$as_echo "$gmp_cv_asm_type" >&6; } 27418echo "define(<TYPE>, <$gmp_cv_asm_type>)" >> $gmp_tmpconfigm4 27419 27420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler .size directive" >&5 27421$as_echo_n "checking for assembler .size directive... " >&6; } 27422if test "${gmp_cv_asm_size+set}" = set; then : 27423 $as_echo_n "(cached) " >&6 27424else 27425 gmp_cv_asm_size= 27426cat >conftest.s <<EOF 27427 .size sym,1 27428EOF 27429gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1" 27430if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5 27431 (eval $gmp_assemble) 2>&5 27432 ac_status=$? 27433 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27434 test $ac_status = 0; }; then 27435 cat conftest.out >&5 27436 if grep "\.size pseudo-op used outside of \.def/\.endef ignored" conftest.out >/dev/null; then : ; 27437 else 27438 gmp_cv_asm_size=".size \$1,\$2" 27439 fi 27440else 27441 cat conftest.out >&5 27442 echo "configure: failed program was:" >&5 27443 cat conftest.s >&5 27444 : 27445fi 27446rm -f conftest* 27447 27448 27449fi 27450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_size" >&5 27451$as_echo "$gmp_cv_asm_size" >&6; } 27452echo "define(<SIZE>, <$gmp_cv_asm_size>)" >> $gmp_tmpconfigm4 27453 27454 27455 27456 27457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler local label prefix" >&5 27458$as_echo_n "checking for assembler local label prefix... " >&6; } 27459if test "${gmp_cv_asm_lsym_prefix+set}" = set; then : 27460 $as_echo_n "(cached) " >&6 27461else 27462 gmp_tmp_pre_appears=yes 27463for gmp_tmp_pre in L .L $L $ L$; do 27464 echo "Trying $gmp_tmp_pre" >&5 27465 cat >conftest.s <<EOF 27466 $gmp_cv_asm_text 27467dummy${gmp_cv_asm_label_suffix} 27468${gmp_tmp_pre}gurkmacka${gmp_cv_asm_label_suffix} 27469EOF 27470gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1" 27471if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5 27472 (eval $gmp_assemble) 2>&5 27473 ac_status=$? 27474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27475 test $ac_status = 0; }; then 27476 cat conftest.out >&5 27477 if $NM conftest.$OBJEXT >conftest.nm 2>&5; then : ; else 27478 cat conftest.nm >&5 27479 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"$NM\" failure" >&5 27480$as_echo "$as_me: WARNING: \"$NM\" failure" >&2;} 27481 break 27482 fi 27483 cat conftest.nm >&5 27484 if grep gurkmacka conftest.nm >/dev/null; then : ; else 27485 # no mention of the symbol, this is good 27486 echo "$gmp_tmp_pre label doesn't appear in object file at all (good)" >&5 27487 gmp_cv_asm_lsym_prefix="$gmp_tmp_pre" 27488 gmp_tmp_pre_appears=no 27489 break 27490 fi 27491 if grep ' [a-zN] .*gurkmacka' conftest.nm >/dev/null; then 27492 # symbol mentioned as a local, use this if nothing better 27493 echo "$gmp_tmp_pre label is local but still in object file" >&5 27494 if test -z "$gmp_cv_asm_lsym_prefix"; then 27495 gmp_cv_asm_lsym_prefix="$gmp_tmp_pre" 27496 fi 27497 else 27498 echo "$gmp_tmp_pre label is something unknown" >&5 27499 fi 27500 27501else 27502 cat conftest.out >&5 27503 echo "configure: failed program was:" >&5 27504 cat conftest.s >&5 27505 : 27506fi 27507rm -f conftest* 27508 27509done 27510rm -f conftest* 27511if test -z "$gmp_cv_asm_lsym_prefix"; then 27512 gmp_cv_asm_lsym_prefix=L 27513 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot determine local label, using default $gmp_cv_asm_lsym_prefix" >&5 27514$as_echo "$as_me: WARNING: cannot determine local label, using default $gmp_cv_asm_lsym_prefix" >&2;} 27515fi 27516# for development purposes, note whether we got a purely temporary local label 27517echo "Local label appears in object files: $gmp_tmp_pre_appears" >&5 27518 27519fi 27520{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_lsym_prefix" >&5 27521$as_echo "$gmp_cv_asm_lsym_prefix" >&6; } 27522echo "define(<LSYM_PREFIX>, <${gmp_cv_asm_lsym_prefix}>)" >> $gmp_tmpconfigm4 27523 27524cat >>confdefs.h <<_ACEOF 27525#define LSYM_PREFIX "$gmp_cv_asm_lsym_prefix" 27526_ACEOF 27527 27528 27529 27530 27531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler byte directive" >&5 27532$as_echo_n "checking for assembler byte directive... " >&6; } 27533if test "${gmp_cv_asm_byte+set}" = set; then : 27534 $as_echo_n "(cached) " >&6 27535else 27536 for i in .byte data1; do 27537 echo "trying $i" >&5 27538 cat >conftest.s <<EOF 27539 $gmp_cv_asm_data 27540 $i 0 27541 27542EOF 27543gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1" 27544if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5 27545 (eval $gmp_assemble) 2>&5 27546 ac_status=$? 27547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27548 test $ac_status = 0; }; then 27549 cat conftest.out >&5 27550 gmp_cv_asm_byte=$i 27551 rm -f conftest* 27552 break 27553else 27554 cat conftest.out >&5 27555 echo "configure: failed program was:" >&5 27556 cat conftest.s >&5 27557 cat conftest.out >&5 27558fi 27559rm -f conftest* 27560 27561done 27562if test -z "$gmp_cv_asm_byte"; then 27563 as_fn_error "Cannot determine how to emit a data byte" "$LINENO" 5 27564fi 27565 27566fi 27567{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_byte" >&5 27568$as_echo "$gmp_cv_asm_byte" >&6; } 27569 27570 27571 27572 27573 27574 27575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to define a 32-bit word" >&5 27576$as_echo_n "checking how to define a 32-bit word... " >&6; } 27577if test "${gmp_cv_asm_w32+set}" = set; then : 27578 $as_echo_n "(cached) " >&6 27579else 27580 case $host in 27581 *-*-hpux*) 27582 # FIXME: HPUX puts first symbol at 0x40000000, breaking our assumption 27583 # that it's at 0x0. We'll have to declare another symbol before the 27584 # .long/.word and look at the distance between the two symbols. The 27585 # only problem is that the sed expression(s) barfs (on Solaris, for 27586 # example) for the symbol with value 0. For now, HPUX uses .word. 27587 gmp_cv_asm_w32=".word" 27588 ;; 27589 *-*-*) 27590 gmp_tmp_val= 27591 for gmp_tmp_op in .long .word data4; do 27592 cat >conftest.s <<EOF 27593 $gmp_cv_asm_data 27594 $gmp_cv_asm_globl foo 27595 $gmp_tmp_op 0 27596foo$gmp_cv_asm_label_suffix 27597 $gmp_cv_asm_byte 0 27598EOF 27599gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1" 27600if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5 27601 (eval $gmp_assemble) 2>&5 27602 ac_status=$? 27603 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27604 test $ac_status = 0; }; then 27605 cat conftest.out >&5 27606 gmp_tmp_val=`$NM conftest.$OBJEXT | grep foo | \ 27607 sed -e 's;[[][0-9][]]\(.*\);\1;' -e 's;[^1-9]*\([0-9]*\).*;\1;'` 27608 if test "$gmp_tmp_val" = 4; then 27609 gmp_cv_asm_w32="$gmp_tmp_op" 27610 break 27611 fi 27612else 27613 cat conftest.out >&5 27614 echo "configure: failed program was:" >&5 27615 cat conftest.s >&5 27616 : 27617fi 27618rm -f conftest* 27619 27620 done 27621 rm -f conftest* 27622 ;; 27623esac 27624if test -z "$gmp_cv_asm_w32"; then 27625 as_fn_error "cannot determine how to define a 32-bit word" "$LINENO" 5 27626fi 27627 27628fi 27629{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_w32" >&5 27630$as_echo "$gmp_cv_asm_w32" >&6; } 27631echo "define(<W32>, <$gmp_cv_asm_w32>)" >> $gmp_tmpconfigm4 27632 27633 27634 27635 27636 27637 27638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if .align assembly directive is logarithmic" >&5 27639$as_echo_n "checking if .align assembly directive is logarithmic... " >&6; } 27640if test "${gmp_cv_asm_align_log+set}" = set; then : 27641 $as_echo_n "(cached) " >&6 27642else 27643 cat >conftest.s <<EOF 27644 $gmp_cv_asm_data 27645 .align 4 27646 $gmp_cv_asm_globl foo 27647 $gmp_cv_asm_byte 1 27648 .align 4 27649foo$gmp_cv_asm_label_suffix 27650 $gmp_cv_asm_byte 2 27651EOF 27652gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1" 27653if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5 27654 (eval $gmp_assemble) 2>&5 27655 ac_status=$? 27656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27657 test $ac_status = 0; }; then 27658 cat conftest.out >&5 27659 gmp_tmp_val=`$NM conftest.$OBJEXT | grep foo | \ 27660 sed -e 's;[[][0-9][]]\(.*\);\1;' -e 's;[^1-9]*\([0-9]*\).*;\1;'` 27661 if test "$gmp_tmp_val" = "10" || test "$gmp_tmp_val" = "16"; then 27662 gmp_cv_asm_align_log=yes 27663 else 27664 gmp_cv_asm_align_log=no 27665 fi 27666else 27667 cat conftest.out >&5 27668 echo "configure: failed program was:" >&5 27669 cat conftest.s >&5 27670 as_fn_error "cannot assemble alignment test" "$LINENO" 5 27671fi 27672rm -f conftest* 27673 27674fi 27675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_align_log" >&5 27676$as_echo "$gmp_cv_asm_align_log" >&6; } 27677 27678 27679echo "define(<ALIGN_LOGARITHMIC>,<$gmp_cv_asm_align_log>)" >> $gmp_tmpconfigm4 27680 27681 27682 27683 case $host in 27684 hppa*-*-*) 27685 # for both pa32 and pa64 27686 27687echo "include_mpn(\`pa32/pa-defs.m4')" >> $gmp_tmpconfigm4i 27688 27689 ;; 27690 ia64*-*-* | itanium-*-* | itanium2-*-*) 27691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether assembler .align padding is good" >&5 27692$as_echo_n "checking whether assembler .align padding is good... " >&6; } 27693if test "${gmp_cv_asm_ia64_align_ok+set}" = set; then : 27694 $as_echo_n "(cached) " >&6 27695else 27696 cat >conftest.awk <<\EOF 27697BEGIN { 27698 want[0] = "011" 27699 want[1] = "160" 27700 want[2] = "074" 27701 want[3] = "040" 27702 want[4] = "000" 27703 want[5] = "040" 27704 want[6] = "020" 27705 want[7] = "221" 27706 want[8] = "114" 27707 want[9] = "000" 27708 want[10] = "100" 27709 want[11] = "200" 27710 want[12] = "122" 27711 want[13] = "261" 27712 want[14] = "000" 27713 want[15] = "200" 27714 27715 want[16] = "000" 27716 want[17] = "004" 27717 want[18] = "000" 27718 want[19] = "000" 27719 want[20] = "000" 27720 want[21] = "000" 27721 want[22] = "002" 27722 want[23] = "000" 27723 want[24] = "000" 27724 want[25] = "000" 27725 want[26] = "000" 27726 want[27] = "001" 27727 want[28] = "000" 27728 want[29] = "000" 27729 want[30] = "000" 27730 want[31] = "014" 27731 27732 want[32] = "011" 27733 want[33] = "270" 27734 want[34] = "140" 27735 want[35] = "062" 27736 want[36] = "000" 27737 want[37] = "040" 27738 want[38] = "240" 27739 want[39] = "331" 27740 want[40] = "160" 27741 want[41] = "000" 27742 want[42] = "100" 27743 want[43] = "240" 27744 want[44] = "343" 27745 want[45] = "371" 27746 want[46] = "000" 27747 want[47] = "200" 27748 27749 result = "yes" 27750} 27751{ 27752 for (f = 2; f <= NF; f++) 27753 { 27754 for (i = 0; i < 47; i++) 27755 got[i] = got[i+1]; 27756 got[47] = $f; 27757 27758 found = 1 27759 for (i = 0; i < 48; i++) 27760 if (got[i] != want[i]) 27761 { 27762 found = 0 27763 break 27764 } 27765 if (found) 27766 { 27767 result = "no" 27768 exit 27769 } 27770 } 27771} 27772END { 27773 print result 27774} 27775EOF 27776cat >conftest.s <<EOF 27777 .text 27778 .align 32 27779{ .mmi; add r14 = r15, r16 27780 add r17 = r18, r19 27781 add r20 = r21, r22 ;; } 27782 .align 32 27783{ .mmi; add r23 = r24, r25 27784 add r26 = r27, r28 27785 add r29 = r30, r31 ;; } 27786 27787EOF 27788gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1" 27789if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5 27790 (eval $gmp_assemble) 2>&5 27791 ac_status=$? 27792 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27793 test $ac_status = 0; }; then 27794 cat conftest.out >&5 27795 gmp_cv_asm_ia64_align_ok=`od -b conftest.$OBJEXT | $AWK -f conftest.awk` 27796else 27797 cat conftest.out >&5 27798 echo "configure: failed program was:" >&5 27799 cat conftest.s >&5 27800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: oops, cannot compile test program" >&5 27801$as_echo "$as_me: WARNING: oops, cannot compile test program" >&2;} 27802 gmp_cv_asm_ia64_align_ok=yes 27803fi 27804rm -f conftest* 27805 27806 27807fi 27808{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_ia64_align_ok" >&5 27809$as_echo "$gmp_cv_asm_ia64_align_ok" >&6; } 27810 27811echo "define(<IA64_ALIGN_OK>, <\`$gmp_cv_asm_ia64_align_ok'>)" >> $gmp_tmpconfigm4 27812 27813 27814 ;; 27815 m68k-*-* | m68[0-9][0-9][0-9]-*-*) 27816 27817{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler instruction and register style" >&5 27818$as_echo_n "checking assembler instruction and register style... " >&6; } 27819if test "${gmp_cv_asm_m68k_instruction+set}" = set; then : 27820 $as_echo_n "(cached) " >&6 27821else 27822 for i in "addl %d0,%d1" "add.l %d0,%d1" "addl d0,d1" "add.l d0,d1"; do 27823 cat >conftest.s <<EOF 27824 $gmp_cv_asm_text 27825 $i 27826EOF 27827gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1" 27828if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5 27829 (eval $gmp_assemble) 2>&5 27830 ac_status=$? 27831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27832 test $ac_status = 0; }; then 27833 cat conftest.out >&5 27834 gmp_cv_asm_m68k_instruction=$i 27835 rm -f conftest* 27836 break 27837else 27838 cat conftest.out >&5 27839 echo "configure: failed program was:" >&5 27840 cat conftest.s >&5 27841 : 27842fi 27843rm -f conftest* 27844 27845done 27846if test -z "$gmp_cv_asm_m68k_instruction"; then 27847 as_fn_error "cannot determine assembler instruction and register style" "$LINENO" 5 27848fi 27849 27850fi 27851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_m68k_instruction" >&5 27852$as_echo "$gmp_cv_asm_m68k_instruction" >&6; } 27853case $gmp_cv_asm_m68k_instruction in 27854"addl d0,d1") want_dot_size=no; want_register_percent=no ;; 27855"addl %d0,%d1") want_dot_size=no; want_register_percent=yes ;; 27856"add.l d0,d1") want_dot_size=yes; want_register_percent=no ;; 27857"add.l %d0,%d1") want_dot_size=yes; want_register_percent=yes ;; 27858*) as_fn_error "oops, unrecognised instruction and register style" "$LINENO" 5 ;; 27859esac 27860 27861echo "define(<WANT_REGISTER_PERCENT>, <\`$want_register_percent'>)" >> $gmp_tmpconfigm4 27862 27863 27864echo "define(<WANT_DOT_SIZE>, <\`$want_dot_size'>)" >> $gmp_tmpconfigm4 27865 27866 27867 27868 27869{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler addressing style" >&5 27870$as_echo_n "checking assembler addressing style... " >&6; } 27871if test "${gmp_cv_asm_m68k_addressing+set}" = set; then : 27872 $as_echo_n "(cached) " >&6 27873else 27874 case $gmp_cv_asm_m68k_instruction in 27875addl*) movel=movel ;; 27876add.l*) movel=move.l ;; 27877*) as_fn_error "oops, unrecognised gmp_cv_asm_m68k_instruction" "$LINENO" 5 ;; 27878esac 27879case $gmp_cv_asm_m68k_instruction in 27880*"%d0,%d1") dreg=%d0; areg=%a0 ;; 27881*"d0,d1") dreg=d0; areg=a0 ;; 27882*) as_fn_error "oops, unrecognised gmp_cv_asm_m68k_instruction" "$LINENO" 5 ;; 27883esac 27884cat >conftest.s <<EOF 27885 $gmp_cv_asm_text 27886 $movel $dreg, $areg@- 27887EOF 27888gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1" 27889if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5 27890 (eval $gmp_assemble) 2>&5 27891 ac_status=$? 27892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27893 test $ac_status = 0; }; then 27894 cat conftest.out >&5 27895 gmp_cv_asm_m68k_addressing=mit 27896else 27897 cat conftest.out >&5 27898 echo "configure: failed program was:" >&5 27899 cat conftest.s >&5 27900 cat >conftest.s <<EOF 27901 $gmp_cv_asm_text 27902 $movel $dreg, -($areg) 27903EOF 27904gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1" 27905if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5 27906 (eval $gmp_assemble) 2>&5 27907 ac_status=$? 27908 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27909 test $ac_status = 0; }; then 27910 cat conftest.out >&5 27911 gmp_cv_asm_m68k_addressing=motorola 27912else 27913 cat conftest.out >&5 27914 echo "configure: failed program was:" >&5 27915 cat conftest.s >&5 27916 as_fn_error "cannot determine assembler addressing style" "$LINENO" 5 27917fi 27918rm -f conftest* 27919 27920fi 27921rm -f conftest* 27922 27923 27924fi 27925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_m68k_addressing" >&5 27926$as_echo "$gmp_cv_asm_m68k_addressing" >&6; } 27927 27928echo "define(<WANT_ADDRESSING>, <\`$gmp_cv_asm_m68k_addressing'>)" >> $gmp_tmpconfigm4 27929 27930 27931 27932{ $as_echo "$as_me:${as_lineno-$LINENO}: checking assembler shortest branches" >&5 27933$as_echo_n "checking assembler shortest branches... " >&6; } 27934if test "${gmp_cv_asm_m68k_branches+set}" = set; then : 27935 $as_echo_n "(cached) " >&6 27936else 27937 for i in jra jbra bra; do 27938 cat >conftest.s <<EOF 27939 $gmp_cv_asm_text 27940foo$gmp_cv_asm_label_suffix 27941 $i foo 27942EOF 27943gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1" 27944if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5 27945 (eval $gmp_assemble) 2>&5 27946 ac_status=$? 27947 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27948 test $ac_status = 0; }; then 27949 cat conftest.out >&5 27950 gmp_cv_asm_m68k_branches=$i 27951 rm -f conftest* 27952 break 27953else 27954 cat conftest.out >&5 27955 echo "configure: failed program was:" >&5 27956 cat conftest.s >&5 27957 : 27958fi 27959rm -f conftest* 27960 27961done 27962if test -z "$gmp_cv_asm_m68k_branches"; then 27963 as_fn_error "cannot determine assembler branching style" "$LINENO" 5 27964fi 27965 27966fi 27967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_m68k_branches" >&5 27968$as_echo "$gmp_cv_asm_m68k_branches" >&6; } 27969 27970echo "define(<WANT_BRANCHES>, <\`$gmp_cv_asm_m68k_branches'>)" >> $gmp_tmpconfigm4 27971 27972 27973 ;; 27974 powerpc*-*-* | power[3-9]-*-*) 27975 27976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether compiler output is PIC by default" >&5 27977$as_echo_n "checking whether compiler output is PIC by default... " >&6; } 27978if test "${gmp_cv_asm_powerpc_pic+set}" = set; then : 27979 $as_echo_n "(cached) " >&6 27980else 27981 gmp_cv_asm_powerpc_pic=yes 27982cat >conftest.c <<EOF 27983int foo; 27984int *bar() { return &foo; } 27985EOF 27986echo "Test program:" >&5 27987cat conftest.c >&5 27988gmp_compile="$CC $CFLAGS $CPPFLAGS -S conftest.c >&5" 27989if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 27990 (eval $gmp_compile) 2>&5 27991 ac_status=$? 27992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 27993 test $ac_status = 0; }; then 27994 echo "Compiler output:" >&5 27995 cat conftest.s >&5 27996 if grep 'foo@ha' conftest.s >/dev/null 2>&5; then 27997 gmp_cv_asm_powerpc_pic=no 27998 fi 27999 if grep 'ha16(_foo)' conftest.s >/dev/null 2>&5; then 28000 gmp_cv_asm_powerpc_pic=no 28001 fi 28002fi 28003rm -f conftest* 28004 28005fi 28006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_powerpc_pic" >&5 28007$as_echo "$gmp_cv_asm_powerpc_pic" >&6; } 28008 28009echo "define(<PIC_ALWAYS>,<$gmp_cv_asm_powerpc_pic>)" >> $gmp_tmpconfigm4 28010 28011 28012 28013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler needs r on registers" >&5 28014$as_echo_n "checking if the assembler needs r on registers... " >&6; } 28015if test "${gmp_cv_asm_powerpc_r_registers+set}" = set; then : 28016 $as_echo_n "(cached) " >&6 28017else 28018 cat >conftest.s <<EOF 28019 $gmp_cv_asm_text 28020 mtctr 6 28021EOF 28022gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1" 28023if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5 28024 (eval $gmp_assemble) 2>&5 28025 ac_status=$? 28026 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28027 test $ac_status = 0; }; then 28028 cat conftest.out >&5 28029 gmp_cv_asm_powerpc_r_registers=no 28030else 28031 cat conftest.out >&5 28032 echo "configure: failed program was:" >&5 28033 cat conftest.s >&5 28034 cat >conftest.s <<EOF 28035 $gmp_cv_asm_text 28036 mtctr r6 28037EOF 28038gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1" 28039if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5 28040 (eval $gmp_assemble) 2>&5 28041 ac_status=$? 28042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28043 test $ac_status = 0; }; then 28044 cat conftest.out >&5 28045 gmp_cv_asm_powerpc_r_registers=yes 28046else 28047 cat conftest.out >&5 28048 echo "configure: failed program was:" >&5 28049 cat conftest.s >&5 28050 as_fn_error "neither \"mtctr 6\" nor \"mtctr r6\" works" "$LINENO" 5 28051fi 28052rm -f conftest* 28053 28054fi 28055rm -f conftest* 28056 28057fi 28058{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_powerpc_r_registers" >&5 28059$as_echo "$gmp_cv_asm_powerpc_r_registers" >&6; } 28060 28061 28062echo "define(<WANT_R_REGISTERS>,<$gmp_cv_asm_powerpc_r_registers>)" >> $gmp_tmpconfigm4 28063 28064 28065 28066echo "include_mpn(\`powerpc32/powerpc-defs.m4')" >> $gmp_tmpconfigm4i 28067 28068 case $host in 28069 *-*-aix*) 28070 case $ABI in 28071 64 | aix64) 28072echo "include_mpn(\`powerpc64/aix.m4')" >> $gmp_tmpconfigm4i 28073 ;; 28074 *) 28075echo "include_mpn(\`powerpc32/aix.m4')" >> $gmp_tmpconfigm4i 28076 ;; 28077 esac 28078 ;; 28079 *-*-linux* | *-*-*bsd*) 28080 case $ABI in 28081 mode64) 28082echo "include_mpn(\`powerpc64/elf.m4')" >> $gmp_tmpconfigm4i 28083 ;; 28084 mode32 | 32) 28085echo "include_mpn(\`powerpc32/elf.m4')" >> $gmp_tmpconfigm4i 28086 ;; 28087 esac 28088 ;; 28089 *-*-darwin*) 28090 case $ABI in 28091 mode64) 28092echo "include_mpn(\`powerpc64/darwin.m4')" >> $gmp_tmpconfigm4i 28093 ;; 28094 mode32 | 32) 28095echo "include_mpn(\`powerpc32/darwin.m4')" >> $gmp_tmpconfigm4i 28096 ;; 28097 esac 28098 ;; 28099 *) 28100 # Assume unrecognized operating system is the powerpc eABI 28101 28102echo "include_mpn(\`powerpc32/eabi.m4')" >> $gmp_tmpconfigm4i 28103 28104 ;; 28105 esac 28106 ;; 28107 power*-*-aix*) 28108 28109echo "include_mpn(\`powerpc32/aix.m4')" >> $gmp_tmpconfigm4i 28110 28111 ;; 28112 sparcv9*-*-* | ultrasparc*-*-* | sparc64-*-*) 28113 case $ABI in 28114 64) 28115 28116{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler accepts \".register\"" >&5 28117$as_echo_n "checking if the assembler accepts \".register\"... " >&6; } 28118if test "${gmp_cv_asm_sparc_register+set}" = set; then : 28119 $as_echo_n "(cached) " >&6 28120else 28121 cat >conftest.s <<EOF 28122 $gmp_cv_asm_text 28123 .register %g2,#scratch 28124 28125EOF 28126gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1" 28127if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5 28128 (eval $gmp_assemble) 2>&5 28129 ac_status=$? 28130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28131 test $ac_status = 0; }; then 28132 cat conftest.out >&5 28133 gmp_cv_asm_sparc_register=yes 28134else 28135 cat conftest.out >&5 28136 echo "configure: failed program was:" >&5 28137 cat conftest.s >&5 28138 gmp_cv_asm_sparc_register=no 28139fi 28140rm -f conftest* 28141 28142fi 28143{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_sparc_register" >&5 28144$as_echo "$gmp_cv_asm_sparc_register" >&6; } 28145 28146 28147echo "define(<HAVE_REGISTER>,<$gmp_cv_asm_sparc_register>)" >> $gmp_tmpconfigm4 28148 28149 28150 ;; 28151 esac 28152 ;; 28153 i?86*-*-* | k[5-8]*-*-* | pentium*-*-* | athlon-*-* | viac3*-*-* | geode*-*-* | atom-*-* | athlon64-*-* | k8-*-* | k10-*-* | bobcat-*-* | bulldozer-*-* | pentium4-*-* | atom-*-* | core2-*-* | corei*-*-* | x86_64-*-* | nano-*-*) 28154 28155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the .align directive accepts an 0x90 fill in .text" >&5 28156$as_echo_n "checking if the .align directive accepts an 0x90 fill in .text... " >&6; } 28157if test "${gmp_cv_asm_align_fill_0x90+set}" = set; then : 28158 $as_echo_n "(cached) " >&6 28159else 28160 cat >conftest.s <<EOF 28161 $gmp_cv_asm_text 28162 .align 4, 0x90 28163 .byte 0 28164 .align 4, 0x90 28165EOF 28166gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1" 28167if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5 28168 (eval $gmp_assemble) 2>&5 28169 ac_status=$? 28170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28171 test $ac_status = 0; }; then 28172 cat conftest.out >&5 28173 if grep "Warning: Fill parameter ignored for executable section" conftest.out >/dev/null; then 28174 echo "Supressing this warning by omitting 0x90" 1>&5 28175 gmp_cv_asm_align_fill_0x90=no 28176else 28177 gmp_cv_asm_align_fill_0x90=yes 28178fi 28179else 28180 cat conftest.out >&5 28181 echo "configure: failed program was:" >&5 28182 cat conftest.s >&5 28183 gmp_cv_asm_align_fill_0x90=no 28184fi 28185rm -f conftest* 28186 28187fi 28188{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_align_fill_0x90" >&5 28189$as_echo "$gmp_cv_asm_align_fill_0x90" >&6; } 28190 28191 28192echo "define(<ALIGN_FILL_0x90>,<$gmp_cv_asm_align_fill_0x90>)" >> $gmp_tmpconfigm4 28193 28194 28195 case $ABI in 28196 32) 28197 28198echo "include_mpn(\`x86/x86-defs.m4')" >> $gmp_tmpconfigm4i 28199 28200 $as_echo "#define HAVE_HOST_CPU_FAMILY_x86 1" >>confdefs.h 28201 28202 28203 28204 28205 28206 28207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for assembler COFF type directives" >&5 28208$as_echo_n "checking for assembler COFF type directives... " >&6; } 28209if test "${gmp_cv_asm_x86_coff_type+set}" = set; then : 28210 $as_echo_n "(cached) " >&6 28211else 28212 cat >conftest.s <<EOF 28213 $gmp_cv_asm_text 28214 $gmp_cv_asm_globl ${tmp_gsym_prefix}foo$gmp_cv_asm_globl_attr 28215 .def ${tmp_gsym_prefix}foo 28216 .scl 2 28217 .type 32 28218 .endef 28219${tmp_gsym_prefix}foo$gmp_cv_asm_label_suffix 28220 28221EOF 28222gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1" 28223if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5 28224 (eval $gmp_assemble) 2>&5 28225 ac_status=$? 28226 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28227 test $ac_status = 0; }; then 28228 cat conftest.out >&5 28229 gmp_cv_asm_x86_coff_type=yes 28230else 28231 cat conftest.out >&5 28232 echo "configure: failed program was:" >&5 28233 cat conftest.s >&5 28234 gmp_cv_asm_x86_coff_type=no 28235fi 28236rm -f conftest* 28237 28238 28239fi 28240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_x86_coff_type" >&5 28241$as_echo "$gmp_cv_asm_x86_coff_type" >&6; } 28242echo "define(<HAVE_COFF_TYPE>, <$gmp_cv_asm_x86_coff_type>)" >> $gmp_tmpconfigm4 28243 28244 28245 28246 28247 28248 28249 28250 28251{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if _GLOBAL_OFFSET_TABLE_ is prefixed by underscore" >&5 28252$as_echo_n "checking if _GLOBAL_OFFSET_TABLE_ is prefixed by underscore... " >&6; } 28253if test "${gmp_cv_asm_x86_got_underscore+set}" = set; then : 28254 $as_echo_n "(cached) " >&6 28255else 28256 gmp_cv_asm_x86_got_underscore="not applicable" 28257if test $gmp_cv_asm_underscore = yes; then 28258 tmp_gsym_prefix=_ 28259else 28260 tmp_gsym_prefix= 28261fi 28262for tmp_underscore in "" "_"; do 28263 cat >conftest.s <<EOF 28264 $gmp_cv_asm_text 28265 $gmp_cv_asm_globl ${tmp_gsym_prefix}main$gmp_cv_asm_globl_attr 28266${tmp_gsym_prefix}main$gmp_cv_asm_label_suffix 28267 addl $ ${tmp_underscore}_GLOBAL_OFFSET_TABLE_, %ebx 28268EOF 28269 gmp_compile="$CCAS $CFLAGS $CPPFLAGS $lt_prog_compiler_pic conftest.s >&5 && $CC $CFLAGS $CPPFLAGS $lt_prog_compiler_pic conftest.$OBJEXT >&5" 28270 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_compile\""; } >&5 28271 (eval $gmp_compile) 2>&5 28272 ac_status=$? 28273 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28274 test $ac_status = 0; }; then 28275 if test "$tmp_underscore" = "_"; then 28276 gmp_cv_asm_x86_got_underscore=yes 28277 else 28278 gmp_cv_asm_x86_got_underscore=no 28279 fi 28280 break 28281 fi 28282done 28283rm -f conftest* a.out b.out a.exe a_out.exe 28284 28285fi 28286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_x86_got_underscore" >&5 28287$as_echo "$gmp_cv_asm_x86_got_underscore" >&6; } 28288if test "$gmp_cv_asm_x86_got_underscore" = "yes"; then 28289 28290echo 'define(<GOT_GSYM_PREFIX>, <_>)' >>$gmp_tmpconfigm4 28291 28292else 28293 28294echo 'define(<GOT_GSYM_PREFIX>, <>)' >>$gmp_tmpconfigm4 28295 28296fi 28297 28298 28299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the assembler takes cl with shldl" >&5 28300$as_echo_n "checking if the assembler takes cl with shldl... " >&6; } 28301if test "${gmp_cv_asm_x86_shldl_cl+set}" = set; then : 28302 $as_echo_n "(cached) " >&6 28303else 28304 cat >conftest.s <<EOF 28305 $gmp_cv_asm_text 28306 shldl %cl, %eax, %ebx 28307EOF 28308gmp_assemble="$CCAS $CFLAGS $CPPFLAGS conftest.s >conftest.out 2>&1" 28309if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_assemble\""; } >&5 28310 (eval $gmp_assemble) 2>&5 28311 ac_status=$? 28312 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28313 test $ac_status = 0; }; then 28314 cat conftest.out >&5 28315 gmp_cv_asm_x86_shldl_cl=yes 28316else 28317 cat conftest.out >&5 28318 echo "configure: failed program was:" >&5 28319 cat conftest.s >&5 28320 gmp_cv_asm_x86_shldl_cl=no 28321fi 28322rm -f conftest* 28323 28324 28325fi 28326{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gmp_cv_asm_x86_shldl_cl" >&5 28327$as_echo "$gmp_cv_asm_x86_shldl_cl" >&6; } 28328if test "$gmp_cv_asm_x86_shldl_cl" = "yes"; then 28329 28330echo 'define(<WANT_SHLDL_CL>, <1>)' >>$gmp_tmpconfigm4 28331 28332else 28333 28334echo 'define(<WANT_SHLDL_CL>, <0>)' >>$gmp_tmpconfigm4 28335 28336fi 28337 28338 case $enable_profiling in 28339 prof | gprof) # Check whether --enable-shared was given. 28340if test "${enable_shared+set}" = set; then : 28341 enableval=$enable_shared; p=${PACKAGE-default} 28342 case $enableval in 28343 yes) enable_shared=yes ;; 28344 no) enable_shared=no ;; 28345 *) 28346 enable_shared=no 28347 # Look at the argument we got. We use all the common list separators. 28348 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 28349 for pkg in $enableval; do 28350 IFS="$lt_save_ifs" 28351 if test "X$pkg" = "X$p"; then 28352 enable_shared=yes 28353 fi 28354 done 28355 IFS="$lt_save_ifs" 28356 ;; 28357 esac 28358else 28359 enable_shared=yes 28360fi 28361 28362 28363 28364 28365 28366 28367 28368 28369{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to call x86 mcount" >&5 28370$as_echo_n "checking how to call x86 mcount... " >&6; } 28371cat >conftest.c <<EOF 28372foo(){bar();} 28373EOF 28374 28375if test "$enable_static" = yes; then 28376 gmp_asmout_compile="$CC $CFLAGS $CPPFLAGS -S conftest.c 1>&5" 28377 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_asmout_compile\""; } >&5 28378 (eval $gmp_asmout_compile) 2>&5 28379 ac_status=$? 28380 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28381 test $ac_status = 0; }; then 28382 if grep '\.data' conftest.s >/dev/null; then 28383 mcount_nonpic_reg=`sed -n '/esp/!s/.*movl.*,\(%[a-z]*\).*$/\1/p' conftest.s` 28384 else 28385 mcount_nonpic_reg= 28386 fi 28387 mcount_nonpic_call=`grep 'call.*mcount' conftest.s` 28388 if test -z "$mcount_nonpic_call"; then 28389 as_fn_error "Cannot find mcount call for non-PIC" "$LINENO" 5 28390 fi 28391 else 28392 as_fn_error "Cannot compile test program for non-PIC" "$LINENO" 5 28393 fi 28394fi 28395 28396if test "$enable_shared" = yes; then 28397 gmp_asmout_compile="$CC $CFLAGS $CPPFLAGS $lt_prog_compiler_pic -S conftest.c 1>&5" 28398 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$gmp_asmout_compile\""; } >&5 28399 (eval $gmp_asmout_compile) 2>&5 28400 ac_status=$? 28401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 28402 test $ac_status = 0; }; then 28403 if grep '\.data' conftest.s >/dev/null; then 28404 case $lt_prog_compiler_pic in 28405 *-DDLL_EXPORT*) 28406 # Windows DLLs have non-PIC style mcount 28407 mcount_pic_reg=`sed -n '/esp/!s/.*movl.*,\(%[a-z]*\).*$/\1/p' conftest.s` 28408 ;; 28409 *) 28410 mcount_pic_reg=`sed -n 's/.*GOTOFF.*,\(%[a-z]*\).*$/\1/p' conftest.s` 28411 ;; 28412 esac 28413 else 28414 mcount_pic_reg= 28415 fi 28416 mcount_pic_call=`grep 'call.*mcount' conftest.s` 28417 if test -z "$mcount_pic_call"; then 28418 as_fn_error "Cannot find mcount call for PIC" "$LINENO" 5 28419 fi 28420 else 28421 as_fn_error "Cannot compile test program for PIC" "$LINENO" 5 28422 fi 28423fi 28424 28425 28426echo "define(<MCOUNT_NONPIC_REG>, <\`$mcount_nonpic_reg'>)" >> $gmp_tmpconfigm4 28427 28428 28429echo "define(<MCOUNT_NONPIC_CALL>,<\`$mcount_nonpic_call'>)" >> $gmp_tmpconfigm4 28430 28431 28432echo "define(<MCOUNT_PIC_REG>, <\`$mcount_pic_reg'>)" >> $gmp_tmpconfigm4 28433 28434 28435echo "define(<MCOUNT_PIC_CALL>, <\`$mcount_pic_call'>)" >> $gmp_tmpconfigm4 28436 28437 28438rm -f conftest.* 28439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: determined" >&5 28440$as_echo "determined" >&6; } 28441 ;; 28442 esac 28443 case $host in 28444 *-*-darwin*) 28445 28446echo "include_mpn(\`x86/darwin.m4')" >> $gmp_tmpconfigm4i 28447 ;; 28448 esac 28449 ;; 28450 64) 28451 28452echo "include_mpn(\`x86_64/x86_64-defs.m4')" >> $gmp_tmpconfigm4i 28453 28454 $as_echo "#define HAVE_HOST_CPU_FAMILY_x86_64 1" >>confdefs.h 28455 28456 case $host in 28457 *-*-darwin*) 28458 28459echo "include_mpn(\`x86_64/darwin.m4')" >> $gmp_tmpconfigm4i 28460 ;; 28461 esac 28462 ;; 28463 esac 28464 ;; 28465 esac 28466fi 28467 28468# For --enable-minithres, prepend "minithres" to path so that its special 28469# gmp-mparam.h will be used. 28470if test $enable_minithres = yes; then 28471 path="minithres $path" 28472fi 28473 28474# Create link for gmp-mparam.h. 28475gmp_mparam_source= 28476for gmp_mparam_dir in $path; do 28477 test "$no_create" = yes || rm -f gmp-mparam.h 28478 tmp_file=$srcdir/mpn/$gmp_mparam_dir/gmp-mparam.h 28479 if test -f $tmp_file; then 28480 ac_config_links="$ac_config_links gmp-mparam.h:mpn/$gmp_mparam_dir/gmp-mparam.h" 28481 28482 gmp_srclinks="$gmp_srclinks gmp-mparam.h" 28483 gmp_mparam_source=$tmp_file 28484 break 28485 fi 28486done 28487if test -z "$gmp_mparam_source"; then 28488 as_fn_error "no version of gmp-mparam.h found in path: $path" "$LINENO" 5 28489fi 28490 28491# For a helpful message from tune/tuneup.c 28492gmp_mparam_suggest=$gmp_mparam_source 28493if test "$gmp_mparam_dir" = generic; then 28494 for i in $path; do break; done 28495 if test "$i" != generic; then 28496 gmp_mparam_suggest="new file $srcdir/mpn/$i/gmp-mparam.h" 28497 fi 28498fi 28499 28500cat >>confdefs.h <<_ACEOF 28501#define GMP_MPARAM_H_SUGGEST "$gmp_mparam_source" 28502_ACEOF 28503 28504 28505 28506# Copy any SQR_TOOM2_THRESHOLD from gmp-mparam.h to config.m4. 28507# Some versions of sqr_basecase.asm use this. 28508# Fat binaries do this on a per-file basis, so skip in that case. 28509# 28510if test -z "$fat_path"; then 28511 tmp_gmp_karatsuba_sqr_threshold=`sed -n 's/^#define SQR_TOOM2_THRESHOLD[ ]*\([0-9][0-9]*\).*$/\1/p' $gmp_mparam_source` 28512 if test -n "$tmp_gmp_karatsuba_sqr_threshold"; then 28513 28514echo "define(<SQR_TOOM2_THRESHOLD>,<$tmp_gmp_karatsuba_sqr_threshold>)" >> $gmp_tmpconfigm4 28515 28516 fi 28517fi 28518 28519 28520# Sizes of some types, needed at preprocessing time. 28521# 28522# FIXME: The assumption that GMP_LIMB_BITS is 8*sizeof(mp_limb_t) might 28523# be slightly rash, but it's true everywhere we know of and ought to be true 28524# of any sensible system. In a generic C build, grepping LONG_BIT out of 28525# <limits.h> might be an alternative, for maximum portability. 28526# 28527# The cast to long int works around a bug in the HP C Compiler 28528# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 28529# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 28530# This bug is HP SR number 8606223364. 28531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of void *" >&5 28532$as_echo_n "checking size of void *... " >&6; } 28533if test "${ac_cv_sizeof_void_p+set}" = set; then : 28534 $as_echo_n "(cached) " >&6 28535else 28536 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (void *))" "ac_cv_sizeof_void_p" "$ac_includes_default"; then : 28537 28538else 28539 if test "$ac_cv_type_void_p" = yes; then 28540 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28541$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 28542{ as_fn_set_status 77 28543as_fn_error "cannot compute sizeof (void *) 28544See \`config.log' for more details." "$LINENO" 5; }; } 28545 else 28546 ac_cv_sizeof_void_p=0 28547 fi 28548fi 28549 28550fi 28551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_void_p" >&5 28552$as_echo "$ac_cv_sizeof_void_p" >&6; } 28553 28554 28555 28556cat >>confdefs.h <<_ACEOF 28557#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 28558_ACEOF 28559 28560 28561# The cast to long int works around a bug in the HP C Compiler 28562# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 28563# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 28564# This bug is HP SR number 8606223364. 28565{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned short" >&5 28566$as_echo_n "checking size of unsigned short... " >&6; } 28567if test "${ac_cv_sizeof_unsigned_short+set}" = set; then : 28568 $as_echo_n "(cached) " >&6 28569else 28570 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned short))" "ac_cv_sizeof_unsigned_short" "$ac_includes_default"; then : 28571 28572else 28573 if test "$ac_cv_type_unsigned_short" = yes; then 28574 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28575$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 28576{ as_fn_set_status 77 28577as_fn_error "cannot compute sizeof (unsigned short) 28578See \`config.log' for more details." "$LINENO" 5; }; } 28579 else 28580 ac_cv_sizeof_unsigned_short=0 28581 fi 28582fi 28583 28584fi 28585{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_short" >&5 28586$as_echo "$ac_cv_sizeof_unsigned_short" >&6; } 28587 28588 28589 28590cat >>confdefs.h <<_ACEOF 28591#define SIZEOF_UNSIGNED_SHORT $ac_cv_sizeof_unsigned_short 28592_ACEOF 28593 28594 28595# The cast to long int works around a bug in the HP C Compiler 28596# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 28597# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 28598# This bug is HP SR number 8606223364. 28599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned" >&5 28600$as_echo_n "checking size of unsigned... " >&6; } 28601if test "${ac_cv_sizeof_unsigned+set}" = set; then : 28602 $as_echo_n "(cached) " >&6 28603else 28604 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned))" "ac_cv_sizeof_unsigned" "$ac_includes_default"; then : 28605 28606else 28607 if test "$ac_cv_type_unsigned" = yes; then 28608 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28609$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 28610{ as_fn_set_status 77 28611as_fn_error "cannot compute sizeof (unsigned) 28612See \`config.log' for more details." "$LINENO" 5; }; } 28613 else 28614 ac_cv_sizeof_unsigned=0 28615 fi 28616fi 28617 28618fi 28619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned" >&5 28620$as_echo "$ac_cv_sizeof_unsigned" >&6; } 28621 28622 28623 28624cat >>confdefs.h <<_ACEOF 28625#define SIZEOF_UNSIGNED $ac_cv_sizeof_unsigned 28626_ACEOF 28627 28628 28629# The cast to long int works around a bug in the HP C Compiler 28630# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 28631# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 28632# This bug is HP SR number 8606223364. 28633{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of unsigned long" >&5 28634$as_echo_n "checking size of unsigned long... " >&6; } 28635if test "${ac_cv_sizeof_unsigned_long+set}" = set; then : 28636 $as_echo_n "(cached) " >&6 28637else 28638 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (unsigned long))" "ac_cv_sizeof_unsigned_long" "$ac_includes_default"; then : 28639 28640else 28641 if test "$ac_cv_type_unsigned_long" = yes; then 28642 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28643$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 28644{ as_fn_set_status 77 28645as_fn_error "cannot compute sizeof (unsigned long) 28646See \`config.log' for more details." "$LINENO" 5; }; } 28647 else 28648 ac_cv_sizeof_unsigned_long=0 28649 fi 28650fi 28651 28652fi 28653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_unsigned_long" >&5 28654$as_echo "$ac_cv_sizeof_unsigned_long" >&6; } 28655 28656 28657 28658cat >>confdefs.h <<_ACEOF 28659#define SIZEOF_UNSIGNED_LONG $ac_cv_sizeof_unsigned_long 28660_ACEOF 28661 28662 28663# The cast to long int works around a bug in the HP C Compiler 28664# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 28665# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 28666# This bug is HP SR number 8606223364. 28667{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of mp_limb_t" >&5 28668$as_echo_n "checking size of mp_limb_t... " >&6; } 28669if test "${ac_cv_sizeof_mp_limb_t+set}" = set; then : 28670 $as_echo_n "(cached) " >&6 28671else 28672 if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (mp_limb_t))" "ac_cv_sizeof_mp_limb_t" "#define __GMP_WITHIN_CONFIGURE 1 /* ignore template stuff */ 28673#define GMP_NAIL_BITS $GMP_NAIL_BITS 28674#define GMP_LIMB_BITS 123 28675$DEFN_LONG_LONG_LIMB 28676#include \"$srcdir/gmp-h.in\" 28677 28678"; then : 28679 28680else 28681 if test "$ac_cv_type_mp_limb_t" = yes; then 28682 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 28683$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 28684{ as_fn_set_status 77 28685as_fn_error "cannot compute sizeof (mp_limb_t) 28686See \`config.log' for more details." "$LINENO" 5; }; } 28687 else 28688 ac_cv_sizeof_mp_limb_t=0 28689 fi 28690fi 28691 28692fi 28693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_mp_limb_t" >&5 28694$as_echo "$ac_cv_sizeof_mp_limb_t" >&6; } 28695 28696 28697 28698cat >>confdefs.h <<_ACEOF 28699#define SIZEOF_MP_LIMB_T $ac_cv_sizeof_mp_limb_t 28700_ACEOF 28701 28702 28703if test "$ac_cv_sizeof_mp_limb_t" = 0; then 28704 as_fn_error "Oops, mp_limb_t doesn't seem to work" "$LINENO" 5 28705fi 28706GMP_LIMB_BITS=`expr 8 \* $ac_cv_sizeof_mp_limb_t` 28707 28708 28709echo "define(<SIZEOF_UNSIGNED>,<$ac_cv_sizeof_unsigned>)" >> $gmp_tmpconfigm4 28710 28711 28712# Check compiler limb size matches gmp-mparam.h 28713# 28714# FIXME: Some of the cycle counter objects in the tune directory depend on 28715# the size of ulong, it'd be possible to check that here, though a mismatch 28716# probably wouldn't want to be fatal, none of the libgmp assembler code 28717# depends on ulong. 28718# 28719mparam_bits=`sed -n 's/^#define GMP_LIMB_BITS[ ][ ]*\([0-9]*\).*$/\1/p' $gmp_mparam_source` 28720if test -n "$mparam_bits" && test "$mparam_bits" -ne $GMP_LIMB_BITS; then 28721 if test "$test_CFLAGS" = set; then 28722 as_fn_error "Oops, mp_limb_t is $GMP_LIMB_BITS bits, but the assembler code 28723in this configuration expects $mparam_bits bits. 28724You appear to have set \$CFLAGS, perhaps you also need to tell GMP the 28725intended ABI, see \"ABI and ISA\" in the manual." "$LINENO" 5 28726 else 28727 as_fn_error "Oops, mp_limb_t is $GMP_LIMB_BITS bits, but the assembler code 28728in this configuration expects $mparam_bits bits." "$LINENO" 5 28729 fi 28730fi 28731 28732 28733echo "define(<GMP_LIMB_BITS>,$GMP_LIMB_BITS)" >> $gmp_tmpconfigm4 28734 28735 28736echo "define(<GMP_NAIL_BITS>,$GMP_NAIL_BITS)" >> $gmp_tmpconfigm4 28737 28738 28739echo "define(<GMP_NUMB_BITS>,eval(GMP_LIMB_BITS-GMP_NAIL_BITS))" >> $gmp_tmpconfigm4 28740 28741 28742 28743# Exclude the mpn random functions from mpbsd since that would drag in the 28744# top-level rand things, all of which are unnecessary for libmp. There's 28745# other unnecessary objects too actually, if we could be bothered figuring 28746# out exactly which they are. 28747# 28748mpn_objs_in_libmp= 28749for i in $mpn_objs_in_libgmp; do 28750 case $i in 28751 *random*) ;; 28752 *) mpn_objs_in_libmp="$mpn_objs_in_libmp $i" ;; 28753 esac 28754done 28755 28756 28757 28758 28759 28760 28761 28762# A recompiled sqr_basecase for use in the tune program, if necessary. 28763TUNE_SQR_OBJ= 28764test -d tune || mkdir tune 28765case $sqr_basecase_source in 28766 *.asm) 28767 sqr_max=`sed -n 's/^def...(SQR_TOOM2_THRESHOLD_MAX, *\([0-9]*\))/\1/p' $sqr_basecase_source` 28768 if test -n "$sqr_max"; then 28769 TUNE_SQR_OBJ=sqr_asm.o 28770 28771cat >>confdefs.h <<_ACEOF 28772#define TUNE_SQR_TOOM2_MAX $sqr_max 28773_ACEOF 28774 28775 fi 28776 cat >tune/sqr_basecase.c <<EOF 28777/* not sure that an empty file can compile, so put in a dummy */ 28778int sqr_basecase_dummy; 28779EOF 28780 ;; 28781 *.c) 28782 TUNE_SQR_OBJ= 28783 $as_echo "#define TUNE_SQR_TOOM2_MAX SQR_TOOM2_MAX_GENERIC" >>confdefs.h 28784 28785 cat >tune/sqr_basecase.c <<EOF 28786#define TUNE_PROGRAM_BUILD 1 28787#define TUNE_PROGRAM_BUILD_SQR 1 28788#include "mpn/sqr_basecase.c" 28789EOF 28790 ;; 28791esac 28792 28793 28794 28795# Configs for demos/pexpr.c. 28796# 28797ac_config_files="$ac_config_files demos/pexpr-config.h:demos/pexpr-config-h.in" 28798 28799case $ac_cv_func_clock in 28800yes) HAVE_CLOCK_01=1 28801 ;; 28802no) HAVE_CLOCK_01=0 ;; 28803esac 28804 28805case $ac_cv_func_cputime in 28806yes) HAVE_CPUTIME_01=1 28807 ;; 28808no) HAVE_CPUTIME_01=0 ;; 28809esac 28810 28811case $ac_cv_func_getrusage in 28812yes) HAVE_GETRUSAGE_01=1 28813 ;; 28814no) HAVE_GETRUSAGE_01=0 ;; 28815esac 28816 28817case $ac_cv_func_gettimeofday in 28818yes) HAVE_GETTIMEOFDAY_01=1 28819 ;; 28820no) HAVE_GETTIMEOFDAY_01=0 ;; 28821esac 28822 28823case $ac_cv_func_sigaction in 28824yes) HAVE_SIGACTION_01=1 28825 ;; 28826no) HAVE_SIGACTION_01=0 ;; 28827esac 28828 28829case $ac_cv_func_sigaltstack in 28830yes) HAVE_SIGALTSTACK_01=1 28831 ;; 28832no) HAVE_SIGALTSTACK_01=0 ;; 28833esac 28834 28835case $ac_cv_func_sigstack in 28836yes) HAVE_SIGSTACK_01=1 28837 ;; 28838no) HAVE_SIGSTACK_01=0 ;; 28839esac 28840 28841 28842case $ac_cv_header_sys_resource_h in 28843yes) HAVE_SYS_RESOURCE_H_01=1 28844 ;; 28845no) HAVE_SYS_RESOURCE_H_01=0 ;; 28846esac 28847 28848 28849ac_fn_c_check_type "$LINENO" "stack_t" "ac_cv_type_stack_t" "#include <signal.h> 28850" 28851if test "x$ac_cv_type_stack_t" = x""yes; then : 28852 28853cat >>confdefs.h <<_ACEOF 28854#define HAVE_STACK_T 1 28855_ACEOF 28856 28857HAVE_STACK_T_01=1 28858else 28859 HAVE_STACK_T_01=0 28860fi 28861 28862 28863 28864# Configs for demos/calc directory 28865# 28866# AC_SUBST+AC_CONFIG_FILES is used for calc-config.h, rather than AC_DEFINE+ 28867# AC_CONFIG_HEADERS, since with the latter automake (1.8) will then put the 28868# directory (ie. demos/calc) into $(DEFAULT_INCLUDES) for every Makefile.in, 28869# which would look very strange. 28870# 28871# -lcurses is required by libreadline. On a typical SVR4 style system this 28872# normally doesn't have to be given explicitly, since libreadline.so will 28873# have a NEEDED record for it. But if someone for some reason is using only 28874# a static libreadline.a then we must give -lcurses. Readline (as of 28875# version 4.3) doesn't use libtool, so we can't rely on a .la to cover 28876# necessary dependencies. 28877# 28878# On a couple of systems we've seen libreadline available, but the headers 28879# not in the default include path, so check for readline/readline.h. We've 28880# also seen readline/history.h missing, not sure if that's just a broken 28881# install or a very old version, but check that too. 28882# 28883ac_config_files="$ac_config_files demos/calc/calc-config.h:demos/calc/calc-config-h.in" 28884 28885LIBCURSES= 28886if test $with_readline != no; then 28887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tputs in -lncurses" >&5 28888$as_echo_n "checking for tputs in -lncurses... " >&6; } 28889if test "${ac_cv_lib_ncurses_tputs+set}" = set; then : 28890 $as_echo_n "(cached) " >&6 28891else 28892 ac_check_lib_save_LIBS=$LIBS 28893LIBS="-lncurses $LIBS" 28894cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28895/* end confdefs.h. */ 28896 28897/* Override any GCC internal prototype to avoid an error. 28898 Use char because int might match the return type of a GCC 28899 builtin and then its argument prototype would still apply. */ 28900#ifdef __cplusplus 28901extern "C" 28902#endif 28903char tputs (); 28904int 28905main () 28906{ 28907return tputs (); 28908 ; 28909 return 0; 28910} 28911_ACEOF 28912if ac_fn_c_try_link "$LINENO"; then : 28913 ac_cv_lib_ncurses_tputs=yes 28914else 28915 ac_cv_lib_ncurses_tputs=no 28916fi 28917rm -f core conftest.err conftest.$ac_objext \ 28918 conftest$ac_exeext conftest.$ac_ext 28919LIBS=$ac_check_lib_save_LIBS 28920fi 28921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ncurses_tputs" >&5 28922$as_echo "$ac_cv_lib_ncurses_tputs" >&6; } 28923if test "x$ac_cv_lib_ncurses_tputs" = x""yes; then : 28924 LIBCURSES=-lncurses 28925else 28926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tputs in -lcurses" >&5 28927$as_echo_n "checking for tputs in -lcurses... " >&6; } 28928if test "${ac_cv_lib_curses_tputs+set}" = set; then : 28929 $as_echo_n "(cached) " >&6 28930else 28931 ac_check_lib_save_LIBS=$LIBS 28932LIBS="-lcurses $LIBS" 28933cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28934/* end confdefs.h. */ 28935 28936/* Override any GCC internal prototype to avoid an error. 28937 Use char because int might match the return type of a GCC 28938 builtin and then its argument prototype would still apply. */ 28939#ifdef __cplusplus 28940extern "C" 28941#endif 28942char tputs (); 28943int 28944main () 28945{ 28946return tputs (); 28947 ; 28948 return 0; 28949} 28950_ACEOF 28951if ac_fn_c_try_link "$LINENO"; then : 28952 ac_cv_lib_curses_tputs=yes 28953else 28954 ac_cv_lib_curses_tputs=no 28955fi 28956rm -f core conftest.err conftest.$ac_objext \ 28957 conftest$ac_exeext conftest.$ac_ext 28958LIBS=$ac_check_lib_save_LIBS 28959fi 28960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curses_tputs" >&5 28961$as_echo "$ac_cv_lib_curses_tputs" >&6; } 28962if test "x$ac_cv_lib_curses_tputs" = x""yes; then : 28963 LIBCURSES=-lcurses 28964fi 28965 28966fi 28967 28968fi 28969 28970use_readline=$with_readline 28971if test $with_readline = detect; then 28972 use_readline=no 28973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5 28974$as_echo_n "checking for readline in -lreadline... " >&6; } 28975if test "${ac_cv_lib_readline_readline+set}" = set; then : 28976 $as_echo_n "(cached) " >&6 28977else 28978 ac_check_lib_save_LIBS=$LIBS 28979LIBS="-lreadline $LIBCURSES $LIBS" 28980cat confdefs.h - <<_ACEOF >conftest.$ac_ext 28981/* end confdefs.h. */ 28982 28983/* Override any GCC internal prototype to avoid an error. 28984 Use char because int might match the return type of a GCC 28985 builtin and then its argument prototype would still apply. */ 28986#ifdef __cplusplus 28987extern "C" 28988#endif 28989char readline (); 28990int 28991main () 28992{ 28993return readline (); 28994 ; 28995 return 0; 28996} 28997_ACEOF 28998if ac_fn_c_try_link "$LINENO"; then : 28999 ac_cv_lib_readline_readline=yes 29000else 29001 ac_cv_lib_readline_readline=no 29002fi 29003rm -f core conftest.err conftest.$ac_objext \ 29004 conftest$ac_exeext conftest.$ac_ext 29005LIBS=$ac_check_lib_save_LIBS 29006fi 29007{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5 29008$as_echo "$ac_cv_lib_readline_readline" >&6; } 29009if test "x$ac_cv_lib_readline_readline" = x""yes; then : 29010 ac_fn_c_check_header_mongrel "$LINENO" "readline/readline.h" "ac_cv_header_readline_readline_h" "$ac_includes_default" 29011if test "x$ac_cv_header_readline_readline_h" = x""yes; then : 29012 ac_fn_c_check_header_mongrel "$LINENO" "readline/history.h" "ac_cv_header_readline_history_h" "$ac_includes_default" 29013if test "x$ac_cv_header_readline_history_h" = x""yes; then : 29014 use_readline=yes 29015fi 29016 29017 29018fi 29019 29020 29021fi 29022 29023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking readline detected" >&5 29024$as_echo_n "checking readline detected... " >&6; } 29025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_readline" >&5 29026$as_echo "$use_readline" >&6; } 29027fi 29028if test $use_readline = yes; then 29029 WITH_READLINE_01=1 29030 29031 LIBREADLINE=-lreadline 29032 29033else 29034 WITH_READLINE_01=0 29035fi 29036for ac_prog in 'bison -y' byacc 29037do 29038 # Extract the first word of "$ac_prog", so it can be a program name with args. 29039set dummy $ac_prog; ac_word=$2 29040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29041$as_echo_n "checking for $ac_word... " >&6; } 29042if test "${ac_cv_prog_YACC+set}" = set; then : 29043 $as_echo_n "(cached) " >&6 29044else 29045 if test -n "$YACC"; then 29046 ac_cv_prog_YACC="$YACC" # Let the user override the test. 29047else 29048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29049for as_dir in $PATH 29050do 29051 IFS=$as_save_IFS 29052 test -z "$as_dir" && as_dir=. 29053 for ac_exec_ext in '' $ac_executable_extensions; do 29054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 29055 ac_cv_prog_YACC="$ac_prog" 29056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29057 break 2 29058 fi 29059done 29060 done 29061IFS=$as_save_IFS 29062 29063fi 29064fi 29065YACC=$ac_cv_prog_YACC 29066if test -n "$YACC"; then 29067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 29068$as_echo "$YACC" >&6; } 29069else 29070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29071$as_echo "no" >&6; } 29072fi 29073 29074 29075 test -n "$YACC" && break 29076done 29077test -n "$YACC" || YACC="yacc" 29078 29079for ac_prog in flex lex 29080do 29081 # Extract the first word of "$ac_prog", so it can be a program name with args. 29082set dummy $ac_prog; ac_word=$2 29083{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29084$as_echo_n "checking for $ac_word... " >&6; } 29085if test "${ac_cv_prog_LEX+set}" = set; then : 29086 $as_echo_n "(cached) " >&6 29087else 29088 if test -n "$LEX"; then 29089 ac_cv_prog_LEX="$LEX" # Let the user override the test. 29090else 29091as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29092for as_dir in $PATH 29093do 29094 IFS=$as_save_IFS 29095 test -z "$as_dir" && as_dir=. 29096 for ac_exec_ext in '' $ac_executable_extensions; do 29097 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 29098 ac_cv_prog_LEX="$ac_prog" 29099 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29100 break 2 29101 fi 29102done 29103 done 29104IFS=$as_save_IFS 29105 29106fi 29107fi 29108LEX=$ac_cv_prog_LEX 29109if test -n "$LEX"; then 29110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 29111$as_echo "$LEX" >&6; } 29112else 29113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29114$as_echo "no" >&6; } 29115fi 29116 29117 29118 test -n "$LEX" && break 29119done 29120test -n "$LEX" || LEX=":" 29121 29122if test "x$LEX" != "x:"; then 29123 cat >conftest.l <<_ACEOF 29124%% 29125a { ECHO; } 29126b { REJECT; } 29127c { yymore (); } 29128d { yyless (1); } 29129e { yyless (input () != 0); } 29130f { unput (yytext[0]); } 29131. { BEGIN INITIAL; } 29132%% 29133#ifdef YYTEXT_POINTER 29134extern char *yytext; 29135#endif 29136int 29137main (void) 29138{ 29139 return ! yylex () + ! yywrap (); 29140} 29141_ACEOF 29142{ { ac_try="$LEX conftest.l" 29143case "(($ac_try" in 29144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 29145 *) ac_try_echo=$ac_try;; 29146esac 29147eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 29148$as_echo "$ac_try_echo"; } >&5 29149 (eval "$LEX conftest.l") 2>&5 29150 ac_status=$? 29151 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 29152 test $ac_status = 0; } 29153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 29154$as_echo_n "checking lex output file root... " >&6; } 29155if test "${ac_cv_prog_lex_root+set}" = set; then : 29156 $as_echo_n "(cached) " >&6 29157else 29158 29159if test -f lex.yy.c; then 29160 ac_cv_prog_lex_root=lex.yy 29161elif test -f lexyy.c; then 29162 ac_cv_prog_lex_root=lexyy 29163else 29164 as_fn_error "cannot find output from $LEX; giving up" "$LINENO" 5 29165fi 29166fi 29167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 29168$as_echo "$ac_cv_prog_lex_root" >&6; } 29169LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 29170 29171if test -z "${LEXLIB+set}"; then 29172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 29173$as_echo_n "checking lex library... " >&6; } 29174if test "${ac_cv_lib_lex+set}" = set; then : 29175 $as_echo_n "(cached) " >&6 29176else 29177 29178 ac_save_LIBS=$LIBS 29179 ac_cv_lib_lex='none needed' 29180 for ac_lib in '' -lfl -ll; do 29181 LIBS="$ac_lib $ac_save_LIBS" 29182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29183/* end confdefs.h. */ 29184`cat $LEX_OUTPUT_ROOT.c` 29185_ACEOF 29186if ac_fn_c_try_link "$LINENO"; then : 29187 ac_cv_lib_lex=$ac_lib 29188fi 29189rm -f core conftest.err conftest.$ac_objext \ 29190 conftest$ac_exeext conftest.$ac_ext 29191 test "$ac_cv_lib_lex" != 'none needed' && break 29192 done 29193 LIBS=$ac_save_LIBS 29194 29195fi 29196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 29197$as_echo "$ac_cv_lib_lex" >&6; } 29198 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex 29199fi 29200 29201 29202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 29203$as_echo_n "checking whether yytext is a pointer... " >&6; } 29204if test "${ac_cv_prog_lex_yytext_pointer+set}" = set; then : 29205 $as_echo_n "(cached) " >&6 29206else 29207 # POSIX says lex can declare yytext either as a pointer or an array; the 29208# default is implementation-dependent. Figure out which it is, since 29209# not all implementations provide the %pointer and %array declarations. 29210ac_cv_prog_lex_yytext_pointer=no 29211ac_save_LIBS=$LIBS 29212LIBS="$LEXLIB $ac_save_LIBS" 29213cat confdefs.h - <<_ACEOF >conftest.$ac_ext 29214/* end confdefs.h. */ 29215#define YYTEXT_POINTER 1 29216`cat $LEX_OUTPUT_ROOT.c` 29217_ACEOF 29218if ac_fn_c_try_link "$LINENO"; then : 29219 ac_cv_prog_lex_yytext_pointer=yes 29220fi 29221rm -f core conftest.err conftest.$ac_objext \ 29222 conftest$ac_exeext conftest.$ac_ext 29223LIBS=$ac_save_LIBS 29224 29225fi 29226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 29227$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } 29228if test $ac_cv_prog_lex_yytext_pointer = yes; then 29229 29230$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h 29231 29232fi 29233rm -f conftest.l $LEX_OUTPUT_ROOT.c 29234 29235fi 29236if test "$LEX" = :; then 29237 LEX=${am_missing_run}flex 29238fi 29239 29240# Configs for demos/expr directory 29241# 29242# Libtool already runs an AC_CHECK_TOOL for ranlib, but we give 29243# AC_PROG_RANLIB anyway since automake is supposed to complain if it's not 29244# called. (Automake 1.8.4 doesn't, at least not when the only library is in 29245# an EXTRA_LIBRARIES.) 29246# 29247if test -n "$ac_tool_prefix"; then 29248 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 29249set dummy ${ac_tool_prefix}ranlib; ac_word=$2 29250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29251$as_echo_n "checking for $ac_word... " >&6; } 29252if test "${ac_cv_prog_RANLIB+set}" = set; then : 29253 $as_echo_n "(cached) " >&6 29254else 29255 if test -n "$RANLIB"; then 29256 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 29257else 29258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29259for as_dir in $PATH 29260do 29261 IFS=$as_save_IFS 29262 test -z "$as_dir" && as_dir=. 29263 for ac_exec_ext in '' $ac_executable_extensions; do 29264 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 29265 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 29266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29267 break 2 29268 fi 29269done 29270 done 29271IFS=$as_save_IFS 29272 29273fi 29274fi 29275RANLIB=$ac_cv_prog_RANLIB 29276if test -n "$RANLIB"; then 29277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 29278$as_echo "$RANLIB" >&6; } 29279else 29280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29281$as_echo "no" >&6; } 29282fi 29283 29284 29285fi 29286if test -z "$ac_cv_prog_RANLIB"; then 29287 ac_ct_RANLIB=$RANLIB 29288 # Extract the first word of "ranlib", so it can be a program name with args. 29289set dummy ranlib; ac_word=$2 29290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 29291$as_echo_n "checking for $ac_word... " >&6; } 29292if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 29293 $as_echo_n "(cached) " >&6 29294else 29295 if test -n "$ac_ct_RANLIB"; then 29296 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 29297else 29298as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29299for as_dir in $PATH 29300do 29301 IFS=$as_save_IFS 29302 test -z "$as_dir" && as_dir=. 29303 for ac_exec_ext in '' $ac_executable_extensions; do 29304 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 29305 ac_cv_prog_ac_ct_RANLIB="ranlib" 29306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 29307 break 2 29308 fi 29309done 29310 done 29311IFS=$as_save_IFS 29312 29313fi 29314fi 29315ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 29316if test -n "$ac_ct_RANLIB"; then 29317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 29318$as_echo "$ac_ct_RANLIB" >&6; } 29319else 29320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 29321$as_echo "no" >&6; } 29322fi 29323 29324 if test "x$ac_ct_RANLIB" = x; then 29325 RANLIB=":" 29326 else 29327 case $cross_compiling:$ac_tool_warned in 29328yes:) 29329{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 29330$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 29331ac_tool_warned=yes ;; 29332esac 29333 RANLIB=$ac_ct_RANLIB 29334 fi 29335else 29336 RANLIB="$ac_cv_prog_RANLIB" 29337fi 29338 29339 29340 29341# Create config.m4. 29342 29343echo "creating $gmp_configm4" 29344echo "d""nl $gmp_configm4. Generated automatically by configure." > $gmp_configm4 29345if test -f $gmp_tmpconfigm4; then 29346 echo "changequote(<,>)" >> $gmp_configm4 29347 echo "ifdef(<__CONFIG_M4_INCLUDED__>,,<" >> $gmp_configm4 29348 cat $gmp_tmpconfigm4 >> $gmp_configm4 29349 echo ">)" >> $gmp_configm4 29350 echo "changequote(\`,')" >> $gmp_configm4 29351 rm $gmp_tmpconfigm4 29352fi 29353echo "ifdef(\`__CONFIG_M4_INCLUDED__',,\`" >> $gmp_configm4 29354if test -f $gmp_tmpconfigm4i; then 29355 cat $gmp_tmpconfigm4i >> $gmp_configm4 29356 rm $gmp_tmpconfigm4i 29357fi 29358if test -f $gmp_tmpconfigm4p; then 29359 cat $gmp_tmpconfigm4p >> $gmp_configm4 29360 rm $gmp_tmpconfigm4p 29361fi 29362echo "')" >> $gmp_configm4 29363echo "define(\`__CONFIG_M4_INCLUDED__')" >> $gmp_configm4 29364 29365 29366# Create Makefiles 29367# FIXME: Upcoming version of autoconf/automake may not like broken lines. 29368# Right now automake isn't accepting the new AC_CONFIG_FILES scheme. 29369 29370ac_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" 29371 29372cat >confcache <<\_ACEOF 29373# This file is a shell script that caches the results of configure 29374# tests run on this system so they can be shared between configure 29375# scripts and configure runs, see configure's option --config-cache. 29376# It is not useful on other systems. If it contains results you don't 29377# want to keep, you may remove or edit it. 29378# 29379# config.status only pays attention to the cache file if you give it 29380# the --recheck option to rerun configure. 29381# 29382# `ac_cv_env_foo' variables (set or unset) will be overridden when 29383# loading this file, other *unset* `ac_cv_foo' will be assigned the 29384# following values. 29385 29386_ACEOF 29387 29388# The following way of writing the cache mishandles newlines in values, 29389# but we know of no workaround that is simple, portable, and efficient. 29390# So, we kill variables containing newlines. 29391# Ultrix sh set writes to stderr and can't be redirected directly, 29392# and sets the high bit in the cache file unless we assign to the vars. 29393( 29394 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 29395 eval ac_val=\$$ac_var 29396 case $ac_val in #( 29397 *${as_nl}*) 29398 case $ac_var in #( 29399 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 29400$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 29401 esac 29402 case $ac_var in #( 29403 _ | IFS | as_nl) ;; #( 29404 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 29405 *) { eval $ac_var=; unset $ac_var;} ;; 29406 esac ;; 29407 esac 29408 done 29409 29410 (set) 2>&1 | 29411 case $as_nl`(ac_space=' '; set) 2>&1` in #( 29412 *${as_nl}ac_space=\ *) 29413 # `set' does not quote correctly, so add quotes: double-quote 29414 # substitution turns \\\\ into \\, and sed turns \\ into \. 29415 sed -n \ 29416 "s/'/'\\\\''/g; 29417 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 29418 ;; #( 29419 *) 29420 # `set' quotes correctly as required by POSIX, so do not add quotes. 29421 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 29422 ;; 29423 esac | 29424 sort 29425) | 29426 sed ' 29427 /^ac_cv_env_/b end 29428 t clear 29429 :clear 29430 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 29431 t end 29432 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 29433 :end' >>confcache 29434if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 29435 if test -w "$cache_file"; then 29436 test "x$cache_file" != "x/dev/null" && 29437 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 29438$as_echo "$as_me: updating cache $cache_file" >&6;} 29439 cat confcache >$cache_file 29440 else 29441 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 29442$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 29443 fi 29444fi 29445rm -f confcache 29446 29447test "x$prefix" = xNONE && prefix=$ac_default_prefix 29448# Let make expand exec_prefix. 29449test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 29450 29451DEFS=-DHAVE_CONFIG_H 29452 29453ac_libobjs= 29454ac_ltlibobjs= 29455for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 29456 # 1. Remove the extension, and $U if already installed. 29457 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 29458 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 29459 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 29460 # will be set to the directory where LIBOBJS objects are built. 29461 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 29462 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 29463done 29464LIBOBJS=$ac_libobjs 29465 29466LTLIBOBJS=$ac_ltlibobjs 29467 29468 29469 if test -n "$EXEEXT"; then 29470 am__EXEEXT_TRUE= 29471 am__EXEEXT_FALSE='#' 29472else 29473 am__EXEEXT_TRUE='#' 29474 am__EXEEXT_FALSE= 29475fi 29476 29477if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 29478 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. 29479Usually this means the macro was only invoked conditionally." "$LINENO" 5 29480fi 29481if test -z "${WANT_MPBSD_TRUE}" && test -z "${WANT_MPBSD_FALSE}"; then 29482 as_fn_error "conditional \"WANT_MPBSD\" was never defined. 29483Usually this means the macro was only invoked conditionally." "$LINENO" 5 29484fi 29485if test -z "${WANT_CXX_TRUE}" && test -z "${WANT_CXX_FALSE}"; then 29486 as_fn_error "conditional \"WANT_CXX\" was never defined. 29487Usually this means the macro was only invoked conditionally." "$LINENO" 5 29488fi 29489if test -z "${ENABLE_STATIC_TRUE}" && test -z "${ENABLE_STATIC_FALSE}"; then 29490 as_fn_error "conditional \"ENABLE_STATIC\" was never defined. 29491Usually this means the macro was only invoked conditionally." "$LINENO" 5 29492fi 29493 29494 29495: ${CONFIG_STATUS=./config.status} 29496ac_write_fail=0 29497ac_clean_files_save=$ac_clean_files 29498ac_clean_files="$ac_clean_files $CONFIG_STATUS" 29499{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 29500$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 29501as_write_fail=0 29502cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 29503#! $SHELL 29504# Generated by $as_me. 29505# Run this file to recreate the current configuration. 29506# Compiler output produced by configure, useful for debugging 29507# configure, is in config.log if it exists. 29508 29509debug=false 29510ac_cs_recheck=false 29511ac_cs_silent=false 29512 29513SHELL=\${CONFIG_SHELL-$SHELL} 29514export SHELL 29515_ASEOF 29516cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 29517## -------------------- ## 29518## M4sh Initialization. ## 29519## -------------------- ## 29520 29521# Be more Bourne compatible 29522DUALCASE=1; export DUALCASE # for MKS sh 29523if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 29524 emulate sh 29525 NULLCMD=: 29526 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 29527 # is contrary to our usage. Disable this feature. 29528 alias -g '${1+"$@"}'='"$@"' 29529 setopt NO_GLOB_SUBST 29530else 29531 case `(set -o) 2>/dev/null` in #( 29532 *posix*) : 29533 set -o posix ;; #( 29534 *) : 29535 ;; 29536esac 29537fi 29538 29539 29540as_nl=' 29541' 29542export as_nl 29543# Printing a long string crashes Solaris 7 /usr/bin/printf. 29544as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 29545as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 29546as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 29547# Prefer a ksh shell builtin over an external printf program on Solaris, 29548# but without wasting forks for bash or zsh. 29549if test -z "$BASH_VERSION$ZSH_VERSION" \ 29550 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 29551 as_echo='print -r --' 29552 as_echo_n='print -rn --' 29553elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 29554 as_echo='printf %s\n' 29555 as_echo_n='printf %s' 29556else 29557 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 29558 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 29559 as_echo_n='/usr/ucb/echo -n' 29560 else 29561 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 29562 as_echo_n_body='eval 29563 arg=$1; 29564 case $arg in #( 29565 *"$as_nl"*) 29566 expr "X$arg" : "X\\(.*\\)$as_nl"; 29567 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 29568 esac; 29569 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 29570 ' 29571 export as_echo_n_body 29572 as_echo_n='sh -c $as_echo_n_body as_echo' 29573 fi 29574 export as_echo_body 29575 as_echo='sh -c $as_echo_body as_echo' 29576fi 29577 29578# The user is always right. 29579if test "${PATH_SEPARATOR+set}" != set; then 29580 PATH_SEPARATOR=: 29581 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 29582 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 29583 PATH_SEPARATOR=';' 29584 } 29585fi 29586 29587 29588# IFS 29589# We need space, tab and new line, in precisely that order. Quoting is 29590# there to prevent editors from complaining about space-tab. 29591# (If _AS_PATH_WALK were called with IFS unset, it would disable word 29592# splitting by setting IFS to empty value.) 29593IFS=" "" $as_nl" 29594 29595# Find who we are. Look in the path if we contain no directory separator. 29596case $0 in #(( 29597 *[\\/]* ) as_myself=$0 ;; 29598 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 29599for as_dir in $PATH 29600do 29601 IFS=$as_save_IFS 29602 test -z "$as_dir" && as_dir=. 29603 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 29604 done 29605IFS=$as_save_IFS 29606 29607 ;; 29608esac 29609# We did not find ourselves, most probably we were run as `sh COMMAND' 29610# in which case we are not to be found in the path. 29611if test "x$as_myself" = x; then 29612 as_myself=$0 29613fi 29614if test ! -f "$as_myself"; then 29615 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 29616 exit 1 29617fi 29618 29619# Unset variables that we do not need and which cause bugs (e.g. in 29620# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 29621# suppresses any "Segmentation fault" message there. '((' could 29622# trigger a bug in pdksh 5.2.14. 29623for as_var in BASH_ENV ENV MAIL MAILPATH 29624do eval test x\${$as_var+set} = xset \ 29625 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 29626done 29627PS1='$ ' 29628PS2='> ' 29629PS4='+ ' 29630 29631# NLS nuisances. 29632LC_ALL=C 29633export LC_ALL 29634LANGUAGE=C 29635export LANGUAGE 29636 29637# CDPATH. 29638(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 29639 29640 29641# as_fn_error ERROR [LINENO LOG_FD] 29642# --------------------------------- 29643# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 29644# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 29645# script with status $?, using 1 if that was 0. 29646as_fn_error () 29647{ 29648 as_status=$?; test $as_status -eq 0 && as_status=1 29649 if test "$3"; then 29650 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 29651 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 29652 fi 29653 $as_echo "$as_me: error: $1" >&2 29654 as_fn_exit $as_status 29655} # as_fn_error 29656 29657 29658# as_fn_set_status STATUS 29659# ----------------------- 29660# Set $? to STATUS, without forking. 29661as_fn_set_status () 29662{ 29663 return $1 29664} # as_fn_set_status 29665 29666# as_fn_exit STATUS 29667# ----------------- 29668# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 29669as_fn_exit () 29670{ 29671 set +e 29672 as_fn_set_status $1 29673 exit $1 29674} # as_fn_exit 29675 29676# as_fn_unset VAR 29677# --------------- 29678# Portably unset VAR. 29679as_fn_unset () 29680{ 29681 { eval $1=; unset $1;} 29682} 29683as_unset=as_fn_unset 29684# as_fn_append VAR VALUE 29685# ---------------------- 29686# Append the text in VALUE to the end of the definition contained in VAR. Take 29687# advantage of any shell optimizations that allow amortized linear growth over 29688# repeated appends, instead of the typical quadratic growth present in naive 29689# implementations. 29690if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 29691 eval 'as_fn_append () 29692 { 29693 eval $1+=\$2 29694 }' 29695else 29696 as_fn_append () 29697 { 29698 eval $1=\$$1\$2 29699 } 29700fi # as_fn_append 29701 29702# as_fn_arith ARG... 29703# ------------------ 29704# Perform arithmetic evaluation on the ARGs, and store the result in the 29705# global $as_val. Take advantage of shells that can avoid forks. The arguments 29706# must be portable across $(()) and expr. 29707if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 29708 eval 'as_fn_arith () 29709 { 29710 as_val=$(( $* )) 29711 }' 29712else 29713 as_fn_arith () 29714 { 29715 as_val=`expr "$@" || test $? -eq 1` 29716 } 29717fi # as_fn_arith 29718 29719 29720if expr a : '\(a\)' >/dev/null 2>&1 && 29721 test "X`expr 00001 : '.*\(...\)'`" = X001; then 29722 as_expr=expr 29723else 29724 as_expr=false 29725fi 29726 29727if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 29728 as_basename=basename 29729else 29730 as_basename=false 29731fi 29732 29733if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 29734 as_dirname=dirname 29735else 29736 as_dirname=false 29737fi 29738 29739as_me=`$as_basename -- "$0" || 29740$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 29741 X"$0" : 'X\(//\)$' \| \ 29742 X"$0" : 'X\(/\)' \| . 2>/dev/null || 29743$as_echo X/"$0" | 29744 sed '/^.*\/\([^/][^/]*\)\/*$/{ 29745 s//\1/ 29746 q 29747 } 29748 /^X\/\(\/\/\)$/{ 29749 s//\1/ 29750 q 29751 } 29752 /^X\/\(\/\).*/{ 29753 s//\1/ 29754 q 29755 } 29756 s/.*/./; q'` 29757 29758# Avoid depending upon Character Ranges. 29759as_cr_letters='abcdefghijklmnopqrstuvwxyz' 29760as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 29761as_cr_Letters=$as_cr_letters$as_cr_LETTERS 29762as_cr_digits='0123456789' 29763as_cr_alnum=$as_cr_Letters$as_cr_digits 29764 29765ECHO_C= ECHO_N= ECHO_T= 29766case `echo -n x` in #((((( 29767-n*) 29768 case `echo 'xy\c'` in 29769 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 29770 xy) ECHO_C='\c';; 29771 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 29772 ECHO_T=' ';; 29773 esac;; 29774*) 29775 ECHO_N='-n';; 29776esac 29777 29778rm -f conf$$ conf$$.exe conf$$.file 29779if test -d conf$$.dir; then 29780 rm -f conf$$.dir/conf$$.file 29781else 29782 rm -f conf$$.dir 29783 mkdir conf$$.dir 2>/dev/null 29784fi 29785if (echo >conf$$.file) 2>/dev/null; then 29786 if ln -s conf$$.file conf$$ 2>/dev/null; then 29787 as_ln_s='ln -s' 29788 # ... but there are two gotchas: 29789 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 29790 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 29791 # In both cases, we have to default to `cp -p'. 29792 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 29793 as_ln_s='cp -p' 29794 elif ln conf$$.file conf$$ 2>/dev/null; then 29795 as_ln_s=ln 29796 else 29797 as_ln_s='cp -p' 29798 fi 29799else 29800 as_ln_s='cp -p' 29801fi 29802rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 29803rmdir conf$$.dir 2>/dev/null 29804 29805 29806# as_fn_mkdir_p 29807# ------------- 29808# Create "$as_dir" as a directory, including parents if necessary. 29809as_fn_mkdir_p () 29810{ 29811 29812 case $as_dir in #( 29813 -*) as_dir=./$as_dir;; 29814 esac 29815 test -d "$as_dir" || eval $as_mkdir_p || { 29816 as_dirs= 29817 while :; do 29818 case $as_dir in #( 29819 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 29820 *) as_qdir=$as_dir;; 29821 esac 29822 as_dirs="'$as_qdir' $as_dirs" 29823 as_dir=`$as_dirname -- "$as_dir" || 29824$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 29825 X"$as_dir" : 'X\(//\)[^/]' \| \ 29826 X"$as_dir" : 'X\(//\)$' \| \ 29827 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 29828$as_echo X"$as_dir" | 29829 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 29830 s//\1/ 29831 q 29832 } 29833 /^X\(\/\/\)[^/].*/{ 29834 s//\1/ 29835 q 29836 } 29837 /^X\(\/\/\)$/{ 29838 s//\1/ 29839 q 29840 } 29841 /^X\(\/\).*/{ 29842 s//\1/ 29843 q 29844 } 29845 s/.*/./; q'` 29846 test -d "$as_dir" && break 29847 done 29848 test -z "$as_dirs" || eval "mkdir $as_dirs" 29849 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 29850 29851 29852} # as_fn_mkdir_p 29853if mkdir -p . 2>/dev/null; then 29854 as_mkdir_p='mkdir -p "$as_dir"' 29855else 29856 test -d ./-p && rmdir ./-p 29857 as_mkdir_p=false 29858fi 29859 29860if test -x / >/dev/null 2>&1; then 29861 as_test_x='test -x' 29862else 29863 if ls -dL / >/dev/null 2>&1; then 29864 as_ls_L_option=L 29865 else 29866 as_ls_L_option= 29867 fi 29868 as_test_x=' 29869 eval sh -c '\'' 29870 if test -d "$1"; then 29871 test -d "$1/."; 29872 else 29873 case $1 in #( 29874 -*)set "./$1";; 29875 esac; 29876 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 29877 ???[sx]*):;;*)false;;esac;fi 29878 '\'' sh 29879 ' 29880fi 29881as_executable_p=$as_test_x 29882 29883# Sed expression to map a string onto a valid CPP name. 29884as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 29885 29886# Sed expression to map a string onto a valid variable name. 29887as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 29888 29889 29890exec 6>&1 29891## ----------------------------------- ## 29892## Main body of $CONFIG_STATUS script. ## 29893## ----------------------------------- ## 29894_ASEOF 29895test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 29896 29897cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 29898# Save the log message, to keep $0 and so on meaningful, and to 29899# report actual input values of CONFIG_FILES etc. instead of their 29900# values after options handling. 29901ac_log=" 29902This file was extended by GNU MP $as_me 5.0.5, which was 29903generated by GNU Autoconf 2.65. Invocation command line was 29904 29905 CONFIG_FILES = $CONFIG_FILES 29906 CONFIG_HEADERS = $CONFIG_HEADERS 29907 CONFIG_LINKS = $CONFIG_LINKS 29908 CONFIG_COMMANDS = $CONFIG_COMMANDS 29909 $ $0 $@ 29910 29911on `(hostname || uname -n) 2>/dev/null | sed 1q` 29912" 29913 29914_ACEOF 29915 29916case $ac_config_files in *" 29917"*) set x $ac_config_files; shift; ac_config_files=$*;; 29918esac 29919 29920case $ac_config_headers in *" 29921"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 29922esac 29923 29924 29925cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 29926# Files that config.status was made for. 29927config_files="$ac_config_files" 29928config_headers="$ac_config_headers" 29929config_links="$ac_config_links" 29930config_commands="$ac_config_commands" 29931 29932_ACEOF 29933 29934cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 29935ac_cs_usage="\ 29936\`$as_me' instantiates files and other configuration actions 29937from templates according to the current configuration. Unless the files 29938and actions are specified as TAGs, all are instantiated by default. 29939 29940Usage: $0 [OPTION]... [TAG]... 29941 29942 -h, --help print this help, then exit 29943 -V, --version print version number and configuration settings, then exit 29944 --config print configuration, then exit 29945 -q, --quiet, --silent 29946 do not print progress messages 29947 -d, --debug don't remove temporary files 29948 --recheck update $as_me by reconfiguring in the same conditions 29949 --file=FILE[:TEMPLATE] 29950 instantiate the configuration file FILE 29951 --header=FILE[:TEMPLATE] 29952 instantiate the configuration header FILE 29953 29954Configuration files: 29955$config_files 29956 29957Configuration headers: 29958$config_headers 29959 29960Configuration links: 29961$config_links 29962 29963Configuration commands: 29964$config_commands 29965 29966Report bugs to <gmp-bugs@gmplib.org, see http://gmplib.org/manual/Reporting-Bugs.html>. 29967GNU MP home page: <http://www.gnu.org/software/gmp/>. 29968General help using GNU software: <http://www.gnu.org/gethelp/>." 29969 29970_ACEOF 29971cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 29972ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 29973ac_cs_version="\\ 29974GNU MP config.status 5.0.5 29975configured by $0, generated by GNU Autoconf 2.65, 29976 with options \\"\$ac_cs_config\\" 29977 29978Copyright (C) 2009 Free Software Foundation, Inc. 29979This config.status script is free software; the Free Software Foundation 29980gives unlimited permission to copy, distribute and modify it." 29981 29982ac_pwd='$ac_pwd' 29983srcdir='$srcdir' 29984INSTALL='$INSTALL' 29985MKDIR_P='$MKDIR_P' 29986AWK='$AWK' 29987test -n "\$AWK" || AWK=awk 29988_ACEOF 29989 29990cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 29991# The default lists apply if the user does not specify any file. 29992ac_need_defaults=: 29993while test $# != 0 29994do 29995 case $1 in 29996 --*=*) 29997 ac_option=`expr "X$1" : 'X\([^=]*\)='` 29998 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 29999 ac_shift=: 30000 ;; 30001 *) 30002 ac_option=$1 30003 ac_optarg=$2 30004 ac_shift=shift 30005 ;; 30006 esac 30007 30008 case $ac_option in 30009 # Handling of the options. 30010 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 30011 ac_cs_recheck=: ;; 30012 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 30013 $as_echo "$ac_cs_version"; exit ;; 30014 --config | --confi | --conf | --con | --co | --c ) 30015 $as_echo "$ac_cs_config"; exit ;; 30016 --debug | --debu | --deb | --de | --d | -d ) 30017 debug=: ;; 30018 --file | --fil | --fi | --f ) 30019 $ac_shift 30020 case $ac_optarg in 30021 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 30022 esac 30023 as_fn_append CONFIG_FILES " '$ac_optarg'" 30024 ac_need_defaults=false;; 30025 --header | --heade | --head | --hea ) 30026 $ac_shift 30027 case $ac_optarg in 30028 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 30029 esac 30030 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 30031 ac_need_defaults=false;; 30032 --he | --h) 30033 # Conflict between --help and --header 30034 as_fn_error "ambiguous option: \`$1' 30035Try \`$0 --help' for more information.";; 30036 --help | --hel | -h ) 30037 $as_echo "$ac_cs_usage"; exit ;; 30038 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 30039 | -silent | --silent | --silen | --sile | --sil | --si | --s) 30040 ac_cs_silent=: ;; 30041 30042 # This is an error. 30043 -*) as_fn_error "unrecognized option: \`$1' 30044Try \`$0 --help' for more information." ;; 30045 30046 *) as_fn_append ac_config_targets " $1" 30047 ac_need_defaults=false ;; 30048 30049 esac 30050 shift 30051done 30052 30053ac_configure_extra_args= 30054 30055if $ac_cs_silent; then 30056 exec 6>/dev/null 30057 ac_configure_extra_args="$ac_configure_extra_args --silent" 30058fi 30059 30060_ACEOF 30061cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 30062if \$ac_cs_recheck; then 30063 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 30064 shift 30065 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 30066 CONFIG_SHELL='$SHELL' 30067 export CONFIG_SHELL 30068 exec "\$@" 30069fi 30070 30071_ACEOF 30072cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 30073exec 5>>config.log 30074{ 30075 echo 30076 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 30077## Running $as_me. ## 30078_ASBOX 30079 $as_echo "$ac_log" 30080} >&5 30081 30082_ACEOF 30083cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 30084# 30085# INIT-COMMANDS 30086# 30087 30088 30089# The HP-UX ksh and POSIX shell print the target directory to stdout 30090# if CDPATH is set. 30091(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 30092 30093sed_quote_subst='$sed_quote_subst' 30094double_quote_subst='$double_quote_subst' 30095delay_variable_subst='$delay_variable_subst' 30096NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 30097AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 30098DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 30099OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 30100macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 30101macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 30102enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 30103enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 30104pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 30105enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 30106SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 30107ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 30108PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 30109host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 30110host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 30111host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 30112build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 30113build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 30114build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 30115SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 30116Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 30117GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 30118EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 30119FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 30120LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 30121LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 30122max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 30123ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 30124exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 30125lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 30126lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 30127lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 30128lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 30129lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 30130reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 30131reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 30132deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 30133file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 30134file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 30135want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 30136sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 30137AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 30138AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 30139archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 30140STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 30141RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 30142old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 30143old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 30144old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 30145lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 30146CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 30147CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 30148compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 30149GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 30150lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 30151lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 30152lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 30153lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' 30154nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 30155lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 30156objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 30157MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 30158lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 30159lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 30160lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 30161lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 30162lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 30163need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 30164MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 30165DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 30166NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 30167LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 30168OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 30169OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 30170libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 30171shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 30172extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 30173archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 30174enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 30175export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 30176whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 30177compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 30178old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 30179old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 30180archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 30181archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 30182module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 30183module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 30184with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 30185allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 30186no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 30187hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 30188hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 30189hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 30190hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 30191hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 30192hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 30193hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 30194inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 30195link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 30196always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 30197export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 30198exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 30199include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 30200prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 30201postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 30202file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 30203variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 30204need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 30205need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 30206version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 30207runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 30208shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 30209shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 30210libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 30211library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 30212soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 30213install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 30214postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 30215postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 30216finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 30217finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 30218hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 30219sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 30220sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 30221hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 30222enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 30223enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 30224enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 30225old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 30226striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 30227compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 30228predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 30229postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 30230predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 30231postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 30232compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 30233LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 30234LD_F77='`$ECHO "$LD_F77" | $SED "$delay_single_quote_subst"`' 30235reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 30236reload_flag_F77='`$ECHO "$reload_flag_F77" | $SED "$delay_single_quote_subst"`' 30237reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 30238reload_cmds_F77='`$ECHO "$reload_cmds_F77" | $SED "$delay_single_quote_subst"`' 30239old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 30240old_archive_cmds_F77='`$ECHO "$old_archive_cmds_F77" | $SED "$delay_single_quote_subst"`' 30241compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 30242compiler_F77='`$ECHO "$compiler_F77" | $SED "$delay_single_quote_subst"`' 30243GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 30244GCC_F77='`$ECHO "$GCC_F77" | $SED "$delay_single_quote_subst"`' 30245lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 30246lt_prog_compiler_no_builtin_flag_F77='`$ECHO "$lt_prog_compiler_no_builtin_flag_F77" | $SED "$delay_single_quote_subst"`' 30247lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 30248lt_prog_compiler_pic_F77='`$ECHO "$lt_prog_compiler_pic_F77" | $SED "$delay_single_quote_subst"`' 30249lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 30250lt_prog_compiler_wl_F77='`$ECHO "$lt_prog_compiler_wl_F77" | $SED "$delay_single_quote_subst"`' 30251lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 30252lt_prog_compiler_static_F77='`$ECHO "$lt_prog_compiler_static_F77" | $SED "$delay_single_quote_subst"`' 30253lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 30254lt_cv_prog_compiler_c_o_F77='`$ECHO "$lt_cv_prog_compiler_c_o_F77" | $SED "$delay_single_quote_subst"`' 30255archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 30256archive_cmds_need_lc_F77='`$ECHO "$archive_cmds_need_lc_F77" | $SED "$delay_single_quote_subst"`' 30257enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 30258enable_shared_with_static_runtimes_F77='`$ECHO "$enable_shared_with_static_runtimes_F77" | $SED "$delay_single_quote_subst"`' 30259export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 30260export_dynamic_flag_spec_F77='`$ECHO "$export_dynamic_flag_spec_F77" | $SED "$delay_single_quote_subst"`' 30261whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 30262whole_archive_flag_spec_F77='`$ECHO "$whole_archive_flag_spec_F77" | $SED "$delay_single_quote_subst"`' 30263compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 30264compiler_needs_object_F77='`$ECHO "$compiler_needs_object_F77" | $SED "$delay_single_quote_subst"`' 30265old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 30266old_archive_from_new_cmds_F77='`$ECHO "$old_archive_from_new_cmds_F77" | $SED "$delay_single_quote_subst"`' 30267old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 30268old_archive_from_expsyms_cmds_F77='`$ECHO "$old_archive_from_expsyms_cmds_F77" | $SED "$delay_single_quote_subst"`' 30269archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 30270archive_cmds_F77='`$ECHO "$archive_cmds_F77" | $SED "$delay_single_quote_subst"`' 30271archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 30272archive_expsym_cmds_F77='`$ECHO "$archive_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`' 30273module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 30274module_cmds_F77='`$ECHO "$module_cmds_F77" | $SED "$delay_single_quote_subst"`' 30275module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 30276module_expsym_cmds_F77='`$ECHO "$module_expsym_cmds_F77" | $SED "$delay_single_quote_subst"`' 30277with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 30278with_gnu_ld_F77='`$ECHO "$with_gnu_ld_F77" | $SED "$delay_single_quote_subst"`' 30279allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 30280allow_undefined_flag_F77='`$ECHO "$allow_undefined_flag_F77" | $SED "$delay_single_quote_subst"`' 30281no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 30282no_undefined_flag_F77='`$ECHO "$no_undefined_flag_F77" | $SED "$delay_single_quote_subst"`' 30283hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 30284hardcode_libdir_flag_spec_F77='`$ECHO "$hardcode_libdir_flag_spec_F77" | $SED "$delay_single_quote_subst"`' 30285hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 30286hardcode_libdir_separator_F77='`$ECHO "$hardcode_libdir_separator_F77" | $SED "$delay_single_quote_subst"`' 30287hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 30288hardcode_direct_F77='`$ECHO "$hardcode_direct_F77" | $SED "$delay_single_quote_subst"`' 30289hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 30290hardcode_direct_absolute_F77='`$ECHO "$hardcode_direct_absolute_F77" | $SED "$delay_single_quote_subst"`' 30291hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 30292hardcode_minus_L_F77='`$ECHO "$hardcode_minus_L_F77" | $SED "$delay_single_quote_subst"`' 30293hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 30294hardcode_shlibpath_var_F77='`$ECHO "$hardcode_shlibpath_var_F77" | $SED "$delay_single_quote_subst"`' 30295hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 30296hardcode_automatic_F77='`$ECHO "$hardcode_automatic_F77" | $SED "$delay_single_quote_subst"`' 30297inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 30298inherit_rpath_F77='`$ECHO "$inherit_rpath_F77" | $SED "$delay_single_quote_subst"`' 30299link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 30300link_all_deplibs_F77='`$ECHO "$link_all_deplibs_F77" | $SED "$delay_single_quote_subst"`' 30301always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 30302always_export_symbols_F77='`$ECHO "$always_export_symbols_F77" | $SED "$delay_single_quote_subst"`' 30303export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 30304export_symbols_cmds_F77='`$ECHO "$export_symbols_cmds_F77" | $SED "$delay_single_quote_subst"`' 30305exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 30306exclude_expsyms_F77='`$ECHO "$exclude_expsyms_F77" | $SED "$delay_single_quote_subst"`' 30307include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 30308include_expsyms_F77='`$ECHO "$include_expsyms_F77" | $SED "$delay_single_quote_subst"`' 30309prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 30310prelink_cmds_F77='`$ECHO "$prelink_cmds_F77" | $SED "$delay_single_quote_subst"`' 30311postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 30312postlink_cmds_F77='`$ECHO "$postlink_cmds_F77" | $SED "$delay_single_quote_subst"`' 30313file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 30314file_list_spec_F77='`$ECHO "$file_list_spec_F77" | $SED "$delay_single_quote_subst"`' 30315hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 30316hardcode_action_F77='`$ECHO "$hardcode_action_F77" | $SED "$delay_single_quote_subst"`' 30317compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 30318compiler_lib_search_dirs_F77='`$ECHO "$compiler_lib_search_dirs_F77" | $SED "$delay_single_quote_subst"`' 30319predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 30320predep_objects_F77='`$ECHO "$predep_objects_F77" | $SED "$delay_single_quote_subst"`' 30321postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 30322postdep_objects_F77='`$ECHO "$postdep_objects_F77" | $SED "$delay_single_quote_subst"`' 30323predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 30324predeps_F77='`$ECHO "$predeps_F77" | $SED "$delay_single_quote_subst"`' 30325postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 30326postdeps_F77='`$ECHO "$postdeps_F77" | $SED "$delay_single_quote_subst"`' 30327compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 30328compiler_lib_search_path_F77='`$ECHO "$compiler_lib_search_path_F77" | $SED "$delay_single_quote_subst"`' 30329 30330LTCC='$LTCC' 30331LTCFLAGS='$LTCFLAGS' 30332compiler='$compiler_DEFAULT' 30333 30334# A function that is used when there is no print builtin or printf. 30335func_fallback_echo () 30336{ 30337 eval 'cat <<_LTECHO_EOF 30338\$1 30339_LTECHO_EOF' 30340} 30341 30342# Quote evaled strings. 30343for var in NM \ 30344AS \ 30345DLLTOOL \ 30346OBJDUMP \ 30347SHELL \ 30348ECHO \ 30349PATH_SEPARATOR \ 30350SED \ 30351GREP \ 30352EGREP \ 30353FGREP \ 30354LD \ 30355LN_S \ 30356lt_SP2NL \ 30357lt_NL2SP \ 30358reload_flag \ 30359deplibs_check_method \ 30360file_magic_cmd \ 30361file_magic_glob \ 30362want_nocaseglob \ 30363sharedlib_from_linklib_cmd \ 30364AR \ 30365AR_FLAGS \ 30366archiver_list_spec \ 30367STRIP \ 30368RANLIB \ 30369CC \ 30370CFLAGS \ 30371compiler \ 30372lt_cv_sys_global_symbol_pipe \ 30373lt_cv_sys_global_symbol_to_cdecl \ 30374lt_cv_sys_global_symbol_to_c_name_address \ 30375lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 30376nm_file_list_spec \ 30377lt_prog_compiler_no_builtin_flag \ 30378lt_prog_compiler_pic \ 30379lt_prog_compiler_wl \ 30380lt_prog_compiler_static \ 30381lt_cv_prog_compiler_c_o \ 30382need_locks \ 30383MANIFEST_TOOL \ 30384DSYMUTIL \ 30385NMEDIT \ 30386LIPO \ 30387OTOOL \ 30388OTOOL64 \ 30389shrext_cmds \ 30390export_dynamic_flag_spec \ 30391whole_archive_flag_spec \ 30392compiler_needs_object \ 30393with_gnu_ld \ 30394allow_undefined_flag \ 30395no_undefined_flag \ 30396hardcode_libdir_flag_spec \ 30397hardcode_libdir_separator \ 30398exclude_expsyms \ 30399include_expsyms \ 30400file_list_spec \ 30401variables_saved_for_relink \ 30402libname_spec \ 30403library_names_spec \ 30404soname_spec \ 30405install_override_mode \ 30406finish_eval \ 30407old_striplib \ 30408striplib \ 30409compiler_lib_search_dirs \ 30410predep_objects \ 30411postdep_objects \ 30412predeps \ 30413postdeps \ 30414compiler_lib_search_path \ 30415LD_CXX \ 30416LD_F77 \ 30417reload_flag_CXX \ 30418reload_flag_F77 \ 30419compiler_CXX \ 30420compiler_F77 \ 30421lt_prog_compiler_no_builtin_flag_CXX \ 30422lt_prog_compiler_no_builtin_flag_F77 \ 30423lt_prog_compiler_pic_CXX \ 30424lt_prog_compiler_pic_F77 \ 30425lt_prog_compiler_wl_CXX \ 30426lt_prog_compiler_wl_F77 \ 30427lt_prog_compiler_static_CXX \ 30428lt_prog_compiler_static_F77 \ 30429lt_cv_prog_compiler_c_o_CXX \ 30430lt_cv_prog_compiler_c_o_F77 \ 30431export_dynamic_flag_spec_CXX \ 30432export_dynamic_flag_spec_F77 \ 30433whole_archive_flag_spec_CXX \ 30434whole_archive_flag_spec_F77 \ 30435compiler_needs_object_CXX \ 30436compiler_needs_object_F77 \ 30437with_gnu_ld_CXX \ 30438with_gnu_ld_F77 \ 30439allow_undefined_flag_CXX \ 30440allow_undefined_flag_F77 \ 30441no_undefined_flag_CXX \ 30442no_undefined_flag_F77 \ 30443hardcode_libdir_flag_spec_CXX \ 30444hardcode_libdir_flag_spec_F77 \ 30445hardcode_libdir_separator_CXX \ 30446hardcode_libdir_separator_F77 \ 30447exclude_expsyms_CXX \ 30448exclude_expsyms_F77 \ 30449include_expsyms_CXX \ 30450include_expsyms_F77 \ 30451file_list_spec_CXX \ 30452file_list_spec_F77 \ 30453compiler_lib_search_dirs_CXX \ 30454compiler_lib_search_dirs_F77 \ 30455predep_objects_CXX \ 30456predep_objects_F77 \ 30457postdep_objects_CXX \ 30458postdep_objects_F77 \ 30459predeps_CXX \ 30460predeps_F77 \ 30461postdeps_CXX \ 30462postdeps_F77 \ 30463compiler_lib_search_path_CXX \ 30464compiler_lib_search_path_F77; do 30465 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 30466 *[\\\\\\\`\\"\\\$]*) 30467 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 30468 ;; 30469 *) 30470 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 30471 ;; 30472 esac 30473done 30474 30475# Double-quote double-evaled strings. 30476for var in reload_cmds \ 30477old_postinstall_cmds \ 30478old_postuninstall_cmds \ 30479old_archive_cmds \ 30480extract_expsyms_cmds \ 30481old_archive_from_new_cmds \ 30482old_archive_from_expsyms_cmds \ 30483archive_cmds \ 30484archive_expsym_cmds \ 30485module_cmds \ 30486module_expsym_cmds \ 30487export_symbols_cmds \ 30488prelink_cmds \ 30489postlink_cmds \ 30490postinstall_cmds \ 30491postuninstall_cmds \ 30492finish_cmds \ 30493sys_lib_search_path_spec \ 30494sys_lib_dlsearch_path_spec \ 30495reload_cmds_CXX \ 30496reload_cmds_F77 \ 30497old_archive_cmds_CXX \ 30498old_archive_cmds_F77 \ 30499old_archive_from_new_cmds_CXX \ 30500old_archive_from_new_cmds_F77 \ 30501old_archive_from_expsyms_cmds_CXX \ 30502old_archive_from_expsyms_cmds_F77 \ 30503archive_cmds_CXX \ 30504archive_cmds_F77 \ 30505archive_expsym_cmds_CXX \ 30506archive_expsym_cmds_F77 \ 30507module_cmds_CXX \ 30508module_cmds_F77 \ 30509module_expsym_cmds_CXX \ 30510module_expsym_cmds_F77 \ 30511export_symbols_cmds_CXX \ 30512export_symbols_cmds_F77 \ 30513prelink_cmds_CXX \ 30514prelink_cmds_F77 \ 30515postlink_cmds_CXX \ 30516postlink_cmds_F77; do 30517 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 30518 *[\\\\\\\`\\"\\\$]*) 30519 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 30520 ;; 30521 *) 30522 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 30523 ;; 30524 esac 30525done 30526 30527ac_aux_dir='$ac_aux_dir' 30528xsi_shell='$xsi_shell' 30529lt_shell_append='$lt_shell_append' 30530 30531# See if we are running on zsh, and set the options which allow our 30532# commands through without removal of \ escapes INIT. 30533if test -n "\${ZSH_VERSION+set}" ; then 30534 setopt NO_GLOB_SUBST 30535fi 30536 30537 30538 PACKAGE='$PACKAGE' 30539 VERSION='$VERSION' 30540 TIMESTAMP='$TIMESTAMP' 30541 RM='$RM' 30542 ofile='$ofile' 30543 30544 30545 30546 30547 30548 30549 30550 30551_ACEOF 30552 30553cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 30554 30555# Handling of arguments. 30556for ac_config_target in $ac_config_targets 30557do 30558 case $ac_config_target in 30559 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; 30560 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 30561 "mpn/$tmp_fn.$tmp_ext") CONFIG_LINKS="$CONFIG_LINKS mpn/$tmp_fn.$tmp_ext:mpn/$tmp_dir/$tmp_base.$tmp_ext" ;; 30562 "gmp-mparam.h") CONFIG_LINKS="$CONFIG_LINKS gmp-mparam.h:mpn/$gmp_mparam_dir/gmp-mparam.h" ;; 30563 "demos/pexpr-config.h") CONFIG_FILES="$CONFIG_FILES demos/pexpr-config.h:demos/pexpr-config-h.in" ;; 30564 "demos/calc/calc-config.h") CONFIG_FILES="$CONFIG_FILES demos/calc/calc-config.h:demos/calc/calc-config-h.in" ;; 30565 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 30566 "mpbsd/Makefile") CONFIG_FILES="$CONFIG_FILES mpbsd/Makefile" ;; 30567 "mpf/Makefile") CONFIG_FILES="$CONFIG_FILES mpf/Makefile" ;; 30568 "mpn/Makefile") CONFIG_FILES="$CONFIG_FILES mpn/Makefile" ;; 30569 "mpq/Makefile") CONFIG_FILES="$CONFIG_FILES mpq/Makefile" ;; 30570 "mpz/Makefile") CONFIG_FILES="$CONFIG_FILES mpz/Makefile" ;; 30571 "printf/Makefile") CONFIG_FILES="$CONFIG_FILES printf/Makefile" ;; 30572 "scanf/Makefile") CONFIG_FILES="$CONFIG_FILES scanf/Makefile" ;; 30573 "cxx/Makefile") CONFIG_FILES="$CONFIG_FILES cxx/Makefile" ;; 30574 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 30575 "tests/devel/Makefile") CONFIG_FILES="$CONFIG_FILES tests/devel/Makefile" ;; 30576 "tests/mpbsd/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mpbsd/Makefile" ;; 30577 "tests/mpf/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mpf/Makefile" ;; 30578 "tests/mpn/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mpn/Makefile" ;; 30579 "tests/mpq/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mpq/Makefile" ;; 30580 "tests/mpz/Makefile") CONFIG_FILES="$CONFIG_FILES tests/mpz/Makefile" ;; 30581 "tests/rand/Makefile") CONFIG_FILES="$CONFIG_FILES tests/rand/Makefile" ;; 30582 "tests/misc/Makefile") CONFIG_FILES="$CONFIG_FILES tests/misc/Makefile" ;; 30583 "tests/cxx/Makefile") CONFIG_FILES="$CONFIG_FILES tests/cxx/Makefile" ;; 30584 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 30585 "tune/Makefile") CONFIG_FILES="$CONFIG_FILES tune/Makefile" ;; 30586 "demos/Makefile") CONFIG_FILES="$CONFIG_FILES demos/Makefile" ;; 30587 "demos/calc/Makefile") CONFIG_FILES="$CONFIG_FILES demos/calc/Makefile" ;; 30588 "demos/expr/Makefile") CONFIG_FILES="$CONFIG_FILES demos/expr/Makefile" ;; 30589 "gmp.h") CONFIG_FILES="$CONFIG_FILES gmp.h:gmp-h.in" ;; 30590 "mp.h") CONFIG_FILES="$CONFIG_FILES mp.h:mp-h.in" ;; 30591 30592 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 30593 esac 30594done 30595 30596 30597# If the user did not use the arguments to specify the items to instantiate, 30598# then the envvar interface is used. Set only those that are not. 30599# We use the long form for the default assignment because of an extremely 30600# bizarre bug on SunOS 4.1.3. 30601if $ac_need_defaults; then 30602 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 30603 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 30604 test "${CONFIG_LINKS+set}" = set || CONFIG_LINKS=$config_links 30605 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 30606fi 30607 30608# Have a temporary directory for convenience. Make it in the build tree 30609# simply because there is no reason against having it here, and in addition, 30610# creating and moving files from /tmp can sometimes cause problems. 30611# Hook for its removal unless debugging. 30612# Note that there is a small window in which the directory will not be cleaned: 30613# after its creation but before its name has been assigned to `$tmp'. 30614$debug || 30615{ 30616 tmp= 30617 trap 'exit_status=$? 30618 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 30619' 0 30620 trap 'as_fn_exit 1' 1 2 13 15 30621} 30622# Create a (secure) tmp directory for tmp files. 30623 30624{ 30625 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 30626 test -n "$tmp" && test -d "$tmp" 30627} || 30628{ 30629 tmp=./conf$$-$RANDOM 30630 (umask 077 && mkdir "$tmp") 30631} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 30632 30633# Set up the scripts for CONFIG_FILES section. 30634# No need to generate them if there are no CONFIG_FILES. 30635# This happens for instance with `./config.status config.h'. 30636if test -n "$CONFIG_FILES"; then 30637 30638 30639ac_cr=`echo X | tr X '\015'` 30640# On cygwin, bash can eat \r inside `` if the user requested igncr. 30641# But we know of no other shell where ac_cr would be empty at this 30642# point, so we can use a bashism as a fallback. 30643if test "x$ac_cr" = x; then 30644 eval ac_cr=\$\'\\r\' 30645fi 30646ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 30647if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 30648 ac_cs_awk_cr='\r' 30649else 30650 ac_cs_awk_cr=$ac_cr 30651fi 30652 30653echo 'BEGIN {' >"$tmp/subs1.awk" && 30654_ACEOF 30655 30656 30657{ 30658 echo "cat >conf$$subs.awk <<_ACEOF" && 30659 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 30660 echo "_ACEOF" 30661} >conf$$subs.sh || 30662 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 30663ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 30664ac_delim='%!_!# ' 30665for ac_last_try in false false false false false :; do 30666 . ./conf$$subs.sh || 30667 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 30668 30669 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 30670 if test $ac_delim_n = $ac_delim_num; then 30671 break 30672 elif $ac_last_try; then 30673 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 30674 else 30675 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 30676 fi 30677done 30678rm -f conf$$subs.sh 30679 30680cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 30681cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 30682_ACEOF 30683sed -n ' 30684h 30685s/^/S["/; s/!.*/"]=/ 30686p 30687g 30688s/^[^!]*!// 30689:repl 30690t repl 30691s/'"$ac_delim"'$// 30692t delim 30693:nl 30694h 30695s/\(.\{148\}\)..*/\1/ 30696t more1 30697s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 30698p 30699n 30700b repl 30701:more1 30702s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 30703p 30704g 30705s/.\{148\}// 30706t nl 30707:delim 30708h 30709s/\(.\{148\}\)..*/\1/ 30710t more2 30711s/["\\]/\\&/g; s/^/"/; s/$/"/ 30712p 30713b 30714:more2 30715s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 30716p 30717g 30718s/.\{148\}// 30719t delim 30720' <conf$$subs.awk | sed ' 30721/^[^""]/{ 30722 N 30723 s/\n// 30724} 30725' >>$CONFIG_STATUS || ac_write_fail=1 30726rm -f conf$$subs.awk 30727cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 30728_ACAWK 30729cat >>"\$tmp/subs1.awk" <<_ACAWK && 30730 for (key in S) S_is_set[key] = 1 30731 FS = "" 30732 30733} 30734{ 30735 line = $ 0 30736 nfields = split(line, field, "@") 30737 substed = 0 30738 len = length(field[1]) 30739 for (i = 2; i < nfields; i++) { 30740 key = field[i] 30741 keylen = length(key) 30742 if (S_is_set[key]) { 30743 value = S[key] 30744 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 30745 len += length(value) + length(field[++i]) 30746 substed = 1 30747 } else 30748 len += 1 + keylen 30749 } 30750 30751 print line 30752} 30753 30754_ACAWK 30755_ACEOF 30756cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 30757if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 30758 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 30759else 30760 cat 30761fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 30762 || as_fn_error "could not setup config files machinery" "$LINENO" 5 30763_ACEOF 30764 30765# VPATH may cause trouble with some makes, so we remove $(srcdir), 30766# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 30767# trailing colons and then remove the whole line if VPATH becomes empty 30768# (actually we leave an empty line to preserve line numbers). 30769if test "x$srcdir" = x.; then 30770 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 30771s/:*\$(srcdir):*/:/ 30772s/:*\${srcdir}:*/:/ 30773s/:*@srcdir@:*/:/ 30774s/^\([^=]*=[ ]*\):*/\1/ 30775s/:*$// 30776s/^[^=]*=[ ]*$// 30777}' 30778fi 30779 30780cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 30781fi # test -n "$CONFIG_FILES" 30782 30783# Set up the scripts for CONFIG_HEADERS section. 30784# No need to generate them if there are no CONFIG_HEADERS. 30785# This happens for instance with `./config.status Makefile'. 30786if test -n "$CONFIG_HEADERS"; then 30787cat >"$tmp/defines.awk" <<\_ACAWK || 30788BEGIN { 30789_ACEOF 30790 30791# Transform confdefs.h into an awk script `defines.awk', embedded as 30792# here-document in config.status, that substitutes the proper values into 30793# config.h.in to produce config.h. 30794 30795# Create a delimiter string that does not exist in confdefs.h, to ease 30796# handling of long lines. 30797ac_delim='%!_!# ' 30798for ac_last_try in false false :; do 30799 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 30800 if test -z "$ac_t"; then 30801 break 30802 elif $ac_last_try; then 30803 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 30804 else 30805 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 30806 fi 30807done 30808 30809# For the awk script, D is an array of macro values keyed by name, 30810# likewise P contains macro parameters if any. Preserve backslash 30811# newline sequences. 30812 30813ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 30814sed -n ' 30815s/.\{148\}/&'"$ac_delim"'/g 30816t rset 30817:rset 30818s/^[ ]*#[ ]*define[ ][ ]*/ / 30819t def 30820d 30821:def 30822s/\\$// 30823t bsnl 30824s/["\\]/\\&/g 30825s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 30826D["\1"]=" \3"/p 30827s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 30828d 30829:bsnl 30830s/["\\]/\\&/g 30831s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 30832D["\1"]=" \3\\\\\\n"\\/p 30833t cont 30834s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 30835t cont 30836d 30837:cont 30838n 30839s/.\{148\}/&'"$ac_delim"'/g 30840t clear 30841:clear 30842s/\\$// 30843t bsnlc 30844s/["\\]/\\&/g; s/^/"/; s/$/"/p 30845d 30846:bsnlc 30847s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 30848b cont 30849' <confdefs.h | sed ' 30850s/'"$ac_delim"'/"\\\ 30851"/g' >>$CONFIG_STATUS || ac_write_fail=1 30852 30853cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 30854 for (key in D) D_is_set[key] = 1 30855 FS = "" 30856} 30857/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 30858 line = \$ 0 30859 split(line, arg, " ") 30860 if (arg[1] == "#") { 30861 defundef = arg[2] 30862 mac1 = arg[3] 30863 } else { 30864 defundef = substr(arg[1], 2) 30865 mac1 = arg[2] 30866 } 30867 split(mac1, mac2, "(") #) 30868 macro = mac2[1] 30869 prefix = substr(line, 1, index(line, defundef) - 1) 30870 if (D_is_set[macro]) { 30871 # Preserve the white space surrounding the "#". 30872 print prefix "define", macro P[macro] D[macro] 30873 next 30874 } else { 30875 # Replace #undef with comments. This is necessary, for example, 30876 # in the case of _POSIX_SOURCE, which is predefined and required 30877 # on some systems where configure will not decide to define it. 30878 if (defundef == "undef") { 30879 print "/*", prefix defundef, macro, "*/" 30880 next 30881 } 30882 } 30883} 30884{ print } 30885_ACAWK 30886_ACEOF 30887cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 30888 as_fn_error "could not setup config headers machinery" "$LINENO" 5 30889fi # test -n "$CONFIG_HEADERS" 30890 30891 30892eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :L $CONFIG_LINKS :C $CONFIG_COMMANDS" 30893shift 30894for ac_tag 30895do 30896 case $ac_tag in 30897 :[FHLC]) ac_mode=$ac_tag; continue;; 30898 esac 30899 case $ac_mode$ac_tag in 30900 :[FHL]*:*);; 30901 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 30902 :[FH]-) ac_tag=-:-;; 30903 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 30904 esac 30905 ac_save_IFS=$IFS 30906 IFS=: 30907 set x $ac_tag 30908 IFS=$ac_save_IFS 30909 shift 30910 ac_file=$1 30911 shift 30912 30913 case $ac_mode in 30914 :L) ac_source=$1;; 30915 :[FH]) 30916 ac_file_inputs= 30917 for ac_f 30918 do 30919 case $ac_f in 30920 -) ac_f="$tmp/stdin";; 30921 *) # Look for the file first in the build tree, then in the source tree 30922 # (if the path is not absolute). The absolute path cannot be DOS-style, 30923 # because $ac_f cannot contain `:'. 30924 test -f "$ac_f" || 30925 case $ac_f in 30926 [\\/$]*) false;; 30927 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 30928 esac || 30929 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 30930 esac 30931 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 30932 as_fn_append ac_file_inputs " '$ac_f'" 30933 done 30934 30935 # Let's still pretend it is `configure' which instantiates (i.e., don't 30936 # use $as_me), people would be surprised to read: 30937 # /* config.h. Generated by config.status. */ 30938 configure_input='Generated from '` 30939 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 30940 `' by configure.' 30941 if test x"$ac_file" != x-; then 30942 configure_input="$ac_file. $configure_input" 30943 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 30944$as_echo "$as_me: creating $ac_file" >&6;} 30945 fi 30946 # Neutralize special characters interpreted by sed in replacement strings. 30947 case $configure_input in #( 30948 *\&* | *\|* | *\\* ) 30949 ac_sed_conf_input=`$as_echo "$configure_input" | 30950 sed 's/[\\\\&|]/\\\\&/g'`;; #( 30951 *) ac_sed_conf_input=$configure_input;; 30952 esac 30953 30954 case $ac_tag in 30955 *:-:* | *:-) cat >"$tmp/stdin" \ 30956 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 30957 esac 30958 ;; 30959 esac 30960 30961 ac_dir=`$as_dirname -- "$ac_file" || 30962$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 30963 X"$ac_file" : 'X\(//\)[^/]' \| \ 30964 X"$ac_file" : 'X\(//\)$' \| \ 30965 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 30966$as_echo X"$ac_file" | 30967 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 30968 s//\1/ 30969 q 30970 } 30971 /^X\(\/\/\)[^/].*/{ 30972 s//\1/ 30973 q 30974 } 30975 /^X\(\/\/\)$/{ 30976 s//\1/ 30977 q 30978 } 30979 /^X\(\/\).*/{ 30980 s//\1/ 30981 q 30982 } 30983 s/.*/./; q'` 30984 as_dir="$ac_dir"; as_fn_mkdir_p 30985 ac_builddir=. 30986 30987case "$ac_dir" in 30988.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 30989*) 30990 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 30991 # A ".." for each directory in $ac_dir_suffix. 30992 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 30993 case $ac_top_builddir_sub in 30994 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 30995 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 30996 esac ;; 30997esac 30998ac_abs_top_builddir=$ac_pwd 30999ac_abs_builddir=$ac_pwd$ac_dir_suffix 31000# for backward compatibility: 31001ac_top_builddir=$ac_top_build_prefix 31002 31003case $srcdir in 31004 .) # We are building in place. 31005 ac_srcdir=. 31006 ac_top_srcdir=$ac_top_builddir_sub 31007 ac_abs_top_srcdir=$ac_pwd ;; 31008 [\\/]* | ?:[\\/]* ) # Absolute name. 31009 ac_srcdir=$srcdir$ac_dir_suffix; 31010 ac_top_srcdir=$srcdir 31011 ac_abs_top_srcdir=$srcdir ;; 31012 *) # Relative name. 31013 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 31014 ac_top_srcdir=$ac_top_build_prefix$srcdir 31015 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 31016esac 31017ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 31018 31019 31020 case $ac_mode in 31021 :F) 31022 # 31023 # CONFIG_FILE 31024 # 31025 31026 case $INSTALL in 31027 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 31028 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 31029 esac 31030 ac_MKDIR_P=$MKDIR_P 31031 case $MKDIR_P in 31032 [\\/$]* | ?:[\\/]* ) ;; 31033 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 31034 esac 31035_ACEOF 31036 31037cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 31038# If the template does not know about datarootdir, expand it. 31039# FIXME: This hack should be removed a few years after 2.60. 31040ac_datarootdir_hack=; ac_datarootdir_seen= 31041ac_sed_dataroot=' 31042/datarootdir/ { 31043 p 31044 q 31045} 31046/@datadir@/p 31047/@docdir@/p 31048/@infodir@/p 31049/@localedir@/p 31050/@mandir@/p' 31051case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 31052*datarootdir*) ac_datarootdir_seen=yes;; 31053*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 31054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 31055$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 31056_ACEOF 31057cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 31058 ac_datarootdir_hack=' 31059 s&@datadir@&$datadir&g 31060 s&@docdir@&$docdir&g 31061 s&@infodir@&$infodir&g 31062 s&@localedir@&$localedir&g 31063 s&@mandir@&$mandir&g 31064 s&\\\${datarootdir}&$datarootdir&g' ;; 31065esac 31066_ACEOF 31067 31068# Neutralize VPATH when `$srcdir' = `.'. 31069# Shell code in configure.ac might set extrasub. 31070# FIXME: do we really want to maintain this feature? 31071cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 31072ac_sed_extra="$ac_vpsub 31073$extrasub 31074_ACEOF 31075cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 31076:t 31077/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 31078s|@configure_input@|$ac_sed_conf_input|;t t 31079s&@top_builddir@&$ac_top_builddir_sub&;t t 31080s&@top_build_prefix@&$ac_top_build_prefix&;t t 31081s&@srcdir@&$ac_srcdir&;t t 31082s&@abs_srcdir@&$ac_abs_srcdir&;t t 31083s&@top_srcdir@&$ac_top_srcdir&;t t 31084s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 31085s&@builddir@&$ac_builddir&;t t 31086s&@abs_builddir@&$ac_abs_builddir&;t t 31087s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 31088s&@INSTALL@&$ac_INSTALL&;t t 31089s&@MKDIR_P@&$ac_MKDIR_P&;t t 31090$ac_datarootdir_hack 31091" 31092eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 31093 || as_fn_error "could not create $ac_file" "$LINENO" 5 31094 31095test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 31096 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 31097 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 31098 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 31099which seems to be undefined. Please make sure it is defined." >&5 31100$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 31101which seems to be undefined. Please make sure it is defined." >&2;} 31102 31103 rm -f "$tmp/stdin" 31104 case $ac_file in 31105 -) cat "$tmp/out" && rm -f "$tmp/out";; 31106 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 31107 esac \ 31108 || as_fn_error "could not create $ac_file" "$LINENO" 5 31109 ;; 31110 :H) 31111 # 31112 # CONFIG_HEADER 31113 # 31114 if test x"$ac_file" != x-; then 31115 { 31116 $as_echo "/* $configure_input */" \ 31117 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 31118 } >"$tmp/config.h" \ 31119 || as_fn_error "could not create $ac_file" "$LINENO" 5 31120 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 31121 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 31122$as_echo "$as_me: $ac_file is unchanged" >&6;} 31123 else 31124 rm -f "$ac_file" 31125 mv "$tmp/config.h" "$ac_file" \ 31126 || as_fn_error "could not create $ac_file" "$LINENO" 5 31127 fi 31128 else 31129 $as_echo "/* $configure_input */" \ 31130 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 31131 || as_fn_error "could not create -" "$LINENO" 5 31132 fi 31133# Compute "$ac_file"'s index in $config_headers. 31134_am_arg="$ac_file" 31135_am_stamp_count=1 31136for _am_header in $config_headers :; do 31137 case $_am_header in 31138 $_am_arg | $_am_arg:* ) 31139 break ;; 31140 * ) 31141 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 31142 esac 31143done 31144echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 31145$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 31146 X"$_am_arg" : 'X\(//\)[^/]' \| \ 31147 X"$_am_arg" : 'X\(//\)$' \| \ 31148 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 31149$as_echo X"$_am_arg" | 31150 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 31151 s//\1/ 31152 q 31153 } 31154 /^X\(\/\/\)[^/].*/{ 31155 s//\1/ 31156 q 31157 } 31158 /^X\(\/\/\)$/{ 31159 s//\1/ 31160 q 31161 } 31162 /^X\(\/\).*/{ 31163 s//\1/ 31164 q 31165 } 31166 s/.*/./; q'`/stamp-h$_am_stamp_count 31167 ;; 31168 :L) 31169 # 31170 # CONFIG_LINK 31171 # 31172 31173 if test "$ac_source" = "$ac_file" && test "$srcdir" = '.'; then 31174 : 31175 else 31176 # Prefer the file from the source tree if names are identical. 31177 if test "$ac_source" = "$ac_file" || test ! -r "$ac_source"; then 31178 ac_source=$srcdir/$ac_source 31179 fi 31180 31181 { $as_echo "$as_me:${as_lineno-$LINENO}: linking $ac_source to $ac_file" >&5 31182$as_echo "$as_me: linking $ac_source to $ac_file" >&6;} 31183 31184 if test ! -r "$ac_source"; then 31185 as_fn_error "$ac_source: file not found" "$LINENO" 5 31186 fi 31187 rm -f "$ac_file" 31188 31189 # Try a relative symlink, then a hard link, then a copy. 31190 case $srcdir in 31191 [\\/$]* | ?:[\\/]* ) ac_rel_source=$ac_source ;; 31192 *) ac_rel_source=$ac_top_build_prefix$ac_source ;; 31193 esac 31194 ln -s "$ac_rel_source" "$ac_file" 2>/dev/null || 31195 ln "$ac_source" "$ac_file" 2>/dev/null || 31196 cp -p "$ac_source" "$ac_file" || 31197 as_fn_error "cannot link or copy $ac_source to $ac_file" "$LINENO" 5 31198 fi 31199 ;; 31200 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 31201$as_echo "$as_me: executing $ac_file commands" >&6;} 31202 ;; 31203 esac 31204 31205 31206 case $ac_file$ac_mode in 31207 "libtool":C) 31208 31209 # See if we are running on zsh, and set the options which allow our 31210 # commands through without removal of \ escapes. 31211 if test -n "${ZSH_VERSION+set}" ; then 31212 setopt NO_GLOB_SUBST 31213 fi 31214 31215 cfgfile="${ofile}T" 31216 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 31217 $RM "$cfgfile" 31218 31219 cat <<_LT_EOF >> "$cfgfile" 31220#! $SHELL 31221 31222# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 31223# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 31224# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 31225# NOTE: Changes made to this file will be lost: look at ltmain.sh. 31226# 31227# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 31228# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 31229# Foundation, Inc. 31230# Written by Gordon Matzigkeit, 1996 31231# 31232# This file is part of GNU Libtool. 31233# 31234# GNU Libtool is free software; you can redistribute it and/or 31235# modify it under the terms of the GNU General Public License as 31236# published by the Free Software Foundation; either version 2 of 31237# the License, or (at your option) any later version. 31238# 31239# As a special exception to the GNU General Public License, 31240# if you distribute this file as part of a program or library that 31241# is built using GNU Libtool, you may include this file under the 31242# same distribution terms that you use for the rest of that program. 31243# 31244# GNU Libtool is distributed in the hope that it will be useful, 31245# but WITHOUT ANY WARRANTY; without even the implied warranty of 31246# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 31247# GNU General Public License for more details. 31248# 31249# You should have received a copy of the GNU General Public License 31250# along with GNU Libtool; see the file COPYING. If not, a copy 31251# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 31252# obtained by writing to the Free Software Foundation, Inc., 31253# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 31254 31255 31256# The names of the tagged configurations supported by this script. 31257available_tags="CXX F77 " 31258 31259# ### BEGIN LIBTOOL CONFIG 31260 31261# A BSD- or MS-compatible name lister. 31262NM=$lt_NM 31263 31264# Assembler program. 31265AS=$lt_AS 31266 31267# DLL creation program. 31268DLLTOOL=$lt_DLLTOOL 31269 31270# Object dumper program. 31271OBJDUMP=$lt_OBJDUMP 31272 31273# Which release of libtool.m4 was used? 31274macro_version=$macro_version 31275macro_revision=$macro_revision 31276 31277# Whether or not to build shared libraries. 31278build_libtool_libs=$enable_shared 31279 31280# Whether or not to build static libraries. 31281build_old_libs=$enable_static 31282 31283# What type of objects to build. 31284pic_mode=$pic_mode 31285 31286# Whether or not to optimize for fast installation. 31287fast_install=$enable_fast_install 31288 31289# Shell to use when invoking shell scripts. 31290SHELL=$lt_SHELL 31291 31292# An echo program that protects backslashes. 31293ECHO=$lt_ECHO 31294 31295# The PATH separator for the build system. 31296PATH_SEPARATOR=$lt_PATH_SEPARATOR 31297 31298# The host system. 31299host_alias=$host_alias 31300host=$host 31301host_os=$host_os 31302 31303# The build system. 31304build_alias=$build_alias 31305build=$build 31306build_os=$build_os 31307 31308# A sed program that does not truncate output. 31309SED=$lt_SED 31310 31311# Sed that helps us avoid accidentally triggering echo(1) options like -n. 31312Xsed="\$SED -e 1s/^X//" 31313 31314# A grep program that handles long lines. 31315GREP=$lt_GREP 31316 31317# An ERE matcher. 31318EGREP=$lt_EGREP 31319 31320# A literal string matcher. 31321FGREP=$lt_FGREP 31322 31323# Whether we need soft or hard links. 31324LN_S=$lt_LN_S 31325 31326# What is the maximum length of a command? 31327max_cmd_len=$max_cmd_len 31328 31329# Object file suffix (normally "o"). 31330objext=$ac_objext 31331 31332# Executable file suffix (normally ""). 31333exeext=$exeext 31334 31335# whether the shell understands "unset". 31336lt_unset=$lt_unset 31337 31338# turn spaces into newlines. 31339SP2NL=$lt_lt_SP2NL 31340 31341# turn newlines into spaces. 31342NL2SP=$lt_lt_NL2SP 31343 31344# convert \$build file names to \$host format. 31345to_host_file_cmd=$lt_cv_to_host_file_cmd 31346 31347# convert \$build files to toolchain format. 31348to_tool_file_cmd=$lt_cv_to_tool_file_cmd 31349 31350# Method to check whether dependent libraries are shared objects. 31351deplibs_check_method=$lt_deplibs_check_method 31352 31353# Command to use when deplibs_check_method = "file_magic". 31354file_magic_cmd=$lt_file_magic_cmd 31355 31356# How to find potential files when deplibs_check_method = "file_magic". 31357file_magic_glob=$lt_file_magic_glob 31358 31359# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 31360want_nocaseglob=$lt_want_nocaseglob 31361 31362# Command to associate shared and link libraries. 31363sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 31364 31365# The archiver. 31366AR=$lt_AR 31367 31368# Flags to create an archive. 31369AR_FLAGS=$lt_AR_FLAGS 31370 31371# How to feed a file listing to the archiver. 31372archiver_list_spec=$lt_archiver_list_spec 31373 31374# A symbol stripping program. 31375STRIP=$lt_STRIP 31376 31377# Commands used to install an old-style archive. 31378RANLIB=$lt_RANLIB 31379old_postinstall_cmds=$lt_old_postinstall_cmds 31380old_postuninstall_cmds=$lt_old_postuninstall_cmds 31381 31382# Whether to use a lock for old archive extraction. 31383lock_old_archive_extraction=$lock_old_archive_extraction 31384 31385# A C compiler. 31386LTCC=$lt_CC 31387 31388# LTCC compiler flags. 31389LTCFLAGS=$lt_CFLAGS 31390 31391# Take the output of nm and produce a listing of raw symbols and C names. 31392global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 31393 31394# Transform the output of nm in a proper C declaration. 31395global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 31396 31397# Transform the output of nm in a C name address pair. 31398global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 31399 31400# Transform the output of nm in a C name address pair when lib prefix is needed. 31401global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 31402 31403# Specify filename containing input files for \$NM. 31404nm_file_list_spec=$lt_nm_file_list_spec 31405 31406# The root where to search for dependent libraries,and in which our libraries should be installed. 31407lt_sysroot=$lt_sysroot 31408 31409# The name of the directory that contains temporary libtool files. 31410objdir=$objdir 31411 31412# Used to examine libraries when file_magic_cmd begins with "file". 31413MAGIC_CMD=$MAGIC_CMD 31414 31415# Must we lock files when doing compilation? 31416need_locks=$lt_need_locks 31417 31418# Manifest tool. 31419MANIFEST_TOOL=$lt_MANIFEST_TOOL 31420 31421# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 31422DSYMUTIL=$lt_DSYMUTIL 31423 31424# Tool to change global to local symbols on Mac OS X. 31425NMEDIT=$lt_NMEDIT 31426 31427# Tool to manipulate fat objects and archives on Mac OS X. 31428LIPO=$lt_LIPO 31429 31430# ldd/readelf like tool for Mach-O binaries on Mac OS X. 31431OTOOL=$lt_OTOOL 31432 31433# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 31434OTOOL64=$lt_OTOOL64 31435 31436# Old archive suffix (normally "a"). 31437libext=$libext 31438 31439# Shared library suffix (normally ".so"). 31440shrext_cmds=$lt_shrext_cmds 31441 31442# The commands to extract the exported symbol list from a shared archive. 31443extract_expsyms_cmds=$lt_extract_expsyms_cmds 31444 31445# Variables whose values should be saved in libtool wrapper scripts and 31446# restored at link time. 31447variables_saved_for_relink=$lt_variables_saved_for_relink 31448 31449# Do we need the "lib" prefix for modules? 31450need_lib_prefix=$need_lib_prefix 31451 31452# Do we need a version for libraries? 31453need_version=$need_version 31454 31455# Library versioning type. 31456version_type=$version_type 31457 31458# Shared library runtime path variable. 31459runpath_var=$runpath_var 31460 31461# Shared library path variable. 31462shlibpath_var=$shlibpath_var 31463 31464# Is shlibpath searched before the hard-coded library search path? 31465shlibpath_overrides_runpath=$shlibpath_overrides_runpath 31466 31467# Format of library name prefix. 31468libname_spec=$lt_libname_spec 31469 31470# List of archive names. First name is the real one, the rest are links. 31471# The last name is the one that the linker finds with -lNAME 31472library_names_spec=$lt_library_names_spec 31473 31474# The coded name of the library, if different from the real name. 31475soname_spec=$lt_soname_spec 31476 31477# Permission mode override for installation of shared libraries. 31478install_override_mode=$lt_install_override_mode 31479 31480# Command to use after installation of a shared archive. 31481postinstall_cmds=$lt_postinstall_cmds 31482 31483# Command to use after uninstallation of a shared archive. 31484postuninstall_cmds=$lt_postuninstall_cmds 31485 31486# Commands used to finish a libtool library installation in a directory. 31487finish_cmds=$lt_finish_cmds 31488 31489# As "finish_cmds", except a single script fragment to be evaled but 31490# not shown. 31491finish_eval=$lt_finish_eval 31492 31493# Whether we should hardcode library paths into libraries. 31494hardcode_into_libs=$hardcode_into_libs 31495 31496# Compile-time system search path for libraries. 31497sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 31498 31499# Run-time system search path for libraries. 31500sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 31501 31502# Whether dlopen is supported. 31503dlopen_support=$enable_dlopen 31504 31505# Whether dlopen of programs is supported. 31506dlopen_self=$enable_dlopen_self 31507 31508# Whether dlopen of statically linked programs is supported. 31509dlopen_self_static=$enable_dlopen_self_static 31510 31511# Commands to strip libraries. 31512old_striplib=$lt_old_striplib 31513striplib=$lt_striplib 31514 31515 31516# The linker used to build libraries. 31517LD=$lt_LD 31518 31519# How to create reloadable object files. 31520reload_flag=$lt_reload_flag 31521reload_cmds=$lt_reload_cmds 31522 31523# Commands used to build an old-style archive. 31524old_archive_cmds=$lt_old_archive_cmds 31525 31526# A language specific compiler. 31527CC=$lt_compiler 31528 31529# Is the compiler the GNU compiler? 31530with_gcc=$GCC 31531 31532# Compiler flag to turn off builtin functions. 31533no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 31534 31535# Additional compiler flags for building library objects. 31536pic_flag=$lt_lt_prog_compiler_pic 31537 31538# How to pass a linker flag through the compiler. 31539wl=$lt_lt_prog_compiler_wl 31540 31541# Compiler flag to prevent dynamic linking. 31542link_static_flag=$lt_lt_prog_compiler_static 31543 31544# Does compiler simultaneously support -c and -o options? 31545compiler_c_o=$lt_lt_cv_prog_compiler_c_o 31546 31547# Whether or not to add -lc for building shared libraries. 31548build_libtool_need_lc=$archive_cmds_need_lc 31549 31550# Whether or not to disallow shared libs when runtime libs are static. 31551allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 31552 31553# Compiler flag to allow reflexive dlopens. 31554export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 31555 31556# Compiler flag to generate shared objects directly from archives. 31557whole_archive_flag_spec=$lt_whole_archive_flag_spec 31558 31559# Whether the compiler copes with passing no objects directly. 31560compiler_needs_object=$lt_compiler_needs_object 31561 31562# Create an old-style archive from a shared archive. 31563old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 31564 31565# Create a temporary old-style archive to link instead of a shared archive. 31566old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 31567 31568# Commands used to build a shared archive. 31569archive_cmds=$lt_archive_cmds 31570archive_expsym_cmds=$lt_archive_expsym_cmds 31571 31572# Commands used to build a loadable module if different from building 31573# a shared archive. 31574module_cmds=$lt_module_cmds 31575module_expsym_cmds=$lt_module_expsym_cmds 31576 31577# Whether we are building with GNU ld or not. 31578with_gnu_ld=$lt_with_gnu_ld 31579 31580# Flag that allows shared libraries with undefined symbols to be built. 31581allow_undefined_flag=$lt_allow_undefined_flag 31582 31583# Flag that enforces no undefined symbols. 31584no_undefined_flag=$lt_no_undefined_flag 31585 31586# Flag to hardcode \$libdir into a binary during linking. 31587# This must work even if \$libdir does not exist 31588hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 31589 31590# Whether we need a single "-rpath" flag with a separated argument. 31591hardcode_libdir_separator=$lt_hardcode_libdir_separator 31592 31593# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 31594# DIR into the resulting binary. 31595hardcode_direct=$hardcode_direct 31596 31597# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 31598# DIR into the resulting binary and the resulting library dependency is 31599# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 31600# library is relocated. 31601hardcode_direct_absolute=$hardcode_direct_absolute 31602 31603# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 31604# into the resulting binary. 31605hardcode_minus_L=$hardcode_minus_L 31606 31607# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 31608# into the resulting binary. 31609hardcode_shlibpath_var=$hardcode_shlibpath_var 31610 31611# Set to "yes" if building a shared library automatically hardcodes DIR 31612# into the library and all subsequent libraries and executables linked 31613# against it. 31614hardcode_automatic=$hardcode_automatic 31615 31616# Set to yes if linker adds runtime paths of dependent libraries 31617# to runtime path list. 31618inherit_rpath=$inherit_rpath 31619 31620# Whether libtool must link a program against all its dependency libraries. 31621link_all_deplibs=$link_all_deplibs 31622 31623# Set to "yes" if exported symbols are required. 31624always_export_symbols=$always_export_symbols 31625 31626# The commands to list exported symbols. 31627export_symbols_cmds=$lt_export_symbols_cmds 31628 31629# Symbols that should not be listed in the preloaded symbols. 31630exclude_expsyms=$lt_exclude_expsyms 31631 31632# Symbols that must always be exported. 31633include_expsyms=$lt_include_expsyms 31634 31635# Commands necessary for linking programs (against libraries) with templates. 31636prelink_cmds=$lt_prelink_cmds 31637 31638# Commands necessary for finishing linking programs. 31639postlink_cmds=$lt_postlink_cmds 31640 31641# Specify filename containing input files. 31642file_list_spec=$lt_file_list_spec 31643 31644# How to hardcode a shared library path into an executable. 31645hardcode_action=$hardcode_action 31646 31647# The directories searched by this compiler when creating a shared library. 31648compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 31649 31650# Dependencies to place before and after the objects being linked to 31651# create a shared library. 31652predep_objects=$lt_predep_objects 31653postdep_objects=$lt_postdep_objects 31654predeps=$lt_predeps 31655postdeps=$lt_postdeps 31656 31657# The library search path used internally by the compiler when linking 31658# a shared library. 31659compiler_lib_search_path=$lt_compiler_lib_search_path 31660 31661# ### END LIBTOOL CONFIG 31662 31663_LT_EOF 31664 31665 case $host_os in 31666 aix3*) 31667 cat <<\_LT_EOF >> "$cfgfile" 31668# AIX sometimes has problems with the GCC collect2 program. For some 31669# reason, if we set the COLLECT_NAMES environment variable, the problems 31670# vanish in a puff of smoke. 31671if test "X${COLLECT_NAMES+set}" != Xset; then 31672 COLLECT_NAMES= 31673 export COLLECT_NAMES 31674fi 31675_LT_EOF 31676 ;; 31677 esac 31678 31679 31680ltmain="$ac_aux_dir/ltmain.sh" 31681 31682 31683 # We use sed instead of cat because bash on DJGPP gets confused if 31684 # if finds mixed CR/LF and LF-only lines. Since sed operates in 31685 # text mode, it properly converts lines to CR/LF. This bash problem 31686 # is reportedly fixed, but why not run on old versions too? 31687 sed '$q' "$ltmain" >> "$cfgfile" \ 31688 || (rm -f "$cfgfile"; exit 1) 31689 31690 if test x"$xsi_shell" = xyes; then 31691 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 31692func_dirname ()\ 31693{\ 31694\ case ${1} in\ 31695\ */*) func_dirname_result="${1%/*}${2}" ;;\ 31696\ * ) func_dirname_result="${3}" ;;\ 31697\ esac\ 31698} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 31699 && mv -f "$cfgfile.tmp" "$cfgfile" \ 31700 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 31701test 0 -eq $? || _lt_function_replace_fail=: 31702 31703 31704 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 31705func_basename ()\ 31706{\ 31707\ func_basename_result="${1##*/}"\ 31708} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 31709 && mv -f "$cfgfile.tmp" "$cfgfile" \ 31710 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 31711test 0 -eq $? || _lt_function_replace_fail=: 31712 31713 31714 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 31715func_dirname_and_basename ()\ 31716{\ 31717\ case ${1} in\ 31718\ */*) func_dirname_result="${1%/*}${2}" ;;\ 31719\ * ) func_dirname_result="${3}" ;;\ 31720\ esac\ 31721\ func_basename_result="${1##*/}"\ 31722} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 31723 && mv -f "$cfgfile.tmp" "$cfgfile" \ 31724 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 31725test 0 -eq $? || _lt_function_replace_fail=: 31726 31727 31728 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 31729func_stripname ()\ 31730{\ 31731\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 31732\ # positional parameters, so assign one to ordinary parameter first.\ 31733\ func_stripname_result=${3}\ 31734\ func_stripname_result=${func_stripname_result#"${1}"}\ 31735\ func_stripname_result=${func_stripname_result%"${2}"}\ 31736} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 31737 && mv -f "$cfgfile.tmp" "$cfgfile" \ 31738 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 31739test 0 -eq $? || _lt_function_replace_fail=: 31740 31741 31742 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 31743func_split_long_opt ()\ 31744{\ 31745\ func_split_long_opt_name=${1%%=*}\ 31746\ func_split_long_opt_arg=${1#*=}\ 31747} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 31748 && mv -f "$cfgfile.tmp" "$cfgfile" \ 31749 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 31750test 0 -eq $? || _lt_function_replace_fail=: 31751 31752 31753 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 31754func_split_short_opt ()\ 31755{\ 31756\ func_split_short_opt_arg=${1#??}\ 31757\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 31758} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 31759 && mv -f "$cfgfile.tmp" "$cfgfile" \ 31760 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 31761test 0 -eq $? || _lt_function_replace_fail=: 31762 31763 31764 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 31765func_lo2o ()\ 31766{\ 31767\ case ${1} in\ 31768\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 31769\ *) func_lo2o_result=${1} ;;\ 31770\ esac\ 31771} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 31772 && mv -f "$cfgfile.tmp" "$cfgfile" \ 31773 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 31774test 0 -eq $? || _lt_function_replace_fail=: 31775 31776 31777 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 31778func_xform ()\ 31779{\ 31780 func_xform_result=${1%.*}.lo\ 31781} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 31782 && mv -f "$cfgfile.tmp" "$cfgfile" \ 31783 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 31784test 0 -eq $? || _lt_function_replace_fail=: 31785 31786 31787 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 31788func_arith ()\ 31789{\ 31790 func_arith_result=$(( $* ))\ 31791} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 31792 && mv -f "$cfgfile.tmp" "$cfgfile" \ 31793 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 31794test 0 -eq $? || _lt_function_replace_fail=: 31795 31796 31797 sed -e '/^func_len ()$/,/^} # func_len /c\ 31798func_len ()\ 31799{\ 31800 func_len_result=${#1}\ 31801} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 31802 && mv -f "$cfgfile.tmp" "$cfgfile" \ 31803 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 31804test 0 -eq $? || _lt_function_replace_fail=: 31805 31806fi 31807 31808if test x"$lt_shell_append" = xyes; then 31809 sed -e '/^func_append ()$/,/^} # func_append /c\ 31810func_append ()\ 31811{\ 31812 eval "${1}+=\\${2}"\ 31813} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 31814 && mv -f "$cfgfile.tmp" "$cfgfile" \ 31815 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 31816test 0 -eq $? || _lt_function_replace_fail=: 31817 31818 31819 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 31820func_append_quoted ()\ 31821{\ 31822\ func_quote_for_eval "${2}"\ 31823\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 31824} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 31825 && mv -f "$cfgfile.tmp" "$cfgfile" \ 31826 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 31827test 0 -eq $? || _lt_function_replace_fail=: 31828 31829 31830 # Save a `func_append' function call where possible by direct use of '+=' 31831 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 31832 && mv -f "$cfgfile.tmp" "$cfgfile" \ 31833 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 31834 test 0 -eq $? || _lt_function_replace_fail=: 31835else 31836 # Save a `func_append' function call even when '+=' is not available 31837 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 31838 && mv -f "$cfgfile.tmp" "$cfgfile" \ 31839 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 31840 test 0 -eq $? || _lt_function_replace_fail=: 31841fi 31842 31843if test x"$_lt_function_replace_fail" = x":"; then 31844 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 31845$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 31846fi 31847 31848 31849 mv -f "$cfgfile" "$ofile" || 31850 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 31851 chmod +x "$ofile" 31852 31853 31854 cat <<_LT_EOF >> "$ofile" 31855 31856# ### BEGIN LIBTOOL TAG CONFIG: CXX 31857 31858# The linker used to build libraries. 31859LD=$lt_LD_CXX 31860 31861# How to create reloadable object files. 31862reload_flag=$lt_reload_flag_CXX 31863reload_cmds=$lt_reload_cmds_CXX 31864 31865# Commands used to build an old-style archive. 31866old_archive_cmds=$lt_old_archive_cmds_CXX 31867 31868# A language specific compiler. 31869CC=$lt_compiler_CXX 31870 31871# Is the compiler the GNU compiler? 31872with_gcc=$GCC_CXX 31873 31874# Compiler flag to turn off builtin functions. 31875no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 31876 31877# Additional compiler flags for building library objects. 31878pic_flag=$lt_lt_prog_compiler_pic_CXX 31879 31880# How to pass a linker flag through the compiler. 31881wl=$lt_lt_prog_compiler_wl_CXX 31882 31883# Compiler flag to prevent dynamic linking. 31884link_static_flag=$lt_lt_prog_compiler_static_CXX 31885 31886# Does compiler simultaneously support -c and -o options? 31887compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 31888 31889# Whether or not to add -lc for building shared libraries. 31890build_libtool_need_lc=$archive_cmds_need_lc_CXX 31891 31892# Whether or not to disallow shared libs when runtime libs are static. 31893allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 31894 31895# Compiler flag to allow reflexive dlopens. 31896export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 31897 31898# Compiler flag to generate shared objects directly from archives. 31899whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 31900 31901# Whether the compiler copes with passing no objects directly. 31902compiler_needs_object=$lt_compiler_needs_object_CXX 31903 31904# Create an old-style archive from a shared archive. 31905old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 31906 31907# Create a temporary old-style archive to link instead of a shared archive. 31908old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 31909 31910# Commands used to build a shared archive. 31911archive_cmds=$lt_archive_cmds_CXX 31912archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 31913 31914# Commands used to build a loadable module if different from building 31915# a shared archive. 31916module_cmds=$lt_module_cmds_CXX 31917module_expsym_cmds=$lt_module_expsym_cmds_CXX 31918 31919# Whether we are building with GNU ld or not. 31920with_gnu_ld=$lt_with_gnu_ld_CXX 31921 31922# Flag that allows shared libraries with undefined symbols to be built. 31923allow_undefined_flag=$lt_allow_undefined_flag_CXX 31924 31925# Flag that enforces no undefined symbols. 31926no_undefined_flag=$lt_no_undefined_flag_CXX 31927 31928# Flag to hardcode \$libdir into a binary during linking. 31929# This must work even if \$libdir does not exist 31930hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 31931 31932# Whether we need a single "-rpath" flag with a separated argument. 31933hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 31934 31935# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 31936# DIR into the resulting binary. 31937hardcode_direct=$hardcode_direct_CXX 31938 31939# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 31940# DIR into the resulting binary and the resulting library dependency is 31941# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 31942# library is relocated. 31943hardcode_direct_absolute=$hardcode_direct_absolute_CXX 31944 31945# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 31946# into the resulting binary. 31947hardcode_minus_L=$hardcode_minus_L_CXX 31948 31949# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 31950# into the resulting binary. 31951hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 31952 31953# Set to "yes" if building a shared library automatically hardcodes DIR 31954# into the library and all subsequent libraries and executables linked 31955# against it. 31956hardcode_automatic=$hardcode_automatic_CXX 31957 31958# Set to yes if linker adds runtime paths of dependent libraries 31959# to runtime path list. 31960inherit_rpath=$inherit_rpath_CXX 31961 31962# Whether libtool must link a program against all its dependency libraries. 31963link_all_deplibs=$link_all_deplibs_CXX 31964 31965# Set to "yes" if exported symbols are required. 31966always_export_symbols=$always_export_symbols_CXX 31967 31968# The commands to list exported symbols. 31969export_symbols_cmds=$lt_export_symbols_cmds_CXX 31970 31971# Symbols that should not be listed in the preloaded symbols. 31972exclude_expsyms=$lt_exclude_expsyms_CXX 31973 31974# Symbols that must always be exported. 31975include_expsyms=$lt_include_expsyms_CXX 31976 31977# Commands necessary for linking programs (against libraries) with templates. 31978prelink_cmds=$lt_prelink_cmds_CXX 31979 31980# Commands necessary for finishing linking programs. 31981postlink_cmds=$lt_postlink_cmds_CXX 31982 31983# Specify filename containing input files. 31984file_list_spec=$lt_file_list_spec_CXX 31985 31986# How to hardcode a shared library path into an executable. 31987hardcode_action=$hardcode_action_CXX 31988 31989# The directories searched by this compiler when creating a shared library. 31990compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 31991 31992# Dependencies to place before and after the objects being linked to 31993# create a shared library. 31994predep_objects=$lt_predep_objects_CXX 31995postdep_objects=$lt_postdep_objects_CXX 31996predeps=$lt_predeps_CXX 31997postdeps=$lt_postdeps_CXX 31998 31999# The library search path used internally by the compiler when linking 32000# a shared library. 32001compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 32002 32003# ### END LIBTOOL TAG CONFIG: CXX 32004_LT_EOF 32005 32006 32007 cat <<_LT_EOF >> "$ofile" 32008 32009# ### BEGIN LIBTOOL TAG CONFIG: F77 32010 32011# The linker used to build libraries. 32012LD=$lt_LD_F77 32013 32014# How to create reloadable object files. 32015reload_flag=$lt_reload_flag_F77 32016reload_cmds=$lt_reload_cmds_F77 32017 32018# Commands used to build an old-style archive. 32019old_archive_cmds=$lt_old_archive_cmds_F77 32020 32021# A language specific compiler. 32022CC=$lt_compiler_F77 32023 32024# Is the compiler the GNU compiler? 32025with_gcc=$GCC_F77 32026 32027# Compiler flag to turn off builtin functions. 32028no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 32029 32030# Additional compiler flags for building library objects. 32031pic_flag=$lt_lt_prog_compiler_pic_F77 32032 32033# How to pass a linker flag through the compiler. 32034wl=$lt_lt_prog_compiler_wl_F77 32035 32036# Compiler flag to prevent dynamic linking. 32037link_static_flag=$lt_lt_prog_compiler_static_F77 32038 32039# Does compiler simultaneously support -c and -o options? 32040compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 32041 32042# Whether or not to add -lc for building shared libraries. 32043build_libtool_need_lc=$archive_cmds_need_lc_F77 32044 32045# Whether or not to disallow shared libs when runtime libs are static. 32046allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 32047 32048# Compiler flag to allow reflexive dlopens. 32049export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 32050 32051# Compiler flag to generate shared objects directly from archives. 32052whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 32053 32054# Whether the compiler copes with passing no objects directly. 32055compiler_needs_object=$lt_compiler_needs_object_F77 32056 32057# Create an old-style archive from a shared archive. 32058old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 32059 32060# Create a temporary old-style archive to link instead of a shared archive. 32061old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 32062 32063# Commands used to build a shared archive. 32064archive_cmds=$lt_archive_cmds_F77 32065archive_expsym_cmds=$lt_archive_expsym_cmds_F77 32066 32067# Commands used to build a loadable module if different from building 32068# a shared archive. 32069module_cmds=$lt_module_cmds_F77 32070module_expsym_cmds=$lt_module_expsym_cmds_F77 32071 32072# Whether we are building with GNU ld or not. 32073with_gnu_ld=$lt_with_gnu_ld_F77 32074 32075# Flag that allows shared libraries with undefined symbols to be built. 32076allow_undefined_flag=$lt_allow_undefined_flag_F77 32077 32078# Flag that enforces no undefined symbols. 32079no_undefined_flag=$lt_no_undefined_flag_F77 32080 32081# Flag to hardcode \$libdir into a binary during linking. 32082# This must work even if \$libdir does not exist 32083hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 32084 32085# Whether we need a single "-rpath" flag with a separated argument. 32086hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 32087 32088# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 32089# DIR into the resulting binary. 32090hardcode_direct=$hardcode_direct_F77 32091 32092# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 32093# DIR into the resulting binary and the resulting library dependency is 32094# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 32095# library is relocated. 32096hardcode_direct_absolute=$hardcode_direct_absolute_F77 32097 32098# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 32099# into the resulting binary. 32100hardcode_minus_L=$hardcode_minus_L_F77 32101 32102# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 32103# into the resulting binary. 32104hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 32105 32106# Set to "yes" if building a shared library automatically hardcodes DIR 32107# into the library and all subsequent libraries and executables linked 32108# against it. 32109hardcode_automatic=$hardcode_automatic_F77 32110 32111# Set to yes if linker adds runtime paths of dependent libraries 32112# to runtime path list. 32113inherit_rpath=$inherit_rpath_F77 32114 32115# Whether libtool must link a program against all its dependency libraries. 32116link_all_deplibs=$link_all_deplibs_F77 32117 32118# Set to "yes" if exported symbols are required. 32119always_export_symbols=$always_export_symbols_F77 32120 32121# The commands to list exported symbols. 32122export_symbols_cmds=$lt_export_symbols_cmds_F77 32123 32124# Symbols that should not be listed in the preloaded symbols. 32125exclude_expsyms=$lt_exclude_expsyms_F77 32126 32127# Symbols that must always be exported. 32128include_expsyms=$lt_include_expsyms_F77 32129 32130# Commands necessary for linking programs (against libraries) with templates. 32131prelink_cmds=$lt_prelink_cmds_F77 32132 32133# Commands necessary for finishing linking programs. 32134postlink_cmds=$lt_postlink_cmds_F77 32135 32136# Specify filename containing input files. 32137file_list_spec=$lt_file_list_spec_F77 32138 32139# How to hardcode a shared library path into an executable. 32140hardcode_action=$hardcode_action_F77 32141 32142# The directories searched by this compiler when creating a shared library. 32143compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_F77 32144 32145# Dependencies to place before and after the objects being linked to 32146# create a shared library. 32147predep_objects=$lt_predep_objects_F77 32148postdep_objects=$lt_postdep_objects_F77 32149predeps=$lt_predeps_F77 32150postdeps=$lt_postdeps_F77 32151 32152# The library search path used internally by the compiler when linking 32153# a shared library. 32154compiler_lib_search_path=$lt_compiler_lib_search_path_F77 32155 32156# ### END LIBTOOL TAG CONFIG: F77 32157_LT_EOF 32158 32159 ;; 32160 32161 esac 32162done # for ac_tag 32163 32164 32165as_fn_exit 0 32166_ACEOF 32167ac_clean_files=$ac_clean_files_save 32168 32169test $ac_write_fail = 0 || 32170 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 32171 32172 32173# configure is writing to config.log, and then calls config.status. 32174# config.status does its own redirection, appending to config.log. 32175# Unfortunately, on DOS this fails, as config.log is still kept open 32176# by configure, so config.status won't be able to write to it; its 32177# output is simply discarded. So we exec the FD to /dev/null, 32178# effectively closing config.log, so it can be properly (re)opened and 32179# appended to by config.status. When coming back to configure, we 32180# need to make the FD available again. 32181if test "$no_create" != yes; then 32182 ac_cs_success=: 32183 ac_config_status_args= 32184 test "$silent" = yes && 32185 ac_config_status_args="$ac_config_status_args --quiet" 32186 exec 5>/dev/null 32187 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 32188 exec 5>>config.log 32189 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 32190 # would make configure fail if this is the last instruction. 32191 $ac_cs_success || as_fn_exit $? 32192fi 32193if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 32194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 32195$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 32196fi 32197 32198